(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function s(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(h){if(h.ep)return;h.ep=!0;const m=s(h);fetch(h.href,m)}})();var S0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yv(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var bp={exports:{}},Ld={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Gv;function XA(){if(Gv)return Ld;Gv=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,h,m){var p=null;if(m!==void 0&&(p=""+m),h.key!==void 0&&(p=""+h.key),"key"in h){m={};for(var D in h)D!=="key"&&(m[D]=h[D])}else m=h;return h=m.ref,{$$typeof:r,type:o,key:p,ref:h!==void 0?h:null,props:m}}return Ld.Fragment=i,Ld.jsx=s,Ld.jsxs=s,Ld}var Yv;function PA(){return Yv||(Yv=1,bp.exports=XA()),bp.exports}var w=PA(),yp={exports:{}},zd={},_p={exports:{}},xp={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qv;function JA(){return qv||(qv=1,(function(r){function i(B,K){var P=B.length;B.push(K);e:for(;0<P;){var ve=P-1>>>1,C=B[ve];if(0<h(C,K))B[ve]=K,B[P]=C,P=ve;else break e}}function s(B){return B.length===0?null:B[0]}function o(B){if(B.length===0)return null;var K=B[0],P=B.pop();if(P!==K){B[0]=P;e:for(var ve=0,C=B.length,Q=C>>>1;ve<Q;){var fe=2*(ve+1)-1,ue=B[fe],Ae=fe+1,_e=B[Ae];if(0>h(ue,P))Ae<C&&0>h(_e,ue)?(B[ve]=_e,B[Ae]=P,ve=Ae):(B[ve]=ue,B[fe]=P,ve=fe);else if(Ae<C&&0>h(_e,P))B[ve]=_e,B[Ae]=P,ve=Ae;else break e}}return K}function h(B,K){var P=B.sortIndex-K.sortIndex;return P!==0?P:B.id-K.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;r.unstable_now=function(){return m.now()}}else{var p=Date,D=p.now();r.unstable_now=function(){return p.now()-D}}var b=[],y=[],F=1,M=null,L=3,U=!1,z=!1,q=!1,I=!1,ie=typeof setTimeout=="function"?setTimeout:null,ce=typeof clearTimeout=="function"?clearTimeout:null,me=typeof setImmediate<"u"?setImmediate:null;function De(B){for(var K=s(y);K!==null;){if(K.callback===null)o(y);else if(K.startTime<=B)o(y),K.sortIndex=K.expirationTime,i(b,K);else break;K=s(y)}}function te(B){if(q=!1,De(B),!z)if(s(b)!==null)z=!0,de||(de=!0,Ne());else{var K=s(y);K!==null&&ae(te,K.startTime-B)}}var de=!1,ge=-1,$=5,ye=-1;function Le(){return I?!0:!(r.unstable_now()-ye<$)}function Ee(){if(I=!1,de){var B=r.unstable_now();ye=B;var K=!0;try{e:{z=!1,q&&(q=!1,ce(ge),ge=-1),U=!0;var P=L;try{t:{for(De(B),M=s(b);M!==null&&!(M.expirationTime>B&&Le());){var ve=M.callback;if(typeof ve=="function"){M.callback=null,L=M.priorityLevel;var C=ve(M.expirationTime<=B);if(B=r.unstable_now(),typeof C=="function"){M.callback=C,De(B),K=!0;break t}M===s(b)&&o(b),De(B)}else o(b);M=s(b)}if(M!==null)K=!0;else{var Q=s(y);Q!==null&&ae(te,Q.startTime-B),K=!1}}break e}finally{M=null,L=P,U=!1}K=void 0}}finally{K?Ne():de=!1}}}var Ne;if(typeof me=="function")Ne=function(){me(Ee)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,be=Ke.port2;Ke.port1.onmessage=Ee,Ne=function(){be.postMessage(null)}}else Ne=function(){ie(Ee,0)};function ae(B,K){ge=ie(function(){B(r.unstable_now())},K)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(B){B.callback=null},r.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<B?Math.floor(1e3/B):5},r.unstable_getCurrentPriorityLevel=function(){return L},r.unstable_next=function(B){switch(L){case 1:case 2:case 3:var K=3;break;default:K=L}var P=L;L=K;try{return B()}finally{L=P}},r.unstable_requestPaint=function(){I=!0},r.unstable_runWithPriority=function(B,K){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var P=L;L=B;try{return K()}finally{L=P}},r.unstable_scheduleCallback=function(B,K,P){var ve=r.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?ve+P:ve):P=ve,B){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=P+C,B={id:F++,callback:K,priorityLevel:B,startTime:P,expirationTime:C,sortIndex:-1},P>ve?(B.sortIndex=P,i(y,B),s(b)===null&&B===s(y)&&(q?(ce(ge),ge=-1):q=!0,ae(te,P-ve))):(B.sortIndex=C,i(b,B),z||U||(z=!0,de||(de=!0,Ne()))),B},r.unstable_shouldYield=Le,r.unstable_wrapCallback=function(B){var K=L;return function(){var P=L;L=K;try{return B.apply(this,arguments)}finally{L=P}}}})(xp)),xp}var Vv;function WA(){return Vv||(Vv=1,_p.exports=JA()),_p.exports}var Ep={exports:{}},Je={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Qv;function $A(){if(Qv)return Je;Qv=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),M=Symbol.iterator;function L(C){return C===null||typeof C!="object"?null:(C=M&&C[M]||C["@@iterator"],typeof C=="function"?C:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,q={};function I(C,Q,fe){this.props=C,this.context=Q,this.refs=q,this.updater=fe||U}I.prototype.isReactComponent={},I.prototype.setState=function(C,Q){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,Q,"setState")},I.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function ie(){}ie.prototype=I.prototype;function ce(C,Q,fe){this.props=C,this.context=Q,this.refs=q,this.updater=fe||U}var me=ce.prototype=new ie;me.constructor=ce,z(me,I.prototype),me.isPureReactComponent=!0;var De=Array.isArray,te={H:null,A:null,T:null,S:null,V:null},de=Object.prototype.hasOwnProperty;function ge(C,Q,fe,ue,Ae,_e){return fe=_e.ref,{$$typeof:r,type:C,key:Q,ref:fe!==void 0?fe:null,props:_e}}function $(C,Q){return ge(C.type,Q,void 0,void 0,void 0,C.props)}function ye(C){return typeof C=="object"&&C!==null&&C.$$typeof===r}function Le(C){var Q={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(fe){return Q[fe]})}var Ee=/\/+/g;function Ne(C,Q){return typeof C=="object"&&C!==null&&C.key!=null?Le(""+C.key):Q.toString(36)}function Ke(){}function be(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Ke,Ke):(C.status="pending",C.then(function(Q){C.status==="pending"&&(C.status="fulfilled",C.value=Q)},function(Q){C.status==="pending"&&(C.status="rejected",C.reason=Q)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function ae(C,Q,fe,ue,Ae){var _e=typeof C;(_e==="undefined"||_e==="boolean")&&(C=null);var pe=!1;if(C===null)pe=!0;else switch(_e){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(C.$$typeof){case r:case i:pe=!0;break;case F:return pe=C._init,ae(pe(C._payload),Q,fe,ue,Ae)}}if(pe)return Ae=Ae(C),pe=ue===""?"."+Ne(C,0):ue,De(Ae)?(fe="",pe!=null&&(fe=pe.replace(Ee,"$&/")+"/"),ae(Ae,Q,fe,"",function(Ge){return Ge})):Ae!=null&&(ye(Ae)&&(Ae=$(Ae,fe+(Ae.key==null||C&&C.key===Ae.key?"":(""+Ae.key).replace(Ee,"$&/")+"/")+pe)),Q.push(Ae)),1;pe=0;var ot=ue===""?".":ue+":";if(De(C))for(var je=0;je<C.length;je++)ue=C[je],_e=ot+Ne(ue,je),pe+=ae(ue,Q,fe,_e,Ae);else if(je=L(C),typeof je=="function")for(C=je.call(C),je=0;!(ue=C.next()).done;)ue=ue.value,_e=ot+Ne(ue,je++),pe+=ae(ue,Q,fe,_e,Ae);else if(_e==="object"){if(typeof C.then=="function")return ae(be(C),Q,fe,ue,Ae);throw Q=String(C),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return pe}function B(C,Q,fe){if(C==null)return C;var ue=[],Ae=0;return ae(C,ue,"","",function(_e){return Q.call(fe,_e,Ae++)}),ue}function K(C){if(C._status===-1){var Q=C._result;Q=Q(),Q.then(function(fe){(C._status===0||C._status===-1)&&(C._status=1,C._result=fe)},function(fe){(C._status===0||C._status===-1)&&(C._status=2,C._result=fe)}),C._status===-1&&(C._status=0,C._result=Q)}if(C._status===1)return C._result.default;throw C._result}var P=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function ve(){}return Je.Children={map:B,forEach:function(C,Q,fe){B(C,function(){Q.apply(this,arguments)},fe)},count:function(C){var Q=0;return B(C,function(){Q++}),Q},toArray:function(C){return B(C,function(Q){return Q})||[]},only:function(C){if(!ye(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Je.Component=I,Je.Fragment=s,Je.Profiler=h,Je.PureComponent=ce,Je.StrictMode=o,Je.Suspense=b,Je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,Je.__COMPILER_RUNTIME={__proto__:null,c:function(C){return te.H.useMemoCache(C)}},Je.cache=function(C){return function(){return C.apply(null,arguments)}},Je.cloneElement=function(C,Q,fe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ue=z({},C.props),Ae=C.key,_e=void 0;if(Q!=null)for(pe in Q.ref!==void 0&&(_e=void 0),Q.key!==void 0&&(Ae=""+Q.key),Q)!de.call(Q,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&Q.ref===void 0||(ue[pe]=Q[pe]);var pe=arguments.length-2;if(pe===1)ue.children=fe;else if(1<pe){for(var ot=Array(pe),je=0;je<pe;je++)ot[je]=arguments[je+2];ue.children=ot}return ge(C.type,Ae,void 0,void 0,_e,ue)},Je.createContext=function(C){return C={$$typeof:p,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:m,_context:C},C},Je.createElement=function(C,Q,fe){var ue,Ae={},_e=null;if(Q!=null)for(ue in Q.key!==void 0&&(_e=""+Q.key),Q)de.call(Q,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(Ae[ue]=Q[ue]);var pe=arguments.length-2;if(pe===1)Ae.children=fe;else if(1<pe){for(var ot=Array(pe),je=0;je<pe;je++)ot[je]=arguments[je+2];Ae.children=ot}if(C&&C.defaultProps)for(ue in pe=C.defaultProps,pe)Ae[ue]===void 0&&(Ae[ue]=pe[ue]);return ge(C,_e,void 0,void 0,null,Ae)},Je.createRef=function(){return{current:null}},Je.forwardRef=function(C){return{$$typeof:D,render:C}},Je.isValidElement=ye,Je.lazy=function(C){return{$$typeof:F,_payload:{_status:-1,_result:C},_init:K}},Je.memo=function(C,Q){return{$$typeof:y,type:C,compare:Q===void 0?null:Q}},Je.startTransition=function(C){var Q=te.T,fe={};te.T=fe;try{var ue=C(),Ae=te.S;Ae!==null&&Ae(fe,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(ve,P)}catch(_e){P(_e)}finally{te.T=Q}},Je.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},Je.use=function(C){return te.H.use(C)},Je.useActionState=function(C,Q,fe){return te.H.useActionState(C,Q,fe)},Je.useCallback=function(C,Q){return te.H.useCallback(C,Q)},Je.useContext=function(C){return te.H.useContext(C)},Je.useDebugValue=function(){},Je.useDeferredValue=function(C,Q){return te.H.useDeferredValue(C,Q)},Je.useEffect=function(C,Q,fe){var ue=te.H;if(typeof fe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ue.useEffect(C,Q)},Je.useId=function(){return te.H.useId()},Je.useImperativeHandle=function(C,Q,fe){return te.H.useImperativeHandle(C,Q,fe)},Je.useInsertionEffect=function(C,Q){return te.H.useInsertionEffect(C,Q)},Je.useLayoutEffect=function(C,Q){return te.H.useLayoutEffect(C,Q)},Je.useMemo=function(C,Q){return te.H.useMemo(C,Q)},Je.useOptimistic=function(C,Q){return te.H.useOptimistic(C,Q)},Je.useReducer=function(C,Q,fe){return te.H.useReducer(C,Q,fe)},Je.useRef=function(C){return te.H.useRef(C)},Je.useState=function(C){return te.H.useState(C)},Je.useSyncExternalStore=function(C,Q,fe){return te.H.useSyncExternalStore(C,Q,fe)},Je.useTransition=function(){return te.H.useTransition()},Je.version="19.1.1",Je}var Kv;function ng(){return Kv||(Kv=1,Ep.exports=$A()),Ep.exports}var Cp={exports:{}},na={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zv;function e2(){if(Zv)return na;Zv=1;var r=ng();function i(b){var y="https://react.dev/errors/"+b;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var F=2;F<arguments.length;F++)y+="&args[]="+encodeURIComponent(arguments[F])}return"Minified React error #"+b+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},h=Symbol.for("react.portal");function m(b,y,F){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:M==null?null:""+M,children:b,containerInfo:y,implementation:F}}var p=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function D(b,y){if(b==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return na.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,na.createPortal=function(b,y){var F=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return m(b,y,null,F)},na.flushSync=function(b){var y=p.T,F=o.p;try{if(p.T=null,o.p=2,b)return b()}finally{p.T=y,o.p=F,o.d.f()}},na.preconnect=function(b,y){typeof b=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(b,y))},na.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},na.preinit=function(b,y){if(typeof b=="string"&&y&&typeof y.as=="string"){var F=y.as,M=D(F,y.crossOrigin),L=typeof y.integrity=="string"?y.integrity:void 0,U=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;F==="style"?o.d.S(b,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:M,integrity:L,fetchPriority:U}):F==="script"&&o.d.X(b,{crossOrigin:M,integrity:L,fetchPriority:U,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},na.preinitModule=function(b,y){if(typeof b=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var F=D(y.as,y.crossOrigin);o.d.M(b,{crossOrigin:F,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(b)},na.preload=function(b,y){if(typeof b=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var F=y.as,M=D(F,y.crossOrigin);o.d.L(b,F,{crossOrigin:M,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},na.preloadModule=function(b,y){if(typeof b=="string")if(y){var F=D(y.as,y.crossOrigin);o.d.m(b,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:F,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(b)},na.requestFormReset=function(b){o.d.r(b)},na.unstable_batchedUpdates=function(b,y){return b(y)},na.useFormState=function(b,y,F){return p.H.useFormState(b,y,F)},na.useFormStatus=function(){return p.H.useHostTransitionStatus()},na.version="19.1.1",na}var Xv;function qD(){if(Xv)return Cp.exports;Xv=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Cp.exports=e2(),Cp.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pv;function t2(){if(Pv)return zd;Pv=1;var r=WA(),i=ng(),s=qD();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(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 D(e){if(m(e)!==e)throw Error(o(188))}function b(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,u=t;;){var c=n.return;if(c===null)break;var d=c.alternate;if(d===null){if(u=c.return,u!==null){n=u;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===n)return D(c),e;if(d===u)return D(c),t;d=d.sibling}throw Error(o(188))}if(n.return!==u.return)n=c,u=d;else{for(var v=!1,x=c.child;x;){if(x===n){v=!0,n=c,u=d;break}if(x===u){v=!0,u=c,n=d;break}x=x.sibling}if(!v){for(x=d.child;x;){if(x===n){v=!0,n=d,u=c;break}if(x===u){v=!0,u=d,n=c;break}x=x.sibling}if(!v)throw Error(o(189))}}if(n.alternate!==u)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var F=Object.assign,M=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),ce=Symbol.for("react.consumer"),me=Symbol.for("react.context"),De=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),ge=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Le=Symbol.for("react.memo_cache_sentinel"),Ee=Symbol.iterator;function Ne(e){return e===null||typeof e!="object"?null:(e=Ee&&e[Ee]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case I:return"Profiler";case q:return"StrictMode";case te:return"Suspense";case de:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case me:return(e.displayName||"Context")+".Provider";case ce:return(e._context.displayName||"Context")+".Consumer";case De:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ge:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var ae=Array.isArray,B=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},ve=[],C=-1;function Q(e){return{current:e}}function fe(e){0>C||(e.current=ve[C],ve[C]=null,C--)}function ue(e,t){C++,ve[C]=e.current,e.current=t}var Ae=Q(null),_e=Q(null),pe=Q(null),ot=Q(null);function je(e,t){switch(ue(pe,t),ue(_e,e),ue(Ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qt(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qt(t),e=Zt(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}fe(Ae),ue(Ae,e)}function Ge(){fe(Ae),fe(_e),fe(pe)}function rt(e){e.memoizedState!==null&&ue(ot,e);var t=Ae.current,n=Zt(t,e.type);t!==n&&(ue(_e,e),ue(Ae,n))}function _t(e){_e.current===e&&(fe(Ae),fe(_e)),ot.current===e&&(fe(ot),iu._currentValue=P)}var Ft=Object.prototype.hasOwnProperty,Jt=r.unstable_scheduleCallback,Dt=r.unstable_cancelCallback,_n=r.unstable_shouldYield,Fi=r.unstable_requestPaint,At=r.unstable_now,un=r.unstable_getCurrentPriorityLevel,Qt=r.unstable_ImmediatePriority,ra=r.unstable_UserBlockingPriority,wt=r.unstable_NormalPriority,wn=r.unstable_LowPriority,Ra=r.unstable_IdlePriority,Na=r.log,Bt=r.unstable_setDisableYieldValue,gr=null,nn=null;function gn(e){if(typeof Na=="function"&&Bt(e),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode(gr,e)}catch{}}var xn=Math.clz32?Math.clz32:yu,Au=Math.log,bu=Math.LN2;function yu(e){return e>>>=0,e===0?32:31-(Au(e)/bu|0)|0}var Ja=256,Kt=4194304;function La(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Yr(e,t,n){var u=e.pendingLanes;if(u===0)return 0;var c=0,d=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=u&134217727;return x!==0?(u=x&~d,u!==0?c=La(u):(v&=x,v!==0?c=La(v):n||(n=x&~e,n!==0&&(c=La(n))))):(x=u&~d,x!==0?c=La(x):v!==0?c=La(v):n||(n=u&~e,n!==0&&(c=La(n)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,n=t&-t,d>=n||d===32&&(n&4194048)!==0)?t:c}function pr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Uc(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 On(){var e=Ja;return Ja<<=1,(Ja&4194048)===0&&(Ja=256),e}function Gs(){var e=Kt;return Kt<<=1,(Kt&62914560)===0&&(Kt=4194304),e}function Ys(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ol(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fg(e,t,n,u,c,d){var v=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,T=e.expirationTimes,Y=e.hiddenUpdates;for(n=v&~n;0<n;){var ne=31-xn(n),se=1<<ne;x[ne]=0,T[ne]=-1;var Z=Y[ne];if(Z!==null)for(Y[ne]=null,ne=0;ne<Z.length;ne++){var V=Z[ne];V!==null&&(V.lane&=-536870913)}n&=~se}u!==0&&nh(e,u,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(v&~t))}function nh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-xn(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|n&4194090}function ah(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var u=31-xn(n),c=1<<u;c&t|e[u]&t&&(e[u]|=t),n&=~c}}function Hc(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 qs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rh(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:b0(e.type))}function dg(e,t){var n=K.p;try{return K.p=e,t()}finally{K.p=n}}var qr=Math.random().toString(36).slice(2),pn="__reactFiber$"+qr,Gn="__reactProps$"+qr,Vr="__reactContainer$"+qr,Ic="__reactEvents$"+qr,hg="__reactListeners$"+qr,mg="__reactHandles$"+qr,ih="__reactResources$"+qr,_u="__reactMarker$"+qr;function Gc(e){delete e[pn],delete e[Gn],delete e[Ic],delete e[hg],delete e[mg]}function cl(e){var t=e[pn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Vr]||n[pn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=s0(e);e!==null;){if(n=e[pn])return n;e=s0(e)}return t}e=n,n=e.parentNode}return null}function fl(e){if(e=e[pn]||e[Vr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function hl(e){var t=e[ih];return t||(t=e[ih]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vn(e){e[_u]=!0}var lh=new Set,uh={};function wi(e,t){ml(e,t),ml(e+"Capture",t)}function ml(e,t){for(uh[e]=t,e=0;e<t.length;e++)lh.add(t[e])}var Vs=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]*$"),sh={},xu={};function gg(e){return Ft.call(xu,e)?!0:Ft.call(sh,e)?!1:Vs.test(e)?xu[e]=!0:(sh[e]=!0,!1)}function Qs(e,t,n){if(gg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ks(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Wa(e,t,n,u){if(u===null)e.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+u)}}var Zs,Yc;function gl(e){if(Zs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zs=t&&t[1]||"",Yc=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Zs+e+Yc}var qc=!1;function Vc(e,t){if(!e||qc)return"";qc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(V){var Z=V}Reflect.construct(e,[],se)}else{try{se.call()}catch(V){Z=V}e.call(se.prototype)}}else{try{throw Error()}catch(V){Z=V}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(V){if(V&&Z&&typeof V.stack=="string")return[V.stack,Z.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=u.DetermineComponentFrameRoot(),v=d[0],x=d[1];if(v&&x){var T=v.split(`
`),Y=x.split(`
`);for(c=u=0;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;for(;c<Y.length&&!Y[c].includes("DetermineComponentFrameRoot");)c++;if(u===T.length||c===Y.length)for(u=T.length-1,c=Y.length-1;1<=u&&0<=c&&T[u]!==Y[c];)c--;for(;1<=u&&0<=c;u--,c--)if(T[u]!==Y[c]){if(u!==1||c!==1)do if(u--,c--,0>c||T[u]!==Y[c]){var ne=`
`+T[u].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),ne}while(1<=u&&0<=c);break}}}finally{qc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?gl(n):""}function pg(e){switch(e.tag){case 26:case 27:case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 15:return Vc(e.type,!1);case 11:return Vc(e.type.render,!1);case 1:return Vc(e.type,!0);case 31:return gl("Activity");default:return""}}function Qc(e){try{var t="";do t+=pg(e),e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function ia(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zc(e){var t=Kc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),u=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var c=n.get,d=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(v){u=""+v,d.call(this,v)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return u},setValue:function(v){u=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){e._valueTracker||(e._valueTracker=Zc(e))}function Xc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),u="";return e&&(u=Kc(e)?e.checked?"true":"false":e.value),e=u,e!==n?(t.setValue(e),!0):!1}function Oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var oh=/[\n"\\]/g;function va(e){return e.replace(oh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ps(e,t,n,u,c,d,v,x){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ia(t)):e.value!==""+ia(t)&&(e.value=""+ia(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Eu(e,v,ia(t)):n!=null?Eu(e,v,ia(n)):u!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+ia(x):e.removeAttribute("name")}function Pc(e,t,n,u,c,d,v,x){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||n!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;n=n!=null?""+ia(n):"",t=t!=null?""+ia(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}u=u??c,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=x?e.checked:!!u,e.defaultChecked=!!u,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function Eu(e,t,n){t==="number"&&Oi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pl(e,t,n,u){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&u&&(e[n].defaultSelected=!0)}else{for(n=""+ia(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,u&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Jc(e,t,n){if(t!=null&&(t=""+ia(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ia(n):""}function Js(e,t,n,u){if(t==null){if(u!=null){if(n!=null)throw Error(o(92));if(ae(u)){if(1<u.length)throw Error(o(93));u=u[0]}n=u}n==null&&(n=""),t=n}n=ia(t),e.defaultValue=n,u=e.textContent,u===n&&u!==""&&u!==null&&(e.value=u)}function Qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vl=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 Wc(e,t,n){var u=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,n):typeof n!="number"||n===0||vl.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function $c(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var u in n)!n.hasOwnProperty(u)||t!=null&&t.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var c in t)u=t[c],t.hasOwnProperty(c)&&n[c]!==u&&Wc(e,c,u)}else for(var d in t)t.hasOwnProperty(d)&&Wc(e,d,t[d])}function ef(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 ch=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fh=/^[\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 Cu(e){return fh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ws=null;function tf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,Al=null;function nf(e){var t=fl(e);if(t&&(e=t.stateNode)){var n=e[Gn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ps(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+va(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var u=n[t];if(u!==e&&u.form===e.form){var c=u[Gn]||null;if(!c)throw Error(o(90));Ps(u,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)u=n[t],u.form===e.form&&Xc(u)}break e;case"textarea":Jc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pl(e,!!n.multiple,t,!1)}}}var af=!1;function dh(e,t,n){if(af)return e(t,n);af=!0;try{var u=e(t);return u}finally{if(af=!1,(Dl!==null||Al!==null)&&($o(),Dl&&(t=Dl,e=Al,Al=Dl=null,nf(t),e)))for(t=0;t<e.length;t++)nf(e[t])}}function Su(e,t){var n=e.stateNode;if(n===null)return null;var u=n[Gn]||null;if(u===null)return null;n=u[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":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fu=!1;if(vr)try{var wu={};Object.defineProperty(wu,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",wu,wu),window.removeEventListener("test",wu,wu)}catch{Fu=!1}var Kr=null,rf=null,$s=null;function hh(){if($s)return $s;var e,t=rf,n=t.length,u,c="value"in Kr?Kr.value:Kr.textContent,d=c.length;for(e=0;e<n&&t[e]===c[e];e++);var v=n-e;for(u=1;u<=v&&t[n-u]===c[d-u];u++);return $s=c.slice(e,1<u?1-u:void 0)}function Ot(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 xt(){return!0}function mh(){return!1}function Yn(e){function t(n,u,c,d,v){this._reactName=n,this._targetInst=c,this.type=u,this.nativeEvent=d,this.target=v,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(d):d[x]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?xt:mh,this.isPropagationStopped=mh,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xt)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xt)},persist:function(){},isPersistent:xt}),t}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eo=Yn(Mi),Ou=F({},Mi,{view:0,detail:0}),vg=Yn(Ou),to,lf,an,bl=F({},Ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$a,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&e.type==="mousemove"?(to=e.screenX-an.screenX,lf=e.screenY-an.screenY):lf=to=0,an=e),to)},movementY:function(e){return"movementY"in e?e.movementY:lf}}),Zr=Yn(bl),gh=F({},bl,{dataTransfer:0}),uf=Yn(gh),Da=F({},Ou,{relatedTarget:0}),no=Yn(Da),ph=F({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),vh=Yn(ph),Dh=F({},Mi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ah=Yn(Dh),bh=F({},Mi,{data:0}),qn=Yn(bh),Dg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Aa={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"},Ag={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ag[e])?!!t[e]:!1}function $a(){return yh}var ao=F({},Ou,{key:function(e){if(e.key){var t=Dg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ot(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Aa[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$a,charCode:function(e){return e.type==="keypress"?Ot(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ot(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sf=Yn(ao),Ht=F({},bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dr=Yn(Ht),of=F({},Ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$a}),bg=Yn(of),cf=F({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),yg=Yn(cf),_g=F({},bl,{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}),xg=Yn(_g),_h=F({},Mi,{newState:0,oldState:0}),ro=Yn(_h),yl=[9,13,27,32],ff=vr&&"CompositionEvent"in window,_l=null;vr&&"documentMode"in document&&(_l=document.documentMode);var xh=vr&&"TextEvent"in window&&!_l,io=vr&&(!ff||_l&&8<_l&&11>=_l),lo=" ",df=!1;function Eh(e,t){switch(e){case"keyup":return yl.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xr=!1;function Eg(e,t){switch(e){case"compositionend":return uo(t);case"keypress":return t.which!==32?null:(df=!0,lo);case"textInput":return e=t.data,e===lo&&df?null:e;default:return null}}function Ch(e,t){if(Xr)return e==="compositionend"||!ff&&Eh(e,t)?(e=hh(),$s=rf=Kr=null,Xr=!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 io&&t.locale!=="ko"?null:t.data;default:return null}}var la={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 so(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!la[e.type]:t==="textarea"}function xl(e,t,n,u){Dl?Al?Al.push(u):Al=[u]:Dl=u,t=lc(t,"onChange"),0<t.length&&(n=new eo("onChange","change",null,n,u),e.push({event:n,listeners:t}))}var El=null,Cl=null;function Cg(e){e0(e,0)}function oo(e){var t=dl(e);if(Xc(t))return e}function Sh(e,t){if(e==="change")return t}var Fh=!1;if(vr){var hf;if(vr){var Pr="oninput"in document;if(!Pr){var wh=document.createElement("div");wh.setAttribute("oninput","return;"),Pr=typeof wh.oninput=="function"}hf=Pr}else hf=!1;Fh=hf&&(!document.documentMode||9<document.documentMode)}function Oh(){El&&(El.detachEvent("onpropertychange",co),Cl=El=null)}function co(e){if(e.propertyName==="value"&&oo(Cl)){var t=[];xl(t,Cl,e,tf(e)),dh(Cg,t)}}function Mh(e,t,n){e==="focusin"?(Oh(),El=t,Cl=n,El.attachEvent("onpropertychange",co)):e==="focusout"&&Oh()}function Jr(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oo(Cl)}function fo(e,t){if(e==="click")return oo(t)}function Sg(e,t){if(e==="input"||e==="change")return oo(t)}function Fg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ua=typeof Object.is=="function"?Object.is:Fg;function er(e,t){if(ua(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),u=Object.keys(t);if(n.length!==u.length)return!1;for(u=0;u<n.length;u++){var c=n[u];if(!Ft.call(t,c)||!ua(e[c],t[c]))return!1}return!0}function ba(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mf(e,t){var n=ba(e);e=0;for(var u;n;){if(n.nodeType===3){if(u=e+n.textContent.length,e<=t&&u>=t)return{node:n,offset:t-e};e=u}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ba(n)}}function Th(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Th(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Oi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oi(e.document)}return t}function gf(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 wg=vr&&"documentMode"in document&&11>=document.documentMode,Sl=null,Wr=null,k=null,ee=!1;function J(e,t,n){var u=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ee||Sl==null||Sl!==Oi(u)||(u=Sl,"selectionStart"in u&&gf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),k&&er(k,u)||(k=u,u=lc(Wr,"onSelect"),0<u.length&&(t=new eo("onSelect","select",null,t,n),e.push({event:t,listeners:u}),t.target=Sl)))}function Ce(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ie={animationend:Ce("Animation","AnimationEnd"),animationiteration:Ce("Animation","AnimationIteration"),animationstart:Ce("Animation","AnimationStart"),transitionrun:Ce("Transition","TransitionRun"),transitionstart:Ce("Transition","TransitionStart"),transitioncancel:Ce("Transition","TransitionCancel"),transitionend:Ce("Transition","TransitionEnd")},ft={},rn={};vr&&(rn=document.createElement("div").style,"AnimationEvent"in window||(delete Ie.animationend.animation,delete Ie.animationiteration.animation,delete Ie.animationstart.animation),"TransitionEvent"in window||delete Ie.transitionend.transition);function dt(e){if(ft[e])return ft[e];if(!Ie[e])return e;var t=Ie[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rn)return ft[e]=t[n];return e}var ho=dt("animationend"),Rh=dt("animationiteration"),sa=dt("animationstart"),mo=dt("transitionrun"),Og=dt("transitionstart"),Fl=dt("transitioncancel"),Mu=dt("transitionend"),Tu=new Map,pt="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");pt.push("scrollEnd");function za(e,t){Tu.set(e,t),wi(t,[e])}var pf=new WeakMap;function zn(e,t){if(typeof e=="object"&&e!==null){var n=pf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Qc(t)},pf.set(e,t),t)}return{value:e,source:t,stack:Qc(t)}}var ya=[],wl=0,vf=0;function Ti(){for(var e=wl,t=vf=wl=0;t<e;){var n=ya[t];ya[t++]=null;var u=ya[t];ya[t++]=null;var c=ya[t];ya[t++]=null;var d=ya[t];if(ya[t++]=null,u!==null&&c!==null){var v=u.pending;v===null?c.next=c:(c.next=v.next,v.next=c),u.pending=c}d!==0&&Bu(n,c,d)}}function ka(e,t,n,u){ya[wl++]=e,ya[wl++]=t,ya[wl++]=n,ya[wl++]=u,vf|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Ol(e,t,n,u){return ka(e,t,n,u),Ru(e)}function Bi(e,t){return ka(e,null,null,t),Ru(e)}function Bu(e,t,n){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n);for(var c=!1,d=e.return;d!==null;)d.childLanes|=n,u=d.alternate,u!==null&&(u.childLanes|=n),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-xn(n),e=d.hiddenUpdates,u=e[c],u===null?e[c]=[t]:u.push(t),t.lane=n|536870912),d):null}function Ru(e){if(50<Jl)throw Jl=0,fd=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ri={};function go(e,t,n,u){this.tag=e,this.key=n,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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vn(e,t,n,u){return new go(e,t,n,u)}function Ni(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kn(e,t){var n=e.alternate;return n===null?(n=Vn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Nu(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function po(e,t,n,u,c,d){var v=0;if(u=e,typeof e=="function")Ni(e)&&(v=1);else if(typeof e=="string")v=lp(e,n,Ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Vn(31,n,t,c),e.elementType=ye,e.lanes=d,e;case z:return Li(n.children,c,d,t);case q:v=8,c|=24;break;case I:return e=Vn(12,n,t,c|2),e.elementType=I,e.lanes=d,e;case te:return e=Vn(13,n,t,c),e.elementType=te,e.lanes=d,e;case de:return e=Vn(19,n,t,c),e.elementType=de,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ie:case me:v=10;break e;case ce:v=9;break e;case De:v=11;break e;case ge:v=14;break e;case $:v=16,u=null;break e}v=29,n=Error(o(130,e===null?"null":typeof e,"")),u=null}return t=Vn(v,n,t,c),t.elementType=e,t.type=u,t.lanes=d,t}function Li(e,t,n,u){return e=Vn(7,e,u,t),e.lanes=n,e}function Df(e,t,n){return e=Vn(6,e,null,t),e.lanes=n,e}function Ml(e,t,n){return t=Vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ar=[],$r=0,vo=null,Lu=0,_a=[],xa=0,kt=null,It=1,br="";function zi(e,t){Ar[$r++]=Lu,Ar[$r++]=vo,vo=e,Lu=t}function Af(e,t,n){_a[xa++]=It,_a[xa++]=br,_a[xa++]=kt,kt=e;var u=It;e=br;var c=32-xn(u)-1;u&=~(1<<c),n+=1;var d=32-xn(t)+c;if(30<d){var v=c-c%5;d=(u&(1<<v)-1).toString(32),u>>=v,c-=v,It=1<<32-xn(t)+c|n<<c|u,br=d+e}else It=1<<d|n<<c|u,br=e}function bf(e){e.return!==null&&(zi(e,1),Af(e,1,0))}function zu(e){for(;e===vo;)vo=Ar[--$r],Ar[$r]=null,Lu=Ar[--$r],Ar[$r]=null;for(;e===kt;)kt=_a[--xa],_a[xa]=null,br=_a[--xa],_a[xa]=null,It=_a[--xa],_a[xa]=null}var sn=null,Gt=null,it=!1,ja=null,Qn=!1,Tl=Error(o(519));function Ea(e){var t=Error(o(418,""));throw ei(zn(t,e)),Tl}function Nh(e){var t=e.stateNode,n=e.type,u=e.memoizedProps;switch(t[pn]=e,t[Gn]=u,n){case"dialog":nt("cancel",t),nt("close",t);break;case"iframe":case"object":case"embed":nt("load",t);break;case"video":case"audio":for(n=0;n<Es.length;n++)nt(Es[n],t);break;case"source":nt("error",t);break;case"img":case"image":case"link":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"input":nt("invalid",t),Pc(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),Xs(t);break;case"select":nt("invalid",t);break;case"textarea":nt("invalid",t),Js(t,u.value,u.defaultValue,u.children),Xs(t)}n=u.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||u.suppressHydrationWarning===!0||a0(t.textContent,n)?(u.popover!=null&&(nt("beforetoggle",t),nt("toggle",t)),u.onScroll!=null&&nt("scroll",t),u.onScrollEnd!=null&&nt("scrollend",t),u.onClick!=null&&(t.onclick=uc),t=!0):t=!1,t||Ea(e)}function Lh(e){for(sn=e.return;sn;)switch(sn.tag){case 5:case 13:Qn=!1;return;case 27:case 3:Qn=!0;return;default:sn=sn.return}}function ku(e){if(e!==sn)return!1;if(!it)return Lh(e),it=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||oc(e.type,e.memoizedProps)),n=!n),n&&Gt&&Ea(e),Lh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Gt=qa(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Gt=null}}else t===27?(t=Gt,Ma(e.type)?(e=Cd,Cd=null,Gt=e):Gt=t):Gt=sn?qa(e.stateNode.nextSibling):null;return!0}function ju(){Gt=sn=null,it=!1}function zh(){var e=ja;return e!==null&&(ea===null?ea=e:ea.push.apply(ea,e),ja=null),e}function ei(e){ja===null?ja=[e]:ja.push(e)}var ki=Q(null),ti=null,_=null;function oa(e,t,n){ue(ki,t._currentValue),t._currentValue=n}function Ca(e){e._currentValue=ki.current,fe(ki)}function Kn(e,t,n){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===n)break;e=e.return}}function We(e,t,n,u){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var v=c.child;d=d.firstContext;e:for(;d!==null;){var x=d;d=c;for(var T=0;T<t.length;T++)if(x.context===t[T]){d.lanes|=n,x=d.alternate,x!==null&&(x.lanes|=n),Kn(d.return,n,e),u||(v=null);break e}d=x.next}}else if(c.tag===18){if(v=c.return,v===null)throw Error(o(341));v.lanes|=n,d=v.alternate,d!==null&&(d.lanes|=n),Kn(v,n,e),v=null}else v=c.child;if(v!==null)v.return=c;else for(v=c;v!==null;){if(v===e){v=null;break}if(c=v.sibling,c!==null){c.return=v.return,v=c;break}v=v.return}c=v}}function Uu(e,t,n,u){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var v=c.alternate;if(v===null)throw Error(o(387));if(v=v.memoizedProps,v!==null){var x=c.type;ua(c.pendingProps.value,v.value)||(e!==null?e.push(x):e=[x])}}else if(c===ot.current){if(v=c.alternate,v===null)throw Error(o(387));v.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(iu):e=[iu])}c=c.return}e!==null&&We(t,e,n,u),t.flags|=262144}function Do(e){for(e=e.firstContext;e!==null;){if(!ua(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ji(e){ti=e,_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Wt(e){return kh(ti,e)}function Ao(e,t){return ti===null&&ji(e),kh(e,t)}function kh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},_===null){if(e===null)throw Error(o(308));_=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _=_.next=t;return n}var Mg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Tg=r.unstable_scheduleCallback,Bg=r.unstable_NormalPriority,Rt={$$typeof:me,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yf(){return{controller:new Mg,data:new Map,refCount:0}}function Hu(e){e.refCount--,e.refCount===0&&Tg(Bg,function(){e.controller.abort()})}var Iu=null,_f=0,Bl=0,Zn=null;function Rg(e,t){if(Iu===null){var n=Iu=[];_f=0,Bl=ic(),Zn={status:"pending",value:void 0,then:function(u){n.push(u)}}}return _f++,t.then(jh,jh),t}function jh(){if(--_f===0&&Iu!==null){Zn!==null&&(Zn.status="fulfilled");var e=Iu;Iu=null,Bl=0,Zn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ng(e,t){var n=[],u={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(u.status="rejected",u.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),u}var Uh=B.S;B.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rg(e,t),Uh!==null&&Uh(e,t)};var Ui=Q(null);function yr(){var e=Ui.current;return e!==null?e:zt.pooledCache}function bo(e,t){t===null?ue(Ui,Ui.current):ue(Ui,t.pool)}function Hh(){var e=yr();return e===null?null:{parent:Rt._currentValue,pool:e}}var jn=Error(o(460)),Ih=Error(o(474)),yo=Error(o(542)),xf={then:function(){}};function Gh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _o(){}function Ef(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(_o,_o),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qh(e),e;default:if(typeof t.status=="string")t.then(_o,_o);else{if(e=zt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(u){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=u}},function(u){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=u}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qh(e),e}throw Rl=t,jn}}var Rl=null;function Yh(){if(Rl===null)throw Error(o(459));var e=Rl;return Rl=null,e}function qh(e){if(e===jn||e===yo)throw Error(o(483))}var tr=!1;function Hi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nl(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 ni(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _r(e,t,n){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Ct&2)!==0){var c=u.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),u.pending=t,t=Ru(e),Bu(e,null,n),t}return ka(e,u,t,n),Ru(e)}function Gu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,ah(e,n)}}function Ua(e,t){var n=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,n===u)){var c=null,d=null;if(n=n.firstBaseUpdate,n!==null){do{var v={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};d===null?c=d=v:d=d.next=v,n=n.next}while(n!==null);d===null?c=d=t:d=d.next=t}else c=d=t;n={baseState:u.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:u.shared,callbacks:u.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Yu=!1;function Ha(){if(Yu){var e=Zn;if(e!==null)throw e}}function Mn(e,t,n,u){Yu=!1;var c=e.updateQueue;tr=!1;var d=c.firstBaseUpdate,v=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var T=x,Y=T.next;T.next=null,v===null?d=Y:v.next=Y,v=T;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,x=ne.lastBaseUpdate,x!==v&&(x===null?ne.firstBaseUpdate=Y:x.next=Y,ne.lastBaseUpdate=T))}if(d!==null){var se=c.baseState;v=0,ne=Y=T=null,x=d;do{var Z=x.lane&-536870913,V=Z!==x.lane;if(V?(ct&Z)===Z:(u&Z)===Z){Z!==0&&Z===Bl&&(Yu=!0),ne!==null&&(ne=ne.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var Ue=e,ke=x;Z=t;var Tt=n;switch(ke.tag){case 1:if(Ue=ke.payload,typeof Ue=="function"){se=Ue.call(Tt,se,Z);break e}se=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=ke.payload,Z=typeof Ue=="function"?Ue.call(Tt,se,Z):Ue,Z==null)break e;se=F({},se,Z);break e;case 2:tr=!0}}Z=x.callback,Z!==null&&(e.flags|=64,V&&(e.flags|=8192),V=c.callbacks,V===null?c.callbacks=[Z]:V.push(Z))}else V={lane:Z,tag:x.tag,payload:x.payload,callback:x.callback,next:null},ne===null?(Y=ne=V,T=se):ne=ne.next=V,v|=Z;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;V=x,x=V.next,V.next=null,c.lastBaseUpdate=V,c.shared.pending=null}}while(!0);ne===null&&(T=se),c.baseState=T,c.firstBaseUpdate=Y,c.lastBaseUpdate=ne,d===null&&(c.shared.lanes=0),fi|=v,e.lanes=v,e.memoizedState=se}}function Vh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Cf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Vh(n[e],t)}var Ii=Q(null),ai=Q(0);function xr(e,t){e=Br,ue(ai,e),ue(Ii,t),Br=e|t.baseLanes}function xo(){ue(ai,Br),ue(Ii,Ii.current)}function Sf(){Br=ai.current,fe(Ii),fe(ai)}var Ia=0,Pe=null,Et=null,lt=null,Ll=!1,Gi=!1,Tn=!1,zl=0,ri=0,Sa=null,Qh=0;function ut(){throw Error(o(321))}function qu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ua(e[n],t[n]))return!1;return!0}function Ff(e,t,n,u,c,d){return Ia=d,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?im:Vf,Tn=!1,d=n(u,c),Tn=!1,Gi&&(d=Zh(t,n,u,c)),Kh(e),d}function Kh(e){B.H=ts;var t=Et!==null&&Et.next!==null;if(Ia=0,lt=Et=Pe=null,Ll=!1,ri=0,Sa=null,t)throw Error(o(300));e===null||Dn||(e=e.dependencies,e!==null&&Do(e)&&(Dn=!0))}function Zh(e,t,n,u){Pe=e;var c=0;do{if(Gi&&(Sa=null),ri=0,Gi=!1,25<=c)throw Error(o(301));if(c+=1,lt=Et=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}B.H=lm,d=t(n,u)}while(Gi);return d}function wf(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Vu(t):t,e=e.useState()[0],(Et!==null?Et.memoizedState:null)!==e&&(Pe.flags|=1024),t}function Of(){var e=zl!==0;return zl=0,e}function Yi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(Ll){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ll=!1}Ia=0,lt=Et=Pe=null,Gi=!1,ri=zl=0,Sa=null}function Xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Pe.memoizedState=lt=e:lt=lt.next=e,lt}function ln(){if(Et===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Et.next;var t=lt===null?Pe.memoizedState:lt.next;if(t!==null)lt=t,Et=e;else{if(e===null)throw Pe.alternate===null?Error(o(467)):Error(o(310));Et=e,e={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},lt===null?Pe.memoizedState=lt=e:lt=lt.next=e}return lt}function qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vu(e){var t=ri;return ri+=1,Sa===null&&(Sa=[]),e=Ef(Sa,e,t),t=Pe,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?im:Vf),e}function Co(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Vu(e);if(e.$$typeof===me)return Wt(e)}throw Error(o(438,String(e)))}function Qu(e){var t=null,n=Pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var u=Pe.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=qi(),Pe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),u=0;u<e;u++)n[u]=Le;return t.index++,n}function nr(e,t){return typeof t=="function"?t(e):t}function So(e){var t=ln();return Mf(t,Et,e)}function Mf(e,t,n){var u=e.queue;if(u===null)throw Error(o(311));u.lastRenderedReducer=n;var c=e.baseQueue,d=u.pending;if(d!==null){if(c!==null){var v=c.next;c.next=d.next,d.next=v}t.baseQueue=c=d,u.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var x=v=null,T=null,Y=t,ne=!1;do{var se=Y.lane&-536870913;if(se!==Y.lane?(ct&se)===se:(Ia&se)===se){var Z=Y.revertLane;if(Z===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),se===Bl&&(ne=!0);else if((Ia&Z)===Z){Y=Y.next,Z===Bl&&(ne=!0);continue}else se={lane:0,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},T===null?(x=T=se,v=d):T=T.next=se,Pe.lanes|=Z,fi|=Z;se=Y.action,Tn&&n(d,se),d=Y.hasEagerState?Y.eagerState:n(d,se)}else Z={lane:se,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},T===null?(x=T=Z,v=d):T=T.next=Z,Pe.lanes|=se,fi|=se;Y=Y.next}while(Y!==null&&Y!==t);if(T===null?v=d:T.next=x,!ua(d,e.memoizedState)&&(Dn=!0,ne&&(n=Zn,n!==null)))throw n;e.memoizedState=d,e.baseState=v,e.baseQueue=T,u.lastRenderedState=d}return c===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Tf(e){var t=ln(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var u=n.dispatch,c=n.pending,d=t.memoizedState;if(c!==null){n.pending=null;var v=c=c.next;do d=e(d,v.action),v=v.next;while(v!==c);ua(d,t.memoizedState)||(Dn=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),n.lastRenderedState=d}return[d,u]}function Bf(e,t,n){var u=Pe,c=ln(),d=it;if(d){if(n===void 0)throw Error(o(407));n=n()}else n=t();var v=!ua((Et||c).memoizedState,n);v&&(c.memoizedState=n,Dn=!0),c=c.queue;var x=wo.bind(null,u,c,e);if(Xu(2048,8,x,[e]),c.getSnapshot!==t||v||lt!==null&&lt.memoizedState.tag&1){if(u.flags|=2048,kl(9,Ro(),Xh.bind(null,u,c,n,t),null),zt===null)throw Error(o(349));d||(Ia&124)!==0||Fo(u,t,n)}return n}function Fo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t=qi(),Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xh(e,t,n,u){t.value=n,t.getSnapshot=u,Rf(t)&&Nf(e)}function wo(e,t,n){return n(function(){Rf(t)&&Nf(e)})}function Rf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ua(e,n)}catch{return!0}}function Nf(e){var t=Bi(e,2);t!==null&&ma(t,e,2)}function Oo(e){var t=Xn();if(typeof e=="function"){var n=e;if(e=n(),Tn){gn(!0);try{n()}finally{gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nr,lastRenderedState:e},t}function Ku(e,t,n,u){return e.baseState=n,Mf(e,Et,typeof u=="function"?u:nr)}function Lg(e,t,n,u,c){if(ko(e))throw Error(o(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};B.T!==null?n(!0):d.isTransition=!1,u(d),n=t.pending,n===null?(d.next=t.pending=d,Lf(t,d)):(d.next=n.next,t.pending=n.next=d)}}function Lf(e,t){var n=t.action,u=t.payload,c=e.state;if(t.isTransition){var d=B.T,v={};B.T=v;try{var x=n(c,u),T=B.S;T!==null&&T(v,x),zf(e,t,x)}catch(Y){Mo(e,t,Y)}finally{B.T=d}}else try{d=n(c,u),zf(e,t,d)}catch(Y){Mo(e,t,Y)}}function zf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(u){Ph(e,t,u)},function(u){return Mo(e,t,u)}):Ph(e,t,n)}function Ph(e,t,n){t.status="fulfilled",t.value=n,Jh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Lf(e,n)))}function Mo(e,t,n){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=n,Jh(t),t=t.next;while(t!==u)}e.action=null}function Jh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function To(e,t){return t}function kf(e,t){if(it){var n=zt.formState;if(n!==null){e:{var u=Pe;if(it){if(Gt){t:{for(var c=Gt,d=Qn;c.nodeType!==8;){if(!d){c=null;break t}if(c=qa(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Gt=qa(c.nextSibling),u=c.data==="F!";break e}}Ea(u)}u=!1}u&&(t=n[0])}}return n=Xn(),n.memoizedState=n.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:t},n.queue=u,n=Gf.bind(null,Pe,u),u.dispatch=n,u=Oo(!1),d=Yf.bind(null,Pe,!1,u.queue),u=Xn(),c={state:t,dispatch:null,action:e,pending:null},u.queue=c,n=Lg.bind(null,Pe,c,d,n),c.dispatch=n,u.memoizedState=e,[t,n,!1]}function Bo(e){var t=ln();return Wh(t,Et,e)}function Wh(e,t,n){if(t=Mf(e,t,To)[0],e=So(nr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=Vu(t)}catch(v){throw v===jn?yo:v}else u=t;t=ln();var c=t.queue,d=c.dispatch;return n!==t.memoizedState&&(Pe.flags|=2048,kl(9,Ro(),jf.bind(null,c,n),null)),[u,d,e]}function jf(e,t){e.action=t}function Xe(e){var t=ln(),n=Et;if(n!==null)return Wh(t,n,e);ln(),t=t.memoizedState,n=ln();var u=n.queue.dispatch;return n.memoizedState=e,[t,u,!1]}function kl(e,t,n,u){return e={tag:e,create:n,deps:u,inst:t,next:null},t=Pe.updateQueue,t===null&&(t=qi(),Pe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(u=n.next,n.next=e,e.next=u,t.lastEffect=e),e}function Ro(){return{destroy:void 0,resource:void 0}}function jl(){return ln().memoizedState}function Zu(e,t,n,u){var c=Xn();u=u===void 0?null:u,Pe.flags|=e,c.memoizedState=kl(1|t,Ro(),n,u)}function Xu(e,t,n,u){var c=ln();u=u===void 0?null:u;var d=c.memoizedState.inst;Et!==null&&u!==null&&qu(u,Et.memoizedState.deps)?c.memoizedState=kl(t,d,n,u):(Pe.flags|=e,c.memoizedState=kl(1|t,d,n,u))}function $h(e,t){Zu(8390656,8,e,t)}function ca(e,t){Xu(2048,8,e,t)}function em(e,t){return Xu(4,2,e,t)}function Pu(e,t){return Xu(4,4,e,t)}function No(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Uf(e,t,n){n=n!=null?n.concat([e]):null,Xu(4,4,No.bind(null,t,e),n)}function Lo(){}function Pn(e,t){var n=ln();t=t===void 0?null:t;var u=n.memoizedState;return t!==null&&qu(t,u[1])?u[0]:(n.memoizedState=[e,t],e)}function Er(e,t){var n=ln();t=t===void 0?null:t;var u=n.memoizedState;if(t!==null&&qu(t,u[1]))return u[0];if(u=e(),Tn){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[u,t],u}function Ju(e,t,n){return n===void 0||(Ia&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Rm(),Pe.lanes|=e,fi|=e,n)}function Hf(e,t,n,u){return ua(n,t)?n:Ii.current!==null?(e=Ju(e,n,u),ua(e,t)||(Dn=!0),e):(Ia&42)===0?(Dn=!0,e.memoizedState=n):(e=Rm(),Pe.lanes|=e,fi|=e,t)}function Wu(e,t,n,u,c){var d=K.p;K.p=d!==0&&8>d?d:8;var v=B.T,x={};B.T=x,Yf(e,!1,t,n);try{var T=c(),Y=B.S;if(Y!==null&&Y(x,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var ne=Ng(T,u);Vi(e,t,ne,Rn(e))}else Vi(e,t,u,Rn(e))}catch(se){Vi(e,t,{then:function(){},status:"rejected",reason:se},Rn())}finally{K.p=d,B.T=v}}function tm(){}function $u(e,t,n,u){if(e.tag!==5)throw Error(o(476));var c=If(e).queue;Wu(e,c,t,P,n===null?tm:function(){return zo(e),n(u)})}function If(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nr,lastRenderedState:P},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zo(e){var t=If(e).next.queue;Vi(e,t,{},Rn())}function es(){return Wt(iu)}function Cr(){return ln().memoizedState}function nm(){return ln().memoizedState}function ii(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Rn();e=ni(n);var u=_r(t,e,n);u!==null&&(ma(u,t,n),Gu(u,t,n)),t={cache:yf()},e.payload=t;return}t=t.return}}function am(e,t,n){var u=Rn();n={lane:u,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ko(e)?rm(t,n):(n=Ol(e,t,n,u),n!==null&&(ma(n,e,u),qf(n,t,u)))}function Gf(e,t,n){var u=Rn();Vi(e,t,n,u)}function Vi(e,t,n,u){var c={lane:u,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ko(e))rm(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var v=t.lastRenderedState,x=d(v,n);if(c.hasEagerState=!0,c.eagerState=x,ua(x,v))return ka(e,t,c,0),zt===null&&Ti(),!1}catch{}finally{}if(n=Ol(e,t,c,u),n!==null)return ma(n,e,u),qf(n,t,u),!0}return!1}function Yf(e,t,n,u){if(u={lane:2,revertLane:ic(),action:u,hasEagerState:!1,eagerState:null,next:null},ko(e)){if(t)throw Error(o(479))}else t=Ol(e,n,u,2),t!==null&&ma(t,e,2)}function ko(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function rm(e,t){Gi=Ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qf(e,t,n){if((n&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,ah(e,n)}}var ts={readContext:Wt,use:Co,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut},im={readContext:Wt,use:Co,useCallback:function(e,t){return Xn().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:$h,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Zu(4194308,4,No.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zu(4194308,4,e,t)},useInsertionEffect:function(e,t){Zu(4,2,e,t)},useMemo:function(e,t){var n=Xn();t=t===void 0?null:t;var u=e();if(Tn){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[u,t],u},useReducer:function(e,t,n){var u=Xn();if(n!==void 0){var c=n(t);if(Tn){gn(!0);try{n(t)}finally{gn(!1)}}}else c=t;return u.memoizedState=u.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},u.queue=e,e=e.dispatch=am.bind(null,Pe,e),[u.memoizedState,e]},useRef:function(e){var t=Xn();return e={current:e},t.memoizedState=e},useState:function(e){e=Oo(e);var t=e.queue,n=Gf.bind(null,Pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Lo,useDeferredValue:function(e,t){var n=Xn();return Ju(n,e,t)},useTransition:function(){var e=Oo(!1);return e=Wu.bind(null,Pe,e.queue,!0,!1),Xn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var u=Pe,c=Xn();if(it){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),zt===null)throw Error(o(349));(ct&124)!==0||Fo(u,t,n)}c.memoizedState=n;var d={value:n,getSnapshot:t};return c.queue=d,$h(wo.bind(null,u,d,e),[e]),u.flags|=2048,kl(9,Ro(),Xh.bind(null,u,d,n,t),null),n},useId:function(){var e=Xn(),t=zt.identifierPrefix;if(it){var n=br,u=It;n=(u&~(1<<32-xn(u)-1)).toString(32)+n,t="«"+t+"R"+n,n=zl++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Qh++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:es,useFormState:kf,useActionState:kf,useOptimistic:function(e){var t=Xn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Yf.bind(null,Pe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Qu,useCacheRefresh:function(){return Xn().memoizedState=ii.bind(null,Pe)}},Vf={readContext:Wt,use:Co,useCallback:Pn,useContext:Wt,useEffect:ca,useImperativeHandle:Uf,useInsertionEffect:em,useLayoutEffect:Pu,useMemo:Er,useReducer:So,useRef:jl,useState:function(){return So(nr)},useDebugValue:Lo,useDeferredValue:function(e,t){var n=ln();return Hf(n,Et.memoizedState,e,t)},useTransition:function(){var e=So(nr)[0],t=ln().memoizedState;return[typeof e=="boolean"?e:Vu(e),t]},useSyncExternalStore:Bf,useId:Cr,useHostTransitionStatus:es,useFormState:Bo,useActionState:Bo,useOptimistic:function(e,t){var n=ln();return Ku(n,Et,e,t)},useMemoCache:Qu,useCacheRefresh:nm},lm={readContext:Wt,use:Co,useCallback:Pn,useContext:Wt,useEffect:ca,useImperativeHandle:Uf,useInsertionEffect:em,useLayoutEffect:Pu,useMemo:Er,useReducer:Tf,useRef:jl,useState:function(){return Tf(nr)},useDebugValue:Lo,useDeferredValue:function(e,t){var n=ln();return Et===null?Ju(n,e,t):Hf(n,Et.memoizedState,e,t)},useTransition:function(){var e=Tf(nr)[0],t=ln().memoizedState;return[typeof e=="boolean"?e:Vu(e),t]},useSyncExternalStore:Bf,useId:Cr,useHostTransitionStatus:es,useFormState:Xe,useActionState:Xe,useOptimistic:function(e,t){var n=ln();return Et!==null?Ku(n,Et,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Qu,useCacheRefresh:nm},on=null,Jn=0;function jo(e){var t=Jn;return Jn+=1,on===null&&(on=[]),Ef(on,e,t)}function ns(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Qi(e,t){throw t.$$typeof===M?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ki(e){var t=e._init;return t(e._payload)}function Qf(e){function t(j,N){if(e){var G=j.deletions;G===null?(j.deletions=[N],j.flags|=16):G.push(N)}}function n(j,N){if(!e)return null;for(;N!==null;)t(j,N),N=N.sibling;return null}function u(j){for(var N=new Map;j!==null;)j.key!==null?N.set(j.key,j):N.set(j.index,j),j=j.sibling;return N}function c(j,N){return j=kn(j,N),j.index=0,j.sibling=null,j}function d(j,N,G){return j.index=G,e?(G=j.alternate,G!==null?(G=G.index,G<N?(j.flags|=67108866,N):G):(j.flags|=67108866,N)):(j.flags|=1048576,N)}function v(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function x(j,N,G,re){return N===null||N.tag!==6?(N=Df(G,j.mode,re),N.return=j,N):(N=c(N,G),N.return=j,N)}function T(j,N,G,re){var we=G.type;return we===z?ne(j,N,G.props.children,re,G.key):N!==null&&(N.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===$&&Ki(we)===N.type)?(N=c(N,G.props),ns(N,G),N.return=j,N):(N=po(G.type,G.key,G.props,null,j.mode,re),ns(N,G),N.return=j,N)}function Y(j,N,G,re){return N===null||N.tag!==4||N.stateNode.containerInfo!==G.containerInfo||N.stateNode.implementation!==G.implementation?(N=Ml(G,j.mode,re),N.return=j,N):(N=c(N,G.children||[]),N.return=j,N)}function ne(j,N,G,re,we){return N===null||N.tag!==7?(N=Li(G,j.mode,re,we),N.return=j,N):(N=c(N,G),N.return=j,N)}function se(j,N,G){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Df(""+N,j.mode,G),N.return=j,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case L:return G=po(N.type,N.key,N.props,null,j.mode,G),ns(G,N),G.return=j,G;case U:return N=Ml(N,j.mode,G),N.return=j,N;case $:var re=N._init;return N=re(N._payload),se(j,N,G)}if(ae(N)||Ne(N))return N=Li(N,j.mode,G,null),N.return=j,N;if(typeof N.then=="function")return se(j,jo(N),G);if(N.$$typeof===me)return se(j,Ao(j,N),G);Qi(j,N)}return null}function Z(j,N,G,re){var we=N!==null?N.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return we!==null?null:x(j,N,""+G,re);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case L:return G.key===we?T(j,N,G,re):null;case U:return G.key===we?Y(j,N,G,re):null;case $:return we=G._init,G=we(G._payload),Z(j,N,G,re)}if(ae(G)||Ne(G))return we!==null?null:ne(j,N,G,re,null);if(typeof G.then=="function")return Z(j,N,jo(G),re);if(G.$$typeof===me)return Z(j,N,Ao(j,G),re);Qi(j,G)}return null}function V(j,N,G,re,we){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return j=j.get(G)||null,x(N,j,""+re,we);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case L:return j=j.get(re.key===null?G:re.key)||null,T(N,j,re,we);case U:return j=j.get(re.key===null?G:re.key)||null,Y(N,j,re,we);case $:var $e=re._init;return re=$e(re._payload),V(j,N,G,re,we)}if(ae(re)||Ne(re))return j=j.get(G)||null,ne(N,j,re,we,null);if(typeof re.then=="function")return V(j,N,G,jo(re),we);if(re.$$typeof===me)return V(j,N,G,Ao(N,re),we);Qi(N,re)}return null}function Ue(j,N,G,re){for(var we=null,$e=null,Be=N,He=N=0,yn=null;Be!==null&&He<G.length;He++){Be.index>He?(yn=Be,Be=null):yn=Be.sibling;var ht=Z(j,Be,G[He],re);if(ht===null){Be===null&&(Be=yn);break}e&&Be&&ht.alternate===null&&t(j,Be),N=d(ht,N,He),$e===null?we=ht:$e.sibling=ht,$e=ht,Be=yn}if(He===G.length)return n(j,Be),it&&zi(j,He),we;if(Be===null){for(;He<G.length;He++)Be=se(j,G[He],re),Be!==null&&(N=d(Be,N,He),$e===null?we=Be:$e.sibling=Be,$e=Be);return it&&zi(j,He),we}for(Be=u(Be);He<G.length;He++)yn=V(Be,j,He,G[He],re),yn!==null&&(e&&yn.alternate!==null&&Be.delete(yn.key===null?He:yn.key),N=d(yn,N,He),$e===null?we=yn:$e.sibling=yn,$e=yn);return e&&Be.forEach(function(yi){return t(j,yi)}),it&&zi(j,He),we}function ke(j,N,G,re){if(G==null)throw Error(o(151));for(var we=null,$e=null,Be=N,He=N=0,yn=null,ht=G.next();Be!==null&&!ht.done;He++,ht=G.next()){Be.index>He?(yn=Be,Be=null):yn=Be.sibling;var yi=Z(j,Be,ht.value,re);if(yi===null){Be===null&&(Be=yn);break}e&&Be&&yi.alternate===null&&t(j,Be),N=d(yi,N,He),$e===null?we=yi:$e.sibling=yi,$e=yi,Be=yn}if(ht.done)return n(j,Be),it&&zi(j,He),we;if(Be===null){for(;!ht.done;He++,ht=G.next())ht=se(j,ht.value,re),ht!==null&&(N=d(ht,N,He),$e===null?we=ht:$e.sibling=ht,$e=ht);return it&&zi(j,He),we}for(Be=u(Be);!ht.done;He++,ht=G.next())ht=V(Be,j,He,ht.value,re),ht!==null&&(e&&ht.alternate!==null&&Be.delete(ht.key===null?He:ht.key),N=d(ht,N,He),$e===null?we=ht:$e.sibling=ht,$e=ht);return e&&Be.forEach(function(vp){return t(j,vp)}),it&&zi(j,He),we}function Tt(j,N,G,re){if(typeof G=="object"&&G!==null&&G.type===z&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case L:e:{for(var we=G.key;N!==null;){if(N.key===we){if(we=G.type,we===z){if(N.tag===7){n(j,N.sibling),re=c(N,G.props.children),re.return=j,j=re;break e}}else if(N.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===$&&Ki(we)===N.type){n(j,N.sibling),re=c(N,G.props),ns(re,G),re.return=j,j=re;break e}n(j,N);break}else t(j,N);N=N.sibling}G.type===z?(re=Li(G.props.children,j.mode,re,G.key),re.return=j,j=re):(re=po(G.type,G.key,G.props,null,j.mode,re),ns(re,G),re.return=j,j=re)}return v(j);case U:e:{for(we=G.key;N!==null;){if(N.key===we)if(N.tag===4&&N.stateNode.containerInfo===G.containerInfo&&N.stateNode.implementation===G.implementation){n(j,N.sibling),re=c(N,G.children||[]),re.return=j,j=re;break e}else{n(j,N);break}else t(j,N);N=N.sibling}re=Ml(G,j.mode,re),re.return=j,j=re}return v(j);case $:return we=G._init,G=we(G._payload),Tt(j,N,G,re)}if(ae(G))return Ue(j,N,G,re);if(Ne(G)){if(we=Ne(G),typeof we!="function")throw Error(o(150));return G=we.call(G),ke(j,N,G,re)}if(typeof G.then=="function")return Tt(j,N,jo(G),re);if(G.$$typeof===me)return Tt(j,N,Ao(j,G),re);Qi(j,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,N!==null&&N.tag===6?(n(j,N.sibling),re=c(N,G),re.return=j,j=re):(n(j,N),re=Df(G,j.mode,re),re.return=j,j=re),v(j)):n(j,N)}return function(j,N,G,re){try{Jn=0;var we=Tt(j,N,G,re);return on=null,we}catch(Be){if(Be===jn||Be===yo)throw Be;var $e=Vn(29,Be,null,j.mode);return $e.lanes=re,$e.return=j,$e}finally{}}}var Zi=Qf(!0),um=Qf(!1),fa=Q(null),Un=null;function Fa(e){var t=e.alternate;ue($t,$t.current&1),ue(fa,e),Un===null&&(t===null||Ii.current!==null||t.memoizedState!==null)&&(Un=e)}function sm(e){if(e.tag===22){if(ue($t,$t.current),ue(fa,e),Un===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Un=e)}}else Sr()}function Sr(){ue($t,$t.current),ue(fa,fa.current)}function ar(e){fe(fa),Un===e&&(Un=null),fe($t)}var $t=Q(0);function as(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||In(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ul(e,t,n,u){t=e.memoizedState,n=n(u,t),n=n==null?t:F({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var rs={enqueueSetState:function(e,t,n){e=e._reactInternals;var u=Rn(),c=ni(u);c.payload=t,n!=null&&(c.callback=n),t=_r(e,c,u),t!==null&&(ma(t,e,u),Gu(t,e,u))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var u=Rn(),c=ni(u);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=_r(e,c,u),t!==null&&(ma(t,e,u),Gu(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rn(),u=ni(n);u.tag=2,t!=null&&(u.callback=t),t=_r(e,u,n),t!==null&&(ma(t,e,n),Gu(t,e,n))}};function is(e,t,n,u,c,d,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,d,v):t.prototype&&t.prototype.isPureReactComponent?!er(n,u)||!er(c,d):!0}function om(e,t,n,u){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,u),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function li(e,t){var n=t;if("ref"in t){n={};for(var u in t)u!=="ref"&&(n[u]=t[u])}if(e=e.defaultProps){n===t&&(n=F({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}var Xi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Kf(e){Xi(e)}function Uo(e){console.error(e)}function cm(e){Xi(e)}function ls(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(u){setTimeout(function(){throw u})}}function rr(e,t,n){try{var u=e.onCaughtError;u(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Ho(e,t,n){return n=ni(n),n.tag=3,n.payload={element:null},n.callback=function(){ls(e,t)},n}function Zf(e){return e=ni(e),e.tag=3,e}function fm(e,t,n,u){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var d=u.value;e.payload=function(){return c(d)},e.callback=function(){rr(t,n,u)}}var v=n.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){rr(t,n,u),typeof c!="function"&&(di===null?di=new Set([this]):di.add(this));var x=u.stack;this.componentDidCatch(u.value,{componentStack:x!==null?x:""})})}function dm(e,t,n,u,c){if(n.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=n.alternate,t!==null&&Uu(t,n,c,!0),n=fa.current,n!==null){switch(n.tag){case 13:return Un===null?hd():n.alternate===null&&en===0&&(en=3),n.flags&=-257,n.flags|=65536,n.lanes=c,u===xf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([u]):t.add(u),pd(e,u,c)),!1;case 22:return n.flags|=65536,u===xf?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([u]):n.add(u)),pd(e,u,c)),!1}throw Error(o(435,n.tag))}return pd(e,u,c),hd(),!1}if(it)return t=fa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,u!==Tl&&(e=Error(o(422),{cause:u}),ei(zn(e,n)))):(u!==Tl&&(t=Error(o(423),{cause:u}),ei(zn(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,u=zn(u,n),c=Ho(e.stateNode,u,c),Ua(e,c),en!==4&&(en=2)),!1;var d=Error(o(520),{cause:u});if(d=zn(d,n),ps===null?ps=[d]:ps.push(d),en!==4&&(en=2),t===null)return!0;u=zn(u,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Ho(n.stateNode,u,e),Ua(n,e),!1;case 1:if(t=n.type,d=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(di===null||!di.has(d))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Zf(c),fm(c,e,n,u),Ua(n,c),!1}n=n.return}while(n!==null);return!1}var hm=Error(o(461)),Dn=!1;function jt(e,t,n,u){t.child=e===null?um(t,null,n,u):Zi(t,e.child,n,u)}function Io(e,t,n,u,c){n=n.render;var d=t.ref;if("ref"in u){var v={};for(var x in u)x!=="ref"&&(v[x]=u[x])}else v=u;return ji(t),u=Ff(e,t,n,v,d,c),x=Of(),e!==null&&!Dn?(Yi(e,t,c),Fr(e,t,c)):(it&&x&&bf(t),t.flags|=1,jt(e,t,u,c),t.child)}function Go(e,t,n,u,c){if(e===null){var d=n.type;return typeof d=="function"&&!Ni(d)&&d.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=d,Yo(e,t,d,u,c)):(e=po(n.type,null,u,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Ga(e,c)){var v=d.memoizedProps;if(n=n.compare,n=n!==null?n:er,n(v,u)&&e.ref===t.ref)return Fr(e,t,c)}return t.flags|=1,e=kn(d,u),e.ref=t.ref,e.return=t,t.child=e}function Yo(e,t,n,u,c){if(e!==null){var d=e.memoizedProps;if(er(d,u)&&e.ref===t.ref)if(Dn=!1,t.pendingProps=u=d,Ga(e,c))(e.flags&131072)!==0&&(Dn=!0);else return t.lanes=e.lanes,Fr(e,t,c)}return Hl(e,t,n,u,c)}function us(e,t,n){var u=t.pendingProps,c=u.children,d=e!==null?e.memoizedState:null;if(u.mode==="hidden"){if((t.flags&128)!==0){if(u=d!==null?d.baseLanes|n:n,e!==null){for(c=t.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;t.childLanes=d&~u}else t.childLanes=0,t.child=null;return Pi(e,t,u,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bo(t,d!==null?d.cachePool:null),d!==null?xr(t,d):xo(),sm(t);else return t.lanes=t.childLanes=536870912,Pi(e,t,d!==null?d.baseLanes|n:n,n)}else d!==null?(bo(t,d.cachePool),xr(t,d),Sr(),t.memoizedState=null):(e!==null&&bo(t,null),xo(),Sr());return jt(e,t,c,n),t.child}function Pi(e,t,n,u){var c=yr();return c=c===null?null:{parent:Rt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&bo(t,null),xo(),sm(t),e!==null&&Uu(e,t,u,!0),null}function ze(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Hl(e,t,n,u,c){return ji(t),n=Ff(e,t,n,u,void 0,c),u=Of(),e!==null&&!Dn?(Yi(e,t,c),Fr(e,t,c)):(it&&u&&bf(t),t.flags|=1,jt(e,t,n,c),t.child)}function qo(e,t,n,u,c,d){return ji(t),t.updateQueue=null,n=Zh(t,u,n,c),Kh(e),u=Of(),e!==null&&!Dn?(Yi(e,t,d),Fr(e,t,d)):(it&&u&&bf(t),t.flags|=1,jt(e,t,n,d),t.child)}function ui(e,t,n,u,c){if(ji(t),t.stateNode===null){var d=Ri,v=n.contextType;typeof v=="object"&&v!==null&&(d=Wt(v)),d=new n(u,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=rs,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=u,d.state=t.memoizedState,d.refs={},Hi(t),v=n.contextType,d.context=typeof v=="object"&&v!==null?Wt(v):Ri,d.state=t.memoizedState,v=n.getDerivedStateFromProps,typeof v=="function"&&(Ul(t,n,v,u),d.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&rs.enqueueReplaceState(d,d.state,null),Mn(t,u,d,c),Ha(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),u=!0}else if(e===null){d=t.stateNode;var x=t.memoizedProps,T=li(n,x);d.props=T;var Y=d.context,ne=n.contextType;v=Ri,typeof ne=="object"&&ne!==null&&(v=Wt(ne));var se=n.getDerivedStateFromProps;ne=typeof se=="function"||typeof d.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,ne||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x||Y!==v)&&om(t,d,u,v),tr=!1;var Z=t.memoizedState;d.state=Z,Mn(t,u,d,c),Ha(),Y=t.memoizedState,x||Z!==Y||tr?(typeof se=="function"&&(Ul(t,n,se,u),Y=t.memoizedState),(T=tr||is(t,n,T,u,Z,Y,v))?(ne||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=u,t.memoizedState=Y),d.props=u,d.state=Y,d.context=v,u=T):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),u=!1)}else{d=t.stateNode,Nl(e,t),v=t.memoizedProps,ne=li(n,v),d.props=ne,se=t.pendingProps,Z=d.context,Y=n.contextType,T=Ri,typeof Y=="object"&&Y!==null&&(T=Wt(Y)),x=n.getDerivedStateFromProps,(Y=typeof x=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==se||Z!==T)&&om(t,d,u,T),tr=!1,Z=t.memoizedState,d.state=Z,Mn(t,u,d,c),Ha();var V=t.memoizedState;v!==se||Z!==V||tr||e!==null&&e.dependencies!==null&&Do(e.dependencies)?(typeof x=="function"&&(Ul(t,n,x,u),V=t.memoizedState),(ne=tr||is(t,n,ne,u,Z,V,T)||e!==null&&e.dependencies!==null&&Do(e.dependencies))?(Y||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(u,V,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(u,V,T)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=V),d.props=u,d.state=V,d.context=T,u=ne):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),u=!1)}return d=u,ze(e,t),u=(t.flags&128)!==0,d||u?(d=t.stateNode,n=u&&typeof n.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&u?(t.child=Zi(t,e.child,null,c),t.child=Zi(t,null,n,c)):jt(e,t,n,c),t.memoizedState=d.state,e=t.child):e=Fr(e,t,c),e}function mm(e,t,n,u){return ju(),t.flags|=256,jt(e,t,n,u),t.child}var ss={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vo(e){return{baseLanes:e,cachePool:Hh()}}function An(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Oa),e}function gm(e,t,n){var u=t.pendingProps,c=!1,d=(t.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:($t.current&2)!==0),v&&(c=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(it){if(c?Fa(t):Sr(),it){var x=Gt,T;if(T=x){e:{for(T=x,x=Qn;T.nodeType!==8;){if(!x){x=null;break e}if(T=qa(T.nextSibling),T===null){x=null;break e}}x=T}x!==null?(t.memoizedState={dehydrated:x,treeContext:kt!==null?{id:It,overflow:br}:null,retryLane:536870912,hydrationErrors:null},T=Vn(18,null,null,0),T.stateNode=x,T.return=t,t.child=T,sn=t,Gt=null,T=!0):T=!1}T||Ea(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return In(x)?t.lanes=32:t.lanes=536870912,null;ar(t)}return x=u.children,u=u.fallback,c?(Sr(),c=t.mode,x=os({mode:"hidden",children:x},c),u=Li(u,c,n,null),x.return=t,u.return=t,x.sibling=u,t.child=x,c=t.child,c.memoizedState=Vo(n),c.childLanes=An(e,v,n),t.memoizedState=ss,u):(Fa(t),Xf(t,x))}if(T=e.memoizedState,T!==null&&(x=T.dehydrated,x!==null)){if(d)t.flags&256?(Fa(t),t.flags&=-257,t=Pf(e,t,n)):t.memoizedState!==null?(Sr(),t.child=e.child,t.flags|=128,t=null):(Sr(),c=u.fallback,x=t.mode,u=os({mode:"visible",children:u.children},x),c=Li(c,x,n,null),c.flags|=2,u.return=t,c.return=t,u.sibling=c,t.child=u,Zi(t,e.child,null,n),u=t.child,u.memoizedState=Vo(n),u.childLanes=An(e,v,n),t.memoizedState=ss,t=c);else if(Fa(t),In(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var Y=v.dgst;v=Y,u=Error(o(419)),u.stack="",u.digest=v,ei({value:u,source:null,stack:null}),t=Pf(e,t,n)}else if(Dn||Uu(e,t,n,!1),v=(n&e.childLanes)!==0,Dn||v){if(v=zt,v!==null&&(u=n&-n,u=(u&42)!==0?1:Hc(u),u=(u&(v.suspendedLanes|n))!==0?0:u,u!==0&&u!==T.retryLane))throw T.retryLane=u,Bi(e,u),ma(v,e,u),hm;x.data==="$?"||hd(),t=Pf(e,t,n)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Gt=qa(x.nextSibling),sn=t,it=!0,ja=null,Qn=!1,e!==null&&(_a[xa++]=It,_a[xa++]=br,_a[xa++]=kt,It=e.id,br=e.overflow,kt=t),t=Xf(t,u.children),t.flags|=4096);return t}return c?(Sr(),c=u.fallback,x=t.mode,T=e.child,Y=T.sibling,u=kn(T,{mode:"hidden",children:u.children}),u.subtreeFlags=T.subtreeFlags&65011712,Y!==null?c=kn(Y,c):(c=Li(c,x,n,null),c.flags|=2),c.return=t,u.return=t,u.sibling=c,t.child=u,u=c,c=t.child,x=e.child.memoizedState,x===null?x=Vo(n):(T=x.cachePool,T!==null?(Y=Rt._currentValue,T=T.parent!==Y?{parent:Y,pool:Y}:T):T=Hh(),x={baseLanes:x.baseLanes|n,cachePool:T}),c.memoizedState=x,c.childLanes=An(e,v,n),t.memoizedState=ss,u):(Fa(t),n=e.child,e=n.sibling,n=kn(n,{mode:"visible",children:u.children}),n.return=t,n.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=n,t.memoizedState=null,n)}function Xf(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=Vn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Pf(e,t,n){return Zi(t,e.child,null,n),e=Xf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jf(e,t,n){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),Kn(e.return,t,n)}function Wf(e,t,n,u,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:n,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=u,d.tail=n,d.tailMode=c)}function pm(e,t,n){var u=t.pendingProps,c=u.revealOrder,d=u.tail;if(jt(e,t,u.children,n),u=$t.current,(u&2)!==0)u=u&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jf(e,n,t);else if(e.tag===19)Jf(e,n,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}u&=1}switch(ue($t,u),c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&as(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Wf(t,!1,c,n,d);break;case"backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&as(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Wf(t,!0,n,null,d);break;case"together":Wf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Uu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ga(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Do(e)))}function Hn(e,t,n){switch(t.tag){case 3:je(t,t.stateNode.containerInfo),oa(t,Rt,e.memoizedState.cache),ju();break;case 27:case 5:rt(t);break;case 4:je(t,t.stateNode.containerInfo);break;case 10:oa(t,t.type,t.memoizedProps.value);break;case 13:var u=t.memoizedState;if(u!==null)return u.dehydrated!==null?(Fa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?gm(e,t,n):(Fa(t),e=Fr(e,t,n),e!==null?e.sibling:null);Fa(t);break;case 19:var c=(e.flags&128)!==0;if(u=(n&t.childLanes)!==0,u||(Uu(e,t,n,!1),u=(n&t.childLanes)!==0),c){if(u)return pm(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ue($t,$t.current),u)break;return null;case 22:case 23:return t.lanes=0,us(e,t,n);case 24:oa(t,Rt,e.memoizedState.cache)}return Fr(e,t,n)}function Qo(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Dn=!0;else{if(!Ga(e,n)&&(t.flags&128)===0)return Dn=!1,Hn(e,t,n);Dn=(e.flags&131072)!==0}else Dn=!1,it&&(t.flags&1048576)!==0&&Af(t,Lu,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var u=t.elementType,c=u._init;if(u=c(u._payload),t.type=u,typeof u=="function")Ni(u)?(e=li(u,e),t.tag=1,t=ui(null,t,u,e,n)):(t.tag=0,t=Hl(null,t,u,e,n));else{if(u!=null){if(c=u.$$typeof,c===De){t.tag=11,t=Io(null,t,u,e,n);break e}else if(c===ge){t.tag=14,t=Go(null,t,u,e,n);break e}}throw t=be(u)||u,Error(o(306,t,""))}}return t;case 0:return Hl(e,t,t.type,t.pendingProps,n);case 1:return u=t.type,c=li(u,t.pendingProps),ui(e,t,u,c,n);case 3:e:{if(je(t,t.stateNode.containerInfo),e===null)throw Error(o(387));u=t.pendingProps;var d=t.memoizedState;c=d.element,Nl(e,t),Mn(t,u,null,n);var v=t.memoizedState;if(u=v.cache,oa(t,Rt,u),u!==d.cache&&We(t,[Rt],n,!0),Ha(),u=v.element,d.isDehydrated)if(d={element:u,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=mm(e,t,u,n);break e}else if(u!==c){c=zn(Error(o(424)),t),ei(c),t=mm(e,t,u,n);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(Gt=qa(e.firstChild),sn=t,it=!0,ja=null,Qn=!0,n=um(t,null,u,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ju(),u===c){t=Fr(e,t,n);break e}jt(e,t,u,n)}t=t.child}return t;case 26:return ze(e,t),e===null?(n=d0(t.type,null,t.pendingProps,null))?t.memoizedState=n:it||(n=t.type,e=t.pendingProps,u=$i(pe.current).createElement(n),u[pn]=t,u[Gn]=e,dn(u,n,e),vn(u),t.stateNode=u):t.memoizedState=d0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rt(t),e===null&&it&&(u=t.stateNode=o0(t.type,t.pendingProps,pe.current),sn=t,Qn=!0,c=Gt,Ma(t.type)?(Cd=c,Gt=qa(u.firstChild)):Gt=c),jt(e,t,t.pendingProps.children,n),ze(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&it&&((c=u=Gt)&&(u=u0(u,t.type,t.pendingProps,Qn),u!==null?(t.stateNode=u,sn=t,Gt=qa(u.firstChild),Qn=!1,c=!0):c=!1),c||Ea(t)),rt(t),c=t.type,d=t.pendingProps,v=e!==null?e.memoizedProps:null,u=d.children,oc(c,d)?u=null:v!==null&&oc(c,v)&&(t.flags|=32),t.memoizedState!==null&&(c=Ff(e,t,wf,null,null,n),iu._currentValue=c),ze(e,t),jt(e,t,u,n),t.child;case 6:return e===null&&it&&((e=n=Gt)&&(n=fc(n,t.pendingProps,Qn),n!==null?(t.stateNode=n,sn=t,Gt=null,e=!0):e=!1),e||Ea(t)),null;case 13:return gm(e,t,n);case 4:return je(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=Zi(t,null,u,n):jt(e,t,u,n),t.child;case 11:return Io(e,t,t.type,t.pendingProps,n);case 7:return jt(e,t,t.pendingProps,n),t.child;case 8:return jt(e,t,t.pendingProps.children,n),t.child;case 12:return jt(e,t,t.pendingProps.children,n),t.child;case 10:return u=t.pendingProps,oa(t,t.type,u.value),jt(e,t,u.children,n),t.child;case 9:return c=t.type._context,u=t.pendingProps.children,ji(t),c=Wt(c),u=u(c),t.flags|=1,jt(e,t,u,n),t.child;case 14:return Go(e,t,t.type,t.pendingProps,n);case 15:return Yo(e,t,t.type,t.pendingProps,n);case 19:return pm(e,t,n);case 31:return u=t.pendingProps,n=t.mode,u={mode:u.mode,children:u.children},e===null?(n=os(u,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=kn(e.child,u),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return us(e,t,n);case 24:return ji(t),u=Wt(Rt),e===null?(c=yr(),c===null&&(c=zt,d=yf(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=n),c=d),t.memoizedState={parent:u,cache:c},Hi(t),oa(t,Rt,c)):((e.lanes&n)!==0&&(Nl(e,t),Mn(t,null,null,n),Ha()),c=e.memoizedState,d=t.memoizedState,c.parent!==u?(c={parent:u,cache:u},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),oa(t,Rt,u)):(u=d.cache,oa(t,Rt,u),u!==c.cache&&We(t,[Rt],n,!0))),jt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function wr(e){e.flags|=4}function Ko(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hn(t)){if(t=fa.current,t!==null&&((ct&4194048)===ct?Un!==null:(ct&62914560)!==ct&&(ct&536870912)===0||t!==Un))throw Rl=xf,Ih;e.flags|=8192}}function Zo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gs():536870912,e.lanes|=t,Kl|=t)}function cs(e,t){if(!it)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var u=null;n!==null;)n.alternate!==null&&(u=n),n=n.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,u=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,u|=c.subtreeFlags&65011712,u|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,u|=c.subtreeFlags,u|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=u,e.childLanes=n,t}function vm(e,t,n){var u=t.pendingProps;switch(zu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(t),null;case 1:return Nt(t),null;case 3:return n=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),Ca(Rt),Ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ku(t)?wr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zh())),Nt(t),null;case 26:return n=t.memoizedState,e===null?(wr(t),n!==null?(Nt(t),Ko(t,n)):(Nt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(wr(t),Nt(t),Ko(t,n)):(Nt(t),t.flags&=-16777217):(e.memoizedProps!==u&&wr(t),Nt(t),t.flags&=-16777217),null;case 27:_t(t),n=pe.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==u&&wr(t);else{if(!u){if(t.stateNode===null)throw Error(o(166));return Nt(t),null}e=Ae.current,ku(t)?Nh(t):(e=o0(c,u,n),t.stateNode=e,wr(t))}return Nt(t),null;case 5:if(_t(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&wr(t);else{if(!u){if(t.stateNode===null)throw Error(o(166));return Nt(t),null}if(e=Ae.current,ku(t))Nh(t);else{switch(c=$i(pe.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof u.is=="string"?c.createElement("select",{is:u.is}):c.createElement("select"),u.multiple?e.multiple=!0:u.size&&(e.size=u.size);break;default:e=typeof u.is=="string"?c.createElement(n,{is:u.is}):c.createElement(n)}}e[pn]=t,e[Gn]=u;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=e;e:switch(dn(e,n,u),n){case"button":case"input":case"select":case"textarea":e=!!u.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&wr(t)}}return Nt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&wr(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error(o(166));if(e=pe.current,ku(t)){if(e=t.stateNode,n=t.memoizedProps,u=null,c=sn,c!==null)switch(c.tag){case 27:case 5:u=c.memoizedProps}e[pn]=t,e=!!(e.nodeValue===n||u!==null&&u.suppressHydrationWarning===!0||a0(e.nodeValue,n)),e||Ea(t)}else e=$i(e).createTextNode(u),e[pn]=t,t.stateNode=e}return Nt(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ku(t),u!==null&&u.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[pn]=t}else ju(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Nt(t),c=!1}else c=zh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(ar(t),t):(ar(t),null)}if(ar(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=u!==null,e=e!==null&&e.memoizedState!==null,n){u=t.child,c=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(c=u.alternate.memoizedState.cachePool.pool);var d=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(d=u.memoizedState.cachePool.pool),d!==c&&(u.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Zo(t,t.updateQueue),Nt(t),null;case 4:return Ge(),e===null&&yd(t.stateNode.containerInfo),Nt(t),null;case 10:return Ca(t.type),Nt(t),null;case 19:if(fe($t),c=t.memoizedState,c===null)return Nt(t),null;if(u=(t.flags&128)!==0,d=c.rendering,d===null)if(u)cs(c,!1);else{if(en!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=as(e),d!==null){for(t.flags|=128,cs(c,!1),e=d.updateQueue,t.updateQueue=e,Zo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Nu(n,e),n=n.sibling;return ue($t,$t.current&1|2),t.child}e=e.sibling}c.tail!==null&&At()>Zl&&(t.flags|=128,u=!0,cs(c,!1),t.lanes=4194304)}else{if(!u)if(e=as(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Zo(t,e),cs(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!it)return Nt(t),null}else 2*At()-c.renderingStartTime>Zl&&n!==536870912&&(t.flags|=128,u=!0,cs(c,!1),t.lanes=4194304);c.isBackwards?(d.sibling=t.child,t.child=d):(e=c.last,e!==null?e.sibling=d:t.child=d,c.last=d)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=At(),t.sibling=null,e=$t.current,ue($t,u?e&1|2:e&1),t):(Nt(t),null);case 22:case 23:return ar(t),Sf(),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(n&536870912)!==0&&(t.flags&128)===0&&(Nt(t),t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),n=t.updateQueue,n!==null&&Zo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==n&&(t.flags|=2048),e!==null&&fe(Ui),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ca(Rt),Nt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Dm(e,t){switch(zu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(Rt),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _t(t),null;case 13:if(ar(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ju()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe($t),null;case 4:return Ge(),null;case 10:return Ca(t.type),null;case 22:case 23:return ar(t),Sf(),e!==null&&fe(Ui),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ca(Rt),null;case 25:return null;default:return null}}function Am(e,t){switch(zu(t),t.tag){case 3:Ca(Rt),Ge();break;case 26:case 27:case 5:_t(t);break;case 4:Ge();break;case 13:ar(t);break;case 19:fe($t);break;case 10:Ca(t.type);break;case 22:case 23:ar(t),Sf(),e!==null&&fe(Ui);break;case 24:Ca(Rt)}}function fs(e,t){try{var n=t.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var c=u.next;n=c;do{if((n.tag&e)===e){u=void 0;var d=n.create,v=n.inst;u=d(),v.destroy=u}n=n.next}while(n!==c)}}catch(x){Lt(t,t.return,x)}}function si(e,t,n){try{var u=t.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var d=c.next;u=d;do{if((u.tag&e)===e){var v=u.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,c=t;var T=n,Y=x;try{Y()}catch(ne){Lt(c,T,ne)}}}u=u.next}while(u!==d)}}catch(ne){Lt(t,t.return,ne)}}function bm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Cf(t,n)}catch(u){Lt(e,e.return,u)}}}function $f(e,t,n){n.props=li(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(u){Lt(e,t,u)}}function Il(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof n=="function"?e.refCleanup=n(u):n.current=u}}catch(c){Lt(e,t,c)}}function ir(e,t){var n=e.ref,u=e.refCleanup;if(n!==null)if(typeof u=="function")try{u()}catch(c){Lt(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Lt(e,t,c)}else n.current=null}function Xo(e){var t=e.type,n=e.memoizedProps,u=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&u.focus();break e;case"img":n.src?u.src=n.src:n.srcSet&&(u.srcset=n.srcSet)}}catch(c){Lt(e,e.return,c)}}function Po(e,t,n){try{var u=e.stateNode;Pg(u,e.type,n,t),u[Gn]=t}catch(c){Lt(e,e.return,c)}}function Gl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ma(e.type)||e.tag===4}function ds(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gl(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&&Ma(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 Jo(e,t,n){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=uc));else if(u!==4&&(u===27&&Ma(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jo(e,t,n),e=e.sibling;e!==null;)Jo(e,t,n),e=e.sibling}function hs(e,t,n){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(u!==4&&(u===27&&Ma(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(hs(e,t,n),e=e.sibling;e!==null;)hs(e,t,n),e=e.sibling}function ms(e){var t=e.stateNode,n=e.memoizedProps;try{for(var u=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);dn(t,u,n),t[pn]=e,t[Gn]=n}catch(d){Lt(e,e.return,d)}}var lr=!1,bt=!1,Or=!1,ym=typeof WeakSet=="function"?WeakSet:Set,cn=null;function zg(e,t){if(e=e.containerInfo,Ya=gc,e=Bh(e),gf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var u=n.getSelection&&n.getSelection();if(u&&u.rangeCount!==0){n=u.anchorNode;var c=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break e}var v=0,x=-1,T=-1,Y=0,ne=0,se=e,Z=null;t:for(;;){for(var V;se!==n||c!==0&&se.nodeType!==3||(x=v+c),se!==d||u!==0&&se.nodeType!==3||(T=v+u),se.nodeType===3&&(v+=se.nodeValue.length),(V=se.firstChild)!==null;)Z=se,se=V;for(;;){if(se===e)break t;if(Z===n&&++Y===c&&(x=v),Z===d&&++ne===u&&(T=v),(V=se.nextSibling)!==null)break;se=Z,Z=se.parentNode}se=V}n=x===-1||T===-1?null:{start:x,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(sc={focusedElem:e,selectionRange:n},gc=!1,cn=t;cn!==null;)if(t=cn,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,cn=e;else for(;cn!==null;){switch(t=cn,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,n=t,c=d.memoizedProps,d=d.memoizedState,u=n.stateNode;try{var Ue=li(n.type,c,n.elementType===n.type);e=u.getSnapshotBeforeUpdate(Ue,d),u.__reactInternalSnapshotBeforeUpdate=e}catch(ke){Lt(n,n.return,ke)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ed(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ed(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,cn=e;break}cn=t.return}}function _m(e,t,n){var u=n.flags;switch(n.tag){case 0:case 11:case 15:oi(e,n),u&4&&fs(5,n);break;case 1:if(oi(e,n),u&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(v){Lt(n,n.return,v)}else{var c=li(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Lt(n,n.return,v)}}u&64&&bm(n),u&512&&Il(n,n.return);break;case 3:if(oi(e,n),u&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Cf(e,t)}catch(v){Lt(n,n.return,v)}}break;case 27:t===null&&u&4&&ms(n);case 26:case 5:oi(e,n),t===null&&u&4&&Xo(n),u&512&&Il(n,n.return);break;case 12:oi(e,n);break;case 13:oi(e,n),u&4&&Cm(e,n),u&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=nc.bind(null,n),eu(e,n))));break;case 22:if(u=n.memoizedState!==null||lr,!u){t=t!==null&&t.memoizedState!==null||bt,c=lr;var d=bt;lr=u,(bt=t)&&!d?Tr(e,n,(n.subtreeFlags&8772)!==0):oi(e,n),lr=c,bt=d}break;case 30:break;default:oi(e,n)}}function xm(e){var t=e.alternate;t!==null&&(e.alternate=null,xm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gc(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 Yt=null,Wn=!1;function Mr(e,t,n){for(n=n.child;n!==null;)Em(e,t,n),n=n.sibling}function Em(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(gr,n)}catch{}switch(n.tag){case 26:bt||ir(n,t),Mr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:bt||ir(n,t);var u=Yt,c=Wn;Ma(n.type)&&(Yt=n.stateNode,Wn=!1),Mr(e,t,n),Cs(n.stateNode),Yt=u,Wn=c;break;case 5:bt||ir(n,t);case 6:if(u=Yt,c=Wn,Yt=null,Mr(e,t,n),Yt=u,Wn=c,Yt!==null)if(Wn)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(n.stateNode)}catch(d){Lt(n,t,d)}else try{Yt.removeChild(n.stateNode)}catch(d){Lt(n,t,d)}break;case 18:Yt!==null&&(Wn?(e=Yt,cc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Rs(e)):cc(Yt,n.stateNode));break;case 4:u=Yt,c=Wn,Yt=n.stateNode.containerInfo,Wn=!0,Mr(e,t,n),Yt=u,Wn=c;break;case 0:case 11:case 14:case 15:bt||si(2,n,t),bt||si(4,n,t),Mr(e,t,n);break;case 1:bt||(ir(n,t),u=n.stateNode,typeof u.componentWillUnmount=="function"&&$f(n,t,u)),Mr(e,t,n);break;case 21:Mr(e,t,n);break;case 22:bt=(u=bt)||n.memoizedState!==null,Mr(e,t,n),bt=u;break;default:Mr(e,t,n)}}function Cm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Rs(e)}catch(n){Lt(t,t.return,n)}}function kg(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ym),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ym),t;default:throw Error(o(435,e.tag))}}function ed(e,t){var n=kg(e);t.forEach(function(u){var c=Yg.bind(null,e,u);n.has(u)||(n.add(u),u.then(c,c))})}function da(e,t){var n=t.deletions;if(n!==null)for(var u=0;u<n.length;u++){var c=n[u],d=e,v=t,x=v;e:for(;x!==null;){switch(x.tag){case 27:if(Ma(x.type)){Yt=x.stateNode,Wn=!1;break e}break;case 5:Yt=x.stateNode,Wn=!1;break e;case 3:case 4:Yt=x.stateNode.containerInfo,Wn=!0;break e}x=x.return}if(Yt===null)throw Error(o(160));Em(d,v,c),Yt=null,Wn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)td(t,e),t=t.sibling}var wa=null;function td(e,t){var n=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:da(t,e),$n(e),u&4&&(si(3,e,e.return),fs(3,e),si(5,e,e.return));break;case 1:da(t,e),$n(e),u&512&&(bt||n===null||ir(n,n.return)),u&64&&lr&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?u:n.concat(u))));break;case 26:var c=wa;if(da(t,e),$n(e),u&512&&(bt||n===null||ir(n,n.return)),u&4){var d=n!==null?n.memoizedState:null;if(u=e.memoizedState,n===null)if(u===null)if(e.stateNode===null){e:{u=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(u){case"title":d=c.getElementsByTagName("title")[0],(!d||d[_u]||d[pn]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(u),c.head.insertBefore(d,c.querySelector("head > title"))),dn(d,u,n),d[pn]=e,vn(d),u=d;break e;case"link":var v=g0("link","href",c).get(u+(n.href||""));if(v){for(var x=0;x<v.length;x++)if(d=v[x],d.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&d.getAttribute("rel")===(n.rel==null?null:n.rel)&&d.getAttribute("title")===(n.title==null?null:n.title)&&d.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){v.splice(x,1);break t}}d=c.createElement(u),dn(d,u,n),c.head.appendChild(d);break;case"meta":if(v=g0("meta","content",c).get(u+(n.content||""))){for(x=0;x<v.length;x++)if(d=v[x],d.getAttribute("content")===(n.content==null?null:""+n.content)&&d.getAttribute("name")===(n.name==null?null:n.name)&&d.getAttribute("property")===(n.property==null?null:n.property)&&d.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&d.getAttribute("charset")===(n.charSet==null?null:n.charSet)){v.splice(x,1);break t}}d=c.createElement(u),dn(d,u,n),c.head.appendChild(d);break;default:throw Error(o(468,u))}d[pn]=e,vn(d),u=d}e.stateNode=u}else p0(c,e.type,e.stateNode);else e.stateNode=m0(c,u,e.memoizedProps);else d!==u?(d===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):d.count--,u===null?p0(c,e.type,e.stateNode):m0(c,u,e.memoizedProps)):u===null&&e.stateNode!==null&&Po(e,e.memoizedProps,n.memoizedProps)}break;case 27:da(t,e),$n(e),u&512&&(bt||n===null||ir(n,n.return)),n!==null&&u&4&&Po(e,e.memoizedProps,n.memoizedProps);break;case 5:if(da(t,e),$n(e),u&512&&(bt||n===null||ir(n,n.return)),e.flags&32){c=e.stateNode;try{Qr(c,"")}catch(V){Lt(e,e.return,V)}}u&4&&e.stateNode!=null&&(c=e.memoizedProps,Po(e,c,n!==null?n.memoizedProps:c)),u&1024&&(Or=!0);break;case 6:if(da(t,e),$n(e),u&4){if(e.stateNode===null)throw Error(o(162));u=e.memoizedProps,n=e.stateNode;try{n.nodeValue=u}catch(V){Lt(e,e.return,V)}}break;case 3:if(ru=null,c=wa,wa=Ze(t.containerInfo),da(t,e),wa=c,$n(e),u&4&&n!==null&&n.memoizedState.isDehydrated)try{Rs(t.containerInfo)}catch(V){Lt(e,e.return,V)}Or&&(Or=!1,Sm(e));break;case 4:u=wa,wa=Ze(e.stateNode.containerInfo),da(t,e),$n(e),wa=u;break;case 12:da(t,e),$n(e);break;case 13:da(t,e),$n(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sd=At()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ed(e,u)));break;case 22:c=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,Y=lr,ne=bt;if(lr=Y||c,bt=ne||T,da(t,e),bt=ne,lr=Y,$n(e),u&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||T||lr||bt||Ji(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){T=n=t;try{if(d=T.stateNode,c)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{x=T.stateNode;var se=T.memoizedProps.style,Z=se!=null&&se.hasOwnProperty("display")?se.display:null;x.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(V){Lt(T,T.return,V)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=c?"":T.memoizedProps}catch(V){Lt(T,T.return,V)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}u&4&&(u=e.updateQueue,u!==null&&(n=u.retryQueue,n!==null&&(u.retryQueue=null,ed(e,n))));break;case 19:da(t,e),$n(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ed(e,u)));break;case 30:break;case 21:break;default:da(t,e),$n(e)}}function $n(e){var t=e.flags;if(t&2){try{for(var n,u=e.return;u!==null;){if(Gl(u)){n=u;break}u=u.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,d=ds(e);hs(e,d,c);break;case 5:var v=n.stateNode;n.flags&32&&(Qr(v,""),n.flags&=-33);var x=ds(e);hs(e,x,v);break;case 3:case 4:var T=n.stateNode.containerInfo,Y=ds(e);Jo(e,Y,T);break;default:throw Error(o(161))}}catch(ne){Lt(e,e.return,ne)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function oi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_m(e,t.alternate,t),t=t.sibling}function Ji(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:si(4,t,t.return),Ji(t);break;case 1:ir(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&$f(t,t.return,n),Ji(t);break;case 27:Cs(t.stateNode);case 26:case 5:ir(t,t.return),Ji(t);break;case 22:t.memoizedState===null&&Ji(t);break;case 30:Ji(t);break;default:Ji(t)}e=e.sibling}}function Tr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var u=t.alternate,c=e,d=t,v=d.flags;switch(d.tag){case 0:case 11:case 15:Tr(c,d,n),fs(4,d);break;case 1:if(Tr(c,d,n),u=d,c=u.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(Y){Lt(u,u.return,Y)}if(u=d,c=u.updateQueue,c!==null){var x=u.stateNode;try{var T=c.shared.hiddenCallbacks;if(T!==null)for(c.shared.hiddenCallbacks=null,c=0;c<T.length;c++)Vh(T[c],x)}catch(Y){Lt(u,u.return,Y)}}n&&v&64&&bm(d),Il(d,d.return);break;case 27:ms(d);case 26:case 5:Tr(c,d,n),n&&u===null&&v&4&&Xo(d),Il(d,d.return);break;case 12:Tr(c,d,n);break;case 13:Tr(c,d,n),n&&v&4&&Cm(c,d);break;case 22:d.memoizedState===null&&Tr(c,d,n),Il(d,d.return);break;case 30:break;default:Tr(c,d,n)}t=t.sibling}}function nd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Hu(n))}function ad(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hu(e))}function ur(e,t,n,u){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Fm(e,t,n,u),t=t.sibling}function Fm(e,t,n,u){var c=t.flags;switch(t.tag){case 0:case 11:case 15:ur(e,t,n,u),c&2048&&fs(9,t);break;case 1:ur(e,t,n,u);break;case 3:ur(e,t,n,u),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hu(e)));break;case 12:if(c&2048){ur(e,t,n,u),e=t.stateNode;try{var d=t.memoizedProps,v=d.id,x=d.onPostCommit;typeof x=="function"&&x(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Lt(t,t.return,T)}}else ur(e,t,n,u);break;case 13:ur(e,t,n,u);break;case 23:break;case 22:d=t.stateNode,v=t.alternate,t.memoizedState!==null?d._visibility&2?ur(e,t,n,u):gs(e,t):d._visibility&2?ur(e,t,n,u):(d._visibility|=2,Yl(e,t,n,u,(t.subtreeFlags&10256)!==0)),c&2048&&nd(v,t);break;case 24:ur(e,t,n,u),c&2048&&ad(t.alternate,t);break;default:ur(e,t,n,u)}}function Yl(e,t,n,u,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,v=t,x=n,T=u,Y=v.flags;switch(v.tag){case 0:case 11:case 15:Yl(d,v,x,T,c),fs(8,v);break;case 23:break;case 22:var ne=v.stateNode;v.memoizedState!==null?ne._visibility&2?Yl(d,v,x,T,c):gs(d,v):(ne._visibility|=2,Yl(d,v,x,T,c)),c&&Y&2048&&nd(v.alternate,v);break;case 24:Yl(d,v,x,T,c),c&&Y&2048&&ad(v.alternate,v);break;default:Yl(d,v,x,T,c)}t=t.sibling}}function gs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,u=t,c=u.flags;switch(u.tag){case 22:gs(n,u),c&2048&&nd(u.alternate,u);break;case 24:gs(n,u),c&2048&&ad(u.alternate,u);break;default:gs(n,u)}t=t.sibling}}var Bn=8192;function ql(e){if(e.subtreeFlags&Bn)for(e=e.child;e!==null;)wm(e),e=e.sibling}function wm(e){switch(e.tag){case 26:ql(e),e.flags&Bn&&e.memoizedState!==null&&sp(wa,e.memoizedState,e.memoizedProps);break;case 5:ql(e);break;case 3:case 4:var t=wa;wa=Ze(e.stateNode.containerInfo),ql(e),wa=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Bn,Bn=16777216,ql(e),Bn=t):ql(e));break;default:ql(e)}}function Om(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 Vl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var u=t[n];cn=u,Tm(u,e)}Om(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mm(e),e=e.sibling}function Mm(e){switch(e.tag){case 0:case 11:case 15:Vl(e),e.flags&2048&&si(9,e,e.return);break;case 3:Vl(e);break;case 12:Vl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wo(e)):Vl(e);break;default:Vl(e)}}function Wo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var u=t[n];cn=u,Tm(u,e)}Om(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:si(8,t,t.return),Wo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Wo(t));break;default:Wo(t)}e=e.sibling}}function Tm(e,t){for(;cn!==null;){var n=cn;switch(n.tag){case 0:case 11:case 15:si(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var u=n.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Hu(n.memoizedState.cache)}if(u=n.child,u!==null)u.return=n,cn=u;else e:for(n=e;cn!==null;){u=cn;var c=u.sibling,d=u.return;if(xm(u),u===n){cn=null;break e}if(c!==null){c.return=d,cn=c;break e}cn=d}}}var jg={getCacheForType:function(e){var t=Wt(Rt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},rd=typeof WeakMap=="function"?WeakMap:Map,Ct=0,zt=null,tt=null,ct=0,St=0,ha=null,ci=!1,Ql=!1,id=!1,Br=0,en=0,fi=0,Wi=0,ld=0,Oa=0,Kl=0,ps=null,ea=null,ud=!1,sd=0,Zl=1/0,vs=null,di=null,En=0,hi=null,Xl=null,Pl=0,od=0,cd=null,Bm=null,Jl=0,fd=null;function Rn(){if((Ct&2)!==0&&ct!==0)return ct&-ct;if(B.T!==null){var e=Bl;return e!==0?e:ic()}return rh()}function Rm(){Oa===0&&(Oa=(ct&536870912)===0||it?On():536870912);var e=fa.current;return e!==null&&(e.flags|=32),Oa}function ma(e,t,n){(e===zt&&(St===2||St===9)||e.cancelPendingCommit!==null)&&(Wl(e,0),mi(e,ct,Oa,!1)),ol(e,n),((Ct&2)===0||e!==zt)&&(e===zt&&((Ct&2)===0&&(Wi|=n),en===4&&mi(e,ct,Oa,!1)),sr(e))}function Nm(e,t,n){if((Ct&6)!==0)throw Error(o(327));var u=!n&&(t&124)===0&&(t&e.expiredLanes)===0||pr(e,t),c=u?Ig(e,t):md(e,t,!0),d=u;do{if(c===0){Ql&&!u&&mi(e,t,0,!1);break}else{if(n=e.current.alternate,d&&!Ug(n)){c=md(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var x=e;c=ps;var T=x.current.memoizedState.isDehydrated;if(T&&(Wl(x,v).flags|=256),v=md(x,v,!1),v!==2){if(id&&!T){x.errorRecoveryDisabledLanes|=d,Wi|=d,c=4;break e}d=ea,ea=c,d!==null&&(ea===null?ea=d:ea.push.apply(ea,d))}c=v}if(d=!1,c!==2)continue}}if(c===1){Wl(e,0),mi(e,t,0,!0);break}e:{switch(u=e,d=c,d){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:mi(u,t,Oa,!ci);break e;case 2:ea=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=sd+300-At(),10<c)){if(mi(u,t,Oa,!ci),Yr(u,0,!0)!==0)break e;u.timeoutHandle=r0(Lm.bind(null,u,n,ea,vs,ud,t,Oa,Wi,Kl,ci,d,2,-0,0),c);break e}Lm(u,n,ea,vs,ud,t,Oa,Wi,Kl,ci,d,0,-0,0)}}break}while(!0);sr(e)}function Lm(e,t,n,u,c,d,v,x,T,Y,ne,se,Z,V){if(e.timeoutHandle=-1,se=t.subtreeFlags,(se&8192||(se&16785408)===16785408)&&(bn={stylesheets:null,count:0,unsuspend:up},wm(t),se=op(),se!==null)){e.cancelPendingCommit=se(Ds.bind(null,e,t,d,n,u,c,v,x,T,ne,1,Z,V)),mi(e,d,v,!Y);return}Ds(e,t,d,n,u,c,v,x,T)}function Ug(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var u=0;u<n.length;u++){var c=n[u],d=c.getSnapshot;c=c.value;try{if(!ua(d(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 mi(e,t,n,u){t&=~ld,t&=~Wi,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var c=t;0<c;){var d=31-xn(c),v=1<<d;u[d]=-1,c&=~v}n!==0&&nh(e,n,t)}function $o(){return(Ct&6)===0?(ys(0),!1):!0}function dd(){if(tt!==null){if(St===0)var e=tt.return;else e=tt,_=ti=null,Eo(e),on=null,Jn=0,e=tt;for(;e!==null;)Am(e.alternate,e),e=e.return;tt=null}}function Wl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Wg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),dd(),zt=e,tt=n=kn(e.current,null),ct=t,St=0,ha=null,ci=!1,Ql=pr(e,t),id=!1,Kl=Oa=ld=Wi=fi=en=0,ea=ps=null,ud=!1,(t&8)!==0&&(t|=t&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=t;0<u;){var c=31-xn(u),d=1<<c;t|=e[c],u&=~d}return Br=t,Ti(),n}function zm(e,t){Pe=null,B.H=ts,t===jn||t===yo?(t=Yh(),St=3):t===Ih?(t=Yh(),St=4):St=t===hm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ha=t,tt===null&&(en=1,ls(e,zn(t,e.current)))}function km(){var e=B.H;return B.H=ts,e===null?ts:e}function jm(){var e=B.A;return B.A=jg,e}function hd(){en=4,ci||(ct&4194048)!==ct&&fa.current!==null||(Ql=!0),(fi&134217727)===0&&(Wi&134217727)===0||zt===null||mi(zt,ct,Oa,!1)}function md(e,t,n){var u=Ct;Ct|=2;var c=km(),d=jm();(zt!==e||ct!==t)&&(vs=null,Wl(e,t)),t=!1;var v=en;e:do try{if(St!==0&&tt!==null){var x=tt,T=ha;switch(St){case 8:dd(),v=6;break e;case 3:case 2:case 9:case 6:fa.current===null&&(t=!0);var Y=St;if(St=0,ha=null,$l(e,x,T,Y),n&&Ql){v=0;break e}break;default:Y=St,St=0,ha=null,$l(e,x,T,Y)}}Hg(),v=en;break}catch(ne){zm(e,ne)}while(!0);return t&&e.shellSuspendCounter++,_=ti=null,Ct=u,B.H=c,B.A=d,tt===null&&(zt=null,ct=0,Ti()),v}function Hg(){for(;tt!==null;)gd(tt)}function Ig(e,t){var n=Ct;Ct|=2;var u=km(),c=jm();zt!==e||ct!==t?(vs=null,Zl=At()+500,Wl(e,t)):Ql=pr(e,t);e:do try{if(St!==0&&tt!==null){t=tt;var d=ha;t:switch(St){case 1:St=0,ha=null,$l(e,t,d,1);break;case 2:case 9:if(Gh(d)){St=0,ha=null,Hm(t);break}t=function(){St!==2&&St!==9||zt!==e||(St=7),sr(e)},d.then(t,t);break e;case 3:St=7;break e;case 4:St=5;break e;case 7:Gh(d)?(St=0,ha=null,Hm(t)):(St=0,ha=null,$l(e,t,d,7));break;case 5:var v=null;switch(tt.tag){case 26:v=tt.memoizedState;case 5:case 27:var x=tt;if(!v||hn(v)){St=0,ha=null;var T=x.sibling;if(T!==null)tt=T;else{var Y=x.return;Y!==null?(tt=Y,ec(Y)):tt=null}break t}}St=0,ha=null,$l(e,t,d,5);break;case 6:St=0,ha=null,$l(e,t,d,6);break;case 8:dd(),en=6;break e;default:throw Error(o(462))}}Um();break}catch(ne){zm(e,ne)}while(!0);return _=ti=null,B.H=u,B.A=c,Ct=n,tt!==null?0:(zt=null,ct=0,Ti(),en)}function Um(){for(;tt!==null&&!_n();)gd(tt)}function gd(e){var t=Qo(e.alternate,e,Br);e.memoizedProps=e.pendingProps,t===null?ec(e):tt=t}function Hm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=qo(n,t,t.pendingProps,t.type,void 0,ct);break;case 11:t=qo(n,t,t.pendingProps,t.type.render,t.ref,ct);break;case 5:Eo(t);default:Am(n,t),t=tt=Nu(t,Br),t=Qo(n,t,Br)}e.memoizedProps=e.pendingProps,t===null?ec(e):tt=t}function $l(e,t,n,u){_=ti=null,Eo(t),on=null,Jn=0;var c=t.return;try{if(dm(e,c,t,n,ct)){en=1,ls(e,zn(n,e.current)),tt=null;return}}catch(d){if(c!==null)throw tt=c,d;en=1,ls(e,zn(n,e.current)),tt=null;return}t.flags&32768?(it||u===1?e=!0:Ql||(ct&536870912)!==0?e=!1:(ci=e=!0,(u===2||u===9||u===3||u===6)&&(u=fa.current,u!==null&&u.tag===13&&(u.flags|=16384))),Im(t,e)):ec(t)}function ec(e){var t=e;do{if((t.flags&32768)!==0){Im(t,ci);return}e=t.return;var n=vm(t.alternate,t,Br);if(n!==null){tt=n;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);en===0&&(en=5)}function Im(e,t){do{var n=Dm(e.alternate,e);if(n!==null){n.flags&=32767,tt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){tt=e;return}tt=e=n}while(e!==null);en=6,tt=null}function Ds(e,t,n,u,c,d,v,x,T){e.cancelPendingCommit=null;do tc();while(En!==0);if((Ct&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(d=t.lanes|t.childLanes,d|=vf,fg(e,n,d,v,x,T),e===zt&&(tt=zt=null,ct=0),Xl=t,hi=e,Pl=n,od=d,cd=c,Bm=u,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xm(wt,function(){return Qm(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=B.T,B.T=null,c=K.p,K.p=2,v=Ct,Ct|=4;try{zg(e,t,n)}finally{Ct=v,K.p=c,B.T=u}}En=1,Gm(),Ym(),qm()}}function Gm(){if(En===1){En=0;var e=hi,t=Xl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=B.T,B.T=null;var u=K.p;K.p=2;var c=Ct;Ct|=4;try{td(t,e);var d=sc,v=Bh(e.containerInfo),x=d.focusedElem,T=d.selectionRange;if(v!==x&&x&&x.ownerDocument&&Th(x.ownerDocument.documentElement,x)){if(T!==null&&gf(x)){var Y=T.start,ne=T.end;if(ne===void 0&&(ne=Y),"selectionStart"in x)x.selectionStart=Y,x.selectionEnd=Math.min(ne,x.value.length);else{var se=x.ownerDocument||document,Z=se&&se.defaultView||window;if(Z.getSelection){var V=Z.getSelection(),Ue=x.textContent.length,ke=Math.min(T.start,Ue),Tt=T.end===void 0?ke:Math.min(T.end,Ue);!V.extend&&ke>Tt&&(v=Tt,Tt=ke,ke=v);var j=mf(x,ke),N=mf(x,Tt);if(j&&N&&(V.rangeCount!==1||V.anchorNode!==j.node||V.anchorOffset!==j.offset||V.focusNode!==N.node||V.focusOffset!==N.offset)){var G=se.createRange();G.setStart(j.node,j.offset),V.removeAllRanges(),ke>Tt?(V.addRange(G),V.extend(N.node,N.offset)):(G.setEnd(N.node,N.offset),V.addRange(G))}}}}for(se=[],V=x;V=V.parentNode;)V.nodeType===1&&se.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<se.length;x++){var re=se[x];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}gc=!!Ya,sc=Ya=null}finally{Ct=c,K.p=u,B.T=n}}e.current=t,En=2}}function Ym(){if(En===2){En=0;var e=hi,t=Xl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=B.T,B.T=null;var u=K.p;K.p=2;var c=Ct;Ct|=4;try{_m(e,t.alternate,t)}finally{Ct=c,K.p=u,B.T=n}}En=3}}function qm(){if(En===4||En===3){En=0,Fi();var e=hi,t=Xl,n=Pl,u=Bm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?En=5:(En=0,Xl=hi=null,Vm(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(di=null),qs(n),t=t.stateNode,nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(gr,t,void 0,(t.current.flags&128)===128)}catch{}if(u!==null){t=B.T,c=K.p,K.p=2,B.T=null;try{for(var d=e.onRecoverableError,v=0;v<u.length;v++){var x=u[v];d(x.value,{componentStack:x.stack})}}finally{B.T=t,K.p=c}}(Pl&3)!==0&&tc(),sr(e),c=e.pendingLanes,(n&4194090)!==0&&(c&42)!==0?e===fd?Jl++:(Jl=0,fd=e):Jl=0,ys(0)}}function Vm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Hu(t)))}function tc(e){return Gm(),Ym(),qm(),Qm()}function Qm(){if(En!==5)return!1;var e=hi,t=od;od=0;var n=qs(Pl),u=B.T,c=K.p;try{K.p=32>n?32:n,B.T=null,n=cd,cd=null;var d=hi,v=Pl;if(En=0,Xl=hi=null,Pl=0,(Ct&6)!==0)throw Error(o(331));var x=Ct;if(Ct|=4,Mm(d.current),Fm(d,d.current,v,n),Ct=x,ys(0,!1),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(gr,d)}catch{}return!0}finally{K.p=c,B.T=u,Vm(e,t)}}function Km(e,t,n){t=zn(n,t),t=Ho(e.stateNode,t,2),e=_r(e,t,2),e!==null&&(ol(e,2),sr(e))}function Lt(e,t,n){if(e.tag===3)Km(e,e,n);else for(;t!==null;){if(t.tag===3){Km(t,e,n);break}else if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(di===null||!di.has(u))){e=zn(n,e),n=Zf(2),u=_r(t,n,2),u!==null&&(fm(n,u,t,e),ol(u,2),sr(u));break}}t=t.return}}function pd(e,t,n){var u=e.pingCache;if(u===null){u=e.pingCache=new rd;var c=new Set;u.set(t,c)}else c=u.get(t),c===void 0&&(c=new Set,u.set(t,c));c.has(n)||(id=!0,c.add(n),e=Gg.bind(null,e,t,n),t.then(e,e))}function Gg(e,t,n){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,zt===e&&(ct&n)===n&&(en===4||en===3&&(ct&62914560)===ct&&300>At()-sd?(Ct&2)===0&&Wl(e,0):ld|=n,Kl===ct&&(Kl=0)),sr(e)}function Zm(e,t){t===0&&(t=Gs()),e=Bi(e,t),e!==null&&(ol(e,t),sr(e))}function nc(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zm(e,n)}function Yg(e,t){var n=0;switch(e.tag){case 13:var u=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(o(314))}u!==null&&u.delete(t),Zm(e,n)}function Xm(e,t){return Jt(e,t)}var As=null,gi=null,ac=!1,bs=!1,rc=!1,pi=0;function sr(e){e!==gi&&e.next===null&&(gi===null?As=gi=e:gi=gi.next=e),bs=!0,ac||(ac=!0,vd())}function ys(e,t){if(!rc&&bs){rc=!0;do for(var n=!1,u=As;u!==null;){if(e!==0){var c=u.pendingLanes;if(c===0)var d=0;else{var v=u.suspendedLanes,x=u.pingedLanes;d=(1<<31-xn(42|e)+1)-1,d&=c&~(v&~x),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(n=!0,Jm(u,d))}else d=ct,d=Yr(u,u===zt?d:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(d&3)===0||pr(u,d)||(n=!0,Jm(u,d));u=u.next}while(n);rc=!1}}function qg(){_s()}function _s(){bs=ac=!1;var e=0;pi!==0&&(Jg()&&(e=pi),pi=0);for(var t=At(),n=null,u=As;u!==null;){var c=u.next,d=xs(u,t);d===0?(u.next=null,n===null?As=c:n.next=c,c===null&&(gi=n)):(n=u,(e!==0||(d&3)!==0)&&(bs=!0)),u=c}ys(e)}function xs(e,t){for(var n=e.suspendedLanes,u=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var v=31-xn(d),x=1<<v,T=c[v];T===-1?((x&n)===0||(x&u)!==0)&&(c[v]=Uc(x,t)):T<=t&&(e.expiredLanes|=x),d&=~x}if(t=zt,n=ct,n=Yr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,n===0||e===t&&(St===2||St===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&Dt(u),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||pr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(u!==null&&Dt(u),qs(n)){case 2:case 8:n=ra;break;case 32:n=wt;break;case 268435456:n=Ra;break;default:n=wt}return u=Pm.bind(null,e),n=Jt(n,u),e.callbackPriority=t,e.callbackNode=n,t}return u!==null&&u!==null&&Dt(u),e.callbackPriority=2,e.callbackNode=null,2}function Pm(e,t){if(En!==0&&En!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(tc()&&e.callbackNode!==n)return null;var u=ct;return u=Yr(e,e===zt?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(Nm(e,u,t),xs(e,At()),e.callbackNode!=null&&e.callbackNode===n?Pm.bind(null,e):null)}function Jm(e,t){if(tc())return null;Nm(e,t,!0)}function vd(){$g(function(){(Ct&6)!==0?Jt(Qt,qg):_s()})}function ic(){return pi===0&&(pi=On()),pi}function Wm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Cu(""+e)}function $m(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Vg(e,t,n,u,c){if(t==="submit"&&n&&n.stateNode===c){var d=Wm((c[Gn]||null).action),v=u.submitter;v&&(t=(t=v[Gn]||null)?Wm(t.formAction):v.getAttribute("formAction"),t!==null&&(d=t,v=null));var x=new eo("action","action",null,u,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(pi!==0){var T=v?$m(c,v):new FormData(c);$u(n,{pending:!0,data:T,method:c.method,action:d},null,T)}}else typeof d=="function"&&(x.preventDefault(),T=v?$m(c,v):new FormData(c),$u(n,{pending:!0,data:T,method:c.method,action:d},d,T))},currentTarget:c}]})}}for(var Dd=0;Dd<pt.length;Dd++){var Ad=pt[Dd],Qg=Ad.toLowerCase(),Kg=Ad[0].toUpperCase()+Ad.slice(1);za(Qg,"on"+Kg)}za(ho,"onAnimationEnd"),za(Rh,"onAnimationIteration"),za(sa,"onAnimationStart"),za("dblclick","onDoubleClick"),za("focusin","onFocus"),za("focusout","onBlur"),za(mo,"onTransitionRun"),za(Og,"onTransitionStart"),za(Fl,"onTransitionCancel"),za(Mu,"onTransitionEnd"),ml("onMouseEnter",["mouseout","mouseover"]),ml("onMouseLeave",["mouseout","mouseover"]),ml("onPointerEnter",["pointerout","pointerover"]),ml("onPointerLeave",["pointerout","pointerover"]),wi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wi("onBeforeInput",["compositionend","keypress","textInput","paste"]),wi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="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(Es));function e0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var u=e[n],c=u.event;u=u.listeners;e:{var d=void 0;if(t)for(var v=u.length-1;0<=v;v--){var x=u[v],T=x.instance,Y=x.currentTarget;if(x=x.listener,T!==d&&c.isPropagationStopped())break e;d=x,c.currentTarget=Y;try{d(c)}catch(ne){Xi(ne)}c.currentTarget=null,d=T}else for(v=0;v<u.length;v++){if(x=u[v],T=x.instance,Y=x.currentTarget,x=x.listener,T!==d&&c.isPropagationStopped())break e;d=x,c.currentTarget=Y;try{d(c)}catch(ne){Xi(ne)}c.currentTarget=null,d=T}}}}function nt(e,t){var n=t[Ic];n===void 0&&(n=t[Ic]=new Set);var u=e+"__bubble";n.has(u)||(t0(t,e,2,!1),n.add(u))}function bd(e,t,n){var u=0;t&&(u|=4),t0(n,e,u,t)}var ta="_reactListening"+Math.random().toString(36).slice(2);function yd(e){if(!e[ta]){e[ta]=!0,lh.forEach(function(n){n!=="selectionchange"&&(Zg.has(n)||bd(n,!1,e),bd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ta]||(t[ta]=!0,bd("selectionchange",!1,t))}}function t0(e,t,n,u){switch(b0(t)){case 2:var c=dp;break;case 8:c=lu;break;default:c=Td}n=c.bind(null,t,n,e),c=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),u?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Rr(e,t,n,u,c){var d=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var x=u.stateNode.containerInfo;if(x===c)break;if(v===4)for(v=u.return;v!==null;){var T=v.tag;if((T===3||T===4)&&v.stateNode.containerInfo===c)return;v=v.return}for(;x!==null;){if(v=cl(x),v===null)return;if(T=v.tag,T===5||T===6||T===26||T===27){u=d=v;continue e}x=x.parentNode}}u=u.return}dh(function(){var Y=d,ne=tf(n),se=[];e:{var Z=Tu.get(e);if(Z!==void 0){var V=eo,Ue=e;switch(e){case"keypress":if(Ot(n)===0)break e;case"keydown":case"keyup":V=sf;break;case"focusin":Ue="focus",V=no;break;case"focusout":Ue="blur",V=no;break;case"beforeblur":case"afterblur":V=no;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Zr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=uf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=bg;break;case ho:case Rh:case sa:V=vh;break;case Mu:V=yg;break;case"scroll":case"scrollend":V=vg;break;case"wheel":V=xg;break;case"copy":case"cut":case"paste":V=Ah;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Dr;break;case"toggle":case"beforetoggle":V=ro}var ke=(t&4)!==0,Tt=!ke&&(e==="scroll"||e==="scrollend"),j=ke?Z!==null?Z+"Capture":null:Z;ke=[];for(var N=Y,G;N!==null;){var re=N;if(G=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||G===null||j===null||(re=Su(N,j),re!=null&&ke.push(Ve(N,re,G))),Tt)break;N=N.return}0<ke.length&&(Z=new V(Z,Ue,null,n,ne),se.push({event:Z,listeners:ke}))}}if((t&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Z&&n!==Ws&&(Ue=n.relatedTarget||n.fromElement)&&(cl(Ue)||Ue[Vr]))break e;if((V||Z)&&(Z=ne.window===ne?ne:(Z=ne.ownerDocument)?Z.defaultView||Z.parentWindow:window,V?(Ue=n.relatedTarget||n.toElement,V=Y,Ue=Ue?cl(Ue):null,Ue!==null&&(Tt=m(Ue),ke=Ue.tag,Ue!==Tt||ke!==5&&ke!==27&&ke!==6)&&(Ue=null)):(V=null,Ue=Y),V!==Ue)){if(ke=Zr,re="onMouseLeave",j="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ke=Dr,re="onPointerLeave",j="onPointerEnter",N="pointer"),Tt=V==null?Z:dl(V),G=Ue==null?Z:dl(Ue),Z=new ke(re,N+"leave",V,n,ne),Z.target=Tt,Z.relatedTarget=G,re=null,cl(ne)===Y&&(ke=new ke(j,N+"enter",Ue,n,ne),ke.target=G,ke.relatedTarget=Tt,re=ke),Tt=re,V&&Ue)t:{for(ke=V,j=Ue,N=0,G=ke;G;G=fn(G))N++;for(G=0,re=j;re;re=fn(re))G++;for(;0<N-G;)ke=fn(ke),N--;for(;0<G-N;)j=fn(j),G--;for(;N--;){if(ke===j||j!==null&&ke===j.alternate)break t;ke=fn(ke),j=fn(j)}ke=null}else ke=null;V!==null&&tn(se,Z,V,ke,!1),Ue!==null&&Tt!==null&&tn(se,Tt,Ue,ke,!0)}}e:{if(Z=Y?dl(Y):window,V=Z.nodeName&&Z.nodeName.toLowerCase(),V==="select"||V==="input"&&Z.type==="file")var we=Sh;else if(so(Z))if(Fh)we=Sg;else{we=Jr;var $e=Mh}else V=Z.nodeName,!V||V.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?Y&&ef(Y.elementType)&&(we=Sh):we=fo;if(we&&(we=we(e,Y))){xl(se,we,n,ne);break e}$e&&$e(e,Z,Y),e==="focusout"&&Y&&Z.type==="number"&&Y.memoizedProps.value!=null&&Eu(Z,"number",Z.value)}switch($e=Y?dl(Y):window,e){case"focusin":(so($e)||$e.contentEditable==="true")&&(Sl=$e,Wr=Y,k=null);break;case"focusout":k=Wr=Sl=null;break;case"mousedown":ee=!0;break;case"contextmenu":case"mouseup":case"dragend":ee=!1,J(se,n,ne);break;case"selectionchange":if(wg)break;case"keydown":case"keyup":J(se,n,ne)}var Be;if(ff)e:{switch(e){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Xr?Eh(e,n)&&(He="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(He="onCompositionStart");He&&(io&&n.locale!=="ko"&&(Xr||He!=="onCompositionStart"?He==="onCompositionEnd"&&Xr&&(Be=hh()):(Kr=ne,rf="value"in Kr?Kr.value:Kr.textContent,Xr=!0)),$e=lc(Y,He),0<$e.length&&(He=new qn(He,e,null,n,ne),se.push({event:He,listeners:$e}),Be?He.data=Be:(Be=uo(n),Be!==null&&(He.data=Be)))),(Be=xh?Eg(e,n):Ch(e,n))&&(He=lc(Y,"onBeforeInput"),0<He.length&&($e=new qn("onBeforeInput","beforeinput",null,n,ne),se.push({event:$e,listeners:He}),$e.data=Be)),Vg(se,e,Y,n,ne)}e0(se,t)})}function Ve(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lc(e,t){for(var n=t+"Capture",u=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Su(e,n),c!=null&&u.unshift(Ve(e,c,d)),c=Su(e,t),c!=null&&u.push(Ve(e,c,d))),e.tag===3)return u;e=e.return}return[]}function fn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tn(e,t,n,u,c){for(var d=t._reactName,v=[];n!==null&&n!==u;){var x=n,T=x.alternate,Y=x.stateNode;if(x=x.tag,T!==null&&T===u)break;x!==5&&x!==26&&x!==27||Y===null||(T=Y,c?(Y=Su(n,d),Y!=null&&v.unshift(Ve(n,Y,T))):c||(Y=Su(n,d),Y!=null&&v.push(Ve(n,Y,T)))),n=n.return}v.length!==0&&e.push({event:t,listeners:v})}var Xg=/\r\n?/g,vi=/\u0000|\uFFFD/g;function n0(e){return(typeof e=="string"?e:""+e).replace(Xg,`
`).replace(vi,"")}function a0(e,t){return t=n0(t),n0(e)===t}function uc(){}function Mt(e,t,n,u,c,d){switch(n){case"children":typeof u=="string"?t==="body"||t==="textarea"&&u===""||Qr(e,u):(typeof u=="number"||typeof u=="bigint")&&t!=="body"&&Qr(e,""+u);break;case"className":Ks(e,"class",u);break;case"tabIndex":Ks(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ks(e,n,u);break;case"style":$c(e,u,d);break;case"data":if(t!=="object"){Ks(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(n);break}u=Cu(""+u),e.setAttribute(n,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(n,"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 d=="function"&&(n==="formAction"?(t!=="input"&&Mt(e,t,"name",c.name,c,null),Mt(e,t,"formEncType",c.formEncType,c,null),Mt(e,t,"formMethod",c.formMethod,c,null),Mt(e,t,"formTarget",c.formTarget,c,null)):(Mt(e,t,"encType",c.encType,c,null),Mt(e,t,"method",c.method,c,null),Mt(e,t,"target",c.target,c,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(n);break}u=Cu(""+u),e.setAttribute(n,u);break;case"onClick":u!=null&&(e.onclick=uc);break;case"onScroll":u!=null&&nt("scroll",e);break;case"onScrollEnd":u!=null&&nt("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(n=u.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}n=Cu(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(n,""+u):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":u===!0?e.setAttribute(n,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(n,u):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(n,u):e.removeAttribute(n);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(n):e.setAttribute(n,u);break;case"popover":nt("beforetoggle",e),nt("toggle",e),Qs(e,"popover",u);break;case"xlinkActuate":Wa(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Wa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Wa(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Wa(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Wa(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Wa(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Wa(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Wa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Wa(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Qs(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ch.get(n)||n,Qs(e,n,u))}}function _d(e,t,n,u,c,d){switch(n){case"style":$c(e,u,d);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(n=u.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof u=="string"?Qr(e,u):(typeof u=="number"||typeof u=="bigint")&&Qr(e,""+u);break;case"onScroll":u!=null&&nt("scroll",e);break;case"onScrollEnd":u!=null&&nt("scrollend",e);break;case"onClick":u!=null&&(e.onclick=uc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uh.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),d=e[Gn]||null,d=d!=null?d[n]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof u=="function")){typeof d!="function"&&d!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,u,c);break e}n in e?e[n]=u:u===!0?e.setAttribute(n,""):Qs(e,n,u)}}}function dn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",e),nt("load",e);var u=!1,c=!1,d;for(d in n)if(n.hasOwnProperty(d)){var v=n[d];if(v!=null)switch(d){case"src":u=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Mt(e,t,d,v,n,null)}}c&&Mt(e,t,"srcSet",n.srcSet,n,null),u&&Mt(e,t,"src",n.src,n,null);return;case"input":nt("invalid",e);var x=d=v=c=null,T=null,Y=null;for(u in n)if(n.hasOwnProperty(u)){var ne=n[u];if(ne!=null)switch(u){case"name":c=ne;break;case"type":v=ne;break;case"checked":T=ne;break;case"defaultChecked":Y=ne;break;case"value":d=ne;break;case"defaultValue":x=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(o(137,t));break;default:Mt(e,t,u,ne,n,null)}}Pc(e,d,x,T,Y,v,c,!1),Xs(e);return;case"select":nt("invalid",e),u=v=d=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":d=x;break;case"defaultValue":v=x;break;case"multiple":u=x;default:Mt(e,t,c,x,n,null)}t=d,n=v,e.multiple=!!u,t!=null?pl(e,!!u,t,!1):n!=null&&pl(e,!!u,n,!0);return;case"textarea":nt("invalid",e),d=c=u=null;for(v in n)if(n.hasOwnProperty(v)&&(x=n[v],x!=null))switch(v){case"value":u=x;break;case"defaultValue":c=x;break;case"children":d=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:Mt(e,t,v,x,n,null)}Js(e,u,c,d),Xs(e);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(u=n[T],u!=null))switch(T){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Mt(e,t,T,u,n,null)}return;case"dialog":nt("beforetoggle",e),nt("toggle",e),nt("cancel",e),nt("close",e);break;case"iframe":case"object":nt("load",e);break;case"video":case"audio":for(u=0;u<Es.length;u++)nt(Es[u],e);break;case"image":nt("error",e),nt("load",e);break;case"details":nt("toggle",e);break;case"embed":case"source":case"link":nt("error",e),nt("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(Y in n)if(n.hasOwnProperty(Y)&&(u=n[Y],u!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Mt(e,t,Y,u,n,null)}return;default:if(ef(t)){for(ne in n)n.hasOwnProperty(ne)&&(u=n[ne],u!==void 0&&_d(e,t,ne,u,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(u=n[x],u!=null&&Mt(e,t,x,u,n,null))}function Pg(e,t,n,u){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,v=null,x=null,T=null,Y=null,ne=null;for(V in n){var se=n[V];if(n.hasOwnProperty(V)&&se!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":T=se;default:u.hasOwnProperty(V)||Mt(e,t,V,null,u,se)}}for(var Z in u){var V=u[Z];if(se=n[Z],u.hasOwnProperty(Z)&&(V!=null||se!=null))switch(Z){case"type":d=V;break;case"name":c=V;break;case"checked":Y=V;break;case"defaultChecked":ne=V;break;case"value":v=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,t));break;default:V!==se&&Mt(e,t,Z,V,u,se)}}Ps(e,v,x,T,Y,ne,d,c);return;case"select":V=v=x=Z=null;for(d in n)if(T=n[d],n.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":V=T;default:u.hasOwnProperty(d)||Mt(e,t,d,null,u,T)}for(c in u)if(d=u[c],T=n[c],u.hasOwnProperty(c)&&(d!=null||T!=null))switch(c){case"value":Z=d;break;case"defaultValue":x=d;break;case"multiple":v=d;default:d!==T&&Mt(e,t,c,d,u,T)}t=x,n=v,u=V,Z!=null?pl(e,!!n,Z,!1):!!u!=!!n&&(t!=null?pl(e,!!n,t,!0):pl(e,!!n,n?[]:"",!1));return;case"textarea":V=Z=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!u.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Mt(e,t,x,null,u,c)}for(v in u)if(c=u[v],d=n[v],u.hasOwnProperty(v)&&(c!=null||d!=null))switch(v){case"value":Z=c;break;case"defaultValue":V=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==d&&Mt(e,t,v,c,u,d)}Jc(e,Z,V);return;case"option":for(var Ue in n)if(Z=n[Ue],n.hasOwnProperty(Ue)&&Z!=null&&!u.hasOwnProperty(Ue))switch(Ue){case"selected":e.selected=!1;break;default:Mt(e,t,Ue,null,u,Z)}for(T in u)if(Z=u[T],V=n[T],u.hasOwnProperty(T)&&Z!==V&&(Z!=null||V!=null))switch(T){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Mt(e,t,T,Z,u,V)}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 ke in n)Z=n[ke],n.hasOwnProperty(ke)&&Z!=null&&!u.hasOwnProperty(ke)&&Mt(e,t,ke,null,u,Z);for(Y in u)if(Z=u[Y],V=n[Y],u.hasOwnProperty(Y)&&Z!==V&&(Z!=null||V!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(o(137,t));break;default:Mt(e,t,Y,Z,u,V)}return;default:if(ef(t)){for(var Tt in n)Z=n[Tt],n.hasOwnProperty(Tt)&&Z!==void 0&&!u.hasOwnProperty(Tt)&&_d(e,t,Tt,void 0,u,Z);for(ne in u)Z=u[ne],V=n[ne],!u.hasOwnProperty(ne)||Z===V||Z===void 0&&V===void 0||_d(e,t,ne,Z,u,V);return}}for(var j in n)Z=n[j],n.hasOwnProperty(j)&&Z!=null&&!u.hasOwnProperty(j)&&Mt(e,t,j,null,u,Z);for(se in u)Z=u[se],V=n[se],!u.hasOwnProperty(se)||Z===V||Z==null&&V==null||Mt(e,t,se,Z,u,V)}var Ya=null,sc=null;function $i(e){return e.nodeType===9?e:e.ownerDocument}function qt(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 Zt(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 oc(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 xd=null;function Jg(){var e=window.event;return e&&e.type==="popstate"?e===xd?!1:(xd=e,!0):(xd=null,!1)}var r0=typeof setTimeout=="function"?setTimeout:void 0,Wg=typeof clearTimeout=="function"?clearTimeout:void 0,i0=typeof Promise=="function"?Promise:void 0,$g=typeof queueMicrotask=="function"?queueMicrotask:typeof i0<"u"?function(e){return i0.resolve(null).then(e).catch(l0)}:r0;function l0(e){setTimeout(function(){throw e})}function Ma(e){return e==="head"}function cc(e,t){var n=t,u=0,c=0;do{var d=n.nextSibling;if(e.removeChild(n),d&&d.nodeType===8)if(n=d.data,n==="/$"){if(0<u&&8>u){n=u;var v=e.ownerDocument;if(n&1&&Cs(v.documentElement),n&2&&Cs(v.body),n&4)for(n=v.head,Cs(n),v=n.firstChild;v;){var x=v.nextSibling,T=v.nodeName;v[_u]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&v.rel.toLowerCase()==="stylesheet"||n.removeChild(v),v=x}}if(c===0){e.removeChild(d),Rs(t);return}c--}else n==="$"||n==="$?"||n==="$!"?c++:u=n.charCodeAt(0)-48;else u=0;n=d}while(n);Rs(t)}function Ed(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ed(n),Gc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function u0(e,t,n,u){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[_u])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=qa(e.nextSibling),e===null)break}return null}function fc(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=qa(e.nextSibling),e===null))return null;return e}function In(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function eu(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var u=function(){t(),n.removeEventListener("DOMContentLoaded",u)};n.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function qa(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Cd=null;function s0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function o0(e,t,n){switch(t=$i(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Cs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gc(e)}var ga=new Map,or=new Set;function Ze(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cr=K.d;K.d={f:Ta,r:c0,D:ep,C:f0,L:dc,m:tp,X:ap,S:np,M:rp};function Ta(){var e=cr.f(),t=$o();return e||t}function c0(e){var t=fl(e);t!==null&&t.tag===5&&t.type==="form"?zo(t):cr.r(e)}var tu=typeof document>"u"?null:document;function vt(e,t,n){var u=tu;if(u&&typeof t=="string"&&t){var c=va(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),or.has(c)||(or.add(c),e={rel:e,crossOrigin:n,href:t},u.querySelector(c)===null&&(t=u.createElement("link"),dn(t,"link",e),vn(t),u.head.appendChild(t)))}}function ep(e){cr.D(e),vt("dns-prefetch",e,null)}function f0(e,t){cr.C(e,t),vt("preconnect",e,t)}function dc(e,t,n){cr.L(e,t,n);var u=tu;if(u&&e&&t){var c='link[rel="preload"][as="'+va(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+va(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+va(n.imageSizes)+'"]')):c+='[href="'+va(e)+'"]';var d=c;switch(t){case"style":d=nu(e);break;case"script":d=au(e)}ga.has(d)||(e=F({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(d,e),u.querySelector(c)!==null||t==="style"&&u.querySelector(Ss(d))||t==="script"&&u.querySelector(Fs(d))||(t=u.createElement("link"),dn(t,"link",e),vn(t),u.head.appendChild(t)))}}function tp(e,t){cr.m(e,t);var n=tu;if(n&&e){var u=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+va(u)+'"][href="'+va(e)+'"]',d=c;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=au(e)}if(!ga.has(d)&&(e=F({rel:"modulepreload",href:e},t),ga.set(d,e),n.querySelector(c)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fs(d)))return}u=n.createElement("link"),dn(u,"link",e),vn(u),n.head.appendChild(u)}}}function np(e,t,n){cr.S(e,t,n);var u=tu;if(u&&e){var c=hl(u).hoistableStyles,d=nu(e);t=t||"default";var v=c.get(d);if(!v){var x={loading:0,preload:null};if(v=u.querySelector(Ss(d)))x.loading=5;else{e=F({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(d))&&ws(e,n);var T=v=u.createElement("link");vn(T),dn(T,"link",e),T._p=new Promise(function(Y,ne){T.onload=Y,T.onerror=ne}),T.addEventListener("load",function(){x.loading|=1}),T.addEventListener("error",function(){x.loading|=2}),x.loading|=4,hc(v,t,u)}v={type:"stylesheet",instance:v,count:1,state:x},c.set(d,v)}}}function ap(e,t){cr.X(e,t);var n=tu;if(n&&e){var u=hl(n).hoistableScripts,c=au(e),d=u.get(c);d||(d=n.querySelector(Fs(c)),d||(e=F({src:e,async:!0},t),(t=ga.get(c))&&Sd(e,t),d=n.createElement("script"),vn(d),dn(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},u.set(c,d))}}function rp(e,t){cr.M(e,t);var n=tu;if(n&&e){var u=hl(n).hoistableScripts,c=au(e),d=u.get(c);d||(d=n.querySelector(Fs(c)),d||(e=F({src:e,async:!0,type:"module"},t),(t=ga.get(c))&&Sd(e,t),d=n.createElement("script"),vn(d),dn(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},u.set(c,d))}}function d0(e,t,n,u){var c=(c=pe.current)?Ze(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=nu(n.href),n=hl(c).hoistableStyles,u=n.get(t),u||(u={type:"style",instance:null,count:0,state:null},n.set(t,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=nu(n.href);var d=hl(c).hoistableStyles,v=d.get(e);if(v||(c=c.ownerDocument||c,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,v),(d=c.querySelector(Ss(e)))&&!d._p&&(v.instance=d,v.state.loading=5),ga.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ga.set(e,n),d||ip(c,e,n,v.state))),t&&u===null)throw Error(o(528,""));return v}if(t&&u!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=au(n),n=hl(c).hoistableScripts,u=n.get(t),u||(u={type:"script",instance:null,count:0,state:null},n.set(t,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function nu(e){return'href="'+va(e)+'"'}function Ss(e){return'link[rel="stylesheet"]['+e+"]"}function h0(e){return F({},e,{"data-precedence":e.precedence,precedence:null})}function ip(e,t,n,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=1:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=1}),t.addEventListener("error",function(){return u.loading|=2}),dn(t,"link",n),vn(t),e.head.appendChild(t))}function au(e){return'[src="'+va(e)+'"]'}function Fs(e){return"script[async]"+e}function m0(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+va(n.href)+'"]');if(u)return t.instance=u,vn(u),u;var c=F({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),vn(u),dn(u,"style",c),hc(u,n.precedence,e),t.instance=u;case"stylesheet":c=nu(n.href);var d=e.querySelector(Ss(c));if(d)return t.state.loading|=4,t.instance=d,vn(d),d;u=h0(n),(c=ga.get(c))&&ws(u,c),d=(e.ownerDocument||e).createElement("link"),vn(d);var v=d;return v._p=new Promise(function(x,T){v.onload=x,v.onerror=T}),dn(d,"link",u),t.state.loading|=4,hc(d,n.precedence,e),t.instance=d;case"script":return d=au(n.src),(c=e.querySelector(Fs(d)))?(t.instance=c,vn(c),c):(u=n,(c=ga.get(d))&&(u=F({},n),Sd(u,c)),e=e.ownerDocument||e,c=e.createElement("script"),vn(c),dn(c,"link",u),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(u=t.instance,t.state.loading|=4,hc(u,n.precedence,e));return t.instance}function hc(e,t,n){for(var u=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=u.length?u[u.length-1]:null,d=c,v=0;v<u.length;v++){var x=u[v];if(x.dataset.precedence===t)d=x;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ws(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ru=null;function g0(e,t,n){if(ru===null){var u=new Map,c=ru=new Map;c.set(n,u)}else c=ru,u=c.get(n),u||(u=new Map,c.set(n,u));if(u.has(e))return u;for(u.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var d=n[c];if(!(d[_u]||d[pn]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var v=d.getAttribute(t)||"";v=e+v;var x=u.get(v);x?x.push(d):u.set(v,[d])}}return u}function p0(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function lp(e,t,n){if(n===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 hn(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var bn=null;function up(){}function sp(e,t,n){if(bn===null)throw Error(o(475));var u=bn;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=nu(n.href),d=e.querySelector(Ss(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(u.count++,u=Os.bind(u),e.then(u,u)),t.state.loading|=4,t.instance=d,vn(d);return}d=e.ownerDocument||e,n=h0(n),(c=ga.get(c))&&ws(n,c),d=d.createElement("link"),vn(d);var v=d;v._p=new Promise(function(x,T){v.onload=x,v.onerror=T}),dn(d,"link",n),t.instance=d}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(u.count++,t=Os.bind(u),e.addEventListener("load",t),e.addEventListener("error",t))}}function op(){if(bn===null)throw Error(o(475));var e=bn;return e.stylesheets&&e.count===0&&Fd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Fd(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Os(){if(this.count--,this.count===0){if(this.stylesheets)Fd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var mc=null;function Fd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,mc=new Map,t.forEach(cp,e),mc=null,Os.call(e))}function cp(e,t){if(!(t.state.loading&4)){var n=mc.get(e);if(n)var u=n.get(null);else{n=new Map,mc.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var v=c[d];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(n.set(v.dataset.precedence,v),u=v)}u&&n.set(null,u)}c=t.instance,v=c.getAttribute("data-precedence"),d=n.get(v)||u,d===u&&n.set(null,c),n.set(v,c),this.count++,u=Os.bind(this),c.addEventListener("load",u),c.addEventListener("error",u),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var iu={$$typeof:me,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function fp(e,t,n,u,c,d,v,x){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=Ys(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ys(0),this.hiddenUpdates=Ys(null),this.identifierPrefix=u,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function v0(e,t,n,u,c,d,v,x,T,Y,ne,se){return e=new fp(e,t,n,v,x,T,Y,se),t=1,d===!0&&(t|=24),d=Vn(3,null,null,t),e.current=d,d.stateNode=e,t=yf(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:u,isDehydrated:n,cache:t},Hi(d),e}function D0(e){return e?(e=Ri,e):Ri}function wd(e,t,n,u,c,d){c=D0(c),u.context===null?u.context=c:u.pendingContext=c,u=ni(t),u.payload={element:n},d=d===void 0?null:d,d!==null&&(u.callback=d),n=_r(e,u,t),n!==null&&(ma(n,e,t),Gu(n,e,t))}function Od(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Md(e,t){Od(e,t),(e=e.alternate)&&Od(e,t)}function A0(e){if(e.tag===13){var t=Bi(e,67108864);t!==null&&ma(t,e,67108864),Md(e,67108864)}}var gc=!0;function dp(e,t,n,u){var c=B.T;B.T=null;var d=K.p;try{K.p=2,Td(e,t,n,u)}finally{K.p=d,B.T=c}}function lu(e,t,n,u){var c=B.T;B.T=null;var d=K.p;try{K.p=8,Td(e,t,n,u)}finally{K.p=d,B.T=c}}function Td(e,t,n,u){if(gc){var c=Bd(u);if(c===null)Rr(e,t,u,pc,n),y0(e,u);else if(mp(c,e,t,n,u))u.stopPropagation();else if(y0(e,u),t&4&&-1<hp.indexOf(e)){for(;c!==null;){var d=fl(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=La(d.pendingLanes);if(v!==0){var x=d;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var T=1<<31-xn(v);x.entanglements[1]|=T,v&=~T}sr(d),(Ct&6)===0&&(Zl=At()+500,ys(0))}}break;case 13:x=Bi(d,2),x!==null&&ma(x,d,2),$o(),Md(d,2)}if(d=Bd(u),d===null&&Rr(e,t,u,pc,n),d===c)break;c=d}c!==null&&u.stopPropagation()}else Rr(e,t,u,null,n)}}function Bd(e){return e=tf(e),Rd(e)}var pc=null;function Rd(e){if(pc=null,e=cl(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pc=e,null}function b0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(un()){case Qt:return 2;case ra:return 8;case wt:case wn:return 32;case Ra:return 268435456;default:return 32}default:return 32}}var vc=!1,Nr=null,Di=null,Ai=null,Ms=new Map,Ts=new Map,bi=[],hp="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 y0(e,t){switch(e){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":Di=null;break;case"mouseover":case"mouseout":Ai=null;break;case"pointerover":case"pointerout":Ms.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ts.delete(t.pointerId)}}function Bs(e,t,n,u,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:n,eventSystemFlags:u,nativeEvent:d,targetContainers:[c]},t!==null&&(t=fl(t),t!==null&&A0(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function mp(e,t,n,u,c){switch(t){case"focusin":return Nr=Bs(Nr,e,t,n,u,c),!0;case"dragenter":return Di=Bs(Di,e,t,n,u,c),!0;case"mouseover":return Ai=Bs(Ai,e,t,n,u,c),!0;case"pointerover":var d=c.pointerId;return Ms.set(d,Bs(Ms.get(d)||null,e,t,n,u,c)),!0;case"gotpointercapture":return d=c.pointerId,Ts.set(d,Bs(Ts.get(d)||null,e,t,n,u,c)),!0}return!1}function _0(e){var t=cl(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,dg(e.priority,function(){if(n.tag===13){var u=Rn();u=Hc(u);var c=Bi(n,u);c!==null&&ma(c,n,u),Md(n,u)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bd(e.nativeEvent);if(n===null){n=e.nativeEvent;var u=new n.constructor(n.type,n);Ws=u,n.target.dispatchEvent(u),Ws=null}else return t=fl(n),t!==null&&A0(t),e.blockedOn=n,!1;t.shift()}return!0}function x0(e,t,n){Dc(e)&&n.delete(t)}function gp(){vc=!1,Nr!==null&&Dc(Nr)&&(Nr=null),Di!==null&&Dc(Di)&&(Di=null),Ai!==null&&Dc(Ai)&&(Ai=null),Ms.forEach(x0),Ts.forEach(x0)}function Ac(e,t){e.blockedOn===t&&(e.blockedOn=null,vc||(vc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,gp)))}var bc=null;function E0(e){bc!==e&&(bc=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){bc===e&&(bc=null);for(var t=0;t<e.length;t+=3){var n=e[t],u=e[t+1],c=e[t+2];if(typeof u!="function"){if(Rd(u||n)===null)continue;break}var d=fl(n);d!==null&&(e.splice(t,3),t-=3,$u(d,{pending:!0,data:c,method:n.method,action:u},u,c))}}))}function Rs(e){function t(T){return Ac(T,e)}Nr!==null&&Ac(Nr,e),Di!==null&&Ac(Di,e),Ai!==null&&Ac(Ai,e),Ms.forEach(t),Ts.forEach(t);for(var n=0;n<bi.length;n++){var u=bi[n];u.blockedOn===e&&(u.blockedOn=null)}for(;0<bi.length&&(n=bi[0],n.blockedOn===null);)_0(n),n.blockedOn===null&&bi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(u=0;u<n.length;u+=3){var c=n[u],d=n[u+1],v=c[Gn]||null;if(typeof d=="function")v||E0(n);else if(v){var x=null;if(d&&d.hasAttribute("formAction")){if(c=d,v=d[Gn]||null)x=v.formAction;else if(Rd(c)!==null)continue}else x=v.action;typeof x=="function"?n[u+1]=x:(n.splice(u,3),u-=3),E0(n)}}}function Nd(e){this._internalRoot=e}yc.prototype.render=Nd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,u=Rn();wd(n,u,e,t,null,null)},yc.prototype.unmount=Nd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wd(e.current,2,null,e,null,null),$o(),t[Vr]=null}};function yc(e){this._internalRoot=e}yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=rh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bi.length&&t!==0&&t<bi[n].priority;n++);bi.splice(n,0,e),n===0&&_0(e)}};var C0=i.version;if(C0!=="19.1.1")throw Error(o(527,C0,"19.1.1"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=b(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var pp={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_c.isDisabled&&_c.supportsFiber)try{gr=_c.inject(pp),nn=_c}catch{}}return zd.createRoot=function(e,t){if(!h(e))throw Error(o(299));var n=!1,u="",c=Kf,d=Uo,v=cm,x=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(x=t.unstable_transitionCallbacks)),t=v0(e,1,!1,null,null,n,u,c,d,v,x,null),e[Vr]=t.current,yd(e),new Nd(t)},zd.hydrateRoot=function(e,t,n){if(!h(e))throw Error(o(299));var u=!1,c="",d=Kf,v=Uo,x=cm,T=null,Y=null;return n!=null&&(n.unstable_strictMode===!0&&(u=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(v=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(T=n.unstable_transitionCallbacks),n.formState!==void 0&&(Y=n.formState)),t=v0(e,1,!0,t,n??null,u,c,d,v,x,T,Y),t.context=D0(null),n=t.current,u=Rn(),u=Hc(u),c=ni(u),c.callback=null,_r(n,c,u),n=u,t.current.lanes=n,ol(t,n),sr(t),e[Vr]=t.current,yd(e),new yc(t)},zd.version="19.1.1",zd}var Jv;function n2(){if(Jv)return yp.exports;Jv=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),yp.exports=t2(),yp.exports}var a2=n2(),jd={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var r2=jd.exports,Wv;function i2(){return Wv||(Wv=1,(function(r,i){(function(){var s,o="4.17.21",h=200,m="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",D="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",y=500,F="__lodash_placeholder__",M=1,L=2,U=4,z=1,q=2,I=1,ie=2,ce=4,me=8,De=16,te=32,de=64,ge=128,$=256,ye=512,Le=30,Ee="...",Ne=800,Ke=16,be=1,ae=2,B=3,K=1/0,P=9007199254740991,ve=17976931348623157e292,C=NaN,Q=4294967295,fe=Q-1,ue=Q>>>1,Ae=[["ary",ge],["bind",I],["bindKey",ie],["curry",me],["curryRight",De],["flip",ye],["partial",te],["partialRight",de],["rearg",$]],_e="[object Arguments]",pe="[object Array]",ot="[object AsyncFunction]",je="[object Boolean]",Ge="[object Date]",rt="[object DOMException]",_t="[object Error]",Ft="[object Function]",Jt="[object GeneratorFunction]",Dt="[object Map]",_n="[object Number]",Fi="[object Null]",At="[object Object]",un="[object Promise]",Qt="[object Proxy]",ra="[object RegExp]",wt="[object Set]",wn="[object String]",Ra="[object Symbol]",Na="[object Undefined]",Bt="[object WeakMap]",gr="[object WeakSet]",nn="[object ArrayBuffer]",gn="[object DataView]",xn="[object Float32Array]",Au="[object Float64Array]",bu="[object Int8Array]",yu="[object Int16Array]",Ja="[object Int32Array]",Kt="[object Uint8Array]",La="[object Uint8ClampedArray]",Yr="[object Uint16Array]",pr="[object Uint32Array]",Uc=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,Gs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ys=/&(?:amp|lt|gt|quot|#39);/g,ol=/[&<>"']/g,fg=RegExp(Ys.source),nh=RegExp(ol.source),ah=/<%-([\s\S]+?)%>/g,Hc=/<%([\s\S]+?)%>/g,qs=/<%=([\s\S]+?)%>/g,rh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dg=/^\w*$/,qr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pn=/[\\^$.*+?()[\]{}|]/g,Gn=RegExp(pn.source),Vr=/^\s+/,Ic=/\s/,hg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mg=/\{\n\/\* \[wrapped with (.+)\] \*/,ih=/,? & /,_u=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gc=/[()=,{}\[\]\/\s]/,cl=/\\(\\)?/g,fl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dl=/\w*$/,hl=/^[-+]0x[0-9a-f]+$/i,vn=/^0b[01]+$/i,lh=/^\[object .+?Constructor\]$/,uh=/^0o[0-7]+$/i,wi=/^(?:0|[1-9]\d*)$/,ml=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vs=/($^)/,sh=/['\n\r\u2028\u2029\\]/g,xu="\\ud800-\\udfff",gg="\\u0300-\\u036f",Qs="\\ufe20-\\ufe2f",Ks="\\u20d0-\\u20ff",Wa=gg+Qs+Ks,Zs="\\u2700-\\u27bf",Yc="a-z\\xdf-\\xf6\\xf8-\\xff",gl="\\xac\\xb1\\xd7\\xf7",qc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vc="\\u2000-\\u206f",pg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qc="A-Z\\xc0-\\xd6\\xd8-\\xde",ia="\\ufe0e\\ufe0f",Kc=gl+qc+Vc+pg,Zc="['’]",Xs="["+xu+"]",Xc="["+Kc+"]",Oi="["+Wa+"]",oh="\\d+",va="["+Zs+"]",Ps="["+Yc+"]",Pc="[^"+xu+Kc+oh+Zs+Yc+Qc+"]",Eu="\\ud83c[\\udffb-\\udfff]",pl="(?:"+Oi+"|"+Eu+")",Jc="[^"+xu+"]",Js="(?:\\ud83c[\\udde6-\\uddff]){2}",Qr="[\\ud800-\\udbff][\\udc00-\\udfff]",vl="["+Qc+"]",Wc="\\u200d",$c="(?:"+Ps+"|"+Pc+")",ef="(?:"+vl+"|"+Pc+")",ch="(?:"+Zc+"(?:d|ll|m|re|s|t|ve))?",fh="(?:"+Zc+"(?:D|LL|M|RE|S|T|VE))?",Cu=pl+"?",Ws="["+ia+"]?",tf="(?:"+Wc+"(?:"+[Jc,Js,Qr].join("|")+")"+Ws+Cu+")*",Dl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Al="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nf=Ws+Cu+tf,af="(?:"+[va,Js,Qr].join("|")+")"+nf,dh="(?:"+[Jc+Oi+"?",Oi,Js,Qr,Xs].join("|")+")",Su=RegExp(Zc,"g"),vr=RegExp(Oi,"g"),Fu=RegExp(Eu+"(?="+Eu+")|"+dh+nf,"g"),wu=RegExp([vl+"?"+Ps+"+"+ch+"(?="+[Xc,vl,"$"].join("|")+")",ef+"+"+fh+"(?="+[Xc,vl+$c,"$"].join("|")+")",vl+"?"+$c+"+"+ch,vl+"+"+fh,Al,Dl,oh,af].join("|"),"g"),Kr=RegExp("["+Wc+xu+Wa+ia+"]"),rf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$s=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hh=-1,Ot={};Ot[xn]=Ot[Au]=Ot[bu]=Ot[yu]=Ot[Ja]=Ot[Kt]=Ot[La]=Ot[Yr]=Ot[pr]=!0,Ot[_e]=Ot[pe]=Ot[nn]=Ot[je]=Ot[gn]=Ot[Ge]=Ot[_t]=Ot[Ft]=Ot[Dt]=Ot[_n]=Ot[At]=Ot[ra]=Ot[wt]=Ot[wn]=Ot[Bt]=!1;var xt={};xt[_e]=xt[pe]=xt[nn]=xt[gn]=xt[je]=xt[Ge]=xt[xn]=xt[Au]=xt[bu]=xt[yu]=xt[Ja]=xt[Dt]=xt[_n]=xt[At]=xt[ra]=xt[wt]=xt[wn]=xt[Ra]=xt[Kt]=xt[La]=xt[Yr]=xt[pr]=!0,xt[_t]=xt[Ft]=xt[Bt]=!1;var mh={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},Yn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Mi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},eo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ou=parseFloat,vg=parseInt,to=typeof S0=="object"&&S0&&S0.Object===Object&&S0,lf=typeof self=="object"&&self&&self.Object===Object&&self,an=to||lf||Function("return this")(),bl=i&&!i.nodeType&&i,Zr=bl&&!0&&r&&!r.nodeType&&r,gh=Zr&&Zr.exports===bl,uf=gh&&to.process,Da=(function(){try{var k=Zr&&Zr.require&&Zr.require("util").types;return k||uf&&uf.binding&&uf.binding("util")}catch{}})(),no=Da&&Da.isArrayBuffer,ph=Da&&Da.isDate,vh=Da&&Da.isMap,Dh=Da&&Da.isRegExp,Ah=Da&&Da.isSet,bh=Da&&Da.isTypedArray;function qn(k,ee,J){switch(J.length){case 0:return k.call(ee);case 1:return k.call(ee,J[0]);case 2:return k.call(ee,J[0],J[1]);case 3:return k.call(ee,J[0],J[1],J[2])}return k.apply(ee,J)}function Dg(k,ee,J,Ce){for(var Ie=-1,ft=k==null?0:k.length;++Ie<ft;){var rn=k[Ie];ee(Ce,rn,J(rn),k)}return Ce}function Aa(k,ee){for(var J=-1,Ce=k==null?0:k.length;++J<Ce&&ee(k[J],J,k)!==!1;);return k}function Ag(k,ee){for(var J=k==null?0:k.length;J--&&ee(k[J],J,k)!==!1;);return k}function yh(k,ee){for(var J=-1,Ce=k==null?0:k.length;++J<Ce;)if(!ee(k[J],J,k))return!1;return!0}function $a(k,ee){for(var J=-1,Ce=k==null?0:k.length,Ie=0,ft=[];++J<Ce;){var rn=k[J];ee(rn,J,k)&&(ft[Ie++]=rn)}return ft}function ao(k,ee){var J=k==null?0:k.length;return!!J&&yl(k,ee,0)>-1}function sf(k,ee,J){for(var Ce=-1,Ie=k==null?0:k.length;++Ce<Ie;)if(J(ee,k[Ce]))return!0;return!1}function Ht(k,ee){for(var J=-1,Ce=k==null?0:k.length,Ie=Array(Ce);++J<Ce;)Ie[J]=ee(k[J],J,k);return Ie}function Dr(k,ee){for(var J=-1,Ce=ee.length,Ie=k.length;++J<Ce;)k[Ie+J]=ee[J];return k}function of(k,ee,J,Ce){var Ie=-1,ft=k==null?0:k.length;for(Ce&&ft&&(J=k[++Ie]);++Ie<ft;)J=ee(J,k[Ie],Ie,k);return J}function bg(k,ee,J,Ce){var Ie=k==null?0:k.length;for(Ce&&Ie&&(J=k[--Ie]);Ie--;)J=ee(J,k[Ie],Ie,k);return J}function cf(k,ee){for(var J=-1,Ce=k==null?0:k.length;++J<Ce;)if(ee(k[J],J,k))return!0;return!1}var yg=io("length");function _g(k){return k.split("")}function xg(k){return k.match(_u)||[]}function _h(k,ee,J){var Ce;return J(k,function(Ie,ft,rn){if(ee(Ie,ft,rn))return Ce=ft,!1}),Ce}function ro(k,ee,J,Ce){for(var Ie=k.length,ft=J+(Ce?1:-1);Ce?ft--:++ft<Ie;)if(ee(k[ft],ft,k))return ft;return-1}function yl(k,ee,J){return ee===ee?Fg(k,ee,J):ro(k,_l,J)}function ff(k,ee,J,Ce){for(var Ie=J-1,ft=k.length;++Ie<ft;)if(Ce(k[Ie],ee))return Ie;return-1}function _l(k){return k!==k}function xh(k,ee){var J=k==null?0:k.length;return J?uo(k,ee)/J:C}function io(k){return function(ee){return ee==null?s:ee[k]}}function lo(k){return function(ee){return k==null?s:k[ee]}}function df(k,ee,J,Ce,Ie){return Ie(k,function(ft,rn,dt){J=Ce?(Ce=!1,ft):ee(J,ft,rn,dt)}),J}function Eh(k,ee){var J=k.length;for(k.sort(ee);J--;)k[J]=k[J].value;return k}function uo(k,ee){for(var J,Ce=-1,Ie=k.length;++Ce<Ie;){var ft=ee(k[Ce]);ft!==s&&(J=J===s?ft:J+ft)}return J}function Xr(k,ee){for(var J=-1,Ce=Array(k);++J<k;)Ce[J]=ee(J);return Ce}function Eg(k,ee){return Ht(ee,function(J){return[J,k[J]]})}function Ch(k){return k&&k.slice(0,mf(k)+1).replace(Vr,"")}function la(k){return function(ee){return k(ee)}}function so(k,ee){return Ht(ee,function(J){return k[J]})}function xl(k,ee){return k.has(ee)}function El(k,ee){for(var J=-1,Ce=k.length;++J<Ce&&yl(ee,k[J],0)>-1;);return J}function Cl(k,ee){for(var J=k.length;J--&&yl(ee,k[J],0)>-1;);return J}function Cg(k,ee){for(var J=k.length,Ce=0;J--;)k[J]===ee&&++Ce;return Ce}var oo=lo(mh),Sh=lo(Yn);function Fh(k){return"\\"+eo[k]}function hf(k,ee){return k==null?s:k[ee]}function Pr(k){return Kr.test(k)}function wh(k){return rf.test(k)}function Oh(k){for(var ee,J=[];!(ee=k.next()).done;)J.push(ee.value);return J}function co(k){var ee=-1,J=Array(k.size);return k.forEach(function(Ce,Ie){J[++ee]=[Ie,Ce]}),J}function Mh(k,ee){return function(J){return k(ee(J))}}function Jr(k,ee){for(var J=-1,Ce=k.length,Ie=0,ft=[];++J<Ce;){var rn=k[J];(rn===ee||rn===F)&&(k[J]=F,ft[Ie++]=J)}return ft}function fo(k){var ee=-1,J=Array(k.size);return k.forEach(function(Ce){J[++ee]=Ce}),J}function Sg(k){var ee=-1,J=Array(k.size);return k.forEach(function(Ce){J[++ee]=[Ce,Ce]}),J}function Fg(k,ee,J){for(var Ce=J-1,Ie=k.length;++Ce<Ie;)if(k[Ce]===ee)return Ce;return-1}function ua(k,ee,J){for(var Ce=J+1;Ce--;)if(k[Ce]===ee)return Ce;return Ce}function er(k){return Pr(k)?Bh(k):yg(k)}function ba(k){return Pr(k)?gf(k):_g(k)}function mf(k){for(var ee=k.length;ee--&&Ic.test(k.charAt(ee)););return ee}var Th=lo(Mi);function Bh(k){for(var ee=Fu.lastIndex=0;Fu.test(k);)++ee;return ee}function gf(k){return k.match(Fu)||[]}function wg(k){return k.match(wu)||[]}var Sl=(function k(ee){ee=ee==null?an:Wr.defaults(an.Object(),ee,Wr.pick(an,$s));var J=ee.Array,Ce=ee.Date,Ie=ee.Error,ft=ee.Function,rn=ee.Math,dt=ee.Object,ho=ee.RegExp,Rh=ee.String,sa=ee.TypeError,mo=J.prototype,Og=ft.prototype,Fl=dt.prototype,Mu=ee["__core-js_shared__"],Tu=Og.toString,pt=Fl.hasOwnProperty,za=0,pf=(function(){var a=/[^.]+$/.exec(Mu&&Mu.keys&&Mu.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})(),zn=Fl.toString,ya=Tu.call(dt),wl=an._,vf=ho("^"+Tu.call(pt).replace(pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ti=gh?ee.Buffer:s,ka=ee.Symbol,Ol=ee.Uint8Array,Bi=Ti?Ti.allocUnsafe:s,Bu=Mh(dt.getPrototypeOf,dt),Ru=dt.create,Ri=Fl.propertyIsEnumerable,go=mo.splice,Vn=ka?ka.isConcatSpreadable:s,Ni=ka?ka.iterator:s,kn=ka?ka.toStringTag:s,Nu=(function(){try{var a=ui(dt,"defineProperty");return a({},"",{}),a}catch{}})(),po=ee.clearTimeout!==an.clearTimeout&&ee.clearTimeout,Li=Ce&&Ce.now!==an.Date.now&&Ce.now,Df=ee.setTimeout!==an.setTimeout&&ee.setTimeout,Ml=rn.ceil,Ar=rn.floor,$r=dt.getOwnPropertySymbols,vo=Ti?Ti.isBuffer:s,Lu=ee.isFinite,_a=mo.join,xa=Mh(dt.keys,dt),kt=rn.max,It=rn.min,br=Ce.now,zi=ee.parseInt,Af=rn.random,bf=mo.reverse,zu=ui(ee,"DataView"),sn=ui(ee,"Map"),Gt=ui(ee,"Promise"),it=ui(ee,"Set"),ja=ui(ee,"WeakMap"),Qn=ui(dt,"create"),Tl=ja&&new ja,Ea={},Nh=Or(zu),Lh=Or(sn),ku=Or(Gt),ju=Or(it),zh=Or(ja),ei=ka?ka.prototype:s,ki=ei?ei.valueOf:s,ti=ei?ei.toString:s;function _(a){if(Zt(a)&&!Ve(a)&&!(a instanceof We)){if(a instanceof Kn)return a;if(pt.call(a,"__wrapped__"))return cn(a)}return new Kn(a)}var oa=(function(){function a(){}return function(l){if(!qt(l))return{};if(Ru)return Ru(l);a.prototype=l;var f=new a;return a.prototype=s,f}})();function Ca(){}function Kn(a,l){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=s}_.templateSettings={escape:ah,evaluate:Hc,interpolate:qs,variable:"",imports:{_}},_.prototype=Ca.prototype,_.prototype.constructor=_,Kn.prototype=oa(Ca.prototype),Kn.prototype.constructor=Kn;function We(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function Uu(){var a=new We(this.__wrapped__);return a.__actions__=on(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=on(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=on(this.__views__),a}function Do(){if(this.__filtered__){var a=new We(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function ji(){var a=this.__wrapped__.value(),l=this.__dir__,f=Ve(a),g=l<0,A=f?a.length:0,E=gm(0,A,this.__views__),O=E.start,R=E.end,H=R-O,le=g?R:O-1,oe=this.__iteratees__,he=oe.length,Se=0,Te=It(H,this.__takeCount__);if(!f||!g&&A==H&&Te==H)return tm(a,this.__actions__);var Ye=[];e:for(;H--&&Se<Te;){le+=l;for(var et=-1,qe=a[le];++et<he;){var st=oe[et],mt=st.iteratee,Va=st.type,pa=mt(qe);if(Va==ae)qe=pa;else if(!pa){if(Va==be)continue e;break e}}Ye[Se++]=qe}return Ye}We.prototype=oa(Ca.prototype),We.prototype.constructor=We;function Wt(a){var l=-1,f=a==null?0:a.length;for(this.clear();++l<f;){var g=a[l];this.set(g[0],g[1])}}function Ao(){this.__data__=Qn?Qn(null):{},this.size=0}function kh(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}function Mg(a){var l=this.__data__;if(Qn){var f=l[a];return f===b?s:f}return pt.call(l,a)?l[a]:s}function Tg(a){var l=this.__data__;return Qn?l[a]!==s:pt.call(l,a)}function Bg(a,l){var f=this.__data__;return this.size+=this.has(a)?0:1,f[a]=Qn&&l===s?b:l,this}Wt.prototype.clear=Ao,Wt.prototype.delete=kh,Wt.prototype.get=Mg,Wt.prototype.has=Tg,Wt.prototype.set=Bg;function Rt(a){var l=-1,f=a==null?0:a.length;for(this.clear();++l<f;){var g=a[l];this.set(g[0],g[1])}}function yf(){this.__data__=[],this.size=0}function Hu(a){var l=this.__data__,f=Nl(l,a);if(f<0)return!1;var g=l.length-1;return f==g?l.pop():go.call(l,f,1),--this.size,!0}function Iu(a){var l=this.__data__,f=Nl(l,a);return f<0?s:l[f][1]}function _f(a){return Nl(this.__data__,a)>-1}function Bl(a,l){var f=this.__data__,g=Nl(f,a);return g<0?(++this.size,f.push([a,l])):f[g][1]=l,this}Rt.prototype.clear=yf,Rt.prototype.delete=Hu,Rt.prototype.get=Iu,Rt.prototype.has=_f,Rt.prototype.set=Bl;function Zn(a){var l=-1,f=a==null?0:a.length;for(this.clear();++l<f;){var g=a[l];this.set(g[0],g[1])}}function Rg(){this.size=0,this.__data__={hash:new Wt,map:new(sn||Rt),string:new Wt}}function jh(a){var l=Hl(this,a).delete(a);return this.size-=l?1:0,l}function Ng(a){return Hl(this,a).get(a)}function Uh(a){return Hl(this,a).has(a)}function Ui(a,l){var f=Hl(this,a),g=f.size;return f.set(a,l),this.size+=f.size==g?0:1,this}Zn.prototype.clear=Rg,Zn.prototype.delete=jh,Zn.prototype.get=Ng,Zn.prototype.has=Uh,Zn.prototype.set=Ui;function yr(a){var l=-1,f=a==null?0:a.length;for(this.__data__=new Zn;++l<f;)this.add(a[l])}function bo(a){return this.__data__.set(a,b),this}function Hh(a){return this.__data__.has(a)}yr.prototype.add=yr.prototype.push=bo,yr.prototype.has=Hh;function jn(a){var l=this.__data__=new Rt(a);this.size=l.size}function Ih(){this.__data__=new Rt,this.size=0}function yo(a){var l=this.__data__,f=l.delete(a);return this.size=l.size,f}function xf(a){return this.__data__.get(a)}function Gh(a){return this.__data__.has(a)}function _o(a,l){var f=this.__data__;if(f instanceof Rt){var g=f.__data__;if(!sn||g.length<h-1)return g.push([a,l]),this.size=++f.size,this;f=this.__data__=new Zn(g)}return f.set(a,l),this.size=f.size,this}jn.prototype.clear=Ih,jn.prototype.delete=yo,jn.prototype.get=xf,jn.prototype.has=Gh,jn.prototype.set=_o;function Ef(a,l){var f=Ve(a),g=!f&&Rr(a),A=!f&&!g&&vi(a),E=!f&&!g&&!A&&eu(a),O=f||g||A||E,R=O?Xr(a.length,Rh):[],H=R.length;for(var le in a)(l||pt.call(a,le))&&!(O&&(le=="length"||A&&(le=="offset"||le=="parent")||E&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||Ga(le,H)))&&R.push(le);return R}function Rl(a){var l=a.length;return l?a[Bo(0,l-1)]:s}function Yh(a,l){return ms(on(a),Ha(l,0,a.length))}function qh(a){return ms(on(a))}function tr(a,l,f){(f!==s&&!ta(a[l],f)||f===s&&!(l in a))&&Ua(a,l,f)}function Hi(a,l,f){var g=a[l];(!(pt.call(a,l)&&ta(g,f))||f===s&&!(l in a))&&Ua(a,l,f)}function Nl(a,l){for(var f=a.length;f--;)if(ta(a[f][0],l))return f;return-1}function ni(a,l,f,g){return xr(a,function(A,E,O){l(g,A,f(A),O)}),g}function _r(a,l){return a&&Jn(l,hn(l),a)}function Gu(a,l){return a&&Jn(l,bn(l),a)}function Ua(a,l,f){l=="__proto__"&&Nu?Nu(a,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):a[l]=f}function Yu(a,l){for(var f=-1,g=l.length,A=J(g),E=a==null;++f<g;)A[f]=E?s:ws(a,l[f]);return A}function Ha(a,l,f){return a===a&&(f!==s&&(a=a<=f?a:f),l!==s&&(a=a>=l?a:l)),a}function Mn(a,l,f,g,A,E){var O,R=l&M,H=l&L,le=l&U;if(f&&(O=A?f(a,g,A,E):f(a)),O!==s)return O;if(!qt(a))return a;var oe=Ve(a);if(oe){if(O=Pf(a),!R)return on(a,O)}else{var he=An(a),Se=he==Ft||he==Jt;if(vi(a))return Gf(a,R);if(he==At||he==_e||Se&&!A){if(O=H||Se?{}:Jf(a),!R)return H?ns(a,Gu(O,a)):jo(a,_r(O,a))}else{if(!xt[he])return A?a:{};O=Wf(a,he,R)}}E||(E=new jn);var Te=E.get(a);if(Te)return Te;E.set(a,O),u0(a)?a.forEach(function(qe){O.add(Mn(qe,l,f,qe,a,E))}):oc(a)&&a.forEach(function(qe,st){O.set(st,Mn(qe,l,f,st,a,E))});var Ye=le?H?Go:Io:H?bn:hn,et=oe?s:Ye(a);return Aa(et||a,function(qe,st){et&&(st=qe,qe=a[st]),Hi(O,st,Mn(qe,l,f,st,a,E))}),O}function Vh(a){var l=hn(a);return function(f){return Cf(f,a,l)}}function Cf(a,l,f){var g=f.length;if(a==null)return!g;for(a=dt(a);g--;){var A=f[g],E=l[A],O=a[A];if(O===s&&!(A in a)||!E(O))return!1}return!0}function Ii(a,l,f){if(typeof a!="function")throw new sa(p);return Gl(function(){a.apply(s,f)},l)}function ai(a,l,f,g){var A=-1,E=ao,O=!0,R=a.length,H=[],le=l.length;if(!R)return H;f&&(l=Ht(l,la(f))),g?(E=sf,O=!1):l.length>=h&&(E=xl,O=!1,l=new yr(l));e:for(;++A<R;){var oe=a[A],he=f==null?oe:f(oe);if(oe=g||oe!==0?oe:0,O&&he===he){for(var Se=le;Se--;)if(l[Se]===he)continue e;H.push(oe)}else E(l,he,g)||H.push(oe)}return H}var xr=Qf(Tn),xo=Qf(zl,!0);function Sf(a,l){var f=!0;return xr(a,function(g,A,E){return f=!!l(g,A,E),f}),f}function Ia(a,l,f){for(var g=-1,A=a.length;++g<A;){var E=a[g],O=l(E);if(O!=null&&(R===s?O===O&&!In(O):f(O,R)))var R=O,H=E}return H}function Pe(a,l,f,g){var A=a.length;for(f=Ze(f),f<0&&(f=-f>A?0:A+f),g=g===s||g>A?A:Ze(g),g<0&&(g+=A),g=f>g?0:cr(g);f<g;)a[f++]=l;return a}function Et(a,l){var f=[];return xr(a,function(g,A,E){l(g,A,E)&&f.push(g)}),f}function lt(a,l,f,g,A){var E=-1,O=a.length;for(f||(f=Fr),A||(A=[]);++E<O;){var R=a[E];l>0&&f(R)?l>1?lt(R,l-1,f,g,A):Dr(A,R):g||(A[A.length]=R)}return A}var Ll=Zi(),Gi=Zi(!0);function Tn(a,l){return a&&Ll(a,l,hn)}function zl(a,l){return a&&Gi(a,l,hn)}function ri(a,l){return $a(l,function(f){return Ya(a[f])})}function Sa(a,l){l=Cr(l,a);for(var f=0,g=l.length;a!=null&&f<g;)a=a[bt(l[f++])];return f&&f==g?a:s}function Qh(a,l,f){var g=l(a);return Ve(a)?g:Dr(g,f(a))}function ut(a){return a==null?a===s?Na:Fi:kn&&kn in dt(a)?mm(a):bm(a)}function qu(a,l){return a>l}function Ff(a,l){return a!=null&&pt.call(a,l)}function Kh(a,l){return a!=null&&l in dt(a)}function Zh(a,l,f){return a>=It(l,f)&&a<kt(l,f)}function wf(a,l,f){for(var g=f?sf:ao,A=a[0].length,E=a.length,O=E,R=J(E),H=1/0,le=[];O--;){var oe=a[O];O&&l&&(oe=Ht(oe,la(l))),H=It(oe.length,H),R[O]=!f&&(l||A>=120&&oe.length>=120)?new yr(O&&oe):s}oe=a[0];var he=-1,Se=R[0];e:for(;++he<A&&le.length<H;){var Te=oe[he],Ye=l?l(Te):Te;if(Te=f||Te!==0?Te:0,!(Se?xl(Se,Ye):g(le,Ye,f))){for(O=E;--O;){var et=R[O];if(!(et?xl(et,Ye):g(a[O],Ye,f)))continue e}Se&&Se.push(Ye),le.push(Te)}}return le}function Of(a,l,f,g){return Tn(a,function(A,E,O){l(g,f(A),E,O)}),g}function Yi(a,l,f){l=Cr(l,a),a=Il(a,l);var g=a==null?a:a[bt(Bn(l))];return g==null?s:qn(g,a,f)}function Eo(a){return Zt(a)&&ut(a)==_e}function Xn(a){return Zt(a)&&ut(a)==nn}function ln(a){return Zt(a)&&ut(a)==Ge}function qi(a,l,f,g,A){return a===l?!0:a==null||l==null||!Zt(a)&&!Zt(l)?a!==a&&l!==l:Vu(a,l,f,g,qi,A)}function Vu(a,l,f,g,A,E){var O=Ve(a),R=Ve(l),H=O?pe:An(a),le=R?pe:An(l);H=H==_e?At:H,le=le==_e?At:le;var oe=H==At,he=le==At,Se=H==le;if(Se&&vi(a)){if(!vi(l))return!1;O=!0,oe=!1}if(Se&&!oe)return E||(E=new jn),O||eu(a)?dm(a,l,f,g,A,E):hm(a,l,H,f,g,A,E);if(!(f&z)){var Te=oe&&pt.call(a,"__wrapped__"),Ye=he&&pt.call(l,"__wrapped__");if(Te||Ye){var et=Te?a.value():a,qe=Ye?l.value():l;return E||(E=new jn),A(et,qe,f,g,E)}}return Se?(E||(E=new jn),Dn(a,l,f,g,A,E)):!1}function Co(a){return Zt(a)&&An(a)==Dt}function Qu(a,l,f,g){var A=f.length,E=A,O=!g;if(a==null)return!E;for(a=dt(a);A--;){var R=f[A];if(O&&R[2]?R[1]!==a[R[0]]:!(R[0]in a))return!1}for(;++A<E;){R=f[A];var H=R[0],le=a[H],oe=R[1];if(O&&R[2]){if(le===s&&!(H in a))return!1}else{var he=new jn;if(g)var Se=g(le,oe,H,a,l,he);if(!(Se===s?qi(oe,le,z|q,g,he):Se))return!1}}return!0}function nr(a){if(!qt(a)||Zo(a))return!1;var l=Ya(a)?vf:lh;return l.test(Or(a))}function So(a){return Zt(a)&&ut(a)==ra}function Mf(a){return Zt(a)&&An(a)==wt}function Tf(a){return Zt(a)&&$i(a.length)&&!!Ot[ut(a)]}function Bf(a){return typeof a=="function"?a:a==null?V:typeof a=="object"?Ve(a)?Oo(a[0],a[1]):Nf(a):ht(a)}function Fo(a){if(!Nt(a))return xa(a);var l=[];for(var f in dt(a))pt.call(a,f)&&f!="constructor"&&l.push(f);return l}function Xh(a){if(!qt(a))return si(a);var l=Nt(a),f=[];for(var g in a)g=="constructor"&&(l||!pt.call(a,g))||f.push(g);return f}function wo(a,l){return a<l}function Rf(a,l){var f=-1,g=fn(a)?J(a.length):[];return xr(a,function(A,E,O){g[++f]=l(A,E,O)}),g}function Nf(a){var l=qo(a);return l.length==1&&l[0][2]?Dm(l[0][0],l[0][1]):function(f){return f===a||Qu(f,a,l)}}function Oo(a,l){return Qo(a)&&vm(l)?Dm(bt(a),l):function(f){var g=ws(f,a);return g===s&&g===l?ru(f,a):qi(l,g,z|q)}}function Ku(a,l,f,g,A){a!==l&&Ll(l,function(E,O){if(A||(A=new jn),qt(E))Lg(a,l,O,f,Ku,g,A);else{var R=g?g(Xo(a,O),E,O+"",a,l,A):s;R===s&&(R=E),tr(a,O,R)}},bn)}function Lg(a,l,f,g,A,E,O){var R=Xo(a,f),H=Xo(l,f),le=O.get(H);if(le){tr(a,f,le);return}var oe=E?E(R,H,f+"",a,l,O):s,he=oe===s;if(he){var Se=Ve(H),Te=!Se&&vi(H),Ye=!Se&&!Te&&eu(H);oe=H,Se||Te||Ye?Ve(R)?oe=R:tn(R)?oe=on(R):Te?(he=!1,oe=Gf(H,!0)):Ye?(he=!1,oe=qf(H,!0)):oe=[]:Ma(H)||Rr(H)?(oe=R,Rr(R)?oe=c0(R):(!qt(R)||Ya(R))&&(oe=Jf(H))):he=!1}he&&(O.set(H,oe),A(oe,H,g,E,O),O.delete(H)),tr(a,f,oe)}function Lf(a,l){var f=a.length;if(f)return l+=l<0?f:0,Ga(l,f)?a[l]:s}function zf(a,l,f){l.length?l=Ht(l,function(E){return Ve(E)?function(O){return Sa(O,E.length===1?E[0]:E)}:E}):l=[V];var g=-1;l=Ht(l,la(ze()));var A=Rf(a,function(E,O,R){var H=Ht(l,function(le){return le(E)});return{criteria:H,index:++g,value:E}});return Eh(A,function(E,O){return im(E,O,f)})}function Ph(a,l){return Mo(a,l,function(f,g){return ru(a,g)})}function Mo(a,l,f){for(var g=-1,A=l.length,E={};++g<A;){var O=l[g],R=Sa(a,O);f(R,O)&&jl(E,Cr(O,a),R)}return E}function Jh(a){return function(l){return Sa(l,a)}}function To(a,l,f,g){var A=g?ff:yl,E=-1,O=l.length,R=a;for(a===l&&(l=on(l)),f&&(R=Ht(a,la(f)));++E<O;)for(var H=0,le=l[E],oe=f?f(le):le;(H=A(R,oe,H,g))>-1;)R!==a&&go.call(R,H,1),go.call(a,H,1);return a}function kf(a,l){for(var f=a?l.length:0,g=f-1;f--;){var A=l[f];if(f==g||A!==E){var E=A;Ga(A)?go.call(a,A,1):Ju(a,A)}}return a}function Bo(a,l){return a+Ar(Af()*(l-a+1))}function Wh(a,l,f,g){for(var A=-1,E=kt(Ml((l-a)/(f||1)),0),O=J(E);E--;)O[g?E:++A]=a,a+=f;return O}function jf(a,l){var f="";if(!a||l<1||l>P)return f;do l%2&&(f+=a),l=Ar(l/2),l&&(a+=a);while(l);return f}function Xe(a,l){return ds($f(a,l,V),a+"")}function kl(a){return Rl(lu(a))}function Ro(a,l){var f=lu(a);return ms(f,Ha(l,0,f.length))}function jl(a,l,f,g){if(!qt(a))return a;l=Cr(l,a);for(var A=-1,E=l.length,O=E-1,R=a;R!=null&&++A<E;){var H=bt(l[A]),le=f;if(H==="__proto__"||H==="constructor"||H==="prototype")return a;if(A!=O){var oe=R[H];le=g?g(oe,H,R):s,le===s&&(le=qt(oe)?oe:Ga(l[A+1])?[]:{})}Hi(R,H,le),R=R[H]}return a}var Zu=Tl?function(a,l){return Tl.set(a,l),a}:V,Xu=Nu?function(a,l){return Nu(a,"toString",{configurable:!0,enumerable:!1,value:Y(l),writable:!0})}:V;function $h(a){return ms(lu(a))}function ca(a,l,f){var g=-1,A=a.length;l<0&&(l=-l>A?0:A+l),f=f>A?A:f,f<0&&(f+=A),A=l>f?0:f-l>>>0,l>>>=0;for(var E=J(A);++g<A;)E[g]=a[g+l];return E}function em(a,l){var f;return xr(a,function(g,A,E){return f=l(g,A,E),!f}),!!f}function Pu(a,l,f){var g=0,A=a==null?g:a.length;if(typeof l=="number"&&l===l&&A<=ue){for(;g<A;){var E=g+A>>>1,O=a[E];O!==null&&!In(O)&&(f?O<=l:O<l)?g=E+1:A=E}return A}return No(a,l,V,f)}function No(a,l,f,g){var A=0,E=a==null?0:a.length;if(E===0)return 0;l=f(l);for(var O=l!==l,R=l===null,H=In(l),le=l===s;A<E;){var oe=Ar((A+E)/2),he=f(a[oe]),Se=he!==s,Te=he===null,Ye=he===he,et=In(he);if(O)var qe=g||Ye;else le?qe=Ye&&(g||Se):R?qe=Ye&&Se&&(g||!Te):H?qe=Ye&&Se&&!Te&&(g||!et):Te||et?qe=!1:qe=g?he<=l:he<l;qe?A=oe+1:E=oe}return It(E,fe)}function Uf(a,l){for(var f=-1,g=a.length,A=0,E=[];++f<g;){var O=a[f],R=l?l(O):O;if(!f||!ta(R,H)){var H=R;E[A++]=O===0?0:O}}return E}function Lo(a){return typeof a=="number"?a:In(a)?C:+a}function Pn(a){if(typeof a=="string")return a;if(Ve(a))return Ht(a,Pn)+"";if(In(a))return ti?ti.call(a):"";var l=a+"";return l=="0"&&1/a==-K?"-0":l}function Er(a,l,f){var g=-1,A=ao,E=a.length,O=!0,R=[],H=R;if(f)O=!1,A=sf;else if(E>=h){var le=l?null:cm(a);if(le)return fo(le);O=!1,A=xl,H=new yr}else H=l?[]:R;e:for(;++g<E;){var oe=a[g],he=l?l(oe):oe;if(oe=f||oe!==0?oe:0,O&&he===he){for(var Se=H.length;Se--;)if(H[Se]===he)continue e;l&&H.push(he),R.push(oe)}else A(H,he,f)||(H!==R&&H.push(he),R.push(oe))}return R}function Ju(a,l){return l=Cr(l,a),a=Il(a,l),a==null||delete a[bt(Bn(l))]}function Hf(a,l,f,g){return jl(a,l,f(Sa(a,l)),g)}function Wu(a,l,f,g){for(var A=a.length,E=g?A:-1;(g?E--:++E<A)&&l(a[E],E,a););return f?ca(a,g?0:E,g?E+1:A):ca(a,g?E+1:0,g?A:E)}function tm(a,l){var f=a;return f instanceof We&&(f=f.value()),of(l,function(g,A){return A.func.apply(A.thisArg,Dr([g],A.args))},f)}function $u(a,l,f){var g=a.length;if(g<2)return g?Er(a[0]):[];for(var A=-1,E=J(g);++A<g;)for(var O=a[A],R=-1;++R<g;)R!=A&&(E[A]=ai(E[A]||O,a[R],l,f));return Er(lt(E,1),l,f)}function If(a,l,f){for(var g=-1,A=a.length,E=l.length,O={};++g<A;){var R=g<E?l[g]:s;f(O,a[g],R)}return O}function zo(a){return tn(a)?a:[]}function es(a){return typeof a=="function"?a:V}function Cr(a,l){return Ve(a)?a:Qo(a,l)?[a]:lr(vt(a))}var nm=Xe;function ii(a,l,f){var g=a.length;return f=f===s?g:f,!l&&f>=g?a:ca(a,l,f)}var am=po||function(a){return an.clearTimeout(a)};function Gf(a,l){if(l)return a.slice();var f=a.length,g=Bi?Bi(f):new a.constructor(f);return a.copy(g),g}function Vi(a){var l=new a.constructor(a.byteLength);return new Ol(l).set(new Ol(a)),l}function Yf(a,l){var f=l?Vi(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.byteLength)}function ko(a){var l=new a.constructor(a.source,dl.exec(a));return l.lastIndex=a.lastIndex,l}function rm(a){return ki?dt(ki.call(a)):{}}function qf(a,l){var f=l?Vi(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function ts(a,l){if(a!==l){var f=a!==s,g=a===null,A=a===a,E=In(a),O=l!==s,R=l===null,H=l===l,le=In(l);if(!R&&!le&&!E&&a>l||E&&O&&H&&!R&&!le||g&&O&&H||!f&&H||!A)return 1;if(!g&&!E&&!le&&a<l||le&&f&&A&&!g&&!E||R&&f&&A||!O&&A||!H)return-1}return 0}function im(a,l,f){for(var g=-1,A=a.criteria,E=l.criteria,O=A.length,R=f.length;++g<O;){var H=ts(A[g],E[g]);if(H){if(g>=R)return H;var le=f[g];return H*(le=="desc"?-1:1)}}return a.index-l.index}function Vf(a,l,f,g){for(var A=-1,E=a.length,O=f.length,R=-1,H=l.length,le=kt(E-O,0),oe=J(H+le),he=!g;++R<H;)oe[R]=l[R];for(;++A<O;)(he||A<E)&&(oe[f[A]]=a[A]);for(;le--;)oe[R++]=a[A++];return oe}function lm(a,l,f,g){for(var A=-1,E=a.length,O=-1,R=f.length,H=-1,le=l.length,oe=kt(E-R,0),he=J(oe+le),Se=!g;++A<oe;)he[A]=a[A];for(var Te=A;++H<le;)he[Te+H]=l[H];for(;++O<R;)(Se||A<E)&&(he[Te+f[O]]=a[A++]);return he}function on(a,l){var f=-1,g=a.length;for(l||(l=J(g));++f<g;)l[f]=a[f];return l}function Jn(a,l,f,g){var A=!f;f||(f={});for(var E=-1,O=l.length;++E<O;){var R=l[E],H=g?g(f[R],a[R],R,f,a):s;H===s&&(H=a[R]),A?Ua(f,R,H):Hi(f,R,H)}return f}function jo(a,l){return Jn(a,ss(a),l)}function ns(a,l){return Jn(a,Vo(a),l)}function Qi(a,l){return function(f,g){var A=Ve(f)?Dg:ni,E=l?l():{};return A(f,a,ze(g,2),E)}}function Ki(a){return Xe(function(l,f){var g=-1,A=f.length,E=A>1?f[A-1]:s,O=A>2?f[2]:s;for(E=a.length>3&&typeof E=="function"?(A--,E):s,O&&Hn(f[0],f[1],O)&&(E=A<3?s:E,A=1),l=dt(l);++g<A;){var R=f[g];R&&a(l,R,g,E)}return l})}function Qf(a,l){return function(f,g){if(f==null)return f;if(!fn(f))return a(f,g);for(var A=f.length,E=l?A:-1,O=dt(f);(l?E--:++E<A)&&g(O[E],E,O)!==!1;);return f}}function Zi(a){return function(l,f,g){for(var A=-1,E=dt(l),O=g(l),R=O.length;R--;){var H=O[a?R:++A];if(f(E[H],H,E)===!1)break}return l}}function um(a,l,f){var g=l&I,A=Fa(a);function E(){var O=this&&this!==an&&this instanceof E?A:a;return O.apply(g?f:this,arguments)}return E}function fa(a){return function(l){l=vt(l);var f=Pr(l)?ba(l):s,g=f?f[0]:l.charAt(0),A=f?ii(f,1).join(""):l.slice(1);return g[a]()+A}}function Un(a){return function(l){return of(c(Nr(l).replace(Su,"")),a,"")}}function Fa(a){return function(){var l=arguments;switch(l.length){case 0:return new a;case 1:return new a(l[0]);case 2:return new a(l[0],l[1]);case 3:return new a(l[0],l[1],l[2]);case 4:return new a(l[0],l[1],l[2],l[3]);case 5:return new a(l[0],l[1],l[2],l[3],l[4]);case 6:return new a(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new a(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=oa(a.prototype),g=a.apply(f,l);return qt(g)?g:f}}function sm(a,l,f){var g=Fa(a);function A(){for(var E=arguments.length,O=J(E),R=E,H=Pi(A);R--;)O[R]=arguments[R];var le=E<3&&O[0]!==H&&O[E-1]!==H?[]:Jr(O,H);if(E-=le.length,E<f)return Kf(a,l,$t,A.placeholder,s,O,le,s,s,f-E);var oe=this&&this!==an&&this instanceof A?g:a;return qn(oe,this,O)}return A}function Sr(a){return function(l,f,g){var A=dt(l);if(!fn(l)){var E=ze(f,3);l=hn(l),f=function(R){return E(A[R],R,A)}}var O=a(l,f,g);return O>-1?A[E?l[O]:O]:s}}function ar(a){return jt(function(l){var f=l.length,g=f,A=Kn.prototype.thru;for(a&&l.reverse();g--;){var E=l[g];if(typeof E!="function")throw new sa(p);if(A&&!O&&us(E)=="wrapper")var O=new Kn([],!0)}for(g=O?g:f;++g<f;){E=l[g];var R=us(E),H=R=="wrapper"?Yo(E):s;H&&Ko(H[0])&&H[1]==(ge|me|te|$)&&!H[4].length&&H[9]==1?O=O[us(H[0])].apply(O,H[3]):O=E.length==1&&Ko(E)?O[R]():O.thru(E)}return function(){var le=arguments,oe=le[0];if(O&&le.length==1&&Ve(oe))return O.plant(oe).value();for(var he=0,Se=f?l[he].apply(this,le):oe;++he<f;)Se=l[he].call(this,Se);return Se}})}function $t(a,l,f,g,A,E,O,R,H,le){var oe=l&ge,he=l&I,Se=l&ie,Te=l&(me|De),Ye=l&ye,et=Se?s:Fa(a);function qe(){for(var st=arguments.length,mt=J(st),Va=st;Va--;)mt[Va]=arguments[Va];if(Te)var pa=Pi(qe),Qa=Cg(mt,pa);if(g&&(mt=Vf(mt,g,A,Te)),E&&(mt=lm(mt,E,O,Te)),st-=Qa,Te&&st<le){var mn=Jr(mt,pa);return Kf(a,l,$t,qe.placeholder,f,mt,mn,R,H,le-st)}var Lr=he?f:this,el=Se?Lr[a]:a;return st=mt.length,R?mt=ir(mt,R):Ye&&st>1&&mt.reverse(),oe&&H<st&&(mt.length=H),this&&this!==an&&this instanceof qe&&(el=et||Fa(el)),el.apply(Lr,mt)}return qe}function as(a,l){return function(f,g){return Of(f,a,l(g),{})}}function Ul(a,l){return function(f,g){var A;if(f===s&&g===s)return l;if(f!==s&&(A=f),g!==s){if(A===s)return g;typeof f=="string"||typeof g=="string"?(f=Pn(f),g=Pn(g)):(f=Lo(f),g=Lo(g)),A=a(f,g)}return A}}function rs(a){return jt(function(l){return l=Ht(l,la(ze())),Xe(function(f){var g=this;return a(l,function(A){return qn(A,g,f)})})})}function is(a,l){l=l===s?" ":Pn(l);var f=l.length;if(f<2)return f?jf(l,a):l;var g=jf(l,Ml(a/er(l)));return Pr(l)?ii(ba(g),0,a).join(""):g.slice(0,a)}function om(a,l,f,g){var A=l&I,E=Fa(a);function O(){for(var R=-1,H=arguments.length,le=-1,oe=g.length,he=J(oe+H),Se=this&&this!==an&&this instanceof O?E:a;++le<oe;)he[le]=g[le];for(;H--;)he[le++]=arguments[++R];return qn(Se,A?f:this,he)}return O}function li(a){return function(l,f,g){return g&&typeof g!="number"&&Hn(l,f,g)&&(f=g=s),l=or(l),f===s?(f=l,l=0):f=or(f),g=g===s?l<f?1:-1:or(g),Wh(l,f,g,a)}}function Xi(a){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=Ta(l),f=Ta(f)),a(l,f)}}function Kf(a,l,f,g,A,E,O,R,H,le){var oe=l&me,he=oe?O:s,Se=oe?s:O,Te=oe?E:s,Ye=oe?s:E;l|=oe?te:de,l&=~(oe?de:te),l&ce||(l&=-4);var et=[a,l,A,Te,he,Ye,Se,R,H,le],qe=f.apply(s,et);return Ko(a)&&Po(qe,et),qe.placeholder=g,Jo(qe,a,l)}function Uo(a){var l=rn[a];return function(f,g){if(f=Ta(f),g=g==null?0:It(Ze(g),292),g&&Lu(f)){var A=(vt(f)+"e").split("e"),E=l(A[0]+"e"+(+A[1]+g));return A=(vt(E)+"e").split("e"),+(A[0]+"e"+(+A[1]-g))}return l(f)}}var cm=it&&1/fo(new it([,-0]))[1]==K?function(a){return new it(a)}:we;function ls(a){return function(l){var f=An(l);return f==Dt?co(l):f==wt?Sg(l):Eg(l,a(l))}}function rr(a,l,f,g,A,E,O,R){var H=l&ie;if(!H&&typeof a!="function")throw new sa(p);var le=g?g.length:0;if(le||(l&=-97,g=A=s),O=O===s?O:kt(Ze(O),0),R=R===s?R:Ze(R),le-=A?A.length:0,l&de){var oe=g,he=A;g=A=s}var Se=H?s:Yo(a),Te=[a,l,f,g,A,oe,he,E,O,R];if(Se&&fs(Te,Se),a=Te[0],l=Te[1],f=Te[2],g=Te[3],A=Te[4],R=Te[9]=Te[9]===s?H?0:a.length:kt(Te[9]-le,0),!R&&l&(me|De)&&(l&=-25),!l||l==I)var Ye=um(a,l,f);else l==me||l==De?Ye=sm(a,l,R):(l==te||l==(I|te))&&!A.length?Ye=om(a,l,f,g):Ye=$t.apply(s,Te);var et=Se?Zu:Po;return Jo(et(Ye,Te),a,l)}function Ho(a,l,f,g){return a===s||ta(a,Fl[f])&&!pt.call(g,f)?l:a}function Zf(a,l,f,g,A,E){return qt(a)&&qt(l)&&(E.set(l,a),Ku(a,l,s,Zf,E),E.delete(l)),a}function fm(a){return Ma(a)?s:a}function dm(a,l,f,g,A,E){var O=f&z,R=a.length,H=l.length;if(R!=H&&!(O&&H>R))return!1;var le=E.get(a),oe=E.get(l);if(le&&oe)return le==l&&oe==a;var he=-1,Se=!0,Te=f&q?new yr:s;for(E.set(a,l),E.set(l,a);++he<R;){var Ye=a[he],et=l[he];if(g)var qe=O?g(et,Ye,he,l,a,E):g(Ye,et,he,a,l,E);if(qe!==s){if(qe)continue;Se=!1;break}if(Te){if(!cf(l,function(st,mt){if(!xl(Te,mt)&&(Ye===st||A(Ye,st,f,g,E)))return Te.push(mt)})){Se=!1;break}}else if(!(Ye===et||A(Ye,et,f,g,E))){Se=!1;break}}return E.delete(a),E.delete(l),Se}function hm(a,l,f,g,A,E,O){switch(f){case gn:if(a.byteLength!=l.byteLength||a.byteOffset!=l.byteOffset)return!1;a=a.buffer,l=l.buffer;case nn:return!(a.byteLength!=l.byteLength||!E(new Ol(a),new Ol(l)));case je:case Ge:case _n:return ta(+a,+l);case _t:return a.name==l.name&&a.message==l.message;case ra:case wn:return a==l+"";case Dt:var R=co;case wt:var H=g&z;if(R||(R=fo),a.size!=l.size&&!H)return!1;var le=O.get(a);if(le)return le==l;g|=q,O.set(a,l);var oe=dm(R(a),R(l),g,A,E,O);return O.delete(a),oe;case Ra:if(ki)return ki.call(a)==ki.call(l)}return!1}function Dn(a,l,f,g,A,E){var O=f&z,R=Io(a),H=R.length,le=Io(l),oe=le.length;if(H!=oe&&!O)return!1;for(var he=H;he--;){var Se=R[he];if(!(O?Se in l:pt.call(l,Se)))return!1}var Te=E.get(a),Ye=E.get(l);if(Te&&Ye)return Te==l&&Ye==a;var et=!0;E.set(a,l),E.set(l,a);for(var qe=O;++he<H;){Se=R[he];var st=a[Se],mt=l[Se];if(g)var Va=O?g(mt,st,Se,l,a,E):g(st,mt,Se,a,l,E);if(!(Va===s?st===mt||A(st,mt,f,g,E):Va)){et=!1;break}qe||(qe=Se=="constructor")}if(et&&!qe){var pa=a.constructor,Qa=l.constructor;pa!=Qa&&"constructor"in a&&"constructor"in l&&!(typeof pa=="function"&&pa instanceof pa&&typeof Qa=="function"&&Qa instanceof Qa)&&(et=!1)}return E.delete(a),E.delete(l),et}function jt(a){return ds($f(a,s,$n),a+"")}function Io(a){return Qh(a,hn,ss)}function Go(a){return Qh(a,bn,Vo)}var Yo=Tl?function(a){return Tl.get(a)}:we;function us(a){for(var l=a.name+"",f=Ea[l],g=pt.call(Ea,l)?f.length:0;g--;){var A=f[g],E=A.func;if(E==null||E==a)return A.name}return l}function Pi(a){var l=pt.call(_,"placeholder")?_:a;return l.placeholder}function ze(){var a=_.iteratee||Ue;return a=a===Ue?Bf:a,arguments.length?a(arguments[0],arguments[1]):a}function Hl(a,l){var f=a.__data__;return wr(l)?f[typeof l=="string"?"string":"hash"]:f.map}function qo(a){for(var l=hn(a),f=l.length;f--;){var g=l[f],A=a[g];l[f]=[g,A,vm(A)]}return l}function ui(a,l){var f=hf(a,l);return nr(f)?f:s}function mm(a){var l=pt.call(a,kn),f=a[kn];try{a[kn]=s;var g=!0}catch{}var A=zn.call(a);return g&&(l?a[kn]=f:delete a[kn]),A}var ss=$r?function(a){return a==null?[]:(a=dt(a),$a($r(a),function(l){return Ri.call(a,l)}))}:Dp,Vo=$r?function(a){for(var l=[];a;)Dr(l,ss(a)),a=Bu(a);return l}:Dp,An=ut;(zu&&An(new zu(new ArrayBuffer(1)))!=gn||sn&&An(new sn)!=Dt||Gt&&An(Gt.resolve())!=un||it&&An(new it)!=wt||ja&&An(new ja)!=Bt)&&(An=function(a){var l=ut(a),f=l==At?a.constructor:s,g=f?Or(f):"";if(g)switch(g){case Nh:return gn;case Lh:return Dt;case ku:return un;case ju:return wt;case zh:return Bt}return l});function gm(a,l,f){for(var g=-1,A=f.length;++g<A;){var E=f[g],O=E.size;switch(E.type){case"drop":a+=O;break;case"dropRight":l-=O;break;case"take":l=It(l,a+O);break;case"takeRight":a=kt(a,l-O);break}}return{start:a,end:l}}function Xf(a){var l=a.match(mg);return l?l[1].split(ih):[]}function os(a,l,f){l=Cr(l,a);for(var g=-1,A=l.length,E=!1;++g<A;){var O=bt(l[g]);if(!(E=a!=null&&f(a,O)))break;a=a[O]}return E||++g!=A?E:(A=a==null?0:a.length,!!A&&$i(A)&&Ga(O,A)&&(Ve(a)||Rr(a)))}function Pf(a){var l=a.length,f=new a.constructor(l);return l&&typeof a[0]=="string"&&pt.call(a,"index")&&(f.index=a.index,f.input=a.input),f}function Jf(a){return typeof a.constructor=="function"&&!Nt(a)?oa(Bu(a)):{}}function Wf(a,l,f){var g=a.constructor;switch(l){case nn:return Vi(a);case je:case Ge:return new g(+a);case gn:return Yf(a,f);case xn:case Au:case bu:case yu:case Ja:case Kt:case La:case Yr:case pr:return qf(a,f);case Dt:return new g;case _n:case wn:return new g(a);case ra:return ko(a);case wt:return new g;case Ra:return rm(a)}}function pm(a,l){var f=l.length;if(!f)return a;var g=f-1;return l[g]=(f>1?"& ":"")+l[g],l=l.join(f>2?", ":" "),a.replace(hg,`{
/* [wrapped with `+l+`] */
`)}function Fr(a){return Ve(a)||Rr(a)||!!(Vn&&a&&a[Vn])}function Ga(a,l){var f=typeof a;return l=l??P,!!l&&(f=="number"||f!="symbol"&&wi.test(a))&&a>-1&&a%1==0&&a<l}function Hn(a,l,f){if(!qt(f))return!1;var g=typeof l;return(g=="number"?fn(f)&&Ga(l,f.length):g=="string"&&l in f)?ta(f[l],a):!1}function Qo(a,l){if(Ve(a))return!1;var f=typeof a;return f=="number"||f=="symbol"||f=="boolean"||a==null||In(a)?!0:dg.test(a)||!rh.test(a)||l!=null&&a in dt(l)}function wr(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}function Ko(a){var l=us(a),f=_[l];if(typeof f!="function"||!(l in We.prototype))return!1;if(a===f)return!0;var g=Yo(f);return!!g&&a===g[0]}function Zo(a){return!!pf&&pf in a}var cs=Mu?Ya:Ap;function Nt(a){var l=a&&a.constructor,f=typeof l=="function"&&l.prototype||Fl;return a===f}function vm(a){return a===a&&!qt(a)}function Dm(a,l){return function(f){return f==null?!1:f[a]===l&&(l!==s||a in dt(f))}}function Am(a){var l=_s(a,function(g){return f.size===y&&f.clear(),g}),f=l.cache;return l}function fs(a,l){var f=a[1],g=l[1],A=f|g,E=A<(I|ie|ge),O=g==ge&&f==me||g==ge&&f==$&&a[7].length<=l[8]||g==(ge|$)&&l[7].length<=l[8]&&f==me;if(!(E||O))return a;g&I&&(a[2]=l[2],A|=f&I?0:ce);var R=l[3];if(R){var H=a[3];a[3]=H?Vf(H,R,l[4]):R,a[4]=H?Jr(a[3],F):l[4]}return R=l[5],R&&(H=a[5],a[5]=H?lm(H,R,l[6]):R,a[6]=H?Jr(a[5],F):l[6]),R=l[7],R&&(a[7]=R),g&ge&&(a[8]=a[8]==null?l[8]:It(a[8],l[8])),a[9]==null&&(a[9]=l[9]),a[0]=l[0],a[1]=A,a}function si(a){var l=[];if(a!=null)for(var f in dt(a))l.push(f);return l}function bm(a){return zn.call(a)}function $f(a,l,f){return l=kt(l===s?a.length-1:l,0),function(){for(var g=arguments,A=-1,E=kt(g.length-l,0),O=J(E);++A<E;)O[A]=g[l+A];A=-1;for(var R=J(l+1);++A<l;)R[A]=g[A];return R[l]=f(O),qn(a,this,R)}}function Il(a,l){return l.length<2?a:Sa(a,ca(l,0,-1))}function ir(a,l){for(var f=a.length,g=It(l.length,f),A=on(a);g--;){var E=l[g];a[g]=Ga(E,f)?A[E]:s}return a}function Xo(a,l){if(!(l==="constructor"&&typeof a[l]=="function")&&l!="__proto__")return a[l]}var Po=hs(Zu),Gl=Df||function(a,l){return an.setTimeout(a,l)},ds=hs(Xu);function Jo(a,l,f){var g=l+"";return ds(a,pm(g,ym(Xf(g),f)))}function hs(a){var l=0,f=0;return function(){var g=br(),A=Ke-(g-f);if(f=g,A>0){if(++l>=Ne)return arguments[0]}else l=0;return a.apply(s,arguments)}}function ms(a,l){var f=-1,g=a.length,A=g-1;for(l=l===s?g:l;++f<l;){var E=Bo(f,A),O=a[E];a[E]=a[f],a[f]=O}return a.length=l,a}var lr=Am(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(qr,function(f,g,A,E){l.push(A?E.replace(cl,"$1"):g||f)}),l});function bt(a){if(typeof a=="string"||In(a))return a;var l=a+"";return l=="0"&&1/a==-K?"-0":l}function Or(a){if(a!=null){try{return Tu.call(a)}catch{}try{return a+""}catch{}}return""}function ym(a,l){return Aa(Ae,function(f){var g="_."+f[0];l&f[1]&&!ao(a,g)&&a.push(g)}),a.sort()}function cn(a){if(a instanceof We)return a.clone();var l=new Kn(a.__wrapped__,a.__chain__);return l.__actions__=on(a.__actions__),l.__index__=a.__index__,l.__values__=a.__values__,l}function zg(a,l,f){(f?Hn(a,l,f):l===s)?l=1:l=kt(Ze(l),0);var g=a==null?0:a.length;if(!g||l<1)return[];for(var A=0,E=0,O=J(Ml(g/l));A<g;)O[E++]=ca(a,A,A+=l);return O}function _m(a){for(var l=-1,f=a==null?0:a.length,g=0,A=[];++l<f;){var E=a[l];E&&(A[g++]=E)}return A}function xm(){var a=arguments.length;if(!a)return[];for(var l=J(a-1),f=arguments[0],g=a;g--;)l[g-1]=arguments[g];return Dr(Ve(f)?on(f):[f],lt(l,1))}var Yt=Xe(function(a,l){return tn(a)?ai(a,lt(l,1,tn,!0)):[]}),Wn=Xe(function(a,l){var f=Bn(l);return tn(f)&&(f=s),tn(a)?ai(a,lt(l,1,tn,!0),ze(f,2)):[]}),Mr=Xe(function(a,l){var f=Bn(l);return tn(f)&&(f=s),tn(a)?ai(a,lt(l,1,tn,!0),s,f):[]});function Em(a,l,f){var g=a==null?0:a.length;return g?(l=f||l===s?1:Ze(l),ca(a,l<0?0:l,g)):[]}function Cm(a,l,f){var g=a==null?0:a.length;return g?(l=f||l===s?1:Ze(l),l=g-l,ca(a,0,l<0?0:l)):[]}function kg(a,l){return a&&a.length?Wu(a,ze(l,3),!0,!0):[]}function ed(a,l){return a&&a.length?Wu(a,ze(l,3),!0):[]}function da(a,l,f,g){var A=a==null?0:a.length;return A?(f&&typeof f!="number"&&Hn(a,l,f)&&(f=0,g=A),Pe(a,l,f,g)):[]}function wa(a,l,f){var g=a==null?0:a.length;if(!g)return-1;var A=f==null?0:Ze(f);return A<0&&(A=kt(g+A,0)),ro(a,ze(l,3),A)}function td(a,l,f){var g=a==null?0:a.length;if(!g)return-1;var A=g-1;return f!==s&&(A=Ze(f),A=f<0?kt(g+A,0):It(A,g-1)),ro(a,ze(l,3),A,!0)}function $n(a){var l=a==null?0:a.length;return l?lt(a,1):[]}function Sm(a){var l=a==null?0:a.length;return l?lt(a,K):[]}function oi(a,l){var f=a==null?0:a.length;return f?(l=l===s?1:Ze(l),lt(a,l)):[]}function Ji(a){for(var l=-1,f=a==null?0:a.length,g={};++l<f;){var A=a[l];g[A[0]]=A[1]}return g}function Tr(a){return a&&a.length?a[0]:s}function nd(a,l,f){var g=a==null?0:a.length;if(!g)return-1;var A=f==null?0:Ze(f);return A<0&&(A=kt(g+A,0)),yl(a,l,A)}function ad(a){var l=a==null?0:a.length;return l?ca(a,0,-1):[]}var ur=Xe(function(a){var l=Ht(a,zo);return l.length&&l[0]===a[0]?wf(l):[]}),Fm=Xe(function(a){var l=Bn(a),f=Ht(a,zo);return l===Bn(f)?l=s:f.pop(),f.length&&f[0]===a[0]?wf(f,ze(l,2)):[]}),Yl=Xe(function(a){var l=Bn(a),f=Ht(a,zo);return l=typeof l=="function"?l:s,l&&f.pop(),f.length&&f[0]===a[0]?wf(f,s,l):[]});function gs(a,l){return a==null?"":_a.call(a,l)}function Bn(a){var l=a==null?0:a.length;return l?a[l-1]:s}function ql(a,l,f){var g=a==null?0:a.length;if(!g)return-1;var A=g;return f!==s&&(A=Ze(f),A=A<0?kt(g+A,0):It(A,g-1)),l===l?ua(a,l,A):ro(a,_l,A,!0)}function wm(a,l){return a&&a.length?Lf(a,Ze(l)):s}var Om=Xe(Vl);function Vl(a,l){return a&&a.length&&l&&l.length?To(a,l):a}function Mm(a,l,f){return a&&a.length&&l&&l.length?To(a,l,ze(f,2)):a}function Wo(a,l,f){return a&&a.length&&l&&l.length?To(a,l,s,f):a}var Tm=jt(function(a,l){var f=a==null?0:a.length,g=Yu(a,l);return kf(a,Ht(l,function(A){return Ga(A,f)?+A:A}).sort(ts)),g});function jg(a,l){var f=[];if(!(a&&a.length))return f;var g=-1,A=[],E=a.length;for(l=ze(l,3);++g<E;){var O=a[g];l(O,g,a)&&(f.push(O),A.push(g))}return kf(a,A),f}function rd(a){return a==null?a:bf.call(a)}function Ct(a,l,f){var g=a==null?0:a.length;return g?(f&&typeof f!="number"&&Hn(a,l,f)?(l=0,f=g):(l=l==null?0:Ze(l),f=f===s?g:Ze(f)),ca(a,l,f)):[]}function zt(a,l){return Pu(a,l)}function tt(a,l,f){return No(a,l,ze(f,2))}function ct(a,l){var f=a==null?0:a.length;if(f){var g=Pu(a,l);if(g<f&&ta(a[g],l))return g}return-1}function St(a,l){return Pu(a,l,!0)}function ha(a,l,f){return No(a,l,ze(f,2),!0)}function ci(a,l){var f=a==null?0:a.length;if(f){var g=Pu(a,l,!0)-1;if(ta(a[g],l))return g}return-1}function Ql(a){return a&&a.length?Uf(a):[]}function id(a,l){return a&&a.length?Uf(a,ze(l,2)):[]}function Br(a){var l=a==null?0:a.length;return l?ca(a,1,l):[]}function en(a,l,f){return a&&a.length?(l=f||l===s?1:Ze(l),ca(a,0,l<0?0:l)):[]}function fi(a,l,f){var g=a==null?0:a.length;return g?(l=f||l===s?1:Ze(l),l=g-l,ca(a,l<0?0:l,g)):[]}function Wi(a,l){return a&&a.length?Wu(a,ze(l,3),!1,!0):[]}function ld(a,l){return a&&a.length?Wu(a,ze(l,3)):[]}var Oa=Xe(function(a){return Er(lt(a,1,tn,!0))}),Kl=Xe(function(a){var l=Bn(a);return tn(l)&&(l=s),Er(lt(a,1,tn,!0),ze(l,2))}),ps=Xe(function(a){var l=Bn(a);return l=typeof l=="function"?l:s,Er(lt(a,1,tn,!0),s,l)});function ea(a){return a&&a.length?Er(a):[]}function ud(a,l){return a&&a.length?Er(a,ze(l,2)):[]}function sd(a,l){return l=typeof l=="function"?l:s,a&&a.length?Er(a,s,l):[]}function Zl(a){if(!(a&&a.length))return[];var l=0;return a=$a(a,function(f){if(tn(f))return l=kt(f.length,l),!0}),Xr(l,function(f){return Ht(a,io(f))})}function vs(a,l){if(!(a&&a.length))return[];var f=Zl(a);return l==null?f:Ht(f,function(g){return qn(l,s,g)})}var di=Xe(function(a,l){return tn(a)?ai(a,l):[]}),En=Xe(function(a){return $u($a(a,tn))}),hi=Xe(function(a){var l=Bn(a);return tn(l)&&(l=s),$u($a(a,tn),ze(l,2))}),Xl=Xe(function(a){var l=Bn(a);return l=typeof l=="function"?l:s,$u($a(a,tn),s,l)}),Pl=Xe(Zl);function od(a,l){return If(a||[],l||[],Hi)}function cd(a,l){return If(a||[],l||[],jl)}var Bm=Xe(function(a){var l=a.length,f=l>1?a[l-1]:s;return f=typeof f=="function"?(a.pop(),f):s,vs(a,f)});function Jl(a){var l=_(a);return l.__chain__=!0,l}function fd(a,l){return l(a),a}function Rn(a,l){return l(a)}var Rm=jt(function(a){var l=a.length,f=l?a[0]:0,g=this.__wrapped__,A=function(E){return Yu(E,a)};return l>1||this.__actions__.length||!(g instanceof We)||!Ga(f)?this.thru(A):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:Rn,args:[A],thisArg:s}),new Kn(g,this.__chain__).thru(function(E){return l&&!E.length&&E.push(s),E}))});function ma(){return Jl(this)}function Nm(){return new Kn(this.value(),this.__chain__)}function Lm(){this.__values__===s&&(this.__values__=ga(this.value()));var a=this.__index__>=this.__values__.length,l=a?s:this.__values__[this.__index__++];return{done:a,value:l}}function Ug(){return this}function mi(a){for(var l,f=this;f instanceof Ca;){var g=cn(f);g.__index__=0,g.__values__=s,l?A.__wrapped__=g:l=g;var A=g;f=f.__wrapped__}return A.__wrapped__=a,l}function $o(){var a=this.__wrapped__;if(a instanceof We){var l=a;return this.__actions__.length&&(l=new We(this)),l=l.reverse(),l.__actions__.push({func:Rn,args:[rd],thisArg:s}),new Kn(l,this.__chain__)}return this.thru(rd)}function dd(){return tm(this.__wrapped__,this.__actions__)}var Wl=Qi(function(a,l,f){pt.call(a,f)?++a[f]:Ua(a,f,1)});function zm(a,l,f){var g=Ve(a)?yh:Sf;return f&&Hn(a,l,f)&&(l=s),g(a,ze(l,3))}function km(a,l){var f=Ve(a)?$a:Et;return f(a,ze(l,3))}var jm=Sr(wa),hd=Sr(td);function md(a,l){return lt(Ds(a,l),1)}function Hg(a,l){return lt(Ds(a,l),K)}function Ig(a,l,f){return f=f===s?1:Ze(f),lt(Ds(a,l),f)}function Um(a,l){var f=Ve(a)?Aa:xr;return f(a,ze(l,3))}function gd(a,l){var f=Ve(a)?Ag:xo;return f(a,ze(l,3))}var Hm=Qi(function(a,l,f){pt.call(a,f)?a[f].push(l):Ua(a,f,[l])});function $l(a,l,f,g){a=fn(a)?a:lu(a),f=f&&!g?Ze(f):0;var A=a.length;return f<0&&(f=kt(A+f,0)),fc(a)?f<=A&&a.indexOf(l,f)>-1:!!A&&yl(a,l,f)>-1}var ec=Xe(function(a,l,f){var g=-1,A=typeof l=="function",E=fn(a)?J(a.length):[];return xr(a,function(O){E[++g]=A?qn(l,O,f):Yi(O,l,f)}),E}),Im=Qi(function(a,l,f){Ua(a,f,l)});function Ds(a,l){var f=Ve(a)?Ht:Rf;return f(a,ze(l,3))}function Gm(a,l,f,g){return a==null?[]:(Ve(l)||(l=l==null?[]:[l]),f=g?s:f,Ve(f)||(f=f==null?[]:[f]),zf(a,l,f))}var Ym=Qi(function(a,l,f){a[f?0:1].push(l)},function(){return[[],[]]});function qm(a,l,f){var g=Ve(a)?of:df,A=arguments.length<3;return g(a,ze(l,4),f,A,xr)}function Vm(a,l,f){var g=Ve(a)?bg:df,A=arguments.length<3;return g(a,ze(l,4),f,A,xo)}function tc(a,l){var f=Ve(a)?$a:Et;return f(a,xs(ze(l,3)))}function Qm(a){var l=Ve(a)?Rl:kl;return l(a)}function Km(a,l,f){(f?Hn(a,l,f):l===s)?l=1:l=Ze(l);var g=Ve(a)?Yh:Ro;return g(a,l)}function Lt(a){var l=Ve(a)?qh:$h;return l(a)}function pd(a){if(a==null)return 0;if(fn(a))return fc(a)?er(a):a.length;var l=An(a);return l==Dt||l==wt?a.size:Fo(a).length}function Gg(a,l,f){var g=Ve(a)?cf:em;return f&&Hn(a,l,f)&&(l=s),g(a,ze(l,3))}var Zm=Xe(function(a,l){if(a==null)return[];var f=l.length;return f>1&&Hn(a,l[0],l[1])?l=[]:f>2&&Hn(l[0],l[1],l[2])&&(l=[l[0]]),zf(a,lt(l,1),[])}),nc=Li||function(){return an.Date.now()};function Yg(a,l){if(typeof l!="function")throw new sa(p);return a=Ze(a),function(){if(--a<1)return l.apply(this,arguments)}}function Xm(a,l,f){return l=f?s:l,l=a&&l==null?a.length:l,rr(a,ge,s,s,s,s,l)}function As(a,l){var f;if(typeof l!="function")throw new sa(p);return a=Ze(a),function(){return--a>0&&(f=l.apply(this,arguments)),a<=1&&(l=s),f}}var gi=Xe(function(a,l,f){var g=I;if(f.length){var A=Jr(f,Pi(gi));g|=te}return rr(a,g,l,f,A)}),ac=Xe(function(a,l,f){var g=I|ie;if(f.length){var A=Jr(f,Pi(ac));g|=te}return rr(l,g,a,f,A)});function bs(a,l,f){l=f?s:l;var g=rr(a,me,s,s,s,s,s,l);return g.placeholder=bs.placeholder,g}function rc(a,l,f){l=f?s:l;var g=rr(a,De,s,s,s,s,s,l);return g.placeholder=rc.placeholder,g}function pi(a,l,f){var g,A,E,O,R,H,le=0,oe=!1,he=!1,Se=!0;if(typeof a!="function")throw new sa(p);l=Ta(l)||0,qt(f)&&(oe=!!f.leading,he="maxWait"in f,E=he?kt(Ta(f.maxWait)||0,l):E,Se="trailing"in f?!!f.trailing:Se);function Te(mn){var Lr=g,el=A;return g=A=s,le=mn,O=a.apply(el,Lr),O}function Ye(mn){return le=mn,R=Gl(st,l),oe?Te(mn):O}function et(mn){var Lr=mn-H,el=mn-le,Iv=l-Lr;return he?It(Iv,E-el):Iv}function qe(mn){var Lr=mn-H,el=mn-le;return H===s||Lr>=l||Lr<0||he&&el>=E}function st(){var mn=nc();if(qe(mn))return mt(mn);R=Gl(st,et(mn))}function mt(mn){return R=s,Se&&g?Te(mn):(g=A=s,O)}function Va(){R!==s&&am(R),le=0,g=H=A=R=s}function pa(){return R===s?O:mt(nc())}function Qa(){var mn=nc(),Lr=qe(mn);if(g=arguments,A=this,H=mn,Lr){if(R===s)return Ye(H);if(he)return am(R),R=Gl(st,l),Te(H)}return R===s&&(R=Gl(st,l)),O}return Qa.cancel=Va,Qa.flush=pa,Qa}var sr=Xe(function(a,l){return Ii(a,1,l)}),ys=Xe(function(a,l,f){return Ii(a,Ta(l)||0,f)});function qg(a){return rr(a,ye)}function _s(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new sa(p);var f=function(){var g=arguments,A=l?l.apply(this,g):g[0],E=f.cache;if(E.has(A))return E.get(A);var O=a.apply(this,g);return f.cache=E.set(A,O)||E,O};return f.cache=new(_s.Cache||Zn),f}_s.Cache=Zn;function xs(a){if(typeof a!="function")throw new sa(p);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function Pm(a){return As(2,a)}var Jm=nm(function(a,l){l=l.length==1&&Ve(l[0])?Ht(l[0],la(ze())):Ht(lt(l,1),la(ze()));var f=l.length;return Xe(function(g){for(var A=-1,E=It(g.length,f);++A<E;)g[A]=l[A].call(this,g[A]);return qn(a,this,g)})}),vd=Xe(function(a,l){var f=Jr(l,Pi(vd));return rr(a,te,s,l,f)}),ic=Xe(function(a,l){var f=Jr(l,Pi(ic));return rr(a,de,s,l,f)}),Wm=jt(function(a,l){return rr(a,$,s,s,s,l)});function $m(a,l){if(typeof a!="function")throw new sa(p);return l=l===s?l:Ze(l),Xe(a,l)}function Vg(a,l){if(typeof a!="function")throw new sa(p);return l=l==null?0:kt(Ze(l),0),Xe(function(f){var g=f[l],A=ii(f,0,l);return g&&Dr(A,g),qn(a,this,A)})}function Dd(a,l,f){var g=!0,A=!0;if(typeof a!="function")throw new sa(p);return qt(f)&&(g="leading"in f?!!f.leading:g,A="trailing"in f?!!f.trailing:A),pi(a,l,{leading:g,maxWait:l,trailing:A})}function Ad(a){return Xm(a,1)}function Qg(a,l){return vd(es(l),a)}function Kg(){if(!arguments.length)return[];var a=arguments[0];return Ve(a)?a:[a]}function Es(a){return Mn(a,U)}function Zg(a,l){return l=typeof l=="function"?l:s,Mn(a,U,l)}function e0(a){return Mn(a,M|U)}function nt(a,l){return l=typeof l=="function"?l:s,Mn(a,M|U,l)}function bd(a,l){return l==null||Cf(a,l,hn(l))}function ta(a,l){return a===l||a!==a&&l!==l}var yd=Xi(qu),t0=Xi(function(a,l){return a>=l}),Rr=Eo((function(){return arguments})())?Eo:function(a){return Zt(a)&&pt.call(a,"callee")&&!Ri.call(a,"callee")},Ve=J.isArray,lc=no?la(no):Xn;function fn(a){return a!=null&&$i(a.length)&&!Ya(a)}function tn(a){return Zt(a)&&fn(a)}function Xg(a){return a===!0||a===!1||Zt(a)&&ut(a)==je}var vi=vo||Ap,n0=ph?la(ph):ln;function a0(a){return Zt(a)&&a.nodeType===1&&!Ma(a)}function uc(a){if(a==null)return!0;if(fn(a)&&(Ve(a)||typeof a=="string"||typeof a.splice=="function"||vi(a)||eu(a)||Rr(a)))return!a.length;var l=An(a);if(l==Dt||l==wt)return!a.size;if(Nt(a))return!Fo(a).length;for(var f in a)if(pt.call(a,f))return!1;return!0}function Mt(a,l){return qi(a,l)}function _d(a,l,f){f=typeof f=="function"?f:s;var g=f?f(a,l):s;return g===s?qi(a,l,s,f):!!g}function dn(a){if(!Zt(a))return!1;var l=ut(a);return l==_t||l==rt||typeof a.message=="string"&&typeof a.name=="string"&&!Ma(a)}function Pg(a){return typeof a=="number"&&Lu(a)}function Ya(a){if(!qt(a))return!1;var l=ut(a);return l==Ft||l==Jt||l==ot||l==Qt}function sc(a){return typeof a=="number"&&a==Ze(a)}function $i(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=P}function qt(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Zt(a){return a!=null&&typeof a=="object"}var oc=vh?la(vh):Co;function xd(a,l){return a===l||Qu(a,l,qo(l))}function Jg(a,l,f){return f=typeof f=="function"?f:s,Qu(a,l,qo(l),f)}function r0(a){return l0(a)&&a!=+a}function Wg(a){if(cs(a))throw new Ie(m);return nr(a)}function i0(a){return a===null}function $g(a){return a==null}function l0(a){return typeof a=="number"||Zt(a)&&ut(a)==_n}function Ma(a){if(!Zt(a)||ut(a)!=At)return!1;var l=Bu(a);if(l===null)return!0;var f=pt.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Tu.call(f)==ya}var cc=Dh?la(Dh):So;function Ed(a){return sc(a)&&a>=-P&&a<=P}var u0=Ah?la(Ah):Mf;function fc(a){return typeof a=="string"||!Ve(a)&&Zt(a)&&ut(a)==wn}function In(a){return typeof a=="symbol"||Zt(a)&&ut(a)==Ra}var eu=bh?la(bh):Tf;function qa(a){return a===s}function Cd(a){return Zt(a)&&An(a)==Bt}function s0(a){return Zt(a)&&ut(a)==gr}var o0=Xi(wo),Cs=Xi(function(a,l){return a<=l});function ga(a){if(!a)return[];if(fn(a))return fc(a)?ba(a):on(a);if(Ni&&a[Ni])return Oh(a[Ni]());var l=An(a),f=l==Dt?co:l==wt?fo:lu;return f(a)}function or(a){if(!a)return a===0?a:0;if(a=Ta(a),a===K||a===-K){var l=a<0?-1:1;return l*ve}return a===a?a:0}function Ze(a){var l=or(a),f=l%1;return l===l?f?l-f:l:0}function cr(a){return a?Ha(Ze(a),0,Q):0}function Ta(a){if(typeof a=="number")return a;if(In(a))return C;if(qt(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=qt(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=Ch(a);var f=vn.test(a);return f||uh.test(a)?vg(a.slice(2),f?2:8):hl.test(a)?C:+a}function c0(a){return Jn(a,bn(a))}function tu(a){return a?Ha(Ze(a),-P,P):a===0?a:0}function vt(a){return a==null?"":Pn(a)}var ep=Ki(function(a,l){if(Nt(l)||fn(l)){Jn(l,hn(l),a);return}for(var f in l)pt.call(l,f)&&Hi(a,f,l[f])}),f0=Ki(function(a,l){Jn(l,bn(l),a)}),dc=Ki(function(a,l,f,g){Jn(l,bn(l),a,g)}),tp=Ki(function(a,l,f,g){Jn(l,hn(l),a,g)}),np=jt(Yu);function ap(a,l){var f=oa(a);return l==null?f:_r(f,l)}var rp=Xe(function(a,l){a=dt(a);var f=-1,g=l.length,A=g>2?l[2]:s;for(A&&Hn(l[0],l[1],A)&&(g=1);++f<g;)for(var E=l[f],O=bn(E),R=-1,H=O.length;++R<H;){var le=O[R],oe=a[le];(oe===s||ta(oe,Fl[le])&&!pt.call(a,le))&&(a[le]=E[le])}return a}),d0=Xe(function(a){return a.push(s,Zf),qn(Os,s,a)});function nu(a,l){return _h(a,ze(l,3),Tn)}function Ss(a,l){return _h(a,ze(l,3),zl)}function h0(a,l){return a==null?a:Ll(a,ze(l,3),bn)}function ip(a,l){return a==null?a:Gi(a,ze(l,3),bn)}function au(a,l){return a&&Tn(a,ze(l,3))}function Fs(a,l){return a&&zl(a,ze(l,3))}function m0(a){return a==null?[]:ri(a,hn(a))}function hc(a){return a==null?[]:ri(a,bn(a))}function ws(a,l,f){var g=a==null?s:Sa(a,l);return g===s?f:g}function Sd(a,l){return a!=null&&os(a,l,Ff)}function ru(a,l){return a!=null&&os(a,l,Kh)}var g0=as(function(a,l,f){l!=null&&typeof l.toString!="function"&&(l=zn.call(l)),a[l]=f},Y(V)),p0=as(function(a,l,f){l!=null&&typeof l.toString!="function"&&(l=zn.call(l)),pt.call(a,l)?a[l].push(f):a[l]=[f]},ze),lp=Xe(Yi);function hn(a){return fn(a)?Ef(a):Fo(a)}function bn(a){return fn(a)?Ef(a,!0):Xh(a)}function up(a,l){var f={};return l=ze(l,3),Tn(a,function(g,A,E){Ua(f,l(g,A,E),g)}),f}function sp(a,l){var f={};return l=ze(l,3),Tn(a,function(g,A,E){Ua(f,A,l(g,A,E))}),f}var op=Ki(function(a,l,f){Ku(a,l,f)}),Os=Ki(function(a,l,f,g){Ku(a,l,f,g)}),mc=jt(function(a,l){var f={};if(a==null)return f;var g=!1;l=Ht(l,function(E){return E=Cr(E,a),g||(g=E.length>1),E}),Jn(a,Go(a),f),g&&(f=Mn(f,M|L|U,fm));for(var A=l.length;A--;)Ju(f,l[A]);return f});function Fd(a,l){return iu(a,xs(ze(l)))}var cp=jt(function(a,l){return a==null?{}:Ph(a,l)});function iu(a,l){if(a==null)return{};var f=Ht(Go(a),function(g){return[g]});return l=ze(l),Mo(a,f,function(g,A){return l(g,A[0])})}function fp(a,l,f){l=Cr(l,a);var g=-1,A=l.length;for(A||(A=1,a=s);++g<A;){var E=a==null?s:a[bt(l[g])];E===s&&(g=A,E=f),a=Ya(E)?E.call(a):E}return a}function v0(a,l,f){return a==null?a:jl(a,l,f)}function D0(a,l,f,g){return g=typeof g=="function"?g:s,a==null?a:jl(a,l,f,g)}var wd=ls(hn),Od=ls(bn);function Md(a,l,f){var g=Ve(a),A=g||vi(a)||eu(a);if(l=ze(l,4),f==null){var E=a&&a.constructor;A?f=g?new E:[]:qt(a)?f=Ya(E)?oa(Bu(a)):{}:f={}}return(A?Aa:Tn)(a,function(O,R,H){return l(f,O,R,H)}),f}function A0(a,l){return a==null?!0:Ju(a,l)}function gc(a,l,f){return a==null?a:Hf(a,l,es(f))}function dp(a,l,f,g){return g=typeof g=="function"?g:s,a==null?a:Hf(a,l,es(f),g)}function lu(a){return a==null?[]:so(a,hn(a))}function Td(a){return a==null?[]:so(a,bn(a))}function Bd(a,l,f){return f===s&&(f=l,l=s),f!==s&&(f=Ta(f),f=f===f?f:0),l!==s&&(l=Ta(l),l=l===l?l:0),Ha(Ta(a),l,f)}function pc(a,l,f){return l=or(l),f===s?(f=l,l=0):f=or(f),a=Ta(a),Zh(a,l,f)}function Rd(a,l,f){if(f&&typeof f!="boolean"&&Hn(a,l,f)&&(l=f=s),f===s&&(typeof l=="boolean"?(f=l,l=s):typeof a=="boolean"&&(f=a,a=s)),a===s&&l===s?(a=0,l=1):(a=or(a),l===s?(l=a,a=0):l=or(l)),a>l){var g=a;a=l,l=g}if(f||a%1||l%1){var A=Af();return It(a+A*(l-a+Ou("1e-"+((A+"").length-1))),l)}return Bo(a,l)}var b0=Un(function(a,l,f){return l=l.toLowerCase(),a+(f?vc(l):l)});function vc(a){return u(vt(a).toLowerCase())}function Nr(a){return a=vt(a),a&&a.replace(ml,oo).replace(vr,"")}function Di(a,l,f){a=vt(a),l=Pn(l);var g=a.length;f=f===s?g:Ha(Ze(f),0,g);var A=f;return f-=l.length,f>=0&&a.slice(f,A)==l}function Ai(a){return a=vt(a),a&&nh.test(a)?a.replace(ol,Sh):a}function Ms(a){return a=vt(a),a&&Gn.test(a)?a.replace(pn,"\\$&"):a}var Ts=Un(function(a,l,f){return a+(f?"-":"")+l.toLowerCase()}),bi=Un(function(a,l,f){return a+(f?" ":"")+l.toLowerCase()}),hp=fa("toLowerCase");function y0(a,l,f){a=vt(a),l=Ze(l);var g=l?er(a):0;if(!l||g>=l)return a;var A=(l-g)/2;return is(Ar(A),f)+a+is(Ml(A),f)}function Bs(a,l,f){a=vt(a),l=Ze(l);var g=l?er(a):0;return l&&g<l?a+is(l-g,f):a}function mp(a,l,f){a=vt(a),l=Ze(l);var g=l?er(a):0;return l&&g<l?is(l-g,f)+a:a}function _0(a,l,f){return f||l==null?l=0:l&&(l=+l),zi(vt(a).replace(Vr,""),l||0)}function Dc(a,l,f){return(f?Hn(a,l,f):l===s)?l=1:l=Ze(l),jf(vt(a),l)}function x0(){var a=arguments,l=vt(a[0]);return a.length<3?l:l.replace(a[1],a[2])}var gp=Un(function(a,l,f){return a+(f?"_":"")+l.toLowerCase()});function Ac(a,l,f){return f&&typeof f!="number"&&Hn(a,l,f)&&(l=f=s),f=f===s?Q:f>>>0,f?(a=vt(a),a&&(typeof l=="string"||l!=null&&!cc(l))&&(l=Pn(l),!l&&Pr(a))?ii(ba(a),0,f):a.split(l,f)):[]}var bc=Un(function(a,l,f){return a+(f?" ":"")+u(l)});function E0(a,l,f){return a=vt(a),f=f==null?0:Ha(Ze(f),0,a.length),l=Pn(l),a.slice(f,f+l.length)==l}function Rs(a,l,f){var g=_.templateSettings;f&&Hn(a,l,f)&&(l=s),a=vt(a),l=dc({},l,g,Ho);var A=dc({},l.imports,g.imports,Ho),E=hn(A),O=so(A,E),R,H,le=0,oe=l.interpolate||Vs,he="__p += '",Se=ho((l.escape||Vs).source+"|"+oe.source+"|"+(oe===qs?fl:Vs).source+"|"+(l.evaluate||Vs).source+"|$","g"),Te="//# sourceURL="+(pt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hh+"]")+`
`;a.replace(Se,function(qe,st,mt,Va,pa,Qa){return mt||(mt=Va),he+=a.slice(le,Qa).replace(sh,Fh),st&&(R=!0,he+=`' +
__e(`+st+`) +
'`),pa&&(H=!0,he+=`';
`+pa+`;
__p += '`),mt&&(he+=`' +
((__t = (`+mt+`)) == null ? '' : __t) +
'`),le=Qa+qe.length,qe}),he+=`';
`;var Ye=pt.call(l,"variable")&&l.variable;if(!Ye)he=`with (obj) {
`+he+`
}
`;else if(Gc.test(Ye))throw new Ie(D);he=(H?he.replace(Uc,""):he).replace(On,"$1").replace(Gs,"$1;"),he="function("+(Ye||"obj")+`) {
`+(Ye?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+he+`return __p
}`;var et=d(function(){return ft(E,Te+"return "+he).apply(s,O)});if(et.source=he,dn(et))throw et;return et}function Nd(a){return vt(a).toLowerCase()}function yc(a){return vt(a).toUpperCase()}function C0(a,l,f){if(a=vt(a),a&&(f||l===s))return Ch(a);if(!a||!(l=Pn(l)))return a;var g=ba(a),A=ba(l),E=El(g,A),O=Cl(g,A)+1;return ii(g,E,O).join("")}function pp(a,l,f){if(a=vt(a),a&&(f||l===s))return a.slice(0,mf(a)+1);if(!a||!(l=Pn(l)))return a;var g=ba(a),A=Cl(g,ba(l))+1;return ii(g,0,A).join("")}function _c(a,l,f){if(a=vt(a),a&&(f||l===s))return a.replace(Vr,"");if(!a||!(l=Pn(l)))return a;var g=ba(a),A=El(g,ba(l));return ii(g,A).join("")}function e(a,l){var f=Le,g=Ee;if(qt(l)){var A="separator"in l?l.separator:A;f="length"in l?Ze(l.length):f,g="omission"in l?Pn(l.omission):g}a=vt(a);var E=a.length;if(Pr(a)){var O=ba(a);E=O.length}if(f>=E)return a;var R=f-er(g);if(R<1)return g;var H=O?ii(O,0,R).join(""):a.slice(0,R);if(A===s)return H+g;if(O&&(R+=H.length-R),cc(A)){if(a.slice(R).search(A)){var le,oe=H;for(A.global||(A=ho(A.source,vt(dl.exec(A))+"g")),A.lastIndex=0;le=A.exec(oe);)var he=le.index;H=H.slice(0,he===s?R:he)}}else if(a.indexOf(Pn(A),R)!=R){var Se=H.lastIndexOf(A);Se>-1&&(H=H.slice(0,Se))}return H+g}function t(a){return a=vt(a),a&&fg.test(a)?a.replace(Ys,Th):a}var n=Un(function(a,l,f){return a+(f?" ":"")+l.toUpperCase()}),u=fa("toUpperCase");function c(a,l,f){return a=vt(a),l=f?s:l,l===s?wh(a)?wg(a):xg(a):a.match(l)||[]}var d=Xe(function(a,l){try{return qn(a,s,l)}catch(f){return dn(f)?f:new Ie(f)}}),v=jt(function(a,l){return Aa(l,function(f){f=bt(f),Ua(a,f,gi(a[f],a))}),a});function x(a){var l=a==null?0:a.length,f=ze();return a=l?Ht(a,function(g){if(typeof g[1]!="function")throw new sa(p);return[f(g[0]),g[1]]}):[],Xe(function(g){for(var A=-1;++A<l;){var E=a[A];if(qn(E[0],this,g))return qn(E[1],this,g)}})}function T(a){return Vh(Mn(a,M))}function Y(a){return function(){return a}}function ne(a,l){return a==null||a!==a?l:a}var se=ar(),Z=ar(!0);function V(a){return a}function Ue(a){return Bf(typeof a=="function"?a:Mn(a,M))}function ke(a){return Nf(Mn(a,M))}function Tt(a,l){return Oo(a,Mn(l,M))}var j=Xe(function(a,l){return function(f){return Yi(f,a,l)}}),N=Xe(function(a,l){return function(f){return Yi(a,f,l)}});function G(a,l,f){var g=hn(l),A=ri(l,g);f==null&&!(qt(l)&&(A.length||!g.length))&&(f=l,l=a,a=this,A=ri(l,hn(l)));var E=!(qt(f)&&"chain"in f)||!!f.chain,O=Ya(a);return Aa(A,function(R){var H=l[R];a[R]=H,O&&(a.prototype[R]=function(){var le=this.__chain__;if(E||le){var oe=a(this.__wrapped__),he=oe.__actions__=on(this.__actions__);return he.push({func:H,args:arguments,thisArg:a}),oe.__chain__=le,oe}return H.apply(a,Dr([this.value()],arguments))})}),a}function re(){return an._===this&&(an._=wl),this}function we(){}function $e(a){return a=Ze(a),Xe(function(l){return Lf(l,a)})}var Be=rs(Ht),He=rs(yh),yn=rs(cf);function ht(a){return Qo(a)?io(bt(a)):Jh(a)}function yi(a){return function(l){return a==null?s:Sa(a,l)}}var vp=li(),FA=li(!0);function Dp(){return[]}function Ap(){return!1}function wA(){return{}}function OA(){return""}function MA(){return!0}function TA(a,l){if(a=Ze(a),a<1||a>P)return[];var f=Q,g=It(a,Q);l=ze(l),a-=Q;for(var A=Xr(g,l);++f<a;)l(f);return A}function BA(a){return Ve(a)?Ht(a,bt):In(a)?[a]:on(lr(vt(a)))}function RA(a){var l=++za;return vt(a)+l}var NA=Ul(function(a,l){return a+l},0),LA=Uo("ceil"),zA=Ul(function(a,l){return a/l},1),kA=Uo("floor");function jA(a){return a&&a.length?Ia(a,V,qu):s}function UA(a,l){return a&&a.length?Ia(a,ze(l,2),qu):s}function HA(a){return xh(a,V)}function IA(a,l){return xh(a,ze(l,2))}function GA(a){return a&&a.length?Ia(a,V,wo):s}function YA(a,l){return a&&a.length?Ia(a,ze(l,2),wo):s}var qA=Ul(function(a,l){return a*l},1),VA=Uo("round"),QA=Ul(function(a,l){return a-l},0);function KA(a){return a&&a.length?uo(a,V):0}function ZA(a,l){return a&&a.length?uo(a,ze(l,2)):0}return _.after=Yg,_.ary=Xm,_.assign=ep,_.assignIn=f0,_.assignInWith=dc,_.assignWith=tp,_.at=np,_.before=As,_.bind=gi,_.bindAll=v,_.bindKey=ac,_.castArray=Kg,_.chain=Jl,_.chunk=zg,_.compact=_m,_.concat=xm,_.cond=x,_.conforms=T,_.constant=Y,_.countBy=Wl,_.create=ap,_.curry=bs,_.curryRight=rc,_.debounce=pi,_.defaults=rp,_.defaultsDeep=d0,_.defer=sr,_.delay=ys,_.difference=Yt,_.differenceBy=Wn,_.differenceWith=Mr,_.drop=Em,_.dropRight=Cm,_.dropRightWhile=kg,_.dropWhile=ed,_.fill=da,_.filter=km,_.flatMap=md,_.flatMapDeep=Hg,_.flatMapDepth=Ig,_.flatten=$n,_.flattenDeep=Sm,_.flattenDepth=oi,_.flip=qg,_.flow=se,_.flowRight=Z,_.fromPairs=Ji,_.functions=m0,_.functionsIn=hc,_.groupBy=Hm,_.initial=ad,_.intersection=ur,_.intersectionBy=Fm,_.intersectionWith=Yl,_.invert=g0,_.invertBy=p0,_.invokeMap=ec,_.iteratee=Ue,_.keyBy=Im,_.keys=hn,_.keysIn=bn,_.map=Ds,_.mapKeys=up,_.mapValues=sp,_.matches=ke,_.matchesProperty=Tt,_.memoize=_s,_.merge=op,_.mergeWith=Os,_.method=j,_.methodOf=N,_.mixin=G,_.negate=xs,_.nthArg=$e,_.omit=mc,_.omitBy=Fd,_.once=Pm,_.orderBy=Gm,_.over=Be,_.overArgs=Jm,_.overEvery=He,_.overSome=yn,_.partial=vd,_.partialRight=ic,_.partition=Ym,_.pick=cp,_.pickBy=iu,_.property=ht,_.propertyOf=yi,_.pull=Om,_.pullAll=Vl,_.pullAllBy=Mm,_.pullAllWith=Wo,_.pullAt=Tm,_.range=vp,_.rangeRight=FA,_.rearg=Wm,_.reject=tc,_.remove=jg,_.rest=$m,_.reverse=rd,_.sampleSize=Km,_.set=v0,_.setWith=D0,_.shuffle=Lt,_.slice=Ct,_.sortBy=Zm,_.sortedUniq=Ql,_.sortedUniqBy=id,_.split=Ac,_.spread=Vg,_.tail=Br,_.take=en,_.takeRight=fi,_.takeRightWhile=Wi,_.takeWhile=ld,_.tap=fd,_.throttle=Dd,_.thru=Rn,_.toArray=ga,_.toPairs=wd,_.toPairsIn=Od,_.toPath=BA,_.toPlainObject=c0,_.transform=Md,_.unary=Ad,_.union=Oa,_.unionBy=Kl,_.unionWith=ps,_.uniq=ea,_.uniqBy=ud,_.uniqWith=sd,_.unset=A0,_.unzip=Zl,_.unzipWith=vs,_.update=gc,_.updateWith=dp,_.values=lu,_.valuesIn=Td,_.without=di,_.words=c,_.wrap=Qg,_.xor=En,_.xorBy=hi,_.xorWith=Xl,_.zip=Pl,_.zipObject=od,_.zipObjectDeep=cd,_.zipWith=Bm,_.entries=wd,_.entriesIn=Od,_.extend=f0,_.extendWith=dc,G(_,_),_.add=NA,_.attempt=d,_.camelCase=b0,_.capitalize=vc,_.ceil=LA,_.clamp=Bd,_.clone=Es,_.cloneDeep=e0,_.cloneDeepWith=nt,_.cloneWith=Zg,_.conformsTo=bd,_.deburr=Nr,_.defaultTo=ne,_.divide=zA,_.endsWith=Di,_.eq=ta,_.escape=Ai,_.escapeRegExp=Ms,_.every=zm,_.find=jm,_.findIndex=wa,_.findKey=nu,_.findLast=hd,_.findLastIndex=td,_.findLastKey=Ss,_.floor=kA,_.forEach=Um,_.forEachRight=gd,_.forIn=h0,_.forInRight=ip,_.forOwn=au,_.forOwnRight=Fs,_.get=ws,_.gt=yd,_.gte=t0,_.has=Sd,_.hasIn=ru,_.head=Tr,_.identity=V,_.includes=$l,_.indexOf=nd,_.inRange=pc,_.invoke=lp,_.isArguments=Rr,_.isArray=Ve,_.isArrayBuffer=lc,_.isArrayLike=fn,_.isArrayLikeObject=tn,_.isBoolean=Xg,_.isBuffer=vi,_.isDate=n0,_.isElement=a0,_.isEmpty=uc,_.isEqual=Mt,_.isEqualWith=_d,_.isError=dn,_.isFinite=Pg,_.isFunction=Ya,_.isInteger=sc,_.isLength=$i,_.isMap=oc,_.isMatch=xd,_.isMatchWith=Jg,_.isNaN=r0,_.isNative=Wg,_.isNil=$g,_.isNull=i0,_.isNumber=l0,_.isObject=qt,_.isObjectLike=Zt,_.isPlainObject=Ma,_.isRegExp=cc,_.isSafeInteger=Ed,_.isSet=u0,_.isString=fc,_.isSymbol=In,_.isTypedArray=eu,_.isUndefined=qa,_.isWeakMap=Cd,_.isWeakSet=s0,_.join=gs,_.kebabCase=Ts,_.last=Bn,_.lastIndexOf=ql,_.lowerCase=bi,_.lowerFirst=hp,_.lt=o0,_.lte=Cs,_.max=jA,_.maxBy=UA,_.mean=HA,_.meanBy=IA,_.min=GA,_.minBy=YA,_.stubArray=Dp,_.stubFalse=Ap,_.stubObject=wA,_.stubString=OA,_.stubTrue=MA,_.multiply=qA,_.nth=wm,_.noConflict=re,_.noop=we,_.now=nc,_.pad=y0,_.padEnd=Bs,_.padStart=mp,_.parseInt=_0,_.random=Rd,_.reduce=qm,_.reduceRight=Vm,_.repeat=Dc,_.replace=x0,_.result=fp,_.round=VA,_.runInContext=k,_.sample=Qm,_.size=pd,_.snakeCase=gp,_.some=Gg,_.sortedIndex=zt,_.sortedIndexBy=tt,_.sortedIndexOf=ct,_.sortedLastIndex=St,_.sortedLastIndexBy=ha,_.sortedLastIndexOf=ci,_.startCase=bc,_.startsWith=E0,_.subtract=QA,_.sum=KA,_.sumBy=ZA,_.template=Rs,_.times=TA,_.toFinite=or,_.toInteger=Ze,_.toLength=cr,_.toLower=Nd,_.toNumber=Ta,_.toSafeInteger=tu,_.toString=vt,_.toUpper=yc,_.trim=C0,_.trimEnd=pp,_.trimStart=_c,_.truncate=e,_.unescape=t,_.uniqueId=RA,_.upperCase=n,_.upperFirst=u,_.each=Um,_.eachRight=gd,_.first=Tr,G(_,(function(){var a={};return Tn(_,function(l,f){pt.call(_.prototype,f)||(a[f]=l)}),a})(),{chain:!1}),_.VERSION=o,Aa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){_[a].placeholder=_}),Aa(["drop","take"],function(a,l){We.prototype[a]=function(f){f=f===s?1:kt(Ze(f),0);var g=this.__filtered__&&!l?new We(this):this.clone();return g.__filtered__?g.__takeCount__=It(f,g.__takeCount__):g.__views__.push({size:It(f,Q),type:a+(g.__dir__<0?"Right":"")}),g},We.prototype[a+"Right"]=function(f){return this.reverse()[a](f).reverse()}}),Aa(["filter","map","takeWhile"],function(a,l){var f=l+1,g=f==be||f==B;We.prototype[a]=function(A){var E=this.clone();return E.__iteratees__.push({iteratee:ze(A,3),type:f}),E.__filtered__=E.__filtered__||g,E}}),Aa(["head","last"],function(a,l){var f="take"+(l?"Right":"");We.prototype[a]=function(){return this[f](1).value()[0]}}),Aa(["initial","tail"],function(a,l){var f="drop"+(l?"":"Right");We.prototype[a]=function(){return this.__filtered__?new We(this):this[f](1)}}),We.prototype.compact=function(){return this.filter(V)},We.prototype.find=function(a){return this.filter(a).head()},We.prototype.findLast=function(a){return this.reverse().find(a)},We.prototype.invokeMap=Xe(function(a,l){return typeof a=="function"?new We(this):this.map(function(f){return Yi(f,a,l)})}),We.prototype.reject=function(a){return this.filter(xs(ze(a)))},We.prototype.slice=function(a,l){a=Ze(a);var f=this;return f.__filtered__&&(a>0||l<0)?new We(f):(a<0?f=f.takeRight(-a):a&&(f=f.drop(a)),l!==s&&(l=Ze(l),f=l<0?f.dropRight(-l):f.take(l-a)),f)},We.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},We.prototype.toArray=function(){return this.take(Q)},Tn(We.prototype,function(a,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),A=_[g?"take"+(l=="last"?"Right":""):l],E=g||/^find/.test(l);A&&(_.prototype[l]=function(){var O=this.__wrapped__,R=g?[1]:arguments,H=O instanceof We,le=R[0],oe=H||Ve(O),he=function(st){var mt=A.apply(_,Dr([st],R));return g&&Se?mt[0]:mt};oe&&f&&typeof le=="function"&&le.length!=1&&(H=oe=!1);var Se=this.__chain__,Te=!!this.__actions__.length,Ye=E&&!Se,et=H&&!Te;if(!E&&oe){O=et?O:new We(this);var qe=a.apply(O,R);return qe.__actions__.push({func:Rn,args:[he],thisArg:s}),new Kn(qe,Se)}return Ye&&et?a.apply(this,R):(qe=this.thru(he),Ye?g?qe.value()[0]:qe.value():qe)})}),Aa(["pop","push","shift","sort","splice","unshift"],function(a){var l=mo[a],f=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",g=/^(?:pop|shift)$/.test(a);_.prototype[a]=function(){var A=arguments;if(g&&!this.__chain__){var E=this.value();return l.apply(Ve(E)?E:[],A)}return this[f](function(O){return l.apply(Ve(O)?O:[],A)})}}),Tn(We.prototype,function(a,l){var f=_[l];if(f){var g=f.name+"";pt.call(Ea,g)||(Ea[g]=[]),Ea[g].push({name:l,func:f})}}),Ea[$t(s,ie).name]=[{name:"wrapper",func:s}],We.prototype.clone=Uu,We.prototype.reverse=Do,We.prototype.value=ji,_.prototype.at=Rm,_.prototype.chain=ma,_.prototype.commit=Nm,_.prototype.next=Lm,_.prototype.plant=mi,_.prototype.reverse=$o,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=dd,_.prototype.first=_.prototype.head,Ni&&(_.prototype[Ni]=Ug),_}),Wr=Sl();Zr?((Zr.exports=Wr)._=Wr,bl._=Wr):an._=Wr}).call(r2)})(jd,jd.exports)),jd.exports}var kp=i2();const $v=yv(kp);function gt(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];throw new Error(typeof r=="number"?"[MobX] minified error nr: "+r+(s.length?" "+s.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+r)}var l2={};function ag(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:l2}var VD=Object.assign,U0=Object.getOwnPropertyDescriptor,xi=Object.defineProperty,Qd=Object.prototype,jp=[];Object.freeze(jp);var QD={};Object.freeze(QD);var u2=typeof Proxy<"u",s2=Object.toString();function KD(){u2||gt("Proxy not available")}function ZD(r){var i=!1;return function(){if(!i)return i=!0,r.apply(this,arguments)}}var Cc=function(){};function Hr(r){return typeof r=="function"}function Ls(r){var i=typeof r;switch(i){case"string":case"symbol":case"number":return!0}return!1}function rg(r){return r!==null&&typeof r=="object"}function ll(r){if(!rg(r))return!1;var i=Object.getPrototypeOf(r);if(i==null)return!0;var s=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s.toString()===s2}function XD(r){var i=r?.constructor;return i?i.name==="GeneratorFunction"||i.displayName==="GeneratorFunction":!1}function Kd(r,i,s){xi(r,i,{enumerable:!1,writable:!0,configurable:!0,value:s})}function PD(r,i,s){xi(r,i,{enumerable:!1,writable:!1,configurable:!0,value:s})}function hu(r,i){var s="isMobX"+r;return i.prototype[s]=!0,function(o){return rg(o)&&o[s]===!0}}function zc(r){return r!=null&&Object.prototype.toString.call(r)==="[object Map]"}function o2(r){var i=Object.getPrototypeOf(r),s=Object.getPrototypeOf(i),o=Object.getPrototypeOf(s);return o===null}function nl(r){return r!=null&&Object.prototype.toString.call(r)==="[object Set]"}var JD=typeof Object.getOwnPropertySymbols<"u";function c2(r){var i=Object.keys(r);if(!JD)return i;var s=Object.getOwnPropertySymbols(r);return s.length?[].concat(i,s.filter(function(o){return Qd.propertyIsEnumerable.call(r,o)})):i}var Mc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:JD?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames;function WD(r){return r===null?null:typeof r=="object"?""+r:r}function rl(r,i){return Qd.hasOwnProperty.call(r,i)}var f2=Object.getOwnPropertyDescriptors||function(i){var s={};return Mc(i).forEach(function(o){s[o]=U0(i,o)}),s};function Za(r,i){return!!(r&i)}function Xa(r,i,s){return s?r|=i:r&=~i,r}function eD(r,i){(i==null||i>r.length)&&(i=r.length);for(var s=0,o=Array(i);s<i;s++)o[s]=r[s];return o}function d2(r,i){for(var s=0;s<i.length;s++){var o=i[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,m2(o.key),o)}}function kc(r,i,s){return i&&d2(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function Sc(r,i){var s=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s)return(s=s.call(r)).next.bind(s);if(Array.isArray(r)||(s=g2(r))||i){s&&(r=s);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zs(){return zs=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},zs.apply(null,arguments)}function $D(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,Up(r,i)}function Up(r,i){return Up=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},Up(r,i)}function h2(r,i){if(typeof r!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var o=s.call(r,i);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function m2(r){var i=h2(r,"string");return typeof i=="symbol"?i:i+""}function g2(r,i){if(r){if(typeof r=="string")return eD(r,i);var s={}.toString.call(r).slice(8,-1);return s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set"?Array.from(r):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?eD(r,i):void 0}}var _i=Symbol("mobx-stored-annotations");function Ei(r){function i(s,o){if(Xd(o))return r.decorate_20223_(s,o);Zd(s,o,r)}return Object.assign(i,r)}function Zd(r,i,s){rl(r,_i)||Kd(r,_i,zs({},r[_i])),_2(s)||(r[_i][i]=s)}function p2(r){return rl(r,_i)||Kd(r,_i,zs({},r[_i])),r[_i]}function Xd(r){return typeof r=="object"&&typeof r.kind=="string"}var Qe=Symbol("mobx administration"),mu=(function(){function r(s){s===void 0&&(s="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=yt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=s}var i=r.prototype;return i.onBO=function(){this.onBOL&&this.onBOL.forEach(function(o){return o()})},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(o){return o()})},i.reportObserved=function(){return p1(this)},i.reportChanged=function(){hr(),v1(this),mr()},i.toString=function(){return this.name_},kc(r,[{key:"isBeingObserved",get:function(){return Za(this.flags_,r.isBeingObservedMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isBeingObservedMask_,o)}},{key:"isPendingUnobservation",get:function(){return Za(this.flags_,r.isPendingUnobservationMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isPendingUnobservationMask_,o)}},{key:"diffValue",get:function(){return Za(this.flags_,r.diffValueMask_)?1:0},set:function(o){this.flags_=Xa(this.flags_,r.diffValueMask_,o===1)}}])})();mu.isBeingObservedMask_=1;mu.isPendingUnobservationMask_=2;mu.diffValueMask_=4;var _v=hu("Atom",mu);function e1(r,i,s){i===void 0&&(i=Cc),s===void 0&&(s=Cc);var o=new mu(r);return i!==Cc&&Sb(o,i),s!==Cc&&x1(o,s),o}function v2(r,i){return z1(r,i)}function D2(r,i){return Object.is?Object.is(r,i):r===i?r!==0||1/r===1/i:r!==r&&i!==i}var H0={structural:v2,default:D2};function ks(r,i,s){return Cv(r)?r:Array.isArray(r)?Sn.array(r,{name:s}):ll(r)?Sn.object(r,void 0,{name:s}):zc(r)?Sn.map(r,{name:s}):nl(r)?Sn.set(r,{name:s}):typeof r=="function"&&!Tc(r)&&!Gd(r)?XD(r)?Bc(r):Id(s,r):r}function A2(r,i,s){if(r==null||th(r)||eh(r)||gu(r)||zr(r))return r;if(Array.isArray(r))return Sn.array(r,{name:s,deep:!1});if(ll(r))return Sn.object(r,void 0,{name:s,deep:!1});if(zc(r))return Sn.map(r,{name:s,deep:!1});if(nl(r))return Sn.set(r,{name:s,deep:!1})}function ig(r){return r}function b2(r,i){return z1(r,i)?i:r}var y2="override";function _2(r){return r.annotationType_===y2}function Pd(r,i){return{annotationType_:r,options_:i,make_:x2,extend_:E2,decorate_20223_:C2}}function x2(r,i,s,o){var h;if((h=this.options_)!=null&&h.bound)return this.extend_(r,i,s,!1)===null?0:1;if(o===r.target_)return this.extend_(r,i,s,!1)===null?0:2;if(Tc(s.value))return 1;var m=t1(r,this,i,s,!1);return xi(o,i,m),2}function E2(r,i,s,o){var h=t1(r,this,i,s);return r.defineProperty_(i,h,o)}function C2(r,i){var s=i.kind,o=i.name,h=i.addInitializer,m=this,p=function(y){var F,M,L,U;return js((F=(M=m.options_)==null?void 0:M.name)!=null?F:o.toString(),y,(L=(U=m.options_)==null?void 0:U.autoAction)!=null?L:!1)};if(s=="field")return function(b){var y,F=b;return Tc(F)||(F=p(F)),(y=m.options_)!=null&&y.bound&&(F=F.bind(this),F.isMobxAction=!0),F};if(s=="method"){var D;return Tc(r)||(r=p(r)),(D=this.options_)!=null&&D.bound&&h(function(){var b=this,y=b[o].bind(b);y.isMobxAction=!0,b[o]=y}),r}gt("Cannot apply '"+m.annotationType_+"' to '"+String(o)+"' (kind: "+s+"):"+(`
'`+m.annotationType_+"' can only be used on properties with a function value."))}function S2(r,i,s,o){i.annotationType_,o.value}function t1(r,i,s,o,h){var m,p,D,b,y,F,M;h===void 0&&(h=xe.safeDescriptors),S2(r,i,s,o);var L=o.value;if((m=i.options_)!=null&&m.bound){var U;L=L.bind((U=r.proxy_)!=null?U:r.target_)}return{value:js((p=(D=i.options_)==null?void 0:D.name)!=null?p:s.toString(),L,(b=(y=i.options_)==null?void 0:y.autoAction)!=null?b:!1,(F=i.options_)!=null&&F.bound?(M=r.proxy_)!=null?M:r.target_:void 0),configurable:h?r.isPlainObject_:!0,enumerable:!1,writable:!h}}function n1(r,i){return{annotationType_:r,options_:i,make_:F2,extend_:w2,decorate_20223_:O2}}function F2(r,i,s,o){var h;if(o===r.target_)return this.extend_(r,i,s,!1)===null?0:2;if((h=this.options_)!=null&&h.bound&&(!rl(r.target_,i)||!Gd(r.target_[i]))&&this.extend_(r,i,s,!1)===null)return 0;if(Gd(s.value))return 1;var m=a1(r,this,i,s,!1,!1);return xi(o,i,m),2}function w2(r,i,s,o){var h,m=a1(r,this,i,s,(h=this.options_)==null?void 0:h.bound);return r.defineProperty_(i,m,o)}function O2(r,i){var s,o=i.name,h=i.addInitializer;return Gd(r)||(r=Bc(r)),(s=this.options_)!=null&&s.bound&&h(function(){var m=this,p=m[o].bind(m);p.isMobXFlow=!0,m[o]=p}),r}function M2(r,i,s,o){i.annotationType_,o.value}function a1(r,i,s,o,h,m){m===void 0&&(m=xe.safeDescriptors),M2(r,i,s,o);var p=o.value;if(Gd(p)||(p=Bc(p)),h){var D;p=p.bind((D=r.proxy_)!=null?D:r.target_),p.isMobXFlow=!0}return{value:p,configurable:m?r.isPlainObject_:!0,enumerable:!1,writable:!m}}function xv(r,i){return{annotationType_:r,options_:i,make_:T2,extend_:B2,decorate_20223_:R2}}function T2(r,i,s){return this.extend_(r,i,s,!1)===null?0:1}function B2(r,i,s,o){return N2(r,this,i,s),r.defineComputedProperty_(i,zs({},this.options_,{get:s.get,set:s.set}),o)}function R2(r,i){var s=this,o=i.name,h=i.addInitializer;return h(function(){var m=Hs(this)[Qe],p=zs({},s.options_,{get:r,context:this});p.name||(p.name="ObservableObject."+o.toString()),m.values_.set(o,new Ir(p))}),function(){return this[Qe].getObservablePropValue_(o)}}function N2(r,i,s,o){i.annotationType_,o.get}function lg(r,i){return{annotationType_:r,options_:i,make_:L2,extend_:z2,decorate_20223_:k2}}function L2(r,i,s){return this.extend_(r,i,s,!1)===null?0:1}function z2(r,i,s,o){var h,m;return j2(r,this),r.defineObservableProperty_(i,s.value,(h=(m=this.options_)==null?void 0:m.enhancer)!=null?h:ks,o)}function k2(r,i){var s=this,o=i.kind,h=i.name,m=new WeakSet;function p(D,b){var y,F,M=Hs(D)[Qe],L=new cu(b,(y=(F=s.options_)==null?void 0:F.enhancer)!=null?y:ks,"ObservableObject."+h.toString(),!1);M.values_.set(h,L),m.add(D)}if(o=="accessor")return{get:function(){return m.has(this)||p(this,r.get.call(this)),this[Qe].getObservablePropValue_(h)},set:function(b){return m.has(this)||p(this,b),this[Qe].setObservablePropValue_(h,b)},init:function(b){return m.has(this)||p(this,b),b}}}function j2(r,i,s,o){i.annotationType_}var U2="true",H2=r1();function r1(r){return{annotationType_:U2,options_:r,make_:I2,extend_:G2,decorate_20223_:Y2}}function I2(r,i,s,o){var h,m;if(s.get)return ug.make_(r,i,s,o);if(s.set){var p=Tc(s.set)?s.set:js(i.toString(),s.set);return o===r.target_?r.defineProperty_(i,{configurable:xe.safeDescriptors?r.isPlainObject_:!0,set:p})===null?0:2:(xi(o,i,{configurable:!0,set:p}),2)}if(o!==r.target_&&typeof s.value=="function"){var D;if(XD(s.value)){var b,y=(b=this.options_)!=null&&b.autoBind?Bc.bound:Bc;return y.make_(r,i,s,o)}var F=(D=this.options_)!=null&&D.autoBind?Id.bound:Id;return F.make_(r,i,s,o)}var M=((h=this.options_)==null?void 0:h.deep)===!1?Sn.ref:Sn;if(typeof s.value=="function"&&(m=this.options_)!=null&&m.autoBind){var L;s.value=s.value.bind((L=r.proxy_)!=null?L:r.target_)}return M.make_(r,i,s,o)}function G2(r,i,s,o){var h,m;if(s.get)return ug.extend_(r,i,s,o);if(s.set)return r.defineProperty_(i,{configurable:xe.safeDescriptors?r.isPlainObject_:!0,set:js(i.toString(),s.set)},o);if(typeof s.value=="function"&&(h=this.options_)!=null&&h.autoBind){var p;s.value=s.value.bind((p=r.proxy_)!=null?p:r.target_)}var D=((m=this.options_)==null?void 0:m.deep)===!1?Sn.ref:Sn;return D.extend_(r,i,s,o)}function Y2(r,i){gt("'"+this.annotationType_+"' cannot be used as a decorator")}var q2="observable",V2="observable.ref",Q2="observable.shallow",K2="observable.struct",i1={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(i1);function F0(r){return r||i1}var Hp=lg(q2),Z2=lg(V2,{enhancer:ig}),X2=lg(Q2,{enhancer:A2}),P2=lg(K2,{enhancer:b2}),l1=Ei(Hp);function w0(r){return r.deep===!0?ks:r.deep===!1?ig:W2(r.defaultDecorator)}function J2(r){var i;return r?(i=r.defaultDecorator)!=null?i:r1(r):void 0}function W2(r){var i,s;return r&&(i=(s=r.options_)==null?void 0:s.enhancer)!=null?i:ks}function u1(r,i,s){if(Xd(i))return Hp.decorate_20223_(r,i);if(Ls(i)){Zd(r,i,Hp);return}return Cv(r)?r:ll(r)?Sn.object(r,i,s):Array.isArray(r)?Sn.array(r,i):zc(r)?Sn.map(r,i):nl(r)?Sn.set(r,i):typeof r=="object"&&r!==null?r:Sn.box(r,i)}VD(u1,l1);var $2={box:function(i,s){var o=F0(s);return new cu(i,w0(o),o.name,!0,o.equals)},array:function(i,s){var o=F0(s);return(xe.useProxies===!1||o.proxy===!1?Wb:Gb)(i,w0(o),o.name)},map:function(i,s){var o=F0(s);return new M1(i,w0(o),o.name)},set:function(i,s){var o=F0(s);return new T1(i,w0(o),o.name)},object:function(i,s,o){return pu(function(){return C1(xe.useProxies===!1||o?.proxy===!1?Hs({},o):jb({},o),i,s)})},ref:Ei(Z2),shallow:Ei(X2),deep:l1,struct:Ei(P2)},Sn=VD(u1,$2),s1="computed",eb="computed.struct",Ip=xv(s1),tb=xv(eb,{equals:H0.structural}),ug=function(i,s){if(Xd(s))return Ip.decorate_20223_(i,s);if(Ls(s))return Zd(i,s,Ip);if(ll(i))return Ei(xv(s1,i));var o=ll(s)?s:{};return o.get=i,o.name||(o.name=i.name||""),new Ir(o)};Object.assign(ug,Ip);ug.struct=Ei(tb);var tD,nD,I0=0,nb=1,ab=(tD=(nD=U0(function(){},"name"))==null?void 0:nD.configurable)!=null?tD:!1,aD={value:"action",configurable:!0,writable:!1,enumerable:!1};function js(r,i,s,o){s===void 0&&(s=!1);function h(){return o1(r,s,i,o||this,arguments)}return h.isMobxAction=!0,h.toString=function(){return i.toString()},ab&&(aD.value=r,xi(h,"name",aD)),h}function o1(r,i,s,o,h){var m=rb(r,i);try{return s.apply(o,h)}catch(p){throw m.error_=p,p}finally{ib(m)}}function rb(r,i,s,o){var h=!1,m=0,p=xe.trackingDerivation,D=!i||!p;hr();var b=xe.allowStateChanges;D&&(Us(),b=sg(!0));var y=Ev(!0),F={runAsAction_:D,prevDerivation_:p,prevAllowStateChanges_:b,prevAllowStateReads_:y,notifySpy_:h,startTime_:m,actionId_:nb++,parentActionId_:I0};return I0=F.actionId_,F}function ib(r){I0!==r.actionId_&&gt(30),I0=r.parentActionId_,r.error_!==void 0&&(xe.suppressReactionErrors=!0),og(r.prevAllowStateChanges_),Ud(r.prevAllowStateReads_),mr(),r.runAsAction_&&il(r.prevDerivation_),xe.suppressReactionErrors=!1}function lb(r,i){var s=sg(r);try{return i()}finally{og(s)}}function sg(r){var i=xe.allowStateChanges;return xe.allowStateChanges=r,i}function og(r){xe.allowStateChanges=r}var cu=(function(r){function i(o,h,m,p,D){var b;return m===void 0&&(m="ObservableValue"),D===void 0&&(D=H0.default),b=r.call(this,m)||this,b.enhancer=void 0,b.name_=void 0,b.equals=void 0,b.hasUnreportedChange_=!1,b.interceptors_=void 0,b.changeListeners_=void 0,b.value_=void 0,b.dehancer=void 0,b.enhancer=h,b.name_=m,b.equals=D,b.value_=h(o,void 0,m),b}$D(i,r);var s=i.prototype;return s.dehanceValue=function(h){return this.dehancer!==void 0?this.dehancer(h):h},s.set=function(h){this.value_,h=this.prepareNewValue_(h),h!==xe.UNCHANGED&&this.setNewValue_(h)},s.prepareNewValue_=function(h){if(fr(this)){var m=dr(this,{object:this,type:Ci,newValue:h});if(!m)return xe.UNCHANGED;h=m.newValue}return h=this.enhancer(h,this.value_,this.name_),this.equals(this.value_,h)?xe.UNCHANGED:h},s.setNewValue_=function(h){var m=this.value_;this.value_=h,this.reportChanged(),jr(this)&&Ur(this,{type:Ci,object:this,newValue:h,oldValue:m})},s.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},s.intercept_=function(h){return Wd(this,h)},s.observe_=function(h,m){return m&&h({observableKind:"value",debugObjectName:this.name_,object:this,type:Ci,newValue:this.value_,oldValue:void 0}),$d(this,h)},s.raw=function(){return this.value_},s.toJSON=function(){return this.get()},s.toString=function(){return this.name_+"["+this.value_+"]"},s.valueOf=function(){return WD(this.get())},s[Symbol.toPrimitive]=function(){return this.valueOf()},i})(mu),ub=hu("ObservableValue",cu),Ir=(function(){function r(s){this.dependenciesState_=yt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=yt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Y0(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=G0.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,s.get||gt(31),this.derivation=s.get,this.name_=s.name||"ComputedValue",s.set&&(this.setter_=js("ComputedValue-setter",s.set)),this.equals_=s.equals||(s.compareStructural||s.struct?H0.structural:H0.default),this.scope_=s.context,this.requiresReaction_=s.requiresReaction,this.keepAlive_=!!s.keepAlive}var i=r.prototype;return i.onBecomeStale_=function(){db(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach(function(o){return o()})},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(o){return o()})},i.get=function(){if(this.isComputing&&gt(32,this.name_,this.derivation),xe.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Gp(this)&&(this.warnAboutUntrackedRead_(),hr(),this.value_=this.computeValue_(!1),mr());else if(p1(this),Gp(this)){var o=xe.trackingContext;this.keepAlive_&&!o&&(xe.trackingContext=this),this.trackAndCompute()&&fb(this),xe.trackingContext=o}var h=this.value_;if(N0(h))throw h.cause;return h},i.set=function(o){if(this.setter_){this.isRunningSetter&&gt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,o)}finally{this.isRunningSetter=!1}}else gt(34,this.name_)},i.trackAndCompute=function(){var o=this.value_,h=this.dependenciesState_===yt.NOT_TRACKING_,m=this.computeValue_(!0),p=h||N0(o)||N0(m)||!this.equals_(o,m);return p&&(this.value_=m),p},i.computeValue_=function(o){this.isComputing=!0;var h=sg(!1),m;if(o)m=c1(this,this.derivation,this.scope_);else if(xe.disableErrorBoundaries===!0)m=this.derivation.call(this.scope_);else try{m=this.derivation.call(this.scope_)}catch(p){m=new Y0(p)}return og(h),this.isComputing=!1,m},i.suspend_=function(){this.keepAlive_||(Yp(this),this.value_=void 0)},i.observe_=function(o,h){var m=this,p=!0,D=void 0;return yb(function(){var b=m.get();if(!p||h){var y=Us();o({observableKind:"computed",debugObjectName:m.name_,type:Ci,object:m,newValue:b,oldValue:D}),il(y)}p=!1,D=b})},i.warnAboutUntrackedRead_=function(){},i.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},i.valueOf=function(){return WD(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},kc(r,[{key:"isComputing",get:function(){return Za(this.flags_,r.isComputingMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isComputingMask_,o)}},{key:"isRunningSetter",get:function(){return Za(this.flags_,r.isRunningSetterMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isRunningSetterMask_,o)}},{key:"isBeingObserved",get:function(){return Za(this.flags_,r.isBeingObservedMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isBeingObservedMask_,o)}},{key:"isPendingUnobservation",get:function(){return Za(this.flags_,r.isPendingUnobservationMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isPendingUnobservationMask_,o)}},{key:"diffValue",get:function(){return Za(this.flags_,r.diffValueMask_)?1:0},set:function(o){this.flags_=Xa(this.flags_,r.diffValueMask_,o===1)}}])})();Ir.isComputingMask_=1;Ir.isRunningSetterMask_=2;Ir.isBeingObservedMask_=4;Ir.isPendingUnobservationMask_=8;Ir.diffValueMask_=16;var Jd=hu("ComputedValue",Ir),yt;(function(r){r[r.NOT_TRACKING_=-1]="NOT_TRACKING_",r[r.UP_TO_DATE_=0]="UP_TO_DATE_",r[r.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",r[r.STALE_=2]="STALE_"})(yt||(yt={}));var G0;(function(r){r[r.NONE=0]="NONE",r[r.LOG=1]="LOG",r[r.BREAK=2]="BREAK"})(G0||(G0={}));var Y0=function(i){this.cause=void 0,this.cause=i};function N0(r){return r instanceof Y0}function Gp(r){switch(r.dependenciesState_){case yt.UP_TO_DATE_:return!1;case yt.NOT_TRACKING_:case yt.STALE_:return!0;case yt.POSSIBLY_STALE_:{for(var i=Ev(!0),s=Us(),o=r.observing_,h=o.length,m=0;m<h;m++){var p=o[m];if(Jd(p)){if(xe.disableErrorBoundaries)p.get();else try{p.get()}catch{return il(s),Ud(i),!0}if(r.dependenciesState_===yt.STALE_)return il(s),Ud(i),!0}}return d1(r),il(s),Ud(i),!1}}}function c1(r,i,s){var o=Ev(!0);d1(r),r.newObserving_=new Array(r.runId_===0?100:r.observing_.length),r.unboundDepsCount_=0,r.runId_=++xe.runId;var h=xe.trackingDerivation;xe.trackingDerivation=r,xe.inBatch++;var m;if(xe.disableErrorBoundaries===!0)m=i.call(s);else try{m=i.call(s)}catch(p){m=new Y0(p)}return xe.inBatch--,xe.trackingDerivation=h,sb(r),Ud(o),m}function sb(r){for(var i=r.observing_,s=r.observing_=r.newObserving_,o=yt.UP_TO_DATE_,h=0,m=r.unboundDepsCount_,p=0;p<m;p++){var D=s[p];D.diffValue===0&&(D.diffValue=1,h!==p&&(s[h]=D),h++),D.dependenciesState_>o&&(o=D.dependenciesState_)}for(s.length=h,r.newObserving_=null,m=i.length;m--;){var b=i[m];b.diffValue===0&&m1(b,r),b.diffValue=0}for(;h--;){var y=s[h];y.diffValue===1&&(y.diffValue=0,cb(y,r))}o!==yt.UP_TO_DATE_&&(r.dependenciesState_=o,r.onBecomeStale_())}function Yp(r){var i=r.observing_;r.observing_=[];for(var s=i.length;s--;)m1(i[s],r);r.dependenciesState_=yt.NOT_TRACKING_}function f1(r){var i=Us();try{return r()}finally{il(i)}}function Us(){var r=xe.trackingDerivation;return xe.trackingDerivation=null,r}function il(r){xe.trackingDerivation=r}function Ev(r){var i=xe.allowStateReads;return xe.allowStateReads=r,i}function Ud(r){xe.allowStateReads=r}function d1(r){if(r.dependenciesState_!==yt.UP_TO_DATE_){r.dependenciesState_=yt.UP_TO_DATE_;for(var i=r.observing_,s=i.length;s--;)i[s].lowestObserverState_=yt.UP_TO_DATE_}}var L0=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},z0=!0,h1=!1,xe=(function(){var r=ag();return r.__mobxInstanceCount>0&&!r.__mobxGlobals&&(z0=!1),r.__mobxGlobals&&r.__mobxGlobals.version!==new L0().version&&(z0=!1),z0?r.__mobxGlobals?(r.__mobxInstanceCount+=1,r.__mobxGlobals.UNCHANGED||(r.__mobxGlobals.UNCHANGED={}),r.__mobxGlobals):(r.__mobxInstanceCount=1,r.__mobxGlobals=new L0):(setTimeout(function(){h1||gt(35)},1),new L0)})();function ob(){if((xe.pendingReactions.length||xe.inBatch||xe.isRunningReactions)&&gt(36),h1=!0,z0){var r=ag();--r.__mobxInstanceCount===0&&(r.__mobxGlobals=void 0),xe=new L0}}function cb(r,i){r.observers_.add(i),r.lowestObserverState_>i.dependenciesState_&&(r.lowestObserverState_=i.dependenciesState_)}function m1(r,i){r.observers_.delete(i),r.observers_.size===0&&g1(r)}function g1(r){r.isPendingUnobservation===!1&&(r.isPendingUnobservation=!0,xe.pendingUnobservations.push(r))}function hr(){xe.inBatch++}function mr(){if(--xe.inBatch===0){D1();for(var r=xe.pendingUnobservations,i=0;i<r.length;i++){var s=r[i];s.isPendingUnobservation=!1,s.observers_.size===0&&(s.isBeingObserved&&(s.isBeingObserved=!1,s.onBUO()),s instanceof Ir&&s.suspend_())}xe.pendingUnobservations=[]}}function p1(r){var i=xe.trackingDerivation;return i!==null?(i.runId_!==r.lastAccessedBy_&&(r.lastAccessedBy_=i.runId_,i.newObserving_[i.unboundDepsCount_++]=r,!r.isBeingObserved&&xe.trackingContext&&(r.isBeingObserved=!0,r.onBO())),r.isBeingObserved):(r.observers_.size===0&&xe.inBatch>0&&g1(r),!1)}function v1(r){r.lowestObserverState_!==yt.STALE_&&(r.lowestObserverState_=yt.STALE_,r.observers_.forEach(function(i){i.dependenciesState_===yt.UP_TO_DATE_&&i.onBecomeStale_(),i.dependenciesState_=yt.STALE_}))}function fb(r){r.lowestObserverState_!==yt.STALE_&&(r.lowestObserverState_=yt.STALE_,r.observers_.forEach(function(i){i.dependenciesState_===yt.POSSIBLY_STALE_?i.dependenciesState_=yt.STALE_:i.dependenciesState_===yt.UP_TO_DATE_&&(r.lowestObserverState_=yt.UP_TO_DATE_)}))}function db(r){r.lowestObserverState_===yt.UP_TO_DATE_&&(r.lowestObserverState_=yt.POSSIBLY_STALE_,r.observers_.forEach(function(i){i.dependenciesState_===yt.UP_TO_DATE_&&(i.dependenciesState_=yt.POSSIBLY_STALE_,i.onBecomeStale_())}))}var Si=(function(){function r(s,o,h,m){s===void 0&&(s="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=yt.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=G0.NONE,this.name_=s,this.onInvalidate_=o,this.errorHandler_=h,this.requiresObservable_=m}var i=r.prototype;return i.onBecomeStale_=function(){this.schedule_()},i.schedule_=function(){this.isScheduled||(this.isScheduled=!0,xe.pendingReactions.push(this),D1())},i.runReaction_=function(){if(!this.isDisposed){hr(),this.isScheduled=!1;var o=xe.trackingContext;if(xe.trackingContext=this,Gp(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(h){this.reportExceptionInDerivation_(h)}}xe.trackingContext=o,mr()}},i.track=function(o){if(!this.isDisposed){hr(),this.isRunning=!0;var h=xe.trackingContext;xe.trackingContext=this;var m=c1(this,o,void 0);xe.trackingContext=h,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Yp(this),N0(m)&&this.reportExceptionInDerivation_(m.cause),mr()}},i.reportExceptionInDerivation_=function(o){var h=this;if(this.errorHandler_){this.errorHandler_(o,this);return}if(xe.disableErrorBoundaries)throw o;var m="[mobx] uncaught error in '"+this+"'";xe.suppressReactionErrors||console.error(m,o),xe.globalReactionErrorHandlers.forEach(function(p){return p(o,h)})},i.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(hr(),Yp(this),mr()))},i.getDisposer_=function(o){var h=this,m=function p(){h.dispose(),o==null||o.removeEventListener==null||o.removeEventListener("abort",p)};return o==null||o.addEventListener==null||o.addEventListener("abort",m),m[Qe]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(m[Symbol.dispose]=m),m},i.toString=function(){return"Reaction["+this.name_+"]"},i.trace=function(o){},kc(r,[{key:"isDisposed",get:function(){return Za(this.flags_,r.isDisposedMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isDisposedMask_,o)}},{key:"isScheduled",get:function(){return Za(this.flags_,r.isScheduledMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isScheduledMask_,o)}},{key:"isTrackPending",get:function(){return Za(this.flags_,r.isTrackPendingMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isTrackPendingMask_,o)}},{key:"isRunning",get:function(){return Za(this.flags_,r.isRunningMask_)},set:function(o){this.flags_=Xa(this.flags_,r.isRunningMask_,o)}},{key:"diffValue",get:function(){return Za(this.flags_,r.diffValueMask_)?1:0},set:function(o){this.flags_=Xa(this.flags_,r.diffValueMask_,o===1)}}])})();Si.isDisposedMask_=1;Si.isScheduledMask_=2;Si.isTrackPendingMask_=4;Si.isRunningMask_=8;Si.diffValueMask_=16;var hb=100,qp=function(i){return i()};function D1(){xe.inBatch>0||xe.isRunningReactions||qp(mb)}function mb(){xe.isRunningReactions=!0;for(var r=xe.pendingReactions,i=0;r.length>0;){++i===hb&&(console.error("[mobx] cycle in reaction: "+r[0]),r.splice(0));for(var s=r.splice(0),o=0,h=s.length;o<h;o++)s[o].runReaction_()}xe.isRunningReactions=!1}var q0=hu("Reaction",Si);function gb(r){var i=qp;qp=function(o){return r(function(){return i(o)})}}function Hd(){return!1}function pb(r){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var A1="action",vb="action.bound",b1="autoAction",Db="autoAction.bound",y1="<unnamed action>",Vp=Pd(A1),Ab=Pd(vb,{bound:!0}),Qp=Pd(b1,{autoAction:!0}),bb=Pd(Db,{autoAction:!0,bound:!0});function _1(r){var i=function(o,h){if(Hr(o))return js(o.name||y1,o,r);if(Hr(h))return js(o,h,r);if(Xd(h))return(r?Qp:Vp).decorate_20223_(o,h);if(Ls(h))return Zd(o,h,r?Qp:Vp);if(Ls(o))return Ei(Pd(r?b1:A1,{name:o,autoAction:r}))};return i}var Fc=_1(!1);Object.assign(Fc,Vp);var Id=_1(!0);Object.assign(Id,Qp);Fc.bound=Ei(Ab);Id.bound=Ei(bb);function Ka(r){return o1(r.name||y1,!1,r,this,void 0)}function Tc(r){return Hr(r)&&r.isMobxAction===!0}function yb(r,i){var s,o,h,m;i===void 0&&(i=QD);var p=(s=(o=i)==null?void 0:o.name)!=null?s:"Autorun",D=!i.scheduler&&!i.delay,b;if(D)b=new Si(p,function(){this.track(M)},i.onError,i.requiresObservable);else{var y=xb(i),F=!1;b=new Si(p,function(){F||(F=!0,y(function(){F=!1,b.isDisposed||b.track(M)}))},i.onError,i.requiresObservable)}function M(){r(b)}return(h=i)!=null&&(h=h.signal)!=null&&h.aborted||b.schedule_(),b.getDisposer_((m=i)==null?void 0:m.signal)}var _b=function(i){return i()};function xb(r){return r.scheduler?r.scheduler:r.delay?function(i){return setTimeout(i,r.delay)}:_b}var Eb="onBO",Cb="onBUO";function Sb(r,i,s){return E1(Eb,r,i,s)}function x1(r,i,s){return E1(Cb,r,i,s)}function E1(r,i,s,o){var h=K0(i),m=Hr(o)?o:s,p=r+"L";return h[p]?h[p].add(m):h[p]=new Set([m]),function(){var D=h[p];D&&(D.delete(m),D.size===0&&delete h[p])}}var Fb="never",O0="always",wb="observed";function Ob(r){r.isolateGlobalState===!0&&ob();var i=r.useProxies,s=r.enforceActions;if(i!==void 0&&(xe.useProxies=i===O0?!0:i===Fb?!1:typeof Proxy<"u"),i==="ifavailable"&&(xe.verifyProxies=!0),s!==void 0){var o=s===O0?O0:s===wb;xe.enforceActions=o,xe.allowStateChanges=!(o===!0||o===O0)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(h){h in r&&(xe[h]=!!r[h])}),xe.allowStateReads=!xe.observableRequiresReaction,r.reactionScheduler&&gb(r.reactionScheduler)}function C1(r,i,s,o){var h=f2(i);return pu(function(){var m=Hs(r,o)[Qe];Mc(h).forEach(function(p){m.extend_(p,h[p],s&&p in s?s[p]:!0)})}),r}function Mb(r,i){return S1(K0(r,i))}function S1(r){var i={name:r.name_};return r.observing_&&r.observing_.length>0&&(i.dependencies=Tb(r.observing_).map(S1)),i}function Tb(r){return Array.from(new Set(r))}var Bb=0;function F1(){this.message="FLOW_CANCELLED"}F1.prototype=Object.create(Error.prototype);var Sp=n1("flow"),Rb=n1("flow.bound",{bound:!0}),Bc=Object.assign(function(i,s){if(Xd(s))return Sp.decorate_20223_(i,s);if(Ls(s))return Zd(i,s,Sp);var o=i,h=o.name||"<unnamed flow>",m=function(){var D=this,b=arguments,y=++Bb,F=Fc(h+" - runid: "+y+" - init",o).apply(D,b),M,L=void 0,U=new Promise(function(z,q){var I=0;M=q;function ie(De){L=void 0;var te;try{te=Fc(h+" - runid: "+y+" - yield "+I++,F.next).call(F,De)}catch(de){return q(de)}me(te)}function ce(De){L=void 0;var te;try{te=Fc(h+" - runid: "+y+" - yield "+I++,F.throw).call(F,De)}catch(de){return q(de)}me(te)}function me(De){if(Hr(De?.then)){De.then(me,q);return}return De.done?z(De.value):(L=Promise.resolve(De.value),L.then(ie,ce))}ie(void 0)});return U.cancel=Fc(h+" - runid: "+y+" - cancel",function(){try{L&&rD(L);var z=F.return(void 0),q=Promise.resolve(z.value);q.then(Cc,Cc),rD(q),M(new F1)}catch(I){M(I)}}),U};return m.isMobXFlow=!0,m},Sp);Bc.bound=Ei(Rb);function rD(r){Hr(r.cancel)&&r.cancel()}function Gd(r){return r?.isMobXFlow===!0}function Nb(r,i){return r?th(r)||!!r[Qe]||_v(r)||q0(r)||Jd(r):!1}function Cv(r){return Nb(r)}function Lb(r){if(th(r))return r[Qe].ownKeys_();gt(38)}function M0(r,i,s){return r.set(i,s),s}function Ec(r,i){if(r==null||typeof r!="object"||r instanceof Date||!Cv(r))return r;if(ub(r)||Jd(r))return Ec(r.get(),i);if(i.has(r))return i.get(r);if(eh(r)){var s=M0(i,r,new Array(r.length));return r.forEach(function(p,D){s[D]=Ec(p,i)}),s}if(zr(r)){var o=M0(i,r,new Set);return r.forEach(function(p){o.add(Ec(p,i))}),o}if(gu(r)){var h=M0(i,r,new Map);return r.forEach(function(p,D){h.set(D,Ec(p,i))}),h}else{var m=M0(i,r,{});return Lb(r).forEach(function(p){Qd.propertyIsEnumerable.call(r,p)&&(m[p]=Ec(r[p],i))}),m}}function zb(r,i){return Ec(r,new Map)}function al(r,i){i===void 0&&(i=void 0),hr();try{return r.apply(i)}finally{mr()}}function xc(r){return r[Qe]}var kb={has:function(i,s){return xc(i).has_(s)},get:function(i,s){return xc(i).get_(s)},set:function(i,s,o){var h;return Ls(s)?(h=xc(i).set_(s,o,!0))!=null?h:!0:!1},deleteProperty:function(i,s){var o;return Ls(s)?(o=xc(i).delete_(s,!0))!=null?o:!0:!1},defineProperty:function(i,s,o){var h;return(h=xc(i).defineProperty_(s,o))!=null?h:!0},ownKeys:function(i){return xc(i).ownKeys_()},preventExtensions:function(i){gt(13)}};function jb(r,i){var s,o;return KD(),r=Hs(r,i),(o=(s=r[Qe]).proxy_)!=null?o:s.proxy_=new Proxy(r,kb)}function fr(r){return r.interceptors_!==void 0&&r.interceptors_.length>0}function Wd(r,i){var s=r.interceptors_||(r.interceptors_=[]);return s.push(i),ZD(function(){var o=s.indexOf(i);o!==-1&&s.splice(o,1)})}function dr(r,i){var s=Us();try{for(var o=[].concat(r.interceptors_||[]),h=0,m=o.length;h<m&&(i=o[h](i),i&&!i.type&&gt(14),!!i);h++);return i}finally{il(s)}}function jr(r){return r.changeListeners_!==void 0&&r.changeListeners_.length>0}function $d(r,i){var s=r.changeListeners_||(r.changeListeners_=[]);return s.push(i),ZD(function(){var o=s.indexOf(i);o!==-1&&s.splice(o,1)})}function Ur(r,i){var s=Us(),o=r.changeListeners_;if(o){o=o.slice();for(var h=0,m=o.length;h<m;h++)o[h](i);il(s)}}function Ub(r,i,s){return pu(function(){var o,h=Hs(r,s)[Qe];(o=i)!=null||(i=p2(r)),Mc(i).forEach(function(m){return h.make_(m,i[m])})}),r}var Fp=Symbol("mobx-keys");function w1(r,i,s){return ll(r)?C1(r,r,i,s):(pu(function(){var o=Hs(r,s)[Qe];if(!r[Fp]){var h=Object.getPrototypeOf(r),m=new Set([].concat(Mc(r),Mc(h)));m.delete("constructor"),m.delete(Qe),Kd(h,Fp,m)}r[Fp].forEach(function(p){return o.make_(p,i&&p in i?i[p]:!0)})}),r)}var iD="splice",Ci="update",Hb=1e4,Ib={get:function(i,s){var o=i[Qe];return s===Qe?o:s==="length"?o.getArrayLength_():typeof s=="string"&&!isNaN(s)?o.get_(parseInt(s)):rl(V0,s)?V0[s]:i[s]},set:function(i,s,o){var h=i[Qe];return s==="length"&&h.setArrayLength_(o),typeof s=="symbol"||isNaN(s)?i[s]=o:h.set_(parseInt(s),o),!0},preventExtensions:function(){gt(15)}},Sv=(function(){function r(s,o,h,m){s===void 0&&(s="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=h,this.legacyMode_=m,this.atom_=new mu(s),this.enhancer_=function(p,D){return o(p,D,"ObservableArray[..]")}}var i=r.prototype;return i.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},i.dehanceValues_=function(o){return this.dehancer!==void 0&&o.length>0?o.map(this.dehancer):o},i.intercept_=function(o){return Wd(this,o)},i.observe_=function(o,h){return h===void 0&&(h=!1),h&&o({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),$d(this,o)},i.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},i.setArrayLength_=function(o){(typeof o!="number"||isNaN(o)||o<0)&&gt("Out of range: "+o);var h=this.values_.length;if(o!==h)if(o>h){for(var m=new Array(o-h),p=0;p<o-h;p++)m[p]=void 0;this.spliceWithArray_(h,0,m)}else this.spliceWithArray_(o,h-o)},i.updateArrayLength_=function(o,h){o!==this.lastKnownLength_&&gt(16),this.lastKnownLength_+=h,this.legacyMode_&&h>0&&L1(o+h+1)},i.spliceWithArray_=function(o,h,m){var p=this;this.atom_;var D=this.values_.length;if(o===void 0?o=0:o>D?o=D:o<0&&(o=Math.max(0,D+o)),arguments.length===1?h=D-o:h==null?h=0:h=Math.max(0,Math.min(h,D-o)),m===void 0&&(m=jp),fr(this)){var b=dr(this,{object:this.proxy_,type:iD,index:o,removedCount:h,added:m});if(!b)return jp;h=b.removedCount,m=b.added}if(m=m.length===0?m:m.map(function(M){return p.enhancer_(M,void 0)}),this.legacyMode_){var y=m.length-h;this.updateArrayLength_(D,y)}var F=this.spliceItemsIntoValues_(o,h,m);return(h!==0||m.length!==0)&&this.notifyArraySplice_(o,m,F),this.dehanceValues_(F)},i.spliceItemsIntoValues_=function(o,h,m){if(m.length<Hb){var p;return(p=this.values_).splice.apply(p,[o,h].concat(m))}else{var D=this.values_.slice(o,o+h),b=this.values_.slice(o+h);this.values_.length+=m.length-h;for(var y=0;y<m.length;y++)this.values_[o+y]=m[y];for(var F=0;F<b.length;F++)this.values_[o+m.length+F]=b[F];return D}},i.notifyArrayChildUpdate_=function(o,h,m){var p=!this.owned_&&Hd(),D=jr(this),b=D||p?{observableKind:"array",object:this.proxy_,type:Ci,debugObjectName:this.atom_.name_,index:o,newValue:h,oldValue:m}:null;this.atom_.reportChanged(),D&&Ur(this,b)},i.notifyArraySplice_=function(o,h,m){var p=!this.owned_&&Hd(),D=jr(this),b=D||p?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:iD,index:o,removed:m,added:h,removedCount:m.length,addedCount:h.length}:null;this.atom_.reportChanged(),D&&Ur(this,b)},i.get_=function(o){if(this.legacyMode_&&o>=this.values_.length){console.warn("[mobx] Out of bounds read: "+o);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[o])},i.set_=function(o,h){var m=this.values_;if(this.legacyMode_&&o>m.length&&gt(17,o,m.length),o<m.length){this.atom_;var p=m[o];if(fr(this)){var D=dr(this,{type:Ci,object:this.proxy_,index:o,newValue:h});if(!D)return;h=D.newValue}h=this.enhancer_(h,p);var b=h!==p;b&&(m[o]=h,this.notifyArrayChildUpdate_(o,h,p))}else{for(var y=new Array(o+1-m.length),F=0;F<y.length-1;F++)y[F]=void 0;y[y.length-1]=h,this.spliceWithArray_(m.length,0,y)}},r})();function Gb(r,i,s,o){return s===void 0&&(s="ObservableArray"),o===void 0&&(o=!1),KD(),pu(function(){var h=new Sv(s,i,o,!1);PD(h.values_,Qe,h);var m=new Proxy(h.values_,Ib);return h.proxy_=m,r&&r.length&&h.spliceWithArray_(0,0,r),m})}var V0={clear:function(){return this.splice(0)},replace:function(i){var s=this[Qe];return s.spliceWithArray_(0,s.values_.length,i)},toJSON:function(){return this.slice()},splice:function(i,s){for(var o=arguments.length,h=new Array(o>2?o-2:0),m=2;m<o;m++)h[m-2]=arguments[m];var p=this[Qe];switch(arguments.length){case 0:return[];case 1:return p.spliceWithArray_(i);case 2:return p.spliceWithArray_(i,s)}return p.spliceWithArray_(i,s,h)},spliceWithArray:function(i,s,o){return this[Qe].spliceWithArray_(i,s,o)},push:function(){for(var i=this[Qe],s=arguments.length,o=new Array(s),h=0;h<s;h++)o[h]=arguments[h];return i.spliceWithArray_(i.values_.length,0,o),i.values_.length},pop:function(){return this.splice(Math.max(this[Qe].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var i=this[Qe],s=arguments.length,o=new Array(s),h=0;h<s;h++)o[h]=arguments[h];return i.spliceWithArray_(0,0,o),i.values_.length},reverse:function(){return xe.trackingDerivation&&gt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){xe.trackingDerivation&&gt(37,"sort");var i=this.slice();return i.sort.apply(i,arguments),this.replace(i),this},remove:function(i){var s=this[Qe],o=s.dehanceValues_(s.values_).indexOf(i);return o>-1?(this.splice(o,1),!0):!1}};Vt("at",Pa);Vt("concat",Pa);Vt("flat",Pa);Vt("includes",Pa);Vt("indexOf",Pa);Vt("join",Pa);Vt("lastIndexOf",Pa);Vt("slice",Pa);Vt("toString",Pa);Vt("toLocaleString",Pa);Vt("toSorted",Pa);Vt("toSpliced",Pa);Vt("with",Pa);Vt("every",Gr);Vt("filter",Gr);Vt("find",Gr);Vt("findIndex",Gr);Vt("findLast",Gr);Vt("findLastIndex",Gr);Vt("flatMap",Gr);Vt("forEach",Gr);Vt("map",Gr);Vt("some",Gr);Vt("toReversed",Gr);Vt("reduce",O1);Vt("reduceRight",O1);function Vt(r,i){typeof Array.prototype[r]=="function"&&(V0[r]=i(r))}function Pa(r){return function(){var i=this[Qe];i.atom_.reportObserved();var s=i.dehanceValues_(i.values_);return s[r].apply(s,arguments)}}function Gr(r){return function(i,s){var o=this,h=this[Qe];h.atom_.reportObserved();var m=h.dehanceValues_(h.values_);return m[r](function(p,D){return i.call(s,p,D,o)})}}function O1(r){return function(){var i=this,s=this[Qe];s.atom_.reportObserved();var o=s.dehanceValues_(s.values_),h=arguments[0];return arguments[0]=function(m,p,D){return h(m,p,D,i)},o[r].apply(o,arguments)}}var Yb=hu("ObservableArrayAdministration",Sv);function eh(r){return rg(r)&&Yb(r[Qe])}var qb={},ou="add",Q0="delete",M1=(function(){function r(s,o,h){var m=this;o===void 0&&(o=ks),h===void 0&&(h="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Qe]=qb,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=o,this.name_=h,Hr(Map)||gt(18),pu(function(){m.keysAtom_=e1("ObservableMap.keys()"),m.data_=new Map,m.hasMap_=new Map,s&&m.merge(s)})}var i=r.prototype;return i.has_=function(o){return this.data_.has(o)},i.has=function(o){var h=this;if(!xe.trackingDerivation)return this.has_(o);var m=this.hasMap_.get(o);if(!m){var p=m=new cu(this.has_(o),ig,"ObservableMap.key?",!1);this.hasMap_.set(o,p),x1(p,function(){return h.hasMap_.delete(o)})}return m.get()},i.set=function(o,h){var m=this.has_(o);if(fr(this)){var p=dr(this,{type:m?Ci:ou,object:this,newValue:h,name:o});if(!p)return this;h=p.newValue}return m?this.updateValue_(o,h):this.addValue_(o,h),this},i.delete=function(o){var h=this;if(this.keysAtom_,fr(this)){var m=dr(this,{type:Q0,object:this,name:o});if(!m)return!1}if(this.has_(o)){var p=Hd(),D=jr(this),b=D||p?{observableKind:"map",debugObjectName:this.name_,type:Q0,object:this,oldValue:this.data_.get(o).value_,name:o}:null;return al(function(){var y;h.keysAtom_.reportChanged(),(y=h.hasMap_.get(o))==null||y.setNewValue_(!1);var F=h.data_.get(o);F.setNewValue_(void 0),h.data_.delete(o)}),D&&Ur(this,b),!0}return!1},i.updateValue_=function(o,h){var m=this.data_.get(o);if(h=m.prepareNewValue_(h),h!==xe.UNCHANGED){var p=Hd(),D=jr(this),b=D||p?{observableKind:"map",debugObjectName:this.name_,type:Ci,object:this,oldValue:m.value_,name:o,newValue:h}:null;m.setNewValue_(h),D&&Ur(this,b)}},i.addValue_=function(o,h){var m=this;this.keysAtom_,al(function(){var y,F=new cu(h,m.enhancer_,"ObservableMap.key",!1);m.data_.set(o,F),h=F.value_,(y=m.hasMap_.get(o))==null||y.setNewValue_(!0),m.keysAtom_.reportChanged()});var p=Hd(),D=jr(this),b=D||p?{observableKind:"map",debugObjectName:this.name_,type:ou,object:this,name:o,newValue:h}:null;D&&Ur(this,b)},i.get=function(o){return this.has(o)?this.dehanceValue_(this.data_.get(o).get()):this.dehanceValue_(void 0)},i.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},i.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},i.values=function(){var o=this,h=this.keys();return lD({next:function(){var p=h.next(),D=p.done,b=p.value;return{done:D,value:D?void 0:o.get(b)}}})},i.entries=function(){var o=this,h=this.keys();return lD({next:function(){var p=h.next(),D=p.done,b=p.value;return{done:D,value:D?void 0:[b,o.get(b)]}}})},i[Symbol.iterator]=function(){return this.entries()},i.forEach=function(o,h){for(var m=Sc(this),p;!(p=m()).done;){var D=p.value,b=D[0],y=D[1];o.call(h,y,b,this)}},i.merge=function(o){var h=this;return gu(o)&&(o=new Map(o)),al(function(){ll(o)?c2(o).forEach(function(m){return h.set(m,o[m])}):Array.isArray(o)?o.forEach(function(m){var p=m[0],D=m[1];return h.set(p,D)}):zc(o)?(o2(o)||gt(19,o),o.forEach(function(m,p){return h.set(p,m)})):o!=null&&gt(20,o)}),this},i.clear=function(){var o=this;al(function(){f1(function(){for(var h=Sc(o.keys()),m;!(m=h()).done;){var p=m.value;o.delete(p)}})})},i.replace=function(o){var h=this;return al(function(){for(var m=Vb(o),p=new Map,D=!1,b=Sc(h.data_.keys()),y;!(y=b()).done;){var F=y.value;if(!m.has(F)){var M=h.delete(F);if(M)D=!0;else{var L=h.data_.get(F);p.set(F,L)}}}for(var U=Sc(m.entries()),z;!(z=U()).done;){var q=z.value,I=q[0],ie=q[1],ce=h.data_.has(I);if(h.set(I,ie),h.data_.has(I)){var me=h.data_.get(I);p.set(I,me),ce||(D=!0)}}if(!D)if(h.data_.size!==p.size)h.keysAtom_.reportChanged();else for(var De=h.data_.keys(),te=p.keys(),de=De.next(),ge=te.next();!de.done;){if(de.value!==ge.value){h.keysAtom_.reportChanged();break}de=De.next(),ge=te.next()}h.data_=p}),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.observe_=function(o,h){return $d(this,o)},i.intercept_=function(o){return Wd(this,o)},kc(r,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),gu=hu("ObservableMap",M1);function lD(r){return r[Symbol.toStringTag]="MapIterator",wv(r)}function Vb(r){if(zc(r)||gu(r))return r;if(Array.isArray(r))return new Map(r);if(ll(r)){var i=new Map;for(var s in r)i.set(s,r[s]);return i}else return gt(21,r)}var Qb={},T1=(function(){function r(s,o,h){var m=this;o===void 0&&(o=ks),h===void 0&&(h="ObservableSet"),this.name_=void 0,this[Qe]=Qb,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=h,Hr(Set)||gt(22),this.enhancer_=function(p,D){return o(p,D,h)},pu(function(){m.atom_=e1(m.name_),s&&m.replace(s)})}var i=r.prototype;return i.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},i.clear=function(){var o=this;al(function(){f1(function(){for(var h=Sc(o.data_.values()),m;!(m=h()).done;){var p=m.value;o.delete(p)}})})},i.forEach=function(o,h){for(var m=Sc(this),p;!(p=m()).done;){var D=p.value;o.call(h,D,D,this)}},i.add=function(o){var h=this;if(this.atom_,fr(this)){var m=dr(this,{type:ou,object:this,newValue:o});if(!m)return this;o=m.newValue}if(!this.has(o)){al(function(){h.data_.add(h.enhancer_(o,void 0)),h.atom_.reportChanged()});var p=!1,D=jr(this),b=D||p?{observableKind:"set",debugObjectName:this.name_,type:ou,object:this,newValue:o}:null;D&&Ur(this,b)}return this},i.delete=function(o){var h=this;if(fr(this)){var m=dr(this,{type:Q0,object:this,oldValue:o});if(!m)return!1}if(this.has(o)){var p=!1,D=jr(this),b=D||p?{observableKind:"set",debugObjectName:this.name_,type:Q0,object:this,oldValue:o}:null;return al(function(){h.atom_.reportChanged(),h.data_.delete(o)}),D&&Ur(this,b),!0}return!1},i.has=function(o){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(o))},i.entries=function(){var o=this.values();return uD({next:function(){var m=o.next(),p=m.value,D=m.done;return D?{value:void 0,done:D}:{value:[p,p],done:D}}})},i.keys=function(){return this.values()},i.values=function(){this.atom_.reportObserved();var o=this,h=this.data_.values();return uD({next:function(){var p=h.next(),D=p.value,b=p.done;return b?{value:void 0,done:b}:{value:o.dehanceValue_(D),done:b}}})},i.intersection=function(o){if(nl(o)&&!zr(o))return o.intersection(this);var h=new Set(this);return h.intersection(o)},i.union=function(o){if(nl(o)&&!zr(o))return o.union(this);var h=new Set(this);return h.union(o)},i.difference=function(o){return new Set(this).difference(o)},i.symmetricDifference=function(o){if(nl(o)&&!zr(o))return o.symmetricDifference(this);var h=new Set(this);return h.symmetricDifference(o)},i.isSubsetOf=function(o){return new Set(this).isSubsetOf(o)},i.isSupersetOf=function(o){return new Set(this).isSupersetOf(o)},i.isDisjointFrom=function(o){if(nl(o)&&!zr(o))return o.isDisjointFrom(this);var h=new Set(this);return h.isDisjointFrom(o)},i.replace=function(o){var h=this;return zr(o)&&(o=new Set(o)),al(function(){Array.isArray(o)?(h.clear(),o.forEach(function(m){return h.add(m)})):nl(o)?(h.clear(),o.forEach(function(m){return h.add(m)})):o!=null&&gt("Cannot initialize set from "+o)}),this},i.observe_=function(o,h){return $d(this,o)},i.intercept_=function(o){return Wd(this,o)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Symbol.iterator]=function(){return this.values()},kc(r,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),zr=hu("ObservableSet",T1);function uD(r){return r[Symbol.toStringTag]="SetIterator",wv(r)}var sD=Object.create(null),oD="remove",B1=(function(){function r(s,o,h,m){o===void 0&&(o=new Map),m===void 0&&(m=H2),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=s,this.values_=o,this.name_=h,this.defaultAnnotation_=m,this.keysAtom_=new mu("ObservableObject.keys"),this.isPlainObject_=ll(this.target_)}var i=r.prototype;return i.getObservablePropValue_=function(o){return this.values_.get(o).get()},i.setObservablePropValue_=function(o,h){var m=this.values_.get(o);if(m instanceof Ir)return m.set(h),!0;if(fr(this)){var p=dr(this,{type:Ci,object:this.proxy_||this.target_,name:o,newValue:h});if(!p)return null;h=p.newValue}if(h=m.prepareNewValue_(h),h!==xe.UNCHANGED){var D=jr(this),b=!1,y=D||b?{type:Ci,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:m.value_,name:o,newValue:h}:null;m.setNewValue_(h),D&&Ur(this,y)}return!0},i.get_=function(o){return xe.trackingDerivation&&!rl(this.target_,o)&&this.has_(o),this.target_[o]},i.set_=function(o,h,m){return m===void 0&&(m=!1),rl(this.target_,o)?this.values_.has(o)?this.setObservablePropValue_(o,h):m?Reflect.set(this.target_,o,h):(this.target_[o]=h,!0):this.extend_(o,{value:h,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,m)},i.has_=function(o){if(!xe.trackingDerivation)return o in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var h=this.pendingKeys_.get(o);return h||(h=new cu(o in this.target_,ig,"ObservableObject.key?",!1),this.pendingKeys_.set(o,h)),h.get()},i.make_=function(o,h){if(h===!0&&(h=this.defaultAnnotation_),h!==!1){if(!(o in this.target_)){var m;if((m=this.target_[_i])!=null&&m[o])return;gt(1,h.annotationType_,this.name_+"."+o.toString())}for(var p=this.target_;p&&p!==Qd;){var D=U0(p,o);if(D){var b=h.make_(this,o,D,p);if(b===0)return;if(b===1)break}p=Object.getPrototypeOf(p)}fD(this,h,o)}},i.extend_=function(o,h,m,p){if(p===void 0&&(p=!1),m===!0&&(m=this.defaultAnnotation_),m===!1)return this.defineProperty_(o,h,p);var D=m.extend_(this,o,h,p);return D&&fD(this,m,o),D},i.defineProperty_=function(o,h,m){m===void 0&&(m=!1),this.keysAtom_;try{hr();var p=this.delete_(o);if(!p)return p;if(fr(this)){var D=dr(this,{object:this.proxy_||this.target_,name:o,type:ou,newValue:h.value});if(!D)return null;var b=D.newValue;h.value!==b&&(h=zs({},h,{value:b}))}if(m){if(!Reflect.defineProperty(this.target_,o,h))return!1}else xi(this.target_,o,h);this.notifyPropertyAddition_(o,h.value)}finally{mr()}return!0},i.defineObservableProperty_=function(o,h,m,p){p===void 0&&(p=!1),this.keysAtom_;try{hr();var D=this.delete_(o);if(!D)return D;if(fr(this)){var b=dr(this,{object:this.proxy_||this.target_,name:o,type:ou,newValue:h});if(!b)return null;h=b.newValue}var y=cD(o),F={configurable:xe.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:y.get,set:y.set};if(p){if(!Reflect.defineProperty(this.target_,o,F))return!1}else xi(this.target_,o,F);var M=new cu(h,m,"ObservableObject.key",!1);this.values_.set(o,M),this.notifyPropertyAddition_(o,M.value_)}finally{mr()}return!0},i.defineComputedProperty_=function(o,h,m){m===void 0&&(m=!1),this.keysAtom_;try{hr();var p=this.delete_(o);if(!p)return p;if(fr(this)){var D=dr(this,{object:this.proxy_||this.target_,name:o,type:ou,newValue:void 0});if(!D)return null}h.name||(h.name="ObservableObject.key"),h.context=this.proxy_||this.target_;var b=cD(o),y={configurable:xe.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:b.get,set:b.set};if(m){if(!Reflect.defineProperty(this.target_,o,y))return!1}else xi(this.target_,o,y);this.values_.set(o,new Ir(h)),this.notifyPropertyAddition_(o,void 0)}finally{mr()}return!0},i.delete_=function(o,h){if(h===void 0&&(h=!1),this.keysAtom_,!rl(this.target_,o))return!0;if(fr(this)){var m=dr(this,{object:this.proxy_||this.target_,name:o,type:oD});if(!m)return null}try{var p;hr();var D=jr(this),b=!1,y=this.values_.get(o),F=void 0;if(!y&&(D||b)){var M;F=(M=U0(this.target_,o))==null?void 0:M.value}if(h){if(!Reflect.deleteProperty(this.target_,o))return!1}else delete this.target_[o];if(y&&(this.values_.delete(o),y instanceof cu&&(F=y.value_),v1(y)),this.keysAtom_.reportChanged(),(p=this.pendingKeys_)==null||(p=p.get(o))==null||p.set(o in this.target_),D||b){var L={type:oD,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:F,name:o};D&&Ur(this,L)}}finally{mr()}return!0},i.observe_=function(o,h){return $d(this,o)},i.intercept_=function(o){return Wd(this,o)},i.notifyPropertyAddition_=function(o,h){var m,p=jr(this),D=!1;if(p||D){var b=p||D?{type:ou,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:o,newValue:h}:null;p&&Ur(this,b)}(m=this.pendingKeys_)==null||(m=m.get(o))==null||m.set(!0),this.keysAtom_.reportChanged()},i.ownKeys_=function(){return this.keysAtom_.reportObserved(),Mc(this.target_)},i.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},r})();function Hs(r,i){var s;if(rl(r,Qe))return r;var o=(s=i?.name)!=null?s:"ObservableObject",h=new B1(r,new Map,String(o),J2(i));return Kd(r,Qe,h),r}var Kb=hu("ObservableObjectAdministration",B1);function cD(r){return sD[r]||(sD[r]={get:function(){return this[Qe].getObservablePropValue_(r)},set:function(s){return this[Qe].setObservablePropValue_(r,s)}})}function th(r){return rg(r)?Kb(r[Qe]):!1}function fD(r,i,s){var o;(o=r.target_[_i])==null||delete o[s]}var Zb=N1(0),Xb=(function(){var r=!1,i={};return Object.defineProperty(i,"0",{set:function(){r=!0}}),Object.create(i)[0]=1,r===!1})(),wp=0,R1=function(){};function Pb(r,i){Object.setPrototypeOf?Object.setPrototypeOf(r.prototype,i):r.prototype.__proto__!==void 0?r.prototype.__proto__=i:r.prototype=i}Pb(R1,Array.prototype);var Fv=(function(r){function i(o,h,m,p){var D;return m===void 0&&(m="ObservableArray"),p===void 0&&(p=!1),D=r.call(this)||this,pu(function(){var b=new Sv(m,h,p,!0);b.proxy_=D,PD(D,Qe,b),o&&o.length&&D.spliceWithArray(0,0,o),Xb&&Object.defineProperty(D,"0",Zb)}),D}$D(i,r);var s=i.prototype;return s.concat=function(){this[Qe].atom_.reportObserved();for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];return Array.prototype.concat.apply(this.slice(),m.map(function(D){return eh(D)?D.slice():D}))},s[Symbol.iterator]=function(){var o=this,h=0;return wv({next:function(){return h<o.length?{value:o[h++],done:!1}:{done:!0,value:void 0}}})},kc(i,[{key:"length",get:function(){return this[Qe].getArrayLength_()},set:function(h){this[Qe].setArrayLength_(h)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(R1);Object.entries(V0).forEach(function(r){var i=r[0],s=r[1];i!=="concat"&&Kd(Fv.prototype,i,s)});function N1(r){return{enumerable:!1,configurable:!0,get:function(){return this[Qe].get_(r)},set:function(s){this[Qe].set_(r,s)}}}function Jb(r){xi(Fv.prototype,""+r,N1(r))}function L1(r){if(r>wp){for(var i=wp;i<r+100;i++)Jb(i);wp=r}}L1(1e3);function Wb(r,i,s){return new Fv(r,i,s)}function K0(r,i){if(typeof r=="object"&&r!==null){if(eh(r))return i!==void 0&&gt(23),r[Qe].atom_;if(zr(r))return r.atom_;if(gu(r)){if(i===void 0)return r.keysAtom_;var s=r.data_.get(i)||r.hasMap_.get(i);return s||gt(25,i,Kp(r)),s}if(th(r)){if(!i)return gt(26);var o=r[Qe].values_.get(i);return o||gt(27,i,Kp(r)),o}if(_v(r)||Jd(r)||q0(r))return r}else if(Hr(r)&&q0(r[Qe]))return r[Qe];gt(28)}function $b(r,i){if(r||gt(29),_v(r)||Jd(r)||q0(r)||gu(r)||zr(r))return r;if(r[Qe])return r[Qe];gt(24,r)}function Kp(r,i){var s;if(i!==void 0)s=K0(r,i);else{if(Tc(r))return r.name;th(r)||gu(r)||zr(r)?s=$b(r):s=K0(r)}return s.name_}function pu(r){var i=Us(),s=sg(!0);hr();try{return r()}finally{mr(),og(s),il(i)}}var dD=Qd.toString;function z1(r,i,s){return s===void 0&&(s=-1),Zp(r,i,s)}function Zp(r,i,s,o,h){if(r===i)return r!==0||1/r===1/i;if(r==null||i==null)return!1;if(r!==r)return i!==i;var m=typeof r;if(m!=="function"&&m!=="object"&&typeof i!="object")return!1;var p=dD.call(r);if(p!==dD.call(i))return!1;switch(p){case"[object RegExp]":case"[object String]":return""+r==""+i;case"[object Number]":return+r!=+r?+i!=+i:+r==0?1/+r===1/i:+r==+i;case"[object Date]":case"[object Boolean]":return+r==+i;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(r)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":s>=0&&s++;break}r=hD(r),i=hD(i);var D=p==="[object Array]";if(!D){if(typeof r!="object"||typeof i!="object")return!1;var b=r.constructor,y=i.constructor;if(b!==y&&!(Hr(b)&&b instanceof b&&Hr(y)&&y instanceof y)&&"constructor"in r&&"constructor"in i)return!1}if(s===0)return!1;s<0&&(s=-1),o=o||[],h=h||[];for(var F=o.length;F--;)if(o[F]===r)return h[F]===i;if(o.push(r),h.push(i),D){if(F=r.length,F!==i.length)return!1;for(;F--;)if(!Zp(r[F],i[F],s-1,o,h))return!1}else{var M=Object.keys(r),L=M.length;if(Object.keys(i).length!==L)return!1;for(var U=0;U<L;U++){var z=M[U];if(!(rl(i,z)&&Zp(r[z],i[z],s-1,o,h)))return!1}}return o.pop(),h.pop(),!0}function hD(r){return eh(r)?r.slice():zc(r)||gu(r)||nl(r)||zr(r)?Array.from(r.entries()):r}var mD,ey=((mD=ag().Iterator)==null?void 0:mD.prototype)||{};function wv(r){return r[Symbol.iterator]=ty,Object.assign(Object.create(ey),r)}function ty(){return this}["Symbol","Map","Set"].forEach(function(r){var i=ag();typeof i[r]>"u"&&gt("MobX requires global '"+r+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:pb,extras:{getDebugName:Kp},$mobx:Qe});const Pt={auth:r=>Xt.call("auth",r,[]),channelClose:r=>Xt.call("channelClose",r,[]),channelDeleteMessage:r=>Xt.call("channelDeleteMessage",r,[]),channelDocumentUpload:r=>Xt.callFormData("channelDocumentUpload",r),channelInfo:(r,i)=>Xt.call("channelInfo",r,i),channelList:(r,i)=>Xt.call("channelList",r,i),channelMessages:(r,i)=>Xt.call("channelMessages",r,i),channelReaction:r=>Xt.call("channelReaction",r,[]),channelSendMessage:(r,i)=>Xt.call("channelSendMessage",r,i),channelVoiceUpload:r=>Xt.callFormData("channelVoiceUpload",r),fastAnswers:()=>Xt.call("fastAnswers",{},[]),joinChannel:r=>Xt.call("joinChannel",r,[]),joinChannelList:(r,i)=>Xt.call("joinChannelList",r,i),mFastAnswers:r=>Xt.call("mFastAnswers",r,[]),mode:()=>Xt.call("mode",{},[]),pinnedMessage:r=>Xt.call("pinnedMessage",r,[]),profileID:()=>Xt.call("profileID",{},[])},ny=Pt.mFastAnswers,gD=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=crypto.getRandomValues(new Uint8Array(1))[0]&15;return(r==="x"?i:i&3|8).toString(16)}),ay=(r,i)=>{const s=new TextEncoder().encode(r),o=new TextEncoder().encode(i),h=new Uint8Array(s.length);for(let m=0;m<s.length;m++)h[m]=s[m]^o[m%o.length];return btoa(String.fromCharCode(...Array.from(h)))},T0=(r,i)=>{const s=atob(r),o=new Uint8Array(s.length);for(let p=0;p<s.length;p++)o[p]=s.charCodeAt(p);const h=new TextEncoder().encode(i),m=new Uint8Array(o.length);for(let p=0;p<o.length;p++)m[p]=o[p]^h[p%h.length];return new TextDecoder().decode(m)};class Xt{static endpoints=[];static ENDPOINT_INDEX_KEY="rpcClient_endpointIndex";static currentEndpointIndex=0;static initialized=!1;static headers={};static tokenGetter=null;static tokenGetterAsync=null;static unauthorizedHandler=null;static networkErrorHandler=null;static toastHandler=null;static storage=null;static getRedirectURL(i){let s="/redirect?to="+encodeURIComponent(i);return this.getCurrentEndpointDomain()+s}static defaultExtensions=[];static setDefaultExtensions(i){this.defaultExtensions=i}static abortControllerTimeout=3e4;static setAbortControllerTimeout(i){this.abortControllerTimeout=i}static setStorage(i){this.storage=i}static useEncrypt=!1;static setUseEncrypt(i){this.useEncrypt=i}static setNetworkErrorHandler(i){this.networkErrorHandler=i}static async init(){if(!this.initialized){if(this.storage)try{const i=await this.storage.get(this.ENDPOINT_INDEX_KEY);if(i!==null){const s=parseInt(i,10);!isNaN(s)&&s>=0&&s<this.endpoints.length&&(this.currentEndpointIndex=s)}}catch(i){console.log("⚠️ Ошибка при загрузке индекса endpoint:",i)}else this.currentEndpointIndex=0;this.initialized=!0}}static async saveEndpointIndex(){if(this.storage)try{await this.storage.save(this.ENDPOINT_INDEX_KEY,this.currentEndpointIndex.toString())}catch(i){console.log("⚠️ Ошибка при сохранении индекса endpoint:",i)}}static switchToNextEndpoint(){this.endpoints.length<=1||(this.currentEndpointIndex=(this.currentEndpointIndex+1)%this.endpoints.length,this.saveEndpointIndex())}static async waitForEndpoints(){if(this.endpoints.length>0){await this.init();return}if(await new Promise(i=>setTimeout(i,1e3)),this.endpoints.length===0)throw new Error("Endpoints are not set")}static getCurrentEndpoint(){if(this.endpoints.length===0)throw new Error("Endpoints are not set");return this.endpoints[this.currentEndpointIndex]}static getCurrentEndpointDomain(){let i=this.getCurrentEndpoint().split("://")[0],o=this.getCurrentEndpoint().split("://")[1].split("/")[0];return`${i}://${o}`}static isNetworkError(i){return i.name==="AbortError"||i.name==="TimeoutError"||i.name==="TypeError"||i.message?.includes("Network request failed")||i.message?.includes("Failed to fetch")||i.message?.includes("NetworkError")}static setToken(i){this.tokenGetter=i}static setTokenAsync(i){this.tokenGetterAsync=i}static setUnauthorizedHandler(i){this.unauthorizedHandler=i}static setToast(i){this.toastHandler=i}static setEndpoints(i){this.endpoints=i,this.currentEndpointIndex=0,this.initialized=!1}static getToken(){return this.tokenGetter?this.tokenGetter():null}static async getTokenAsync(){return this.tokenGetter?this.tokenGetter():this.tokenGetterAsync?await this.tokenGetterAsync():null}static setHeaders(i){this.headers={...this.headers,...i}}static handleError(i){(i?.type==="UNAUTHORIZED"||i?.type==="UNAUTHENTICATED")&&this.unauthorizedHandler&&this.unauthorizedHandler(),i?.message&&this.toastHandler&&this.toastHandler(i.message)}static async callFormData(i,s){await this.waitForEndpoints();const o=this.getCurrentEndpoint();s.append("method",i);let h=await this.getTokenAsync();h&&s.append("token",h),s.append("timezone",Intl.DateTimeFormat().resolvedOptions().timeZone);const m=this.useEncrypt?gD():void 0;this.useEncrypt&&m&&s.append("context",m);const p={...this.headers};delete p["Content-Type"];const D=new AbortController,b=setTimeout(()=>{D.abort()},this.abortControllerTimeout);return fetch(o,{method:"POST",headers:p,body:s,signal:D.signal}).then(y=>y.json()).then(y=>{if(clearTimeout(b),this.useEncrypt&&m&&(y.result&&(y.result=JSON.parse(T0(y.result,m))),y.extensions&&(y.extensions=JSON.parse(T0(y.extensions,m)))),y?.error)throw this.handleError(y.error),y.error;return this.saveEndpointIndex(),y.result}).catch(y=>{throw clearTimeout(b),this.isNetworkError(y)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextEndpoint()),y})}static async call(i,s,o){await this.waitForEndpoints();const h=this.getCurrentEndpoint(),m=this.useEncrypt?gD():void 0;let p=o??this.defaultExtensions;const D=await this.getTokenAsync(),b={method:i,extensions:p,context:m,token:D,params:s?m?ay(JSON.stringify(s??{}),m):s:void 0,id:Date.now().toString()};console.log("🚀🚀🚀 method: ",i," RPC Endpoint: ",h),console.log("🚀🚀🚀 method: ",i," RPC Body: ",JSON.stringify(b));const y=new AbortController,F=setTimeout(()=>{y.abort()},this.abortControllerTimeout);return fetch(h,{method:"POST",headers:{"Content-Type":"application/json",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,...this.headers},body:JSON.stringify(b),signal:y.signal}).then(M=>M.json()).then(M=>{if(clearTimeout(F),this.useEncrypt&&m&&(M.result&&(M.result=JSON.parse(T0(M.result,m))),M.extensions&&(M.extensions=JSON.parse(T0(M.extensions,m)))),console.log("🍪🍪🍪 method: ",i," RPC Response: ",JSON.stringify(M)),M?.error)throw this.handleError(M.error),M.error;return this.saveEndpointIndex(),M?.extensions&&Ov.addToStore(M.extensions),M}).catch(M=>{throw clearTimeout(F),this.isNetworkError(M)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextEndpoint()),console.log("🛑🛑🛑 RPC Error: ",JSON.stringify(b)),M})}}class Ov{static storage=null;static async loadFromStorage(){if(this.storage){const i=await this.storage.get("extensionsStore");if(i)try{let s=JSON.parse(i);kp.map(s,(o,h)=>{o&&(this.store?.[h]?this.store[h]={...this.store[h],...o}:this.store[h]=o)})}catch(s){console.error("⚠️ Ошибка при загрузке extensionsStore из storage:",s)}}}static saveToStorage=kp.debounce(()=>{this.storage&&this.storage.save("extensionsStore",JSON.stringify(zb(this.store)))},1e3);static store=Sn({shmChannelMessages:{},shmChannels:{}});static addToStore(i){if(i?.shmChannelMessages&&i?.shmChannelMessages.length>0)for(const s of i?.shmChannelMessages)s?._id&&(this.store.shmChannelMessages[s._id]=s);if(i?.shmChannels&&i?.shmChannels.length>0)for(const s of i?.shmChannels)s?._id&&(this.store.shmChannels[s._id]=s);this.saveToStorage()}static shmChannelMessages(){return Object.values(this.store.shmChannelMessages)}static shmChannels(){return Object.values(this.store.shmChannels)}static shmChannelMessagesByID(i){return i?this.store.shmChannelMessages?.[i]?this.store.shmChannelMessages[i]:(console.info("📕 Extension shmChannelMessages not found by ID: "+i),null):null}static shmChannelsByID(i){return i?this.store.shmChannels?.[i]?this.store.shmChannels[i]:(console.info("📕 Extension shmChannels not found by ID: "+i),null):null}static shmChannelMessagesByIDs(i){if(!i)return[];let s=i.filter(h=>h!=null);const o=[];for(const h of s)this.store.shmChannelMessages[h]&&o.push(this.store.shmChannelMessages[h]);return o.length===0&&console.info("📕 Extensions shmChannelMessages not found by IDs: "+s.join(", ")),o}static shmChannelsByIDs(i){if(!i)return[];let s=i.filter(h=>h!=null);const o=[];for(const h of s)this.store.shmChannels[h]&&o.push(this.store.shmChannels[h]);return o.length===0&&console.info("📕 Extensions shmChannels not found by IDs: "+s.join(", ")),o}}var k0={exports:{}},j0={exports:{}},ry=j0.exports,pD;function k1(){return pD||(pD=1,(function(r,i){(function(s,o){r.exports=o()})(ry,(function(){var s=1e3,o=6e4,h=36e5,m="millisecond",p="second",D="minute",b="hour",y="day",F="week",M="month",L="quarter",U="year",z="date",q="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ie=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ce={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(be){var ae=["th","st","nd","rd"],B=be%100;return"["+be+(ae[(B-20)%10]||ae[B]||ae[0])+"]"}},me=function(be,ae,B){var K=String(be);return!K||K.length>=ae?be:""+Array(ae+1-K.length).join(B)+be},De={s:me,z:function(be){var ae=-be.utcOffset(),B=Math.abs(ae),K=Math.floor(B/60),P=B%60;return(ae<=0?"+":"-")+me(K,2,"0")+":"+me(P,2,"0")},m:function be(ae,B){if(ae.date()<B.date())return-be(B,ae);var K=12*(B.year()-ae.year())+(B.month()-ae.month()),P=ae.clone().add(K,M),ve=B-P<0,C=ae.clone().add(K+(ve?-1:1),M);return+(-(K+(B-P)/(ve?P-C:C-P))||0)},a:function(be){return be<0?Math.ceil(be)||0:Math.floor(be)},p:function(be){return{M,y:U,w:F,d:y,D:z,h:b,m:D,s:p,ms:m,Q:L}[be]||String(be||"").toLowerCase().replace(/s$/,"")},u:function(be){return be===void 0}},te="en",de={};de[te]=ce;var ge="$isDayjsObject",$=function(be){return be instanceof Ne||!(!be||!be[ge])},ye=function be(ae,B,K){var P;if(!ae)return te;if(typeof ae=="string"){var ve=ae.toLowerCase();de[ve]&&(P=ve),B&&(de[ve]=B,P=ve);var C=ae.split("-");if(!P&&C.length>1)return be(C[0])}else{var Q=ae.name;de[Q]=ae,P=Q}return!K&&P&&(te=P),P||!K&&te},Le=function(be,ae){if($(be))return be.clone();var B=typeof ae=="object"?ae:{};return B.date=be,B.args=arguments,new Ne(B)},Ee=De;Ee.l=ye,Ee.i=$,Ee.w=function(be,ae){return Le(be,{locale:ae.$L,utc:ae.$u,x:ae.$x,$offset:ae.$offset})};var Ne=(function(){function be(B){this.$L=ye(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[ge]=!0}var ae=be.prototype;return ae.parse=function(B){this.$d=(function(K){var P=K.date,ve=K.utc;if(P===null)return new Date(NaN);if(Ee.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var C=P.match(I);if(C){var Q=C[2]-1||0,fe=(C[7]||"0").substring(0,3);return ve?new Date(Date.UTC(C[1],Q,C[3]||1,C[4]||0,C[5]||0,C[6]||0,fe)):new Date(C[1],Q,C[3]||1,C[4]||0,C[5]||0,C[6]||0,fe)}}return new Date(P)})(B),this.init()},ae.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},ae.$utils=function(){return Ee},ae.isValid=function(){return this.$d.toString()!==q},ae.isSame=function(B,K){var P=Le(B);return this.startOf(K)<=P&&P<=this.endOf(K)},ae.isAfter=function(B,K){return Le(B)<this.startOf(K)},ae.isBefore=function(B,K){return this.endOf(K)<Le(B)},ae.$g=function(B,K,P){return Ee.u(B)?this[K]:this.set(P,B)},ae.unix=function(){return Math.floor(this.valueOf()/1e3)},ae.valueOf=function(){return this.$d.getTime()},ae.startOf=function(B,K){var P=this,ve=!!Ee.u(K)||K,C=Ee.p(B),Q=function(Ge,rt){var _t=Ee.w(P.$u?Date.UTC(P.$y,rt,Ge):new Date(P.$y,rt,Ge),P);return ve?_t:_t.endOf(y)},fe=function(Ge,rt){return Ee.w(P.toDate()[Ge].apply(P.toDate("s"),(ve?[0,0,0,0]:[23,59,59,999]).slice(rt)),P)},ue=this.$W,Ae=this.$M,_e=this.$D,pe="set"+(this.$u?"UTC":"");switch(C){case U:return ve?Q(1,0):Q(31,11);case M:return ve?Q(1,Ae):Q(0,Ae+1);case F:var ot=this.$locale().weekStart||0,je=(ue<ot?ue+7:ue)-ot;return Q(ve?_e-je:_e+(6-je),Ae);case y:case z:return fe(pe+"Hours",0);case b:return fe(pe+"Minutes",1);case D:return fe(pe+"Seconds",2);case p:return fe(pe+"Milliseconds",3);default:return this.clone()}},ae.endOf=function(B){return this.startOf(B,!1)},ae.$set=function(B,K){var P,ve=Ee.p(B),C="set"+(this.$u?"UTC":""),Q=(P={},P[y]=C+"Date",P[z]=C+"Date",P[M]=C+"Month",P[U]=C+"FullYear",P[b]=C+"Hours",P[D]=C+"Minutes",P[p]=C+"Seconds",P[m]=C+"Milliseconds",P)[ve],fe=ve===y?this.$D+(K-this.$W):K;if(ve===M||ve===U){var ue=this.clone().set(z,1);ue.$d[Q](fe),ue.init(),this.$d=ue.set(z,Math.min(this.$D,ue.daysInMonth())).$d}else Q&&this.$d[Q](fe);return this.init(),this},ae.set=function(B,K){return this.clone().$set(B,K)},ae.get=function(B){return this[Ee.p(B)]()},ae.add=function(B,K){var P,ve=this;B=Number(B);var C=Ee.p(K),Q=function(Ae){var _e=Le(ve);return Ee.w(_e.date(_e.date()+Math.round(Ae*B)),ve)};if(C===M)return this.set(M,this.$M+B);if(C===U)return this.set(U,this.$y+B);if(C===y)return Q(1);if(C===F)return Q(7);var fe=(P={},P[D]=o,P[b]=h,P[p]=s,P)[C]||1,ue=this.$d.getTime()+B*fe;return Ee.w(ue,this)},ae.subtract=function(B,K){return this.add(-1*B,K)},ae.format=function(B){var K=this,P=this.$locale();if(!this.isValid())return P.invalidDate||q;var ve=B||"YYYY-MM-DDTHH:mm:ssZ",C=Ee.z(this),Q=this.$H,fe=this.$m,ue=this.$M,Ae=P.weekdays,_e=P.months,pe=P.meridiem,ot=function(rt,_t,Ft,Jt){return rt&&(rt[_t]||rt(K,ve))||Ft[_t].slice(0,Jt)},je=function(rt){return Ee.s(Q%12||12,rt,"0")},Ge=pe||function(rt,_t,Ft){var Jt=rt<12?"AM":"PM";return Ft?Jt.toLowerCase():Jt};return ve.replace(ie,(function(rt,_t){return _t||(function(Ft){switch(Ft){case"YY":return String(K.$y).slice(-2);case"YYYY":return Ee.s(K.$y,4,"0");case"M":return ue+1;case"MM":return Ee.s(ue+1,2,"0");case"MMM":return ot(P.monthsShort,ue,_e,3);case"MMMM":return ot(_e,ue);case"D":return K.$D;case"DD":return Ee.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return ot(P.weekdaysMin,K.$W,Ae,2);case"ddd":return ot(P.weekdaysShort,K.$W,Ae,3);case"dddd":return Ae[K.$W];case"H":return String(Q);case"HH":return Ee.s(Q,2,"0");case"h":return je(1);case"hh":return je(2);case"a":return Ge(Q,fe,!0);case"A":return Ge(Q,fe,!1);case"m":return String(fe);case"mm":return Ee.s(fe,2,"0");case"s":return String(K.$s);case"ss":return Ee.s(K.$s,2,"0");case"SSS":return Ee.s(K.$ms,3,"0");case"Z":return C}return null})(rt)||C.replace(":","")}))},ae.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ae.diff=function(B,K,P){var ve,C=this,Q=Ee.p(K),fe=Le(B),ue=(fe.utcOffset()-this.utcOffset())*o,Ae=this-fe,_e=function(){return Ee.m(C,fe)};switch(Q){case U:ve=_e()/12;break;case M:ve=_e();break;case L:ve=_e()/3;break;case F:ve=(Ae-ue)/6048e5;break;case y:ve=(Ae-ue)/864e5;break;case b:ve=Ae/h;break;case D:ve=Ae/o;break;case p:ve=Ae/s;break;default:ve=Ae}return P?ve:Ee.a(ve)},ae.daysInMonth=function(){return this.endOf(M).$D},ae.$locale=function(){return de[this.$L]},ae.locale=function(B,K){if(!B)return this.$L;var P=this.clone(),ve=ye(B,K,!0);return ve&&(P.$L=ve),P},ae.clone=function(){return Ee.w(this.$d,this)},ae.toDate=function(){return new Date(this.valueOf())},ae.toJSON=function(){return this.isValid()?this.toISOString():null},ae.toISOString=function(){return this.$d.toISOString()},ae.toString=function(){return this.$d.toUTCString()},be})(),Ke=Ne.prototype;return Le.prototype=Ke,[["$ms",m],["$s",p],["$m",D],["$H",b],["$W",y],["$M",M],["$y",U],["$D",z]].forEach((function(be){Ke[be[1]]=function(ae){return this.$g(ae,be[0],be[1])}})),Le.extend=function(be,ae){return be.$i||(be(ae,Ne,Le),be.$i=!0),Le},Le.locale=ye,Le.isDayjs=$,Le.unix=function(be){return Le(1e3*be)},Le.en=de[te],Le.Ls=de,Le.p={},Le}))})(j0)),j0.exports}var iy=k0.exports,vD;function ly(){return vD||(vD=1,(function(r,i){(function(s,o){r.exports=o(k1())})(iy,(function(s){function o(z){return z&&typeof z=="object"&&"default"in z?z:{default:z}}var h=o(s),m="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),p="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),D="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),b="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),y=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function F(z,q,I){var ie,ce;return I==="m"?q?"минута":"минуту":z+" "+(ie=+z,ce={mm:q?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[I].split("_"),ie%10==1&&ie%100!=11?ce[0]:ie%10>=2&&ie%10<=4&&(ie%100<10||ie%100>=20)?ce[1]:ce[2])}var M=function(z,q){return y.test(q)?m[z.month()]:p[z.month()]};M.s=p,M.f=m;var L=function(z,q){return y.test(q)?D[z.month()]:b[z.month()]};L.s=b,L.f=D;var U={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:M,monthsShort:L,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:F,mm:F,h:"час",hh:F,d:"день",dd:F,M:"месяц",MM:F,y:"год",yy:F},ordinal:function(z){return z},meridiem:function(z){return z<4?"ночи":z<12?"утра":z<17?"дня":"вечера"}};return h.default.locale(U,null,!0),U}))})(k0)),k0.exports}ly();var W=ng();const X=yv(W);var uy=k1();const ul=yv(uy),jc=X.createContext({theme:"material",dark:!0,materialTouchRipple:!0,iosHoverHighlight:!0});function sy(r,i){return typeof window>"u"?W.useEffect(r,i):W.useLayoutEffect(r,i)}const j1=(r,i=!0)=>{const[s,o]=W.useState(r);return sy(()=>{if(i){if(r==="ios"||r==="material")s!==r&&o(r);else if(s==="parent"&&typeof window<"u"&&typeof document<"u"){const h=document.documentElement;h&&(h.classList.contains("ios")?o("ios"):(h.classList.contains("md")||h.classList.contains("material"))&&o("material"))}}},[r]),i?s:r},oy=r=>{const{theme:i,dark:s,materialTouchRipple:o=!0,iosHoverHighlight:h=!0,autoThemeDetection:m=!0,children:p}=r,D=j1(i,m);return X.createElement(jc.Provider,{value:{theme:D,dark:s,materialTouchRipple:o,iosHoverHighlight:h}},p)},cy=(r,i)=>{const s=new Array(r.length+i.length);for(let o=0;o<r.length;o++)s[o]=r[o];for(let o=0;o<i.length;o++)s[r.length+o]=i[o];return s},fy=(r,i)=>({classGroupId:r,validator:i}),U1=(r=new Map,i=null,s)=>({nextPart:r,validators:i,classGroupId:s}),Z0="-",DD=[],dy="arbitrary..",hy=r=>{const i=gy(r),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=r;return{getClassGroupId:p=>{if(p.startsWith("[")&&p.endsWith("]"))return my(p);const D=p.split(Z0),b=D[0]===""&&D.length>1?1:0;return H1(D,b,i)},getConflictingClassGroupIds:(p,D)=>{if(D){const b=o[p],y=s[p];return b?y?cy(y,b):b:y||DD}return s[p]||DD}}},H1=(r,i,s)=>{if(r.length-i===0)return s.classGroupId;const h=r[i],m=s.nextPart.get(h);if(m){const y=H1(r,i+1,m);if(y)return y}const p=s.validators;if(p===null)return;const D=i===0?r.join(Z0):r.slice(i).join(Z0),b=p.length;for(let y=0;y<b;y++){const F=p[y];if(F.validator(D))return F.classGroupId}},my=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=r.slice(1,-1),s=i.indexOf(":"),o=i.slice(0,s);return o?dy+o:void 0})(),gy=r=>{const{theme:i,classGroups:s}=r;return py(s,i)},py=(r,i)=>{const s=U1();for(const o in r){const h=r[o];Mv(h,s,o,i)}return s},Mv=(r,i,s,o)=>{const h=r.length;for(let m=0;m<h;m++){const p=r[m];vy(p,i,s,o)}},vy=(r,i,s,o)=>{if(typeof r=="string"){Dy(r,i,s);return}if(typeof r=="function"){Ay(r,i,s,o);return}by(r,i,s,o)},Dy=(r,i,s)=>{const o=r===""?i:I1(i,r);o.classGroupId=s},Ay=(r,i,s,o)=>{if(yy(r)){Mv(r(o),i,s,o);return}i.validators===null&&(i.validators=[]),i.validators.push(fy(s,r))},by=(r,i,s,o)=>{const h=Object.entries(r),m=h.length;for(let p=0;p<m;p++){const[D,b]=h[p];Mv(b,I1(i,D),s,o)}},I1=(r,i)=>{let s=r;const o=i.split(Z0),h=o.length;for(let m=0;m<h;m++){const p=o[m];let D=s.nextPart.get(p);D||(D=U1(),s.nextPart.set(p,D)),s=D}return s},yy=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,_y=r=>{if(r<1)return{get:()=>{},set:()=>{}};let i=0,s=Object.create(null),o=Object.create(null);const h=(m,p)=>{s[m]=p,i++,i>r&&(i=0,o=s,s=Object.create(null))};return{get(m){let p=s[m];if(p!==void 0)return p;if((p=o[m])!==void 0)return h(m,p),p},set(m,p){m in s?s[m]=p:h(m,p)}}},Xp="!",AD=":",xy=[],bD=(r,i,s,o,h)=>({modifiers:r,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:o,isExternal:h}),Ey=r=>{const{prefix:i,experimentalParseClassName:s}=r;let o=h=>{const m=[];let p=0,D=0,b=0,y;const F=h.length;for(let q=0;q<F;q++){const I=h[q];if(p===0&&D===0){if(I===AD){m.push(h.slice(b,q)),b=q+1;continue}if(I==="/"){y=q;continue}}I==="["?p++:I==="]"?p--:I==="("?D++:I===")"&&D--}const M=m.length===0?h:h.slice(b);let L=M,U=!1;M.endsWith(Xp)?(L=M.slice(0,-1),U=!0):M.startsWith(Xp)&&(L=M.slice(1),U=!0);const z=y&&y>b?y-b:void 0;return bD(m,U,L,z)};if(i){const h=i+AD,m=o;o=p=>p.startsWith(h)?m(p.slice(h.length)):bD(xy,!1,p,void 0,!0)}if(s){const h=o;o=m=>s({className:m,parseClassName:h})}return o},Cy=r=>{const i=new Map;return r.orderSensitiveModifiers.forEach((s,o)=>{i.set(s,1e6+o)}),s=>{const o=[];let h=[];for(let m=0;m<s.length;m++){const p=s[m],D=p[0]==="[",b=i.has(p);D||b?(h.length>0&&(h.sort(),o.push(...h),h=[]),o.push(p)):h.push(p)}return h.length>0&&(h.sort(),o.push(...h)),o}},Sy=r=>({cache:_y(r.cacheSize),parseClassName:Ey(r),sortModifiers:Cy(r),...hy(r)}),Fy=/\s+/,wy=(r,i)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:h,sortModifiers:m}=i,p=[],D=r.trim().split(Fy);let b="";for(let y=D.length-1;y>=0;y-=1){const F=D[y],{isExternal:M,modifiers:L,hasImportantModifier:U,baseClassName:z,maybePostfixModifierPosition:q}=s(F);if(M){b=F+(b.length>0?" "+b:b);continue}let I=!!q,ie=o(I?z.substring(0,q):z);if(!ie){if(!I){b=F+(b.length>0?" "+b:b);continue}if(ie=o(z),!ie){b=F+(b.length>0?" "+b:b);continue}I=!1}const ce=L.length===0?"":L.length===1?L[0]:m(L).join(":"),me=U?ce+Xp:ce,De=me+ie;if(p.indexOf(De)>-1)continue;p.push(De);const te=h(ie,I);for(let de=0;de<te.length;++de){const ge=te[de];p.push(me+ge)}b=F+(b.length>0?" "+b:b)}return b},Oy=(...r)=>{let i=0,s,o,h="";for(;i<r.length;)(s=r[i++])&&(o=G1(s))&&(h&&(h+=" "),h+=o);return h},G1=r=>{if(typeof r=="string")return r;let i,s="";for(let o=0;o<r.length;o++)r[o]&&(i=G1(r[o]))&&(s&&(s+=" "),s+=i);return s},My=(r,...i)=>{let s,o,h,m;const p=b=>{const y=i.reduce((F,M)=>M(F),r());return s=Sy(y),o=s.cache.get,h=s.cache.set,m=D,D(b)},D=b=>{const y=o(b);if(y)return y;const F=wy(b,s);return h(b,F),F};return m=p,(...b)=>m(Oy(...b))},Ty=[],Cn=r=>{const i=s=>s[r]||Ty;return i.isThemeGetter=!0,i},Y1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,q1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,By=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ry=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ny=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ly=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ky=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,uu=r=>By.test(r),at=r=>!!r&&!Number.isNaN(Number(r)),su=r=>!!r&&Number.isInteger(Number(r)),Op=r=>r.endsWith("%")&&at(r.slice(0,-1)),tl=r=>Ry.test(r),V1=()=>!0,jy=r=>Ny.test(r)&&!Ly.test(r),Tv=()=>!1,Uy=r=>zy.test(r),Hy=r=>ky.test(r),Iy=r=>!Oe(r)&&!Me(r),Gy=r=>vu(r,Z1,Tv),Oe=r=>Y1.test(r),Ns=r=>vu(r,X1,jy),yD=r=>vu(r,Py,at),Yy=r=>vu(r,J1,V1),qy=r=>vu(r,P1,Tv),_D=r=>vu(r,Q1,Tv),Vy=r=>vu(r,K1,Hy),B0=r=>vu(r,W1,Uy),Me=r=>q1.test(r),kd=r=>Is(r,X1),Qy=r=>Is(r,P1),xD=r=>Is(r,Q1),Ky=r=>Is(r,Z1),Zy=r=>Is(r,K1),R0=r=>Is(r,W1,!0),Xy=r=>Is(r,J1,!0),vu=(r,i,s)=>{const o=Y1.exec(r);return o?o[1]?i(o[1]):s(o[2]):!1},Is=(r,i,s=!1)=>{const o=q1.exec(r);return o?o[1]?i(o[1]):s:!1},Q1=r=>r==="position"||r==="percentage",K1=r=>r==="image"||r==="url",Z1=r=>r==="length"||r==="size"||r==="bg-size",X1=r=>r==="length",Py=r=>r==="number",P1=r=>r==="family-name",J1=r=>r==="number"||r==="weight",W1=r=>r==="shadow",Jy=()=>{const r=Cn("color"),i=Cn("font"),s=Cn("text"),o=Cn("font-weight"),h=Cn("tracking"),m=Cn("leading"),p=Cn("breakpoint"),D=Cn("container"),b=Cn("spacing"),y=Cn("radius"),F=Cn("shadow"),M=Cn("inset-shadow"),L=Cn("text-shadow"),U=Cn("drop-shadow"),z=Cn("blur"),q=Cn("perspective"),I=Cn("aspect"),ie=Cn("ease"),ce=Cn("animate"),me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],De=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],te=()=>[...De(),Me,Oe],de=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto","contain","none"],$=()=>[Me,Oe,b],ye=()=>[uu,"full","auto",...$()],Le=()=>[su,"none","subgrid",Me,Oe],Ee=()=>["auto",{span:["full",su,Me,Oe]},su,Me,Oe],Ne=()=>[su,"auto",Me,Oe],Ke=()=>["auto","min","max","fr",Me,Oe],be=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...$()],K=()=>[uu,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],P=()=>[uu,"screen","full","dvw","lvw","svw","min","max","fit",...$()],ve=()=>[uu,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],C=()=>[r,Me,Oe],Q=()=>[...De(),xD,_D,{position:[Me,Oe]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",Ky,Gy,{size:[Me,Oe]}],Ae=()=>[Op,kd,Ns],_e=()=>["","none","full",y,Me,Oe],pe=()=>["",at,kd,Ns],ot=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ge=()=>[at,Op,xD,_D],rt=()=>["","none",z,Me,Oe],_t=()=>["none",at,Me,Oe],Ft=()=>["none",at,Me,Oe],Jt=()=>[at,Me,Oe],Dt=()=>[uu,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[tl],breakpoint:[tl],color:[V1],container:[tl],"drop-shadow":[tl],ease:["in","out","in-out"],font:[Iy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[tl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[tl],shadow:[tl],spacing:["px",at],text:[tl],"text-shadow":[tl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",uu,Oe,Me,I]}],container:["container"],columns:[{columns:[at,Oe,Me,D]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:te()}],overflow:[{overflow:de()}],"overflow-x":[{"overflow-x":de()}],"overflow-y":[{"overflow-y":de()}],overscroll:[{overscroll:ge()}],"overscroll-x":[{"overscroll-x":ge()}],"overscroll-y":[{"overscroll-y":ge()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ye()}],"inset-x":[{"inset-x":ye()}],"inset-y":[{"inset-y":ye()}],start:[{"inset-s":ye(),start:ye()}],end:[{"inset-e":ye(),end:ye()}],"inset-bs":[{"inset-bs":ye()}],"inset-be":[{"inset-be":ye()}],top:[{top:ye()}],right:[{right:ye()}],bottom:[{bottom:ye()}],left:[{left:ye()}],visibility:["visible","invisible","collapse"],z:[{z:[su,"auto",Me,Oe]}],basis:[{basis:[uu,"full","auto",D,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[at,uu,"auto","initial","none",Oe]}],grow:[{grow:["",at,Me,Oe]}],shrink:[{shrink:["",at,Me,Oe]}],order:[{order:[su,"first","last","none",Me,Oe]}],"grid-cols":[{"grid-cols":Le()}],"col-start-end":[{col:Ee()}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":Le()}],"row-start-end":[{row:Ee()}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ke()}],"auto-rows":[{"auto-rows":Ke()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...be(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...be()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":be()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[D,"screen",...K()]}],"min-w":[{"min-w":[D,"screen","none",...K()]}],"max-w":[{"max-w":[D,"screen","none","prose",{screen:[p]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",s,kd,Ns]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Xy,Yy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Op,Oe]}],"font-family":[{font:[Qy,qy,i]}],"font-features":[{"font-features":[Oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[h,Me,Oe]}],"line-clamp":[{"line-clamp":[at,"none",Me,yD]}],leading:[{leading:[m,...$()]}],"list-image":[{"list-image":["none",Me,Oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Me,Oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ot(),"wavy"]}],"text-decoration-thickness":[{decoration:[at,"from-font","auto",Me,Ns]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[at,"auto",Me,Oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Me,Oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Me,Oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},su,Me,Oe],radial:["",Me,Oe],conic:[su,Me,Oe]},Zy,Vy]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:Ae()}],"gradient-via-pos":[{via:Ae()}],"gradient-to-pos":[{to:Ae()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:_e()}],"rounded-s":[{"rounded-s":_e()}],"rounded-e":[{"rounded-e":_e()}],"rounded-t":[{"rounded-t":_e()}],"rounded-r":[{"rounded-r":_e()}],"rounded-b":[{"rounded-b":_e()}],"rounded-l":[{"rounded-l":_e()}],"rounded-ss":[{"rounded-ss":_e()}],"rounded-se":[{"rounded-se":_e()}],"rounded-ee":[{"rounded-ee":_e()}],"rounded-es":[{"rounded-es":_e()}],"rounded-tl":[{"rounded-tl":_e()}],"rounded-tr":[{"rounded-tr":_e()}],"rounded-br":[{"rounded-br":_e()}],"rounded-bl":[{"rounded-bl":_e()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-bs":[{"border-bs":pe()}],"border-w-be":[{"border-be":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ot(),"hidden","none"]}],"divide-style":[{divide:[...ot(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...ot(),"none","hidden"]}],"outline-offset":[{"outline-offset":[at,Me,Oe]}],"outline-w":[{outline:["",at,kd,Ns]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",F,R0,B0]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",M,R0,B0]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[at,Ns]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",L,R0,B0]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[at,Me,Oe]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[at]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ge()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":Ge()}],"mask-image-t-to-pos":[{"mask-t-to":Ge()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":Ge()}],"mask-image-r-to-pos":[{"mask-r-to":Ge()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":Ge()}],"mask-image-b-to-pos":[{"mask-b-to":Ge()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":Ge()}],"mask-image-l-to-pos":[{"mask-l-to":Ge()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":Ge()}],"mask-image-x-to-pos":[{"mask-x-to":Ge()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":Ge()}],"mask-image-y-to-pos":[{"mask-y-to":Ge()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[Me,Oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ge()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":De()}],"mask-image-conic-pos":[{"mask-conic":[at]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ge()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Me,Oe]}],filter:[{filter:["","none",Me,Oe]}],blur:[{blur:rt()}],brightness:[{brightness:[at,Me,Oe]}],contrast:[{contrast:[at,Me,Oe]}],"drop-shadow":[{"drop-shadow":["","none",U,R0,B0]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",at,Me,Oe]}],"hue-rotate":[{"hue-rotate":[at,Me,Oe]}],invert:[{invert:["",at,Me,Oe]}],saturate:[{saturate:[at,Me,Oe]}],sepia:[{sepia:["",at,Me,Oe]}],"backdrop-filter":[{"backdrop-filter":["","none",Me,Oe]}],"backdrop-blur":[{"backdrop-blur":rt()}],"backdrop-brightness":[{"backdrop-brightness":[at,Me,Oe]}],"backdrop-contrast":[{"backdrop-contrast":[at,Me,Oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",at,Me,Oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[at,Me,Oe]}],"backdrop-invert":[{"backdrop-invert":["",at,Me,Oe]}],"backdrop-opacity":[{"backdrop-opacity":[at,Me,Oe]}],"backdrop-saturate":[{"backdrop-saturate":[at,Me,Oe]}],"backdrop-sepia":[{"backdrop-sepia":["",at,Me,Oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Me,Oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[at,"initial",Me,Oe]}],ease:[{ease:["linear","initial",ie,Me,Oe]}],delay:[{delay:[at,Me,Oe]}],animate:[{animate:["none",ce,Me,Oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,Me,Oe]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:_t()}],"rotate-x":[{"rotate-x":_t()}],"rotate-y":[{"rotate-y":_t()}],"rotate-z":[{"rotate-z":_t()}],scale:[{scale:Ft()}],"scale-x":[{"scale-x":Ft()}],"scale-y":[{"scale-y":Ft()}],"scale-z":[{"scale-z":Ft()}],"scale-3d":["scale-3d"],skew:[{skew:Jt()}],"skew-x":[{"skew-x":Jt()}],"skew-y":[{"skew-y":Jt()}],transform:[{transform:[Me,Oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:te()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Dt()}],"translate-x":[{"translate-x":Dt()}],"translate-y":[{"translate-y":Dt()}],"translate-z":[{"translate-z":Dt()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Me,Oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Me,Oe]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[at,kd,Ns,yD]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Wy=My(Jy);function $y(...r){const i=[];r.forEach(o=>{typeof o=="object"&&o.constructor===Object?Object.keys(o).forEach(h=>{o[h]&&i.push(h)}):Array.isArray(o)?i.push(...o):typeof o=="function"?i.push(o()):o&&o.value?i.push(o.value):o&&i.push(o)});const s=[];return i.forEach(o=>{s.indexOf(o)<0&&s.push(o)}),s.filter(o=>!!o).join(" ")}function S(...r){return Wy($y(...r))}const e_=(r,i,s)=>{const{safeAreas:o}=r;return S(i==="ios"&&"k-ios",i==="material"&&"k-material","k-app w-full h-full min-h-screen relative",o&&"safe-areas",s)};function Pp(){return Pp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Pp.apply(null,arguments)}const $1=r=>{const{component:i="div",className:s,theme:o="material",dark:h=!0,materialTouchRipple:m=!0,iosHoverHighlight:p=!0,safeAreas:D=!0,ref:b,children:y,...F}=r,M=W.useRef(null),L=i,U={...F},z=j1(o),q=e_({...r,safeAreas:D},z,s);return X.createElement(oy,{theme:z,dark:h,materialTouchRipple:m,iosHoverHighlight:p,autoThemeDetection:!1},X.createElement(L,Pp({ref:I=>{M.current=I,b&&typeof b=="function"?b(I):b&&(b.current=I)},className:q},U),y))};$1.displayName="App";const Mp=(r,i,s)=>{if(typeof r=="string")return r;const o=[r[i],r.common];return s&&r[s]&&(typeof r[s]=="string"?o.push(r[s]):o.push(r[s].common,r[s][i])),o},t_=(r,i,s)=>{const o={},h=["common","ios","material"];return Object.keys(r).forEach(m=>{const p=m==="base"?s:"";if(!(typeof r[m]!="string"&&Object.keys(r[m]).filter(y=>!h.includes(y)).length>0)){o[m]=S(Mp(r[m],i),p);return}o[m]={};const b=Mp(r[m],i);o[m].default=S(b,p),Object.keys(r[m]).filter(y=>!h.includes(y)).forEach(y=>{o[m][y]=S(b,Mp(r[m],i,y),p)})}),o},Fn=({ios:r,material:i}={})=>{let o=W.useContext(jc).theme||"ios";return r&&(o="ios"),i&&(o="material"),(h,m)=>t_(h,o,m)},n_=(r,i)=>({base:{common:"",ios:S("bg-ios-light-glass shadow-ios-light-glass backdrop-blur-lg touch-none",i("dark:bg-ios-dark-glass dark:shadow-ios-dark-glass")),material:""}}),Ba=({ios:r,material:i}={})=>{let o=W.useContext(jc).theme||"ios";return r&&(o="ios"),i&&(o="material"),o},Nn=()=>{const r=W.useContext(jc);return i=>r.dark?i:""},a_=r=>{requestAnimationFrame(()=>{requestAnimationFrame(r)})},r_=({getEl:r,zIndex:i=10,opacity:s=1,offset:o=1,enabled:h=!0,data:m={}})=>{const p=()=>typeof h=="function"?h():h,D=()=>{const z=r();if(z&&m.elScale){m.elScale=!1,z.style.scale="";const q=()=>{z.style.transitionDuration="",z.style.transitionTimingFunction="",z.removeEventListener("transitionend",q)};z.addEventListener("transitionend",q)}if(m.lightElWrap){const q=m.lightElWrap;q.style.opacity==="0"?q.remove():(q.addEventListener("transitionend",()=>{q.remove()}),q.style.opacity=0)}},b=z=>{if(m.lightEl){const{x:q,y:I}=z,ie=q-m.rect.x,ce=I-m.rect.y;m.lightEl.style.transform=`translate3d(${ie}px, ${ce}px, 0)`}},y=z=>{if(!p())return;const q=m,I=r();q.rect=I.getBoundingClientRect();const ie=document.createElement("span");ie.className="rounded-[inherit]",ie.style=`left: ${o}px; top: ${o}px; right: ${o}px; bottom: ${o}px;transition-duration: 300ms; opacity: 0; position: absolute; overflow: hidden; pointer-events: none`;const ce=document.createElement("span"),{width:me,height:De}=q.rect,te=(me**2+De**2)**.5;ce.style.position="absolute",ce.style.zIndex=i,ce.style.width=`${te*2}px`,ce.style.left=`${-te}px`,ce.style.height=`${te*2}px`,ce.style.top=`${-te}px`,ce.style.borderRadius="50%";const de="var(--color-ios-hover-highlight)";if(ce.style.backgroundImage=`radial-gradient(circle at center, color-mix(in oklab, ${de} ${s*100}%, transparent), transparent 50%)`,ce.style.pointerEvents="none",q.lightEl=ce,q.lightElWrap=ie,b(z),ie.append(ce),I.append(ie),z.pointerType!=="mouse"&&z.pointerType!=="mouse"){q.elScale=!0;let ge=1.25;(q.rect.width>60||q.rect.height>60)&&(ge=1.05),I.style.scale=ge,I.style.transitionDuration="300ms",I.style.transitionTimingFunction="ease-in-out"}a_(()=>{ie.style.opacity=1})},F=z=>{p()&&b(z)},M=z=>{D()};return{removeHoverHighlight:D,attachEvents:()=>{const z=r();z&&(z.addEventListener("pointerenter",y),z.addEventListener("pointermove",F),z.addEventListener("pointerleave",M))},detachEvents:()=>{const z=r();z&&(z.removeEventListener("pointerenter",y),z.removeEventListener("pointermove",F),z.removeEventListener("pointerleave",M))}}};function Jp(){return Jp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Jp.apply(null,arguments)}const Rc=r=>{const{component:i="div",className:s,highlight:o=!0,ios:h,material:m,children:p,ref:D,...b}=r,y=W.useRef(null),F=i,M={...b},L=Ba(),U=Fn({ios:h,material:m}),z=Nn(),{iosHoverHighlight:q}=W.useContext(jc),I=W.useRef({}),{attachEvents:ie,detachEvents:ce}=r_({getEl:()=>y.current,enabled:o&&L==="ios"&&q,data:I.current}),me=U(n_({...r},z),s);return W.useEffect(()=>(ie(),()=>ce())),X.createElement(F,Jp({ref:De=>{D&&typeof D=="function"?D(De):D&&(D.current=De),y.current=De},className:me.base},M),p)};Rc.displayName="Glass";function Ln(r){if(!r||typeof r!="object")return{};const i={};return Object.keys(r).forEach(s=>{r[s]!=null&&(i[s]=r[s])}),i}class i_{constructor(i,s,o){const h=this;if(!i)return;h.el=i;const{left:m,top:p,width:D,height:b}=i.getBoundingClientRect(),y={x:s-m,y:o-p};let F=Math.max((b**2+D**2)**.5,48);const M=i.classList.contains("k-touch-ripple-inset");M&&(F=Math.max(Math.min(D,b),48));const L=typeof window<"u"&&window.getComputedStyle(i,null).getPropertyValue("overflow")==="hidden";if(!M&&L){const z=((y.x-D/2)**2+(y.y-b/2)**2)**.5,q=(F/2+z)/(F/2);h.rippleTransform=`translate3d(0px, 0px, 0) scale(${q})`}else h.rippleTransform=`translate3d(${-y.x+D/2}px, ${-y.y+b/2}px, 0) scale(1)`;h.rippleWaveEl=document.createElement("span"),h.rippleWaveEl.classList.add("k-touch-ripple-wave"),h.rippleWaveEl.style=`
      width: ${F}px;
      height: ${F}px;
      margin-top:-${F/2}px;
      margin-left:-${F/2}px;
      left:${y.x}px;
      top:${y.y}px; --k-ripple-transform: ${h.rippleTransform}`,i.insertAdjacentElement("afterbegin",h.rippleWaveEl);const U=()=>{h.rippleWaveEl.removeEventListener("animationend",U),h.rippleWaveEl&&(h.rippleWaveEl.classList.contains("k-touch-ripple-wave-out")||(h.rippleWaveEl.classList.add("k-touch-ripple-wave-in"),h.shouldBeRemoved&&h.out()))};return h.rippleWaveEl.addEventListener("animationend",U),h}destroy(){}out(){const i=this,{rippleWaveEl:s}=this;clearTimeout(i.removeTimeout),s.classList.add("k-touch-ripple-wave-out"),i.removeTimeout=setTimeout(()=>{i.destroy()},300);const o=()=>{i.rippleWaveEl.removeEventListener("animationend",o),clearTimeout(i.removeTimeout),i.destroy()};i.rippleWaveEl.addEventListener("animationend",o)}remove(){const i=this;i.shouldBeRemoved||(i.removeTimeout=setTimeout(()=>{i.destroy()},400),i.shouldBeRemoved=!0,i.rippleWaveEl.classList.contains("k-touch-ripple-wave-in")&&i.out())}}const Bv=(r,i,s)=>{const o=W.useContext(jc);s||(s=r);const h=W.useRef(null),m=()=>{h.current&&h.current.remove(),h.current=null},p=U=>{h.current=new i_(r.current,U.pageX,U.pageY)},D=()=>{m()},b=()=>{m()},y=()=>{if(!o.materialTouchRipple)return;const U=s.current;U.addEventListener("pointerdown",p),U.addEventListener("pointermove",D),U.addEventListener("pointerup",b),U.addEventListener("pointercancel",b),U.addEventListener("contextmenu",b)},F=()=>{const U=s.current;U.removeEventListener("pointerdown",p),U.removeEventListener("pointermove",D),U.removeEventListener("pointerup",b),U.removeEventListener("pointercancel",b),U.removeEventListener("contextmenu",b)},M=()=>{!s||!s.current||!i||y()},L=()=>{!s||!s.current||!i||F()};W.useEffect(()=>(M(),()=>L()))},l_=(r,i)=>({base:{common:`k-badge ${i.text} ${i.bg} inline-flex items-center justify-center rounded-full leading-none`,ios:"font-semibold",material:"font-medium",sm:"text-2xs min-w-4 min-h-4 px-0.5",md:"text-xs min-w-5 min-h-5 px-1.5 py-0.5"}}),u_=(r={})=>({bg:"bg-primary",text:"text-white",...Ln(r)});function Wp(){return Wp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Wp.apply(null,arguments)}const eA=r=>{const{component:i="span",className:s,colors:o,small:h,ios:m,material:p,children:D,ref:b,...y}=r,F=W.useRef(null),M=i,L={...y},U=Fn({ios:m,material:p}),z=u_(o),q=h?"sm":"md",I=U(l_(r,z),s);return X.createElement(M,Wp({ref:ie=>{F.current=ie,b&&typeof b=="function"?b(ie):b&&(b.current=ie)},className:I.base[q]},L),D)};eA.displayName="Badge";const s_=(r,i)=>{const{inset:s,nested:o,strong:h,outline:m}=r;return{base:{common:S("k-block text-sm z-10 relative",!s&&!o&&m&&"hairline-t hairline-b",s&&m&&"border",s&&"px-4",!s&&"pl-safe-4 pr-safe-4",!o&&"my-8",(h||m)&&"py-4"),ios:S(i.textIos,h&&i.strongBgIos,s&&m&&i.outlineIos),material:S(i.textMaterial,h&&i.strongBgMaterial,s&&m&&i.outlineMaterial)},inset:{common:"ml-safe-4 mr-safe-4 overflow-hidden",ios:"rounded-3xl",material:"rounded-2xl"}}},o_=(r={},i)=>({outlineIos:S("border-black/20",i("dark:border-white/15")),outlineMaterial:S("border-md-light-outline",i("border-md-dark-outline")),strongBgIos:S("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),strongBgMaterial:S("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),textIos:"",textMaterial:S("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),...Ln(r)}),Rv=(r,i,s)=>{const o={};return Object.keys(i).forEach(h=>{o[h]=typeof i[h]>"u"?r==="ios"?s[`${h}Ios`]:s[`${h}Material`]:i[h]}),o};function $p(){return $p=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},$p.apply(null,arguments)}const Nv=r=>{const{component:i="div",className:s,colors:o,inset:h,insetIos:m,insetMaterial:p,strong:D,strongIos:b,strongMaterial:y,outline:F,outlineIos:M,outlineMaterial:L,nested:U,ios:z,material:q,ref:I,children:ie,...ce}=r,me=W.useRef(null),De=i,te={...ce},de=Ba({ios:z,material:q}),ge=Fn({ios:z,material:q}),$=Nn(),ye=o_(o,$),{strong:Le,outline:Ee,inset:Ne}=Rv(de,{strong:D,outline:F,inset:h},r),Ke=ge(s_({...r,inset:Ne,strong:Le,outline:Ee},ye)),be=S(Ke.base,Ne&&Ke.inset,s);return X.createElement(De,$p({ref:ae=>{me.current=ae,I&&typeof I=="function"?I(ae):I&&(I.current=ae)},className:be},te),ie)};Nv.displayName="Block";function ev(){return ev=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},ev.apply(null,arguments)}const c_=r=>X.createElement("svg",ev({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"14",viewBox:"0 0 12 20",fill:"currentcolor"},r),X.createElement("path",{d:"M11.518406,10.5648622 C11.4831857,10.6163453 11.4426714,10.6653692 11.3968592,10.7111814 L2.5584348,19.5496058 C1.9753444,20.1326962 1.03186648,20.1345946 0.44199608,19.5447242 C-0.14379032,18.9589377 -0.14922592,18.0146258 0.43711448,17.4282854 L7.87507783,9.9903221 L0.4431923,2.5584366 C-0.1398981,1.9753462 -0.1417965,1.0318683 0.448074,0.4419979 C1.0338604,-0.1437886 1.9781723,-0.1492241 2.56451268,0.4371163 L11.4029371,9.2755407 C11.7556117,9.6282153 11.7969345,10.1725307 11.518406,10.5648622 Z"})),f_=(r,i,s)=>{const{inline:o,segmented:h,segmentedStrong:m,segmentedActive:p,disabled:D}=r;return{base:{common:S("k-button flex text-center justify-center items-center appearance-none py-1 transition-colors focus:outline-none cursor-pointer select-none overflow-hidden z-10 relative",o?"inline-flex":"w-full flex",D&&"pointer-events-none",m&&p&&"k-segmented-strong-button-active"),ios:"duration-100 font-medium px-2",material:"duration-300 font-medium px-4",square:{ios:h&&!m?"first:rounded-s last:rounded-e":"rounded",material:h&&!m?"first:rounded-lg-s last:rounded-lg-e":"rounded-lg"},rounded:h&&!m?"":"rounded-full"},style:{fill:{common:S(D&&S(i.disabledBg,i.disabledText)),ios:S(D?S(i.disabledBg,i.disabledText):`${i.fillTextIos} ${i.fillBgIos}`),material:S(D?S(i.disabledBg,i.disabledText):S(i.fillTextMaterial,i.fillBgMaterial,i.fillTouchRipple))},outline:{common:S(D?S(i.disabledText,i.disabledBorder):i.touchRipple),ios:S(!h&&"border-2",!D&&!h&&i.outlineBorderIos,!D&&S(i.textIos,i.outlineBgIos)),material:S(!h&&"border",!D&&!h&&i.outlineBorderMaterial,!D&&S(i.textMaterial,i.outlineBgMaterial))},clear:{common:S(D?i.disabledText:i.touchRipple),ios:!D&&S(i.textIos,i.clearBgIos),material:!D&&S(i.textMaterial,i.clearBgMaterial)},tonal:{common:D?S(i.disabledBg,i.disabledText):S(i.touchRipple),ios:!D&&S(i.tonalTextIos,i.tonalBgIos),material:!D&&S(i.tonalTextMaterial,i.tonalBgMaterial)},segmentedStrong:S("active:bg-black/10",s("dark:active:bg-white/5 dark:touch-ripple-white")),segmentedStrongActive:{ios:S("duration-200",i.segmentedStrongTextIos),material:S("duration-0",i.segmentedStrongTextMaterial)}},size:{small:{ios:"text-sm h-7",material:"text-sm h-8"},medium:{common:"text-sm",ios:"h-8.5 text-[15px]",material:"h-10"},large:{ios:"h-12 text-[17px] font-semibold",material:"h-12"}},raised:"shadow active:shadow-lg"}},d_=(r={},i)=>({textIos:"text-primary",textMaterial:S("text-md-light-primary","dark:text-md-dark-primary"),fillTextIos:S("text-white"),fillTextMaterial:S("text-md-light-on-primary",i("dark:text-md-dark-on-primary")),fillBgIos:"bg-primary active:bg-ios-primary-shade",fillBgMaterial:S("bg-md-light-primary",i("dark:bg-md-dark-primary")),fillTouchRipple:S("touch-ripple-white","dark:touch-ripple-primary"),clearBgIos:"bg-transparent active:bg-primary/15",clearBgMaterial:"bg-transparent",outlineBgIos:"bg-transparent active:bg-primary/15",outlineBgMaterial:"bg-transparent",outlineBorderIos:"border-primary",outlineBorderMaterial:S("border-md-light-outline",i("dark:border-md-dark-outline")),segmentedStrongTextIos:"text-black",segmentedStrongTextMaterial:"",tonalBgIos:"bg-primary/15 active:bg-primary/25",tonalBgMaterial:S("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),tonalTextIos:"text-primary",tonalTextMaterial:S("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),touchRipple:"touch-ripple-primary",disabledText:S("text-black/30",i("dark:text-white/30")),disabledBg:S("bg-black/10",i("dark:bg-white/10")),disabledBorder:S("border-black/10",i("dark:border-white/10")),...Ln(r)});function tv(){return tv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},tv.apply(null,arguments)}const kr=r=>{const{component:i="button",className:s,colors:o,ios:h,material:m,disabled:p,href:D,outline:b,outlineIos:y,outlineMaterial:F,clear:M,clearIos:L,clearMaterial:U,tonal:z,tonalIos:q,tonalMaterial:I,rounded:ie,roundedIos:ce,roundedMaterial:me,small:De,smallIos:te,smallMaterial:de,large:ge,largeIos:$,largeMaterial:ye,raised:Le,raisedIos:Ee,raisedMaterial:Ne,inline:Ke,segmented:be,segmentedStrong:ae,segmentedActive:B,children:K,ref:P,...ve}=r,C=W.useRef(null);let Q=i;typeof r.component>"u"&&(D||D==="")&&(Q="a");const fe={href:D,...ve},ue=Ba({ios:h,material:m}),Ae=Fn({ios:h,material:m}),_e=Nn();Bv(C,ue==="material");const pe=Rv(ue,{outline:b,clear:M,tonal:z,rounded:ie,small:De,large:ge,raised:Le},r),ot=pe.large?"large":pe.small?"small":"medium";let je=pe.outline?"outline":pe.clear||be&&!B?"clear":pe.tonal?"tonal":"fill";ae&&(je="segmentedStrong"),ae&&B&&(je="segmentedStrongActive");const Ge=d_(o,_e),rt=Ae(f_({...r,...pe},Ge,_e)),_t=S(rt.base[pe.rounded?"rounded":"square"],rt.style[je],rt.size[ot],pe.raised&&rt.raised,s);return X.createElement(Q,tv({ref:Ft=>{C.current=Ft,P&&typeof P=="function"?P(Ft):P&&(P.current=Ft)},className:_t,disabled:p,role:"button",tabIndex:"0"},fe),K)};kr.displayName="Button";const h_=(r,i)=>({base:{common:"k-chip text-sm inline-flex items-center justify-center align-middle rounded-full px-3",ios:"rounded-full h-7",material:"rounded-lg h-8 font-medium",fill:{ios:S(i.fillBg||i.fillBgIos,i.fillText||i.fillTextIos),material:S(i.fillBg||i.fillBgMaterial,i.fillText||i.fillTextMaterial)},outline:{common:"border",ios:S(i.outlineText||i.outlineTextIos,i.outlineBorder||i.outlineBorderIos),material:S(i.outlineText||i.outlineTextMaterial,i.outlineBorder||i.outlineBorderMaterial)}},media:{common:"-my-1 me-1 select-none",ios:"-ms-3",material:"-ms-2"},deleteButton:"-me-2 -my-1 ms-1 h-full flex items-center justify-center w-6 cursor-pointer opacity-50 active:opacity-100 select-none"}),m_=(r={},i)=>({fillTextIos:"text-current",fillTextMaterial:S("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),fillBgIos:S("bg-black/10",i("dark:bg-white/10")),fillBgMaterial:S("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),outlineTextIos:S("text-current"),outlineTextMaterial:S("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),outlineBorderIos:S("border-black/20",i("dark:border-white/20")),outlineBorderMaterial:S("border-md-light-outline",i("dark:border-md-dark-outline")),...Ln(r)});function X0(){return X0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},X0.apply(null,arguments)}const P0=({theme:r,...i})=>r==="ios"?X.createElement("svg",X0({xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentcolor"},i),X.createElement("path",{d:"M14,0 C21.7319865,0 28,6.2680135 28,14 C28,21.7319865 21.7319865,28 14,28 C6.2680135,28 0,21.7319865 0,14 C0,6.2680135 6.2680135,0 14,0 Z M18.9393398,6.93933983 L14,11.8786797 L9.06066017,6.93933983 L6.93933983,9.06066017 L11.8786797,14 L6.93933983,18.9393398 L9.06066017,21.0606602 L14,16.1213203 L18.9393398,21.0606602 L21.0606602,18.9393398 L16.1213203,14 L21.0606602,9.06066017 L18.9393398,6.93933983 Z"})):X.createElement("svg",X0({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),X.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 10.59L15.59 7L17 8.41L13.41 12L17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59Z",fill:"currentcolor"}));function nv(){return nv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},nv.apply(null,arguments)}const Lv=r=>{const{component:i="div",className:s,colors:o,media:h,deleteButton:m,onDelete:p,ios:D,material:b,outline:y,children:F,ref:M,...L}=r,U=W.useRef(null),z=i,q={...L},I=Fn({ios:D,material:b}),ie=Ba({ios:D,material:b}),ce=Nn(),me=y?"outline":"fill",De=m_(o,ce),te=I(h_(r,De),s);return X.createElement(z,nv({ref:de=>{U.current=de,M&&typeof M=="function"?M(de):M&&(M.current=de)},className:te.base[me]},q),h&&X.createElement("div",{className:te.media},h),F,m&&X.createElement("div",{className:te.deleteButton,role:"button",tabIndex:"0",onClick:p},X.createElement(P0,{theme:ie,className:"h-4 w-4"})))};Lv.displayName="Chip";const g_=(r,i,s)=>{const{titleFontSizeMaterial:o,titleFontSizeIos:h,sizeMaterial:m}=r;return{base:{common:S("k-dialog left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 z-40 max-h-full overflow-hidden duration-400 fixed",s),ios:S("rounded-4xl max-w-full w-75",i.bgIos),material:S("rounded-[1.75rem] p-6 max-w-[90%] w-78",m,i.bgMaterial),opened:"",closed:"scale-[0.85] opacity-0 pointer-events-none"},contentWrap:{common:"flex flex-col items-center justify-center",material:"gap-3",ios:S("p-6 gap-3 relative")},title:{common:S("w-full"),ios:S(i.titleIos,h,"font-semibold"),material:S(i.titleMaterial,o)},content:{common:S("text-sm w-full"),ios:S(i.contentTextIos),material:S(i.contentTextMaterial)},buttons:{common:"flex items-center",ios:S("justify-center p-3.5 pt-0 gap-2"),material:S("justify-end pt-6 gap-2")},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black/50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}},p_=(r={},i)=>({bgIos:"",bgMaterial:S("bg-md-light-surface-3",i("dark:bg-md-dark-surface-3")),titleIos:"",titleMaterial:S("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),contentTextIos:"",contentTextMaterial:S("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),...Ln(r)});function av(){return av=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},av.apply(null,arguments)}const tA=r=>{const{component:i="div",className:s,colors:o,opened:h,backdrop:m=!0,onBackdropClick:p,titleFontSizeIos:D="text-[17px]",titleFontSizeMaterial:b="text-[24px]",title:y,content:F,buttons:M,ios:L,material:U,children:z,ref:q,...I}=r,ie=W.useRef(null),ce=h?"opened":"closed",me=i,De={...I},te=Fn({ios:L,material:U}),de=Nn(),ge=p_(o,de),$=te(g_({...r,titleFontSizeIos:D,titleFontSizeMaterial:b},ge),s);return X.createElement(X.Fragment,null,m&&X.createElement("div",{className:$.backdrop[ce],onClick:p}),X.createElement(Rc,av({component:me,highlight:!1,ref:ye=>{ie.current=ye,q&&typeof q=="function"?q(ye):q&&(q.current=ye)},className:$.base[ce]},De),X.createElement("div",{className:$.contentWrap},y&&X.createElement("div",{className:$.title},y),(F||z)&&X.createElement("div",{className:$.content},F,z)),M&&X.createElement("div",{className:$.buttons},M)))};tA.displayName="Dialog";function J0(){return J0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},J0.apply(null,arguments)}const nA=r=>{const{component:i="button",className:s,ios:o,material:h,disabled:m,strong:p,strongIos:D,strongMaterial:b,children:y,ref:F,...M}=r,L=W.useRef(null),U={...M},z=Ba({ios:o,material:h}),q=typeof p>"u"?z==="ios"?D:b:p;return z==="ios"?X.createElement(kr,J0({component:i,ref:I=>{L.current=I,F&&typeof F=="function"?F(I):F&&(F.current=I)},large:!0,rounded:!0,tonal:!q,className:s,disabled:m},U),y):X.createElement(kr,J0({component:i,inline:!0,rounded:!0,disabled:m,clear:!q,className:s,ref:I=>{L.current=I,F&&typeof F=="function"?F(I):F&&(F.current=I)}},U),y)};nA.displayName="DialogButton";const v_=(r,{textColor:i,needsTouchRipple:s})=>{const{iconOnly:o,tabbar:h,tabbarLabels:m,tabbarIcons:p}=r;return{base:{common:S("k-link",!h&&i,"inline-flex gap-1 justify-center items-center cursor-pointer select-none",s&&"touch-ripple-primary relative z-10"),ios:S(!h&&"active:opacity-50 duration-300"),material:!h&&S(s?"":"active:opacity-55")},tabbar:{common:S("w-full h-full duration-300 transition-colors relative"),ios:S("px-4 truncate",!p&&m&&"md:px-8",p&&m&&"md:min-w-24",p&&!m&&"md:min-w-12"),material:"font-medium text-sm z-10",active:"k-tabbar-link-active",inactive:""},toolbar:{common:S("h-full",o&&"k-touch-ripple-inset"),ios:S(!o&&"px-4 truncate",o&&"aspect-square"),material:"px-3 text-sm font-medium max-h-12"},navbar:{common:S("h-full max-h-12",o&&"k-touch-ripple-inset"),ios:S(!o&&"px-4",o&&"aspect-square"),material:"px-3"}}},D_=(r={},i)=>({textIos:"text-primary",textMaterial:S("text-md-light-primary",i("dark:text-md-dark-primary")),navbarTextIos:"",navbarTextMaterial:"",toolbarTextIos:"",toolbarTextMaterial:S("text-md-light-primary",i("dark:text-md-dark-primary")),...Ln(r)}),aA=W.createContext({tabbarLabels:!0,tabbarIcons:!0,tabbar:!1,toolbar:!1}),A_=()=>W.useContext(aA),rA=W.createContext({navbar:!1}),b_=()=>W.useContext(rA);function rv(){return rv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},rv.apply(null,arguments)}const fu=r=>{const{component:i="a",className:s,colors:o,iconOnly:h,linkProps:m={},tabbarActive:p,ios:D,material:b,onClick:y,children:F,ref:M,...L}=r,{navbar:U}=b_(),{toolbar:z,tabbar:q,tabbarLabels:I,tabbarIcons:ie}=A_(),ce=W.useRef(null),me=i,De={...m,...L},te=Ba({ios:D,material:b}),de=Fn({ios:D,material:b}),ge=Nn(),$=te==="material"&&(z||q||U);Bv(ce,$);const ye=D_(o,ge),Le=U?te==="material"?ye.navbarTextMaterial:ye.navbarTextIos:z?te==="material"?ye.toolbarTextMaterial:ye.toolbarTextIos:te==="material"?ye.textMaterial:ye.textIos,Ee=q&&!p?ye.tabbarInactive:Le,Ne=p?"active":"inactive",Ke=de(v_({...r,tabbarLabels:I,tabbarIcons:ie,tabbar:q},{textColor:Ee,needsTouchRipple:$})),be=S(Ke.base,z&&Ke.toolbar,U&&Ke.navbar,q&&Ke.tabbar[Ne],s);return X.createElement(me,rv({ref:ae=>{ce.current=ae,M&&typeof M=="function"?M(ae):M&&(M.current=ae)},className:be},De,{role:"link",tabIndex:"0",onClick:y}),F)};fu.displayName="Link";const y_=(r,i)=>{const{nested:s,inset:o,strong:h,outline:m}=r;return{base:{common:S("k-list",!s&&"my-8",!o&&!s&&m&&"hairline-t hairline-b",o&&m&&"border","z-10 relative"),ios:S(h&&i.strongBgIos,o&&m&&i.outlineIos),material:S(h&&i.strongBgMaterial,o&&m&&i.outlineMaterial)},ul:{common:S(o&&"no-safe-areas","last-child-hairline-b-none")},inset:{common:"ml-safe-4 mr-safe-4 overflow-hidden",ios:"rounded-3xl",material:"rounded-2xl"},menuList:{common:"py-1"}}},__=(r={},i)=>({outlineIos:S("border-black/20",i("dark:border-white/15")),outlineMaterial:S("border-md-light-outline",i("border-md-dark-outline")),strongBgIos:S("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),strongBgMaterial:S("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),...Ln(r)}),iA=X.createContext({dividers:!1,nested:!1});function iv(){return iv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},iv.apply(null,arguments)}const Du=r=>{const{component:i="div",className:s,colors:o,nested:h,menuList:m,dividers:p,dividersIos:D=!0,dividersMaterial:b=!1,inset:y,insetIos:F,insetMaterial:M,strong:L,strongIos:U,strongMaterial:z,outline:q,outlineIos:I,outlineMaterial:ie,ios:ce,material:me,children:De,ref:te,...de}=r,ge=W.useRef(null),$=i,ye={...de},Le=Ba(),Ee=Fn({ios:ce,material:me}),Ne=Nn(),{strong:Ke,outline:be,inset:ae,dividers:B}=Rv(Le,{strong:L,outline:q,inset:y,dividers:p},{strongIos:U,strongMaterial:z,outlineIos:I,outlineMaterial:ie,insetIos:F,insetMaterial:M,dividersIos:D,dividersMaterial:b,...r}),K=__(o,Ne),P=Ee(y_({...r,inset:ae,strong:Ke,outline:be},K)),ve=S(P.base,ae&&P.inset,m&&P.menuList,s);return X.createElement(iA.Provider,{value:{nested:h,dividers:B}},X.createElement($,iv({ref:C=>{ge.current=C,te&&typeof te=="function"?te(C):te&&(te.current=C)},className:ve},ye),X.createElement("ul",{className:P.ul},De)))};Du.displayName="List";const x_=()=>W.useContext(iA),E_=(r,i,{isMediaItem:s,theme:o,textColor:h,needsTouchRipple:m,isMenuListItemActive:p,autoStrongTitle:D,nested:b},y)=>{const{menuListItem:F,dividers:M,mediaClassName:L="",mediaClass:U="",innerClassName:z="",innerClass:q="",contentClassName:I="",contentClass:ie="",titleWrapClassName:ce="",titleWrapClass:me="",titleFontSizeIos:De,titleFontSizeMaterial:te,strongTitle:de,contacts:ge}=r;return{base:{common:S("k-list-item",F?`${h} py-1`:"",y),material:ge&&"[&:nth-child(2)]:-mt-12"},itemContent:{common:S(`flex items-center ${I||ie}`),ios:S(!F&&S(i.primaryTextIos,b?"ps-4":"ps-safe-4"),F&&"rounded-2xl ml-safe-2 mr-safe-2 ps-2"),material:S(!F&&S(i.primaryTextMaterial,s?"ml-safe-2 mr-safe-2 rounded-2xl ps-2":"ps-safe-4",ge&&"ml-10"),F&&"rounded-full min-h-[3.5rem] ml-safe-4 mr-safe-4 ps-4"),link:S("duration-300 active:duration-0 cursor-pointer select-none",M&&o==="ios"&&"active:hairline-transparent",m&&S("relative overflow-hidden z-10",i.touchRipple),S(p?o==="ios"?i.menuListItemActiveBgIos:i.menuListItemActiveBgMaterial:F?o==="ios"?i.menuListItemBgIos:i.menuListItemBgMaterial:o==="ios"?i.activeBgIos:i.activeBgMaterial))},media:{common:`shrink-0 flex ${L||U}`,ios:"py-2 me-4",material:S("py-3",F?"me-3":"me-4")},inner:{common:S("w-full relative",!F&&M&&"hairline-b",z||q),ios:S("py-3 pe-safe-4"),material:S("py-3",s&&!F?"pe-2":"pe-safe-4")},titleWrap:{common:S(`flex justify-between items-center ${ce||me}`),ios:S(!F&&De,!F&&"min-h-7"),material:S(!F&&te)},title:{common:"shrink",menuListItem:S("text-sm",de===!0||D?"font-semibold":"font-medium"),strong:{common:"",ios:"font-semibold",material:"font-medium"}},after:{common:S("shrink-0 ms-auto ps-1 flex items-center gap-1"),ios:i.secondaryTextIos,material:S(i.secondaryTextMaterial,"text-sm")},chevron:"opacity-20 shrink-0 ms-3 rtl:rotate-180",subtitle:"text-sm",text:{common:S("text-sm line-clamp-2"),ios:i.secondaryTextIos,material:i.secondaryTextMaterial},header:{common:"text-xs mb-0.5",ios:i.secondaryTextIos,material:i.secondaryTextMaterial},footer:{common:S("text-xs mt-0.5"),ios:i.secondaryTextIos,material:i.secondaryTextMaterial},groupTitle:{common:S("pl-safe-4 pr-safe-4 py-1 flex items-center z-20"),ios:`h-8${M?" hairline-t":""} -mt-px ${De} ${i.secondaryTextIos} ${i.groupTitleBgIos} ${ge&&S("font-semibold top-safe-15 sticky",i.groupTitleContactsTextIos,i.groupTitleContactsBgIos)}`,material:`h-12 ${te} ${i.secondaryTextMaterial} ${i.groupTitleBgMaterial} ${ge&&S("pointer-events-none overflow-visible h-12 box-border text-xl font-medium flex max-w-full items-center px-4 top-safe-16 sticky",i.groupTitleContactsTextMaterial,i.groupTitleContactsBgMaterial)}`}}},C_=(r={},i)=>({primaryTextIos:S("text-black",i("dark:text-white")),primaryTextMaterial:S("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),secondaryTextIos:S("text-black/55",i("dark:text-white/55")),secondaryTextMaterial:S("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),activeBgIos:S("active:not-[:has(.k-toggle:active)]:bg-black/10",i("dark:active:not-[:has(.k-toggle:active)]:bg-white/10")),activeBgMaterial:"",groupTitleBgIos:S("bg-ios-light-surface-variant",i("dark:bg-ios-dark-surface-variant")),groupTitleBgMaterial:S("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),menuListItemTextIos:S("text-black",i("dark:text-white")),menuListItemTextMaterial:S("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),menuListItemBgIos:S("active:bg-black/10",i("dark:active:bg-white/10")),menuListItemBgMaterial:S("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),menuListItemActiveTextIos:S("text-primary",i("dark:text-white")),menuListItemActiveTextMaterial:S("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),menuListItemActiveBgIos:S("bg-primary/15",i("dark:bg-primary")),menuListItemActiveBgMaterial:S("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),touchRipple:S("touch-ripple-black",i("dark:touch-ripple-white")),groupTitleContactsTextIos:S("text-black/90",i("dark:text-white/90")),groupTitleContactsTextMaterial:S("text-md-light-primary",i("dark:text-md-dark-primary")),groupTitleContactsBgIos:S(i("dark:bg-[#323234]")),groupTitleContactsBgMaterial:S("bg-transparent",i("dark:bg-transparent")),...Ln(r)});function W0(){return W0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},W0.apply(null,arguments)}const aa=r=>{const{component:i="li",colors:s,className:o,mediaClassName:h="",innerClassName:m="",innerChildren:p,contentClassName:D="",contentChildren:b,titleWrapClassName:y="",titleFontSizeIos:F="text-[17px]",titleFontSizeMaterial:M="text-[16px]",title:L,subtitle:U,text:z,after:q,media:I,header:ie,footer:ce,menuListItem:me,menuListItemActive:De,groupTitle:te,strongTitle:de="auto",label:ge,chevron:$=void 0,chevronIos:ye=!0,chevronMaterial:Le=!0,chevronIcon:Ee,href:Ne,target:Ke,link:be,linkComponent:ae="a",linkProps:B={},dividers:K,contacts:P,ios:ve,material:C,children:Q,ref:fe,...ue}=r,Ae=W.useRef(null),_e=W.useRef(null),pe=i,ot={...ue},je=x_(),Ge=typeof K>"u"?je?.dividers:K,rt=Ba({ios:ve,material:C}),_t=Fn({ios:ve,material:C}),Ft=Nn(),Jt=typeof $>"u"?rt==="ios"?ye:Le:$,Dt=C_(s,Ft),_n=me&&De,Fi=Dt[`${_n?"menuListItemActiveText":me?"menuListItemText":"text"}${rt==="ios"?"Ios":"Material"}`],At=!!Ne||Ne===""||me||be,un=!!ge,Qt=rt==="material"&&(un||At);Bv(Ae,Qt);const ra=Ne===!0||Ne===!1||typeof Ne>"u"?void 0:Ne||"",wt=At?ae:un?"label":"div",wn=At?{href:ra,target:Ke,...B}:{},Ra=L&&(U||z),Na=de==="auto"&&Ra,Bt=_t(E_({...r,titleFontSizeIos:F,titleFontSizeMaterial:M,dividers:Ge,strongTitle:de,mediaClassName:h,innerClassName:m,contentClassName:D,titleWrapClassName:y},Dt,{isMediaItem:Ra,theme:rt,textColor:Fi,needsTouchRipple:Qt,isMenuListItemActive:_n,autoStrongTitle:Na,nested:je?.nested}),o),gr=At||un?Bt.itemContent.link:Bt.itemContent.default,nn=me?Bt.title.menuListItem:de===!0||Na?Bt.title.strong:Bt.title.default;return te?X.createElement(pe,{className:S(Bt.groupTitle,o)},L,Q):X.createElement(pe,W0({ref:gn=>{_e.current=gn,fe&&typeof fe=="function"?fe(gn):fe&&(fe.current=gn)},className:Bt.base},ot),X.createElement(wt,W0({ref:Ae,className:gr},wn),I&&X.createElement("div",{className:Bt.media},I),X.createElement("div",{className:Bt.inner},ie&&X.createElement("div",{className:Bt.header},ie),(L||q)&&X.createElement("div",{className:Bt.titleWrap},L&&X.createElement("div",{className:nn},L),q&&X.createElement("div",{className:Bt.after},q),At&&Jt&&!me&&(Ee||X.createElement(c_,{className:Bt.chevron}))),U&&X.createElement("div",{className:Bt.subtitle},U),z&&X.createElement("div",{className:Bt.text},z),ce&&X.createElement("div",{className:Bt.footer},ce),p),b),Q)};aa.displayName="ListItem";function lv(){return lv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},lv.apply(null,arguments)}const S_=r=>X.createElement("svg",lv({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"5",viewBox:"0 0 8 5",fill:"currentcolor"},r),X.createElement("polygon",{fillRule:"evenodd",points:"0 0 8 0 4 5"})),F_=(r,i,{isFloatingTransformed:s,isFocused:o,darkClasses:h,getLabelColor:m,hasLabel:p},D)=>{const{error:b,type:y,outline:F,inputClassName:M="",inputClass:L=""}=r;return{base:{common:S("k-list-input",D),ios:S(F&&"my-4"),material:S("py-2")},itemContent:{common:"relative",ios:S(F&&"ml-4 mr-4 rounded-lg",!F&&i.bgIos),material:S("min-h-[56px] ml-4 mr-4",F?S("rounded"):S(i.bgMaterial,"rounded-t relative "))},inner:{common:"",material:S(F?"pt-4 pb-4":"pt-2 pb-2"),stacked:"",floating:""},label:{common:S("duration-200 text-xs",m(),F&&"flex"),ios:S(F&&"-mt-4"),material:S(F&&"-mt-4"),stacked:"",floating:{common:S("pointer-events-none duration-200 transform origin-left rtl:origin-right max-w-[66%]",s&&"scale-133"),ios:s?F?"translate-y-6":"translate-y-4":"",material:s?F?"translate-y-8":"translate-y-3":""}},labelText:{common:S(F&&"relative p-1 block -m-1"),ios:S(F&&S("-top-1",i.outlineLabelBgIos)),material:S(F&&S("-top-2",i.outlineLabelBgMaterial))},inputWrap:{common:"relative",ios:S((!p||F)&&"-mt-2.5","-mb-2.5"),stacked:"",floating:""},media:{material:""},titleWrap:{material:`duration-200 ${m()}`},input:{common:`block text-base appearance-none w-full focus:outline-none bg-transparent ${M||L}`,ios:"h-10",material:"h-6",notFloating:{common:S("placeholder-black/30",h("dark:placeholder-white/30")),material:S(y==="textarea"&&"py-1"),ios:S(y==="textarea"&&"py-2")},floating:s?"placeholder-transparent":S("placeholder-black/30",h("dark:placeholder-white/30"))},errorInfo:{common:"text-xs relative z-10",ios:"mt-1",material:""},error:i.errorText,info:"opacity-50",clearButton:{common:"absolute end-0 top-1/2 transform -translate-y-1/2 cursor-pointer",ios:S("w-3.5 h-3.5 opacity-45 active:opacity-30",i.labelTextIos),material:S("w-6 h-6 active:opacity-55",i.labelTextMaterial)},dropdown:"absolute end-0 top-1/2 transform -translate-y-1/2 pointer-events-none opacity-50",border:{common:"pointer-events-none absolute start-0 bottom-0 duration-200 w-full",ios:F&&S(b?i.errorBorder:o?i.outlineBorderFocusIos:i.outlineBorderIos,"h-full border rounded-lg -z-10"),material:S(b?i.errorBorder:o?i.outlineBorderFocusMaterial:i.outlineBorderMaterial,F&&S("h-full border rounded -z-10",o&&"border-2"),!F&&S("border-b h-px origin-bottom",o&&"scale-y-[2]"))}}},w_=(r={},i)=>({bgIos:"",bgMaterial:S("bg-md-light-surface-variant",i("dark:bg-md-dark-surface-variant")),outlineBorderIos:S("border-black/30",i("dark:border-white/30")),outlineBorderFocusIos:"border-primary",outlineBorderMaterial:S("border-md-light-on-surface",i("dark:border-md-dark-on-surface")),outlineBorderFocusMaterial:S("border-md-light-primary",i("dark:border-md-dark-primary")),outlineLabelBgIos:S("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),outlineLabelBgMaterial:S("bg-md-light-surface",i("dark:bg-md-dark-surface")),labelTextIos:"",labelTextFocusIos:"",labelTextMaterial:S("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),labelTextFocusMaterial:S("text-md-light-primary",i("dark:text-md-dark-primary")),errorText:"text-red-500",errorBorder:"border-red-500",...Ln(r)});function uv(){return uv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},uv.apply(null,arguments)}const Yd=r=>{const{component:i="li",className:s,colors:o,label:h,floatingLabel:m,outline:p,outlineIos:D,outlineMaterial:b,media:y,input:F,info:M,error:L,clearButton:U,dropdown:z,inputId:q,inputStyle:I,inputClassName:ie="",name:ce,value:me,defaultValue:De,type:te="text",inputMode:de,readOnly:ge,required:$,disabled:ye,placeholder:Le,size:Ee,accept:Ne,autoComplete:Ke,autoCorrect:be,autoCapitalize:ae,spellCheck:B,autoFocus:K,autoSave:P,max:ve,min:C,step:Q,maxLength:fe,minLength:ue,multiple:Ae,pattern:_e,tabIndex:pe,onInput:ot,onChange:je,onFocus:Ge,onBlur:rt,onClear:_t,ios:Ft,material:Jt,children:Dt,ref:_n,...Fi}=r,At=W.useRef(null),un=W.useRef(null),[Qt,ra]=W.useState(!1),wt=Ba({ios:Ft,material:Jt}),wn=Fn({ios:Ft,material:Jt}),Ra=Nn(),Na=w_(o,Ra),Bt=h&&m?"floating":"stacked",gr=Bt==="floating"?"floating":"notFloating",nn=()=>{if(At.current)return At.current.value},xn=h&&m&&!(()=>{const On=nn();return typeof me>"u"?On||On===0:me||me===0})()&&!Qt,Au=()=>L?Na.errorText:wt==="material"?Qt?Na.labelTextFocusMaterial:Na.labelTextMaterial:wt==="ios"?Qt?Na.labelTextFocusIos:Na.labelTextIos:"",bu=On=>{ra(!0),Ge&&Ge(On)},yu=On=>{ra(!1),rt&&rt(On)},Ja=typeof p>"u"?wt==="ios"?D:b:p,Kt=wn(F_({...r,outline:Ja},Na,{isFloatingTransformed:xn,isFocused:Qt,darkClasses:Ra,getLabelColor:Au,hasLabel:!!h})),La={...Fi},Yr=()=>{if(F)return F;const On=te==="select"||te==="textarea"?te:"input",Gs=On==="input";return X.createElement(On,{id:q,ref:At,className:Kt.input[gr],style:I,name:ce,type:Gs?te:void 0,placeholder:Le,inputMode:de,size:Ee,accept:Ne,autoComplete:Ke,autoCorrect:be,autoCapitalize:ae,spellCheck:B,autoFocus:K,autoSave:P,disabled:ye,max:ve,maxLength:fe,min:C,minLength:ue,step:Q,multiple:Ae,readOnly:ge,required:$,pattern:_e,tabIndex:pe,value:me,defaultValue:De,onInput:ot,onChange:je,onFocus:bu,onBlur:yu},te==="select"?Dt:null)},pr=X.createElement(X.Fragment,null,L&&L!==!0&&X.createElement("div",{className:S(Kt.errorInfo,Kt.error)},L),M&&!L&&X.createElement("div",{className:S(Kt.errorInfo,Kt.info)},M)),Uc=X.createElement(X.Fragment,null,h&&X.createElement("div",{className:Kt.label[Bt]},X.createElement("div",{className:Kt.labelText},h)),X.createElement("div",{className:Kt.inputWrap[Bt]},Yr(),U&&X.createElement(P0,{theme:wt,onClick:_t,className:Kt.clearButton}),z&&X.createElement(S_,{className:Kt.dropdown})),pr);return X.createElement(aa,uv({ref:On=>{un.current=On,_n&&typeof _n=="function"?_n(On):_n&&(_n.current=On)},component:i,media:y,className:Kt.base,title:null,mediaClassName:Kt.media,innerClassName:Kt.inner[Bt],contentClassName:Kt.itemContent,titleWrapClassName:Kt.titleWrap,innerChildren:Uc,contentChildren:(Ja||wt==="material")&&X.createElement("span",{className:Kt.border}),dividers:wt==="material"||Ja?!1:void 0},La),te!=="select"?Dt:null)};Yd.displayName="ListInput";const O_=(r,i,s)=>{const{type:o}=r;return{message:{common:S("k-message max-w-[70%] box-border flex relative z-1 transform translate-z-0 mb-2 first:mt-2",s)},messageSent:{common:S("self-end",i.messageSent)},messageReceived:{common:i.messageReceived},messageName:{common:"text-xs",ios:S("mb-0.5 ms-4",i.messageNameIos),material:S("ms-4 mb-0.5",i.messageNameMd)},messageHeader:{common:"text-xs",ios:S("mb-0.5 ms-4",i.messageNameIos),material:S("ms-4 mb-0.5",i.messageNameMd)},messageFooter:{common:"text-xs",ios:S("mb-0.5 ms-4",i.messageNameIos),material:S("ms-4 mb-0.5",i.messageNameMd)},messageAvatar:{common:S("rounded-full relative bg-cover self-end shrink-0 me-1.5 w-8 h-8")},messageContent:{common:"flex flex-col"},messageBubble:{...o==="sent"&&{ios:S("rounded-3xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",i.bubbleSentIos),material:S("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4",i.bubbleSentMd)},...o==="received"&&{ios:S("rounded-2xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",i.bubbleReceivedIos),material:S("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4 ",i.bubbleReceivedMd)}},messageTextHeader:{common:"w-full text-left leading-tight text-sm opacity-80"},messageTextFooter:{common:"w-full text-left leading-tight text-sm opacity-80"},messageText:{common:"w-full text-left leading-tight"}}},M_=(r={},i)=>({messageSent:"text-white",messageReceived:"text-inherit",messageNameIos:S("text-black/45",i("dark:text-white/45")),messageNameMd:S("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),bubbleSentIos:S("bg-primary"),bubbleSentMd:S("bg-md-light-primary",i("dark:bg-md-dark-primary dark:text-md-dark-on-primary")),bubbleReceivedIos:S("bg-[#e5e5ea]",i("dark:bg-[#252525]")),bubbleReceivedMd:S(i("dark:bg-md-dark-surface-variant"),"bg-[#e5e5ea]"),...Ln(r)});function sv(){return sv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},sv.apply(null,arguments)}const zv=r=>{const{component:i="div",className:s,colors:o,ref:h,id:m,text:p,name:D,type:b="sent",header:y,footer:F,textHeader:M,textFooter:L,avatar:U,ios:z,material:q,children:I,...ie}=r,ce=W.useRef(null),me=Fn({ios:z,material:q}),De=Nn(),te=M_(o,De),de=me(O_({...r},te,s)),ge=i,$={...ie},ye=S(de.message,{[de.messageSent]:b==="sent",[de.messageReceived]:b==="received"});return X.createElement(ge,sv({id:m,ref:ce,className:ye},$),U&&X.createElement("div",{className:de.messageAvatar},U),X.createElement("div",{className:de.messageContent},D&&X.createElement("div",{className:de.messageName},D),y&&X.createElement("div",{className:de.messageHeader},y),X.createElement("div",{className:de.messageBubble},M&&X.createElement("div",{className:de.messageTextHeader},M),p&&X.createElement("div",{className:de.messageText},p),L&&X.createElement("div",{className:de.messageTextFooter},L)),F&&X.createElement("div",{className:de.messageFooter},F)))};zv.displayName="Message";const T_=(r,i,s)=>{const{bgClassName:o="",bgClass:h="",outline:m,innerClassName:p="",innerClass:D="",tabbar:b,tabbarIcons:y,tabbarLabels:F,top:M}=r;return{base:{common:S("k-toolbar w-full z-20 relative",s),ios:S(!M&&"pb-safe-4","px-safe-4 flex justify-center"),material:S(!M&&"pb-safe")},bgBlur:{ios:!M&&S(S(y&&F?"h-[calc(var(--k-safe-area-bottom)_+16px_+_64px_+_16px)]":"h-[calc(var(--k-safe-area-bottom)_+16px_+_48px_+_16px)]"),"backdrop-blur-[2px] absolute left-0 bottom-0 w-full mask-t-from-50% mask-t-to-100% pointer-events-none")},bg:{common:S(o||h),ios:!M&&S(i.bgIos,"bottom-0 absolute w-full left-0 pointer-events-none",y&&F?"h-[calc(var(--k-safe-area-bottom)_+16px_+_64px_+_16px)]":"h-[calc(var(--k-safe-area-bottom)_+16px_+_48px_+_16px)]"),material:S(i.bgMaterial,"h-full top-0 absolute w-full left-0",m&&(M?"hairline-b":"hairline-t"))},inner:{common:S("flex relative justify-between",p||D),ios:S("gap-4 items-stretch",y&&F?"h-16":"h-12",b?"w-full md:w-auto":"w-auto"),material:S("w-full overflow-hidden items-center",b?"":"pl-safe-2 pr-safe-2",y?"h-20":"h-14")},highlight:{common:S(M?"bottom-0":"top-0","absolute left-0 w-full h-0.5 duration-200 pointer-events-none transition-transform"),ios:i.tabbarHighlightBgIos,material:i.tabbarHighlightBgMaterial}}},B_=(r={},i)=>({bgIos:S("bg-gradient-to-t from-ios-light-surface to-transparent",i("dark:from-ios-dark-surface/50")),bgMaterial:S("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),tabbarHighlightBgIos:"",tabbarHighlightBgMaterial:S("bg-md-light-primary",i("dark:bg-md-dark-primary")),...Ln(r)});function ov(){return ov=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},ov.apply(null,arguments)}const lA=r=>{const{component:i="div",className:s,colors:o,bgClassName:h="",innerClassName:m="",outline:p,tabbar:D,tabbarIcons:b,tabbarLabels:y,top:F,ios:M,material:L,children:U,ref:z,...q}=r,I=W.useRef(null),ie=W.useRef(null),ce=i,[me,De]=W.useState({transform:"",width:""}),te=Ba({ios:M,material:L}),de=Fn({ios:M,material:L}),ge=Nn(),$={...q},ye=B_(o,ge),Ee=de(T_({...r,outline:typeof p>"u"?te==="ios":p,bgClassName:h,innerClassName:m},ye),s),Ne=te==="material"&&D&&!b;return W.useEffect(()=>{if(Ne&&I.current){const Ke=I.current.previousElementSibling,be=1/Ke.children.length*100,ae=[...Ke.children].indexOf(Ke.querySelector(".k-tabbar-link-active"));De({...me,width:`${be}%`,transform:`translateX(${ae*100}%)`})}},[U]),X.createElement(ce,ov({ref:Ke=>{ie.current=Ke,z&&typeof z=="function"?z(Ke):z&&(z.current=Ke)},className:Ee.base},$),X.createElement(aA.Provider,{value:{toolbar:!0,tabbarLabels:y,tabbarIcons:b,tabbar:D}},te==="ios"&&!F&&X.createElement("div",{className:Ee.bgBlur}),(te==="material"||!F)&&X.createElement("div",{className:Ee.bg}),X.createElement("div",{className:Ee.inner},U),Ne&&X.createElement("span",{className:Ee.highlight,style:me,ref:I})))};lA.displayName="Toolbar";const R_=(r,i,s)=>{const{outline:o,large:h,medium:m,transparent:p,left:D,right:b,subnavbar:y,fontSizeIos:F,fontSizeMaterial:M,titleFontSizeIos:L,titleFontSizeMaterial:U,titleLargeFontSizeIos:z,titleLargeFontSizeMaterial:q,titleMediumFontSizeIos:I,titleMediumFontSizeMaterial:ie,bgClassName:ce="",bgClass:me="",subnavbarClassName:De="",subnavbarClass:te="",innerClassName:de="",innerClass:ge="",leftClassName:$="",leftClass:ye="",titleClassName:Le="",titleClass:Ee="",subtitleClassName:Ne="",subtitleClass:Ke="",rightClassName:be="",rightClass:ae="",centerTitle:B}=r;return{base:{common:S("k-navbar w-full z-20 top-0 sticky",(h||m)&&"pointer-events-none",s),ios:S("pt-[max(16px,var(--k-safe-area-top))]",F,i.textIos),material:S("pt-safe",M,i.textMaterial)},bgBlur:{ios:S("backdrop-blur-[2px] absolute left-0 top-0 w-full  mask-b-to-100% pointer-events-none mask-b-from-50%",y?"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+70px_+_16px)]":"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+_16px)]")},bg:{common:S("absolute w-full left-0 top-0",ce||me),ios:S(i.bgIos,"pointer-events-none",y?"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+70px_+_16px)]":"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+_16px)]"),material:S("h-full",i.bgMaterial,o&&"hairline-b")},subnavbar:{common:S("relative flex items-center",De||te,(h||m)&&"pointer-events-auto"),ios:"h-14 pl-safe-4 pr-safe-4",material:"h-14 pl-safe-4 pr-safe-4"},inner:{common:S("flex relative items-center w-full",de||ge,(h||m)&&"pointer-events-auto z-10"),ios:S("pl-safe-4 pr-safe-4 h-11",!D&&b?"justify-end":"justify-between"),material:"justify-start h-16 pl-safe pr-safe overflow-hidden"},titleContainer:{common:S("flex items-center px-safe-4 relative",(h||m)&&"pointer-events-auto"),ios:S(m&&S(I,"h-11 font-semibold"),h&&S(z,"h-13 font-bold")),material:S(m&&S(ie,"h-12 pb-4"),h&&S(q,"h-[5.5rem]"))},left:{common:S("flex justify-center items-center h-full",$||ye),ios:"me-2 transform transform-gpu rounded-full",material:"mx-1"},title:{common:S("whitespace-nowrap leading-tight",Le||Ee,(h||m||p)&&"opacity-0",B?"absolute top-1/2 left-1/2 transform-gpu -translate-x-1/2 -translate-y-1/2 text-center":"text-start"),ios:S(`${L} font-semibold`,!B&&"first:mx-2"),material:S(`${U} font-normal`,!B&&"first:mx-4")},subtitle:{common:S("leading-none",Ne||Ke),ios:"text-sm opacity-75 font-medium",material:"text-sm opacity-85 font-normal"},right:{common:S("flex justify-center items-center h-full",be||ae),ios:S("transform transform-gpu rounded-full",B?"ms-2":"ms-auto"),material:"ms-auto me-1"}}},N_=(r,i)=>({bgIos:S("bg-gradient-to-b from-ios-light-surface to-transparent",i("dark:from-ios-dark-surface/50")),bgMaterial:S("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),textIos:S("text-black",i("dark:text-white")),textMaterial:S("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),...Ln(r)});function cv(){return cv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},cv.apply(null,arguments)}const Nc=r=>{const{component:i="div",className:s,bgClassName:o="",innerClassName:h="",leftClassName:m="",titleClassName:p="",subtitleClassName:D="",rightClassName:b="",subnavbarClassName:y="",centerTitle:F,colors:M,outline:L,medium:U,large:z,transparent:q,fontSizeIos:I="text-[17px]",fontSizeMaterial:ie="text-[16px]",titleFontSizeIos:ce="text-[17px]",titleFontSizeMaterial:me="text-[22px]",titleMediumFontSizeIos:De="text-[24px]",titleMediumFontSizeMaterial:te="text-[24px]",titleLargeFontSizeIos:de="text-[34px]",titleLargeFontSizeMaterial:ge="text-[28px]",scrollEl:$,left:ye,title:Le,subtitle:Ee,right:Ne,subnavbar:Ke,ios:be,material:ae,children:B,ref:K,...P}=r,ve=W.useRef(null),C=W.useRef(0),Q=W.useRef(null),fe=W.useRef(null),ue=W.useRef(null),Ae=W.useRef(null),_e=W.useRef(null),pe=W.useRef(null),ot=i,je=Ba({ios:be,material:ae}),Ge=Fn({ios:be,material:ae}),rt=Nn(),_t={...P},Ft=N_(M,rt),Jt=q,Dt=Qt=>{const{scrollTop:ra}=Qt.target;if(!Jt&&!z&&!U){pe.current&&(Ae.current&&(Ae.current.style.opacity=""),Q.current&&(Q.current.style.opacity=""));return}const wt=C.current,wn=Math.max(Math.min(ra/wt,1),0);je==="material"&&(Q.current.style.opacity=Jt?-.5+wn*1.5:"",(U||z)&&(Q.current.style.transform=`translateY(-${wn*wt}px)`)),ue.current&&(ue.current.style.transform=`translateY(-${wn*wt}px)`,ue.current.style.opacity=1-wn*2),Ae.current&&(Ae.current.style.opacity=-.5+wn*1.5),(U||z)&&_e.current&&(_e.current.style.transform=`translateY(-${wn*wt}px)`)},_n=()=>typeof $>"u"?ve.current&&ve.current.parentNode:$.current||$,Fi=()=>{if(!z&&!U&&!Jt){pe.current&&(Dt({target:{scrollTop:0}}),pe.current=!1);return}pe.current=!0,ue.current?C.current=ue.current.offsetHeight:C.current=fe.current.offsetHeight;const Qt=_n();Qt?(Qt.addEventListener("scroll",Dt),Dt({target:Qt})):Dt({target:{scrollTop:0}})},At=()=>{const Qt=_n();Qt&&Qt.removeEventListener("scroll",Dt)};W.useEffect(()=>(Fi(),At));const un=Ge(R_({...r,centerTitle:typeof F>"u"?je==="ios":F,outline:L,fontSizeIos:I,fontSizeMaterial:ie,titleFontSizeIos:ce,titleFontSizeMaterial:me,titleMediumFontSizeIos:De,titleMediumFontSizeMaterial:te,titleLargeFontSizeIos:de,titleLargeFontSizeMaterial:ge,bgClassName:o,innerClassName:h,leftClassName:m,titleClassName:p,subtitleClassName:D,rightClassName:b,subnavbarClassName:y},Ft),s);return X.createElement(ot,cv({ref:Qt=>{ve.current=Qt,K&&typeof K=="function"?K(Qt):K&&(K.current=Qt)},className:un.base},_t),X.createElement(rA.Provider,{value:{navbar:!0}},je==="ios"&&X.createElement("div",{className:un.bgBlur}),X.createElement("div",{className:un.bg,ref:Q}),X.createElement("div",{className:un.inner,ref:fe},ye&&X.createElement(Rc,{className:un.left},ye),(Le||Ee)&&X.createElement("div",{className:un.title,ref:Ae},Le,Ee&&X.createElement("div",{className:un.subtitle},Ee)),Ne&&X.createElement(Rc,{className:un.right},Ne),B),(z||U)&&X.createElement("div",{className:un.titleContainer,ref:ue},Le),Ke&&X.createElement("div",{className:un.subnavbar,ref:_e},Ke)))};Nc.displayName="Navbar";const L_=(r,i,s)=>{const{opened:o}=r;return{base:{common:S("k-notifications z-50 transform transition-(--transition-transform-opacity) box-border duration-500 absolute",!o&&"-translate-y-full opacity-0 pointer-events-none transition duration-500","md:w-[568px] md:end-auto md:start-1/2 md:-ms-[284px]",s),ios:S("rounded-xl p-4 start-2 end-2 top-safe-2 rounded-3xl flex gap-4 items-center",i.bgIos),material:S("rounded-2xl py-5 px-4 start-4 end-4 top-safe-4",i.bgMaterial)},content:{common:"w-full shrink",ios:"",material:S("mt-2")},header:{common:S("flex justify-start"),ios:"items-center",material:"items-start"},icon:{ios:"shrink-0",material:"me-4"},contentTitle:{material:S("flex flex-row items-center")},title:{ios:S("text-sm font-bold",i.titleIos),material:S("font-medium")},titleRightText:{ios:S("me-1 ms-auto text-sm",i.titleRightIos),material:S("ms-1 text-xs before:w-0.75 before:h-0.75 before:rounded-full before:inline-block before:align-middle before:me-1",i.titleRightMd)},button:{ios:S("me-1 ms-auto cursor-pointer"),material:S("ms-auto cursor-pointer")},deleteIcon:{ios:S("w-5 h-5",i.deleteIconIos),material:S("w-6 h-6",i.deleteIconMd)},subtitle:{ios:S("text-sm font-semibold",i.subtitleIos),material:S("text-sm")},text:{ios:S("text-sm"),material:S("text-sm",i.textMaterial)}}},z_=(r,i)=>({bgIos:"",bgMaterial:S("bg-md-light-surface-5",i("dark:bg-md-dark-surface-5")),titleIos:S("text-black",i("dark:text-white")),titleRightIos:S("text-black/45",i("dark:text-white/45")),titleRightMd:S("text-md-light-on-surface-variant before:bg-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant before:dark:bg-md-dark-on-surface-variant")),subtitleIos:S("text-black ",i("dark:text-white")),textMaterial:S("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant ")),deleteIconIos:S("fill-stone-400 active:fill-stone-200",i("dark:fill-stone-500 dark:active:fill-stone-700")),deleteIconMd:S("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),...Ln(r)});function $0(){return $0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},$0.apply(null,arguments)}const uA=r=>{const{component:i="div",className:s,colors:o,button:h,icon:m,title:p,titleRightText:D,subtitle:b,text:y,opened:F,onClose:M,ios:L,material:U,children:z,ref:q,...I}=r,ie=W.useRef(null),ce=i,me={...I},De=Ba({ios:L,material:U}),te=Fn({ios:L,material:U}),de=Nn(),ge=z_(o,de),$=te(L_({...r},ge),s);return De==="ios"?X.createElement(Rc,$0({ref:ye=>{ie.current=ye,q&&typeof q=="function"?q(ye):q&&(q.current=ye)},component:i,className:$.base},me),m&&X.createElement("div",{className:$.icon},m),X.createElement("div",{className:$.content},X.createElement("div",{className:$.header},p&&X.createElement("div",{className:$.title},p),D&&X.createElement("div",{className:$.titleRightText},D),h&&X.createElement("div",{className:$.button,role:"button",tabIndex:"0",onClick:M},X.createElement(P0,{theme:De,className:$.deleteIcon}))),b&&X.createElement("div",{className:$.subtitle},b),y&&X.createElement("div",{className:$.text},y),z)):X.createElement(ce,$0({ref:ye=>{ie.current=ye,q&&typeof q=="function"?q(ye):q&&(q.current=ye)},className:$.base},me),X.createElement("div",{className:$.header},m&&X.createElement("div",{className:$.icon},m),X.createElement("div",{className:$.contentWrapper},X.createElement("div",{className:$.contentTitle},p&&X.createElement("div",{className:$.title},p),D&&X.createElement("div",{className:$.titleRightText},D)),X.createElement("div",{className:$.content},b&&X.createElement("div",{className:$.subtitle},b),y&&X.createElement("div",{className:$.text},y),z)),h&&X.createElement("div",{className:$.button,role:"button",tabIndex:"0",onClick:M},X.createElement(P0,{theme:De,className:$.deleteIcon}))))};uA.displayName="Notification";const k_=(r,i,s)=>({base:{common:S("k-page h-full w-full left-0 top-0 overflow-auto absolute",s),ios:i.bgIos,material:i.bgMaterial}}),j_=(r={},i)=>({bgIos:S("bg-ios-light-surface",i("dark:bg-ios-dark-surface")),bgMaterial:S("bg-md-light-surface",i("dark:bg-md-dark-surface")),...Ln(r)});function fv(){return fv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},fv.apply(null,arguments)}const du=r=>{const{component:i="div",className:s,colors:o,ios:h,material:m,children:p,ref:D,...b}=r,y=W.useRef(null),F=i,M={...b},L=Fn({ios:h,material:m}),U=Nn(),z=j_(o,U),q=L(k_(r,z,s));return X.createElement(F,fv({ref:I=>{y.current=I,D&&typeof D=="function"?D(I):D&&(D.current=I)},className:q.base},M),p)};du.displayName="Page";const U_=({popoverEl:r,targetEl:i,angleEl:s,needsAngle:o,targetX:h,targetY:m,targetWidth:p=0,targetHeight:D=0,theme:b})=>{i.current?i=i.current:i.value?i=i.value:i.el?i=i.el:i.$el&&(i=i.$el),typeof i=="string"&&(i=document.querySelector(i));let y=document.body.offsetWidth,F=document.body.offsetHeight;y===0&&(y=window.innerWidth),F===0&&(F=window.innerHeight);const[M,L]=[r.offsetWidth,r.offsetHeight];let U=0,z,q,I="";o&&(U=s.offsetWidth/2);let ie,ce;const me=window.getComputedStyle(i);let De=parseInt(me.getPropertyValue("--k-safe-area-top"),10)||0,te=parseInt(me.getPropertyValue("--k-safe-area-left"),10)||0,de=parseInt(me.getPropertyValue("--k-safe-area-right"),10)||0;if(Number.isNaN(De)&&(De=0),Number.isNaN(te)&&(te=0),Number.isNaN(de)&&(de=0),i){p=i.offsetWidth,D=i.offsetHeight;const be=i.getBoundingClientRect();ie=be.left,ce=be.top}else typeof h<"u"&&m!=="undefined"&&(ie=h,ce=m);let[ge,$,ye]=[0,0,0];const Le=b==="ios"?13:23;let Ee="top";L+U<ce-De?$=ce-L-U:L+U<F-ce-D?(Ee="bottom",$=ce+D+U):(Ee="middle",$=D/2+ce-L/2,ye=$,$=Math.max(5,Math.min($,F-L-5)),ye-=$),Ee==="top"||Ee==="bottom"?(ge=p/2+ie-M/2,ye=ge,ge=Math.max(5,Math.min(ge,y-M-5)),te&&(ge=Math.max(ge,te)),de&&ge+M>y-5-de&&(ge=y-5-de-M),Ee==="top"&&(I="bottom"),Ee==="bottom"&&(I="top"),ye-=ge,z=M/2-U+ye,z=Math.max(Math.min(z,M-U*2-Le),Le)):Ee==="middle"&&(ge=ie-M-U,I="right",(ge<5||ge+M+de>y||ge<te)&&(ge<5&&(ge=ie+p+U),ge+M+de>y&&(ge=y-M-5-de),ge<te&&(ge=te),I="left"),q=L/2-U+ye,q=Math.max(Math.min(q,L-U*2-Le),Le));const Ne=Ee,Ke=ge<ie?"left":"right";return{set:!0,angleTop:typeof q>"u"?void 0:`${q}px`,angleLeft:typeof z>"u"?void 0:`${z}px`,anglePosition:I,popoverTop:`${$}px`,popoverLeft:`${ge}px`,popoverPosition:`${Ne}-${Ke}`}},H_=(r,i,s)=>{const{angleClassName:o,angleClass:h}=r;return{base:{common:S("k-popover transition-(--transition-transform-opacity) z-40 w-60 no-safe-areas fixed translate-3d transform-gpu duration-400"),ios:"",material:"ease-material-in",opened:{common:"",ios:"ease-[cubic-bezier(0,1,0.2,1.05)]"},closed:{common:"pointer-events-none",ios:"scale-0",material:"scale-x-90 scale-y-75 opacity-0"}},inner:{common:S("overflow-hidden relative"),ios:S("rounded-4xl duration-600",i.bgIos),material:S("rounded-[1.75rem]",i.bgMaterial),opened:{common:"",ios:"ease-[cubic-bezier(0,1,0.2,1.05)]",material:""},closed:{common:"",ios:"-translate-y-20 opacity-0",material:""}},angleWrap:{common:S(o||h||"","pointer-events-none"),ios:S("absolute w-6.5 h-6.5 z-50 overflow-hidden"),material:S("absolute w-6.5 h-6.5 z-50 overflow-hidden"),bottom:"top-full",top:"bottom-full",left:"right-full",right:"left-full"},angleArrow:{common:S("absolute rounded w-full h-full transform rotate-45"),ios:S("bg-ios-light-glass backdrop-blur-lg",s("dark:bg-ios-dark-glass")),material:i.bgMaterial,bottom:"-top-4.75",top:"top-4.75",left:"left-4.75",right:"-left-4.75"},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black/50 duration-300",opened:"",closed:"opacity-0 pointer-events-none"}}},I_=(r={},i)=>({bgIos:"",bgMaterial:S("bg-md-light-surface-3",i("dark:bg-md-dark-surface-3")),...Ln(r)});function dv(){return dv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},dv.apply(null,arguments)}const Lc=r=>{const{component:i="div",className:s,angle:o=!1,angleClassName:h="",colors:m,opened:p,backdrop:D=!0,onBackdropClick:b,target:y,targetX:F,targetY:M,targetWidth:L,targetHeight:U,ios:z,material:q,children:I,style:ie={},ref:ce,...me}=r,De=W.useRef(null),te=W.useRef(null),[de,ge]=W.useState({set:!1,angleTop:0,angleLeft:0,anglePosition:"bottom",popoverTop:0,popoverLeft:0,popoverPosition:"top-left"}),$=p?"opened":"closed",ye=i,Le={...me},Ee=Ba({ios:z,material:q}),Ne=Fn({ios:z,material:q}),Ke=Nn(),be=I_(m,Ke),ae=Ne(H_({...r,angleClassName:h},be,Ke),s),B=()=>{!y||!De.current||!p||ge(U_({popoverEl:De.current,targetEl:y,angleEl:te.current,needsAngle:o,targetX:F,targetY:M,targetHeight:U,targetWidth:L,theme:Ee}))},K=()=>{typeof window>"u"||window.addEventListener("resize",B)},P=()=>{typeof window>"u"||window.removeEventListener("resize",B)};W.useEffect(()=>(K(),()=>P())),W.useEffect(()=>{B()},[p]);const ve=de.set?{...ie||{},left:de.popoverLeft,top:de.popoverTop}:ie,C=de.set?{left:de.angleLeft,top:de.angleTop}:void 0,Q={"top-right":"origin-bottom-left","top-left":"origin-bottom-right","middle-left":"origin-right","middle-right":"origin-left","bottom-right":"origin-top-left","bottom-left":"origin-top-right"},fe=S(ae.base[$],Q[de.popoverPosition]);return X.createElement(X.Fragment,null,D&&X.createElement("div",{className:ae.backdrop[$],onClick:b}),X.createElement(ye,dv({ref:ue=>{De.current=ue,ce&&typeof ce=="function"?ce(ue):ce&&(ce.current=ue)},className:fe,style:ve},Le),o&&X.createElement("div",{ref:te,style:C,className:ae.angleWrap[de.anglePosition]},X.createElement("div",{className:ae.angleArrow[de.anglePosition]})),X.createElement(Rc,{className:ae.inner[$]},I)))};Lc.displayName="Popover";const G_=(r,i,s)=>({base:{common:S("k-popup left-1/2 top-1/2 transition-transform transform -translate-x-1/2 z-40 max-w-full max-h-full overflow-hidden md:no-safe-areas fixed",i.bg,"w-screen h-screen md:w-160 md:h-160",s),ios:"duration-400 md:rounded-4xl",material:" md:rounded-[1.75rem]",opened:{common:"-translate-y-1/2",material:S("ease-material-in-popup duration-[600ms]")},closed:{common:"translate-y-full",material:"duration-400"}},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black/50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}),Y_=(r={},i)=>({bg:S("bg-white",i("dark:bg-black")),...Ln(r)});function hv(){return hv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},hv.apply(null,arguments)}const sA=r=>{const{component:i="div",className:s,colors:o,ref:h,opened:m,backdrop:p=!0,onBackdropClick:D,ios:b,material:y,children:F,...M}=r,L=W.useRef(null),U=m?"opened":"closed",z=i,q={...M},I=Fn({ios:b,material:y}),ie=Nn(),ce=Y_(o,ie),me=I(G_(r,ce,s));return X.createElement(X.Fragment,null,p&&X.createElement("div",{className:me.backdrop[U],onClick:D}),X.createElement(z,hv({ref:De=>{L.current=De,h&&typeof h=="function"?h(De):h&&(h.current=De)},className:me.base[U]},q),F))};sA.displayName="Popup";function mv(){return mv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},mv.apply(null,arguments)}const q_=r=>X.createElement("svg",mv({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentcolor"},r),X.createElement("path",{d:"M10,0 C10.5522847,0 11,0.44771525 11,1 L11,6 C11,6.55228475 10.5522847,7 10,7 C9.44771525,7 9,6.55228475 9,6 L9,1 C9,0.44771525 9.44771525,0 10,0 Z"}),X.createElement("path",{d:"M10,13 C10.5522847,13 11,13.4477153 11,14 L11,19 C11,19.5522847 10.5522847,20 10,20 C9.44771525,20 9,19.5522847 9,19 L9,14 C9,13.4477153 9.44771525,13 10,13 Z",opacity:".64"}),X.createElement("path",{d:"M13,10 C13,9.44771525 13.4477153,9 14,9 L19,9 C19.5522847,9 20,9.44771525 20,10 C20,10.5522847 19.5522847,11 19,11 L14,11 C13.4477153,11 13,10.5522847 13,10 Z",opacity:".82"}),X.createElement("path",{d:"M-3.8285687e-16,10 C-3.8285687e-16,9.44771525 0.44771525,9 1,9 L6,9 C6.55228475,9 7,9.44771525 7,10 C7,10.5522847 6.55228475,11 6,11 L1,11 C0.44771525,11 -3.8285687e-16,10.5522847 -3.8285687e-16,10 Z",opacity:".46"}),X.createElement("path",{d:"M2.92912627,2.92912627 C3.31965056,2.53860197 3.95281554,2.53860197 4.34333983,2.92912627 L7.87887373,6.46466017 C8.26939803,6.85518446 8.26939803,7.48834944 7.87887373,7.87887373 C7.48834944,8.26939803 6.85518446,8.26939803 6.46466017,7.87887373 L2.92912627,4.34333983 C2.53860197,3.95281554 2.53860197,3.31965056 2.92912627,2.92912627 Z",opacity:".37"}),X.createElement("path",{d:"M12.1211263,12.1211263 C12.5116506,11.730602 13.1448155,11.730602 13.5353398,12.1211263 L17.0708737,15.6566602 C17.461398,16.0471845 17.461398,16.6803494 17.0708737,17.0708737 C16.6803494,17.461398 16.0471845,17.461398 15.6566602,17.0708737 L12.1211263,13.5353398 C11.730602,13.1448155 11.730602,12.5116506 12.1211263,12.1211263 Z",opacity:".73"}),X.createElement("path",{d:"M12.1211263,7.87887373 C11.730602,7.48834944 11.730602,6.85518446 12.1211263,6.46466017 L15.6566602,2.92912627 C16.0471845,2.53860197 16.6803494,2.53860197 17.0708737,2.92912627 C17.461398,3.31965056 17.461398,3.95281554 17.0708737,4.34333983 L13.5353398,7.87887373 C13.1448155,8.26939803 12.5116506,8.26939803 12.1211263,7.87887373 Z",opacity:".91"}),X.createElement("path",{d:"M2.92912627,17.0708737 C2.53860197,16.6803494 2.53860197,16.0471845 2.92912627,15.6566602 L6.46466017,12.1211263 C6.85518446,11.730602 7.48834944,11.730602 7.87887373,12.1211263 C8.26939803,12.5116506 8.26939803,13.1448155 7.87887373,13.5353398 L4.34333983,17.0708737 C3.95281554,17.461398 3.31965056,17.461398 2.92912627,17.0708737 Z",opacity:".55"}));function gv(){return gv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},gv.apply(null,arguments)}const V_=r=>X.createElement("svg",gv({viewBox:"0 0 36 36"},r,{fill:"none",stroke:"currentcolor"}),X.createElement("circle",{cx:"18",cy:"18",r:"16"})),Q_=(r,i,s,o)=>({base:{common:S("k-preloader",s==="ios"?"k-ios-preloader":"k-material-preloader","inline-block w-8 h-8",o),ios:i.iconIos,material:`stroke-4 ${i.iconMaterial}`},inner:{common:"block w-full h-full"}}),K_=(r={},i)=>({iconIos:"text-primary",iconMaterial:S("text-md-light-primary",i("dark:text-md-dark-primary")),...Ln(r)});function pv(){return pv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},pv.apply(null,arguments)}const kv=r=>{const{component:i="span",className:s,colors:o,ios:h,material:m,children:p,ref:D,...b}=r,y=W.useRef(null),F=i,M={...b},L=Ba({ios:h,material:m}),U=Fn({ios:h,material:m}),z=Nn(),q=K_(o,z),I=L==="ios"?q_:V_,ie=U(Q_(r,q,L,s));return X.createElement(F,pv({ref:ce=>{y.current=ce,D&&typeof D=="function"?D(ce):D&&(D.current=ce)},className:ie.base},M),X.createElement("span",{className:ie.inner},X.createElement(I,{className:"w-full h-full"})),p)};kv.displayName="Preloader";const Z_=(r,i,s)=>({base:{common:S("k-sheet left-safe right-safe top-full transition-transform duration-400 z-40 overflow-hidden fixed [&>*]:no-safe-areas-left [&>*]:no-safe-areas-right",s),ios:S("rounded-t-4xl",i.bgIos),material:`rounded-t-2xl ease-material-in ${i.bgMaterial}`,opened:"-translate-y-full",closed:""},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black/50 duration-400",opened:"",closed:"opacity-0 pointer-events-none"}}),X_=(r={},i)=>({bgIos:S("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),bgMaterial:S("bg-md-light-surface",i("dark:bg-md-dark-surface")),...Ln(r)});function vv(){return vv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},vv.apply(null,arguments)}const oA=r=>{const{component:i="div",className:s,colors:o,opened:h,backdrop:m=!0,onBackdropClick:p,ios:D,material:b,children:y,ref:F,...M}=r,L=W.useRef(null),U=h?"opened":"closed",z=i,q={...M},I=Fn({ios:D,material:b}),ie=Nn(),ce=X_(o,ie),me=I(Z_(r,ce,s));return X.createElement(X.Fragment,null,m&&X.createElement("div",{className:me.backdrop[U],onClick:p}),X.createElement(z,vv({ref:L,className:me.base[U]},q),y))};oA.displayName="Sheet";if(!W.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Ub)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var P_=qD();function J_(r){r()}function W_(r){r||(r=J_),Ob({reactionScheduler:r})}function $_(r){return Mb(r)}var ex=1e4,tx=1e4,nx=(function(){function r(i){var s=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(o){o===void 0&&(o=ex),clearTimeout(s.sweepTimeout),s.sweepTimeout=void 0;var h=Date.now();s.registrations.forEach(function(m,p){h-m.registeredAt>=o&&(s.finalize(m.value),s.registrations.delete(p))}),s.registrations.size>0&&s.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){s.sweep(0)}})}return Object.defineProperty(r.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(i,s,o){this.registrations.set(o,{value:s,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(r.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(i){this.registrations.delete(i)}}),Object.defineProperty(r.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,tx))}}),r})(),ax=typeof FinalizationRegistry<"u"?FinalizationRegistry:nx,qd=new ax(function(r){var i;(i=r.reaction)===null||i===void 0||i.dispose(),r.reaction=null}),Tp={exports:{}},Bp={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ED;function rx(){if(ED)return Bp;ED=1;var r=ng();function i(M,L){return M===L&&(M!==0||1/M===1/L)||M!==M&&L!==L}var s=typeof Object.is=="function"?Object.is:i,o=r.useState,h=r.useEffect,m=r.useLayoutEffect,p=r.useDebugValue;function D(M,L){var U=L(),z=o({inst:{value:U,getSnapshot:L}}),q=z[0].inst,I=z[1];return m(function(){q.value=U,q.getSnapshot=L,b(q)&&I({inst:q})},[M,U,L]),h(function(){return b(q)&&I({inst:q}),M(function(){b(q)&&I({inst:q})})},[M]),p(U),U}function b(M){var L=M.getSnapshot;M=M.value;try{var U=L();return!s(M,U)}catch{return!0}}function y(M,L){return L()}var F=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:D;return Bp.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:F,Bp}var CD;function ix(){return CD||(CD=1,Tp.exports=rx()),Tp.exports}var lx=ix();function SD(r){r.reaction=new Si("observer".concat(r.name),function(){var i;r.stateVersion=Symbol(),(i=r.onStoreChange)===null||i===void 0||i.call(r)})}function ux(r,i){i===void 0&&(i="observed");var s=X.useRef(null);if(!s.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:i,subscribe:function(D){return qd.unregister(o),o.onStoreChange=D,o.reaction||(SD(o),o.stateVersion=Symbol()),function(){var b;o.onStoreChange=null,(b=o.reaction)===null||b===void 0||b.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};s.current=o}var h=s.current;h.reaction||(SD(h),qd.register(s,h,h)),X.useDebugValue(h.reaction,$_),lx.useSyncExternalStore(h.subscribe,h.getSnapshot,h.getSnapshot);var m,p;if(h.reaction.track(function(){try{m=r()}catch(D){p=D}}),p)throw p;return m}var Rp,Np,cA=typeof Symbol=="function"&&Symbol.for,sx=(Np=(Rp=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Rp===void 0?void 0:Rp.configurable)!==null&&Np!==void 0?Np:!1,FD=cA?Symbol.for("react.forward_ref"):typeof W.forwardRef=="function"&&W.forwardRef(function(r){return null}).$$typeof,wD=cA?Symbol.for("react.memo"):typeof W.memo=="function"&&W.memo(function(r){return null}).$$typeof;function ox(r,i){var s;if(wD&&r.$$typeof===wD)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var o=(s=void 0)!==null&&s!==void 0?s:!1,h=r,m=r.displayName||r.name;if(FD&&r.$$typeof===FD&&(o=!0,h=r.render,typeof h!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var p=function(D,b){return ux(function(){return h(D,b)},m)};return p.displayName=r.displayName,sx&&Object.defineProperty(p,"name",{value:r.name,writable:!0,configurable:!0}),r.contextTypes&&(p.contextTypes=r.contextTypes),o&&(p=W.forwardRef(p)),p=W.memo(p),fx(r,p),p}var cx={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function fx(r,i){Object.keys(r).forEach(function(s){cx[s]||Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(r,s))})}var Lp;W_(P_.unstable_batchedUpdates);Lp=qd.finalizeAllImmediately;function dx(r,i){if(OD(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var s=Object.keys(r),o=Object.keys(i);if(s.length!==o.length)return!1;for(var h=0;h<s.length;h++)if(!Object.hasOwnProperty.call(i,s[h])||!OD(r[s[h]],i[s[h]]))return!1;return!0}function OD(r,i){return r===i?r!==0||1/r===1/i:r!==r&&i!==i}var MD=Symbol("patchMixins"),fA=Symbol("patchedDefinition");function hx(r,i){var s=r[MD]=r[MD]||{},o=s[i]=s[i]||{};return o.locks=o.locks||0,o.methods=o.methods||[],o}function TD(r,i){for(var s=this,o=arguments.length,h=new Array(o>2?o-2:0),m=2;m<o;m++)h[m-2]=arguments[m];i.locks++;try{var p;return r!=null&&(p=r.apply(this,h)),p}finally{i.locks--,i.locks===0&&i.methods.forEach(function(D){D.apply(s,h)})}}function BD(r,i){var s=function(){for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];TD.call.apply(TD,[this,r,i].concat(m))};return s}function mx(r,i,s){var o=hx(r,i);o.methods.indexOf(s)<0&&o.methods.push(s);var h=Object.getOwnPropertyDescriptor(r,i);if(!(h&&h[fA])){var m=r[i],p=dA(r,i,h?h.enumerable:void 0,o,m);Object.defineProperty(r,i,p)}}function dA(r,i,s,o,h){var m,p=BD(h,o);return m={},m[fA]=!0,m.get=function(){return p},m.set=function(b){if(this===r)p=BD(b,o);else{var y=dA(this,i,s,o,b);Object.defineProperty(this,i,y)}},m.configurable=!0,m.enumerable=s,m}var RD=Symbol("ObserverAdministration"),ND=Symbol("isMobXReactObserver");function Dv(r){var i;return(i=r[RD])!=null?i:r[RD]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:Av(r.constructor),state:void 0,props:void 0,context:void 0}}function gx(r){var i=r.prototype;if(r[ND]){var s=Av(r);throw new Error("The provided component class ("+s+") has already been declared as an observer component.")}else r[ND]=!0;if(i.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(r.__proto__!==W.PureComponent){if(!i.shouldComponentUpdate)i.shouldComponentUpdate=LD;else if(i.shouldComponentUpdate!==LD)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}var o=i.render;if(typeof o!="function"){var h=Av(r);throw new Error("[mobx-react] class component ("+h+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}i.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:px.call(this,o)}),this.render()};var m=i.componentDidMount;return i.componentDidMount=function(){var p=this,D=Dv(this);return D.mounted=!0,qd.unregister(this),D.forceUpdate=function(){return p.forceUpdate()},(!D.reaction||D.reactionInvalidatedBeforeMount)&&D.forceUpdate(),m?.apply(this,arguments)},mx(i,"componentWillUnmount",function(){var p,D=Dv(this);(p=D.reaction)==null||p.dispose(),D.reaction=null,D.forceUpdate=null,D.mounted=!1,D.reactionInvalidatedBeforeMount=!1}),r}function Av(r){return r.displayName||r.name||"<component>"}function px(r){var i=r.bind(this),s=Dv(this);function o(){s.reaction||(s.reaction=vx(s),s.mounted||qd.register(this,s,this));var h=void 0,m=void 0;if(s.reaction.track(function(){try{m=lb(!1,i)}catch(p){h=p}}),h)throw h;return m}return o}function vx(r){return new Si(r.name+".render()",function(){if(!r.mounted){r.reactionInvalidatedBeforeMount=!0;return}try{r.forceUpdate==null||r.forceUpdate()}catch{var i;(i=r.reaction)==null||i.dispose(),r.reaction=null}})}function LD(r,i){return this.state!==i?!0:!dx(this.props,r)}function sl(r,i){return r.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(W.Component,r)||Object.prototype.isPrototypeOf.call(W.PureComponent,r)?gx(r):ox(r)}X.version.split(".")[0];if(!W.Component)throw new Error("mobx-react requires React to be available");if(!Sn)throw new Error("mobx-react requires mobx to be available");const hA=W.createRef(),jv=r=>{hA.current?.show(r)},Dx=W.forwardRef((r,i)=>{const[s,o]=W.useState(null);return W.useImperativeHandle(i,()=>({show:h=>{o(h)}})),w.jsx(tA,{opened:!!s,onBackdropClick:()=>o(null),title:s?.title,content:s?.content,buttons:w.jsx("div",{children:s?.buttons.map(h=>w.jsx(nA,{onClick:()=>{h.onClick?.(),o(null)},children:h.text},h.text))})})});var mA={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zD=X.createContext&&X.createContext(mA),Ax=["attr","size","title"];function bx(r,i){if(r==null)return{};var s=yx(r,i),o,h;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(r);for(h=0;h<m.length;h++)o=m[h],!(i.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(s[o]=r[o])}return s}function yx(r,i){if(r==null)return{};var s={};for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){if(i.indexOf(o)>=0)continue;s[o]=r[o]}return s}function eg(){return eg=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},eg.apply(this,arguments)}function kD(r,i){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);i&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(r,h).enumerable})),s.push.apply(s,o)}return s}function tg(r){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?kD(Object(s),!0).forEach(function(o){_x(r,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):kD(Object(s)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(s,o))})}return r}function _x(r,i,s){return i=xx(i),i in r?Object.defineProperty(r,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[i]=s,r}function xx(r){var i=Ex(r,"string");return typeof i=="symbol"?i:i+""}function Ex(r,i){if(typeof r!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var o=s.call(r,i);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}function gA(r){return r&&r.map((i,s)=>X.createElement(i.tag,tg({key:s},i.attr),gA(i.child)))}function Ut(r){return i=>X.createElement(Cx,eg({attr:tg({},r.attr)},i),gA(r.child))}function Cx(r){var i=s=>{var{attr:o,size:h,title:m}=r,p=bx(r,Ax),D=h||s.size||"1em",b;return s.className&&(b=s.className),r.className&&(b=(b?b+" ":"")+r.className),X.createElement("svg",eg({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,o,p,{className:b,style:tg(tg({color:r.color||s.color},s.style),r.style),height:D,width:D,xmlns:"http://www.w3.org/2000/svg"}),m&&X.createElement("title",null,m),r.children)};return zD!==void 0?X.createElement(zD.Consumer,null,s=>i(s)):i(mA)}function Sx(r){return Ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(r)}function Fx(r){return Ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"},child:[]}]})(r)}function wx(r){return Ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"},child:[]}]})(r)}function cg(r){return Ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(r)}class Ox{constructor(){w1(this)}fastAnswers=[];loadFastAnswers(){this.mode=="full"&&Pt.fastAnswers().then(({result:i})=>{this.fastAnswers=i??[]})}mode="widget";setMode(i){this.mode=i}isFixedChannel=!1;setIsFixedChannel(i){this.isFixedChannel=i}userID=null;loadUser(){return new Promise(i=>{Pt.profileID().then(({result:s})=>{this.userID=s??null,i(!0)})})}isMobile=()=>window.innerWidth<768||this.cap;cap=!1;setCap(i){this.cap=i}channelTab="member";setChannelTab(i){this.channelTab=i}selectChannel=null;setSelectChannel(i){this.selectChannel=i}dialogsLoading=!1;channelList=[];channelListLastHash=null;joinChannelListLastHash=null;channelListPollingInterval=null;loadChannelList(){const i=this.channelList.length===0;i&&(this.dialogsLoading=!0);const s=!this.channelTab||this.channelTab==="member";(s?Pt.channelList({},["shmChannelMessages"]):Pt.joinChannelList({},["shmChannelMessages"])).then(({result:h})=>{Ka(()=>{this.channelList=h?.data??[],s?this.channelListLastHash=h?.hash??null:this.joinChannelListLastHash=h?.hash??null})}).finally(()=>{Ka(()=>{i&&(this.dialogsLoading=!1)})})}startChannelListPolling(){this.stopChannelListPolling();const i=5e3;this.channelListPollingInterval=setInterval(()=>{const s=!this.channelTab||this.channelTab==="member";(s?Pt.channelList:Pt.joinChannelList)({limit:50,offset:0,onlyHash:!0}).then(({result:h})=>{const m=s?this.channelListLastHash:this.joinChannelListLastHash;h!=null&&h!==m&&this.loadChannelList()})},i)}stopChannelListPolling(){this.channelListPollingInterval&&(clearInterval(this.channelListPollingInterval),this.channelListPollingInterval=null)}}const Re=new Ox,bv=W.createRef(),Mx=W.forwardRef((r,i)=>{const[s,o]=W.useState(!1),[h,m]=W.useState({name:"",text:""});return W.useImperativeHandle(i,()=>({open:p=>{o(!0),m(p||{name:"",text:""})},close:()=>o(!1)})),w.jsx(sA,{opened:s,onBackdropClick:()=>o(!1),children:w.jsxs(du,{className:"ios:bg-white ios:dark:bg-stone-900 ",children:[w.jsx(Nc,{title:"Быстрый ответ",right:w.jsx(fu,{iconOnly:!0,onClick:()=>o(!1),children:w.jsx(cg,{size:24})})}),w.jsxs(Du,{outline:!0,dividers:!0,children:[w.jsx(Yd,{value:h.name,onChange:p=>m(D=>({...D,name:p.target.value})),title:"Название",placeholder:"Введите название"}),w.jsx(Yd,{value:h.text,onChange:p=>m(D=>({...D,text:p.target.value})),inputClassName:"!h-20 resize-none",type:"textarea",title:"Текст быстрого ответа",placeholder:"Введите текст быстрого ответа"})]}),w.jsxs(Nv,{className:"flex items-center justify-center gap-2",children:[w.jsx(kr,{disabled:!h.name||!h.text,onClick:()=>{Pt.mFastAnswers({id:h._id,name:h.name,text:h.text}).then(({result:p})=>{Re.loadFastAnswers(),o(!1)})},children:"Сохранить"}),!!h._id&&w.jsxs(kr,{outline:!0,onClick:()=>{jv({title:"Удалить быстрый ответ?",content:"Вы уверены, что хотите удалить этот быстрый ответ?",buttons:[{text:"Удалить",onClick:()=>{ny({delete:!0,id:h._id}).then(({result:p})=>{Re.loadFastAnswers(),o(!1)})}},{text:"Отмена",onClick:()=>{}}]})},children:[w.jsx(Sx,{size:24})," Удалить"]})]})]})})});function pA(r){return Ut({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 0 0 8a8 8 0 0 0 16 0m-7.5 3.5a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707z"},child:[]}]})(r)}function vA(r){return Ut({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5M11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47M8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5"},child:[]}]})(r)}function DA(r){return Ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M8,11 C8,14 9.790861,15 12,15 C14.209139,15 16,14 16,11 L16,5 C16,2 14.209139,1 12,1 C9.790861,1 8,2 8,5 L8,11 Z M4,9 L4,11 C4,16 7.581722,19 12,19 C16.418278,19 20,16 20,11 L20,9 M12,24 L12,19"},child:[]}]})(r)}const Tx=({onCancel:r,onSend:i})=>{const[s,o]=W.useState(0),h=W.useRef(null),m=W.useRef(null),p=W.useRef(null),D=W.useRef(null),b=W.useRef([]),[y,F]=W.useState(!1);W.useEffect(()=>{setTimeout(()=>{F(!0)},500)},[]);const M=W.useRef(!1);W.useEffect(()=>M.current?void 0:(M.current=!0,(async()=>{try{const I=await navigator.mediaDevices.getUserMedia({audio:!0});p.current=I;const ie=new MediaRecorder(I,{mimeType:"audio/webm"});ie.ondataavailable=ce=>b.current.push(ce.data),ie.onstop=()=>{const ce=new Blob(b.current,{type:"audio/webm"});h.current=ce,b.current=[]},ie.start(),m.current=ie,D.current=setInterval(()=>o(ce=>ce+1),1e3)}catch(I){console.error("🎙 Не удалось получить доступ к микрофону",I),r()}})(),()=>{D.current&&clearInterval(D.current)}),[]);const L=()=>{m?.current?.stop(),p.current?.getTracks().forEach(q=>q.stop()),D.current&&clearInterval(D.current),setTimeout(()=>{h.current&&i(h.current)},200)},U=()=>{m?.current?.stop(),p.current?.getTracks().forEach(q=>q.stop()),D.current&&clearInterval(D.current),r()},z=q=>`${Math.floor(q/60)}:${(q%60).toString().padStart(2,"0")}`;return w.jsx(oA,{backdrop:!0,className:"pb-safe ",onBackdropClick:U,opened:y,children:w.jsxs("div",{className:"flex  items-start space-x-4 justify-center py-8 ",children:[w.jsx("div",{onClick:U,className:" bg-gray-600 text-white p-6 rounded-full",children:w.jsx(cg,{size:36})}),w.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[w.jsx("div",{className:"animate-pulse bg-red-600 p-6 rounded-full",children:w.jsx(DA,{className:"text-white",size:36})}),w.jsx("div",{className:"dark:text-white text-black text-xl",children:z(s)})]}),w.jsx("div",{className:" bg-green-600 text-white  p-6 rounded-full",onClick:L,children:w.jsx(pA,{size:36})})]})})},AA=W.createRef(),bA=W.forwardRef((r,i)=>{const[s,o]=W.useState(!1),h=W.useRef(null);return W.useImperativeHandle(i,()=>({open:m=>{h.current=m,o(!0)},close:()=>{o(!1),h.current=null}})),s?w.jsx(Tx,{onCancel:()=>{h.current?.onClose(),o(!1),h.current=null},onSend:m=>{h.current?.onSend(m),o(!1),h.current=null}}):null});bA.displayName="RecordingSheetRoot";const yA=W.createRef(),_A=r=>{yA.current?.show(r)},Bx=W.forwardRef((r,i)=>{const[s,o]=W.useState(null);return W.useImperativeHandle(i,()=>({show:h=>{o(h)}})),W.useEffect(()=>{if(s){const h=setTimeout(()=>{o(null)},3e3);return()=>clearTimeout(h)}},[s]),w.jsx(uA,{opened:!!s,onClick:()=>{o(null)},text:s,button:!0})}),Vd=window.location.hostname==="localhost"||window.location.port=="8888",Rx=()=>{if(Vd)return"http://localhost:8888/chat/support";let r=window.location.href;return r=r.split("#")[0],r=r.split("?")[0],r},Nx="data:audio/mpeg;base64, ",Lx=5e3,zx=new Audio(Nx);class kx{channelID=void 0;channel=null;joinInChannel=null;messagesList=[];messagesLoading=!1;messagesFetchInFlight=0;messagesLastHash=null;loadMessagesPollingInterval=null;replyMsg=null;sending=!1;messageText="";recording=!1;pendingScrollToBottom=!1;constructor(){w1(this)}get pinnedMessage(){const i=this.messagesList?.filter(s=>s.pinned?.enabled);return i?.[i.length-1]??null}openChannel(i){this.channelID=i,this.channel=null,this.joinInChannel=null,this.messagesList=[],this.messagesLoading=!1,this.messagesFetchInFlight=0,this.replyMsg=null,this.pendingScrollToBottom=!1,this.loadMessagesPollingInterval&&(clearInterval(this.loadMessagesPollingInterval),this.loadMessagesPollingInterval=null),i&&this.refreshChannel()}refreshChannel(){this.channel=null,this.joinInChannel=null,this.channelID&&Pt.channelInfo({channel:this.channelID}).then(({result:i})=>{Ka(()=>{if(i){this.channel=i;const s=i?.members?.find(o=>o.owner==Re.userID);this.joinInChannel=!!s}})})}updateChannelInfo(){this.channelID&&Pt.channelInfo({channel:this.channelID}).then(({result:i})=>{Ka(()=>{if(i){this.channel=i;const s=i?.members?.find(o=>o.owner==Re.userID);this.joinInChannel=!!s}})})}loadMessages(){if(!this.channel?._id)return;this.messagesList.length===0&&(this.messagesLoading=!0),Ka(()=>{this.messagesFetchInFlight++}),Pt.channelMessages({channel:this.channel._id,limit:50,offset:0},["shmChannelMessages"]).then(({result:s})=>{Ka(()=>{this.messagesList=s?.data??[],this.messagesLastHash=s?.hash??null,this.messagesLoading=!1})}).catch(()=>{Ka(()=>{this.messagesLoading=!1,this.pendingScrollToBottom=!1})}).finally(()=>{Ka(()=>{this.messagesFetchInFlight--})})}startMessagesPolling(i){this.channel?._id&&(this.stopMessagesPolling(),this.loadMessagesPollingInterval=setInterval(()=>{this.messagesFetchInFlight>0||Pt.channelMessages({channel:this.channel._id,limit:50,offset:0,onlyHash:!0}).then(({result:s})=>{Vd&&(console.log("POLLING Проверка на новые сообщения"),console.log("POLLING Пришло новое значение",s),console.log("POLLING Текущее значение",this.messagesLastHash)),s?.hash!=null&&s.hash!==this.messagesLastHash&&(console.log("POLLING Не равны, обновляем информацию о канале"),this.updateChannelInfo(),Ka(()=>{this.messagesFetchInFlight++}),Pt.channelMessages({channel:this.channel._id,limit:50,offset:0},["shmChannelMessages"]).then(({result:o})=>{Ka(()=>{const h=this.messagesList[this.messagesList.length-1]?._id,m=o?.data??[],p=m[m.length-1],D=p?._id;h&&D&&h!==D&&(i?.(),p?.owner!=Re.userID&&zx.play()),this.messagesList=m,this.messagesLastHash=o?.hash??null,Vd&&console.log("POLLING Обновлены сообщения",o?.hash)})}).finally(()=>{Ka(()=>{this.messagesFetchInFlight--})}))})},Lx))}stopMessagesPolling(){this.loadMessagesPollingInterval&&(clearInterval(this.loadMessagesPollingInterval),this.loadMessagesPollingInterval=null)}setJoinInChannel(i){this.joinInChannel=i}setReplyMsg(i){this.replyMsg=i}setMessageText(i){this.messageText=i}setRecording(i){this.recording=i}setSending(i){this.sending=i}clearPendingScrollToBottom(){this.pendingScrollToBottom=!1}async sendMessage(i){if(this.channel?._id){i.channel=this.channel._id,this.replyMsg?._id&&(i.reply=this.replyMsg._id),this.sending=!0;try{await Pt.channelSendMessage(i),Ka(()=>{this.replyMsg&&(this.replyMsg=null),i.text&&(this.messageText=""),this.pendingScrollToBottom=!0}),this.loadMessages()}finally{Ka(()=>{this.sending=!1})}}}resetCompose(){this.replyMsg=null,this.messageText=""}}const Fe=new kx,Uv="data:image/jpeg;base64, ",jx=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Ux(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(r)}function Hx(r){return Ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"44",d:"M465 127 241 384l-92-92m-9 93-93-93m316-165L236 273"},child:[]}]})(r)}function Ix(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(r)}function jD(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",x2:"9",y1:"12",y2:"12"},child:[]}]})(r)}function Gx(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 7.5 8 10l2 2.5"},child:[]},{tag:"path",attr:{d:"m14 7.5 2 2.5-2 2.5"},child:[]},{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(r)}function Yx(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(r)}function qx(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12h14"},child:[]},{tag:"path",attr:{d:"M12 5v14"},child:[]}]})(r)}function Vx(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11v1a10 10 0 1 1-9-10"},child:[]},{tag:"path",attr:{d:"M8 14s1.5 2 4 2 4-2 4-2"},child:[]},{tag:"line",attr:{x1:"9",x2:"9.01",y1:"9",y2:"9"},child:[]},{tag:"line",attr:{x1:"15",x2:"15.01",y1:"9",y2:"9"},child:[]},{tag:"path",attr:{d:"M16 5h6"},child:[]},{tag:"path",attr:{d:"M19 2v6"},child:[]}]})(r)}function Qx(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M8 14s1.5 2 4 2 4-2 4-2"},child:[]},{tag:"line",attr:{x1:"9",x2:"9.01",y1:"9",y2:"9"},child:[]},{tag:"line",attr:{x1:"15",x2:"15.01",y1:"9",y2:"9"},child:[]}]})(r)}const UD=["🦁","🐯","🦅","🦉","🦄","🐎","🦌","🐺","🐆","🦢","🐬","🐳","🦖","🦕","🐉","😎","🙂","😊","🧐","🤓","🤖","👾","🐱","🦊","🐻","🐼","🐨","🐯","🦁","🐸","🐙","🐶","🐱","🐰","🐻","🐼","🐨"],xA=r=>{let i=0;for(let o=0;o<r.length;o++)i=r.charCodeAt(o)+((i<<5)-i);const s=Math.abs(i)%UD.length;return UD[s]},HD=new Map,Kx=r=>{const i=[];let h=25;for(let m=0;m<r;m++){const p=(Math.random()-.5)*3,D=Math.max(10,Math.min(50,h+p));i.push(Math.round(D)),h=D}return i},Zx=({src:r,barsCount:i=30,cacheKey:s,barColor:o})=>{const h=W.useRef(null),[m,p]=W.useState(!1),[D,b]=W.useState(0),[y,F]=W.useState(0),[M,L]=W.useState([]);W.useEffect(()=>{const I=s??r,ie=HD.get(I);if(ie&&ie.length===i){L(ie);return}const ce=Kx(i);HD.set(I,ce),L(ce)},[i,s,r]),W.useEffect(()=>{const I=h.current;if(!I)return;const ie=()=>{I.duration&&b(I.currentTime/I.duration*100)},ce=()=>{F(I.duration||0)};return I.addEventListener("timeupdate",ie),I.addEventListener("loadedmetadata",ce),I.addEventListener("ended",()=>p(!1)),()=>{I.removeEventListener("timeupdate",ie),I.removeEventListener("loadedmetadata",ce)}},[]);const U=()=>{const I=h.current;I&&(m?I.pause():I.play(),p(!m))},z=I=>{const ie=h.current;if(!ie||!y)return;const ce=I/M.length*y;ie.currentTime=ce},q=Math.floor(D/100*M.length);return w.jsxs("div",{className:"flex items-end  mt-4",onClick:I=>{I.preventDefault(),I.stopPropagation()},children:[w.jsx("audio",{ref:h,src:r,preload:"metadata"}),w.jsx("div",{children:w.jsx("div",{onClick:I=>{I.preventDefault(),I.stopPropagation(),U()},className:"mr-1",children:m?w.jsx(Fx,{size:28}):w.jsx(wx,{size:28})})}),w.jsx("div",{className:"flex items-end space-x-1 flex-1  cursor-pointer overflow-hidden",children:M.map((I,ie)=>w.jsx("div",{onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),z(ie)},className:`w-[2px] rounded-sm transition-colors duration-200  ${ie<=q?"opacity-100":"opacity-50"}`,style:{height:`${I}px`,backgroundColor:o}},ie))})]})};function Xx(r){return Ut({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z"},child:[]}]})(r)}function Px(r){return Ut({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8 8 0 0 1 12.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"},child:[]}]})(r)}function Jx(r){return Ut({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 0 1 5.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 0 1-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 0 1-1.12-.15 2.07 2.07 0 0 1-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 0 1-1.36 6.31 6.7 6.7 0 0 1-2.17 1.28z"},child:[]}]})(r)}function ID(r){return Ut({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"},child:[]}]})(r)}function GD(r){return Ut({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z"},child:[]}]})(r)}function Wx(r){return Ut({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z"},child:[]}]})(r)}const Hv=({doc:r,size:i=40,className:s=""})=>{const o=r?.type;if(!o)return w.jsx(GD,{size:i,className:s});const h={image:Px,audio:Xx,video:Wx,"application/pdf":Jx,"application/zip":ID,"application/x-zip-compressed":ID};if(h[o]){const p=h[o];return w.jsx(p,{size:i,className:s})}const m=o.split("/")[0];if(m=="image")return w.jsx("img",{src:r.url,alt:r.name,style:{width:i,height:i},className:` object-cover ${s} rounded-xl bg-white`});if(h[m]){const p=h[m];return w.jsx(p,{size:i,className:s})}return w.jsx(GD,{size:i,className:s})},EA=({msg:r,onClick:i})=>{const s=!!r.deleted;return w.jsx("div",{className:"mb-2 mt-2 border-l-2 border-gray-500 pl-2",children:w.jsx("div",{onClick:o=>{o.stopPropagation(),i()},id:`replay-msg-${r._id}`,children:s?w.jsx(w.Fragment,{children:w.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[w.jsx(vA,{className:"w-4 h-4"})," Сообщение удалено"]})}):w.jsxs(w.Fragment,{children:[w.jsx("div",{children:r.text}),r.voice?.url&&w.jsx("div",{className:"text-sm ",children:"Аудио сообщение"}),r.attachments?.map(o=>w.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[w.jsx(Hv,{doc:o}),w.jsx("div",{children:o.name})]}))]})})})};ul.locale("ru");const CA=[{name:"❤️",label:"Сердце",value:"heart"},{name:"👍",label:"Лайк",value:"like"},{name:"😂",label:"Смех",value:"laugh"},{name:"😮",label:"Удивление",value:"wow"},{name:"😢",label:"Грусть",value:"sad"},{name:"😡",label:"Злость",value:"angry"},{name:"👏",label:"Аплодисменты",value:"clap"},{name:"🎉",label:"Праздник",value:"party"},{name:"💩",label:"Стыд",value:"poop"},{name:"🔥",label:"Огонь",value:"fire"}],$x=r=>{const i=CA.find(s=>s.value===r);return i?i.name:""};function e3(r){if(!r)return!1;const i=jx(),s=r.match(i);if(!s)return!1;const o=s.join("")===r,h=s.length<=8;return o&&h}const t3=({onReplayClick:r,onReactionClick:i,msg:s,onClick:o,onChange:h})=>{const m=L=>{Pt.channelReaction({message:s._id,channel:s.channel,reaction:L}).then(()=>{h()})},p=()=>{if(!s.reactions||s.reactions.length==0)return null;const L=$v.groupBy(s.reactions,U=>U.type);return w.jsx("div",{className:"flex items-center space-x-1 mt-2",children:$v.map(L,(U,z)=>w.jsx(Lv,{onClick:q=>{q.stopPropagation(),m(z)},media:w.jsx("div",{className:"ml-2",children:$x(z)}),className:"m-1 cursor-pointer",children:w.jsx("span",{className:"font-medium",children:U.length})},z))})},D=Ov.shmChannelMessagesByID(s.reply),b=!!s.deleted;if(s.type=="system")return w.jsx("div",{className:"text-sm  text-center p-6 opacity-70",children:s.text});const F=document.body.classList.contains("dark"),M=e3(s.text);return w.jsx(w.Fragment,{children:w.jsx(zv,{className:`${M?"only-emoji-msg":""}`,onClick:()=>{b||o()},type:s.owner!=Re.userID?"received":"sent",text:b?w.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[w.jsx(vA,{className:"w-4 h-4"})," Сообщение удалено"]}):w.jsxs("div",{id:`msg-${s._id}`,children:[!!D&&w.jsx(EA,{msg:D,onClick:()=>{D&&r(D)}}),w.jsx("div",{style:{fontSize:M?50:void 0},children:s.text}),s.voice?.url&&w.jsx(Zx,{barColor:F?s.owner==Re.userID?"#000":"#fff":s.owner==Re.userID?"#fff":"#000",src:s.voice?.url,cacheKey:s._id}),s.attachments?.map(L=>w.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[w.jsx(Hv,{doc:L}),w.jsx("div",{children:L.name}),w.jsx("div",{onClick:U=>{U.stopPropagation(),window.open(L.url,"_blank")},children:w.jsx(Ux,{})})]})),w.jsx(p,{}),s.owner!=Re.userID?w.jsx(w.Fragment,{children:w.jsx("div",{onClick:L=>{i(s),L.stopPropagation(),L.preventDefault()},id:`msg-add-reactions-${s._id}`,className:"absolute top-3 -right-6",children:w.jsx(fu,{children:w.jsx(Vx,{className:"w-4 h-4"})})})}):w.jsx(w.Fragment,{})]}),footer:w.jsxs("div",{className:"flex items-center gap-1",children:[s.created_at&&ul.unix(s.created_at).format("DD.MM HH:mm"),s.owner==Re.userID&&s.viewed&&w.jsx(Hx,{size:16,className:" text-gray-500"})]}),avatar:s.owner!=Re.userID&&w.jsx("div",{className:"bg-white dark:bg-gray-800 border-2 border-gray-200 dark:border-gray-700 text-xl rounded-full w-8 h-8 flex items-center justify-center -mt-5",children:xA(s.owner??"")})},s._id)})},n3=({msg:r,onClick:i,onPin:s})=>w.jsxs("div",{className:"mb-2 mt-2 border-l-2 w-full border-gray-500 pl-2  flex justify-between items-center",children:[w.jsxs("div",{className:"active:opacity-50 cursor-pointer",onClick:o=>{o.stopPropagation(),i()},id:`pin-msg-${r._id}`,children:[w.jsx("div",{children:r.text}),r.voice?.url&&w.jsx("div",{className:"text-sm text-gray-500",children:"Аудио сообщение"}),r.attachments?.map(o=>w.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[w.jsx(Hv,{doc:o}),w.jsx("div",{children:o.name})]}))]}),w.jsx("div",{className:"cursor-pointer active:opacity-50 p-2",onClick:o=>{o.stopPropagation(),s()},children:w.jsx(cg,{})})]}),a3=r=>{r&&(navigator.clipboard.writeText(r),_A("Текст сообщения скопирован в буфер обмена"))},r3=W.forwardRef((r,i)=>{const[s,o]=W.useState(null),h=W.useRef(null);W.useImperativeHandle(i,()=>({open:y=>{p(!0),o(y.msg),h.current=y}}));const[m,p]=W.useState(!1),D=()=>{p(!1)},b=s?.owner==Re.userID;return!m||!s?._id?null:w.jsx(Lc,{opened:m&&!!s?._id,target:`#msg-${s?._id}`,onBackdropClick:D,children:w.jsxs(Du,{nested:!0,outline:!0,dividers:!0,children:[w.jsx(aa,{title:"Ответить",link:!0,onClick:()=>{s&&(h.current?.onReply?.(s),D())}}),!!s.text&&w.jsx(aa,{title:"Копировать текст",link:!0,onClick:()=>{s&&(a3(s.text),D())}}),w.jsx(aa,{title:s?.pinned?.enabled?"Убрать закрепление":"Закрепить",link:!0,onClick:()=>{s&&(h.current?.onPinned?.(),D())}}),b&&w.jsx(aa,{title:w.jsx("span",{className:"text-red-500",children:"Удалить"}),link:!0,onClick:()=>{s&&(h.current?.onDelete?.(),D())}})]})})}),i3=W.forwardRef((r,i)=>{const[s,o]=W.useState(null),h=W.useRef(null);W.useImperativeHandle(i,()=>({open:F=>{p(!0),o(F.msg),h.current=F}}));const[m,p]=W.useState(!1),D=()=>{p(!1)},b=F=>{D(),Pt.channelReaction({channel:s?.channel,message:s?._id,reaction:F}).then(()=>{h.current?.onChange?.()})},y=()=>{const F=s?.reactions?.find(M=>M.user==Re.userID);return w.jsx(Du,{nested:!0,outline:!0,dividers:!0,children:CA.map((M,L)=>w.jsx(aa,{title:`${M.label}`,media:w.jsx("div",{className:"ml-2",children:M.name}),link:!0,chevron:!1,after:F?.type==M.value?w.jsx(Ix,{className:"w-4 h-4"}):null,onClick:()=>{b(M.value)}}))})};return!m||!s?._id?null:w.jsx(Lc,{opened:m&&!!s?._id,target:`#msg-add-reactions-${s?._id}`,onBackdropClick:D,className:"w-[300px]",children:w.jsx(y,{})})}),l3=()=>w.jsx(w.Fragment,{children:[1,2,3,4].map(r=>w.jsx(zv,{className:"animate-pulse",type:r%2==0?"received":"sent",text:"▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒"},r))}),u3=300,s3=320,o3=sl(()=>{const r=W.useRef(null),i=W.useRef(null),s=W.useRef(null),o=W.useRef(null),h=()=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{o.current=null,requestAnimationFrame(()=>{const D=r.current;if(!D)return;const b=Math.max(0,D.scrollHeight-D.clientHeight),y=b-D.scrollTop;D.scrollTo({top:b,behavior:y>0&&y<=s3?"smooth":"auto"})})},u3)};W.useEffect(()=>(Fe.channel?._id&&(Fe.loadMessages(),Fe.channel?.closed?Fe.stopMessagesPolling():Fe.startMessagesPolling(h)),()=>{Fe.stopMessagesPolling(),o.current&&clearTimeout(o.current)}),[Fe.channel?._id,Fe.channel?.closed]);const m=W.useRef(!1);W.useEffect(()=>{Fe.messagesList?.length&&r.current&&(m.current||(m.current=!0,h()))},[Fe.messagesList?.length]),W.useEffect(()=>{Fe.pendingScrollToBottom&&Fe.messagesList?.length&&(h(),Fe.clearPendingScrollToBottom())},[Fe.messagesList]);const p=D=>{if(!D){console.warn("Не указан ID сообщения для скрола");return}let y=document.getElementById(`msg-${D}`)?.parentElement?.parentElement?.parentElement?.parentElement?.offsetTop;y&&r.current?setTimeout(()=>{y&&r.current&&r.current.scrollTo({top:y-100,behavior:"smooth"})},100):console.warn(`Не найден элемент с ID msg-${D}`)};return w.jsxs(w.Fragment,{children:[!!Fe.pinnedMessage&&w.jsx(lA,{top:!0,children:w.jsx(n3,{onPin:()=>{Pt.pinnedMessage({message:Fe.pinnedMessage._id}).then(()=>{Fe.loadMessages()})},onClick:()=>{p(Fe.pinnedMessage._id)},msg:Fe.pinnedMessage})}),w.jsxs("div",{ref:r,className:"overflow-y-scroll h-screen",children:[w.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-10",style:{background:`url(${Uv})`}}),w.jsxs("div",{className:"flex flex-col relative z-1 px-4 mb-48",children:[Fe.messagesLoading&&!Fe.messagesList?.length&&w.jsx(l3,{}),Fe.messagesList?.map(D=>w.jsx(t3,{onReplayClick:b=>{p(b._id)},onReactionClick:b=>{s.current?.open({msg:b,onChange:()=>{Fe.loadMessages()}})},onClick:()=>{i.current?.open({msg:D,onChange:()=>{Fe.loadMessages()},onPinned:()=>{Pt.pinnedMessage({message:D._id}).then(()=>{Fe.loadMessages()})},onDelete:()=>{Pt.channelDeleteMessage({message:D._id,channel:Fe.channel?._id}).then(()=>{Fe.loadMessages()})},onReply:b=>{Fe.setReplyMsg(b)}})},onChange:()=>{Fe.loadMessages()},msg:D},D._id)),!Fe.channel?.closed&&Fe.channel?.type=="support"&&Fe.channel?.members?.find(D=>D.owner==Re.userID)&&w.jsx("div",{onClick:()=>{jv({title:"Вы уверены?",content:"Вы уверены, что хотите закрыть обращение?",buttons:[{text:"Закрыть обращение",onClick:()=>{Pt.channelClose({channel:Fe.channel?._id}).then(()=>{Fe.loadMessages(),Fe.refreshChannel()})}},{text:"Отмена",onClick:()=>{}}]})},className:"flex justify-center items-center cursor-pointer active:opacity-50 mt-2",children:w.jsx(Lv,{children:"Закрыть обращение"})})]}),w.jsx(i3,{ref:s}),w.jsx(r3,{ref:i})]})]})});function c3(r){return Ut({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.404 5.11l-1.015-1.014-5.075 5.074c-0.841 0.841-0.841 2.204 0 3.044s2.204 0.841 3.045 0l6.090-6.089c1.402-1.401 1.402-3.673 0-5.074s-3.674-1.402-5.075 0l-6.394 6.393c-0.005 0.005-0.010 0.009-0.014 0.013-1.955 1.955-1.955 5.123 0 7.077s5.123 1.954 7.078 0c0.004-0.004 0.008-0.009 0.013-0.014l0.001 0.001 4.365-4.364-1.015-1.014-4.365 4.363c-0.005 0.004-0.009 0.009-0.013 0.013-1.392 1.392-3.656 1.392-5.048 0s-1.392-3.655 0-5.047c0.005-0.005 0.009-0.009 0.014-0.013l-0.001-0.001 6.395-6.393c0.839-0.84 2.205-0.84 3.045 0s0.839 2.205 0 3.044l-6.090 6.089c-0.28 0.28-0.735 0.28-1.015 0s-0.28-0.735 0-1.014l5.075-5.075z"},child:[]}]})(r)}function f3(r){return Ut({attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 25 4.03125 C 24.234375 4.03125 23.484375 4.328125 22.90625 4.90625 L 13 14.78125 L 12.78125 15 L 12.71875 15.3125 L 12.03125 18.8125 L 11.71875 20.28125 L 13.1875 19.96875 L 16.6875 19.28125 L 17 19.21875 L 17.21875 19 L 27.09375 9.09375 C 28.246094 7.941406 28.246094 6.058594 27.09375 4.90625 C 26.515625 4.328125 25.765625 4.03125 25 4.03125 Z M 25 5.96875 C 25.234375 5.96875 25.464844 6.089844 25.6875 6.3125 C 26.132813 6.757813 26.132813 7.242188 25.6875 7.6875 L 16 17.375 L 14.28125 17.71875 L 14.625 16 L 24.3125 6.3125 C 24.535156 6.089844 24.765625 5.96875 25 5.96875 Z M 4 8 L 4 28 L 24 28 L 24 14.8125 L 22 16.8125 L 22 26 L 6 26 L 6 10 L 15.1875 10 L 17.1875 8 Z"},child:[]}]})(r)}const d3="data:audio/mpeg;base64,SUQzAwAAAAAATlRFTkMAAAATIAAAU291bmQgR3JpbmRlciA0LjAAQVBJQwAAAAQgAAAAAABUQ09QAAAAGSAAAENvcHlyaWdodCBBbGFuIE1jS2lubmV5AP/7mEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhpbmcAAAAPAAAABQAACNwAGxsbGxsbGxsbGxsbGxsbGxsbG2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dn1NTU1NTU1NTU1NTU1NTU1NTU1NTq6urq6urq6urq6urq6urq6urq6v//////////////////////////AAAADkxBTUUzLjEwMAN9AAAAAAAAAADUICQEQI0AAaQAAAjcsAR05wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/7KGgAAAAAAGkFAAAIAAANIKAAAQhQrTzY2gAAvZRnBw8gAAASAgQAAQPMCvxgyF4sQd/ihwagvwAkgHECAHF/8GwQTxBF//gWDi4Bmw48iBB///HeaF8rsmbu/5d5u//+n6f//pIIA9Sniwj4gAM8oC7/DlwJ2IAf4fOYk///GQL6BIG5p//5pDH/6P//+m///0H7kCAABTMwaYmZrIKWFdEGMo7hCh/GCA6h0i7AAYGkI//7iGgPCfasPNA/P4AAxOr55+fsAEWYTzK0HoAAfgkmAoPAAAAYLBgcCgYETEAhHhKYVHhmEhGRSCav2BmjgmjgEZbOBmMdAUKmMBuYoBYjCxhgOhwdBoKMIgpNkEAcwMAWSA0BF4XAL/JXPWkKwV6lTPzATEoGgFrsViTvSF0mJSJ9WuyGGnesxJ/qOUw7IYk7UZqNKV0rawWUOVD1SGoezjMZsPs71h9nen4Zd29DT/Xoah6/KYdvSqNXpVGugqAg4DQFDQNFg6JRgcBpZ0RKPAqIgeArv///2JCAArkkRuDFkVzNKhqEok0UJXRBjiO0QksK8S5KsJfYwcIRaMAFzKh0xgaNa4zLewOkzJjUyoVLyGHiQOFhwBMBAkuk0S4rZk5kwouraxKVtZcWgcpp0EsNh6IuTFYk/09KYdizgs5kL7O9RwzDvZmW3u5U1NXfZnTPwgBRuXtALi4TMtuWst4//////////////67+8f1l+WX7x5rL9ZfjjzLL8su1aXmVNytTZymHZhyou1qTwzDtSNWt0uW6XkJKbF/eMEPr/LrG5Vjjxr6EYMmEQHGLoeGPbFHb60AI+xoMSYDlQus9svzubpY1n//1r/+R/d6u4QSm4EAMw4DTEinOTJkWKCbLUX6nZ6wEUUWA9qOFIAMCtgsKAP/7qGgFgAcJZ1JuYqAAnUz6bcZQAA2A0UM8HgABXRnot4NQAEABjv1KqgyGPfaemuSGQK/bSG0H/hOZmLCM0BggNgUEwgwAwDF0UwAYIiCQGCRGCIdgZ4AxzYA4EABEALnxWgHE3uBow0g0IAGFxfV4GEgAFqwsfDzi2ht4GHRGA0vAGEmBjsZAYWF4RE3+JzIYVES8RAdhfAeFgMJgEAIUAYMAYGBQMBACgLAUG6n/upaZXMGTUaADAsMFBgkTsA0HAMKgMAYGBgkG8Qej//NE+7+zDkkwRcniKlIpF8nC6XjEx////9voJpIqUmyKR1ZoXyuaH//p/4t0hD4m0AIxuBiGAyAAh07YSQmmTwdBPQ+sdqxgLqBJF0MbBuz5F5fIUnQugI0AkvTbCysBRGIKEDA5D4DNjgmDCzjr8DHgQyQLTBAoxRBAcwTMYgoEcoj/8PUI8rmyJPkTMCNIgRMixFTIyN//stOtPdqKhtDsK6SKX/9//skv/Utf////ZttnSRUpNBFI6Ylwi5ByKF//6X/4Mg0DgSkAAGYAQrIhOITCGIWOP5Zdquy13OWrSAoCAwGIQOZJ4xs0+GWSEYgEJhQDiQJpKbOljMtzjMOy3WWcpjNqrS4/ll/5ZZfvn5U3NZd/+ayxx5//vGz3HHH8u/uVOE/Uuy7/xL/iL////aVDRmFbSAAEx4HcWecKlmFJ6K6i8Ty3KIrUWSOgDCCTAyAHwMIAkG4g24ZJaNJJKkkl0kmv+iijUlRRdFFutFJ/6nqdq1EyMqOEnTu3/2nf////xKdBUFf/UgAAJUH///XRzU2GoG+DnDQBQDAYoFYGS56BoYOAYTAYDwCAgEAYXAA+TBVVW71d2Z+////////4V//6f//1/9RgDA93//T/PKnl7dFhYeexIIxofMl6TXhoDDaGYgAAUNR2o0daTLEEOJvoCE8NvzIosscwg//7GEg6idH/N0qYNSpgKyKZpQQ7OINIUTs0CQAA35ClQoOwAIDIivmCBuXaCBhb9////+V/5twEaH+t/br24Kze9GpyIFRMJgIPABAOpGSFSagN7VJU3XysY9/PH+9/v85z+6se96BP7v6vE1UCAAAAAAEAAACgAD8v/2+UAm/AFD4mb1uZ+v//WHf////0hf/7GEgRgAFDEk5WBUAAMiNKDMCoAAAAAaQcAAAgAAA0g4AABEAkQqNisAIAAABAAGCACEGB/l8Pq3isUAHfghBdFyX/FUsTCsTkv5UyHQD/2L//XZ//+z///9i1TEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRBRwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/",h3=["😂","❤️","🤣","👍","😭","🙏","😘","🥰","😍","😊","🎉","😁","💕","🥺","😅","🔥","💔","👏","😢","🤔","😆","🤗","🙂","💖","😎","👌","💯","✨","💪","🤷","😔","😏","😳","😱","🤪","😤","🌹","😇","🙌","😋","😌","😜","💘","😝","🥳","😴","😡","🤩","👀","🥲","🤤","🤯","😬","🙈","🥴","😮","😑","🙄","😞","👋","🤞","🤝","🤠","🤑","🤓","😷","🫶","🫠","🥵","🤬","🤐","🥸","😨","😰","😥","😪","🤢","🤮","🤡","💀","👻","👽","🤖","💩","😸","🐶","🐱","🦄","🌈","⭐","💫","🌙","☀️","⚡","💤","🎂","🍕","☕","🍻","🎁"];async function m3(){return new Promise(r=>{const i=document.createElement("input");i.type="file",i.style.display="none",i.addEventListener("change",()=>{const s=i.files?.[0]??null;if(i.remove(),s&&s.size>5242880){alert("❌ Файл слишком большой. Максимальный размер — 5MB."),r(null);return}r(s)}),document.body.appendChild(i),i.click()})}const g3=new Audio(d3),p3=sl(()=>{const r=Fe.channel?._id??"",i=W.useRef(null),[s,o]=W.useState(!1),h=W.useRef(null),m=()=>{Fe.sending||m3().then(L=>{L&&p(L)})},p=L=>{const U=new FormData;U.append("file",L),Fe.setSending(!0),Pt.channelDocumentUpload(U).then(z=>{if(!z||!r){Fe.setSending(!1);return}Fe.sendMessage({attachments:[z],channel:r})}).catch(()=>Fe.setSending(!1))},D=L=>{r&&Fe.sendMessage({...L,channel:r}).then(()=>{g3.play(),L.text&&i.current&&(i.current.style.height="auto")})},b=()=>{Fe.sending||(Fe.messageText?D({text:Fe.messageText}):AA.current?.open({onClose:()=>{},onSend:L=>{const U=new FormData;U.append("file",L,"audio.webm"),Fe.setSending(!0),Pt.channelVoiceUpload(U).then(z=>{z?._id&&r?D({voice:{_id:z._id}}):Fe.setSending(!1)}).catch(()=>Fe.setSending(!1))}}))},y=()=>{M(!0)},[F,M]=W.useState(!1);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{height:"auto"},className:"left-0 z-10 bottom-0 absolute  w-full  p-2 bg-ios-light-surface-2 dark:bg-ios-dark-surface-2 ",children:[Fe.sending&&w.jsx("div",{className:"flex items-center justify-center w-full  mb-2",children:w.jsx(kv,{className:"w-4 h-4 text-gray-800 dark:text-white"})}),Fe.replyMsg&&w.jsx(EA,{onClick:()=>{Fe.sending||Fe.setReplyMsg(null)},msg:Fe.replyMsg}),w.jsxs("div",{className:"w-full  flex",children:[w.jsxs("div",{className:"flex items-end",children:[Re.mode=="full"&&w.jsx("div",{onClick:()=>{o(!0)},ref:h,className:"p-2 flex items-center justify-center min-h-11 cursor-pointer active:opacity-50",children:w.jsx(Gx,{size:20,className:"text-gray-500"})}),w.jsx("div",{className:"p-2 flex items-center justify-center min-h-11 cursor-pointer active:opacity-50",children:w.jsx("div",{onClick:()=>{m()},children:w.jsx(c3,{className:"text-gray-500",size:20})})})]}),w.jsxs("div",{className:"relative  w-full",children:[w.jsx("textarea",{id:"text-area-messagebar",ref:i,value:Fe.messageText,className:" p-2 w-full outline-none border-none text-base resize-none overflow-hidden bg-white  rounded-md dark:bg-gray-800 pr-7",rows:1,onChange:L=>{if(Fe.sending)return;const U=L.currentTarget;U.style.height="auto",U.style.height=`${U.scrollHeight}px`;let z=L.target?.value;z.trim()===""&&(z=""),Fe.setMessageText(z)},placeholder:"Введите сообщение..."}),w.jsx("div",{className:`
                        absolute
                        right-0
                        bottom-1.5
                        p-2
                        flex
                        items-center
                        justify-center
                        cursor-pointer active:opacity-50`,children:w.jsx("div",{onClick:()=>{y()},children:w.jsx(Qx,{className:"text-gray-500",size:20})})})]}),w.jsx("div",{className:"flex items-end w-10 ",children:w.jsx("div",{onClick:()=>{b()},className:"p-2 flex items-center justify-center min-h-11 relative",children:Fe.messageText?w.jsxs(w.Fragment,{children:[w.jsx("input",{onFocus:()=>{i.current?.focus()},className:"absolute opacity-0  right-0 left-0 top-0 bottom-0  cursor-pointer"}),w.jsx(pA,{size:28,className:"w-6"})]}):w.jsx(DA,{size:28,className:"w-6"})})})]})]}),w.jsx(Lc,{opened:F,target:"#text-area-messagebar",onBackdropClick:()=>{M(!1)},children:w.jsx("div",{className:"p-2 grid grid-cols-4 gap-2 max-h-[500px] overflow-y-auto",children:F&&h3.map((L,U)=>w.jsx("div",{onClick:()=>{Fe.setMessageText(Fe.messageText+L)},className:"cursor-pointer flex items-center justify-center border-[1px] border-gray-500 rounded-md p-1 active:opacity-50",children:w.jsx("div",{className:"text-gray-500 text-2xl",children:L})},U))})}),w.jsx(Lc,{className:"w-[300px]",opened:s,target:h.current,onBackdropClick:()=>o(!1),children:w.jsxs(Du,{nested:!0,outline:!0,dividers:!0,children:[Re.fastAnswers.map(L=>w.jsx(aa,{title:L.name,link:!0,chevron:!1,onClick:()=>{L.text&&Fe.setMessageText(L.text),o(!1)},after:w.jsx(fu,{onClick:U=>{U.stopPropagation(),o(!1),bv.current?.open(L)},children:w.jsx(f3,{size:24})})})),w.jsx(aa,{media:w.jsx(qx,{size:20}),title:"Добавить быстрый ответ",link:!0,chevron:!1,onClick:()=>{bv.current?.open(),o(!1)}})]})})]})});ul.locale("ru");const v3=sl(({noPage:r})=>{const i=({children:s})=>r?w.jsx("div",{className:"relative w-full h-full",children:s}):w.jsx(du,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden",children:s});return W.useEffect(()=>{Re.loadFastAnswers()},[]),w.jsx(w.Fragment,{children:w.jsxs(i,{children:[!Re.cap&&w.jsx(Nc,{centerTitle:!0,outline:!0,title:Fe.channel?.name?Fe.channel?.name:"Диалог",right:Re.isMobile()&&w.jsx(w.Fragment,{children:w.jsx(fu,{onClick:()=>{M3()},children:w.jsx(cg,{size:24})})})}),!Fe.channel?.closed&&Fe.joinInChannel!=null&&!!Fe.channel?._id&&w.jsx(w.Fragment,{children:Fe.joinInChannel?w.jsx(p3,{}):Re.mode=="full"?w.jsxs("div",{style:{height:"auto"},className:"left-0  bottom-0 absolute  w-full  p-2 bg-ios-light-surface-2 dark:bg-ios-dark-surface-2 ",children:[" ",w.jsx(kr,{onClick:()=>{Fe.channel?._id&&Pt.joinChannel({channel:Fe.channel._id}).then(({result:s})=>{s&&Fe.updateChannelInfo()})},children:"Присоединиться"})]}):null}),w.jsx(o3,{})]})})}),D3=({noPage:r,channelID:i})=>(W.useLayoutEffect(()=>(Fe.openChannel(i),()=>Fe.stopMessagesPolling()),[i]),w.jsx(v3,{noPage:r})),SA=sl(D3);ul.locale("ru");const A3=()=>{const r=async()=>{let i=await Pt.mode();if(i.result=="widget"){Xt.setToken(()=>new URLSearchParams(window.location.search).get("token")??null);const o=new URLSearchParams(window.location.search).get("channel");Re.loadUser().then(()=>{if(o){Re.setIsFixedChannel(!0),wc().ChannelPage.move({channelID:o});return}else wc().MainPage.move({}),Re.setIsFixedChannel(!1)})}else Xt.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),Xt.setToken(()=>localStorage.getItem("token")??null),Xt.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),Re.setMode(i.result??"full"),localStorage.getItem("token")?Re.loadUser().then(()=>{wc().MainPage.move({})}):wc().LoginPage.move({})};return W.useEffect(()=>{r()},[]),w.jsx(du,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden flex items-center justify-center",children:w.jsx(kv,{})})},b3=sl(A3);function y3(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M22 18.0048C22 18.5544 21.5544 19 21.0048 19H12.9952C12.4456 19 12 18.5544 12 18.0048C12 17.4552 12.4456 17.0096 12.9952 17.0096H21.0048C21.5544 17.0096 22 17.4552 22 18.0048Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M22 12.0002C22 12.5499 21.5544 12.9954 21.0048 12.9954H2.99519C2.44556 12.9954 2 12.5499 2 12.0002C2 11.4506 2.44556 11.0051 2.99519 11.0051H21.0048C21.5544 11.0051 22 11.4506 22 12.0002Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M21.0048 6.99039C21.5544 6.99039 22 6.54482 22 5.99519C22 5.44556 21.5544 5 21.0048 5H8.99519C8.44556 5 8 5.44556 8 5.99519C8 6.54482 8.44556 6.99039 8.99519 6.99039H21.0048Z",fill:"currentColor"},child:[]}]})(r)}function _3(r){return Ut({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"},child:[]}]})(r)}function x3(r){return Ut({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"},child:[]}]})(r)}ul.locale("ru");const E3=()=>{const[r,i]=W.useState(""),[s,o]=W.useState(""),[h,m]=W.useState(!1),p=()=>{m(!0),Pt.auth({login:r,password:s}).then(({result:y})=>{y&&(localStorage.setItem("token",y),window.location.reload())}).catch(()=>{m(!1)})},D=w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"flex flex-col items-center pt-8 md:pt-12 pb-6 px-6",children:[w.jsx("div",{className:"w-16 h-16 md:w-20 md:h-20 rounded-2xl bg-primary flex items-center justify-center shadow-lg shadow-primary/25 dark:shadow-primary/10 mb-4",children:w.jsx(x3,{className:"w-8 h-8 md:w-10 md:h-10 text-white"})}),w.jsx("h1",{className:"text-xl md:text-2xl font-semibold text-black dark:text-white",children:"Доступ к диалогам"}),w.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1 text-center",children:"Введите данные для входа в аккаунт"})]}),w.jsxs(Du,{dividers:!0,outline:!0,className:"ios:mx-4 rounded-xl overflow-hidden",children:[w.jsx(Yd,{label:"Логин",placeholder:"Введите логин",value:r,onChange:y=>i(y.target.value)}),w.jsx(Yd,{label:"Пароль",type:"password",placeholder:"Введите пароль",value:s,onChange:y=>o(y.target.value)})]}),w.jsx(Nv,{className:"px-4 md:px-6 py-6",children:w.jsx(kr,{disabled:!r||!s||h,large:!0,rounded:!0,className:"!rounded-xl font-medium",onClick:p,children:h?w.jsx(_3,{className:"animate-spin w-6 h-6"}):"Войти"})})]});return Re.isMobile()?w.jsxs(du,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden",children:[w.jsx(Nc,{title:"Вход",large:!0,centerTitle:!0,outline:!0}),D]}):w.jsxs(du,{className:"ios:bg-transparent dark:bg-transparent overflow-hidden min-h-screen flex items-center justify-center p-4",children:[w.jsx("div",{className:"absolute inset-0 bg-cover bg-center opacity-[0.06] dark:opacity-[0.04] pointer-events-none",style:{backgroundImage:`url(${Uv})`}}),w.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-gray-50 to-white dark:from-gray-900 dark:to-black pointer-events-none"}),w.jsx("div",{className:"relative w-full max-w-[420px] bg-white dark:bg-[#1c1c1e] rounded-2xl shadow-xl shadow-gray-200/50 dark:shadow-black/40 overflow-hidden",children:D})]})},C3=sl(E3),zp=({className:r})=>w.jsx("div",{className:`w-full  bg-gray-200 dark:bg-gray-800 animate-pulse ${r}`});ul.locale("ru");const S3=({message:r})=>r?.deleted?"Удалено":r?r?.text?r?.text:r.attachments?.length?"Прикрепленные файлы":r?.voice?.url?"Аудио сообщение":"...":"...",F3=({selectChannelID:r,channelTab:i,onSelectChannel:s})=>(W.useEffect(()=>(Re.loadChannelList(),Re.startChannelListPolling(),()=>Re.stopChannelListPolling()),[i]),w.jsx(Du,{strong:!0,outline:!0,children:Re.dialogsLoading?w.jsx("div",{children:[1,2,3,4].map(()=>w.jsx(aa,{className:"relative",link:!0,chevron:!1,title:w.jsx(zp,{className:"w-full h-4"}),header:w.jsx(zp,{className:"w-10 h-4"}),text:w.jsx(zp,{className:"w-full h-4"}),media:w.jsx("div",{className:"flex items-center h-10 w-10 bg-gray-200 dark:bg-gray-800 border-2 border-gray-200 dark:border-gray-700 rounded-full overflow-hidden justify-center text-2xl animate-pulse "})}))}):Re.channelList.length?Re.channelList.map(o=>{const h=Ov.shmChannelMessagesByID(o.lastMessage),m=o.unreadCounts?.[Re.userID]??0;return w.jsx(w.Fragment,{children:w.jsx(aa,{className:"relative",style:{opacity:o.closed?.5:1},after:m?w.jsx(eA,{children:m}):void 0,link:!0,onClick:()=>{o._id&&s(o)},chevron:!1,title:o.name?o.name:"Без имени",header:o.closed?"Диалог закрыт":void 0,text:w.jsx(S3,{message:h}),footer:o.created_at?ul.unix(o.created_at).format("DD.MM.YYYY HH:mm"):"",media:w.jsx("div",{className:"flex items-center h-10 w-10 bg-white dark:bg-gray-800 border-2 border-gray-200 dark:border-gray-700 rounded-full overflow-hidden justify-center text-2xl ",children:o.members?.map(p=>p.owner==Re.userID?null:w.jsx("div",{children:xA(p.owner??"")}))}),children:!Re.isMobile()&&r===o._id&&w.jsx("div",{className:"absolute top-0 left-0 w-full h-full pointer-events-none",style:{backgroundColor:"var(--k-color-primary)",opacity:.1}})})})}):w.jsx("div",{className:"py-10 opacity-50",children:w.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[w.jsx(Yx,{size:24}),w.jsx("div",{className:"text-sm mt-2",children:"Нет диалогов"})]})})})),YD=sl(F3);ul.locale("ru");const w3=()=>{const r=()=>{jv({title:"Вы уверены?",content:"Вы уверены, что хотите выйти из аккаунта?",buttons:[{text:"Выйти",onClick:()=>{localStorage.clear(),window.location.reload()}},{text:"Отмена",onClick:()=>{}}]})},[i,s]=W.useState(!1),o=W.useRef(null);return Re.isMobile()?w.jsxs(du,{className:"ios:bg-white ios:dark:bg-stone-900 ",children:[!Re.cap&&w.jsx(Nc,{title:"Диалоги",right:Re.mode=="full"&&w.jsx(fu,{onClick:()=>{r()},children:w.jsx(jD,{size:24})}),subnavbar:w.jsxs("div",{className:"flex items-center w-full",children:[w.jsx(kr,{rounded:!0,className:"rounded-r-none",smallMaterial:!0,tonal:Re.channelTab!=="member",onClick:()=>Re.setChannelTab("member"),children:"Активные"}),w.jsx(kr,{rounded:!0,className:"rounded-l-none",smallMaterial:!0,tonal:Re.channelTab!=="join",onClick:()=>Re.setChannelTab("join"),children:"Новые"})]})}),w.jsx(YD,{selectChannelID:Re.selectChannel?._id??null,channelTab:Re.channelTab,onSelectChannel:h=>{Re.setSelectChannel(h),h?._id&&wc().ChannelPage.move({channelID:h._id})},selectChannel:Re.selectChannel})]}):w.jsxs(du,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden flex items-center justify-center",children:[w.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[w.jsxs("div",{className:"w-[400px] shrink-0 overflow-y-scroll border-r border-gray-200 dark:border-gray-800 ",children:[w.jsx(Nc,{centerTitle:!0,outline:!0,title:"Диалоги",left:w.jsx(fu,{ref:o,onClick:()=>{},children:w.jsx(y3,{})}),right:Re.mode=="full"&&w.jsx(fu,{onClick:()=>{r()},children:w.jsx(jD,{size:24})}),subnavbar:w.jsxs("div",{className:"flex items-center w-full",children:[w.jsx(kr,{rounded:!0,className:"rounded-r-none",smallMaterial:!0,tonal:Re.channelTab!=="member",onClick:()=>Re.setChannelTab("member"),children:"Активные"}),w.jsx(kr,{rounded:!0,className:"rounded-l-none",smallMaterial:!0,tonal:Re.channelTab!=="join",onClick:()=>Re.setChannelTab("join"),children:"Новые"})]})}),w.jsx(YD,{selectChannelID:Re.selectChannel?._id??null,channelTab:Re.channelTab,onSelectChannel:h=>Re.setSelectChannel(h),selectChannel:Re.selectChannel})]}),w.jsx("div",{className:"flex-1 ",children:Re.selectChannel?._id?w.jsx(SA,{channelID:Re.selectChannel?._id,noPage:!0}):w.jsx("div",{className:"overflow-y-scroll h-screen  relative flex items-center justify-center",children:w.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-10 ",style:{background:`url(${Uv})`}})})})]}),w.jsx(Lc,{opened:i,target:o.current,onBackdropClick:()=>s(!1),children:w.jsxs(Du,{nested:!0,children:[w.jsx(aa,{title:"Быстрые ответы",link:!0,onClick:()=>s(!1)}),w.jsx(aa,{title:"List Item 2",link:!0,onClick:()=>s(!1)}),w.jsx(aa,{title:"Item 3",link:!0,onClick:()=>s(!1)}),w.jsx(aa,{title:"List Item 4",link:!0,onClick:()=>s(!1)}),w.jsx(aa,{title:"Item 5",link:!0,onClick:()=>s(!1)})]})})]})},O3=sl(w3),M3=()=>{Oc.current?.goBack()},wc=()=>({LoadingPage:{component:b3,move:r=>{Oc.current?.onChanceRoute("LoadingPage",r)}},LoginPage:{component:C3,move:r=>{Oc.current?.onChanceRoute("LoginPage",r)}},MainPage:{component:O3,move:r=>{Oc.current?.onChanceRoute("MainPage",r)}},ChannelPage:{component:SA,move:r=>{Oc.current?.onChanceRoute("ChannelPage",r)}}}),Oc=X.createRef(),T3=X.forwardRef((r,i)=>{const s=W.useRef(0);W.useImperativeHandle(i,()=>({goBack:()=>{h(D=>D.slice(0,-1))},onChanceRoute:(D,b)=>{o[o.length-1]?.route!==D&&h(y=>{const F={route:D,props:b,id:s.current++};return[...y,F]})}}));const[o,h]=W.useState([]),[m,p]=W.useState(!1);return W.useEffect(()=>{h([{route:"LoadingPage",props:{},id:s.current++}]),p(!0)},[]),W.useEffect(()=>{if(m&&o.length==0){h([{route:"LoadingPage",props:{},id:s.current++}]);return}},[o,m]),w.jsx(w.Fragment,{children:o.map((D,b)=>{let y=wc()[D.route];if(!y)return null;if(b==o.length-1)return w.jsx(y.component,{...D.props})})})}),B3=()=>/iPad|iPhone|iPod/.test(navigator.userAgent),R3=r=>{let i="k-color-brand-primary";switch(r){case"primary":i="k-color-brand-primary";break;case"red":i="k-color-brand-red";break;case"green":i="k-color-brand-green";break;case"blue":i="k-color-brand-blue";break;case"pink":i="k-color-brand-pink";break;case"yellow":i="k-color-brand-yellow";break;case"orange":i="k-color-brand-orange";break;case"purple":i="k-color-brand-purple";break;case"deeppurple":i="k-color-brand-deeppurple";break;case"lightblue":i="k-color-brand-lightblue";break;case"teal":i="k-color-brand-teal";break;case"lime":i="k-color-brand-lime";break;case"deeporange":i="k-color-brand-deeporange";break}const s=document.documentElement;s.classList.forEach(o=>{o.includes("k-color")&&s.classList.remove(o)}),i&&s.classList.add(i)};ul.locale("ru");Vd||(console.log=()=>{},console.error=()=>{},console.warn=()=>{},console.info=()=>{},console.debug=()=>{},console.trace=()=>{},console.dir=()=>{},console.dirxml=()=>{},console.group=()=>{});Xt.setUseEncrypt(!Vd);Xt.setEndpoints([Rx()]);Xt.setToast(r=>{_A(r)});const N3=()=>(W.useEffect(()=>{const r=new URLSearchParams(window.location.search);r.get("cap")?Re.setCap(!0):Re.setCap(!1),r.get("dark")?document.body.classList.add("dark"):document.body.classList.remove("dark");let o=r.get("theme");o&&R3(o)},[]),w.jsxs($1,{theme:B3()?"ios":"material",safeAreas:!0,children:[w.jsx(T3,{ref:Oc}),w.jsx(Mx,{ref:bv}),w.jsx(Bx,{ref:yA}),w.jsx(bA,{ref:AA}),w.jsx(Dx,{ref:hA})]})),L3=sl(N3);Xt.setUseEncrypt(!0);a2.createRoot(document.getElementById("root")).render(w.jsx(L3,{}));
