function v0(n,u){for(var s=0;s<u.length;s++){const o=u[s];if(typeof o!="string"&&!Array.isArray(o)){for(const f in o)if(f!=="default"&&!(f in n)){const h=Object.getOwnPropertyDescriptor(o,f);h&&Object.defineProperty(n,f,h.get?h:{enumerable:!0,get:()=>o[f]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function s(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(f){if(f.ep)return;f.ep=!0;const h=s(f);fetch(f.href,h)}})();var w2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function p0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Eo={exports:{}},mr={};/**
 * @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 om;function y0(){if(om)return mr;om=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,f,h){var m=null;if(h!==void 0&&(m=""+h),f.key!==void 0&&(m=""+f.key),"key"in f){h={};for(var v in f)v!=="key"&&(h[v]=f[v])}else h=f;return f=h.ref,{$$typeof:n,type:o,key:m,ref:f!==void 0?f:null,props:h}}return mr.Fragment=u,mr.jsx=s,mr.jsxs=s,mr}var cm;function g0(){return cm||(cm=1,Eo.exports=y0()),Eo.exports}var c=g0(),Mo={exports:{}},he={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fm;function x0(){if(fm)return he;fm=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),C=Symbol.iterator;function q(S){return S===null||typeof S!="object"?null:(S=C&&S[C]||S["@@iterator"],typeof S=="function"?S:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,F={};function ne(S,R,B){this.props=S,this.context=R,this.refs=F,this.updater=B||G}ne.prototype.isReactComponent={},ne.prototype.setState=function(S,R){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,R,"setState")},ne.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function fe(){}fe.prototype=ne.prototype;function ce(S,R,B){this.props=S,this.context=R,this.refs=F,this.updater=B||G}var Oe=ce.prototype=new fe;Oe.constructor=ce,_(Oe,ne.prototype),Oe.isPureReactComponent=!0;var X=Array.isArray;function V(){}var w={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function ee(S,R,B){var Y=B.ref;return{$$typeof:n,type:S,key:R,ref:Y!==void 0?Y:null,props:B}}function ae(S,R){return ee(S.type,R,S.props)}function le(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function W(S){var R={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(B){return R[B]})}var xe=/\/+/g;function de(S,R){return typeof S=="object"&&S!==null&&S.key!=null?W(""+S.key):R.toString(36)}function me(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(V,V):(S.status="pending",S.then(function(R){S.status==="pending"&&(S.status="fulfilled",S.value=R)},function(R){S.status==="pending"&&(S.status="rejected",S.reason=R)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function T(S,R,B,Y,I){var se=typeof S;(se==="undefined"||se==="boolean")&&(S=null);var be=!1;if(S===null)be=!0;else switch(se){case"bigint":case"string":case"number":be=!0;break;case"object":switch(S.$$typeof){case n:case u:be=!0;break;case O:return be=S._init,T(be(S._payload),R,B,Y,I)}}if(be)return I=I(S),be=Y===""?"."+de(S,0):Y,X(I)?(B="",be!=null&&(B=be.replace(xe,"$&/")+"/"),T(I,R,B,"",function(Pt){return Pt})):I!=null&&(le(I)&&(I=ae(I,B+(I.key==null||S&&S.key===I.key?"":(""+I.key).replace(xe,"$&/")+"/")+be)),R.push(I)),1;be=0;var Ie=Y===""?".":Y+":";if(X(S))for(var He=0;He<S.length;He++)Y=S[He],se=Ie+de(Y,He),be+=T(Y,R,B,se,I);else if(He=q(S),typeof He=="function")for(S=He.call(S),He=0;!(Y=S.next()).done;)Y=Y.value,se=Ie+de(Y,He++),be+=T(Y,R,B,se,I);else if(se==="object"){if(typeof S.then=="function")return T(me(S),R,B,Y,I);throw R=String(S),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return be}function H(S,R,B){if(S==null)return S;var Y=[],I=0;return T(S,Y,"","",function(se){return R.call(B,se,I++)}),Y}function Z(S){if(S._status===-1){var R=S._result;R=R(),R.then(function(B){(S._status===0||S._status===-1)&&(S._status=1,S._result=B)},function(B){(S._status===0||S._status===-1)&&(S._status=2,S._result=B)}),S._status===-1&&(S._status=0,S._result=R)}if(S._status===1)return S._result.default;throw S._result}var ue=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ve={map:H,forEach:function(S,R,B){H(S,function(){R.apply(this,arguments)},B)},count:function(S){var R=0;return H(S,function(){R++}),R},toArray:function(S){return H(S,function(R){return R})||[]},only:function(S){if(!le(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return he.Activity=x,he.Children=ve,he.Component=ne,he.Fragment=s,he.Profiler=f,he.PureComponent=ce,he.StrictMode=o,he.Suspense=p,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,he.__COMPILER_RUNTIME={__proto__:null,c:function(S){return w.H.useMemoCache(S)}},he.cache=function(S){return function(){return S.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(S,R,B){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Y=_({},S.props),I=S.key;if(R!=null)for(se in R.key!==void 0&&(I=""+R.key),R)!J.call(R,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&R.ref===void 0||(Y[se]=R[se]);var se=arguments.length-2;if(se===1)Y.children=B;else if(1<se){for(var be=Array(se),Ie=0;Ie<se;Ie++)be[Ie]=arguments[Ie+2];Y.children=be}return ee(S.type,I,Y)},he.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},he.createElement=function(S,R,B){var Y,I={},se=null;if(R!=null)for(Y in R.key!==void 0&&(se=""+R.key),R)J.call(R,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(I[Y]=R[Y]);var be=arguments.length-2;if(be===1)I.children=B;else if(1<be){for(var Ie=Array(be),He=0;He<be;He++)Ie[He]=arguments[He+2];I.children=Ie}if(S&&S.defaultProps)for(Y in be=S.defaultProps,be)I[Y]===void 0&&(I[Y]=be[Y]);return ee(S,se,I)},he.createRef=function(){return{current:null}},he.forwardRef=function(S){return{$$typeof:v,render:S}},he.isValidElement=le,he.lazy=function(S){return{$$typeof:O,_payload:{_status:-1,_result:S},_init:Z}},he.memo=function(S,R){return{$$typeof:y,type:S,compare:R===void 0?null:R}},he.startTransition=function(S){var R=w.T,B={};w.T=B;try{var Y=S(),I=w.S;I!==null&&I(B,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(V,ue)}catch(se){ue(se)}finally{R!==null&&B.types!==null&&(R.types=B.types),w.T=R}},he.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},he.use=function(S){return w.H.use(S)},he.useActionState=function(S,R,B){return w.H.useActionState(S,R,B)},he.useCallback=function(S,R){return w.H.useCallback(S,R)},he.useContext=function(S){return w.H.useContext(S)},he.useDebugValue=function(){},he.useDeferredValue=function(S,R){return w.H.useDeferredValue(S,R)},he.useEffect=function(S,R){return w.H.useEffect(S,R)},he.useEffectEvent=function(S){return w.H.useEffectEvent(S)},he.useId=function(){return w.H.useId()},he.useImperativeHandle=function(S,R,B){return w.H.useImperativeHandle(S,R,B)},he.useInsertionEffect=function(S,R){return w.H.useInsertionEffect(S,R)},he.useLayoutEffect=function(S,R){return w.H.useLayoutEffect(S,R)},he.useMemo=function(S,R){return w.H.useMemo(S,R)},he.useOptimistic=function(S,R){return w.H.useOptimistic(S,R)},he.useReducer=function(S,R,B){return w.H.useReducer(S,R,B)},he.useRef=function(S){return w.H.useRef(S)},he.useState=function(S){return w.H.useState(S)},he.useSyncExternalStore=function(S,R,B){return w.H.useSyncExternalStore(S,R,B)},he.useTransition=function(){return w.H.useTransition()},he.version="19.2.1",he}var dm;function li(){return dm||(dm=1,Mo.exports=x0()),Mo.exports}var D=li();const b0=p0(D),$m=v0({__proto__:null,default:b0},[D]);var To={exports:{}},vr={},Ao={exports:{}},zo={};/**
 * @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 hm;function S0(){return hm||(hm=1,(function(n){function u(T,H){var Z=T.length;T.push(H);e:for(;0<Z;){var ue=Z-1>>>1,ve=T[ue];if(0<f(ve,H))T[ue]=H,T[Z]=ve,Z=ue;else break e}}function s(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var H=T[0],Z=T.pop();if(Z!==H){T[0]=Z;e:for(var ue=0,ve=T.length,S=ve>>>1;ue<S;){var R=2*(ue+1)-1,B=T[R],Y=R+1,I=T[Y];if(0>f(B,Z))Y<ve&&0>f(I,B)?(T[ue]=I,T[Y]=Z,ue=Y):(T[ue]=B,T[R]=Z,ue=R);else if(Y<ve&&0>f(I,Z))T[ue]=I,T[Y]=Z,ue=Y;else break e}}return H}function f(T,H){var Z=T.sortIndex-H.sortIndex;return Z!==0?Z:T.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var m=Date,v=m.now();n.unstable_now=function(){return m.now()-v}}var p=[],y=[],O=1,x=null,C=3,q=!1,G=!1,_=!1,F=!1,ne=typeof setTimeout=="function"?setTimeout:null,fe=typeof clearTimeout=="function"?clearTimeout:null,ce=typeof setImmediate<"u"?setImmediate:null;function Oe(T){for(var H=s(y);H!==null;){if(H.callback===null)o(y);else if(H.startTime<=T)o(y),H.sortIndex=H.expirationTime,u(p,H);else break;H=s(y)}}function X(T){if(_=!1,Oe(T),!G)if(s(p)!==null)G=!0,V||(V=!0,W());else{var H=s(y);H!==null&&me(X,H.startTime-T)}}var V=!1,w=-1,J=5,ee=-1;function ae(){return F?!0:!(n.unstable_now()-ee<J)}function le(){if(F=!1,V){var T=n.unstable_now();ee=T;var H=!0;try{e:{G=!1,_&&(_=!1,fe(w),w=-1),q=!0;var Z=C;try{t:{for(Oe(T),x=s(p);x!==null&&!(x.expirationTime>T&&ae());){var ue=x.callback;if(typeof ue=="function"){x.callback=null,C=x.priorityLevel;var ve=ue(x.expirationTime<=T);if(T=n.unstable_now(),typeof ve=="function"){x.callback=ve,Oe(T),H=!0;break t}x===s(p)&&o(p),Oe(T)}else o(p);x=s(p)}if(x!==null)H=!0;else{var S=s(y);S!==null&&me(X,S.startTime-T),H=!1}}break e}finally{x=null,C=Z,q=!1}H=void 0}}finally{H?W():V=!1}}}var W;if(typeof ce=="function")W=function(){ce(le)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,de=xe.port2;xe.port1.onmessage=le,W=function(){de.postMessage(null)}}else W=function(){ne(le,0)};function me(T,H){w=ne(function(){T(n.unstable_now())},H)}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(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(T){switch(C){case 1:case 2:case 3:var H=3;break;default:H=C}var Z=C;C=H;try{return T()}finally{C=Z}},n.unstable_requestPaint=function(){F=!0},n.unstable_runWithPriority=function(T,H){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var Z=C;C=T;try{return H()}finally{C=Z}},n.unstable_scheduleCallback=function(T,H,Z){var ue=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ue+Z:ue):Z=ue,T){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=Z+ve,T={id:O++,callback:H,priorityLevel:T,startTime:Z,expirationTime:ve,sortIndex:-1},Z>ue?(T.sortIndex=Z,u(y,T),s(p)===null&&T===s(y)&&(_?(fe(w),w=-1):_=!0,me(X,Z-ue))):(T.sortIndex=ve,u(p,T),G||q||(G=!0,V||(V=!0,W()))),T},n.unstable_shouldYield=ae,n.unstable_wrapCallback=function(T){var H=C;return function(){var Z=C;C=H;try{return T.apply(this,arguments)}finally{C=Z}}}})(zo)),zo}var mm;function j0(){return mm||(mm=1,Ao.exports=S0()),Ao.exports}var Do={exports:{}},st={};/**
 * @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 vm;function O0(){if(vm)return st;vm=1;var n=li();function u(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)y+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(p,y,O){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:x==null?null:""+x,children:p,containerInfo:y,implementation:O}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,st.createPortal=function(p,y){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return h(p,y,null,O)},st.flushSync=function(p){var y=m.T,O=o.p;try{if(m.T=null,o.p=2,p)return p()}finally{m.T=y,o.p=O,o.d.f()}},st.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(p,y))},st.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},st.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var O=y.as,x=v(O,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,q=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;O==="style"?o.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:C,fetchPriority:q}):O==="script"&&o.d.X(p,{crossOrigin:x,integrity:C,fetchPriority:q,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},st.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var O=v(y.as,y.crossOrigin);o.d.M(p,{crossOrigin:O,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(p)},st.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var O=y.as,x=v(O,y.crossOrigin);o.d.L(p,O,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},st.preloadModule=function(p,y){if(typeof p=="string")if(y){var O=v(y.as,y.crossOrigin);o.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:O,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(p)},st.requestFormReset=function(p){o.d.r(p)},st.unstable_batchedUpdates=function(p,y){return p(y)},st.useFormState=function(p,y,O){return m.H.useFormState(p,y,O)},st.useFormStatus=function(){return m.H.useHostTransitionStatus()},st.version="19.2.1",st}var pm;function _0(){if(pm)return Do.exports;pm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Do.exports=O0(),Do.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 ym;function N0(){if(ym)return vr;ym=1;var n=j0(),u=li(),s=_0();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(o(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var r=a.return;if(r===null)break;var i=r.alternate;if(i===null){if(l=r.return,l!==null){a=l;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===a)return p(r),e;if(i===l)return p(r),t;i=i.sibling}throw Error(o(188))}if(a.return!==l.return)a=r,l=i;else{for(var d=!1,g=r.child;g;){if(g===a){d=!0,a=r,l=i;break}if(g===l){d=!0,l=r,a=i;break}g=g.sibling}if(!d){for(g=i.child;g;){if(g===a){d=!0,a=i,l=r;break}if(g===l){d=!0,l=i,a=r;break}g=g.sibling}if(!d)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function O(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=O(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,C=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),ce=Symbol.for("react.context"),Oe=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case ne:return"Profiler";case F:return"StrictMode";case X:return"Suspense";case V:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case G:return"Portal";case ce:return e.displayName||"Context";case fe:return(e._context.displayName||"Context")+".Consumer";case Oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case w:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var me=Array.isArray,T=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ue=[],ve=-1;function S(e){return{current:e}}function R(e){0>ve||(e.current=ue[ve],ue[ve]=null,ve--)}function B(e,t){ve++,ue[ve]=e.current,e.current=t}var Y=S(null),I=S(null),se=S(null),be=S(null);function Ie(e,t){switch(B(se,t),B(I,e),B(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Dh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Dh(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(Y),B(Y,e)}function He(){R(Y),R(I),R(se)}function Pt(e){e.memoizedState!==null&&B(be,e);var t=Y.current,a=wh(t,e.type);t!==a&&(B(I,e),B(Y,a))}function Ia(e){I.current===e&&(R(Y),R(I)),be.current===e&&(R(be),cr._currentValue=Z)}var _l,xn;function Wt(e){if(_l===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);_l=t&&t[1]||"",xn=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+_l+e+xn}var _a=!1;function Nl(e,t){if(!e||_a)return"";_a=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(z){var A=z}Reflect.construct(e,[],k)}else{try{k.call()}catch(z){A=z}e.call(k.prototype)}}else{try{throw Error()}catch(z){A=z}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(z){if(z&&A&&typeof z.stack=="string")return[z.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),d=i[0],g=i[1];if(d&&g){var b=d.split(`
`),M=g.split(`
`);for(r=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;r<M.length&&!M[r].includes("DetermineComponentFrameRoot");)r++;if(l===b.length||r===M.length)for(l=b.length-1,r=M.length-1;1<=l&&0<=r&&b[l]!==M[r];)r--;for(;1<=l&&0<=r;l--,r--)if(b[l]!==M[r]){if(l!==1||r!==1)do if(l--,r--,0>r||b[l]!==M[r]){var U=`
`+b[l].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=l&&0<=r);break}}}finally{_a=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wt(a):""}function Cl(e,t){switch(e.tag){case 26:case 27:case 5:return Wt(e.type);case 16:return Wt("Lazy");case 13:return e.child!==t&&t!==null?Wt("Suspense Fallback"):Wt("Suspense");case 19:return Wt("SuspenseList");case 0:case 15:return Nl(e.type,!1);case 11:return Nl(e.type.render,!1);case 1:return Nl(e.type,!0);case 31:return Wt("Activity");default:return""}}function jt(e){try{var t="",a=null;do t+=Cl(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var El=Object.prototype.hasOwnProperty,Ml=n.unstable_scheduleCallback,bn=n.unstable_cancelCallback,fi=n.unstable_shouldYield,di=n.unstable_requestPaint,it=n.unstable_now,K=n.unstable_getCurrentPriorityLevel,Pe=n.unstable_ImmediatePriority,mt=n.unstable_UserBlockingPriority,ct=n.unstable_NormalPriority,ra=n.unstable_LowPriority,ft=n.unstable_IdlePriority,Sn=n.log,hi=n.unstable_setDisableYieldValue,jn=null,Ot=null;function Na(e){if(typeof Sn=="function"&&hi(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(jn,e)}catch{}}var _t=Math.clz32?Math.clz32:tp,Iv=Math.log,ep=Math.LN2;function tp(e){return e>>>=0,e===0?32:31-(Iv(e)/ep|0)|0}var Er=256,Mr=262144,Tr=4194304;function el(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ar(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var r=0,i=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=l&134217727;return g!==0?(l=g&~i,l!==0?r=el(l):(d&=g,d!==0?r=el(d):a||(a=g&~e,a!==0&&(r=el(a))))):(g=l&~i,g!==0?r=el(g):d!==0?r=el(d):a||(a=l&~e,a!==0&&(r=el(a)))),r===0?0:t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:r}function On(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ap(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 dc(){var e=Tr;return Tr<<=1,(Tr&62914560)===0&&(Tr=4194304),e}function mi(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function _n(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lp(e,t,a,l,r,i){var d=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 g=e.entanglements,b=e.expirationTimes,M=e.hiddenUpdates;for(a=d&~a;0<a;){var U=31-_t(a),k=1<<U;g[U]=0,b[U]=-1;var A=M[U];if(A!==null)for(M[U]=null,U=0;U<A.length;U++){var z=A[U];z!==null&&(z.lane&=-536870913)}a&=~k}l!==0&&hc(e,l,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(d&~t))}function hc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-_t(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function mc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-_t(a),r=1<<l;r&t|e[l]&t&&(e[l]|=t),a&=~r}}function vc(e,t){var a=t&-t;return a=(a&42)!==0?1:vi(a),(a&(e.suspendedLanes|t))!==0?0:a}function vi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function pi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pc(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:am(e.type))}function yc(e,t){var a=H.p;try{return H.p=e,t()}finally{H.p=a}}var Ca=Math.random().toString(36).slice(2),at="__reactFiber$"+Ca,vt="__reactProps$"+Ca,Tl="__reactContainer$"+Ca,yi="__reactEvents$"+Ca,np="__reactListeners$"+Ca,rp="__reactHandles$"+Ca,gc="__reactResources$"+Ca,Nn="__reactMarker$"+Ca;function gi(e){delete e[at],delete e[vt],delete e[yi],delete e[np],delete e[rp]}function Al(e){var t=e[at];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Tl]||a[at]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Bh(e);e!==null;){if(a=e[at])return a;e=Bh(e)}return t}e=a,a=e.parentNode}return null}function zl(e){if(e=e[at]||e[Tl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Cn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Dl(e){var t=e[gc];return t||(t=e[gc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Nn]=!0}var xc=new Set,bc={};function tl(e,t){wl(e,t),wl(e+"Capture",t)}function wl(e,t){for(bc[e]=t,e=0;e<t.length;e++)xc.add(t[e])}var up=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sc={},jc={};function ip(e){return El.call(jc,e)?!0:El.call(Sc,e)?!1:up.test(e)?jc[e]=!0:(Sc[e]=!0,!1)}function zr(e,t,a){if(ip(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Dr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ua(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sp(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){a=""+d,i.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xi(e){if(!e._valueTracker){var t=Oc(e)?"checked":"value";e._valueTracker=sp(e,t,""+e[t])}}function _c(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Oc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function wr(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 op=/[\n"\\]/g;function Rt(e){return e.replace(op,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bi(e,t,a,l,r,i,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wt(t)):e.value!==""+wt(t)&&(e.value=""+wt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Si(e,d,wt(t)):a!=null?Si(e,d,wt(a)):l!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+wt(g):e.removeAttribute("name")}function Nc(e,t,a,l,r,i,d,g){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){xi(e);return}a=a!=null?""+wt(a):"",t=t!=null?""+wt(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=g?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),xi(e)}function Si(e,t,a){t==="number"&&wr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Rl(e,t,a,l){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&l&&(e[a].defaultSelected=!0)}else{for(a=""+wt(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,l&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Cc(e,t,a){if(t!=null&&(t=""+wt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+wt(a):""}function Ec(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(me(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=wt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),xi(e)}function Ul(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var cp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Mc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||cp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Tc(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var r in t)l=t[r],t.hasOwnProperty(r)&&a[r]!==l&&Mc(e,r,l)}else for(var i in t)t.hasOwnProperty(i)&&Mc(e,i,t[i])}function ji(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),dp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rr(e){return dp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ia(){}var Oi=null;function _i(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ql=null,Ql=null;function Ac(e){var t=zl(e);if(t&&(e=t.stateNode)){var a=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(bi(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var r=l[vt]||null;if(!r)throw Error(o(90));bi(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&_c(l)}break e;case"textarea":Cc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Rl(e,!!a.multiple,t,!1)}}}var Ni=!1;function zc(e,t,a){if(Ni)return e(t,a);Ni=!0;try{var l=e(t);return l}finally{if(Ni=!1,(ql!==null||Ql!==null)&&(Su(),ql&&(t=ql,e=Ql,Ql=ql=null,Ac(t),e)))for(t=0;t<e.length;t++)Ac(e[t])}}function En(e,t){var a=e.stateNode;if(a===null)return null;var l=a[vt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ci=!1;if(sa)try{var Mn={};Object.defineProperty(Mn,"passive",{get:function(){Ci=!0}}),window.addEventListener("test",Mn,Mn),window.removeEventListener("test",Mn,Mn)}catch{Ci=!1}var Ea=null,Ei=null,Ur=null;function Dc(){if(Ur)return Ur;var e,t=Ei,a=t.length,l,r="value"in Ea?Ea.value:Ea.textContent,i=r.length;for(e=0;e<a&&t[e]===r[e];e++);var d=a-e;for(l=1;l<=d&&t[a-l]===r[i-l];l++);return Ur=r.slice(e,1<l?1-l:void 0)}function qr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Qr(){return!0}function wc(){return!1}function pt(e){function t(a,l,r,i,d){this._reactName=a,this._targetInst=r,this.type=l,this.nativeEvent=i,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(i):i[g]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qr:wc,this.isPropagationStopped=wc,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Qr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Qr)},persist:function(){},isPersistent:Qr}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kr=pt(al),Tn=x({},al,{view:0,detail:0}),hp=pt(Tn),Mi,Ti,An,Hr=x({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==An&&(An&&e.type==="mousemove"?(Mi=e.screenX-An.screenX,Ti=e.screenY-An.screenY):Ti=Mi=0,An=e),Mi)},movementY:function(e){return"movementY"in e?e.movementY:Ti}}),Rc=pt(Hr),mp=x({},Hr,{dataTransfer:0}),vp=pt(mp),pp=x({},Tn,{relatedTarget:0}),Ai=pt(pp),yp=x({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),gp=pt(yp),xp=x({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bp=pt(xp),Sp=x({},al,{data:0}),Uc=pt(Sp),jp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Op={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_p={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Np(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_p[e])?!!t[e]:!1}function zi(){return Np}var Cp=x({},Tn,{key:function(e){if(e.key){var t=jp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Op[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zi,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ep=pt(Cp),Mp=x({},Hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qc=pt(Mp),Tp=x({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zi}),Ap=pt(Tp),zp=x({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dp=pt(zp),wp=x({},Hr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rp=pt(wp),Up=x({},al,{newState:0,oldState:0}),qp=pt(Up),Qp=[9,13,27,32],Di=sa&&"CompositionEvent"in window,zn=null;sa&&"documentMode"in document&&(zn=document.documentMode);var kp=sa&&"TextEvent"in window&&!zn,Qc=sa&&(!Di||zn&&8<zn&&11>=zn),kc=" ",Hc=!1;function Bc(e,t){switch(e){case"keyup":return Qp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kl=!1;function Hp(e,t){switch(e){case"compositionend":return Lc(t);case"keypress":return t.which!==32?null:(Hc=!0,kc);case"textInput":return e=t.data,e===kc&&Hc?null:e;default:return null}}function Bp(e,t){if(kl)return e==="compositionend"||!Di&&Bc(e,t)?(e=Dc(),Ur=Ei=Ea=null,kl=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qc&&t.locale!=="ko"?null:t.data;default:return null}}var Lp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lp[e.type]:t==="textarea"}function Yc(e,t,a,l){ql?Ql?Ql.push(l):Ql=[l]:ql=l,t=Mu(t,"onChange"),0<t.length&&(a=new kr("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Dn=null,wn=null;function Gp(e){Ch(e,0)}function Br(e){var t=Cn(e);if(_c(t))return e}function Xc(e,t){if(e==="change")return t}var Vc=!1;if(sa){var wi;if(sa){var Ri="oninput"in document;if(!Ri){var Kc=document.createElement("div");Kc.setAttribute("oninput","return;"),Ri=typeof Kc.oninput=="function"}wi=Ri}else wi=!1;Vc=wi&&(!document.documentMode||9<document.documentMode)}function Zc(){Dn&&(Dn.detachEvent("onpropertychange",Jc),wn=Dn=null)}function Jc(e){if(e.propertyName==="value"&&Br(wn)){var t=[];Yc(t,wn,e,_i(e)),zc(Gp,t)}}function Yp(e,t,a){e==="focusin"?(Zc(),Dn=t,wn=a,Dn.attachEvent("onpropertychange",Jc)):e==="focusout"&&Zc()}function Xp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Br(wn)}function Vp(e,t){if(e==="click")return Br(t)}function Kp(e,t){if(e==="input"||e==="change")return Br(t)}function Zp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:Zp;function Rn(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var r=a[l];if(!El.call(t,r)||!Nt(e[r],t[r]))return!1}return!0}function Fc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $c(e,t){var a=Fc(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Fc(a)}}function Pc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wr(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=wr(e.document)}return t}function Ui(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 Jp=sa&&"documentMode"in document&&11>=document.documentMode,Hl=null,qi=null,Un=null,Qi=!1;function Ic(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Qi||Hl==null||Hl!==wr(l)||(l=Hl,"selectionStart"in l&&Ui(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}),Un&&Rn(Un,l)||(Un=l,l=Mu(qi,"onSelect"),0<l.length&&(t=new kr("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Hl)))}function ll(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Bl={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionrun:ll("Transition","TransitionRun"),transitionstart:ll("Transition","TransitionStart"),transitioncancel:ll("Transition","TransitionCancel"),transitionend:ll("Transition","TransitionEnd")},ki={},ef={};sa&&(ef=document.createElement("div").style,"AnimationEvent"in window||(delete Bl.animationend.animation,delete Bl.animationiteration.animation,delete Bl.animationstart.animation),"TransitionEvent"in window||delete Bl.transitionend.transition);function nl(e){if(ki[e])return ki[e];if(!Bl[e])return e;var t=Bl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in ef)return ki[e]=t[a];return e}var tf=nl("animationend"),af=nl("animationiteration"),lf=nl("animationstart"),Fp=nl("transitionrun"),$p=nl("transitionstart"),Pp=nl("transitioncancel"),nf=nl("transitionend"),rf=new Map,Hi="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hi.push("scrollEnd");function Xt(e,t){rf.set(e,t),tl(t,[e])}var Lr=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)},Ut=[],Ll=0,Bi=0;function Gr(){for(var e=Ll,t=Bi=Ll=0;t<e;){var a=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var r=Ut[t];Ut[t++]=null;var i=Ut[t];if(Ut[t++]=null,l!==null&&r!==null){var d=l.pending;d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r}i!==0&&uf(a,r,i)}}function Yr(e,t,a,l){Ut[Ll++]=e,Ut[Ll++]=t,Ut[Ll++]=a,Ut[Ll++]=l,Bi|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Li(e,t,a,l){return Yr(e,t,a,l),Xr(e)}function rl(e,t){return Yr(e,null,null,t),Xr(e)}function uf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var r=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(r=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,r&&t!==null&&(r=31-_t(a),e=i.hiddenUpdates,l=e[r],l===null?e[r]=[t]:l.push(t),t.lane=a|536870912),i):null}function Xr(e){if(50<lr)throw lr=0,$s=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Gl={};function Wp(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,a,l){return new Wp(e,t,a,l)}function Gi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oa(e,t){var a=e.alternate;return a===null?(a=Ct(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function sf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vr(e,t,a,l,r,i){var d=0;if(l=e,typeof e=="function")Gi(e)&&(d=1);else if(typeof e=="string")d=l0(e,a,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Ct(31,a,t,r),e.elementType=ee,e.lanes=i,e;case _:return ul(a.children,r,i,t);case F:d=8,r|=24;break;case ne:return e=Ct(12,a,t,r|2),e.elementType=ne,e.lanes=i,e;case X:return e=Ct(13,a,t,r),e.elementType=X,e.lanes=i,e;case V:return e=Ct(19,a,t,r),e.elementType=V,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:d=10;break e;case fe:d=9;break e;case Oe:d=11;break e;case w:d=14;break e;case J:d=16,l=null;break e}d=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Ct(d,a,t,r),t.elementType=e,t.type=l,t.lanes=i,t}function ul(e,t,a,l){return e=Ct(7,e,l,t),e.lanes=a,e}function Yi(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function of(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Xi(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var cf=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var a=cf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:jt(t)},cf.set(e,t),t)}return{value:e,source:t,stack:jt(t)}}var Yl=[],Xl=0,Kr=null,qn=0,Qt=[],kt=0,Ma=null,It=1,ea="";function ca(e,t){Yl[Xl++]=qn,Yl[Xl++]=Kr,Kr=e,qn=t}function ff(e,t,a){Qt[kt++]=It,Qt[kt++]=ea,Qt[kt++]=Ma,Ma=e;var l=It;e=ea;var r=32-_t(l)-1;l&=~(1<<r),a+=1;var i=32-_t(t)+r;if(30<i){var d=r-r%5;i=(l&(1<<d)-1).toString(32),l>>=d,r-=d,It=1<<32-_t(t)+r|a<<r|l,ea=i+e}else It=1<<i|a<<r|l,ea=e}function Vi(e){e.return!==null&&(ca(e,1),ff(e,1,0))}function Ki(e){for(;e===Kr;)Kr=Yl[--Xl],Yl[Xl]=null,qn=Yl[--Xl],Yl[Xl]=null;for(;e===Ma;)Ma=Qt[--kt],Qt[kt]=null,ea=Qt[--kt],Qt[kt]=null,It=Qt[--kt],Qt[kt]=null}function df(e,t){Qt[kt++]=It,Qt[kt++]=ea,Qt[kt++]=Ma,It=t.id,ea=t.overflow,Ma=e}var lt=null,Qe=null,Ce=!1,Ta=null,Ht=!1,Zi=Error(o(519));function Aa(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qn(qt(t,e)),Zi}function hf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[at]=e,t[vt]=l,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<rr.length;a++)je(rr[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),Nc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),Ec(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Ah(t.textContent,a)?(l.popover!=null&&(je("beforetoggle",t),je("toggle",t)),l.onScroll!=null&&je("scroll",t),l.onScrollEnd!=null&&je("scrollend",t),l.onClick!=null&&(t.onclick=ia),t=!0):t=!1,t||Aa(e,!0)}function mf(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:lt=lt.return}}function Vl(e){if(e!==lt)return!1;if(!Ce)return mf(e),Ce=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||fo(e.type,e.memoizedProps)),a=!a),a&&Qe&&Aa(e),mf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Qe=Hh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Qe=Hh(e)}else t===27?(t=Qe,Xa(e.type)?(e=yo,yo=null,Qe=e):Qe=t):Qe=lt?Lt(e.stateNode.nextSibling):null;return!0}function il(){Qe=lt=null,Ce=!1}function Ji(){var e=Ta;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),Ta=null),e}function Qn(e){Ta===null?Ta=[e]:Ta.push(e)}var Fi=S(null),sl=null,fa=null;function za(e,t,a){B(Fi,t._currentValue),t._currentValue=a}function da(e){e._currentValue=Fi.current,R(Fi)}function $i(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Pi(e,t,a,l){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var i=r.dependencies;if(i!==null){var d=r.child;i=i.firstContext;e:for(;i!==null;){var g=i;i=r;for(var b=0;b<t.length;b++)if(g.context===t[b]){i.lanes|=a,g=i.alternate,g!==null&&(g.lanes|=a),$i(i.return,a,e),l||(d=null);break e}i=g.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(o(341));d.lanes|=a,i=d.alternate,i!==null&&(i.lanes|=a),$i(d,a,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Kl(e,t,a,l){e=null;for(var r=t,i=!1;r!==null;){if(!i){if((r.flags&524288)!==0)i=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var g=r.type;Nt(r.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(r===be.current){if(d=r.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(cr):e=[cr])}r=r.return}e!==null&&Pi(t,e,a,l),t.flags|=262144}function Zr(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){sl=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return vf(sl,e)}function Jr(e,t){return sl===null&&ol(e),vf(e,t)}function vf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},fa===null){if(e===null)throw Error(o(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return a}var Ip=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},ey=n.unstable_scheduleCallback,ty=n.unstable_NormalPriority,Ze={$$typeof:ce,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wi(){return{controller:new Ip,data:new Map,refCount:0}}function kn(e){e.refCount--,e.refCount===0&&ey(ty,function(){e.controller.abort()})}var Hn=null,Ii=0,Zl=0,Jl=null;function ay(e,t){if(Hn===null){var a=Hn=[];Ii=0,Zl=ao(),Jl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ii++,t.then(pf,pf),t}function pf(){if(--Ii===0&&Hn!==null){Jl!==null&&(Jl.status="fulfilled");var e=Hn;Hn=null,Zl=0,Jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ly(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(l.status="rejected",l.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),l}var yf=T.S;T.S=function(e,t){eh=it(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ay(e,t),yf!==null&&yf(e,t)};var cl=S(null);function es(){var e=cl.current;return e!==null?e:qe.pooledCache}function Fr(e,t){t===null?B(cl,cl.current):B(cl,t.pool)}function gf(){var e=es();return e===null?null:{parent:Ze._currentValue,pool:e}}var Fl=Error(o(460)),ts=Error(o(474)),$r=Error(o(542)),Pr={then:function(){}};function xf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ia,ia),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jf(e),e;default:if(typeof t.status=="string")t.then(ia,ia);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=l}},function(l){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jf(e),e}throw dl=t,Fl}}function fl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(dl=a,Fl):a}}var dl=null;function Sf(){if(dl===null)throw Error(o(459));var e=dl;return dl=null,e}function jf(e){if(e===Fl||e===$r)throw Error(o(483))}var $l=null,Bn=0;function Wr(e){var t=Bn;return Bn+=1,$l===null&&($l=[]),bf($l,e,t)}function Ln(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ir(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Of(e){function t(N,j){if(e){var E=N.deletions;E===null?(N.deletions=[j],N.flags|=16):E.push(j)}}function a(N,j){if(!e)return null;for(;j!==null;)t(N,j),j=j.sibling;return null}function l(N){for(var j=new Map;N!==null;)N.key!==null?j.set(N.key,N):j.set(N.index,N),N=N.sibling;return j}function r(N,j){return N=oa(N,j),N.index=0,N.sibling=null,N}function i(N,j,E){return N.index=E,e?(E=N.alternate,E!==null?(E=E.index,E<j?(N.flags|=67108866,j):E):(N.flags|=67108866,j)):(N.flags|=1048576,j)}function d(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function g(N,j,E,Q){return j===null||j.tag!==6?(j=Yi(E,N.mode,Q),j.return=N,j):(j=r(j,E),j.return=N,j)}function b(N,j,E,Q){var re=E.type;return re===_?U(N,j,E.props.children,Q,E.key):j!==null&&(j.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===J&&fl(re)===j.type)?(j=r(j,E.props),Ln(j,E),j.return=N,j):(j=Vr(E.type,E.key,E.props,null,N.mode,Q),Ln(j,E),j.return=N,j)}function M(N,j,E,Q){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=Xi(E,N.mode,Q),j.return=N,j):(j=r(j,E.children||[]),j.return=N,j)}function U(N,j,E,Q,re){return j===null||j.tag!==7?(j=ul(E,N.mode,Q,re),j.return=N,j):(j=r(j,E),j.return=N,j)}function k(N,j,E){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Yi(""+j,N.mode,E),j.return=N,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case q:return E=Vr(j.type,j.key,j.props,null,N.mode,E),Ln(E,j),E.return=N,E;case G:return j=Xi(j,N.mode,E),j.return=N,j;case J:return j=fl(j),k(N,j,E)}if(me(j)||W(j))return j=ul(j,N.mode,E,null),j.return=N,j;if(typeof j.then=="function")return k(N,Wr(j),E);if(j.$$typeof===ce)return k(N,Jr(N,j),E);Ir(N,j)}return null}function A(N,j,E,Q){var re=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return re!==null?null:g(N,j,""+E,Q);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case q:return E.key===re?b(N,j,E,Q):null;case G:return E.key===re?M(N,j,E,Q):null;case J:return E=fl(E),A(N,j,E,Q)}if(me(E)||W(E))return re!==null?null:U(N,j,E,Q,null);if(typeof E.then=="function")return A(N,j,Wr(E),Q);if(E.$$typeof===ce)return A(N,j,Jr(N,E),Q);Ir(N,E)}return null}function z(N,j,E,Q,re){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return N=N.get(E)||null,g(j,N,""+Q,re);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case q:return N=N.get(Q.key===null?E:Q.key)||null,b(j,N,Q,re);case G:return N=N.get(Q.key===null?E:Q.key)||null,M(j,N,Q,re);case J:return Q=fl(Q),z(N,j,E,Q,re)}if(me(Q)||W(Q))return N=N.get(E)||null,U(j,N,Q,re,null);if(typeof Q.then=="function")return z(N,j,E,Wr(Q),re);if(Q.$$typeof===ce)return z(N,j,E,Jr(j,Q),re);Ir(j,Q)}return null}function P(N,j,E,Q){for(var re=null,Ee=null,te=j,ye=j=0,Ne=null;te!==null&&ye<E.length;ye++){te.index>ye?(Ne=te,te=null):Ne=te.sibling;var Me=A(N,te,E[ye],Q);if(Me===null){te===null&&(te=Ne);break}e&&te&&Me.alternate===null&&t(N,te),j=i(Me,j,ye),Ee===null?re=Me:Ee.sibling=Me,Ee=Me,te=Ne}if(ye===E.length)return a(N,te),Ce&&ca(N,ye),re;if(te===null){for(;ye<E.length;ye++)te=k(N,E[ye],Q),te!==null&&(j=i(te,j,ye),Ee===null?re=te:Ee.sibling=te,Ee=te);return Ce&&ca(N,ye),re}for(te=l(te);ye<E.length;ye++)Ne=z(te,N,ye,E[ye],Q),Ne!==null&&(e&&Ne.alternate!==null&&te.delete(Ne.key===null?ye:Ne.key),j=i(Ne,j,ye),Ee===null?re=Ne:Ee.sibling=Ne,Ee=Ne);return e&&te.forEach(function(Fa){return t(N,Fa)}),Ce&&ca(N,ye),re}function ie(N,j,E,Q){if(E==null)throw Error(o(151));for(var re=null,Ee=null,te=j,ye=j=0,Ne=null,Me=E.next();te!==null&&!Me.done;ye++,Me=E.next()){te.index>ye?(Ne=te,te=null):Ne=te.sibling;var Fa=A(N,te,Me.value,Q);if(Fa===null){te===null&&(te=Ne);break}e&&te&&Fa.alternate===null&&t(N,te),j=i(Fa,j,ye),Ee===null?re=Fa:Ee.sibling=Fa,Ee=Fa,te=Ne}if(Me.done)return a(N,te),Ce&&ca(N,ye),re;if(te===null){for(;!Me.done;ye++,Me=E.next())Me=k(N,Me.value,Q),Me!==null&&(j=i(Me,j,ye),Ee===null?re=Me:Ee.sibling=Me,Ee=Me);return Ce&&ca(N,ye),re}for(te=l(te);!Me.done;ye++,Me=E.next())Me=z(te,N,ye,Me.value,Q),Me!==null&&(e&&Me.alternate!==null&&te.delete(Me.key===null?ye:Me.key),j=i(Me,j,ye),Ee===null?re=Me:Ee.sibling=Me,Ee=Me);return e&&te.forEach(function(m0){return t(N,m0)}),Ce&&ca(N,ye),re}function Ue(N,j,E,Q){if(typeof E=="object"&&E!==null&&E.type===_&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case q:e:{for(var re=E.key;j!==null;){if(j.key===re){if(re=E.type,re===_){if(j.tag===7){a(N,j.sibling),Q=r(j,E.props.children),Q.return=N,N=Q;break e}}else if(j.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===J&&fl(re)===j.type){a(N,j.sibling),Q=r(j,E.props),Ln(Q,E),Q.return=N,N=Q;break e}a(N,j);break}else t(N,j);j=j.sibling}E.type===_?(Q=ul(E.props.children,N.mode,Q,E.key),Q.return=N,N=Q):(Q=Vr(E.type,E.key,E.props,null,N.mode,Q),Ln(Q,E),Q.return=N,N=Q)}return d(N);case G:e:{for(re=E.key;j!==null;){if(j.key===re)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){a(N,j.sibling),Q=r(j,E.children||[]),Q.return=N,N=Q;break e}else{a(N,j);break}else t(N,j);j=j.sibling}Q=Xi(E,N.mode,Q),Q.return=N,N=Q}return d(N);case J:return E=fl(E),Ue(N,j,E,Q)}if(me(E))return P(N,j,E,Q);if(W(E)){if(re=W(E),typeof re!="function")throw Error(o(150));return E=re.call(E),ie(N,j,E,Q)}if(typeof E.then=="function")return Ue(N,j,Wr(E),Q);if(E.$$typeof===ce)return Ue(N,j,Jr(N,E),Q);Ir(N,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,j!==null&&j.tag===6?(a(N,j.sibling),Q=r(j,E),Q.return=N,N=Q):(a(N,j),Q=Yi(E,N.mode,Q),Q.return=N,N=Q),d(N)):a(N,j)}return function(N,j,E,Q){try{Bn=0;var re=Ue(N,j,E,Q);return $l=null,re}catch(te){if(te===Fl||te===$r)throw te;var Ee=Ct(29,te,null,N.mode);return Ee.lanes=Q,Ee.return=N,Ee}finally{}}}var hl=Of(!0),_f=Of(!1),Da=!1;function as(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ls(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ae&2)!==0){var r=l.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),l.pending=t,t=Xr(e),uf(e,null,a),t}return Yr(e,l,t,a),Xr(e)}function Gn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,mc(e,a)}}function ns(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var r=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?r=i=d:i=i.next=d,a=a.next}while(a!==null);i===null?r=i=t:i=i.next=t}else r=i=t;a={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var rs=!1;function Yn(){if(rs){var e=Jl;if(e!==null)throw e}}function Xn(e,t,a,l){rs=!1;var r=e.updateQueue;Da=!1;var i=r.firstBaseUpdate,d=r.lastBaseUpdate,g=r.shared.pending;if(g!==null){r.shared.pending=null;var b=g,M=b.next;b.next=null,d===null?i=M:d.next=M,d=b;var U=e.alternate;U!==null&&(U=U.updateQueue,g=U.lastBaseUpdate,g!==d&&(g===null?U.firstBaseUpdate=M:g.next=M,U.lastBaseUpdate=b))}if(i!==null){var k=r.baseState;d=0,U=M=b=null,g=i;do{var A=g.lane&-536870913,z=A!==g.lane;if(z?(_e&A)===A:(l&A)===A){A!==0&&A===Zl&&(rs=!0),U!==null&&(U=U.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var P=e,ie=g;A=t;var Ue=a;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){k=P.call(Ue,k,A);break e}k=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,A=typeof P=="function"?P.call(Ue,k,A):P,A==null)break e;k=x({},k,A);break e;case 2:Da=!0}}A=g.callback,A!==null&&(e.flags|=64,z&&(e.flags|=8192),z=r.callbacks,z===null?r.callbacks=[A]:z.push(A))}else z={lane:A,tag:g.tag,payload:g.payload,callback:g.callback,next:null},U===null?(M=U=z,b=k):U=U.next=z,d|=A;if(g=g.next,g===null){if(g=r.shared.pending,g===null)break;z=g,g=z.next,z.next=null,r.lastBaseUpdate=z,r.shared.pending=null}}while(!0);U===null&&(b=k),r.baseState=b,r.firstBaseUpdate=M,r.lastBaseUpdate=U,i===null&&(r.shared.lanes=0),Ha|=d,e.lanes=d,e.memoizedState=k}}function Nf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Cf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Nf(a[e],t)}var Pl=S(null),eu=S(0);function Ef(e,t){e=Sa,B(eu,e),B(Pl,t),Sa=e|t.baseLanes}function us(){B(eu,Sa),B(Pl,Pl.current)}function is(){Sa=eu.current,R(Pl),R(eu)}var Et=S(null),Bt=null;function Ua(e){var t=e.alternate;B(Xe,Xe.current&1),B(Et,e),Bt===null&&(t===null||Pl.current!==null||t.memoizedState!==null)&&(Bt=e)}function ss(e){B(Xe,Xe.current),B(Et,e),Bt===null&&(Bt=e)}function Mf(e){e.tag===22?(B(Xe,Xe.current),B(Et,e),Bt===null&&(Bt=e)):qa()}function qa(){B(Xe,Xe.current),B(Et,Et.current)}function Mt(e){R(Et),Bt===e&&(Bt=null),R(Xe)}var Xe=S(0);function tu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||vo(a)||po(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var ha=0,pe=null,we=null,Je=null,au=!1,Wl=!1,ml=!1,lu=0,Vn=0,Il=null,ny=0;function Le(){throw Error(o(321))}function os(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Nt(e[a],t[a]))return!1;return!0}function cs(e,t,a,l,r,i){return ha=i,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?fd:Ns,ml=!1,i=a(l,r),ml=!1,Wl&&(i=Af(t,a,l,r)),Tf(e),i}function Tf(e){T.H=Jn;var t=we!==null&&we.next!==null;if(ha=0,Je=we=pe=null,au=!1,Vn=0,Il=null,t)throw Error(o(300));e===null||Fe||(e=e.dependencies,e!==null&&Zr(e)&&(Fe=!0))}function Af(e,t,a,l){pe=e;var r=0;do{if(Wl&&(Il=null),Vn=0,Wl=!1,25<=r)throw Error(o(301));if(r+=1,Je=we=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}T.H=dd,i=t(a,l)}while(Wl);return i}function ry(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?Kn(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(pe.flags|=1024),t}function fs(){var e=lu!==0;return lu=0,e}function ds(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function hs(e){if(au){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}au=!1}ha=0,Je=we=pe=null,Wl=!1,Vn=lu=0,Il=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?pe.memoizedState=Je=e:Je=Je.next=e,Je}function Ve(){if(we===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Je===null?pe.memoizedState:Je.next;if(t!==null)Je=t,we=e;else{if(e===null)throw pe.alternate===null?Error(o(467)):Error(o(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Je===null?pe.memoizedState=Je=e:Je=Je.next=e}return Je}function nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kn(e){var t=Vn;return Vn+=1,Il===null&&(Il=[]),e=bf(Il,e,t),t=pe,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?fd:Ns),e}function ru(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kn(e);if(e.$$typeof===ce)return nt(e)}throw Error(o(438,String(e)))}function ms(e){var t=null,a=pe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=pe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=nu(),pe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ae;return t.index++,a}function ma(e,t){return typeof t=="function"?t(e):t}function uu(e){var t=Ve();return vs(t,we,e)}function vs(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var r=e.baseQueue,i=l.pending;if(i!==null){if(r!==null){var d=r.next;r.next=i.next,i.next=d}t.baseQueue=r=i,l.pending=null}if(i=e.baseState,r===null)e.memoizedState=i;else{t=r.next;var g=d=null,b=null,M=t,U=!1;do{var k=M.lane&-536870913;if(k!==M.lane?(_e&k)===k:(ha&k)===k){var A=M.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),k===Zl&&(U=!0);else if((ha&A)===A){M=M.next,A===Zl&&(U=!0);continue}else k={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(g=b=k,d=i):b=b.next=k,pe.lanes|=A,Ha|=A;k=M.action,ml&&a(i,k),i=M.hasEagerState?M.eagerState:a(i,k)}else A={lane:k,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(g=b=A,d=i):b=b.next=A,pe.lanes|=k,Ha|=k;M=M.next}while(M!==null&&M!==t);if(b===null?d=i:b.next=g,!Nt(i,e.memoizedState)&&(Fe=!0,U&&(a=Jl,a!==null)))throw a;e.memoizedState=i,e.baseState=d,e.baseQueue=b,l.lastRenderedState=i}return r===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ps(e){var t=Ve(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,r=a.pending,i=t.memoizedState;if(r!==null){a.pending=null;var d=r=r.next;do i=e(i,d.action),d=d.next;while(d!==r);Nt(i,t.memoizedState)||(Fe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function zf(e,t,a){var l=pe,r=Ve(),i=Ce;if(i){if(a===void 0)throw Error(o(407));a=a()}else a=t();var d=!Nt((we||r).memoizedState,a);if(d&&(r.memoizedState=a,Fe=!0),r=r.queue,xs(Rf.bind(null,l,r,e),[e]),r.getSnapshot!==t||d||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,en(9,{destroy:void 0},wf.bind(null,l,r,a,t),null),qe===null)throw Error(o(349));i||(ha&127)!==0||Df(l,t,a)}return a}function Df(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=pe.updateQueue,t===null?(t=nu(),pe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function wf(e,t,a,l){t.value=a,t.getSnapshot=l,Uf(t)&&qf(e)}function Rf(e,t,a){return a(function(){Uf(t)&&qf(e)})}function Uf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Nt(e,a)}catch{return!0}}function qf(e){var t=rl(e,2);t!==null&&St(t,e,2)}function ys(e){var t=dt();if(typeof e=="function"){var a=e;if(e=a(),ml){Na(!0);try{a()}finally{Na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},t}function Qf(e,t,a,l){return e.baseState=a,vs(e,we,typeof l=="function"?l:ma)}function uy(e,t,a,l,r){if(ou(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){i.listeners.push(d)}};T.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,kf(t,i)):(i.next=a.next,t.pending=a.next=i)}}function kf(e,t){var a=t.action,l=t.payload,r=e.state;if(t.isTransition){var i=T.T,d={};T.T=d;try{var g=a(r,l),b=T.S;b!==null&&b(d,g),Hf(e,t,g)}catch(M){gs(e,t,M)}finally{i!==null&&d.types!==null&&(i.types=d.types),T.T=i}}else try{i=a(r,l),Hf(e,t,i)}catch(M){gs(e,t,M)}}function Hf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Bf(e,t,l)},function(l){return gs(e,t,l)}):Bf(e,t,a)}function Bf(e,t,a){t.status="fulfilled",t.value=a,Lf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,kf(e,a)))}function gs(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Lf(t),t=t.next;while(t!==l)}e.action=null}function Lf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gf(e,t){return t}function Yf(e,t){if(Ce){var a=qe.formState;if(a!==null){e:{var l=pe;if(Ce){if(Qe){t:{for(var r=Qe,i=Ht;r.nodeType!==8;){if(!i){r=null;break t}if(r=Lt(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i==="F!"||i==="F"?r:null}if(r){Qe=Lt(r.nextSibling),l=r.data==="F!";break e}}Aa(l)}l=!1}l&&(t=a[0])}}return a=dt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gf,lastRenderedState:t},a.queue=l,a=sd.bind(null,pe,l),l.dispatch=a,l=ys(!1),i=_s.bind(null,pe,!1,l.queue),l=dt(),r={state:t,dispatch:null,action:e,pending:null},l.queue=r,a=uy.bind(null,pe,r,i,a),r.dispatch=a,l.memoizedState=e,[t,a,!1]}function Xf(e){var t=Ve();return Vf(t,we,e)}function Vf(e,t,a){if(t=vs(e,t,Gf)[0],e=uu(ma)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Kn(t)}catch(d){throw d===Fl?$r:d}else l=t;t=Ve();var r=t.queue,i=r.dispatch;return a!==t.memoizedState&&(pe.flags|=2048,en(9,{destroy:void 0},iy.bind(null,r,a),null)),[l,i,e]}function iy(e,t){e.action=t}function Kf(e){var t=Ve(),a=we;if(a!==null)return Vf(t,a,e);Ve(),t=t.memoizedState,a=Ve();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function en(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=pe.updateQueue,t===null&&(t=nu(),pe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Zf(){return Ve().memoizedState}function iu(e,t,a,l){var r=dt();pe.flags|=e,r.memoizedState=en(1|t,{destroy:void 0},a,l===void 0?null:l)}function su(e,t,a,l){var r=Ve();l=l===void 0?null:l;var i=r.memoizedState.inst;we!==null&&l!==null&&os(l,we.memoizedState.deps)?r.memoizedState=en(t,i,a,l):(pe.flags|=e,r.memoizedState=en(1|t,i,a,l))}function Jf(e,t){iu(8390656,8,e,t)}function xs(e,t){su(2048,8,e,t)}function sy(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=nu(),pe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ff(e){var t=Ve().memoizedState;return sy({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function $f(e,t){return su(4,2,e,t)}function Pf(e,t){return su(4,4,e,t)}function Wf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function If(e,t,a){a=a!=null?a.concat([e]):null,su(4,4,Wf.bind(null,t,e),a)}function bs(){}function ed(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&os(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function td(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&os(t,l[1]))return l[0];if(l=e(),ml){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l}function Ss(e,t,a){return a===void 0||(ha&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=ah(),pe.lanes|=e,Ha|=e,a)}function ad(e,t,a,l){return Nt(a,t)?a:Pl.current!==null?(e=Ss(e,a,l),Nt(e,t)||(Fe=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(_e&261930)===0?(Fe=!0,e.memoizedState=a):(e=ah(),pe.lanes|=e,Ha|=e,t)}function ld(e,t,a,l,r){var i=H.p;H.p=i!==0&&8>i?i:8;var d=T.T,g={};T.T=g,_s(e,!1,t,a);try{var b=r(),M=T.S;if(M!==null&&M(g,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var U=ly(b,l);Zn(e,t,U,zt(e))}else Zn(e,t,l,zt(e))}catch(k){Zn(e,t,{then:function(){},status:"rejected",reason:k},zt())}finally{H.p=i,d!==null&&g.types!==null&&(d.types=g.types),T.T=d}}function oy(){}function js(e,t,a,l){if(e.tag!==5)throw Error(o(476));var r=nd(e).queue;ld(e,r,t,Z,a===null?oy:function(){return rd(e),a(l)})}function nd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:Z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rd(e){var t=nd(e);t.next===null&&(t=e.alternate.memoizedState),Zn(e,t.next.queue,{},zt())}function Os(){return nt(cr)}function ud(){return Ve().memoizedState}function id(){return Ve().memoizedState}function cy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=zt();e=wa(a);var l=Ra(t,e,a);l!==null&&(St(l,t,a),Gn(l,t,a)),t={cache:Wi()},e.payload=t;return}t=t.return}}function fy(e,t,a){var l=zt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ou(e)?od(t,a):(a=Li(e,t,a,l),a!==null&&(St(a,e,l),cd(a,t,l)))}function sd(e,t,a){var l=zt();Zn(e,t,a,l)}function Zn(e,t,a,l){var r={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ou(e))od(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var d=t.lastRenderedState,g=i(d,a);if(r.hasEagerState=!0,r.eagerState=g,Nt(g,d))return Yr(e,t,r,0),qe===null&&Gr(),!1}catch{}finally{}if(a=Li(e,t,r,l),a!==null)return St(a,e,l),cd(a,t,l),!0}return!1}function _s(e,t,a,l){if(l={lane:2,revertLane:ao(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ou(e)){if(t)throw Error(o(479))}else t=Li(e,a,l,2),t!==null&&St(t,e,2)}function ou(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function od(e,t){Wl=au=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function cd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,mc(e,a)}}var Jn={readContext:nt,use:ru,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};Jn.useEffectEvent=Le;var fd={readContext:nt,use:ru,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Jf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,iu(4194308,4,Wf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return iu(4194308,4,e,t)},useInsertionEffect:function(e,t){iu(4,2,e,t)},useMemo:function(e,t){var a=dt();t=t===void 0?null:t;var l=e();if(ml){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=dt();if(a!==void 0){var r=a(t);if(ml){Na(!0);try{a(t)}finally{Na(!1)}}}else r=t;return l.memoizedState=l.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},l.queue=e,e=e.dispatch=fy.bind(null,pe,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,a=sd.bind(null,pe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:bs,useDeferredValue:function(e,t){var a=dt();return Ss(a,e,t)},useTransition:function(){var e=ys(!1);return e=ld.bind(null,pe,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=pe,r=dt();if(Ce){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),qe===null)throw Error(o(349));(_e&127)!==0||Df(l,t,a)}r.memoizedState=a;var i={value:a,getSnapshot:t};return r.queue=i,Jf(Rf.bind(null,l,i,e),[e]),l.flags|=2048,en(9,{destroy:void 0},wf.bind(null,l,i,a,t),null),a},useId:function(){var e=dt(),t=qe.identifierPrefix;if(Ce){var a=ea,l=It;a=(l&~(1<<32-_t(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=lu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=ny++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:Yf,useActionState:Yf,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=_s.bind(null,pe,!0,a),a.dispatch=t,[e,t]},useMemoCache:ms,useCacheRefresh:function(){return dt().memoizedState=cy.bind(null,pe)},useEffectEvent:function(e){var t=dt(),a={impl:e};return t.memoizedState=a,function(){if((Ae&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Ns={readContext:nt,use:ru,useCallback:ed,useContext:nt,useEffect:xs,useImperativeHandle:If,useInsertionEffect:$f,useLayoutEffect:Pf,useMemo:td,useReducer:uu,useRef:Zf,useState:function(){return uu(ma)},useDebugValue:bs,useDeferredValue:function(e,t){var a=Ve();return ad(a,we.memoizedState,e,t)},useTransition:function(){var e=uu(ma)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Kn(e),t]},useSyncExternalStore:zf,useId:ud,useHostTransitionStatus:Os,useFormState:Xf,useActionState:Xf,useOptimistic:function(e,t){var a=Ve();return Qf(a,we,e,t)},useMemoCache:ms,useCacheRefresh:id};Ns.useEffectEvent=Ff;var dd={readContext:nt,use:ru,useCallback:ed,useContext:nt,useEffect:xs,useImperativeHandle:If,useInsertionEffect:$f,useLayoutEffect:Pf,useMemo:td,useReducer:ps,useRef:Zf,useState:function(){return ps(ma)},useDebugValue:bs,useDeferredValue:function(e,t){var a=Ve();return we===null?Ss(a,e,t):ad(a,we.memoizedState,e,t)},useTransition:function(){var e=ps(ma)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Kn(e),t]},useSyncExternalStore:zf,useId:ud,useHostTransitionStatus:Os,useFormState:Kf,useActionState:Kf,useOptimistic:function(e,t){var a=Ve();return we!==null?Qf(a,we,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ms,useCacheRefresh:id};dd.useEffectEvent=Ff;function Cs(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Es={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=zt(),r=wa(l);r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,l),t!==null&&(St(t,e,l),Gn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=zt(),r=wa(l);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,l),t!==null&&(St(t,e,l),Gn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=zt(),l=wa(a);l.tag=2,t!=null&&(l.callback=t),t=Ra(e,l,a),t!==null&&(St(t,e,a),Gn(t,e,a))}};function hd(e,t,a,l,r,i,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,d):t.prototype&&t.prototype.isPureReactComponent?!Rn(a,l)||!Rn(r,i):!0}function md(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Es.enqueueReplaceState(t,t.state,null)}function vl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function vd(e){Lr(e)}function pd(e){console.error(e)}function yd(e){Lr(e)}function cu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function gd(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Ms(e,t,a){return a=wa(a),a.tag=3,a.payload={element:null},a.callback=function(){cu(e,t)},a}function xd(e){return e=wa(e),e.tag=3,e}function bd(e,t,a,l){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var i=l.value;e.payload=function(){return r(i)},e.callback=function(){gd(t,a,l)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){gd(t,a,l),typeof r!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function dy(e,t,a,l,r){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Kl(t,a,r,!0),a=Et.current,a!==null){switch(a.tag){case 31:case 13:return Bt===null?ju():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=r,l===Pr?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Is(e,l,r)),!1;case 22:return a.flags|=65536,l===Pr?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Is(e,l,r)),!1}throw Error(o(435,a.tag))}return Is(e,l,r),ju(),!1}if(Ce)return t=Et.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,l!==Zi&&(e=Error(o(422),{cause:l}),Qn(qt(e,a)))):(l!==Zi&&(t=Error(o(423),{cause:l}),Qn(qt(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,l=qt(l,a),r=Ms(e.stateNode,l,r),ns(e,r),Ge!==4&&(Ge=2)),!1;var i=Error(o(520),{cause:l});if(i=qt(i,a),ar===null?ar=[i]:ar.push(i),Ge!==4&&(Ge=2),t===null)return!0;l=qt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Ms(a.stateNode,l,e),ns(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ba===null||!Ba.has(i))))return a.flags|=65536,r&=-r,a.lanes|=r,r=xd(r),bd(r,e,a,l),ns(a,r),!1}a=a.return}while(a!==null);return!1}var Ts=Error(o(461)),Fe=!1;function rt(e,t,a,l){t.child=e===null?_f(t,null,a,l):hl(t,e.child,a,l)}function Sd(e,t,a,l,r){a=a.render;var i=t.ref;if("ref"in l){var d={};for(var g in l)g!=="ref"&&(d[g]=l[g])}else d=l;return ol(t),l=cs(e,t,a,d,i,r),g=fs(),e!==null&&!Fe?(ds(e,t,r),va(e,t,r)):(Ce&&g&&Vi(t),t.flags|=1,rt(e,t,l,r),t.child)}function jd(e,t,a,l,r){if(e===null){var i=a.type;return typeof i=="function"&&!Gi(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Od(e,t,i,l,r)):(e=Vr(a.type,null,l,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Qs(e,r)){var d=i.memoizedProps;if(a=a.compare,a=a!==null?a:Rn,a(d,l)&&e.ref===t.ref)return va(e,t,r)}return t.flags|=1,e=oa(i,l),e.ref=t.ref,e.return=t,t.child=e}function Od(e,t,a,l,r){if(e!==null){var i=e.memoizedProps;if(Rn(i,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=i,Qs(e,r))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,va(e,t,r)}return As(e,t,a,l,r)}function _d(e,t,a,l){var r=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~i}else l=0,t.child=null;return Nd(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fr(t,i!==null?i.cachePool:null),i!==null?Ef(t,i):us(),Mf(t);else return l=t.lanes=536870912,Nd(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(Fr(t,i.cachePool),Ef(t,i),qa(),t.memoizedState=null):(e!==null&&Fr(t,null),us(),qa());return rt(e,t,r,a),t.child}function Fn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Nd(e,t,a,l,r){var i=es();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Fr(t,null),us(),Mf(t),e!==null&&Kl(e,t,l,!0),t.childLanes=r,null}function fu(e,t){return t=hu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Cd(e,t,a){return hl(t,e.child,null,a),e=fu(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function hy(e,t,a){var l=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(l.mode==="hidden")return e=fu(t,l),t.lanes=536870912,Fn(null,e);if(ss(t),(e=Qe)?(e=kh(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ma!==null?{id:It,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=of(e),a.return=t,t.child=a,lt=t,Qe=null)):e=null,e===null)throw Aa(t);return t.lanes=536870912,null}return fu(t,l)}var i=e.memoizedState;if(i!==null){var d=i.dehydrated;if(ss(t),r)if(t.flags&256)t.flags&=-257,t=Cd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Fe||Kl(e,t,a,!1),r=(a&e.childLanes)!==0,Fe||r){if(l=qe,l!==null&&(d=vc(l,a),d!==0&&d!==i.retryLane))throw i.retryLane=d,rl(e,d),St(l,e,d),Ts;ju(),t=Cd(e,t,a)}else e=i.treeContext,Qe=Lt(d.nextSibling),lt=t,Ce=!0,Ta=null,Ht=!1,e!==null&&df(t,e),t=fu(t,l),t.flags|=4096;return t}return e=oa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function du(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function As(e,t,a,l,r){return ol(t),a=cs(e,t,a,l,void 0,r),l=fs(),e!==null&&!Fe?(ds(e,t,r),va(e,t,r)):(Ce&&l&&Vi(t),t.flags|=1,rt(e,t,a,r),t.child)}function Ed(e,t,a,l,r,i){return ol(t),t.updateQueue=null,a=Af(t,l,a,r),Tf(e),l=fs(),e!==null&&!Fe?(ds(e,t,i),va(e,t,i)):(Ce&&l&&Vi(t),t.flags|=1,rt(e,t,a,i),t.child)}function Md(e,t,a,l,r){if(ol(t),t.stateNode===null){var i=Gl,d=a.contextType;typeof d=="object"&&d!==null&&(i=nt(d)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Es,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},as(t),d=a.contextType,i.context=typeof d=="object"&&d!==null?nt(d):Gl,i.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Cs(t,a,d,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(d=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),d!==i.state&&Es.enqueueReplaceState(i,i.state,null),Xn(t,l,i,r),Yn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var g=t.memoizedProps,b=vl(a,g);i.props=b;var M=i.context,U=a.contextType;d=Gl,typeof U=="object"&&U!==null&&(d=nt(U));var k=a.getDerivedStateFromProps;U=typeof k=="function"||typeof i.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,U||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(g||M!==d)&&md(t,i,l,d),Da=!1;var A=t.memoizedState;i.state=A,Xn(t,l,i,r),Yn(),M=t.memoizedState,g||A!==M||Da?(typeof k=="function"&&(Cs(t,a,k,l),M=t.memoizedState),(b=Da||hd(t,a,b,l,A,M,d))?(U||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),i.props=l,i.state=M,i.context=d,l=b):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,ls(e,t),d=t.memoizedProps,U=vl(a,d),i.props=U,k=t.pendingProps,A=i.context,M=a.contextType,b=Gl,typeof M=="object"&&M!==null&&(b=nt(M)),g=a.getDerivedStateFromProps,(M=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d!==k||A!==b)&&md(t,i,l,b),Da=!1,A=t.memoizedState,i.state=A,Xn(t,l,i,r),Yn();var z=t.memoizedState;d!==k||A!==z||Da||e!==null&&e.dependencies!==null&&Zr(e.dependencies)?(typeof g=="function"&&(Cs(t,a,g,l),z=t.memoizedState),(U=Da||hd(t,a,U,l,A,z,b)||e!==null&&e.dependencies!==null&&Zr(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,z,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,z,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),i.props=l,i.state=z,i.context=b,l=U):(typeof i.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,du(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=hl(t,e.child,null,r),t.child=hl(t,null,a,r)):rt(e,t,a,r),t.memoizedState=i.state,e=t.child):e=va(e,t,r),e}function Td(e,t,a,l){return il(),t.flags|=256,rt(e,t,a,l),t.child}var zs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ds(e){return{baseLanes:e,cachePool:gf()}}function ws(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=At),e}function Ad(e,t,a){var l=t.pendingProps,r=!1,i=(t.flags&128)!==0,d;if((d=i)||(d=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(r?Ua(t):qa(),(e=Qe)?(e=kh(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ma!==null?{id:It,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=of(e),a.return=t,t.child=a,lt=t,Qe=null)):e=null,e===null)throw Aa(t);return po(e)?t.lanes=32:t.lanes=536870912,null}var g=l.children;return l=l.fallback,r?(qa(),r=t.mode,g=hu({mode:"hidden",children:g},r),l=ul(l,r,a,null),g.return=t,l.return=t,g.sibling=l,t.child=g,l=t.child,l.memoizedState=Ds(a),l.childLanes=ws(e,d,a),t.memoizedState=zs,Fn(null,l)):(Ua(t),Rs(t,g))}var b=e.memoizedState;if(b!==null&&(g=b.dehydrated,g!==null)){if(i)t.flags&256?(Ua(t),t.flags&=-257,t=Us(e,t,a)):t.memoizedState!==null?(qa(),t.child=e.child,t.flags|=128,t=null):(qa(),g=l.fallback,r=t.mode,l=hu({mode:"visible",children:l.children},r),g=ul(g,r,a,null),g.flags|=2,l.return=t,g.return=t,l.sibling=g,t.child=l,hl(t,e.child,null,a),l=t.child,l.memoizedState=Ds(a),l.childLanes=ws(e,d,a),t.memoizedState=zs,t=Fn(null,l));else if(Ua(t),po(g)){if(d=g.nextSibling&&g.nextSibling.dataset,d)var M=d.dgst;d=M,l=Error(o(419)),l.stack="",l.digest=d,Qn({value:l,source:null,stack:null}),t=Us(e,t,a)}else if(Fe||Kl(e,t,a,!1),d=(a&e.childLanes)!==0,Fe||d){if(d=qe,d!==null&&(l=vc(d,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,rl(e,l),St(d,e,l),Ts;vo(g)||ju(),t=Us(e,t,a)}else vo(g)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Qe=Lt(g.nextSibling),lt=t,Ce=!0,Ta=null,Ht=!1,e!==null&&df(t,e),t=Rs(t,l.children),t.flags|=4096);return t}return r?(qa(),g=l.fallback,r=t.mode,b=e.child,M=b.sibling,l=oa(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,M!==null?g=oa(M,g):(g=ul(g,r,a,null),g.flags|=2),g.return=t,l.return=t,l.sibling=g,t.child=l,Fn(null,l),l=t.child,g=e.child.memoizedState,g===null?g=Ds(a):(r=g.cachePool,r!==null?(b=Ze._currentValue,r=r.parent!==b?{parent:b,pool:b}:r):r=gf(),g={baseLanes:g.baseLanes|a,cachePool:r}),l.memoizedState=g,l.childLanes=ws(e,d,a),t.memoizedState=zs,Fn(e.child,l)):(Ua(t),a=e.child,e=a.sibling,a=oa(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function Rs(e,t){return t=hu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function hu(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Us(e,t,a){return hl(t,e.child,null,a),e=Rs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),$i(e.return,t,a)}function qs(e,t,a,l,r,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:r,treeForkCount:i}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=r,d.treeForkCount=i)}function Dd(e,t,a){var l=t.pendingProps,r=l.revealOrder,i=l.tail;l=l.children;var d=Xe.current,g=(d&2)!==0;if(g?(d=d&1|2,t.flags|=128):d&=1,B(Xe,d),rt(e,t,l,a),l=Ce?qn:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zd(e,a,t);else if(e.tag===19)zd(e,a,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}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&tu(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),qs(t,!1,r,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&tu(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}qs(t,!0,a,null,i,l);break;case"together":qs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function va(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Kl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=oa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=oa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Qs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Zr(e)))}function my(e,t,a){switch(t.tag){case 3:Ie(t,t.stateNode.containerInfo),za(t,Ze,e.memoizedState.cache),il();break;case 27:case 5:Pt(t);break;case 4:Ie(t,t.stateNode.containerInfo);break;case 10:za(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ss(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ua(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Ad(e,t,a):(Ua(t),e=va(e,t,a),e!==null?e.sibling:null);Ua(t);break;case 19:var r=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Kl(e,t,a,!1),l=(a&t.childLanes)!==0),r){if(l)return Dd(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),B(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,_d(e,t,a,t.pendingProps);case 24:za(t,Ze,e.memoizedState.cache)}return va(e,t,a)}function wd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!Qs(e,a)&&(t.flags&128)===0)return Fe=!1,my(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,Ce&&(t.flags&1048576)!==0&&ff(t,qn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=fl(t.elementType),t.type=e,typeof e=="function")Gi(e)?(l=vl(e,l),t.tag=1,t=Md(null,t,e,l,a)):(t.tag=0,t=As(null,t,e,l,a));else{if(e!=null){var r=e.$$typeof;if(r===Oe){t.tag=11,t=Sd(null,t,e,l,a);break e}else if(r===w){t.tag=14,t=jd(null,t,e,l,a);break e}}throw t=de(e)||e,Error(o(306,t,""))}}return t;case 0:return As(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,r=vl(l,t.pendingProps),Md(e,t,l,r,a);case 3:e:{if(Ie(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var i=t.memoizedState;r=i.element,ls(e,t),Xn(t,l,null,a);var d=t.memoizedState;if(l=d.cache,za(t,Ze,l),l!==i.cache&&Pi(t,[Ze],a,!0),Yn(),l=d.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Td(e,t,l,a);break e}else if(l!==r){r=qt(Error(o(424)),t),Qn(r),t=Td(e,t,l,a);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(Qe=Lt(e.firstChild),lt=t,Ce=!0,Ta=null,Ht=!0,a=_f(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(il(),l===r){t=va(e,t,a);break e}rt(e,t,l,a)}t=t.child}return t;case 26:return du(e,t),e===null?(a=Xh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ce||(a=t.type,e=t.pendingProps,l=Tu(se.current).createElement(a),l[at]=t,l[vt]=e,ut(l,a,e),et(l),t.stateNode=l):t.memoizedState=Xh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pt(t),e===null&&Ce&&(l=t.stateNode=Lh(t.type,t.pendingProps,se.current),lt=t,Ht=!0,r=Qe,Xa(t.type)?(yo=r,Qe=Lt(l.firstChild)):Qe=r),rt(e,t,t.pendingProps.children,a),du(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((r=l=Qe)&&(l=Xy(l,t.type,t.pendingProps,Ht),l!==null?(t.stateNode=l,lt=t,Qe=Lt(l.firstChild),Ht=!1,r=!0):r=!1),r||Aa(t)),Pt(t),r=t.type,i=t.pendingProps,d=e!==null?e.memoizedProps:null,l=i.children,fo(r,i)?l=null:d!==null&&fo(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=cs(e,t,ry,null,null,a),cr._currentValue=r),du(e,t),rt(e,t,l,a),t.child;case 6:return e===null&&Ce&&((e=a=Qe)&&(a=Vy(a,t.pendingProps,Ht),a!==null?(t.stateNode=a,lt=t,Qe=null,e=!0):e=!1),e||Aa(t)),null;case 13:return Ad(e,t,a);case 4:return Ie(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=hl(t,null,l,a):rt(e,t,l,a),t.child;case 11:return Sd(e,t,t.type,t.pendingProps,a);case 7:return rt(e,t,t.pendingProps,a),t.child;case 8:return rt(e,t,t.pendingProps.children,a),t.child;case 12:return rt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,za(t,t.type,l.value),rt(e,t,l.children,a),t.child;case 9:return r=t.type._context,l=t.pendingProps.children,ol(t),r=nt(r),l=l(r),t.flags|=1,rt(e,t,l,a),t.child;case 14:return jd(e,t,t.type,t.pendingProps,a);case 15:return Od(e,t,t.type,t.pendingProps,a);case 19:return Dd(e,t,a);case 31:return hy(e,t,a);case 22:return _d(e,t,a,t.pendingProps);case 24:return ol(t),l=nt(Ze),e===null?(r=es(),r===null&&(r=qe,i=Wi(),r.pooledCache=i,i.refCount++,i!==null&&(r.pooledCacheLanes|=a),r=i),t.memoizedState={parent:l,cache:r},as(t),za(t,Ze,r)):((e.lanes&a)!==0&&(ls(e,t),Xn(t,null,null,a),Yn()),r=e.memoizedState,i=t.memoizedState,r.parent!==l?(r={parent:l,cache:l},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),za(t,Ze,l)):(l=i.cache,za(t,Ze,l),l!==r.cache&&Pi(t,[Ze],a,!0))),rt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function pa(e){e.flags|=4}function ks(e,t,a,l,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(uh())e.flags|=8192;else throw dl=Pr,ts}else e.flags&=-16777217}function Rd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fh(t))if(uh())e.flags|=8192;else throw dl=Pr,ts}function mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?dc():536870912,e.lanes|=t,nn|=t)}function $n(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function vy(e,t,a){var l=t.pendingProps;switch(Ki(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),da(Ze),He(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Vl(t)?pa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ji())),ke(t),null;case 26:var r=t.type,i=t.memoizedState;return e===null?(pa(t),i!==null?(ke(t),Rd(t,i)):(ke(t),ks(t,r,null,l,a))):i?i!==e.memoizedState?(pa(t),ke(t),Rd(t,i)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&pa(t),ke(t),ks(t,r,e,l,a)),null;case 27:if(Ia(t),a=se.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&pa(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ke(t),null}e=Y.current,Vl(t)?hf(t):(e=Lh(r,l,a),t.stateNode=e,pa(t))}return ke(t),null;case 5:if(Ia(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&pa(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ke(t),null}if(i=Y.current,Vl(t))hf(t);else{var d=Tu(se.current);switch(i){case 1:i=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:i=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":i=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":i=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":i=d.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?d.createElement(r,{is:l.is}):d.createElement(r)}}i[at]=t,i[vt]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=i;e:switch(ut(i,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&pa(t)}}return ke(t),ks(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&pa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=se.current,Vl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,r=lt,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}e[at]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Ah(e.nodeValue,a)),e||Aa(t,!0)}else e=Tu(e).createTextNode(l),e[at]=t,t.stateNode=e}return ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Vl(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[at]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else a=Ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Vl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[at]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),r=!1}else r=Ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==r&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),mu(t,t.updateQueue),ke(t),null);case 4:return He(),e===null&&uo(t.stateNode.containerInfo),ke(t),null;case 10:return da(t.type),ke(t),null;case 19:if(R(Xe),l=t.memoizedState,l===null)return ke(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)$n(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=tu(e),i!==null){for(t.flags|=128,$n(l,!1),e=i.updateQueue,t.updateQueue=e,mu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)sf(a,e),a=a.sibling;return B(Xe,Xe.current&1|2),Ce&&ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&it()>xu&&(t.flags|=128,r=!0,$n(l,!1),t.lanes=4194304)}else{if(!r)if(e=tu(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,mu(t,e),$n(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!Ce)return ke(t),null}else 2*it()-l.renderingStartTime>xu&&a!==536870912&&(t.flags|=128,r=!0,$n(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=it(),e.sibling=null,a=Xe.current,B(Xe,r?a&1|2:a&1),Ce&&ca(t,l.treeForkCount),e):(ke(t),null);case 22:case 23:return Mt(t),is(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),a=t.updateQueue,a!==null&&mu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&R(cl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),da(Ze),ke(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function py(e,t){switch(Ki(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return da(Ze),He(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ia(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(o(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(Xe),null;case 4:return He(),null;case 10:return da(t.type),null;case 22:case 23:return Mt(t),is(),e!==null&&R(cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return da(Ze),null;case 25:return null;default:return null}}function Ud(e,t){switch(Ki(t),t.tag){case 3:da(Ze),He();break;case 26:case 27:case 5:Ia(t);break;case 4:He();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:R(Xe);break;case 10:da(t.type);break;case 22:case 23:Mt(t),is(),e!==null&&R(cl);break;case 24:da(Ze)}}function Pn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var r=l.next;a=r;do{if((a.tag&e)===e){l=void 0;var i=a.create,d=a.inst;l=i(),d.destroy=l}a=a.next}while(a!==r)}}catch(g){De(t,t.return,g)}}function Qa(e,t,a){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var i=r.next;l=i;do{if((l.tag&e)===e){var d=l.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,r=t;var b=a,M=g;try{M()}catch(U){De(r,b,U)}}}l=l.next}while(l!==i)}}catch(U){De(t,t.return,U)}}function qd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Cf(t,a)}catch(l){De(e,e.return,l)}}}function Qd(e,t,a){a.props=vl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){De(e,t,l)}}function Wn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(r){De(e,t,r)}}function ta(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(r){De(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){De(e,t,r)}else a.current=null}function kd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(r){De(e,e.return,r)}}function Hs(e,t,a){try{var l=e.stateNode;ky(l,e.type,a,t),l[vt]=t}catch(r){De(e,e.return,r)}}function Hd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function Bs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ls(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ia));else if(l!==4&&(l===27&&Xa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ls(e,t,a),e=e.sibling;e!==null;)Ls(e,t,a),e=e.sibling}function vu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(vu(e,t,a),e=e.sibling;e!==null;)vu(e,t,a),e=e.sibling}function Bd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);ut(t,l,a),t[at]=e,t[vt]=a}catch(i){De(e,e.return,i)}}var ya=!1,$e=!1,Gs=!1,Ld=typeof WeakSet=="function"?WeakSet:Set,tt=null;function yy(e,t){if(e=e.containerInfo,oo=qu,e=Wc(e),Ui(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var r=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var d=0,g=-1,b=-1,M=0,U=0,k=e,A=null;t:for(;;){for(var z;k!==a||r!==0&&k.nodeType!==3||(g=d+r),k!==i||l!==0&&k.nodeType!==3||(b=d+l),k.nodeType===3&&(d+=k.nodeValue.length),(z=k.firstChild)!==null;)A=k,k=z;for(;;){if(k===e)break t;if(A===a&&++M===r&&(g=d),A===i&&++U===l&&(b=d),(z=k.nextSibling)!==null)break;k=A,A=k.parentNode}k=z}a=g===-1||b===-1?null:{start:g,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(co={focusedElem:e,selectionRange:a},qu=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,r=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var P=vl(a.type,r);e=l.getSnapshotBeforeUpdate(P,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){De(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)mo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":mo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function Gd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:xa(e,a),l&4&&Pn(5,a);break;case 1:if(xa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){De(a,a.return,d)}else{var r=vl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){De(a,a.return,d)}}l&64&&qd(a),l&512&&Wn(a,a.return);break;case 3:if(xa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Cf(e,t)}catch(d){De(a,a.return,d)}}break;case 27:t===null&&l&4&&Bd(a);case 26:case 5:xa(e,a),t===null&&l&4&&kd(a),l&512&&Wn(a,a.return);break;case 12:xa(e,a);break;case 31:xa(e,a),l&4&&Vd(e,a);break;case 13:xa(e,a),l&4&&Kd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Cy.bind(null,a),Ky(e,a))));break;case 22:if(l=a.memoizedState!==null||ya,!l){t=t!==null&&t.memoizedState!==null||$e,r=ya;var i=$e;ya=l,($e=t)&&!i?ba(e,a,(a.subtreeFlags&8772)!==0):xa(e,a),ya=r,$e=i}break;case 30:break;default:xa(e,a)}}function Yd(e){var t=e.alternate;t!==null&&(e.alternate=null,Yd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,yt=!1;function ga(e,t,a){for(a=a.child;a!==null;)Xd(e,t,a),a=a.sibling}function Xd(e,t,a){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(jn,a)}catch{}switch(a.tag){case 26:$e||ta(a,t),ga(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||ta(a,t);var l=Be,r=yt;Xa(a.type)&&(Be=a.stateNode,yt=!1),ga(e,t,a),ir(a.stateNode),Be=l,yt=r;break;case 5:$e||ta(a,t);case 6:if(l=Be,r=yt,Be=null,ga(e,t,a),Be=l,yt=r,Be!==null)if(yt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(a.stateNode)}catch(i){De(a,t,i)}else try{Be.removeChild(a.stateNode)}catch(i){De(a,t,i)}break;case 18:Be!==null&&(yt?(e=Be,qh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),hn(e)):qh(Be,a.stateNode));break;case 4:l=Be,r=yt,Be=a.stateNode.containerInfo,yt=!0,ga(e,t,a),Be=l,yt=r;break;case 0:case 11:case 14:case 15:Qa(2,a,t),$e||Qa(4,a,t),ga(e,t,a);break;case 1:$e||(ta(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Qd(a,t,l)),ga(e,t,a);break;case 21:ga(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,ga(e,t,a),$e=l;break;default:ga(e,t,a)}}function Vd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hn(e)}catch(a){De(t,t.return,a)}}}function Kd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hn(e)}catch(a){De(t,t.return,a)}}function gy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ld),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ld),t;default:throw Error(o(435,e.tag))}}function pu(e,t){var a=gy(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var r=Ey.bind(null,e,l);l.then(r,r)}})}function gt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var r=a[l],i=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 27:if(Xa(g.type)){Be=g.stateNode,yt=!1;break e}break;case 5:Be=g.stateNode,yt=!1;break e;case 3:case 4:Be=g.stateNode.containerInfo,yt=!0;break e}g=g.return}if(Be===null)throw Error(o(160));Xd(i,d,r),Be=null,yt=!1,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Zd(t,e),t=t.sibling}var Vt=null;function Zd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),xt(e),l&4&&(Qa(3,e,e.return),Pn(3,e),Qa(5,e,e.return));break;case 1:gt(t,e),xt(e),l&512&&($e||a===null||ta(a,a.return)),l&64&&ya&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var r=Vt;if(gt(t,e),xt(e),l&512&&($e||a===null||ta(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(l){case"title":i=r.getElementsByTagName("title")[0],(!i||i[Nn]||i[at]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=r.createElement(l),r.head.insertBefore(i,r.querySelector("head > title"))),ut(i,l,a),i[at]=e,et(i),l=i;break e;case"link":var d=Zh("link","href",r).get(l+(a.href||""));if(d){for(var g=0;g<d.length;g++)if(i=d[g],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(g,1);break t}}i=r.createElement(l),ut(i,l,a),r.head.appendChild(i);break;case"meta":if(d=Zh("meta","content",r).get(l+(a.content||""))){for(g=0;g<d.length;g++)if(i=d[g],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(g,1);break t}}i=r.createElement(l),ut(i,l,a),r.head.appendChild(i);break;default:throw Error(o(468,l))}i[at]=e,et(i),l=i}e.stateNode=l}else Jh(r,e.type,e.stateNode);else e.stateNode=Kh(r,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Jh(r,e.type,e.stateNode):Kh(r,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Hs(e,e.memoizedProps,a.memoizedProps)}break;case 27:gt(t,e),xt(e),l&512&&($e||a===null||ta(a,a.return)),a!==null&&l&4&&Hs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(gt(t,e),xt(e),l&512&&($e||a===null||ta(a,a.return)),e.flags&32){r=e.stateNode;try{Ul(r,"")}catch(P){De(e,e.return,P)}}l&4&&e.stateNode!=null&&(r=e.memoizedProps,Hs(e,r,a!==null?a.memoizedProps:r)),l&1024&&(Gs=!0);break;case 6:if(gt(t,e),xt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(P){De(e,e.return,P)}}break;case 3:if(Du=null,r=Vt,Vt=Au(t.containerInfo),gt(t,e),Vt=r,xt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{hn(t.containerInfo)}catch(P){De(e,e.return,P)}Gs&&(Gs=!1,Jd(e));break;case 4:l=Vt,Vt=Au(e.stateNode.containerInfo),gt(t,e),xt(e),Vt=l;break;case 12:gt(t,e),xt(e);break;case 31:gt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,pu(e,l)));break;case 13:gt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(gu=it()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,pu(e,l)));break;case 22:r=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,M=ya,U=$e;if(ya=M||r,$e=U||b,gt(t,e),$e=U,ya=M,xt(e),l&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||b||ya||$e||pl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(i=b.stateNode,r)d=i.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{g=b.stateNode;var k=b.memoizedProps.style,A=k!=null&&k.hasOwnProperty("display")?k.display:null;g.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(P){De(b,b.return,P)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=r?"":b.memoizedProps}catch(P){De(b,b.return,P)}}}else if(t.tag===18){if(a===null){b=t;try{var z=b.stateNode;r?Qh(z,!0):Qh(b.stateNode,!1)}catch(P){De(b,b.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,pu(e,a))));break;case 19:gt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,pu(e,l)));break;case 30:break;case 21:break;default:gt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Hd(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var r=a.stateNode,i=Bs(e);vu(e,i,r);break;case 5:var d=a.stateNode;a.flags&32&&(Ul(d,""),a.flags&=-33);var g=Bs(e);vu(e,g,d);break;case 3:case 4:var b=a.stateNode.containerInfo,M=Bs(e);Ls(e,M,b);break;default:throw Error(o(161))}}catch(U){De(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Gd(e,t.alternate,t),t=t.sibling}function pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qa(4,t,t.return),pl(t);break;case 1:ta(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Qd(t,t.return,a),pl(t);break;case 27:ir(t.stateNode);case 26:case 5:ta(t,t.return),pl(t);break;case 22:t.memoizedState===null&&pl(t);break;case 30:pl(t);break;default:pl(t)}e=e.sibling}}function ba(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,r=e,i=t,d=i.flags;switch(i.tag){case 0:case 11:case 15:ba(r,i,a),Pn(4,i);break;case 1:if(ba(r,i,a),l=i,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(M){De(l,l.return,M)}if(l=i,r=l.updateQueue,r!==null){var g=l.stateNode;try{var b=r.shared.hiddenCallbacks;if(b!==null)for(r.shared.hiddenCallbacks=null,r=0;r<b.length;r++)Nf(b[r],g)}catch(M){De(l,l.return,M)}}a&&d&64&&qd(i),Wn(i,i.return);break;case 27:Bd(i);case 26:case 5:ba(r,i,a),a&&l===null&&d&4&&kd(i),Wn(i,i.return);break;case 12:ba(r,i,a);break;case 31:ba(r,i,a),a&&d&4&&Vd(r,i);break;case 13:ba(r,i,a),a&&d&4&&Kd(r,i);break;case 22:i.memoizedState===null&&ba(r,i,a),Wn(i,i.return);break;case 30:break;default:ba(r,i,a)}t=t.sibling}}function Ys(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&kn(a))}function Xs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kn(e))}function Kt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Fd(e,t,a,l),t=t.sibling}function Fd(e,t,a,l){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,a,l),r&2048&&Pn(9,t);break;case 1:Kt(e,t,a,l);break;case 3:Kt(e,t,a,l),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kn(e)));break;case 12:if(r&2048){Kt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,d=i.id,g=i.onPostCommit;typeof g=="function"&&g(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){De(t,t.return,b)}}else Kt(e,t,a,l);break;case 31:Kt(e,t,a,l);break;case 13:Kt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,d=t.alternate,t.memoizedState!==null?i._visibility&2?Kt(e,t,a,l):In(e,t):i._visibility&2?Kt(e,t,a,l):(i._visibility|=2,tn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Ys(d,t);break;case 24:Kt(e,t,a,l),r&2048&&Xs(t.alternate,t);break;default:Kt(e,t,a,l)}}function tn(e,t,a,l,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,d=t,g=a,b=l,M=d.flags;switch(d.tag){case 0:case 11:case 15:tn(i,d,g,b,r),Pn(8,d);break;case 23:break;case 22:var U=d.stateNode;d.memoizedState!==null?U._visibility&2?tn(i,d,g,b,r):In(i,d):(U._visibility|=2,tn(i,d,g,b,r)),r&&M&2048&&Ys(d.alternate,d);break;case 24:tn(i,d,g,b,r),r&&M&2048&&Xs(d.alternate,d);break;default:tn(i,d,g,b,r)}t=t.sibling}}function In(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,r=l.flags;switch(l.tag){case 22:In(a,l),r&2048&&Ys(l.alternate,l);break;case 24:In(a,l),r&2048&&Xs(l.alternate,l);break;default:In(a,l)}t=t.sibling}}var er=8192;function an(e,t,a){if(e.subtreeFlags&er)for(e=e.child;e!==null;)$d(e,t,a),e=e.sibling}function $d(e,t,a){switch(e.tag){case 26:an(e,t,a),e.flags&er&&e.memoizedState!==null&&n0(a,Vt,e.memoizedState,e.memoizedProps);break;case 5:an(e,t,a);break;case 3:case 4:var l=Vt;Vt=Au(e.stateNode.containerInfo),an(e,t,a),Vt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=er,er=16777216,an(e,t,a),er=l):an(e,t,a));break;default:an(e,t,a)}}function Pd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function tr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];tt=l,Id(l,e)}Pd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Wd(e),e=e.sibling}function Wd(e){switch(e.tag){case 0:case 11:case 15:tr(e),e.flags&2048&&Qa(9,e,e.return);break;case 3:tr(e);break;case 12:tr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,yu(e)):tr(e);break;default:tr(e)}}function yu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];tt=l,Id(l,e)}Pd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qa(8,t,t.return),yu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,yu(t));break;default:yu(t)}e=e.sibling}}function Id(e,t){for(;tt!==null;){var a=tt;switch(a.tag){case 0:case 11:case 15:Qa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:kn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,tt=l;else e:for(a=e;tt!==null;){l=tt;var r=l.sibling,i=l.return;if(Yd(l),l===a){tt=null;break e}if(r!==null){r.return=i,tt=r;break e}tt=i}}}var xy={getCacheForType:function(e){var t=nt(Ze),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return nt(Ze).controller.signal}},by=typeof WeakMap=="function"?WeakMap:Map,Ae=0,qe=null,Se=null,_e=0,ze=0,Tt=null,ka=!1,ln=!1,Vs=!1,Sa=0,Ge=0,Ha=0,yl=0,Ks=0,At=0,nn=0,ar=null,bt=null,Zs=!1,gu=0,eh=0,xu=1/0,bu=null,Ba=null,We=0,La=null,rn=null,ja=0,Js=0,Fs=null,th=null,lr=0,$s=null;function zt(){return(Ae&2)!==0&&_e!==0?_e&-_e:T.T!==null?ao():pc()}function ah(){if(At===0)if((_e&536870912)===0||Ce){var e=Mr;Mr<<=1,(Mr&3932160)===0&&(Mr=262144),At=e}else At=536870912;return e=Et.current,e!==null&&(e.flags|=32),At}function St(e,t,a){(e===qe&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(un(e,0),Ga(e,_e,At,!1)),_n(e,a),((Ae&2)===0||e!==qe)&&(e===qe&&((Ae&2)===0&&(yl|=a),Ge===4&&Ga(e,_e,At,!1)),aa(e))}function lh(e,t,a){if((Ae&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||On(e,t),r=l?Oy(e,t):Ws(e,t,!0),i=l;do{if(r===0){ln&&!l&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!Sy(a)){r=Ws(e,t,!1),i=!1;continue}if(r===2){if(i=t,e.errorRecoveryDisabledLanes&i)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;r=ar;var b=g.current.memoizedState.isDehydrated;if(b&&(un(g,d).flags|=256),d=Ws(g,d,!1),d!==2){if(Vs&&!b){g.errorRecoveryDisabledLanes|=i,yl|=i,r=4;break e}i=bt,bt=r,i!==null&&(bt===null?bt=i:bt.push.apply(bt,i))}r=d}if(i=!1,r!==2)continue}}if(r===1){un(e,0),Ga(e,t,0,!0);break}e:{switch(l=e,i=r,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ga(l,t,At,!ka);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=gu+300-it(),10<r)){if(Ga(l,t,At,!ka),Ar(l,0,!0)!==0)break e;ja=t,l.timeoutHandle=Rh(nh.bind(null,l,a,bt,bu,Zs,t,At,yl,nn,ka,i,"Throttled",-0,0),r);break e}nh(l,a,bt,bu,Zs,t,At,yl,nn,ka,i,null,-0,0)}}break}while(!0);aa(e)}function nh(e,t,a,l,r,i,d,g,b,M,U,k,A,z){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ia},$d(t,i,k);var P=(i&62914560)===i?gu-it():(i&4194048)===i?eh-it():0;if(P=r0(k,P),P!==null){ja=i,e.cancelPendingCommit=P(dh.bind(null,e,t,i,a,l,r,d,g,b,U,k,null,A,z)),Ga(e,i,d,!M);return}}dh(e,t,i,a,l,r,d,g,b)}function Sy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var r=a[l],i=r.getSnapshot;r=r.value;try{if(!Nt(i(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ga(e,t,a,l){t&=~Ks,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var r=t;0<r;){var i=31-_t(r),d=1<<i;l[i]=-1,r&=~d}a!==0&&hc(e,a,t)}function Su(){return(Ae&6)===0?(nr(0),!1):!0}function Ps(){if(Se!==null){if(ze===0)var e=Se.return;else e=Se,fa=sl=null,hs(e),$l=null,Bn=0,e=Se;for(;e!==null;)Ud(e.alternate,e),e=e.return;Se=null}}function un(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ly(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ja=0,Ps(),qe=e,Se=a=oa(e.current,null),_e=t,ze=0,Tt=null,ka=!1,ln=On(e,t),Vs=!1,nn=At=Ks=yl=Ha=Ge=0,bt=ar=null,Zs=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var r=31-_t(l),i=1<<r;t|=e[r],l&=~i}return Sa=t,Gr(),a}function rh(e,t){pe=null,T.H=Jn,t===Fl||t===$r?(t=Sf(),ze=3):t===ts?(t=Sf(),ze=4):ze=t===Ts?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tt=t,Se===null&&(Ge=1,cu(e,qt(t,e.current)))}function uh(){var e=Et.current;return e===null?!0:(_e&4194048)===_e?Bt===null:(_e&62914560)===_e||(_e&536870912)!==0?e===Bt:!1}function ih(){var e=T.H;return T.H=Jn,e===null?Jn:e}function sh(){var e=T.A;return T.A=xy,e}function ju(){Ge=4,ka||(_e&4194048)!==_e&&Et.current!==null||(ln=!0),(Ha&134217727)===0&&(yl&134217727)===0||qe===null||Ga(qe,_e,At,!1)}function Ws(e,t,a){var l=Ae;Ae|=2;var r=ih(),i=sh();(qe!==e||_e!==t)&&(bu=null,un(e,t)),t=!1;var d=Ge;e:do try{if(ze!==0&&Se!==null){var g=Se,b=Tt;switch(ze){case 8:Ps(),d=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(t=!0);var M=ze;if(ze=0,Tt=null,sn(e,g,b,M),a&&ln){d=0;break e}break;default:M=ze,ze=0,Tt=null,sn(e,g,b,M)}}jy(),d=Ge;break}catch(U){rh(e,U)}while(!0);return t&&e.shellSuspendCounter++,fa=sl=null,Ae=l,T.H=r,T.A=i,Se===null&&(qe=null,_e=0,Gr()),d}function jy(){for(;Se!==null;)oh(Se)}function Oy(e,t){var a=Ae;Ae|=2;var l=ih(),r=sh();qe!==e||_e!==t?(bu=null,xu=it()+500,un(e,t)):ln=On(e,t);e:do try{if(ze!==0&&Se!==null){t=Se;var i=Tt;t:switch(ze){case 1:ze=0,Tt=null,sn(e,t,i,1);break;case 2:case 9:if(xf(i)){ze=0,Tt=null,ch(t);break}t=function(){ze!==2&&ze!==9||qe!==e||(ze=7),aa(e)},i.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:xf(i)?(ze=0,Tt=null,ch(t)):(ze=0,Tt=null,sn(e,t,i,7));break;case 5:var d=null;switch(Se.tag){case 26:d=Se.memoizedState;case 5:case 27:var g=Se;if(d?Fh(d):g.stateNode.complete){ze=0,Tt=null;var b=g.sibling;if(b!==null)Se=b;else{var M=g.return;M!==null?(Se=M,Ou(M)):Se=null}break t}}ze=0,Tt=null,sn(e,t,i,5);break;case 6:ze=0,Tt=null,sn(e,t,i,6);break;case 8:Ps(),Ge=6;break e;default:throw Error(o(462))}}_y();break}catch(U){rh(e,U)}while(!0);return fa=sl=null,T.H=l,T.A=r,Ae=a,Se!==null?0:(qe=null,_e=0,Gr(),Ge)}function _y(){for(;Se!==null&&!fi();)oh(Se)}function oh(e){var t=wd(e.alternate,e,Sa);e.memoizedProps=e.pendingProps,t===null?Ou(e):Se=t}function ch(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ed(a,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=Ed(a,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:hs(t);default:Ud(a,t),t=Se=sf(t,Sa),t=wd(a,t,Sa)}e.memoizedProps=e.pendingProps,t===null?Ou(e):Se=t}function sn(e,t,a,l){fa=sl=null,hs(t),$l=null,Bn=0;var r=t.return;try{if(dy(e,r,t,a,_e)){Ge=1,cu(e,qt(a,e.current)),Se=null;return}}catch(i){if(r!==null)throw Se=r,i;Ge=1,cu(e,qt(a,e.current)),Se=null;return}t.flags&32768?(Ce||l===1?e=!0:ln||(_e&536870912)!==0?e=!1:(ka=e=!0,(l===2||l===9||l===3||l===6)&&(l=Et.current,l!==null&&l.tag===13&&(l.flags|=16384))),fh(t,e)):Ou(t)}function Ou(e){var t=e;do{if((t.flags&32768)!==0){fh(t,ka);return}e=t.return;var a=vy(t.alternate,t,Sa);if(a!==null){Se=a;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ge===0&&(Ge=5)}function fh(e,t){do{var a=py(e.alternate,e);if(a!==null){a.flags&=32767,Se=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=a}while(e!==null);Ge=6,Se=null}function dh(e,t,a,l,r,i,d,g,b){e.cancelPendingCommit=null;do _u();while(We!==0);if((Ae&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=Bi,lp(e,a,i,d,g,b),e===qe&&(Se=qe=null,_e=0),rn=t,La=e,ja=a,Js=i,Fs=r,th=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,My(ct,function(){return yh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,r=H.p,H.p=2,d=Ae,Ae|=4;try{yy(e,t,a)}finally{Ae=d,H.p=r,T.T=l}}We=1,hh(),mh(),vh()}}function hh(){if(We===1){We=0;var e=La,t=rn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null;var l=H.p;H.p=2;var r=Ae;Ae|=4;try{Zd(t,e);var i=co,d=Wc(e.containerInfo),g=i.focusedElem,b=i.selectionRange;if(d!==g&&g&&g.ownerDocument&&Pc(g.ownerDocument.documentElement,g)){if(b!==null&&Ui(g)){var M=b.start,U=b.end;if(U===void 0&&(U=M),"selectionStart"in g)g.selectionStart=M,g.selectionEnd=Math.min(U,g.value.length);else{var k=g.ownerDocument||document,A=k&&k.defaultView||window;if(A.getSelection){var z=A.getSelection(),P=g.textContent.length,ie=Math.min(b.start,P),Ue=b.end===void 0?ie:Math.min(b.end,P);!z.extend&&ie>Ue&&(d=Ue,Ue=ie,ie=d);var N=$c(g,ie),j=$c(g,Ue);if(N&&j&&(z.rangeCount!==1||z.anchorNode!==N.node||z.anchorOffset!==N.offset||z.focusNode!==j.node||z.focusOffset!==j.offset)){var E=k.createRange();E.setStart(N.node,N.offset),z.removeAllRanges(),ie>Ue?(z.addRange(E),z.extend(j.node,j.offset)):(E.setEnd(j.node,j.offset),z.addRange(E))}}}}for(k=[],z=g;z=z.parentNode;)z.nodeType===1&&k.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<k.length;g++){var Q=k[g];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}qu=!!oo,co=oo=null}finally{Ae=r,H.p=l,T.T=a}}e.current=t,We=2}}function mh(){if(We===2){We=0;var e=La,t=rn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=T.T,T.T=null;var l=H.p;H.p=2;var r=Ae;Ae|=4;try{Gd(e,t.alternate,t)}finally{Ae=r,H.p=l,T.T=a}}We=3}}function vh(){if(We===4||We===3){We=0,di();var e=La,t=rn,a=ja,l=th;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,rn=La=null,ph(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Ba=null),pi(a),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(jn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=T.T,r=H.p,H.p=2,T.T=null;try{for(var i=e.onRecoverableError,d=0;d<l.length;d++){var g=l[d];i(g.value,{componentStack:g.stack})}}finally{T.T=t,H.p=r}}(ja&3)!==0&&_u(),aa(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===$s?lr++:(lr=0,$s=e):lr=0,nr(0)}}function ph(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,kn(t)))}function _u(){return hh(),mh(),vh(),yh()}function yh(){if(We!==5)return!1;var e=La,t=Js;Js=0;var a=pi(ja),l=T.T,r=H.p;try{H.p=32>a?32:a,T.T=null,a=Fs,Fs=null;var i=La,d=ja;if(We=0,rn=La=null,ja=0,(Ae&6)!==0)throw Error(o(331));var g=Ae;if(Ae|=4,Wd(i.current),Fd(i,i.current,d,a),Ae=g,nr(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(jn,i)}catch{}return!0}finally{H.p=r,T.T=l,ph(e,t)}}function gh(e,t,a){t=qt(a,t),t=Ms(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(_n(e,2),aa(e))}function De(e,t,a){if(e.tag===3)gh(e,e,a);else for(;t!==null;){if(t.tag===3){gh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ba===null||!Ba.has(l))){e=qt(a,e),a=xd(2),l=Ra(t,a,2),l!==null&&(bd(a,l,t,e),_n(l,2),aa(l));break}}t=t.return}}function Is(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new by;var r=new Set;l.set(t,r)}else r=l.get(t),r===void 0&&(r=new Set,l.set(t,r));r.has(a)||(Vs=!0,r.add(a),e=Ny.bind(null,e,t,a),t.then(e,e))}function Ny(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,qe===e&&(_e&a)===a&&(Ge===4||Ge===3&&(_e&62914560)===_e&&300>it()-gu?(Ae&2)===0&&un(e,0):Ks|=a,nn===_e&&(nn=0)),aa(e)}function xh(e,t){t===0&&(t=dc()),e=rl(e,t),e!==null&&(_n(e,t),aa(e))}function Cy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),xh(e,a)}function Ey(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),xh(e,a)}function My(e,t){return Ml(e,t)}var Nu=null,on=null,eo=!1,Cu=!1,to=!1,Ya=0;function aa(e){e!==on&&e.next===null&&(on===null?Nu=on=e:on=on.next=e),Cu=!0,eo||(eo=!0,Ay())}function nr(e,t){if(!to&&Cu){to=!0;do for(var a=!1,l=Nu;l!==null;){if(e!==0){var r=l.pendingLanes;if(r===0)var i=0;else{var d=l.suspendedLanes,g=l.pingedLanes;i=(1<<31-_t(42|e)+1)-1,i&=r&~(d&~g),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Oh(l,i))}else i=_e,i=Ar(l,l===qe?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||On(l,i)||(a=!0,Oh(l,i));l=l.next}while(a);to=!1}}function Ty(){bh()}function bh(){Cu=eo=!1;var e=0;Ya!==0&&By()&&(e=Ya);for(var t=it(),a=null,l=Nu;l!==null;){var r=l.next,i=Sh(l,t);i===0?(l.next=null,a===null?Nu=r:a.next=r,r===null&&(on=a)):(a=l,(e!==0||(i&3)!==0)&&(Cu=!0)),l=r}We!==0&&We!==5||nr(e),Ya!==0&&(Ya=0)}function Sh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var d=31-_t(i),g=1<<d,b=r[d];b===-1?((g&a)===0||(g&l)!==0)&&(r[d]=ap(g,t)):b<=t&&(e.expiredLanes|=g),i&=~g}if(t=qe,a=_e,a=Ar(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&bn(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||On(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&bn(l),pi(a)){case 2:case 8:a=mt;break;case 32:a=ct;break;case 268435456:a=ft;break;default:a=ct}return l=jh.bind(null,e),a=Ml(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&bn(l),e.callbackPriority=2,e.callbackNode=null,2}function jh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(_u()&&e.callbackNode!==a)return null;var l=_e;return l=Ar(e,e===qe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(lh(e,l,t),Sh(e,it()),e.callbackNode!=null&&e.callbackNode===a?jh.bind(null,e):null)}function Oh(e,t){if(_u())return null;lh(e,t,!0)}function Ay(){Gy(function(){(Ae&6)!==0?Ml(Pe,Ty):bh()})}function ao(){if(Ya===0){var e=Zl;e===0&&(e=Er,Er<<=1,(Er&261888)===0&&(Er=256)),Ya=e}return Ya}function _h(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rr(""+e)}function Nh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function zy(e,t,a,l,r){if(t==="submit"&&a&&a.stateNode===r){var i=_h((r[vt]||null).action),d=l.submitter;d&&(t=(t=d[vt]||null)?_h(t.formAction):d.getAttribute("formAction"),t!==null&&(i=t,d=null));var g=new kr("action","action",null,l,r);e.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ya!==0){var b=d?Nh(r,d):new FormData(r);js(a,{pending:!0,data:b,method:r.method,action:i},null,b)}}else typeof i=="function"&&(g.preventDefault(),b=d?Nh(r,d):new FormData(r),js(a,{pending:!0,data:b,method:r.method,action:i},i,b))},currentTarget:r}]})}}for(var lo=0;lo<Hi.length;lo++){var no=Hi[lo],Dy=no.toLowerCase(),wy=no[0].toUpperCase()+no.slice(1);Xt(Dy,"on"+wy)}Xt(tf,"onAnimationEnd"),Xt(af,"onAnimationIteration"),Xt(lf,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(Fp,"onTransitionRun"),Xt($p,"onTransitionStart"),Xt(Pp,"onTransitionCancel"),Xt(nf,"onTransitionEnd"),wl("onMouseEnter",["mouseout","mouseover"]),wl("onMouseLeave",["mouseout","mouseover"]),wl("onPointerEnter",["pointerout","pointerover"]),wl("onPointerLeave",["pointerout","pointerover"]),tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tl("onBeforeInput",["compositionend","keypress","textInput","paste"]),tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ry=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rr));function Ch(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],r=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var d=l.length-1;0<=d;d--){var g=l[d],b=g.instance,M=g.currentTarget;if(g=g.listener,b!==i&&r.isPropagationStopped())break e;i=g,r.currentTarget=M;try{i(r)}catch(U){Lr(U)}r.currentTarget=null,i=b}else for(d=0;d<l.length;d++){if(g=l[d],b=g.instance,M=g.currentTarget,g=g.listener,b!==i&&r.isPropagationStopped())break e;i=g,r.currentTarget=M;try{i(r)}catch(U){Lr(U)}r.currentTarget=null,i=b}}}}function je(e,t){var a=t[yi];a===void 0&&(a=t[yi]=new Set);var l=e+"__bubble";a.has(l)||(Eh(t,e,2,!1),a.add(l))}function ro(e,t,a){var l=0;t&&(l|=4),Eh(a,e,l,t)}var Eu="_reactListening"+Math.random().toString(36).slice(2);function uo(e){if(!e[Eu]){e[Eu]=!0,xc.forEach(function(a){a!=="selectionchange"&&(Ry.has(a)||ro(a,!1,e),ro(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Eu]||(t[Eu]=!0,ro("selectionchange",!1,t))}}function Eh(e,t,a,l){switch(am(t)){case 2:var r=s0;break;case 8:r=o0;break;default:r=jo}a=r.bind(null,t,a,e),r=void 0,!Ci||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),l?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function io(e,t,a,l,r){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var g=l.stateNode.containerInfo;if(g===r)break;if(d===4)for(d=l.return;d!==null;){var b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;g!==null;){if(d=Al(g),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){l=i=d;continue e}g=g.parentNode}}l=l.return}zc(function(){var M=i,U=_i(a),k=[];e:{var A=rf.get(e);if(A!==void 0){var z=kr,P=e;switch(e){case"keypress":if(qr(a)===0)break e;case"keydown":case"keyup":z=Ep;break;case"focusin":P="focus",z=Ai;break;case"focusout":P="blur",z=Ai;break;case"beforeblur":case"afterblur":z=Ai;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Rc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=vp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Ap;break;case tf:case af:case lf:z=gp;break;case nf:z=Dp;break;case"scroll":case"scrollend":z=hp;break;case"wheel":z=Rp;break;case"copy":case"cut":case"paste":z=bp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=qc;break;case"toggle":case"beforetoggle":z=qp}var ie=(t&4)!==0,Ue=!ie&&(e==="scroll"||e==="scrollend"),N=ie?A!==null?A+"Capture":null:A;ie=[];for(var j=M,E;j!==null;){var Q=j;if(E=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||E===null||N===null||(Q=En(j,N),Q!=null&&ie.push(ur(j,Q,E))),Ue)break;j=j.return}0<ie.length&&(A=new z(A,P,null,a,U),k.push({event:A,listeners:ie}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",A&&a!==Oi&&(P=a.relatedTarget||a.fromElement)&&(Al(P)||P[Tl]))break e;if((z||A)&&(A=U.window===U?U:(A=U.ownerDocument)?A.defaultView||A.parentWindow:window,z?(P=a.relatedTarget||a.toElement,z=M,P=P?Al(P):null,P!==null&&(Ue=h(P),ie=P.tag,P!==Ue||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(z=null,P=M),z!==P)){if(ie=Rc,Q="onMouseLeave",N="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=qc,Q="onPointerLeave",N="onPointerEnter",j="pointer"),Ue=z==null?A:Cn(z),E=P==null?A:Cn(P),A=new ie(Q,j+"leave",z,a,U),A.target=Ue,A.relatedTarget=E,Q=null,Al(U)===M&&(ie=new ie(N,j+"enter",P,a,U),ie.target=E,ie.relatedTarget=Ue,Q=ie),Ue=Q,z&&P)t:{for(ie=Uy,N=z,j=P,E=0,Q=N;Q;Q=ie(Q))E++;Q=0;for(var re=j;re;re=ie(re))Q++;for(;0<E-Q;)N=ie(N),E--;for(;0<Q-E;)j=ie(j),Q--;for(;E--;){if(N===j||j!==null&&N===j.alternate){ie=N;break t}N=ie(N),j=ie(j)}ie=null}else ie=null;z!==null&&Mh(k,A,z,ie,!1),P!==null&&Ue!==null&&Mh(k,Ue,P,ie,!0)}}e:{if(A=M?Cn(M):window,z=A.nodeName&&A.nodeName.toLowerCase(),z==="select"||z==="input"&&A.type==="file")var Ee=Xc;else if(Gc(A))if(Vc)Ee=Kp;else{Ee=Xp;var te=Yp}else z=A.nodeName,!z||z.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?M&&ji(M.elementType)&&(Ee=Xc):Ee=Vp;if(Ee&&(Ee=Ee(e,M))){Yc(k,Ee,a,U);break e}te&&te(e,A,M),e==="focusout"&&M&&A.type==="number"&&M.memoizedProps.value!=null&&Si(A,"number",A.value)}switch(te=M?Cn(M):window,e){case"focusin":(Gc(te)||te.contentEditable==="true")&&(Hl=te,qi=M,Un=null);break;case"focusout":Un=qi=Hl=null;break;case"mousedown":Qi=!0;break;case"contextmenu":case"mouseup":case"dragend":Qi=!1,Ic(k,a,U);break;case"selectionchange":if(Jp)break;case"keydown":case"keyup":Ic(k,a,U)}var ye;if(Di)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else kl?Bc(e,a)&&(Ne="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ne="onCompositionStart");Ne&&(Qc&&a.locale!=="ko"&&(kl||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&kl&&(ye=Dc()):(Ea=U,Ei="value"in Ea?Ea.value:Ea.textContent,kl=!0)),te=Mu(M,Ne),0<te.length&&(Ne=new Uc(Ne,e,null,a,U),k.push({event:Ne,listeners:te}),ye?Ne.data=ye:(ye=Lc(a),ye!==null&&(Ne.data=ye)))),(ye=kp?Hp(e,a):Bp(e,a))&&(Ne=Mu(M,"onBeforeInput"),0<Ne.length&&(te=new Uc("onBeforeInput","beforeinput",null,a,U),k.push({event:te,listeners:Ne}),te.data=ye)),zy(k,e,M,a,U)}Ch(k,t)})}function ur(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Mu(e,t){for(var a=t+"Capture",l=[];e!==null;){var r=e,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=En(e,a),r!=null&&l.unshift(ur(e,r,i)),r=En(e,t),r!=null&&l.push(ur(e,r,i))),e.tag===3)return l;e=e.return}return[]}function Uy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mh(e,t,a,l,r){for(var i=t._reactName,d=[];a!==null&&a!==l;){var g=a,b=g.alternate,M=g.stateNode;if(g=g.tag,b!==null&&b===l)break;g!==5&&g!==26&&g!==27||M===null||(b=M,r?(M=En(a,i),M!=null&&d.unshift(ur(a,M,b))):r||(M=En(a,i),M!=null&&d.push(ur(a,M,b)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var qy=/\r\n?/g,Qy=/\u0000|\uFFFD/g;function Th(e){return(typeof e=="string"?e:""+e).replace(qy,`
`).replace(Qy,"")}function Ah(e,t){return t=Th(t),Th(e)===t}function Re(e,t,a,l,r,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ul(e,""+l);break;case"className":Dr(e,"class",l);break;case"tabIndex":Dr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Dr(e,a,l);break;case"style":Tc(e,l,i);break;case"data":if(t!=="object"){Dr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Rr(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&Re(e,t,"name",r.name,r,null),Re(e,t,"formEncType",r.formEncType,r,null),Re(e,t,"formMethod",r.formMethod,r,null),Re(e,t,"formTarget",r.formTarget,r,null)):(Re(e,t,"encType",r.encType,r,null),Re(e,t,"method",r.method,r,null),Re(e,t,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Rr(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ia);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Rr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":je("beforetoggle",e),je("toggle",e),zr(e,"popover",l);break;case"xlinkActuate":ua(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ua(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ua(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ua(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ua(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ua(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ua(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ua(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ua(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":zr(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=fp.get(a)||a,zr(e,a,l))}}function so(e,t,a,l,r,i){switch(a){case"style":Tc(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&Ul(e,""+l);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ia);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),i=e[vt]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,r),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,r);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):zr(e,a,l)}}}function ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var l=!1,r=!1,i;for(i in a)if(a.hasOwnProperty(i)){var d=a[i];if(d!=null)switch(i){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,i,d,a,null)}}r&&Re(e,t,"srcSet",a.srcSet,a,null),l&&Re(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var g=i=d=r=null,b=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var U=a[l];if(U!=null)switch(l){case"name":r=U;break;case"type":d=U;break;case"checked":b=U;break;case"defaultChecked":M=U;break;case"value":i=U;break;case"defaultValue":g=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,t));break;default:Re(e,t,l,U,a,null)}}Nc(e,i,g,b,M,d,r,!1);return;case"select":je("invalid",e),l=d=i=null;for(r in a)if(a.hasOwnProperty(r)&&(g=a[r],g!=null))switch(r){case"value":i=g;break;case"defaultValue":d=g;break;case"multiple":l=g;default:Re(e,t,r,g,a,null)}t=i,a=d,e.multiple=!!l,t!=null?Rl(e,!!l,t,!1):a!=null&&Rl(e,!!l,a,!0);return;case"textarea":je("invalid",e),i=r=l=null;for(d in a)if(a.hasOwnProperty(d)&&(g=a[d],g!=null))switch(d){case"value":l=g;break;case"defaultValue":r=g;break;case"children":i=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:Re(e,t,d,g,a,null)}Ec(e,l,r,i);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Re(e,t,b,l,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(l=0;l<rr.length;l++)je(rr[l],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,M,l,a,null)}return;default:if(ji(t)){for(U in a)a.hasOwnProperty(U)&&(l=a[U],l!==void 0&&so(e,t,U,l,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(l=a[g],l!=null&&Re(e,t,g,l,a,null))}function ky(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,d=null,g=null,b=null,M=null,U=null;for(z in a){var k=a[z];if(a.hasOwnProperty(z)&&k!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":b=k;default:l.hasOwnProperty(z)||Re(e,t,z,null,l,k)}}for(var A in l){var z=l[A];if(k=a[A],l.hasOwnProperty(A)&&(z!=null||k!=null))switch(A){case"type":i=z;break;case"name":r=z;break;case"checked":M=z;break;case"defaultChecked":U=z;break;case"value":d=z;break;case"defaultValue":g=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:z!==k&&Re(e,t,A,z,l,k)}}bi(e,d,g,b,M,U,i,r);return;case"select":z=d=g=A=null;for(i in a)if(b=a[i],a.hasOwnProperty(i)&&b!=null)switch(i){case"value":break;case"multiple":z=b;default:l.hasOwnProperty(i)||Re(e,t,i,null,l,b)}for(r in l)if(i=l[r],b=a[r],l.hasOwnProperty(r)&&(i!=null||b!=null))switch(r){case"value":A=i;break;case"defaultValue":g=i;break;case"multiple":d=i;default:i!==b&&Re(e,t,r,i,l,b)}t=g,a=d,l=z,A!=null?Rl(e,!!a,A,!1):!!l!=!!a&&(t!=null?Rl(e,!!a,t,!0):Rl(e,!!a,a?[]:"",!1));return;case"textarea":z=A=null;for(g in a)if(r=a[g],a.hasOwnProperty(g)&&r!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Re(e,t,g,null,l,r)}for(d in l)if(r=l[d],i=a[d],l.hasOwnProperty(d)&&(r!=null||i!=null))switch(d){case"value":A=r;break;case"defaultValue":z=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==i&&Re(e,t,d,r,l,i)}Cc(e,A,z);return;case"option":for(var P in a)if(A=a[P],a.hasOwnProperty(P)&&A!=null&&!l.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:Re(e,t,P,null,l,A)}for(b in l)if(A=l[b],z=a[b],l.hasOwnProperty(b)&&A!==z&&(A!=null||z!=null))switch(b){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Re(e,t,b,A,l,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in a)A=a[ie],a.hasOwnProperty(ie)&&A!=null&&!l.hasOwnProperty(ie)&&Re(e,t,ie,null,l,A);for(M in l)if(A=l[M],z=a[M],l.hasOwnProperty(M)&&A!==z&&(A!=null||z!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:Re(e,t,M,A,l,z)}return;default:if(ji(t)){for(var Ue in a)A=a[Ue],a.hasOwnProperty(Ue)&&A!==void 0&&!l.hasOwnProperty(Ue)&&so(e,t,Ue,void 0,l,A);for(U in l)A=l[U],z=a[U],!l.hasOwnProperty(U)||A===z||A===void 0&&z===void 0||so(e,t,U,A,l,z);return}}for(var N in a)A=a[N],a.hasOwnProperty(N)&&A!=null&&!l.hasOwnProperty(N)&&Re(e,t,N,null,l,A);for(k in l)A=l[k],z=a[k],!l.hasOwnProperty(k)||A===z||A==null&&z==null||Re(e,t,k,A,l,z)}function zh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Hy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var r=a[l],i=r.transferSize,d=r.initiatorType,g=r.duration;if(i&&g&&zh(d)){for(d=0,g=r.responseEnd,l+=1;l<a.length;l++){var b=a[l],M=b.startTime;if(M>g)break;var U=b.transferSize,k=b.initiatorType;U&&zh(k)&&(b=b.responseEnd,d+=U*(b<g?1:(g-M)/(b-M)))}if(--l,t+=8*(i+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var oo=null,co=null;function Tu(e){return e.nodeType===9?e:e.ownerDocument}function Dh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function fo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ho=null;function By(){var e=window.event;return e&&e.type==="popstate"?e===ho?!1:(ho=e,!0):(ho=null,!1)}var Rh=typeof setTimeout=="function"?setTimeout:void 0,Ly=typeof clearTimeout=="function"?clearTimeout:void 0,Uh=typeof Promise=="function"?Promise:void 0,Gy=typeof queueMicrotask=="function"?queueMicrotask:typeof Uh<"u"?function(e){return Uh.resolve(null).then(e).catch(Yy)}:Rh;function Yy(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function qh(e,t){var a=t,l=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(r),hn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ir(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ir(a);for(var i=a.firstChild;i;){var d=i.nextSibling,g=i.nodeName;i[Nn]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=d}}else a==="body"&&ir(e.ownerDocument.body);a=r}while(a);hn(t)}function Qh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function mo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":mo(a),gi(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Xy(e,t,a,l){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Nn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function Vy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Lt(e.nextSibling),e===null))return null;return e}function kh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function vo(e){return e.data==="$?"||e.data==="$~"}function po(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ky(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Lt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var yo=null;function Hh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Lt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Bh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Lh(e,t,a){switch(t=Tu(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ir(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gi(e)}var Gt=new Map,Gh=new Set;function Au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Oa=H.d;H.d={f:Zy,r:Jy,D:Fy,C:$y,L:Py,m:Wy,X:e0,S:Iy,M:t0};function Zy(){var e=Oa.f(),t=Su();return e||t}function Jy(e){var t=zl(e);t!==null&&t.tag===5&&t.type==="form"?rd(t):Oa.r(e)}var cn=typeof document>"u"?null:document;function Yh(e,t,a){var l=cn;if(l&&typeof t=="string"&&t){var r=Rt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),Gh.has(r)||(Gh.add(r),e={rel:e,crossOrigin:a,href:t},l.querySelector(r)===null&&(t=l.createElement("link"),ut(t,"link",e),et(t),l.head.appendChild(t)))}}function Fy(e){Oa.D(e),Yh("dns-prefetch",e,null)}function $y(e,t){Oa.C(e,t),Yh("preconnect",e,t)}function Py(e,t,a){Oa.L(e,t,a);var l=cn;if(l&&e&&t){var r='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+Rt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+Rt(a.imageSizes)+'"]')):r+='[href="'+Rt(e)+'"]';var i=r;switch(t){case"style":i=fn(e);break;case"script":i=dn(e)}Gt.has(i)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Gt.set(i,e),l.querySelector(r)!==null||t==="style"&&l.querySelector(sr(i))||t==="script"&&l.querySelector(or(i))||(t=l.createElement("link"),ut(t,"link",e),et(t),l.head.appendChild(t)))}}function Wy(e,t){Oa.m(e,t);var a=cn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Rt(l)+'"][href="'+Rt(e)+'"]',i=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=dn(e)}if(!Gt.has(i)&&(e=x({rel:"modulepreload",href:e},t),Gt.set(i,e),a.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(or(i)))return}l=a.createElement("link"),ut(l,"link",e),et(l),a.head.appendChild(l)}}}function Iy(e,t,a){Oa.S(e,t,a);var l=cn;if(l&&e){var r=Dl(l).hoistableStyles,i=fn(e);t=t||"default";var d=r.get(i);if(!d){var g={loading:0,preload:null};if(d=l.querySelector(sr(i)))g.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Gt.get(i))&&go(e,a);var b=d=l.createElement("link");et(b),ut(b,"link",e),b._p=new Promise(function(M,U){b.onload=M,b.onerror=U}),b.addEventListener("load",function(){g.loading|=1}),b.addEventListener("error",function(){g.loading|=2}),g.loading|=4,zu(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:g},r.set(i,d)}}}function e0(e,t){Oa.X(e,t);var a=cn;if(a&&e){var l=Dl(a).hoistableScripts,r=dn(e),i=l.get(r);i||(i=a.querySelector(or(r)),i||(e=x({src:e,async:!0},t),(t=Gt.get(r))&&xo(e,t),i=a.createElement("script"),et(i),ut(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(r,i))}}function t0(e,t){Oa.M(e,t);var a=cn;if(a&&e){var l=Dl(a).hoistableScripts,r=dn(e),i=l.get(r);i||(i=a.querySelector(or(r)),i||(e=x({src:e,async:!0,type:"module"},t),(t=Gt.get(r))&&xo(e,t),i=a.createElement("script"),et(i),ut(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(r,i))}}function Xh(e,t,a,l){var r=(r=se.current)?Au(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=fn(a.href),a=Dl(r).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=fn(a.href);var i=Dl(r).hoistableStyles,d=i.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,d),(i=r.querySelector(sr(e)))&&!i._p&&(d.instance=i,d.state.loading=5),Gt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Gt.set(e,a),i||a0(r,e,a,d.state))),t&&l===null)throw Error(o(528,""));return d}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=dn(a),a=Dl(r).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function fn(e){return'href="'+Rt(e)+'"'}function sr(e){return'link[rel="stylesheet"]['+e+"]"}function Vh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function a0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",a),et(t),e.head.appendChild(t))}function dn(e){return'[src="'+Rt(e)+'"]'}function or(e){return"script[async]"+e}function Kh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Rt(a.href)+'"]');if(l)return t.instance=l,et(l),l;var r=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),et(l),ut(l,"style",r),zu(l,a.precedence,e),t.instance=l;case"stylesheet":r=fn(a.href);var i=e.querySelector(sr(r));if(i)return t.state.loading|=4,t.instance=i,et(i),i;l=Vh(a),(r=Gt.get(r))&&go(l,r),i=(e.ownerDocument||e).createElement("link"),et(i);var d=i;return d._p=new Promise(function(g,b){d.onload=g,d.onerror=b}),ut(i,"link",l),t.state.loading|=4,zu(i,a.precedence,e),t.instance=i;case"script":return i=dn(a.src),(r=e.querySelector(or(i)))?(t.instance=r,et(r),r):(l=a,(r=Gt.get(i))&&(l=x({},a),xo(l,r)),e=e.ownerDocument||e,r=e.createElement("script"),et(r),ut(r,"link",l),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,zu(l,a.precedence,e));return t.instance}function zu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,i=r,d=0;d<l.length;d++){var g=l[d];if(g.dataset.precedence===t)i=g;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function go(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function xo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Du=null;function Zh(e,t,a){if(Du===null){var l=new Map,r=Du=new Map;r.set(a,l)}else r=Du,l=r.get(a),l||(l=new Map,r.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var i=a[r];if(!(i[Nn]||i[at]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var d=i.getAttribute(t)||"";d=e+d;var g=l.get(d);g?g.push(i):l.set(d,[i])}}return l}function Jh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function l0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Fh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function n0(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=fn(l.href),i=t.querySelector(sr(r));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=wu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,et(i);return}i=t.ownerDocument||t,l=Vh(l),(r=Gt.get(r))&&go(l,r),i=i.createElement("link"),et(i);var d=i;d._p=new Promise(function(g,b){d.onload=g,d.onerror=b}),ut(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=wu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var bo=0;function r0(e,t){return e.stylesheets&&e.count===0&&Uu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Uu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&bo===0&&(bo=62500*Hy());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Uu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>bo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function wu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ru=null;function Uu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ru=new Map,t.forEach(u0,e),Ru=null,wu.call(e))}function u0(e,t){if(!(t.state.loading&4)){var a=Ru.get(e);if(a)var l=a.get(null);else{a=new Map,Ru.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var d=r[i];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),l=d)}l&&a.set(null,l)}r=t.instance,d=r.getAttribute("data-precedence"),i=a.get(d)||l,i===l&&a.set(null,r),a.set(d,r),this.count++,l=wu.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),i?i.parentNode.insertBefore(r,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var cr={$$typeof:ce,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function i0(e,t,a,l,r,i,d,g,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mi(0),this.hiddenUpdates=mi(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function $h(e,t,a,l,r,i,d,g,b,M,U,k){return e=new i0(e,t,a,d,b,M,U,k,g),t=1,i===!0&&(t|=24),i=Ct(3,null,null,t),e.current=i,i.stateNode=e,t=Wi(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},as(i),e}function Ph(e){return e?(e=Gl,e):Gl}function Wh(e,t,a,l,r,i){r=Ph(r),l.context===null?l.context=r:l.pendingContext=r,l=wa(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Ra(e,l,t),a!==null&&(St(a,e,t),Gn(a,e,t))}function Ih(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function So(e,t){Ih(e,t),(e=e.alternate)&&Ih(e,t)}function em(e){if(e.tag===13||e.tag===31){var t=rl(e,67108864);t!==null&&St(t,e,67108864),So(e,67108864)}}function tm(e){if(e.tag===13||e.tag===31){var t=zt();t=vi(t);var a=rl(e,t);a!==null&&St(a,e,t),So(e,t)}}var qu=!0;function s0(e,t,a,l){var r=T.T;T.T=null;var i=H.p;try{H.p=2,jo(e,t,a,l)}finally{H.p=i,T.T=r}}function o0(e,t,a,l){var r=T.T;T.T=null;var i=H.p;try{H.p=8,jo(e,t,a,l)}finally{H.p=i,T.T=r}}function jo(e,t,a,l){if(qu){var r=Oo(l);if(r===null)io(e,t,l,Qu,a),lm(e,l);else if(f0(r,e,t,a,l))l.stopPropagation();else if(lm(e,l),t&4&&-1<c0.indexOf(e)){for(;r!==null;){var i=zl(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var d=el(i.pendingLanes);if(d!==0){var g=i;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var b=1<<31-_t(d);g.entanglements[1]|=b,d&=~b}aa(i),(Ae&6)===0&&(xu=it()+500,nr(0))}}break;case 31:case 13:g=rl(i,2),g!==null&&St(g,i,2),Su(),So(i,2)}if(i=Oo(l),i===null&&io(e,t,l,Qu,a),i===r)break;r=i}r!==null&&l.stopPropagation()}else io(e,t,l,null,a)}}function Oo(e){return e=_i(e),_o(e)}var Qu=null;function _o(e){if(Qu=null,e=Al(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===31){if(e=v(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qu=e,null}function am(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(K()){case Pe:return 2;case mt:return 8;case ct:case ra:return 32;case ft:return 268435456;default:return 32}default:return 32}}var No=!1,Va=null,Ka=null,Za=null,fr=new Map,dr=new Map,Ja=[],c0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function lm(e,t){switch(e){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":fr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dr.delete(t.pointerId)}}function hr(e,t,a,l,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[r]},t!==null&&(t=zl(t),t!==null&&em(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function f0(e,t,a,l,r){switch(t){case"focusin":return Va=hr(Va,e,t,a,l,r),!0;case"dragenter":return Ka=hr(Ka,e,t,a,l,r),!0;case"mouseover":return Za=hr(Za,e,t,a,l,r),!0;case"pointerover":var i=r.pointerId;return fr.set(i,hr(fr.get(i)||null,e,t,a,l,r)),!0;case"gotpointercapture":return i=r.pointerId,dr.set(i,hr(dr.get(i)||null,e,t,a,l,r)),!0}return!1}function nm(e){var t=Al(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,yc(e.priority,function(){tm(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,yc(e.priority,function(){tm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ku(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Oo(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Oi=l,a.target.dispatchEvent(l),Oi=null}else return t=zl(a),t!==null&&em(t),e.blockedOn=a,!1;t.shift()}return!0}function rm(e,t,a){ku(e)&&a.delete(t)}function d0(){No=!1,Va!==null&&ku(Va)&&(Va=null),Ka!==null&&ku(Ka)&&(Ka=null),Za!==null&&ku(Za)&&(Za=null),fr.forEach(rm),dr.forEach(rm)}function Hu(e,t){e.blockedOn===t&&(e.blockedOn=null,No||(No=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,d0)))}var Bu=null;function um(e){Bu!==e&&(Bu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bu===e&&(Bu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],r=e[t+2];if(typeof l!="function"){if(_o(l||a)===null)continue;break}var i=zl(a);i!==null&&(e.splice(t,3),t-=3,js(i,{pending:!0,data:r,method:a.method,action:l},l,r))}}))}function hn(e){function t(b){return Hu(b,e)}Va!==null&&Hu(Va,e),Ka!==null&&Hu(Ka,e),Za!==null&&Hu(Za,e),fr.forEach(t),dr.forEach(t);for(var a=0;a<Ja.length;a++){var l=Ja[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ja.length&&(a=Ja[0],a.blockedOn===null);)nm(a),a.blockedOn===null&&Ja.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var r=a[l],i=a[l+1],d=r[vt]||null;if(typeof i=="function")d||um(a);else if(d){var g=null;if(i&&i.hasAttribute("formAction")){if(r=i,d=i[vt]||null)g=d.formAction;else if(_o(r)!==null)continue}else g=d.action;typeof g=="function"?a[l+1]=g:(a.splice(l,3),l-=3),um(a)}}}function im(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Co(e){this._internalRoot=e}Lu.prototype.render=Co.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=zt();Wh(a,l,e,t,null,null)},Lu.prototype.unmount=Co.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wh(e.current,2,null,e,null,null),Su(),t[Tl]=null}};function Lu(e){this._internalRoot=e}Lu.prototype.unstable_scheduleHydration=function(e){if(e){var t=pc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ja.length&&t!==0&&t<Ja[a].priority;a++);Ja.splice(a,0,e),a===0&&nm(e)}};var sm=u.version;if(sm!=="19.2.1")throw Error(o(527,sm,"19.2.1"));H.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=y(t),e=e!==null?O(e):null,e=e===null?null:e.stateNode,e};var h0={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gu.isDisabled&&Gu.supportsFiber)try{jn=Gu.inject(h0),Ot=Gu}catch{}}return vr.createRoot=function(e,t){if(!f(e))throw Error(o(299));var a=!1,l="",r=vd,i=pd,d=yd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=$h(e,1,!1,null,null,a,l,null,r,i,d,im),e[Tl]=t.current,uo(e),new Co(t)},vr.hydrateRoot=function(e,t,a){if(!f(e))throw Error(o(299));var l=!1,r="",i=vd,d=pd,g=yd,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=$h(e,1,!0,t,a??null,l,r,b,i,d,g,im),t.context=Ph(null),a=t.current,l=zt(),l=vi(l),r=wa(l),r.callback=null,Ra(a,r,l),a=l,t.current.lanes=a,_n(t,a),aa(t),e[Tl]=t.current,uo(e),new Lu(t)},vr.version="19.2.1",vr}var gm;function C0(){if(gm)return To.exports;gm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),To.exports=N0(),To.exports}var E0=C0();const M0="modulepreload",T0=function(n){return"/"+n},xm={},A0=function(u,s,o){let f=Promise.resolve();if(s&&s.length>0){let p=function(y){return Promise.all(y.map(O=>Promise.resolve(O).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),v=m?.nonce||m?.getAttribute("nonce");f=p(s.map(y=>{if(y=T0(y),y in xm)return;xm[y]=!0;const O=y.endsWith(".css"),x=O?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${x}`))return;const C=document.createElement("link");if(C.rel=O?"stylesheet":M0,O||(C.as="script"),C.crossOrigin="",C.href=y,v&&C.setAttribute("nonce",v),document.head.appendChild(C),O)return new Promise((q,G)=>{C.addEventListener("load",q),C.addEventListener("error",()=>G(new Error(`Unable to preload CSS for ${y}`)))})}))}function h(m){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=m,window.dispatchEvent(v),!v.defaultPrevented)throw m}return f.then(m=>{for(const v of m||[])v.status==="rejected"&&h(v.reason);return u().catch(h)})};var Sl=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(){}},xl=typeof window>"u"||"Deno"in globalThis;function ot(){}function z0(n,u){return typeof n=="function"?n(u):n}function Xo(n){return typeof n=="number"&&n>=0&&n!==1/0}function Pm(n,u){return Math.max(n+(u||0)-Date.now(),0)}function $a(n,u){return typeof n=="function"?n(u):n}function Zt(n,u){return typeof n=="function"?n(u):n}function bm(n,u){const{type:s="all",exact:o,fetchStatus:f,predicate:h,queryKey:m,stale:v}=n;if(m){if(o){if(u.queryHash!==ec(m,u.options))return!1}else if(!jr(u.queryKey,m))return!1}if(s!=="all"){const p=u.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof v=="boolean"&&u.isStale()!==v||f&&f!==u.state.fetchStatus||h&&!h(u))}function Sm(n,u){const{exact:s,status:o,predicate:f,mutationKey:h}=n;if(h){if(!u.options.mutationKey)return!1;if(s){if(Pa(u.options.mutationKey)!==Pa(h))return!1}else if(!jr(u.options.mutationKey,h))return!1}return!(o&&u.state.status!==o||f&&!f(u))}function ec(n,u){return(u?.queryKeyHashFn||Pa)(n)}function Pa(n){return JSON.stringify(n,(u,s)=>Vo(s)?Object.keys(s).sort().reduce((o,f)=>(o[f]=s[f],o),{}):s)}function jr(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(s=>jr(n[s],u[s])):!1}function tc(n,u){if(n===u)return n;const s=jm(n)&&jm(u);if(s||Vo(n)&&Vo(u)){const o=s?n:Object.keys(n),f=o.length,h=s?u:Object.keys(u),m=h.length,v=s?[]:{},p=new Set(o);let y=0;for(let O=0;O<m;O++){const x=s?O:h[O];(!s&&p.has(x)||s)&&n[x]===void 0&&u[x]===void 0?(v[x]=void 0,y++):(v[x]=tc(n[x],u[x]),v[x]===n[x]&&n[x]!==void 0&&y++)}return f===m&&y===f?n:v}return u}function Wu(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const s in n)if(n[s]!==u[s])return!1;return!0}function jm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Vo(n){if(!Om(n))return!1;const u=n.constructor;if(u===void 0)return!0;const s=u.prototype;return!(!Om(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Om(n){return Object.prototype.toString.call(n)==="[object Object]"}function D0(n){return new Promise(u=>{setTimeout(u,n)})}function Ko(n,u,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,u):s.structuralSharing!==!1?tc(n,u):u}function w0(n,u,s=0){const o=[...n,u];return s&&o.length>s?o.slice(1):o}function R0(n,u,s=0){const o=[u,...n];return s&&o.length>s?o.slice(0,-1):o}var Dt=Symbol();function Wm(n,u){return!n.queryFn&&u?.initialPromise?()=>u.initialPromise:!n.queryFn||n.queryFn===Dt?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Im(n,u){return typeof n=="function"?n(...u):!!n}var U0=class extends Sl{#t;#e;#a;constructor(){super(),this.#a=n=>{if(!xl&&window.addEventListener){const u=()=>n();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(u=>{u(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},ac=new U0,q0=class extends Sl{#t=!0;#e;#a;constructor(){super(),this.#a=n=>{if(!xl&&window.addEventListener){const u=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#t}},Iu=new q0;function Zo(){let n,u;const s=new Promise((f,h)=>{n=f,u=h});s.status="pending",s.catch(()=>{});function o(f){Object.assign(s,f),delete s.resolve,delete s.reject}return s.resolve=f=>{o({status:"fulfilled",value:f}),n(f)},s.reject=f=>{o({status:"rejected",reason:f}),u(f)},s}function Q0(n){return Math.min(1e3*2**n,3e4)}function ev(n){return(n??"online")==="online"?Iu.isOnline():!0}var tv=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function wo(n){return n instanceof tv}function av(n){let u=!1,s=0,o=!1,f;const h=Zo(),m=_=>{o||(C(new tv(_)),n.abort?.())},v=()=>{u=!0},p=()=>{u=!1},y=()=>ac.isFocused()&&(n.networkMode==="always"||Iu.isOnline())&&n.canRun(),O=()=>ev(n.networkMode)&&n.canRun(),x=_=>{o||(o=!0,n.onSuccess?.(_),f?.(),h.resolve(_))},C=_=>{o||(o=!0,n.onError?.(_),f?.(),h.reject(_))},q=()=>new Promise(_=>{f=F=>{(o||y())&&_(F)},n.onPause?.()}).then(()=>{f=void 0,o||n.onContinue?.()}),G=()=>{if(o)return;let _;const F=s===0?n.initialPromise:void 0;try{_=F??n.fn()}catch(ne){_=Promise.reject(ne)}Promise.resolve(_).then(x).catch(ne=>{if(o)return;const fe=n.retry??(xl?0:3),ce=n.retryDelay??Q0,Oe=typeof ce=="function"?ce(s,ne):ce,X=fe===!0||typeof fe=="number"&&s<fe||typeof fe=="function"&&fe(s,ne);if(u||!X){C(ne);return}s++,n.onFail?.(s,ne),D0(Oe).then(()=>y()?void 0:q()).then(()=>{u?C(ne):G()})})};return{promise:h,cancel:m,continue:()=>(f?.(),h),cancelRetry:v,continueRetry:p,canStart:O,start:()=>(O()?G():q().then(G),h)}}var k0=n=>setTimeout(n,0);function H0(){let n=[],u=0,s=v=>{v()},o=v=>{v()},f=k0;const h=v=>{u?n.push(v):f(()=>{s(v)})},m=()=>{const v=n;n=[],v.length&&f(()=>{o(()=>{v.forEach(p=>{s(p)})})})};return{batch:v=>{let p;u++;try{p=v()}finally{u--,u||m()}return p},batchCalls:v=>(...p)=>{h(()=>{v(...p)})},schedule:h,setNotifyFunction:v=>{s=v},setBatchNotifyFunction:v=>{o=v},setScheduler:v=>{f=v}}}var Ye=H0(),lv=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xo(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(xl?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},B0=class extends lv{#t;#e;#a;#l;#n;#r;#i;constructor(n){super(),this.#i=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#a=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=L0(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(n){this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,u){const s=Ko(this.state.data,n,this.options);return this.#u({data:s,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),s}setState(n,u){this.#u({type:"setState",state:n,setStateOptions:u})}cancel(n){const u=this.#n?.promise;return this.#n?.cancel(n),u?u.then(ot).catch(ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Zt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Dt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>$a(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:!Pm(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(u=>u!==n),this.observers.length||(this.#n&&(this.#i?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}fetch(n,u){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(n&&this.setOptions(n),!this.options.queryFn){const p=this.observers.find(y=>y.options.queryFn);p&&this.setOptions(p.options)}const s=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#i=!0,s.signal)})},f=()=>{const p=Wm(this.options,u),O=(()=>{const x={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(x),x})();return this.#i=!1,this.options.persister?this.options.persister(p,O,this):p(O)},m=(()=>{const p={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:f};return o(p),p})();this.options.behavior?.onFetch(m,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#u({type:"fetch",meta:m.fetchOptions?.meta});const v=p=>{wo(p)&&p.silent||this.#u({type:"error",error:p}),wo(p)||(this.#a.config.onError?.(p,this),this.#a.config.onSettled?.(this.state.data,p,this)),this.scheduleGc()};return this.#n=av({initialPromise:u?.initialPromise,fn:m.fetchFn,abort:s.abort.bind(s),onSuccess:p=>{if(p===void 0){v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(y){v(y);return}this.#a.config.onSuccess?.(p,this),this.#a.config.onSettled?.(p,this.state.error,this),this.scheduleGc()},onError:v,onFail:(p,y)=>{this.#u({type:"failed",failureCount:p,error:y})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}),this.#n.start()}#u(n){const u=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...nv(s.data,this.options),fetchMeta:n.meta??null};case"success":return this.#e=void 0,{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=n.error;return wo(o)&&o.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=u(this.state),Ye.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function nv(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ev(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function L0(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,s=u!==void 0,o=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var G0=class extends Sl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,u,s){const o=u.queryKey,f=u.queryHash??ec(o,u);let h=this.get(f);return h||(h=new B0({client:n,queryKey:o,queryHash:f,options:n.defaultQueryOptions(u),state:s,defaultOptions:n.getQueryDefaults(o)}),this.add(h)),h}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const u=this.#t.get(n.queryHash);u&&(n.destroy(),u===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ye.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const u={exact:!0,...n};return this.getAll().find(s=>bm(u,s))}findAll(n={}){const u=this.getAll();return Object.keys(n).length>0?u.filter(s=>bm(n,s)):u}notify(n){Ye.batch(()=>{this.listeners.forEach(u=>{u(n)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Y0=class extends lv{#t;#e;#a;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||rv(),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(u=>u!==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.#a?.continue()??this.execute(this.state.variables)}async execute(n){const u=()=>{this.#l({type:"continue"})};this.#a=av({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#l({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",o=!this.#a.canStart();try{if(s)u();else{this.#l({type:"pending",variables:n,isPaused:o}),await this.#e.config.onMutate?.(n,this);const h=await this.options.onMutate?.(n);h!==this.state.context&&this.#l({type:"pending",context:h,variables:n,isPaused:o})}const f=await this.#a.start();return await this.#e.config.onSuccess?.(f,n,this.state.context,this),await this.options.onSuccess?.(f,n,this.state.context),await this.#e.config.onSettled?.(f,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(f,null,n,this.state.context),this.#l({type:"success",data:f}),f}catch(f){try{throw await this.#e.config.onError?.(f,n,this.state.context,this),await this.options.onError?.(f,n,this.state.context),await this.#e.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,f,n,this.state.context),f}finally{this.#l({type:"error",error:f})}}finally{this.#e.runNext(this)}}#l(n){const u=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=u(this.state),Ye.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function rv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var X0=class extends Sl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#a=0}#t;#e;#a;build(n,u,s){const o=new Y0({mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(u),state:s});return this.add(o),o}add(n){this.#t.add(n);const u=Yu(n);if(typeof u=="string"){const s=this.#e.get(u);s?s.push(n):this.#e.set(u,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const u=Yu(n);if(typeof u=="string"){const s=this.#e.get(u);if(s)if(s.length>1){const o=s.indexOf(n);o!==-1&&s.splice(o,1)}else s[0]===n&&this.#e.delete(u)}}this.notify({type:"removed",mutation:n})}canRun(n){const u=Yu(n);if(typeof u=="string"){const o=this.#e.get(u)?.find(f=>f.state.status==="pending");return!o||o===n}else return!0}runNext(n){const u=Yu(n);return typeof u=="string"?this.#e.get(u)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ye.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 u={exact:!0,...n};return this.getAll().find(s=>Sm(u,s))}findAll(n={}){return this.getAll().filter(u=>Sm(n,u))}notify(n){Ye.batch(()=>{this.listeners.forEach(u=>{u(n)})})}resumePausedMutations(){const n=this.getAll().filter(u=>u.state.isPaused);return Ye.batch(()=>Promise.all(n.map(u=>u.continue().catch(ot))))}};function Yu(n){return n.options.scope?.id}function ei(n){return{onFetch:(u,s)=>{const o=u.options,f=u.fetchOptions?.meta?.fetchMore?.direction,h=u.state.data?.pages||[],m=u.state.data?.pageParams||[];let v={pages:[],pageParams:[]},p=0;const y=async()=>{let O=!1;const x=G=>{Object.defineProperty(G,"signal",{enumerable:!0,get:()=>(u.signal.aborted?O=!0:u.signal.addEventListener("abort",()=>{O=!0}),u.signal)})},C=Wm(u.options,u.fetchOptions),q=async(G,_,F)=>{if(O)return Promise.reject();if(_==null&&G.pages.length)return Promise.resolve(G);const fe=(()=>{const V={client:u.client,queryKey:u.queryKey,pageParam:_,direction:F?"backward":"forward",meta:u.options.meta};return x(V),V})(),ce=await C(fe),{maxPages:Oe}=u.options,X=F?R0:w0;return{pages:X(G.pages,ce,Oe),pageParams:X(G.pageParams,_,Oe)}};if(f&&h.length){const G=f==="backward",_=G?uv:Jo,F={pages:h,pageParams:m},ne=_(o,F);v=await q(F,ne,G)}else{const G=n??h.length;do{const _=p===0?m[0]??o.initialPageParam:Jo(o,v);if(p>0&&_==null)break;v=await q(v,_),p++}while(p<G)}return v};u.options.persister?u.fetchFn=()=>u.options.persister?.(y,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},s):u.fetchFn=y}}}function Jo(n,{pages:u,pageParams:s}){const o=u.length-1;return u.length>0?n.getNextPageParam(u[o],u,s[o],s):void 0}function uv(n,{pages:u,pageParams:s}){return u.length>0?n.getPreviousPageParam?.(u[0],u,s[0],s):void 0}function V0(n,u){return u?Jo(n,u)!=null:!1}function K0(n,u){return!u||!n.getPreviousPageParam?!1:uv(n,u)!=null}var Z0=class{#t;#e;#a;#l;#n;#r;#i;#u;constructor(n={}){this.#t=n.queryCache||new G0,this.#e=n.mutationCache||new X0,this.#a=n.defaultOptions||{},this.#l=new Map,this.#n=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#i=ac.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#u=Iu.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#i?.(),this.#i=void 0,this.#u?.(),this.#u=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 u=this.defaultQueryOptions({queryKey:n});return this.#t.get(u.queryHash)?.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),s=this.#t.build(this,u),o=s.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime($a(u.staleTime,s))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:u,state:s})=>{const o=s.data;return[u,o]})}setQueryData(n,u,s){const o=this.defaultQueryOptions({queryKey:n}),h=this.#t.get(o.queryHash)?.state.data,m=z0(u,h);if(m!==void 0)return this.#t.build(this,o).setData(m,{...s,manual:!0})}setQueriesData(n,u,s){return Ye.batch(()=>this.#t.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,u,s)]))}getQueryState(n){const u=this.defaultQueryOptions({queryKey:n});return this.#t.get(u.queryHash)?.state}removeQueries(n){const u=this.#t;Ye.batch(()=>{u.findAll(n).forEach(s=>{u.remove(s)})})}resetQueries(n,u){const s=this.#t;return Ye.batch(()=>(s.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const s={revert:!0,...u},o=Ye.batch(()=>this.#t.findAll(n).map(f=>f.cancel(s)));return Promise.all(o).then(ot).catch(ot)}invalidateQueries(n,u={}){return Ye.batch(()=>(this.#t.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},u)))}refetchQueries(n,u={}){const s={...u,cancelRefetch:u.cancelRefetch??!0},o=Ye.batch(()=>this.#t.findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let h=f.fetch(void 0,s);return s.throwOnError||(h=h.catch(ot)),f.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ot)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const s=this.#t.build(this,u);return s.isStaleByTime($a(u.staleTime,s))?s.fetch(u):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ot).catch(ot)}fetchInfiniteQuery(n){return n.behavior=ei(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ot).catch(ot)}ensureInfiniteQueryData(n){return n.behavior=ei(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Iu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,u){this.#l.set(Pa(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...this.#l.values()],s={};return u.forEach(o=>{jr(n,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(n,u){this.#n.set(Pa(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...this.#n.values()],s={};return u.forEach(o=>{jr(n,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const u={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=ec(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Dt&&(u.enabled=!1),u}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Or=class extends Sl{constructor(n,u){super(),this.options=u,this.#t=n,this.#u=null,this.#i=Zo(),this.options.experimental_prefetchInRender||this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(u)}#t;#e=void 0;#a=void 0;#l=void 0;#n;#r;#i;#u;#h;#f;#d;#o;#c;#s;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),_m(this.#e,this.options)?this.#m():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fo(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fo(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const u=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Zt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#e.setOptions(this.options),u._defaulted&&!Wu(this.options,u)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Nm(this.#e,s,this.options,u)&&this.#m(),this.updateResult(),o&&(this.#e!==s||Zt(this.options.enabled,this.#e)!==Zt(u.enabled,this.#e)||$a(this.options.staleTime,this.#e)!==$a(u.staleTime,this.#e))&&this.#p();const f=this.#y();o&&(this.#e!==s||Zt(this.options.enabled,this.#e)!==Zt(u.enabled,this.#e)||f!==this.#s)&&this.#g(f)}getOptimisticResult(n){const u=this.#t.getQueryCache().build(this.#t,n),s=this.createResult(u,n);return F0(this,s)&&(this.#l=s,this.#r=this.options,this.#n=this.#e.state),s}getCurrentResult(){return this.#l}trackResult(n,u){return new Proxy(n,{get:(s,o)=>(this.trackProp(o),u?.(o),Reflect.get(s,o))})}trackProp(n){this.#v.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const u=this.#t.defaultQueryOptions(n),s=this.#t.getQueryCache().build(this.#t,u);return s.fetch().then(()=>this.createResult(s,u))}fetch(n){return this.#m({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#m(n){this.#j();let u=this.#e.fetch(this.options,n);return n?.throwOnError||(u=u.catch(ot)),u}#p(){this.#b();const n=$a(this.options.staleTime,this.#e);if(xl||this.#l.isStale||!Xo(n))return;const s=Pm(this.#l.dataUpdatedAt,n)+1;this.#o=setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#s=n,!(xl||Zt(this.options.enabled,this.#e)===!1||!Xo(this.#s)||this.#s===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||ac.isFocused())&&this.#m()},this.#s))}#x(){this.#p(),this.#g(this.#y())}#b(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,u){const s=this.#e,o=this.options,f=this.#l,h=this.#n,m=this.#r,p=n!==s?n.state:this.#a,{state:y}=n;let O={...y},x=!1,C;if(u._optimisticResults){const J=this.hasListeners(),ee=!J&&_m(n,u),ae=J&&Nm(n,s,u,o);(ee||ae)&&(O={...O,...nv(y.data,n.options)}),u._optimisticResults==="isRestoring"&&(O.fetchStatus="idle")}let{error:q,errorUpdatedAt:G,status:_}=O;C=O.data;let F=!1;if(u.placeholderData!==void 0&&C===void 0&&_==="pending"){let J;f?.isPlaceholderData&&u.placeholderData===m?.placeholderData?(J=f.data,F=!0):J=typeof u.placeholderData=="function"?u.placeholderData(this.#d?.state.data,this.#d):u.placeholderData,J!==void 0&&(_="success",C=Ko(f?.data,J,u),x=!0)}if(u.select&&C!==void 0&&!F)if(f&&C===h?.data&&u.select===this.#h)C=this.#f;else try{this.#h=u.select,C=u.select(C),C=Ko(f?.data,C,u),this.#f=C,this.#u=null}catch(J){this.#u=J}this.#u&&(q=this.#u,C=this.#f,G=Date.now(),_="error");const ne=O.fetchStatus==="fetching",fe=_==="pending",ce=_==="error",Oe=fe&&ne,X=C!==void 0,w={status:_,fetchStatus:O.fetchStatus,isPending:fe,isSuccess:_==="success",isError:ce,isInitialLoading:Oe,isLoading:Oe,data:C,dataUpdatedAt:O.dataUpdatedAt,error:q,errorUpdatedAt:G,failureCount:O.fetchFailureCount,failureReason:O.fetchFailureReason,errorUpdateCount:O.errorUpdateCount,isFetched:O.dataUpdateCount>0||O.errorUpdateCount>0,isFetchedAfterMount:O.dataUpdateCount>p.dataUpdateCount||O.errorUpdateCount>p.errorUpdateCount,isFetching:ne,isRefetching:ne&&!fe,isLoadingError:ce&&!X,isPaused:O.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:ce&&X,isStale:lc(n,u),refetch:this.refetch,promise:this.#i};if(this.options.experimental_prefetchInRender){const J=le=>{w.status==="error"?le.reject(w.error):w.data!==void 0&&le.resolve(w.data)},ee=()=>{const le=this.#i=w.promise=Zo();J(le)},ae=this.#i;switch(ae.status){case"pending":n.queryHash===s.queryHash&&J(ae);break;case"fulfilled":(w.status==="error"||w.data!==ae.value)&&ee();break;case"rejected":(w.status!=="error"||w.error!==ae.reason)&&ee();break}}return w}updateResult(){const n=this.#l,u=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#r=this.options,this.#n.data!==void 0&&(this.#d=this.#e),Wu(u,n))return;this.#l=u;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!this.#v.size)return!0;const h=new Set(f??this.#v);return this.options.throwOnError&&h.add("error"),Object.keys(this.#l).some(m=>{const v=m;return this.#l[v]!==n[v]&&h.has(v)})};this.#O({listeners:s()})}#j(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const u=this.#e;this.#e=n,this.#a=n.state,this.hasListeners()&&(u?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#O(n){Ye.batch(()=>{n.listeners&&this.listeners.forEach(u=>{u(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function J0(n,u){return Zt(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function _m(n,u){return J0(n,u)||n.state.data!==void 0&&Fo(n,u,u.refetchOnMount)}function Fo(n,u,s){if(Zt(u.enabled,n)!==!1&&$a(u.staleTime,n)!=="static"){const o=typeof s=="function"?s(n):s;return o==="always"||o!==!1&&lc(n,u)}return!1}function Nm(n,u,s,o){return(n!==u||Zt(o.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&lc(n,s)}function lc(n,u){return Zt(u.enabled,n)!==!1&&n.isStaleByTime($a(u.staleTime,n))}function F0(n,u){return!Wu(n.getCurrentResult(),u)}function Cm(n,u){const s=new Set(u);return n.filter(o=>!s.has(o))}function $0(n,u,s){const o=n.slice(0);return o[u]=s,o}var P0=class extends Sl{#t;#e;#a;#l;#n;#r;#i;#u;#h=[];constructor(n,u,s){super(),this.#t=n,this.#l=s,this.#a=[],this.#n=[],this.#e=[],this.setQueries(u)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(n=>{n.subscribe(u=>{this.#c(n,u)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(n=>{n.destroy()})}setQueries(n,u){this.#a=n,this.#l=u,Ye.batch(()=>{const s=this.#n,o=this.#o(this.#a);this.#h=o,o.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const f=o.map(v=>v.observer),h=f.map(v=>v.getCurrentResult()),m=f.some((v,p)=>v!==s[p]);s.length===f.length&&!m||(this.#n=f,this.#e=h,this.hasListeners()&&(Cm(s,f).forEach(v=>{v.destroy()}),Cm(f,s).forEach(v=>{v.subscribe(p=>{this.#c(v,p)})}),this.#s()))})}getCurrentResult(){return this.#e}getQueries(){return this.#n.map(n=>n.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(n,u){const s=this.#o(n),o=s.map(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions));return[o,f=>this.#d(f??o,u),()=>this.#f(o,s)]}#f(n,u){return u.map((s,o)=>{const f=n[o];return s.defaultedQueryOptions.notifyOnChangeProps?f:s.observer.trackResult(f,h=>{u.forEach(m=>{m.observer.trackProp(h)})})})}#d(n,u){return u?((!this.#r||this.#e!==this.#u||u!==this.#i)&&(this.#i=u,this.#u=this.#e,this.#r=tc(this.#r,u(n))),this.#r):n}#o(n){const u=new Map(this.#n.map(o=>[o.options.queryHash,o])),s=[];return n.forEach(o=>{const f=this.#t.defaultQueryOptions(o),h=u.get(f.queryHash);h?s.push({defaultedQueryOptions:f,observer:h}):s.push({defaultedQueryOptions:f,observer:new Or(this.#t,f)})}),s}#c(n,u){const s=this.#n.indexOf(n);s!==-1&&(this.#e=$0(this.#e,s,u),this.#s())}#s(){if(this.hasListeners()){const n=this.#r,u=this.#f(this.#e,this.#h),s=this.#d(u,this.#l?.combine);n!==s&&Ye.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}},iv=class extends Or{constructor(n,u){super(n,u)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){super.setOptions({...n,behavior:ei()})}getOptimisticResult(n){return n.behavior=ei(),super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,u){const{state:s}=n,o=super.createResult(n,u),{isFetching:f,isRefetching:h,isError:m,isRefetchError:v}=o,p=s.fetchMeta?.fetchMore?.direction,y=m&&p==="forward",O=f&&p==="forward",x=m&&p==="backward",C=f&&p==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:V0(u,s.data),hasPreviousPage:K0(u,s.data),isFetchNextPageError:y,isFetchingNextPage:O,isFetchPreviousPageError:x,isFetchingPreviousPage:C,isRefetchError:v&&!y&&!x,isRefetching:h&&!O&&!C}}},W0=class extends Sl{#t;#e=void 0;#a;#l;constructor(u,s){super(),this.#t=u,this.setOptions(s),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(u){const s=this.options;this.options=this.#t.defaultMutationOptions(u),Wu(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&Pa(s.mutationKey)!==Pa(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(u){this.#n(),this.#r(u)}getCurrentResult(){return this.#e}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#n(),this.#r()}mutate(u,s){return this.#l=s,this.#a?.removeObserver(this),this.#a=this.#t.getMutationCache().build(this.#t,this.options),this.#a.addObserver(this),this.#a.execute(u)}#n(){const u=this.#a?.state??rv();this.#e={...u,isPending:u.status==="pending",isSuccess:u.status==="success",isError:u.status==="error",isIdle:u.status==="idle",mutate:this.mutate,reset:this.reset}}#r(u){Ye.batch(()=>{if(this.#l&&this.hasListeners()){const s=this.#e.variables,o=this.#e.context;u?.type==="success"?(this.#l.onSuccess?.(u.data,s,o),this.#l.onSettled?.(u.data,null,s,o)):u?.type==="error"&&(this.#l.onError?.(u.error,s,o),this.#l.onSettled?.(void 0,u.error,s,o))}this.listeners.forEach(s=>{s(this.#e)})})}},sv=D.createContext(void 0),_r=n=>{const u=D.useContext(sv);if(n)return n;if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},I0=({client:n,children:u})=>(D.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),c.jsx(sv.Provider,{value:n,children:u})),ov=D.createContext(!1),cv=()=>D.useContext(ov);ov.Provider;function e1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var t1=D.createContext(e1()),fv=()=>D.useContext(t1),dv=(n,u)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(u.isReset()||(n.retryOnMount=!1))},hv=n=>{D.useEffect(()=>{n.clearReset()},[n])},mv=({result:n,errorResetBoundary:u,throwOnError:s,query:o,suspense:f})=>n.isError&&!u.isReset()&&!n.isFetching&&o&&(f&&n.data===void 0||Im(s,[n.error,o])),nc=(n,u)=>u.state.data===void 0,vv=n=>{if(n.suspense){const u=o=>o==="static"?o:Math.max(o??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...o)=>u(s(...o)):u(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},pv=(n,u)=>n.isLoading&&n.isFetching&&!u,$o=(n,u)=>n?.suspense&&u.isPending,ti=(n,u,s)=>u.fetchOptimistic(n).catch(()=>{s.clearReset()});function yv({queries:n,...u},s){const o=_r(s),f=cv(),h=fv(),m=D.useMemo(()=>n.map(_=>{const F=o.defaultQueryOptions(_);return F._optimisticResults=f?"isRestoring":"optimistic",F}),[n,o,f]);m.forEach(_=>{vv(_),dv(_,h)}),hv(h);const[v]=D.useState(()=>new P0(o,m,u)),[p,y,O]=v.getOptimisticResult(m,u.combine),x=!f&&u.subscribed!==!1;D.useSyncExternalStore(D.useCallback(_=>x?v.subscribe(Ye.batchCalls(_)):ot,[v,x]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),D.useEffect(()=>{v.setQueries(m,u)},[m,u,v]);const q=p.some((_,F)=>$o(m[F],_))?p.flatMap((_,F)=>{const ne=m[F];if(ne){const fe=new Or(o,ne);if($o(ne,_))return ti(ne,fe,h);pv(_,f)&&ti(ne,fe,h)}return[]}):[];if(q.length>0)throw Promise.all(q);const G=p.find((_,F)=>{const ne=m[F];return ne&&mv({result:_,errorResetBoundary:h,throwOnError:ne.throwOnError,query:o.getQueryCache().get(ne.queryHash),suspense:ne.suspense})});if(G?.error)throw G.error;return y(O())}function ni(n,u,s){const o=cv(),f=fv(),h=_r(s),m=h.defaultQueryOptions(n);h.getDefaultOptions().queries?._experimental_beforeQuery?.(m),m._optimisticResults=o?"isRestoring":"optimistic",vv(m),dv(m,f),hv(f);const v=!h.getQueryCache().get(m.queryHash),[p]=D.useState(()=>new u(h,m)),y=p.getOptimisticResult(m),O=!o&&n.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(x=>{const C=O?p.subscribe(Ye.batchCalls(x)):ot;return p.updateResult(),C},[p,O]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),D.useEffect(()=>{p.setOptions(m)},[m,p]),$o(m,y))throw ti(m,p,f);if(mv({result:y,errorResetBoundary:f,throwOnError:m.throwOnError,query:h.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw y.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(m,y),m.experimental_prefetchInRender&&!xl&&pv(y,o)&&(v?ti(m,p,f):h.getQueryCache().get(m.queryHash)?.promise)?.catch(ot).finally(()=>{p.updateResult()}),m.notifyOnChangeProps?y:p.trackResult(y)}function a1(n,u){return ni(n,Or,u)}function l1(n,u){return ni({...n,enabled:!0,suspense:!0,throwOnError:nc,placeholderData:void 0},Or,u)}function n1(n,u){return ni({...n,enabled:!0,suspense:!0,throwOnError:nc},iv,u)}function r1(n,u){return yv({...n,queries:n.queries.map(s=>({...s,suspense:!0,throwOnError:nc,enabled:!0,placeholderData:void 0}))},u)}function u1(n,u){const s=_r(u);s.getQueryState(n.queryKey)||s.prefetchQuery(n)}function i1(n,u){const s=_r(u);s.getQueryState(n.queryKey)||s.prefetchInfiniteQuery(n)}function s1(n,u){const s=_r(u),[o]=D.useState(()=>new W0(s,n));D.useEffect(()=>{o.setOptions(n)},[o,n]);const f=D.useSyncExternalStore(D.useCallback(m=>o.subscribe(Ye.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=D.useCallback((m,v)=>{o.mutate(m,v).catch(ot)},[o]);if(f.error&&Im(o.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:h,mutateAsync:f.mutate}}function o1(n,u){return ni(n,iv,u)}function c1(n,u){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,o,f,h,m=[],v="",p=n.split("/");for(p[0]||p.shift();f=p.shift();)s=f[0],s==="*"?(m.push(s),v+=f[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(o=f.indexOf("?",1),h=f.indexOf(".",1),m.push(f.substring(1,~o?o:~h?h:f.length)),v+=~o&&!~h?"(?:/([^/]+?))?":"/([^/]+?)",~h&&(v+=(~o?"?":"")+"\\"+f.substring(h))):v+="/"+f;return{keys:m,pattern:new RegExp("^"+v+(u?"(?=$|/)":"/?$"),"i")}}var Ro={exports:{}},Uo={};/**
 * @license React
 * use-sync-external-store-shim.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 Em;function f1(){if(Em)return Uo;Em=1;var n=li();function u(x,C){return x===C&&(x!==0||1/x===1/C)||x!==x&&C!==C}var s=typeof Object.is=="function"?Object.is:u,o=n.useState,f=n.useEffect,h=n.useLayoutEffect,m=n.useDebugValue;function v(x,C){var q=C(),G=o({inst:{value:q,getSnapshot:C}}),_=G[0].inst,F=G[1];return h(function(){_.value=q,_.getSnapshot=C,p(_)&&F({inst:_})},[x,q,C]),f(function(){return p(_)&&F({inst:_}),x(function(){p(_)&&F({inst:_})})},[x]),m(q),q}function p(x){var C=x.getSnapshot;x=x.value;try{var q=C();return!s(x,q)}catch{return!0}}function y(x,C){return C()}var O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:v;return Uo.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:O,Uo}var Mm;function d1(){return Mm||(Mm=1,Ro.exports=f1()),Ro.exports}var h1=d1();const m1=$m.useInsertionEffect,v1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",p1=v1?D.useLayoutEffect:D.useEffect,y1=m1||p1,gv=n=>{const u=D.useRef([n,(...s)=>u[0](...s)]).current;return y1(()=>{u[0]=n}),u[1]},g1="popstate",rc="pushState",uc="replaceState",x1="hashchange",Tm=[g1,rc,uc,x1],b1=n=>{for(const u of Tm)addEventListener(u,n);return()=>{for(const u of Tm)removeEventListener(u,n)}},xv=(n,u)=>h1.useSyncExternalStore(b1,n,u),S1=()=>location.search,j1=({ssrSearch:n=""}={})=>xv(S1,()=>n),Am=()=>location.pathname,O1=({ssrPath:n}={})=>xv(Am,n?()=>n:Am),_1=(n,{replace:u=!1,state:s=null}={})=>history[u?uc:rc](s,"",n),N1=(n={})=>[O1(n),_1],zm=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[zm]>"u"){for(const n of[rc,uc]){const u=history[n];history[n]=function(){const s=u.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),s}}Object.defineProperty(window,zm,{value:!0})}const C1=(n,u)=>u.toLowerCase().indexOf(n.toLowerCase())?"~"+u:u.slice(n.length)||"/",bv=(n="")=>n==="/"?"":n,E1=(n,u)=>n[0]==="~"?n.slice(1):bv(u)+n,M1=(n="",u)=>C1(Po(bv(n)),Po(u)),T1=n=>n[0]==="?"?n.slice(1):n,Po=n=>{try{return decodeURI(n)}catch{return n}},A1=n=>Po(T1(n)),Sv={hook:N1,searchHook:j1,parser:c1,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:n=>n},jv=D.createContext(Sv),pn=()=>D.useContext(jv),Ov={},_v=D.createContext(Ov),ri=()=>D.useContext(_v),ui=n=>{const[u,s]=n.hook(n);return[M1(n.base,u),gv((o,f)=>s(E1(o,n.base),f))]},Nv=()=>ui(pn()),Cv=()=>{const n=pn();return A1(n.searchHook(n))},Ev=(n,u,s,o)=>{const{pattern:f,keys:h}=u instanceof RegExp?{keys:!1,pattern:u}:n(u||"*",o),m=f.exec(s)||[],[v,...p]=m;return v!==void 0?[!0,(()=>{const y=h!==!1?Object.fromEntries(h.map((x,C)=>[x,p[C]])):m.groups;let O={...p};return y&&Object.assign(O,y),O})(),...o?[v]:[]]:[!1,null]},z1=({children:n,...u})=>{const s=pn(),o=u.hook?Sv:s;let f=o;const[h,m]=u.ssrPath?.split("?")??[];m&&(u.ssrSearch=m,u.ssrPath=h),u.hrefs=u.hrefs??u.hook?.hrefs;let v=D.useRef({}),p=v.current,y=p;for(let O in o){const x=O==="base"?o[O]+(u[O]||""):u[O]||o[O];p===y&&x!==y[O]&&(v.current=y={...y}),y[O]=x,x!==o[O]&&(f=y)}return D.createElement(jv.Provider,{value:f,children:n})},Dm=({children:n,component:u},s)=>u?D.createElement(u,{params:s}):typeof n=="function"?n(s):n,D1=n=>{let u=D.useRef(Ov),s=u.current;for(const o in n)n[o]!==s[o]&&(s=n);return Object.keys(n).length===0&&(s=n),u.current=s},Yt=({path:n,nest:u,match:s,...o})=>{const f=pn(),[h]=ui(f),[m,v,p]=s??Ev(f.parser,n,h,u),y=D1({...ri(),...v});if(!m)return null;const O=p?D.createElement(z1,{base:p},Dm(o,y)):Dm(o,y);return D.createElement(_v.Provider,{value:y,children:O})};D.forwardRef((n,u)=>{const s=pn(),[o,f]=ui(s),{to:h="",href:m=h,onClick:v,asChild:p,children:y,className:O,replace:x,state:C,...q}=n,G=gv(F=>{F.ctrlKey||F.metaKey||F.altKey||F.shiftKey||F.button!==0||(v?.(F),F.defaultPrevented||(F.preventDefault(),f(m,n)))}),_=s.hrefs(m[0]==="~"?m.slice(1):s.base+m,s);return p&&D.isValidElement(y)?D.cloneElement(y,{onClick:G,href:_}):D.createElement("a",{...q,onClick:G,href:_,className:O?.call?O(o===m):O,children:y,ref:u})});const Mv=n=>Array.isArray(n)?n.flatMap(u=>Mv(u&&u.type===D.Fragment?u.props.children:u)):[n],w1=({children:n,location:u})=>{const s=pn(),[o]=ui(s);for(const f of Mv(n)){let h=0;if(D.isValidElement(f)&&(h=Ev(s.parser,f.props.path,u||o,f.props.nest))[0])return D.cloneElement(f,{match:h})}return null};function bl(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}const R1=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Tv(n){return R1&&bl(n)&&Symbol.asyncIterator in n}var U1=Object.create,Av=Object.defineProperty,q1=Object.getOwnPropertyDescriptor,zv=Object.getOwnPropertyNames,Q1=Object.getPrototypeOf,k1=Object.prototype.hasOwnProperty,Nr=(n,u)=>function(){return u||(0,n[zv(n)[0]])((u={exports:{}}).exports,u),u.exports},H1=(n,u,s,o)=>{if(u&&typeof u=="object"||typeof u=="function")for(var f=zv(u),h=0,m=f.length,v;h<m;h++)v=f[h],!k1.call(n,v)&&v!==s&&Av(n,v,{get:(p=>u[p]).bind(null,v),enumerable:!(o=q1(u,v))||o.enumerable});return n},ii=(n,u,s)=>(s=n!=null?U1(Q1(n)):{},H1(Av(s,"default",{value:n,enumerable:!0}),n));const Dv=()=>{},wm=n=>{Object.freeze&&Object.freeze(n)};function wv(n,u,s){var o;const f=u.join(".");return(o=s[f])!==null&&o!==void 0||(s[f]=new Proxy(Dv,{get(h,m){if(!(typeof m!="string"||m==="then"))return wv(n,[...u,m],s)},apply(h,m,v){const p=u[u.length-1];let y={args:v,path:u};return p==="call"?y={args:v.length>=2?[v[1]]:[],path:u.slice(0,-1)}:p==="apply"&&(y={args:v.length>=2?v[1]:[],path:u.slice(0,-1)}),wm(y.args),wm(y.path),n(y)}})),s[f]}const si=n=>wv(n,[],Object.create(null)),ic=n=>new Proxy(Dv,{get(u,s){if(s!=="then")return n(s)}});var Rv=Nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,u){function s(o){"@babel/helpers - typeof";return u.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},u.exports.__esModule=!0,u.exports.default=u.exports,s(o)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),B1=Nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,u){var s=Rv().default;function o(f,h){if(s(f)!="object"||!f)return f;var m=f[Symbol.toPrimitive];if(m!==void 0){var v=m.call(f,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),L1=Nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,u){var s=Rv().default,o=B1();function f(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}}),Uv=Nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,u){var s=L1();function o(f,h,m){return(h=s(h))in f?Object.defineProperty(f,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[h]=m,f}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),sc=Nr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,u){var s=Uv();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);m&&(p=p.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),v.push.apply(v,p)}return v}function f(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(p){s(h,p,v[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(v,p))})}return h}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}});ii(sc());ii(Uv());var Xu=ii(sc());function G1(n,u){if("error"in n){const o=u.deserialize(n.error);return{ok:!1,error:(0,Xu.default)((0,Xu.default)({},n),{},{error:o})}}return{ok:!0,result:(0,Xu.default)((0,Xu.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:u.deserialize(n.result.data)})}}var qo=class extends Error{constructor(){super("Unable to transform response from server")}};function Y1(n,u){let s;try{s=G1(n,u)}catch{throw new qo}if(!s.ok&&(!bl(s.error.error)||typeof s.error.error.code!="number"))throw new qo;if(s.ok&&!bl(s.result))throw new qo;return s}ii(sc());function oi(n){const u={subscribe(s){let o=null,f=!1,h=!1,m=!1;function v(){if(o===null){m=!0;return}h||(h=!0,typeof o=="function"?o():o&&o.unsubscribe())}return o=n({next(p){var y;f||(y=s.next)===null||y===void 0||y.call(s,p)},error(p){var y;f||(f=!0,(y=s.error)===null||y===void 0||y.call(s,p),v())},complete(){var p;f||(f=!0,(p=s.complete)===null||p===void 0||p.call(s),v())}}),m&&v(),{unsubscribe:v}},pipe(...s){return s.reduce(X1,u)}};return u}function X1(n,u){return u(n)}function V1(n){const u=new AbortController;return new Promise((o,f)=>{let h=!1;function m(){h||(h=!0,v.unsubscribe())}u.signal.addEventListener("abort",()=>{f(u.signal.reason)});const v=n.subscribe({next(p){h=!0,o(p),m()},error(p){f(p)},complete(){u.abort(),m()}})})}var K1=Object.create,qv=Object.defineProperty,Z1=Object.getOwnPropertyDescriptor,Qv=Object.getOwnPropertyNames,J1=Object.getPrototypeOf,F1=Object.prototype.hasOwnProperty,Wa=(n,u)=>function(){return u||(0,n[Qv(n)[0]])((u={exports:{}}).exports,u),u.exports},$1=(n,u,s,o)=>{if(u&&typeof u=="object"||typeof u=="function")for(var f=Qv(u),h=0,m=f.length,v;h<m;h++)v=f[h],!F1.call(n,v)&&v!==s&&qv(n,v,{get:(p=>u[p]).bind(null,v),enumerable:!(o=Z1(u,v))||o.enumerable});return n},jl=(n,u,s)=>(s=n!=null?K1(J1(n)):{},$1(u||!n||!n.__esModule?qv(s,"default",{value:n,enumerable:!0}):s,n)),P1=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,u){function s(o,f){if(o==null)return{};var h={};for(var m in o)if({}.hasOwnProperty.call(o,m)){if(f.includes(m))continue;h[m]=o[m]}return h}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),W1=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,u){var s=P1();function o(f,h){if(f==null)return{};var m,v,p=s(f,h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(f);for(v=0;v<y.length;v++)m=y[v],h.includes(m)||{}.propertyIsEnumerable.call(f,m)&&(p[m]=f[m])}return p}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),kv=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,u){function s(o){"@babel/helpers - typeof";return u.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},u.exports.__esModule=!0,u.exports.default=u.exports,s(o)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),I1=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,u){var s=kv().default;function o(f,h){if(s(f)!="object"||!f)return f;var m=f[Symbol.toPrimitive];if(m!==void 0){var v=m.call(f,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),eg=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,u){var s=kv().default,o=I1();function f(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}}),tg=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,u){var s=eg();function o(f,h,m){return(h=s(h))in f?Object.defineProperty(f,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[h]=m,f}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),Cr=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,u){var s=tg();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);m&&(p=p.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),v.push.apply(v,p)}return v}function f(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(p){s(h,p,v[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(v,p))})}return h}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}}),ag=jl(W1(),1),Rm=jl(Cr(),1);const lg=["cursor","direction"];function la(n,u,s){const o=n.flatMap(f=>f.split("."));if(!u&&(!s||s==="any"))return o.length?[o]:[];if(s==="infinite"&&bl(u)&&("direction"in u||"cursor"in u)){const{cursor:f,direction:h}=u,m=(0,ag.default)(u,lg);return[o,{input:m,type:"infinite"}]}return[o,(0,Rm.default)((0,Rm.default)({},typeof u<"u"&&u!==Dt&&{input:u}),s&&s!=="any"&&{type:s})]}function $u(n){return la(n,void 0,"any")}var ng=Object.create,Hv=Object.defineProperty,rg=Object.getOwnPropertyDescriptor,Bv=Object.getOwnPropertyNames,ug=Object.getPrototypeOf,ig=Object.prototype.hasOwnProperty,na=(n,u)=>function(){return u||(0,n[Bv(n)[0]])((u={exports:{}}).exports,u),u.exports},sg=(n,u,s,o)=>{if(u&&typeof u=="object"||typeof u=="function")for(var f=Bv(u),h=0,m=f.length,v;h<m;h++)v=f[h],!ig.call(n,v)&&v!==s&&Hv(n,v,{get:(p=>u[p]).bind(null,v),enumerable:!(o=rg(u,v))||o.enumerable});return n},Ke=(n,u,s)=>(s=n!=null?ng(ug(n)):{},sg(u||!n||!n.__esModule?Hv(s,"default",{value:n,enumerable:!0}):s,n)),Lv=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,u){function s(o){"@babel/helpers - typeof";return u.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},u.exports.__esModule=!0,u.exports.default=u.exports,s(o)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),og=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,u){var s=Lv().default;function o(f,h){if(s(f)!="object"||!f)return f;var m=f[Symbol.toPrimitive];if(m!==void 0){var v=m.call(f,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),cg=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,u){var s=Lv().default,o=og();function f(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}}),Ol=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,u){var s=cg();function o(f,h,m){return(h=s(h))in f?Object.defineProperty(f,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[h]=m,f}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),$t=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,u){var s=Ol();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);m&&(p=p.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),v.push.apply(v,p)}return v}function f(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(p){s(h,p,v[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(v,p))})}return h}u.exports=f,u.exports.__esModule=!0,u.exports.default=u.exports}});function fg(n){return u=>{let s=0,o=null;const f=[];function h(){o||(o=u.subscribe({next(v){for(const y of f){var p;(p=y.next)===null||p===void 0||p.call(y,v)}},error(v){for(const y of f){var p;(p=y.error)===null||p===void 0||p.call(y,v)}},complete(){for(const p of f){var v;(v=p.complete)===null||v===void 0||v.call(p)}}}))}function m(){if(s===0&&o){const v=o;o=null,v.unsubscribe()}}return oi(v=>(s++,f.push(v),h(),{unsubscribe(){s--,m();const p=f.findIndex(y=>y===v);p>-1&&f.splice(p,1)}}))}}function dg(n){let u=n;const s=[],o=m=>{u!==void 0&&m.next(u),s.push(m)},f=m=>{s.splice(s.indexOf(m),1)},h=oi(m=>(o(m),()=>{f(m)}));return h.next=m=>{if(u!==m){u=m;for(const v of s)v.next(m)}},h.get=()=>u,h}function hg(n){return oi(u=>{function s(f=0,h=n.op){const m=n.links[f];if(!m)throw new Error("No more links to execute - did you forget to add an ending link?");return m({op:h,next(p){return s(f+1,p)}})}return s().subscribe(u)})}var Vu=Ke(Ol(),1),mn=Ke($t(),1);function mg(n){return n instanceof ai}function vg(n){return bl(n)&&bl(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function pg(n,u){return typeof n=="string"?n:bl(n)&&typeof n.message=="string"?n.message:u}var ai=class Pu extends Error{constructor(u,s){var o,f;const h=s?.cause;super(u,{cause:h}),(0,Vu.default)(this,"cause",void 0),(0,Vu.default)(this,"shape",void 0),(0,Vu.default)(this,"data",void 0),(0,Vu.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=h,this.shape=s==null||(o=s.result)===null||o===void 0?void 0:o.error,this.data=s==null||(f=s.result)===null||f===void 0?void 0:f.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Pu.prototype)}static from(u,s={}){const o=u;return mg(o)?(s.meta&&(o.meta=(0,mn.default)((0,mn.default)({},o.meta),s.meta)),o):vg(o)?new Pu(o.error.message,(0,mn.default)((0,mn.default)({},s),{},{result:o})):new Pu(pg(o,"Unknown error"),(0,mn.default)((0,mn.default)({},s),{},{cause:o}))}};function yg(n){const u=n;return u?"input"in u?u:{input:u,output:u}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const Um=n=>typeof n=="function";function gg(n){if(n)return n;if(typeof window<"u"&&Um(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Um(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var br=Ke($t());function xg(n){return{url:n.url.toString(),fetch:n.fetch,transformer:yg(n.transformer),methodOverride:n.methodOverride}}function bg(n){const u={};for(let s=0;s<n.length;s++){const o=n[s];u[s]=o}return u}const Sg={query:"GET",mutation:"POST",subscription:"PATCH"};function Gv(n){return"input"in n?n.transformer.input.serialize(n.input):bg(n.inputs.map(u=>n.transformer.input.serialize(u)))}const Yv=n=>{const u=n.url.split("?");let o=u[0].replace(/\/$/,"")+"/"+n.path;const f=[];if(u[1]&&f.push(u[1]),"inputs"in n&&f.push("batch=1"),n.type==="query"||n.type==="subscription"){const h=Gv(n);h!==void 0&&n.methodOverride!=="POST"&&f.push(`input=${encodeURIComponent(JSON.stringify(h))}`)}return f.length&&(o+="?"+f.join("&")),o},jg=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const u=Gv(n);return u!==void 0?JSON.stringify(u):void 0},Og=n=>Eg((0,br.default)((0,br.default)({},n),{},{contentTypeHeader:"application/json",getUrl:Yv,getBody:jg}));var _g=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const Ng=n=>{var u;if(n?.aborted)throw(u=n.throwIfAborted)===null||u===void 0||u.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new _g};async function Cg(n){var u;Ng(n.signal);const s=n.getUrl(n),o=n.getBody(n),f=(u=n.methodOverride)!==null&&u!==void 0?u:Sg[n.type],h=await(async()=>{const v=await n.headers();return Symbol.iterator in v?Object.fromEntries(v):v})(),m=(0,br.default)((0,br.default)((0,br.default)({},n.contentTypeHeader&&f!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{"trpc-accept":n.trpcAcceptHeader}:void 0),h);return gg(n.fetch)(s,{method:f,signal:n.signal,body:o,headers:m})}async function Eg(n){const u={},s=await Cg(n);u.response=s;const o=await s.json();return u.responseJSON=o,{json:o,meta:u}}Ke($t(),1);const qm=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Qm(n){let u=null,s=null;const o=()=>{clearTimeout(s),s=null,u=null};function f(v){const p=[[]];let y=0;for(;;){const C=v[y];if(!C)break;const q=p[p.length-1];if(C.aborted){var O;(O=C.reject)===null||O===void 0||O.call(C,new Error("Aborted")),y++;continue}if(n.validate(q.concat(C).map(_=>_.key))){q.push(C),y++;continue}if(q.length===0){var x;(x=C.reject)===null||x===void 0||x.call(C,new Error("Input is too big for a single dispatch")),y++;continue}p.push([])}return p}function h(){const v=f(u);o();for(const p of v){if(!p.length)continue;const y={items:p};for(const x of p)x.batch=y;n.fetch(y.items.map(x=>x.key)).then(async x=>{await Promise.all(x.map(async(q,G)=>{const _=y.items[G];try{var F;const fe=await Promise.resolve(q);(F=_.resolve)===null||F===void 0||F.call(_,fe)}catch(fe){var ne;(ne=_.reject)===null||ne===void 0||ne.call(_,fe)}_.batch=null,_.reject=null,_.resolve=null}));for(const q of y.items){var C;(C=q.reject)===null||C===void 0||C.call(q,new Error("Missing result")),q.batch=null}}).catch(x=>{for(const q of y.items){var C;(C=q.reject)===null||C===void 0||C.call(q,x),q.batch=null}})}}function m(v){var p;const y={aborted:!1,key:v,batch:null,resolve:qm,reject:qm},O=new Promise((x,C)=>{var q;y.reject=C,y.resolve=x,(q=u)!==null&&q!==void 0||(u=[]),u.push(y)});return(p=s)!==null&&p!==void 0||(s=setTimeout(h)),O}return{load:m}}function Mg(...n){const u=new AbortController,s=n.length;let o=0;const f=()=>{++o===s&&u.abort()};for(const h of n)h?.aborted?f():h?.addEventListener("abort",f,{once:!0});return u.signal}var Ku=Ke($t(),1);function Tg(n){var u,s;const o=xg(n),f=(u=n.maxURLLength)!==null&&u!==void 0?u:1/0,h=(s=n.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const m=O=>({validate(x){if(f===1/0&&h===1/0)return!0;if(x.length>h)return!1;const C=x.map(_=>_.path).join(","),q=x.map(_=>_.input);return Yv((0,Ku.default)((0,Ku.default)({},o),{},{type:O,path:C,inputs:q,signal:null})).length<=f},async fetch(x){const C=x.map(fe=>fe.path).join(","),q=x.map(fe=>fe.input),G=Mg(...x.map(fe=>fe.signal)),_=await Og((0,Ku.default)((0,Ku.default)({},o),{},{path:C,inputs:q,type:O,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:x}):n.headers:{}},signal:G}));return(Array.isArray(_.json)?_.json:x.map(()=>_.json)).map(fe=>({meta:_.meta,json:fe}))}}),v=Qm(m("query")),p=Qm(m("mutation")),y={query:v,mutation:p};return({op:O})=>oi(x=>{/* istanbul ignore if -- @preserve */if(O.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const q=y[O.type].load(O);let G;return q.then(_=>{G=_;const F=Y1(_.json,o.transformer.output);if(!F.ok){x.error(ai.from(F.error,{meta:_.meta}));return}x.next({context:_.meta,result:F.result}),x.complete()}).catch(_=>{x.error(ai.from(_,{meta:G?.meta}))}),()=>{}})}}Ke($t(),1);const Xv=(n,...u)=>typeof n=="function"?n(...u):n;Ke(Ol(),1);function Ag(){let n,u;return{promise:new Promise((o,f)=>{n=o,u=f}),resolve:n,reject:u}}async function zg(n){const u=await Xv(n.url);if(!n.connectionParams)return u;const o=`${u.includes("?")?"&":"?"}connectionParams=1`;return u+o}async function Dg(n){const u={method:"connectionParams",data:await Xv(n)};return JSON.stringify(u)}Ke(Ol(),1);var gl=Ke(Ol(),1);function wg(n){const{promise:u,resolve:s,reject:o}=Ag();return n.addEventListener("open",()=>{n.removeEventListener("error",o),s()}),n.addEventListener("error",o),u}function Rg(n,{intervalMs:u,pongTimeoutMs:s}){let o,f;function h(){o=setTimeout(()=>{n.send("PING"),f=setTimeout(()=>{n.close()},s)},u)}function m(){clearTimeout(o),h()}function v(){clearTimeout(f),m()}n.addEventListener("open",h),n.addEventListener("message",({data:p})=>{clearTimeout(o),h(),p==="PONG"&&v()}),n.addEventListener("close",()=>{clearTimeout(o),clearTimeout(f)})}var Ug=class Wo{constructor(u){var s;if((0,gl.default)(this,"id",++Wo.connectCount),(0,gl.default)(this,"WebSocketPonyfill",void 0),(0,gl.default)(this,"urlOptions",void 0),(0,gl.default)(this,"keepAliveOpts",void 0),(0,gl.default)(this,"wsObservable",dg(null)),(0,gl.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=u.WebSocketPonyfill)!==null&&s!==void 0?s:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=u.urlOptions,this.keepAliveOpts=u.keepAlive}get ws(){return this.wsObservable.get()}set ws(u){this.wsObservable.next(u)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var u=this;if(u.openPromise)return u.openPromise;u.id=++Wo.connectCount;const s=zg(u.urlOptions).then(o=>new u.WebSocketPonyfill(o));u.openPromise=s.then(async o=>{u.ws=o,o.addEventListener("message",function({data:f}){f==="PING"&&this.send("PONG")}),u.keepAliveOpts.enabled&&Rg(o,u.keepAliveOpts),o.addEventListener("close",()=>{u.ws===o&&(u.ws=null)}),await wg(o),u.urlOptions.connectionParams&&o.send(await Dg(u.urlOptions.connectionParams))});try{await u.openPromise}finally{u.openPromise=null}}async close(){var u=this;try{await u.openPromise}finally{var s;(s=u.ws)===null||s===void 0||s.close()}}};(0,gl.default)(Ug,"connectCount",0);Ke(Ol(),1);Ke($t(),1);var Qo=Ke(Ol(),1),km=Ke($t(),1),ci=class{constructor(n){(0,Qo.default)(this,"links",void 0),(0,Qo.default)(this,"runtime",void 0),(0,Qo.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(u=>u(this.runtime))}$request(n){var u;return hg({links:this.links,op:(0,km.default)((0,km.default)({},n),{},{context:(u=n.context)!==null&&u!==void 0?u:{},id:++this.requestId})}).pipe(fg())}async requestAsPromise(n){var u=this;try{const s=u.$request(n);return(await V1(s)).result.data}catch(s){throw ai.from(s)}}query(n,u,s){return this.requestAsPromise({type:"query",path:n,input:u,context:s?.context,signal:s?.signal})}mutation(n,u,s){return this.requestAsPromise({type:"mutation",path:n,input:u,context:s?.context,signal:s?.signal})}subscription(n,u,s){return this.$request({type:"subscription",path:n,input:u,context:s.context,signal:s.signal}).subscribe({next(f){switch(f.result.type){case"state":{var h;(h=s.onConnectionStateChange)===null||h===void 0||h.call(s,f.result);break}case"started":{var m;(m=s.onStarted)===null||m===void 0||m.call(s,{context:f.context});break}case"stopped":{var v;(v=s.onStopped)===null||v===void 0||v.call(s);break}case"data":case void 0:{var p;(p=s.onData)===null||p===void 0||p.call(s,f.result.data);break}}},error(f){var h;(h=s.onError)===null||h===void 0||h.call(s,f)},complete(){var f;(f=s.onComplete)===null||f===void 0||f.call(s)}})}};const Vv=Symbol.for("trpc_untypedClient"),qg={query:"query",mutate:"mutation",subscribe:"subscription"},Qg=n=>qg[n];function Kv(n){const u=si(({path:s,args:o})=>{const f=[...s],h=Qg(f.pop()),m=f.join(".");return n[h](m,...o)});return ic(s=>s===Vv?n:u[s])}function kg(n){const u=new ci(n);return Kv(u)}function oc(n){return n[Vv]}Ke($t(),1);Ke($t(),1);var Hg=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,u){function s(f){var h,m,v,p=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);p--;){if(m&&(h=f[m])!=null)return h.call(f);if(v&&(h=f[v])!=null)return new o(h.call(f));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function o(f){function h(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var v=m.done;return Promise.resolve(m.value).then(function(p){return{value:p,done:v}})}return o=function(v){this.s=v,this.n=v.next},o.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var p=this.s.return;return p===void 0?Promise.resolve({value:v,done:!0}):h(p.apply(this.s,arguments))},throw:function(v){var p=this.s.return;return p===void 0?Promise.reject(v):h(p.apply(this.s,arguments))}},new o(f)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}});Ke(Hg(),1);Ke($t(),1);var Bg=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,u){function s(){var o=typeof SuppressedError=="function"?SuppressedError:function(v,p){var y=Error();return y.name="SuppressedError",y.error=v,y.suppressed=p,y},f={},h=[];function m(v,p){if(p!=null){if(Object(p)!==p)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(v)var y=p[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(y===void 0&&(y=p[Symbol.dispose||Symbol.for("Symbol.dispose")],v))var O=y;if(typeof y!="function")throw new TypeError("Object is not disposable.");O&&(y=function(){try{O.call(p)}catch(C){return Promise.reject(C)}}),h.push({v:p,d:y,a:v})}else v&&h.push({d:p,a:v});return p}return{e:f,u:m.bind(null,!1),a:m.bind(null,!0),d:function(){var p,y=this.e,O=0;function x(){for(;p=h.pop();)try{if(!p.a&&O===1)return O=0,h.push(p),Promise.resolve().then(x);if(p.d){var q=p.d.call(p.v);if(p.a)return O|=2,Promise.resolve(q).then(x,C)}else O|=1}catch(G){return C(G)}if(O===1)return y!==f?Promise.reject(y):Promise.resolve();if(y!==f)throw y}function C(q){return y=y!==f?new o(q,y):q,x()}return x()}}}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),Zv=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,u){function s(o,f){this.v=o,this.k=f}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),Lg=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,u){var s=Zv();function o(f){return new s(f,0)}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}}),Gg=na({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,u){var s=Zv();function o(h){return function(){return new f(h.apply(this,arguments))}}function f(h){var m,v;function p(O,x){try{var C=h[O](x),q=C.value,G=q instanceof s;Promise.resolve(G?q.v:q).then(function(_){if(G){var F=O==="return"?"return":"next";if(!q.k||_.done)return p(F,_);_=h[F](_).value}y(C.done?"return":"normal",_)},function(_){p("throw",_)})}catch(_){y("throw",_)}}function y(O,x){switch(O){case"return":m.resolve({value:x,done:!0});break;case"throw":m.reject(x);break;default:m.resolve({value:x,done:!1})}(m=m.next)?p(m.key,m.arg):v=null}this._invoke=function(O,x){return new Promise(function(C,q){var G={key:O,arg:x,resolve:C,reject:q,next:null};v?v=v.next=G:(m=v=G,p(O,x))})},typeof h.return!="function"&&(this.return=void 0)}f.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},f.prototype.next=function(h){return this._invoke("next",h)},f.prototype.throw=function(h){return this._invoke("throw",h)},f.prototype.return=function(h){return this._invoke("return",h)},u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports}});Ke(Bg(),1);Ke(Lg(),1);Ke(Gg(),1);Ke($t(),1);function Yg(n){return si(({path:u,args:s})=>{var o;const f=[...u],h=f.pop();if(h==="useMutation")return n[h](f,...s);if(h==="_def")return{path:f};const[m,...v]=s,p=(o=v[0])!==null&&o!==void 0?o:{};return n[h](f,m,p)})}var ko;const Xg=["client","ssrContext","ssrState","abortOnUnmount"],Vg=(ko=D.createContext)===null||ko===void 0?void 0:ko.call($m,null),Kg=n=>{switch(n){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Zg(n){return si(u=>{const s=[...u.path],o=s.pop(),f=[...u.args],h=f.shift(),m=Kg(o),v=la(s,h,m);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(s,v,f[0]),queryOptions:()=>n.queryOptions(s,v,...f),fetch:()=>n.fetchQuery(v,...f),fetchInfinite:()=>n.fetchInfiniteQuery(v,f[0]),prefetch:()=>n.prefetchQuery(v,...f),prefetchInfinite:()=>n.prefetchInfiniteQuery(v,f[0]),ensureData:()=>n.ensureQueryData(v,...f),invalidate:()=>n.invalidateQueries(v,...f),reset:()=>n.resetQueries(v,...f),refetch:()=>n.refetchQueries(v,...f),cancel:()=>n.cancelQuery(v,...f),setData:()=>{n.setQueryData(v,f[0],f[1])},setQueriesData:()=>n.setQueriesData(v,f[0],f[1],f[2]),setInfiniteData:()=>{n.setInfiniteQueryData(v,f[0],f[1])},getData:()=>n.getQueryData(v),getInfiniteData:()=>n.getInfiniteQueryData(v),setMutationDefaults:()=>n.setMutationDefaults($u(s),h),getMutationDefaults:()=>n.getMutationDefaults($u(s)),isMutating:()=>n.isMutating({mutationKey:$u(s)})}[o]()})}function Jg(n){const u=Kv(n.client),s=Zg(n);return ic(o=>{const f=o;return f==="client"?u:Xg.includes(f)?n[f]:s[o]})}var Fg=jl(Cr(),1);function Hm(n){const u=n instanceof ci?n:oc(n);return si(s=>{const o=s.path,f=o.join("."),[h,m]=s.args;return(0,Fg.default)({queryKey:la(o,h,"query"),queryFn:()=>u.query(f,h,m?.trpc)},m)})}var Ho=jl(Cr(),1);function ht(n,u,s){var o;const f=n[0];let h=(o=n[1])===null||o===void 0?void 0:o.input;if(s){var m;h=(0,Ho.default)((0,Ho.default)((0,Ho.default)({},(m=h)!==null&&m!==void 0?m:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[f.join("."),h,u?.trpc]}var $g=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,u){function s(f){var h,m,v,p=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);p--;){if(m&&(h=f[m])!=null)return h.call(f);if(v&&(h=f[v])!=null)return new o(h.call(f));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function o(f){function h(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var v=m.done;return Promise.resolve(m.value).then(function(p){return{value:p,done:v}})}return o=function(v){this.s=v,this.n=v.next},o.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var p=this.s.return;return p===void 0?Promise.resolve({value:v,done:!0}):h(p.apply(this.s,arguments))},throw:function(v){var p=this.s.return;return p===void 0?Promise.reject(v):h(p.apply(this.s,arguments))}},new o(f)}u.exports=s,u.exports.__esModule=!0,u.exports.default=u.exports}}),Pg=jl($g(),1);function Io(n){return{path:n.path.join(".")}}function pr(n){const u=Io(n);return D.useMemo(()=>u,[u])}async function Jv(n,u,s){const f=u.getQueryCache().build(u,{queryKey:s});f.setState({data:[],status:"success"});const h=[];var m=!1,v=!1,p;try{for(var y=(0,Pg.default)(n),O;m=!(O=await y.next()).done;m=!1){const x=O.value;h.push(x),f.setState({data:[...h]})}}catch(x){v=!0,p=x}finally{try{m&&y.return!=null&&await y.return()}finally{if(v)throw p}}return h}var Te=jl(Cr(),1);function Wg(n){const{client:u,queryClient:s}=n,o=u instanceof ci?u:oc(u);return{infiniteQueryOptions:(f,h,m)=>{var v,p;const y=((v=h[1])===null||v===void 0?void 0:v.input)===Dt,O=async x=>{var C;const q=(0,Te.default)((0,Te.default)({},m),{},{trpc:(0,Te.default)((0,Te.default)({},m?.trpc),!(m==null||(C=m.trpc)===null||C===void 0)&&C.abortOnUnmount?{signal:x.signal}:{signal:null})});return await o.query(...ht(h,q,{direction:x.direction,pageParam:x.pageParam}))};return Object.assign((0,Te.default)((0,Te.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:y?Dt:O,initialPageParam:(p=m?.initialCursor)!==null&&p!==void 0?p:null}),{trpc:Io({path:f})})},queryOptions:(f,h,m)=>{var v;const p=((v=h[1])===null||v===void 0?void 0:v.input)===Dt,y=async O=>{var x;const C=(0,Te.default)((0,Te.default)({},m),{},{trpc:(0,Te.default)((0,Te.default)({},m?.trpc),!(m==null||(x=m.trpc)===null||x===void 0)&&x.abortOnUnmount?{signal:O.signal}:{signal:null})}),q=await o.query(...ht(h,C));return Tv(q)?Jv(q,s,h):q};return Object.assign((0,Te.default)((0,Te.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:p?Dt:y}),{trpc:Io({path:f})})},fetchQuery:(f,h)=>s.fetchQuery((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:()=>o.query(...ht(f,h))})),fetchInfiniteQuery:(f,h)=>{var m;return s.fetchInfiniteQuery((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:({pageParam:v,direction:p})=>o.query(...ht(f,h,{pageParam:v,direction:p})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},prefetchQuery:(f,h)=>s.prefetchQuery((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:()=>o.query(...ht(f,h))})),prefetchInfiniteQuery:(f,h)=>{var m;return s.prefetchInfiniteQuery((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:({pageParam:v,direction:p})=>o.query(...ht(f,h,{pageParam:v,direction:p})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},ensureQueryData:(f,h)=>s.ensureQueryData((0,Te.default)((0,Te.default)({},h),{},{queryKey:f,queryFn:()=>o.query(...ht(f,h))})),invalidateQueries:(f,h,m)=>s.invalidateQueries((0,Te.default)((0,Te.default)({},h),{},{queryKey:f}),m),resetQueries:(f,h,m)=>s.resetQueries((0,Te.default)((0,Te.default)({},h),{},{queryKey:f}),m),refetchQueries:(f,h,m)=>s.refetchQueries((0,Te.default)((0,Te.default)({},h),{},{queryKey:f}),m),cancelQuery:(f,h)=>s.cancelQueries({queryKey:f},h),setQueryData:(f,h,m)=>s.setQueryData(f,h,m),setQueriesData:(f,h,m,v)=>s.setQueriesData((0,Te.default)((0,Te.default)({},h),{},{queryKey:f}),m,v),getQueryData:f=>s.getQueryData(f),setInfiniteQueryData:(f,h,m)=>s.setQueryData(f,h,m),getInfiniteQueryData:f=>s.getQueryData(f),setMutationDefaults:(f,h)=>{const m=f[0],v=p=>o.mutation(...ht([m,{input:p}],n));return s.setMutationDefaults(f,typeof h=="function"?h({canonicalMutationFn:v}):h)},getMutationDefaults:f=>s.getMutationDefaults(f),isMutating:f=>s.isMutating((0,Te.default)((0,Te.default)({},f),{},{exact:!0}))}}var $=jl(Cr());const Bm=(n,u)=>new Proxy(n,{get(o,f){return u(f),o[f]}});function Ig(n){var u,s;const o=(u=void 0)!==null&&u!==void 0?u:X=>X.originalFn(),f=(s=void 0)!==null&&s!==void 0?s:Vg,h=kg,m=X=>{var V;const{abortOnUnmount:w=!1,queryClient:J,ssrContext:ee}=X,[ae,le]=D.useState((V=X.ssrState)!==null&&V!==void 0?V:!1),W=X.client instanceof ci?X.client:oc(X.client),xe=D.useMemo(()=>Wg({client:W,queryClient:J}),[W,J]),de=D.useMemo(()=>(0,$.default)({abortOnUnmount:w,queryClient:J,client:W,ssrContext:ee??null,ssrState:ae},xe),[w,W,xe,J,ee,ae]);return D.useEffect(()=>{le(me=>me?"mounted":!1)},[]),c.jsx(f.Provider,{value:de,children:X.children})};function v(){const X=D.useContext(f);if(!X)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return X}function p(X,V){var w;const{queryClient:J,ssrState:ee}=v();return ee&&ee!=="mounted"&&((w=J.getQueryCache().find({queryKey:X}))===null||w===void 0?void 0:w.state.status)==="error"?(0,$.default)({retryOnMount:!1},V):V}function y(X,V,w){var J,ee,ae,le,W;const xe=v(),{abortOnUnmount:de,client:me,ssrState:T,queryClient:H,prefetchQuery:Z}=xe,ue=la(X,V,"query"),ve=H.getQueryDefaults(ue),S=V===Dt;typeof window>"u"&&T==="prepass"&&(w==null||(J=w.trpc)===null||J===void 0?void 0:J.ssr)!==!1&&((ee=w?.enabled)!==null&&ee!==void 0?ee:ve?.enabled)!==!1&&!S&&!H.getQueryCache().find({queryKey:ue})&&Z(ue,w);const R=p(ue,(0,$.default)((0,$.default)({},ve),w)),B=(ae=(le=w==null||(W=w.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&le!==void 0?le:void 0)!==null&&ae!==void 0?ae:de,Y=a1((0,$.default)((0,$.default)({},R),{},{queryKey:ue,queryFn:S?V:async I=>{const se=(0,$.default)((0,$.default)({},R),{},{trpc:(0,$.default)((0,$.default)({},R?.trpc),B?{signal:I.signal}:{signal:null})}),be=await me.query(...ht(ue,se));return Tv(be)?Jv(be,H,ue):be}}),H);return Y.trpc=pr({path:X}),Y}function O(X,V,w){var J,ee,ae;const le=v(),W=la(X,V,"query"),xe=V===Dt,de=(J=(ee=w==null||(ae=w.trpc)===null||ae===void 0?void 0:ae.abortOnUnmount)!==null&&ee!==void 0?ee:void 0)!==null&&J!==void 0?J:le.abortOnUnmount;u1((0,$.default)((0,$.default)({},w),{},{queryKey:W,queryFn:xe?V:me=>{const T={trpc:(0,$.default)((0,$.default)({},w?.trpc),de?{signal:me.signal}:{})};return le.client.query(...ht(W,T))}}))}function x(X,V,w){var J,ee,ae;const le=v(),W=la(X,V,"query"),xe=(J=(ee=w==null||(ae=w.trpc)===null||ae===void 0?void 0:ae.abortOnUnmount)!==null&&ee!==void 0?ee:void 0)!==null&&J!==void 0?J:le.abortOnUnmount,de=l1((0,$.default)((0,$.default)({},w),{},{queryKey:W,queryFn:me=>{const T=(0,$.default)((0,$.default)({},w),{},{trpc:(0,$.default)((0,$.default)({},w?.trpc),xe?{signal:me.signal}:{signal:null})});return le.client.query(...ht(W,T))}}),le.queryClient);return de.trpc=pr({path:X}),[de.data,de]}function C(X,V){const{client:w,queryClient:J}=v(),ee=$u(X),ae=J.defaultMutationOptions(J.getMutationDefaults(ee)),le=s1((0,$.default)((0,$.default)({},V),{},{mutationKey:ee,mutationFn:W=>w.mutation(...ht([X,{input:W}],V)),onSuccess(...W){var xe,de;return o({originalFn:()=>{var T,H,Z;return(T=V==null||(H=V.onSuccess)===null||H===void 0?void 0:H.call(V,...W))!==null&&T!==void 0?T:ae==null||(Z=ae.onSuccess)===null||Z===void 0?void 0:Z.call(ae,...W)},queryClient:J,meta:(xe=(de=V?.meta)!==null&&de!==void 0?de:ae?.meta)!==null&&xe!==void 0?xe:{}})}}),J);return le.trpc=pr({path:X}),le}const q={data:void 0,error:null,status:"idle"},G={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function _(X,V,w){var J;const ee=(J=w?.enabled)!==null&&J!==void 0?J:V!==Dt,ae=Pa(la(X,V,"any")),{client:le}=v(),W=D.useRef(w);D.useEffect(()=>{W.current=w});const[xe]=D.useState(new Set([])),de=D.useCallback(S=>{xe.add(S)},[xe]),me=D.useRef(null),T=D.useCallback(S=>{const R=Z.current,B=Z.current=S(R);let Y=!1;for(const I of xe)if(R[I]!==B[I]){Y=!0;break}Y&&ve(Bm(B,de))},[de,xe]),H=D.useCallback(()=>{var S;if((S=me.current)===null||S===void 0||S.unsubscribe(),!ee){T(()=>(0,$.default)((0,$.default)({},q),{},{reset:H}));return}T(()=>(0,$.default)((0,$.default)({},G),{},{reset:H}));const R=le.subscription(X.join("."),V??void 0,{onStarted:()=>{var B,Y;(B=(Y=W.current).onStarted)===null||B===void 0||B.call(Y),T(I=>(0,$.default)((0,$.default)({},I),{},{status:"pending",error:null}))},onData:B=>{var Y,I;(Y=(I=W.current).onData)===null||Y===void 0||Y.call(I,B),T(se=>(0,$.default)((0,$.default)({},se),{},{status:"pending",data:B,error:null}))},onError:B=>{var Y,I;(Y=(I=W.current).onError)===null||Y===void 0||Y.call(I,B),T(se=>(0,$.default)((0,$.default)({},se),{},{status:"error",error:B}))},onConnectionStateChange:B=>{T(Y=>{switch(B.state){case"idle":return(0,$.default)((0,$.default)({},Y),{},{status:B.state,error:null,data:void 0});case"connecting":return(0,$.default)((0,$.default)({},Y),{},{error:B.error,status:B.state});case"pending":return Y}})},onComplete:()=>{var B,Y;(B=(Y=W.current).onComplete)===null||B===void 0||B.call(Y),T(I=>(0,$.default)((0,$.default)({},I),{},{status:"idle",error:null,data:void 0}))}});me.current=R},[le,ae,ee,T]);D.useEffect(()=>(H(),()=>{var S;(S=me.current)===null||S===void 0||S.unsubscribe()}),[H]);const Z=D.useRef(ee?(0,$.default)((0,$.default)({},G),{},{reset:H}):(0,$.default)((0,$.default)({},q),{},{reset:H})),[ue,ve]=D.useState(Bm(Z.current,de));return ue}function F(X,V,w){var J,ee,ae,le,W;const{client:xe,ssrState:de,prefetchInfiniteQuery:me,queryClient:T,abortOnUnmount:H}=v(),Z=la(X,V,"infinite"),ue=T.getQueryDefaults(Z),ve=V===Dt;typeof window>"u"&&de==="prepass"&&(w==null||(J=w.trpc)===null||J===void 0?void 0:J.ssr)!==!1&&((ee=w?.enabled)!==null&&ee!==void 0?ee:ue?.enabled)!==!1&&!ve&&!T.getQueryCache().find({queryKey:Z})&&me(Z,(0,$.default)((0,$.default)({},ue),w));const S=p(Z,(0,$.default)((0,$.default)({},ue),w)),R=(ae=w==null||(le=w.trpc)===null||le===void 0?void 0:le.abortOnUnmount)!==null&&ae!==void 0?ae:H,B=o1((0,$.default)((0,$.default)({},S),{},{initialPageParam:(W=w.initialCursor)!==null&&W!==void 0?W:null,persister:w.persister,queryKey:Z,queryFn:ve?V:Y=>{var I;const se=(0,$.default)((0,$.default)({},S),{},{trpc:(0,$.default)((0,$.default)({},S?.trpc),R?{signal:Y.signal}:{signal:null})});return xe.query(...ht(Z,se,{pageParam:(I=Y.pageParam)!==null&&I!==void 0?I:w.initialCursor,direction:Y.direction}))}}),T);return B.trpc=pr({path:X}),B}function ne(X,V,w){var J,ee,ae;const le=v(),W=la(X,V,"infinite"),xe=le.queryClient.getQueryDefaults(W),de=V===Dt,me=p(W,(0,$.default)((0,$.default)({},xe),w)),T=(J=w==null||(ee=w.trpc)===null||ee===void 0?void 0:ee.abortOnUnmount)!==null&&J!==void 0?J:le.abortOnUnmount;i1((0,$.default)((0,$.default)({},w),{},{initialPageParam:(ae=w.initialCursor)!==null&&ae!==void 0?ae:null,queryKey:W,queryFn:de?V:H=>{var Z;const ue=(0,$.default)((0,$.default)({},me),{},{trpc:(0,$.default)((0,$.default)({},me?.trpc),T?{signal:H.signal}:{})});return le.client.query(...ht(W,ue,{pageParam:(Z=H.pageParam)!==null&&Z!==void 0?Z:w.initialCursor,direction:H.direction}))}}))}function fe(X,V,w){var J,ee,ae;const le=v(),W=la(X,V,"infinite"),xe=le.queryClient.getQueryDefaults(W),de=p(W,(0,$.default)((0,$.default)({},xe),w)),me=(J=w==null||(ee=w.trpc)===null||ee===void 0?void 0:ee.abortOnUnmount)!==null&&J!==void 0?J:le.abortOnUnmount,T=n1((0,$.default)((0,$.default)({},w),{},{initialPageParam:(ae=w.initialCursor)!==null&&ae!==void 0?ae:null,queryKey:W,queryFn:H=>{var Z;const ue=(0,$.default)((0,$.default)({},de),{},{trpc:(0,$.default)((0,$.default)({},de?.trpc),me?{signal:H.signal}:{})});return le.client.query(...ht(W,ue,{pageParam:(Z=H.pageParam)!==null&&Z!==void 0?Z:w.initialCursor,direction:H.direction}))}}),le.queryClient);return T.trpc=pr({path:X}),[T.data,T]}return{Provider:m,createClient:h,useContext:v,useUtils:v,useQuery:y,usePrefetchQuery:O,useSuspenseQuery:x,useQueries:(X,V)=>{const{ssrState:w,queryClient:J,prefetchQuery:ee,client:ae}=v(),le=Hm(ae),W=X(le);if(typeof window>"u"&&w==="prepass")for(const de of W){var xe;const me=de;((xe=me.trpc)===null||xe===void 0?void 0:xe.ssr)!==!1&&!J.getQueryCache().find({queryKey:me.queryKey})&&ee(me.queryKey,me)}return yv({queries:W.map(de=>(0,$.default)((0,$.default)({},de),{},{queryKey:de.queryKey})),combine:V?.combine},J)},useSuspenseQueries:X=>{const{queryClient:V,client:w}=v(),J=Hm(w),ee=X(J),ae=r1({queries:ee.map(le=>(0,$.default)((0,$.default)({},le),{},{queryFn:le.queryFn,queryKey:le.queryKey}))},V);return[ae.map(le=>le.data),ae]},useMutation:C,useSubscription:_,useInfiniteQuery:F,usePrefetchInfiniteQuery:ne,useSuspenseInfiniteQuery:fe}}function ex(n){const u=Yg(n);return ic(s=>s==="useContext"||s==="useUtils"?()=>{const o=n.useUtils();return D.useMemo(()=>Jg(o),[o])}:n.hasOwnProperty(s)?n[s]:u[s])}function tx(n){const u=Ig();return ex(u)}const L=tx(),ax=L.createClient({links:[Tg({url:"/api/trpc"})]});/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fv=(...n)=>n.filter((u,s,o)=>!!u&&u.trim()!==""&&o.indexOf(u)===s).join(" ").trim();/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lx=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nx=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,s,o)=>o?o.toUpperCase():s.toLowerCase());/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lm=n=>{const u=nx(n);return u.charAt(0).toUpperCase()+u.slice(1)};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Bo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rx=n=>{for(const u in n)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1},ux=D.createContext({}),ix=()=>D.useContext(ux),sx=D.forwardRef(({color:n,size:u,strokeWidth:s,absoluteStrokeWidth:o,className:f="",children:h,iconNode:m,...v},p)=>{const{size:y=24,strokeWidth:O=2,absoluteStrokeWidth:x=!1,color:C="currentColor",className:q=""}=ix()??{},G=o??x?Number(s??O)*24/Number(u??y):s??O;return D.createElement("svg",{ref:p,...Bo,width:u??y??Bo.width,height:u??y??Bo.height,stroke:n??C,strokeWidth:G,className:Fv("lucide",q,f),...!h&&!rx(v)&&{"aria-hidden":"true"},...v},[...m.map(([_,F])=>D.createElement(_,F)),...Array.isArray(h)?h:[h]])});/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oe=(n,u)=>{const s=D.forwardRef(({className:o,...f},h)=>D.createElement(sx,{ref:h,iconNode:u,className:Fv(`lucide-${lx(Lm(n))}`,`lucide-${n}`,o),...f}));return s.displayName=Lm(n),s};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ox=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],cx=oe("baby",ox);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fx=[["path",{d:"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1ol0lm"}],["path",{d:"M8 10h8",key:"c7uz4u"}],["path",{d:"M8 18h8",key:"1no2b1"}],["path",{d:"M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6",key:"1fr6do"}],["path",{d:"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2",key:"donm21"}]],dx=oe("backpack",fx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hx=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2h4.001A2 2 0 0022 17v-1.344",key:"144kbk"}]],mx=oe("book-open-check",hx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vx=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],px=oe("book-open",vx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yx=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],gx=oe("book",yx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xx=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],bx=oe("bookmark",xx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sx=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],jx=oe("calendar",Sx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ox=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$v=oe("check",Ox);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _x=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Nx=oe("chevron-down",_x);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],cc=oe("chevron-left",Cx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ex=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fc=oe("chevron-right",Ex);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Tx=oe("clock",Mx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ax=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],zx=oe("copy",Ax);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dx=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],wx=oe("download",Dx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rx=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ux=oe("eye",Rx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Qx=oe("file-text",qx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kx=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]],Hx=oe("gift",kx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Lx=oe("globe",Bx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gx=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Yx=oe("graduation-cap",Gx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xx=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],Vx=oe("headphones",Xx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kx=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Zx=oe("heart",Kx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jx=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Fx=oe("house",Jx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $x=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Px=oe("image",$x);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wx=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Ix=oe("layers",Wx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eb=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],tb=oe("library",eb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ab=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],lb=oe("mail",ab);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nb=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],rb=oe("map-pin",nb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ub=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ib=oe("menu",ub);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sb=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],ob=oe("messages-square",sb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cb=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],fb=oe("music",cb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const db=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],hb=oe("newspaper",db);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mb=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],vb=oe("palette",mb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pb=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],yb=oe("pen-line",pb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],xb=oe("phone",gb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Sr=oe("search",bb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sb=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],jb=oe("settings",Sb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ob=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Pv=oe("share-2",Ob);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _b=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Nb=oe("shield-check",_b);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cb=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Eb=oe("shopping-bag",Cb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mb=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Tb=oe("smartphone",Mb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ab=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],zb=oe("smile",Ab);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Db=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],wb=oe("sparkles",Db);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rb=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Wv=oe("star",Rb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ub=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],qb=oe("upload",Ub);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qb=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],kb=oe("user-round",Qb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hb=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Bb=oe("user",Hb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Gb=oe("users",Lb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yb=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Xb=oe("video",Yb);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kb=oe("x",Vb),Gm={Search:Sr,BookOpen:px,Bookmark:bx,MessagesSquare:ob,Layers:Ix,Palette:vb,Newspaper:hb,GraduationCap:Yx,Baby:cx,Smile:zb,Backpack:dx,Headphones:Vx,UserRound:kb,BookOpenCheck:mx,Check:$v,Heart:Zx,Star:Wv,Home:Fx,Users:Gb,Book:gx,Library:tb,PenLine:yb,Sparkles:wb,ShieldCheck:Nb,Clock:Tx,Smartphone:Tb,Globe:Lx,Mail:lb,Phone:xb,MapPin:rb,Calendar:jx,Gift:Hx,Music:fb,Video:Xb,Image:Px,FileText:Qx,Download:wx,Upload:qb,Share2:Pv,Settings:jb,ChevronLeft:cc,ChevronRight:fc,User:Bb},Ym="/media/images/capas/capa-placeholder.svg",Lo="biblioteca_modo_exibicao";function Xm(){if(typeof window>"u")return"desktop";const n=window.innerWidth;return n<768?"mobile":n<1024?"tablet":"desktop"}function Zb(){const[n,u]=D.useState(Xm);return D.useEffect(()=>{function s(){u(Xm())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),n}function yn({livros:n,titulo:u}){const{data:s}=L.config.obter.useQuery(),o=Zb(),[f,h]=D.useState(()=>typeof window>"u"?"grade":localStorage.getItem(Lo)||"grade");D.useEffect(()=>{s&&!localStorage.getItem(Lo)&&h(s.modoPadrao)},[s]);function m(p){h(p),localStorage.setItem(Lo,p)}const v=o==="desktop"?s?.colunasDesktop??4:o==="tablet"?s?.colunasTablet??2:null;return c.jsxs("section",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h2",{className:"font-medium uppercase text-xs",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:u}),c.jsxs("div",{className:"flex gap-1",children:[c.jsx("button",{"aria-label":"ver em grade","aria-pressed":f==="grade",onClick:()=>m("grade"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Vm(f==="grade"),children:c.jsx(Jb,{})}),c.jsx("button",{"aria-label":"ver em lista","aria-pressed":f==="lista",onClick:()=>m("lista"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Vm(f==="lista"),children:c.jsx(Fb,{})})]})]}),f==="grade"?c.jsx("div",{className:"grid gap-x-5 gap-y-8",style:{gridTemplateColumns:v?`repeat(${v}, 1fr)`:"repeat(auto-fill, minmax(120px, 1fr))"},children:n.map(p=>c.jsxs("a",{href:`/livro/${p.id}`,className:"group block",children:[c.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 ease-out group-hover:-translate-y-1 group-hover:shadow-2xl",children:c.jsx("img",{src:p.capaUrl||Ym,alt:p.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),c.jsx("p",{className:"text-sm mt-2 leading-snug line-clamp-2 transition-colors group-hover:text-[var(--clr-dourado-400)]",style:{color:"var(--clr-branco)"},children:p.titulo}),c.jsx("p",{className:"text-xs mt-0.5",style:{color:"var(--color-text-on-dark-muted)"},children:p.autor})]},p.id))}):c.jsx("div",{className:"flex flex-col gap-2",children:n.map(p=>c.jsxs("a",{href:`/livro/${p.id}`,className:"flex gap-4 items-center p-2 rounded-md transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)"},children:[c.jsx("img",{src:p.capaUrl||Ym,alt:p.titulo,className:"w-12 aspect-[2/3] object-cover rounded flex-shrink-0 shadow"}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("p",{className:"text-sm truncate",style:{color:"var(--clr-branco)"},children:p.titulo}),c.jsxs("p",{className:"text-xs truncate",style:{color:"var(--color-text-on-dark-muted)"},children:[p.autor,p.serie?` · ${p.serie}`:""]})]})]},p.id))})]})}function Vm(n){return{background:n?"var(--clr-dourado-alpha12)":"transparent",color:n?"var(--clr-dourado-400)":"var(--color-text-on-dark-subtle)"}}function Jb(){return c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function Fb(){return c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[c.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),c.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const $b="/media/images/capas/capa-placeholder.svg",Pb="/media/images/hero-fundo.jpg";function Wb({cards:n,titulo:u="Descubra uma nova maneira de",tituloDestaque:s="conhecer a Palavra de Deus",subtitulo:o="Livros, mangás, HQs, estudos bíblicos e conteúdos ilustrados para crianças, adolescentes, jovens e adultos.",fundoUrl:f,overlayIntensidade:h=80,buscaAtiva:m=!0,buscaPlaceholder:v="qual leitura você procura?"}){const[,p]=Nv(),[y,O]=D.useState(""),[x,C]=D.useState(0),q=D.useRef(null),G=3,_=Math.min(100,Math.max(0,h))/100;D.useEffect(()=>{if(!(n.length<=G))return q.current=setInterval(()=>C(ce=>(ce+1)%n.length),5e3),()=>{q.current&&clearInterval(q.current)}},[n.length]);function F(ce){C((ce+n.length)%n.length),q.current&&clearInterval(q.current),n.length>G&&(q.current=setInterval(()=>C(Oe=>(Oe+1)%n.length),5e3))}function ne(ce){ce.preventDefault(),y.trim()&&p(`/buscar?q=${encodeURIComponent(y.trim())}`)}const fe=Array.from({length:Math.min(G,n.length)},(ce,Oe)=>n[(x+Oe)%n.length]);return c.jsxs("section",{className:"relative w-screen left-1/2 right-1/2 -mx-[50vw]",style:{backgroundImage:`linear-gradient(90deg, rgba(18,11,5,${_}) 0%, rgba(18,11,5,${_*.8}) 45%, rgba(18,11,5,${_*.4}) 100%), url(${f||Pb})`,backgroundSize:"cover",backgroundPosition:"center"},children:[c.jsx("div",{className:"max-w-6xl mx-auto px-5 pt-14 pb-10",children:c.jsxs("div",{className:"max-w-xl",children:[c.jsxs("h1",{className:"text-3xl sm:text-4xl font-semibold leading-tight mb-3",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:[u,c.jsx("br",{}),c.jsx("span",{style:{color:"var(--clr-dourado-400)"},children:s})]}),c.jsxs("div",{className:"flex items-center gap-3 my-4",style:{color:"var(--clr-dourado-500)"},"aria-hidden":"true",children:[c.jsx("span",{style:{height:1,width:40,background:"var(--clr-dourado-500)"}}),c.jsx("span",{style:{fontSize:"0.7rem"},children:"✦"}),c.jsx("span",{style:{height:1,width:40,background:"var(--clr-dourado-500)"}})]}),o&&c.jsx("p",{className:"text-sm sm:text-base mb-6",style:{color:"rgba(245,230,200,0.8)"},children:o}),m&&c.jsxs("form",{onSubmit:ne,className:"flex gap-2 max-w-md",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(Sr,{size:16,className:"absolute left-4 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),c.jsx("input",{value:y,onChange:ce=>O(ce.target.value),placeholder:v,className:"w-full text-sm pl-10 pr-4 py-3 rounded-full focus:outline-none",style:{background:"var(--clr-off-white)",color:"var(--clr-marrom-950)"}})]}),c.jsx("button",{type:"submit",className:"flex-shrink-0 text-sm font-medium rounded-full px-6 transition-transform hover:scale-[1.03]",style:{background:"var(--clr-dourado-400)",color:"var(--clr-marrom-950)"},children:"buscar"})]})]})}),fe.length>0&&c.jsxs("div",{className:"max-w-6xl mx-auto px-5 pb-10 relative",children:[c.jsxs("div",{className:"flex gap-4 items-stretch",children:[n.length>G&&c.jsx("button",{"aria-label":"anterior",onClick:()=>F(x-1),className:"hidden sm:flex flex-shrink-0 w-8 rounded-full items-center justify-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:c.jsx(cc,{size:16})}),fe.map((ce,Oe)=>c.jsxs("a",{href:ce.href,className:`relative rounded-lg overflow-hidden group min-h-[130px] sm:min-h-[110px] transition-transform duration-300 hover:scale-[1.02] ${Oe===0?"w-full sm:flex-1":"hidden sm:block sm:flex-1"}`,style:{boxShadow:"var(--shadow-dourado-md)"},children:[c.jsx("img",{src:ce.capaUrl||$b,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),c.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, rgba(18,11,5,0.9) 0%, rgba(18,11,5,0.2) 60%)"}}),c.jsx("div",{className:"relative p-4 h-full flex items-end",children:c.jsx("p",{className:"text-sm font-medium",style:{color:"var(--clr-off-white)",fontFamily:"var(--font-display)"},children:ce.titulo})})]},`${ce.id}-${x}-${Oe}`)),n.length>G&&c.jsx("button",{"aria-label":"próximo",onClick:()=>F(x+1),className:"hidden sm:flex flex-shrink-0 w-8 rounded-full items-center justify-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:c.jsx(fc,{size:16})})]}),n.length>1&&c.jsx("div",{className:"flex sm:hidden justify-center gap-1.5 mt-3",children:n.map((ce,Oe)=>c.jsx("span",{style:{width:Oe===x?16:6,height:6,borderRadius:3,background:Oe===x?"var(--clr-dourado-400)":"rgba(212,168,67,0.3)",transition:"all 0.2s"}},ce.id))})]})]})}function gn(){const n=L.useUtils(),{data:u,isLoading:s}=L.auth.me.useQuery(),o=L.auth.login.useMutation({onSuccess:()=>n.auth.me.invalidate()}),f=L.auth.register.useMutation({onSuccess:()=>n.auth.me.invalidate()}),h=L.auth.logout.useMutation({onSuccess:()=>n.auth.me.invalidate()}),m=u?.papel==="editor"||u?.papel==="admin";return{usuario:u,isLoading:s,login:o,registrar:f,logout:h,podePublicar:m}}const Km=[{valor:"texto",rotulo:"Livros"},{valor:"manga",rotulo:"Mangás"},{valor:"hq",rotulo:"HQs"},{valor:"ilustrado",rotulo:"Ilustrados"},{valor:"revista",rotulo:"Revistas"},{valor:"apostila",rotulo:"Apostilas"}],Zm=[{valor:"primeiros_leitores",rotulo:"Primeiros leitores"},{valor:"infantil",rotulo:"Infantil"},{valor:"pre_adolescente",rotulo:"Pré-adolescentes"},{valor:"adolescente",rotulo:"Adolescentes"},{valor:"jovem",rotulo:"Jovens"},{valor:"adulto",rotulo:"Adultos"}];function Jm({rotulo:n,children:u}){return c.jsxs("div",{className:"relative group",children:[c.jsxs("button",{className:"text-sm py-2 transition-colors hover:text-[var(--clr-dourado-400)] flex items-center gap-1",style:{color:"var(--clr-dourado-300)",fontFamily:"var(--font-ui)"},children:[n,c.jsx("span",{className:"text-[10px] opacity-70",children:"▾"})]}),c.jsx("div",{className:"absolute left-0 top-full pt-2 opacity-0 invisible translate-y-1 transition-all duration-150 group-hover:opacity-100 group-hover:visible group-hover:translate-y-0 z-20",children:c.jsx("div",{className:"rounded-lg p-4 shadow-2xl min-w-[220px]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:u})})]})}function yr({href:n,children:u}){return c.jsx("a",{href:n,className:"block text-sm py-1.5 px-2 rounded transition-colors hover:bg-[var(--clr-dourado-alpha12)] whitespace-nowrap",style:{color:"var(--clr-off-white)"},children:u})}function Zu({rotulo:n,children:u}){const[s,o]=D.useState(!1);return c.jsxs("div",{style:{borderBottom:"1px solid var(--clr-dourado-alpha25)"},children:[c.jsxs("button",{className:"w-full flex items-center justify-between py-3.5 text-left",style:{color:"var(--clr-off-white)",minHeight:44},onClick:()=>o(f=>!f),children:[c.jsx("span",{className:"font-medium text-sm",children:n}),c.jsx(Nx,{size:16,style:{color:"var(--clr-dourado-400)",transform:s?"rotate(180deg)":"none",transition:"transform 0.15s"}})]}),s&&c.jsx("div",{className:"pb-3 pl-2 space-y-0.5",children:u})]})}function vn({href:n,children:u}){return c.jsx("a",{href:n,className:"block text-sm py-2.5 px-2 rounded transition-colors",style:{color:"rgba(245,230,200,0.85)",minHeight:44,display:"flex",alignItems:"center"},children:u})}function Jt({buscaInicial:n=""}){const[,u]=Nv(),[s,o]=D.useState(n),[f,h]=D.useState(!1),{usuario:m,podePublicar:v}=gn(),{data:p}=L.menu.listar.useQuery(),{data:y}=L.colecoes.listar.useQuery();function O(x){x.preventDefault(),s.trim()&&(u(`/buscar?q=${encodeURIComponent(s.trim())}`),h(!1))}return c.jsxs("header",{className:"sticky top-0 z-30 backdrop-blur-sm",style:{borderBottom:"1px solid var(--clr-dourado-alpha25)",background:"rgba(18,11,5,0.92)"},children:[c.jsxs("div",{className:"flex items-center justify-between gap-4 px-5 py-2.5 max-w-6xl mx-auto",children:[c.jsx("a",{href:"/",className:"flex-shrink-0",children:c.jsx("img",{src:"/media/images/logo-biblioteca-onfide.png",alt:"Biblioteca OnFide",className:"h-10 sm:h-11"})}),c.jsxs("nav",{className:"hidden md:flex items-center gap-6 flex-shrink-0",children:[c.jsx(Jm,{rotulo:"Explorar",children:c.jsxs("div",{className:"flex gap-6",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"formato"}),Km.map(x=>c.jsx(yr,{href:`/explorar?formato=${x.valor}`,children:x.rotulo},x.valor))]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"público"}),Zm.map(x=>c.jsx(yr,{href:`/explorar?publico=${x.valor}`,children:x.rotulo},x.valor))]}),y&&y.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"coleções"}),y.map(x=>c.jsx(yr,{href:`/colecao/${x.id}`,children:x.nome},x.id))]})]})}),c.jsxs(Jm,{rotulo:"Ecossistema ONFIDE",children:[c.jsx(yr,{href:"https://spot.onfide.com.br",children:"SpotOnFide — podcast e música"}),c.jsx(yr,{href:"https://onfide.com.br",children:"ONFIDE"})]}),p?.map(x=>c.jsx("a",{href:x.url,className:"text-sm py-2 transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"var(--clr-dourado-300)",fontFamily:"var(--font-ui)"},children:x.rotulo},x.id))]}),c.jsxs("form",{onSubmit:O,className:"flex-1 max-w-xs relative hidden lg:block",children:[c.jsx(Sr,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),c.jsx("input",{value:s,onChange:x=>o(x.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm pl-9 pr-3 py-2 rounded-full transition-colors focus:outline-none",style:{border:"1px solid var(--clr-dourado-alpha25)",background:"var(--clr-off-white)",color:"var(--clr-marrom-950)"}})]}),c.jsx("div",{className:"hidden md:flex items-center gap-2 flex-shrink-0",children:m?c.jsxs(c.Fragment,{children:[c.jsx("a",{href:"/minha-biblioteca",className:"text-xs rounded-full px-4 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)",minHeight:40,display:"flex",alignItems:"center"},children:"minha biblioteca"}),v&&c.jsx("a",{href:"/admin",className:"text-xs rounded-full px-4 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)",minHeight:40,display:"flex",alignItems:"center"},children:"área do editor"})]}):c.jsx("a",{href:"/entrar",className:"text-xs rounded-full px-5 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)",minHeight:40,display:"flex",alignItems:"center"},children:"entrar"})}),c.jsxs("div",{className:"flex md:hidden items-center gap-1 flex-shrink-0",children:[c.jsx("a",{href:"/buscar","aria-label":"buscar",className:"flex items-center justify-center rounded-full",style:{width:44,height:44,color:"var(--clr-dourado-400)"},children:c.jsx(Sr,{size:20})}),c.jsx("button",{"aria-label":f?"fechar menu":"abrir menu",onClick:()=>h(x=>!x),className:"flex items-center justify-center rounded-full",style:{width:44,height:44,color:"var(--clr-dourado-400)"},children:f?c.jsx(Kb,{size:26}):c.jsx(ib,{size:26})})]})]}),f&&c.jsx("div",{className:"md:hidden overflow-y-auto",style:{background:"var(--clr-marrom-950)",borderTop:"1px solid var(--clr-dourado-alpha25)",maxHeight:"calc(100dvh - 60px)"},children:c.jsxs("div",{className:"px-5 py-4",children:[c.jsxs("form",{onSubmit:O,className:"relative mb-2",children:[c.jsx(Sr,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),c.jsx("input",{value:s,onChange:x=>o(x.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm pl-9 pr-3 rounded-full focus:outline-none",style:{border:"1px solid var(--clr-dourado-alpha25)",background:"var(--clr-off-white)",color:"var(--clr-marrom-950)",minHeight:44}})]}),c.jsx(Zu,{rotulo:"Explorar por formato",children:Km.map(x=>c.jsx(vn,{href:`/explorar?formato=${x.valor}`,children:x.rotulo},x.valor))}),c.jsx(Zu,{rotulo:"Explorar por público",children:Zm.map(x=>c.jsx(vn,{href:`/explorar?publico=${x.valor}`,children:x.rotulo},x.valor))}),y&&y.length>0&&c.jsx(Zu,{rotulo:"Coleções",children:y.map(x=>c.jsx(vn,{href:`/colecao/${x.id}`,children:x.nome},x.id))}),c.jsxs(Zu,{rotulo:"Ecossistema ONFIDE",children:[c.jsx(vn,{href:"https://spot.onfide.com.br",children:"SpotOnFide — podcast e música"}),c.jsx(vn,{href:"https://onfide.com.br",children:"ONFIDE"})]}),p&&p.length>0&&c.jsx("div",{className:"py-2",style:{borderBottom:"1px solid var(--clr-dourado-alpha25)"},children:p.map(x=>c.jsx(vn,{href:x.url,children:x.rotulo},x.id))}),c.jsx("div",{className:"pt-4 space-y-2",children:m?c.jsxs(c.Fragment,{children:[c.jsx("a",{href:"/minha-biblioteca",className:"block text-center text-sm rounded-full py-3",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"minha biblioteca"}),v&&c.jsx("a",{href:"/admin",className:"block text-center text-sm rounded-full py-3",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"área do editor"})]}):c.jsx("a",{href:"/entrar",className:"block text-center text-sm rounded-full py-3",style:{background:"var(--clr-dourado-400)",color:"var(--clr-marrom-950)"},children:"entrar"})})]})})]})}function Ft(){const{data:n}=L.homeCms.config.obter.useQuery(),u=new Date().getFullYear();return c.jsx("footer",{className:"mt-16",style:{background:"var(--clr-marrom-950)",borderTop:"1px solid var(--clr-dourado-alpha25)"},children:c.jsxs("div",{className:"max-w-5xl mx-auto px-5 py-10",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between gap-8",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("img",{src:"/media/images/logo-biblioteca-onfide.png",alt:"Biblioteca OnFide",className:"h-10"}),c.jsx("p",{className:"text-sm max-w-xs",style:{color:"rgba(245,230,200,0.6)"},children:n?.footerDescricao||"Parte do ecossistema ONFIDE — literatura cristã pensada com o mesmo cuidado hermenêutico de tudo que produzimos."})]}),c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--clr-dourado-500)"},children:"ecossistema"}),c.jsx("a",{href:"https://spot.onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"rgba(245,230,200,0.75)"},children:"SpotOnFide ›"}),c.jsx("a",{href:"https://onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"rgba(245,230,200,0.75)"},children:"ONFIDE ›"})]})]}),c.jsx("div",{className:"mt-10 pt-6 text-xs",style:{borderTop:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.4)"},children:n?.footerCopyright||`© ${u} Biblioteca OnFide. Todos os direitos reservados.`})]})})}const Ib="/media/images/capas/capa-placeholder.svg";function Ju({nome:n,...u}){const s=Gm[n]||Gm.BookOpen;return c.jsx(s,{...u})}function gr({eyebrow:n,titulo:u}){return c.jsxs("div",{className:"mb-6",children:[c.jsx("span",{className:"text-xs font-bold uppercase block mb-2",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-dourado-500)"},children:n}),c.jsx("h2",{className:"text-xl sm:text-2xl font-semibold",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:u})]})}function e2({pergunta:n,resposta:u}){const[s,o]=D.useState(!1);return c.jsxs("div",{style:{borderBottom:"1px solid var(--clr-dourado-alpha25)"},className:"py-3",children:[c.jsxs("button",{className:"w-full flex items-center justify-between text-left",onClick:()=>o(f=>!f),children:[c.jsx("span",{className:"text-sm font-medium",style:{color:"var(--clr-off-white)"},children:n}),c.jsx("span",{style:{color:"var(--clr-dourado-400)"},className:"text-lg leading-none",children:s?"−":"+"})]}),s&&c.jsx("p",{className:"text-sm mt-2",style:{color:"rgba(245,230,200,0.7)"},children:u})]})}function t2({livros:n}){const[u,s]=D.useState(0),o=6,f=Math.max(0,n.length-o);return c.jsxs("section",{className:"mb-14",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("span",{className:"text-xs font-bold uppercase",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-dourado-500)"},children:"novidades"}),c.jsx("a",{href:"/explorar",className:"text-xs rounded-full px-4 py-1.5 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"ver todos os livros"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{"aria-label":"anterior",disabled:u===0,onClick:()=>s(h=>Math.max(0,h-o)),className:"flex-shrink-0 w-11 h-11 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:c.jsx(cc,{size:16})}),c.jsx("div",{className:"flex-1 grid grid-cols-3 sm:grid-cols-6 gap-3 overflow-hidden",children:n.slice(u,u+o).map(h=>c.jsxs("a",{href:`/livro/${h.id}`,className:"group block",children:[c.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-transform duration-200 group-hover:-translate-y-1",children:c.jsx("img",{src:h.capaUrl||Ib,alt:h.titulo,className:"w-full aspect-[2/3] object-cover"})}),c.jsx("p",{className:"text-xs mt-2 leading-snug line-clamp-2",style:{color:"var(--clr-off-white)"},children:h.titulo}),c.jsx("p",{className:"text-[11px]",style:{color:"rgba(245,230,200,0.5)"},children:h.autor})]},h.id))}),c.jsx("button",{"aria-label":"próximo",disabled:u>=f,onClick:()=>s(h=>Math.min(f,h+o)),className:"flex-shrink-0 w-11 h-11 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:c.jsx(fc,{size:16})})]})]})}function a2(){const{data:n,isLoading:u}=L.biblioteca.getCatalogo.useQuery(),{data:s}=L.biblioteca.getDestaques.useQuery(),{data:o}=L.homeCms.heroCards.listar.useQuery(),{data:f}=L.homeCms.config.obter.useQuery(),{data:h}=L.biblioteca.getNovidades.useQuery(),{data:m}=L.homeCms.comoFunciona.listar.useQuery(),{data:v}=L.homeCms.acervoItens.listar.useQuery(),{data:p}=L.homeCms.publicoItens.listar.useQuery(),{data:y}=L.homeCms.beneficios.listar.useQuery(),{data:O}=L.homeCms.faqItens.listar.useQuery(),{data:x}=L.homeCms.banners.listarAtivos.useQuery(),C=new Set((s??[]).map(_=>_.id)),q=(n??[]).filter(_=>!C.has(_.id)),G=o&&o.length>0?o.map(_=>{const F=_.livroId?n?.find(ne=>ne.id===_.livroId):null;return{id:_.id,titulo:_.titulo,autor:"",capaUrl:F?.capaUrl??_.imagemUrl,href:_.livroId?`/livro/${_.livroId}`:_.linkUrl||"#"}}):(s??[]).map(_=>({id:_.id,titulo:_.titulo,autor:_.autor,capaUrl:_.capaUrl,href:`/livro/${_.id}`}));return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",fontFamily:"var(--font-corpo)"},children:[c.jsx(Jt,{}),G.length>0&&c.jsx(Wb,{cards:G,titulo:f?.heroTitulo,tituloDestaque:f?.heroTituloDestaque,subtitulo:f?.heroSubtitulo,fundoUrl:f?.heroFundoUrl,overlayIntensidade:f?.heroOverlayIntensidade,buscaAtiva:f?.heroBuscaAtiva,buscaPlaceholder:f?.heroBuscaPlaceholder}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-12 pb-16 flex-1 w-full",children:[x&&x.length>0&&c.jsx("div",{className:"mb-14 space-y-3",children:x.map(_=>c.jsxs("a",{href:_.linkUrl,className:"flex items-center gap-4 rounded-lg overflow-hidden transition-transform hover:scale-[1.005]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[_.imagemUrl&&c.jsx("img",{src:_.imagemUrl,alt:"",className:"w-28 h-20 object-cover flex-shrink-0"}),c.jsxs("div",{className:"py-3 flex-1",children:[c.jsx("p",{className:"font-medium text-sm",style:{color:"var(--clr-dourado-400)",fontFamily:"var(--font-display)"},children:_.titulo}),_.texto&&c.jsx("p",{className:"text-xs mt-0.5",style:{color:"rgba(245,230,200,0.65)"},children:_.texto})]}),_.botaoTexto&&c.jsx("span",{className:"text-xs rounded-full px-4 py-1.5 mr-4 flex-shrink-0",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:_.botaoTexto})]},_.id))}),u&&c.jsx("p",{className:"text-sm",style:{color:"rgba(245,230,200,0.6)"},children:"carregando..."}),!u&&(!n||n.length===0)&&c.jsxs("div",{className:"rounded-lg p-10 text-center mb-14",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.7)"},children:[c.jsx("p",{className:"text-xl mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:"A estante ainda está sendo montada"}),c.jsx("p",{className:"text-sm",children:"Em breve os primeiros livros aparecem aqui."})]}),m&&m.length>0&&c.jsxs("section",{className:"mb-14",children:[c.jsx(gr,{eyebrow:"como funciona",titulo:"Ler nunca foi tão simples"}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:m.map(_=>c.jsxs("div",{className:"rounded-lg p-5",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[c.jsx("div",{className:"w-11 h-11 rounded-full flex items-center justify-center mb-3",style:{background:"var(--clr-dourado-alpha12)",color:"var(--clr-dourado-400)"},children:c.jsx(Ju,{nome:_.icone,size:18})}),c.jsx("span",{style:{fontFamily:"var(--font-display)",fontSize:"0.85rem",color:"var(--clr-dourado-500)"},children:_.numero}),c.jsx("p",{className:"font-medium mt-1",style:{color:"var(--clr-off-white)"},children:_.titulo}),c.jsx("p",{className:"text-sm mt-1",style:{color:"rgba(245,230,200,0.65)"},children:_.descricao})]},_.id))})]}),v&&v.length>0&&c.jsxs("section",{className:"mb-14",children:[c.jsx(gr,{eyebrow:"o acervo",titulo:"Um universo inteiro de conteúdo cristão"}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:v.map(_=>c.jsxs("a",{href:_.linkUrl,className:"rounded-lg p-4 transition-colors hover:bg-[var(--clr-dourado-alpha12)] flex items-start gap-3",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[c.jsx(Ju,{nome:_.icone,size:20,style:{color:"var(--clr-dourado-400)",flexShrink:0,marginTop:2}}),c.jsxs("div",{children:[c.jsx("p",{className:"font-medium text-sm",style:{color:"var(--clr-off-white)"},children:_.nome}),c.jsx("p",{className:"text-xs mt-1",style:{color:"rgba(245,230,200,0.6)"},children:_.descricao})]})]},_.id))})]}),p&&p.length>0&&c.jsxs("section",{className:"mb-14",children:[c.jsx(gr,{eyebrow:"para toda a família",titulo:"Leitura pensada pra cada idade"}),c.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-6 gap-3",children:p.map(_=>c.jsxs("a",{href:_.linkUrl,className:"rounded-lg p-3 text-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[c.jsx(Ju,{nome:_.icone,size:20,className:"mx-auto mb-2",style:{color:"var(--clr-dourado-400)"}}),c.jsx("p",{className:"font-medium text-xs",style:{color:"var(--clr-off-white)"},children:_.nome}),c.jsx("p",{className:"text-[11px] mt-0.5",style:{color:"rgba(245,230,200,0.55)"},children:_.faixaEtaria})]},_.id))})]}),h&&h.length>0&&c.jsx(t2,{livros:h}),q.length>0&&c.jsx(yn,{livros:q,titulo:"todos os livros"}),(y&&y.length>0||O&&O.length>0)&&c.jsxs("section",{className:"grid grid-cols-1 sm:grid-cols-2 gap-10 mt-4",children:[y&&y.length>0&&c.jsxs("div",{children:[c.jsx(gr,{eyebrow:"a experiência",titulo:"Por que ler na Biblioteca OnFide"}),c.jsx("div",{className:"space-y-2",children:y.map(_=>c.jsxs("div",{className:"flex items-start gap-2 text-sm",style:{color:"rgba(245,230,200,0.75)"},children:[c.jsx(Ju,{nome:_.icone,size:16,style:{color:"var(--clr-dourado-400)",flexShrink:0,marginTop:2}}),_.texto]},_.id))})]}),O&&O.length>0&&c.jsxs("div",{children:[c.jsx(gr,{eyebrow:"dúvidas",titulo:"Perguntas frequentes"}),c.jsx("div",{children:O.map(_=>c.jsx(e2,{pergunta:_.pergunta,resposta:_.resposta},_.id))})]})]})]}),c.jsx(Ft,{})]})}const Go={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function xr({titulo:n,descricao:u,campos:s,itens:o,temAtivo:f=!0,aoCriar:h,aoAtualizar:m,aoExcluir:v}){const p=Object.fromEntries(s.map(C=>[C.chave,""])),[y,O]=D.useState(p);function x(C,q,G,_){return _==="textarea"?c.jsx("textarea",{className:"w-full rounded px-2 py-1.5 text-sm",style:Go,value:q,onChange:F=>G(F.target.value),rows:2}):c.jsx("input",{type:_==="numero"?"number":"text",className:"w-full rounded px-2 py-1.5 text-sm",style:Go,value:q,onChange:F=>G(F.target.value)})}return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:n}),u&&c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:u}),c.jsxs("div",{className:"space-y-3",children:[o?.map(C=>c.jsxs("div",{className:"rounded p-3",style:{border:"var(--border-thin)"},children:[c.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:`repeat(${s.length}, 1fr)`},children:s.map(q=>c.jsxs("label",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[q.rotulo,x(q.chave,String(C[q.chave]??""),G=>m(C.id,{[q.chave]:q.tipo==="numero"?Number(G):G}),q.tipo)]},q.chave))}),c.jsxs("div",{className:"flex items-center justify-between mt-2",children:[c.jsxs("label",{className:"flex items-center gap-1.5 text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"number",className:"w-14 rounded px-1.5 py-1 text-xs",style:Go,value:C.ordem,onChange:q=>m(C.id,{ordem:Number(q.target.value)})}),"ordem"]}),f&&c.jsxs("label",{className:"flex items-center gap-1.5 text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",checked:!!C.ativo,onChange:q=>m(C.id,{ativo:q.target.checked})}),"ativo"]}),c.jsx("button",{className:"text-xs",style:{color:"#ff8080"},onClick:()=>v(C.id),children:"remover"})]})]},C.id)),o?.length===0&&c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),c.jsxs("div",{className:"rounded p-3 space-y-2",style:{border:"1px dashed var(--color-border-medium)"},children:[c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"+ adicionar novo item"}),c.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:`repeat(${s.length}, 1fr)`},children:s.map(C=>c.jsxs("label",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[C.rotulo,x(C.chave,y[C.chave]??"",q=>O(G=>({...G,[C.chave]:q})),C.tipo)]},C.chave))}),c.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.4rem 0.8rem"},onClick:()=>{const C={};for(const q of s)C[q.chave]=q.tipo==="numero"?Number(y[q.chave]||0):y[q.chave]||"";h(C),O(p)},children:"adicionar"})]})]})}const l2="/media/images/capas/capa-placeholder.svg",ge={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},n2=[{valor:"texto",rotulo:"Texto (DOCX → EPUB)"},{valor:"ilustrado",rotulo:"Livro ilustrado (páginas de imagem)"},{valor:"manga",rotulo:"Mangá (páginas de imagem)"},{valor:"hq",rotulo:"HQ / Graphic novel (páginas de imagem)"},{valor:"revista",rotulo:"Revista (páginas de imagem)"},{valor:"apostila",rotulo:"Apostila (DOCX → EPUB)"}],r2=["ilustrado","manga","hq","revista"],u2=[{valor:"",rotulo:"toda a família"},{valor:"primeiros_leitores",rotulo:"primeiros leitores (0–5)"},{valor:"infantil",rotulo:"infantil (6–9)"},{valor:"pre_adolescente",rotulo:"pré-adolescente (10–12)"},{valor:"adolescente",rotulo:"adolescente (13–17)"},{valor:"jovem",rotulo:"jovem (18–29)"},{valor:"adulto",rotulo:"adulto (30+)"}];function i2({livroExistente:n,aoTerminar:u}){const s=L.useUtils(),o=L.biblioteca.admin.criar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),f=L.biblioteca.admin.atualizar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),h=L.paginas.salvar.useMutation(),{data:m}=L.biblioteca.getLivro.useQuery({id:n?.id??0},{enabled:!!n}),{data:v}=L.autores.listar.useQuery(),{data:p}=L.temas.listar.useQuery(),{data:y}=L.colecoes.listar.useQuery(),O=L.autores.criar.useMutation({onSuccess:()=>s.autores.listar.invalidate()}),x=L.temas.criar.useMutation({onSuccess:()=>s.temas.listar.invalidate()}),[C,q]=D.useState(n?.titulo??""),[G,_]=D.useState(n?.destaque??!1),[F,ne]=D.useState(""),[fe,ce]=D.useState(n?.subtitulo??""),[Oe,X]=D.useState(n?.serie??""),[V,w]=D.useState(n?.volumeNumero?.toString()??""),[J,ee]=D.useState(n?.autor??""),[ae,le]=D.useState(n?.resumo??""),[W,xe]=D.useState(n?.formato??"texto"),[de,me]=D.useState(""),[T,H]=D.useState(""),[Z,ue]=D.useState([]),[ve,S]=D.useState([]),[R,B]=D.useState(""),[Y,I]=D.useState(""),[se,be]=D.useState(null),[Ie,He]=D.useState(null),[Pt,Ia]=D.useState(null),[_l,xn]=D.useState(!1),[Wt,_a]=D.useState(null),[Nl,Cl]=D.useState(null);D.useEffect(()=>{m&&(me(m.publicoAlvo??""),H(m.colecaoId?.toString()??""),ue(m.autores?.map(K=>K.id)??[]),S(m.temas?.map(K=>K.id)??[]),ne(m.linkCompraImpresso??""))},[m]);const jt=!!n,El=r2.includes(W);async function Ml(K,Pe,mt,ct={}){const ra=new FormData;ra.append(Pe,mt);for(const[Sn,hi]of Object.entries(ct))ra.append(Sn,hi);const ft=await fetch(K,{method:"POST",body:ra});if(!ft.ok){const Sn=await ft.json().catch(()=>({}));throw new Error(Sn.erro||"Falha no upload.")}return ft.json()}async function bn(K){const Pe=new FormData;for(const ct of Array.from(K))Pe.append("paginas",ct);const mt=await fetch("/api/admin/upload-paginas",{method:"POST",body:Pe});if(!mt.ok){const ct=await mt.json().catch(()=>({}));throw new Error(ct.erro||"Falha no upload das páginas.")}return(await mt.json()).urls}function fi(){q(""),ce(""),X(""),w(""),ee(""),le(""),xe("texto"),me(""),H(""),ue([]),S([]),be(null),He(null),Ia(null)}async function di(){if(!jt&&W==="texto"&&!se){Cl("Selecione o arquivo DOCX.");return}if(!jt&&El&&!Pt){Cl("Selecione as páginas (imagens).");return}Cl(null),xn(!0);try{let K,Pe,mt;if(se){_a("convertendo DOCX...");const ft=await Ml("/api/admin/upload-docx","arquivo",se,{titulo:C,autor:J});K=ft.docxOriginalUrl,Pe=ft.epubUrl,!ae&&ft.resumoAutomatico&&le(ft.resumoAutomatico)}Ie&&(_a("enviando capa..."),mt=(await Ml("/api/admin/upload-capa","imagem",Ie)).url);const ct={titulo:C,subtitulo:fe||void 0,serie:Oe||void 0,volumeNumero:V?Number(V):void 0,autor:J,resumo:ae||void 0,destaque:G,linkCompraImpresso:F||void 0,formato:W,publicoAlvo:de||void 0,colecaoId:T?Number(T):void 0,autorIds:Z,temaIds:ve,...mt&&{capaUrl:mt},...Pe&&{epubUrl:Pe},...K&&{docxOriginalUrl:K}};let ra;if(jt?(await f.mutateAsync({id:n.id,...ct}),ra=n.id):ra=(await o.mutateAsync(ct)).id,El&&Pt){_a(`enviando ${Pt.length} páginas...`);const ft=await bn(Pt);await h.mutateAsync({livroId:ra,imagensUrl:ft})}jt||fi(),u()}catch(K){Cl(K instanceof Error?K.message:"Erro ao salvar.")}finally{xn(!1),_a(null)}}function it(K,Pe,mt){mt(K.includes(Pe)?K.filter(ct=>ct!==Pe):[...K,Pe])}return c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:jt?`Editando: ${n.titulo}`:"Novo livro"}),jt&&c.jsx("button",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},onClick:u,children:"cancelar edição"})]}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:ge,placeholder:"título",value:C,onChange:K=>q(K.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:ge,placeholder:"subtítulo (opcional)",value:fe,onChange:K=>ce(K.target.value)}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("input",{className:"flex-1 rounded px-3 py-2",style:ge,placeholder:"série (opcional)",value:Oe,onChange:K=>X(K.target.value)}),c.jsx("input",{className:"w-28 rounded px-3 py-2",style:ge,placeholder:"volume nº",value:V,onChange:K=>w(K.target.value)})]}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:ge,placeholder:"autor (texto de exibição)",value:J,onChange:K=>ee(K.target.value)}),c.jsx("textarea",{className:"w-full rounded px-3 py-2",style:ge,placeholder:"resumo (opcional)",value:ae,onChange:K=>le(K.target.value)}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["formato",c.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:ge,value:W,onChange:K=>xe(K.target.value),children:n2.map(K=>c.jsx("option",{value:K.valor,style:{color:"#000"},children:K.rotulo},K.valor))})]}),c.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["público-alvo",c.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:ge,value:de,onChange:K=>me(K.target.value),children:u2.map(K=>c.jsx("option",{value:K.valor,style:{color:"#000"},children:K.rotulo},K.valor))})]})]}),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["coleção (opcional)",c.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:ge,value:T,onChange:K=>H(K.target.value),children:[c.jsx("option",{value:"",style:{color:"#000"},children:"nenhuma"}),y?.map(K=>c.jsx("option",{value:K.id,style:{color:"#000"},children:K.nome},K.id))]})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"colaboradores (autor/ilustrador)"}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:v?.map(K=>c.jsx("button",{type:"button",onClick:()=>it(Z,K.id,ue),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:Z.includes(K.id)?"var(--clr-acento-alpha12)":"transparent",color:Z.includes(K.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:K.nome},K.id))}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:ge,placeholder:"novo colaborador...",value:R,onChange:K=>B(K.target.value)}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!R)return;const K=await O.mutateAsync({nome:R});ue(Pe=>[...Pe,K.id]),B("")},children:"+ adicionar"})]})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"temas"}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:p?.map(K=>c.jsx("button",{type:"button",onClick:()=>it(ve,K.id,S),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:ve.includes(K.id)?"var(--clr-acento-alpha12)":"transparent",color:ve.includes(K.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:K.nome},K.id))}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:ge,placeholder:"novo tema...",value:Y,onChange:K=>I(K.target.value)}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!Y)return;const K=await x.mutateAsync({nome:Y});S(Pe=>[...Pe,K.id]),I("")},children:"+ adicionar"})]})]}),c.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",checked:G,onChange:K=>_(K.target.checked)}),"exibir no carrossel de destaque da Home"]}),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["link pra comprar o livro impresso (opcional — loja externa)",c.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:ge,placeholder:"https://...",value:F,onChange:K=>ne(K.target.value)})]}),W==="texto"||W==="apostila"?c.jsxs(c.Fragment,{children:[c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["arquivo DOCX ",jt&&"(deixe em branco pra manter o atual)"]}),c.jsx("input",{type:"file",accept:".docx",onChange:K=>be(K.target.files?.[0]??null)})]}):c.jsxs(c.Fragment,{children:[c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["páginas (imagens, na ordem — selecione todas de uma vez) ",jt&&"(deixe em branco pra manter as atuais)"]}),c.jsx("input",{type:"file",accept:"image/*",multiple:!0,onChange:K=>Ia(K.target.files)})]}),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["capa ",jt&&"(deixe em branco pra manter a atual)"]}),c.jsx("input",{type:"file",accept:"image/*",onChange:K=>He(K.target.files?.[0]??null)}),Wt&&c.jsx("p",{className:"text-sm",style:{color:"var(--clr-acento-400)"},children:Wt}),Nl&&c.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:Nl}),c.jsx("button",{className:"btn btn-primary",onClick:di,disabled:_l||!C||!J,children:_l?"processando...":jt?"salvar alterações":"salvar como rascunho"})]})}function s2({aoEditar:n}){const u=L.useUtils(),{data:s}=L.biblioteca.admin.listar.useQuery(),[o,f]=D.useState(""),h=L.biblioteca.admin.atualizar.useMutation({onSuccess:()=>u.biblioteca.admin.listar.invalidate()}),m=L.biblioteca.admin.excluir.useMutation({onSuccess:()=>u.biblioteca.admin.listar.invalidate()}),v=s?.filter(y=>y.titulo.toLowerCase().includes(o.toLowerCase())||y.autor.toLowerCase().includes(o.toLowerCase()));function p(y,O){window.confirm(`Excluir "${O}" permanentemente? Essa ação não pode ser desfeita.`)&&m.mutate({id:y})}return c.jsxs("div",{className:"mt-8 space-y-3",children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsxs("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:["Livros ",s?`(${s.length})`:""]}),c.jsx("input",{value:o,onChange:y=>f(y.target.value),placeholder:"filtrar por título ou autor...",className:"rounded px-3 py-1.5 text-sm",style:{...ge,maxWidth:240}})]}),c.jsxs("div",{className:"space-y-2",children:[v?.map(y=>c.jsxs("div",{className:"flex items-center gap-3 rounded-md p-2",style:{border:"var(--border-thin)"},children:[c.jsx("img",{src:y.capaUrl||l2,alt:"",className:"w-10 aspect-[2/3] object-cover rounded flex-shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm truncate",children:y.titulo}),c.jsxs("p",{className:"text-xs flex items-center gap-2",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("span",{className:"px-1.5 py-0.5 rounded",style:{background:y.status==="publicado"?"var(--clr-acento-alpha12)":"rgba(255,255,255,0.06)",color:y.status==="publicado"?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:y.status}),["ilustrado","manga","hq","revista"].includes(y.formato)?"formato de imagem":y.epubUrl?"epub ok":"sem epub",y.serie?` · ${y.serie}`:""]})]}),c.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[c.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>n(y),children:"editar"}),c.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>h.mutate({id:y.id,status:y.status==="publicado"?"rascunho":"publicado"}),children:y.status==="publicado"?"despublicar":"publicar"}),c.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem",color:"#ff8080"},onClick:()=>p(y.id,y.titulo),children:"excluir"})]})]},y.id)),v?.length===0&&c.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum livro encontrado."})]})]})}function o2(){const{data:n}=L.config.obter.useQuery(),u=L.useUtils(),s=L.config.atualizar.useMutation({onSuccess:()=>u.config.obter.invalidate()});return n?c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Configurações de exibição"}),c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Controla como os livros aparecem na Home. O celular sempre se ajusta sozinho — só desktop e tablet usam esse número fixo."}),c.jsxs("div",{className:"flex gap-4 items-center",children:[c.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",c.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:ge,onBlur:o=>s.mutate({colunasDesktop:Number(o.target.value)})})]}),c.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",c.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:ge,onBlur:o=>s.mutate({colunasTablet:Number(o.target.value)})})]})]}),c.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",c.jsxs("select",{defaultValue:n.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:ge,onChange:o=>s.mutate({modoPadrao:o.target.value}),children:[c.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),c.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]}),c.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["quantidade de slides no carrossel de destaque",c.jsx("input",{type:"number",min:1,max:10,defaultValue:n.qtdSlidesHero,className:"w-full rounded px-3 py-2 mt-1",style:ge,onBlur:o=>s.mutate({qtdSlidesHero:Number(o.target.value)})}),c.jsx("span",{className:"block text-xs mt-1",style:{color:"var(--color-text-on-dark-subtle)"},children:'se faltar livro marcado como "destaque", completa com os mais recentes.'})]})]}):null}function c2(){const{data:n}=L.menu.listar.useQuery(),u=L.useUtils(),s=L.menu.criar.useMutation({onSuccess:()=>u.menu.listar.invalidate()}),o=L.menu.atualizar.useMutation({onSuccess:()=>u.menu.listar.invalidate()}),f=L.menu.excluir.useMutation({onSuccess:()=>u.menu.listar.invalidate()}),[h,m]=D.useState(""),[v,p]=D.useState("");function y(){!h||!v||(s.mutate({rotulo:h,url:v,ordem:(n?.length??0)+1}),m(""),p(""))}return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Menu de navegação"}),c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Aparece no topo e no rodapé do site. Deixe vazio pra não mostrar menu nenhum."}),c.jsxs("div",{className:"space-y-2",children:[n?.map(O=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("input",{defaultValue:O.rotulo,className:"flex-1 rounded px-3 py-1.5 text-sm",style:ge,onBlur:x=>o.mutate({id:O.id,rotulo:x.target.value})}),c.jsx("input",{defaultValue:O.url,className:"flex-1 rounded px-3 py-1.5 text-sm",style:ge,onBlur:x=>o.mutate({id:O.id,url:x.target.value})}),c.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>f.mutate({id:O.id}),children:"remover"})]},O.id)),n?.length===0&&c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),c.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[c.jsx("input",{placeholder:"rótulo (ex: Sobre)",value:h,onChange:O=>m(O.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:ge}),c.jsx("input",{placeholder:"url (ex: /serie/Quatro Cavalos)",value:v,onChange:O=>p(O.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:ge}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:y,children:"+ adicionar"})]})]})}function f2(){const{data:n}=L.colecoes.listar.useQuery(),u=L.useUtils(),s=L.colecoes.criar.useMutation({onSuccess:()=>u.colecoes.listar.invalidate()}),o=L.colecoes.atualizar.useMutation({onSuccess:()=>u.colecoes.listar.invalidate()}),f=L.colecoes.excluir.useMutation({onSuccess:()=>u.colecoes.listar.invalidate()}),[h,m]=D.useState(""),[v,p]=D.useState("");return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Coleções"}),c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:'Prateleiras temáticas (ex: "Heróis da Fé") que podem reunir várias séries ou obras avulsas — diferente de série, que é sequencial dentro de uma coleção.'}),c.jsx("div",{className:"space-y-2",children:n?.map(y=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("input",{defaultValue:y.nome,className:"flex-1 rounded px-3 py-1.5 text-sm",style:ge,onBlur:O=>o.mutate({id:y.id,nome:O.target.value})}),c.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>f.mutate({id:y.id}),children:"remover"})]},y.id))}),c.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[c.jsx("input",{placeholder:"nova coleção (ex: Heróis da Fé)",value:h,onChange:y=>m(y.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:ge}),c.jsx("input",{placeholder:"descrição curta (opcional)",value:v,onChange:y=>p(y.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:ge}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{h&&(s.mutate({nome:h,descricao:v||void 0}),m(""),p(""))},children:"+ adicionar"})]})]})}function d2(){const{data:n}=L.homeCms.config.obter.useQuery(),u=L.useUtils(),s=L.homeCms.config.atualizar.useMutation({onSuccess:()=>u.homeCms.config.obter.invalidate()});if(!n)return null;function o(f,h,m="texto"){const v=m==="textarea"?"textarea":"input";return c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[h,c.jsx(v,{className:"w-full rounded px-3 py-2 mt-1",style:ge,defaultValue:n[f]??"",onBlur:p=>s.mutate({[f]:p.target.value})})]})}return c.jsxs("div",{className:"mt-8 space-y-6",children:[c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Hero"}),o("heroTitulo","título (linha 1)"),o("heroTituloDestaque","título em destaque (linha 2, dourada)"),o("heroSubtitulo","subtítulo","textarea"),o("heroFundoUrl","URL da imagem de fundo"),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["intensidade do overlay escuro (0-100)",c.jsx("input",{type:"number",min:0,max:100,className:"w-full rounded px-3 py-2 mt-1",style:ge,defaultValue:n.heroOverlayIntensidade,onBlur:f=>s.mutate({heroOverlayIntensidade:Number(f.target.value)})})]}),c.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",defaultChecked:n.heroBuscaAtiva,onChange:f=>s.mutate({heroBuscaAtiva:f.target.checked})}),"mostrar busca no hero"]}),o("heroBuscaPlaceholder","texto de exemplo da busca"),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["critério dos destaques do hero",c.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:ge,defaultValue:n.destaquesCriterio,onChange:f=>s.mutate({destaquesCriterio:f.target.value}),children:[c.jsx("option",{value:"manual",style:{color:"#000"},children:"manual (livros marcados como destaque)"}),c.jsx("option",{value:"recentes",style:{color:"#000"},children:"sempre os mais recentes"}),c.jsx("option",{value:"aleatorio",style:{color:"#000"},children:"aleatório"})]})]})]}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Todos os livros"}),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["ordenação",c.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:ge,defaultValue:n.todosLivrosOrdenacao,onChange:f=>s.mutate({todosLivrosOrdenacao:f.target.value}),children:[c.jsx("option",{value:"recentes",style:{color:"#000"},children:"mais recentes primeiro"}),c.jsx("option",{value:"aleatorio",style:{color:"#000"},children:"aleatório"}),c.jsx("option",{value:"titulo",style:{color:"#000"},children:"ordem alfabética"})]})]})]}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Rodapé"}),o("footerDescricao","descrição","textarea"),o("footerCopyright","linha de copyright (deixe em branco pro padrão)")]}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"SEO"}),o("seoTitulo","título da página"),o("seoDescricao","meta descrição","textarea"),o("seoOgImagemUrl","imagem de compartilhamento (og:image)"),o("seoKeywords","palavras-chave"),o("seoCanonical","URL canônica")]}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Aparência"}),c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"conjunto curado de cores — não é cor-por-elemento, de propósito, pra manter consistência visual."}),c.jsxs("div",{className:"flex gap-3",children:[c.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["cor primária (dourado)",c.jsx("input",{type:"color",className:"w-full h-10 rounded mt-1",defaultValue:n.corPrimaria,onBlur:f=>s.mutate({corPrimaria:f.target.value})})]}),c.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["cor de fundo",c.jsx("input",{type:"color",className:"w-full h-10 rounded mt-1",defaultValue:n.corFundo,onBlur:f=>s.mutate({corFundo:f.target.value})})]})]})]})]})}function h2(){const{data:n}=L.homeCms.heroCards.listarTodos.useQuery(),u=L.useUtils(),s=L.homeCms.heroCards.criar.useMutation({onSuccess:()=>u.homeCms.heroCards.listarTodos.invalidate()}),o=L.homeCms.heroCards.atualizar.useMutation({onSuccess:()=>u.homeCms.heroCards.listarTodos.invalidate()}),f=L.homeCms.heroCards.excluir.useMutation({onSuccess:()=>u.homeCms.heroCards.listarTodos.invalidate()}),[h,m]=D.useState(""),[v,p]=D.useState(""),[y,O]=D.useState("");return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Cards do Hero"}),c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Se nenhum card estiver cadastrado aqui, o hero mostra os destaques automáticos. Cadastrando aqui, estes têm prioridade."}),c.jsx("div",{className:"space-y-2",children:n?.map(x=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("input",{defaultValue:x.titulo,className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge,onBlur:C=>o.mutate({id:x.id,titulo:C.target.value})}),c.jsx("input",{defaultValue:x.imagemUrl??"",placeholder:"imagem",className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge,onBlur:C=>o.mutate({id:x.id,imagemUrl:C.target.value})}),c.jsx("input",{defaultValue:x.linkUrl??"",placeholder:"link",className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge,onBlur:C=>o.mutate({id:x.id,linkUrl:C.target.value})}),c.jsxs("label",{className:"flex items-center gap-1 text-xs flex-shrink-0",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",defaultChecked:x.ativo,onChange:C=>o.mutate({id:x.id,ativo:C.target.checked})})," ativo"]}),c.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>f.mutate({id:x.id}),children:"remover"})]},x.id))}),c.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[c.jsx("input",{placeholder:"título",value:h,onChange:x=>m(x.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge}),c.jsx("input",{placeholder:"imagem (opcional)",value:v,onChange:x=>p(x.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge}),c.jsx("input",{placeholder:"link",value:y,onChange:x=>O(x.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{h&&(s.mutate({titulo:h,imagemUrl:v||void 0,linkUrl:y||void 0}),m(""),p(""),O(""))},children:"+ adicionar"})]})]})}function m2(){const{data:n}=L.homeCms.banners.listarTodos.useQuery(),u=L.useUtils(),s=L.homeCms.banners.criar.useMutation({onSuccess:()=>u.homeCms.banners.listarTodos.invalidate()}),o=L.homeCms.banners.atualizar.useMutation({onSuccess:()=>u.homeCms.banners.listarTodos.invalidate()}),f=L.homeCms.banners.excluir.useMutation({onSuccess:()=>u.homeCms.banners.listarTodos.invalidate()}),[h,m]=D.useState(""),[v,p]=D.useState("");return c.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Banners (cross-divulgação do ecossistema)"}),c.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Independente do hero — pode ter período de exibição (ex: só durante um congresso). Deixe as datas em branco pra sempre visível."}),c.jsx("div",{className:"space-y-2",children:n?.map(y=>c.jsxs("div",{className:"rounded p-3 space-y-2",style:{border:"var(--border-thin)"},children:[c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{defaultValue:y.titulo,className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge,onBlur:O=>o.mutate({id:y.id,titulo:O.target.value})}),c.jsx("input",{defaultValue:y.linkUrl,placeholder:"link",className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge,onBlur:O=>o.mutate({id:y.id,linkUrl:O.target.value})})]}),c.jsxs("div",{className:"flex gap-2 items-center",children:[c.jsxs("label",{className:"text-xs flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["início",c.jsx("input",{type:"date",defaultValue:y.dataInicio?.toString().slice(0,10)??"",className:"w-full rounded px-2 py-1 text-sm mt-0.5",style:ge,onChange:O=>o.mutate({id:y.id,dataInicio:O.target.value})})]}),c.jsxs("label",{className:"text-xs flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["fim",c.jsx("input",{type:"date",defaultValue:y.dataFim?.toString().slice(0,10)??"",className:"w-full rounded px-2 py-1 text-sm mt-0.5",style:ge,onChange:O=>o.mutate({id:y.id,dataFim:O.target.value})})]}),c.jsxs("label",{className:"flex items-center gap-1 text-xs flex-shrink-0 mt-3",style:{color:"var(--color-text-on-dark-muted)"},children:[c.jsx("input",{type:"checkbox",defaultChecked:y.ativo,onChange:O=>o.mutate({id:y.id,ativo:O.target.checked})})," ativo"]}),c.jsx("button",{className:"text-xs flex-shrink-0 mt-3",style:{color:"#ff8080"},onClick:()=>f.mutate({id:y.id}),children:"remover"})]})]},y.id))}),c.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[c.jsx("input",{placeholder:"título (ex: Ouça no SpotOnFide)",value:h,onChange:y=>m(y.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge}),c.jsx("input",{placeholder:"link (ex: https://spot.onfide.com.br)",value:v,onChange:y=>p(y.target.value),className:"flex-1 rounded px-2 py-1.5 text-sm",style:ge}),c.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{!h||!v||(s.mutate({titulo:h,linkUrl:v}),m(""),p(""))},children:"+ adicionar"})]})]})}function v2(){const n=L.useUtils(),{data:u}=L.homeCms.comoFunciona.listar.useQuery(),s=L.homeCms.comoFunciona.criar.useMutation({onSuccess:()=>n.homeCms.comoFunciona.listar.invalidate()}),o=L.homeCms.comoFunciona.atualizar.useMutation({onSuccess:()=>n.homeCms.comoFunciona.listar.invalidate()}),f=L.homeCms.comoFunciona.excluir.useMutation({onSuccess:()=>n.homeCms.comoFunciona.listar.invalidate()}),{data:h}=L.homeCms.acervoItens.listarTodos.useQuery(),m=L.homeCms.acervoItens.criar.useMutation({onSuccess:()=>n.homeCms.acervoItens.listarTodos.invalidate()}),v=L.homeCms.acervoItens.atualizar.useMutation({onSuccess:()=>n.homeCms.acervoItens.listarTodos.invalidate()}),p=L.homeCms.acervoItens.excluir.useMutation({onSuccess:()=>n.homeCms.acervoItens.listarTodos.invalidate()}),{data:y}=L.homeCms.publicoItens.listarTodos.useQuery(),O=L.homeCms.publicoItens.criar.useMutation({onSuccess:()=>n.homeCms.publicoItens.listarTodos.invalidate()}),x=L.homeCms.publicoItens.atualizar.useMutation({onSuccess:()=>n.homeCms.publicoItens.listarTodos.invalidate()}),C=L.homeCms.publicoItens.excluir.useMutation({onSuccess:()=>n.homeCms.publicoItens.listarTodos.invalidate()}),{data:q}=L.homeCms.beneficios.listarTodos.useQuery(),G=L.homeCms.beneficios.criar.useMutation({onSuccess:()=>n.homeCms.beneficios.listarTodos.invalidate()}),_=L.homeCms.beneficios.atualizar.useMutation({onSuccess:()=>n.homeCms.beneficios.listarTodos.invalidate()}),F=L.homeCms.beneficios.excluir.useMutation({onSuccess:()=>n.homeCms.beneficios.listarTodos.invalidate()}),{data:ne}=L.homeCms.faqItens.listarTodos.useQuery(),fe=L.homeCms.faqItens.criar.useMutation({onSuccess:()=>n.homeCms.faqItens.listarTodos.invalidate()}),ce=L.homeCms.faqItens.atualizar.useMutation({onSuccess:()=>n.homeCms.faqItens.listarTodos.invalidate()}),Oe=L.homeCms.faqItens.excluir.useMutation({onSuccess:()=>n.homeCms.faqItens.listarTodos.invalidate()});return c.jsxs(c.Fragment,{children:[c.jsx(xr,{titulo:"Como Funciona",descricao:"ícone = nome de um ícone do lucide-react (ex: Search, BookOpen, Bookmark)",temAtivo:!1,campos:[{chave:"icone",rotulo:"ícone"},{chave:"numero",rotulo:"número"},{chave:"titulo",rotulo:"título"},{chave:"descricao",rotulo:"descrição",tipo:"textarea"}],itens:u,aoCriar:X=>s.mutate(X),aoAtualizar:(X,V)=>o.mutate({id:X,...V}),aoExcluir:X=>f.mutate({id:X})}),c.jsx(xr,{titulo:"O Acervo (formatos)",campos:[{chave:"icone",rotulo:"ícone"},{chave:"nome",rotulo:"nome"},{chave:"descricao",rotulo:"descrição",tipo:"textarea"},{chave:"linkUrl",rotulo:"link"}],itens:h,aoCriar:X=>m.mutate(X),aoAtualizar:(X,V)=>v.mutate({id:X,...V}),aoExcluir:X=>p.mutate({id:X})}),c.jsx(xr,{titulo:"Leitura pra Toda a Família (público)",campos:[{chave:"icone",rotulo:"ícone"},{chave:"nome",rotulo:"nome"},{chave:"faixaEtaria",rotulo:"faixa etária"},{chave:"linkUrl",rotulo:"link"}],itens:y,aoCriar:X=>O.mutate(X),aoAtualizar:(X,V)=>x.mutate({id:X,...V}),aoExcluir:X=>C.mutate({id:X})}),c.jsx(xr,{titulo:"Por Que Ler (experiência)",campos:[{chave:"icone",rotulo:"ícone"},{chave:"texto",rotulo:"texto"}],itens:q,aoCriar:X=>G.mutate(X),aoAtualizar:(X,V)=>_.mutate({id:X,...V}),aoExcluir:X=>F.mutate({id:X})}),c.jsx(xr,{titulo:"Perguntas Frequentes",campos:[{chave:"pergunta",rotulo:"pergunta"},{chave:"resposta",rotulo:"resposta",tipo:"textarea"}],itens:ne,aoCriar:X=>fe.mutate(X),aoAtualizar:(X,V)=>ce.mutate({id:X,...V}),aoExcluir:X=>Oe.mutate({id:X})})]})}function p2(){const{usuario:n,isLoading:u,podePublicar:s,logout:o}=gn(),[f,h]=D.useState(null);return u?null:n?s?c.jsx("div",{className:"min-h-dvh",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:c.jsxs("div",{className:"max-w-2xl mx-auto p-6",children:[c.jsxs("div",{className:"flex justify-between items-center mb-6",children:[c.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7"}),c.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>o.mutate(),children:"sair"})]}),c.jsx(i2,{livroExistente:f,aoTerminar:()=>h(null)},f?.id??"novo"),c.jsx(s2,{aoEditar:h}),c.jsx(o2,{}),c.jsx(f2,{}),c.jsx(c2,{}),c.jsx("h2",{className:"mt-10 mb-2 text-lg",style:{fontFamily:"var(--font-display)"},children:"CMS da Home"}),c.jsx(d2,{}),c.jsx(h2,{}),c.jsx(m2,{}),c.jsx(v2,{})]})}):c.jsx("div",{className:"min-h-dvh p-6",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:"Sua conta não tem permissão de editor."}):(window.location.href="/entrar",null)}const y2="/media/images/capas/capa-placeholder.svg";function g2({livroId:n,usuario:u}){const s=L.useUtils(),{data:o}=L.biblioteca.getLivro.useQuery({id:n}),{data:f}=L.avaliacoes.minha.useQuery({livroId:n},{enabled:!!u}),h=L.avaliacoes.avaliar.useMutation({onSuccess:()=>{s.biblioteca.getLivro.invalidate({id:n}),s.avaliacoes.minha.invalidate({livroId:n})}}),[m,v]=D.useState(null),p=m??f??0;return c.jsxs("div",{className:"flex flex-col items-center md:items-start gap-1 mb-3",children:[c.jsx("div",{className:"flex gap-0.5",children:[1,2,3,4,5].map(y=>c.jsx("button",{disabled:!u,"aria-label":`avaliar com ${y} estrela${y>1?"s":""}`,onMouseEnter:()=>u&&v(y),onMouseLeave:()=>v(null),onClick:()=>u&&h.mutate({livroId:n,nota:y}),className:u?"cursor-pointer":"cursor-default",style:{background:"none",border:"none",padding:2},children:c.jsx(Wv,{size:20,fill:y<=p?"var(--clr-dourado-400)":"none",style:{color:"var(--clr-dourado-400)"}})},y))}),o&&o.avaliacaoTotal>0&&c.jsxs("p",{className:"text-xs",style:{color:"rgba(245,230,200,0.55)"},children:[o.avaliacaoMedia?.toFixed(1)," de 5 · ",o.avaliacaoTotal," avaliaç",o.avaliacaoTotal>1?"ões":"ão"]}),!u&&c.jsx("p",{className:"text-xs",style:{color:"rgba(245,230,200,0.4)"},children:"entre pra avaliar"})]})}function x2({livroId:n,usuario:u}){const[s,o]=D.useState(!1),[f,h]=D.useState(!1),m=D.useRef(null);D.useEffect(()=>{function O(x){m.current&&!m.current.contains(x.target)&&o(!1)}return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[]);const v=`${window.location.origin}/share/livro/${n}${u?`?ref=${u.id}`:""}`,p="Olha esse livro que encontrei na Biblioteca OnFide:";function y(){navigator.clipboard.writeText(v).then(()=>{h(!0),setTimeout(()=>h(!1),2e3)})}return c.jsxs("div",{className:"relative",ref:m,children:[c.jsxs("button",{onClick:()=>o(O=>!O),className:"flex items-center gap-2 text-sm rounded-full px-4 py-2 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:[c.jsx(Pv,{size:15})," compartilhar"]}),s&&c.jsxs("div",{className:"absolute z-20 top-full mt-2 left-1/2 -translate-x-1/2 md:left-0 md:translate-x-0 rounded-lg p-3 flex flex-col gap-1 shadow-2xl",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)",minWidth:220},children:[c.jsx("a",{href:`https://wa.me/?text=${encodeURIComponent(`${p} ${v}`)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm px-3 py-2 rounded transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{color:"var(--clr-off-white)"},children:"WhatsApp"}),c.jsx("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(v)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm px-3 py-2 rounded transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{color:"var(--clr-off-white)"},children:"Facebook"}),c.jsx("a",{href:`https://twitter.com/intent/tweet?text=${encodeURIComponent(p)}&url=${encodeURIComponent(v)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm px-3 py-2 rounded transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{color:"var(--clr-off-white)"},children:"X / Twitter"}),c.jsxs("button",{onClick:y,className:"flex items-center gap-2 text-sm px-3 py-2 rounded transition-colors hover:bg-[var(--clr-dourado-alpha12)] text-left",style:{color:"var(--clr-off-white)"},children:[f?c.jsx($v,{size:15,style:{color:"var(--clr-dourado-400)"}}):c.jsx(zx,{size:15}),f?"link copiado!":"copiar link"]})]})]})}function b2(){const{id:n}=ri(),u=Number(n),{data:s,isLoading:o}=L.biblioteca.getLivro.useQuery({id:u}),{data:f}=L.auth.me.useQuery(),{data:h}=L.biblioteca.favoritos.status.useQuery({livroId:u},{enabled:!!f&&!Number.isNaN(u)}),m=L.useUtils(),v=L.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>m.biblioteca.favoritos.status.invalidate({livroId:u})}),p=L.registrarAcesso.useMutation();return D.useEffect(()=>{Number.isNaN(u)||p.mutate({livroId:u})},[u]),o?c.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."})}):s?c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{}),c.jsxs("div",{className:"max-w-4xl mx-auto px-5 pt-10 pb-16 flex-1 w-full flex flex-col md:flex-row items-center md:items-start gap-8 md:gap-10 text-center md:text-left",children:[c.jsxs("div",{className:"relative flex-shrink-0",children:[c.jsx("img",{src:s.capaUrl||y2,alt:s.titulo,style:{width:220,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-dourado-md)"}}),f&&c.jsx("button",{"aria-label":"favoritar",onClick:()=>v.mutate({livroId:u}),className:"absolute -top-2 -right-2 w-10 h-10 rounded-full flex items-center justify-center",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)",color:h?.favorito?"var(--clr-dourado-400)":"var(--color-text-on-dark-subtle)"},children:h?.favorito?"★":"☆"})]}),c.jsxs("div",{className:"flex flex-col items-center md:items-start max-w-lg",children:[c.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.75rem",fontWeight:600,color:"var(--clr-off-white)",marginBottom:"0.4rem"},children:s.titulo}),s.subtitulo&&c.jsx("p",{style:{fontSize:"1rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.6rem"},children:s.subtitulo}),c.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.3rem"},children:s.autor}),c.jsx(g2,{livroId:u,usuario:f}),c.jsxs("div",{className:"flex items-center gap-1 mb-3 text-xs",style:{color:"rgba(245,230,200,0.45)"},children:[c.jsx(Ux,{size:13}),s.contagemAcessos," acesso",s.contagemAcessos!==1?"s":""]}),s.serie&&c.jsxs("a",{href:`/serie/${encodeURIComponent(s.serie)}`,className:"inline-block transition-opacity hover:opacity-80",style:{marginTop:"0.4rem",marginBottom:"1.25rem",fontSize:"0.75rem",padding:"0.35rem 0.9rem",borderRadius:"var(--radius-full)",border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),s.resumo&&c.jsx("p",{style:{fontSize:"0.95rem",lineHeight:"var(--leading-relaxed)",color:"rgba(245,230,200,0.8)",marginBottom:"1.75rem"},children:s.resumo}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 w-full sm:w-auto mb-4",children:[s.leituraDisponivel?c.jsx("a",{href:`/leitor/${s.id}`,className:"btn btn-primary text-center",style:{padding:"0.75rem 2.5rem"},children:"ler agora"}):c.jsx("p",{style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-subtle)"},children:"este livro ainda não tem um arquivo de leitura disponível."}),c.jsx("button",{disabled:!0,title:"em breve",className:"text-center cursor-not-allowed",style:{padding:"0.75rem 2rem",borderRadius:"var(--radius-full)",border:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.35)",fontSize:"0.9rem"},children:"baixar PDF · em breve"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[c.jsx(x2,{livroId:u,usuario:f}),s.linkCompraImpresso&&c.jsxs("a",{href:s.linkCompraImpresso,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm rounded-full px-4 py-2 transition-colors",style:{background:"var(--clr-dourado-400)",color:"var(--clr-marrom-950)"},children:[c.jsx(Eb,{size:15})," comprar impresso"]})]})]})]}),c.jsx(Ft,{})]}):c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{}),c.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[c.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)"},children:"livro não encontrado."}),c.jsx("a",{href:"/",className:"btn btn-ghost",style:{padding:"0.5rem 1.25rem"},children:"voltar pra Home"})]}),c.jsx(Ft,{})]})}function S2(){const u=new URLSearchParams(Cv()).get("q")||"",[s]=D.useState(u),{data:o,isLoading:f}=L.biblioteca.buscar.useQuery({q:s},{enabled:s.length>0});return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{buscaInicial:s}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s.length===0&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"digite algo pra buscar."}),f&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),s.length>0&&!f&&o&&o.length===0&&c.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',s,'".']}),o&&o.length>0&&c.jsx(yn,{livros:o,titulo:`resultados pra "${s}"`})]}),c.jsx(Ft,{})]})}function j2(){const{nome:n}=ri(),u=decodeURIComponent(n),{data:s,isLoading:o}=L.biblioteca.getSerie.useQuery({nome:u});return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[c.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-branco)",marginBottom:"1.5rem"},children:u}),o&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),s&&s.length>0?c.jsx(yn,{livros:s,titulo:`${s.length} livro${s.length>1?"s":""} nesta série`}):!o&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]}),c.jsx(Ft,{})]})}const Fm={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function O2(){const{usuario:n,isLoading:u,login:s}=gn(),[o,f]=D.useState(""),[h,m]=D.useState("");return u?null:n?(window.location.href="/minha-biblioteca",null):c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{}),c.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:c.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[c.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Entrar"}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Fm,placeholder:"e-mail",value:o,onChange:v=>f(v.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Fm,placeholder:"senha",type:"password",value:h,onChange:v=>m(v.target.value)}),c.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({email:o,senha:h}),disabled:s.isPending,children:s.isPending?"entrando...":"entrar"}),s.isError&&c.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),c.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["ainda não tem conta? ",c.jsx("a",{href:"/cadastro",style:{color:"var(--clr-dourado-400)"},children:"criar conta"})]})]})}),c.jsx(Ft,{})]})}const Yo={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function _2(){const{usuario:n,isLoading:u,registrar:s}=gn(),[o,f]=D.useState(""),[h,m]=D.useState(""),[v,p]=D.useState("");return u?null:n?(window.location.href="/minha-biblioteca",null):c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{}),c.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:c.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[c.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Criar conta"}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Yo,placeholder:"nome",value:o,onChange:y=>f(y.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Yo,placeholder:"e-mail",value:h,onChange:y=>m(y.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Yo,placeholder:"senha (mínimo 8 caracteres)",type:"password",value:v,onChange:y=>p(y.target.value)}),c.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({nome:o,email:h,senha:v}),disabled:s.isPending||!o||!h||v.length<8,children:s.isPending?"criando...":"criar conta"}),s.isError&&c.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),c.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["já tem conta? ",c.jsx("a",{href:"/entrar",style:{color:"var(--clr-dourado-400)"},children:"entrar"})]})]})}),c.jsx(Ft,{})]})}const Fu={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function N2(){const{usuario:n,isLoading:u,logout:s}=gn(),o=L.useUtils(),f=L.auth.atualizarPerfil.useMutation({onSuccess:()=>o.auth.me.invalidate()}),h=L.auth.trocarSenha.useMutation(),[m,v]=D.useState(n?.nome??""),[p,y]=D.useState(""),[O,x]=D.useState(""),[C,q]=D.useState(null);if(u)return null;if(!n)return window.location.href="/entrar",null;function G(){q(null),h.mutate({senhaAtual:p,senhaNova:O},{onSuccess:()=>{q("Senha atualizada."),y(""),x("")},onError:_=>q(_.message)})}return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{}),c.jsxs("div",{className:"max-w-md mx-auto px-5 pt-10 pb-16 flex-1 w-full space-y-8",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Meu perfil"}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["nome",c.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:Fu,value:m,onChange:_=>v(_.target.value)})]}),c.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["e-mail",c.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:{...Fu,opacity:.6},value:n.email,disabled:!0})]}),c.jsx("button",{className:"btn btn-primary",onClick:()=>f.mutate({nome:m}),disabled:f.isPending||!m,children:f.isPending?"salvando...":"salvar nome"}),f.isSuccess&&c.jsx("p",{className:"text-sm",style:{color:"var(--clr-dourado-400)"},children:"Nome atualizado."})]})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Trocar senha"}),c.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[c.jsx("input",{className:"w-full rounded px-3 py-2",style:Fu,placeholder:"senha atual",type:"password",value:p,onChange:_=>y(_.target.value)}),c.jsx("input",{className:"w-full rounded px-3 py-2",style:Fu,placeholder:"nova senha (mínimo 8 caracteres)",type:"password",value:O,onChange:_=>x(_.target.value)}),c.jsx("button",{className:"btn btn-primary",onClick:G,disabled:h.isPending||!p||O.length<8,children:h.isPending?"salvando...":"trocar senha"}),C&&c.jsx("p",{className:"text-sm",style:{color:C==="Senha atualizada."?"var(--clr-dourado-400)":"#ff8080"},children:C})]})]}),c.jsx("button",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},onClick:()=>s.mutate(),children:"sair da conta"})]}),c.jsx(Ft,{})]})}function C2(){const{usuario:n,isLoading:u}=gn(),{data:s}=L.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!n}),{data:o}=L.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!n});return u?null:n?c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-10 pb-16 flex-1 w-full",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl",children:["Olá, ",n.nome.split(" ")[0]]}),c.jsx("a",{href:"/perfil",className:"btn btn-ghost text-sm",style:{padding:"0.5rem 1rem"},children:"meu perfil"})]}),s&&s.length>0&&c.jsxs("section",{className:"mb-14",children:[c.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"continuar lendo"}),c.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2",children:s.map(f=>c.jsxs("a",{href:`/leitor/${f.livroId}`,className:"group block flex-shrink-0 w-28",children:[c.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:c.jsx("img",{src:f.capaUrl||"/media/images/capas/capa-placeholder.svg",alt:f.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),c.jsx("p",{className:"text-xs mt-2 line-clamp-2",style:{color:"var(--clr-branco)"},children:f.titulo})]},f.livroId))})]}),o&&o.length>0?c.jsx(yn,{livros:o.map(f=>({id:f.livroId,titulo:f.titulo,autor:f.autor,capaUrl:f.capaUrl})),titulo:"meus favoritos"}):!s?.length&&c.jsxs("div",{className:"rounded-lg p-10 text-center",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",color:"var(--color-text-on-dark-muted)"},children:[c.jsx("p",{className:"text-lg mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"Sua estante está vazia por enquanto"}),c.jsx("p",{className:"text-sm mb-4",children:"Favorite um livro ou comece a ler algo pra ele aparecer aqui."}),c.jsx("a",{href:"/",className:"btn btn-primary",style:{padding:"0.6rem 1.5rem"},children:"explorar o catálogo"})]})]}),c.jsx(Ft,{})]}):(window.location.href="/entrar",null)}const E2={texto:"Livros",ilustrado:"Livros ilustrados",manga:"Mangás",hq:"HQs e graphic novels",revista:"Revistas",apostila:"Apostilas",audiolivro:"Áudiolivros"},M2={primeiros_leitores:"Primeiros leitores",infantil:"Infantil",pre_adolescente:"Pré-adolescentes",adolescente:"Adolescentes",jovem:"Jovens",adulto:"Adultos"};function T2(){const n=new URLSearchParams(Cv()),u=n.get("formato")??void 0,s=n.get("publico")??void 0,{data:o,isLoading:f}=L.biblioteca.filtrar.useQuery({formato:u,publicoAlvo:s,limite:40}),h=u?E2[u]??u:s?M2[s]??s:"Explorar";return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[c.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl mb-6",children:h}),f&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),o&&o.length>0?c.jsx(yn,{livros:o,titulo:`${o.length} título${o.length>1?"s":""}`}):!f&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nada por aqui ainda."})]}),c.jsx(Ft,{})]})}function A2(){const{id:n}=ri(),{data:u,isLoading:s}=L.colecoes.obter.useQuery({id:Number(n)});return c.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[c.jsx(Jt,{}),c.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),u&&c.jsxs(c.Fragment,{children:[c.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl mb-2",children:u.nome}),u.descricao&&c.jsx("p",{className:"mb-6 max-w-2xl",style:{color:"var(--color-text-on-dark-muted)",lineHeight:"var(--leading-relaxed)"},children:u.descricao}),u.livros.length>0?c.jsx(yn,{livros:u.livros,titulo:`${u.livros.length} título${u.livros.length>1?"s":""} nesta coleção`}):c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"Comece por qualquer volume e continue descobrindo — em breve os primeiros títulos chegam aqui."})]}),!s&&!u&&c.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"coleção não encontrada."})]}),c.jsx(Ft,{})]})}const z2=D.lazy(()=>A0(()=>import("./Leitor-B03Ba1wI.js"),[]).then(n=>({default:n.Leitor})));function D2(){const[n]=D.useState(()=>new Z0);return c.jsx(L.Provider,{client:ax,queryClient:n,children:c.jsx(I0,{client:n,children:c.jsx(D.Suspense,{fallback:null,children:c.jsxs(w1,{children:[c.jsx(Yt,{path:"/admin",component:p2}),c.jsx(Yt,{path:"/leitor/:id",component:z2}),c.jsx(Yt,{path:"/livro/:id",component:b2}),c.jsx(Yt,{path:"/serie/:nome",component:j2}),c.jsx(Yt,{path:"/buscar",component:S2}),c.jsx(Yt,{path:"/entrar",component:O2}),c.jsx(Yt,{path:"/cadastro",component:_2}),c.jsx(Yt,{path:"/perfil",component:N2}),c.jsx(Yt,{path:"/minha-biblioteca",component:C2}),c.jsx(Yt,{path:"/explorar",component:T2}),c.jsx(Yt,{path:"/colecao/:id",component:A2}),c.jsx(Yt,{path:"/",component:a2})]})})})})}E0.createRoot(document.getElementById("root")).render(c.jsx(D.StrictMode,{children:c.jsx(D2,{})}));export{Cv as a,w2 as c,p0 as g,c as j,D as r,L as t,ri as u};
