@akairos/typeset-studio 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,317 @@
1
+ var w2=Object.defineProperty;var $1=i=>{throw TypeError(i)};var z2=(i,c,r)=>c in i?w2(i,c,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[c]=r;var Du=(i,c,r)=>z2(i,typeof c!="symbol"?c+"":c,r),P1=(i,c,r)=>c.has(i)||$1("Cannot "+r);var ex=(i,c,r)=>(P1(i,c,"read from private field"),r?r.call(i):c.get(i)),tx=(i,c,r)=>c.has(i)?$1("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(i):c.set(i,r),lx=(i,c,r,f)=>(P1(i,c,"write to private field"),f?f.call(i,r):c.set(i,r),r);(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))f(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const b of h.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&f(b)}).observe(document,{childList:!0,subtree:!0});function r(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function f(d){if(d.ep)return;d.ep=!0;const h=r(d);fetch(d.href,h)}})();function zx(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Wr={exports:{}},Bu={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var nx;function _2(){if(nx)return Bu;nx=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(f,d,h){var b=null;if(h!==void 0&&(b=""+h),d.key!==void 0&&(b=""+d.key),"key"in d){h={};for(var N in d)N!=="key"&&(h[N]=d[N])}else h=d;return d=h.ref,{$$typeof:i,type:f,key:b,ref:d!==void 0?d:null,props:h}}return Bu.Fragment=c,Bu.jsx=r,Bu.jsxs=r,Bu}var ax;function R2(){return ax||(ax=1,Wr.exports=_2()),Wr.exports}var o=R2(),Ir={exports:{}},be={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var ux;function L2(){if(ux)return be;ux=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),b=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),S=Symbol.for("react.view_transition"),k=Symbol.iterator;function Y(A){return A===null||typeof A!="object"?null:(A=k&&A[k]||A["@@iterator"],typeof A=="function"?A:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,W={};function Q(A,P,se){this.props=A,this.context=P,this.refs=W,this.updater=se||J}Q.prototype.isReactComponent={},Q.prototype.setState=function(A,P){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,P,"setState")},Q.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function ee(){}ee.prototype=Q.prototype;function ne(A,P,se){this.props=A,this.context=P,this.refs=W,this.updater=se||J}var Z=ne.prototype=new ee;Z.constructor=ne,q(Z,Q.prototype),Z.isPureReactComponent=!0;var E=Array.isArray;function L(){}var _={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function I(A,P,se){var re=se.ref;return{$$typeof:i,type:A,key:P,ref:re!==void 0?re:null,props:se}}function B(A,P){return I(A.type,P,A.props)}function te(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function V(A){var P={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(se){return P[se]})}var $=/\/+/g;function j(A,P){return typeof A=="object"&&A!==null&&A.key!=null?V(""+A.key):P.toString(36)}function D(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(L,L):(A.status="pending",A.then(function(P){A.status==="pending"&&(A.status="fulfilled",A.value=P)},function(P){A.status==="pending"&&(A.status="rejected",A.reason=P)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,P,se,re,fe){var me=typeof A;(me==="undefined"||me==="boolean")&&(A=null);var pe=!1;if(A===null)pe=!0;else switch(me){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(A.$$typeof){case i:case c:pe=!0;break;case g:return pe=A._init,U(pe(A._payload),P,se,re,fe)}}if(pe)return fe=fe(A),pe=re===""?"."+j(A,0):re,E(fe)?(se="",pe!=null&&(se=pe.replace($,"$&/")+"/"),U(fe,P,se,"",function(qe){return qe})):fe!=null&&(te(fe)&&(fe=B(fe,se+(fe.key==null||A&&A.key===fe.key?"":(""+fe.key).replace($,"$&/")+"/")+pe)),P.push(fe)),1;pe=0;var ie=re===""?".":re+":";if(E(A))for(var de=0;de<A.length;de++)re=A[de],me=ie+j(re,de),pe+=U(re,P,se,me,fe);else if(de=Y(A),typeof de=="function")for(A=de.call(A),de=0;!(re=A.next()).done;)re=re.value,me=ie+j(re,de++),pe+=U(re,P,se,me,fe);else if(me==="object"){if(typeof A.then=="function")return U(D(A),P,se,re,fe);throw P=String(A),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return pe}function H(A,P,se){if(A==null)return A;var re=[],fe=0;return U(A,re,"","",function(me){return P.call(se,me,fe++)}),re}function le(A){if(A._status===-1){var P=A._result,se=P();se.then(function(re){(A._status===0||A._status===-1)&&(A._status=1,A._result=re,se.status===void 0&&(se.status="fulfilled",se.value=re))},function(re){(A._status===0||A._status===-1)&&(A._status=2,A._result=re,se.status===void 0&&(se.status="rejected",se.reason=re))}),A._status===-1&&(A._status=0,A._result=se)}if(A._status===1)return A._result.default;throw A._result}var K=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function ae(A){var P=_.T,se={};se.types=P!==null?P.types:null,_.T=se;try{var re=A(),fe=_.S;fe!==null&&fe(se,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(L,K)}catch(me){K(me)}finally{P!==null&&se.types!==null&&(P.types=se.types),_.T=P}}function he(A){var P=_.T;if(P!==null){var se=P.types;se===null?P.types=[A]:se.indexOf(A)===-1&&se.push(A)}else ae(he.bind(null,A))}var Te={map:H,forEach:function(A,P,se){H(A,function(){P.apply(this,arguments)},se)},count:function(A){var P=0;return H(A,function(){P++}),P},toArray:function(A){return H(A,function(P){return P})||[]},only:function(A){if(!te(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return be.Activity=m,be.Children=Te,be.Component=Q,be.Fragment=r,be.Profiler=d,be.PureComponent=ne,be.StrictMode=f,be.Suspense=p,be.ViewTransition=S,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,be.__COMPILER_RUNTIME={__proto__:null,c:function(A){return _.H.useMemoCache(A)}},be.addTransitionType=he,be.cache=function(A){return function(){return A.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(A,P,se){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var re=q({},A.props),fe=A.key;if(P!=null)for(me in P.key!==void 0&&(fe=""+P.key),P)!z.call(P,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&P.ref===void 0||(re[me]=P[me]);var me=arguments.length-2;if(me===1)re.children=se;else if(1<me){for(var pe=Array(me),ie=0;ie<me;ie++)pe[ie]=arguments[ie+2];re.children=pe}return I(A.type,fe,re)},be.createContext=function(A){return A={$$typeof:b,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:h,_context:A},A},be.createElement=function(A,P,se){var re,fe={},me=null;if(P!=null)for(re in P.key!==void 0&&(me=""+P.key),P)z.call(P,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(fe[re]=P[re]);var pe=arguments.length-2;if(pe===1)fe.children=se;else if(1<pe){for(var ie=Array(pe),de=0;de<pe;de++)ie[de]=arguments[de+2];fe.children=ie}if(A&&A.defaultProps)for(re in pe=A.defaultProps,pe)fe[re]===void 0&&(fe[re]=pe[re]);return I(A,me,fe)},be.createRef=function(){return{current:null}},be.forwardRef=function(A){return{$$typeof:N,render:A}},be.isValidElement=te,be.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:le}},be.memo=function(A,P){return{$$typeof:v,type:A,compare:P===void 0?null:P}},be.startTransition=ae,be.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},be.use=function(A){return _.H.use(A)},be.useActionState=function(A,P,se){return _.H.useActionState(A,P,se)},be.useCallback=function(A,P){return _.H.useCallback(A,P)},be.useContext=function(A){return _.H.useContext(A)},be.useDebugValue=function(){},be.useDeferredValue=function(A,P){return _.H.useDeferredValue(A,P)},be.useEffect=function(A,P){return _.H.useEffect(A,P)},be.useEffectEvent=function(A){return _.H.useEffectEvent(A)},be.useId=function(){return _.H.useId()},be.useImperativeHandle=function(A,P,se){return _.H.useImperativeHandle(A,P,se)},be.useInsertionEffect=function(A,P){return _.H.useInsertionEffect(A,P)},be.useLayoutEffect=function(A,P){return _.H.useLayoutEffect(A,P)},be.useMemo=function(A,P){return _.H.useMemo(A,P)},be.useOptimistic=function(A,P){return _.H.useOptimistic(A,P)},be.useReducer=function(A,P,se){return _.H.useReducer(A,P,se)},be.useRef=function(A){return _.H.useRef(A)},be.useState=function(A){return _.H.useState(A)},be.useSyncExternalStore=function(A,P,se){return _.H.useSyncExternalStore(A,P,se)},be.useTransition=function(){return _.H.useTransition()},be.version="19.3.0",be}var ix;function pf(){return ix||(ix=1,Ir.exports=L2()),Ir.exports}var ge=pf();const H2=zx(ge);var $r={exports:{}},Ou={},Pr={exports:{}},ef={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var cx;function U2(){return cx||(cx=1,(function(i){function c(D,U){var H=D.length;D.push(U);e:for(;0<H;){var le=H-1>>>1,K=D[le];if(0<d(K,U))D[le]=U,D[H]=K,H=le;else break e}}function r(D){return D.length===0?null:D[0]}function f(D){if(D.length===0)return null;var U=D[0],H=D.pop();if(H!==U){D[0]=H;e:for(var le=0,K=D.length,ae=K>>>1;le<ae;){var he=2*(le+1)-1,Te=D[he],A=he+1,P=D[A];if(0>d(Te,H))A<K&&0>d(P,Te)?(D[le]=P,D[A]=H,le=A):(D[le]=Te,D[he]=H,le=he);else if(A<K&&0>d(P,H))D[le]=P,D[A]=H,le=A;else break e}}return U}function d(D,U){var H=D.sortIndex-U.sortIndex;return H!==0?H:D.id-U.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var b=Date,N=b.now();i.unstable_now=function(){return b.now()-N}}var p=[],v=[],g=1,m=null,S=3,k=!1,Y=!1,J=!1,q=!1,W=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;function ne(D){for(var U=r(v);U!==null;){if(U.callback===null)f(v);else if(U.startTime<=D)f(v),U.sortIndex=U.expirationTime,c(p,U);else break;U=r(v)}}function Z(D){if(J=!1,ne(D),!Y)if(r(p)!==null)Y=!0,E||(E=!0,te());else{var U=r(v);U!==null&&j(Z,U.startTime-D)}}var E=!1,L=-1,_=5,z=-1;function I(){return q?!0:!(i.unstable_now()-z<_)}function B(){if(q=!1,E){var D=i.unstable_now();z=D;var U=!0;try{e:{Y=!1,J&&(J=!1,Q(L),L=-1),k=!0;var H=S;try{t:{for(ne(D),m=r(p);m!==null&&!(m.expirationTime>D&&I());){var le=m.callback;if(typeof le=="function"){m.callback=null,S=m.priorityLevel;var K=le(m.expirationTime<=D);if(D=i.unstable_now(),typeof K=="function"){m.callback=K,ne(D),U=!0;break t}m===r(p)&&f(p),ne(D)}else f(p);m=r(p)}if(m!==null)U=!0;else{var ae=r(v);ae!==null&&j(Z,ae.startTime-D),U=!1}}break e}finally{m=null,S=H,k=!1}U=void 0}}finally{U?te():E=!1}}}var te;if(typeof ee=="function")te=function(){ee(B)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,$=V.port2;V.port1.onmessage=B,te=function(){$.postMessage(null)}}else te=function(){W(B,0)};function j(D,U){L=W(function(){D(i.unstable_now())},U)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_next=function(D){switch(S){case 1:case 2:case 3:var U=3;break;default:U=S}var H=S;S=U;try{return D()}finally{S=H}},i.unstable_requestPaint=function(){q=!0},i.unstable_runWithPriority=function(D,U){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var H=S;S=D;try{return U()}finally{S=H}},i.unstable_scheduleCallback=function(D,U,H){var le=i.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?le+H:le):H=le,D){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=H+K,D={id:g++,callback:U,priorityLevel:D,startTime:H,expirationTime:K,sortIndex:-1},H>le?(D.sortIndex=H,c(v,D),r(p)===null&&D===r(v)&&(J?(Q(L),L=-1):J=!0,j(Z,H-le))):(D.sortIndex=K,c(p,D),Y||k||(Y=!0,E||(E=!0,te()))),D},i.unstable_shouldYield=I,i.unstable_wrapCallback=function(D){var U=S;return function(){var H=S;S=U;try{return D.apply(this,arguments)}finally{S=H}}}})(ef)),ef}var sx;function q2(){return sx||(sx=1,Pr.exports=U2()),Pr.exports}var tf={exports:{}},rt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var rx;function G2(){if(rx)return rt;rx=1;var i=pf();function c(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)m+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var f={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal"),h=Symbol.for("react.recoverable"),b=Symbol.for("react.optimistic_key");function N(g,m,S){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:k==null?null:k===b?b:""+k,children:g,containerInfo:m,implementation:S}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,rt.browser=function(g){return{$$typeof:h,_reason:g}},rt.createPortal=function(g,m){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(c(299));return N(g,m,null,S)},rt.flushSync=function(g){var m=p.T,S=f.p;try{if(p.T=null,f.p=2,g)return g()}finally{p.T=m,f.p=S,f.d.f()}},rt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,f.d.C(g,m))},rt.prefetchDNS=function(g){typeof g=="string"&&f.d.D(g)},rt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var S=m.as,k=v(S,m.crossOrigin),Y=typeof m.integrity=="string"?m.integrity:void 0,J=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;S==="style"?f.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:k,integrity:Y,fetchPriority:J}):S==="script"&&f.d.X(g,{crossOrigin:k,integrity:Y,fetchPriority:J,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},rt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var S=v(m.as,m.crossOrigin);f.d.M(g,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0})}}else m==null&&f.d.M(g)},rt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var S=m.as,k=v(S,m.crossOrigin);f.d.L(g,S,{crossOrigin:k,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},rt.preloadModule=function(g,m){if(typeof g=="string")if(m){var S=v(m.as,m.crossOrigin);f.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0})}else f.d.m(g)},rt.requestFormReset=function(g){f.d.r(g)},rt.unstable_batchedUpdates=function(g,m){return g(m)},rt.useFormState=function(g,m,S){return p.H.useFormState(g,m,S)},rt.useFormStatus=function(){return p.H.useHostTransitionStatus()},rt.version="19.3.0",rt}var fx;function Y2(){if(fx)return tf.exports;fx=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),tf.exports=G2(),tf.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var ox;function X2(){if(ox)return Ou;ox=1;var i=q2(),c=pf(),r=Y2();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){for(var t=e,l=t;l&&!l.alternate;)t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function b(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 N(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(f(188))}function v(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(f(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return p(a),e;if(u===n)return p(a),t;u=u.sibling}throw Error(f(188))}if(l.return!==n.return)l=a,n=u;else{for(var s=!1,x=a.child;x;){if(x===l){s=!0,l=a,n=u;break}if(x===n){s=!0,n=a,l=u;break}x=x.sibling}if(!s){for(x=u.child;x;){if(x===l){s=!0,l=u,n=a;break}if(x===n){s=!0,n=u,l=a;break}x=x.sibling}if(!s)throw Error(f(189))}}if(l.alternate!==n)throw Error(f(190))}if(l.tag!==3)throw Error(f(188));return l.stateNode.current===l?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}function m(e,t,l,n,a,u){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,n,a,u)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,l,n,a,u))return!0;e=e.sibling}return!1}function S(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function k(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Y(e){var t=[null,null],l=S(e);return l===null||J(t,e,l.child,{foundSelf:!1}),t}function J(e,t,l,n){for(;l!==null;){if(l===t)n.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(n.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&J(e,t,l.child,n))return!0;l=l.sibling}return!1}function q(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(f(559))}}var W=null,Q=null;function ee(e,t,l){return e===l?!0:e===t?(W=e,!0):!1}function ne(e,t,l){return e===l?(Q=e,!1):e===t?(Q!==null&&(W=e),!0):!1}function Z(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,l){for(var n=0,a=e;a;a=l(a))n++;a=0;for(var u=t;u;u=l(u))a++;for(;0<n-a;)e=l(e),n--;for(;0<a-n;)t=l(t),a--;for(;n--;){if(e===t||t!==null&&e===t.alternate)return e;e=l(e),t=l(t)}return null}var L=Object.assign,_=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),j=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),he=Symbol.for("react.legacy_hidden"),Te=Symbol.for("react.memo_cache_sentinel"),A=Symbol.for("react.view_transition"),P=Symbol.for("react.recoverable"),se=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case V:return"Profiler";case te:return"StrictMode";case U:return"Suspense";case H:return"SuspenseList";case ae:return"Activity";case A:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case I:return"Portal";case j:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var pe=Array.isArray,ie=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qe={pending:!1,data:null,method:null,action:null},un=[],Et=-1;function ft(e){return{current:e}}function Ie(e){0>Et||(e.current=un[Et],un[Et]=null,Et--)}function _e(e,t){Et++,un[Et]=e.current,e.current=t}var gt=ft(null),cn=ft(null),dl=ft(null),Xt=ft(null);function xl(e,t){switch(_e(dl,t),_e(cn,e),_e(gt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?c1(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=c1(t),e=s1(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ie(gt),_e(gt,e)}function $t(){Ie(gt),Ie(cn),Ie(dl)}function sn(e){var t=e.memoizedState;t!==null&&(Ca._currentValue=t.memoizedState,_e(Xt,e)),t=gt.current;var l=s1(t,e.type);t!==l&&(_e(cn,e),_e(gt,l))}function Fl(e){cn.current===e&&(Ie(gt),Ie(cn)),Xt.current===e&&(Ie(Xt),Ca._currentValue=qe)}var Rn,za;function Pt(e){if(Rn===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Rn=t&&t[1]||"",za=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Rn+e+za}var _a=!1;function Ln(e,t){if(!e||_a)return"";_a=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(ue){var M=ue}Reflect.construct(e,[],X)}else{try{X.call()}catch(ue){M=ue}X=!1;try{var w=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),X=!0,new e}finally{X&&(w!==void 0?Object.defineProperty(e.prototype,"props",w):delete e.prototype.props)}}}else{try{throw Error()}catch(ue){M=ue}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(ue){if(ue&&M&&typeof ue.stack=="string")return[ue.stack,M.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),s=u[0],x=u[1];if(s&&x){var y=s.split(`
44
+ `),F=x.split(`
45
+ `);for(a=n=0;n<y.length&&!y[n].includes("DetermineComponentFrameRoot");)n++;for(;a<F.length&&!F[a].includes("DetermineComponentFrameRoot");)a++;if(n===y.length||a===F.length)for(n=y.length-1,a=F.length-1;1<=n&&0<=a&&y[n]!==F[a];)a--;for(;1<=n&&0<=a;n--,a--)if(y[n]!==F[a]){if(n!==1||a!==1)do if(n--,a--,0>a||y[n]!==F[a]){var R=`
46
+ `+y[n].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=n&&0<=a);break}}}finally{_a=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Pt(l):""}function Lh(e,t){switch(e.tag){case 26:case 27:case 5:return Pt(e.type);case 16:return Pt("Lazy");case 13:return e.child!==t&&t!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return Ln(e.type,!1);case 11:return Ln(e.type.render,!1);case 1:return Ln(e.type,!0);case 31:return Pt("Activity");case 30:return Pt("ViewTransition");default:return""}}function Tf(e){try{var t="",l=null;do t+=Lh(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
47
+ Error generating stack: `+n.message+`
48
+ `+n.stack}}var yc=Object.prototype.hasOwnProperty,Nc=i.unstable_scheduleCallback,Sc=i.unstable_cancelCallback,Hh=i.unstable_shouldYield,Uh=i.unstable_requestPaint,At=i.unstable_now,qh=i.unstable_getCurrentPriorityLevel,Ff=i.unstable_ImmediatePriority,Df=i.unstable_UserBlockingPriority,_u=i.unstable_NormalPriority,Gh=i.unstable_LowPriority,Bf=i.unstable_IdlePriority,Yh=i.log,Xh=i.unstable_setDisableYieldValue,Ra=null,Ct=null;function Dl(e){if(typeof Yh=="function"&&Xh(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Ra,e)}catch{}}var Mt=Math.clz32?Math.clz32:Zh,Qh=Math.log,Vh=Math.LN2;function Zh(e){return e>>>=0,e===0?32:31-(Qh(e)/Vh|0)|0}var Ru=256,Lu=262144,Hu=4194304;function rn(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&-e;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 Uu(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,u=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var x=n&134217727;return x!==0?(n=x&~u,n!==0?a=rn(n):(s&=x,s!==0?a=rn(s):l||(l=x&~e,l!==0&&(a=rn(l))))):(x=n&~u,x!==0?a=rn(x):s!==0?a=rn(s):l||(l=n&~e,l!==0&&(a=rn(l)))),a===0?0:t!==0&&t!==a&&(t&u)===0&&(u=a&-a,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:a}function La(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Of(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-Mt(l),a=1<<n;t|=e[n],l&=~a}return t}function Kh(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 jf(){var e=Hu;return Hu<<=1,(Hu&62914560)===0&&(Hu=4194304),e}function Ec(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ha(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jh(e,t,l,n,a,u){var s=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var x=e.entanglements,y=e.expirationTimes,F=e.hiddenUpdates;for(l=s&~l;0<l;){var R=31-Mt(l),X=1<<R;x[R]=0,y[R]=-1;var M=F[R];if(M!==null)for(F[R]=null,R=0;R<M.length;R++){var w=M[R];w!==null&&(w.lane&=-536870913)}l&=~X}n!==0&&wf(e,n,0),u!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=u&~(s&~t))}function wf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Mt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function zf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-Mt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function _f(e,t){var l=t&-t;return l=(l&42)!==0?1:Ac(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ac(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 Cc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Rf(){var e=de.p;return e!==0?e:(e=window.event,e===void 0?32:Q1(e.type))}function Lf(e,t){var l=de.p;try{return de.p=e,t()}finally{de.p=l}}var hl=Math.random().toString(36).slice(2),nt="__reactFiber$"+hl,vt="__reactProps$"+hl,Hn="__reactContainer$"+hl,Hf="__reactEvents$"+hl,Wh="__reactListeners$"+hl,Ih="__reactHandles$"+hl,Uf="__reactResources$"+hl,Ua="__reactMarker$"+hl,qu="__reactLoad$"+hl;function Gu(e){delete e[nt],delete e[vt],delete e[Wh],delete e[Ih]}function fn(e){var t;if(t=e[nt])return t;for(var l=e.parentNode;l;){if(t=l[Hn]||l[nt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=C1(e);e!==null;){if(l=e[nt])return l;e=C1(e)}return t}e=l,l=e.parentNode}return null}function Un(e){if(e=e[nt]||e[Hn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function qn(e){var t=e[Uf];return t||(t=e[Uf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[Ua]=!0}function qf(e){e[qu]=void 0}var Gf=new Set,Yf={};function on(e,t){Gn(e,t),Gn(e+"Capture",t)}function Gn(e,t){for(Yf[e]=t,e=0;e<t.length;e++)Gf.add(t[e])}var $h=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]*$"),Xf={},Qf={};function Ph(e){return yc.call(Qf,e)?!0:yc.call(Xf,e)?!1:$h.test(e)?Qf[e]=!0:(Xf[e]=!0,!1)}var De=!1;function Vf(){var e=De;return De=!1,e}function Yu(e,t,l){if(Ph(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,l)}}function Xu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,l)}}function ml(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,n)}}function kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function em(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mc(e){if(!e._valueTracker){var t=Zf(e)?"checked":"value";e._valueTracker=em(e,t,""+e[t])}}function Kf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=Zf(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}var tm=/[\n"\\]/g;function zt(e){return e.replace(tm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function kc(e,t,l,n,a,u,s,x){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?s==="number"&&e.value==t?Tc(e,kt(e.value)):Tc(e,kt(t)):l!=null?Tc(e,kt(l)):n!=null&&e.removeAttribute("value"),a==null&&u!=null&&(e.defaultChecked=!!u),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+kt(x):e.removeAttribute("name")}function Jf(e,t,l,n,a,u,s,x){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Mc(e);return}l=l!=null?""+kt(l):"",t=t!=null?""+kt(t):l,x||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=x?e.checked:!!n,e.defaultChecked=!!n,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Mc(e)}function Tc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Yn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+kt(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Wf(e,t,l){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+kt(l):""}function If(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(f(92));if(pe(n)){if(1<n.length)throw Error(f(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=kt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Mc(e)}function Xn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var lm=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 $f(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||lm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Pf(e,t,l){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="",De=!0);for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&($f(e,a,n),De=!0)}else for(var u in t)t.hasOwnProperty(u)&&$f(e,u,t[u])}function Fc(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 nm=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"],["maskType","mask-type"],["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"]]),am=/^[\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 Qu(e){return am.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function el(){}var Dc=null;function Bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qn=null,Vn=null;function eo(e){var t=Un(e);if(t&&(e=t.stateNode)){var l=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(kc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[vt]||null;if(!a)throw Error(f(90));kc(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&Kf(n)}break e;case"textarea":Wf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Yn(e,!!l.multiple,t,!1)}}}var Oc=!1;function to(e,t,l){if(Oc)return e(t,l);Oc=!0;try{var n=e(t);return n}finally{if(Oc=!1,(Qn!==null||Vn!==null)&&(Qi(),Qn&&(t=Qn,e=Vn,Vn=Qn=null,eo(t),e)))for(t=0;t<e.length;t++)eo(e[t])}}function Ga(e,t){var l=e.stateNode;if(l===null)return null;var n=l[vt]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(f(231,t,typeof l));return l}var gl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jc=!1;if(gl)try{var Ya={};Object.defineProperty(Ya,"passive",{get:function(){jc=!0}}),window.addEventListener("test",Ya,Ya),window.removeEventListener("test",Ya,Ya)}catch{jc=!1}var Bl=null,wc=null,Vu=null;function lo(){if(Vu)return Vu;var e,t=wc,l=t.length,n,a="value"in Bl?Bl.value:Bl.textContent,u=a.length;for(e=0;e<l&&t[e]===a[e];e++);var s=l-e;for(n=1;n<=s&&t[l-n]===a[u-n];n++);return Vu=a.slice(e,1<n?1-n:void 0)}function Zu(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 Ku(){return!0}function no(){return!1}function dt(e){function t(l,n,a,u,s){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(l=e[x],this[x]=l?l(u):u[x]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ku:no,this.isPropagationStopped=no,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ku)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ku)},persist:function(){},isPersistent:Ku}),t}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=dt(Ol),Xa=L({},Ol,{view:0,detail:0}),um=dt(Xa),zc,_c,Qa,Wu=L({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,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!==Qa&&(Qa&&e.type==="mousemove"?(zc=e.screenX-Qa.screenX,_c=e.screenY-Qa.screenY):_c=zc=0,Qa=e),zc)},movementY:function(e){return"movementY"in e?e.movementY:_c}}),ao=dt(Wu),im=L({},Wu,{dataTransfer:0}),cm=dt(im),sm=L({},Xa,{relatedTarget:0}),Rc=dt(sm),rm=L({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),fm=dt(rm),om=L({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dm=dt(om),xm=L({},Ol,{data:0}),uo=dt(xm),hm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mm={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"},gm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gm[e])?!!t[e]:!1}function Lc(){return vm}var bm=L({},Xa,{key:function(e){if(e.key){var t=hm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(e){return e.type==="keypress"?Zu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pm=dt(bm),ym=L({},Wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),io=dt(ym),Nm=L({},Ol,{submitter:0}),Sm=dt(Nm),Em=L({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),Am=dt(Em),Cm=L({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mm=dt(Cm),km=L({},Wu,{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}),Tm=dt(km),Fm=L({},Ol,{newState:0,oldState:0,source:0}),Dm=dt(Fm),Bm=[9,13,27,32],Hc=gl&&"CompositionEvent"in window,Va=null;gl&&"documentMode"in document&&(Va=document.documentMode);var Om=gl&&"TextEvent"in window&&!Va,co=gl&&(!Hc||Va&&8<Va&&11>=Va),so=" ",ro=!1;function fo(e,t){switch(e){case"keyup":return Bm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function jm(e,t){switch(e){case"compositionend":return oo(t);case"keypress":return t.which!==32?null:(ro=!0,so);case"textInput":return e=t.data,e===so&&ro?null:e;default:return null}}function wm(e,t){if(Zn)return e==="compositionend"||!Hc&&fo(e,t)?(e=lo(),Vu=wc=Bl=null,Zn=!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 co&&t.locale!=="ko"?null:t.data;default:return null}}var zm={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 xo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zm[e.type]:t==="textarea"}function ho(e,t,l,n){Qn?Vn?Vn.push(n):Vn=[n]:Qn=n,t=Ii(t,"onChange"),0<t.length&&(l=new Ju("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Za=null,Ka=null;function _m(e){t1(e,0)}function Iu(e){var t=qa(e);if(Kf(t))return e}function mo(e,t){if(e==="change")return t}var go=!1;if(gl){var Uc;if(gl){var qc="oninput"in document;if(!qc){var vo=document.createElement("div");vo.setAttribute("oninput","return;"),qc=typeof vo.oninput=="function"}Uc=qc}else Uc=!1;go=Uc&&(!document.documentMode||9<document.documentMode)}function bo(){Za&&(Za.detachEvent("onpropertychange",po),Ka=Za=null)}function po(e){if(e.propertyName==="value"&&Iu(Ka)){var t=[];ho(t,Ka,e,Bc(e)),to(_m,t)}}function Rm(e,t,l){e==="focusin"?(bo(),Za=t,Ka=l,Za.attachEvent("onpropertychange",po)):e==="focusout"&&bo()}function Lm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Iu(Ka)}function Hm(e,t){if(e==="click")return Iu(t)}function Um(e,t){if(e==="input"||e==="change")return Iu(t)}function qm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:qm;function Ja(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!yc.call(t,a)||!Tt(e[a],t[a]))return!1}return!0}function Gc(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}}function yo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function No(e,t){var l=yo(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yo(l)}}function So(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?So(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Eo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gc(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Gc(e.document)}return t}function Yc(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 Gm=gl&&"documentMode"in document&&11>=document.documentMode,Kn=null,Xc=null,Wa=null,Qc=!1;function Ao(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qc||Kn==null||Kn!==Gc(n)||(n=Kn,"selectionStart"in n&&Yc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Wa&&Ja(Wa,n)||(Wa=n,n=Ii(Xc,"onSelect"),0<n.length&&(t=new Ju("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=Kn)))}function dn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Jn={animationend:dn("Animation","AnimationEnd"),animationiteration:dn("Animation","AnimationIteration"),animationstart:dn("Animation","AnimationStart"),transitionrun:dn("Transition","TransitionRun"),transitionstart:dn("Transition","TransitionStart"),transitioncancel:dn("Transition","TransitionCancel"),transitionend:dn("Transition","TransitionEnd")},Vc={},Co={};gl&&(Co=document.createElement("div").style,"AnimationEvent"in window||(delete Jn.animationend.animation,delete Jn.animationiteration.animation,delete Jn.animationstart.animation),"TransitionEvent"in window||delete Jn.transitionend.transition);function xn(e){if(Vc[e])return Vc[e];if(!Jn[e])return e;var t=Jn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Co)return Vc[e]=t[l];return e}var Mo=xn("animationend"),ko=xn("animationiteration"),To=xn("animationstart"),Ym=xn("transitionrun"),Xm=xn("transitionstart"),Qm=xn("transitioncancel"),Fo=xn("transitionend"),Do=new Map,Zc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Zc.push("scrollEnd");function Qt(e,t){Do.set(e,t),on(t,[e])}var Vm=0;function vl(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Jt.identifierPrefix;var l=Vm++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function Bo(e){if(e==null||typeof e=="string")return e;var t=null,l=ma;if(l!==null)for(var n=0;n<l.length;n++){var a=e[l[n]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function bl(e,t){return e=Bo(e),t=Bo(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var $u=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)},_t=[],Wn=0,Kc=0;function Pu(){for(var e=Wn,t=Kc=Wn=0;t<e;){var l=_t[t];_t[t++]=null;var n=_t[t];_t[t++]=null;var a=_t[t];_t[t++]=null;var u=_t[t];if(_t[t++]=null,n!==null&&a!==null){var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}u!==0&&Oo(l,a,u)}}function ei(e,t,l,n){_t[Wn++]=e,_t[Wn++]=t,_t[Wn++]=l,_t[Wn++]=n,Kc|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Jc(e,t,l,n){return ei(e,t,l,n),ti(e)}function hn(e,t){return ei(e,null,null,t),ti(e)}function Oo(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=e.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(a=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,a&&t!==null&&(a=31-Mt(l),e=u.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),u):null}function ti(e){if(50<bu)throw bu=0,Xi=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var In={};function Zm(e,t,l,n){this.tag=e,this.key=l,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,n){return new Zm(e,t,l,n)}function Wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pl(e,t){var l=e.alternate;return l===null?(l=bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&1206910976,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function jo(e,t){e.flags&=1206910978;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,l,n,a,u){var s=0;if(n=e,typeof n=="function")Wc(n)&&(s=1);else if(typeof n=="string")s=N2(e,l,gt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(n){case ae:return e=bt(31,l,t,a),e.elementType=ae,e.lanes=u,e;case B:return mn(l.children,a,u,t);case te:s=8,a|=24;break;case V:return e=bt(12,l,t,a|2),e.elementType=V,e.lanes=u,e;case U:return e=bt(13,l,t,a),e.elementType=U,e.lanes=u,e;case H:return e=bt(19,l,t,a),e.elementType=H,e.lanes=u,e;case he:case A:return e=a|32,e=bt(30,l,t,e),e.elementType=A,e.lanes=u,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case j:s=10;break e;case $:s=9;break e;case D:s=11;break e;case le:s=14;break e;case K:s=16,n=null;break e}s=29,l=Error(f(130,e===null?"null":typeof e,"")),n=null}return t=bt(s,l,t,a),t.elementType=e,t.type=n,t.lanes=u,t}function mn(e,t,l,n){return e=bt(7,e,n,t),e.lanes=l,e}function Ic(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function wo(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function $c(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zo=new WeakMap;function Rt(e,t){if(typeof e=="object"&&e!==null){var l=zo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Tf(t)},zo.set(e,t),t)}return{value:e,source:t,stack:Tf(t)}}var $n=[],Pn=0,ni=null,Ia=0,Lt=[],Ht=0,jl=null,tl=1,ll="";function yl(e,t){$n[Pn++]=Ia,$n[Pn++]=ni,ni=e,Ia=t}function _o(e,t,l){Lt[Ht++]=tl,Lt[Ht++]=ll,Lt[Ht++]=jl,jl=e;var n=tl;e=ll;var a=32-Mt(n)-1;n&=~(1<<a),l+=1;var u=32-Mt(t)+a;if(30<u){var s=a-a%5;u=(n&(1<<s)-1).toString(32),n>>=s,a-=s,tl=1<<32-Mt(t)+a|l<<a|n,ll=u+e}else tl=1<<u|l<<a|n,ll=e}function ai(e){e.return!==null&&(yl(e,1),_o(e,1,0))}function Pc(e){for(;e===ni;)ni=$n[--Pn],$n[Pn]=null,Ia=$n[--Pn],$n[Pn]=null;for(;e===jl;)jl=Lt[--Ht],Lt[Ht]=null,ll=Lt[--Ht],Lt[Ht]=null,tl=Lt[--Ht],Lt[Ht]=null}function Ro(e,t){Lt[Ht++]=tl,Lt[Ht++]=ll,Lt[Ht++]=jl,tl=t.id,ll=t.overflow,jl=e}var et=null,He=null,Se=!1,wl=null,Ut=!1,es=Error(f(519));function zl(e){var t=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $a(Rt(t,e)),es}function Lo(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[nt]=e,t[vt]=n,l){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(l=0;l<yu.length;l++)Ce(yu[l],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),Jf(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),If(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||u1(t.textContent,l)?(n.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),n.onScroll!=null&&Ce("scroll",t),n.onScrollEnd!=null&&Ce("scrollend",t),n.onClick!=null&&(t.onclick=el),t=!0):t=!1,t||zl(e,!0)}function ui(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:et=et.return}}function ea(e){if(e!==et)return!1;if(!Se)return ui(e),Se=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Dr(e.type,e.memoizedProps)),l=!l),l&&He&&zl(e),ui(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));He=A1(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));He=A1(e)}else t===27?(t=He,Il(e.type)?(e=Hr,Hr=null,He=e):He=t):He=et?Gt(e.stateNode.nextSibling):null;return!0}function gn(){He=et=null,Se=!1}function ts(){var e=wl;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),wl=null),e}function $a(e){wl===null?wl=[e]:wl.push(e)}var ls=ft(null),vn=null,Nl=null;function _l(e,t,l){_e(ls,t._currentValue),t._currentValue=l}function Sl(e){e._currentValue=ls.current,Ie(ls)}function ii(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function ns(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var u=a.dependencies;if(u!==null){var s=a.child;u=u.firstContext;e:for(;u!==null;){var x=u;u=a;for(var y=0;y<t.length;y++)if(x.context===t[y]){u.lanes|=l,x=u.alternate,x!==null&&(x.lanes|=l),ii(u.return,l,e),n||(s=null);break e}u=x.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(f(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),ii(s,l,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=l,s=a.alternate,s!==null&&(s.lanes|=l),ii(a.return,l,e),s=a.child,s=s!==null?s.sibling:null):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function bn(e,t,l,n){e=null;for(var a=t,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(f(387));if(s=s.memoizedProps,s!==null){var x=a.type;Tt(a.pendingProps.value,s.value)||(e!==null?e.push(x):e=[x])}}else if(a===Xt.current){if(s=a.alternate,s===null)throw Error(f(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ca):e=[Ca])}a=a.return}return e!==null&&ns(t,e,l,n),t.flags|=262144,e!==null}function ci(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pn(e){vn=e,Nl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return Ho(vn,e)}function si(e,t){return vn===null&&pn(e),Ho(e,t)}function Ho(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Nl===null){if(e===null)throw Error(f(308));Nl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nl=Nl.next=t;return l}var Km=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Jm=i.unstable_scheduleCallback,Wm=i.unstable_NormalPriority,Ze={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function as(){return{controller:new Km,data:new Map,refCount:0}}function Pa(e){e.refCount--,e.refCount===0&&Jm(Wm,function(){e.controller.abort()})}function Uo(e,t){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<t.length;e++){var n=t[e];l.indexOf(n)===-1&&l.push(n)}}}var eu=null;function Im(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var tu=null,us=0,yn=0,ta=null;function $m(e,t){if(tu===null){var l=tu=[];us=0,yn=Nr(),ta={status:"pending",value:void 0,then:function(n){l.push(n)}}}return us++,t.then(qo,qo),t}function qo(){if(--us===0&&(eu=null,tu!==null)){ta!==null&&(ta.status="fulfilled");var e=tu;tu=null,yn=0,ta=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Pm(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Go=ie.S;ie.S=function(e,t){if(wd=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$m(e,t),eu!==null)for(var l=pa;l!==null;)Uo(l,eu),l=l.next;if(l=e.types,l!==null){for(var n=pa;n!==null;)Uo(n,l),n=n.next;if(yn!==0){n=eu,n===null&&(n=eu=[]);for(var a=0;a<l.length;a++){var u=l[a];n.indexOf(u)===-1&&n.push(u)}}}Go!==null&&Go(e,t)};var Nn=ft(null);function is(){var e=Nn.current;return e!==null?e:Le.pooledCache}function ri(e,t){t===null?_e(Nn,Nn.current):_e(Nn,t.pool)}function Yo(){var e=is();return e===null?null:{parent:Ze._currentValue,pool:e}}var la=Error(f(460)),cs=Error(f(474)),fi=Error(f(542)),oi={then:function(){}};function Xo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Qo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(el,el),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zo(e),e===void 0&&!("reason"in t)?Error(f(600)):e;default:if(typeof t.status=="string")t.then(el,el);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zo(e),e}throw En=t,la}}function Sn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(En=l,la):l}}var En=null;function Vo(){if(En===null)throw Error(f(459));var e=En;return En=null,e}function Zo(e){if(e===la||e===fi)throw Error(f(483))}var na=null,lu=0;function di(e){var t=lu;return lu+=1,na===null&&(na=[]),Qo(na,e,t)}function Rl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xi(e,t){throw t.$$typeof===_?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ko(e){function t(T,C){if(e){var O=T.deletions;O===null?(T.deletions=[C],T.flags|=16):O.push(C)}}function l(T,C){if(!e)return null;for(;C!==null;)t(T,C),C=C.sibling;return null}function n(T){for(var C=new Map;T!==null;)T.key===null?C.set(T.index,T):C.set(T.key,T),T=T.sibling;return C}function a(T,C){return T=pl(T,C),T.index=0,T.sibling=null,T}function u(T,C,O){return T.index=O,e?(O=T.alternate,O!==null?(O=O.index,O<C?(T.flags|=2,C):O):(T.flags|=134217730,C)):(T.flags|=1048576,C)}function s(T){return e&&T.alternate===null&&(T.flags|=134217730),T}function x(T,C,O,G){return C===null||C.tag!==6?(C=Ic(O,T.mode,G),C.return=T,C):(C=a(C,O),C.return=T,C)}function y(T,C,O,G){var ce=O.type;return ce===B?(T=R(T,C,O.props.children,G,O.key),Rl(T,O),T):C!==null&&(C.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===K&&Sn(ce)===C.type)?(C=a(C,O.props),Rl(C,O),C.return=T,C):(C=li(O.type,O.key,O.props,null,T.mode,G),Rl(C,O),C.return=T,C)}function F(T,C,O,G){return C===null||C.tag!==4||C.stateNode.containerInfo!==O.containerInfo||C.stateNode.implementation!==O.implementation?(C=$c(O,T.mode,G),C.return=T,C):(C=a(C,O.children||[]),C.return=T,C)}function R(T,C,O,G,ce){return C===null||C.tag!==7?(C=mn(O,T.mode,G,ce),C.return=T,C):(C=a(C,O),C.return=T,C)}function X(T,C,O){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Ic(""+C,T.mode,O),C.return=T,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case z:return O=li(C.type,C.key,C.props,null,T.mode,O),Rl(O,C),O.return=T,O;case I:return C=$c(C,T.mode,O),C.return=T,C;case K:return C=Sn(C),X(T,C,O)}if(pe(C)||re(C))return C=mn(C,T.mode,O,null),C.return=T,C;if(typeof C.then=="function")return X(T,di(C),O);if(C.$$typeof===j)return X(T,si(T,C),O);xi(T,C)}return null}function M(T,C,O,G){var ce=C!==null?C.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ce!==null?null:x(T,C,""+O,G);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case z:return O.key===ce?y(T,C,O,G):null;case I:return O.key===ce?F(T,C,O,G):null;case K:return O=Sn(O),M(T,C,O,G)}if(pe(O)||re(O))return ce!==null?null:R(T,C,O,G,null);if(typeof O.then=="function")return M(T,C,di(O),G);if(O.$$typeof===j)return M(T,C,si(T,O),G);xi(T,O)}return null}function w(T,C,O,G,ce){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return T=T.get(O)||null,x(C,T,""+G,ce);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case z:return T=T.get(G.key===null?O:G.key)||null,y(C,T,G,ce);case I:return T=T.get(G.key===null?O:G.key)||null,F(C,T,G,ce);case K:return G=Sn(G),w(T,C,O,G,ce)}if(pe(G)||re(G))return T=T.get(O)||null,R(C,T,G,ce,null);if(typeof G.then=="function")return w(T,C,O,di(G),ce);if(G.$$typeof===j)return w(T,C,O,si(C,G),ce);xi(C,G)}return null}function ue(T,C,O,G){for(var ce=null,ke=null,xe=C,ve=C=0,We=null;xe!==null&&ve<O.length;ve++){xe.index>ve?(We=xe,xe=null):We=xe.sibling;var Fe=M(T,xe,O[ve],G);if(Fe===null){xe===null&&(xe=We);break}e&&xe&&Fe.alternate===null&&t(T,xe),C=u(Fe,C,ve),ke===null?ce=Fe:ke.sibling=Fe,ke=Fe,xe=We}if(ve===O.length)return l(T,xe),Se&&yl(T,ve),ce;if(xe===null){for(;ve<O.length;ve++)xe=X(T,O[ve],G),xe!==null&&(C=u(xe,C,ve),ke===null?ce=xe:ke.sibling=xe,ke=xe);return Se&&yl(T,ve),ce}for(xe=n(xe);ve<O.length;ve++)We=w(xe,T,ve,O[ve],G),We!==null&&(e&&(Fe=We.alternate,Fe!==null&&xe.delete(Fe.key===null?ve:Fe.key)),C=u(We,C,ve),ke===null?ce=We:ke.sibling=We,ke=We);return e&&xe.forEach(function(ln){return t(T,ln)}),Se&&yl(T,ve),ce}function oe(T,C,O,G){if(O==null)throw Error(f(151));for(var ce=null,ke=null,xe=C,ve=C=0,We=null,Fe=O.next();xe!==null&&!Fe.done;ve++,Fe=O.next()){xe.index>ve?(We=xe,xe=null):We=xe.sibling;var ln=M(T,xe,Fe.value,G);if(ln===null){xe===null&&(xe=We);break}e&&xe&&ln.alternate===null&&t(T,xe),C=u(ln,C,ve),ke===null?ce=ln:ke.sibling=ln,ke=ln,xe=We}if(Fe.done)return l(T,xe),Se&&yl(T,ve),ce;if(xe===null){for(;!Fe.done;ve++,Fe=O.next())Fe=X(T,Fe.value,G),Fe!==null&&(C=u(Fe,C,ve),ke===null?ce=Fe:ke.sibling=Fe,ke=Fe);return Se&&yl(T,ve),ce}for(xe=n(xe);!Fe.done;ve++,Fe=O.next())Fe=w(xe,T,ve,Fe.value,G),Fe!==null&&(e&&(We=Fe.alternate,We!==null&&xe.delete(We.key===null?ve:We.key)),C=u(Fe,C,ve),ke===null?ce=Fe:ke.sibling=Fe,ke=Fe);return e&&xe.forEach(function(j2){return t(T,j2)}),Se&&yl(T,ve),ce}function Ne(T,C,O,G){if(typeof O=="object"&&O!==null&&O.type===B&&O.key===null&&O.props.ref===void 0&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case z:e:{for(var ce=O.key;C!==null;){if(C.key===ce){if(ce=O.type,ce===B){if(C.tag===7){l(T,C.sibling),G=a(C,O.props.children),Rl(G,O),G.return=T,T=G;break e}}else if(C.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===K&&Sn(ce)===C.type){l(T,C.sibling),G=a(C,O.props),Rl(G,O),G.return=T,T=G;break e}l(T,C);break}else t(T,C);C=C.sibling}O.type===B?(G=mn(O.props.children,T.mode,G,O.key),Rl(G,O),G.return=T,T=G):(G=li(O.type,O.key,O.props,null,T.mode,G),Rl(G,O),G.return=T,T=G)}return s(T);case I:e:{for(ce=O.key;C!==null;){if(C.key===ce)if(C.tag===4&&C.stateNode.containerInfo===O.containerInfo&&C.stateNode.implementation===O.implementation){l(T,C.sibling),G=a(C,O.children||[]),G.return=T,T=G;break e}else{l(T,C);break}else t(T,C);C=C.sibling}G=$c(O,T.mode,G),G.return=T,T=G}return s(T);case K:return O=Sn(O),Ne(T,C,O,G)}if(pe(O))return ue(T,C,O,G);if(re(O)){if(ce=re(O),typeof ce!="function")throw Error(f(150));return O=ce.call(O),oe(T,C,O,G)}if(typeof O.then=="function")return Ne(T,C,di(O),G);if(O.$$typeof===j)return Ne(T,C,si(T,O),G);xi(T,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,C!==null&&C.tag===6?(l(T,C.sibling),G=a(C,O),G.return=T,T=G):(l(T,C),G=Ic(O,T.mode,G),G.return=T,T=G),s(T)):l(T,C)}return function(T,C,O,G){try{lu=0;var ce=Ne(T,C,O,G);return na=null,ce}catch(xe){if(xe===la||xe===fi)throw xe;var ke=bt(29,xe,null,T.mode);return ke.lanes=G,ke.return=T,ke}finally{}}}var An=Ko(!0),Jo=Ko(!1),Ll=!1;function ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rs(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 Hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ul(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Be&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=ti(e),Oo(e,null,l),t}return ei(e,n,t,l),ti(e)}function nu(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,zf(e,l)}}function fs(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=s:u=u.next=s,l=l.next}while(l!==null);u===null?a=u=t:u=u.next=t}else a=u=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var os=!1;function au(){if(os){var e=ta;if(e!==null)throw e}}function uu(e,t,l,n){os=!1;var a=e.updateQueue;Ll=!1;var u=a.firstBaseUpdate,s=a.lastBaseUpdate,x=a.shared.pending;if(x!==null){a.shared.pending=null;var y=x,F=y.next;y.next=null,s===null?u=F:s.next=F,s=y;var R=e.alternate;R!==null&&(R=R.updateQueue,x=R.lastBaseUpdate,x!==s&&(x===null?R.firstBaseUpdate=F:x.next=F,R.lastBaseUpdate=y))}if(u!==null){var X=a.baseState;s=0,R=F=y=null,x=u;do{var M=x.lane&-536870913,w=M!==x.lane;if(w?(Me&M)===M:(n&M)===M){M!==0&&M===yn&&(os=!0),R!==null&&(R=R.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ue=e,oe=x;M=t;var Ne=l;switch(oe.tag){case 1:if(ue=oe.payload,typeof ue=="function"){X=ue.call(Ne,X,M);break e}X=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=oe.payload,M=typeof ue=="function"?ue.call(Ne,X,M):ue,M==null)break e;X=L({},X,M);break e;case 2:Ll=!0}}M=x.callback,M!==null&&(e.flags|=64,w&&(e.flags|=8192),w=a.callbacks,w===null?a.callbacks=[M]:w.push(M))}else w={lane:M,tag:x.tag,payload:x.payload,callback:x.callback,next:null},R===null?(F=R=w,y=X):R=R.next=w,s|=M;if(x=x.next,x===null){if(x=a.shared.pending,x===null)break;w=x,x=w.next,w.next=null,a.lastBaseUpdate=w,a.shared.pending=null}}while(!0);R===null&&(y=X),a.baseState=y,a.firstBaseUpdate=F,a.lastBaseUpdate=R,u===null&&(a.shared.lanes=0),Zl|=s,e.lanes=s,e.memoizedState=X}}function Wo(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function Io(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Wo(l[e],t)}var ql=ft(null),hi=ft(0);function $o(e,t){e=kl,_e(hi,e),_e(ql,t),kl=e|t.baseLanes}function ds(){_e(hi,kl),_e(ql,ql.current)}function xs(){kl=hi.current,Ie(ql),Ie(hi)}var ut=ft(null),ot=null;function Gl(e){var t=e.alternate;_e(it,it.current&1),_e(ut,e),ot===null&&(t===null||ql.current!==null||t.memoizedState!==null)&&(ot=e)}function hs(e){_e(it,it.current),_e(ut,e),ot===null&&(ot=e)}function Po(e){e.tag===22?(_e(it,it.current),_e(ut,e),ot===null&&(ot=e)):Yl()}function Yl(){_e(it,it.current),_e(ut,ut.current)}function Ft(e){Ie(ut),ot===e&&(ot=null),Ie(it)}var it=ft(0);function iu(e,t){_e(ut,ut.current),_e(it,t)}function ms(e){Ie(it),Ie(ut),ot===e&&(ot=null)}function mi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Rr(l)||Lr(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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 El=0,ye=null,Re=null,Ke=null,gi=!1,aa=!1,Cn=!1,vi=0,cu=0,ua=null,eg=0;function Xe(){throw Error(f(321))}function gs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Tt(e[l],t[l]))return!1;return!0}function vs(e,t,l,n,a,u){return El=u,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ie.H=e===null||e.memoizedState===null?_0:R0,Cn=!1,u=l(n,a),Cn=!1,aa&&(u=t0(t,l,n,a)),e0(e),u}function e0(e){ie.H=Ai;var t=Re!==null&&Re.next!==null;if(El=0,Ke=Re=ye=null,gi=!1,cu=0,ua=null,t)throw Error(f(300));e===null||Je||(e=e.dependencies,e!==null&&ci(e)&&(Je=!0))}function t0(e,t,l,n){ye=e;var a=0;do{if(aa&&(ua=null),cu=0,aa=!1,25<=a)throw Error(f(301));if(a+=1,Ke=Re=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}ie.H=sg,u=t(l,n)}while(aa);return u}function tg(){var e=ie.H,t=e.useState()[0];return t=typeof t.then=="function"?su(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(ye.flags|=1024),t}function bs(){var e=vi!==0;return vi=0,e}function ps(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ys(e){if(gi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gi=!1}El=0,Ke=Re=ye=null,aa=!1,cu=vi=0,ua=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ye.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ve(){if(Re===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ke===null?ye.memoizedState:Ke.next;if(t!==null)Ke=t,Re=e;else{if(e===null)throw ye.alternate===null?Error(f(467)):Error(f(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ke===null?ye.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function bi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function su(e){var t=cu;return cu+=1,ua===null&&(ua=[]),e=Qo(ua,e,t),t=ye,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,ie.H=t===null||t.memoizedState===null?_0:R0),e}function pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return su(e);if(e.$$typeof===P)return;if(e.$$typeof===j)return at(e)}throw Error(f(438,String(e)))}function Ns(e){var t=null,l=ye.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=ye.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=bi(),ye.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=Te;return t.index++,l}function Al(e,t){return typeof t=="function"?t(e):t}function yi(e){var t=Ve();return Ss(t,Re,e)}function Ss(e,t,l){var n=e.queue;if(n===null)throw Error(f(311));n.lastRenderedReducer=l;var a=e.baseQueue,u=n.pending;if(u!==null){if(a!==null){var s=a.next;a.next=u.next,u.next=s}t.baseQueue=a=u,n.pending=null}if(u=e.baseState,a===null)e.memoizedState=u;else{t=a.next;var x=s=null,y=null,F=t,R=!1;do{var X=F.lane&-536870913;if(X!==F.lane?(Me&X)===X:(El&X)===X){var M=F.revertLane;if(M===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),X===yn&&(R=!0);else if((El&M)===M){F=F.next,M===yn&&(R=!0);continue}else X={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},y===null?(x=y=X,s=u):y=y.next=X,ye.lanes|=M,Zl|=M;X=F.action,Cn&&l(u,X),u=F.hasEagerState?F.eagerState:l(u,X)}else M={lane:X,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},y===null?(x=y=M,s=u):y=y.next=M,ye.lanes|=X,Zl|=X;F=F.next}while(F!==null&&F!==t);if(y===null?s=u:y.next=x,!Tt(u,e.memoizedState)&&(Je=!0,R&&(l=ta,l!==null)))throw l;e.memoizedState=u,e.baseState=s,e.baseQueue=y,n.lastRenderedState=u}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Es(e){var t=Ve(),l=t.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,u=t.memoizedState;if(a!==null){l.pending=null;var s=a=a.next;do u=e(u,s.action),s=s.next;while(s!==a);Tt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,n]}function l0(e,t,l){var n=ye,a=Ve(),u=Se;if(u){if(l===void 0)throw Error(f(407));l=l()}else l=t();var s=!Tt((Re||a).memoizedState,l);if(s&&(a.memoizedState=l,Je=!0),a=a.queue,Ms(u0.bind(null,n,a,e),[e]),e=a.getSnapshot!==t||s||Ke!==null&&(Ke.memoizedState.tag&1)!==0,ia(e?9:8,{destroy:void 0},a0.bind(null,n,a,l,t),null),e){if(n.flags|=2048,Le===null)throw Error(f(349));u||(El&127)!==0||n0(n,t,l)}return l}function n0(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ye.updateQueue,t===null?(t=bi(),ye.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function a0(e,t,l,n){t.value=l,t.getSnapshot=n,i0(t)&&c0(e)}function u0(e,t,l){return l(function(){i0(t)&&c0(e)})}function i0(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Tt(e,l)}catch{return!0}}function c0(e){var t=hn(e,2);t!==null&&St(t,e,2)}function As(e){var t=xt();if(typeof e=="function"){var l=e;if(e=l(),Cn){Dl(!0);try{l()}finally{Dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Al,lastRenderedState:e},t}function s0(e,t,l,n){return e.baseState=l,Ss(e,Re,typeof n=="function"?n:Al)}function lg(e,t,l,n,a){if(Ei(e))throw Error(f(485));if(e=t.action,e!==null){var u={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};ie.T!==null?l(!0):u.isTransition=!1,n(u),l=t.pending,l===null?(u.next=t.pending=u,r0(t,u)):(u.next=l.next,t.pending=l.next=u)}}function r0(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var u=ie.T,s={};s.types=u!==null?u.types:null,ie.T=s;try{var x=l(a,n),y=ie.S;y!==null&&y(s,x),f0(e,t,x)}catch(F){Cs(e,t,F)}finally{u!==null&&s.types!==null&&(u.types=s.types),ie.T=u}}else try{u=l(a,n),f0(e,t,u)}catch(F){Cs(e,t,F)}}function f0(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){o0(e,t,n)},function(n){return Cs(e,t,n)}):o0(e,t,l)}function o0(e,t,l){t.status="fulfilled",t.value=l,d0(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,r0(e,l)))}function Cs(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,d0(t),t=t.next;while(t!==n)}e.action=null}function d0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function x0(e,t){return t}function h0(e,t){if(Se){var l=Le.formState;if(l!==null){e:{var n=ye;if(Se){if(He){t:{for(var a=He,u=Ut;a.nodeType!==8;){if(!u){a=null;break t}if(a=Gt(a.nextSibling),a===null){a=null;break t}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){He=Gt(a.nextSibling),n=a.data==="F!";break e}}zl(n)}n=!1}n&&(t=l[0])}}return l=xt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:x0,lastRenderedState:t},l.queue=n,l=j0.bind(null,ye,n),n.dispatch=l,n=As(!1),u=Bs.bind(null,ye,!1,n.queue),n=xt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=lg.bind(null,ye,a,u,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function m0(e){var t=Ve();return g0(t,Re,e)}function g0(e,t,l){if(t=Ss(e,t,x0)[0],e=yi(Al)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=su(t)}catch(s){throw s===la?fi:s}else n=t;t=Ve();var a=t.queue,u=a.dispatch;return l!==t.memoizedState&&(ye.flags|=2048,ia(9,{destroy:void 0},ng.bind(null,a,l),null)),[n,u,e]}function ng(e,t){e.action=t}function v0(e){var t=Ve(),l=Re;if(l!==null)return g0(t,l,e);Ve(),t=t.memoizedState,l=Ve();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function ia(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=ye.updateQueue,t===null&&(t=bi(),ye.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function b0(){return Ve().memoizedState}function Ni(e,t,l,n){var a=xt();ye.flags|=e,a.memoizedState=ia(1|t,{destroy:void 0},l,n===void 0?null:n)}function Si(e,t,l,n){var a=Ve();n=n===void 0?null:n;var u=a.memoizedState.inst;Re!==null&&n!==null&&gs(n,Re.memoizedState.deps)?a.memoizedState=ia(t,u,l,n):(ye.flags|=e,a.memoizedState=ia(1|t,u,l,n))}function p0(e,t){Ni(8390656,8,e,t)}function Ms(e,t){Si(2048,8,e,t)}function ag(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=bi(),ye.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function y0(e){var t=Ve().memoizedState;return ag({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(f(440));return t.impl.apply(void 0,arguments)}}function N0(e,t){return Si(4,2,e,t)}function S0(e,t){return Si(4,4,e,t)}function E0(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function A0(e,t,l){l=l!=null?l.concat([e]):null,Si(4,4,E0.bind(null,t,e),l)}function ks(){}function C0(e,t){var l=Ve();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&gs(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function M0(e,t){var l=Ve();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&gs(t,n[1]))return n[0];if(n=e(),Cn){Dl(!0);try{e()}finally{Dl(!1)}}return l.memoizedState=[n,t],n}function Ts(e,t,l){return l===void 0||(El&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=_d(),ye.lanes|=e,Zl|=e,l)}function k0(e,t,l,n){return Tt(l,t)?l:ql.current!==null?(e=Ts(e,l,n),Tt(e,t)||(Je=!0),e):(El&106)===0||(El&1073741824)!==0&&(Me&261930)===0?(Je=!0,e.memoizedState=l):(e=_d(),ye.lanes|=e,Zl|=e,t)}function T0(e,t,l,n,a){var u=de.p;de.p=u!==0&&8>u?u:8;var s=ie.T,x={};x.types=s!==null?s.types:null,ie.T=x,Bs(e,!1,t,l);try{var y=a(),F=ie.S;if(F!==null&&F(x,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var R=Pm(y,n);ru(e,t,R,jt(e))}else ru(e,t,n,jt(e))}catch(X){ru(e,t,{then:function(){},status:"rejected",reason:X},jt())}finally{de.p=u,s!==null&&x.types!==null&&(s.types=x.types),ie.T=s}}function ug(){}function Fs(e,t,l,n){if(e.tag!==5)throw Error(f(476));var a=F0(e).queue;T0(e,a,t,qe,l===null?ug:function(){return D0(e),l(n)})}function F0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:qe,baseState:qe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Al,lastRenderedState:qe},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Al,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function D0(e){var t=F0(e);t.next===null&&(t=e.alternate.memoizedState),ru(e,t.next.queue,{},jt())}function Ds(){return at(Ca)}function B0(){return Ve().memoizedState}function O0(){return Ve().memoizedState}function ig(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=jt();e=Hl(l);var n=Ul(t,e,l);n!==null&&(St(n,t,l),nu(n,t,l)),t={cache:as()},e.payload=t;return}t=t.return}}function cg(e,t,l){var n=jt();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ei(e)?w0(t,l):(l=Jc(e,t,l,n),l!==null&&(St(l,e,n),z0(l,t,n)))}function j0(e,t,l){var n=jt();ru(e,t,l,n)}function ru(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ei(e))w0(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,x=u(s,l);if(a.hasEagerState=!0,a.eagerState=x,Tt(x,s))return ei(e,t,a,0),Le===null&&Pu(),!1}catch{}finally{}if(l=Jc(e,t,a,n),l!==null)return St(l,e,n),z0(l,t,n),!0}return!1}function Bs(e,t,l,n){if(n={lane:2,revertLane:Nr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ei(e)){if(t)throw Error(f(479))}else t=Jc(e,l,n,2),t!==null&&St(t,e,2)}function Ei(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function w0(e,t){aa=gi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function z0(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,zf(e,l)}}var Ai={readContext:at,use:pi,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe,useEffectEvent:Xe},_0={readContext:at,use:pi,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:p0,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ni(4194308,4,E0.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var l=xt();t=t===void 0?null:t;var n=e();if(Cn){Dl(!0);try{e()}finally{Dl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=xt();if(l!==void 0){var a=l(t);if(Cn){Dl(!0);try{l(t)}finally{Dl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=cg.bind(null,ye,e),[n.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=As(e);var t=e.queue,l=j0.bind(null,ye,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ks,useDeferredValue:function(e,t){var l=xt();return Ts(l,e,t)},useTransition:function(){var e=As(!1);return e=T0.bind(null,ye,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=ye,a=xt();if(Se){if(l===void 0)throw Error(f(407));l=l()}else{if(l=t(),Le===null)throw Error(f(349));(Me&127)!==0||n0(n,t,l)}a.memoizedState=l;var u={value:l,getSnapshot:t};return a.queue=u,p0(u0.bind(null,n,u,e),[e]),n.flags|=2048,ia(9,{destroy:void 0},a0.bind(null,n,u,l,t),null),l},useId:function(){var e=xt(),t=Le.identifierPrefix;if(Se){var l=ll,n=tl;l=(n&~(1<<32-Mt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=vi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=eg++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ds,useFormState:h0,useActionState:h0,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Bs.bind(null,ye,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ns,useCacheRefresh:function(){return xt().memoizedState=ig.bind(null,ye)},useEffectEvent:function(e){var t=xt(),l={impl:e};return t.memoizedState=l,function(){if((Be&2)!==0)throw Error(f(440));return l.impl.apply(void 0,arguments)}}},R0={readContext:at,use:pi,useCallback:C0,useContext:at,useEffect:Ms,useImperativeHandle:A0,useInsertionEffect:N0,useLayoutEffect:S0,useMemo:M0,useReducer:yi,useRef:b0,useState:function(){return yi(Al)},useDebugValue:ks,useDeferredValue:function(e,t){var l=Ve();return k0(l,Re.memoizedState,e,t)},useTransition:function(){var e=yi(Al)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:su(e),t]},useSyncExternalStore:l0,useId:B0,useHostTransitionStatus:Ds,useFormState:m0,useActionState:m0,useOptimistic:function(e,t){var l=Ve();return s0(l,Re,e,t)},useMemoCache:Ns,useCacheRefresh:O0,useEffectEvent:y0},sg={readContext:at,use:pi,useCallback:C0,useContext:at,useEffect:Ms,useImperativeHandle:A0,useInsertionEffect:N0,useLayoutEffect:S0,useMemo:M0,useReducer:Es,useRef:b0,useState:function(){return Es(Al)},useDebugValue:ks,useDeferredValue:function(e,t){var l=Ve();return Re===null?Ts(l,e,t):k0(l,Re.memoizedState,e,t)},useTransition:function(){var e=Es(Al)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:su(e),t]},useSyncExternalStore:l0,useId:B0,useHostTransitionStatus:Ds,useFormState:v0,useActionState:v0,useOptimistic:function(e,t){var l=Ve();return Re!==null?s0(l,Re,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ns,useCacheRefresh:O0,useEffectEvent:y0};function Os(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:L({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var js={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=jt(),a=Hl(n);a.payload=t,l!=null&&(a.callback=l),t=Ul(e,a,n),t!==null&&(St(t,e,n),nu(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=jt(),a=Hl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=Ul(e,a,n),t!==null&&(St(t,e,n),nu(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=jt(),n=Hl(l);n.tag=2,t!=null&&(n.callback=t),t=Ul(e,n,l),t!==null&&(St(t,e,l),nu(t,e,l))}};function L0(e,t,l,n,a,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,u,s):t.prototype&&t.prototype.isPureReactComponent?!Ja(l,n)||!Ja(a,u):!0}function H0(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&js.enqueueReplaceState(t,t.state,null)}function Mn(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=L({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function U0(e){$u(e)}function q0(e){console.error(e)}function G0(e){$u(e)}function Ci(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Y0(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function ws(e,t,l){return l=Hl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ci(e,t)},l}function X0(e){return e=Hl(e),e.tag=3,e}function Q0(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;e.payload=function(){return a(u)},e.callback=function(){Y0(t,l,n)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){Y0(t,l,n),typeof a!="function"&&(Kl===null?Kl=new Set([this]):Kl.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})})}function rg(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&bn(t,l,a,!0),l=ut.current,l!==null){switch(l.tag){case 31:case 13:case 19:return ot===null?Vi():l.alternate===null&&Qe===0&&(Qe=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===oi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),br(e,n,a)),!1;case 22:return l.flags|=65536,n===oi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),br(e,n,a)),!1}throw Error(f(435,l.tag))}return br(e,n,a),Vi(),!1}if(Se)return t=ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==es&&(e=Error(f(422),{cause:n}),$a(Rt(e,l)))):(n!==es&&(t=Error(f(423),{cause:n}),$a(Rt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=Rt(n,l),a=ws(e.stateNode,n,a),fs(e,a),Qe!==4&&(Qe=2)),!1;var u=Error(f(520),{cause:n});if(u=Rt(u,l),vu===null?vu=[u]:vu.push(u),Qe!==4&&(Qe=2),t===null)return!0;n=Rt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=ws(l.stateNode,n,e),fs(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Kl===null||!Kl.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=X0(a),Q0(a,e,l,n),fs(l,a),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var zs=Error(f(461)),Je=!1;function $e(e,t,l,n){t.child=e===null?Jo(t,null,l,n):An(t,e.child,l,n)}function V0(e,t,l,n,a){l=l.render;var u=t.ref;if("ref"in n){var s={};for(var x in n)x!=="ref"&&(s[x]=n[x])}else s=n;return pn(t),n=vs(e,t,l,s,u,a),x=bs(),e!==null&&!Je?(ps(e,t,a),Cl(e,t,a)):(Se&&x&&ai(t),t.flags|=1,$e(e,t,n,a),t.child)}function Z0(e,t,l,n,a){if(e===null){var u=l.type;return typeof u=="function"&&!Wc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,K0(e,t,u,n,a)):(e=li(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Ys(e,a)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ja,l(s,n)&&e.ref===t.ref)return Cl(e,t,a)}return t.flags|=1,e=pl(u,n),e.ref=t.ref,e.return=t,t.child=e}function K0(e,t,l,n,a){if(e!==null){var u=e.memoizedProps;if(Ja(u,n)&&e.ref===t.ref)if(Je=!1,t.pendingProps=n=u,Ys(e,a))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,Cl(e,t,a)}return _s(e,t,l,n,a)}function J0(e,t,l,n){var a=n.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,t.child=null;return W0(e,t,u,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ri(t,u!==null?u.cachePool:null),u!==null?$o(t,u):ds(),Po(t);else return n=t.lanes=536870912,W0(e,t,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(ri(t,u.cachePool),$o(t,u),Yl(),t.memoizedState=null):(e!==null&&ri(t,null),ds(),Yl());return $e(e,t,a,l),t.child}function fu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function W0(e,t,l,n,a){var u=is();return u=u===null?null:{parent:Ze._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&ri(t,null),ds(),Po(t),e!==null&&bn(e,t,n,!0),t.childLanes=a,null}function Mi(e,t){return t=ki({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function I0(e,t,l){return An(t,e.child,null,l),e=Mi(t,t.pendingProps),e.flags|=2,Ft(t),t.memoizedState=null,e}function fg(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(n.mode==="hidden")return e=Mi(t,n),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},fu(null,e);if(hs(t),(e=He)?(e=E1(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:tl,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=wo(e),l.return=t,t.child=l,et=t,He=null)):e=null,e===null)throw zl(t);return t.lanes=536870912,null}return Mi(t,n)}var u=e.memoizedState;if(u!==null){var s=u.dehydrated;if(hs(t),a)if(t.flags&256)t.flags&=-257,t=I0(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(f(558));else if(Je||bn(e,t,l,!1),a=(l&e.childLanes)!==0,Je||a){if(ql.current===null){if(n=Le,n!==null&&(s=_f(n,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,hn(e,s),St(n,e,s),zs;Vi()}t=I0(e,t,l)}else e=u.treeContext,He=Gt(s.nextSibling),et=t,Se=!0,wl=null,Ut=!1,e!==null&&Ro(t,e),t=Mi(t,n),t.flags|=134221824;return t}return e=pl(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ca(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(f(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function _s(e,t,l,n,a){return pn(t),l=vs(e,t,l,n,void 0,a),n=bs(),e!==null&&!Je?(ps(e,t,a),Cl(e,t,a)):(Se&&n&&ai(t),t.flags|=1,$e(e,t,l,a),t.child)}function $0(e,t,l,n,a,u){return pn(t),t.updateQueue=null,l=t0(t,n,l,a),e0(e),n=bs(),e!==null&&!Je?(ps(e,t,u),Cl(e,t,u)):(Se&&n&&ai(t),t.flags|=1,$e(e,t,l,u),t.child)}function P0(e,t,l,n,a){if(pn(t),t.stateNode===null){var u=In,s=l.contextType;typeof s=="object"&&s!==null&&(u=at(s)),u=new l(n,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=js,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=n,u.state=t.memoizedState,u.refs={},ss(t),s=l.contextType,u.context=typeof s=="object"&&s!==null?at(s):In,u.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Os(t,l,s,n),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&js.enqueueReplaceState(u,u.state,null),uu(t,n,u,a),au(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){u=t.stateNode;var x=t.memoizedProps,y=Mn(l,x);u.props=y;var F=u.context,R=l.contextType;s=In,typeof R=="object"&&R!==null&&(s=at(R));var X=l.getDerivedStateFromProps;R=typeof X=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,R||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||F!==s)&&H0(t,u,n,s),Ll=!1;var M=t.memoizedState;u.state=M,uu(t,n,u,a),au(),F=t.memoizedState,x||M!==F||Ll?(typeof X=="function"&&(Os(t,l,X,n),F=t.memoizedState),(y=Ll||L0(t,l,y,n,M,F,s))?(R||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=F),u.props=n,u.state=F,u.context=s,n=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{u=t.stateNode,rs(e,t),s=t.memoizedProps,R=Mn(l,s),u.props=R,X=t.pendingProps,M=u.context,F=l.contextType,y=In,typeof F=="object"&&F!==null&&(y=at(F)),x=l.getDerivedStateFromProps,(F=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==X||M!==y)&&H0(t,u,n,y),Ll=!1,M=t.memoizedState,u.state=M,uu(t,n,u,a),au();var w=t.memoizedState;s!==X||M!==w||Ll||e!==null&&e.dependencies!==null&&ci(e.dependencies)?(typeof x=="function"&&(Os(t,l,x,n),w=t.memoizedState),(R=Ll||L0(t,l,R,n,M,w,y)||e!==null&&e.dependencies!==null&&ci(e.dependencies))?(F||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,w,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,w,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=w),u.props=n,u.state=w,u.context=y,n=R):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),n=!1)}return u=n,ca(e,t),n=(t.flags&128)!==0,u||n?(u=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&n?(t.child=An(t,e.child,null,a),t.child=An(t,null,l,a)):$e(e,t,l,a),t.memoizedState=u.state,e=t.child):e=Cl(e,t,a),e}function ed(e,t,l,n){return gn(),t.flags|=256,$e(e,t,l,n),t.child}var Rs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ls(e){return{baseLanes:e,cachePool:Yo()}}function Hs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ot),e}function td(e,t,l){var n=t.pendingProps,a=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(a?Gl(t):Yl(),(e=He)?(e=E1(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:tl,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=wo(e),l.return=t,t.child=l,et=t,He=null)):e=null,e===null)throw zl(t);return Lr(e)?t.lanes=32:t.lanes=536870912,null}return u=n.children,n=n.fallback,a?(Yl(),a=t.mode,u=ki({mode:"hidden",children:u},a),n=mn(n,a,l,null),u.return=t,n.return=t,u.sibling=n,t.child=u,n=t.child,n.memoizedState=Ls(l),n.childLanes=Hs(e,s,l),t.memoizedState=Rs,fu(null,n)):(Gl(t),Us(t,u))}var x=e.memoizedState;if(x!==null){var y=x.dehydrated;if(y!==null)return og(e,t,u,s,n,y,x,l)}return a?(Yl(),a=n.fallback,u=t.mode,x=e.child,y=x.sibling,n=pl(x,{mode:"hidden",children:n.children}),n.subtreeFlags=x.subtreeFlags&1206910976,y!==null?a=pl(y,a):(a=mn(a,u,l,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,fu(null,n),n=t.child,a=e.child.memoizedState,a===null?a=Ls(l):(u=a.cachePool,u!==null?(x=Ze._currentValue,u=u.parent!==x?{parent:x,pool:x}:u):u=Yo(),a={baseLanes:a.baseLanes|l,cachePool:u}),n.memoizedState=a,n.childLanes=Hs(e,s,l),t.memoizedState=Rs,fu(e.child,n)):(Gl(t),l=e.child,e=l.sibling,l=pl(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function Us(e,t){return t=ki({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ki(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Ti(e,t,l){return An(t,e.child,null,l),e=Us(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function og(e,t,l,n,a,u,s,x){if(l)return t.flags&256?(Gl(t),t.flags&=-257,Ti(e,t,x)):t.memoizedState!==null?(Yl(),t.child=e.child,t.flags|=128,null):(Yl(),u=a.fallback,s=t.mode,a=ki({mode:"visible",children:a.children},s),u=mn(u,s,x,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,An(t,e.child,null,x),a=t.child,a.memoizedState=Ls(x),a.childLanes=Hs(e,n,x),t.memoizedState=Rs,fu(null,a));if(Gl(t),Lr(u)){if(n=u.nextSibling&&u.nextSibling.dataset,n)var y=n.dgst;return n=y,n!==""&&(a=Error(f(419)),a.stack="",a.digest=n,$a({value:a,source:null,stack:null})),Ti(e,t,x)}if(Je||bn(e,t,x,!1),n=(x&e.childLanes)!==0,Je||n){if(ql.current!==null)return Ti(e,t,x);if(n=Le,n!==null&&(a=_f(n,x),a!==0&&a!==s.retryLane))throw s.retryLane=a,hn(e,a),St(n,e,a),zs;return Rr(u)||Vi(),Ti(e,t,x)}return Rr(u)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,He=Gt(u.nextSibling),et=t,Se=!0,wl=null,Ut=!1,e!==null&&Ro(t,e),t=Us(t,a.children),t.flags|=134221824,t)}function ld(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ii(e.return,t,l)}function nd(e){for(var t=null;e!==null;){var l=e.alternate;l!==null&&mi(l)===null&&(t=e),e=e.sibling}return t}function Fi(e,t,l,n,a,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=l,s.tailMode=a,s.treeForkCount=u)}function qs(e){var t=e.child;for(e.child=null;t!==null;){var l=t.sibling;t.sibling=e.child,e.child=t,t=l}}function Gs(e,t,l){var n=t.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var s=it.current;if(t.flags&128)return iu(t,s),null;var x=(s&2)!==0;if(x?(s=s&1|2,t.flags|=128):s&=1,iu(t,s),a==="backwards"&&e!==null?(qs(e),$e(e,t,n,l),qs(e)):$e(e,t,n,l),n=Se?Ia:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ld(e,l,t);else if(e.tag===19)ld(e,l,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(a){case"backwards":l=nd(t.child),l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null,qs(t)),Fi(t,!0,a,null,u,n);break;case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&mi(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Fi(t,!0,l,null,u,n);break;case"together":Fi(t,!1,null,null,void 0,n);break;case"independent":t.memoizedState=null;break;default:l=nd(t.child),l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Fi(t,!1,a,l,u,n)}return t.child}function ad(e,t,l){var n=t.pendingProps;return _l(t,t.type,n.value),$e(e,t,n.children,l),t.child}function Cl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Zl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(bn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,l=pl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=pl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ys(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ci(e)))}function dg(e,t,l){switch(t.tag){case 3:xl(t,t.stateNode.containerInfo),_l(t,Ze,e.memoizedState.cache),gn();break;case 27:case 5:sn(t);break;case 4:xl(t,t.stateNode.containerInfo);break;case 10:_l(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,hs(t),null;break;case 13:var n=t.memoizedState;if(n!==null){if(n.dehydrated!==null)return Gl(t),t.flags|=128,null;n=bn(e,t,l,!1);var a=t.child.childLanes;return n||(l&a)!==0?td(e,t,l):(Gl(t),e=Cl(e,t,l),e!==null?e.sibling:null)}Gl(t);break;case 19:if(t.flags&128)return Gs(e,t,l);if(a=(e.flags&128)!==0,n=(l&t.childLanes)!==0,n||(bn(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return Gs(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),iu(t,it.current),n)break;return null;case 22:return t.lanes=0,J0(e,t,l,t.pendingProps);case 24:_l(t,Ze,e.memoizedState.cache)}return Cl(e,t,l)}function ud(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Ys(e,l)&&(t.flags&128)===0)return Je=!1,dg(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,Se&&(t.flags&1048576)!==0&&_o(t,Ia,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Sn(t.elementType),t.type=e,typeof e=="function")Wc(e)?(n=Mn(e,n),t.tag=1,t=P0(null,t,e,n,l)):(t.tag=0,t=_s(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===D){t.tag=11,t=V0(null,t,e,n,l);break e}else if(a===le){t.tag=14,t=Z0(null,t,e,n,l);break e}else if(a===j){t.tag=10,t.type=e,t=ad(null,t,l);break e}}throw t=me(e)||e,Error(f(306,t,""))}}return t;case 0:return _s(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Mn(n,t.pendingProps),P0(e,t,n,a,l);case 3:e:{if(xl(t,t.stateNode.containerInfo),e===null)throw Error(f(387));n=t.pendingProps;var u=t.memoizedState;a=u.element,rs(e,t),uu(t,n,null,l);var s=t.memoizedState;if(n=s.cache,_l(t,Ze,n),n!==u.cache&&ns(t,[Ze],l,!0),au(),n=s.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=ed(e,t,n,l);break e}else if(n!==a){a=Rt(Error(f(424)),t),$a(a),t=ed(e,t,n,l);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(He=Gt(e.firstChild),et=t,Se=!0,wl=null,Ut=!0,l=Jo(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(gn(),n===a){t=Cl(e,t,l);break e}$e(e,t,n,l)}t=t.child}return t;case 26:return ca(e,t),e===null?(l=D1(t.type,null,t.pendingProps,null))?t.memoizedState=l:Se||(t.stateNode=r1(t.type,t.pendingProps,dl.current,t)):t.memoizedState=D1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return sn(t),e===null&&Se&&(n=t.stateNode=M1(t.type,t.pendingProps,dl.current),et=t,Ut=!0,a=He,Il(t.type)?(Hr=a,He=Gt(n.firstChild)):He=a),$e(e,t,t.pendingProps.children,l),ca(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((a=n=He)&&(n=i2(n,t.type,t.pendingProps,Ut),n!==null?(t.stateNode=n,et=t,He=Gt(n.firstChild),Ut=!1,a=!0):a=!1),a||zl(t)),sn(t),a=t.type,u=t.pendingProps,s=e!==null?e.memoizedProps:null,n=u.children,Dr(a,u)?n=null:s!==null&&Dr(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=vs(e,t,tg,null,null,l),Ca._currentValue=a),ca(e,t),$e(e,t,n,l),t.child;case 6:return e===null&&Se&&((e=l=He)&&(l=c2(l,t.pendingProps,Ut),l!==null?(t.stateNode=l,et=t,He=null,e=!0):e=!1),e||zl(t)),null;case 13:return td(e,t,l);case 4:return xl(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=An(t,null,n,l):$e(e,t,n,l),t.child;case 11:return V0(e,t,t.type,t.pendingProps,l);case 7:return n=t.pendingProps,ca(e,t),$e(e,t,n,l),t.child;case 8:return $e(e,t,t.pendingProps.children,l),t.child;case 12:return $e(e,t,t.pendingProps.children,l),t.child;case 10:return ad(e,t,l);case 9:return a=t.type._context,n=t.pendingProps.children,pn(t),a=at(a),n=n(a),t.flags|=1,$e(e,t,n,l),t.child;case 14:return Z0(e,t,t.type,t.pendingProps,l);case 15:return K0(e,t,t.type,t.pendingProps,l);case 19:return Gs(e,t,l);case 31:return fg(e,t,l);case 22:return J0(e,t,l,t.pendingProps);case 24:return pn(t),n=at(Ze),e===null?(a=is(),a===null&&(a=Le,u=as(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),t.memoizedState={parent:n,cache:a},ss(t),_l(t,Ze,a)):((e.lanes&l)!==0&&(rs(e,t),uu(t,null,null,l),au()),a=e.memoizedState,u=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),_l(t,Ze,n)):(n=u.cache,_l(t,Ze,n),n!==a.cache&&ns(t,[Ze],l,!0))),$e(e,t,t.pendingProps.children,l),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),n=t.pendingProps,n.name!=null&&n.name!=="auto"?t.flags|=e===null?18882560:18874368:Se&&ai(t),e!==null&&e.memoizedProps.name!==n.name?t.flags|=4194816:ca(e,t),$e(e,t,n.children,l),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function Ml(e){e.flags|=4}function Xs(e,t,l,n,a){var u;if((u=(e.mode&32)!==0)&&(u=l===null?w1(t,n):w1(t,n)&&(n.src!==l.src||n.srcSet!==l.srcSet)),u){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Ud())e.flags|=8192;else throw En=oi,cs}else e.flags&=-16777217}function id(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!z1(t))if(Ud())e.flags|=8192;else throw En=oi,cs}function Di(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jf():536870912,e.lanes|=t,da|=t)}function ou(e,t){if(!Se)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null;break;default:for(t=e.tail,l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&1206910976,n|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function xg(e,t,l){var n=t.pendingProps;switch(Pc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sl(Ze),$t(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ea(t)?Ml(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ts())),Ue(t),null;case 26:var a=t.type,u=t.memoizedState;return e===null?(Ml(t),u!==null?(Ue(t),id(t,u)):(Ue(t),Xs(t,a,null,n,l))):u?u!==e.memoizedState?(Ml(t),Ue(t),id(t,u)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Ml(t),Ue(t),Xs(t,a,e,n,l)),null;case 27:if(Fl(t),l=dl.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ml(t);else{if(!n){if(t.stateNode===null)throw Error(f(166));return Ue(t),t.subtreeFlags&=-33554433,null}e=gt.current,ea(t)?Lo(t):(e=M1(a,n,l),t.stateNode=e,Ml(t))}return Ue(t),t.subtreeFlags&=-33554433,null;case 5:if(Fl(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ml(t);else{if(!n){if(t.stateNode===null)throw Error(f(166));return Ue(t),t.subtreeFlags&=-33554433,null}if(u=gt.current,ea(t))Lo(t);else{var s=Su(dl.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?s.createElement("select",{is:n.is}):s.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?s.createElement(a,{is:n.is}):s.createElement(a)}}u[nt]=t,u[vt]=n;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=u;e:switch(st(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Ml(t)}}return Ue(t),t.subtreeFlags&=-33554433,Xs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Ml(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(f(166));if(e=dl.current,ea(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=et,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[nt]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||u1(e.nodeValue,l)),e||zl(t,!0)}else e=Su(e).createTextNode(n),e[nt]=t,t.stateNode=e}return Ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=ea(t),l!==null){if(e===null){if(!n)throw Error(f(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(557));e[nt]=t}else gn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else l=ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Ft(t),t):(Ft(t),null);if((t.flags&128)!==0)throw Error(f(558))}return Ue(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ea(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(f(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(f(317));a[nt]=t}else gn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),a=!1}else a=ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ft(t),t):(Ft(t),null)}return Ft(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Di(t,t.updateQueue),Ue(t),null);case 4:return $t(),e===null&&Cr(t.stateNode.containerInfo),t.flags|=67108864,Ue(t),null;case 10:return Sl(t.type),Ue(t),null;case 19:if(ms(t),n=t.memoizedState,n===null)return Ue(t),null;if(a=(t.flags&128)!==0,u=n.rendering,u===null)if(a)ou(n,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=mi(e),u!==null){for(t.flags|=128,ou(n,!1),e=u.updateQueue,t.updateQueue=e,Di(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)jo(l,e),l=l.sibling;return iu(t,it.current&1|2),Se&&yl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&At()>Gi&&(t.flags|=128,a=!0,ou(n,!1),t.lanes=4194304)}else{if(!a)if(e=mi(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Di(t,e),ou(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!u.alternate&&!Se)return Ue(t),null}else 2*At()-n.renderingStartTime>Gi&&l!==536870912&&(t.flags|=128,a=!0,ou(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}if(n.tail!==null){e=n.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return n.rendering=e,n.tail=e.sibling,n.renderingStartTime=At(),e.sibling=null,u=it.current,u=a?u&1|2:u&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!l||Se?iu(t,u):(l=u,_e(ut,t),_e(it,l),ot===null&&(ot=t)),Se&&yl(t,n.treeForkCount),e}return Ue(t),null;case 22:case 23:return Ft(t),xs(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&Di(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&Ie(Nn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Sl(Ze),Ue(t),null;case 25:return null;case 30:return t.flags|=33554432,Ue(t),null}throw Error(f(156,t.tag))}function hg(e,t){switch(Pc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sl(Ze),$t(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fl(t),null;case 31:if(t.memoizedState!==null){if(Ft(t),t.alternate===null)throw Error(f(340));gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ms(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return $t(),null;case 10:return Sl(t.type),null;case 22:case 23:return Ft(t),xs(),e!==null&&Ie(Nn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sl(Ze),null;case 25:return null;default:return null}}function cd(e,t){switch(Pc(t),t.tag){case 3:Sl(Ze),$t();break;case 26:case 27:case 5:Fl(t);break;case 4:$t();break;case 31:t.memoizedState!==null&&Ft(t);break;case 13:Ft(t);break;case 19:ms(t);break;case 10:Sl(t.type);break;case 22:case 23:Ft(t),xs(),e!==null&&Ie(Nn);break;case 24:Sl(Ze)}}function du(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var u=l.create,s=l.inst;n=u(),s.destroy=n}l=l.next}while(l!==a)}}catch(x){we(t,t.return,x)}}function Xl(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){var s=n.inst,x=s.destroy;if(x!==void 0){s.destroy=void 0,a=t;var y=l,F=x;try{F()}catch(R){we(a,y,R)}}}n=n.next}while(n!==u)}}catch(R){we(t,t.return,R)}}function sd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Io(t,l)}catch(n){we(e,e.return,n)}}}function rd(e,t,l){l.props=Mn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){we(e,t,n)}}function nl(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:var a=e.stateNode,u=vl(e.memoizedProps,a);(a.ref===null||a.ref.name!==u)&&(a.ref=g1(u)),n=a.ref;break;case 7:if(e.stateNode===null){var s=new wt(e);m(e.child,!1,a2,s,void 0,void 0),e.stateNode=s}n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(x){we(e,t,x)}}function ct(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){we(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){we(e,t,a)}else l.current=null}function Bi(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var l=0;l<t.length;l++)S1(e.stateNode,t[l])}function fd(e){for(var t=e.return;t!==null&&(Vs(t)&&S1(e.stateNode,t.stateNode),!Qs(t));)t=t.return}function xu(e){for(var t=e.return;t!==null&&(Vs(t)&&u2(e.stateNode,t.stateNode),!Qs(t));)t=t.return}function Qs(e){return e.tag===5||e.tag===3||e.tag===27}function Vs(e){return e&&e.tag===7&&e.stateNode!==null}function Zs(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){we(e,e.return,a)}}function Ks(e,t,l){try{var n=e.stateNode;Ug(n,e.type,l,t),n[vt]=t}catch(a){we(e,e.return,a)}}function od(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Il(e.type)||e.tag===4}function Js(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||od(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&&Il(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 Ws(e,t,l,n){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(a),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=el)),Bi(e,n),De=!0;else if(a!==4&&(a===27&&(Bi(e,n),n=null,Il(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Ws(e,t,l,n),e=e.sibling;e!==null;)Ws(e,t,l,n),e=e.sibling}function Oi(e,t,l,n){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?l.insertBefore(a,t):l.appendChild(a),Bi(e,n),De=!0;else if(a!==4&&(a===27&&(Bi(e,n),n=null,Il(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(Oi(e,t,l,n),e=e.sibling;e!==null;)Oi(e,t,l,n),e=e.sibling}function dd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);st(t,n,l),t[nt]=e,t[vt]=l}catch(u){we(e,e.return,u)}}var ji=!1,Dt=null;function xd(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(ji=!0)}var al=null;function hd(){var e=al;return al=null,e}var pt=0;function sa(e,t,l,n,a){return pt=0,md(e.child,t,l,n,a)}function md(e,t,l,n,a){for(var u=!1;e!==null;){if(e.tag===5){var s=e.stateNode;if(n!==null){var x=jr(s);n.push(x),x.view&&(u=!0)}else u||jr(s).view&&(u=!0);ji=!0,h1(s,pt===0?t:t+"_"+pt,l),pt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||md(e.child,t,l,n,a)&&(u=!0));e=e.sibling}return u}function ul(e,t){for(;e!==null;)e.tag===5?m1(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||ul(e.child,t)),e=e.sibling}function wi(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(wi(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(f(544));var l=t.name;t=bl(t.default,t.share),t!=="none"&&(sa(e,l,t,null,!1)||ul(e.child,!1))}e=e.sibling}}function Is(e,t){if(e.tag===30){var l=e.stateNode,n=e.memoizedProps,a=vl(n,l),u=bl(n.default,l.paired?n.share:n.enter);u!=="none"?sa(e,a,u,null,!1)?(wi(e),l.paired||t||ga(e,n.onEnter)):ul(e.child,!1):wi(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Is(e,t),e=e.sibling;else wi(e)}function $s(e){if(Dt!==null&&Dt.size!==0){var t=Dt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,n=l.name;if(n!=null&&n!=="auto"){var a=t.get(n);if(a!==void 0){var u=bl(l.default,l.share);if(u!=="none"&&(sa(e,n,u,null,!1)?(u=e.stateNode,a.paired=u,u.paired=a,ga(e,l.onShare)):ul(e.child,!1)),t.delete(n),t.size===0)break}}}$s(e)}e=e.sibling}}}function Ps(e){if(e.tag===30){var t=e.memoizedProps,l=vl(t,e.stateNode),n=Dt!==null?Dt.get(l):void 0,a=bl(t.default,n!==void 0?t.share:t.exit);a!=="none"&&(sa(e,l,a,null,!1)?n!==void 0?(a=e.stateNode,n.paired=a,a.paired=n,Dt.delete(l),ga(e,t.onShare)):ga(e,t.onExit):ul(e.child,!1)),Dt!==null&&$s(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Ps(e),e=e.sibling;else Dt!==null&&$s(e)}function gd(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=vl(t,e.stateNode);t=bl(t.default,t.update),e.flags&=-5,t!=="none"&&sa(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&gd(e);e=e.sibling}}function er(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,ul(e.child,!1))}er(e)}e=e.sibling}}function zi(e){if(e.tag===30)e.stateNode.paired=null,ul(e.child,!1),er(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)zi(e),e=e.sibling;else er(e)}function vd(e){for(e=e.child;e!==null;)e.tag===30?ul(e.child,!1):(e.subtreeFlags&33554432)!==0&&vd(e),e=e.sibling}function tr(e,t,l,n,a,u,s){for(var x=!1;t!==null;){if(t.tag===5){var y=t.stateNode;if(u!==null&&pt<u.length){var F=u[pt],R=jr(y);(F.view||R.view)&&(x=!0);var X;if(X=(e.flags&4)===0)if(R.clip)X=!0;else{X=F.rect;var M=R.rect;X=X.y!==M.y||X.x!==M.x||X.height!==M.height||X.width!==M.width}X&&(e.flags|=4),R.abs?R=!F.abs:(F=F.rect,R=R.rect,R=F.height!==R.height||F.width!==R.width),R&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&h1(y,pt===0?l:l+"_"+pt,a),x&&(e.flags&4)!==0||(al===null&&(al=[]),al.push(y,pt===0?n:n+"_"+pt,t.memoizedProps)),pt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&s?e.flags|=t.flags&32:tr(e,t.child,l,n,a,u,s)&&(x=!0));t=t.sibling}return x}function bd(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,n=e.stateNode,a=vl(l,n),u=bl(l.default,l.update),s;s=e.memoizedState,e.memoizedState=null,n=e;var x=e.child;pt=0,a=tr(n,x,a,a,u,s,!1),(e.flags&4)!==0&&a&&ga(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&bd(e);e=e.sibling}}var tt=!1,Oe=!1,il=!1,lr=!1,pd=typeof WeakSet=="function"?WeakSet:Set,lt=null,cl=!1,hu=!1,_i=!1,nr=!1;function mg(e,t,l){if(e=e.containerInfo,Tr=Ma,e=Eo(e),Yc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var x=0,y=-1,F=-1,R=0,X=0,M=e,w=null;t:for(;;){for(var ue;M!==n||u!==0&&M.nodeType!==3||(y=x+u),M!==s||a!==0&&M.nodeType!==3||(F=x+a),M.nodeType===3&&(x+=M.nodeValue.length),(ue=M.firstChild)!==null;)w=M,M=ue;for(;;){if(M===e)break t;if(w===n&&++R===u&&(y=x),w===s&&++X===a&&(F=x),(ue=M.nextSibling)!==null)break;M=w,w=M.parentNode}M=ue}n=y===-1||F===-1?null:{start:y,end:F}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fr={focusedElem:e,selectionRange:n},Ma=!1,l=(l&335544064)===l,lt=t,t=l?9270:1024;lt!==null;){if(e=lt,l&&(n=e.deletions,n!==null))for(u=0;u<n.length;u++)l&&Ps(n[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&xd(e),Ri(l);else{if(e.tag===22){if(n=e.alternate,e.memoizedState!==null){n!==null&&n.memoizedState===null&&l&&Ps(n),Ri(l);continue}else if(n!==null&&n.memoizedState!==null){l&&xd(e),Ri(l);continue}}n=e.child,(e.subtreeFlags&t)!==0&&n!==null?(n.return=e,lt=n):(l&&gd(e),Ri(l))}}Dt=null}function Ri(e){for(;lt!==null;){var t=lt,l=e,n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&n!==null){l=void 0,a=n.memoizedProps,n=n.memoizedState;var u=t.stateNode;try{var s=Mn(t.type,a);l=u.getSnapshotBeforeUpdate(s,n),u.__reactInternalSnapshotBeforeUpdate=l}catch(x){we(t,t.return,x)}}break;case 3:if((a&1024)!==0){if(n=t.stateNode.containerInfo,l=n.nodeType,l===9)_r(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":_r(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&n!==null&&(l=vl(n.memoizedProps,n.stateNode),a=t.memoizedProps,a=bl(a.default,a.update),a!=="none"&&sa(n,l,a,n.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(f(163))}if(n=t.sibling,n!==null){n.return=t.return,lt=n;break}lt=t.return}}function yd(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:sl(e,l),n&4&&du(5,l);break;case 1:if(sl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){we(l,l.return,s)}else{var a=Mn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){we(l,l.return,s)}}n&64&&sd(l),n&512&&nl(l,l.return);break;case 3:if(sl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Io(e,t)}catch(s){we(l,l.return,s)}}break;case 27:t===null&&n&4&&dd(l);case 26:case 5:sl(e,l),t===null&&n&4&&Zs(l),n&512&&nl(l,l.return);break;case 12:sl(e,l);break;case 31:sl(e,l),n&4&&Ad(e,l);break;case 13:sl(e,l),n&4&&Cd(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=kg.bind(null,l),s2(e,l))));break;case 22:if(n=l.memoizedState!==null||tt,!n){var u=t!==null&&t.memoizedState!==null||Oe;t=tt,a=Oe,tt=n,(Oe=u)&&!a?(n=2,(l.subtreeFlags&8772)!==0&&(n|=1),Kt(e,l,n)):sl(e,l),tt=t,Oe=a}break;case 30:sl(e,l),n&512&&nl(l,l.return);break;case 7:n&512&&nl(l,l.return);default:sl(e,l)}}function ar(e,t){for(e=e.child;e!==null;)Nd(e,t),e=e.sibling}function Nd(e,t){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(t){var n=l.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}else{var a=e.stateNode,u=e.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null;a.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}}catch(y){we(e,e.return,y)}ur(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,De=!0}catch(y){we(e,e.return,y)}break;case 18:try{var x=e.stateNode;t?x1(x,!0):x1(e.stateNode,!1)}catch(y){we(e,e.return,y)}break;case 22:case 23:e.memoizedState===null&&ar(e,t);break;default:ar(e,t)}}function ur(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,n=t;switch(l.tag){case 4:Nd(l,n);break e;case 22:l.memoizedState===null&&ur(l,n);break e;default:ur(l,n)}}e=e.sibling}}function Sd(e){var t=e.alternate;t!==null&&(e.alternate=null,Sd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gu(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 Ge=null,yt=!1;function Vt(e,t,l){for(l=l.child;l!==null;)Ed(e,t,l),l=l.sibling}function Ed(e,t,l){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Ra,l)}catch{}switch(l.tag){case 26:Oe||ct(l,t),Vt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Oe&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Oe||ct(l,t),xu(l);var n=Ge,a=yt;Il(l.type)&&(Ge=l.stateNode,yt=!1),Vt(e,t,l),k1(l.stateNode,l.type,l.memoizedProps),Ge=n,yt=a;break;case 5:Oe||ct(l,t),xu(l);case 6:if(l.tag===6&&xu(l),n=Ge,a=yt,Ge=null,Vt(e,t,l),Ge=n,yt=a,Ge!==null)if(yt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(l.stateNode),De=!0}catch(u){we(l,t,u)}else try{Ge.removeChild(l.stateNode),De=!0}catch(u){we(l,t,u)}break;case 18:Ge!==null&&(yt?(e=Ge,d1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ka(e)):d1(Ge,l.stateNode));break;case 4:n=Ge,a=yt,Ge=l.stateNode.containerInfo,yt=!0,Vt(e,t,l),Ge=n,yt=a;break;case 0:case 11:case 14:case 15:Xl(2,l,t),Oe||Xl(4,l,t),Vt(e,t,l);break;case 1:Oe||(ct(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&rd(l,t,n)),Vt(e,t,l);break;case 21:Vt(e,t,l);break;case 22:Oe=(n=Oe)||l.memoizedState!==null,Vt(e,t,l),Oe=n;break;case 30:ct(l,t),Vt(e,t,l);break;case 7:Oe||ct(l,t),Vt(e,t,l);break;default:Vt(e,t,l)}}function Ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ka(e)}catch(l){we(t,t.return,l)}}}function Cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ka(e)}catch(l){we(t,t.return,l)}}function gg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pd),t;default:throw Error(f(435,e.tag))}}function Li(e,t){var l=gg(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Tg.bind(null,e,n);n.then(a,a)}})}function ht(e,t,l){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],s=e,x=t,y=x;e:for(;y!==null;){switch(y.tag){case 27:if(Il(y.type)){Ge=y.stateNode,yt=!1;break e}break;case 5:Ge=y.stateNode,yt=!1;break e;case 3:case 4:Ge=y.stateNode.containerInfo,yt=!0;break e}y=y.return}if(Ge===null)throw Error(f(160));Ed(s,x,u),Ge=null,yt=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Md(t,e,l),t=t.sibling}var Zt=null;function Md(e,t,l){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(n=e.updateQueue,n=n!==null?n.events:null,n!==null))for(var u=0;u<n.length;u++){var s=n[u];s.ref.impl=s.nextImpl}ht(t,e,l),mt(e),a&4&&(Xl(3,e,e.return),du(3,e),Xl(5,e,e.return));break;case 1:ht(t,e,l),mt(e),a&512&&(Oe||n===null||ct(n,n.return)),a&64&&tt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?t:l.concat(t))));break;case 26:if(u=Zt,ht(t,e,l),mt(e),a&512&&(Oe||n===null||ct(n,n.return)),a&4)if(a=n!==null?n.memoizedState:null,l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null)if(tt)e.stateNode=r1(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,l=e.memoizedProps,a=u.ownerDocument||u;t:switch(t){case"title":n=a.getElementsByTagName("title")[0],(!n||n[Ua]||n[nt]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=a.createElement(t),a.head.insertBefore(n,a.querySelector("head > title"))),st(n,t,l),n[nt]=e,Pe(n),t=n;break e;case"link":if(u=j1("link","href",a).get(t+(l.href||""))){for(s=0;s<u.length;s++)if(n=u[s],n.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&n.getAttribute("rel")===(l.rel==null?null:l.rel)&&n.getAttribute("title")===(l.title==null?null:l.title)&&n.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(s,1);break t}}n=a.createElement(t),st(n,t,l),a.head.appendChild(n);break;case"meta":if(u=j1("meta","content",a).get(t+(l.content||""))){for(s=0;s<u.length;s++)if(n=u[s],n.getAttribute("content")===(l.content==null?null:""+l.content)&&n.getAttribute("name")===(l.name==null?null:l.name)&&n.getAttribute("property")===(l.property==null?null:l.property)&&n.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&n.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(s,1);break t}}n=a.createElement(t),st(n,t,l),a.head.appendChild(n);break;default:throw Error(f(468,t))}n[nt]=e,Pe(n),t=n}e.stateNode=t}else tt||Yr(u,e.type,e.stateNode);else e.stateNode=O1(u,l,e.memoizedProps);else a!==l?(a===null?(t=n.stateNode,t===null||Oe||t.parentNode.removeChild(t)):a.count--,l===null?tt||Yr(u,e.type,e.stateNode):O1(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ks(e,e.memoizedProps,n.memoizedProps);break;case 27:ht(t,e,l),mt(e),a&512&&(Oe||n===null||ct(n,n.return)),n!==null&&a&4&&Ks(e,e.memoizedProps,n.memoizedProps);break;case 5:if(u=il,il=!1,ht(t,e,l),il=u,mt(e),a&512&&(Oe||n===null||ct(n,n.return)),e.flags&32){t=e.stateNode;try{Xn(t,""),De=!0}catch(R){we(e,e.return,R)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ks(e,t,n!==null?n.memoizedProps:t)),a&1024&&(lr=!0);break;case 6:if(ht(t,e,l),mt(e),a&4){if(e.stateNode===null)throw Error(f(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,De=!0}catch(R){we(e,e.return,R)}}break;case 3:if(De=!1,Pi=null,u=Zt,Zt=Eu(t.containerInfo),ht(t,e,l),Zt=u,mt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ka(t.containerInfo)}catch(R){we(e,e.return,R)}lr&&(lr=!1,kd(e)),De=!1;break;case 4:a=il,il=tt,n=Vf(),u=Zt,Zt=Eu(e.stateNode.containerInfo),ht(t,e,l),mt(e),Zt=u,De&&hu&&(_i=!0),De=n,il=a;break;case 12:ht(t,e,l),mt(e);break;case 31:ht(t,e,l),mt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Li(e,t)));break;case 13:ht(t,e,l),mt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(qi=At()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Li(e,t)));break;case 22:u=e.memoizedState!==null,s=n!==null&&n.memoizedState!==null;var x=tt,y=Oe,F=il;tt=x||u,il=F||u,Oe=y||s,ht(t,e,l),Oe=y,il=F,tt=x,mt(e),a&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||n===null||s||tt||Oe||(t=s||Oe,l=tt,n=Oe,tt=u||tt,Oe=t,Ql(e,2),tt=l,Oe=n),!u&&il||ar(e,u)),a&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,Li(e,l))));break;case 19:ht(t,e,l),mt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Li(e,t)));break;case 30:a&512&&(Oe||n===null||ct(n,n.return)),a=Vf(),u=hu,s=(l&335544064)===l,x=e.memoizedProps,hu=s&&bl(x.default,x.update)!=="none",ht(t,e,l),mt(e),s&&n!==null&&De&&(e.flags|=4),hu=u,De=a;break;case 21:break;case 7:a&512&&(Oe||n===null||ct(n,n.return)),n&&n.stateNode!==null&&(n.stateNode._fragmentFiber=e);default:ht(t,e,l),mt(e)}}function mt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(od(n)){l=n;break}n=n.return}n=null;for(var a=e.return;a!==null;){if(Vs(a)){var u=a.stateNode;n===null?n=[u]:n.push(u)}if(Qs(a))break;a=a.return}var s=n;if(l==null)throw Error(f(160));switch(l.tag){case 27:var x=l.stateNode,y=Js(e);Oi(e,y,x,s);break;case 5:var F=l.stateNode;l.flags&32&&(Xn(F,""),l.flags&=-33);var R=Js(e);Oi(e,R,F,s);break;case 3:case 4:var X=l.stateNode.containerInfo,M=Js(e);Ws(e,M,X,s);break;default:throw Error(f(161))}}catch(w){we(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kd(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Ma=!0,t.reset(),Ma=!1),e=e.sibling}}function ra(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Td(t,e),t=t.sibling;else bd(t)}function Td(e,t){var l=e.alternate;if(l===null)Is(e,!1);else switch(e.tag){case 3:if(nr=cl=!1,hd(),ra(t,e),!cl&&!_i){if(e=al,e!==null)for(var n=0;n<e.length;n+=3){l=e[n];var a=e[n+1];m1(l,e[n+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),nr=!0}al=null;break;case 5:ra(t,e);break;case 4:n=cl,cl=!1,ra(t,e),cl&&(_i=!0),cl=n;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Is(e,!1):ra(t,e));break;case 30:n=cl,a=hd(),cl=!1,ra(t,e),cl&&(e.flags|=4);var u=e.memoizedProps,s=e.stateNode;t=vl(u,s),s=vl(l.memoizedProps,s);var x=bl(u.default,u.update);x==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,pt=0,t=tr(e,l,t,s,x,u,!0),pt!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(ga(e,e.memoizedProps.onUpdate),al=a):a!==null&&(a.push.apply(a,al),al=a),cl=(e.flags&32)!==0?!0:n;break;default:ra(t,e)}}function sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)yd(e,t.alternate,t),t=t.sibling}function Ql(e,t){for(e=e.child;e!==null;){var l=e,n=t;switch(l.tag){case 0:case 11:case 14:case 15:Xl(4,l,l.return),Ql(l,n);break;case 1:ct(l,l.return);var a=l.stateNode;typeof a.componentWillUnmount=="function"&&rd(l,l.return,a),Ql(l,n);break;case 27:(n&2)!==0&&k1(l.stateNode,l.type,l.memoizedProps);case 5:ct(l,l.return),l.tag!==5&&l.tag!==27||xu(l),Ql(l,n);break;case 6:xu(l);break;case 26:ct(l,l.return),a=l.stateNode,l.memoizedState!==null||a===null||Oe||a.parentNode.removeChild(a),Ql(l,n);break;case 22:l.memoizedState===null&&Ql(l,n);break;case 30:ct(l,l.return),Ql(l,n);break;case 7:ct(l,l.return);default:Ql(l,n)}e=e.sibling}}function Kt(e,t,l){for(l=(t.subtreeFlags&8772)!==0?l:l&-2,t=t.child;t!==null;){var n=t.alternate,a=e,u=t,s=u.flags,x=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:Kt(a,u,l),du(4,u);break;case 1:if(Kt(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(R){we(n,n.return,R)}if(n=u,a=n.updateQueue,a!==null){var y=n.stateNode;try{var F=a.shared.hiddenCallbacks;if(F!==null)for(a.shared.hiddenCallbacks=null,a=0;a<F.length;a++)Wo(F[a],y)}catch(R){we(n,n.return,R)}}x&&s&64&&sd(u),nl(u,u.return);break;case 27:(l&2)!==0&&dd(u);case 5:u.tag!==5&&u.tag!==27||fd(u),Kt(a,u,l),x&&n===null&&s&4&&Zs(u),nl(u,u.return);break;case 6:fd(u);break;case 26:y=u.stateNode,u.memoizedState!==null||y===null||tt||Yr(Eu(y.ownerDocument),u.type,y),Kt(a,u,l),x&&n===null&&s&4&&Zs(u),nl(u,u.return);break;case 12:Kt(a,u,l);break;case 31:Kt(a,u,l),x&&s&4&&Ad(a,u);break;case 13:Kt(a,u,l),x&&s&4&&Cd(a,u);break;case 22:u.memoizedState===null&&Kt(a,u,l),nl(u,u.return);break;case 30:Kt(a,u,l),nl(u,u.return);break;case 7:nl(u,u.return);default:Kt(a,u,l)}t=t.sibling}}function ir(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Pa(l))}function cr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e))}function qt(e,t,l,n){var a=(l&335544064)===l;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)Fd(e,t,l,n),t=t.sibling;else a&&vd(t)}function Fd(e,t,l,n){var a=(l&335544064)===l;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&zi(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:qt(e,t,l,n),u&2048&&du(9,t);break;case 1:qt(e,t,l,n);break;case 3:qt(e,t,l,n),a&&nr&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),u&2048&&(u=null,t.alternate!==null&&(u=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==u&&(t.refCount++,u!=null&&Pa(u)));break;case 12:if(u&2048){qt(e,t,l,n),u=t.stateNode;try{var s=t.memoizedProps,x=s.id,y=s.onPostCommit;typeof y=="function"&&y(x,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(F){we(t,t.return,F)}}else qt(e,t,l,n);break;case 31:qt(e,t,l,n);break;case 13:qt(e,t,l,n);break;case 23:break;case 22:s=t.stateNode,x=t.alternate,t.memoizedState!==null?(a&&x!==null&&x.memoizedState===null&&zi(x),s._visibility&2?qt(e,t,l,n):mu(e,t)):(a&&x!==null&&x.memoizedState!==null&&zi(t),s._visibility&2?qt(e,t,l,n):(s._visibility|=2,fa(e,t,l,n,(t.subtreeFlags&10256)!==0||!1))),u&2048&&ir(x,t);break;case 24:qt(e,t,l,n),u&2048&&cr(t.alternate,t);break;case 30:a&&(u=t.alternate,u!==null&&(ul(u.child,!0),ul(t.child,!0))),qt(e,t,l,n);break;default:qt(e,t,l,n)}}function fa(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,s=t,x=l,y=n,F=s.flags;switch(s.tag){case 0:case 11:case 15:fa(u,s,x,y,a),du(8,s);break;case 23:break;case 22:var R=s.stateNode;s.memoizedState!==null?R._visibility&2?fa(u,s,x,y,a):mu(u,s):(R._visibility|=2,fa(u,s,x,y,a)),a&&F&2048&&ir(s.alternate,s);break;case 24:fa(u,s,x,y,a),a&&F&2048&&cr(s.alternate,s);break;default:fa(u,s,x,y,a)}t=t.sibling}}function mu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:mu(l,n),a&2048&&ir(n.alternate,n);break;case 24:mu(l,n),a&2048&&cr(n.alternate,n);break;default:mu(l,n)}t=t.sibling}}var kn=8192;function Tn(e,t,l){if(e.subtreeFlags&kn)for(e=e.child;e!==null;)Dd(e,t,l),e=e.sibling}function Dd(e,t,l){switch(e.tag){case 26:Tn(e,t,l),e.flags&kn&&(e.memoizedState!==null?S2(l,Zt,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&R1(l,e)));break;case 5:Tn(e,t,l),e.flags&kn&&(e=e.stateNode,(t&335544128)===t&&R1(l,e));break;case 3:case 4:var n=Zt;Zt=Eu(e.stateNode.containerInfo),Tn(e,t,l),Zt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=kn,kn=16777216,Tn(e,t,l),kn=n):Tn(e,t,l));break;case 30:if((e.flags&kn)!==0&&(n=e.memoizedProps.name,n!=null&&n!=="auto")){var a=e.stateNode;a.paired=null,Dt===null&&(Dt=new Map),Dt.set(n,a)}Tn(e,t,l);break;default:Tn(e,t,l)}}function Bd(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 gu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];lt=n,jd(n,e)}Bd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Od(e),e=e.sibling}function Od(e){switch(e.tag){case 0:case 11:case 15:gu(e),e.flags&2048&&Xl(9,e,e.return);break;case 3:gu(e);break;case 12:gu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hi(e)):gu(e);break;default:gu(e)}}function Hi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];lt=n,jd(n,e)}Bd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xl(8,t,t.return),Hi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Hi(t));break;default:Hi(t)}e=e.sibling}}function jd(e,t){for(;lt!==null;){var l=lt;switch(l.tag){case 0:case 11:case 15:Xl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Pa(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,lt=n;else e:for(l=e;lt!==null;){n=lt;var a=n.sibling,u=n.return;if(Sd(n),n===l){lt=null;break e}if(a!==null){a.return=u,lt=a;break e}lt=u}}}var vg={getCacheForType:function(e){var t=at(Ze),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return at(Ze).controller.signal}},bg=typeof WeakMap=="function"?WeakMap:Map,Be=0,Le=null,Ae=null,Me=0,je=0,Bt=null,Vl=!1,oa=!1,sr=!1,kl=0,Qe=0,Zl=0,Fn=0,Ui=0,Ot=0,da=0,vu=null,Nt=null,rr=!1,qi=0,wd=0,Gi=1/0,Yi=null,Kl=null,Ye=0,Jt=null,Dn=null,rl=0,fr=0,or=null,zd=null,xa=null,ha=null,ma=null,bu=0,Xi=null;function jt(){return(Be&2)!==0&&Me!==0?Me&-Me:ie.T!==null?Nr():Rf()}function _d(){if(Ot===0)if((Me&536870912)===0||Se){var e=Lu;Lu<<=1,(Lu&3932160)===0&&(Lu=262144),Ot=e}else Ot=536870912;return e=ut.current,e!==null&&(e.flags|=32),Ot}function ga(e,t){if(t!=null){var l=e.stateNode,n=l.ref;n===null&&(n=l.ref=g1(vl(e.memoizedProps,l))),ha===null&&(ha=[]),ha.push(t.bind(null,n))}}function St(e,t,l){(e===Le&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(va(e,0),Jl(e,Me,Ot,!1)),Ha(e,l),((Be&2)===0||e!==Le)&&(e===Le&&((Be&2)===0&&(Fn|=l),Qe===4&&Jl(e,Me,Ot,!1)),fl(e))}function Rd(e,t,l){if((Be&6)!==0)throw Error(f(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||La(e,t),a=n?Ng(e,t):xr(e,t,!0),u=n;do{if(a===0){oa&&!n&&Jl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!pg(l)){a=xr(e,t,!1),u=!1;continue}if(a===2){if(u=t,e.errorRecoveryDisabledLanes&u)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var x=e;a=vu;var y=x.current.memoizedState.isDehydrated;if(y&&(va(x,s).flags|=256),s=xr(x,s,!1),s!==2&&s!==6){if(sr&&!y){x.errorRecoveryDisabledLanes|=u,Fn|=u,a=4;break e}u=Nt,Nt=a,u!==null&&(Nt===null?Nt=u:Nt.push.apply(Nt,u))}a=s}if(u=!1,a!==2)continue}}if(a===1){va(e,0),Jl(e,t,0,!0);break}e:{switch(n=e,u=a,u){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Jl(n,t,Ot,!Vl);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(a=qi+300-At(),10<a)){if(Jl(n,t,Ot,!Vl),Uu(n,0,!0)!==0)break e;rl=t,n.timeoutHandle=Or(Ld.bind(null,n,l,Nt,Yi,rr,t,Ot,Fn,da,Vl,u,"Throttled",-0,0),a);break e}Ld(n,l,Nt,Yi,rr,t,Ot,Fn,da,Vl,u,null,-0,0)}}break}while(!0);fl(e)}function Ld(e,t,l,n,a,u,s,x,y,F,R,X,M,w){e.timeoutHandle=-1;var ue=t.subtreeFlags,oe=(u&335544064)===u;if(X=null,(oe||ue&8192||(ue&16785408)===16785408)&&(X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:el},Dt=null,Dd(t,u,X),oe&&(ue=X,oe=e.containerInfo,oe=(oe.nodeType===9?oe:oe.ownerDocument).__reactViewTransition,oe!=null&&(ue.count++,ue.waitingForViewTransition=!0,ue=Mu.bind(ue),oe.finished.then(ue,ue))),ue=(u&62914560)===u?qi-At():(u&4194048)===u?wd-At():0,ue=E2(X,ue),ue!==null)){rl=u,e.cancelPendingCommit=ue(Vd.bind(null,e,t,u,l,n,a,s,x,y,F,R,X,null,M,w)),Jl(e,u,s,!F);return}Vd(e,t,u,l,n,a,s,x,y,F,R,X)}function pg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!Tt(u(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Jl(e,t,l,n){t=Of(e,t),t&=~Ui,t&=~Fn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var u=31-Mt(a),s=1<<u;n[u]=-1,a&=~s}l!==0&&wf(e,l,t)}function Qi(){return(Be&6)===0?(pu(0),!1):!0}function dr(){if(Ae!==null){if(je===0)var e=Ae.return;else e=Ae,Nl=vn=null,ys(e),na=null,lu=0,e=Ae;for(;e!==null;)cd(e.alternate,e),e=e.return;Ae=null}}function va(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,Yg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,dr(),Le=e,Ae=l=pl(e.current,null),Me=t,je=0,Bt=null,Vl=!1,oa=La(e,t),sr=!1,da=Ot=Ui=Fn=Zl=Qe=0,Nt=vu=null,rr=!1,kl=Of(e,t),Pu(),l}function Hd(e,t){ye=null,ie.H=Ai,t===la||t===fi?(t=Vo(),je=3):t===cs?(t=Vo(),je=4):je=t===zs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,Ae===null&&(Qe=1,Ci(e,Rt(t,e.current)))}function Ud(){var e=ut.current;return e===null?!0:(Me&4194048)===Me?ot===null:(Me&62914560)===Me||(Me&536870912)!==0?e===ot:!1}function qd(){var e=ie.H;return ie.H=Ai,e===null?Ai:e}function Gd(){var e=ie.A;return ie.A=vg,e}function Vi(){Qe=4,Vl||(Me&4194048)!==Me&&ut.current!==null||(oa=!0),(Zl&134217727)===0&&(Fn&134217727)===0||Le===null||Jl(Le,Me,Ot,!1)}function xr(e,t,l){var n=Be;Be|=2;var a=qd(),u=Gd();(Le!==e||Me!==t)&&(Yi=null,va(e,t)),t=!1;var s=Qe;e:do try{if(je!==0&&Ae!==null){var x=Ae,y=Bt;switch(je){case 8:dr(),s=6;break e;case 3:case 2:case 9:case 6:ut.current===null&&(t=!0);var F=je;if(je=0,Bt=null,ba(e,x,y,F),l&&oa){s=0;break e}break;default:F=je,je=0,Bt=null,ba(e,x,y,F)}}yg(),s=Qe;break}catch(R){Hd(e,R)}while(!0);return t&&e.shellSuspendCounter++,Nl=vn=null,Be=n,ie.H=a,ie.A=u,Ae===null&&(Le=null,Me=0,Pu()),s}function yg(){for(;Ae!==null;)Yd(Ae)}function Ng(e,t){var l=Be;Be|=2;var n=qd(),a=Gd();Le!==e||Me!==t?(Yi=null,Gi=At()+500,va(e,t)):oa=La(e,t);e:do try{if(je!==0&&Ae!==null){t=Ae;var u=Bt;t:switch(je){case 1:je=0,Bt=null,ba(e,t,u,1);break;case 2:case 9:if(Xo(u)){je=0,Bt=null,Xd(t);break}t=function(){je!==2&&je!==9||Le!==e||(je=7),fl(e)},u.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Xo(u)?(je=0,Bt=null,Xd(t)):(je=0,Bt=null,ba(e,t,u,7));break;case 5:var s=null;switch(Ae.tag){case 26:s=Ae.memoizedState;case 5:case 27:var x=Ae;if(s?z1(s):x.stateNode.complete){je=0,Bt=null;var y=x.sibling;if(y!==null)Ae=y;else{var F=x.return;F!==null?(Ae=F,Zi(F)):Ae=null}break t}}je=0,Bt=null,ba(e,t,u,5);break;case 6:je=0,Bt=null,ba(e,t,u,6);break;case 8:dr(),Qe=6;break e;default:throw Error(f(462))}}Sg();break}catch(R){Hd(e,R)}while(!0);return Nl=vn=null,ie.H=n,ie.A=a,Be=l,Ae!==null?0:(Le=null,Me=0,Pu(),Qe)}function Sg(){for(;Ae!==null&&!Hh();)Yd(Ae)}function Yd(e){var t=ud(e.alternate,e,kl);e.memoizedProps=e.pendingProps,t===null?Zi(e):Ae=t}function Xd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=$0(l,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=$0(l,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:ys(t);var n=t;n===et&&(Se?(ui(n),n.tag===5&&n.stateNode!=null&&(He=n.stateNode)):(ui(n),Se=!0));default:cd(l,t),t=Ae=jo(t,kl),t=ud(l,t,kl)}e.memoizedProps=e.pendingProps,t===null?Zi(e):Ae=t}function ba(e,t,l,n){Nl=vn=null,ys(t),na=null,lu=0;var a=t.return;try{if(rg(e,a,t,l,Me)){Qe=1,Ci(e,Rt(l,e.current)),Ae=null;return}}catch(u){if(a!==null)throw Ae=a,u;Qe=1,Ci(e,Rt(l,e.current)),Ae=null;return}t.flags&32768?(Se||n===1?e=!0:oa||(Me&536870912)!==0?e=!1:(Vl=e=!0,(n===2||n===9||n===3||n===6)&&(n=ut.current,n!==null&&n.tag===13&&(n.flags|=16384))),Qd(t,e)):Zi(t)}function Zi(e){var t=e;do{if((t.flags&32768)!==0){Qd(t,Vl);return}e=t.return;var l=xg(t.alternate,t,kl);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Qe===0&&(Qe=5)}function Qd(e,t){do{var l=hg(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);Qe=6,Ae=null}function Vd(e,t,l,n,a,u,s,x,y,F,R,X){e.cancelPendingCommit=null;do Ki();while(Ye!==0);if((Be&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));e===Le&&(Ae=Le=null,Me=0),Dn=t,Jt=e,rl=l,or=a,zd=n,Eg(e,t,l,s,x,y,X)}}function Eg(e,t,l,n,a,u,s){var x=t.lanes|t.childLanes;if(fr=x,x|=Kc,Jh(e,l,x,n,a,u),ha=null,(l&335544064)===l?(ma=Im(e),n=10262):(ma=null,n=10256),(t.subtreeFlags&n)!==0||(t.flags&n)!==0?(e.callbackNode=null,e.callbackPriority=0,Fg(_u,function(){return vr(),null})):(e.callbackNode=null,e.callbackPriority=0),ji=!1,n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=ie.T,ie.T=null,a=de.p,de.p=2,u=Be,Be|=4;try{mg(e,t,l)}finally{Be=u,de.p=a,ie.T=n}}Ye=1,ji?xa=Jg(s,e.containerInfo,ma,hr,mr,Cg,gr,vr,Ag):(hr(),mr(),gr())}function Ag(e){if(Ye!==0){var t=Jt.onRecoverableError;t(e,{componentStack:null})}}function Cg(){Ye===3&&(Ye=0,Td(Dn,Jt),Ye=4)}function hr(){if(Ye===1){Ye=0;var e=Jt,t=Dn,l=rl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ie.T,ie.T=null;var a=de.p;de.p=2;var u=Be;Be|=4;try{hu=_i=!1,Md(t,e,l),l=Fr;var s=Eo(e.containerInfo),x=l.focusedElem,y=l.selectionRange;if(s!==x&&x&&x.ownerDocument&&So(x.ownerDocument.documentElement,x)){if(y!==null&&Yc(x)){var F=y.start,R=y.end;if(R===void 0&&(R=F),"selectionStart"in x)x.selectionStart=F,x.selectionEnd=Math.min(R,x.value.length);else{var X=x.ownerDocument||document,M=X&&X.defaultView||window;if(M.getSelection){var w=M.getSelection(),ue=x.textContent.length,oe=Math.min(y.start,ue),Ne=y.end===void 0?oe:Math.min(y.end,ue);!w.extend&&oe>Ne&&(s=Ne,Ne=oe,oe=s);var T=No(x,oe),C=No(x,Ne);if(T&&C&&(w.rangeCount!==1||w.anchorNode!==T.node||w.anchorOffset!==T.offset||w.focusNode!==C.node||w.focusOffset!==C.offset)){var O=X.createRange();O.setStart(T.node,T.offset),w.removeAllRanges(),oe>Ne?(w.addRange(O),w.extend(C.node,C.offset)):(O.setEnd(C.node,C.offset),w.addRange(O))}}}}for(X=[],w=x;w=w.parentNode;)w.nodeType===1&&X.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<X.length;x++){var G=X[x];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Ma=!!Tr,Fr=Tr=null}finally{Be=u,de.p=a,ie.T=n}}e.current=t,Ye=2}}function mr(){if(Ye===2){Ye=0;var e=Jt,t=Dn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=ie.T,ie.T=null;var n=de.p;de.p=2;var a=Be;Be|=4;try{yd(e,t.alternate,t)}finally{Be=a,de.p=n,ie.T=l}}Ye=3}}function gr(){if(Ye===4||Ye===3){Ye=0;var e=xa;xa=null,Uh();var t=Jt,l=Dn,n=rl,a=zd,u=(n&335544064)===n?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?Ye=5:(Ye=0,Dn=Jt=null,Zd(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(Kl=null),Cc(n),l=l.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(Ra,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=ie.T,u=de.p,de.p=2,ie.T=null;try{for(var s=t.onRecoverableError,x=0;x<a.length;x++){var y=a[x];s(y.value,{componentStack:y.stack})}}finally{ie.T=l,de.p=u}}if(a=ha,s=ma,ma=null,a!==null&&(ha=null,s===null&&(s=[]),e!==null))for(y=0;y<a.length;y++)l=(0,a[y])(s),l!==void 0&&e.finished.finally(l);(rl&3)!==0&&Ki(),fl(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Xi?bu++:(bu=0,Xi=t):(bu=0,Xi=null),pu(0)}}function Zd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pa(t)))}function Ki(){return xa!==null&&(xa.skipTransition(),xa=null),hr(),mr(),gr(),vr()}function vr(){if(Ye!==5)return!1;var e=Jt,t=fr;fr=0;var l=Cc(rl),n=ie.T,a=de.p;try{de.p=32>l?32:l,ie.T=null,l=or,or=null;var u=Jt,s=rl;if(Ye=0,Dn=Jt=null,rl=0,(Be&6)!==0)throw Error(f(331));var x=Be;if(Be|=4,Od(u.current),Fd(u,u.current,s,l),Be=x,pu(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Ra,u)}catch{}return!0}finally{de.p=a,ie.T=n,Zd(e,t)}}function Kd(e,t,l){t=Rt(l,t),t=ws(e.stateNode,t,2),e=Ul(e,t,2),e!==null&&(Ha(e,2),fl(e))}function we(e,t,l){if(e.tag===3)Kd(e,e,l);else for(;t!==null;){if(t.tag===3){Kd(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Kl===null||!Kl.has(n))){e=Rt(l,e),l=X0(2),n=Ul(t,l,2),n!==null&&(Q0(l,n,t,e),Ha(n,2),fl(n));break}}t=t.return}}function br(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new bg;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(sr=!0,a.add(l),e=Mg.bind(null,e,t,l),t.then(e,e))}function Mg(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(Me&l)===l&&((Qe===4||Qe===3&&(Me&62914560)===Me&&300>At()-qi)&&(Be&2)===0?va(e,0):Ui|=l,da===Me&&(da=0)),fl(e)}function Jd(e,t){t===0&&(t=jf()),e=hn(e,t),e!==null&&(Ha(e,t),fl(e))}function kg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Jd(e,l)}function Tg(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(f(314))}n!==null&&n.delete(t),Jd(e,l)}function Fg(e,t){return Nc(e,t)}var pa=null,ya=null,pr=!1,Ji=!1,yr=!1,Wl=0;function fl(e){e!==ya&&e.next===null&&(ya===null?pa=ya=e:ya=ya.next=e),Ji=!0,pr||(pr=!0,Bg())}function pu(e,t){if(!yr&&Ji){yr=!0;do for(var l=!1,n=pa;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var s=n.suspendedLanes,x=n.pingedLanes;u=(1<<31-Mt(42|e)+1)-1,u&=a&~(s&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Pd(n,u))}else u=Me,u=Uu(n,n===Le?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||La(n,u)||(l=!0,Pd(n,u));n=n.next}while(l);yr=!1}}function Dg(){Wd()}function Wd(){Ji=pr=!1;var e=0;Wl!==0&&Gg()&&(e=Wl);for(var t=At(),l=null,n=pa;n!==null;){var a=n.next,u=Id(n,t);u===0?(n.next=null,l===null?pa=a:l.next=a,a===null&&(ya=l)):(l=n,(e!==0||(u&3)!==0)&&(Ji=!0)),n=a}Ye!==0&&Ye!==5||pu(e),Wl!==0&&(Wl=0)}function Id(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var s=31-Mt(u),x=1<<s,y=a[s];y===-1?((x&l)===0||(x&n)!==0)&&(a[s]=Kh(x,t)):y<=t&&(e.expiredLanes|=x),u&=~x}if(t=Le,l=Me,l=Uu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Sc(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||La(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Sc(n),Cc(l)){case 2:case 8:l=Df;break;case 32:l=_u;break;case 268435456:l=Bf;break;default:l=_u}return n=$d.bind(null,e),l=Nc(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Sc(n),e.callbackPriority=2,e.callbackNode=null,2}function $d(e,t){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ki()&&e.callbackNode!==l)return null;var n=Me;return n=Uu(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Rd(e,n,t),Id(e,At()),e.callbackNode!=null&&e.callbackNode===l?$d.bind(null,e):null)}function Pd(e,t){if(Ki())return null;Rd(e,t,!0)}function Bg(){Xg(function(){(Be&6)!==0?Nc(Ff,Dg):Wd()})}function Nr(){if(Wl===0){var e=yn;e===0&&(e=Ru,Ru<<=1,(Ru&261888)===0&&(Ru=256)),Wl=e}return Wl}function e1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Qu(e)}function Og(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var u=e1((a[vt]||null).action),s=n.submitter;s&&(t=(t=s[vt]||null)?e1(t.formAction):s.getAttribute("formAction"),t!==null&&(u=t,s=null));var x=new Ju("action","action",null,n,a);e.push({event:x,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Wl!==0){var y=new FormData(a,s);Fs(l,{pending:!0,data:y,method:a.method,action:u},null,y)}}else typeof u=="function"&&(x.preventDefault(),y=new FormData(a,s),Fs(l,{pending:!0,data:y,method:a.method,action:u},u,y))},currentTarget:a}]})}}for(var Sr=0;Sr<Zc.length;Sr++){var Er=Zc[Sr],jg=Er.toLowerCase(),wg=Er[0].toUpperCase()+Er.slice(1);Qt(jg,"on"+wg)}Qt(Mo,"onAnimationEnd"),Qt(ko,"onAnimationIteration"),Qt(To,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(Ym,"onTransitionRun"),Qt(Xm,"onTransitionStart"),Qt(Qm,"onTransitionCancel"),Qt(Fo,"onTransitionEnd"),Gn("onMouseEnter",["mouseout","mouseover"]),Gn("onMouseLeave",["mouseout","mouseover"]),Gn("onPointerEnter",["pointerout","pointerover"]),Gn("onPointerLeave",["pointerout","pointerover"]),on("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),on("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),on("onBeforeInput",["compositionend","keypress","textInput","paste"]),on("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yu="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(" "),zg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yu));function t1(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var u=void 0;if(t)for(var s=n.length-1;0<=s;s--){var x=n[s],y=x.instance,F=x.currentTarget;if(x=x.listener,y!==u&&a.isPropagationStopped())break e;u=x,a.currentTarget=F;try{u(a)}catch(R){$u(R)}a.currentTarget=null,u=y}else for(s=0;s<n.length;s++){if(x=n[s],y=x.instance,F=x.currentTarget,x=x.listener,y!==u&&a.isPropagationStopped())break e;u=x,a.currentTarget=F;try{u(a)}catch(R){$u(R)}a.currentTarget=null,u=y}}}}function Ce(e,t){var l=t[Hf];l===void 0&&(l=t[Hf]=new Set);var n=e+"__bubble";l.has(n)||(l1(t,e,2,!1),l.add(n))}function Ar(e,t,l){var n=0;t&&(n|=4),l1(l,e,n,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function Cr(e){if(!e[Wi]){e[Wi]=!0,Gf.forEach(function(l){l!=="selectionchange"&&(zg.has(l)||Ar(l,!1,e),Ar(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wi]||(t[Wi]=!0,Ar("selectionchange",!1,t))}}function l1(e,t,l,n){switch(Q1(t)){case 2:var a=k2;break;case 8:a=T2;break;default:a=Qr}l=a.bind(null,t,l,e),a=void 0,!jc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function Mr(e,t,l,n,a){var u=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var x=n.stateNode.containerInfo;if(x===a)break;if(s===4)for(s=n.return;s!==null;){var y=s.tag;if((y===3||y===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;x!==null;){if(s=fn(x),s===null)return;if(y=s.tag,y===5||y===6||y===26||y===27){n=u=s;continue e}x=x.parentNode}}n=n.return}to(function(){var F=u,R=Bc(l),X=[];e:{var M=Do.get(e);if(M!==void 0){var w=Ju,ue=e;switch(e){case"keypress":if(Zu(l)===0)break e;case"keydown":case"keyup":w=pm;break;case"focusin":ue="focus",w=Rc;break;case"focusout":ue="blur",w=Rc;break;case"beforeblur":case"afterblur":w=Rc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=ao;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=cm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Am;break;case Mo:case ko:case To:w=fm;break;case Fo:w=Mm;break;case"scroll":case"scrollend":w=um;break;case"wheel":w=Tm;break;case"copy":case"cut":case"paste":w=dm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=io;break;case"submit":w=Sm;break;case"toggle":case"beforetoggle":w=Dm}var oe=(t&4)!==0,Ne=!oe&&(e==="scroll"||e==="scrollend"),T=oe?M!==null?M+"Capture":null:M;oe=[];for(var C=F,O;C!==null;){var G=C;if(O=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||O===null||T===null||(G=Ga(C,T),G!=null&&oe.push(Nu(C,G,O))),Ne)break;C=C.return}0<oe.length&&(M=new w(M,ue,null,l,R),X.push({event:M,listeners:oe}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",w&&l!==Dc&&(ue=l.relatedTarget||l.fromElement)&&(fn(ue)||ue[Hn]))break e;(M||w)&&(ue=R.window===R?R:(w=R.ownerDocument)?w.defaultView||w.parentWindow:window,M?(w=l.relatedTarget||l.toElement,M=F,w=w?fn(w):null,w!==null&&(Ne=h(w),oe=w.tag,w!==Ne||oe!==5&&oe!==27&&oe!==6)&&(w=null)):(M=null,w=F),M!==w&&(oe=ao,G="onMouseLeave",T="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(oe=io,G="onPointerLeave",T="onPointerEnter",C="pointer"),Ne=M==null?ue:qa(M),O=w==null?ue:qa(w),ue=new oe(G,C+"leave",M,l,R),ue.target=Ne,ue.relatedTarget=O,G=null,fn(R)===F&&(oe=new oe(T,C+"enter",w,l,R),oe.target=O,oe.relatedTarget=Ne,G=oe),Ne=G,oe=M&&w?E(M,w,_g):null,M!==null&&n1(X,ue,M,oe,!1),w!==null&&Ne!==null&&n1(X,Ne,w,oe,!0)))}e:{if(M=F?qa(F):window,w=M.nodeName&&M.nodeName.toLowerCase(),w==="select"||w==="input"&&M.type==="file")var ce=mo;else if(xo(M))if(go)ce=Um;else{ce=Lm;var ke=Rm}else w=M.nodeName,!w||w.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?F&&Fc(F.elementType)&&(ce=mo):ce=Hm;if(ce&&(ce=ce(e,F))){ho(X,ce,l,R);break e}ke&&ke(e,M,F)}switch(ke=F?qa(F):window,e){case"focusin":(xo(ke)||ke.contentEditable==="true")&&(Kn=ke,Xc=F,Wa=null);break;case"focusout":Wa=Xc=Kn=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,Ao(X,l,R);break;case"selectionchange":if(Gm)break;case"keydown":case"keyup":Ao(X,l,R)}var xe;if(Hc)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Zn?fo(e,l)&&(ve="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ve="onCompositionStart");ve&&(co&&l.locale!=="ko"&&(Zn||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Zn&&(xe=lo()):(Bl=R,wc="value"in Bl?Bl.value:Bl.textContent,Zn=!0)),ke=Ii(F,ve),0<ke.length&&(ve=new uo(ve,e,null,l,R),X.push({event:ve,listeners:ke}),xe?ve.data=xe:(xe=oo(l),xe!==null&&(ve.data=xe)))),(xe=Om?jm(e,l):wm(e,l))&&(ve=Ii(F,"onBeforeInput"),0<ve.length&&(ke=new uo("onBeforeInput","beforeinput",null,l,R),X.push({event:ke,listeners:ve}),ke.data=xe)),Og(X,e,F,l,R)}t1(X,t)})}function Nu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ii(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Ga(e,l),a!=null&&n.unshift(Nu(e,a,u)),a=Ga(e,t),a!=null&&n.push(Nu(e,a,u))),e.tag===3)return n;e=e.return}return[]}function _g(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function n1(e,t,l,n,a){for(var u=t._reactName,s=[];l!==null&&l!==n;){var x=l,y=x.alternate,F=x.stateNode;if(x=x.tag,y!==null&&y===n)break;x!==5&&x!==26&&x!==27||F===null||(y=F,a?(F=Ga(l,u),F!=null&&s.unshift(Nu(l,F,y))):a||(F=Ga(l,u),F!=null&&s.push(Nu(l,F,y)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var Rg=/\r\n?/g,Lg=/\u0000|\uFFFD/g;function a1(e){return(typeof e=="string"?e:""+e).replace(Rg,`
49
+ `).replace(Lg,"")}function u1(e,t){return t=a1(t),a1(e)===t}function ze(e,t,l,n,a,u){switch(l){case"children":if(typeof n=="string")t==="body"||t==="textarea"&&n===""||Xn(e,n);else if(typeof n=="number"||typeof n=="bigint")t!=="body"&&Xn(e,""+n);else return;break;case"className":Xu(e,"class",n);break;case"tabIndex":Xu(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Xu(e,l,n);break;case"style":Pf(e,n,u);return;case"data":if(t!=="object"){Xu(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Qu(n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"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 u=="function"&&(l==="formAction"?(t!=="input"&&ze(e,t,"name",a.name,a,null),ze(e,t,"formEncType",a.formEncType,a,null),ze(e,t,"formMethod",a.formMethod,a,null),ze(e,t,"formTarget",a.formTarget,a,null)):(ze(e,t,"encType",a.encType,a,null),ze(e,t,"method",a.method,a,null),ze(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Qu(n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=el);return;case"onScroll":n!=null&&Ce("scroll",e);return;case"onScrollEnd":n!=null&&Ce("scrollend",e);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(f(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(f(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=Qu(n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),Yu(e,"popover",n);break;case"xlinkActuate":ml(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ml(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ml(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ml(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ml(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ml(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ml(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ml(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ml(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Yu(e,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=nm.get(l)||l,Yu(e,l,n);else return}De=!0}function kr(e,t,l,n,a,u){switch(l){case"style":Pf(e,n,u);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(f(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(f(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof n=="string")Xn(e,n);else if(typeof n=="number"||typeof n=="bigint")Xn(e,""+n);else return;break;case"onScroll":n!=null&&Ce("scroll",e);return;case"onScrollEnd":n!=null&&Ce("scrollend",e);return;case"onClick":n!=null&&(e.onclick=el);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Yf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),u=l.slice(2,a?l.length-7:void 0),t=e[vt]||null,t=t!=null?t[l]:null,typeof t=="function"&&e.removeEventListener(u,t,a),typeof n=="function")){typeof t!="function"&&t!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(u,n,a);break e}De=!0,l in e?e[l]=n:n===!0?e.setAttribute(l,""):Yu(e,l,n)}return}De=!0}function st(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ze(e,t,u,s,l,null)}}a&&ze(e,t,"srcSet",l.srcSet,l,null),n&&ze(e,t,"src",l.src,l,null);return;case"input":Ce("invalid",e);var x=u=s=a=null,y=null,F=null;for(n in l)if(l.hasOwnProperty(n)){var R=l[n];if(R!=null)switch(n){case"name":a=R;break;case"type":s=R;break;case"checked":y=R;break;case"defaultChecked":F=R;break;case"value":u=R;break;case"defaultValue":x=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(f(137,t));break;default:ze(e,t,n,R,l,null)}}Jf(e,u,x,y,F,s,a,!1);return;case"select":Ce("invalid",e),n=s=u=null;for(a in l)if(l.hasOwnProperty(a)&&(x=l[a],x!=null))switch(a){case"value":u=x;break;case"defaultValue":s=x;break;case"multiple":n=x;default:ze(e,t,a,x,l,null)}t=u,l=s,e.multiple=!!n,t!=null?Yn(e,!!n,t,!1):l!=null&&Yn(e,!!n,l,!0);return;case"textarea":Ce("invalid",e),u=a=n=null;for(s in l)if(l.hasOwnProperty(s)&&(x=l[s],x!=null))switch(s){case"value":n=x;break;case"defaultValue":a=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(f(91));break;default:ze(e,t,s,x,l,null)}If(e,n,a,u);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(n=l[y],n!=null))switch(y){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ze(e,t,y,n,l,null)}return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(n=0;n<yu.length;n++)Ce(yu[n],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("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(F in l)if(l.hasOwnProperty(F)&&(n=l[F],n!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ze(e,t,F,n,l,null)}return;default:if(Fc(t)){for(R in l)l.hasOwnProperty(R)&&(n=l[R],n!==void 0&&kr(e,t,R,n,l,void 0));return}}for(x in l)l.hasOwnProperty(x)&&(n=l[x],n!=null&&ze(e,t,x,n,l,null))}var Hg={};function Ug(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,s=null,x=null,y=null,F=null,R=null;for(w in l){var X=l[w];if(l.hasOwnProperty(w)&&X!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":y=X;default:n.hasOwnProperty(w)||ze(e,t,w,null,n,X)}}for(var M in n){var w=n[M];if(X=l[M],n.hasOwnProperty(M)&&(w!=null||X!=null))switch(M){case"type":w!==X&&(De=!0),u=w;break;case"name":w!==X&&(De=!0),a=w;break;case"checked":w!==X&&(De=!0),F=w;break;case"defaultChecked":w!==X&&(De=!0),R=w;break;case"value":w!==X&&(De=!0),s=w;break;case"defaultValue":w!==X&&(De=!0),x=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(f(137,t));break;default:w!==X&&ze(e,t,M,w,n,X)}}kc(e,s,x,y,F,R,u,a);return;case"select":w=s=x=M=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":w=y;default:n.hasOwnProperty(u)||ze(e,t,u,null,n,y)}for(a in n)if(u=n[a],y=l[a],n.hasOwnProperty(a)&&(u!=null||y!=null))switch(a){case"value":u!==y&&(De=!0),M=u;break;case"defaultValue":u!==y&&(De=!0),x=u;break;case"multiple":u!==y&&(De=!0),s=u;default:u!==y&&ze(e,t,a,u,n,y)}t=x,l=s,n=w,M!=null?Yn(e,!!l,M,!1):!!n!=!!l&&(t!=null?Yn(e,!!l,t,!0):Yn(e,!!l,l?[]:"",!1));return;case"textarea":w=M=null;for(x in l)if(a=l[x],l.hasOwnProperty(x)&&a!=null&&!n.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:ze(e,t,x,null,n,a)}for(s in n)if(a=n[s],u=l[s],n.hasOwnProperty(s)&&(a!=null||u!=null))switch(s){case"value":a!==u&&(De=!0),M=a;break;case"defaultValue":a!==u&&(De=!0),w=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(f(91));break;default:a!==u&&ze(e,t,s,a,n,u)}Wf(e,M,w);return;case"option":for(var ue in l)if(M=l[ue],l.hasOwnProperty(ue)&&M!=null&&!n.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:ze(e,t,ue,null,n,M)}for(y in n)if(M=n[y],w=l[y],n.hasOwnProperty(y)&&M!==w&&(M!=null||w!=null))switch(y){case"selected":M!==w&&(De=!0),e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:ze(e,t,y,M,n,w)}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 oe in l)M=l[oe],l.hasOwnProperty(oe)&&M!=null&&!n.hasOwnProperty(oe)&&ze(e,t,oe,null,n,M);for(F in n)if(M=n[F],w=l[F],n.hasOwnProperty(F)&&M!==w&&(M!=null||w!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(f(137,t));break;default:ze(e,t,F,M,n,w)}return;default:if(Fc(t)){for(var Ne in l)M=l[Ne],l.hasOwnProperty(Ne)&&M!==void 0&&!n.hasOwnProperty(Ne)&&kr(e,t,Ne,void 0,n,M);for(R in n)M=n[R],w=l[R],!n.hasOwnProperty(R)||M===w||M===void 0&&w===void 0||kr(e,t,R,M,n,w);return}}for(var T in l)M=l[T],l.hasOwnProperty(T)&&M!=null&&!n.hasOwnProperty(T)&&ze(e,t,T,null,n,M);for(X in n)M=n[X],w=l[X],!n.hasOwnProperty(X)||M===w||M==null&&w==null||ze(e,t,X,M,n,w)}function i1(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,s=a.initiatorType,x=a.duration;if(u&&x&&i1(s)){for(s=0,x=a.responseEnd,n+=1;n<l.length;n++){var y=l[n],F=y.startTime;if(F>x)break;var R=y.transferSize,X=y.initiatorType;R&&i1(X)&&(y=y.responseEnd,s+=R*(y<x?1:(x-F)/(y-F)))}if(--n,t+=8*(u+s)/(a.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 Tr=null,Fr=null;function Su(e){return e.nodeType===9?e:e.ownerDocument}function c1(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 s1(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 r1(e,t,l,n){return l=Su(l).createElement(e),l[nt]=n,l[vt]=t,st(l,e,t),Pe(l),l}function Dr(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 Br=null;function Gg(){var e=window.event;return e&&e.type==="popstate"?e===Br?!1:(Br=e,!0):(Br=null,!1)}var Or=typeof setTimeout=="function"?setTimeout:void 0,Yg=typeof clearTimeout=="function"?clearTimeout:void 0,f1=typeof Promise=="function"?Promise:void 0,o1=typeof requestAnimationFrame=="function"?requestAnimationFrame:Or,Xg=typeof queueMicrotask=="function"?queueMicrotask:typeof f1<"u"?function(e){return f1.resolve(null).then(e).catch(Qg)}:Or;function Qg(e){setTimeout(function(){throw e})}function Il(e){return e==="head"}function d1(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),ka(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Ur(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ur(l);for(var u=l.firstChild;u;){var s=u.nextSibling,x=u.nodeName;u[Ua]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&Ur(e.ownerDocument.body);l=a}while(l);ka(t)}function x1(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function h1(e,t,l){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(t=e.getClientRects(),t.length===1)var n=1;else for(var a=n=0;a<t.length;a++){var u=t[a];0<u.width&&0<u.height&&n++}n===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function m1(e,t){e=e.style,t=t.style;var l=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(l=t.display,e.display=l==null||typeof l=="boolean"?"":l,l=t.margin,l!=null?e.margin=l:(l=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Vg(e,t,l){return l=l.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function jr(e){var t=e.getBoundingClientRect(),l=getComputedStyle(e);return Vg(t,l,e)}function Zg(e){return e.documentElement.clientHeight}function Kg(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Jg(e,t,l,n,a,u,s,x,y){var F=t.nodeType===9?t:t.ownerDocument;try{var R=F.startViewTransition({update:function(){var M=F.defaultView,w=M.navigation&&M.navigation.transition,ue=F.fonts.status;n();var oe=[];if(ue==="loaded"&&(Zg(F),F.fonts.status==="loading"&&oe.push(F.fonts.ready)),ue=oe.length,e!==null)for(var Ne=e.suspenseyImages,T=0,C=0;C<Ne.length;C++){var O=Ne[C];if(!O.complete){var G=O.getBoundingClientRect();if(0<G.bottom&&0<G.right&&G.top<M.innerHeight&&G.left<M.innerWidth){if(T+=_1(O),T>ec){oe.length=ue;break}O=new Promise(Kg.bind(O)),oe.push(O)}}}if(0<oe.length)return M=Promise.race([Promise.all(oe),new Promise(function(ce){return setTimeout(ce,500)})]).then(a,a),(w?Promise.allSettled([w.finished,M]):M).then(u,u);if(a(),w)return w.finished.then(u,u);u()},types:l});F.__reactViewTransition=R;var X=[];return R.ready.then(function(){for(var M=F.documentElement.getAnimations({subtree:!0}),w=0;w<M.length;w++){var ue=M[w],oe=ue.effect,Ne=oe.pseudoElement;if(Ne!=null&&Ne.startsWith("::view-transition")){X.push(ue),ue=oe.getKeyframes();for(var T=Ne=void 0,C=!0,O=0;O<ue.length;O++){var G=ue[O],ce=G.width;if(Ne===void 0)Ne=ce;else if(Ne!==ce){C=!1;break}if(ce=G.height,T===void 0)T=ce;else if(T!==ce){C=!1;break}delete G.width,delete G.height,G.transform==="none"&&delete G.transform}C&&Ne!==void 0&&T!==void 0&&(oe.setKeyframes(ue),C=getComputedStyle(oe.target,oe.pseudoElement),C.width!==Ne||C.height!==T)&&(C=ue[0],C.width=Ne,C.height=T,C=ue[ue.length-1],C.width=Ne,C.height=T,oe.setKeyframes(ue))}}s()},function(M){F.__reactViewTransition===R&&(F.__reactViewTransition=null);try{if(typeof M=="object"&&M!==null)switch(M.name){case"InvalidStateError":(M.message==="View transition was skipped because document visibility state is hidden."||M.message==="Skipping view transition because document visibility state has become hidden."||M.message==="Skipping view transition because viewport size changed."||M.message==="Transition was aborted because of invalid state")&&(M=null)}M!==null&&y(M)}finally{n(),a(),s()}}),R.finished.finally(function(){for(var M=0;M<X.length;M++)X[M].cancel();F.__reactViewTransition===R&&(F.__reactViewTransition=null),x()}),R}catch{return n(),a(),s(),null}}function Bn(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Bn.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:L({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Bn.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,l=e.getAnimations({subtree:!0}),n=[],a=0;a<l.length;a++){var u=l[a].effect;u!==null&&u.target===e&&u.pseudoElement===t&&n.push(l[a])}return n},Bn.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function g1(e){return{name:e,group:new Bn("group",e),imagePair:new Bn("image-pair",e),old:new Bn("old",e),new:new Bn("new",e)}}function wt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}wt.prototype.addEventListener=function(e,t,l){var n=null,a=null;if(!(l!=null&&typeof l!="boolean"&&(n=l.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(b1(u,e,t,l)===-1){var s=this,x=t;l!=null&&typeof l!="boolean"&&l.once===!0&&(x=function(y){s.removeEventListener(e,t,l),typeof t=="function"?t.call(this,y):t.handleEvent(y)}),n!==null&&(a=s.removeEventListener.bind(s,e,t,l),n.addEventListener("abort",a,{once:!0}),a=n.removeEventListener.bind(n,"abort",a)),n=Na(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:x,cleanup:a}),m(this._fragmentFiber.child,!1,Wg,e,x,n)}this._eventListeners=u}};function Wg(e,t,l,n){return q(e).addEventListener(t,l,n),!1}wt.prototype.removeEventListener=function(e,t,l){var n=this._eventListeners;if(n!==null&&(t=b1(n,e,t,l),t!==-1)){var a=n[t];l=a.attachedListener;var u=a.cleanup;a=Na(a.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Ig,e,l,a),n.splice(t,1),u!==null&&u()}};function Ig(e,t,l,n){return q(e).removeEventListener(t,l,n),!1}function Na(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function v1(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function b1(e,t,l,n){if(e.length===0)return-1;n=v1(n);for(var a=0;a<e.length;a++){var u=e[a];if(u.type===t&&u.listener===l&&v1(u.optionsOrUseCapture)===n)return a}return-1}wt.prototype.dispatchEvent=function(e){var t=S(this._fragmentFiber);if(t===null)return!0;t=q(t);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var n=t.nodeType===9?t.createComment(""):document.createTextNode("");if(l)for(var a=0;a<l.length;a++){var u=l[a];n.addEventListener(u.type,u.attachedListener,Na(u.optionsOrUseCapture))}if(t.appendChild(n),e=n.dispatchEvent(e),l)for(a=0;a<l.length;a++)u=l[a],n.removeEventListener(u.type,u.attachedListener,Na(u.optionsOrUseCapture));return t.removeChild(n),e}return t.dispatchEvent(e)},wt.prototype.focus=function(e){m(this._fragmentFiber.child,!0,p1,e,void 0,void 0)};function p1(e,t){return e.tag===6?!1:(e=q(e),r2(e,t))}wt.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,wr,t,void 0,void 0);for(var l=t.length-1;0<=l&&!p1(t[l],e);l--);};function wr(e,t){return t.push(e),!1}wt.prototype.blur=function(){var e=S(this._fragmentFiber);e!==null&&(e=q(e),e=Su(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,$g,e,void 0,void 0))};function $g(e,t){return e.tag===6?!1:(e=q(e),e===t||e.contains(t)?(t.blur(),!0):!1)}wt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Pg,e,void 0,void 0)};function Pg(e,t){return e.tag===6||(e=q(e),t.observe(e)),!1}wt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,e2,e,void 0,void 0);for(var l=t=0;l<Wt.length;l++){var n=Wt[l];n.fragmentInstance===this&&n.observer===e?e.unobserve(n.instance):Wt[t++]=n}Wt.length=t}};function e2(e,t){return e.tag===6||(e=q(e),t.unobserve(e)),!1}var Wt=[],zr=!1;function t2(e,t,l){Wt.push({fragmentInstance:e,observer:t,instance:l}),zr||(zr=!0,f2(function(){zr=!1;var n=Wt;Wt=[];for(var a=0;a<n.length;a++){var u=n[a];u.observer.unobserve(u.instance)}}))}wt.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,l2,e,void 0,void 0),e};function l2(e,t){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),t.push.apply(t,l.getClientRects())}else e=q(e),t.push.apply(t,e.getClientRects());return!1}wt.prototype.getRootNode=function(e){var t=S(this._fragmentFiber);return t===null?this:q(t).getRootNode(e)},wt.prototype.compareDocumentPosition=function(e){var t=S(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];m(this._fragmentFiber.child,!1,wr,l,void 0,void 0);var n=q(t);if(l.length===0){if(l=n,k(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(l=t)}t=this._fragmentFiber;var a=n=l.compareDocumentPosition(e);return l===e?a=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=Y(t)[1],l===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=q(l).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=q(l[0]),a=q(l[l.length-1]);var u=k(this._fragmentFiber)?t.parentElement:n;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=u.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var s=t.compareDocumentPosition(e),x=a.compareDocumentPosition(e),y=s&Node.DOCUMENT_POSITION_CONTAINED_BY||x&Node.DOCUMENT_POSITION_CONTAINED_BY;return x=n&&u&&s&Node.DOCUMENT_POSITION_FOLLOWING&&x&Node.DOCUMENT_POSITION_PRECEDING,t=n&&t===e||u&&a===e||y||x?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&t===e||!u&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:s,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||n2(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function n2(e,t,l,n,a){var u=fn(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)e:{for(;u!==null;){if(u.tag===7&&(u===t||u.alternate===t)){l=!0;break e}u=u.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=a.ownerDocument,a===u||a===u.documentElement||a===u.body;e:{for(u=t,t=S(t);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==t&&u.alternate!==t)){u=!0;break e}u=u.return}u=!1}return u}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!u)&&!(t=u===l)&&(t=E(l,u,Z),t===null?t=!1:(m(t,!0,ee,u,l),u=W,W=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===n)&&(t=E(n,u,Z),t===null?t=!1:(m(t,!0,ne,u,n),u=W,Q=W=null,t=u!==null)),t):!1}function y1(e,t){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}wt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(f(566));var t=[];m(this._fragmentFiber.child,!1,wr,t,void 0,void 0);var l=e!==!1;if(t.length===0){var n=Y(this._fragmentFiber);if(n=l?n[1]||n[0]||S(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){e=q(n),y1(e,l);return}if(n=q(n),n.nodeType!==9){if(n.nodeType===11){l="host"in n?n.host:null,l!==null&&l.scrollIntoView(e);return}n.scrollIntoView(e)}}for(n=l?t.length-1:0;n!==(l?-1:t.length);){var a=t[n];a.tag===6?(a=q(a),y1(a,l)):q(a).scrollIntoView(e),n+=l?-1:1}};function a2(e,t){return e=q(e),N1(e,t),!1}function N1(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function S1(e,t){var l=t._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];e.addEventListener(a.type,a.attachedListener,Na(a.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){for(var s=0,x=0;x<Wt.length;x++){var y=Wt[x];(y.fragmentInstance!==t||y.observer!==u||y.instance!==e)&&(Wt[s++]=y)}Wt.length=s,u.observe(e)}),N1(e,t))}function u2(e,t){var l=t._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];e.removeEventListener(a.type,a.attachedListener,Na(a.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?t2(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function _r(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":_r(l),Gu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function i2(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Ua])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function c2(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Gt(e.nextSibling),e===null))return null;return e}function E1(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function Rr(e){return e.data==="$?"||e.data==="$~"}function Lr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function s2(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Gt(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 Hr=null;function A1(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Gt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function C1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function r2(e,t){function l(){n=!0}if(e.ownerDocument.activeElement===e)return!0;var n=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return n}function f2(e){o1(function(){o1(function(t){return e(t)})})}function M1(e,t,l){switch(t=Su(l),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function k1(e,t,l){for(var n in l){var a=l[n];l.hasOwnProperty(n)&&a!=null&&ze(e,t,n,null,Hg,a)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===el&&(e.onclick=null),Gu(e)}function Ur(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gu(e)}var Yt=new Map,T1=new Set;function Eu(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Tl=de.d;de.d={f:o2,r:d2,D:x2,C:h2,L:m2,m:g2,X:b2,S:v2,M:p2};function o2(){var e=Tl.f(),t=Qi();return e||t}function d2(e){var t=Un(e);t!==null&&t.tag===5&&t.type==="form"?D0(t):Tl.r(e)}var Sa=typeof document>"u"?null:document;function F1(e,t,l){var n=Sa;if(n&&typeof t=="string"&&t){var a=zt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),T1.has(a)||(T1.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),st(t,"link",e),Pe(t),n.head.appendChild(t)))}}function x2(e){Tl.D(e),F1("dns-prefetch",e,null)}function h2(e,t){Tl.C(e,t),F1("preconnect",e,t)}function m2(e,t,l){Tl.L(e,t,l);var n=Sa;if(n&&e&&t){var a='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+zt(l.imageSizes)+'"]')):a+='[href="'+zt(e)+'"]';var u=a;switch(t){case"style":u=Ea(e);break;case"script":u=Aa(e)}if(!(Yt.has(u)||(e=L({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Yt.set(u,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Au(u))||t==="script"&&n.querySelector(Cu(u))))){var s=n.createElement("link");st(s,"link",e),t==="style"&&(s[qu]=!0,s.onload=s.onerror=function(){qf(s)}),Pe(s),n.head.appendChild(s)}}}function g2(e,t){Tl.m(e,t);var l=Sa;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+zt(n)+'"][href="'+zt(e)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Aa(e)}if(!Yt.has(u)&&(e=L({rel:"modulepreload",href:e},t),Yt.set(u,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Cu(u)))return}n=l.createElement("link"),st(n,"link",e),Pe(n),l.head.appendChild(n)}}}function v2(e,t,l){Tl.S(e,t,l);var n=Sa;if(n&&e){var a=qn(n).hoistableStyles,u=Ea(e);t=t||"default";var s=a.get(u);if(!s){var x={loading:0,preload:null};if(s=n.querySelector(Au(u)))x.loading=5;else{e=L({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Yt.get(u))&&qr(e,l);var y=s=n.createElement("link");Pe(y),st(y,"link",e),y._p=new Promise(function(F,R){y.onload=F,y.onerror=R}),y.addEventListener("load",function(){x.loading|=1}),y.addEventListener("error",function(){x.loading|=2}),x.loading|=4,$i(s,t,n)}s={type:"stylesheet",instance:s,count:1,state:x},a.set(u,s)}}}function b2(e,t){Tl.X(e,t);var l=Sa;if(l&&e){var n=qn(l).hoistableScripts,a=Aa(e),u=n.get(a);u||(u=l.querySelector(Cu(a)),u||(e=L({src:e,async:!0},t),(t=Yt.get(a))&&Gr(e,t),u=l.createElement("script"),Pe(u),st(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function p2(e,t){Tl.M(e,t);var l=Sa;if(l&&e){var n=qn(l).hoistableScripts,a=Aa(e),u=n.get(a);u||(u=l.querySelector(Cu(a)),u||(e=L({src:e,async:!0,type:"module"},t),(t=Yt.get(a))&&Gr(e,t),u=l.createElement("script"),Pe(u),st(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function D1(e,t,l,n){var a=(a=dl.current)?Eu(a):null;if(!a)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Ea(l.href),t=qn(a).hoistableStyles,n=t.get(l),n||(n={type:"style",instance:null,count:0,state:null},t.set(l,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ea(l.href);var u=qn(a).hoistableStyles,s=u.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),(u=a.querySelector(Au(e)))?u._p||(s.instance=u,s.state.loading=5):(u=Yt.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Yt.set(e,u)),y2(a,e,u,s.state))),t&&n===null)throw Error(f(528,""));return s}if(t&&n!==null)throw Error(f(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=Aa(l),t=qn(a).hoistableScripts,n=t.get(l),n||(n={type:"script",instance:null,count:0,state:null},t.set(l,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function Ea(e){return'href="'+zt(e)+'"'}function Au(e){return'link[rel="stylesheet"]['+e+"]"}function B1(e){return L({},e,{"data-precedence":e.precedence,precedence:null})}function y2(e,t,l,n){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[qu]!==!0){n.loading=1;return}}else t=e.createElement("link"),t[qu]=!0,t.onload=t.onerror=qf.bind(null,t),st(t,"link",l),Pe(t),e.head.appendChild(t);n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2})}function Aa(e){return'[src="'+zt(e)+'"]'}function Cu(e){return"script[async]"+e}function O1(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+zt(l.href)+'"]');if(n)return t.instance=n,Pe(n),n;var a=L({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Pe(n),st(n,"style",a),$i(n,l.precedence,e),t.instance=n;case"stylesheet":a=Ea(l.href);var u=e.querySelector(Au(a));if(u)return t.state.loading|=4,t.instance=u,Pe(u),u;n=B1(l),(a=Yt.get(a))&&qr(n,a),u=(e.ownerDocument||e).createElement("link"),Pe(u);var s=u;return s._p=new Promise(function(x,y){s.onload=x,s.onerror=y}),st(u,"link",n),t.state.loading|=4,$i(u,l.precedence,e),t.instance=u;case"script":return u=Aa(l.src),(a=e.querySelector(Cu(u)))?(t.instance=a,Pe(a),a):(n=l,(a=Yt.get(u))&&(n=L({},l),Gr(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Pe(a),st(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,$i(n,l.precedence,e));return t.instance}function $i(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,s=0;s<n.length;s++){var x=n[s];if(x.dataset.precedence===t)u=x;else if(u!==a)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function qr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Gr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pi=null;function j1(e,t,l){if(Pi===null){var n=new Map,a=Pi=new Map;a.set(l,n)}else a=Pi,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var u=l[a];if(!(u[Ua]||u[nt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(t)||"";s=e+s;var x=n.get(s);x?x.push(u):n.set(s,[u])}}return n}function Yr(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function N2(e,t,l){if(l===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 w1(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function z1(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _1(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function R1(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=_1(t),e.suspenseyImages.push(t)),e=A2.bind(e),t.decode().then(e,e))}function S2(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Ea(n.href),u=t.querySelector(Au(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Mu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Pe(u);return}u=t.ownerDocument||t,n=B1(n),(a=Yt.get(a))&&qr(n,a),u=u.createElement("link"),Pe(u);var s=u;s._p=new Promise(function(x,y){s.onload=x,s.onerror=y}),st(u,"link",n),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Mu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ec=0;function E2(e,t){return e.stylesheets&&e.count===0&&lc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&ec===0&&(ec=62500*qg());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>ec?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function L1(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lc(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Mu(){this.count--,L1(this)}function A2(){this.imgCount--,L1(this)}var tc=null;function lc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tc=new Map,t.forEach(C2,e),tc=null,Mu.call(e))}function C2(e,t){if(!(t.state.loading&4)){var l=tc.get(e);if(l)var n=l.get(null);else{l=new Map,tc.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var s=a[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),n=s)}n&&l.set(null,n)}a=t.instance,s=a.getAttribute("data-precedence"),u=l.get(s)||n,u===n&&l.set(null,a),l.set(s,a),this.count++,n=Mu.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ca={$$typeof:j,Provider:null,Consumer:null,_currentValue:qe,_currentValue2:qe,_threadCount:0};function M2(e,t,l,n,a,u,s,x,y){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=Ec(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ec(0),this.hiddenUpdates=Ec(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.transitionTypes=null,this.incompleteTransitions=new Map}function H1(e,t,l,n,a,u,s,x,y,F,R,X){return e=new M2(e,t,l,s,y,F,R,X,x),t=1,u===!0&&(t|=24),u=bt(3,null,null,t),e.current=u,u.stateNode=e,t=as(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:t},ss(u),e}function U1(e){return e?(e=In,e):In}function q1(e,t,l,n,a,u){a=U1(a),n.context===null?n.context=a:n.pendingContext=a,n=Hl(t),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=Ul(e,n,t),l!==null&&(St(l,e,t),nu(l,e,t))}function G1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Xr(e,t){G1(e,t),(e=e.alternate)&&G1(e,t)}function Y1(e){if(e.tag===13||e.tag===31){var t=hn(e,67108864);t!==null&&St(t,e,67108864),Xr(e,67108864)}}function X1(e){if(e.tag===13||e.tag===31){var t=jt();t=Ac(t);var l=hn(e,t);l!==null&&St(l,e,t),Xr(e,t)}}var Ma=!0;function k2(e,t,l,n){var a=ie.T;ie.T=null;var u=de.p;try{de.p=2,Qr(e,t,l,n)}finally{de.p=u,ie.T=a}}function T2(e,t,l,n){var a=ie.T;ie.T=null;var u=de.p;try{de.p=8,Qr(e,t,l,n)}finally{de.p=u,ie.T=a}}function Qr(e,t,l,n){if(Ma){var a=Vr(n);if(a===null)Mr(e,t,n,nc,l),V1(e,n);else if(D2(a,e,t,l,n))n.stopPropagation();else if(V1(e,n),t&4&&-1<F2.indexOf(e)){for(;a!==null;){var u=Un(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=rn(u.pendingLanes);if(s!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;s;){var y=1<<31-Mt(s);x.entanglements[1]|=y,s&=~y}fl(u),(Be&6)===0&&(Gi=At()+500,pu(0))}}break;case 31:case 13:x=hn(u,2),x!==null&&St(x,u,2),Qi(),Xr(u,2)}if(u=Vr(n),u===null&&Mr(e,t,n,nc,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else Mr(e,t,n,null,l)}}function Vr(e){return e=Bc(e),Zr(e)}var nc=null;function Zr(e){if(nc=null,e=fn(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=b(t),e!==null)return e;e=null}else if(l===31){if(e=N(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nc=e,null}function Q1(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(qh()){case Ff:return 2;case Df:return 8;case _u:case Gh:return 32;case Bf:return 268435456;default:return 32}default:return 32}}var Kr=!1,$l=null,Pl=null,en=null,ku=new Map,Tu=new Map,tn=[],F2="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 V1(e,t){switch(e){case"focusin":case"focusout":$l=null;break;case"dragenter":case"dragleave":Pl=null;break;case"mouseover":case"mouseout":en=null;break;case"pointerover":case"pointerout":ku.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tu.delete(t.pointerId)}}function Fu(e,t,l,n,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},t!==null&&(t=Un(t),t!==null&&Y1(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function D2(e,t,l,n,a){switch(t){case"focusin":return $l=Fu($l,e,t,l,n,a),!0;case"dragenter":return Pl=Fu(Pl,e,t,l,n,a),!0;case"mouseover":return en=Fu(en,e,t,l,n,a),!0;case"pointerover":var u=a.pointerId;return ku.set(u,Fu(ku.get(u)||null,e,t,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,Tu.set(u,Fu(Tu.get(u)||null,e,t,l,n,a)),!0}return!1}function Z1(e){var t=fn(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=b(l),t!==null){e.blockedOn=t,Lf(e.priority,function(){X1(l)});return}}else if(t===31){if(t=N(l),t!==null){e.blockedOn=t,Lf(e.priority,function(){X1(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ac(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Vr(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);Dc=n,l.target.dispatchEvent(n),Dc=null}else return t=Un(l),t!==null&&Y1(t),e.blockedOn=l,!1;t.shift()}return!0}function K1(e,t,l){ac(e)&&l.delete(t)}function B2(){Kr=!1,$l!==null&&ac($l)&&($l=null),Pl!==null&&ac(Pl)&&(Pl=null),en!==null&&ac(en)&&(en=null),ku.forEach(K1),Tu.forEach(K1)}function uc(e,t){e.blockedOn===t&&(e.blockedOn=null,Kr||(Kr=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,B2)))}var ic=null;function J1(e){ic!==e&&(ic=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ic===e&&(ic=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(Zr(n||l)===null)continue;break}var u=Un(l);u!==null&&(e.splice(t,3),t-=3,Fs(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function ka(e){function t(y){return uc(y,e)}$l!==null&&uc($l,e),Pl!==null&&uc(Pl,e),en!==null&&uc(en,e),ku.forEach(t),Tu.forEach(t);for(var l=0;l<tn.length;l++){var n=tn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<tn.length&&(l=tn[0],l.blockedOn===null);)Z1(l),l.blockedOn===null&&tn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],s=a[vt]||null;if(typeof u=="function")s||J1(l);else if(s){var x=null;if(u&&u.hasAttribute("formAction")){if(a=u,s=u[vt]||null)x=s.formAction;else if(Zr(a)!==null)continue}else x=s.action;typeof x=="function"?l[n+1]=x:(l.splice(n,3),n-=3),J1(l)}}}function W1(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return a=s})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Jr(e){this._internalRoot=e}cc.prototype.render=Jr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var l=t.current,n=jt();q1(l,n,e,t,null,null)},cc.prototype.unmount=Jr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;q1(e.current,2,null,e,null,null),Qi(),t[Hn]=null}};function cc(e){this._internalRoot=e}cc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<tn.length&&t!==0&&t<tn[l].priority;l++);tn.splice(l,0,e),l===0&&Z1(e)}};var I1=c.version;if(I1!=="19.3.0")throw Error(f(527,I1,"19.3.0"));de.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=v(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var O2={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:ie,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{Ra=sc.inject(O2),Ct=sc}catch{}}return Ou.createRoot=function(e,t){if(!d(e))throw Error(f(299));var l=!1,n="",a=U0,u=q0,s=G0;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=H1(e,1,!1,null,null,l,n,null,a,u,s,W1),e[Hn]=t.current,Cr(e),new Jr(t)},Ou.hydrateRoot=function(e,t,l){if(!d(e))throw Error(f(299));var n=!1,a="",u=U0,s=q0,x=G0,y=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(x=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=H1(e,1,!0,t,l??null,n,a,y,u,s,x,W1),t.context=U1(null),l=t.current,n=jt(),n=Ac(n),a=Hl(n),a.callback=null,Ul(l,a,n),l=n,t.current.lanes=l,Ha(t,l),fl(t),e[Hn]=t.current,Cr(e),new cc(t)},Ou.version="19.3.0",Ou}var dx;function Q2(){if(dx)return $r.exports;dx=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),$r.exports=X2(),$r.exports}var V2=Q2();const Z2=zx(V2);/**
50
+ * @license lucide-react v1.55.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const K2=i=>i==null?void 0:i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
55
+ * @license lucide-react v1.55.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */function J2(i,c,r=[]){if(c==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:K2(i),size:24,node:c,...r.length>0?{aliases:r}:{}}}/**
60
+ * @license lucide-react v1.55.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const W2=i=>{let c="",r=!1;for(const f of i){if(f==="-"||f==="_"||f<=" "){r=c.length>0;continue}c.length===0?c+=f.toLowerCase():c+=r?f.toUpperCase():f,r=!1}return c};/**
65
+ * @license lucide-react v1.55.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const I2=i=>{const c=W2(i);return c.charAt(0).toUpperCase()+c.slice(1)};/**
70
+ * @license lucide-react v1.55.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const xf=(...i)=>i.filter((c,r,f)=>!!c&&c.trim()!==""&&f.indexOf(c)===r).join(" ").trim();/**
75
+ * @license lucide-react v1.55.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const On={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
80
+ * @license lucide-react v1.55.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */function lf(i){return i!=null}function $2(i,c={}){var S,k;const r=c.attributeNames??{},f=Y=>r[Y]??Y,d=i.size??i.width??On.width,h=i.size??i.height??On.height,b=((S=i.aliases)==null?void 0:S.filter(Y=>typeof Y=="string"&&Y.trim()!=="").map(Y=>`lucide-${Y}`))??[],N=[...i.name?[`lucide-${i.name}`]:[],...b],p=((k=c.className)==null?void 0:k.split(" ").filter(Boolean))??[],v=c.includeDefaultClasses===!1?xf(...p):xf("lucide",...N,...p),g=c.absoluteStrokeWidth?Number(c.strokeWidth??On["stroke-width"])*Number(i.size??i.width??On.width)/Number(c.size??c.width??On.width):c.strokeWidth??On["stroke-width"];return["svg",{...Object.entries(On).reduce((Y,[J,q])=>(Y[f(J)]=q,Y),{}),..."color"in c&&c.color&&{[f("stroke")]:c.color},..."size"in c&&lf(c.size)&&{[f("width")]:c.size,[f("height")]:c.size},..."width"in c&&lf(c.width)&&{[f("width")]:c.width},..."height"in c&&lf(c.height)&&{[f("height")]:c.height},[f("stroke-width")]:g,...v&&{[f("class")]:v},[f("viewBox")]:`0 0 ${d} ${h}`,...c.hasA11yProp===!1?{[f("aria-hidden")]:"true"}:{},..."attributes"in c&&c.attributes},i.node.map(Y=>{const[J,q,W]=Y,Q=c.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...q}:q;return W?[J,Q,W]:[J,Q]})]}/**
85
+ * @license lucide-react v1.55.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */function P2(i,c={}){return $2(i,{...c,attributeNames:{...c.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
90
+ * @license lucide-react v1.55.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const ev=i=>{for(const c in i)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1},tv=ge.createContext({}),lv=()=>ge.useContext(tv),nv=ge.forwardRef(({color:i,size:c,width:r,height:f,strokeWidth:d,absoluteStrokeWidth:h,nonScalingStroke:b,className:N="",children:p,iconNode:v=[],icon:g={node:v,aliases:[],size:24},...m},S)=>{const{size:k=24,strokeWidth:Y=2,absoluteStrokeWidth:J=!1,nonScalingStroke:q=!1,color:W="currentColor",className:Q=""}=lv()??{},ee=!!p||ev(m),[ne,Z,E=[]]=P2(g,{color:i??W,width:r??c??k,height:f??c??k,strokeWidth:d??Y,absoluteStrokeWidth:h??J,nonScalingStroke:b??q,className:xf(Q,N),hasA11yProp:ee,attributes:m});return ge.createElement(ne,{ref:S,...Z},[...E.map(([L,_])=>ge.createElement(L,_)),...Array.isArray(p)?p:[p]])});/**
95
+ * @license lucide-react v1.55.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */function Ee(i,c=[],r=[]){const f=typeof i=="string"?J2(i,c,r):i,d=ge.forwardRef(({className:h,...b},N)=>ge.createElement(nv,{ref:N,icon:f,className:h,...b}));return f.name&&(d.displayName=I2(f.name)),d}/**
100
+ * @license lucide-react v1.55.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const _x={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};_x.node;const av=Ee(_x);/**
105
+ * @license lucide-react v1.55.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const Rx={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]};Rx.node;const uv=Ee(Rx);/**
110
+ * @license lucide-react v1.55.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const Lx={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Lx.node;const iv=Ee(Lx);/**
115
+ * @license lucide-react v1.55.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const Hx={name:"bookmark",size:24,node:[["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"}]]};Hx.node;const cv=Ee(Hx);/**
120
+ * @license lucide-react v1.55.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const Ux={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Ux.node;const qx=Ee(Ux);/**
125
+ * @license lucide-react v1.55.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const Gx={name:"download",size:24,node:[["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"}]]};Gx.node;const sv=Ee(Gx);/**
130
+ * @license lucide-react v1.55.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const Yx={name:"file-text",size:24,node:[["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"}]]};Yx.node;const rv=Ee(Yx);/**
135
+ * @license lucide-react v1.55.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const Xx={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};Xx.node;const fv=Ee(Xx);/**
140
+ * @license lucide-react v1.55.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const Qx={name:"folder-plus",size:24,node:[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};Qx.node;const ov=Ee(Qx);/**
145
+ * @license lucide-react v1.55.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const Vx={name:"heading-2",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]};Vx.node;const dv=Ee(Vx);/**
150
+ * @license lucide-react v1.55.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const Zx={name:"heading-1",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]};Zx.node;const xv=Ee(Zx);/**
155
+ * @license lucide-react v1.55.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const Kx={name:"highlighter",size:24,node:[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]]};Kx.node;const hv=Ee(Kx);/**
160
+ * @license lucide-react v1.55.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const Jx={name:"image",size:24,node:[["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"}]]};Jx.node;const mv=Ee(Jx);/**
165
+ * @license lucide-react v1.55.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const Wx={name:"key",size:24,node:[["path",{d:"m2 21 9.6-9.6",key:"9l79m3"}],["path",{d:"m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19",key:"fw8biw"}],["circle",{cx:"15.5",cy:"7.5",r:"5.5",key:"4wxmhb"}]]};Wx.node;const Ix=Ee(Wx);/**
170
+ * @license lucide-react v1.55.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const $x={name:"layers",size:24,node:[["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"}]],aliases:["layers-3"]};$x.node;const gv=Ee($x);/**
175
+ * @license lucide-react v1.55.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const Px={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};Px.node;const vv=Ee(Px);/**
180
+ * @license lucide-react v1.55.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const eh={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};eh.node;const bv=Ee(eh);/**
185
+ * @license lucide-react v1.55.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const th={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};th.node;const pv=Ee(th);/**
190
+ * @license lucide-react v1.55.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const lh={name:"palette",size:24,node:[["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"}]]};lh.node;const yv=Ee(lh);/**
195
+ * @license lucide-react v1.55.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const nh={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};nh.node;const Nv=Ee(nh);/**
200
+ * @license lucide-react v1.55.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const ah={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};ah.node;const uh=Ee(ah);/**
205
+ * @license lucide-react v1.55.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const ih={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};ih.node;const Sv=Ee(ih);/**
210
+ * @license lucide-react v1.55.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const ch={name:"rows-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],aliases:["rows"]};ch.node;const Ev=Ee(ch);/**
215
+ * @license lucide-react v1.55.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const sh={name:"shield-check",size:24,node:[["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"}]]};sh.node;const Av=Ee(sh);/**
220
+ * @license lucide-react v1.55.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const rh={name:"shield",size:24,node:[["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"}]]};rh.node;const Cv=Ee(rh);/**
225
+ * @license lucide-react v1.55.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const fh={name:"sliders-vertical",size:24,node:[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],aliases:["sliders"]};fh.node;const Mv=Ee(fh);/**
230
+ * @license lucide-react v1.55.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const oh={name:"sparkles",size:24,node:[["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"}]],aliases:["stars"]};oh.node;const hf=Ee(oh);/**
235
+ * @license lucide-react v1.55.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const dh={name:"star",size:24,node:[["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"}]]};dh.node;const nf=Ee(dh);/**
240
+ * @license lucide-react v1.55.0 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const xh={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};xh.node;const kv=Ee(xh);/**
245
+ * @license lucide-react v1.55.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const hh={name:"text-align-end",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],aliases:["align-right"]};hh.node;const Tv=Ee(hh);/**
250
+ * @license lucide-react v1.55.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const mh={name:"text-align-center",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],aliases:["align-center"]};mh.node;const Fv=Ee(mh);/**
255
+ * @license lucide-react v1.55.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const gh={name:"text-align-start",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],aliases:["text","align-left"]};gh.node;const Dv=Ee(gh);/**
260
+ * @license lucide-react v1.55.0 - ISC
261
+ *
262
+ * This source code is licensed under the ISC license.
263
+ * See the LICENSE file in the root directory of this source tree.
264
+ */const vh={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};vh.node;const bh=Ee(vh);/**
265
+ * @license lucide-react v1.55.0 - ISC
266
+ *
267
+ * This source code is licensed under the ISC license.
268
+ * See the LICENSE file in the root directory of this source tree.
269
+ */const ph={name:"type",size:24,node:[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]};ph.node;const Bv=Ee(ph);/**
270
+ * @license lucide-react v1.55.0 - ISC
271
+ *
272
+ * This source code is licensed under the ISC license.
273
+ * See the LICENSE file in the root directory of this source tree.
274
+ */const yh={name:"upload",size:24,node:[["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"}]]};yh.node;const Ov=Ee(yh);/**
275
+ * @license lucide-react v1.55.0 - ISC
276
+ *
277
+ * This source code is licensed under the ISC license.
278
+ * See the LICENSE file in the root directory of this source tree.
279
+ */const Nh={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Nh.node;const Sh=Ee(Nh);/**
280
+ * @license lucide-react v1.55.0 - ISC
281
+ *
282
+ * This source code is licensed under the ISC license.
283
+ * See the LICENSE file in the root directory of this source tree.
284
+ */const Eh={name:"zoom-in",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};Eh.node;const Ah=Ee(Eh);/**
285
+ * @license lucide-react v1.55.0 - ISC
286
+ *
287
+ * This source code is licensed under the ISC license.
288
+ * See the LICENSE file in the root directory of this source tree.
289
+ */const Ch={name:"zoom-out",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};Ch.node;const jv=Ee(Ch),wv=({isOpen:i,onClose:c,currentKey:r,onSaveKey:f,isVerified:d})=>{const[h,b]=ge.useState(r),[N,p]=ge.useState(null);if(!i)return null;const v=()=>{f(h.trim()),p("密钥已更新并保存至本地存储"),setTimeout(()=>{c()},800)};return o.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 dark:bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:o.jsxs("div",{className:"bg-white dark:bg-[#0f0f0f] border border-[#eaeaea] dark:border-[#262626] rounded-xl w-full max-w-md flex flex-col shadow-2xl overflow-hidden animate-in fade-in zoom-in-95 duration-150 transition-colors",children:[o.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 border-b border-[#eaeaea] dark:border-[#222222]",children:[o.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-[#171717] dark:text-white",children:[o.jsx(Ix,{className:"w-4 h-4 text-amber-500 dark:text-amber-400"}),o.jsx("span",{children:"超管密钥授权"})]}),o.jsx("button",{onClick:c,className:"text-[#888888] hover:text-black dark:hover:text-white p-1 rounded-md hover:bg-[#f5f5f5] dark:hover:bg-[#1a1a1a]",children:o.jsx(Sh,{className:"w-4 h-4"})})]}),o.jsxs("div",{className:"p-5 flex flex-col gap-4",children:[o.jsxs("div",{className:"text-xs text-[#666666] dark:text-[#888888] leading-relaxed",children:["服务端默认通过 ",o.jsx("code",{className:"text-black dark:text-[#ededed] font-mono font-semibold",children:"TYPESET_ADMIN_KEY"})," 保护模板持久化、图片上传和无头出图 API。请填入服务启动时控制台打印的管理员密钥。"]}),o.jsxs("div",{className:"flex flex-col gap-1.5",children:[o.jsx("label",{className:"text-[11px] font-mono text-[#888888] dark:text-[#666666]",children:"X-Admin-Key"}),o.jsx("input",{type:"password",value:h,onChange:g=>b(g.target.value),placeholder:"tsk_...",className:"bg-[#fafafa] dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#2a2a2a] rounded-lg px-3 py-2 text-xs font-mono text-black dark:text-white focus:outline-none focus:border-black dark:focus:border-[#444444]"})]}),N?o.jsxs("div",{className:"text-xs text-emerald-700 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-500/10 border border-emerald-200 dark:border-emerald-500/20 px-3 py-2 rounded-lg flex items-center gap-2 font-medium",children:[o.jsx(qx,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:N})]}):d?o.jsxs("div",{className:"text-xs text-emerald-700 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-500/10 border border-emerald-200 dark:border-emerald-500/20 px-3 py-2 rounded-lg flex items-center gap-2 font-medium",children:[o.jsx(Av,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:"密钥已通过验证,拥有超管权限"})]}):o.jsx("div",{className:"text-xs text-amber-700 dark:text-amber-400 bg-amber-50 dark:bg-amber-500/10 border border-amber-200 dark:border-amber-500/20 px-3 py-2 rounded-lg",children:"当前密钥未验证或已失效,请检查后端 .env 配置"}),o.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[o.jsx("button",{onClick:c,className:"px-3 py-1.5 rounded-lg border border-[#eaeaea] dark:border-[#262626] text-xs text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white hover:bg-[#f5f5f5] dark:hover:bg-[#161616]",children:"取消"}),o.jsx("button",{onClick:v,className:"px-4 py-1.5 bg-black text-white hover:bg-[#262626] dark:bg-white dark:text-black dark:hover:bg-[#eaeaea] text-xs font-semibold rounded-lg transition-all btn-vercel",children:"保存并授权"})]})]})]})})},xx={"wechat-cover-2.35":{id:"wechat-cover-2.35",name:"微信文章封面",ratio:2.35,width:2350,height:1e3,description:"微信公众号官方推荐大图封面 (2.35:1),适合主标题视觉张力、副标题与装饰图层",defaultSafeArea:{top:120,right:140,bottom:120,left:140}},"longform-3-4":{id:"longform-3-4",name:"通用长图文",ratio:3/4,width:1080,height:1440,description:"3:4 手机端阅读长文/图文卡片,支持多页分页、矩形图片绕排、目标填充率优化",defaultSafeArea:{top:96,right:88,bottom:96,left:88}},"wide-16-9":{id:"wide-16-9",name:"通用宽屏",ratio:16/9,width:1920,height:1080,description:"16:9 横版宽屏,适合推特/X 动态配图、技术博客 Banner、视频封面与分栏排版",defaultSafeArea:{top:100,right:120,bottom:100,left:120}},"square-1-1":{id:"square-1-1",name:"通用正方形",ratio:1,width:1200,height:1200,description:"1:1 正方形卡片,适合金句名言卡、公众号次条、小红书方图与社交媒体方版海报",defaultSafeArea:{top:100,right:100,bottom:100,left:100}}};function jn(i){return xx[i]??xx["longform-3-4"]}function wn(i,c,r=20){const f=Math.max(100,i.width-c.left-c.right),d=Math.max(100,i.height-c.top-c.bottom-r);return{stageWidth:f,stageHeight:d,stageX:c.left,stageY:c.top}}function zv(i,c=!1){const f=((i||"").split(",")[0]||"").replace(/["'\\]/g,"").trim();return f.includes("Noto Sans")?c?'"Hiragino Sans GB", sans-serif':'"Noto Sans SC", "PingFang SC", sans-serif':f.includes("PingFang")?c?'"Hiragino Sans GB", sans-serif':'"PingFang SC", "Noto Sans SC", sans-serif':f.includes("Noto Serif")?c?'"Songti SC", serif':'"Noto Serif SC", "Songti SC", serif':f.includes("Songti")||f==="STSong"?c?'"Songti SC", serif':'"Songti SC", "Noto Serif SC", serif':f.includes("Kai")||f.includes("WenKai")?c?'"STKaiti", "Kaiti SC", "Songti SC", serif':'"LXGW WenKai GB Screen", "LXGW WenKai Screen", "Kaiti SC", "STKaiti", serif':f.includes("Yuan")?c?'"STYuanti", "Yuanti SC", "Hiragino Sans GB", sans-serif':'"Yuanti SC", "STYuanti", "PingFang SC", sans-serif':f.includes("Inter")?c?'Inter, "Hiragino Sans GB", sans-serif':'Inter, "PingFang SC", sans-serif':f.includes("Georgia")?'Georgia, "Songti SC", serif':f.toLowerCase().includes("serif")||f.includes("Song")?`"${f}", "Songti SC", serif`:c?`"${f}", "Hiragino Sans GB", "PingFang SC", sans-serif`:`"${f}", "PingFang SC", sans-serif`}function ju(i,c=!1){if(!i)return'16px "PingFang SC", sans-serif';const r=i.match(/^(.*?)([\d.]+(?:px|pt|em|rem))\s+(.+)$/);if(!r)return i;const f=r[1],d=r[2],h=r[3];return`${f}${d} ${zv(h,c)}`}async function _v(i,c){var Z,E,L,_;const{page:r,spec:f,config:d,totalPageCount:h=1,getImage:b,isServer:N=!1}=c,{algorithm:p,theme:v,chrome:g}=d;i.save(),i.fillStyle=v.bgColor,i.fillRect(0,0,f.width,f.height),i.restore();const{stageX:m,stageY:S}=wn(f,p.safeArea,p.contentBottomGap),k=d.aspectRatio==="wechat-cover-2.35",Y=(g==null?void 0:g.showHeader)??!k,J=((g==null?void 0:g.showWatermark)??!k)&&!!((Z=d.watermarkText)!=null&&Z.trim()),q=((g==null?void 0:g.showPageNumber)??(!k&&h>1))&&h>1;if(Y&&(J||q)){const z=Math.max(24,Math.floor(p.safeArea.top*.45));if(J&&(i.save(),i.font=ju("600 14px PingFang SC",N),i.fillStyle=v.watermarkColor,i.globalAlpha=.45,i.textBaseline="middle",i.textAlign="left",i.fillText(d.watermarkText.toUpperCase(),p.safeArea.left,z),i.restore()),q){i.save();const I=`P.${String(r.pageNumber).padStart(2,"0")}`;i.font='500 12px "SF Mono", Monaco, Menlo, Consolas, monospace',i.textBaseline="middle",i.textAlign="left";const te=i.measureText(I).width+16,V=24,$=f.width-p.safeArea.right-te,j=z-V/2;i.strokeStyle=v.textColor,i.globalAlpha=.4,i.lineWidth=1,i.beginPath(),i.roundRect($,j,te,V,12),i.stroke(),i.fillStyle=v.textColor,i.fillText(I,$+8,z),i.restore()}}const W=[...r.images||[]].sort((z,I)=>{const B=z.zIndex??(z.isAbsolute?20:5),te=I.zIndex??(I.isAbsolute?20:5);return B-te});for(const z of W){const I=await b(z.src),B=m+z.x,te=S+z.y,V=B+z.width/2,$=te+z.height/2;i.save(),i.translate(V,$),z.rotate&&i.rotate(z.rotate*Math.PI/180),i.globalAlpha=z.opacity??1;const j=z.width,D=z.height,U=Math.min(z.borderRadius??12,j/2,D/2);if(i.beginPath(),i.roundRect(-j/2,-D/2,j,D,U),i.clip(),I?i.drawImage(I,-j/2,-D/2,j,D):(i.fillStyle=v.cardBg||"#222222",i.fillRect(-j/2,-D/2,j,D)),i.restore(),(E=z.caption)!=null&&E.trim()){i.save();const H=Math.max(14,Math.round(p.baseFontSize*.45));i.font=ju(`400 ${H}px PingFang SC`,N),i.fillStyle=v.captionColor,i.textBaseline="top",i.textAlign="center",i.fillText(z.caption,V,te+D+12),i.restore()}}for(const z of r.lines){const I=m+z.x,B=S+z.y;if(z.className==="body-quote"){i.save(),i.fillStyle=v.accentColor,i.globalAlpha=.85,i.beginPath();const V=Math.max(1,z.lineHeight-8);typeof i.roundRect=="function"?i.roundRect(m,B+4,3.5,V,2):i.rect(m,B+4,3.5,V),i.fill(),i.restore()}if(z.bullet&&z.bulletX!==void 0){if(i.save(),i.fillStyle=v.accentColor,z.bullet==="•"){const V=Math.max(3,Math.round(p.baseFontSize*.08)),$=m+z.bulletX+8,j=B+Math.round(z.lineHeight*.42);i.beginPath(),i.arc($,j,V,0,Math.PI*2),i.fill()}else i.font=ju(z.font,N),i.textBaseline="top",i.textAlign="left",i.fillText(z.bullet,m+z.bulletX,B);i.restore()}let te=I;for(const V of z.fragments){const $=V.font||z.font,j=ju($,N);i.font=j,i.textBaseline="top",i.textAlign="left",V.highlight?i.fillStyle=v.accentColor:z.className.includes("heading")?i.fillStyle=v.headingColor||v.textColor:z.className.includes("quote")?i.fillStyle=v.quoteColor||v.textColor:i.fillStyle=v.textColor,i.fillText(V.text,te,B);const D=i.measureText(V.text).width;te+=D+(V.gapBefore||0)}}const Q=(g==null?void 0:g.showFooter)??!k,ee=(g==null?void 0:g.showFooterDivider)??(!k&&!!((L=d.footerText)!=null&&L.trim())),ne=((g==null?void 0:g.showFooterText)??!k)&&!!((_=d.footerText)!=null&&_.trim());if(Q){const z=f.height-Math.max(24,Math.floor(p.safeArea.bottom*.45));ee&&(i.save(),i.strokeStyle=v.borderSubtle||"#e5e5e5",i.lineWidth=1,i.beginPath(),i.moveTo(p.safeArea.left,z-14),i.lineTo(f.width-p.safeArea.right,z-14),i.stroke(),i.restore()),ne&&(i.save(),i.font=ju("500 13px PingFang SC",N),i.fillStyle=v.watermarkColor||v.captionColor,i.globalAlpha=.6,i.textBaseline="middle",i.textAlign="left",i.fillText(d.footerText,p.safeArea.left,z),i.restore())}}const Rv=({page:i,spec:c,config:r,totalPageCount:f,zoom:d})=>{const h=ge.useRef(null);return ge.useEffect(()=>{const b=h.current;if(!b)return;const N=b.getContext("2d");if(!N)return;let p=!1;const v=m=>m?new Promise(S=>{const k=new Image;k.crossOrigin="anonymous",k.onload=()=>{p||S(k)},k.onerror=()=>{const Y=new Image;Y.onload=()=>{p||S(Y)},Y.onerror=()=>{p||S(null)},Y.src=m},k.src=m}):Promise.resolve(null),g=()=>{p||!b||_v(N,{page:i,spec:c,config:r,totalPageCount:f,getImage:v,isServer:!1})};return g(),typeof document<"u"&&document.fonts&&document.fonts.ready.then(()=>{g()}),()=>{p=!0}},[i,c,r,f]),o.jsx("canvas",{id:`typeset-page-${i.pageNumber}`,ref:h,width:c.width,height:c.height,className:"typeset-page absolute top-0 left-0 border border-[#e0e0e0] dark:border-[#222222] shadow-sm select-none",style:{width:c.width*d,height:c.height*d,backgroundColor:r.theme.bgColor}})},Lv=({result:i,zoom:c,viewportRef:r,onAutoFit:f,isAutoFit:d,viewMode:h="grid",onToggleViewMode:b,onFocusPage:N})=>{const{pages:p,canvasSpec:v,config:g}=i;return o.jsxs("main",{ref:r,className:"flex-1 min-w-0 overflow-auto bg-[#f5f5f5] dark:bg-[#050505] bg-grid flex flex-col p-6 select-none relative transition-colors",children:[o.jsxs("div",{className:"sticky top-0 z-20 self-center mb-6 px-3.5 py-1.5 rounded-full bg-white/90 dark:bg-[#111111]/90 backdrop-blur border border-[#eaeaea] dark:border-[#222222] text-[11px] font-mono text-[#666666] dark:text-[#888888] flex items-center gap-2.5 shadow-sm",children:[o.jsx("span",{className:"text-[#171717] dark:text-white font-semibold",children:v.name}),o.jsx("span",{children:"•"}),o.jsxs("span",{children:[v.width," × ",v.height,"px"]}),o.jsx("span",{children:"•"}),o.jsxs("span",{className:"text-black dark:text-white font-medium",children:[p.length," 张图片"]}),p.length>1&&b&&o.jsxs(o.Fragment,{children:[o.jsx("span",{children:"•"}),o.jsxs("div",{className:"flex items-center bg-[#eaeaea] dark:bg-[#1a1a1a] rounded-md p-0.5 border border-[#dfdfdf] dark:border-[#262626]",children:[o.jsxs("button",{onClick:()=>b("grid"),className:`flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium transition-all ${h==="grid"?"bg-white dark:bg-[#2b2b2b] text-black dark:text-white shadow-xs font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,title:"多图瀑布流平铺全览",children:[o.jsx(vv,{className:"w-3 h-3"}),o.jsx("span",{children:"多图平铺"})]}),o.jsxs("button",{onClick:()=>b("stack"),className:`flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium transition-all ${h==="stack"?"bg-white dark:bg-[#2b2b2b] text-black dark:text-white shadow-xs font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,title:"单列纵向逐页滚动",children:[o.jsx(Ev,{className:"w-3 h-3"}),o.jsx("span",{children:"纵向单列"})]})]})]}),f&&o.jsxs(o.Fragment,{children:[o.jsx("span",{children:"•"}),o.jsx("button",{onClick:f,className:`hover:text-black dark:hover:text-white transition-colors underline underline-offset-2 ${d?"text-emerald-600 dark:text-emerald-400 font-semibold":""}`,title:p.length>1?"缩放至视口内完整排列多张图片":"自适应画布比例",children:d?p.length>1?"已平铺适配":"已自适应":p.length>1?"平铺适配":"自适应"})]})]}),o.jsx("div",{className:"min-w-fit w-full flex-1 flex flex-col items-center justify-start pb-32",children:o.jsx("div",{className:`flex items-start justify-center gap-7 transition-all duration-300 ${h==="grid"?"flex-wrap max-w-full":"flex-col items-center"}`,children:p.map(m=>o.jsxs("div",{className:"flex flex-col items-center",children:[p.length>1&&o.jsxs("div",{className:"mb-2 px-2.5 py-1 rounded-md bg-white/90 dark:bg-[#181818]/90 border border-[#eaeaea] dark:border-[#262626] text-[11px] font-mono text-[#666666] dark:text-[#888888] shadow-xs flex items-center justify-between transition-colors",style:{width:v.width*c},children:[o.jsxs("div",{className:"flex items-center gap-1.5 truncate",children:[o.jsxs("span",{className:"font-semibold text-[#171717] dark:text-white",children:["第 ",m.pageNumber," / ",p.length," 页"]}),o.jsx("span",{children:"•"}),o.jsx("span",{className:"truncate",children:v.name})]}),N&&o.jsxs("button",{onClick:S=>{S.stopPropagation(),N(m.pageNumber)},className:"shrink-0 text-[10px] px-1.5 py-0.5 rounded bg-[#f5f5f5] dark:bg-[#242424] hover:bg-[#eaeaea] dark:hover:bg-[#333333] text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium transition-colors flex items-center gap-1 cursor-pointer",title:"放大聚焦此页",children:[o.jsx(Ah,{className:"w-2.5 h-2.5"}),o.jsx("span",{children:"聚焦单图"})]})]}),o.jsx("div",{onDoubleClick:()=>N==null?void 0:N(m.pageNumber),className:"relative shrink-0 shadow-xl dark:shadow-2xl rounded-sm transition-shadow hover:shadow-2xl cursor-pointer",title:p.length>1?"双击放大聚焦此页":void 0,style:{width:v.width*c,height:v.height*c},children:o.jsx(Rv,{page:m,spec:v,config:g,totalPageCount:p.length,zoom:c})})]},m.pageNumber))})})]})},Hv=({markdown:i,onMarkdownChange:c,images:r,onAddImage:f,onUpdateImage:d,onRemoveImage:h,onMoveImage:b,pageCount:N=1,highlightWords:p,onHighlightWordsChange:v,adminKey:g})=>{const[m,S]=ge.useState("text"),[k,Y]=ge.useState(""),J=ge.useRef(null),[q,W]=ge.useState(!1),Q=E=>{c(i?`${i}
290
+
291
+ ${E}`:E)},ee=async E=>{var I;const L=(I=E.target.files)==null?void 0:I[0];if(!L)return;const _=B=>f({src:B,alt:L.name,caption:"",x:40,y:400,width:440,height:300,captionHeight:36,layoutPreset:"auto"}),z=()=>{const B=new FileReader;B.onload=()=>{typeof B.result=="string"&&_(B.result)},B.readAsDataURL(L)};W(!0);try{const B=new FormData;B.append("file",L);const V=await(await fetch("/api/upload",{method:"POST",headers:g?{"x-admin-key":g}:{},body:B})).json();V.ok&&V.url?_(V.url):z()}catch{z()}finally{W(!1),J.current&&(J.current.value="")}},ne=()=>{k.trim()&&(p.includes(k.trim())||v([...p,k.trim()]),Y(""))},Z=E=>{v(p.filter(L=>L!==E))};return o.jsxs("aside",{className:"w-80 border-r border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] flex flex-col shrink-0 select-none transition-colors",children:[o.jsxs("div",{className:"flex border-b border-[#eaeaea] dark:border-[#222222] bg-[#f9f9f9] dark:bg-[#050505] p-1 gap-1",children:[o.jsxs("button",{onClick:()=>S("text"),className:`flex-1 flex items-center justify-center gap-1.5 py-1.5 text-xs rounded font-medium transition-all ${m==="text"?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-[#cccccc]"}`,children:[o.jsx(rv,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:"正文"})]}),o.jsxs("button",{onClick:()=>S("images"),className:`flex-1 flex items-center justify-center gap-1.5 py-1.5 text-xs rounded font-medium transition-all ${m==="images"?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-[#cccccc]"}`,children:[o.jsx(mv,{className:"w-3.5 h-3.5"}),o.jsxs("span",{children:["配图 (",r.length,")"]})]}),o.jsxs("button",{onClick:()=>S("highlights"),className:`flex-1 flex items-center justify-center gap-1.5 py-1.5 text-xs rounded font-medium transition-all ${m==="highlights"?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-[#cccccc]"}`,children:[o.jsx(hv,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:"重点词"})]})]}),m==="text"&&o.jsxs("div",{className:"flex-1 flex flex-col p-3 gap-2 overflow-hidden",children:[o.jsxs("div",{className:"flex items-center gap-1 pb-1 flex-wrap border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[o.jsxs("button",{onClick:()=>Q("# 标题"),className:"px-2 py-1 bg-[#f5f5f5] dark:bg-[#141414] hover:bg-[#eaeaea] dark:hover:bg-[#202020] text-[#555555] dark:text-[#aaaaaa] hover:text-black dark:hover:text-white rounded text-[11px] font-mono flex items-center gap-1 transition-colors",title:"插入主标题",children:[o.jsx(xv,{className:"w-3 h-3"}),o.jsx("span",{children:"H1"})]}),o.jsxs("button",{onClick:()=>Q("## 二级标题"),className:"px-2 py-1 bg-[#f5f5f5] dark:bg-[#141414] hover:bg-[#eaeaea] dark:hover:bg-[#202020] text-[#555555] dark:text-[#aaaaaa] hover:text-black dark:hover:text-white rounded text-[11px] font-mono flex items-center gap-1 transition-colors",title:"插入副标题",children:[o.jsx(dv,{className:"w-3 h-3"}),o.jsx("span",{children:"H2"})]}),o.jsx("button",{onClick:()=>Q("> 引用格言名句..."),className:"px-2 py-1 bg-[#f5f5f5] dark:bg-[#141414] hover:bg-[#eaeaea] dark:hover:bg-[#202020] text-[#555555] dark:text-[#aaaaaa] hover:text-black dark:hover:text-white rounded text-[11px] font-mono transition-colors",title:"插入引用块",children:"Quote"}),o.jsxs("button",{onClick:()=>Q("【第二页】"),className:"px-2 py-1 bg-blue-500/10 hover:bg-blue-500/20 text-blue-600 dark:text-blue-400 rounded text-[11px] font-mono flex items-center gap-1 transition-colors",title:"显式分页标记",children:[o.jsx(gv,{className:"w-3 h-3"}),o.jsx("span",{children:"分页面"})]})]}),o.jsx("textarea",{value:i,onChange:E=>c(E.target.value),placeholder:"在此输入 Markdown 内容,纯算法即时排版...",className:"flex-1 w-full bg-[#fafafa] dark:bg-[#0d0d0d] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-3 text-xs font-mono text-[#171717] dark:text-[#ededed] placeholder-[#999999] dark:placeholder-[#444444] resize-none focus:outline-none focus:border-black dark:focus:border-[#444444] transition-all leading-relaxed"}),o.jsxs("div",{className:"flex items-center justify-between text-[11px] text-[#888888] dark:text-[#555555] font-mono px-1",children:[o.jsxs("span",{children:["字符数: ",i.length]}),o.jsxs("span",{children:["行数: ",i.split(`
292
+ `).length]})]})]}),m==="images"&&o.jsxs("div",{className:"flex-1 flex flex-col p-3 gap-3 overflow-y-auto",children:[o.jsxs("div",{className:"flex gap-2",children:[o.jsx("input",{type:"file",ref:J,onChange:ee,accept:"image/*",className:"hidden"}),o.jsxs("button",{onClick:()=>{var E;return(E=J.current)==null?void 0:E.click()},disabled:q,className:"flex-1 flex items-center justify-center gap-2 py-2.5 rounded-lg border border-dashed border-[#d4d4d4] dark:border-[#333333] hover:border-black dark:hover:border-[#555555] bg-[#fafafa] dark:bg-[#0f0f0f] hover:bg-[#f5f5f5] dark:hover:bg-[#141414] text-xs text-[#555555] dark:text-[#cccccc] hover:text-black dark:hover:text-white transition-all",children:[o.jsx(Ov,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:q?"正在上传...":"上传配图素材"})]}),o.jsx("button",{onClick:()=>f({src:"https://images.unsplash.com/photo-1579783900882-c0d3dad7b119?w=800&auto=format&fit=crop&q=80",alt:"艺术插画",caption:"示例艺术配图",x:36,y:400,width:440,height:300,captionHeight:36,layoutPreset:"auto"}),className:"px-3 py-2.5 rounded-lg border border-[#eaeaea] dark:border-[#222222] bg-[#fafafa] dark:bg-[#0f0f0f] hover:bg-[#f5f5f5] dark:hover:bg-[#141414] text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white transition-all",title:"插入在线示例图",children:o.jsx(Nv,{className:"w-3.5 h-3.5"})})]}),o.jsx("div",{className:"flex flex-col gap-2.5",children:r.length===0?o.jsx("div",{className:"text-center py-8 text-xs text-[#888888] dark:text-[#555555]",children:"暂无配图素材,点击上方按钮上传或插入"}):r.map((E,L)=>o.jsxs("div",{className:"bg-[#fafafa] dark:bg-[#0f0f0f] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-2.5 flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("img",{src:E.src,alt:E.alt,className:"w-12 h-12 object-cover rounded bg-[#eeeeee] dark:bg-[#1a1a1a] border border-[#e5e5e5] dark:border-[#262626] shrink-0"}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[o.jsxs("span",{className:"text-[10px] px-1 rounded bg-[#eaeaea] dark:bg-[#262626] font-mono text-[#555555] dark:text-[#aaaaaa] font-semibold shrink-0",children:["#",L+1]}),o.jsx("span",{className:"text-xs font-medium text-[#171717] dark:text-white truncate max-w-[120px]",children:E.caption||E.alt||`配图 #${L+1}`}),o.jsxs("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20 font-medium shrink-0",children:["第 ",E.pageIndex||1," 页"]})]}),o.jsxs("div",{className:"text-[10px] text-[#888888] dark:text-[#666666] font-mono mt-0.5",children:[E.width," × ",E.height,"px · X: ",E.x??0,", Y: ",E.y??0]})]}),o.jsxs("div",{className:"flex items-center gap-0.5",children:[o.jsx("button",{onClick:()=>b==null?void 0:b(E.id,"up"),disabled:L===0,className:"p-1 text-[#888888] hover:text-black dark:hover:text-white disabled:opacity-20 rounded hover:bg-[#eeeeee] dark:hover:bg-[#1f1f1f]",title:"上移顺序 (调整在同一页中的先后次序)",children:o.jsx(iv,{className:"w-3.5 h-3.5"})}),o.jsx("button",{onClick:()=>b==null?void 0:b(E.id,"down"),disabled:L===r.length-1,className:"p-1 text-[#888888] hover:text-black dark:hover:text-white disabled:opacity-20 rounded hover:bg-[#eeeeee] dark:hover:bg-[#1f1f1f]",title:"下移顺序 (调整在同一页中的先后次序)",children:o.jsx(av,{className:"w-3.5 h-3.5"})}),o.jsx("button",{onClick:()=>h(E.id),className:"p-1 text-[#888888] hover:text-red-500 rounded hover:bg-[#eeeeee] dark:hover:bg-[#1f1f1f]",title:"删除该图",children:o.jsx(bh,{className:"w-3.5 h-3.5"})})]})]}),o.jsxs("div",{className:"flex bg-[#eeeeee] dark:bg-[#1a1a1a] p-0.5 rounded text-[11px] font-medium pt-1 border-t border-[#eeeeee] dark:border-[#1a1a1a]",children:[o.jsx("button",{onClick:()=>d(E.id,{isAbsolute:!1}),className:`flex-1 py-1 rounded transition-all text-center ${E.isAbsolute?"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white":"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold"}`,children:"绕排避让 (Flow)"}),o.jsx("button",{onClick:()=>d(E.id,{isAbsolute:!0,layoutPreset:"custom",zIndex:E.zIndex??15,rotate:E.rotate??0,opacity:E.opacity??1}),className:`flex-1 py-1 rounded transition-all text-center ${E.isAbsolute?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:"自由图层 (Absolute)"})]}),E.isAbsolute?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"text-[10px] text-blue-600 dark:text-blue-400 bg-blue-500/10 p-1.5 rounded flex items-center gap-1 font-medium",children:[o.jsx(hf,{className:"w-3 h-3 shrink-0"}),o.jsx("span",{children:"自由定位图层:脱离文本流,不触发障碍物绕排"})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"所属页面"}),o.jsx("select",{value:E.pageIndex||1,onChange:_=>d(E.id,{pageIndex:parseInt(_.target.value,10)||1}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] focus:outline-none",children:Array.from({length:Math.max(N,2)},(_,z)=>z+1).map(_=>o.jsxs("option",{value:_,children:["第 ",_," 页 ",_===1?"(首页/封面)":""]},_))})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between text-[#666666] mb-1",children:[o.jsx("span",{children:"层级 (Z-Index)"}),o.jsx("span",{className:"font-mono text-black dark:text-white font-semibold",children:E.zIndex??15})]}),o.jsx("div",{className:"flex gap-1",children:[{label:"底",val:0,title:"底层背景"},{label:"文字",val:10,title:"正文同层"},{label:"顶",val:20,title:"置顶贴纸"}].map(_=>o.jsx("button",{onClick:()=>d(E.id,{zIndex:_.val}),title:_.title,className:`flex-1 py-0.5 text-[10px] rounded border ${(E.zIndex??15)===_.val?"bg-black dark:bg-white text-white dark:text-black border-transparent font-bold":"border-[#d4d4d4] dark:border-[#262626] text-[#666666] dark:text-[#888888]"}`,children:_.label},_.val))})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between text-[#666666] mb-1",children:[o.jsxs("span",{className:"flex items-center gap-0.5",children:[o.jsx(Sv,{className:"w-2.5 h-2.5"})," 旋转角度"]}),o.jsxs("span",{className:"font-mono text-black dark:text-white font-semibold",children:[E.rotate??0,"°"]})]}),o.jsx("input",{type:"range",min:"-45",max:"45",step:"1",value:E.rotate??0,onChange:_=>d(E.id,{rotate:parseInt(_.target.value,10)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded cursor-pointer mt-1"})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between text-[#666666] mb-1",children:[o.jsx("span",{children:"不透明度"}),o.jsxs("span",{className:"font-mono text-black dark:text-white font-semibold",children:[Math.round((E.opacity??1)*100),"%"]})]}),o.jsx("input",{type:"range",min:"0.1",max:"1",step:"0.05",value:E.opacity??1,onChange:_=>d(E.id,{opacity:parseFloat(_.target.value)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded cursor-pointer mt-1"})]})]}),o.jsxs("div",{className:"text-[11px]",children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"圆角半径 (px)"}),o.jsx("input",{type:"number",min:"0",step:"4",value:E.borderRadius??12,onChange:_=>d(E.id,{borderRadius:parseInt(_.target.value,10)||0}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"横向 X"}),o.jsx("input",{type:"number",step:"10",value:E.x??0,onChange:_=>d(E.id,{x:parseInt(_.target.value,10)||0}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"纵向 Y"}),o.jsx("input",{type:"number",step:"10",value:E.y??0,onChange:_=>d(E.id,{y:parseInt(_.target.value,10)||0}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"宽度 (W)"}),o.jsx("input",{type:"number",step:"10",value:E.width??420,onChange:_=>d(E.id,{width:Math.max(20,parseInt(_.target.value,10)||20)}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"高度 (H)"}),o.jsx("input",{type:"number",step:"10",value:E.height??280,onChange:_=>d(E.id,{height:Math.max(20,parseInt(_.target.value,10)||20)}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]})]})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"排版预设"}),o.jsxs("select",{value:E.layoutPreset||"auto",onChange:_=>d(E.id,{layoutPreset:_.target.value}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] focus:outline-none",children:[o.jsx("option",{value:"auto",children:"自适应 (Auto)"}),o.jsx("option",{value:"mid-left",children:"居左浮动 (Left)"}),o.jsx("option",{value:"mid-right",children:"居右浮动 (Right)"}),o.jsx("option",{value:"center",children:"居中横幅 (Center)"}),o.jsx("option",{value:"staggered",children:"交错排版 (Staggered)"}),o.jsx("option",{value:"corner-soft",children:"角落软着陆 (Corner)"}),o.jsx("option",{value:"fill",children:"底部填满 (Fill)"}),o.jsx("option",{value:"custom",children:"自定义坐标 (Custom)"})]})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"所属页面"}),o.jsx("select",{value:E.pageIndex||1,onChange:_=>d(E.id,{pageIndex:parseInt(_.target.value,10)||1}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] focus:outline-none",children:Array.from({length:Math.max(N,2)},(_,z)=>z+1).map(_=>o.jsxs("option",{value:_,children:["第 ",_," 页 ",_===1?"(首页/封面)":""]},_))})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"宽度 (W)"}),o.jsx("input",{type:"number",min:"50",step:"10",value:E.width??420,onChange:_=>d(E.id,{width:Math.max(50,parseInt(_.target.value,10)||50)}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"高度 (H)"}),o.jsx("input",{type:"number",min:"50",step:"10",value:E.height??280,onChange:_=>d(E.id,{height:Math.max(50,parseInt(_.target.value,10)||50)}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"纵向位置 Y"}),o.jsx("input",{type:"number",step:"20",value:E.y??300,onChange:_=>d(E.id,{y:parseInt(_.target.value,10)||0,layoutPreset:"custom"}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] block mb-1",children:"横向坐标 X"}),o.jsx("input",{type:"number",step:"10",value:E.x??16,onChange:_=>d(E.id,{x:parseInt(_.target.value,10)||0,layoutPreset:"custom"}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] text-[11px] block mb-1",children:"图片说明 (Caption)"}),o.jsx("input",{type:"text",placeholder:"下方说明文字...",value:E.caption||"",onChange:_=>d(E.id,{caption:_.target.value}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white text-[11px] focus:outline-none"})]})]})]},E.id))})]}),m==="highlights"&&o.jsxs("div",{className:"flex-1 flex flex-col p-3 gap-3 overflow-y-auto",children:[o.jsx("div",{className:"text-xs text-[#666666] dark:text-[#888888] leading-relaxed",children:"在正文中出现的高亮词,将被算法自动匹配并渲染为品牌强调色。"}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("input",{type:"text",placeholder:"新增高亮关键词...",value:k,onChange:E=>Y(E.target.value),onKeyDown:E=>E.key==="Enter"&&ne(),className:"flex-1 bg-white dark:bg-[#0d0d0d] border border-[#d4d4d4] dark:border-[#222222] rounded-lg px-2.5 py-1.5 text-xs text-black dark:text-white placeholder-[#888888] dark:placeholder-[#555555] focus:outline-none focus:border-black dark:focus:border-[#444444]"}),o.jsx("button",{onClick:ne,className:"px-3 py-1.5 bg-black dark:bg-[#1f1f1f] hover:bg-[#262626] text-white rounded-lg text-xs font-medium",children:"添加"})]}),o.jsx("div",{className:"flex flex-wrap gap-1.5 mt-1",children:p.map(E=>o.jsxs("span",{className:"flex items-center gap-1 px-2.5 py-1 rounded-md bg-[#f0fdf4] dark:bg-[#161616] border border-[#bbf7d0] dark:border-[#262626] text-xs text-emerald-700 dark:text-emerald-400 font-medium",children:[o.jsx(hf,{className:"w-3 h-3"}),o.jsx("span",{children:E}),o.jsx("button",{onClick:()=>Z(E),className:"hover:text-red-500 ml-1",children:"×"})]},E))})]})]})},Uv=[{id:"wechat-cover-2.35",label:"微信封面",ratioTag:"2.35:1"},{id:"longform-3-4",label:"通用长图文",ratioTag:"3:4"},{id:"wide-16-9",label:"通用宽屏",ratioTag:"16:9"},{id:"square-1-1",label:"通用正方形",ratioTag:"1:1"}],qv=({currentRatio:i,onSelectRatio:c,zoom:r,onZoomChange:f,onAutoFit:d,isAutoFit:h,onOpenTemplates:b,onOpenAuth:N,onExport:p,isExporting:v,isAuthed:g,pageCount:m,themeMode:S,onToggleThemeMode:k})=>o.jsxs("header",{className:"h-14 border-b border-[#eaeaea] dark:border-[#222222] bg-white/80 dark:bg-[#000000]/80 backdrop-blur-md px-4 flex items-center justify-between select-none z-30 shrink-0 transition-colors",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs("div",{className:"flex items-center gap-2 font-semibold text-[#171717] dark:text-white tracking-tight text-sm",children:[o.jsx("span",{className:"flex items-center justify-center w-6 h-6 rounded bg-black dark:bg-white text-white dark:text-black font-black text-xs shadow-sm",children:"▲"}),o.jsx("span",{children:"Typeset Studio"})]}),o.jsx("span",{className:"text-xs text-[#888888] dark:text-[#555555] font-mono hidden md:inline",children:"v0.2.2"}),o.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-[#f5f5f5] dark:bg-[#111111] border border-[#e5e5e5] dark:border-[#222222] text-[11px] text-emerald-600 dark:text-[#00e676]",children:[o.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 dark:bg-[#00e676] animate-pulse"}),o.jsx("span",{className:"font-mono",children:"Ready"})]})]}),o.jsx("div",{className:"flex items-center bg-[#f5f5f5] dark:bg-[#0a0a0a] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-0.5 shadow-inner",children:Uv.map(Y=>{const J=i===Y.id;return o.jsxs("button",{onClick:()=>c(Y.id),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-all ${J?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-[#171717] dark:hover:text-[#cccccc] hover:bg-[#eaeaea] dark:hover:bg-[#141414]"}`,children:[o.jsx("span",{children:Y.label}),o.jsx("span",{className:`text-[10px] font-mono px-1 py-0.2 rounded ${J?"bg-[#eaeaea] dark:bg-[#333333] text-black dark:text-white font-semibold":"bg-[#e5e5e5] dark:bg-[#181818] text-[#777777] dark:text-[#666666]"}`,children:Y.ratioTag})]},Y.id)})}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs("div",{className:"flex items-center bg-[#f5f5f5] dark:bg-[#0a0a0a] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-0.5 text-xs text-[#666666] dark:text-[#888888]",children:[o.jsx("button",{onClick:()=>f(Math.max(.2,Number((r-.05).toFixed(2)))),className:"p-1 hover:text-black dark:hover:text-white rounded hover:bg-[#e8e8e8] dark:hover:bg-[#1f1f1f]",title:"缩小",children:o.jsx(jv,{className:"w-3.5 h-3.5"})}),o.jsxs("span",{onDoubleClick:d,className:"w-11 text-center font-mono text-[11px] text-[#333333] dark:text-[#cccccc] cursor-pointer hover:underline select-none",title:"双击恢复自适应",children:[Math.round(r*100),"%"]}),o.jsx("button",{onClick:()=>f(Math.min(1.5,Number((r+.05).toFixed(2)))),className:"p-1 hover:text-black dark:hover:text-white rounded hover:bg-[#e8e8e8] dark:hover:bg-[#1f1f1f]",title:"放大",children:o.jsx(Ah,{className:"w-3.5 h-3.5"})}),d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"w-[1px] h-3 bg-[#e0e0e0] dark:bg-[#262626] mx-0.5"}),o.jsxs("button",{onClick:d,className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] transition-all ${h?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-xs font-semibold":"hover:text-black dark:hover:text-white hover:bg-[#e8e8e8] dark:hover:bg-[#1f1f1f]"}`,title:m>1?"缩放至视口内完整排列多张图片(瀑布流平铺)":"自适应画布大小",children:[o.jsx(bv,{className:"w-3 h-3"}),o.jsx("span",{children:m>1?"多图平铺":"自适应"})]})]})]}),o.jsx("button",{onClick:k,className:"p-2 rounded-lg border border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] hover:bg-[#f5f5f5] dark:hover:bg-[#161616] text-[#444444] dark:text-[#cccccc] transition-all btn-vercel",title:S==="light"?"切换至深色模式":"切换至浅色模式",children:S==="light"?o.jsx(pv,{className:"w-3.5 h-3.5 text-[#555555]"}):o.jsx(kv,{className:"w-3.5 h-3.5 text-amber-400"})}),o.jsxs("button",{onClick:b,className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] hover:bg-[#f5f5f5] dark:hover:bg-[#161616] text-xs text-[#333333] dark:text-[#cccccc] hover:text-black dark:hover:text-white transition-all btn-vercel",children:[o.jsx(fv,{className:"w-3.5 h-3.5 text-[#777777] dark:text-[#888888]"}),o.jsx("span",{children:"模板库"})]}),o.jsxs("button",{onClick:p,disabled:v,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-black text-white hover:bg-[#262626] dark:bg-white dark:text-black dark:hover:bg-[#eaeaea] text-xs font-semibold transition-all btn-vercel shadow-sm disabled:opacity-50",children:[v?o.jsx(uh,{className:"w-3.5 h-3.5 animate-spin"}):o.jsx(sv,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:v?"导出中...":"导出图片"}),m>1&&o.jsxs("span",{className:"text-[10px] bg-white/20 dark:bg-black text-white px-1.5 py-0.2 rounded font-mono",children:[m,"P"]})]}),o.jsx("button",{onClick:N,className:`p-1.5 rounded-lg border transition-all btn-vercel ${g?"border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] text-[#777777] dark:text-[#888888] hover:text-black dark:hover:text-white hover:bg-[#f5f5f5] dark:hover:bg-[#161616]":"border-amber-500/50 bg-amber-500/10 text-amber-600 dark:text-amber-400"}`,title:g?"超管密钥已就绪":"配置超管密钥",children:o.jsx(Ix,{className:"w-3.5 h-3.5"})})]})]});function Gv(){const[i,c]=ge.useState([]),[r,f]=ge.useState(!1),d=ge.useCallback(async(h=!1)=>{try{f(!0);const b=await fetch(`/api/fonts${h?"?refresh=1":""}`);if(!b.ok)return;const N=await b.json();if(!N.ok||!Array.isArray(N.fonts))return;if(c(N.fonts),typeof window<"u"&&"FontFace"in window&&document.fonts)for(const p of N.fonts)try{let v=!1;if(document.fonts.forEach(g=>{(g.family===p.family||g.family===`"${p.family}"`)&&(v=!0)}),!v){const m=await new FontFace(p.family,`url(${p.url})`).load();document.fonts.add(m)}}catch(v){console.warn(`[useLocalFonts] Failed to load web font ${p.family}:`,v)}}catch(b){console.warn("[useLocalFonts] Failed to fetch local fonts:",b)}finally{f(!1)}},[]);return ge.useEffect(()=>{d()},[d]),{fonts:i,loading:r,refreshFonts:()=>d(!0)}}const hx=[{label:"苹方 / 极简黑体 (默认清爽)",value:"PingFang SC"},{label:"思源黑体 (现代极简·粗黑)",value:"Noto Sans SC"},{label:"典雅宋体 (经典报刊·书卷)",value:"Songti SC"},{label:"思源宋体 (高阶报刊·典雅)",value:"Noto Serif SC"},{label:"人文楷体 (温润随笔·手写)",value:"Kaiti SC"},{label:"柔和圆体 (亲和灵动·现代)",value:"Yuanti SC"},{label:"Inter / 国际西文无衬线",value:"Inter"},{label:"Georgia / 文艺西文衬线",value:"Georgia"}],Yv=({config:i,onUpdateAlgorithm:c,onUpdateTheme:r,onUpdateTypography:f,onUpdateSafeArea:d,onUpdateBranding:h,onUpdateChrome:b})=>{var k,Y,J,q,W,Q,ee,ne,Z,E,L,_,z,I;const{algorithm:N,theme:p,typography:v}=i,{fonts:g,loading:m,refreshFonts:S}=Gv();return o.jsxs("aside",{className:"w-80 border-l border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] flex flex-col shrink-0 select-none overflow-y-auto transition-colors",children:[o.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[o.jsx(uv,{className:"w-3.5 h-3.5 text-blue-500 dark:text-blue-400"}),o.jsx("span",{children:"文字对齐与空间居中"})]}),o.jsxs("div",{className:"flex flex-col gap-3 text-xs",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] dark:text-[#888888] text-[11px] block mb-1.5 font-medium",children:"垂直排版对齐 (封面必备)"}),o.jsx("div",{className:"grid grid-cols-3 gap-1 bg-[#f5f5f5] dark:bg-[#141414] p-1 rounded-lg border border-[#e5e5e5] dark:border-[#262626]",children:[{id:"top",label:"顶端对齐"},{id:"center",label:"垂直居中"},{id:"bottom",label:"底端对齐"}].map(B=>o.jsx("button",{onClick:()=>c({verticalAlign:B.id}),className:`py-1 text-[11px] rounded transition-all font-medium ${(N.verticalAlign||"top")===B.id?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:B.label},B.id))})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] dark:text-[#888888] text-[11px] block mb-1.5 font-medium",children:"水平排版对齐"}),o.jsxs("div",{className:"grid grid-cols-3 gap-1 bg-[#f5f5f5] dark:bg-[#141414] p-1 rounded-lg border border-[#e5e5e5] dark:border-[#262626]",children:[o.jsxs("button",{onClick:()=>c({textAlign:"left"}),className:`py-1 flex items-center justify-center gap-1 text-[11px] rounded transition-all font-medium ${(N.textAlign||"left")==="left"?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:[o.jsx(Dv,{className:"w-3 h-3"}),o.jsx("span",{children:"居左"})]}),o.jsxs("button",{onClick:()=>c({textAlign:"center"}),className:`py-1 flex items-center justify-center gap-1 text-[11px] rounded transition-all font-medium ${N.textAlign==="center"?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:[o.jsx(Fv,{className:"w-3 h-3"}),o.jsx("span",{children:"居中"})]}),o.jsxs("button",{onClick:()=>c({textAlign:"right"}),className:`py-1 flex items-center justify-center gap-1 text-[11px] rounded transition-all font-medium ${N.textAlign==="right"?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:[o.jsx(Tv,{className:"w-3 h-3"}),o.jsx("span",{children:"居右"})]})]})]})]})]}),o.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[o.jsxs("div",{className:"flex items-center justify-between text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Bv,{className:"w-3.5 h-3.5 text-indigo-500 dark:text-indigo-400"}),o.jsx("span",{children:"字体与排版字阶"})]}),o.jsx("button",{onClick:()=>S(),disabled:m,title:"重新扫描 public/fonts 目录",className:"p-1 text-[#888888] hover:text-black dark:hover:text-white rounded hover:bg-[#eaeaea] dark:hover:bg-[#222222] transition-colors",children:o.jsx(uh,{className:`w-3 h-3 ${m?"animate-spin text-blue-500":""}`})})]}),o.jsxs("div",{className:"flex flex-col gap-3 text-xs",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] dark:text-[#888888] text-[11px] block mb-1",children:"标题字体 (Heading Font)"}),o.jsxs("select",{value:v.headingFont,onChange:B=>f({headingFont:B.target.value}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded-md px-2 py-1.5 text-black dark:text-white text-xs focus:outline-none",children:[g.length>0&&o.jsx("optgroup",{label:"✨ 项目本地字体 (public/fonts)",children:g.map(B=>o.jsx("option",{value:B.family,children:B.label},`head-local-${B.family}`))}),o.jsx("optgroup",{label:"🌐 系统 / 云端预设",children:hx.map(B=>o.jsx("option",{value:B.value,children:B.label},`head-preset-${B.value}`))})]})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#666666] dark:text-[#888888] text-[11px] block mb-1",children:"正文字体 (Body Font)"}),o.jsxs("select",{value:v.bodyFont,onChange:B=>f({bodyFont:B.target.value}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded-md px-2 py-1.5 text-black dark:text-white text-xs focus:outline-none",children:[g.length>0&&o.jsx("optgroup",{label:"✨ 项目本地字体 (public/fonts)",children:g.map(B=>o.jsx("option",{value:B.family,children:B.label},`body-local-${B.family}`))}),o.jsx("optgroup",{label:"🌐 系统 / 云端预设",children:hx.map(B=>o.jsx("option",{value:B.value,children:B.label},`body-preset-${B.value}`))})]})]}),g.length===0?o.jsx("div",{className:"text-[10px] text-[#888888] dark:text-[#666666] flex items-center justify-between pt-1 border-t border-[#f5f5f5] dark:border-[#1a1a1a]",children:o.jsxs("span",{children:["💡 将 .ttf / .otf 放入 ",o.jsx("code",{children:"public/fonts/"})," 即可识别"]})}):o.jsx("div",{className:"text-[10px] text-emerald-600 dark:text-emerald-400 flex items-center justify-between pt-1 border-t border-[#f5f5f5] dark:border-[#1a1a1a]",children:o.jsxs("span",{children:["✨ 已加载 ",g.length," 个项目本地字体"]})})]})]}),o.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[o.jsx(Mv,{className:"w-3.5 h-3.5 text-blue-500 dark:text-blue-400"}),o.jsx("span",{children:"字号与比例参数"})]}),o.jsxs("div",{className:"flex flex-col gap-3.5 text-xs",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between text-[#666666] dark:text-[#888888] mb-1 font-mono text-[11px]",children:[o.jsx("span",{children:"基准字号 (Base Size)"}),o.jsxs("span",{className:"text-[#171717] dark:text-white font-semibold",children:[N.baseFontSize,"px"]})]}),o.jsx("input",{type:"range",min:"24",max:"96",step:"1",value:N.baseFontSize,onChange:B=>c({baseFontSize:parseInt(B.target.value,10)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded-lg cursor-pointer"})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between text-[#666666] dark:text-[#888888] mb-1 font-mono text-[11px]",children:[o.jsx("span",{children:"比例字阶系数 (大标题倍率)"}),o.jsxs("span",{className:"text-[#171717] dark:text-white font-semibold",children:[N.scaleRatio.toFixed(2),"x"]})]}),o.jsx("input",{type:"range",min:"1.15",max:"1.6",step:"0.01",value:N.scaleRatio,onChange:B=>c({scaleRatio:parseFloat(B.target.value)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded-lg cursor-pointer"})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between text-[#666666] dark:text-[#888888] mb-1 font-mono text-[11px]",children:[o.jsx("span",{children:"行高舒展倍率"}),o.jsx("span",{className:"text-[#171717] dark:text-white font-semibold",children:N.lineHeightMultiplier.toFixed(2)})]}),o.jsx("input",{type:"range",min:"1.2",max:"1.8",step:"0.02",value:N.lineHeightMultiplier,onChange:B=>c({lineHeightMultiplier:parseFloat(B.target.value)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded-lg cursor-pointer"})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between text-[#666666] dark:text-[#888888] mb-1 font-mono text-[11px]",children:[o.jsx("span",{children:"配图避让间隙 (Gap)"}),o.jsxs("span",{className:"text-[#171717] dark:text-white font-semibold",children:[N.obstacleGap,"px"]})]}),o.jsx("input",{type:"range",min:"12",max:"48",step:"2",value:N.obstacleGap,onChange:B=>c({obstacleGap:parseInt(B.target.value,10)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded-lg cursor-pointer"})]})]})]}),o.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[o.jsx(Cv,{className:"w-3.5 h-3.5 text-emerald-600 dark:text-emerald-400"}),o.jsx("span",{children:"版心安全边距"})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px] font-mono",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-[#777777] dark:text-[#666666] block mb-1",children:"上边距 (Top)"}),o.jsx("input",{type:"number",value:N.safeArea.top,onChange:B=>d({top:parseInt(B.target.value,10)||0}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white"})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#777777] dark:text-[#666666] block mb-1",children:"下边距 (Bottom)"}),o.jsx("input",{type:"number",value:N.safeArea.bottom,onChange:B=>d({bottom:parseInt(B.target.value,10)||0}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white"})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#777777] dark:text-[#666666] block mb-1",children:"左边距 (Left)"}),o.jsx("input",{type:"number",value:N.safeArea.left,onChange:B=>d({left:parseInt(B.target.value,10)||0}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white"})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-[#777777] dark:text-[#666666] block mb-1",children:"右边距 (Right)"}),o.jsx("input",{type:"number",value:N.safeArea.right,onChange:B=>d({right:parseInt(B.target.value,10)||0}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white"})]})]})]}),o.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[o.jsx(yv,{className:"w-3.5 h-3.5 text-purple-600 dark:text-purple-400"}),o.jsx("span",{children:"视觉色彩主题"})]}),o.jsxs("div",{className:"flex flex-col gap-2.5 text-xs",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("button",{onClick:()=>r({bgColor:"#ffffff",textColor:"#171717",headingColor:"#171717",accentColor:"#059669",quoteColor:"#525252",cardBg:"#f5f5f5"}),className:"w-6 h-6 rounded-full bg-[#ffffff] border-2 border-emerald-500 shadow-sm hover:scale-105 transition-all",title:"素白雅致 (推荐)"}),o.jsx("button",{onClick:()=>r({bgColor:"#f9fcfa",textColor:"#22201d",headingColor:"#0f2e22",accentColor:"#1d4f39",quoteColor:"#474038",cardBg:"#ffffff"}),className:"w-6 h-6 rounded-full bg-[#f9fcfa] border border-[#ccc] shadow-sm hover:scale-105 transition-all",title:"纸白浅草"}),o.jsx("button",{onClick:()=>r({bgColor:"#0a0a0a",textColor:"#ededed",headingColor:"#ffffff",accentColor:"#00e676",quoteColor:"#a0a0a0",cardBg:"#121212"}),className:"w-6 h-6 rounded-full bg-[#0a0a0a] border border-[#444] shadow-sm hover:scale-105 transition-all",title:"深邃暗夜"}),o.jsx("button",{onClick:()=>r({bgColor:"#09090b",textColor:"#fafafa",headingColor:"#ffffff",accentColor:"#3b82f6",quoteColor:"#a1a1aa",cardBg:"#18181b"}),className:"w-6 h-6 rounded-full bg-[#09090b] border border-blue-500 shadow-sm hover:scale-105 transition-all",title:"数码蓝暗黑"})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-[#666666] dark:text-[#888888] font-medium",children:"标题颜色 (Heading)"}),o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx("input",{type:"color",value:p.headingColor||p.textColor,onChange:B=>r({headingColor:B.target.value}),className:"w-6 h-6 rounded cursor-pointer bg-transparent border-0"}),o.jsx("span",{className:"font-mono text-[11px] text-[#444444] dark:text-[#cccccc]",children:p.headingColor||p.textColor})]})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-[#666666] dark:text-[#888888]",children:"正文字色 (Text)"}),o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx("input",{type:"color",value:p.textColor,onChange:B=>r({textColor:B.target.value}),className:"w-6 h-6 rounded cursor-pointer bg-transparent border-0"}),o.jsx("span",{className:"font-mono text-[11px] text-[#444444] dark:text-[#cccccc]",children:p.textColor})]})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-[#666666] dark:text-[#888888]",children:"重点强调色 (Accent)"}),o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx("input",{type:"color",value:p.accentColor,onChange:B=>r({accentColor:B.target.value}),className:"w-6 h-6 rounded cursor-pointer bg-transparent border-0"}),o.jsx("span",{className:"font-mono text-[11px] text-[#444444] dark:text-[#cccccc]",children:p.accentColor})]})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-[#666666] dark:text-[#888888]",children:"背景底色 (Canvas)"}),o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx("input",{type:"color",value:p.bgColor,onChange:B=>r({bgColor:B.target.value}),className:"w-6 h-6 rounded cursor-pointer bg-transparent border-0"}),o.jsx("span",{className:"font-mono text-[11px] text-[#444444] dark:text-[#cccccc]",children:p.bgColor})]})]})]})]}),o.jsxs("div",{className:"p-3.5",children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[o.jsx(cv,{className:"w-3.5 h-3.5 text-amber-500 dark:text-amber-400"}),o.jsx("span",{children:"页眉页脚与版式装饰 (Chrome)"})]}),o.jsxs("div",{className:"flex flex-col gap-3 text-xs",children:[o.jsxs("div",{className:"bg-[#f9f9f9] dark:bg-[#141414] p-2.5 rounded-lg border border-[#eaeaea] dark:border-[#222222] flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-semibold text-[#333333] dark:text-[#cccccc] text-[11px]",children:"顶部栏 (Header)"}),o.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer",children:[o.jsx("input",{type:"checkbox",checked:((k=i.chrome)==null?void 0:k.showHeader)??!!((Y=i.watermarkText)!=null&&Y.trim()),onChange:B=>b({showHeader:B.target.checked}),className:"rounded text-emerald-500 accent-emerald-500 cursor-pointer"}),o.jsx("span",{className:"text-[10px] text-[#666666] dark:text-[#888888]",children:"启用"})]})]}),(((J=i.chrome)==null?void 0:J.showHeader)??!!((q=i.watermarkText)!=null&&q.trim()))&&o.jsxs("div",{className:"flex flex-col gap-2 pl-2 border-l-2 border-[#e0e0e0] dark:border-[#2a2a2a] mt-1",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-1",children:[o.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"水印 / 品牌标识"}),o.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[o.jsx("input",{type:"checkbox",checked:((W=i.chrome)==null?void 0:W.showWatermark)??!0,onChange:B=>b({showWatermark:B.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),o.jsx("span",{children:"显示"})]})]}),o.jsx("input",{type:"text",value:i.watermarkText,onChange:B=>h(i.footerText,B.target.value),placeholder:"作者水印/标识文本...",className:"w-full bg-white dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white text-[11px]"})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"页码角标 (P.01)"}),o.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[o.jsx("input",{type:"checkbox",checked:((Q=i.chrome)==null?void 0:Q.showPageNumber)??i.aspectRatio==="longform-3-4",onChange:B=>b({showPageNumber:B.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),o.jsx("span",{children:"显示"})]})]})]})]}),o.jsxs("div",{className:"bg-[#f9f9f9] dark:bg-[#141414] p-2.5 rounded-lg border border-[#eaeaea] dark:border-[#222222] flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-semibold text-[#333333] dark:text-[#cccccc] text-[11px]",children:"底部栏 (Footer)"}),o.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer",children:[o.jsx("input",{type:"checkbox",checked:((ee=i.chrome)==null?void 0:ee.showFooter)??!!((ne=i.footerText)!=null&&ne.trim()),onChange:B=>b({showFooter:B.target.checked}),className:"rounded text-emerald-500 accent-emerald-500 cursor-pointer"}),o.jsx("span",{className:"text-[10px] text-[#666666] dark:text-[#888888]",children:"启用"})]})]}),(((Z=i.chrome)==null?void 0:Z.showFooter)??!!((E=i.footerText)!=null&&E.trim()))&&o.jsxs("div",{className:"flex flex-col gap-2 pl-2 border-l-2 border-[#e0e0e0] dark:border-[#2a2a2a] mt-1",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-1",children:[o.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"页脚署名 / 版权"}),o.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[o.jsx("input",{type:"checkbox",checked:((L=i.chrome)==null?void 0:L.showFooterText)??!0,onChange:B=>b({showFooterText:B.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),o.jsx("span",{children:"显示"})]})]}),o.jsx("input",{type:"text",value:i.footerText,onChange:B=>h(B.target.value,i.watermarkText),placeholder:"页脚版权/署名...",className:"w-full bg-white dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white text-[11px]"})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"顶部分割细线"}),o.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[o.jsx("input",{type:"checkbox",checked:((_=i.chrome)==null?void 0:_.showFooterDivider)??!!((z=i.footerText)!=null&&z.trim()),onChange:B=>b({showFooterDivider:B.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),o.jsx("span",{children:"显示"})]})]}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"算法填充率提示"}),o.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[o.jsx("input",{type:"checkbox",checked:((I=i.chrome)==null?void 0:I.showFillRatio)??!1,onChange:B=>b({showFillRatio:B.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),o.jsx("span",{children:"显示"})]})]})]})]})]})]})]})},Xv=({isOpen:i,onClose:c,currentConfig:r,onApplyTemplate:f,adminKey:d})=>{const[h,b]=ge.useState([]),[N,p]=ge.useState({}),[v,g]=ge.useState("default"),[m,S]=ge.useState("all"),[k,Y]=ge.useState(!1),[J,q]=ge.useState(""),[W,Q]=ge.useState(()=>r.aspectRatio==="wechat-cover-2.35"?"article_cover":"newspic_content"),[ee,ne]=ge.useState(!1),[Z,E]=ge.useState(null),L=async(V=v)=>{try{const j=await(await fetch(`/api/templates/slots?account=${encodeURIComponent(V)}`)).json();j.ok&&j.slots&&p(j.slots)}catch{}},_=async(V,$)=>{try{(await(await fetch("/api/templates/slots",{method:"POST",headers:{"Content-Type":"application/json",...d?{"x-admin-key":d}:{}},body:JSON.stringify({slot:V,templateId:$,account:v})})).json()).ok&&await L(v)}catch{}},z=async()=>{Y(!0),E(null);try{const $=await(await fetch("/api/templates",{headers:d?{"x-admin-key":d}:{}})).json();$.ok&&Array.isArray($.templates)?b($.templates):E($.message||"获取模板失败,请检查密钥")}catch{E("连接后端服务失败")}finally{Y(!1)}};ge.useEffect(()=>{i&&(z(),L(v),q(r.name?`${r.name} 副本`:"我的自定义模板"),Q(r.aspectRatio==="wechat-cover-2.35"?"article_cover":"newspic_content"))},[i,v]);const I=async()=>{if(J.trim()){ne(!0);try{const V={...r,id:void 0,name:J.trim(),slot:W!=="none"?W:void 0},j=await(await fetch("/api/templates",{method:"POST",headers:{"Content-Type":"application/json",...d?{"x-admin-key":d}:{}},body:JSON.stringify(V)})).json();j.ok?(await z(),await L(v)):E(j.message||"保存模板失败")}catch{E("保存模板请求异常")}finally{ne(!1)}}},B=async V=>{try{await fetch(`/api/templates/${V}`,{method:"DELETE",headers:d?{"x-admin-key":d}:{}}),b($=>$.filter(j=>j.id!==V)),await L(v)}catch{}};if(!i)return null;const te=h.filter(V=>m==="all"?!0:V.slot===m);return o.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 dark:bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:o.jsxs("div",{className:"bg-white dark:bg-[#0f0f0f] border border-[#eaeaea] dark:border-[#262626] rounded-xl w-full max-w-xl flex flex-col shadow-2xl overflow-hidden animate-in fade-in zoom-in-95 duration-150 transition-colors",children:[o.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 border-b border-[#eaeaea] dark:border-[#222222]",children:[o.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-[#171717] dark:text-white",children:[o.jsx(hf,{className:"w-4 h-4 text-emerald-500 dark:text-emerald-400"}),o.jsx("span",{children:"排版模板中心"})]}),o.jsx("button",{onClick:c,className:"text-[#888888] hover:text-black dark:hover:text-white p-1 rounded-md hover:bg-[#f5f5f5] dark:hover:bg-[#1a1a1a]",children:o.jsx(Sh,{className:"w-4 h-4"})})]}),o.jsxs("div",{className:"p-5 flex flex-col gap-4 max-h-[75vh] overflow-y-auto",children:[o.jsxs("div",{className:"bg-[#f9f9f9] dark:bg-[#141414] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-3 flex flex-col gap-2.5",children:[o.jsx("span",{className:"text-xs text-[#666666] dark:text-[#888888] font-medium",children:"将当前参数另存为模板"}),o.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[o.jsx("input",{type:"text",value:J,onChange:V=>q(V.target.value),placeholder:"模板名称...",className:"flex-1 bg-white dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#2a2a2a] rounded px-3 py-1.5 text-xs text-black dark:text-white focus:outline-none focus:border-black dark:focus:border-[#444444]"}),o.jsxs("select",{value:W,onChange:V=>Q(V.target.value),className:"bg-white dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#2a2a2a] rounded px-2 py-1.5 text-xs text-black dark:text-white focus:outline-none focus:border-black dark:focus:border-[#444444]",children:[o.jsx("option",{value:"article_cover",children:"槽位: 文章封面 (2.35:1)"}),o.jsx("option",{value:"newspic_cover",children:"槽位: 贴图封面 (3:4)"}),o.jsx("option",{value:"newspic_content",children:"槽位: 贴图内容 (3:4)"}),o.jsx("option",{value:"none",children:"槽位: 通用模板"})]}),o.jsxs("button",{onClick:I,disabled:ee,className:"flex items-center justify-center gap-1.5 px-3 py-1.5 bg-black text-white hover:bg-[#262626] dark:bg-white dark:text-black dark:hover:bg-[#eaeaea] text-xs font-semibold rounded transition-all btn-vercel disabled:opacity-50 shrink-0",children:[o.jsx(ov,{className:"w-3.5 h-3.5"}),o.jsx("span",{children:ee?"保存中...":"保存模板"})]})]})]}),Z&&o.jsx("div",{className:"text-xs text-amber-600 dark:text-amber-400 bg-amber-500/10 border border-amber-500/20 px-3 py-2 rounded-lg",children:Z}),o.jsxs("div",{className:"flex flex-col gap-2 pt-1 border-t border-[#eaeaea] dark:border-[#222222]",children:[o.jsx("div",{className:"flex items-center justify-between text-xs",children:o.jsxs("div",{className:"flex items-center gap-1.5 font-medium text-[#666666] dark:text-[#888888]",children:[o.jsx("span",{children:"默认槽位配置账号:"}),o.jsxs("select",{value:v,onChange:V=>g(V.target.value),className:"bg-white dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#2a2a2a] rounded px-2 py-0.5 text-xs text-black dark:text-white focus:outline-none font-mono",children:[o.jsx("option",{value:"default",children:"default (主账号)"}),o.jsx("option",{value:"ancientone",children:"ancientone"})]})]})}),o.jsxs("div",{className:"flex items-center gap-1.5 text-xs overflow-x-auto pb-1",children:[o.jsx("button",{onClick:()=>S("all"),className:`px-2.5 py-1 rounded text-xs transition-colors font-medium ${m==="all"?"bg-black text-white dark:bg-white dark:text-black":"text-[#666666] dark:text-[#888888] hover:bg-[#f5f5f5] dark:hover:bg-[#1c1c1c]"}`,children:"全部"}),o.jsx("button",{onClick:()=>S("article_cover"),className:`px-2.5 py-1 rounded text-xs transition-colors font-medium ${m==="article_cover"?"bg-black text-white dark:bg-white dark:text-black":"text-[#666666] dark:text-[#888888] hover:bg-[#f5f5f5] dark:hover:bg-[#1c1c1c]"}`,children:"文章封面"}),o.jsx("button",{onClick:()=>S("newspic_cover"),className:`px-2.5 py-1 rounded text-xs transition-colors font-medium ${m==="newspic_cover"?"bg-black text-white dark:bg-white dark:text-black":"text-[#666666] dark:text-[#888888] hover:bg-[#f5f5f5] dark:hover:bg-[#1c1c1c]"}`,children:"贴图封面"}),o.jsx("button",{onClick:()=>S("newspic_content"),className:`px-2.5 py-1 rounded text-xs transition-colors font-medium ${m==="newspic_content"?"bg-black text-white dark:bg-white dark:text-black":"text-[#666666] dark:text-[#888888] hover:bg-[#f5f5f5] dark:hover:bg-[#1c1c1c]"}`,children:"贴图内容"})]})]}),o.jsx("div",{className:"flex flex-col gap-2",children:k?o.jsx("div",{className:"text-center py-8 text-xs text-[#888888] dark:text-[#555555]",children:"正在加载模板..."}):te.length===0?o.jsx("div",{className:"text-center py-8 text-xs text-[#888888] dark:text-[#555555]",children:"暂无匹配模板"}):te.map(V=>{var U,H,le;const $=((U=N.article_cover)==null?void 0:U.id)===V.id,j=((H=N.newspic_cover)==null?void 0:H.id)===V.id,D=((le=N.newspic_content)==null?void 0:le.id)===V.id;return o.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between p-3 rounded-lg bg-[#fafafa] dark:bg-[#141414] border border-[#eaeaea] dark:border-[#222222] hover:border-[#cccccc] dark:hover:border-[#333333] transition-all gap-2 group",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"w-5 h-5 rounded border border-[#d4d4d4] dark:border-[#333333] shrink-0",style:{backgroundColor:V.theme.bgColor}}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[o.jsx("span",{className:"text-xs font-semibold text-[#171717] dark:text-white",children:V.name}),V.slot&&o.jsx("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-blue-500/10 text-blue-600 dark:text-blue-400 border border-blue-500/20 font-medium",children:V.slot==="article_cover"?"文章封面":V.slot==="newspic_cover"?"贴图封面":"贴图内容"}),$&&o.jsxs("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-amber-500/10 text-amber-600 dark:text-amber-400 border border-amber-500/20 font-medium flex items-center gap-0.5",children:[o.jsx(nf,{className:"w-2.5 h-2.5 fill-amber-500"})," 文章封面默认"]}),j&&o.jsxs("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-amber-500/10 text-amber-600 dark:text-amber-400 border border-amber-500/20 font-medium flex items-center gap-0.5",children:[o.jsx(nf,{className:"w-2.5 h-2.5 fill-amber-500"})," 贴图封面默认"]}),D&&o.jsxs("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20 font-medium flex items-center gap-0.5",children:[o.jsx(nf,{className:"w-2.5 h-2.5 fill-emerald-500"})," 贴图内容默认"]})]}),o.jsxs("div",{className:"text-[10px] text-[#888888] dark:text-[#666666] font-mono mt-0.5",children:[V.aspectRatio," • 字号: ",V.algorithm.baseFontSize,"px",V.images&&V.images.length>0&&` • 配图: ${V.images.length}个`]})]})]}),o.jsxs("div",{className:"flex items-center gap-2 self-end sm:self-auto",children:[V.id&&o.jsxs("select",{value:"",onChange:K=>{K.target.value&&_(K.target.value,V.id)},className:"text-[11px] bg-white dark:bg-[#1a1a1a] border border-[#d4d4d4] dark:border-[#333333] text-[#666666] dark:text-[#aaaaaa] rounded px-2 py-1 focus:outline-none",title:"为此账号设为某个槽位的默认模板",children:[o.jsx("option",{value:"",children:"设为槽位默认..."}),o.jsx("option",{value:"article_cover",children:"设为「文章封面默认」"}),o.jsx("option",{value:"newspic_cover",children:"设为「贴图封面默认」"}),o.jsx("option",{value:"newspic_content",children:"设为「贴图内容默认」"})]}),o.jsxs("button",{onClick:()=>{f(V),c()},className:"flex items-center gap-1 px-2.5 py-1 bg-white dark:bg-[#1f1f1f] hover:bg-emerald-50 dark:hover:bg-emerald-500/20 text-[#333333] dark:text-[#cccccc] hover:text-emerald-700 dark:hover:text-emerald-400 border border-[#d4d4d4] dark:border-[#2a2a2a] hover:border-emerald-500/40 rounded text-xs transition-all font-medium",children:[o.jsx(qx,{className:"w-3 h-3"}),o.jsx("span",{children:"套用"})]}),V.id&&!V.id.startsWith("tpl_wechat_")&&!V.id.startsWith("tpl_longform_")&&!V.id.startsWith("tpl_square_")&&!V.id.startsWith("tpl_wide_")&&o.jsx("button",{onClick:()=>B(V.id),className:"p-1 text-[#888888] dark:text-[#555555] hover:text-red-500 rounded hover:bg-[#f0f0f0] dark:hover:bg-[#1f1f1f]",title:"删除自定义模板",children:o.jsx(bh,{className:"w-3.5 h-3.5"})})]})]},V.id)})})]})]})})},af="typeset_studio_admin_key";function Qv(){const[i,c]=ge.useState(()=>localStorage.getItem(af)||""),[r,f]=ge.useState(null),[d,h]=ge.useState(!1),b=async p=>{if(!p)return f(!1),!1;h(!0);try{const m=!!(await(await fetch("/api/auth/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:p})})).json()).ok;return f(m),m}catch{return f(!1),!1}finally{h(!1)}},N=p=>{localStorage.setItem(af,p),c(p),b(p)};return ge.useEffect(()=>{(async()=>{let v=i;if(!v)try{const m=await(await fetch("/api/auth/current-key")).json();m.ok&&m.key&&(v=m.key,c(m.key),localStorage.setItem(af,m.key))}catch{}v?b(v):f(!1)})()},[]),{adminKey:i,setAdminKey:N,isVerified:r,isVerifying:d,verifyKey:b}}function rc(i){return i.replace(/[ \t]+/g," ")}function Vv(i,c=[]){const r=[],f=/(\*\*[^*]+\*\*|\*[^*]+\*|==[^=]+==)/g;let d=0,h;function b(N,p={}){if(!N)return;if(c.length===0){r.push({text:N,...p});return}const v=c.map(k=>k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),g=new RegExp(`(${v.join("|")})`,"g");let m=0,S;for(;(S=g.exec(N))!==null;)S.index>m&&r.push({text:N.slice(m,S.index),...p}),r.push({text:S[0],...p,highlight:!0}),m=S.index+S[0].length;m<N.length&&r.push({text:N.slice(m),...p})}for(;(h=f.exec(i))!==null;){h.index>d&&b(i.slice(d,h.index));const N=h[0];N.startsWith("**")&&N.endsWith("**")?b(N.slice(2,-2),{bold:!0}):N.startsWith("*")&&N.endsWith("*")?b(N.slice(1,-1),{italic:!0}):N.startsWith("==")&&N.endsWith("==")&&r.push({text:N.slice(2,-2),highlight:!0,bold:!0}),d=h.index+N.length}return d<i.length&&b(i.slice(d)),r.length>0?r:[{text:i}]}function Zv(i){const c=i.replaceAll(`\r
293
+ `,`
294
+ `).split(`
295
+ `),r=[];let f=[];function d(){const h=rc(f.join(" ").trim());h.length>0&&r.push({kind:"paragraph",text:h}),f=[]}for(const h of c){const b=h.trim();if(b.length===0){d();continue}if(Mh(b)){d();continue}const N=b.match(/^(#{1,6})\s+(.+)$/);if(N){d();const v=N[1].length;r.push({kind:v===1?"heading":v===2?"subheading":"minor-heading",text:rc(N[2])});continue}if(b.startsWith(">")){d(),r.push({kind:"quote",text:rc(b.replace(/^>\s?/,"").trim())});continue}const p=b.match(/^(\d+[.)]|[-*+])\s+(.+)$/);if(p){d(),r.push({kind:"list-item",text:rc(p[2]),bullet:/^\d/.test(p[1])?p[1]:"•"});continue}f.push(b)}return d(),r}function Mh(i){const c=i.trim();return/^【第([一二三四五六七八九十百两\d]+)页】$/.test(c)||/^【Page\s*(\d+)】$/i.test(c)||/^(?:-{3,}|\*{3,}|_{3,})$/.test(c)||/^<!--\s*(?:pagebreak|page-break|next-page|page(?::\s*\d+)?)\s*-->$/i.test(c)}function Kv(i){const c=i.replaceAll(`\r
296
+ `,`
297
+ `).split(`
298
+ `),r=[[]];let f=!1;for(const d of c){if(Mh(d)){if(f=!0,r.length===1&&r[0].length===0)continue;r.push([]);continue}r[r.length-1].push(d)}return f?r.map(d=>d.join(`
299
+ `).trim()):[i]}const Jv=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],mx=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function Wv(i){if(i<=255)return Jv[i];let c=0,r=mx.length-1;for(;c<=r;){const f=c+r>>1,d=mx[f];if(i<d[0]){r=f-1;continue}if(i>d[1]){c=f+1;continue}return d[2]}return"L"}function Iv(i){const c=i.length;if(c===0)return null;const r=new Array(c);let f=!1;for(let v=0;v<c;){const g=i.charCodeAt(v);let m=g,S=1;if(g>=55296&&g<=56319&&v+1<c){const Y=i.charCodeAt(v+1);Y>=56320&&Y<=57343&&(m=(g-55296<<10)+(Y-56320)+65536,S=2)}const k=Wv(m);(k==="R"||k==="AL"||k==="AN")&&(f=!0);for(let Y=0;Y<S;Y++)r[v+Y]=k;v+=S}if(!f)return null;let d=0;for(let v=0;v<c;v++){const g=r[v];if(g==="L"){d=0;break}if(g==="R"||g==="AL"){d=1;break}}const h=new Int8Array(c);for(let v=0;v<c;v++)h[v]=d;const b=d&1?"R":"L",N=b;let p=N;for(let v=0;v<c;v++)r[v]==="NSM"?r[v]=p:p=r[v];p=N;for(let v=0;v<c;v++){const g=r[v];g==="EN"?r[v]=p==="AL"?"AN":"EN":(g==="R"||g==="L"||g==="AL")&&(p=g)}for(let v=0;v<c;v++)r[v]==="AL"&&(r[v]="R");for(let v=1;v<c-1;v++)r[v]==="ES"&&r[v-1]==="EN"&&r[v+1]==="EN"&&(r[v]="EN"),r[v]==="CS"&&(r[v-1]==="EN"||r[v-1]==="AN")&&r[v+1]===r[v-1]&&(r[v]=r[v-1]);for(let v=0;v<c;v++){if(r[v]!=="EN")continue;let g;for(g=v-1;g>=0&&r[g]==="ET";g--)r[g]="EN";for(g=v+1;g<c&&r[g]==="ET";g++)r[g]="EN"}for(let v=0;v<c;v++){const g=r[v];(g==="WS"||g==="ES"||g==="ET"||g==="CS")&&(r[v]="ON")}p=N;for(let v=0;v<c;v++){const g=r[v];g==="EN"?r[v]=p==="L"?"L":"EN":(g==="R"||g==="L")&&(p=g)}for(let v=0;v<c;v++){if(r[v]!=="ON")continue;let g=v+1;for(;g<c&&r[g]==="ON";)g++;const m=v>0?r[v-1]:N,S=g<c?r[g]:N,k=m!=="L"?"R":"L";if(k===(S!=="L"?"R":"L"))for(let J=v;J<g;J++)r[J]=k;v=g-1}for(let v=0;v<c;v++)r[v]==="ON"&&(r[v]=b);for(let v=0;v<c;v++){const g=r[v];(h[v]&1)===0?g==="R"?h[v]++:(g==="AN"||g==="EN")&&(h[v]+=2):(g==="L"||g==="AN"||g==="EN")&&h[v]++}return h}function $v(i,c){const r=Iv(i);if(r===null)return null;const f=new Int8Array(c.length);for(let d=0;d<c.length;d++)f[d]=r[c[d]];return f}const Pv=/[ \t\n\r\f]+/g,eb=/[\t\n\r\f]| {2,}|^ | $/;function tb(i){const c=i??"normal";return c==="pre-wrap"?{mode:c,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:c,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function lb(i){if(!eb.test(i))return i;let c=i.replace(Pv," ");return c.charCodeAt(0)===32&&(c=c.slice(1)),c.length>0&&c.charCodeAt(c.length-1)===32&&(c=c.slice(0,-1)),c}function nb(i){return/[\r\f]/.test(i)?i.replace(/\r\n/g,`
300
+ `).replace(/[\r\f]/g,`
301
+ `):i}let uf=null,ab;function ub(){return uf===null&&(uf=new Intl.Segmenter(ab,{granularity:"word"})),uf}const ib=new RegExp("\\p{Script=Arabic}","u"),an=new RegExp("\\p{M}","u"),yf=new RegExp("\\p{Nd}","u");function gx(i){return ib.test(i)}function vx(i){return i>=19968&&i<=40959||i>=13312&&i<=19903||i>=131072&&i<=173791||i>=173824&&i<=177983||i>=177984&&i<=178207||i>=178208&&i<=183983||i>=183984&&i<=191471||i>=191472&&i<=192093||i>=194560&&i<=195103||i>=196608&&i<=201551||i>=201552&&i<=205743||i>=205744&&i<=210041||i>=63744&&i<=64255||i>=12288&&i<=12351||i>=12352&&i<=12447||i>=12448&&i<=12543||i>=12592&&i<=12687||i>=44032&&i<=55215||i>=65280&&i<=65519}function ol(i){for(let c=0;c<i.length;c++){const r=i.charCodeAt(c);if(!(r<12288)){if(r>=55296&&r<=56319&&c+1<i.length){const f=i.charCodeAt(c+1);if(f>=56320&&f<=57343){const d=(r-55296<<10)+(f-56320)+65536;if(vx(d))return!0;c++;continue}}if(vx(r))return!0}}return!1}function cb(i){const c=zu(i);return c!==null&&(Nf.has(c)||_n.has(c))}const sb=new Set([" "," ","⁠","\uFEFF"]),rb=new Set(["-","‐","–","—"]);function fb(i){const c=zu(i);return c!==null&&sb.has(c)}function ob(i){const c=zu(i);return c!==null&&rb.has(c)}function kh(i,c){return fb(i)?!1:c?!(cb(i)||ob(i)):!0}const Nf=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),gc=new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),Sf=new Set(["'","’"]),_n=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),db=new Set([":",".","،","؛"]),xb=new Set(["၏"]),hb=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function mb(i){if(Ef(i))return!0;let c=!1;for(const r of i){if(_n.has(r)||bc(r)){c=!0;continue}if(!(c&&an.test(r)))return!1}return c}function gb(i){for(const c of i)if(!Nf.has(c)&&!_n.has(c))return!1;return i.length>0}function vb(i){if(Ef(i))return!0;for(const c of i)if(!gc.has(c)&&!Sf.has(c)&&!an.test(c)&&!bc(c))return!1;return i.length>0}function Ef(i){let c=!1;for(const r of i)if(!(r==="\\"||an.test(r))){if(gc.has(r)||_n.has(r)||Sf.has(r)){c=!0;continue}return!1}return c}function vc(i,c){const r=c-1;if(r<=0)return Math.max(r,0);const f=i.charCodeAt(r);if(f<56320||f>57343)return r;const d=r-1;if(d<0)return r;const h=i.charCodeAt(d);return h>=55296&&h<=56319?d:r}function zu(i){if(i.length===0)return null;const c=vc(i,i.length);return i.slice(c)}function bb(i){for(const c of i)if(!an.test(c))return c;return null}function pb(i){for(let c=i.length;c>0;){const r=vc(i,c),f=i.slice(r,c);if(!an.test(f))return f;c=r}return null}const yb=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function Nb(i,c){for(let r=0;r<c.length;r+=2)if(i>=c[r]&&i<=c[r+1])return!0;return!1}function bc(i){const c=i.codePointAt(0);return c!==void 0&&Nb(c,yb)}function Sb(i){const c=pb(i);return c!==null&&bc(c)}function Eb(i){const c=bb(i);return c!==null&&yf.test(c)}function Ab(i){const c=Array.from(i);let r=c.length;for(;r>0;){const f=c[r-1];if(an.test(f)){r--;continue}if(gc.has(f)||Sf.has(f)){r--;continue}break}return r<=0||r===c.length?null:{head:c.slice(0,r).join(""),tail:c.slice(r).join("")}}function Cb(i,c,r){return r==="text"&&!c&&i.length===1&&i!=="-"&&i!=="—"?i:null}function bx(i,c,r,f){const d=c[f],h=i[f];if(d==null)return h;const b=r[f];if(h.length===b)return h;const N=d.repeat(b);return i[f]=N,N}function px(i,c){return i&&c!==null&&db.has(c)}function Mb(i){const c=zu(i);return c!==null&&xb.has(c)}function kb(i){if(i.length<2||i[0]!==" ")return null;const c=i.slice(1);return new RegExp("^\\p{M}+$","u").test(c)?{space:" ",marks:c}:null}function mf(i){let c=i.length;for(;c>0;){const r=vc(i,c),f=i.slice(r,c);if(hb.has(f))return!0;if(!_n.has(f))return!1;c=r}return!1}function Tb(i,c){if(c.preserveOrdinarySpaces||c.preserveHardBreaks){if(i===" ")return"preserved-space";if(i===" ")return"tab";if(c.preserveHardBreaks&&i===`
302
+ `)return"hard-break"}return i===" "?"space":i===" "||i===" "||i==="⁠"||i==="\uFEFF"?"glue":i==="​"?"zero-width-break":i==="­"?"soft-hyphen":"text"}const Fb=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function It(i){return i.length===1?i[0]:i.join("")}function Db(i,c){const r=[];for(let f=i.length-1;f>=0;f--)r.push(i[f]);return r.push(c),It(r)}function Bb(i,c,r,f){if(!Fb.test(i))return[{text:i,isWordLike:c,kind:"text",start:r}];const d=[];let h=null,b=[],N=r,p=!1,v=0;for(const g of i){const m=Tb(g,f),S=m==="text"&&c;if(h!==null&&m===h&&S===p){b.push(g),v+=g.length;continue}h!==null&&d.push({text:It(b),isWordLike:p,kind:h,start:N}),h=m,b=[g],N=r+v,p=S,v+=g.length}return h!==null&&d.push({text:It(b),isWordLike:p,kind:h,start:N}),d}function gf(i){return i==="space"||i==="preserved-space"||i==="zero-width-break"||i==="hard-break"}const Ob=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function jb(i,c){const r=i.texts[c];return r.startsWith("www.")?!0:Ob.test(r)&&c+1<i.len&&i.kinds[c+1]==="text"&&i.texts[c+1]==="//"}function wb(i){return i.includes("?")&&(i.includes("://")||i.startsWith("www."))}function zb(i){const c=i.texts.slice(),r=i.isWordLike.slice(),f=i.kinds.slice(),d=i.starts.slice();for(let b=0;b<i.len;b++){if(f[b]!=="text"||!jb(i,b))continue;const N=[c[b]];let p=b+1;for(;p<i.len&&!gf(f[p]);){N.push(c[p]),r[b]=!0;const v=c[p].includes("?");if(f[p]="text",c[p]="",p++,v)break}c[b]=It(N)}let h=0;for(let b=0;b<c.length;b++){const N=c[b];N.length!==0&&(h!==b&&(c[h]=N,r[h]=r[b],f[h]=f[b],d[h]=d[b]),h++)}return c.length=h,r.length=h,f.length=h,d.length=h,{len:h,texts:c,isWordLike:r,kinds:f,starts:d}}function _b(i){const c=[],r=[],f=[],d=[];for(let h=0;h<i.len;h++){const b=i.texts[h];if(c.push(b),r.push(i.isWordLike[h]),f.push(i.kinds[h]),d.push(i.starts[h]),!wb(b))continue;const N=h+1;if(N>=i.len||gf(i.kinds[N]))continue;const p=[],v=i.starts[N];let g=N;for(;g<i.len&&!gf(i.kinds[g]);)p.push(i.texts[g]),g++;p.length>0&&(c.push(It(p)),r.push(!0),f.push("text"),d.push(v),h=g-1)}return{len:c.length,texts:c,isWordLike:r,kinds:f,starts:d}}const Rb=new Set([":","-","/","×",",",".","+","–","—"]),Lb=/[\p{P}\p{S}\p{Co}]/u,Hb=new RegExp("\\p{Emoji_Presentation}","u"),Ub=new Set(["?","֊","-","‐","‒","–","—","…","‼","‽","⁉"]);function qb(i){return i>=33&&i<=47&&i!==45||i>=58&&i<=64&&i!==63||i>=91&&i<=96||i>=123&&i<=126}function Th(i){const c=i.charCodeAt(0);return c<128?qb(c):!Ub.has(i)&&!Hb.test(i)&&Lb.test(i)}function yx(i){let c=!1;for(const r of i)if(!an.test(r)){if(!Th(r))return!1;c=!0}return c}function Gb(i){for(let c=i.length;c>0;){const r=vc(i,c),f=i.slice(r,c);if(an.test(f)){c=r;continue}return Th(f)||bc(f)}return!1}function Yb(i,c,r,f){const d=!c&&yx(i),h=!f&&yx(r),b=Sb(i),N=(c||b)&&Gb(i);return!d&&!h&&!N||ol(i)||ol(r)?!1:(c||d||b)&&(f||h)}function Fh(i){for(const c of i)if(yf.test(c))return!0;return!1}function xc(i){if(i.length===0)return!1;for(const c of i)if(!(yf.test(c)||Rb.has(c)))return!1;return!0}function Xb(i){const c=[],r=[],f=[],d=[];for(let h=0;h<i.len;h++){const b=i.texts[h],N=i.kinds[h];if(N==="text"&&xc(b)&&Fh(b)){const p=[b];let v=h+1;for(;v<i.len&&i.kinds[v]==="text"&&xc(i.texts[v]);)p.push(i.texts[v]),v++;c.push(It(p)),r.push(!0),f.push("text"),d.push(i.starts[h]),h=v-1;continue}c.push(b),r.push(i.isWordLike[h]),f.push(N),d.push(i.starts[h])}return{len:c.length,texts:c,isWordLike:r,kinds:f,starts:d}}function Qb(i){const c=[],r=[],f=[],d=[];let h=0;for(;h<i.len;){const b=i.texts[h],N=i.kinds[h],p=i.isWordLike[h];if(N==="text"){const v=[b];let g=h+1,m=p;for(;g<i.len&&i.kinds[g]==="text"&&Yb(i.texts[g-1],i.isWordLike[g-1],i.texts[g],i.isWordLike[g]);){const S=i.texts[g];v.push(S),m=m||i.isWordLike[g],g++}if(g>h+1){c.push(It(v)),r.push(m),f.push("text"),d.push(i.starts[h]),h=g;continue}}c.push(b),r.push(p),f.push(N),d.push(i.starts[h]),h++}return{len:c.length,texts:c,isWordLike:r,kinds:f,starts:d}}function Vb(i){const c=[],r=[],f=[],d=[];for(let h=0;h<i.len;h++){const b=i.texts[h];if(i.kinds[h]==="text"&&b.includes("-")){const N=b.split("-");let p=N.length>1;for(let v=0;v<N.length;v++){const g=N[v];if(!p)break;(g.length===0||!Fh(g)||!xc(g))&&(p=!1)}if(p){let v=0;for(let g=0;g<N.length;g++){const m=N[g],S=g<N.length-1?`${m}-`:m;c.push(S),r.push(!0),f.push("text"),d.push(i.starts[h]+v),v+=S.length}continue}}c.push(b),r.push(i.isWordLike[h]),f.push(i.kinds[h]),d.push(i.starts[h])}return{len:c.length,texts:c,isWordLike:r,kinds:f,starts:d}}function Zb(i){const c=[],r=[],f=[],d=[];let h=0;for(;h<i.len;){const b=[i.texts[h]];let N=i.isWordLike[h],p=i.kinds[h],v=i.starts[h];if(p==="glue"){const g=[b[0]],m=v;for(h++;h<i.len&&i.kinds[h]==="glue";)g.push(i.texts[h]),h++;const S=It(g);if(h<i.len&&i.kinds[h]==="text")b[0]=S,b.push(i.texts[h]),N=i.isWordLike[h],p="text",v=m,h++;else{c.push(S),r.push(!1),f.push("glue"),d.push(m);continue}}else h++;if(p==="text")for(;h<i.len&&i.kinds[h]==="glue";){const g=[];for(;h<i.len&&i.kinds[h]==="glue";)g.push(i.texts[h]),h++;const m=It(g);if(h<i.len&&i.kinds[h]==="text"){b.push(m,i.texts[h]),N=N||i.isWordLike[h],h++;continue}b.push(m)}c.push(It(b)),r.push(N),f.push(p),d.push(v)}return{len:c.length,texts:c,isWordLike:r,kinds:f,starts:d}}function Kb(i){const c=i.texts.slice(),r=i.isWordLike.slice(),f=i.kinds.slice(),d=i.starts.slice();for(let h=0;h<c.length-1;h++){if(f[h]!=="text"||f[h+1]!=="text"||!ol(c[h])||!ol(c[h+1]))continue;const b=Ab(c[h]);b!==null&&(c[h]=b.head,c[h+1]=b.tail+c[h+1],d[h+1]=d[h]+b.head.length)}return{len:c.length,texts:c,isWordLike:r,kinds:f,starts:d}}function Jb(i,c,r){const f=ub();let d=0;const h=[],b=[],N=[],p=[],v=[],g=[],m=[],S=[],k=[],Y=[],J=[],q=[];for(const E of f.segment(i))for(const L of Bb(E.segment,E.isWordLike??!1,E.index,r)){let D=function(){g[j]!==null&&(b[j]=[bx(h,g,m,j)],g[j]=null),b[j].push(L.text),N[j]=N[j]||L.isWordLike,S[j]=S[j]||I,k[j]=k[j]||B,Y[j]=V,J[j]=$,q[j]=px(k[j],te)};const _=L.kind==="text",z=Cb(L.text,L.isWordLike,L.kind),I=ol(L.text),B=gx(L.text),te=zu(L.text),V=mf(L.text),$=Mb(L.text),j=d-1;c.carryCJKAfterClosingQuote&&_&&d>0&&p[j]==="text"&&I&&S[j]&&Y[j]||_&&d>0&&p[j]==="text"&&gb(L.text)&&S[j]||_&&d>0&&p[j]==="text"&&J[j]?D():_&&d>0&&p[j]==="text"&&L.isWordLike&&B&&q[j]?(D(),N[j]=!0):z!==null&&d>0&&p[j]==="text"&&g[j]===z?m[j]=(m[j]??1)+1:_&&!L.isWordLike&&d>0&&p[j]==="text"&&!S[j]&&(mb(L.text)||L.text==="-"&&N[j])?D():(h[d]=L.text,b[d]=[L.text],N[d]=L.isWordLike,p[d]=L.kind,v[d]=L.start,g[d]=z,m[d]=z===null?0:1,S[d]=I,k[d]=B,Y[d]=V,J[d]=$,q[d]=px(B,te),d++)}for(let E=0;E<d;E++){if(g[E]!==null){h[E]=bx(h,g,m,E);continue}h[E]=It(b[E])}for(let E=1;E<d;E++)p[E]==="text"&&!N[E]&&Ef(h[E])&&p[E-1]==="text"&&!S[E-1]&&(h[E-1]+=h[E],N[E-1]=N[E-1]||N[E],h[E]="");const W=Array.from({length:d},()=>null);let Q=-1;for(let E=d-1;E>=0;E--){const L=h[E];if(L.length!==0){if(p[E]==="text"&&!N[E]&&Q>=0&&p[Q]==="text"&&(vb(L)||L==="-"&&Eb(h[Q]))){const _=W[Q]??[];_.push(L),W[Q]=_,v[Q]=v[E],h[E]="";continue}Q=E}}for(let E=0;E<d;E++){const L=W[E];L!=null&&(h[E]=Db(L,h[E]))}let ee=0;for(let E=0;E<d;E++){const L=h[E];L.length!==0&&(ee!==E&&(h[ee]=L,N[ee]=N[E],p[ee]=p[E],v[ee]=v[E]),ee++)}h.length=ee,N.length=ee,p.length=ee,v.length=ee;const ne=Zb({len:ee,texts:h,isWordLike:N,kinds:p,starts:v}),Z=Kb(Qb(Vb(Xb(_b(zb(ne))))));for(let E=0;E<Z.len-1;E++){const L=kb(Z.texts[E]);L!==null&&(Z.kinds[E]!=="space"&&Z.kinds[E]!=="preserved-space"||Z.kinds[E+1]!=="text"||!gx(Z.texts[E+1])||(Z.texts[E]=L.space,Z.isWordLike[E]=!1,Z.kinds[E]=Z.kinds[E]==="preserved-space"?"preserved-space":"space",Z.texts[E+1]=L.marks+Z.texts[E+1],Z.starts[E+1]=Z.starts[E]+L.space.length))}return Z}function Wb(i,c){if(i.len===0)return[];if(!c.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:i.len,consumedEndSegmentIndex:i.len}];const r=[];let f=0;for(let d=0;d<i.len;d++)i.kinds[d]==="hard-break"&&(r.push({startSegmentIndex:f,endSegmentIndex:d,consumedEndSegmentIndex:d+1}),f=d+1);return f<i.len&&r.push({startSegmentIndex:f,endSegmentIndex:i.len,consumedEndSegmentIndex:i.len}),r}function Ib(i,c,r){if(c.len<=1)return c;const f=[],d=[],h=[],b=[];let N=-1,p=!1;function v(S){f.push(c.texts[S]),d.push(c.isWordLike[S]),h.push("text"),b.push(c.starts[S])}function g(S,k){let Y=!1;for(let W=S;W<k;W++)Y=Y||c.isWordLike[W];const J=c.starts[S],q=k<c.len?c.starts[k]:i.length;f.push(i.slice(J,q)),d.push(Y),h.push("text"),b.push(J)}function m(S){if(!(N<0)){if(p)N+1===S?v(N):g(N,S);else for(let k=N;k<S;k++)v(k);N=-1,p=!1}}for(let S=0;S<c.len;S++){const k=c.texts[S],Y=c.kinds[S];if(Y==="text"){N>=0&&!kh(c.texts[S-1],r)&&m(S),N<0&&(N=S),p=p||ol(k);continue}m(S),f.push(k),d.push(c.isWordLike[S]),h.push(Y),b.push(c.starts[S])}return m(c.len),{len:f.length,texts:f,isWordLike:d,kinds:h,starts:b}}function $b(i,c,r="normal",f="normal"){const d=tb(r),h=d.mode==="pre-wrap"?nb(i):lb(i);if(h.length===0)return{normalized:h,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const b=Jb(h,c,d),N=f==="keep-all"?Ib(h,b,c.breakKeepAllAfterPunctuation):b;return{normalized:h,chunks:Wb(N,d),...N}}let Ta=null;const Nx=new Map;let Fa=null;const Pb=96,ep=new RegExp("\\p{Emoji_Presentation}","u"),tp=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let cf=null;const Sx=new Map;function Af(){if(Ta!==null)return Ta;if(typeof OffscreenCanvas<"u")return Ta=new OffscreenCanvas(1,1).getContext("2d"),Ta;if(typeof document<"u")return Ta=document.createElement("canvas").getContext("2d"),Ta;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function lp(i){let c=Nx.get(i);return c||(c=new Map,Nx.set(i,c)),c}function nn(i,c){let r=c.get(i);return r===void 0&&(r={width:Af().measureText(i).width,containsCJK:ol(i)},c.set(i,r)),r}function wa(){if(Fa!==null)return Fa;if(typeof navigator>"u")return Fa={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},Fa;const i=navigator.userAgent,r=navigator.vendor==="Apple Computer, Inc."&&i.includes("Safari/")&&!i.includes("Chrome/")&&!i.includes("Chromium/")&&!i.includes("CriOS/")&&!i.includes("FxiOS/")&&!i.includes("EdgiOS/"),f=i.includes("Chrome/")||i.includes("Chromium/")||i.includes("CriOS/")||i.includes("Edg/");return Fa={lineFitEpsilon:r?1/64:.005,carryCJKAfterClosingQuote:f,breakKeepAllAfterPunctuation:!r,preferPrefixWidthsForBreakableRuns:r,preferEarlySoftHyphenBreak:r},Fa}function np(i){const c=i.match(/(\d+(?:\.\d+)?)\s*px/);return c?parseFloat(c[1]):16}function Dh(){return cf===null&&(cf=new Intl.Segmenter(void 0,{granularity:"grapheme"})),cf}function ap(i){return ep.test(i)||i.includes("️")}function up(i){return tp.test(i)}function ip(i,c){let r=Sx.get(i);if(r!==void 0)return r;const f=Af();f.font=i;const d=f.measureText("😀").width;if(r=0,d>c+.5&&typeof document<"u"&&document.body!==null){const h=document.createElement("span");h.style.font=i,h.style.display="inline-block",h.style.visibility="hidden",h.style.position="absolute",h.textContent="😀",document.body.appendChild(h);const b=h.getBoundingClientRect().width;document.body.removeChild(h),d-b>.5&&(r=d-b)}return Sx.set(i,r),r}function cp(i){let c=0;const r=Dh();for(const f of r.segment(i))ap(f.segment)&&c++;return c}function sp(i,c){return c.emojiCount===void 0&&(c.emojiCount=cp(i)),c.emojiCount}function zn(i,c,r){return r===0?c.width:c.width-sp(i,c)*r}function rp(i,c,r,f,d){if(c.breakableFitAdvances!==void 0&&c.breakableFitMode===d)return c.breakableFitAdvances;c.breakableFitMode=d;const h=Dh(),b=[];for(const g of h.segment(i))b.push(g.segment);if(b.length<=1)return c.breakableFitAdvances=null,c.breakableFitAdvances;if(d==="sum-graphemes"){const g=[];for(const m of b){const S=nn(m,r);g.push(zn(m,S,f))}return c.breakableFitAdvances=g,c.breakableFitAdvances}if(d==="pair-context"||b.length>Pb){const g=[];let m=null,S=0;for(const k of b){const Y=nn(k,r),J=zn(k,Y,f);if(m===null)g.push(J);else{const q=m+k,W=nn(q,r);g.push(zn(q,W,f)-S)}m=k,S=J}return c.breakableFitAdvances=g,c.breakableFitAdvances}const N=[];let p="",v=0;for(const g of b){p+=g;const m=nn(p,r),S=zn(p,m,f);N.push(S-v),v=S}return c.breakableFitAdvances=N,c.breakableFitAdvances}function fp(i,c){const r=Af();r.font=i;const f=lp(i),d=np(i),h=c?ip(i,d):0;return{cache:f,fontSize:d,emojiCorrection:h}}function op(i){return i==="space"||i==="zero-width-break"||i==="soft-hyphen"}function pc(i){return i==="space"||i==="preserved-space"||i==="tab"||i==="zero-width-break"||i==="soft-hyphen"}function Cf(i,c,r=i.widths.length){for(;c<r;){const f=i.kinds[c];if(!op(f))break;c++}return c}function Bh(i,c){if(c<=0)return 0;const r=i%c;return Math.abs(r)<=1e-6?c:c-r}function Oh(i,c,r){return i.letterSpacing!==0&&c&&i.spacingGraphemeCounts[r]>0?i.letterSpacing:0}function Mf(i,c){return c===0?0:i+c}function dp(i,c){return i.letterSpacing!==0&&i.spacingGraphemeCounts[c]>0?i.letterSpacing:0}function jh(i,c,r,f,d){const h=c==="tab"?d+dp(i,r):i.lineEndFitAdvances[r];return Mf(f,h)}function hc(i,c,r,f){const d=c==="tab"?0:i.lineEndFitAdvances[r];return Mf(f,d)}function mc(i,c,r,f,d){const h=c==="tab"?d:i.lineEndPaintAdvances[r];return Mf(f,h)}function wh(i,c,r){return i.letterSpacing!==0&&c?r+i.letterSpacing:r}function zh(i,c){return i.letterSpacing===0?c:c+i.letterSpacing}function ja(i,c,r){let f=c;for(;f<i.length&&i[f]<r;)f++;return f}function xp(i,c,r,f,d){if(i.letterSpacing===0)return 0;if(d>0)return i.spacingGraphemeCounts[f]>0?i.letterSpacing:0;for(let h=f-1;h>=c;h--){const b=i.kinds[h];if(!(b==="space"||b==="zero-width-break"||b==="hard-break")){if(b==="soft-hyphen"){if(h===f-1)return 0;continue}return h===c&&r>0||i.spacingGraphemeCounts[h]>0?i.letterSpacing:0}}return 0}function _h(i,c,r,f,d,h){return c+xp(i,r,f,d,h)}function hp(i,c){let r=0,f=i.chunks.length;for(;r<f;){const d=Math.floor((r+f)/2);c<i.chunks[d].consumedEndSegmentIndex?f=d:r=d+1}return r<i.chunks.length?r:-1}function mp(i,c,r){let f=r.segmentIndex;if(r.graphemeIndex>0)return c;const d=i.chunks[c];return d.startSegmentIndex===d.endSegmentIndex&&f===d.startSegmentIndex||(f<d.startSegmentIndex&&(f=d.startSegmentIndex),f=Cf(i,f,d.endSegmentIndex),f<d.endSegmentIndex)?(r.segmentIndex=f,r.graphemeIndex=0,c):d.consumedEndSegmentIndex>=i.widths.length?-1:(r.segmentIndex=d.consumedEndSegmentIndex,r.graphemeIndex=0,c+1)}function gp(i,c){if(c.segmentIndex>=i.widths.length)return-1;const r=hp(i,c.segmentIndex);return r<0?-1:mp(i,r,c)}function vp(i,c,r){const{widths:f,kinds:d,breakableFitAdvances:h,breakablePreferredBreaks:b}=i;if(f.length===0)return 0;const p=wa().lineFitEpsilon,v=c+p;let g=0,m=0,S=!1,k=0,Y=0,J=0,q=0,W=-1,Q=0;function ee(){W=-1,Q=0}function ne(I=J,B=q,te=m){g++,r==null||r(te,k,Y,I,B),m=0,S=!1,ee()}function Z(I,B){S=!0,k=I,Y=0,J=I+1,q=0,m=B}function E(I,B,te){S=!0,k=I,Y=B,J=I,q=B+1,m=te}function L(I,B){if(!S){Z(I,B);return}m+=B,J=I+1,q=0}function _(I,B){const te=h[I],V=b[I]??null;let $=V===null?-1:ja(V,0,B+1),j=-1,D=0,U=B;for(;U<te.length;){const H=te[U];if(!S)E(I,U,H);else if(m+H>v){if(V!==null&&j>B){ne(I,j,D),U=j,$=ja(V,$,U+1),j=-1,D=0;continue}ne(),E(I,U,H)}else m+=H,J=I,q=U+1;const le=U+1;V!==null&&V[$]===le&&(j=le,D=m,$++),U++}S&&J===I&&q===te.length&&(J=I+1,q=0)}let z=0;for(;z<f.length&&!(!S&&(z=Cf(i,z),z>=f.length));){const I=f[z],B=d[z],te=pc(B);if(!S){I>v&&h[z]!==null?_(z,0):Z(z,I),te&&(W=z+1,Q=m-I),z++;continue}if(m+I>v){if(te){L(z,I),ne(z+1,0,m-I),z++;continue}if(W>=0){if(J>W||J===W&&q>0){ne();continue}ne(W,0,Q);continue}if(I>v&&h[z]!==null){ne(),_(z,0),z++;continue}ne();continue}L(z,I),te&&(W=z+1,Q=m-I),z++}return S&&ne(),g}function bp(i,c,r){if(i.simpleLineWalkFastPath)return vp(i,c,r);const{widths:f,kinds:d,breakableFitAdvances:h,breakablePreferredBreaks:b,discretionaryHyphenWidth:N,chunks:p}=i;if(f.length===0||p.length===0)return 0;const v=wa(),g=v.lineFitEpsilon,m=c+g;let S=0,k=0,Y=!1,J=0,q=0,W=0,Q=0,ee=-1,ne=0,Z=0,E=null;function L(){ee=-1,ne=0,Z=0,E=null}function _(){return E==="soft-hyphen"&&ee===W&&Q===0?Z:k}function z(D=W,U=Q,H){S++,r!==void 0&&r(_h(i,H??_(),J,q,D,U),J,q,D,U),k=0,Y=!1,L()}function I(D,U){Y=!0,J=D,q=0,W=D+1,Q=0,k=U}function B(D,U,H){Y=!0,J=D,q=U,W=D,Q=U+1,k=H}function te(D,U){if(!Y){I(D,U);return}k+=U,W=D+1,Q=0}function V(D,U,H,le,K,ae){if(!U)return;const he=hc(i,D,H,K),Te=mc(i,D,H,K,le);ee=H+1,ne=k-ae+he,Z=k-ae+Te,E=D}function $(D,U){const H=h[D],le=b[D]??null;let K=le===null?-1:ja(le,0,U+1),ae=-1,he=0,Te=U;for(;Te<H.length;){const A=H[Te];if(!Y)B(D,Te,A);else{const se=wh(i,!0,A),re=k+se;if(zh(i,re)>m){if(le!==null&&ae>U){z(D,ae,he),Te=ae,K=ja(le,K,Te+1),ae=-1,he=0;continue}z(),B(D,Te,A)}else k=re,W=D,Q=Te+1}const P=Te+1;le!==null&&le[K]===P&&(ae=P,he=k,K++),Te++}Y&&W===D&&Q===H.length&&(W=D+1,Q=0)}function j(D){S++,r==null||r(0,D.startSegmentIndex,0,D.consumedEndSegmentIndex,0),L()}for(let D=0;D<p.length;D++){const U=p[D];if(U.startSegmentIndex===U.endSegmentIndex){j(U);continue}Y=!1,k=0,J=U.startSegmentIndex,q=0,W=U.startSegmentIndex,Q=0,L();let H=U.startSegmentIndex;for(;H<U.endSegmentIndex&&!(!Y&&(H=Cf(i,H,U.endSegmentIndex),H>=U.endSegmentIndex));){const le=d[H],K=pc(le),ae=Oh(i,Y,H),he=le==="tab"?Bh(k+ae,i.tabStopAdvance):f[H],Te=ae+he,A=jh(i,le,H,ae,he);if(le==="soft-hyphen"){Y&&(W=H+1,Q=0,ee=H+1,ne=k+N,Z=k+N,E=le),H++;continue}if(!Y){A>m&&h[H]!==null?$(H,0):I(H,he),V(le,K,H,he,ae,Te),H++;continue}if(k+A>m){const se=k+hc(i,le,H,ae),re=k+mc(i,le,H,ae,he);if(E==="soft-hyphen"&&v.preferEarlySoftHyphenBreak&&ne<=m){z(ee,0,Z);continue}if(K&&se<=m){te(H,Te),z(H+1,0,re),H++;continue}if(ee>=0&&ne<=m){if(W>ee||W===ee&&Q>0){z();continue}const fe=ee;z(fe,0,Z),H=fe;continue}if(A>m&&h[H]!==null){z(),$(H,0),H++;continue}z();continue}te(H,Te),V(le,K,H,he,ae,Te),H++}if(Y){const le=ee===U.consumedEndSegmentIndex?Z:k;z(U.consumedEndSegmentIndex,0,le)}}return S}function pp(i,c,r,f){const d=i.chunks[r];if(d.startSegmentIndex===d.endSegmentIndex)return c.segmentIndex=d.consumedEndSegmentIndex,c.graphemeIndex=0,0;const{widths:h,kinds:b,breakableFitAdvances:N,breakablePreferredBreaks:p,discretionaryHyphenWidth:v}=i,g=wa(),m=g.lineFitEpsilon,S=f+m,k=c.segmentIndex,Y=c.graphemeIndex;let J=0,q=!1,W=c.segmentIndex,Q=c.graphemeIndex,ee=-1,ne=0,Z=0,E=null;function L(){return E==="soft-hyphen"&&ee===W&&Q===0?Z:J}function _(j=W,D=Q,U=L()){return q?(c.segmentIndex=j,c.graphemeIndex=D,_h(i,U,k,Y,j,D)):null}function z(j,D){q=!0,W=j+1,Q=0,J=D}function I(j,D,U){q=!0,W=j,Q=D+1,J=U}function B(j,D){if(!q){z(j,D);return}J+=D,W=j+1,Q=0}function te(j,D,U,H,le,K){if(!D)return;const ae=hc(i,j,U,le),he=mc(i,j,U,le,H);ee=U+1,ne=J-K+ae,Z=J-K+he,E=j}function V(j,D){const U=N[j],H=p[j]??null;let le=H===null?-1:ja(H,0,D+1),K=-1,ae=0;for(let he=D;he<U.length;he++){const Te=U[he];if(!q)I(j,he,Te);else{const P=wh(i,!0,Te),se=J+P;if(zh(i,se)>S)return H!==null&&K>D?_(j,K,ae):_();J=se,W=j,Q=he+1}const A=he+1;H!==null&&H[le]===A&&(K=A,ae=J,le++)}return q&&W===j&&Q===U.length&&(W=j+1,Q=0),null}function $(){return E!=="soft-hyphen"||ee<0?null:ne<=S?_(ee,0,Z):null}for(let j=c.segmentIndex;j<d.endSegmentIndex;j++){const D=b[j],U=pc(D),H=j===c.segmentIndex?c.graphemeIndex:0,le=Oh(i,q,j),K=D==="tab"?Bh(J+le,i.tabStopAdvance):h[j],ae=le+K,he=jh(i,D,j,le,K);if(D==="soft-hyphen"&&H===0){q&&(W=j+1,Q=0,ee=j+1,ne=J+v,Z=J+v,E=D);continue}if(!q){if(H>0){const A=V(j,H);if(A!==null)return A}else if(he>S&&N[j]!==null){const A=V(j,0);if(A!==null)return A}else z(j,K);te(D,U,j,K,le,ae);continue}if(J+he>S){const A=J+hc(i,D,j,le),P=J+mc(i,D,j,le,K);if(E==="soft-hyphen"&&g.preferEarlySoftHyphenBreak&&ne<=S)return _(ee,0,Z);const se=$();if(se!==null)return se;if(U&&A<=S)return B(j,ae),_(j+1,0,P);if(ee>=0&&ne<=S)return W>ee||W===ee&&Q>0?_():_(ee,0,Z);if(he>S&&N[j]!==null){const re=_();if(re!==null)return re;const fe=V(j,0);if(fe!==null)return fe}return _()}B(j,ae),te(D,U,j,K,le,ae)}return ee===d.consumedEndSegmentIndex&&Q===0?_(d.consumedEndSegmentIndex,0,Z):_(d.consumedEndSegmentIndex,0,J)}function yp(i,c,r){const{widths:f,kinds:d,breakableFitAdvances:h,breakablePreferredBreaks:b}=i,p=wa().lineFitEpsilon,v=r+p;let g=0,m=!1,S=c.segmentIndex,k=c.graphemeIndex,Y=-1,J=0;for(let q=c.segmentIndex;q<f.length;q++){const W=d[q],Q=pc(W),ee=q===c.segmentIndex?c.graphemeIndex:0,ne=h[q],Z=f[q];if(!m){if(ee>0||Z>v&&ne!==null){const E=ne,L=b[q]??null;let _=L===null?-1:ja(L,0,ee+1),z=-1,I=0;const B=E[ee];m=!0,g=B,S=q,k=ee+1,L!==null&&L[_]===k&&(z=k,I=g,_++);for(let te=ee+1;te<E.length;te++){const V=E[te];if(g+V>v)return L!==null&&z>ee?(c.segmentIndex=q,c.graphemeIndex=z,I):(c.segmentIndex=S,c.graphemeIndex=k,g);g+=V,S=q,k=te+1,L!==null&&L[_]===k&&(z=k,I=g,_++)}S===q&&k===E.length&&(S=q+1,k=0)}else m=!0,g=Z,S=q+1,k=0;Q&&(Y=q+1,J=g-Z);continue}if(g+Z>v)return Q?(c.segmentIndex=q+1,c.graphemeIndex=0,g):Y>=0?S>Y||S===Y&&k>0?(c.segmentIndex=S,c.graphemeIndex=k,g):(c.segmentIndex=Y,c.graphemeIndex=0,J):(c.segmentIndex=S,c.graphemeIndex=k,g);g+=Z,S=q+1,k=0,Q&&(Y=q+1,J=g-Z)}return m?(c.segmentIndex=S,c.graphemeIndex=k,g):null}function Np(i,c,r,f){return i.simpleLineWalkFastPath?yp(i,c,f):pp(i,c,r,f)}function vf(i,c,r){const f=gp(i,c);return f<0?null:Np(i,c,f,r)}let sf=null,Ex=new WeakMap;function Sp(){return sf===null&&(sf=new Intl.Segmenter(void 0,{granularity:"grapheme"})),sf}function Ax(i,c,r){let f=r.get(i);if(f!==void 0)return f;f=[];const d=Sp();for(const h of d.segment(c[i]))f.push(h.segment);return r.set(i,f),f}function Ep(i,c,r){return r>c&&i[r-1]==="soft-hyphen"}function Cx(i,c,r,f){for(let d=r;d<f;d++)i+=c[d];return i}function Ap(i){let c=Ex.get(i);return c!==void 0||(c=new Map,Ex.set(i,c)),c}function Cp(i,c,r,f,d,h){let b="";const N=Ep(i.kinds,r,d);for(let p=r;p<d;p++)if(!(i.kinds[p]==="soft-hyphen"||i.kinds[p]==="hard-break"))if(p===r&&f>0){const v=Ax(p,i.segments,c);b=Cx(b,v,f,v.length)}else b+=i.segments[p];if(h>0){N&&(b+="-");const p=Ax(d,i.segments,c);b=Cx(b,p,r===d?f:0,h)}else N&&(b+="-");return b}let rf=null;function kf(){return rf===null&&(rf=new Intl.Segmenter(void 0,{granularity:"grapheme"})),rf}function Mp(i){return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}}function kp(i,c){const r=[];let f=[],d=0,h=!1,b=!1,N=!1;function p(){f.length!==0&&(r.push({text:f.length===1?f[0]:f.join(""),start:d}),f=[],h=!1,b=!1,N=!1)}function v(m,S,k){f=[m],d=S,h=k,b=mf(m),N=gc.has(m)}function g(m,S){f.push(m),h=h||S;const k=mf(m);m.length===1&&_n.has(m)?b=b||k:b=k,N=!1}for(const m of kf().segment(i)){const S=m.segment,k=ol(S);if(f.length===0){v(S,m.index,k);continue}if(N||Nf.has(S)||_n.has(S)||c.carryCJKAfterClosingQuote&&k&&b){g(S,k);continue}if(!h&&!k){g(S,k);continue}p(),v(S,m.index,k)}return p(),r}function Tp(i,c,r){if(c.length<=1)return c;const f=[];let d=-1,h=!1;function b(p,v){const g=c[p].start,m=v<c.length?c[v].start:i.length;f.push({text:i.slice(g,m),start:g})}function N(p){if(!(d<0)){if(h)d+1===p?f.push(c[d]):b(d,p);else for(let v=d;v<p;v++)f.push(c[v]);d=-1,h=!1}}for(let p=0;p<c.length;p++){const v=c[p];d>=0&&!kh(c[p-1].text,r)&&N(p),d<0&&(d=p),h=h||ol(v.text)}return N(c.length),f}function Mx(i,c){if(c==="zero-width-break"||c==="soft-hyphen"||c==="hard-break")return 0;if(c==="tab")return 1;let r=0;const f=kf();for(const d of f.segment(i))r++;return r}function Fp(i){return i==="-"||i==="֊"||i==="‐"||i==="‒"||i==="–"||i==="—"}function Dp(i){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(i))return null;const c=[];let r=0;for(const f of kf().segment(i))r++,Fp(f.segment)&&c.push(r);return c.length===0?null:c}function Bp(i,c,r){return c>1?i+(c-1)*r:i}function Op(i,c,r,f,d){const h=wa(),{cache:b,emojiCorrection:N}=fp(c,up(i.normalized)),p=zn("-",nn("-",b),N)+(d===0?0:d*2),g=zn(" ",nn(" ",b),N)*8,m=d!==0;if(i.len===0)return Mp();const S=[],k=[],Y=[],J=[];let q=i.chunks.length<=1&&!m;const W=r?[]:null,Q=[],ee=[],ne=[],Z=r?[]:null,E=Array.from({length:i.len});function L(B,te,V,$,j,D,U,H,le){j!=="text"&&j!=="space"&&j!=="zero-width-break"&&(q=!1),S.push(te),k.push(V),Y.push($),J.push(j),W==null||W.push(D),Q.push(U),ee.push(H),m&&ne.push(le),Z!==null&&Z.push(B)}function _(B,te,V,$,j){const D=nn(B,b),U=m?Mx(B,te):0,H=Bp(zn(B,D,N),U,d),le=te==="space"||te==="preserved-space"||te==="zero-width-break"?0:H,K=le===0?0:le+(U>0?d:0),ae=te==="space"||te==="zero-width-break"?0:H;if(j&&$&&B.length>1){let he="sum-graphemes";d!==0?he="segment-prefixes":xc(B)?he="pair-context":h.preferPrefixWidthsForBreakableRuns&&(he="segment-prefixes");const Te=rp(B,D,b,N,he),A=Te===null||f==="keep-all"?null:Dp(B);L(B,H,K,ae,te,V,Te,A,U);return}L(B,H,K,ae,te,V,null,null,U)}for(let B=0;B<i.len;B++){E[B]=S.length;const te=i.texts[B],V=i.isWordLike[B],$=i.kinds[B],j=i.starts[B];if($==="soft-hyphen"){L(te,0,p,p,$,j,null,null,0);continue}if($==="hard-break"){L(te,0,0,0,$,j,null,null,0);continue}if($==="tab"){L(te,0,0,0,$,j,null,null,m?Mx(te,$):0);continue}const D=nn(te,b);if($==="text"&&D.containsCJK){const U=kp(te,h),H=f==="keep-all"?Tp(te,U,h.breakKeepAllAfterPunctuation):U;for(let le=0;le<H.length;le++){const K=H[le];_(K.text,"text",j+K.start,V,f==="keep-all"||!ol(K.text))}continue}_(te,$,j,V,!0)}const z=jp(i.chunks,E,S.length),I=W===null?null:$v(i.normalized,W);return Z!==null?{widths:S,lineEndFitAdvances:k,lineEndPaintAdvances:Y,kinds:J,simpleLineWalkFastPath:q,segLevels:I,breakableFitAdvances:Q,breakablePreferredBreaks:ee,letterSpacing:d,spacingGraphemeCounts:ne,discretionaryHyphenWidth:p,tabStopAdvance:g,chunks:z,segments:Z}:{widths:S,lineEndFitAdvances:k,lineEndPaintAdvances:Y,kinds:J,simpleLineWalkFastPath:q,segLevels:I,breakableFitAdvances:Q,breakablePreferredBreaks:ee,letterSpacing:d,spacingGraphemeCounts:ne,discretionaryHyphenWidth:p,tabStopAdvance:g,chunks:z}}function jp(i,c,r){const f=[];for(let d=0;d<i.length;d++){const h=i[d],b=h.startSegmentIndex<c.length?c[h.startSegmentIndex]:r,N=h.endSegmentIndex<c.length?c[h.endSegmentIndex]:r,p=h.consumedEndSegmentIndex<c.length?c[h.consumedEndSegmentIndex]:r;f.push({startSegmentIndex:b,endSegmentIndex:N,consumedEndSegmentIndex:p})}return f}function wp(i,c,r,f){const d=(f==null?void 0:f.wordBreak)??"normal",h=(f==null?void 0:f.letterSpacing)??0,b=$b(i,wa(),f==null?void 0:f.whiteSpace,d);return Op(b,c,r,d,h)}function bf(i,c,r){return wp(i,c,!0,r)}function kx(i){let c=0;return bp(i,Number.POSITIVE_INFINITY,r=>{r>c&&(c=r)}),c}const zp=/[ \t\n\f\r]+/,Tx=/^[ \t\n\f\r]+/,Fx=/[ \t\n\f\r]+$/,Dx={segmentIndex:0,graphemeIndex:0},_p={itemIndex:0,segmentIndex:0,graphemeIndex:0};function ff(i){return{segmentIndex:i.segmentIndex,graphemeIndex:i.graphemeIndex}}function Bx(i){return i.segmentIndex===0&&i.graphemeIndex===0}function fc(i,c,r){const f=`${i}\0${c}`,d=r.get(f);if(d!==void 0)return d;const h=c===0?void 0:{letterSpacing:c},b=kx(bf("A A",i,h)),N=kx(bf("AA",i,h)),p=Math.max(0,b-N);return r.set(f,p),p}function Rp(i){const c={segmentIndex:0,graphemeIndex:0},r=vf(i,c,Number.POSITIVE_INFINITY);return r===null?null:{endGraphemeIndex:c.graphemeIndex,endSegmentIndex:c.segmentIndex,width:r}}function Lp(i,c){return i===0&&c>0}function Hp(i){const c=[],r=Array.from({length:i.length}),f=new Map;let d=0;for(let h=0;h<i.length;h++){const b=i[h],N=b.letterSpacing??0,p=Tx.test(b.text),v=Fx.test(b.text),g=b.text.replace(Tx,"").replace(Fx,"");if(g.length===0){zp.test(b.text)&&d===0&&(d=fc(b.font,N,f));continue}const m=d>0?d:p?fc(b.font,N,f):0,S=bf(g,b.font,N===0?void 0:{letterSpacing:N}),k=Rp(S);if(k===null){d=v?fc(b.font,N,f):0;continue}const Y={break:b.break??"normal",endGraphemeIndex:k.endGraphemeIndex,endSegmentIndex:k.endSegmentIndex,extraWidth:b.extraWidth??0,gapBefore:m,naturalWidth:k.width,prepared:S,sourceItemIndex:h};c.push(Y),r[h]=Y,d=v?fc(b.font,N,f):0}return{items:c,itemsBySourceItemIndex:r}}function Up(i,c,r,f){if(i.items.length===0||r.itemIndex>=i.items.length)return null;const d=Math.max(1,c);let h=0,b=d,N=r.itemIndex;e:for(;N<i.items.length;){const p=i.items[N];if(!Bx(r)&&r.segmentIndex===p.endSegmentIndex&&r.graphemeIndex===p.endGraphemeIndex){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}const v=h===0?0:p.gapBefore,g=Bx(r);if(p.break==="never"){if(!g){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}const W=p.naturalWidth+p.extraWidth,Q=v+W;if(h>0&&Q>b)break e;f==null||f(p,v,W,ff(Dx),{segmentIndex:p.endSegmentIndex,graphemeIndex:p.endGraphemeIndex}),h+=Q,b=Math.max(0,d-h),N++,r.segmentIndex=0,r.graphemeIndex=0;continue}const m=v+p.extraWidth;if(h>0&&m>=b)break e;if(g){const W=m+p.naturalWidth;if(W<=b){f==null||f(p,v,p.naturalWidth+p.extraWidth,ff(Dx),{segmentIndex:p.endSegmentIndex,graphemeIndex:p.endGraphemeIndex}),h+=W,b=Math.max(0,d-h),N++,r.segmentIndex=0,r.graphemeIndex=0;continue}}const S=Math.max(1,b-m),k={segmentIndex:r.segmentIndex,graphemeIndex:r.graphemeIndex},Y=vf(p.prepared,k,S);if(Y===null){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}if(r.segmentIndex===k.segmentIndex&&r.graphemeIndex===k.graphemeIndex){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}const J=Y+p.extraWidth,q=v+J;if(h>0&&g&&q>b)break e;if(h>0&&g&&v>0&&Lp(k.segmentIndex,k.graphemeIndex)){const W={segmentIndex:0,graphemeIndex:0};if(vf(p.prepared,W,Math.max(1,d-p.extraWidth))!==null&&(W.segmentIndex>k.segmentIndex||W.segmentIndex===k.segmentIndex&&W.graphemeIndex>k.graphemeIndex))break e}if(f==null||f(p,v,J,ff(r),{segmentIndex:k.segmentIndex,graphemeIndex:k.graphemeIndex}),h+=q,b=Math.max(0,d-h),k.segmentIndex===p.endSegmentIndex&&k.graphemeIndex===p.endGraphemeIndex){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}r.segmentIndex=k.segmentIndex,r.graphemeIndex=k.graphemeIndex;break}return h===0?null:(r.itemIndex=N,h)}function of(i,c,r=_p){const f=i,d={itemIndex:r.itemIndex,segmentIndex:r.segmentIndex,graphemeIndex:r.graphemeIndex},h=[],b=Up(f,c,d,(N,p,v,g,m)=>{h.push({itemIndex:N.sourceItemIndex,gapBefore:p,occupiedWidth:v,start:g,end:m})});return b===null?null:{fragments:h,width:b,end:d}}function qp(i,c){return Cp(i.prepared,Ap(i.prepared),c.start.segmentIndex,c.start.graphemeIndex,c.end.segmentIndex,c.end.graphemeIndex)}function Gp(i,c){const r=i,f=[];for(let d=0;d<c.fragments.length;d++){const h=c.fragments[d],b=r.itemsBySourceItemIndex[h.itemIndex];if(b===void 0)throw new Error("Missing rich-text inline item for fragment");f.push({itemIndex:h.itemIndex,text:qp(b,h),gapBefore:h.gapBefore,occupiedWidth:h.occupiedWidth,start:h.start,end:h.end})}return{fragments:f,width:c.width,end:c.end}}let oc=!1;function Yp(){var i;if(!oc){if(typeof globalThis.OffscreenCanvas<"u"){oc=!0;return}if(typeof document<"u"){const c=document.createElement("canvas");class r{constructor(){Du(this,"width",1e3);Du(this,"height",1e3)}getContext(d){return c.getContext(d)}}globalThis.OffscreenCanvas=r,oc=!0;return}try{const c=import.meta.require||globalThis.require;if(c){const{createCanvas:r}=c("@napi-rs/canvas");class f{constructor(h,b){Du(this,"width");Du(this,"height");tx(this,i);this.width=h,this.height=b,lx(this,i,r(h,b))}getContext(h){return h!=="2d"?null:ex(this,i).getContext("2d")}}i=new WeakMap,globalThis.OffscreenCanvas=f,oc=!0}}catch{console.warn("Pretext requires OffscreenCanvas or @napi-rs/canvas for text measurement.")}}}function Xp(i,c,r,f){const h=Math.min(260,Math.round(f*.22))+i*(c+32),b=Math.max(60,f-c-r-16);return Math.min(h,b)}function wu(i,c,r,f){const d=i.layoutPreset||"auto",h=16,b=i.captionHeight??36;if(i.isAbsolute)return{...i,x:i.x??h,y:i.y??100,width:i.width??420,height:i.height??280};if(d==="custom")return{...i,x:i.x??h,y:i.y??260,width:i.width??420,height:i.height??280};if(d==="fill"){const q=r,W=i.height||Math.round(f*.28),Q=Math.max(160,f-W-b-h);return{...i,x:0,y:Q,width:q,height:W}}if(d==="corner-soft"){const q=Math.min(i.width||380,Math.round(r*.48)),W=i.height||260,Q=Math.max(0,r-q-h),ee=Math.max(160,f-W-b-24);return{...i,x:Q,y:ee,width:q,height:W}}const N=420,p=280,v=Math.round(r*.52),g=Math.min(i.width||N,v),m=i.height||p,S=Xp(c,m,b,f);if(d==="center"){const q=Math.min(i.width||560,r-h*2),W=Math.max(0,Math.round((r-q)/2));return{...i,x:W,y:S,width:q,height:m}}if(d==="staggered"){const W=c%2===1?Math.max(0,r-g-h):h;return{...i,x:W,y:S,width:g,height:m}}if(d==="mid-right"){const q=Math.max(0,r-g-h);return{...i,x:q,y:S,width:g,height:m}}if(d==="mid-left")return{...i,x:h,y:S,width:g,height:m};if((i.width||N)>=r*.75){const q=Math.min(i.width||N,r-h*2);return{...i,x:Math.max(0,Math.round((r-q)/2)),y:S,width:q,height:m}}const J=c%2===1?Math.max(0,r-g-h):h;return{...i,x:J,y:S,width:g,height:m}}const Da={itemIndex:0,segmentIndex:0,graphemeIndex:0};function Qp(i,c){const r=c.bold?i.replace(/^\d+\s+/,"700 "):i;return c.italic?"italic "+r:r}function Ba(i,c){return i.itemIndex-c.itemIndex||i.segmentIndex-c.segmentIndex||i.graphemeIndex-c.graphemeIndex}function Ox(i,c,r,f,d={}){Yp();const h=d.obstacleGap??24,b=d.pageImageLimit??2,N=i.map(Q=>{const ee=Q.runs.map(ne=>({...ne,font:Qp(Q.font,ne)}));return{...Q,runs:ee,prepared:Hp(ee)}});function p(Q,ee,ne,Z,E=1/0){var z;const L=[];let _=ne;for(;_+Q.lineHeight<=r&&L.length<E;){if(!of(Q.prepared,c,ee))return{lines:L,cursor:ee,y:_,done:!0};const I=Q.textIndent??0;let B=[{left:0,right:c}];const te=Z.filter(K=>!K.isAbsolute&&_+Q.lineHeight>K.y-h&&_<K.y+K.height+(K.captionHeight??0)+h);for(const K of te)B=B.flatMap(ae=>K.x-h>=ae.right||K.x+K.width+h<=ae.left?[ae]:[{left:ae.left,right:Math.min(ae.right,K.x-h)},{left:Math.max(ae.left,K.x+K.width+h),right:ae.right}]).filter(ae=>ae.right>ae.left);const V=Number(((z=Q.font.match(/(\d+(?:\.\d+)?)px/))==null?void 0:z[1])??36);let $=null;for(const K of B){const ae=K.right-K.left-I;if(ae<V*(te.length?2.5:1))continue;const he=of(Q.prepared,ae,ee);!he||he.width>ae+.5||(!$||Ba(he.end,$.line.end)>0)&&($={line:he,left:K.left+I,width:ae})}if(!$){if(!te.length)break;_=Math.min(...te.map(K=>K.y+K.height+(K.captionHeight??0)+h));continue}if(Ba($.line.end,ee)<=0)break;const D=Gp(Q.prepared,$.line).fragments.map(K=>{const ae=Q.runs[K.itemIndex];return{text:K.text,font:ae.font??Q.font,bold:ae.bold,italic:ae.italic,highlight:ae.highlight,gapBefore:K.gapBefore,occupiedWidth:K.occupiedWidth}});let U=$.left,H=Ba(ee,Da)===0&&Q.bullet?$.left-I:void 0;const le=$.line.width;if(d.textAlign==="center"){const K=Math.max(0,$.width-le),ae=Math.round(K/2);U+=ae,H!==void 0&&(H+=ae)}else if(d.textAlign==="right"){const K=Math.max(0,$.width-le);U+=K,H!==void 0&&(H+=K)}L.push({text:D.map(K=>K.text).join(""),fragments:D,x:U,y:_,className:Q.className,font:Q.font,lineHeight:Q.lineHeight,maxWidth:$.width,start:ee,end:$.line.end,bullet:Ba(ee,Da)===0?Q.bullet:void 0,bulletX:H}),ee=$.line.end,_+=Q.lineHeight}return{lines:L,cursor:ee,y:_,done:of(Q.prepared,c,ee)===null}}const v=[];let g=0,m=Da;const S=d.initialPageNumber??1,k=d.initialPageNumber!==void 0;let Y=0;const J=f.filter(Q=>!Q.pageIndex);let q=!1;const W=d.maxPages??50;for(;v.length<W&&(g<N.length||!k&&Y<J.length||k&&!q&&f.length>0);){const Q=S+v.length;let ee=[];if(k)q||(ee=f,q=!0);else{const $=f.filter(j=>j.pageIndex===Q);$.length>0?ee=$:(ee=J.slice(Y,Y+b),Y+=Math.max(ee.length,1))}const ne=ee.map(($,j)=>wu($,j,c,r)),Z=[];let E=0;const L=g,_=m;for(;g<N.length;){const $=N[g],j=Ba(m,Da)===0,D=E+(j&&Z.length?$.gapBefore??0:0);if(j&&$.keepWithNext&&Z.length){let H=D,le=!0;for(let K=g;K<N.length;K++){const ae=N[K];K>g&&(H+=ae.gapBefore??0);const he=p(ae,Da,H,ne,ae.keepWithNext?1/0:2);if((ae.keepWithNext||he.lines.length<2)&&!he.done){le=!1;break}if(!ae.keepWithNext)break;H=he.y+(ae.gapAfter??0)}if(!le)break}const U=p($,m,D,ne);if(!U.done&&U.lines.length){const H=p($,U.cursor,0,[],2);if(H.done&&H.lines.length===1&&U.lines.length>=2){const le=U.lines.pop();U.cursor=le.start,U.y=le.y}if(j&&U.lines.length<2&&Z.length)break}if(Z.push(...U.lines),m=U.cursor,E=U.y,!U.done)break;g++,m=Da,E+=$.gapAfter??0}if(g===L&&Ba(m,_)===0&&!ne.length||!Z.length&&!ne.length)break;const z=Z.reduce(($,j)=>Math.max($,j.y+j.lineHeight),0),I=ne.filter($=>!$.isAbsolute),B=I.reduce(($,j)=>Math.max($,j.y+j.height+(j.captionHeight??0)),0),te=Math.max(z,B),V=r>0?Math.min(1,te/r):0;if(Z.length>0&&d.verticalAlign&&d.verticalAlign!=="top"){const $=Z.reduce((H,le)=>Math.min(H,le.y),1/0),j=I.reduce((H,le)=>Math.min(H,le.y),1/0),D=Math.min($,j===1/0?$:j),U=te-D;if(r>U){let H=0;if(d.verticalAlign==="center"?H=Math.round((r-U)/2)-D:d.verticalAlign==="bottom"&&(H=r-U-D),H!==0){for(const le of Z)le.y+=H;for(const le of I)le.layoutPreset!=="custom"&&(le.y+=H)}}}v.push({pageNumber:Q,lines:Z,images:ne,textBottom:z,fillRatio:V})}return v}function df(i,c,r){return Math.round(i*Math.pow(c,r))}function Oa(i,c=1.45){if(i<=0)return 24;const f=1.65-Math.log(Math.max(8,i)/8)/Math.log(160/8)*(1.65-1.15),d=Math.max(1.1,Math.min(1.8,f*(c/1.45)));return Math.round(i*d)}function jx(i,c=!1){const r=(i||"").trim();switch(r){case"PingFang SC":return'"PingFang SC", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", sans-serif';case"Noto Sans SC":return'"Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif';case"Songti SC":return'"Songti SC", "Noto Serif SC", "STSong", "SimSun", serif';case"Noto Serif SC":return'"Noto Serif SC", "Songti SC", "SimSun", serif';case"Kaiti SC":return'"Kaiti SC", "LXGW WenKai Screen", "STKaiti", "KaiTi", serif';case"Yuanti SC":return'"Yuanti SC", "STYuanti", "PingFang SC", sans-serif';case"Inter":return'Inter, "PingFang SC", system-ui, sans-serif';case"Georgia":return'Georgia, "Songti SC", serif';default:return r?r.includes(",")?r:`"${r}", ${c?"serif":"sans-serif"}`:c?'"Songti SC", serif':'"PingFang SC", sans-serif'}}function Vp(i){const{baseFontSize:c,scaleRatio:r,lineHeightMultiplier:f,headingFont:d,bodyFont:h}=i,b=jx(d,!1),N=jx(h,!0),p=c,v=df(c,r,1),g=df(c,r,2),m=df(c,r,3),S=c,k=c;return{heading:{font:`700 ${m}px ${b}`,fontSize:m,lineHeight:Oa(m,f*.95),gapBefore:Math.round(m*.8),gapAfter:Math.round(m*.4),className:"body-heading"},subheading:{font:`700 ${g}px ${b}`,fontSize:g,lineHeight:Oa(g,f*.98),gapBefore:Math.round(g*.7),gapAfter:Math.round(g*.35),className:"body-subheading"},"minor-heading":{font:`700 ${v}px ${b}`,fontSize:v,lineHeight:Oa(v,f),gapBefore:Math.round(v*.6),gapAfter:Math.round(v*.3),className:"body-minor-heading"},paragraph:{font:`400 ${p}px ${N}`,fontSize:p,lineHeight:Oa(p,f),gapBefore:0,gapAfter:Math.round(p*.6),className:"body-line"},quote:{font:`400 ${S}px ${N}`,fontSize:S,lineHeight:Oa(S,f*1.05),gapBefore:Math.round(S*.5),gapAfter:Math.round(S*.5),className:"body-quote"},"list-item":{font:`400 ${k}px ${N}`,fontSize:k,lineHeight:Oa(k,f),gapBefore:0,gapAfter:Math.round(k*.3),className:"body-line"}}}function wx(i="longform-3-4"){const c=jn(i),r=i==="wechat-cover-2.35",f=i==="square-1-1";return{name:"默认样式",aspectRatio:i,algorithm:{baseFontSize:i==="wechat-cover-2.35"?56:i==="wide-16-9"?44:i==="square-1-1"?48:40,scaleRatio:r?1.35:1.25,lineHeightMultiplier:1.45,obstacleGap:24,targetFillRatio:.8,contentBottomGap:r?0:20,textAlign:r||f?"center":"left",verticalAlign:r||f?"center":"top",safeArea:r?{top:40,right:60,bottom:40,left:60}:c.defaultSafeArea},theme:{bgColor:"#ffffff",textColor:"#171717",headingColor:"#171717",accentColor:"#059669",quoteColor:"#525252",captionColor:"#737373",watermarkColor:"#a3a3a3",cardBg:"#f5f5f5",borderSubtle:"#e5e5e5"},typography:{headingFont:"PingFang SC",bodyFont:"Songti SC"},footerText:r?"":"Typeset Studio · 纯算法排版",watermarkText:r?"":"@Antigravity",chrome:{showHeader:!r,showWatermark:!r,showPageNumber:!r&&!f,showFooter:!r,showFooterDivider:!r,showFooterText:!r,showFillRatio:!1}}}function Zp(i){const{markdown:c,images:r=[],config:f,highlightWords:d=[]}=i,h=jn(f.aspectRatio),{stageWidth:b,stageHeight:N}=wn(h,f.algorithm.safeArea,f.algorithm.contentBottomGap),p=Vp({baseFontSize:f.algorithm.baseFontSize,scaleRatio:f.algorithm.scaleRatio,lineHeightMultiplier:f.algorithm.lineHeightMultiplier,headingFont:f.typography.headingFont,bodyFont:f.typography.bodyFont}),v=S=>Zv(S).map(k=>({...p[k.kind],kind:k.kind,text:k.text,runs:Vv(k.text,d),bullet:k.kind==="list-item"?k.bullet??"•":void 0,textIndent:k.kind==="list-item"?28:k.kind==="quote"?20:0,keepWithNext:["heading","subheading","minor-heading"].includes(k.kind)})),g=Kv(c);let m=[];if(g.length>1)m=g.map((S,k)=>{const Y=k+1,J=v(S),q=r.filter(ee=>ee.pageIndex!==void 0&&ee.pageIndex!==null&&ee.pageIndex>0?ee.pageIndex===Y:k===0);return{...Ox(J,b,N,q,{obstacleGap:f.algorithm.obstacleGap,pageImageLimit:2,textAlign:f.algorithm.textAlign,verticalAlign:f.algorithm.verticalAlign,initialPageNumber:Y})[0]??{pageNumber:Y,lines:[],images:q.map((ee,ne)=>wu(ee,ne,b,N)),textBottom:0,fillRatio:0},pageNumber:Y}});else{const S=v(c);m=Ox(S,b,N,r,{obstacleGap:f.algorithm.obstacleGap,pageImageLimit:f.aspectRatio==="longform-3-4"?2:1,textAlign:f.algorithm.textAlign,verticalAlign:f.algorithm.verticalAlign})}return m.length===0&&(m=[{pageNumber:1,lines:[],images:r.map((S,k)=>wu(S,k,b,N)),textBottom:0,fillRatio:0}]),{pages:m,pageCount:m.length,canvasSpec:h,config:f}}function Kp(i,c){return!c||c.length===0?i:i.length===0?c.map(r=>({...r,id:`img_${Date.now()}_${Math.random().toString(36).substring(2,6)}`})):i.map((r,f)=>{if(f<c.length){const d=c[f];return{...r,layoutPreset:d.layoutPreset??r.layoutPreset,isAbsolute:d.isAbsolute??r.isAbsolute,x:d.x??r.x,y:d.y??r.y,width:d.width??r.width,height:d.height??r.height,rotate:d.rotate??r.rotate,opacity:d.opacity??r.opacity,zIndex:d.zIndex??r.zIndex,borderRadius:d.borderRadius??r.borderRadius,captionHeight:d.captionHeight??r.captionHeight,pageIndex:d.pageIndex??r.pageIndex}}return r})}const Jp=`# 大模型纯算法排版深度剖析
303
+
304
+ 这是一篇利用纯几何计算与字符分词度量排版的示例文章。无论是字号、行距、还是图片避让,均由算法自动寻优。
305
+
306
+ > 排版的美感在于克制与韵律,让机器承担繁琐的对齐与换行,让人专注思想的表达。
307
+
308
+ ### 为什么选择纯算法绕排?
309
+
310
+ 传统排版依赖 DOM 回流与重绘,无法在无头环境中进行确定性的页面切割。而结合 Canvas 字符测距与空间网格,我们可以在微秒级求解最优文字流向。
311
+
312
+ - 零 DOM 依赖,多端极速运行
313
+ - 亚像素级字宽计算与平滑孤行控制
314
+ - 任意画板比例智能自适应
315
+ `;function dc(i,c,r,f){if(i.isAbsolute||!i.layoutPreset||i.layoutPreset==="custom")return i;const d=i.pageIndex||1,h=c.filter(b=>(b.pageIndex||1)===d).findIndex(b=>b.id===i.id);return wu(i,h,r,f)}function Wp(){const[i,c]=ge.useState(()=>wx("longform-3-4")),r=i.aspectRatio,[f,d]=ge.useState(Jp),[h,b]=ge.useState([{id:"img_demo_1",src:"https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=800&auto=format&fit=crop&q=80",alt:"抽象建筑线条",caption:"图 1:建筑结构中的空间秩序感",x:16,y:420,width:420,height:280,captionHeight:40,layoutPreset:"mid-left"}]),[N,p]=ge.useState(["算法排版","确定性","空间秩序"]),v=ge.useMemo(()=>Zp({markdown:f,images:h,config:i,highlightWords:N}),[f,h,i,N]);ge.useEffect(()=>{(async()=>{var Z,E,L,_;try{const z=new URLSearchParams(window.location.search),I=z.get("template")||z.get("templateId")||z.get("templateKey"),B=z.get("slot"),te=z.get("account")||"default",V=z.get("title"),$=z.get("markdown")||z.get("text");if($?d($):V&&d(`# ${V}
316
+
317
+ 在此输入正文内容...`),I){const K=await(await fetch(`/api/templates/resolve/${encodeURIComponent(I)}`)).json();if(K.ok&&K.template){Q(K.template);return}}if(B){const K=await(await fetch(`/api/templates/slots?account=${encodeURIComponent(te)}`)).json();if(K.ok&&((E=(Z=K.slots)==null?void 0:Z[B])!=null&&E.template)){Q(K.slots[B].template);return}}const D=await(await fetch(`/api/templates/slots?account=${encodeURIComponent(te)}`)).json();if(D.ok&&((_=(L=D.slots)==null?void 0:L.newspic_content)!=null&&_.template)){Q(D.slots.newspic_content.template);return}const H=await(await fetch("/api/templates/default")).json();H.ok&&H.template&&Q(H.template)}catch{}})()},[]);const g=ne=>{const Z=jn(ne),E=wx(ne),{stageWidth:L,stageHeight:_}=wn(Z,E.algorithm.safeArea,E.algorithm.contentBottomGap);b(z=>z.map(I=>dc(I,z,L,_))),c(z=>({...z,aspectRatio:ne,algorithm:{...z.algorithm,baseFontSize:E.algorithm.baseFontSize,scaleRatio:E.algorithm.scaleRatio,safeArea:E.algorithm.safeArea,textAlign:E.algorithm.textAlign,verticalAlign:E.algorithm.verticalAlign,contentBottomGap:E.algorithm.contentBottomGap},chrome:{...E.chrome},watermarkText:E.watermarkText,footerText:E.footerText}))},m=ne=>{c(Z=>({...Z,algorithm:{...Z.algorithm,...ne}}))},S=ne=>{c(Z=>({...Z,theme:{...Z.theme,...ne}}))},k=ne=>{c(Z=>({...Z,algorithm:{...Z.algorithm,safeArea:{...Z.algorithm.safeArea,...ne}}}))},Y=ne=>{const Z=jn(r),{stageWidth:E,stageHeight:L}=wn(Z,i.algorithm.safeArea,i.algorithm.contentBottomGap),_=ne.pageIndex||1,I=h.filter($=>($.pageIndex||1)===_).length,B={...ne,id:`img_${Date.now()}_${Math.random().toString(36).substring(2,6)}`},te=wu(B,I,E,L),V={...B,x:te.x,y:te.y,width:te.width,height:te.height};b($=>[...$,V])},J=(ne,Z)=>{b(E=>{const L=E.map(z=>{if(z.id!==ne)return z;const I={...z,...Z};return Z.layoutPreset&&Z.layoutPreset!=="custom"&&(delete I.x,delete I.y,delete I.width,delete I.height),I}),_=L.find(z=>z.id===ne);if(!_)return E;if(!_.isAbsolute&&_.layoutPreset&&_.layoutPreset!=="custom"){const z=jn(r),{stageWidth:I,stageHeight:B}=wn(z,i.algorithm.safeArea,i.algorithm.contentBottomGap);return L.map(te=>te.id===ne?dc(te,L,I,B):te)}return L})},q=ne=>{b(Z=>{const E=Z.filter(I=>I.id!==ne),L=jn(r),{stageWidth:_,stageHeight:z}=wn(L,i.algorithm.safeArea,i.algorithm.contentBottomGap);return E.map(I=>dc(I,E,_,z))})},W=(ne,Z)=>{b(E=>{const L=E.findIndex($=>$.id===ne);if(L===-1)return E;const _=Z==="up"?L-1:L+1;if(_<0||_>=E.length)return E;const z=[...E],I=z[L];z[L]=z[_],z[_]=I;const B=jn(r),{stageWidth:te,stageHeight:V}=wn(B,i.algorithm.safeArea,i.algorithm.contentBottomGap);return z.map($=>dc($,z,te,V))})},Q=ne=>{c(ne),ne.images&&b(Z=>Kp(Z,ne.images))};return{aspectRatio:r,switchAspectRatio:g,config:i,setConfig:c,markdown:f,setMarkdown:d,images:h,addImage:Y,updateImage:J,removeImage:q,moveImage:W,highlightWords:N,setHighlightWords:p,result:v,updateAlgorithm:m,updateTheme:S,updateTypography:ne=>{c(Z=>({...Z,typography:{...Z.typography,...ne}}))},updateSafeArea:k,loadTemplate:Q}}const Ip=()=>{const{aspectRatio:i,switchAspectRatio:c,config:r,markdown:f,setMarkdown:d,images:h,addImage:b,updateImage:N,removeImage:p,moveImage:v,highlightWords:g,setHighlightWords:m,result:S,updateAlgorithm:k,updateTheme:Y,updateTypography:J,updateSafeArea:q,loadTemplate:W,setConfig:Q}=Wp(),{adminKey:ee,setAdminKey:ne,isVerified:Z}=Qv(),[E,L]=ge.useState(()=>localStorage.getItem("typeset_studio_theme_mode")||"light");ge.useEffect(()=>{E==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("typeset_studio_theme_mode",E)},[E]);const _=()=>{L(fe=>fe==="light"?"dark":"light")},[z,I]=ge.useState("grid"),[B,te]=ge.useState(.45),[V,$]=ge.useState(!0),[j,D]=ge.useState(!1),[U,H]=ge.useState(!1),[le,K]=ge.useState(!1),ae=ge.useRef(null),he=(fe=z)=>{if(!ae.current)return .45;const{clientWidth:me,clientHeight:pe}=ae.current;if(me<=0||pe<=0)return .45;const ie=S.canvasSpec,de=S.pages.length;if(de<=1||fe==="stack"){const $t=Math.max(200,me-64),sn=Math.max(200,pe-120),Fl=Math.min($t/ie.width,sn/ie.height);return Math.max(.2,Math.min(1.2,Math.round(Fl*100)/100))}const qe=48,un=96,Et=28,ft=36,Ie=Math.max(200,me-qe),_e=Math.max(200,pe-un);let gt=.2;const cn=Math.min(de,4);for(let Xt=1;Xt<=cn;Xt++){const xl=Math.ceil(de/Xt),$t=(Xt-1)*Et,sn=(xl-1)*Et,Fl=xl*ft,Rn=Ie-$t,za=_e-sn-Fl;if(Rn>60&&za>60){const Pt=Rn/(Xt*ie.width),_a=za/(xl*ie.height),Ln=Math.min(Pt,_a);Ln>gt&&(gt=Ln)}}return Math.max(.22,Math.min(.9,Math.round(gt*100)/100))},Te=()=>{$(!0);const fe=he(z);te(fe)},A=fe=>{$(!1),te(fe)},P=fe=>{I(fe),$(!0);const me=he(fe);te(me)},se=fe=>{if($(!1),!ae.current)return;const{clientWidth:me,clientHeight:pe}=ae.current,ie=S.canvasSpec,de=Math.max(.2,Math.min(1.2,Math.round(Math.min((me-64)/ie.width,(pe-120)/ie.height)*100)/100));te(de),setTimeout(()=>{const qe=document.getElementById(`typeset-page-${fe}`);qe==null||qe.scrollIntoView({behavior:"smooth",block:"center"})},60)};ge.useEffect(()=>{const fe=setTimeout(()=>{if(V){const me=he(z);te(me)}},60);return()=>clearTimeout(fe)},[i,S.canvasSpec.width,S.canvasSpec.height,S.pages.length,z]),ge.useEffect(()=>{if(!ae.current)return;const fe=new ResizeObserver(()=>{if(V){const me=he(z);te(me)}});return fe.observe(ae.current),()=>fe.disconnect()},[V,S.canvasSpec.width,S.canvasSpec.height,S.pages.length,z]);const re=async()=>{var fe;K(!0);try{const me=document.querySelectorAll("canvas.typeset-page");if(me.length>0){let de=!0;for(let qe=0;qe<me.length;qe++){const un=me[qe];try{const Et=un.toDataURL("image/png"),ft=document.createElement("a");ft.download=`typeset-${i}-p${qe+1}-${Date.now()}.png`,ft.href=Et,ft.click()}catch(Et){console.warn("Canvas is tainted by external non-CORS image, falling back to server export:",Et),de=!1;break}}if(de)return}const pe=await fetch("/api/render/export",{method:"POST",headers:{"Content-Type":"application/json",...ee?{"X-Admin-Key":ee}:{}},body:JSON.stringify({result:S})});if(!pe.ok)throw new Error(`Server returned status ${pe.status}`);const ie=await pe.json();if(!ie.ok||!((fe=ie.pages)!=null&&fe.length))throw new Error(ie.error||"No pages returned from server-side render");for(const de of ie.pages){const qe=document.createElement("a");qe.download=`typeset-${i}-p${de.pageNumber}-${Date.now()}.png`,qe.href=de.dataUrl,qe.click()}}catch(me){console.error("Export failed:",me),alert("导出失败,请检查网络或后端服务连接")}finally{K(!1)}};return o.jsxs("div",{className:"flex flex-col h-screen w-screen overflow-hidden bg-[#fafafa] dark:bg-[#000000] text-[#171717] dark:text-[#ededed] transition-colors",children:[o.jsx(qv,{currentRatio:i,onSelectRatio:c,zoom:B,onZoomChange:A,onAutoFit:Te,isAutoFit:V,onOpenTemplates:()=>D(!0),onOpenAuth:()=>H(!0),onExport:re,isExporting:le,isAuthed:!!Z,pageCount:S.pageCount,themeMode:E,onToggleThemeMode:_}),o.jsxs("div",{className:"flex flex-1 min-h-0 overflow-hidden relative",children:[o.jsx(Hv,{markdown:f,onMarkdownChange:d,images:h,onAddImage:b,onUpdateImage:N,onRemoveImage:p,onMoveImage:v,pageCount:S.pageCount,highlightWords:g,onHighlightWordsChange:m,adminKey:ee}),o.jsx(Lv,{result:S,zoom:B,viewportRef:ae,onAutoFit:Te,isAutoFit:V,viewMode:z,onToggleViewMode:P,onFocusPage:se}),o.jsx(Yv,{config:r,onUpdateAlgorithm:k,onUpdateTheme:Y,onUpdateTypography:J,onUpdateSafeArea:q,onUpdateBranding:(fe,me)=>{Q(pe=>({...pe,footerText:fe,watermarkText:me}))},onUpdateChrome:fe=>{Q(me=>({...me,chrome:{...me.chrome,...fe}}))}})]}),o.jsx(Xv,{isOpen:j,onClose:()=>D(!1),currentConfig:{...r,images:h},onApplyTemplate:W,adminKey:ee}),o.jsx(wv,{isOpen:U,onClose:()=>H(!1),currentKey:ee,onSaveKey:ne,isVerified:Z})]})},Rh=document.getElementById("root");if(!Rh)throw new Error("Failed to find root element");Z2.createRoot(Rh).render(o.jsx(H2.StrictMode,{children:o.jsx(Ip,{})}));