(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 u(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=u(h);fetch(h.href,m)}})();var yg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var vv={exports:{}},Bd={};/**
 * @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 H0;function Xb(){if(H0)return Bd;H0=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(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 b in h)b!=="key"&&(m[b]=h[b])}else m=h;return h=m.ref,{$$typeof:r,type:o,key:p,ref:h!==void 0?h:null,props:m}}return Bd.Fragment=i,Bd.jsx=u,Bd.jsxs=u,Bd}var G0;function Pb(){return G0||(G0=1,vv.exports=Xb()),vv.exports}var T=Pb(),Av={exports:{}},Ld={},bv={exports:{}},yv={};/**
 * @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 I0;function Jb(){return I0||(I0=1,(function(r){function i(D,Z){var J=D.length;D.push(Z);e:for(;0<J;){var ve=J-1>>>1,w=D[ve];if(0<h(w,Z))D[ve]=Z,D[J]=w,J=ve;else break e}}function u(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var Z=D[0],J=D.pop();if(J!==Z){D[0]=J;e:for(var ve=0,w=D.length,K=w>>>1;ve<K;){var fe=2*(ve+1)-1,se=D[fe],be=fe+1,xe=D[be];if(0>h(se,J))be<w&&0>h(xe,se)?(D[ve]=xe,D[be]=J,ve=be):(D[ve]=se,D[fe]=J,ve=fe);else if(be<w&&0>h(xe,J))D[ve]=xe,D[be]=J,ve=be;else break e}}return Z}function h(D,Z){var J=D.sortIndex-Z.sortIndex;return J!==0?J:D.id-Z.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,b=p.now();r.unstable_now=function(){return p.now()-b}}var _=[],y=[],M=1,C=null,H=3,q=!1,k=!1,Q=!1,G=!1,ie=typeof setTimeout=="function"?setTimeout:null,ce=typeof clearTimeout=="function"?clearTimeout:null,me=typeof setImmediate<"u"?setImmediate:null;function Ae(D){for(var Z=u(y);Z!==null;){if(Z.callback===null)o(y);else if(Z.startTime<=D)o(y),Z.sortIndex=Z.expirationTime,i(_,Z);else break;Z=u(y)}}function te(D){if(Q=!1,Ae(D),!k)if(u(_)!==null)k=!0,de||(de=!0,Le());else{var Z=u(y);Z!==null&&ae(te,Z.startTime-D)}}var de=!1,ge=-1,F=5,_e=-1;function ze(){return G?!0:!(r.unstable_now()-_e<F)}function Ee(){if(G=!1,de){var D=r.unstable_now();_e=D;var Z=!0;try{e:{k=!1,Q&&(Q=!1,ce(ge),ge=-1),q=!0;var J=H;try{t:{for(Ae(D),C=u(_);C!==null&&!(C.expirationTime>D&&ze());){var ve=C.callback;if(typeof ve=="function"){C.callback=null,H=C.priorityLevel;var w=ve(C.expirationTime<=D);if(D=r.unstable_now(),typeof w=="function"){C.callback=w,Ae(D),Z=!0;break t}C===u(_)&&o(_),Ae(D)}else o(_);C=u(_)}if(C!==null)Z=!0;else{var K=u(y);K!==null&&ae(te,K.startTime-D),Z=!1}}break e}finally{C=null,H=J,q=!1}Z=void 0}}finally{Z?Le():de=!1}}}var Le;if(typeof me=="function")Le=function(){me(Ee)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,ye=Ke.port2;Ke.port1.onmessage=Ee,Le=function(){ye.postMessage(null)}}else Le=function(){ie(Ee,0)};function ae(D,Z){ge=ie(function(){D(r.unstable_now())},Z)}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(D){D.callback=null},r.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<D?Math.floor(1e3/D):5},r.unstable_getCurrentPriorityLevel=function(){return H},r.unstable_next=function(D){switch(H){case 1:case 2:case 3:var Z=3;break;default:Z=H}var J=H;H=Z;try{return D()}finally{H=J}},r.unstable_requestPaint=function(){G=!0},r.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var J=H;H=D;try{return Z()}finally{H=J}},r.unstable_scheduleCallback=function(D,Z,J){var ve=r.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ve+J:ve):J=ve,D){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=J+w,D={id:M++,callback:Z,priorityLevel:D,startTime:J,expirationTime:w,sortIndex:-1},J>ve?(D.sortIndex=J,i(y,D),u(_)===null&&D===u(y)&&(Q?(ce(ge),ge=-1):Q=!0,ae(te,J-ve))):(D.sortIndex=w,i(_,D),k||q||(k=!0,de||(de=!0,Le()))),D},r.unstable_shouldYield=ze,r.unstable_wrapCallback=function(D){var Z=H;return function(){var J=H;H=Z;try{return D.apply(this,arguments)}finally{H=J}}}})(yv)),yv}var Y0;function Wb(){return Y0||(Y0=1,bv.exports=Jb()),bv.exports}var _v={exports:{}},We={};/**
 * @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 q0;function Fb(){if(q0)return We;q0=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=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"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),C=Symbol.iterator;function H(w){return w===null||typeof w!="object"?null:(w=C&&w[C]||w["@@iterator"],typeof w=="function"?w:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,Q={};function G(w,K,fe){this.props=w,this.context=K,this.refs=Q,this.updater=fe||q}G.prototype.isReactComponent={},G.prototype.setState=function(w,K){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,K,"setState")},G.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function ie(){}ie.prototype=G.prototype;function ce(w,K,fe){this.props=w,this.context=K,this.refs=Q,this.updater=fe||q}var me=ce.prototype=new ie;me.constructor=ce,k(me,G.prototype),me.isPureReactComponent=!0;var Ae=Array.isArray,te={H:null,A:null,T:null,S:null,V:null},de=Object.prototype.hasOwnProperty;function ge(w,K,fe,se,be,xe){return fe=xe.ref,{$$typeof:r,type:w,key:K,ref:fe!==void 0?fe:null,props:xe}}function F(w,K){return ge(w.type,K,void 0,void 0,void 0,w.props)}function _e(w){return typeof w=="object"&&w!==null&&w.$$typeof===r}function ze(w){var K={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(fe){return K[fe]})}var Ee=/\/+/g;function Le(w,K){return typeof w=="object"&&w!==null&&w.key!=null?ze(""+w.key):K.toString(36)}function Ke(){}function ye(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(Ke,Ke):(w.status="pending",w.then(function(K){w.status==="pending"&&(w.status="fulfilled",w.value=K)},function(K){w.status==="pending"&&(w.status="rejected",w.reason=K)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function ae(w,K,fe,se,be){var xe=typeof w;(xe==="undefined"||xe==="boolean")&&(w=null);var pe=!1;if(w===null)pe=!0;else switch(xe){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(w.$$typeof){case r:case i:pe=!0;break;case M:return pe=w._init,ae(pe(w._payload),K,fe,se,be)}}if(pe)return be=be(w),pe=se===""?"."+Le(w,0):se,Ae(be)?(fe="",pe!=null&&(fe=pe.replace(Ee,"$&/")+"/"),ae(be,K,fe,"",function(Ye){return Ye})):be!=null&&(_e(be)&&(be=F(be,fe+(be.key==null||w&&w.key===be.key?"":(""+be.key).replace(Ee,"$&/")+"/")+pe)),K.push(be)),1;pe=0;var ot=se===""?".":se+":";if(Ae(w))for(var je=0;je<w.length;je++)se=w[je],xe=ot+Le(se,je),pe+=ae(se,K,fe,xe,be);else if(je=H(w),typeof je=="function")for(w=je.call(w),je=0;!(se=w.next()).done;)se=se.value,xe=ot+Le(se,je++),pe+=ae(se,K,fe,xe,be);else if(xe==="object"){if(typeof w.then=="function")return ae(ye(w),K,fe,se,be);throw K=String(w),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return pe}function D(w,K,fe){if(w==null)return w;var se=[],be=0;return ae(w,se,"","",function(xe){return K.call(fe,xe,be++)}),se}function Z(w){if(w._status===-1){var K=w._result;K=K(),K.then(function(fe){(w._status===0||w._status===-1)&&(w._status=1,w._result=fe)},function(fe){(w._status===0||w._status===-1)&&(w._status=2,w._result=fe)}),w._status===-1&&(w._status=0,w._result=K)}if(w._status===1)return w._result.default;throw w._result}var J=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function ve(){}return We.Children={map:D,forEach:function(w,K,fe){D(w,function(){K.apply(this,arguments)},fe)},count:function(w){var K=0;return D(w,function(){K++}),K},toArray:function(w){return D(w,function(K){return K})||[]},only:function(w){if(!_e(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},We.Component=G,We.Fragment=u,We.Profiler=h,We.PureComponent=ce,We.StrictMode=o,We.Suspense=_,We.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,We.__COMPILER_RUNTIME={__proto__:null,c:function(w){return te.H.useMemoCache(w)}},We.cache=function(w){return function(){return w.apply(null,arguments)}},We.cloneElement=function(w,K,fe){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var se=k({},w.props),be=w.key,xe=void 0;if(K!=null)for(pe in K.ref!==void 0&&(xe=void 0),K.key!==void 0&&(be=""+K.key),K)!de.call(K,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&K.ref===void 0||(se[pe]=K[pe]);var pe=arguments.length-2;if(pe===1)se.children=fe;else if(1<pe){for(var ot=Array(pe),je=0;je<pe;je++)ot[je]=arguments[je+2];se.children=ot}return ge(w.type,be,void 0,void 0,xe,se)},We.createContext=function(w){return w={$$typeof:p,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:m,_context:w},w},We.createElement=function(w,K,fe){var se,be={},xe=null;if(K!=null)for(se in K.key!==void 0&&(xe=""+K.key),K)de.call(K,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(be[se]=K[se]);var pe=arguments.length-2;if(pe===1)be.children=fe;else if(1<pe){for(var ot=Array(pe),je=0;je<pe;je++)ot[je]=arguments[je+2];be.children=ot}if(w&&w.defaultProps)for(se in pe=w.defaultProps,pe)be[se]===void 0&&(be[se]=pe[se]);return ge(w,xe,void 0,void 0,null,be)},We.createRef=function(){return{current:null}},We.forwardRef=function(w){return{$$typeof:b,render:w}},We.isValidElement=_e,We.lazy=function(w){return{$$typeof:M,_payload:{_status:-1,_result:w},_init:Z}},We.memo=function(w,K){return{$$typeof:y,type:w,compare:K===void 0?null:K}},We.startTransition=function(w){var K=te.T,fe={};te.T=fe;try{var se=w(),be=te.S;be!==null&&be(fe,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(ve,J)}catch(xe){J(xe)}finally{te.T=K}},We.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},We.use=function(w){return te.H.use(w)},We.useActionState=function(w,K,fe){return te.H.useActionState(w,K,fe)},We.useCallback=function(w,K){return te.H.useCallback(w,K)},We.useContext=function(w){return te.H.useContext(w)},We.useDebugValue=function(){},We.useDeferredValue=function(w,K){return te.H.useDeferredValue(w,K)},We.useEffect=function(w,K,fe){var se=te.H;if(typeof fe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return se.useEffect(w,K)},We.useId=function(){return te.H.useId()},We.useImperativeHandle=function(w,K,fe){return te.H.useImperativeHandle(w,K,fe)},We.useInsertionEffect=function(w,K){return te.H.useInsertionEffect(w,K)},We.useLayoutEffect=function(w,K){return te.H.useLayoutEffect(w,K)},We.useMemo=function(w,K){return te.H.useMemo(w,K)},We.useOptimistic=function(w,K){return te.H.useOptimistic(w,K)},We.useReducer=function(w,K,fe){return te.H.useReducer(w,K,fe)},We.useRef=function(w){return te.H.useRef(w)},We.useState=function(w){return te.H.useState(w)},We.useSyncExternalStore=function(w,K,fe){return te.H.useSyncExternalStore(w,K,fe)},We.useTransition=function(){return te.H.useTransition()},We.version="19.1.1",We}var V0;function Pg(){return V0||(V0=1,_v.exports=Fb()),_v.exports}var xv={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 Q0;function $b(){if(Q0)return na;Q0=1;var r=Pg();function i(_){var y="https://react.dev/errors/"+_;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)y+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+_+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},h=Symbol.for("react.portal");function m(_,y,M){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:C==null?null:""+C,children:_,containerInfo:y,implementation:M}}var p=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(_,y){if(_==="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(_,y){var M=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(_,y,null,M)},na.flushSync=function(_){var y=p.T,M=o.p;try{if(p.T=null,o.p=2,_)return _()}finally{p.T=y,o.p=M,o.d.f()}},na.preconnect=function(_,y){typeof _=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(_,y))},na.prefetchDNS=function(_){typeof _=="string"&&o.d.D(_)},na.preinit=function(_,y){if(typeof _=="string"&&y&&typeof y.as=="string"){var M=y.as,C=b(M,y.crossOrigin),H=typeof y.integrity=="string"?y.integrity:void 0,q=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;M==="style"?o.d.S(_,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:C,integrity:H,fetchPriority:q}):M==="script"&&o.d.X(_,{crossOrigin:C,integrity:H,fetchPriority:q,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},na.preinitModule=function(_,y){if(typeof _=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var M=b(y.as,y.crossOrigin);o.d.M(_,{crossOrigin:M,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(_)},na.preload=function(_,y){if(typeof _=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var M=y.as,C=b(M,y.crossOrigin);o.d.L(_,M,{crossOrigin:C,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(_,y){if(typeof _=="string")if(y){var M=b(y.as,y.crossOrigin);o.d.m(_,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:M,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(_)},na.requestFormReset=function(_){o.d.r(_)},na.unstable_batchedUpdates=function(_,y){return _(y)},na.useFormState=function(_,y,M){return p.H.useFormState(_,y,M)},na.useFormStatus=function(){return p.H.useHostTransitionStatus()},na.version="19.1.1",na}var K0;function Y1(){if(K0)return xv.exports;K0=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(),xv.exports=$b(),xv.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 Z0;function ey(){if(Z0)return Ld;Z0=1;var r=Wb(),i=Pg(),u=Y1();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 b(e){if(m(e)!==e)throw Error(o(188))}function _(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,s=t;;){var c=n.return;if(c===null)break;var d=c.alternate;if(d===null){if(s=c.return,s!==null){n=s;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===n)return b(c),e;if(d===s)return b(c),t;d=d.sibling}throw Error(o(188))}if(n.return!==s.return)n=c,s=d;else{for(var v=!1,S=c.child;S;){if(S===n){v=!0,n=c,s=d;break}if(S===s){v=!0,s=c,n=d;break}S=S.sibling}if(!v){for(S=d.child;S;){if(S===n){v=!0,n=d,s=c;break}if(S===s){v=!0,s=d,n=c;break}S=S.sibling}if(!v)throw Error(o(189))}}if(n.alternate!==s)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 M=Object.assign,C=Symbol.for("react.element"),H=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),ce=Symbol.for("react.consumer"),me=Symbol.for("react.context"),Ae=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),ge=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),_e=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),Ee=Symbol.iterator;function Le(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 ye(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 k:return"Fragment";case G:return"Profiler";case Q:return"StrictMode";case te:return"Suspense";case de:return"SuspenseList";case _e:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case me:return(e.displayName||"Context")+".Provider";case ce:return(e._context.displayName||"Context")+".Consumer";case Ae: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:ye(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var ae=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ve=[],w=-1;function K(e){return{current:e}}function fe(e){0>w||(e.current=ve[w],ve[w]=null,w--)}function se(e,t){w++,ve[w]=e.current,e.current=t}var be=K(null),xe=K(null),pe=K(null),ot=K(null);function je(e,t){switch(se(pe,t),se(xe,e),se(be,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vt(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vt(t),e=Xt(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}fe(be),se(be,e)}function Ye(){fe(be),fe(xe),fe(pe)}function rt(e){e.memoizedState!==null&&se(ot,e);var t=be.current,n=Xt(t,e.type);t!==n&&(se(xe,e),se(be,n))}function xt(e){xe.current===e&&(fe(be),fe(xe)),ot.current===e&&(fe(ot),ls._currentValue=J)}var Ot=Object.prototype.hasOwnProperty,Wt=r.unstable_scheduleCallback,At=r.unstable_cancelCallback,xn=r.unstable_shouldYield,Mi=r.unstable_requestPaint,bt=r.unstable_now,sn=r.unstable_getCurrentPriorityLevel,Kt=r.unstable_ImmediatePriority,ra=r.unstable_UserBlockingPriority,Ct=r.unstable_NormalPriority,On=r.unstable_LowPriority,Ba=r.unstable_IdlePriority,La=r.log,Dt=r.unstable_setDisableYieldValue,mr=null,nn=null;function gn(e){if(typeof La=="function"&&Dt(e),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode(mr,e)}catch{}}var Sn=Math.clz32?Math.clz32:As,ps=Math.log,vs=Math.LN2;function As(e){return e>>>=0,e===0?32:31-(ps(e)/vs|0)|0}var Ja=256,Zt=4194304;function za(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 Ir(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var c=0,d=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var S=s&134217727;return S!==0?(s=S&~d,s!==0?c=za(s):(v&=S,v!==0?c=za(v):n||(n=S&~e,n!==0&&(c=za(n))))):(S=s&~d,S!==0?c=za(S):v!==0?c=za(v):n||(n=s&~e,n!==0&&(c=za(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 gr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kc(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 Cn(){var e=Ja;return Ja<<=1,(Ja&4194048)===0&&(Ja=256),e}function Yu(){var e=Zt;return Zt<<=1,(Zt&62914560)===0&&(Zt=4194304),e}function qu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function up(e,t,n,s,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 S=e.entanglements,N=e.expirationTimes,Y=e.hiddenUpdates;for(n=v&~n;0<n;){var ne=31-Sn(n),ue=1<<ne;S[ne]=0,N[ne]=-1;var X=Y[ne];if(X!==null)for(Y[ne]=null,ne=0;ne<X.length;ne++){var V=X[ne];V!==null&&(V.lane&=-536870913)}n&=~ue}s!==0&&Jd(e,s,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(v&~t))}function Jd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Sn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&4194090}function Wd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Sn(n),c=1<<s;c&t|e[s]&t&&(e[s]|=t),n&=~c}}function jc(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 Vu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Fd(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:mg(e.type))}function op(e,t){var n=Z.p;try{return Z.p=e,t()}finally{Z.p=n}}var Yr=Math.random().toString(36).slice(2),pn="__reactFiber$"+Yr,Yn="__reactProps$"+Yr,qr="__reactContainer$"+Yr,Hc="__reactEvents$"+Yr,cp="__reactListeners$"+Yr,fp="__reactHandles$"+Yr,$d="__reactResources$"+Yr,bs="__reactMarker$"+Yr;function Gc(e){delete e[pn],delete e[Yn],delete e[Hc],delete e[cp],delete e[fp]}function fl(e){var t=e[pn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qr]||n[pn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ng(e);e!==null;){if(n=e[pn])return n;e=ng(e)}return t}e=n,n=e.parentNode}return null}function dl(e){if(e=e[pn]||e[qr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function hl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ml(e){var t=e[$d];return t||(t=e[$d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vn(e){e[bs]=!0}var eh=new Set,th={};function Oi(e,t){gl(e,t),gl(e+"Capture",t)}function gl(e,t){for(th[e]=t,e=0;e<t.length;e++)eh.add(t[e])}var Qu=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]*$"),nh={},ys={};function dp(e){return Ot.call(ys,e)?!0:Ot.call(nh,e)?!1:Qu.test(e)?ys[e]=!0:(nh[e]=!0,!1)}function Ku(e,t,n){if(dp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Zu(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,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+s)}}var Xu,Ic;function pl(e){if(Xu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xu=t&&t[1]||"",Ic=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Xu+e+Ic}var Yc=!1;function qc(e,t){if(!e||Yc)return"";Yc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(V){var X=V}Reflect.construct(e,[],ue)}else{try{ue.call()}catch(V){X=V}e.call(ue.prototype)}}else{try{throw Error()}catch(V){X=V}(ue=e())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(V){if(V&&X&&typeof V.stack=="string")return[V.stack,X.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=s.DetermineComponentFrameRoot(),v=d[0],S=d[1];if(v&&S){var N=v.split(`
`),Y=S.split(`
`);for(c=s=0;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;for(;c<Y.length&&!Y[c].includes("DetermineComponentFrameRoot");)c++;if(s===N.length||c===Y.length)for(s=N.length-1,c=Y.length-1;1<=s&&0<=c&&N[s]!==Y[c];)c--;for(;1<=s&&0<=c;s--,c--)if(N[s]!==Y[c]){if(s!==1||c!==1)do if(s--,c--,0>c||N[s]!==Y[c]){var ne=`
`+N[s].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),ne}while(1<=s&&0<=c);break}}}finally{Yc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?pl(n):""}function hp(e){switch(e.tag){case 26:case 27:case 5:return pl(e.type);case 16:return pl("Lazy");case 13:return pl("Suspense");case 19:return pl("SuspenseList");case 0:case 15:return qc(e.type,!1);case 11:return qc(e.type.render,!1);case 1:return qc(e.type,!0);case 31:return pl("Activity");default:return""}}function Vc(e){try{var t="";do t+=hp(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 Qc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kc(e){var t=Qc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+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){s=""+v,d.call(this,v)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(v){s=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pu(e){e._valueTracker||(e._valueTracker=Kc(e))}function Zc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Qc(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Ci(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 ah=/[\n"\\]/g;function va(e){return e.replace(ah,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ju(e,t,n,s,c,d,v,S){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?_s(e,v,ia(t)):n!=null?_s(e,v,ia(n)):s!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+ia(S):e.removeAttribute("name")}function Xc(e,t,n,s,c,d,v,S){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,S||t===e.value||(e.value=t),e.defaultValue=t}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=S?e.checked:!!s,e.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function _s(e,t,n){t==="number"&&Ci(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function vl(e,t,n,s){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&&s&&(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,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Pc(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 Wu(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(o(92));if(ae(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=ia(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s)}function Vr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Al=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 Jc(e,t,n){var s=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||Al.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Wc(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var c in t)s=t[c],t.hasOwnProperty(c)&&n[c]!==s&&Jc(e,c,s)}else for(var d in t)t.hasOwnProperty(d)&&Jc(e,d,t[d])}function Fc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rh=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"]]),ih=/^[\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 xs(e){return ih.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Fu=null;function $c(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,yl=null;function ef(e){var t=dl(e);if(t&&(e=t.stateNode)){var n=e[Yn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ju(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 s=n[t];if(s!==e&&s.form===e.form){var c=s[Yn]||null;if(!c)throw Error(o(90));Ju(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&Zc(s)}break e;case"textarea":Pc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&vl(e,!!n.multiple,t,!1)}}}var tf=!1;function lh(e,t,n){if(tf)return e(t,n);tf=!0;try{var s=e(t);return s}finally{if(tf=!1,(bl!==null||yl!==null)&&($o(),bl&&(t=bl,e=yl,yl=bl=null,ef(t),e)))for(t=0;t<e.length;t++)ef(e[t])}}function Ss(e,t){var n=e.stateNode;if(n===null)return null;var s=n[Yn]||null;if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var pr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Es=!1;if(pr)try{var ws={};Object.defineProperty(ws,"passive",{get:function(){Es=!0}}),window.addEventListener("test",ws,ws),window.removeEventListener("test",ws,ws)}catch{Es=!1}var Qr=null,nf=null,$u=null;function sh(){if($u)return $u;var e,t=nf,n=t.length,s,c="value"in Qr?Qr.value:Qr.textContent,d=c.length;for(e=0;e<n&&t[e]===c[e];e++);var v=n-e;for(s=1;s<=v&&t[n-s]===c[d-s];s++);return $u=c.slice(e,1<s?1-s:void 0)}function Tt(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 St(){return!0}function uh(){return!1}function qn(e){function t(n,s,c,d,v){this._reactName=n,this._targetInst=c,this.type=s,this.nativeEvent=d,this.target=v,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?St:uh,this.isPropagationStopped=uh,this}return M(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=St)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=St)},persist:function(){},isPersistent:St}),t}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eo=qn(Ti),Ms=M({},Ti,{view:0,detail:0}),mp=qn(Ms),to,af,an,_l=M({},Ms,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fa,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,af=e.screenY-an.screenY):af=to=0,an=e),to)},movementY:function(e){return"movementY"in e?e.movementY:af}}),Kr=qn(_l),oh=M({},_l,{dataTransfer:0}),rf=qn(oh),Aa=M({},Ms,{relatedTarget:0}),no=qn(Aa),ch=M({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),fh=qn(ch),dh=M({},Ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hh=qn(dh),mh=M({},Ti,{data:0}),Vn=qn(mh),gp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ba={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"},pp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pp[e])?!!t[e]:!1}function Fa(){return gh}var ao=M({},Ms,{key:function(e){if(e.key){var t=gp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tt(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ba[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fa,charCode:function(e){return e.type==="keypress"?Tt(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tt(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lf=qn(ao),Gt=M({},_l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vr=qn(Gt),sf=M({},Ms,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fa}),vp=qn(sf),uf=M({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ap=qn(uf),bp=M({},_l,{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}),yp=qn(bp),ph=M({},Ti,{newState:0,oldState:0}),ro=qn(ph),xl=[9,13,27,32],of=pr&&"CompositionEvent"in window,Sl=null;pr&&"documentMode"in document&&(Sl=document.documentMode);var vh=pr&&"TextEvent"in window&&!Sl,io=pr&&(!of||Sl&&8<Sl&&11>=Sl),lo=" ",cf=!1;function Ah(e,t){switch(e){case"keyup":return xl.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function so(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zr=!1;function _p(e,t){switch(e){case"compositionend":return so(t);case"keypress":return t.which!==32?null:(cf=!0,lo);case"textInput":return e=t.data,e===lo&&cf?null:e;default:return null}}function bh(e,t){if(Zr)return e==="compositionend"||!of&&Ah(e,t)?(e=sh(),$u=nf=Qr=null,Zr=!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 uo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!la[e.type]:t==="textarea"}function El(e,t,n,s){bl?yl?yl.push(s):yl=[s]:bl=s,t=lc(t,"onChange"),0<t.length&&(n=new eo("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var wl=null,Ml=null;function xp(e){Xm(e,0)}function oo(e){var t=hl(e);if(Zc(t))return e}function yh(e,t){if(e==="change")return t}var _h=!1;if(pr){var ff;if(pr){var Xr="oninput"in document;if(!Xr){var xh=document.createElement("div");xh.setAttribute("oninput","return;"),Xr=typeof xh.oninput=="function"}ff=Xr}else ff=!1;_h=ff&&(!document.documentMode||9<document.documentMode)}function Sh(){wl&&(wl.detachEvent("onpropertychange",co),Ml=wl=null)}function co(e){if(e.propertyName==="value"&&oo(Ml)){var t=[];El(t,Ml,e,$c(e)),lh(xp,t)}}function Eh(e,t,n){e==="focusin"?(Sh(),wl=t,Ml=n,wl.attachEvent("onpropertychange",co)):e==="focusout"&&Sh()}function Pr(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oo(Ml)}function fo(e,t){if(e==="click")return oo(t)}function Sp(e,t){if(e==="input"||e==="change")return oo(t)}function Ep(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sa=typeof Object.is=="function"?Object.is:Ep;function $a(e,t){if(sa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var c=n[s];if(!Ot.call(t,c)||!sa(e[c],t[c]))return!1}return!0}function ya(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function df(e,t){var n=ya(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ya(n)}}function wh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ci(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=Ci(e.document)}return t}function hf(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 wp=pr&&"documentMode"in document&&11>=document.documentMode,Ol=null,Jr=null,z=null,ee=!1;function W(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ee||Ol==null||Ol!==Ci(s)||(s=Ol,"selectionStart"in s&&hf(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),z&&$a(z,s)||(z=s,s=lc(Jr,"onSelect"),0<s.length&&(t=new eo("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Ol)))}function we(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ie={animationend:we("Animation","AnimationEnd"),animationiteration:we("Animation","AnimationIteration"),animationstart:we("Animation","AnimationStart"),transitionrun:we("Transition","TransitionRun"),transitionstart:we("Transition","TransitionStart"),transitioncancel:we("Transition","TransitionCancel"),transitionend:we("Transition","TransitionEnd")},ft={},rn={};pr&&(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"),Oh=dt("animationiteration"),ua=dt("animationstart"),mo=dt("transitionrun"),Mp=dt("transitionstart"),Cl=dt("transitioncancel"),Os=dt("transitionend"),Cs=new Map,gt="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(" ");gt.push("scrollEnd");function Ua(e,t){Cs.set(e,t),Oi(t,[e])}var mf=new WeakMap;function Un(e,t){if(typeof e=="object"&&e!==null){var n=mf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Vc(t)},mf.set(e,t),t)}return{value:e,source:t,stack:Vc(t)}}var _a=[],Tl=0,gf=0;function Ri(){for(var e=Tl,t=gf=Tl=0;t<e;){var n=_a[t];_a[t++]=null;var s=_a[t];_a[t++]=null;var c=_a[t];_a[t++]=null;var d=_a[t];if(_a[t++]=null,s!==null&&c!==null){var v=s.pending;v===null?c.next=c:(c.next=v.next,v.next=c),s.pending=c}d!==0&&Ts(n,c,d)}}function ka(e,t,n,s){_a[Tl++]=e,_a[Tl++]=t,_a[Tl++]=n,_a[Tl++]=s,gf|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Rl(e,t,n,s){return ka(e,t,n,s),Rs(e)}function Ni(e,t){return ka(e,null,null,t),Rs(e)}function Ts(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var c=!1,d=e.return;d!==null;)d.childLanes|=n,s=d.alternate,s!==null&&(s.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-Sn(n),e=d.hiddenUpdates,s=e[c],s===null?e[c]=[t]:s.push(t),t.lane=n|536870912),d):null}function Rs(e){if(50<Fl)throw Fl=0,od=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Di={};function go(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(e,t,n,s){return new go(e,t,n,s)}function Bi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kn(e,t){var n=e.alternate;return n===null?(n=Qn(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 Ns(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,s,c,d){var v=0;if(s=e,typeof e=="function")Bi(e)&&(v=1);else if(typeof e=="string")v=av(e,n,be.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case _e:return e=Qn(31,n,t,c),e.elementType=_e,e.lanes=d,e;case k:return Li(n.children,c,d,t);case Q:v=8,c|=24;break;case G:return e=Qn(12,n,t,c|2),e.elementType=G,e.lanes=d,e;case te:return e=Qn(13,n,t,c),e.elementType=te,e.lanes=d,e;case de:return e=Qn(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 Ae:v=11;break e;case ge:v=14;break e;case F:v=16,s=null;break e}v=29,n=Error(o(130,e===null?"null":typeof e,"")),s=null}return t=Qn(v,n,t,c),t.elementType=e,t.type=s,t.lanes=d,t}function Li(e,t,n,s){return e=Qn(7,e,s,t),e.lanes=n,e}function pf(e,t,n){return e=Qn(6,e,null,t),e.lanes=n,e}function Nl(e,t,n){return t=Qn(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=[],Wr=0,vo=null,Ds=0,xa=[],Sa=0,jt=null,It=1,br="";function zi(e,t){Ar[Wr++]=Ds,Ar[Wr++]=vo,vo=e,Ds=t}function vf(e,t,n){xa[Sa++]=It,xa[Sa++]=br,xa[Sa++]=jt,jt=e;var s=It;e=br;var c=32-Sn(s)-1;s&=~(1<<c),n+=1;var d=32-Sn(t)+c;if(30<d){var v=c-c%5;d=(s&(1<<v)-1).toString(32),s>>=v,c-=v,It=1<<32-Sn(t)+c|n<<c|s,br=d+e}else It=1<<d|n<<c|s,br=e}function Af(e){e.return!==null&&(zi(e,1),vf(e,1,0))}function Bs(e){for(;e===vo;)vo=Ar[--Wr],Ar[Wr]=null,Ds=Ar[--Wr],Ar[Wr]=null;for(;e===jt;)jt=xa[--Sa],xa[Sa]=null,br=xa[--Sa],xa[Sa]=null,It=xa[--Sa],xa[Sa]=null}var un=null,Yt=null,it=!1,ja=null,Kn=!1,Dl=Error(o(519));function Ea(e){var t=Error(o(418,""));throw Fr(Un(t,e)),Dl}function Ch(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[pn]=e,t[Yn]=s,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<_u.length;n++)nt(_u[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),Xc(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),Pu(t);break;case"select":nt("invalid",t);break;case"textarea":nt("invalid",t),Wu(t,s.value,s.defaultValue,s.children),Pu(t)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||Wm(t.textContent,n)?(s.popover!=null&&(nt("beforetoggle",t),nt("toggle",t)),s.onScroll!=null&&nt("scroll",t),s.onScrollEnd!=null&&nt("scrollend",t),s.onClick!=null&&(t.onclick=sc),t=!0):t=!1,t||Ea(e)}function Th(e){for(un=e.return;un;)switch(un.tag){case 5:case 13:Kn=!1;return;case 27:case 3:Kn=!0;return;default:un=un.return}}function Ls(e){if(e!==un)return!1;if(!it)return Th(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&&Yt&&Ea(e),Th(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){Yt=Va(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Yt=null}}else t===27?(t=Yt,Ra(e.type)?(e=Sd,Sd=null,Yt=e):Yt=t):Yt=un?Va(e.stateNode.nextSibling):null;return!0}function zs(){Yt=un=null,it=!1}function Rh(){var e=ja;return e!==null&&(ea===null?ea=e:ea.push.apply(ea,e),ja=null),e}function Fr(e){ja===null?ja=[e]:ja.push(e)}var Ui=K(null),$r=null,x=null;function oa(e,t,n){se(Ui,t._currentValue),t._currentValue=n}function wa(e){e._currentValue=Ui.current,fe(Ui)}function Zn(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Fe(e,t,n,s){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 S=d;d=c;for(var N=0;N<t.length;N++)if(S.context===t[N]){d.lanes|=n,S=d.alternate,S!==null&&(S.lanes|=n),Zn(d.return,n,e),s||(v=null);break e}d=S.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),Zn(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 Us(e,t,n,s){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 S=c.type;sa(c.pendingProps.value,v.value)||(e!==null?e.push(S):e=[S])}}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(ls):e=[ls])}c=c.return}e!==null&&Fe(t,e,n,s),t.flags|=262144}function Ao(e){for(e=e.firstContext;e!==null;){if(!sa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ki(e){$r=e,x=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return Nh($r,e)}function bo(e,t){return $r===null&&ki(e),Nh(e,t)}function Nh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},x===null){if(e===null)throw Error(o(308));x=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else x=x.next=t;return n}var Op=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Cp=r.unstable_scheduleCallback,Tp=r.unstable_NormalPriority,Bt={$$typeof:me,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bf(){return{controller:new Op,data:new Map,refCount:0}}function ks(e){e.refCount--,e.refCount===0&&Cp(Tp,function(){e.controller.abort()})}var js=null,yf=0,Bl=0,Xn=null;function Rp(e,t){if(js===null){var n=js=[];yf=0,Bl=ic(),Xn={status:"pending",value:void 0,then:function(s){n.push(s)}}}return yf++,t.then(Dh,Dh),t}function Dh(){if(--yf===0&&js!==null){Xn!==null&&(Xn.status="fulfilled");var e=js;js=null,Bl=0,Xn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Np(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(s.status="rejected",s.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),s}var Bh=D.S;D.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rp(e,t),Bh!==null&&Bh(e,t)};var ji=K(null);function yr(){var e=ji.current;return e!==null?e:Ut.pooledCache}function yo(e,t){t===null?se(ji,ji.current):se(ji,t.pool)}function Lh(){var e=yr();return e===null?null:{parent:Bt._currentValue,pool:e}}var jn=Error(o(460)),zh=Error(o(474)),_o=Error(o(542)),_f={then:function(){}};function Uh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xo(){}function xf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(xo,xo),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jh(e),e;default:if(typeof t.status=="string")t.then(xo,xo);else{if(e=Ut,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=s}},function(s){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jh(e),e}throw Ll=t,jn}}var Ll=null;function kh(){if(Ll===null)throw Error(o(459));var e=Ll;return Ll=null,e}function jh(e){if(e===jn||e===_o)throw Error(o(483))}var er=!1;function Hi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zl(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 ei(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _r(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(wt&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,t=Rs(e),Ts(e,null,n),t}return ka(e,s,t,n),Rs(e)}function Hs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Wd(e,n)}}function Ha(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){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:s.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Gs=!1;function Ga(){if(Gs){var e=Xn;if(e!==null)throw e}}function Tn(e,t,n,s){Gs=!1;var c=e.updateQueue;er=!1;var d=c.firstBaseUpdate,v=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var N=S,Y=N.next;N.next=null,v===null?d=Y:v.next=Y,v=N;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,S=ne.lastBaseUpdate,S!==v&&(S===null?ne.firstBaseUpdate=Y:S.next=Y,ne.lastBaseUpdate=N))}if(d!==null){var ue=c.baseState;v=0,ne=Y=N=null,S=d;do{var X=S.lane&-536870913,V=X!==S.lane;if(V?(ct&X)===X:(s&X)===X){X!==0&&X===Bl&&(Gs=!0),ne!==null&&(ne=ne.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var He=e,ke=S;X=t;var Nt=n;switch(ke.tag){case 1:if(He=ke.payload,typeof He=="function"){ue=He.call(Nt,ue,X);break e}ue=He;break e;case 3:He.flags=He.flags&-65537|128;case 0:if(He=ke.payload,X=typeof He=="function"?He.call(Nt,ue,X):He,X==null)break e;ue=M({},ue,X);break e;case 2:er=!0}}X=S.callback,X!==null&&(e.flags|=64,V&&(e.flags|=8192),V=c.callbacks,V===null?c.callbacks=[X]:V.push(X))}else V={lane:X,tag:S.tag,payload:S.payload,callback:S.callback,next:null},ne===null?(Y=ne=V,N=ue):ne=ne.next=V,v|=X;if(S=S.next,S===null){if(S=c.shared.pending,S===null)break;V=S,S=V.next,V.next=null,c.lastBaseUpdate=V,c.shared.pending=null}}while(!0);ne===null&&(N=ue),c.baseState=N,c.firstBaseUpdate=Y,c.lastBaseUpdate=ne,d===null&&(c.shared.lanes=0),oi|=v,e.lanes=v,e.memoizedState=ue}}function Hh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Sf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Hh(n[e],t)}var Gi=K(null),ti=K(0);function xr(e,t){e=Nr,se(ti,e),se(Gi,t),Nr=e|t.baseLanes}function So(){se(ti,Nr),se(Gi,Gi.current)}function Ef(){Nr=ti.current,fe(Gi),fe(ti)}var Ia=0,Je=null,Et=null,lt=null,Ul=!1,Ii=!1,Rn=!1,kl=0,ni=0,Ma=null,Gh=0;function st(){throw Error(o(321))}function Is(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sa(e[n],t[n]))return!1;return!0}function wf(e,t,n,s,c,d){return Ia=d,Je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?$h:qf,Rn=!1,d=n(s,c),Rn=!1,Ii&&(d=Yh(t,n,s,c)),Ih(e),d}function Ih(e){D.H=Fs;var t=Et!==null&&Et.next!==null;if(Ia=0,lt=Et=Je=null,Ul=!1,ni=0,Ma=null,t)throw Error(o(300));e===null||An||(e=e.dependencies,e!==null&&Ao(e)&&(An=!0))}function Yh(e,t,n,s){Je=e;var c=0;do{if(Ii&&(Ma=null),ni=0,Ii=!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)}D.H=em,d=t(n,s)}while(Ii);return d}function Mf(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Ys(t):t,e=e.useState()[0],(Et!==null?Et.memoizedState:null)!==e&&(Je.flags|=1024),t}function Of(){var e=kl!==0;return kl=0,e}function Yi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(Ul){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ul=!1}Ia=0,lt=Et=Je=null,Ii=!1,ni=kl=0,Ma=null}function Pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Je.memoizedState=lt=e:lt=lt.next=e,lt}function ln(){if(Et===null){var e=Je.alternate;e=e!==null?e.memoizedState:null}else e=Et.next;var t=lt===null?Je.memoizedState:lt.next;if(t!==null)lt=t,Et=e;else{if(e===null)throw Je.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?Je.memoizedState=lt=e:lt=lt.next=e}return lt}function qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ys(e){var t=ni;return ni+=1,Ma===null&&(Ma=[]),e=xf(Ma,e,t),t=Je,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?$h:qf),e}function wo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ys(e);if(e.$$typeof===me)return Ft(e)}throw Error(o(438,String(e)))}function qs(e){var t=null,n=Je.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=Je.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=qi(),Je.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=ze;return t.index++,n}function tr(e,t){return typeof t=="function"?t(e):t}function Mo(e){var t=ln();return Cf(t,Et,e)}function Cf(e,t,n){var s=e.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var c=e.baseQueue,d=s.pending;if(d!==null){if(c!==null){var v=c.next;c.next=d.next,d.next=v}t.baseQueue=c=d,s.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var S=v=null,N=null,Y=t,ne=!1;do{var ue=Y.lane&-536870913;if(ue!==Y.lane?(ct&ue)===ue:(Ia&ue)===ue){var X=Y.revertLane;if(X===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),ue===Bl&&(ne=!0);else if((Ia&X)===X){Y=Y.next,X===Bl&&(ne=!0);continue}else ue={lane:0,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},N===null?(S=N=ue,v=d):N=N.next=ue,Je.lanes|=X,oi|=X;ue=Y.action,Rn&&n(d,ue),d=Y.hasEagerState?Y.eagerState:n(d,ue)}else X={lane:ue,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},N===null?(S=N=X,v=d):N=N.next=X,Je.lanes|=ue,oi|=ue;Y=Y.next}while(Y!==null&&Y!==t);if(N===null?v=d:N.next=S,!sa(d,e.memoizedState)&&(An=!0,ne&&(n=Xn,n!==null)))throw n;e.memoizedState=d,e.baseState=v,e.baseQueue=N,s.lastRenderedState=d}return c===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Tf(e){var t=ln(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var s=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);sa(d,t.memoizedState)||(An=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),n.lastRenderedState=d}return[d,s]}function Rf(e,t,n){var s=Je,c=ln(),d=it;if(d){if(n===void 0)throw Error(o(407));n=n()}else n=t();var v=!sa((Et||c).memoizedState,n);v&&(c.memoizedState=n,An=!0),c=c.queue;var S=Co.bind(null,s,c,e);if(Ks(2048,8,S,[e]),c.getSnapshot!==t||v||lt!==null&&lt.memoizedState.tag&1){if(s.flags|=2048,jl(9,Bo(),qh.bind(null,s,c,n,t),null),Ut===null)throw Error(o(349));d||(Ia&124)!==0||Oo(s,t,n)}return n}function Oo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Je.updateQueue,t===null?(t=qi(),Je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qh(e,t,n,s){t.value=n,t.getSnapshot=s,Nf(t)&&Df(e)}function Co(e,t,n){return n(function(){Nf(t)&&Df(e)})}function Nf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sa(e,n)}catch{return!0}}function Df(e){var t=Ni(e,2);t!==null&&ma(t,e,2)}function To(e){var t=Pn();if(typeof e=="function"){var n=e;if(e=n(),Rn){gn(!0);try{n()}finally{gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:e},t}function Vs(e,t,n,s){return e.baseState=n,Cf(e,Et,typeof s=="function"?s:tr)}function Dp(e,t,n,s,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)}};D.T!==null?n(!0):d.isTransition=!1,s(d),n=t.pending,n===null?(d.next=t.pending=d,Bf(t,d)):(d.next=n.next,t.pending=n.next=d)}}function Bf(e,t){var n=t.action,s=t.payload,c=e.state;if(t.isTransition){var d=D.T,v={};D.T=v;try{var S=n(c,s),N=D.S;N!==null&&N(v,S),Lf(e,t,S)}catch(Y){Ro(e,t,Y)}finally{D.T=d}}else try{d=n(c,s),Lf(e,t,d)}catch(Y){Ro(e,t,Y)}}function Lf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){Vh(e,t,s)},function(s){return Ro(e,t,s)}):Vh(e,t,n)}function Vh(e,t,n){t.status="fulfilled",t.value=n,Qh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Bf(e,n)))}function Ro(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,Qh(t),t=t.next;while(t!==s)}e.action=null}function Qh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function No(e,t){return t}function zf(e,t){if(it){var n=Ut.formState;if(n!==null){e:{var s=Je;if(it){if(Yt){t:{for(var c=Yt,d=Kn;c.nodeType!==8;){if(!d){c=null;break t}if(c=Va(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Yt=Va(c.nextSibling),s=c.data==="F!";break e}}Ea(s)}s=!1}s&&(t=n[0])}}return n=Pn(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:t},n.queue=s,n=Gf.bind(null,Je,s),s.dispatch=n,s=To(!1),d=If.bind(null,Je,!1,s.queue),s=Pn(),c={state:t,dispatch:null,action:e,pending:null},s.queue=c,n=Dp.bind(null,Je,c,d,n),c.dispatch=n,s.memoizedState=e,[t,n,!1]}function Do(e){var t=ln();return Kh(t,Et,e)}function Kh(e,t,n){if(t=Cf(e,t,No)[0],e=Mo(tr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Ys(t)}catch(v){throw v===jn?_o:v}else s=t;t=ln();var c=t.queue,d=c.dispatch;return n!==t.memoizedState&&(Je.flags|=2048,jl(9,Bo(),Uf.bind(null,c,n),null)),[s,d,e]}function Uf(e,t){e.action=t}function Pe(e){var t=ln(),n=Et;if(n!==null)return Kh(t,n,e);ln(),t=t.memoizedState,n=ln();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function jl(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=Je.updateQueue,t===null&&(t=qi(),Je.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function Bo(){return{destroy:void 0,resource:void 0}}function Hl(){return ln().memoizedState}function Qs(e,t,n,s){var c=Pn();s=s===void 0?null:s,Je.flags|=e,c.memoizedState=jl(1|t,Bo(),n,s)}function Ks(e,t,n,s){var c=ln();s=s===void 0?null:s;var d=c.memoizedState.inst;Et!==null&&s!==null&&Is(s,Et.memoizedState.deps)?c.memoizedState=jl(t,d,n,s):(Je.flags|=e,c.memoizedState=jl(1|t,d,n,s))}function Zh(e,t){Qs(8390656,8,e,t)}function ca(e,t){Ks(2048,8,e,t)}function Xh(e,t){return Ks(4,2,e,t)}function Zs(e,t){return Ks(4,4,e,t)}function Lo(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 kf(e,t,n){n=n!=null?n.concat([e]):null,Ks(4,4,Lo.bind(null,t,e),n)}function zo(){}function Jn(e,t){var n=ln();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&Is(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Sr(e,t){var n=ln();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&Is(t,s[1]))return s[0];if(s=e(),Rn){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[s,t],s}function Xs(e,t,n){return n===void 0||(Ia&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Om(),Je.lanes|=e,oi|=e,n)}function jf(e,t,n,s){return sa(n,t)?n:Gi.current!==null?(e=Xs(e,n,s),sa(e,t)||(An=!0),e):(Ia&42)===0?(An=!0,e.memoizedState=n):(e=Om(),Je.lanes|=e,oi|=e,t)}function Ps(e,t,n,s,c){var d=Z.p;Z.p=d!==0&&8>d?d:8;var v=D.T,S={};D.T=S,If(e,!1,t,n);try{var N=c(),Y=D.S;if(Y!==null&&Y(S,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var ne=Np(N,s);Vi(e,t,ne,Dn(e))}else Vi(e,t,s,Dn(e))}catch(ue){Vi(e,t,{then:function(){},status:"rejected",reason:ue},Dn())}finally{Z.p=d,D.T=v}}function Ph(){}function Js(e,t,n,s){if(e.tag!==5)throw Error(o(476));var c=Hf(e).queue;Ps(e,c,t,J,n===null?Ph:function(){return Uo(e),n(s)})}function Hf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:J},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Uo(e){var t=Hf(e).next.queue;Vi(e,t,{},Dn())}function Ws(){return Ft(ls)}function Er(){return ln().memoizedState}function Jh(){return ln().memoizedState}function ai(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Dn();e=ei(n);var s=_r(t,e,n);s!==null&&(ma(s,t,n),Hs(s,t,n)),t={cache:bf()},e.payload=t;return}t=t.return}}function Wh(e,t,n){var s=Dn();n={lane:s,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ko(e)?Fh(t,n):(n=Rl(e,t,n,s),n!==null&&(ma(n,e,s),Yf(n,t,s)))}function Gf(e,t,n){var s=Dn();Vi(e,t,n,s)}function Vi(e,t,n,s){var c={lane:s,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ko(e))Fh(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,S=d(v,n);if(c.hasEagerState=!0,c.eagerState=S,sa(S,v))return ka(e,t,c,0),Ut===null&&Ri(),!1}catch{}finally{}if(n=Rl(e,t,c,s),n!==null)return ma(n,e,s),Yf(n,t,s),!0}return!1}function If(e,t,n,s){if(s={lane:2,revertLane:ic(),action:s,hasEagerState:!1,eagerState:null,next:null},ko(e)){if(t)throw Error(o(479))}else t=Rl(e,n,s,2),t!==null&&ma(t,e,2)}function ko(e){var t=e.alternate;return e===Je||t!==null&&t===Je}function Fh(e,t){Ii=Ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yf(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Wd(e,n)}}var Fs={readContext:Ft,use:wo,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st},$h={readContext:Ft,use:wo,useCallback:function(e,t){return Pn().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:Zh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Qs(4194308,4,Lo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qs(4194308,4,e,t)},useInsertionEffect:function(e,t){Qs(4,2,e,t)},useMemo:function(e,t){var n=Pn();t=t===void 0?null:t;var s=e();if(Rn){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=Pn();if(n!==void 0){var c=n(t);if(Rn){gn(!0);try{n(t)}finally{gn(!1)}}}else c=t;return s.memoizedState=s.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},s.queue=e,e=e.dispatch=Wh.bind(null,Je,e),[s.memoizedState,e]},useRef:function(e){var t=Pn();return e={current:e},t.memoizedState=e},useState:function(e){e=To(e);var t=e.queue,n=Gf.bind(null,Je,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:zo,useDeferredValue:function(e,t){var n=Pn();return Xs(n,e,t)},useTransition:function(){var e=To(!1);return e=Ps.bind(null,Je,e.queue,!0,!1),Pn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=Je,c=Pn();if(it){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ut===null)throw Error(o(349));(ct&124)!==0||Oo(s,t,n)}c.memoizedState=n;var d={value:n,getSnapshot:t};return c.queue=d,Zh(Co.bind(null,s,d,e),[e]),s.flags|=2048,jl(9,Bo(),qh.bind(null,s,d,n,t),null),n},useId:function(){var e=Pn(),t=Ut.identifierPrefix;if(it){var n=br,s=It;n=(s&~(1<<32-Sn(s)-1)).toString(32)+n,t="«"+t+"R"+n,n=kl++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Gh++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ws,useFormState:zf,useActionState:zf,useOptimistic:function(e){var t=Pn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=If.bind(null,Je,!0,n),n.dispatch=t,[e,t]},useMemoCache:qs,useCacheRefresh:function(){return Pn().memoizedState=ai.bind(null,Je)}},qf={readContext:Ft,use:wo,useCallback:Jn,useContext:Ft,useEffect:ca,useImperativeHandle:kf,useInsertionEffect:Xh,useLayoutEffect:Zs,useMemo:Sr,useReducer:Mo,useRef:Hl,useState:function(){return Mo(tr)},useDebugValue:zo,useDeferredValue:function(e,t){var n=ln();return jf(n,Et.memoizedState,e,t)},useTransition:function(){var e=Mo(tr)[0],t=ln().memoizedState;return[typeof e=="boolean"?e:Ys(e),t]},useSyncExternalStore:Rf,useId:Er,useHostTransitionStatus:Ws,useFormState:Do,useActionState:Do,useOptimistic:function(e,t){var n=ln();return Vs(n,Et,e,t)},useMemoCache:qs,useCacheRefresh:Jh},em={readContext:Ft,use:wo,useCallback:Jn,useContext:Ft,useEffect:ca,useImperativeHandle:kf,useInsertionEffect:Xh,useLayoutEffect:Zs,useMemo:Sr,useReducer:Tf,useRef:Hl,useState:function(){return Tf(tr)},useDebugValue:zo,useDeferredValue:function(e,t){var n=ln();return Et===null?Xs(n,e,t):jf(n,Et.memoizedState,e,t)},useTransition:function(){var e=Tf(tr)[0],t=ln().memoizedState;return[typeof e=="boolean"?e:Ys(e),t]},useSyncExternalStore:Rf,useId:Er,useHostTransitionStatus:Ws,useFormState:Pe,useActionState:Pe,useOptimistic:function(e,t){var n=ln();return Et!==null?Vs(n,Et,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:qs,useCacheRefresh:Jh},on=null,Wn=0;function jo(e){var t=Wn;return Wn+=1,on===null&&(on=[]),xf(on,e,t)}function $s(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Qi(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ki(e){var t=e._init;return t(e._payload)}function Vf(e){function t(U,L){if(e){var I=U.deletions;I===null?(U.deletions=[L],U.flags|=16):I.push(L)}}function n(U,L){if(!e)return null;for(;L!==null;)t(U,L),L=L.sibling;return null}function s(U){for(var L=new Map;U!==null;)U.key!==null?L.set(U.key,U):L.set(U.index,U),U=U.sibling;return L}function c(U,L){return U=kn(U,L),U.index=0,U.sibling=null,U}function d(U,L,I){return U.index=I,e?(I=U.alternate,I!==null?(I=I.index,I<L?(U.flags|=67108866,L):I):(U.flags|=67108866,L)):(U.flags|=1048576,L)}function v(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function S(U,L,I,re){return L===null||L.tag!==6?(L=pf(I,U.mode,re),L.return=U,L):(L=c(L,I),L.return=U,L)}function N(U,L,I,re){var Oe=I.type;return Oe===k?ne(U,L,I.props.children,re,I.key):L!==null&&(L.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===F&&Ki(Oe)===L.type)?(L=c(L,I.props),$s(L,I),L.return=U,L):(L=po(I.type,I.key,I.props,null,U.mode,re),$s(L,I),L.return=U,L)}function Y(U,L,I,re){return L===null||L.tag!==4||L.stateNode.containerInfo!==I.containerInfo||L.stateNode.implementation!==I.implementation?(L=Nl(I,U.mode,re),L.return=U,L):(L=c(L,I.children||[]),L.return=U,L)}function ne(U,L,I,re,Oe){return L===null||L.tag!==7?(L=Li(I,U.mode,re,Oe),L.return=U,L):(L=c(L,I),L.return=U,L)}function ue(U,L,I){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=pf(""+L,U.mode,I),L.return=U,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case H:return I=po(L.type,L.key,L.props,null,U.mode,I),$s(I,L),I.return=U,I;case q:return L=Nl(L,U.mode,I),L.return=U,L;case F:var re=L._init;return L=re(L._payload),ue(U,L,I)}if(ae(L)||Le(L))return L=Li(L,U.mode,I,null),L.return=U,L;if(typeof L.then=="function")return ue(U,jo(L),I);if(L.$$typeof===me)return ue(U,bo(U,L),I);Qi(U,L)}return null}function X(U,L,I,re){var Oe=L!==null?L.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return Oe!==null?null:S(U,L,""+I,re);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case H:return I.key===Oe?N(U,L,I,re):null;case q:return I.key===Oe?Y(U,L,I,re):null;case F:return Oe=I._init,I=Oe(I._payload),X(U,L,I,re)}if(ae(I)||Le(I))return Oe!==null?null:ne(U,L,I,re,null);if(typeof I.then=="function")return X(U,L,jo(I),re);if(I.$$typeof===me)return X(U,L,bo(U,I),re);Qi(U,I)}return null}function V(U,L,I,re,Oe){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return U=U.get(I)||null,S(L,U,""+re,Oe);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case H:return U=U.get(re.key===null?I:re.key)||null,N(L,U,re,Oe);case q:return U=U.get(re.key===null?I:re.key)||null,Y(L,U,re,Oe);case F:var $e=re._init;return re=$e(re._payload),V(U,L,I,re,Oe)}if(ae(re)||Le(re))return U=U.get(I)||null,ne(L,U,re,Oe,null);if(typeof re.then=="function")return V(U,L,I,jo(re),Oe);if(re.$$typeof===me)return V(U,L,I,bo(L,re),Oe);Qi(L,re)}return null}function He(U,L,I,re){for(var Oe=null,$e=null,De=L,Ge=L=0,_n=null;De!==null&&Ge<I.length;Ge++){De.index>Ge?(_n=De,De=null):_n=De.sibling;var ht=X(U,De,I[Ge],re);if(ht===null){De===null&&(De=_n);break}e&&De&&ht.alternate===null&&t(U,De),L=d(ht,L,Ge),$e===null?Oe=ht:$e.sibling=ht,$e=ht,De=_n}if(Ge===I.length)return n(U,De),it&&zi(U,Ge),Oe;if(De===null){for(;Ge<I.length;Ge++)De=ue(U,I[Ge],re),De!==null&&(L=d(De,L,Ge),$e===null?Oe=De:$e.sibling=De,$e=De);return it&&zi(U,Ge),Oe}for(De=s(De);Ge<I.length;Ge++)_n=V(De,U,Ge,I[Ge],re),_n!==null&&(e&&_n.alternate!==null&&De.delete(_n.key===null?Ge:_n.key),L=d(_n,L,Ge),$e===null?Oe=_n:$e.sibling=_n,$e=_n);return e&&De.forEach(function(bi){return t(U,bi)}),it&&zi(U,Ge),Oe}function ke(U,L,I,re){if(I==null)throw Error(o(151));for(var Oe=null,$e=null,De=L,Ge=L=0,_n=null,ht=I.next();De!==null&&!ht.done;Ge++,ht=I.next()){De.index>Ge?(_n=De,De=null):_n=De.sibling;var bi=X(U,De,ht.value,re);if(bi===null){De===null&&(De=_n);break}e&&De&&bi.alternate===null&&t(U,De),L=d(bi,L,Ge),$e===null?Oe=bi:$e.sibling=bi,$e=bi,De=_n}if(ht.done)return n(U,De),it&&zi(U,Ge),Oe;if(De===null){for(;!ht.done;Ge++,ht=I.next())ht=ue(U,ht.value,re),ht!==null&&(L=d(ht,L,Ge),$e===null?Oe=ht:$e.sibling=ht,$e=ht);return it&&zi(U,Ge),Oe}for(De=s(De);!ht.done;Ge++,ht=I.next())ht=V(De,U,Ge,ht.value,re),ht!==null&&(e&&ht.alternate!==null&&De.delete(ht.key===null?Ge:ht.key),L=d(ht,L,Ge),$e===null?Oe=ht:$e.sibling=ht,$e=ht);return e&&De.forEach(function(mv){return t(U,mv)}),it&&zi(U,Ge),Oe}function Nt(U,L,I,re){if(typeof I=="object"&&I!==null&&I.type===k&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case H:e:{for(var Oe=I.key;L!==null;){if(L.key===Oe){if(Oe=I.type,Oe===k){if(L.tag===7){n(U,L.sibling),re=c(L,I.props.children),re.return=U,U=re;break e}}else if(L.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===F&&Ki(Oe)===L.type){n(U,L.sibling),re=c(L,I.props),$s(re,I),re.return=U,U=re;break e}n(U,L);break}else t(U,L);L=L.sibling}I.type===k?(re=Li(I.props.children,U.mode,re,I.key),re.return=U,U=re):(re=po(I.type,I.key,I.props,null,U.mode,re),$s(re,I),re.return=U,U=re)}return v(U);case q:e:{for(Oe=I.key;L!==null;){if(L.key===Oe)if(L.tag===4&&L.stateNode.containerInfo===I.containerInfo&&L.stateNode.implementation===I.implementation){n(U,L.sibling),re=c(L,I.children||[]),re.return=U,U=re;break e}else{n(U,L);break}else t(U,L);L=L.sibling}re=Nl(I,U.mode,re),re.return=U,U=re}return v(U);case F:return Oe=I._init,I=Oe(I._payload),Nt(U,L,I,re)}if(ae(I))return He(U,L,I,re);if(Le(I)){if(Oe=Le(I),typeof Oe!="function")throw Error(o(150));return I=Oe.call(I),ke(U,L,I,re)}if(typeof I.then=="function")return Nt(U,L,jo(I),re);if(I.$$typeof===me)return Nt(U,L,bo(U,I),re);Qi(U,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,L!==null&&L.tag===6?(n(U,L.sibling),re=c(L,I),re.return=U,U=re):(n(U,L),re=pf(I,U.mode,re),re.return=U,U=re),v(U)):n(U,L)}return function(U,L,I,re){try{Wn=0;var Oe=Nt(U,L,I,re);return on=null,Oe}catch(De){if(De===jn||De===_o)throw De;var $e=Qn(29,De,null,U.mode);return $e.lanes=re,$e.return=U,$e}finally{}}}var Zi=Vf(!0),tm=Vf(!1),fa=K(null),Hn=null;function Oa(e){var t=e.alternate;se($t,$t.current&1),se(fa,e),Hn===null&&(t===null||Gi.current!==null||t.memoizedState!==null)&&(Hn=e)}function nm(e){if(e.tag===22){if(se($t,$t.current),se(fa,e),Hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Hn=e)}}else wr()}function wr(){se($t,$t.current),se(fa,fa.current)}function nr(e){fe(fa),Hn===e&&(Hn=null),fe($t)}var $t=K(0);function eu(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 Gl(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:M({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var tu={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Dn(),c=ei(s);c.payload=t,n!=null&&(c.callback=n),t=_r(e,c,s),t!==null&&(ma(t,e,s),Hs(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Dn(),c=ei(s);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=_r(e,c,s),t!==null&&(ma(t,e,s),Hs(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dn(),s=ei(n);s.tag=2,t!=null&&(s.callback=t),t=_r(e,s,n),t!==null&&(ma(t,e,n),Hs(t,e,n))}};function nu(e,t,n,s,c,d,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,v):t.prototype&&t.prototype.isPureReactComponent?!$a(n,s)||!$a(c,d):!0}function am(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&tu.enqueueReplaceState(t,t.state,null)}function ri(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=M({},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 Qf(e){Xi(e)}function Ho(e){console.error(e)}function rm(e){Xi(e)}function au(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function ar(e,t,n){try{var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Go(e,t,n){return n=ei(n),n.tag=3,n.payload={element:null},n.callback=function(){au(e,t)},n}function Kf(e){return e=ei(e),e.tag=3,e}function im(e,t,n,s){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var d=s.value;e.payload=function(){return c(d)},e.callback=function(){ar(t,n,s)}}var v=n.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){ar(t,n,s),typeof c!="function"&&(ci===null?ci=new Set([this]):ci.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})})}function lm(e,t,n,s,c){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&Us(t,n,c,!0),n=fa.current,n!==null){switch(n.tag){case 13:return Hn===null?fd():n.alternate===null&&en===0&&(en=3),n.flags&=-257,n.flags|=65536,n.lanes=c,s===_f?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),md(e,s,c)),!1;case 22:return n.flags|=65536,s===_f?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),md(e,s,c)),!1}throw Error(o(435,n.tag))}return md(e,s,c),fd(),!1}if(it)return t=fa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,s!==Dl&&(e=Error(o(422),{cause:s}),Fr(Un(e,n)))):(s!==Dl&&(t=Error(o(423),{cause:s}),Fr(Un(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,s=Un(s,n),c=Go(e.stateNode,s,c),Ha(e,c),en!==4&&(en=2)),!1;var d=Error(o(520),{cause:s});if(d=Un(d,n),hu===null?hu=[d]:hu.push(d),en!==4&&(en=2),t===null)return!0;s=Un(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Go(n.stateNode,s,e),Ha(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"&&(ci===null||!ci.has(d))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Kf(c),im(c,e,n,s),Ha(n,c),!1}n=n.return}while(n!==null);return!1}var sm=Error(o(461)),An=!1;function Ht(e,t,n,s){t.child=e===null?tm(t,null,n,s):Zi(t,e.child,n,s)}function Io(e,t,n,s,c){n=n.render;var d=t.ref;if("ref"in s){var v={};for(var S in s)S!=="ref"&&(v[S]=s[S])}else v=s;return ki(t),s=wf(e,t,n,v,d,c),S=Of(),e!==null&&!An?(Yi(e,t,c),Mr(e,t,c)):(it&&S&&Af(t),t.flags|=1,Ht(e,t,s,c),t.child)}function Yo(e,t,n,s,c){if(e===null){var d=n.type;return typeof d=="function"&&!Bi(d)&&d.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=d,qo(e,t,d,s,c)):(e=po(n.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Ya(e,c)){var v=d.memoizedProps;if(n=n.compare,n=n!==null?n:$a,n(v,s)&&e.ref===t.ref)return Mr(e,t,c)}return t.flags|=1,e=kn(d,s),e.ref=t.ref,e.return=t,t.child=e}function qo(e,t,n,s,c){if(e!==null){var d=e.memoizedProps;if($a(d,s)&&e.ref===t.ref)if(An=!1,t.pendingProps=s=d,Ya(e,c))(e.flags&131072)!==0&&(An=!0);else return t.lanes=e.lanes,Mr(e,t,c)}return Il(e,t,n,s,c)}function ru(e,t,n){var s=t.pendingProps,c=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=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&~s}else t.childLanes=0,t.child=null;return Pi(e,t,s,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yo(t,d!==null?d.cachePool:null),d!==null?xr(t,d):So(),nm(t);else return t.lanes=t.childLanes=536870912,Pi(e,t,d!==null?d.baseLanes|n:n,n)}else d!==null?(yo(t,d.cachePool),xr(t,d),wr(),t.memoizedState=null):(e!==null&&yo(t,null),So(),wr());return Ht(e,t,c,n),t.child}function Pi(e,t,n,s){var c=yr();return c=c===null?null:{parent:Bt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&yo(t,null),So(),nm(t),e!==null&&Us(e,t,s,!0),null}function Ue(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 Il(e,t,n,s,c){return ki(t),n=wf(e,t,n,s,void 0,c),s=Of(),e!==null&&!An?(Yi(e,t,c),Mr(e,t,c)):(it&&s&&Af(t),t.flags|=1,Ht(e,t,n,c),t.child)}function Vo(e,t,n,s,c,d){return ki(t),t.updateQueue=null,n=Yh(t,s,n,c),Ih(e),s=Of(),e!==null&&!An?(Yi(e,t,d),Mr(e,t,d)):(it&&s&&Af(t),t.flags|=1,Ht(e,t,n,d),t.child)}function ii(e,t,n,s,c){if(ki(t),t.stateNode===null){var d=Di,v=n.contextType;typeof v=="object"&&v!==null&&(d=Ft(v)),d=new n(s,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=tu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=s,d.state=t.memoizedState,d.refs={},Hi(t),v=n.contextType,d.context=typeof v=="object"&&v!==null?Ft(v):Di,d.state=t.memoizedState,v=n.getDerivedStateFromProps,typeof v=="function"&&(Gl(t,n,v,s),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&&tu.enqueueReplaceState(d,d.state,null),Tn(t,s,d,c),Ga(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){d=t.stateNode;var S=t.memoizedProps,N=ri(n,S);d.props=N;var Y=d.context,ne=n.contextType;v=Di,typeof ne=="object"&&ne!==null&&(v=Ft(ne));var ue=n.getDerivedStateFromProps;ne=typeof ue=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,ne||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||Y!==v)&&am(t,d,s,v),er=!1;var X=t.memoizedState;d.state=X,Tn(t,s,d,c),Ga(),Y=t.memoizedState,S||X!==Y||er?(typeof ue=="function"&&(Gl(t,n,ue,s),Y=t.memoizedState),(N=er||nu(t,n,N,s,X,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=s,t.memoizedState=Y),d.props=s,d.state=Y,d.context=v,s=N):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{d=t.stateNode,zl(e,t),v=t.memoizedProps,ne=ri(n,v),d.props=ne,ue=t.pendingProps,X=d.context,Y=n.contextType,N=Di,typeof Y=="object"&&Y!==null&&(N=Ft(Y)),S=n.getDerivedStateFromProps,(Y=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==ue||X!==N)&&am(t,d,s,N),er=!1,X=t.memoizedState,d.state=X,Tn(t,s,d,c),Ga();var V=t.memoizedState;v!==ue||X!==V||er||e!==null&&e.dependencies!==null&&Ao(e.dependencies)?(typeof S=="function"&&(Gl(t,n,S,s),V=t.memoizedState),(ne=er||nu(t,n,ne,s,X,V,N)||e!==null&&e.dependencies!==null&&Ao(e.dependencies))?(Y||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,V,N),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,V,N)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&X===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=V),d.props=s,d.state=V,d.context=N,s=ne):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&X===e.memoizedState||(t.flags|=1024),s=!1)}return d=s,Ue(e,t),s=(t.flags&128)!==0,d||s?(d=t.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&s?(t.child=Zi(t,e.child,null,c),t.child=Zi(t,null,n,c)):Ht(e,t,n,c),t.memoizedState=d.state,e=t.child):e=Mr(e,t,c),e}function um(e,t,n,s){return zs(),t.flags|=256,Ht(e,t,n,s),t.child}var iu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qo(e){return{baseLanes:e,cachePool:Lh()}}function bn(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ta),e}function om(e,t,n){var s=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?Oa(t):wr(),it){var S=Yt,N;if(N=S){e:{for(N=S,S=Kn;N.nodeType!==8;){if(!S){S=null;break e}if(N=Va(N.nextSibling),N===null){S=null;break e}}S=N}S!==null?(t.memoizedState={dehydrated:S,treeContext:jt!==null?{id:It,overflow:br}:null,retryLane:536870912,hydrationErrors:null},N=Qn(18,null,null,0),N.stateNode=S,N.return=t,t.child=N,un=t,Yt=null,N=!0):N=!1}N||Ea(t)}if(S=t.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return In(S)?t.lanes=32:t.lanes=536870912,null;nr(t)}return S=s.children,s=s.fallback,c?(wr(),c=t.mode,S=lu({mode:"hidden",children:S},c),s=Li(s,c,n,null),S.return=t,s.return=t,S.sibling=s,t.child=S,c=t.child,c.memoizedState=Qo(n),c.childLanes=bn(e,v,n),t.memoizedState=iu,s):(Oa(t),Zf(t,S))}if(N=e.memoizedState,N!==null&&(S=N.dehydrated,S!==null)){if(d)t.flags&256?(Oa(t),t.flags&=-257,t=Xf(e,t,n)):t.memoizedState!==null?(wr(),t.child=e.child,t.flags|=128,t=null):(wr(),c=s.fallback,S=t.mode,s=lu({mode:"visible",children:s.children},S),c=Li(c,S,n,null),c.flags|=2,s.return=t,c.return=t,s.sibling=c,t.child=s,Zi(t,e.child,null,n),s=t.child,s.memoizedState=Qo(n),s.childLanes=bn(e,v,n),t.memoizedState=iu,t=c);else if(Oa(t),In(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var Y=v.dgst;v=Y,s=Error(o(419)),s.stack="",s.digest=v,Fr({value:s,source:null,stack:null}),t=Xf(e,t,n)}else if(An||Us(e,t,n,!1),v=(n&e.childLanes)!==0,An||v){if(v=Ut,v!==null&&(s=n&-n,s=(s&42)!==0?1:jc(s),s=(s&(v.suspendedLanes|n))!==0?0:s,s!==0&&s!==N.retryLane))throw N.retryLane=s,Ni(e,s),ma(v,e,s),sm;S.data==="$?"||fd(),t=Xf(e,t,n)}else S.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Yt=Va(S.nextSibling),un=t,it=!0,ja=null,Kn=!1,e!==null&&(xa[Sa++]=It,xa[Sa++]=br,xa[Sa++]=jt,It=e.id,br=e.overflow,jt=t),t=Zf(t,s.children),t.flags|=4096);return t}return c?(wr(),c=s.fallback,S=t.mode,N=e.child,Y=N.sibling,s=kn(N,{mode:"hidden",children:s.children}),s.subtreeFlags=N.subtreeFlags&65011712,Y!==null?c=kn(Y,c):(c=Li(c,S,n,null),c.flags|=2),c.return=t,s.return=t,s.sibling=c,t.child=s,s=c,c=t.child,S=e.child.memoizedState,S===null?S=Qo(n):(N=S.cachePool,N!==null?(Y=Bt._currentValue,N=N.parent!==Y?{parent:Y,pool:Y}:N):N=Lh(),S={baseLanes:S.baseLanes|n,cachePool:N}),c.memoizedState=S,c.childLanes=bn(e,v,n),t.memoizedState=iu,s):(Oa(t),n=e.child,e=n.sibling,n=kn(n,{mode:"visible",children:s.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 Zf(e,t){return t=lu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function lu(e,t){return e=Qn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Xf(e,t,n){return Zi(t,e.child,null,n),e=Zf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Pf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Zn(e.return,t,n)}function Jf(e,t,n,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=n,d.tailMode=c)}function cm(e,t,n){var s=t.pendingProps,c=s.revealOrder,d=s.tail;if(Ht(e,t,s.children,n),s=$t.current,(s&2)!==0)s=s&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&&Pf(e,n,t);else if(e.tag===19)Pf(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}s&=1}switch(se($t,s),c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&eu(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Jf(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&&eu(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Jf(t,!0,n,null,d);break;case"together":Jf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Mr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Us(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 Ya(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ao(e)))}function Gn(e,t,n){switch(t.tag){case 3:je(t,t.stateNode.containerInfo),oa(t,Bt,e.memoizedState.cache),zs();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 s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Oa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?om(e,t,n):(Oa(t),e=Mr(e,t,n),e!==null?e.sibling:null);Oa(t);break;case 19:var c=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(Us(e,t,n,!1),s=(n&t.childLanes)!==0),c){if(s)return cm(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),se($t,$t.current),s)break;return null;case 22:case 23:return t.lanes=0,ru(e,t,n);case 24:oa(t,Bt,e.memoizedState.cache)}return Mr(e,t,n)}function Ko(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)An=!0;else{if(!Ya(e,n)&&(t.flags&128)===0)return An=!1,Gn(e,t,n);An=(e.flags&131072)!==0}else An=!1,it&&(t.flags&1048576)!==0&&vf(t,Ds,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var s=t.elementType,c=s._init;if(s=c(s._payload),t.type=s,typeof s=="function")Bi(s)?(e=ri(s,e),t.tag=1,t=ii(null,t,s,e,n)):(t.tag=0,t=Il(null,t,s,e,n));else{if(s!=null){if(c=s.$$typeof,c===Ae){t.tag=11,t=Io(null,t,s,e,n);break e}else if(c===ge){t.tag=14,t=Yo(null,t,s,e,n);break e}}throw t=ye(s)||s,Error(o(306,t,""))}}return t;case 0:return Il(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,c=ri(s,t.pendingProps),ii(e,t,s,c,n);case 3:e:{if(je(t,t.stateNode.containerInfo),e===null)throw Error(o(387));s=t.pendingProps;var d=t.memoizedState;c=d.element,zl(e,t),Tn(t,s,null,n);var v=t.memoizedState;if(s=v.cache,oa(t,Bt,s),s!==d.cache&&Fe(t,[Bt],n,!0),Ga(),s=v.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=um(e,t,s,n);break e}else if(s!==c){c=Un(Error(o(424)),t),Fr(c),t=um(e,t,s,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(Yt=Va(e.firstChild),un=t,it=!0,ja=null,Kn=!0,n=tm(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(zs(),s===c){t=Mr(e,t,n);break e}Ht(e,t,s,n)}t=t.child}return t;case 26:return Ue(e,t),e===null?(n=lg(t.type,null,t.pendingProps,null))?t.memoizedState=n:it||(n=t.type,e=t.pendingProps,s=Fi(pe.current).createElement(n),s[pn]=t,s[Yn]=e,dn(s,n,e),vn(s),t.stateNode=s):t.memoizedState=lg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rt(t),e===null&&it&&(s=t.stateNode=ag(t.type,t.pendingProps,pe.current),un=t,Kn=!0,c=Yt,Ra(t.type)?(Sd=c,Yt=Va(s.firstChild)):Yt=c),Ht(e,t,t.pendingProps.children,n),Ue(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&it&&((c=s=Yt)&&(s=tg(s,t.type,t.pendingProps,Kn),s!==null?(t.stateNode=s,un=t,Yt=Va(s.firstChild),Kn=!1,c=!0):c=!1),c||Ea(t)),rt(t),c=t.type,d=t.pendingProps,v=e!==null?e.memoizedProps:null,s=d.children,oc(c,d)?s=null:v!==null&&oc(c,v)&&(t.flags|=32),t.memoizedState!==null&&(c=wf(e,t,Mf,null,null,n),ls._currentValue=c),Ue(e,t),Ht(e,t,s,n),t.child;case 6:return e===null&&it&&((e=n=Yt)&&(n=fc(n,t.pendingProps,Kn),n!==null?(t.stateNode=n,un=t,Yt=null,e=!0):e=!1),e||Ea(t)),null;case 13:return om(e,t,n);case 4:return je(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Zi(t,null,s,n):Ht(e,t,s,n),t.child;case 11:return Io(e,t,t.type,t.pendingProps,n);case 7:return Ht(e,t,t.pendingProps,n),t.child;case 8:return Ht(e,t,t.pendingProps.children,n),t.child;case 12:return Ht(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,oa(t,t.type,s.value),Ht(e,t,s.children,n),t.child;case 9:return c=t.type._context,s=t.pendingProps.children,ki(t),c=Ft(c),s=s(c),t.flags|=1,Ht(e,t,s,n),t.child;case 14:return Yo(e,t,t.type,t.pendingProps,n);case 15:return qo(e,t,t.type,t.pendingProps,n);case 19:return cm(e,t,n);case 31:return s=t.pendingProps,n=t.mode,s={mode:s.mode,children:s.children},e===null?(n=lu(s,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=kn(e.child,s),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return ru(e,t,n);case 24:return ki(t),s=Ft(Bt),e===null?(c=yr(),c===null&&(c=Ut,d=bf(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=n),c=d),t.memoizedState={parent:s,cache:c},Hi(t),oa(t,Bt,c)):((e.lanes&n)!==0&&(zl(e,t),Tn(t,null,null,n),Ga()),c=e.memoizedState,d=t.memoizedState,c.parent!==s?(c={parent:s,cache:s},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),oa(t,Bt,s)):(s=d.cache,oa(t,Bt,s),s!==c.cache&&Fe(t,[Bt],n,!0))),Ht(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Or(e){e.flags|=4}function Zo(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?Hn!==null:(ct&62914560)!==ct&&(ct&536870912)===0||t!==Hn))throw Ll=_f,zh;e.flags|=8192}}function Xo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Yu():536870912,e.lanes|=t,Xl|=t)}function su(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 s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function fm(e,t,n){var s=t.pendingProps;switch(Bs(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(t),null;case 1:return Lt(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),wa(Bt),Ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ls(t)?Or(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rh())),Lt(t),null;case 26:return n=t.memoizedState,e===null?(Or(t),n!==null?(Lt(t),Zo(t,n)):(Lt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Or(t),Lt(t),Zo(t,n)):(Lt(t),t.flags&=-16777217):(e.memoizedProps!==s&&Or(t),Lt(t),t.flags&=-16777217),null;case 27:xt(t),n=pe.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Or(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Lt(t),null}e=be.current,Ls(t)?Ch(t):(e=ag(c,s,n),t.stateNode=e,Or(t))}return Lt(t),null;case 5:if(xt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Or(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Lt(t),null}if(e=be.current,Ls(t))Ch(t);else{switch(c=Fi(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 s.is=="string"?c.createElement("select",{is:s.is}):c.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?c.createElement(n,{is:s.is}):c.createElement(n)}}e[pn]=t,e[Yn]=s;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,s),n){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Or(t)}}return Lt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Or(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(e=pe.current,Ls(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,c=un,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}e[pn]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||Wm(e.nodeValue,n)),e||Ea(t)}else e=Fi(e).createTextNode(s),e[pn]=t,t.stateNode=e}return Lt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Ls(t),s!==null&&s.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 zs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Lt(t),c=!1}else c=Rh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(nr(t),t):(nr(t),null)}if(nr(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=s!==null,e=e!==null&&e.memoizedState!==null,n){s=t.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool);var d=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==c&&(s.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Xo(t,t.updateQueue),Lt(t),null;case 4:return Ye(),e===null&&bd(t.stateNode.containerInfo),Lt(t),null;case 10:return wa(t.type),Lt(t),null;case 19:if(fe($t),c=t.memoizedState,c===null)return Lt(t),null;if(s=(t.flags&128)!==0,d=c.rendering,d===null)if(s)su(c,!1);else{if(en!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=eu(e),d!==null){for(t.flags|=128,su(c,!1),e=d.updateQueue,t.updateQueue=e,Xo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ns(n,e),n=n.sibling;return se($t,$t.current&1|2),t.child}e=e.sibling}c.tail!==null&&bt()>Pl&&(t.flags|=128,s=!0,su(c,!1),t.lanes=4194304)}else{if(!s)if(e=eu(d),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Xo(t,e),su(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!it)return Lt(t),null}else 2*bt()-c.renderingStartTime>Pl&&n!==536870912&&(t.flags|=128,s=!0,su(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=bt(),t.sibling=null,e=$t.current,se($t,s?e&1|2:e&1),t):(Lt(t),null);case 22:case 23:return nr(t),Ef(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(Lt(t),t.subtreeFlags&6&&(t.flags|=8192)):Lt(t),n=t.updateQueue,n!==null&&Xo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&fe(ji),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wa(Bt),Lt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function dm(e,t){switch(Bs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wa(Bt),Ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xt(t),null;case 13:if(nr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe($t),null;case 4:return Ye(),null;case 10:return wa(t.type),null;case 22:case 23:return nr(t),Ef(),e!==null&&fe(ji),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wa(Bt),null;case 25:return null;default:return null}}function hm(e,t){switch(Bs(t),t.tag){case 3:wa(Bt),Ye();break;case 26:case 27:case 5:xt(t);break;case 4:Ye();break;case 13:nr(t);break;case 19:fe($t);break;case 10:wa(t.type);break;case 22:case 23:nr(t),Ef(),e!==null&&fe(ji);break;case 24:wa(Bt)}}function uu(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var c=s.next;n=c;do{if((n.tag&e)===e){s=void 0;var d=n.create,v=n.inst;s=d(),v.destroy=s}n=n.next}while(n!==c)}}catch(S){zt(t,t.return,S)}}function li(e,t,n){try{var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var d=c.next;s=d;do{if((s.tag&e)===e){var v=s.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,c=t;var N=n,Y=S;try{Y()}catch(ne){zt(c,N,ne)}}}s=s.next}while(s!==d)}}catch(ne){zt(t,t.return,ne)}}function mm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Sf(t,n)}catch(s){zt(e,e.return,s)}}}function Wf(e,t,n){n.props=ri(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){zt(e,t,s)}}function Yl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof n=="function"?e.refCleanup=n(s):n.current=s}}catch(c){zt(e,t,c)}}function rr(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(c){zt(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){zt(e,t,c)}else n.current=null}function Po(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(c){zt(e,e.return,c)}}function Jo(e,t,n){try{var s=e.stateNode;Zp(s,e.type,n,t),s[Yn]=t}catch(c){zt(e,e.return,c)}}function ql(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ra(e.type)||e.tag===4}function ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ql(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&&Ra(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 Wo(e,t,n){var s=e.tag;if(s===5||s===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=sc));else if(s!==4&&(s===27&&Ra(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Wo(e,t,n),e=e.sibling;e!==null;)Wo(e,t,n),e=e.sibling}function cu(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&Ra(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(cu(e,t,n),e=e.sibling;e!==null;)cu(e,t,n),e=e.sibling}function fu(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);dn(t,s,n),t[pn]=e,t[Yn]=n}catch(d){zt(e,e.return,d)}}var ir=!1,yt=!1,Cr=!1,gm=typeof WeakSet=="function"?WeakSet:Set,cn=null;function Bp(e,t){if(e=e.containerInfo,qa=gc,e=Mh(e),hf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var c=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break e}var v=0,S=-1,N=-1,Y=0,ne=0,ue=e,X=null;t:for(;;){for(var V;ue!==n||c!==0&&ue.nodeType!==3||(S=v+c),ue!==d||s!==0&&ue.nodeType!==3||(N=v+s),ue.nodeType===3&&(v+=ue.nodeValue.length),(V=ue.firstChild)!==null;)X=ue,ue=V;for(;;){if(ue===e)break t;if(X===n&&++Y===c&&(S=v),X===d&&++ne===s&&(N=v),(V=ue.nextSibling)!==null)break;ue=X,X=ue.parentNode}ue=V}n=S===-1||N===-1?null:{start:S,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(uc={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,s=n.stateNode;try{var He=ri(n.type,c,n.elementType===n.type);e=s.getSnapshotBeforeUpdate(He,d),s.__reactInternalSnapshotBeforeUpdate=e}catch(ke){zt(n,n.return,ke)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)xd(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xd(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 pm(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:si(e,n),s&4&&uu(5,n);break;case 1:if(si(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(v){zt(n,n.return,v)}else{var c=ri(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){zt(n,n.return,v)}}s&64&&mm(n),s&512&&Yl(n,n.return);break;case 3:if(si(e,n),s&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{Sf(e,t)}catch(v){zt(n,n.return,v)}}break;case 27:t===null&&s&4&&fu(n);case 26:case 5:si(e,n),t===null&&s&4&&Po(n),s&512&&Yl(n,n.return);break;case 12:si(e,n);break;case 13:si(e,n),s&4&&bm(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=nc.bind(null,n),ts(e,n))));break;case 22:if(s=n.memoizedState!==null||ir,!s){t=t!==null&&t.memoizedState!==null||yt,c=ir;var d=yt;ir=s,(yt=t)&&!d?Rr(e,n,(n.subtreeFlags&8772)!==0):si(e,n),ir=c,yt=d}break;case 30:break;default:si(e,n)}}function vm(e){var t=e.alternate;t!==null&&(e.alternate=null,vm(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 qt=null,Fn=!1;function Tr(e,t,n){for(n=n.child;n!==null;)Am(e,t,n),n=n.sibling}function Am(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(mr,n)}catch{}switch(n.tag){case 26:yt||rr(n,t),Tr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:yt||rr(n,t);var s=qt,c=Fn;Ra(n.type)&&(qt=n.stateNode,Fn=!1),Tr(e,t,n),xu(n.stateNode),qt=s,Fn=c;break;case 5:yt||rr(n,t);case 6:if(s=qt,c=Fn,qt=null,Tr(e,t,n),qt=s,Fn=c,qt!==null)if(Fn)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(n.stateNode)}catch(d){zt(n,t,d)}else try{qt.removeChild(n.stateNode)}catch(d){zt(n,t,d)}break;case 18:qt!==null&&(Fn?(e=qt,cc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ru(e)):cc(qt,n.stateNode));break;case 4:s=qt,c=Fn,qt=n.stateNode.containerInfo,Fn=!0,Tr(e,t,n),qt=s,Fn=c;break;case 0:case 11:case 14:case 15:yt||li(2,n,t),yt||li(4,n,t),Tr(e,t,n);break;case 1:yt||(rr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Wf(n,t,s)),Tr(e,t,n);break;case 21:Tr(e,t,n);break;case 22:yt=(s=yt)||n.memoizedState!==null,Tr(e,t,n),yt=s;break;default:Tr(e,t,n)}}function bm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ru(e)}catch(n){zt(t,t.return,n)}}function Lp(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gm),t;default:throw Error(o(435,e.tag))}}function Ff(e,t){var n=Lp(e);t.forEach(function(s){var c=Gp.bind(null,e,s);n.has(s)||(n.add(s),s.then(c,c))})}function da(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var c=n[s],d=e,v=t,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Ra(S.type)){qt=S.stateNode,Fn=!1;break e}break;case 5:qt=S.stateNode,Fn=!1;break e;case 3:case 4:qt=S.stateNode.containerInfo,Fn=!0;break e}S=S.return}if(qt===null)throw Error(o(160));Am(d,v,c),qt=null,Fn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)$f(t,e),t=t.sibling}var Ca=null;function $f(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:da(t,e),$n(e),s&4&&(li(3,e,e.return),uu(3,e),li(5,e,e.return));break;case 1:da(t,e),$n(e),s&512&&(yt||n===null||rr(n,n.return)),s&64&&ir&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var c=Ca;if(da(t,e),$n(e),s&512&&(yt||n===null||rr(n,n.return)),s&4){var d=n!==null?n.memoizedState:null;if(s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(s){case"title":d=c.getElementsByTagName("title")[0],(!d||d[bs]||d[pn]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(s),c.head.insertBefore(d,c.querySelector("head > title"))),dn(d,s,n),d[pn]=e,vn(d),s=d;break e;case"link":var v=og("link","href",c).get(s+(n.href||""));if(v){for(var S=0;S<v.length;S++)if(d=v[S],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(S,1);break t}}d=c.createElement(s),dn(d,s,n),c.head.appendChild(d);break;case"meta":if(v=og("meta","content",c).get(s+(n.content||""))){for(S=0;S<v.length;S++)if(d=v[S],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(S,1);break t}}d=c.createElement(s),dn(d,s,n),c.head.appendChild(d);break;default:throw Error(o(468,s))}d[pn]=e,vn(d),s=d}e.stateNode=s}else cg(c,e.type,e.stateNode);else e.stateNode=ug(c,s,e.memoizedProps);else d!==s?(d===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):d.count--,s===null?cg(c,e.type,e.stateNode):ug(c,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Jo(e,e.memoizedProps,n.memoizedProps)}break;case 27:da(t,e),$n(e),s&512&&(yt||n===null||rr(n,n.return)),n!==null&&s&4&&Jo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(da(t,e),$n(e),s&512&&(yt||n===null||rr(n,n.return)),e.flags&32){c=e.stateNode;try{Vr(c,"")}catch(V){zt(e,e.return,V)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,Jo(e,c,n!==null?n.memoizedProps:c)),s&1024&&(Cr=!0);break;case 6:if(da(t,e),$n(e),s&4){if(e.stateNode===null)throw Error(o(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(V){zt(e,e.return,V)}}break;case 3:if(is=null,c=Ca,Ca=Xe(t.containerInfo),da(t,e),Ca=c,$n(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Ru(t.containerInfo)}catch(V){zt(e,e.return,V)}Cr&&(Cr=!1,ym(e));break;case 4:s=Ca,Ca=Xe(e.stateNode.containerInfo),da(t,e),$n(e),Ca=s;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)&&(ld=bt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ff(e,s)));break;case 22:c=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,Y=ir,ne=yt;if(ir=Y||c,yt=ne||N,da(t,e),yt=ne,ir=Y,$n(e),s&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||N||ir||yt||Ji(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(d=N.stateNode,c)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=N.stateNode;var ue=N.memoizedProps.style,X=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;S.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(V){zt(N,N.return,V)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=c?"":N.memoizedProps}catch(V){zt(N,N.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}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,Ff(e,n))));break;case 19:da(t,e),$n(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ff(e,s)));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,s=e.return;s!==null;){if(ql(s)){n=s;break}s=s.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,d=ou(e);cu(e,d,c);break;case 5:var v=n.stateNode;n.flags&32&&(Vr(v,""),n.flags&=-33);var S=ou(e);cu(e,S,v);break;case 3:case 4:var N=n.stateNode.containerInfo,Y=ou(e);Wo(e,Y,N);break;default:throw Error(o(161))}}catch(ne){zt(e,e.return,ne)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ym(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ym(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function si(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pm(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:li(4,t,t.return),Ji(t);break;case 1:rr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Wf(t,t.return,n),Ji(t);break;case 27:xu(t.stateNode);case 26:case 5:rr(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 Rr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,c=e,d=t,v=d.flags;switch(d.tag){case 0:case 11:case 15:Rr(c,d,n),uu(4,d);break;case 1:if(Rr(c,d,n),s=d,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(Y){zt(s,s.return,Y)}if(s=d,c=s.updateQueue,c!==null){var S=s.stateNode;try{var N=c.shared.hiddenCallbacks;if(N!==null)for(c.shared.hiddenCallbacks=null,c=0;c<N.length;c++)Hh(N[c],S)}catch(Y){zt(s,s.return,Y)}}n&&v&64&&mm(d),Yl(d,d.return);break;case 27:fu(d);case 26:case 5:Rr(c,d,n),n&&s===null&&v&4&&Po(d),Yl(d,d.return);break;case 12:Rr(c,d,n);break;case 13:Rr(c,d,n),n&&v&4&&bm(c,d);break;case 22:d.memoizedState===null&&Rr(c,d,n),Yl(d,d.return);break;case 30:break;default:Rr(c,d,n)}t=t.sibling}}function ed(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&&ks(n))}function td(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ks(e))}function lr(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_m(e,t,n,s),t=t.sibling}function _m(e,t,n,s){var c=t.flags;switch(t.tag){case 0:case 11:case 15:lr(e,t,n,s),c&2048&&uu(9,t);break;case 1:lr(e,t,n,s);break;case 3:lr(e,t,n,s),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ks(e)));break;case 12:if(c&2048){lr(e,t,n,s),e=t.stateNode;try{var d=t.memoizedProps,v=d.id,S=d.onPostCommit;typeof S=="function"&&S(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){zt(t,t.return,N)}}else lr(e,t,n,s);break;case 13:lr(e,t,n,s);break;case 23:break;case 22:d=t.stateNode,v=t.alternate,t.memoizedState!==null?d._visibility&2?lr(e,t,n,s):du(e,t):d._visibility&2?lr(e,t,n,s):(d._visibility|=2,Vl(e,t,n,s,(t.subtreeFlags&10256)!==0)),c&2048&&ed(v,t);break;case 24:lr(e,t,n,s),c&2048&&td(t.alternate,t);break;default:lr(e,t,n,s)}}function Vl(e,t,n,s,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,v=t,S=n,N=s,Y=v.flags;switch(v.tag){case 0:case 11:case 15:Vl(d,v,S,N,c),uu(8,v);break;case 23:break;case 22:var ne=v.stateNode;v.memoizedState!==null?ne._visibility&2?Vl(d,v,S,N,c):du(d,v):(ne._visibility|=2,Vl(d,v,S,N,c)),c&&Y&2048&&ed(v.alternate,v);break;case 24:Vl(d,v,S,N,c),c&&Y&2048&&td(v.alternate,v);break;default:Vl(d,v,S,N,c)}t=t.sibling}}function du(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,c=s.flags;switch(s.tag){case 22:du(n,s),c&2048&&ed(s.alternate,s);break;case 24:du(n,s),c&2048&&td(s.alternate,s);break;default:du(n,s)}t=t.sibling}}var Nn=8192;function Ql(e){if(e.subtreeFlags&Nn)for(e=e.child;e!==null;)xm(e),e=e.sibling}function xm(e){switch(e.tag){case 26:Ql(e),e.flags&Nn&&e.memoizedState!==null&&iv(Ca,e.memoizedState,e.memoizedProps);break;case 5:Ql(e);break;case 3:case 4:var t=Ca;Ca=Xe(e.stateNode.containerInfo),Ql(e),Ca=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Nn,Nn=16777216,Ql(e),Nn=t):Ql(e));break;default:Ql(e)}}function Sm(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 Kl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];cn=s,wm(s,e)}Sm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Em(e),e=e.sibling}function Em(e){switch(e.tag){case 0:case 11:case 15:Kl(e),e.flags&2048&&li(9,e,e.return);break;case 3:Kl(e);break;case 12:Kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fo(e)):Kl(e);break;default:Kl(e)}}function Fo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];cn=s,wm(s,e)}Sm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:li(8,t,t.return),Fo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fo(t));break;default:Fo(t)}e=e.sibling}}function wm(e,t){for(;cn!==null;){var n=cn;switch(n.tag){case 0:case 11:case 15:li(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ks(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,cn=s;else e:for(n=e;cn!==null;){s=cn;var c=s.sibling,d=s.return;if(vm(s),s===n){cn=null;break e}if(c!==null){c.return=d,cn=c;break e}cn=d}}}var zp={getCacheForType:function(e){var t=Ft(Bt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},nd=typeof WeakMap=="function"?WeakMap:Map,wt=0,Ut=null,tt=null,ct=0,Mt=0,ha=null,ui=!1,Zl=!1,ad=!1,Nr=0,en=0,oi=0,Wi=0,rd=0,Ta=0,Xl=0,hu=null,ea=null,id=!1,ld=0,Pl=1/0,mu=null,ci=null,En=0,fi=null,Jl=null,Wl=0,sd=0,ud=null,Mm=null,Fl=0,od=null;function Dn(){if((wt&2)!==0&&ct!==0)return ct&-ct;if(D.T!==null){var e=Bl;return e!==0?e:ic()}return Fd()}function Om(){Ta===0&&(Ta=(ct&536870912)===0||it?Cn():536870912);var e=fa.current;return e!==null&&(e.flags|=32),Ta}function ma(e,t,n){(e===Ut&&(Mt===2||Mt===9)||e.cancelPendingCommit!==null)&&($l(e,0),di(e,ct,Ta,!1)),cl(e,n),((wt&2)===0||e!==Ut)&&(e===Ut&&((wt&2)===0&&(Wi|=n),en===4&&di(e,ct,Ta,!1)),sr(e))}function Cm(e,t,n){if((wt&6)!==0)throw Error(o(327));var s=!n&&(t&124)===0&&(t&e.expiredLanes)===0||gr(e,t),c=s?jp(e,t):dd(e,t,!0),d=s;do{if(c===0){Zl&&!s&&di(e,t,0,!1);break}else{if(n=e.current.alternate,d&&!Up(n)){c=dd(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 S=e;c=hu;var N=S.current.memoizedState.isDehydrated;if(N&&($l(S,v).flags|=256),v=dd(S,v,!1),v!==2){if(ad&&!N){S.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){$l(e,0),di(e,t,0,!0);break}e:{switch(s=e,d=c,d){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:di(s,t,Ta,!ui);break e;case 2:ea=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=ld+300-bt(),10<c)){if(di(s,t,Ta,!ui),Ir(s,0,!0)!==0)break e;s.timeoutHandle=Fm(Tm.bind(null,s,n,ea,mu,id,t,Ta,Wi,Xl,ui,d,2,-0,0),c);break e}Tm(s,n,ea,mu,id,t,Ta,Wi,Xl,ui,d,0,-0,0)}}break}while(!0);sr(e)}function Tm(e,t,n,s,c,d,v,S,N,Y,ne,ue,X,V){if(e.timeoutHandle=-1,ue=t.subtreeFlags,(ue&8192||(ue&16785408)===16785408)&&(yn={stylesheets:null,count:0,unsuspend:rv},xm(t),ue=lv(),ue!==null)){e.cancelPendingCommit=ue(gu.bind(null,e,t,d,n,s,c,v,S,N,ne,1,X,V)),di(e,d,v,!Y);return}gu(e,t,d,n,s,c,v,S,N)}function Up(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 s=0;s<n.length;s++){var c=n[s],d=c.getSnapshot;c=c.value;try{if(!sa(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 di(e,t,n,s){t&=~rd,t&=~Wi,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var c=t;0<c;){var d=31-Sn(c),v=1<<d;s[d]=-1,c&=~v}n!==0&&Jd(e,n,t)}function $o(){return(wt&6)===0?(Au(0),!1):!0}function cd(){if(tt!==null){if(Mt===0)var e=tt.return;else e=tt,x=$r=null,Eo(e),on=null,Wn=0,e=tt;for(;e!==null;)hm(e.alternate,e),e=e.return;tt=null}}function $l(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Pp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cd(),Ut=e,tt=n=kn(e.current,null),ct=t,Mt=0,ha=null,ui=!1,Zl=gr(e,t),ad=!1,Xl=Ta=rd=Wi=oi=en=0,ea=hu=null,id=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var c=31-Sn(s),d=1<<c;t|=e[c],s&=~d}return Nr=t,Ri(),n}function Rm(e,t){Je=null,D.H=Fs,t===jn||t===_o?(t=kh(),Mt=3):t===zh?(t=kh(),Mt=4):Mt=t===sm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ha=t,tt===null&&(en=1,au(e,Un(t,e.current)))}function Nm(){var e=D.H;return D.H=Fs,e===null?Fs:e}function Dm(){var e=D.A;return D.A=zp,e}function fd(){en=4,ui||(ct&4194048)!==ct&&fa.current!==null||(Zl=!0),(oi&134217727)===0&&(Wi&134217727)===0||Ut===null||di(Ut,ct,Ta,!1)}function dd(e,t,n){var s=wt;wt|=2;var c=Nm(),d=Dm();(Ut!==e||ct!==t)&&(mu=null,$l(e,t)),t=!1;var v=en;e:do try{if(Mt!==0&&tt!==null){var S=tt,N=ha;switch(Mt){case 8:cd(),v=6;break e;case 3:case 2:case 9:case 6:fa.current===null&&(t=!0);var Y=Mt;if(Mt=0,ha=null,es(e,S,N,Y),n&&Zl){v=0;break e}break;default:Y=Mt,Mt=0,ha=null,es(e,S,N,Y)}}kp(),v=en;break}catch(ne){Rm(e,ne)}while(!0);return t&&e.shellSuspendCounter++,x=$r=null,wt=s,D.H=c,D.A=d,tt===null&&(Ut=null,ct=0,Ri()),v}function kp(){for(;tt!==null;)hd(tt)}function jp(e,t){var n=wt;wt|=2;var s=Nm(),c=Dm();Ut!==e||ct!==t?(mu=null,Pl=bt()+500,$l(e,t)):Zl=gr(e,t);e:do try{if(Mt!==0&&tt!==null){t=tt;var d=ha;t:switch(Mt){case 1:Mt=0,ha=null,es(e,t,d,1);break;case 2:case 9:if(Uh(d)){Mt=0,ha=null,Lm(t);break}t=function(){Mt!==2&&Mt!==9||Ut!==e||(Mt=7),sr(e)},d.then(t,t);break e;case 3:Mt=7;break e;case 4:Mt=5;break e;case 7:Uh(d)?(Mt=0,ha=null,Lm(t)):(Mt=0,ha=null,es(e,t,d,7));break;case 5:var v=null;switch(tt.tag){case 26:v=tt.memoizedState;case 5:case 27:var S=tt;if(!v||hn(v)){Mt=0,ha=null;var N=S.sibling;if(N!==null)tt=N;else{var Y=S.return;Y!==null?(tt=Y,ec(Y)):tt=null}break t}}Mt=0,ha=null,es(e,t,d,5);break;case 6:Mt=0,ha=null,es(e,t,d,6);break;case 8:cd(),en=6;break e;default:throw Error(o(462))}}Bm();break}catch(ne){Rm(e,ne)}while(!0);return x=$r=null,D.H=s,D.A=c,wt=n,tt!==null?0:(Ut=null,ct=0,Ri(),en)}function Bm(){for(;tt!==null&&!xn();)hd(tt)}function hd(e){var t=Ko(e.alternate,e,Nr);e.memoizedProps=e.pendingProps,t===null?ec(e):tt=t}function Lm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vo(n,t,t.pendingProps,t.type,void 0,ct);break;case 11:t=Vo(n,t,t.pendingProps,t.type.render,t.ref,ct);break;case 5:Eo(t);default:hm(n,t),t=tt=Ns(t,Nr),t=Ko(n,t,Nr)}e.memoizedProps=e.pendingProps,t===null?ec(e):tt=t}function es(e,t,n,s){x=$r=null,Eo(t),on=null,Wn=0;var c=t.return;try{if(lm(e,c,t,n,ct)){en=1,au(e,Un(n,e.current)),tt=null;return}}catch(d){if(c!==null)throw tt=c,d;en=1,au(e,Un(n,e.current)),tt=null;return}t.flags&32768?(it||s===1?e=!0:Zl||(ct&536870912)!==0?e=!1:(ui=e=!0,(s===2||s===9||s===3||s===6)&&(s=fa.current,s!==null&&s.tag===13&&(s.flags|=16384))),zm(t,e)):ec(t)}function ec(e){var t=e;do{if((t.flags&32768)!==0){zm(t,ui);return}e=t.return;var n=fm(t.alternate,t,Nr);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 zm(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 gu(e,t,n,s,c,d,v,S,N){e.cancelPendingCommit=null;do tc();while(En!==0);if((wt&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(d=t.lanes|t.childLanes,d|=gf,up(e,n,d,v,S,N),e===Ut&&(tt=Ut=null,ct=0),Jl=t,fi=e,Wl=n,sd=d,ud=c,Mm=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qm(Ct,function(){return Gm(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=D.T,D.T=null,c=Z.p,Z.p=2,v=wt,wt|=4;try{Bp(e,t,n)}finally{wt=v,Z.p=c,D.T=s}}En=1,Um(),km(),jm()}}function Um(){if(En===1){En=0;var e=fi,t=Jl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var s=Z.p;Z.p=2;var c=wt;wt|=4;try{$f(t,e);var d=uc,v=Mh(e.containerInfo),S=d.focusedElem,N=d.selectionRange;if(v!==S&&S&&S.ownerDocument&&wh(S.ownerDocument.documentElement,S)){if(N!==null&&hf(S)){var Y=N.start,ne=N.end;if(ne===void 0&&(ne=Y),"selectionStart"in S)S.selectionStart=Y,S.selectionEnd=Math.min(ne,S.value.length);else{var ue=S.ownerDocument||document,X=ue&&ue.defaultView||window;if(X.getSelection){var V=X.getSelection(),He=S.textContent.length,ke=Math.min(N.start,He),Nt=N.end===void 0?ke:Math.min(N.end,He);!V.extend&&ke>Nt&&(v=Nt,Nt=ke,ke=v);var U=df(S,ke),L=df(S,Nt);if(U&&L&&(V.rangeCount!==1||V.anchorNode!==U.node||V.anchorOffset!==U.offset||V.focusNode!==L.node||V.focusOffset!==L.offset)){var I=ue.createRange();I.setStart(U.node,U.offset),V.removeAllRanges(),ke>Nt?(V.addRange(I),V.extend(L.node,L.offset)):(I.setEnd(L.node,L.offset),V.addRange(I))}}}}for(ue=[],V=S;V=V.parentNode;)V.nodeType===1&&ue.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<ue.length;S++){var re=ue[S];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}gc=!!qa,uc=qa=null}finally{wt=c,Z.p=s,D.T=n}}e.current=t,En=2}}function km(){if(En===2){En=0;var e=fi,t=Jl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var s=Z.p;Z.p=2;var c=wt;wt|=4;try{pm(e,t.alternate,t)}finally{wt=c,Z.p=s,D.T=n}}En=3}}function jm(){if(En===4||En===3){En=0,Mi();var e=fi,t=Jl,n=Wl,s=Mm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?En=5:(En=0,Jl=fi=null,Hm(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ci=null),Vu(n),t=t.stateNode,nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(mr,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=D.T,c=Z.p,Z.p=2,D.T=null;try{for(var d=e.onRecoverableError,v=0;v<s.length;v++){var S=s[v];d(S.value,{componentStack:S.stack})}}finally{D.T=t,Z.p=c}}(Wl&3)!==0&&tc(),sr(e),c=e.pendingLanes,(n&4194090)!==0&&(c&42)!==0?e===od?Fl++:(Fl=0,od=e):Fl=0,Au(0)}}function Hm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ks(t)))}function tc(e){return Um(),km(),jm(),Gm()}function Gm(){if(En!==5)return!1;var e=fi,t=sd;sd=0;var n=Vu(Wl),s=D.T,c=Z.p;try{Z.p=32>n?32:n,D.T=null,n=ud,ud=null;var d=fi,v=Wl;if(En=0,Jl=fi=null,Wl=0,(wt&6)!==0)throw Error(o(331));var S=wt;if(wt|=4,Em(d.current),_m(d,d.current,v,n),wt=S,Au(0,!1),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(mr,d)}catch{}return!0}finally{Z.p=c,D.T=s,Hm(e,t)}}function Im(e,t,n){t=Un(n,t),t=Go(e.stateNode,t,2),e=_r(e,t,2),e!==null&&(cl(e,2),sr(e))}function zt(e,t,n){if(e.tag===3)Im(e,e,n);else for(;t!==null;){if(t.tag===3){Im(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ci===null||!ci.has(s))){e=Un(n,e),n=Kf(2),s=_r(t,n,2),s!==null&&(im(n,s,t,e),cl(s,2),sr(s));break}}t=t.return}}function md(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new nd;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(n)||(ad=!0,c.add(n),e=Hp.bind(null,e,t,n),t.then(e,e))}function Hp(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ut===e&&(ct&n)===n&&(en===4||en===3&&(ct&62914560)===ct&&300>bt()-ld?(wt&2)===0&&$l(e,0):rd|=n,Xl===ct&&(Xl=0)),sr(e)}function Ym(e,t){t===0&&(t=Yu()),e=Ni(e,t),e!==null&&(cl(e,t),sr(e))}function nc(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ym(e,n)}function Gp(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(t),Ym(e,n)}function qm(e,t){return Wt(e,t)}var pu=null,hi=null,ac=!1,vu=!1,rc=!1,mi=0;function sr(e){e!==hi&&e.next===null&&(hi===null?pu=hi=e:hi=hi.next=e),vu=!0,ac||(ac=!0,gd())}function Au(e,t){if(!rc&&vu){rc=!0;do for(var n=!1,s=pu;s!==null;){if(e!==0){var c=s.pendingLanes;if(c===0)var d=0;else{var v=s.suspendedLanes,S=s.pingedLanes;d=(1<<31-Sn(42|e)+1)-1,d&=c&~(v&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(n=!0,Qm(s,d))}else d=ct,d=Ir(s,s===Ut?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||gr(s,d)||(n=!0,Qm(s,d));s=s.next}while(n);rc=!1}}function Ip(){bu()}function bu(){vu=ac=!1;var e=0;mi!==0&&(Xp()&&(e=mi),mi=0);for(var t=bt(),n=null,s=pu;s!==null;){var c=s.next,d=yu(s,t);d===0?(s.next=null,n===null?pu=c:n.next=c,c===null&&(hi=n)):(n=s,(e!==0||(d&3)!==0)&&(vu=!0)),s=c}Au(e)}function yu(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var v=31-Sn(d),S=1<<v,N=c[v];N===-1?((S&n)===0||(S&s)!==0)&&(c[v]=kc(S,t)):N<=t&&(e.expiredLanes|=S),d&=~S}if(t=Ut,n=ct,n=Ir(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,n===0||e===t&&(Mt===2||Mt===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&At(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||gr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&At(s),Vu(n)){case 2:case 8:n=ra;break;case 32:n=Ct;break;case 268435456:n=Ba;break;default:n=Ct}return s=Vm.bind(null,e),n=Wt(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&At(s),e.callbackPriority=2,e.callbackNode=null,2}function Vm(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 s=ct;return s=Ir(e,e===Ut?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Cm(e,s,t),yu(e,bt()),e.callbackNode!=null&&e.callbackNode===n?Vm.bind(null,e):null)}function Qm(e,t){if(tc())return null;Cm(e,t,!0)}function gd(){Jp(function(){(wt&6)!==0?Wt(Kt,Ip):bu()})}function ic(){return mi===0&&(mi=Cn()),mi}function Km(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xs(""+e)}function Zm(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 Yp(e,t,n,s,c){if(t==="submit"&&n&&n.stateNode===c){var d=Km((c[Yn]||null).action),v=s.submitter;v&&(t=(t=v[Yn]||null)?Km(t.formAction):v.getAttribute("formAction"),t!==null&&(d=t,v=null));var S=new eo("action","action",null,s,c);e.push({event:S,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(mi!==0){var N=v?Zm(c,v):new FormData(c);Js(n,{pending:!0,data:N,method:c.method,action:d},null,N)}}else typeof d=="function"&&(S.preventDefault(),N=v?Zm(c,v):new FormData(c),Js(n,{pending:!0,data:N,method:c.method,action:d},d,N))},currentTarget:c}]})}}for(var pd=0;pd<gt.length;pd++){var vd=gt[pd],qp=vd.toLowerCase(),Vp=vd[0].toUpperCase()+vd.slice(1);Ua(qp,"on"+Vp)}Ua(ho,"onAnimationEnd"),Ua(Oh,"onAnimationIteration"),Ua(ua,"onAnimationStart"),Ua("dblclick","onDoubleClick"),Ua("focusin","onFocus"),Ua("focusout","onBlur"),Ua(mo,"onTransitionRun"),Ua(Mp,"onTransitionStart"),Ua(Cl,"onTransitionCancel"),Ua(Os,"onTransitionEnd"),gl("onMouseEnter",["mouseout","mouseover"]),gl("onMouseLeave",["mouseout","mouseover"]),gl("onPointerEnter",["pointerout","pointerover"]),gl("onPointerLeave",["pointerout","pointerover"]),Oi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Oi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Oi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Oi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Oi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Oi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _u="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(" "),Qp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_u));function Xm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],c=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var v=s.length-1;0<=v;v--){var S=s[v],N=S.instance,Y=S.currentTarget;if(S=S.listener,N!==d&&c.isPropagationStopped())break e;d=S,c.currentTarget=Y;try{d(c)}catch(ne){Xi(ne)}c.currentTarget=null,d=N}else for(v=0;v<s.length;v++){if(S=s[v],N=S.instance,Y=S.currentTarget,S=S.listener,N!==d&&c.isPropagationStopped())break e;d=S,c.currentTarget=Y;try{d(c)}catch(ne){Xi(ne)}c.currentTarget=null,d=N}}}}function nt(e,t){var n=t[Hc];n===void 0&&(n=t[Hc]=new Set);var s=e+"__bubble";n.has(s)||(Pm(t,e,2,!1),n.add(s))}function Ad(e,t,n){var s=0;t&&(s|=4),Pm(n,e,s,t)}var ta="_reactListening"+Math.random().toString(36).slice(2);function bd(e){if(!e[ta]){e[ta]=!0,eh.forEach(function(n){n!=="selectionchange"&&(Qp.has(n)||Ad(n,!1,e),Ad(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ta]||(t[ta]=!0,Ad("selectionchange",!1,t))}}function Pm(e,t,n,s){switch(mg(t)){case 2:var c=ov;break;case 8:c=ss;break;default:c=Td}n=c.bind(null,t,n,e),c=void 0,!Es||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?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 Dr(e,t,n,s,c){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var S=s.stateNode.containerInfo;if(S===c)break;if(v===4)for(v=s.return;v!==null;){var N=v.tag;if((N===3||N===4)&&v.stateNode.containerInfo===c)return;v=v.return}for(;S!==null;){if(v=fl(S),v===null)return;if(N=v.tag,N===5||N===6||N===26||N===27){s=d=v;continue e}S=S.parentNode}}s=s.return}lh(function(){var Y=d,ne=$c(n),ue=[];e:{var X=Cs.get(e);if(X!==void 0){var V=eo,He=e;switch(e){case"keypress":if(Tt(n)===0)break e;case"keydown":case"keyup":V=lf;break;case"focusin":He="focus",V=no;break;case"focusout":He="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=Kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=rf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=vp;break;case ho:case Oh:case ua:V=fh;break;case Os:V=Ap;break;case"scroll":case"scrollend":V=mp;break;case"wheel":V=yp;break;case"copy":case"cut":case"paste":V=hh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=vr;break;case"toggle":case"beforetoggle":V=ro}var ke=(t&4)!==0,Nt=!ke&&(e==="scroll"||e==="scrollend"),U=ke?X!==null?X+"Capture":null:X;ke=[];for(var L=Y,I;L!==null;){var re=L;if(I=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||I===null||U===null||(re=Ss(L,U),re!=null&&ke.push(Qe(L,re,I))),Nt)break;L=L.return}0<ke.length&&(X=new V(X,He,null,n,ne),ue.push({event:X,listeners:ke}))}}if((t&7)===0){e:{if(X=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",X&&n!==Fu&&(He=n.relatedTarget||n.fromElement)&&(fl(He)||He[qr]))break e;if((V||X)&&(X=ne.window===ne?ne:(X=ne.ownerDocument)?X.defaultView||X.parentWindow:window,V?(He=n.relatedTarget||n.toElement,V=Y,He=He?fl(He):null,He!==null&&(Nt=m(He),ke=He.tag,He!==Nt||ke!==5&&ke!==27&&ke!==6)&&(He=null)):(V=null,He=Y),V!==He)){if(ke=Kr,re="onMouseLeave",U="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(ke=vr,re="onPointerLeave",U="onPointerEnter",L="pointer"),Nt=V==null?X:hl(V),I=He==null?X:hl(He),X=new ke(re,L+"leave",V,n,ne),X.target=Nt,X.relatedTarget=I,re=null,fl(ne)===Y&&(ke=new ke(U,L+"enter",He,n,ne),ke.target=I,ke.relatedTarget=Nt,re=ke),Nt=re,V&&He)t:{for(ke=V,U=He,L=0,I=ke;I;I=fn(I))L++;for(I=0,re=U;re;re=fn(re))I++;for(;0<L-I;)ke=fn(ke),L--;for(;0<I-L;)U=fn(U),I--;for(;L--;){if(ke===U||U!==null&&ke===U.alternate)break t;ke=fn(ke),U=fn(U)}ke=null}else ke=null;V!==null&&tn(ue,X,V,ke,!1),He!==null&&Nt!==null&&tn(ue,Nt,He,ke,!0)}}e:{if(X=Y?hl(Y):window,V=X.nodeName&&X.nodeName.toLowerCase(),V==="select"||V==="input"&&X.type==="file")var Oe=yh;else if(uo(X))if(_h)Oe=Sp;else{Oe=Pr;var $e=Eh}else V=X.nodeName,!V||V.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?Y&&Fc(Y.elementType)&&(Oe=yh):Oe=fo;if(Oe&&(Oe=Oe(e,Y))){El(ue,Oe,n,ne);break e}$e&&$e(e,X,Y),e==="focusout"&&Y&&X.type==="number"&&Y.memoizedProps.value!=null&&_s(X,"number",X.value)}switch($e=Y?hl(Y):window,e){case"focusin":(uo($e)||$e.contentEditable==="true")&&(Ol=$e,Jr=Y,z=null);break;case"focusout":z=Jr=Ol=null;break;case"mousedown":ee=!0;break;case"contextmenu":case"mouseup":case"dragend":ee=!1,W(ue,n,ne);break;case"selectionchange":if(wp)break;case"keydown":case"keyup":W(ue,n,ne)}var De;if(of)e:{switch(e){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Zr?Ah(e,n)&&(Ge="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ge="onCompositionStart");Ge&&(io&&n.locale!=="ko"&&(Zr||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Zr&&(De=sh()):(Qr=ne,nf="value"in Qr?Qr.value:Qr.textContent,Zr=!0)),$e=lc(Y,Ge),0<$e.length&&(Ge=new Vn(Ge,e,null,n,ne),ue.push({event:Ge,listeners:$e}),De?Ge.data=De:(De=so(n),De!==null&&(Ge.data=De)))),(De=vh?_p(e,n):bh(e,n))&&(Ge=lc(Y,"onBeforeInput"),0<Ge.length&&($e=new Vn("onBeforeInput","beforeinput",null,n,ne),ue.push({event:$e,listeners:Ge}),$e.data=De)),Yp(ue,e,Y,n,ne)}Xm(ue,t)})}function Qe(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lc(e,t){for(var n=t+"Capture",s=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Ss(e,n),c!=null&&s.unshift(Qe(e,c,d)),c=Ss(e,t),c!=null&&s.push(Qe(e,c,d))),e.tag===3)return s;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,s,c){for(var d=t._reactName,v=[];n!==null&&n!==s;){var S=n,N=S.alternate,Y=S.stateNode;if(S=S.tag,N!==null&&N===s)break;S!==5&&S!==26&&S!==27||Y===null||(N=Y,c?(Y=Ss(n,d),Y!=null&&v.unshift(Qe(n,Y,N))):c||(Y=Ss(n,d),Y!=null&&v.push(Qe(n,Y,N)))),n=n.return}v.length!==0&&e.push({event:t,listeners:v})}var Kp=/\r\n?/g,gi=/\u0000|\uFFFD/g;function Jm(e){return(typeof e=="string"?e:""+e).replace(Kp,`
`).replace(gi,"")}function Wm(e,t){return t=Jm(t),Jm(e)===t}function sc(){}function Rt(e,t,n,s,c,d){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Vr(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Vr(e,""+s);break;case"className":Zu(e,"class",s);break;case"tabIndex":Zu(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Zu(e,n,s);break;case"style":Wc(e,s,d);break;case"data":if(t!=="object"){Zu(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=xs(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="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"&&Rt(e,t,"name",c.name,c,null),Rt(e,t,"formEncType",c.formEncType,c,null),Rt(e,t,"formMethod",c.formMethod,c,null),Rt(e,t,"formTarget",c.formTarget,c,null)):(Rt(e,t,"encType",c.encType,c,null),Rt(e,t,"method",c.method,c,null),Rt(e,t,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=xs(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=sc);break;case"onScroll":s!=null&&nt("scroll",e);break;case"onScrollEnd":s!=null&&nt("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}n=xs(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":nt("beforetoggle",e),nt("toggle",e),Ku(e,"popover",s);break;case"xlinkActuate":Wa(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Wa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Wa(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Wa(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Wa(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Wa(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Wa(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Wa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Wa(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ku(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=rh.get(n)||n,Ku(e,n,s))}}function yd(e,t,n,s,c,d){switch(n){case"style":Wc(e,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof s=="string"?Vr(e,s):(typeof s=="number"||typeof s=="bigint")&&Vr(e,""+s);break;case"onScroll":s!=null&&nt("scroll",e);break;case"onScrollEnd":s!=null&&nt("scrollend",e);break;case"onClick":s!=null&&(e.onclick=sc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!th.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[Yn]||null,d=d!=null?d[n]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof s=="function")){typeof d!="function"&&d!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,c);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):Ku(e,n,s)}}}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 s=!1,c=!1,d;for(d in n)if(n.hasOwnProperty(d)){var v=n[d];if(v!=null)switch(d){case"src":s=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Rt(e,t,d,v,n,null)}}c&&Rt(e,t,"srcSet",n.srcSet,n,null),s&&Rt(e,t,"src",n.src,n,null);return;case"input":nt("invalid",e);var S=d=v=c=null,N=null,Y=null;for(s in n)if(n.hasOwnProperty(s)){var ne=n[s];if(ne!=null)switch(s){case"name":c=ne;break;case"type":v=ne;break;case"checked":N=ne;break;case"defaultChecked":Y=ne;break;case"value":d=ne;break;case"defaultValue":S=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(o(137,t));break;default:Rt(e,t,s,ne,n,null)}}Xc(e,d,S,N,Y,v,c,!1),Pu(e);return;case"select":nt("invalid",e),s=v=d=null;for(c in n)if(n.hasOwnProperty(c)&&(S=n[c],S!=null))switch(c){case"value":d=S;break;case"defaultValue":v=S;break;case"multiple":s=S;default:Rt(e,t,c,S,n,null)}t=d,n=v,e.multiple=!!s,t!=null?vl(e,!!s,t,!1):n!=null&&vl(e,!!s,n,!0);return;case"textarea":nt("invalid",e),d=c=s=null;for(v in n)if(n.hasOwnProperty(v)&&(S=n[v],S!=null))switch(v){case"value":s=S;break;case"defaultValue":c=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(o(91));break;default:Rt(e,t,v,S,n,null)}Wu(e,s,c,d),Pu(e);return;case"option":for(N in n)if(n.hasOwnProperty(N)&&(s=n[N],s!=null))switch(N){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Rt(e,t,N,s,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(s=0;s<_u.length;s++)nt(_u[s],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)&&(s=n[Y],s!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Rt(e,t,Y,s,n,null)}return;default:if(Fc(t)){for(ne in n)n.hasOwnProperty(ne)&&(s=n[ne],s!==void 0&&yd(e,t,ne,s,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(s=n[S],s!=null&&Rt(e,t,S,s,n,null))}function Zp(e,t,n,s){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,S=null,N=null,Y=null,ne=null;for(V in n){var ue=n[V];if(n.hasOwnProperty(V)&&ue!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":N=ue;default:s.hasOwnProperty(V)||Rt(e,t,V,null,s,ue)}}for(var X in s){var V=s[X];if(ue=n[X],s.hasOwnProperty(X)&&(V!=null||ue!=null))switch(X){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":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,t));break;default:V!==ue&&Rt(e,t,X,V,s,ue)}}Ju(e,v,S,N,Y,ne,d,c);return;case"select":V=v=S=X=null;for(d in n)if(N=n[d],n.hasOwnProperty(d)&&N!=null)switch(d){case"value":break;case"multiple":V=N;default:s.hasOwnProperty(d)||Rt(e,t,d,null,s,N)}for(c in s)if(d=s[c],N=n[c],s.hasOwnProperty(c)&&(d!=null||N!=null))switch(c){case"value":X=d;break;case"defaultValue":S=d;break;case"multiple":v=d;default:d!==N&&Rt(e,t,c,d,s,N)}t=S,n=v,s=V,X!=null?vl(e,!!n,X,!1):!!s!=!!n&&(t!=null?vl(e,!!n,t,!0):vl(e,!!n,n?[]:"",!1));return;case"textarea":V=X=null;for(S in n)if(c=n[S],n.hasOwnProperty(S)&&c!=null&&!s.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Rt(e,t,S,null,s,c)}for(v in s)if(c=s[v],d=n[v],s.hasOwnProperty(v)&&(c!=null||d!=null))switch(v){case"value":X=c;break;case"defaultValue":V=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==d&&Rt(e,t,v,c,s,d)}Pc(e,X,V);return;case"option":for(var He in n)if(X=n[He],n.hasOwnProperty(He)&&X!=null&&!s.hasOwnProperty(He))switch(He){case"selected":e.selected=!1;break;default:Rt(e,t,He,null,s,X)}for(N in s)if(X=s[N],V=n[N],s.hasOwnProperty(N)&&X!==V&&(X!=null||V!=null))switch(N){case"selected":e.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:Rt(e,t,N,X,s,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)X=n[ke],n.hasOwnProperty(ke)&&X!=null&&!s.hasOwnProperty(ke)&&Rt(e,t,ke,null,s,X);for(Y in s)if(X=s[Y],V=n[Y],s.hasOwnProperty(Y)&&X!==V&&(X!=null||V!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(o(137,t));break;default:Rt(e,t,Y,X,s,V)}return;default:if(Fc(t)){for(var Nt in n)X=n[Nt],n.hasOwnProperty(Nt)&&X!==void 0&&!s.hasOwnProperty(Nt)&&yd(e,t,Nt,void 0,s,X);for(ne in s)X=s[ne],V=n[ne],!s.hasOwnProperty(ne)||X===V||X===void 0&&V===void 0||yd(e,t,ne,X,s,V);return}}for(var U in n)X=n[U],n.hasOwnProperty(U)&&X!=null&&!s.hasOwnProperty(U)&&Rt(e,t,U,null,s,X);for(ue in s)X=s[ue],V=n[ue],!s.hasOwnProperty(ue)||X===V||X==null&&V==null||Rt(e,t,ue,X,s,V)}var qa=null,uc=null;function Fi(e){return e.nodeType===9?e:e.ownerDocument}function Vt(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 Xt(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 _d=null;function Xp(){var e=window.event;return e&&e.type==="popstate"?e===_d?!1:(_d=e,!0):(_d=null,!1)}var Fm=typeof setTimeout=="function"?setTimeout:void 0,Pp=typeof clearTimeout=="function"?clearTimeout:void 0,$m=typeof Promise=="function"?Promise:void 0,Jp=typeof queueMicrotask=="function"?queueMicrotask:typeof $m<"u"?function(e){return $m.resolve(null).then(e).catch(eg)}:Fm;function eg(e){setTimeout(function(){throw e})}function Ra(e){return e==="head"}function cc(e,t){var n=t,s=0,c=0;do{var d=n.nextSibling;if(e.removeChild(n),d&&d.nodeType===8)if(n=d.data,n==="/$"){if(0<s&&8>s){n=s;var v=e.ownerDocument;if(n&1&&xu(v.documentElement),n&2&&xu(v.body),n&4)for(n=v.head,xu(n),v=n.firstChild;v;){var S=v.nextSibling,N=v.nodeName;v[bs]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&v.rel.toLowerCase()==="stylesheet"||n.removeChild(v),v=S}}if(c===0){e.removeChild(d),Ru(t);return}c--}else n==="$"||n==="$?"||n==="$!"?c++:s=n.charCodeAt(0)-48;else s=0;n=d}while(n);Ru(t)}function xd(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":xd(n),Gc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function tg(e,t,n,s){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[bs])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=Va(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=Va(e.nextSibling),e===null))return null;return e}function In(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function ts(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Va(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 Sd=null;function ng(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 ag(e,t,n){switch(t=Fi(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 xu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gc(e)}var ga=new Map,ur=new Set;function Xe(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var or=Z.d;Z.d={f:Na,r:rg,D:Wp,C:ig,L:dc,m:Fp,X:ev,S:$p,M:tv};function Na(){var e=or.f(),t=$o();return e||t}function rg(e){var t=dl(e);t!==null&&t.tag===5&&t.type==="form"?Uo(t):or.r(e)}var ns=typeof document>"u"?null:document;function pt(e,t,n){var s=ns;if(s&&typeof t=="string"&&t){var c=va(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),ur.has(c)||(ur.add(c),e={rel:e,crossOrigin:n,href:t},s.querySelector(c)===null&&(t=s.createElement("link"),dn(t,"link",e),vn(t),s.head.appendChild(t)))}}function Wp(e){or.D(e),pt("dns-prefetch",e,null)}function ig(e,t){or.C(e,t),pt("preconnect",e,t)}function dc(e,t,n){or.L(e,t,n);var s=ns;if(s&&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=as(e);break;case"script":d=rs(e)}ga.has(d)||(e=M({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(d,e),s.querySelector(c)!==null||t==="style"&&s.querySelector(Su(d))||t==="script"&&s.querySelector(Eu(d))||(t=s.createElement("link"),dn(t,"link",e),vn(t),s.head.appendChild(t)))}}function Fp(e,t){or.m(e,t);var n=ns;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+va(s)+'"][href="'+va(e)+'"]',d=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=rs(e)}if(!ga.has(d)&&(e=M({rel:"modulepreload",href:e},t),ga.set(d,e),n.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Eu(d)))return}s=n.createElement("link"),dn(s,"link",e),vn(s),n.head.appendChild(s)}}}function $p(e,t,n){or.S(e,t,n);var s=ns;if(s&&e){var c=ml(s).hoistableStyles,d=as(e);t=t||"default";var v=c.get(d);if(!v){var S={loading:0,preload:null};if(v=s.querySelector(Su(d)))S.loading=5;else{e=M({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(d))&&wu(e,n);var N=v=s.createElement("link");vn(N),dn(N,"link",e),N._p=new Promise(function(Y,ne){N.onload=Y,N.onerror=ne}),N.addEventListener("load",function(){S.loading|=1}),N.addEventListener("error",function(){S.loading|=2}),S.loading|=4,hc(v,t,s)}v={type:"stylesheet",instance:v,count:1,state:S},c.set(d,v)}}}function ev(e,t){or.X(e,t);var n=ns;if(n&&e){var s=ml(n).hoistableScripts,c=rs(e),d=s.get(c);d||(d=n.querySelector(Eu(c)),d||(e=M({src:e,async:!0},t),(t=ga.get(c))&&Ed(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},s.set(c,d))}}function tv(e,t){or.M(e,t);var n=ns;if(n&&e){var s=ml(n).hoistableScripts,c=rs(e),d=s.get(c);d||(d=n.querySelector(Eu(c)),d||(e=M({src:e,async:!0,type:"module"},t),(t=ga.get(c))&&Ed(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},s.set(c,d))}}function lg(e,t,n,s){var c=(c=pe.current)?Xe(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=as(n.href),n=ml(c).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=as(n.href);var d=ml(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(Su(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||nv(c,e,n,v.state))),t&&s===null)throw Error(o(528,""));return v}if(t&&s!==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=rs(n),n=ml(c).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function as(e){return'href="'+va(e)+'"'}function Su(e){return'link[rel="stylesheet"]['+e+"]"}function sg(e){return M({},e,{"data-precedence":e.precedence,precedence:null})}function nv(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),dn(t,"link",n),vn(t),e.head.appendChild(t))}function rs(e){return'[src="'+va(e)+'"]'}function Eu(e){return"script[async]"+e}function ug(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+va(n.href)+'"]');if(s)return t.instance=s,vn(s),s;var c=M({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),vn(s),dn(s,"style",c),hc(s,n.precedence,e),t.instance=s;case"stylesheet":c=as(n.href);var d=e.querySelector(Su(c));if(d)return t.state.loading|=4,t.instance=d,vn(d),d;s=sg(n),(c=ga.get(c))&&wu(s,c),d=(e.ownerDocument||e).createElement("link"),vn(d);var v=d;return v._p=new Promise(function(S,N){v.onload=S,v.onerror=N}),dn(d,"link",s),t.state.loading|=4,hc(d,n.precedence,e),t.instance=d;case"script":return d=rs(n.src),(c=e.querySelector(Eu(d)))?(t.instance=c,vn(c),c):(s=n,(c=ga.get(d))&&(s=M({},n),Ed(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),vn(c),dn(c,"link",s),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&&(s=t.instance,t.state.loading|=4,hc(s,n.precedence,e));return t.instance}function hc(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,d=c,v=0;v<s.length;v++){var S=s[v];if(S.dataset.precedence===t)d=S;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 wu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ed(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var is=null;function og(e,t,n){if(is===null){var s=new Map,c=is=new Map;c.set(n,s)}else c=is,s=c.get(n),s||(s=new Map,c.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var d=n[c];if(!(d[bs]||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 S=s.get(v);S?S.push(d):s.set(v,[d])}}return s}function cg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function av(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 yn=null;function rv(){}function iv(e,t,n){if(yn===null)throw Error(o(475));var s=yn;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=as(n.href),d=e.querySelector(Su(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=Mu.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=d,vn(d);return}d=e.ownerDocument||e,n=sg(n),(c=ga.get(c))&&wu(n,c),d=d.createElement("link"),vn(d);var v=d;v._p=new Promise(function(S,N){v.onload=S,v.onerror=N}),dn(d,"link",n),t.instance=d}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(s.count++,t=Mu.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function lv(){if(yn===null)throw Error(o(475));var e=yn;return e.stylesheets&&e.count===0&&wd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&wd(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Mu(){if(this.count--,this.count===0){if(this.stylesheets)wd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var mc=null;function wd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,mc=new Map,t.forEach(sv,e),mc=null,Mu.call(e))}function sv(e,t){if(!(t.state.loading&4)){var n=mc.get(e);if(n)var s=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),s=v)}s&&n.set(null,s)}c=t.instance,v=c.getAttribute("data-precedence"),d=n.get(v)||s,d===s&&n.set(null,c),n.set(v,c),this.count++,s=Mu.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var ls={$$typeof:me,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function uv(e,t,n,s,c,d,v,S){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=qu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qu(0),this.hiddenUpdates=qu(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function fg(e,t,n,s,c,d,v,S,N,Y,ne,ue){return e=new uv(e,t,n,v,S,N,Y,ue),t=1,d===!0&&(t|=24),d=Qn(3,null,null,t),e.current=d,d.stateNode=e,t=bf(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:s,isDehydrated:n,cache:t},Hi(d),e}function dg(e){return e?(e=Di,e):Di}function Md(e,t,n,s,c,d){c=dg(c),s.context===null?s.context=c:s.pendingContext=c,s=ei(t),s.payload={element:n},d=d===void 0?null:d,d!==null&&(s.callback=d),n=_r(e,s,t),n!==null&&(ma(n,e,t),Hs(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 Cd(e,t){Od(e,t),(e=e.alternate)&&Od(e,t)}function hg(e){if(e.tag===13){var t=Ni(e,67108864);t!==null&&ma(t,e,67108864),Cd(e,67108864)}}var gc=!0;function ov(e,t,n,s){var c=D.T;D.T=null;var d=Z.p;try{Z.p=2,Td(e,t,n,s)}finally{Z.p=d,D.T=c}}function ss(e,t,n,s){var c=D.T;D.T=null;var d=Z.p;try{Z.p=8,Td(e,t,n,s)}finally{Z.p=d,D.T=c}}function Td(e,t,n,s){if(gc){var c=Rd(s);if(c===null)Dr(e,t,s,pc,n),gg(e,s);else if(fv(c,e,t,n,s))s.stopPropagation();else if(gg(e,s),t&4&&-1<cv.indexOf(e)){for(;c!==null;){var d=dl(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=za(d.pendingLanes);if(v!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var N=1<<31-Sn(v);S.entanglements[1]|=N,v&=~N}sr(d),(wt&6)===0&&(Pl=bt()+500,Au(0))}}break;case 13:S=Ni(d,2),S!==null&&ma(S,d,2),$o(),Cd(d,2)}if(d=Rd(s),d===null&&Dr(e,t,s,pc,n),d===c)break;c=d}c!==null&&s.stopPropagation()}else Dr(e,t,s,null,n)}}function Rd(e){return e=$c(e),Nd(e)}var pc=null;function Nd(e){if(pc=null,e=fl(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 mg(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(sn()){case Kt:return 2;case ra:return 8;case Ct:case On:return 32;case Ba:return 268435456;default:return 32}default:return 32}}var vc=!1,Br=null,pi=null,vi=null,Ou=new Map,Cu=new Map,Ai=[],cv="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 gg(e,t){switch(e){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":pi=null;break;case"mouseover":case"mouseout":vi=null;break;case"pointerover":case"pointerout":Ou.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cu.delete(t.pointerId)}}function Tu(e,t,n,s,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:d,targetContainers:[c]},t!==null&&(t=dl(t),t!==null&&hg(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function fv(e,t,n,s,c){switch(t){case"focusin":return Br=Tu(Br,e,t,n,s,c),!0;case"dragenter":return pi=Tu(pi,e,t,n,s,c),!0;case"mouseover":return vi=Tu(vi,e,t,n,s,c),!0;case"pointerover":var d=c.pointerId;return Ou.set(d,Tu(Ou.get(d)||null,e,t,n,s,c)),!0;case"gotpointercapture":return d=c.pointerId,Cu.set(d,Tu(Cu.get(d)||null,e,t,n,s,c)),!0}return!1}function pg(e){var t=fl(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,op(e.priority,function(){if(n.tag===13){var s=Dn();s=jc(s);var c=Ni(n,s);c!==null&&ma(c,n,s),Cd(n,s)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ac(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Rd(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Fu=s,n.target.dispatchEvent(s),Fu=null}else return t=dl(n),t!==null&&hg(t),e.blockedOn=n,!1;t.shift()}return!0}function vg(e,t,n){Ac(e)&&n.delete(t)}function dv(){vc=!1,Br!==null&&Ac(Br)&&(Br=null),pi!==null&&Ac(pi)&&(pi=null),vi!==null&&Ac(vi)&&(vi=null),Ou.forEach(vg),Cu.forEach(vg)}function bc(e,t){e.blockedOn===t&&(e.blockedOn=null,vc||(vc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,dv)))}var yc=null;function Ag(e){yc!==e&&(yc=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){yc===e&&(yc=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],c=e[t+2];if(typeof s!="function"){if(Nd(s||n)===null)continue;break}var d=dl(n);d!==null&&(e.splice(t,3),t-=3,Js(d,{pending:!0,data:c,method:n.method,action:s},s,c))}}))}function Ru(e){function t(N){return bc(N,e)}Br!==null&&bc(Br,e),pi!==null&&bc(pi,e),vi!==null&&bc(vi,e),Ou.forEach(t),Cu.forEach(t);for(var n=0;n<Ai.length;n++){var s=Ai[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Ai.length&&(n=Ai[0],n.blockedOn===null);)pg(n),n.blockedOn===null&&Ai.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var c=n[s],d=n[s+1],v=c[Yn]||null;if(typeof d=="function")v||Ag(n);else if(v){var S=null;if(d&&d.hasAttribute("formAction")){if(c=d,v=d[Yn]||null)S=v.formAction;else if(Nd(c)!==null)continue}else S=v.action;typeof S=="function"?n[s+1]=S:(n.splice(s,3),s-=3),Ag(n)}}}function Dd(e){this._internalRoot=e}_c.prototype.render=Dd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,s=Dn();Md(n,s,e,t,null,null)},_c.prototype.unmount=Dd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Md(e.current,2,null,e,null,null),$o(),t[qr]=null}};function _c(e){this._internalRoot=e}_c.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ai.length&&t!==0&&t<Ai[n].priority;n++);Ai.splice(n,0,e),n===0&&pg(e)}};var bg=i.version;if(bg!=="19.1.1")throw Error(o(527,bg,"19.1.1"));Z.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=_(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var hv={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xc.isDisabled&&xc.supportsFiber)try{mr=xc.inject(hv),nn=xc}catch{}}return Ld.createRoot=function(e,t){if(!h(e))throw Error(o(299));var n=!1,s="",c=Qf,d=Ho,v=rm,S=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=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&&(S=t.unstable_transitionCallbacks)),t=fg(e,1,!1,null,null,n,s,c,d,v,S,null),e[qr]=t.current,bd(e),new Dd(t)},Ld.hydrateRoot=function(e,t,n){if(!h(e))throw Error(o(299));var s=!1,c="",d=Qf,v=Ho,S=rm,N=null,Y=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!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&&(S=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(N=n.unstable_transitionCallbacks),n.formState!==void 0&&(Y=n.formState)),t=fg(e,1,!0,t,n??null,s,c,d,v,S,N,Y),t.context=dg(null),n=t.current,s=Dn(),s=jc(s),c=ei(s),c.callback=null,_r(n,c,s),n=s,t.current.lanes=n,cl(t,n),sr(t),e[qr]=t.current,bd(e),new _c(t)},Ld.version="19.1.1",Ld}var X0;function ty(){if(X0)return Av.exports;X0=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(),Av.exports=ey(),Av.exports}var ny=ty(),Ud={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 ay=Ud.exports,P0;function ry(){return P0||(P0=1,(function(r,i){(function(){var u,o="4.17.21",h=200,m="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",b="Invalid `variable` option passed into `_.template`",_="__lodash_hash_undefined__",y=500,M="__lodash_placeholder__",C=1,H=2,q=4,k=1,Q=2,G=1,ie=2,ce=4,me=8,Ae=16,te=32,de=64,ge=128,F=256,_e=512,ze=30,Ee="...",Le=800,Ke=16,ye=1,ae=2,D=3,Z=1/0,J=9007199254740991,ve=17976931348623157e292,w=NaN,K=4294967295,fe=K-1,se=K>>>1,be=[["ary",ge],["bind",G],["bindKey",ie],["curry",me],["curryRight",Ae],["flip",_e],["partial",te],["partialRight",de],["rearg",F]],xe="[object Arguments]",pe="[object Array]",ot="[object AsyncFunction]",je="[object Boolean]",Ye="[object Date]",rt="[object DOMException]",xt="[object Error]",Ot="[object Function]",Wt="[object GeneratorFunction]",At="[object Map]",xn="[object Number]",Mi="[object Null]",bt="[object Object]",sn="[object Promise]",Kt="[object Proxy]",ra="[object RegExp]",Ct="[object Set]",On="[object String]",Ba="[object Symbol]",La="[object Undefined]",Dt="[object WeakMap]",mr="[object WeakSet]",nn="[object ArrayBuffer]",gn="[object DataView]",Sn="[object Float32Array]",ps="[object Float64Array]",vs="[object Int8Array]",As="[object Int16Array]",Ja="[object Int32Array]",Zt="[object Uint8Array]",za="[object Uint8ClampedArray]",Ir="[object Uint16Array]",gr="[object Uint32Array]",kc=/\b__p \+= '';/g,Cn=/\b(__p \+=) '' \+/g,Yu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qu=/&(?:amp|lt|gt|quot|#39);/g,cl=/[&<>"']/g,up=RegExp(qu.source),Jd=RegExp(cl.source),Wd=/<%-([\s\S]+?)%>/g,jc=/<%([\s\S]+?)%>/g,Vu=/<%=([\s\S]+?)%>/g,Fd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,op=/^\w*$/,Yr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pn=/[\\^$.*+?()[\]{}|]/g,Yn=RegExp(pn.source),qr=/^\s+/,Hc=/\s/,cp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fp=/\{\n\/\* \[wrapped with (.+)\] \*/,$d=/,? & /,bs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gc=/[()=,{}\[\]\/\s]/,fl=/\\(\\)?/g,dl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hl=/\w*$/,ml=/^[-+]0x[0-9a-f]+$/i,vn=/^0b[01]+$/i,eh=/^\[object .+?Constructor\]$/,th=/^0o[0-7]+$/i,Oi=/^(?:0|[1-9]\d*)$/,gl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qu=/($^)/,nh=/['\n\r\u2028\u2029\\]/g,ys="\\ud800-\\udfff",dp="\\u0300-\\u036f",Ku="\\ufe20-\\ufe2f",Zu="\\u20d0-\\u20ff",Wa=dp+Ku+Zu,Xu="\\u2700-\\u27bf",Ic="a-z\\xdf-\\xf6\\xf8-\\xff",pl="\\xac\\xb1\\xd7\\xf7",Yc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qc="\\u2000-\\u206f",hp=" \\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",Vc="A-Z\\xc0-\\xd6\\xd8-\\xde",ia="\\ufe0e\\ufe0f",Qc=pl+Yc+qc+hp,Kc="['’]",Pu="["+ys+"]",Zc="["+Qc+"]",Ci="["+Wa+"]",ah="\\d+",va="["+Xu+"]",Ju="["+Ic+"]",Xc="[^"+ys+Qc+ah+Xu+Ic+Vc+"]",_s="\\ud83c[\\udffb-\\udfff]",vl="(?:"+Ci+"|"+_s+")",Pc="[^"+ys+"]",Wu="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Al="["+Vc+"]",Jc="\\u200d",Wc="(?:"+Ju+"|"+Xc+")",Fc="(?:"+Al+"|"+Xc+")",rh="(?:"+Kc+"(?:d|ll|m|re|s|t|ve))?",ih="(?:"+Kc+"(?:D|LL|M|RE|S|T|VE))?",xs=vl+"?",Fu="["+ia+"]?",$c="(?:"+Jc+"(?:"+[Pc,Wu,Vr].join("|")+")"+Fu+xs+")*",bl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ef=Fu+xs+$c,tf="(?:"+[va,Wu,Vr].join("|")+")"+ef,lh="(?:"+[Pc+Ci+"?",Ci,Wu,Vr,Pu].join("|")+")",Ss=RegExp(Kc,"g"),pr=RegExp(Ci,"g"),Es=RegExp(_s+"(?="+_s+")|"+lh+ef,"g"),ws=RegExp([Al+"?"+Ju+"+"+rh+"(?="+[Zc,Al,"$"].join("|")+")",Fc+"+"+ih+"(?="+[Zc,Al+Wc,"$"].join("|")+")",Al+"?"+Wc+"+"+rh,Al+"+"+ih,yl,bl,ah,tf].join("|"),"g"),Qr=RegExp("["+Jc+ys+Wa+ia+"]"),nf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$u=["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"],sh=-1,Tt={};Tt[Sn]=Tt[ps]=Tt[vs]=Tt[As]=Tt[Ja]=Tt[Zt]=Tt[za]=Tt[Ir]=Tt[gr]=!0,Tt[xe]=Tt[pe]=Tt[nn]=Tt[je]=Tt[gn]=Tt[Ye]=Tt[xt]=Tt[Ot]=Tt[At]=Tt[xn]=Tt[bt]=Tt[ra]=Tt[Ct]=Tt[On]=Tt[Dt]=!1;var St={};St[xe]=St[pe]=St[nn]=St[gn]=St[je]=St[Ye]=St[Sn]=St[ps]=St[vs]=St[As]=St[Ja]=St[At]=St[xn]=St[bt]=St[ra]=St[Ct]=St[On]=St[Ba]=St[Zt]=St[za]=St[Ir]=St[gr]=!0,St[xt]=St[Ot]=St[Dt]=!1;var uh={À:"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"},qn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ti={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},eo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ms=parseFloat,mp=parseInt,to=typeof yg=="object"&&yg&&yg.Object===Object&&yg,af=typeof self=="object"&&self&&self.Object===Object&&self,an=to||af||Function("return this")(),_l=i&&!i.nodeType&&i,Kr=_l&&!0&&r&&!r.nodeType&&r,oh=Kr&&Kr.exports===_l,rf=oh&&to.process,Aa=(function(){try{var z=Kr&&Kr.require&&Kr.require("util").types;return z||rf&&rf.binding&&rf.binding("util")}catch{}})(),no=Aa&&Aa.isArrayBuffer,ch=Aa&&Aa.isDate,fh=Aa&&Aa.isMap,dh=Aa&&Aa.isRegExp,hh=Aa&&Aa.isSet,mh=Aa&&Aa.isTypedArray;function Vn(z,ee,W){switch(W.length){case 0:return z.call(ee);case 1:return z.call(ee,W[0]);case 2:return z.call(ee,W[0],W[1]);case 3:return z.call(ee,W[0],W[1],W[2])}return z.apply(ee,W)}function gp(z,ee,W,we){for(var Ie=-1,ft=z==null?0:z.length;++Ie<ft;){var rn=z[Ie];ee(we,rn,W(rn),z)}return we}function ba(z,ee){for(var W=-1,we=z==null?0:z.length;++W<we&&ee(z[W],W,z)!==!1;);return z}function pp(z,ee){for(var W=z==null?0:z.length;W--&&ee(z[W],W,z)!==!1;);return z}function gh(z,ee){for(var W=-1,we=z==null?0:z.length;++W<we;)if(!ee(z[W],W,z))return!1;return!0}function Fa(z,ee){for(var W=-1,we=z==null?0:z.length,Ie=0,ft=[];++W<we;){var rn=z[W];ee(rn,W,z)&&(ft[Ie++]=rn)}return ft}function ao(z,ee){var W=z==null?0:z.length;return!!W&&xl(z,ee,0)>-1}function lf(z,ee,W){for(var we=-1,Ie=z==null?0:z.length;++we<Ie;)if(W(ee,z[we]))return!0;return!1}function Gt(z,ee){for(var W=-1,we=z==null?0:z.length,Ie=Array(we);++W<we;)Ie[W]=ee(z[W],W,z);return Ie}function vr(z,ee){for(var W=-1,we=ee.length,Ie=z.length;++W<we;)z[Ie+W]=ee[W];return z}function sf(z,ee,W,we){var Ie=-1,ft=z==null?0:z.length;for(we&&ft&&(W=z[++Ie]);++Ie<ft;)W=ee(W,z[Ie],Ie,z);return W}function vp(z,ee,W,we){var Ie=z==null?0:z.length;for(we&&Ie&&(W=z[--Ie]);Ie--;)W=ee(W,z[Ie],Ie,z);return W}function uf(z,ee){for(var W=-1,we=z==null?0:z.length;++W<we;)if(ee(z[W],W,z))return!0;return!1}var Ap=io("length");function bp(z){return z.split("")}function yp(z){return z.match(bs)||[]}function ph(z,ee,W){var we;return W(z,function(Ie,ft,rn){if(ee(Ie,ft,rn))return we=ft,!1}),we}function ro(z,ee,W,we){for(var Ie=z.length,ft=W+(we?1:-1);we?ft--:++ft<Ie;)if(ee(z[ft],ft,z))return ft;return-1}function xl(z,ee,W){return ee===ee?Ep(z,ee,W):ro(z,Sl,W)}function of(z,ee,W,we){for(var Ie=W-1,ft=z.length;++Ie<ft;)if(we(z[Ie],ee))return Ie;return-1}function Sl(z){return z!==z}function vh(z,ee){var W=z==null?0:z.length;return W?so(z,ee)/W:w}function io(z){return function(ee){return ee==null?u:ee[z]}}function lo(z){return function(ee){return z==null?u:z[ee]}}function cf(z,ee,W,we,Ie){return Ie(z,function(ft,rn,dt){W=we?(we=!1,ft):ee(W,ft,rn,dt)}),W}function Ah(z,ee){var W=z.length;for(z.sort(ee);W--;)z[W]=z[W].value;return z}function so(z,ee){for(var W,we=-1,Ie=z.length;++we<Ie;){var ft=ee(z[we]);ft!==u&&(W=W===u?ft:W+ft)}return W}function Zr(z,ee){for(var W=-1,we=Array(z);++W<z;)we[W]=ee(W);return we}function _p(z,ee){return Gt(ee,function(W){return[W,z[W]]})}function bh(z){return z&&z.slice(0,df(z)+1).replace(qr,"")}function la(z){return function(ee){return z(ee)}}function uo(z,ee){return Gt(ee,function(W){return z[W]})}function El(z,ee){return z.has(ee)}function wl(z,ee){for(var W=-1,we=z.length;++W<we&&xl(ee,z[W],0)>-1;);return W}function Ml(z,ee){for(var W=z.length;W--&&xl(ee,z[W],0)>-1;);return W}function xp(z,ee){for(var W=z.length,we=0;W--;)z[W]===ee&&++we;return we}var oo=lo(uh),yh=lo(qn);function _h(z){return"\\"+eo[z]}function ff(z,ee){return z==null?u:z[ee]}function Xr(z){return Qr.test(z)}function xh(z){return nf.test(z)}function Sh(z){for(var ee,W=[];!(ee=z.next()).done;)W.push(ee.value);return W}function co(z){var ee=-1,W=Array(z.size);return z.forEach(function(we,Ie){W[++ee]=[Ie,we]}),W}function Eh(z,ee){return function(W){return z(ee(W))}}function Pr(z,ee){for(var W=-1,we=z.length,Ie=0,ft=[];++W<we;){var rn=z[W];(rn===ee||rn===M)&&(z[W]=M,ft[Ie++]=W)}return ft}function fo(z){var ee=-1,W=Array(z.size);return z.forEach(function(we){W[++ee]=we}),W}function Sp(z){var ee=-1,W=Array(z.size);return z.forEach(function(we){W[++ee]=[we,we]}),W}function Ep(z,ee,W){for(var we=W-1,Ie=z.length;++we<Ie;)if(z[we]===ee)return we;return-1}function sa(z,ee,W){for(var we=W+1;we--;)if(z[we]===ee)return we;return we}function $a(z){return Xr(z)?Mh(z):Ap(z)}function ya(z){return Xr(z)?hf(z):bp(z)}function df(z){for(var ee=z.length;ee--&&Hc.test(z.charAt(ee)););return ee}var wh=lo(Ti);function Mh(z){for(var ee=Es.lastIndex=0;Es.test(z);)++ee;return ee}function hf(z){return z.match(Es)||[]}function wp(z){return z.match(ws)||[]}var Ol=(function z(ee){ee=ee==null?an:Jr.defaults(an.Object(),ee,Jr.pick(an,$u));var W=ee.Array,we=ee.Date,Ie=ee.Error,ft=ee.Function,rn=ee.Math,dt=ee.Object,ho=ee.RegExp,Oh=ee.String,ua=ee.TypeError,mo=W.prototype,Mp=ft.prototype,Cl=dt.prototype,Os=ee["__core-js_shared__"],Cs=Mp.toString,gt=Cl.hasOwnProperty,Ua=0,mf=(function(){var a=/[^.]+$/.exec(Os&&Os.keys&&Os.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})(),Un=Cl.toString,_a=Cs.call(dt),Tl=an._,gf=ho("^"+Cs.call(gt).replace(pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ri=oh?ee.Buffer:u,ka=ee.Symbol,Rl=ee.Uint8Array,Ni=Ri?Ri.allocUnsafe:u,Ts=Eh(dt.getPrototypeOf,dt),Rs=dt.create,Di=Cl.propertyIsEnumerable,go=mo.splice,Qn=ka?ka.isConcatSpreadable:u,Bi=ka?ka.iterator:u,kn=ka?ka.toStringTag:u,Ns=(function(){try{var a=ii(dt,"defineProperty");return a({},"",{}),a}catch{}})(),po=ee.clearTimeout!==an.clearTimeout&&ee.clearTimeout,Li=we&&we.now!==an.Date.now&&we.now,pf=ee.setTimeout!==an.setTimeout&&ee.setTimeout,Nl=rn.ceil,Ar=rn.floor,Wr=dt.getOwnPropertySymbols,vo=Ri?Ri.isBuffer:u,Ds=ee.isFinite,xa=mo.join,Sa=Eh(dt.keys,dt),jt=rn.max,It=rn.min,br=we.now,zi=ee.parseInt,vf=rn.random,Af=mo.reverse,Bs=ii(ee,"DataView"),un=ii(ee,"Map"),Yt=ii(ee,"Promise"),it=ii(ee,"Set"),ja=ii(ee,"WeakMap"),Kn=ii(dt,"create"),Dl=ja&&new ja,Ea={},Ch=Cr(Bs),Th=Cr(un),Ls=Cr(Yt),zs=Cr(it),Rh=Cr(ja),Fr=ka?ka.prototype:u,Ui=Fr?Fr.valueOf:u,$r=Fr?Fr.toString:u;function x(a){if(Xt(a)&&!Qe(a)&&!(a instanceof Fe)){if(a instanceof Zn)return a;if(gt.call(a,"__wrapped__"))return cn(a)}return new Zn(a)}var oa=(function(){function a(){}return function(l){if(!Vt(l))return{};if(Rs)return Rs(l);a.prototype=l;var f=new a;return a.prototype=u,f}})();function wa(){}function Zn(a,l){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=u}x.templateSettings={escape:Wd,evaluate:jc,interpolate:Vu,variable:"",imports:{_:x}},x.prototype=wa.prototype,x.prototype.constructor=x,Zn.prototype=oa(wa.prototype),Zn.prototype.constructor=Zn;function Fe(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function Us(){var a=new Fe(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 Ao(){if(this.__filtered__){var a=new Fe(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function ki(){var a=this.__wrapped__.value(),l=this.__dir__,f=Qe(a),g=l<0,A=f?a.length:0,E=om(0,A,this.__views__),R=E.start,B=E.end,j=B-R,le=g?B:R-1,oe=this.__iteratees__,he=oe.length,Me=0,Ne=It(j,this.__takeCount__);if(!f||!g&&A==j&&Ne==j)return Ph(a,this.__actions__);var qe=[];e:for(;j--&&Me<Ne;){le+=l;for(var et=-1,Ve=a[le];++et<he;){var ut=oe[et],mt=ut.iteratee,Qa=ut.type,pa=mt(Ve);if(Qa==ae)Ve=pa;else if(!pa){if(Qa==ye)continue e;break e}}qe[Me++]=Ve}return qe}Fe.prototype=oa(wa.prototype),Fe.prototype.constructor=Fe;function Ft(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 bo(){this.__data__=Kn?Kn(null):{},this.size=0}function Nh(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}function Op(a){var l=this.__data__;if(Kn){var f=l[a];return f===_?u:f}return gt.call(l,a)?l[a]:u}function Cp(a){var l=this.__data__;return Kn?l[a]!==u:gt.call(l,a)}function Tp(a,l){var f=this.__data__;return this.size+=this.has(a)?0:1,f[a]=Kn&&l===u?_:l,this}Ft.prototype.clear=bo,Ft.prototype.delete=Nh,Ft.prototype.get=Op,Ft.prototype.has=Cp,Ft.prototype.set=Tp;function Bt(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 bf(){this.__data__=[],this.size=0}function ks(a){var l=this.__data__,f=zl(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 js(a){var l=this.__data__,f=zl(l,a);return f<0?u:l[f][1]}function yf(a){return zl(this.__data__,a)>-1}function Bl(a,l){var f=this.__data__,g=zl(f,a);return g<0?(++this.size,f.push([a,l])):f[g][1]=l,this}Bt.prototype.clear=bf,Bt.prototype.delete=ks,Bt.prototype.get=js,Bt.prototype.has=yf,Bt.prototype.set=Bl;function Xn(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 Rp(){this.size=0,this.__data__={hash:new Ft,map:new(un||Bt),string:new Ft}}function Dh(a){var l=Il(this,a).delete(a);return this.size-=l?1:0,l}function Np(a){return Il(this,a).get(a)}function Bh(a){return Il(this,a).has(a)}function ji(a,l){var f=Il(this,a),g=f.size;return f.set(a,l),this.size+=f.size==g?0:1,this}Xn.prototype.clear=Rp,Xn.prototype.delete=Dh,Xn.prototype.get=Np,Xn.prototype.has=Bh,Xn.prototype.set=ji;function yr(a){var l=-1,f=a==null?0:a.length;for(this.__data__=new Xn;++l<f;)this.add(a[l])}function yo(a){return this.__data__.set(a,_),this}function Lh(a){return this.__data__.has(a)}yr.prototype.add=yr.prototype.push=yo,yr.prototype.has=Lh;function jn(a){var l=this.__data__=new Bt(a);this.size=l.size}function zh(){this.__data__=new Bt,this.size=0}function _o(a){var l=this.__data__,f=l.delete(a);return this.size=l.size,f}function _f(a){return this.__data__.get(a)}function Uh(a){return this.__data__.has(a)}function xo(a,l){var f=this.__data__;if(f instanceof Bt){var g=f.__data__;if(!un||g.length<h-1)return g.push([a,l]),this.size=++f.size,this;f=this.__data__=new Xn(g)}return f.set(a,l),this.size=f.size,this}jn.prototype.clear=zh,jn.prototype.delete=_o,jn.prototype.get=_f,jn.prototype.has=Uh,jn.prototype.set=xo;function xf(a,l){var f=Qe(a),g=!f&&Dr(a),A=!f&&!g&&gi(a),E=!f&&!g&&!A&&ts(a),R=f||g||A||E,B=R?Zr(a.length,Oh):[],j=B.length;for(var le in a)(l||gt.call(a,le))&&!(R&&(le=="length"||A&&(le=="offset"||le=="parent")||E&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||Ya(le,j)))&&B.push(le);return B}function Ll(a){var l=a.length;return l?a[Do(0,l-1)]:u}function kh(a,l){return fu(on(a),Ga(l,0,a.length))}function jh(a){return fu(on(a))}function er(a,l,f){(f!==u&&!ta(a[l],f)||f===u&&!(l in a))&&Ha(a,l,f)}function Hi(a,l,f){var g=a[l];(!(gt.call(a,l)&&ta(g,f))||f===u&&!(l in a))&&Ha(a,l,f)}function zl(a,l){for(var f=a.length;f--;)if(ta(a[f][0],l))return f;return-1}function ei(a,l,f,g){return xr(a,function(A,E,R){l(g,A,f(A),R)}),g}function _r(a,l){return a&&Wn(l,hn(l),a)}function Hs(a,l){return a&&Wn(l,yn(l),a)}function Ha(a,l,f){l=="__proto__"&&Ns?Ns(a,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):a[l]=f}function Gs(a,l){for(var f=-1,g=l.length,A=W(g),E=a==null;++f<g;)A[f]=E?u:wu(a,l[f]);return A}function Ga(a,l,f){return a===a&&(f!==u&&(a=a<=f?a:f),l!==u&&(a=a>=l?a:l)),a}function Tn(a,l,f,g,A,E){var R,B=l&C,j=l&H,le=l&q;if(f&&(R=A?f(a,g,A,E):f(a)),R!==u)return R;if(!Vt(a))return a;var oe=Qe(a);if(oe){if(R=Xf(a),!B)return on(a,R)}else{var he=bn(a),Me=he==Ot||he==Wt;if(gi(a))return Gf(a,B);if(he==bt||he==xe||Me&&!A){if(R=j||Me?{}:Pf(a),!B)return j?$s(a,Hs(R,a)):jo(a,_r(R,a))}else{if(!St[he])return A?a:{};R=Jf(a,he,B)}}E||(E=new jn);var Ne=E.get(a);if(Ne)return Ne;E.set(a,R),tg(a)?a.forEach(function(Ve){R.add(Tn(Ve,l,f,Ve,a,E))}):oc(a)&&a.forEach(function(Ve,ut){R.set(ut,Tn(Ve,l,f,ut,a,E))});var qe=le?j?Yo:Io:j?yn:hn,et=oe?u:qe(a);return ba(et||a,function(Ve,ut){et&&(ut=Ve,Ve=a[ut]),Hi(R,ut,Tn(Ve,l,f,ut,a,E))}),R}function Hh(a){var l=hn(a);return function(f){return Sf(f,a,l)}}function Sf(a,l,f){var g=f.length;if(a==null)return!g;for(a=dt(a);g--;){var A=f[g],E=l[A],R=a[A];if(R===u&&!(A in a)||!E(R))return!1}return!0}function Gi(a,l,f){if(typeof a!="function")throw new ua(p);return ql(function(){a.apply(u,f)},l)}function ti(a,l,f,g){var A=-1,E=ao,R=!0,B=a.length,j=[],le=l.length;if(!B)return j;f&&(l=Gt(l,la(f))),g?(E=lf,R=!1):l.length>=h&&(E=El,R=!1,l=new yr(l));e:for(;++A<B;){var oe=a[A],he=f==null?oe:f(oe);if(oe=g||oe!==0?oe:0,R&&he===he){for(var Me=le;Me--;)if(l[Me]===he)continue e;j.push(oe)}else E(l,he,g)||j.push(oe)}return j}var xr=Vf(Rn),So=Vf(kl,!0);function Ef(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],R=l(E);if(R!=null&&(B===u?R===R&&!In(R):f(R,B)))var B=R,j=E}return j}function Je(a,l,f,g){var A=a.length;for(f=Xe(f),f<0&&(f=-f>A?0:A+f),g=g===u||g>A?A:Xe(g),g<0&&(g+=A),g=f>g?0:or(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,R=a.length;for(f||(f=Mr),A||(A=[]);++E<R;){var B=a[E];l>0&&f(B)?l>1?lt(B,l-1,f,g,A):vr(A,B):g||(A[A.length]=B)}return A}var Ul=Zi(),Ii=Zi(!0);function Rn(a,l){return a&&Ul(a,l,hn)}function kl(a,l){return a&&Ii(a,l,hn)}function ni(a,l){return Fa(l,function(f){return qa(a[f])})}function Ma(a,l){l=Er(l,a);for(var f=0,g=l.length;a!=null&&f<g;)a=a[yt(l[f++])];return f&&f==g?a:u}function Gh(a,l,f){var g=l(a);return Qe(a)?g:vr(g,f(a))}function st(a){return a==null?a===u?La:Mi:kn&&kn in dt(a)?um(a):mm(a)}function Is(a,l){return a>l}function wf(a,l){return a!=null&&gt.call(a,l)}function Ih(a,l){return a!=null&&l in dt(a)}function Yh(a,l,f){return a>=It(l,f)&&a<jt(l,f)}function Mf(a,l,f){for(var g=f?lf:ao,A=a[0].length,E=a.length,R=E,B=W(E),j=1/0,le=[];R--;){var oe=a[R];R&&l&&(oe=Gt(oe,la(l))),j=It(oe.length,j),B[R]=!f&&(l||A>=120&&oe.length>=120)?new yr(R&&oe):u}oe=a[0];var he=-1,Me=B[0];e:for(;++he<A&&le.length<j;){var Ne=oe[he],qe=l?l(Ne):Ne;if(Ne=f||Ne!==0?Ne:0,!(Me?El(Me,qe):g(le,qe,f))){for(R=E;--R;){var et=B[R];if(!(et?El(et,qe):g(a[R],qe,f)))continue e}Me&&Me.push(qe),le.push(Ne)}}return le}function Of(a,l,f,g){return Rn(a,function(A,E,R){l(g,f(A),E,R)}),g}function Yi(a,l,f){l=Er(l,a),a=Yl(a,l);var g=a==null?a:a[yt(Nn(l))];return g==null?u:Vn(g,a,f)}function Eo(a){return Xt(a)&&st(a)==xe}function Pn(a){return Xt(a)&&st(a)==nn}function ln(a){return Xt(a)&&st(a)==Ye}function qi(a,l,f,g,A){return a===l?!0:a==null||l==null||!Xt(a)&&!Xt(l)?a!==a&&l!==l:Ys(a,l,f,g,qi,A)}function Ys(a,l,f,g,A,E){var R=Qe(a),B=Qe(l),j=R?pe:bn(a),le=B?pe:bn(l);j=j==xe?bt:j,le=le==xe?bt:le;var oe=j==bt,he=le==bt,Me=j==le;if(Me&&gi(a)){if(!gi(l))return!1;R=!0,oe=!1}if(Me&&!oe)return E||(E=new jn),R||ts(a)?lm(a,l,f,g,A,E):sm(a,l,j,f,g,A,E);if(!(f&k)){var Ne=oe&&gt.call(a,"__wrapped__"),qe=he&&gt.call(l,"__wrapped__");if(Ne||qe){var et=Ne?a.value():a,Ve=qe?l.value():l;return E||(E=new jn),A(et,Ve,f,g,E)}}return Me?(E||(E=new jn),An(a,l,f,g,A,E)):!1}function wo(a){return Xt(a)&&bn(a)==At}function qs(a,l,f,g){var A=f.length,E=A,R=!g;if(a==null)return!E;for(a=dt(a);A--;){var B=f[A];if(R&&B[2]?B[1]!==a[B[0]]:!(B[0]in a))return!1}for(;++A<E;){B=f[A];var j=B[0],le=a[j],oe=B[1];if(R&&B[2]){if(le===u&&!(j in a))return!1}else{var he=new jn;if(g)var Me=g(le,oe,j,a,l,he);if(!(Me===u?qi(oe,le,k|Q,g,he):Me))return!1}}return!0}function tr(a){if(!Vt(a)||Xo(a))return!1;var l=qa(a)?gf:eh;return l.test(Cr(a))}function Mo(a){return Xt(a)&&st(a)==ra}function Cf(a){return Xt(a)&&bn(a)==Ct}function Tf(a){return Xt(a)&&Fi(a.length)&&!!Tt[st(a)]}function Rf(a){return typeof a=="function"?a:a==null?V:typeof a=="object"?Qe(a)?To(a[0],a[1]):Df(a):ht(a)}function Oo(a){if(!Lt(a))return Sa(a);var l=[];for(var f in dt(a))gt.call(a,f)&&f!="constructor"&&l.push(f);return l}function qh(a){if(!Vt(a))return li(a);var l=Lt(a),f=[];for(var g in a)g=="constructor"&&(l||!gt.call(a,g))||f.push(g);return f}function Co(a,l){return a<l}function Nf(a,l){var f=-1,g=fn(a)?W(a.length):[];return xr(a,function(A,E,R){g[++f]=l(A,E,R)}),g}function Df(a){var l=Vo(a);return l.length==1&&l[0][2]?dm(l[0][0],l[0][1]):function(f){return f===a||qs(f,a,l)}}function To(a,l){return Ko(a)&&fm(l)?dm(yt(a),l):function(f){var g=wu(f,a);return g===u&&g===l?is(f,a):qi(l,g,k|Q)}}function Vs(a,l,f,g,A){a!==l&&Ul(l,function(E,R){if(A||(A=new jn),Vt(E))Dp(a,l,R,f,Vs,g,A);else{var B=g?g(Po(a,R),E,R+"",a,l,A):u;B===u&&(B=E),er(a,R,B)}},yn)}function Dp(a,l,f,g,A,E,R){var B=Po(a,f),j=Po(l,f),le=R.get(j);if(le){er(a,f,le);return}var oe=E?E(B,j,f+"",a,l,R):u,he=oe===u;if(he){var Me=Qe(j),Ne=!Me&&gi(j),qe=!Me&&!Ne&&ts(j);oe=j,Me||Ne||qe?Qe(B)?oe=B:tn(B)?oe=on(B):Ne?(he=!1,oe=Gf(j,!0)):qe?(he=!1,oe=Yf(j,!0)):oe=[]:Ra(j)||Dr(j)?(oe=B,Dr(B)?oe=rg(B):(!Vt(B)||qa(B))&&(oe=Pf(j))):he=!1}he&&(R.set(j,oe),A(oe,j,g,E,R),R.delete(j)),er(a,f,oe)}function Bf(a,l){var f=a.length;if(f)return l+=l<0?f:0,Ya(l,f)?a[l]:u}function Lf(a,l,f){l.length?l=Gt(l,function(E){return Qe(E)?function(R){return Ma(R,E.length===1?E[0]:E)}:E}):l=[V];var g=-1;l=Gt(l,la(Ue()));var A=Nf(a,function(E,R,B){var j=Gt(l,function(le){return le(E)});return{criteria:j,index:++g,value:E}});return Ah(A,function(E,R){return $h(E,R,f)})}function Vh(a,l){return Ro(a,l,function(f,g){return is(a,g)})}function Ro(a,l,f){for(var g=-1,A=l.length,E={};++g<A;){var R=l[g],B=Ma(a,R);f(B,R)&&Hl(E,Er(R,a),B)}return E}function Qh(a){return function(l){return Ma(l,a)}}function No(a,l,f,g){var A=g?of:xl,E=-1,R=l.length,B=a;for(a===l&&(l=on(l)),f&&(B=Gt(a,la(f)));++E<R;)for(var j=0,le=l[E],oe=f?f(le):le;(j=A(B,oe,j,g))>-1;)B!==a&&go.call(B,j,1),go.call(a,j,1);return a}function zf(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;Ya(A)?go.call(a,A,1):Xs(a,A)}}return a}function Do(a,l){return a+Ar(vf()*(l-a+1))}function Kh(a,l,f,g){for(var A=-1,E=jt(Nl((l-a)/(f||1)),0),R=W(E);E--;)R[g?E:++A]=a,a+=f;return R}function Uf(a,l){var f="";if(!a||l<1||l>J)return f;do l%2&&(f+=a),l=Ar(l/2),l&&(a+=a);while(l);return f}function Pe(a,l){return ou(Wf(a,l,V),a+"")}function jl(a){return Ll(ss(a))}function Bo(a,l){var f=ss(a);return fu(f,Ga(l,0,f.length))}function Hl(a,l,f,g){if(!Vt(a))return a;l=Er(l,a);for(var A=-1,E=l.length,R=E-1,B=a;B!=null&&++A<E;){var j=yt(l[A]),le=f;if(j==="__proto__"||j==="constructor"||j==="prototype")return a;if(A!=R){var oe=B[j];le=g?g(oe,j,B):u,le===u&&(le=Vt(oe)?oe:Ya(l[A+1])?[]:{})}Hi(B,j,le),B=B[j]}return a}var Qs=Dl?function(a,l){return Dl.set(a,l),a}:V,Ks=Ns?function(a,l){return Ns(a,"toString",{configurable:!0,enumerable:!1,value:Y(l),writable:!0})}:V;function Zh(a){return fu(ss(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=W(A);++g<A;)E[g]=a[g+l];return E}function Xh(a,l){var f;return xr(a,function(g,A,E){return f=l(g,A,E),!f}),!!f}function Zs(a,l,f){var g=0,A=a==null?g:a.length;if(typeof l=="number"&&l===l&&A<=se){for(;g<A;){var E=g+A>>>1,R=a[E];R!==null&&!In(R)&&(f?R<=l:R<l)?g=E+1:A=E}return A}return Lo(a,l,V,f)}function Lo(a,l,f,g){var A=0,E=a==null?0:a.length;if(E===0)return 0;l=f(l);for(var R=l!==l,B=l===null,j=In(l),le=l===u;A<E;){var oe=Ar((A+E)/2),he=f(a[oe]),Me=he!==u,Ne=he===null,qe=he===he,et=In(he);if(R)var Ve=g||qe;else le?Ve=qe&&(g||Me):B?Ve=qe&&Me&&(g||!Ne):j?Ve=qe&&Me&&!Ne&&(g||!et):Ne||et?Ve=!1:Ve=g?he<=l:he<l;Ve?A=oe+1:E=oe}return It(E,fe)}function kf(a,l){for(var f=-1,g=a.length,A=0,E=[];++f<g;){var R=a[f],B=l?l(R):R;if(!f||!ta(B,j)){var j=B;E[A++]=R===0?0:R}}return E}function zo(a){return typeof a=="number"?a:In(a)?w:+a}function Jn(a){if(typeof a=="string")return a;if(Qe(a))return Gt(a,Jn)+"";if(In(a))return $r?$r.call(a):"";var l=a+"";return l=="0"&&1/a==-Z?"-0":l}function Sr(a,l,f){var g=-1,A=ao,E=a.length,R=!0,B=[],j=B;if(f)R=!1,A=lf;else if(E>=h){var le=l?null:rm(a);if(le)return fo(le);R=!1,A=El,j=new yr}else j=l?[]:B;e:for(;++g<E;){var oe=a[g],he=l?l(oe):oe;if(oe=f||oe!==0?oe:0,R&&he===he){for(var Me=j.length;Me--;)if(j[Me]===he)continue e;l&&j.push(he),B.push(oe)}else A(j,he,f)||(j!==B&&j.push(he),B.push(oe))}return B}function Xs(a,l){return l=Er(l,a),a=Yl(a,l),a==null||delete a[yt(Nn(l))]}function jf(a,l,f,g){return Hl(a,l,f(Ma(a,l)),g)}function Ps(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 Ph(a,l){var f=a;return f instanceof Fe&&(f=f.value()),sf(l,function(g,A){return A.func.apply(A.thisArg,vr([g],A.args))},f)}function Js(a,l,f){var g=a.length;if(g<2)return g?Sr(a[0]):[];for(var A=-1,E=W(g);++A<g;)for(var R=a[A],B=-1;++B<g;)B!=A&&(E[A]=ti(E[A]||R,a[B],l,f));return Sr(lt(E,1),l,f)}function Hf(a,l,f){for(var g=-1,A=a.length,E=l.length,R={};++g<A;){var B=g<E?l[g]:u;f(R,a[g],B)}return R}function Uo(a){return tn(a)?a:[]}function Ws(a){return typeof a=="function"?a:V}function Er(a,l){return Qe(a)?a:Ko(a,l)?[a]:ir(pt(a))}var Jh=Pe;function ai(a,l,f){var g=a.length;return f=f===u?g:f,!l&&f>=g?a:ca(a,l,f)}var Wh=po||function(a){return an.clearTimeout(a)};function Gf(a,l){if(l)return a.slice();var f=a.length,g=Ni?Ni(f):new a.constructor(f);return a.copy(g),g}function Vi(a){var l=new a.constructor(a.byteLength);return new Rl(l).set(new Rl(a)),l}function If(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,hl.exec(a));return l.lastIndex=a.lastIndex,l}function Fh(a){return Ui?dt(Ui.call(a)):{}}function Yf(a,l){var f=l?Vi(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function Fs(a,l){if(a!==l){var f=a!==u,g=a===null,A=a===a,E=In(a),R=l!==u,B=l===null,j=l===l,le=In(l);if(!B&&!le&&!E&&a>l||E&&R&&j&&!B&&!le||g&&R&&j||!f&&j||!A)return 1;if(!g&&!E&&!le&&a<l||le&&f&&A&&!g&&!E||B&&f&&A||!R&&A||!j)return-1}return 0}function $h(a,l,f){for(var g=-1,A=a.criteria,E=l.criteria,R=A.length,B=f.length;++g<R;){var j=Fs(A[g],E[g]);if(j){if(g>=B)return j;var le=f[g];return j*(le=="desc"?-1:1)}}return a.index-l.index}function qf(a,l,f,g){for(var A=-1,E=a.length,R=f.length,B=-1,j=l.length,le=jt(E-R,0),oe=W(j+le),he=!g;++B<j;)oe[B]=l[B];for(;++A<R;)(he||A<E)&&(oe[f[A]]=a[A]);for(;le--;)oe[B++]=a[A++];return oe}function em(a,l,f,g){for(var A=-1,E=a.length,R=-1,B=f.length,j=-1,le=l.length,oe=jt(E-B,0),he=W(oe+le),Me=!g;++A<oe;)he[A]=a[A];for(var Ne=A;++j<le;)he[Ne+j]=l[j];for(;++R<B;)(Me||A<E)&&(he[Ne+f[R]]=a[A++]);return he}function on(a,l){var f=-1,g=a.length;for(l||(l=W(g));++f<g;)l[f]=a[f];return l}function Wn(a,l,f,g){var A=!f;f||(f={});for(var E=-1,R=l.length;++E<R;){var B=l[E],j=g?g(f[B],a[B],B,f,a):u;j===u&&(j=a[B]),A?Ha(f,B,j):Hi(f,B,j)}return f}function jo(a,l){return Wn(a,iu(a),l)}function $s(a,l){return Wn(a,Qo(a),l)}function Qi(a,l){return function(f,g){var A=Qe(f)?gp:ei,E=l?l():{};return A(f,a,Ue(g,2),E)}}function Ki(a){return Pe(function(l,f){var g=-1,A=f.length,E=A>1?f[A-1]:u,R=A>2?f[2]:u;for(E=a.length>3&&typeof E=="function"?(A--,E):u,R&&Gn(f[0],f[1],R)&&(E=A<3?u:E,A=1),l=dt(l);++g<A;){var B=f[g];B&&a(l,B,g,E)}return l})}function Vf(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,R=dt(f);(l?E--:++E<A)&&g(R[E],E,R)!==!1;);return f}}function Zi(a){return function(l,f,g){for(var A=-1,E=dt(l),R=g(l),B=R.length;B--;){var j=R[a?B:++A];if(f(E[j],j,E)===!1)break}return l}}function tm(a,l,f){var g=l&G,A=Oa(a);function E(){var R=this&&this!==an&&this instanceof E?A:a;return R.apply(g?f:this,arguments)}return E}function fa(a){return function(l){l=pt(l);var f=Xr(l)?ya(l):u,g=f?f[0]:l.charAt(0),A=f?ai(f,1).join(""):l.slice(1);return g[a]()+A}}function Hn(a){return function(l){return sf(c(Br(l).replace(Ss,"")),a,"")}}function Oa(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 Vt(g)?g:f}}function nm(a,l,f){var g=Oa(a);function A(){for(var E=arguments.length,R=W(E),B=E,j=Pi(A);B--;)R[B]=arguments[B];var le=E<3&&R[0]!==j&&R[E-1]!==j?[]:Pr(R,j);if(E-=le.length,E<f)return Qf(a,l,$t,A.placeholder,u,R,le,u,u,f-E);var oe=this&&this!==an&&this instanceof A?g:a;return Vn(oe,this,R)}return A}function wr(a){return function(l,f,g){var A=dt(l);if(!fn(l)){var E=Ue(f,3);l=hn(l),f=function(B){return E(A[B],B,A)}}var R=a(l,f,g);return R>-1?A[E?l[R]:R]:u}}function nr(a){return Ht(function(l){var f=l.length,g=f,A=Zn.prototype.thru;for(a&&l.reverse();g--;){var E=l[g];if(typeof E!="function")throw new ua(p);if(A&&!R&&ru(E)=="wrapper")var R=new Zn([],!0)}for(g=R?g:f;++g<f;){E=l[g];var B=ru(E),j=B=="wrapper"?qo(E):u;j&&Zo(j[0])&&j[1]==(ge|me|te|F)&&!j[4].length&&j[9]==1?R=R[ru(j[0])].apply(R,j[3]):R=E.length==1&&Zo(E)?R[B]():R.thru(E)}return function(){var le=arguments,oe=le[0];if(R&&le.length==1&&Qe(oe))return R.plant(oe).value();for(var he=0,Me=f?l[he].apply(this,le):oe;++he<f;)Me=l[he].call(this,Me);return Me}})}function $t(a,l,f,g,A,E,R,B,j,le){var oe=l&ge,he=l&G,Me=l&ie,Ne=l&(me|Ae),qe=l&_e,et=Me?u:Oa(a);function Ve(){for(var ut=arguments.length,mt=W(ut),Qa=ut;Qa--;)mt[Qa]=arguments[Qa];if(Ne)var pa=Pi(Ve),Ka=xp(mt,pa);if(g&&(mt=qf(mt,g,A,Ne)),E&&(mt=em(mt,E,R,Ne)),ut-=Ka,Ne&&ut<le){var mn=Pr(mt,pa);return Qf(a,l,$t,Ve.placeholder,f,mt,mn,B,j,le-ut)}var Lr=he?f:this,$i=Me?Lr[a]:a;return ut=mt.length,B?mt=rr(mt,B):qe&&ut>1&&mt.reverse(),oe&&j<ut&&(mt.length=j),this&&this!==an&&this instanceof Ve&&($i=et||Oa($i)),$i.apply(Lr,mt)}return Ve}function eu(a,l){return function(f,g){return Of(f,a,l(g),{})}}function Gl(a,l){return function(f,g){var A;if(f===u&&g===u)return l;if(f!==u&&(A=f),g!==u){if(A===u)return g;typeof f=="string"||typeof g=="string"?(f=Jn(f),g=Jn(g)):(f=zo(f),g=zo(g)),A=a(f,g)}return A}}function tu(a){return Ht(function(l){return l=Gt(l,la(Ue())),Pe(function(f){var g=this;return a(l,function(A){return Vn(A,g,f)})})})}function nu(a,l){l=l===u?" ":Jn(l);var f=l.length;if(f<2)return f?Uf(l,a):l;var g=Uf(l,Nl(a/$a(l)));return Xr(l)?ai(ya(g),0,a).join(""):g.slice(0,a)}function am(a,l,f,g){var A=l&G,E=Oa(a);function R(){for(var B=-1,j=arguments.length,le=-1,oe=g.length,he=W(oe+j),Me=this&&this!==an&&this instanceof R?E:a;++le<oe;)he[le]=g[le];for(;j--;)he[le++]=arguments[++B];return Vn(Me,A?f:this,he)}return R}function ri(a){return function(l,f,g){return g&&typeof g!="number"&&Gn(l,f,g)&&(f=g=u),l=ur(l),f===u?(f=l,l=0):f=ur(f),g=g===u?l<f?1:-1:ur(g),Kh(l,f,g,a)}}function Xi(a){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=Na(l),f=Na(f)),a(l,f)}}function Qf(a,l,f,g,A,E,R,B,j,le){var oe=l&me,he=oe?R:u,Me=oe?u:R,Ne=oe?E:u,qe=oe?u:E;l|=oe?te:de,l&=~(oe?de:te),l&ce||(l&=-4);var et=[a,l,A,Ne,he,qe,Me,B,j,le],Ve=f.apply(u,et);return Zo(a)&&Jo(Ve,et),Ve.placeholder=g,Wo(Ve,a,l)}function Ho(a){var l=rn[a];return function(f,g){if(f=Na(f),g=g==null?0:It(Xe(g),292),g&&Ds(f)){var A=(pt(f)+"e").split("e"),E=l(A[0]+"e"+(+A[1]+g));return A=(pt(E)+"e").split("e"),+(A[0]+"e"+(+A[1]-g))}return l(f)}}var rm=it&&1/fo(new it([,-0]))[1]==Z?function(a){return new it(a)}:Oe;function au(a){return function(l){var f=bn(l);return f==At?co(l):f==Ct?Sp(l):_p(l,a(l))}}function ar(a,l,f,g,A,E,R,B){var j=l&ie;if(!j&&typeof a!="function")throw new ua(p);var le=g?g.length:0;if(le||(l&=-97,g=A=u),R=R===u?R:jt(Xe(R),0),B=B===u?B:Xe(B),le-=A?A.length:0,l&de){var oe=g,he=A;g=A=u}var Me=j?u:qo(a),Ne=[a,l,f,g,A,oe,he,E,R,B];if(Me&&uu(Ne,Me),a=Ne[0],l=Ne[1],f=Ne[2],g=Ne[3],A=Ne[4],B=Ne[9]=Ne[9]===u?j?0:a.length:jt(Ne[9]-le,0),!B&&l&(me|Ae)&&(l&=-25),!l||l==G)var qe=tm(a,l,f);else l==me||l==Ae?qe=nm(a,l,B):(l==te||l==(G|te))&&!A.length?qe=am(a,l,f,g):qe=$t.apply(u,Ne);var et=Me?Qs:Jo;return Wo(et(qe,Ne),a,l)}function Go(a,l,f,g){return a===u||ta(a,Cl[f])&&!gt.call(g,f)?l:a}function Kf(a,l,f,g,A,E){return Vt(a)&&Vt(l)&&(E.set(l,a),Vs(a,l,u,Kf,E),E.delete(l)),a}function im(a){return Ra(a)?u:a}function lm(a,l,f,g,A,E){var R=f&k,B=a.length,j=l.length;if(B!=j&&!(R&&j>B))return!1;var le=E.get(a),oe=E.get(l);if(le&&oe)return le==l&&oe==a;var he=-1,Me=!0,Ne=f&Q?new yr:u;for(E.set(a,l),E.set(l,a);++he<B;){var qe=a[he],et=l[he];if(g)var Ve=R?g(et,qe,he,l,a,E):g(qe,et,he,a,l,E);if(Ve!==u){if(Ve)continue;Me=!1;break}if(Ne){if(!uf(l,function(ut,mt){if(!El(Ne,mt)&&(qe===ut||A(qe,ut,f,g,E)))return Ne.push(mt)})){Me=!1;break}}else if(!(qe===et||A(qe,et,f,g,E))){Me=!1;break}}return E.delete(a),E.delete(l),Me}function sm(a,l,f,g,A,E,R){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 Rl(a),new Rl(l)));case je:case Ye:case xn:return ta(+a,+l);case xt:return a.name==l.name&&a.message==l.message;case ra:case On:return a==l+"";case At:var B=co;case Ct:var j=g&k;if(B||(B=fo),a.size!=l.size&&!j)return!1;var le=R.get(a);if(le)return le==l;g|=Q,R.set(a,l);var oe=lm(B(a),B(l),g,A,E,R);return R.delete(a),oe;case Ba:if(Ui)return Ui.call(a)==Ui.call(l)}return!1}function An(a,l,f,g,A,E){var R=f&k,B=Io(a),j=B.length,le=Io(l),oe=le.length;if(j!=oe&&!R)return!1;for(var he=j;he--;){var Me=B[he];if(!(R?Me in l:gt.call(l,Me)))return!1}var Ne=E.get(a),qe=E.get(l);if(Ne&&qe)return Ne==l&&qe==a;var et=!0;E.set(a,l),E.set(l,a);for(var Ve=R;++he<j;){Me=B[he];var ut=a[Me],mt=l[Me];if(g)var Qa=R?g(mt,ut,Me,l,a,E):g(ut,mt,Me,a,l,E);if(!(Qa===u?ut===mt||A(ut,mt,f,g,E):Qa)){et=!1;break}Ve||(Ve=Me=="constructor")}if(et&&!Ve){var pa=a.constructor,Ka=l.constructor;pa!=Ka&&"constructor"in a&&"constructor"in l&&!(typeof pa=="function"&&pa instanceof pa&&typeof Ka=="function"&&Ka instanceof Ka)&&(et=!1)}return E.delete(a),E.delete(l),et}function Ht(a){return ou(Wf(a,u,$n),a+"")}function Io(a){return Gh(a,hn,iu)}function Yo(a){return Gh(a,yn,Qo)}var qo=Dl?function(a){return Dl.get(a)}:Oe;function ru(a){for(var l=a.name+"",f=Ea[l],g=gt.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=gt.call(x,"placeholder")?x:a;return l.placeholder}function Ue(){var a=x.iteratee||He;return a=a===He?Rf:a,arguments.length?a(arguments[0],arguments[1]):a}function Il(a,l){var f=a.__data__;return Or(l)?f[typeof l=="string"?"string":"hash"]:f.map}function Vo(a){for(var l=hn(a),f=l.length;f--;){var g=l[f],A=a[g];l[f]=[g,A,fm(A)]}return l}function ii(a,l){var f=ff(a,l);return tr(f)?f:u}function um(a){var l=gt.call(a,kn),f=a[kn];try{a[kn]=u;var g=!0}catch{}var A=Un.call(a);return g&&(l?a[kn]=f:delete a[kn]),A}var iu=Wr?function(a){return a==null?[]:(a=dt(a),Fa(Wr(a),function(l){return Di.call(a,l)}))}:gv,Qo=Wr?function(a){for(var l=[];a;)vr(l,iu(a)),a=Ts(a);return l}:gv,bn=st;(Bs&&bn(new Bs(new ArrayBuffer(1)))!=gn||un&&bn(new un)!=At||Yt&&bn(Yt.resolve())!=sn||it&&bn(new it)!=Ct||ja&&bn(new ja)!=Dt)&&(bn=function(a){var l=st(a),f=l==bt?a.constructor:u,g=f?Cr(f):"";if(g)switch(g){case Ch:return gn;case Th:return At;case Ls:return sn;case zs:return Ct;case Rh:return Dt}return l});function om(a,l,f){for(var g=-1,A=f.length;++g<A;){var E=f[g],R=E.size;switch(E.type){case"drop":a+=R;break;case"dropRight":l-=R;break;case"take":l=It(l,a+R);break;case"takeRight":a=jt(a,l-R);break}}return{start:a,end:l}}function Zf(a){var l=a.match(fp);return l?l[1].split($d):[]}function lu(a,l,f){l=Er(l,a);for(var g=-1,A=l.length,E=!1;++g<A;){var R=yt(l[g]);if(!(E=a!=null&&f(a,R)))break;a=a[R]}return E||++g!=A?E:(A=a==null?0:a.length,!!A&&Fi(A)&&Ya(R,A)&&(Qe(a)||Dr(a)))}function Xf(a){var l=a.length,f=new a.constructor(l);return l&&typeof a[0]=="string"&&gt.call(a,"index")&&(f.index=a.index,f.input=a.input),f}function Pf(a){return typeof a.constructor=="function"&&!Lt(a)?oa(Ts(a)):{}}function Jf(a,l,f){var g=a.constructor;switch(l){case nn:return Vi(a);case je:case Ye:return new g(+a);case gn:return If(a,f);case Sn:case ps:case vs:case As:case Ja:case Zt:case za:case Ir:case gr:return Yf(a,f);case At:return new g;case xn:case On:return new g(a);case ra:return ko(a);case Ct:return new g;case Ba:return Fh(a)}}function cm(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(cp,`{
/* [wrapped with `+l+`] */
`)}function Mr(a){return Qe(a)||Dr(a)||!!(Qn&&a&&a[Qn])}function Ya(a,l){var f=typeof a;return l=l??J,!!l&&(f=="number"||f!="symbol"&&Oi.test(a))&&a>-1&&a%1==0&&a<l}function Gn(a,l,f){if(!Vt(f))return!1;var g=typeof l;return(g=="number"?fn(f)&&Ya(l,f.length):g=="string"&&l in f)?ta(f[l],a):!1}function Ko(a,l){if(Qe(a))return!1;var f=typeof a;return f=="number"||f=="symbol"||f=="boolean"||a==null||In(a)?!0:op.test(a)||!Fd.test(a)||l!=null&&a in dt(l)}function Or(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}function Zo(a){var l=ru(a),f=x[l];if(typeof f!="function"||!(l in Fe.prototype))return!1;if(a===f)return!0;var g=qo(f);return!!g&&a===g[0]}function Xo(a){return!!mf&&mf in a}var su=Os?qa:pv;function Lt(a){var l=a&&a.constructor,f=typeof l=="function"&&l.prototype||Cl;return a===f}function fm(a){return a===a&&!Vt(a)}function dm(a,l){return function(f){return f==null?!1:f[a]===l&&(l!==u||a in dt(f))}}function hm(a){var l=bu(a,function(g){return f.size===y&&f.clear(),g}),f=l.cache;return l}function uu(a,l){var f=a[1],g=l[1],A=f|g,E=A<(G|ie|ge),R=g==ge&&f==me||g==ge&&f==F&&a[7].length<=l[8]||g==(ge|F)&&l[7].length<=l[8]&&f==me;if(!(E||R))return a;g&G&&(a[2]=l[2],A|=f&G?0:ce);var B=l[3];if(B){var j=a[3];a[3]=j?qf(j,B,l[4]):B,a[4]=j?Pr(a[3],M):l[4]}return B=l[5],B&&(j=a[5],a[5]=j?em(j,B,l[6]):B,a[6]=j?Pr(a[5],M):l[6]),B=l[7],B&&(a[7]=B),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 li(a){var l=[];if(a!=null)for(var f in dt(a))l.push(f);return l}function mm(a){return Un.call(a)}function Wf(a,l,f){return l=jt(l===u?a.length-1:l,0),function(){for(var g=arguments,A=-1,E=jt(g.length-l,0),R=W(E);++A<E;)R[A]=g[l+A];A=-1;for(var B=W(l+1);++A<l;)B[A]=g[A];return B[l]=f(R),Vn(a,this,B)}}function Yl(a,l){return l.length<2?a:Ma(a,ca(l,0,-1))}function rr(a,l){for(var f=a.length,g=It(l.length,f),A=on(a);g--;){var E=l[g];a[g]=Ya(E,f)?A[E]:u}return a}function Po(a,l){if(!(l==="constructor"&&typeof a[l]=="function")&&l!="__proto__")return a[l]}var Jo=cu(Qs),ql=pf||function(a,l){return an.setTimeout(a,l)},ou=cu(Ks);function Wo(a,l,f){var g=l+"";return ou(a,cm(g,gm(Zf(g),f)))}function cu(a){var l=0,f=0;return function(){var g=br(),A=Ke-(g-f);if(f=g,A>0){if(++l>=Le)return arguments[0]}else l=0;return a.apply(u,arguments)}}function fu(a,l){var f=-1,g=a.length,A=g-1;for(l=l===u?g:l;++f<l;){var E=Do(f,A),R=a[E];a[E]=a[f],a[f]=R}return a.length=l,a}var ir=hm(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(Yr,function(f,g,A,E){l.push(A?E.replace(fl,"$1"):g||f)}),l});function yt(a){if(typeof a=="string"||In(a))return a;var l=a+"";return l=="0"&&1/a==-Z?"-0":l}function Cr(a){if(a!=null){try{return Cs.call(a)}catch{}try{return a+""}catch{}}return""}function gm(a,l){return ba(be,function(f){var g="_."+f[0];l&f[1]&&!ao(a,g)&&a.push(g)}),a.sort()}function cn(a){if(a instanceof Fe)return a.clone();var l=new Zn(a.__wrapped__,a.__chain__);return l.__actions__=on(a.__actions__),l.__index__=a.__index__,l.__values__=a.__values__,l}function Bp(a,l,f){(f?Gn(a,l,f):l===u)?l=1:l=jt(Xe(l),0);var g=a==null?0:a.length;if(!g||l<1)return[];for(var A=0,E=0,R=W(Nl(g/l));A<g;)R[E++]=ca(a,A,A+=l);return R}function pm(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 vm(){var a=arguments.length;if(!a)return[];for(var l=W(a-1),f=arguments[0],g=a;g--;)l[g-1]=arguments[g];return vr(Qe(f)?on(f):[f],lt(l,1))}var qt=Pe(function(a,l){return tn(a)?ti(a,lt(l,1,tn,!0)):[]}),Fn=Pe(function(a,l){var f=Nn(l);return tn(f)&&(f=u),tn(a)?ti(a,lt(l,1,tn,!0),Ue(f,2)):[]}),Tr=Pe(function(a,l){var f=Nn(l);return tn(f)&&(f=u),tn(a)?ti(a,lt(l,1,tn,!0),u,f):[]});function Am(a,l,f){var g=a==null?0:a.length;return g?(l=f||l===u?1:Xe(l),ca(a,l<0?0:l,g)):[]}function bm(a,l,f){var g=a==null?0:a.length;return g?(l=f||l===u?1:Xe(l),l=g-l,ca(a,0,l<0?0:l)):[]}function Lp(a,l){return a&&a.length?Ps(a,Ue(l,3),!0,!0):[]}function Ff(a,l){return a&&a.length?Ps(a,Ue(l,3),!0):[]}function da(a,l,f,g){var A=a==null?0:a.length;return A?(f&&typeof f!="number"&&Gn(a,l,f)&&(f=0,g=A),Je(a,l,f,g)):[]}function Ca(a,l,f){var g=a==null?0:a.length;if(!g)return-1;var A=f==null?0:Xe(f);return A<0&&(A=jt(g+A,0)),ro(a,Ue(l,3),A)}function $f(a,l,f){var g=a==null?0:a.length;if(!g)return-1;var A=g-1;return f!==u&&(A=Xe(f),A=f<0?jt(g+A,0):It(A,g-1)),ro(a,Ue(l,3),A,!0)}function $n(a){var l=a==null?0:a.length;return l?lt(a,1):[]}function ym(a){var l=a==null?0:a.length;return l?lt(a,Z):[]}function si(a,l){var f=a==null?0:a.length;return f?(l=l===u?1:Xe(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 Rr(a){return a&&a.length?a[0]:u}function ed(a,l,f){var g=a==null?0:a.length;if(!g)return-1;var A=f==null?0:Xe(f);return A<0&&(A=jt(g+A,0)),xl(a,l,A)}function td(a){var l=a==null?0:a.length;return l?ca(a,0,-1):[]}var lr=Pe(function(a){var l=Gt(a,Uo);return l.length&&l[0]===a[0]?Mf(l):[]}),_m=Pe(function(a){var l=Nn(a),f=Gt(a,Uo);return l===Nn(f)?l=u:f.pop(),f.length&&f[0]===a[0]?Mf(f,Ue(l,2)):[]}),Vl=Pe(function(a){var l=Nn(a),f=Gt(a,Uo);return l=typeof l=="function"?l:u,l&&f.pop(),f.length&&f[0]===a[0]?Mf(f,u,l):[]});function du(a,l){return a==null?"":xa.call(a,l)}function Nn(a){var l=a==null?0:a.length;return l?a[l-1]:u}function Ql(a,l,f){var g=a==null?0:a.length;if(!g)return-1;var A=g;return f!==u&&(A=Xe(f),A=A<0?jt(g+A,0):It(A,g-1)),l===l?sa(a,l,A):ro(a,Sl,A,!0)}function xm(a,l){return a&&a.length?Bf(a,Xe(l)):u}var Sm=Pe(Kl);function Kl(a,l){return a&&a.length&&l&&l.length?No(a,l):a}function Em(a,l,f){return a&&a.length&&l&&l.length?No(a,l,Ue(f,2)):a}function Fo(a,l,f){return a&&a.length&&l&&l.length?No(a,l,u,f):a}var wm=Ht(function(a,l){var f=a==null?0:a.length,g=Gs(a,l);return zf(a,Gt(l,function(A){return Ya(A,f)?+A:A}).sort(Fs)),g});function zp(a,l){var f=[];if(!(a&&a.length))return f;var g=-1,A=[],E=a.length;for(l=Ue(l,3);++g<E;){var R=a[g];l(R,g,a)&&(f.push(R),A.push(g))}return zf(a,A),f}function nd(a){return a==null?a:Af.call(a)}function wt(a,l,f){var g=a==null?0:a.length;return g?(f&&typeof f!="number"&&Gn(a,l,f)?(l=0,f=g):(l=l==null?0:Xe(l),f=f===u?g:Xe(f)),ca(a,l,f)):[]}function Ut(a,l){return Zs(a,l)}function tt(a,l,f){return Lo(a,l,Ue(f,2))}function ct(a,l){var f=a==null?0:a.length;if(f){var g=Zs(a,l);if(g<f&&ta(a[g],l))return g}return-1}function Mt(a,l){return Zs(a,l,!0)}function ha(a,l,f){return Lo(a,l,Ue(f,2),!0)}function ui(a,l){var f=a==null?0:a.length;if(f){var g=Zs(a,l,!0)-1;if(ta(a[g],l))return g}return-1}function Zl(a){return a&&a.length?kf(a):[]}function ad(a,l){return a&&a.length?kf(a,Ue(l,2)):[]}function Nr(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===u?1:Xe(l),ca(a,0,l<0?0:l)):[]}function oi(a,l,f){var g=a==null?0:a.length;return g?(l=f||l===u?1:Xe(l),l=g-l,ca(a,l<0?0:l,g)):[]}function Wi(a,l){return a&&a.length?Ps(a,Ue(l,3),!1,!0):[]}function rd(a,l){return a&&a.length?Ps(a,Ue(l,3)):[]}var Ta=Pe(function(a){return Sr(lt(a,1,tn,!0))}),Xl=Pe(function(a){var l=Nn(a);return tn(l)&&(l=u),Sr(lt(a,1,tn,!0),Ue(l,2))}),hu=Pe(function(a){var l=Nn(a);return l=typeof l=="function"?l:u,Sr(lt(a,1,tn,!0),u,l)});function ea(a){return a&&a.length?Sr(a):[]}function id(a,l){return a&&a.length?Sr(a,Ue(l,2)):[]}function ld(a,l){return l=typeof l=="function"?l:u,a&&a.length?Sr(a,u,l):[]}function Pl(a){if(!(a&&a.length))return[];var l=0;return a=Fa(a,function(f){if(tn(f))return l=jt(f.length,l),!0}),Zr(l,function(f){return Gt(a,io(f))})}function mu(a,l){if(!(a&&a.length))return[];var f=Pl(a);return l==null?f:Gt(f,function(g){return Vn(l,u,g)})}var ci=Pe(function(a,l){return tn(a)?ti(a,l):[]}),En=Pe(function(a){return Js(Fa(a,tn))}),fi=Pe(function(a){var l=Nn(a);return tn(l)&&(l=u),Js(Fa(a,tn),Ue(l,2))}),Jl=Pe(function(a){var l=Nn(a);return l=typeof l=="function"?l:u,Js(Fa(a,tn),u,l)}),Wl=Pe(Pl);function sd(a,l){return Hf(a||[],l||[],Hi)}function ud(a,l){return Hf(a||[],l||[],Hl)}var Mm=Pe(function(a){var l=a.length,f=l>1?a[l-1]:u;return f=typeof f=="function"?(a.pop(),f):u,mu(a,f)});function Fl(a){var l=x(a);return l.__chain__=!0,l}function od(a,l){return l(a),a}function Dn(a,l){return l(a)}var Om=Ht(function(a){var l=a.length,f=l?a[0]:0,g=this.__wrapped__,A=function(E){return Gs(E,a)};return l>1||this.__actions__.length||!(g instanceof Fe)||!Ya(f)?this.thru(A):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:Dn,args:[A],thisArg:u}),new Zn(g,this.__chain__).thru(function(E){return l&&!E.length&&E.push(u),E}))});function ma(){return Fl(this)}function Cm(){return new Zn(this.value(),this.__chain__)}function Tm(){this.__values__===u&&(this.__values__=ga(this.value()));var a=this.__index__>=this.__values__.length,l=a?u:this.__values__[this.__index__++];return{done:a,value:l}}function Up(){return this}function di(a){for(var l,f=this;f instanceof wa;){var g=cn(f);g.__index__=0,g.__values__=u,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 Fe){var l=a;return this.__actions__.length&&(l=new Fe(this)),l=l.reverse(),l.__actions__.push({func:Dn,args:[nd],thisArg:u}),new Zn(l,this.__chain__)}return this.thru(nd)}function cd(){return Ph(this.__wrapped__,this.__actions__)}var $l=Qi(function(a,l,f){gt.call(a,f)?++a[f]:Ha(a,f,1)});function Rm(a,l,f){var g=Qe(a)?gh:Ef;return f&&Gn(a,l,f)&&(l=u),g(a,Ue(l,3))}function Nm(a,l){var f=Qe(a)?Fa:Et;return f(a,Ue(l,3))}var Dm=wr(Ca),fd=wr($f);function dd(a,l){return lt(gu(a,l),1)}function kp(a,l){return lt(gu(a,l),Z)}function jp(a,l,f){return f=f===u?1:Xe(f),lt(gu(a,l),f)}function Bm(a,l){var f=Qe(a)?ba:xr;return f(a,Ue(l,3))}function hd(a,l){var f=Qe(a)?pp:So;return f(a,Ue(l,3))}var Lm=Qi(function(a,l,f){gt.call(a,f)?a[f].push(l):Ha(a,f,[l])});function es(a,l,f,g){a=fn(a)?a:ss(a),f=f&&!g?Xe(f):0;var A=a.length;return f<0&&(f=jt(A+f,0)),fc(a)?f<=A&&a.indexOf(l,f)>-1:!!A&&xl(a,l,f)>-1}var ec=Pe(function(a,l,f){var g=-1,A=typeof l=="function",E=fn(a)?W(a.length):[];return xr(a,function(R){E[++g]=A?Vn(l,R,f):Yi(R,l,f)}),E}),zm=Qi(function(a,l,f){Ha(a,f,l)});function gu(a,l){var f=Qe(a)?Gt:Nf;return f(a,Ue(l,3))}function Um(a,l,f,g){return a==null?[]:(Qe(l)||(l=l==null?[]:[l]),f=g?u:f,Qe(f)||(f=f==null?[]:[f]),Lf(a,l,f))}var km=Qi(function(a,l,f){a[f?0:1].push(l)},function(){return[[],[]]});function jm(a,l,f){var g=Qe(a)?sf:cf,A=arguments.length<3;return g(a,Ue(l,4),f,A,xr)}function Hm(a,l,f){var g=Qe(a)?vp:cf,A=arguments.length<3;return g(a,Ue(l,4),f,A,So)}function tc(a,l){var f=Qe(a)?Fa:Et;return f(a,yu(Ue(l,3)))}function Gm(a){var l=Qe(a)?Ll:jl;return l(a)}function Im(a,l,f){(f?Gn(a,l,f):l===u)?l=1:l=Xe(l);var g=Qe(a)?kh:Bo;return g(a,l)}function zt(a){var l=Qe(a)?jh:Zh;return l(a)}function md(a){if(a==null)return 0;if(fn(a))return fc(a)?$a(a):a.length;var l=bn(a);return l==At||l==Ct?a.size:Oo(a).length}function Hp(a,l,f){var g=Qe(a)?uf:Xh;return f&&Gn(a,l,f)&&(l=u),g(a,Ue(l,3))}var Ym=Pe(function(a,l){if(a==null)return[];var f=l.length;return f>1&&Gn(a,l[0],l[1])?l=[]:f>2&&Gn(l[0],l[1],l[2])&&(l=[l[0]]),Lf(a,lt(l,1),[])}),nc=Li||function(){return an.Date.now()};function Gp(a,l){if(typeof l!="function")throw new ua(p);return a=Xe(a),function(){if(--a<1)return l.apply(this,arguments)}}function qm(a,l,f){return l=f?u:l,l=a&&l==null?a.length:l,ar(a,ge,u,u,u,u,l)}function pu(a,l){var f;if(typeof l!="function")throw new ua(p);return a=Xe(a),function(){return--a>0&&(f=l.apply(this,arguments)),a<=1&&(l=u),f}}var hi=Pe(function(a,l,f){var g=G;if(f.length){var A=Pr(f,Pi(hi));g|=te}return ar(a,g,l,f,A)}),ac=Pe(function(a,l,f){var g=G|ie;if(f.length){var A=Pr(f,Pi(ac));g|=te}return ar(l,g,a,f,A)});function vu(a,l,f){l=f?u:l;var g=ar(a,me,u,u,u,u,u,l);return g.placeholder=vu.placeholder,g}function rc(a,l,f){l=f?u:l;var g=ar(a,Ae,u,u,u,u,u,l);return g.placeholder=rc.placeholder,g}function mi(a,l,f){var g,A,E,R,B,j,le=0,oe=!1,he=!1,Me=!0;if(typeof a!="function")throw new ua(p);l=Na(l)||0,Vt(f)&&(oe=!!f.leading,he="maxWait"in f,E=he?jt(Na(f.maxWait)||0,l):E,Me="trailing"in f?!!f.trailing:Me);function Ne(mn){var Lr=g,$i=A;return g=A=u,le=mn,R=a.apply($i,Lr),R}function qe(mn){return le=mn,B=ql(ut,l),oe?Ne(mn):R}function et(mn){var Lr=mn-j,$i=mn-le,j0=l-Lr;return he?It(j0,E-$i):j0}function Ve(mn){var Lr=mn-j,$i=mn-le;return j===u||Lr>=l||Lr<0||he&&$i>=E}function ut(){var mn=nc();if(Ve(mn))return mt(mn);B=ql(ut,et(mn))}function mt(mn){return B=u,Me&&g?Ne(mn):(g=A=u,R)}function Qa(){B!==u&&Wh(B),le=0,g=j=A=B=u}function pa(){return B===u?R:mt(nc())}function Ka(){var mn=nc(),Lr=Ve(mn);if(g=arguments,A=this,j=mn,Lr){if(B===u)return qe(j);if(he)return Wh(B),B=ql(ut,l),Ne(j)}return B===u&&(B=ql(ut,l)),R}return Ka.cancel=Qa,Ka.flush=pa,Ka}var sr=Pe(function(a,l){return Gi(a,1,l)}),Au=Pe(function(a,l,f){return Gi(a,Na(l)||0,f)});function Ip(a){return ar(a,_e)}function bu(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new ua(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 R=a.apply(this,g);return f.cache=E.set(A,R)||E,R};return f.cache=new(bu.Cache||Xn),f}bu.Cache=Xn;function yu(a){if(typeof a!="function")throw new ua(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 Vm(a){return pu(2,a)}var Qm=Jh(function(a,l){l=l.length==1&&Qe(l[0])?Gt(l[0],la(Ue())):Gt(lt(l,1),la(Ue()));var f=l.length;return Pe(function(g){for(var A=-1,E=It(g.length,f);++A<E;)g[A]=l[A].call(this,g[A]);return Vn(a,this,g)})}),gd=Pe(function(a,l){var f=Pr(l,Pi(gd));return ar(a,te,u,l,f)}),ic=Pe(function(a,l){var f=Pr(l,Pi(ic));return ar(a,de,u,l,f)}),Km=Ht(function(a,l){return ar(a,F,u,u,u,l)});function Zm(a,l){if(typeof a!="function")throw new ua(p);return l=l===u?l:Xe(l),Pe(a,l)}function Yp(a,l){if(typeof a!="function")throw new ua(p);return l=l==null?0:jt(Xe(l),0),Pe(function(f){var g=f[l],A=ai(f,0,l);return g&&vr(A,g),Vn(a,this,A)})}function pd(a,l,f){var g=!0,A=!0;if(typeof a!="function")throw new ua(p);return Vt(f)&&(g="leading"in f?!!f.leading:g,A="trailing"in f?!!f.trailing:A),mi(a,l,{leading:g,maxWait:l,trailing:A})}function vd(a){return qm(a,1)}function qp(a,l){return gd(Ws(l),a)}function Vp(){if(!arguments.length)return[];var a=arguments[0];return Qe(a)?a:[a]}function _u(a){return Tn(a,q)}function Qp(a,l){return l=typeof l=="function"?l:u,Tn(a,q,l)}function Xm(a){return Tn(a,C|q)}function nt(a,l){return l=typeof l=="function"?l:u,Tn(a,C|q,l)}function Ad(a,l){return l==null||Sf(a,l,hn(l))}function ta(a,l){return a===l||a!==a&&l!==l}var bd=Xi(Is),Pm=Xi(function(a,l){return a>=l}),Dr=Eo((function(){return arguments})())?Eo:function(a){return Xt(a)&&gt.call(a,"callee")&&!Di.call(a,"callee")},Qe=W.isArray,lc=no?la(no):Pn;function fn(a){return a!=null&&Fi(a.length)&&!qa(a)}function tn(a){return Xt(a)&&fn(a)}function Kp(a){return a===!0||a===!1||Xt(a)&&st(a)==je}var gi=vo||pv,Jm=ch?la(ch):ln;function Wm(a){return Xt(a)&&a.nodeType===1&&!Ra(a)}function sc(a){if(a==null)return!0;if(fn(a)&&(Qe(a)||typeof a=="string"||typeof a.splice=="function"||gi(a)||ts(a)||Dr(a)))return!a.length;var l=bn(a);if(l==At||l==Ct)return!a.size;if(Lt(a))return!Oo(a).length;for(var f in a)if(gt.call(a,f))return!1;return!0}function Rt(a,l){return qi(a,l)}function yd(a,l,f){f=typeof f=="function"?f:u;var g=f?f(a,l):u;return g===u?qi(a,l,u,f):!!g}function dn(a){if(!Xt(a))return!1;var l=st(a);return l==xt||l==rt||typeof a.message=="string"&&typeof a.name=="string"&&!Ra(a)}function Zp(a){return typeof a=="number"&&Ds(a)}function qa(a){if(!Vt(a))return!1;var l=st(a);return l==Ot||l==Wt||l==ot||l==Kt}function uc(a){return typeof a=="number"&&a==Xe(a)}function Fi(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=J}function Vt(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Xt(a){return a!=null&&typeof a=="object"}var oc=fh?la(fh):wo;function _d(a,l){return a===l||qs(a,l,Vo(l))}function Xp(a,l,f){return f=typeof f=="function"?f:u,qs(a,l,Vo(l),f)}function Fm(a){return eg(a)&&a!=+a}function Pp(a){if(su(a))throw new Ie(m);return tr(a)}function $m(a){return a===null}function Jp(a){return a==null}function eg(a){return typeof a=="number"||Xt(a)&&st(a)==xn}function Ra(a){if(!Xt(a)||st(a)!=bt)return!1;var l=Ts(a);if(l===null)return!0;var f=gt.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Cs.call(f)==_a}var cc=dh?la(dh):Mo;function xd(a){return uc(a)&&a>=-J&&a<=J}var tg=hh?la(hh):Cf;function fc(a){return typeof a=="string"||!Qe(a)&&Xt(a)&&st(a)==On}function In(a){return typeof a=="symbol"||Xt(a)&&st(a)==Ba}var ts=mh?la(mh):Tf;function Va(a){return a===u}function Sd(a){return Xt(a)&&bn(a)==Dt}function ng(a){return Xt(a)&&st(a)==mr}var ag=Xi(Co),xu=Xi(function(a,l){return a<=l});function ga(a){if(!a)return[];if(fn(a))return fc(a)?ya(a):on(a);if(Bi&&a[Bi])return Sh(a[Bi]());var l=bn(a),f=l==At?co:l==Ct?fo:ss;return f(a)}function ur(a){if(!a)return a===0?a:0;if(a=Na(a),a===Z||a===-Z){var l=a<0?-1:1;return l*ve}return a===a?a:0}function Xe(a){var l=ur(a),f=l%1;return l===l?f?l-f:l:0}function or(a){return a?Ga(Xe(a),0,K):0}function Na(a){if(typeof a=="number")return a;if(In(a))return w;if(Vt(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Vt(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=bh(a);var f=vn.test(a);return f||th.test(a)?mp(a.slice(2),f?2:8):ml.test(a)?w:+a}function rg(a){return Wn(a,yn(a))}function ns(a){return a?Ga(Xe(a),-J,J):a===0?a:0}function pt(a){return a==null?"":Jn(a)}var Wp=Ki(function(a,l){if(Lt(l)||fn(l)){Wn(l,hn(l),a);return}for(var f in l)gt.call(l,f)&&Hi(a,f,l[f])}),ig=Ki(function(a,l){Wn(l,yn(l),a)}),dc=Ki(function(a,l,f,g){Wn(l,yn(l),a,g)}),Fp=Ki(function(a,l,f,g){Wn(l,hn(l),a,g)}),$p=Ht(Gs);function ev(a,l){var f=oa(a);return l==null?f:_r(f,l)}var tv=Pe(function(a,l){a=dt(a);var f=-1,g=l.length,A=g>2?l[2]:u;for(A&&Gn(l[0],l[1],A)&&(g=1);++f<g;)for(var E=l[f],R=yn(E),B=-1,j=R.length;++B<j;){var le=R[B],oe=a[le];(oe===u||ta(oe,Cl[le])&&!gt.call(a,le))&&(a[le]=E[le])}return a}),lg=Pe(function(a){return a.push(u,Kf),Vn(Mu,u,a)});function as(a,l){return ph(a,Ue(l,3),Rn)}function Su(a,l){return ph(a,Ue(l,3),kl)}function sg(a,l){return a==null?a:Ul(a,Ue(l,3),yn)}function nv(a,l){return a==null?a:Ii(a,Ue(l,3),yn)}function rs(a,l){return a&&Rn(a,Ue(l,3))}function Eu(a,l){return a&&kl(a,Ue(l,3))}function ug(a){return a==null?[]:ni(a,hn(a))}function hc(a){return a==null?[]:ni(a,yn(a))}function wu(a,l,f){var g=a==null?u:Ma(a,l);return g===u?f:g}function Ed(a,l){return a!=null&&lu(a,l,wf)}function is(a,l){return a!=null&&lu(a,l,Ih)}var og=eu(function(a,l,f){l!=null&&typeof l.toString!="function"&&(l=Un.call(l)),a[l]=f},Y(V)),cg=eu(function(a,l,f){l!=null&&typeof l.toString!="function"&&(l=Un.call(l)),gt.call(a,l)?a[l].push(f):a[l]=[f]},Ue),av=Pe(Yi);function hn(a){return fn(a)?xf(a):Oo(a)}function yn(a){return fn(a)?xf(a,!0):qh(a)}function rv(a,l){var f={};return l=Ue(l,3),Rn(a,function(g,A,E){Ha(f,l(g,A,E),g)}),f}function iv(a,l){var f={};return l=Ue(l,3),Rn(a,function(g,A,E){Ha(f,A,l(g,A,E))}),f}var lv=Ki(function(a,l,f){Vs(a,l,f)}),Mu=Ki(function(a,l,f,g){Vs(a,l,f,g)}),mc=Ht(function(a,l){var f={};if(a==null)return f;var g=!1;l=Gt(l,function(E){return E=Er(E,a),g||(g=E.length>1),E}),Wn(a,Yo(a),f),g&&(f=Tn(f,C|H|q,im));for(var A=l.length;A--;)Xs(f,l[A]);return f});function wd(a,l){return ls(a,yu(Ue(l)))}var sv=Ht(function(a,l){return a==null?{}:Vh(a,l)});function ls(a,l){if(a==null)return{};var f=Gt(Yo(a),function(g){return[g]});return l=Ue(l),Ro(a,f,function(g,A){return l(g,A[0])})}function uv(a,l,f){l=Er(l,a);var g=-1,A=l.length;for(A||(A=1,a=u);++g<A;){var E=a==null?u:a[yt(l[g])];E===u&&(g=A,E=f),a=qa(E)?E.call(a):E}return a}function fg(a,l,f){return a==null?a:Hl(a,l,f)}function dg(a,l,f,g){return g=typeof g=="function"?g:u,a==null?a:Hl(a,l,f,g)}var Md=au(hn),Od=au(yn);function Cd(a,l,f){var g=Qe(a),A=g||gi(a)||ts(a);if(l=Ue(l,4),f==null){var E=a&&a.constructor;A?f=g?new E:[]:Vt(a)?f=qa(E)?oa(Ts(a)):{}:f={}}return(A?ba:Rn)(a,function(R,B,j){return l(f,R,B,j)}),f}function hg(a,l){return a==null?!0:Xs(a,l)}function gc(a,l,f){return a==null?a:jf(a,l,Ws(f))}function ov(a,l,f,g){return g=typeof g=="function"?g:u,a==null?a:jf(a,l,Ws(f),g)}function ss(a){return a==null?[]:uo(a,hn(a))}function Td(a){return a==null?[]:uo(a,yn(a))}function Rd(a,l,f){return f===u&&(f=l,l=u),f!==u&&(f=Na(f),f=f===f?f:0),l!==u&&(l=Na(l),l=l===l?l:0),Ga(Na(a),l,f)}function pc(a,l,f){return l=ur(l),f===u?(f=l,l=0):f=ur(f),a=Na(a),Yh(a,l,f)}function Nd(a,l,f){if(f&&typeof f!="boolean"&&Gn(a,l,f)&&(l=f=u),f===u&&(typeof l=="boolean"?(f=l,l=u):typeof a=="boolean"&&(f=a,a=u)),a===u&&l===u?(a=0,l=1):(a=ur(a),l===u?(l=a,a=0):l=ur(l)),a>l){var g=a;a=l,l=g}if(f||a%1||l%1){var A=vf();return It(a+A*(l-a+Ms("1e-"+((A+"").length-1))),l)}return Do(a,l)}var mg=Hn(function(a,l,f){return l=l.toLowerCase(),a+(f?vc(l):l)});function vc(a){return s(pt(a).toLowerCase())}function Br(a){return a=pt(a),a&&a.replace(gl,oo).replace(pr,"")}function pi(a,l,f){a=pt(a),l=Jn(l);var g=a.length;f=f===u?g:Ga(Xe(f),0,g);var A=f;return f-=l.length,f>=0&&a.slice(f,A)==l}function vi(a){return a=pt(a),a&&Jd.test(a)?a.replace(cl,yh):a}function Ou(a){return a=pt(a),a&&Yn.test(a)?a.replace(pn,"\\$&"):a}var Cu=Hn(function(a,l,f){return a+(f?"-":"")+l.toLowerCase()}),Ai=Hn(function(a,l,f){return a+(f?" ":"")+l.toLowerCase()}),cv=fa("toLowerCase");function gg(a,l,f){a=pt(a),l=Xe(l);var g=l?$a(a):0;if(!l||g>=l)return a;var A=(l-g)/2;return nu(Ar(A),f)+a+nu(Nl(A),f)}function Tu(a,l,f){a=pt(a),l=Xe(l);var g=l?$a(a):0;return l&&g<l?a+nu(l-g,f):a}function fv(a,l,f){a=pt(a),l=Xe(l);var g=l?$a(a):0;return l&&g<l?nu(l-g,f)+a:a}function pg(a,l,f){return f||l==null?l=0:l&&(l=+l),zi(pt(a).replace(qr,""),l||0)}function Ac(a,l,f){return(f?Gn(a,l,f):l===u)?l=1:l=Xe(l),Uf(pt(a),l)}function vg(){var a=arguments,l=pt(a[0]);return a.length<3?l:l.replace(a[1],a[2])}var dv=Hn(function(a,l,f){return a+(f?"_":"")+l.toLowerCase()});function bc(a,l,f){return f&&typeof f!="number"&&Gn(a,l,f)&&(l=f=u),f=f===u?K:f>>>0,f?(a=pt(a),a&&(typeof l=="string"||l!=null&&!cc(l))&&(l=Jn(l),!l&&Xr(a))?ai(ya(a),0,f):a.split(l,f)):[]}var yc=Hn(function(a,l,f){return a+(f?" ":"")+s(l)});function Ag(a,l,f){return a=pt(a),f=f==null?0:Ga(Xe(f),0,a.length),l=Jn(l),a.slice(f,f+l.length)==l}function Ru(a,l,f){var g=x.templateSettings;f&&Gn(a,l,f)&&(l=u),a=pt(a),l=dc({},l,g,Go);var A=dc({},l.imports,g.imports,Go),E=hn(A),R=uo(A,E),B,j,le=0,oe=l.interpolate||Qu,he="__p += '",Me=ho((l.escape||Qu).source+"|"+oe.source+"|"+(oe===Vu?dl:Qu).source+"|"+(l.evaluate||Qu).source+"|$","g"),Ne="//# sourceURL="+(gt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sh+"]")+`
`;a.replace(Me,function(Ve,ut,mt,Qa,pa,Ka){return mt||(mt=Qa),he+=a.slice(le,Ka).replace(nh,_h),ut&&(B=!0,he+=`' +
__e(`+ut+`) +
'`),pa&&(j=!0,he+=`';
`+pa+`;
__p += '`),mt&&(he+=`' +
((__t = (`+mt+`)) == null ? '' : __t) +
'`),le=Ka+Ve.length,Ve}),he+=`';
`;var qe=gt.call(l,"variable")&&l.variable;if(!qe)he=`with (obj) {
`+he+`
}
`;else if(Gc.test(qe))throw new Ie(b);he=(j?he.replace(kc,""):he).replace(Cn,"$1").replace(Yu,"$1;"),he="function("+(qe||"obj")+`) {
`+(qe?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(B?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+he+`return __p
}`;var et=d(function(){return ft(E,Ne+"return "+he).apply(u,R)});if(et.source=he,dn(et))throw et;return et}function Dd(a){return pt(a).toLowerCase()}function _c(a){return pt(a).toUpperCase()}function bg(a,l,f){if(a=pt(a),a&&(f||l===u))return bh(a);if(!a||!(l=Jn(l)))return a;var g=ya(a),A=ya(l),E=wl(g,A),R=Ml(g,A)+1;return ai(g,E,R).join("")}function hv(a,l,f){if(a=pt(a),a&&(f||l===u))return a.slice(0,df(a)+1);if(!a||!(l=Jn(l)))return a;var g=ya(a),A=Ml(g,ya(l))+1;return ai(g,0,A).join("")}function xc(a,l,f){if(a=pt(a),a&&(f||l===u))return a.replace(qr,"");if(!a||!(l=Jn(l)))return a;var g=ya(a),A=wl(g,ya(l));return ai(g,A).join("")}function e(a,l){var f=ze,g=Ee;if(Vt(l)){var A="separator"in l?l.separator:A;f="length"in l?Xe(l.length):f,g="omission"in l?Jn(l.omission):g}a=pt(a);var E=a.length;if(Xr(a)){var R=ya(a);E=R.length}if(f>=E)return a;var B=f-$a(g);if(B<1)return g;var j=R?ai(R,0,B).join(""):a.slice(0,B);if(A===u)return j+g;if(R&&(B+=j.length-B),cc(A)){if(a.slice(B).search(A)){var le,oe=j;for(A.global||(A=ho(A.source,pt(hl.exec(A))+"g")),A.lastIndex=0;le=A.exec(oe);)var he=le.index;j=j.slice(0,he===u?B:he)}}else if(a.indexOf(Jn(A),B)!=B){var Me=j.lastIndexOf(A);Me>-1&&(j=j.slice(0,Me))}return j+g}function t(a){return a=pt(a),a&&up.test(a)?a.replace(qu,wh):a}var n=Hn(function(a,l,f){return a+(f?" ":"")+l.toUpperCase()}),s=fa("toUpperCase");function c(a,l,f){return a=pt(a),l=f?u:l,l===u?xh(a)?wp(a):yp(a):a.match(l)||[]}var d=Pe(function(a,l){try{return Vn(a,u,l)}catch(f){return dn(f)?f:new Ie(f)}}),v=Ht(function(a,l){return ba(l,function(f){f=yt(f),Ha(a,f,hi(a[f],a))}),a});function S(a){var l=a==null?0:a.length,f=Ue();return a=l?Gt(a,function(g){if(typeof g[1]!="function")throw new ua(p);return[f(g[0]),g[1]]}):[],Pe(function(g){for(var A=-1;++A<l;){var E=a[A];if(Vn(E[0],this,g))return Vn(E[1],this,g)}})}function N(a){return Hh(Tn(a,C))}function Y(a){return function(){return a}}function ne(a,l){return a==null||a!==a?l:a}var ue=nr(),X=nr(!0);function V(a){return a}function He(a){return Rf(typeof a=="function"?a:Tn(a,C))}function ke(a){return Df(Tn(a,C))}function Nt(a,l){return To(a,Tn(l,C))}var U=Pe(function(a,l){return function(f){return Yi(f,a,l)}}),L=Pe(function(a,l){return function(f){return Yi(a,f,l)}});function I(a,l,f){var g=hn(l),A=ni(l,g);f==null&&!(Vt(l)&&(A.length||!g.length))&&(f=l,l=a,a=this,A=ni(l,hn(l)));var E=!(Vt(f)&&"chain"in f)||!!f.chain,R=qa(a);return ba(A,function(B){var j=l[B];a[B]=j,R&&(a.prototype[B]=function(){var le=this.__chain__;if(E||le){var oe=a(this.__wrapped__),he=oe.__actions__=on(this.__actions__);return he.push({func:j,args:arguments,thisArg:a}),oe.__chain__=le,oe}return j.apply(a,vr([this.value()],arguments))})}),a}function re(){return an._===this&&(an._=Tl),this}function Oe(){}function $e(a){return a=Xe(a),Pe(function(l){return Bf(l,a)})}var De=tu(Gt),Ge=tu(gh),_n=tu(uf);function ht(a){return Ko(a)?io(yt(a)):Qh(a)}function bi(a){return function(l){return a==null?u:Ma(a,l)}}var mv=ri(),Mb=ri(!0);function gv(){return[]}function pv(){return!1}function Ob(){return{}}function Cb(){return""}function Tb(){return!0}function Rb(a,l){if(a=Xe(a),a<1||a>J)return[];var f=K,g=It(a,K);l=Ue(l),a-=K;for(var A=Zr(g,l);++f<a;)l(f);return A}function Nb(a){return Qe(a)?Gt(a,yt):In(a)?[a]:on(ir(pt(a)))}function Db(a){var l=++Ua;return pt(a)+l}var Bb=Gl(function(a,l){return a+l},0),Lb=Ho("ceil"),zb=Gl(function(a,l){return a/l},1),Ub=Ho("floor");function kb(a){return a&&a.length?Ia(a,V,Is):u}function jb(a,l){return a&&a.length?Ia(a,Ue(l,2),Is):u}function Hb(a){return vh(a,V)}function Gb(a,l){return vh(a,Ue(l,2))}function Ib(a){return a&&a.length?Ia(a,V,Co):u}function Yb(a,l){return a&&a.length?Ia(a,Ue(l,2),Co):u}var qb=Gl(function(a,l){return a*l},1),Vb=Ho("round"),Qb=Gl(function(a,l){return a-l},0);function Kb(a){return a&&a.length?so(a,V):0}function Zb(a,l){return a&&a.length?so(a,Ue(l,2)):0}return x.after=Gp,x.ary=qm,x.assign=Wp,x.assignIn=ig,x.assignInWith=dc,x.assignWith=Fp,x.at=$p,x.before=pu,x.bind=hi,x.bindAll=v,x.bindKey=ac,x.castArray=Vp,x.chain=Fl,x.chunk=Bp,x.compact=pm,x.concat=vm,x.cond=S,x.conforms=N,x.constant=Y,x.countBy=$l,x.create=ev,x.curry=vu,x.curryRight=rc,x.debounce=mi,x.defaults=tv,x.defaultsDeep=lg,x.defer=sr,x.delay=Au,x.difference=qt,x.differenceBy=Fn,x.differenceWith=Tr,x.drop=Am,x.dropRight=bm,x.dropRightWhile=Lp,x.dropWhile=Ff,x.fill=da,x.filter=Nm,x.flatMap=dd,x.flatMapDeep=kp,x.flatMapDepth=jp,x.flatten=$n,x.flattenDeep=ym,x.flattenDepth=si,x.flip=Ip,x.flow=ue,x.flowRight=X,x.fromPairs=Ji,x.functions=ug,x.functionsIn=hc,x.groupBy=Lm,x.initial=td,x.intersection=lr,x.intersectionBy=_m,x.intersectionWith=Vl,x.invert=og,x.invertBy=cg,x.invokeMap=ec,x.iteratee=He,x.keyBy=zm,x.keys=hn,x.keysIn=yn,x.map=gu,x.mapKeys=rv,x.mapValues=iv,x.matches=ke,x.matchesProperty=Nt,x.memoize=bu,x.merge=lv,x.mergeWith=Mu,x.method=U,x.methodOf=L,x.mixin=I,x.negate=yu,x.nthArg=$e,x.omit=mc,x.omitBy=wd,x.once=Vm,x.orderBy=Um,x.over=De,x.overArgs=Qm,x.overEvery=Ge,x.overSome=_n,x.partial=gd,x.partialRight=ic,x.partition=km,x.pick=sv,x.pickBy=ls,x.property=ht,x.propertyOf=bi,x.pull=Sm,x.pullAll=Kl,x.pullAllBy=Em,x.pullAllWith=Fo,x.pullAt=wm,x.range=mv,x.rangeRight=Mb,x.rearg=Km,x.reject=tc,x.remove=zp,x.rest=Zm,x.reverse=nd,x.sampleSize=Im,x.set=fg,x.setWith=dg,x.shuffle=zt,x.slice=wt,x.sortBy=Ym,x.sortedUniq=Zl,x.sortedUniqBy=ad,x.split=bc,x.spread=Yp,x.tail=Nr,x.take=en,x.takeRight=oi,x.takeRightWhile=Wi,x.takeWhile=rd,x.tap=od,x.throttle=pd,x.thru=Dn,x.toArray=ga,x.toPairs=Md,x.toPairsIn=Od,x.toPath=Nb,x.toPlainObject=rg,x.transform=Cd,x.unary=vd,x.union=Ta,x.unionBy=Xl,x.unionWith=hu,x.uniq=ea,x.uniqBy=id,x.uniqWith=ld,x.unset=hg,x.unzip=Pl,x.unzipWith=mu,x.update=gc,x.updateWith=ov,x.values=ss,x.valuesIn=Td,x.without=ci,x.words=c,x.wrap=qp,x.xor=En,x.xorBy=fi,x.xorWith=Jl,x.zip=Wl,x.zipObject=sd,x.zipObjectDeep=ud,x.zipWith=Mm,x.entries=Md,x.entriesIn=Od,x.extend=ig,x.extendWith=dc,I(x,x),x.add=Bb,x.attempt=d,x.camelCase=mg,x.capitalize=vc,x.ceil=Lb,x.clamp=Rd,x.clone=_u,x.cloneDeep=Xm,x.cloneDeepWith=nt,x.cloneWith=Qp,x.conformsTo=Ad,x.deburr=Br,x.defaultTo=ne,x.divide=zb,x.endsWith=pi,x.eq=ta,x.escape=vi,x.escapeRegExp=Ou,x.every=Rm,x.find=Dm,x.findIndex=Ca,x.findKey=as,x.findLast=fd,x.findLastIndex=$f,x.findLastKey=Su,x.floor=Ub,x.forEach=Bm,x.forEachRight=hd,x.forIn=sg,x.forInRight=nv,x.forOwn=rs,x.forOwnRight=Eu,x.get=wu,x.gt=bd,x.gte=Pm,x.has=Ed,x.hasIn=is,x.head=Rr,x.identity=V,x.includes=es,x.indexOf=ed,x.inRange=pc,x.invoke=av,x.isArguments=Dr,x.isArray=Qe,x.isArrayBuffer=lc,x.isArrayLike=fn,x.isArrayLikeObject=tn,x.isBoolean=Kp,x.isBuffer=gi,x.isDate=Jm,x.isElement=Wm,x.isEmpty=sc,x.isEqual=Rt,x.isEqualWith=yd,x.isError=dn,x.isFinite=Zp,x.isFunction=qa,x.isInteger=uc,x.isLength=Fi,x.isMap=oc,x.isMatch=_d,x.isMatchWith=Xp,x.isNaN=Fm,x.isNative=Pp,x.isNil=Jp,x.isNull=$m,x.isNumber=eg,x.isObject=Vt,x.isObjectLike=Xt,x.isPlainObject=Ra,x.isRegExp=cc,x.isSafeInteger=xd,x.isSet=tg,x.isString=fc,x.isSymbol=In,x.isTypedArray=ts,x.isUndefined=Va,x.isWeakMap=Sd,x.isWeakSet=ng,x.join=du,x.kebabCase=Cu,x.last=Nn,x.lastIndexOf=Ql,x.lowerCase=Ai,x.lowerFirst=cv,x.lt=ag,x.lte=xu,x.max=kb,x.maxBy=jb,x.mean=Hb,x.meanBy=Gb,x.min=Ib,x.minBy=Yb,x.stubArray=gv,x.stubFalse=pv,x.stubObject=Ob,x.stubString=Cb,x.stubTrue=Tb,x.multiply=qb,x.nth=xm,x.noConflict=re,x.noop=Oe,x.now=nc,x.pad=gg,x.padEnd=Tu,x.padStart=fv,x.parseInt=pg,x.random=Nd,x.reduce=jm,x.reduceRight=Hm,x.repeat=Ac,x.replace=vg,x.result=uv,x.round=Vb,x.runInContext=z,x.sample=Gm,x.size=md,x.snakeCase=dv,x.some=Hp,x.sortedIndex=Ut,x.sortedIndexBy=tt,x.sortedIndexOf=ct,x.sortedLastIndex=Mt,x.sortedLastIndexBy=ha,x.sortedLastIndexOf=ui,x.startCase=yc,x.startsWith=Ag,x.subtract=Qb,x.sum=Kb,x.sumBy=Zb,x.template=Ru,x.times=Rb,x.toFinite=ur,x.toInteger=Xe,x.toLength=or,x.toLower=Dd,x.toNumber=Na,x.toSafeInteger=ns,x.toString=pt,x.toUpper=_c,x.trim=bg,x.trimEnd=hv,x.trimStart=xc,x.truncate=e,x.unescape=t,x.uniqueId=Db,x.upperCase=n,x.upperFirst=s,x.each=Bm,x.eachRight=hd,x.first=Rr,I(x,(function(){var a={};return Rn(x,function(l,f){gt.call(x.prototype,f)||(a[f]=l)}),a})(),{chain:!1}),x.VERSION=o,ba(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){x[a].placeholder=x}),ba(["drop","take"],function(a,l){Fe.prototype[a]=function(f){f=f===u?1:jt(Xe(f),0);var g=this.__filtered__&&!l?new Fe(this):this.clone();return g.__filtered__?g.__takeCount__=It(f,g.__takeCount__):g.__views__.push({size:It(f,K),type:a+(g.__dir__<0?"Right":"")}),g},Fe.prototype[a+"Right"]=function(f){return this.reverse()[a](f).reverse()}}),ba(["filter","map","takeWhile"],function(a,l){var f=l+1,g=f==ye||f==D;Fe.prototype[a]=function(A){var E=this.clone();return E.__iteratees__.push({iteratee:Ue(A,3),type:f}),E.__filtered__=E.__filtered__||g,E}}),ba(["head","last"],function(a,l){var f="take"+(l?"Right":"");Fe.prototype[a]=function(){return this[f](1).value()[0]}}),ba(["initial","tail"],function(a,l){var f="drop"+(l?"":"Right");Fe.prototype[a]=function(){return this.__filtered__?new Fe(this):this[f](1)}}),Fe.prototype.compact=function(){return this.filter(V)},Fe.prototype.find=function(a){return this.filter(a).head()},Fe.prototype.findLast=function(a){return this.reverse().find(a)},Fe.prototype.invokeMap=Pe(function(a,l){return typeof a=="function"?new Fe(this):this.map(function(f){return Yi(f,a,l)})}),Fe.prototype.reject=function(a){return this.filter(yu(Ue(a)))},Fe.prototype.slice=function(a,l){a=Xe(a);var f=this;return f.__filtered__&&(a>0||l<0)?new Fe(f):(a<0?f=f.takeRight(-a):a&&(f=f.drop(a)),l!==u&&(l=Xe(l),f=l<0?f.dropRight(-l):f.take(l-a)),f)},Fe.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Fe.prototype.toArray=function(){return this.take(K)},Rn(Fe.prototype,function(a,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),A=x[g?"take"+(l=="last"?"Right":""):l],E=g||/^find/.test(l);A&&(x.prototype[l]=function(){var R=this.__wrapped__,B=g?[1]:arguments,j=R instanceof Fe,le=B[0],oe=j||Qe(R),he=function(ut){var mt=A.apply(x,vr([ut],B));return g&&Me?mt[0]:mt};oe&&f&&typeof le=="function"&&le.length!=1&&(j=oe=!1);var Me=this.__chain__,Ne=!!this.__actions__.length,qe=E&&!Me,et=j&&!Ne;if(!E&&oe){R=et?R:new Fe(this);var Ve=a.apply(R,B);return Ve.__actions__.push({func:Dn,args:[he],thisArg:u}),new Zn(Ve,Me)}return qe&&et?a.apply(this,B):(Ve=this.thru(he),qe?g?Ve.value()[0]:Ve.value():Ve)})}),ba(["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);x.prototype[a]=function(){var A=arguments;if(g&&!this.__chain__){var E=this.value();return l.apply(Qe(E)?E:[],A)}return this[f](function(R){return l.apply(Qe(R)?R:[],A)})}}),Rn(Fe.prototype,function(a,l){var f=x[l];if(f){var g=f.name+"";gt.call(Ea,g)||(Ea[g]=[]),Ea[g].push({name:l,func:f})}}),Ea[$t(u,ie).name]=[{name:"wrapper",func:u}],Fe.prototype.clone=Us,Fe.prototype.reverse=Ao,Fe.prototype.value=ki,x.prototype.at=Om,x.prototype.chain=ma,x.prototype.commit=Cm,x.prototype.next=Tm,x.prototype.plant=di,x.prototype.reverse=$o,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=cd,x.prototype.first=x.prototype.head,Bi&&(x.prototype[Bi]=Up),x}),Jr=Ol();Kr?((Kr.exports=Jr)._=Jr,_l._=Jr):an._=Jr}).call(ay)})(Ud,Ud.exports)),Ud.exports}var Lv=ry();const J0=A0(Lv),Pt={auth:r=>kt.call("auth",r,[]),channelClose:r=>kt.call("channelClose",r,[]),channelDeleteMessage:r=>kt.call("channelDeleteMessage",r,[]),channelDocumentUpload:r=>kt.callFormData("channelDocumentUpload",r),channelInfo:(r,i)=>kt.call("channelInfo",r,i),channelList:(r,i)=>kt.call("channelList",r,i),channelListLastMaxUpdated:()=>kt.call("channelListLastMaxUpdated",{},[]),channelMessages:(r,i)=>kt.call("channelMessages",r,i),channelMessagesLastMaxUpdated:r=>kt.call("channelMessagesLastMaxUpdated",r,[]),channelReaction:r=>kt.call("channelReaction",r,[]),channelSendMessage:(r,i)=>kt.call("channelSendMessage",r,i),channelVoiceUpload:r=>kt.callFormData("channelVoiceUpload",r),fastAnswers:()=>kt.call("fastAnswers",{},[]),joinChannel:r=>kt.call("joinChannel",r,[]),joinChannelLastMaxUpdated:()=>kt.call("joinChannelLastMaxUpdated",{},[]),joinChannelList:(r,i)=>kt.call("joinChannelList",r,i),mFastAnswers:r=>kt.call("mFastAnswers",r,[]),mode:()=>kt.call("mode",{},[]),pinnedMessage:r=>kt.call("pinnedMessage",r,[]),profileID:()=>kt.call("profileID",{},[])},iy=Pt.mFastAnswers,W0=()=>"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)}),ly=(r,i)=>{const u=new TextEncoder().encode(r),o=new TextEncoder().encode(i),h=new Uint8Array(u.length);for(let m=0;m<u.length;m++)h[m]=u[m]^o[m%o.length];return btoa(String.fromCharCode(...Array.from(h)))},_g=(r,i)=>{const u=atob(r),o=new Uint8Array(u.length);for(let p=0;p<u.length;p++)o[p]=u.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 kt{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 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 u=parseInt(i,10);!isNaN(u)&&u>=0&&u<this.endpoints.length&&(this.currentEndpointIndex=u)}}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 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,u){await this.waitForEndpoints();const o=this.getCurrentEndpoint();u.append("method",i);let h=await this.getTokenAsync();h&&u.append("token",h),u.append("timezone",Intl.DateTimeFormat().resolvedOptions().timeZone);const m=this.useEncrypt?W0():void 0;this.useEncrypt&&m&&u.append("context",m);const p={...this.headers};delete p["Content-Type"];const b=new AbortController,_=setTimeout(()=>{b.abort()},this.abortControllerTimeout);return fetch(o,{method:"POST",headers:p,body:u,signal:b.signal}).then(y=>y.json()).then(y=>{if(clearTimeout(_),this.useEncrypt&&m&&(y.result&&(y.result=JSON.parse(_g(y.result,m))),y.extensions&&(y.extensions=JSON.parse(_g(y.extensions,m)))),y?.error)throw this.handleError(y.error),y.error;return this.saveEndpointIndex(),y.result}).catch(y=>{throw clearTimeout(_),this.isNetworkError(y)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextEndpoint()),y})}static async call(i,u,o){await this.waitForEndpoints();const h=this.getCurrentEndpoint(),m=this.useEncrypt?W0():void 0;let p=o??this.defaultExtensions;const b=await this.getTokenAsync(),_={method:i,extensions:p,context:m,token:b,params:u?m?ly(JSON.stringify(u??{}),m):u:void 0,id:Date.now().toString()};console.log("🚀🚀🚀 method: ",i," RPC Endpoint: ",h),console.log("🚀🚀🚀 method: ",i," RPC Body: ",JSON.stringify(_));const y=new AbortController,M=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(_),signal:y.signal}).then(C=>C.json()).then(C=>{if(clearTimeout(M),this.useEncrypt&&m&&(C.result&&(C.result=JSON.parse(_g(C.result,m))),C.extensions&&(C.extensions=JSON.parse(_g(C.extensions,m)))),console.log("🍪🍪🍪 method: ",i," RPC Response: ",JSON.stringify(C)),C?.error)throw this.handleError(C.error),C.error;return this.saveEndpointIndex(),C?.extensions&&b0.addToStore(C.extensions),C}).catch(C=>{throw clearTimeout(M),this.isNetworkError(C)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextEndpoint()),console.log("🛑🛑🛑 RPC Error: ",JSON.stringify(_)),C})}}class b0{static storage=null;static setStorage(i){this.storage=i}static async loadFromStorage(){if(this.storage){const i=await this.storage.get("extensionsStore");if(i)try{let u=JSON.parse(i);Lv.map(u,(o,h)=>{o&&(this.store?.[h]?this.store[h]={...this.store[h],...o}:this.store[h]=o)})}catch(u){console.error("⚠️ Ошибка при загрузке extensionsStore из storage:",u)}}}static saveToStorage=Lv.debounce(()=>{this.storage&&this.storage.save("extensionsStore",JSON.stringify(this.store))},1e3);static store={shmChannelMessages:{},shmChannels:{}};static addToStore(i){if(i?.shmChannelMessages&&i?.shmChannelMessages.length>0)for(const u of i?.shmChannelMessages)u?._id&&(this.store.shmChannelMessages[u._id]=u);if(i?.shmChannels&&i?.shmChannels.length>0)for(const u of i?.shmChannels)u?._id&&(this.store.shmChannels[u._id]=u);this.saveToStorage()}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[];const u=[];for(const o of i)this.store.shmChannelMessages[o]&&u.push(this.store.shmChannelMessages[o]);return u.length===0&&console.info("📕 Extensions shmChannelMessages not found by IDs: "+i.join(", ")),u}static shmChannelsByIDs(i){if(!i)return[];const u=[];for(const o of i)this.store.shmChannels[o]&&u.push(this.store.shmChannels[o]);return u.length===0&&console.info("📕 Extensions shmChannels not found by IDs: "+i.join(", ")),u}}var Og={exports:{}},Cg={exports:{}},sy=Cg.exports,F0;function q1(){return F0||(F0=1,(function(r,i){(function(u,o){r.exports=o()})(sy,(function(){var u=1e3,o=6e4,h=36e5,m="millisecond",p="second",b="minute",_="hour",y="day",M="week",C="month",H="quarter",q="year",k="date",Q="Invalid Date",G=/^(\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(ye){var ae=["th","st","nd","rd"],D=ye%100;return"["+ye+(ae[(D-20)%10]||ae[D]||ae[0])+"]"}},me=function(ye,ae,D){var Z=String(ye);return!Z||Z.length>=ae?ye:""+Array(ae+1-Z.length).join(D)+ye},Ae={s:me,z:function(ye){var ae=-ye.utcOffset(),D=Math.abs(ae),Z=Math.floor(D/60),J=D%60;return(ae<=0?"+":"-")+me(Z,2,"0")+":"+me(J,2,"0")},m:function ye(ae,D){if(ae.date()<D.date())return-ye(D,ae);var Z=12*(D.year()-ae.year())+(D.month()-ae.month()),J=ae.clone().add(Z,C),ve=D-J<0,w=ae.clone().add(Z+(ve?-1:1),C);return+(-(Z+(D-J)/(ve?J-w:w-J))||0)},a:function(ye){return ye<0?Math.ceil(ye)||0:Math.floor(ye)},p:function(ye){return{M:C,y:q,w:M,d:y,D:k,h:_,m:b,s:p,ms:m,Q:H}[ye]||String(ye||"").toLowerCase().replace(/s$/,"")},u:function(ye){return ye===void 0}},te="en",de={};de[te]=ce;var ge="$isDayjsObject",F=function(ye){return ye instanceof Le||!(!ye||!ye[ge])},_e=function ye(ae,D,Z){var J;if(!ae)return te;if(typeof ae=="string"){var ve=ae.toLowerCase();de[ve]&&(J=ve),D&&(de[ve]=D,J=ve);var w=ae.split("-");if(!J&&w.length>1)return ye(w[0])}else{var K=ae.name;de[K]=ae,J=K}return!Z&&J&&(te=J),J||!Z&&te},ze=function(ye,ae){if(F(ye))return ye.clone();var D=typeof ae=="object"?ae:{};return D.date=ye,D.args=arguments,new Le(D)},Ee=Ae;Ee.l=_e,Ee.i=F,Ee.w=function(ye,ae){return ze(ye,{locale:ae.$L,utc:ae.$u,x:ae.$x,$offset:ae.$offset})};var Le=(function(){function ye(D){this.$L=_e(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[ge]=!0}var ae=ye.prototype;return ae.parse=function(D){this.$d=(function(Z){var J=Z.date,ve=Z.utc;if(J===null)return new Date(NaN);if(Ee.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var w=J.match(G);if(w){var K=w[2]-1||0,fe=(w[7]||"0").substring(0,3);return ve?new Date(Date.UTC(w[1],K,w[3]||1,w[4]||0,w[5]||0,w[6]||0,fe)):new Date(w[1],K,w[3]||1,w[4]||0,w[5]||0,w[6]||0,fe)}}return new Date(J)})(D),this.init()},ae.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},ae.$utils=function(){return Ee},ae.isValid=function(){return this.$d.toString()!==Q},ae.isSame=function(D,Z){var J=ze(D);return this.startOf(Z)<=J&&J<=this.endOf(Z)},ae.isAfter=function(D,Z){return ze(D)<this.startOf(Z)},ae.isBefore=function(D,Z){return this.endOf(Z)<ze(D)},ae.$g=function(D,Z,J){return Ee.u(D)?this[Z]:this.set(J,D)},ae.unix=function(){return Math.floor(this.valueOf()/1e3)},ae.valueOf=function(){return this.$d.getTime()},ae.startOf=function(D,Z){var J=this,ve=!!Ee.u(Z)||Z,w=Ee.p(D),K=function(Ye,rt){var xt=Ee.w(J.$u?Date.UTC(J.$y,rt,Ye):new Date(J.$y,rt,Ye),J);return ve?xt:xt.endOf(y)},fe=function(Ye,rt){return Ee.w(J.toDate()[Ye].apply(J.toDate("s"),(ve?[0,0,0,0]:[23,59,59,999]).slice(rt)),J)},se=this.$W,be=this.$M,xe=this.$D,pe="set"+(this.$u?"UTC":"");switch(w){case q:return ve?K(1,0):K(31,11);case C:return ve?K(1,be):K(0,be+1);case M:var ot=this.$locale().weekStart||0,je=(se<ot?se+7:se)-ot;return K(ve?xe-je:xe+(6-je),be);case y:case k:return fe(pe+"Hours",0);case _:return fe(pe+"Minutes",1);case b:return fe(pe+"Seconds",2);case p:return fe(pe+"Milliseconds",3);default:return this.clone()}},ae.endOf=function(D){return this.startOf(D,!1)},ae.$set=function(D,Z){var J,ve=Ee.p(D),w="set"+(this.$u?"UTC":""),K=(J={},J[y]=w+"Date",J[k]=w+"Date",J[C]=w+"Month",J[q]=w+"FullYear",J[_]=w+"Hours",J[b]=w+"Minutes",J[p]=w+"Seconds",J[m]=w+"Milliseconds",J)[ve],fe=ve===y?this.$D+(Z-this.$W):Z;if(ve===C||ve===q){var se=this.clone().set(k,1);se.$d[K](fe),se.init(),this.$d=se.set(k,Math.min(this.$D,se.daysInMonth())).$d}else K&&this.$d[K](fe);return this.init(),this},ae.set=function(D,Z){return this.clone().$set(D,Z)},ae.get=function(D){return this[Ee.p(D)]()},ae.add=function(D,Z){var J,ve=this;D=Number(D);var w=Ee.p(Z),K=function(be){var xe=ze(ve);return Ee.w(xe.date(xe.date()+Math.round(be*D)),ve)};if(w===C)return this.set(C,this.$M+D);if(w===q)return this.set(q,this.$y+D);if(w===y)return K(1);if(w===M)return K(7);var fe=(J={},J[b]=o,J[_]=h,J[p]=u,J)[w]||1,se=this.$d.getTime()+D*fe;return Ee.w(se,this)},ae.subtract=function(D,Z){return this.add(-1*D,Z)},ae.format=function(D){var Z=this,J=this.$locale();if(!this.isValid())return J.invalidDate||Q;var ve=D||"YYYY-MM-DDTHH:mm:ssZ",w=Ee.z(this),K=this.$H,fe=this.$m,se=this.$M,be=J.weekdays,xe=J.months,pe=J.meridiem,ot=function(rt,xt,Ot,Wt){return rt&&(rt[xt]||rt(Z,ve))||Ot[xt].slice(0,Wt)},je=function(rt){return Ee.s(K%12||12,rt,"0")},Ye=pe||function(rt,xt,Ot){var Wt=rt<12?"AM":"PM";return Ot?Wt.toLowerCase():Wt};return ve.replace(ie,(function(rt,xt){return xt||(function(Ot){switch(Ot){case"YY":return String(Z.$y).slice(-2);case"YYYY":return Ee.s(Z.$y,4,"0");case"M":return se+1;case"MM":return Ee.s(se+1,2,"0");case"MMM":return ot(J.monthsShort,se,xe,3);case"MMMM":return ot(xe,se);case"D":return Z.$D;case"DD":return Ee.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return ot(J.weekdaysMin,Z.$W,be,2);case"ddd":return ot(J.weekdaysShort,Z.$W,be,3);case"dddd":return be[Z.$W];case"H":return String(K);case"HH":return Ee.s(K,2,"0");case"h":return je(1);case"hh":return je(2);case"a":return Ye(K,fe,!0);case"A":return Ye(K,fe,!1);case"m":return String(fe);case"mm":return Ee.s(fe,2,"0");case"s":return String(Z.$s);case"ss":return Ee.s(Z.$s,2,"0");case"SSS":return Ee.s(Z.$ms,3,"0");case"Z":return w}return null})(rt)||w.replace(":","")}))},ae.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ae.diff=function(D,Z,J){var ve,w=this,K=Ee.p(Z),fe=ze(D),se=(fe.utcOffset()-this.utcOffset())*o,be=this-fe,xe=function(){return Ee.m(w,fe)};switch(K){case q:ve=xe()/12;break;case C:ve=xe();break;case H:ve=xe()/3;break;case M:ve=(be-se)/6048e5;break;case y:ve=(be-se)/864e5;break;case _:ve=be/h;break;case b:ve=be/o;break;case p:ve=be/u;break;default:ve=be}return J?ve:Ee.a(ve)},ae.daysInMonth=function(){return this.endOf(C).$D},ae.$locale=function(){return de[this.$L]},ae.locale=function(D,Z){if(!D)return this.$L;var J=this.clone(),ve=_e(D,Z,!0);return ve&&(J.$L=ve),J},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()},ye})(),Ke=Le.prototype;return ze.prototype=Ke,[["$ms",m],["$s",p],["$m",b],["$H",_],["$W",y],["$M",C],["$y",q],["$D",k]].forEach((function(ye){Ke[ye[1]]=function(ae){return this.$g(ae,ye[0],ye[1])}})),ze.extend=function(ye,ae){return ye.$i||(ye(ae,Le,ze),ye.$i=!0),ze},ze.locale=_e,ze.isDayjs=F,ze.unix=function(ye){return ze(1e3*ye)},ze.en=de[te],ze.Ls=de,ze.p={},ze}))})(Cg)),Cg.exports}var uy=Og.exports,$0;function oy(){return $0||($0=1,(function(r,i){(function(u,o){r.exports=o(q1())})(uy,(function(u){function o(k){return k&&typeof k=="object"&&"default"in k?k:{default:k}}var h=o(u),m="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),p="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),b="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),_="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),y=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function M(k,Q,G){var ie,ce;return G==="m"?Q?"минута":"минуту":k+" "+(ie=+k,ce={mm:Q?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[G].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 C=function(k,Q){return y.test(Q)?m[k.month()]:p[k.month()]};C.s=p,C.f=m;var H=function(k,Q){return y.test(Q)?b[k.month()]:_[k.month()]};H.s=_,H.f=b;var q={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:C,monthsShort:H,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:M,mm:M,h:"час",hh:M,d:"день",dd:M,M:"месяц",MM:M,y:"год",yy:M},ordinal:function(k){return k},meridiem:function(k){return k<4?"ночи":k<12?"утра":k<17?"дня":"вечера"}};return h.default.locale(q,null,!0),q}))})(Og)),Og.exports}oy();var $=Pg();const P=A0($);var cy=q1();const ul=A0(cy),Lc=P.createContext({theme:"material",dark:!0,materialTouchRipple:!0,iosHoverHighlight:!0});function fy(r,i){return typeof window>"u"?$.useEffect(r,i):$.useLayoutEffect(r,i)}const V1=(r,i=!0)=>{const[u,o]=$.useState(r);return fy(()=>{if(i){if(r==="ios"||r==="material")u!==r&&o(r);else if(u==="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?u:r},dy=r=>{const{theme:i,dark:u,materialTouchRipple:o=!0,iosHoverHighlight:h=!0,autoThemeDetection:m=!0,children:p}=r,b=V1(i,m);return P.createElement(Lc.Provider,{value:{theme:b,dark:u,materialTouchRipple:o,iosHoverHighlight:h}},p)},hy=(r,i)=>{const u=new Array(r.length+i.length);for(let o=0;o<r.length;o++)u[o]=r[o];for(let o=0;o<i.length;o++)u[r.length+o]=i[o];return u},my=(r,i)=>({classGroupId:r,validator:i}),Q1=(r=new Map,i=null,u)=>({nextPart:r,validators:i,classGroupId:u}),Dg="-",e1=[],gy="arbitrary..",py=r=>{const i=Ay(r),{conflictingClassGroups:u,conflictingClassGroupModifiers:o}=r;return{getClassGroupId:p=>{if(p.startsWith("[")&&p.endsWith("]"))return vy(p);const b=p.split(Dg),_=b[0]===""&&b.length>1?1:0;return K1(b,_,i)},getConflictingClassGroupIds:(p,b)=>{if(b){const _=o[p],y=u[p];return _?y?hy(y,_):_:y||e1}return u[p]||e1}}},K1=(r,i,u)=>{if(r.length-i===0)return u.classGroupId;const h=r[i],m=u.nextPart.get(h);if(m){const y=K1(r,i+1,m);if(y)return y}const p=u.validators;if(p===null)return;const b=i===0?r.join(Dg):r.slice(i).join(Dg),_=p.length;for(let y=0;y<_;y++){const M=p[y];if(M.validator(b))return M.classGroupId}},vy=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=r.slice(1,-1),u=i.indexOf(":"),o=i.slice(0,u);return o?gy+o:void 0})(),Ay=r=>{const{theme:i,classGroups:u}=r;return by(u,i)},by=(r,i)=>{const u=Q1();for(const o in r){const h=r[o];y0(h,u,o,i)}return u},y0=(r,i,u,o)=>{const h=r.length;for(let m=0;m<h;m++){const p=r[m];yy(p,i,u,o)}},yy=(r,i,u,o)=>{if(typeof r=="string"){_y(r,i,u);return}if(typeof r=="function"){xy(r,i,u,o);return}Sy(r,i,u,o)},_y=(r,i,u)=>{const o=r===""?i:Z1(i,r);o.classGroupId=u},xy=(r,i,u,o)=>{if(Ey(r)){y0(r(o),i,u,o);return}i.validators===null&&(i.validators=[]),i.validators.push(my(u,r))},Sy=(r,i,u,o)=>{const h=Object.entries(r),m=h.length;for(let p=0;p<m;p++){const[b,_]=h[p];y0(_,Z1(i,b),u,o)}},Z1=(r,i)=>{let u=r;const o=i.split(Dg),h=o.length;for(let m=0;m<h;m++){const p=o[m];let b=u.nextPart.get(p);b||(b=Q1(),u.nextPart.set(p,b)),u=b}return u},Ey=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,wy=r=>{if(r<1)return{get:()=>{},set:()=>{}};let i=0,u=Object.create(null),o=Object.create(null);const h=(m,p)=>{u[m]=p,i++,i>r&&(i=0,o=u,u=Object.create(null))};return{get(m){let p=u[m];if(p!==void 0)return p;if((p=o[m])!==void 0)return h(m,p),p},set(m,p){m in u?u[m]=p:h(m,p)}}},zv="!",t1=":",My=[],n1=(r,i,u,o,h)=>({modifiers:r,hasImportantModifier:i,baseClassName:u,maybePostfixModifierPosition:o,isExternal:h}),Oy=r=>{const{prefix:i,experimentalParseClassName:u}=r;let o=h=>{const m=[];let p=0,b=0,_=0,y;const M=h.length;for(let Q=0;Q<M;Q++){const G=h[Q];if(p===0&&b===0){if(G===t1){m.push(h.slice(_,Q)),_=Q+1;continue}if(G==="/"){y=Q;continue}}G==="["?p++:G==="]"?p--:G==="("?b++:G===")"&&b--}const C=m.length===0?h:h.slice(_);let H=C,q=!1;C.endsWith(zv)?(H=C.slice(0,-1),q=!0):C.startsWith(zv)&&(H=C.slice(1),q=!0);const k=y&&y>_?y-_:void 0;return n1(m,q,H,k)};if(i){const h=i+t1,m=o;o=p=>p.startsWith(h)?m(p.slice(h.length)):n1(My,!1,p,void 0,!0)}if(u){const h=o;o=m=>u({className:m,parseClassName:h})}return o},Cy=r=>{const i=new Map;return r.orderSensitiveModifiers.forEach((u,o)=>{i.set(u,1e6+o)}),u=>{const o=[];let h=[];for(let m=0;m<u.length;m++){const p=u[m],b=p[0]==="[",_=i.has(p);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}},Ty=r=>({cache:wy(r.cacheSize),parseClassName:Oy(r),sortModifiers:Cy(r),...py(r)}),Ry=/\s+/,Ny=(r,i)=>{const{parseClassName:u,getClassGroupId:o,getConflictingClassGroupIds:h,sortModifiers:m}=i,p=[],b=r.trim().split(Ry);let _="";for(let y=b.length-1;y>=0;y-=1){const M=b[y],{isExternal:C,modifiers:H,hasImportantModifier:q,baseClassName:k,maybePostfixModifierPosition:Q}=u(M);if(C){_=M+(_.length>0?" "+_:_);continue}let G=!!Q,ie=o(G?k.substring(0,Q):k);if(!ie){if(!G){_=M+(_.length>0?" "+_:_);continue}if(ie=o(k),!ie){_=M+(_.length>0?" "+_:_);continue}G=!1}const ce=H.length===0?"":H.length===1?H[0]:m(H).join(":"),me=q?ce+zv:ce,Ae=me+ie;if(p.indexOf(Ae)>-1)continue;p.push(Ae);const te=h(ie,G);for(let de=0;de<te.length;++de){const ge=te[de];p.push(me+ge)}_=M+(_.length>0?" "+_:_)}return _},Dy=(...r)=>{let i=0,u,o,h="";for(;i<r.length;)(u=r[i++])&&(o=X1(u))&&(h&&(h+=" "),h+=o);return h},X1=r=>{if(typeof r=="string")return r;let i,u="";for(let o=0;o<r.length;o++)r[o]&&(i=X1(r[o]))&&(u&&(u+=" "),u+=i);return u},By=(r,...i)=>{let u,o,h,m;const p=_=>{const y=i.reduce((M,C)=>C(M),r());return u=Ty(y),o=u.cache.get,h=u.cache.set,m=b,b(_)},b=_=>{const y=o(_);if(y)return y;const M=Ny(_,u);return h(_,M),M};return m=p,(..._)=>m(Dy(..._))},Ly=[],wn=r=>{const i=u=>u[r]||Ly;return i.isThemeGetter=!0,i},P1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zy=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Uy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ky=/\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$/,jy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Hy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,us=r=>zy.test(r),at=r=>!!r&&!Number.isNaN(Number(r)),os=r=>!!r&&Number.isInteger(Number(r)),Sv=r=>r.endsWith("%")&&at(r.slice(0,-1)),el=r=>Uy.test(r),W1=()=>!0,Iy=r=>ky.test(r)&&!jy.test(r),_0=()=>!1,Yy=r=>Hy.test(r),qy=r=>Gy.test(r),Vy=r=>!Te(r)&&!Re(r),Qy=r=>ds(r,eA,_0),Te=r=>P1.test(r),Nu=r=>ds(r,tA,Iy),a1=r=>ds(r,$y,at),Ky=r=>ds(r,aA,W1),Zy=r=>ds(r,nA,_0),r1=r=>ds(r,F1,_0),Xy=r=>ds(r,$1,qy),xg=r=>ds(r,rA,Yy),Re=r=>J1.test(r),zd=r=>ku(r,tA),Py=r=>ku(r,nA),i1=r=>ku(r,F1),Jy=r=>ku(r,eA),Wy=r=>ku(r,$1),Sg=r=>ku(r,rA,!0),Fy=r=>ku(r,aA,!0),ds=(r,i,u)=>{const o=P1.exec(r);return o?o[1]?i(o[1]):u(o[2]):!1},ku=(r,i,u=!1)=>{const o=J1.exec(r);return o?o[1]?i(o[1]):u:!1},F1=r=>r==="position"||r==="percentage",$1=r=>r==="image"||r==="url",eA=r=>r==="length"||r==="size"||r==="bg-size",tA=r=>r==="length",$y=r=>r==="number",nA=r=>r==="family-name",aA=r=>r==="number"||r==="weight",rA=r=>r==="shadow",e2=()=>{const r=wn("color"),i=wn("font"),u=wn("text"),o=wn("font-weight"),h=wn("tracking"),m=wn("leading"),p=wn("breakpoint"),b=wn("container"),_=wn("spacing"),y=wn("radius"),M=wn("shadow"),C=wn("inset-shadow"),H=wn("text-shadow"),q=wn("drop-shadow"),k=wn("blur"),Q=wn("perspective"),G=wn("aspect"),ie=wn("ease"),ce=wn("animate"),me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ae=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],te=()=>[...Ae(),Re,Te],de=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto","contain","none"],F=()=>[Re,Te,_],_e=()=>[us,"full","auto",...F()],ze=()=>[os,"none","subgrid",Re,Te],Ee=()=>["auto",{span:["full",os,Re,Te]},os,Re,Te],Le=()=>[os,"auto",Re,Te],Ke=()=>["auto","min","max","fr",Re,Te],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...F()],Z=()=>[us,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],J=()=>[us,"screen","full","dvw","lvw","svw","min","max","fit",...F()],ve=()=>[us,"screen","full","lh","dvh","lvh","svh","min","max","fit",...F()],w=()=>[r,Re,Te],K=()=>[...Ae(),i1,r1,{position:[Re,Te]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",Jy,Qy,{size:[Re,Te]}],be=()=>[Sv,zd,Nu],xe=()=>["","none","full",y,Re,Te],pe=()=>["",at,zd,Nu],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"],Ye=()=>[at,Sv,i1,r1],rt=()=>["","none",k,Re,Te],xt=()=>["none",at,Re,Te],Ot=()=>["none",at,Re,Te],Wt=()=>[at,Re,Te],At=()=>[us,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[el],breakpoint:[el],color:[W1],container:[el],"drop-shadow":[el],ease:["in","out","in-out"],font:[Vy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[el],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[el],shadow:[el],spacing:["px",at],text:[el],"text-shadow":[el],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",us,Te,Re,G]}],container:["container"],columns:[{columns:[at,Te,Re,b]}],"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:_e()}],"inset-x":[{"inset-x":_e()}],"inset-y":[{"inset-y":_e()}],start:[{"inset-s":_e(),start:_e()}],end:[{"inset-e":_e(),end:_e()}],"inset-bs":[{"inset-bs":_e()}],"inset-be":[{"inset-be":_e()}],top:[{top:_e()}],right:[{right:_e()}],bottom:[{bottom:_e()}],left:[{left:_e()}],visibility:["visible","invisible","collapse"],z:[{z:[os,"auto",Re,Te]}],basis:[{basis:[us,"full","auto",b,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[at,us,"auto","initial","none",Te]}],grow:[{grow:["",at,Re,Te]}],shrink:[{shrink:["",at,Re,Te]}],order:[{order:[os,"first","last","none",Re,Te]}],"grid-cols":[{"grid-cols":ze()}],"col-start-end":[{col:Ee()}],"col-start":[{"col-start":Le()}],"col-end":[{"col-end":Le()}],"grid-rows":[{"grid-rows":ze()}],"row-start-end":[{row:Ee()}],"row-start":[{"row-start":Le()}],"row-end":[{"row-end":Le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ke()}],"auto-rows":[{"auto-rows":Ke()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pbs:[{pbs:F()}],pbe:[{pbe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...ve()]}],"min-block-size":[{"min-block":["auto",...ve()]}],"max-block-size":[{"max-block":["none",...ve()]}],w:[{w:[b,"screen",...Z()]}],"min-w":[{"min-w":[b,"screen","none",...Z()]}],"max-w":[{"max-w":[b,"screen","none","prose",{screen:[p]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",u,zd,Nu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Fy,Ky]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sv,Te]}],"font-family":[{font:[Py,Zy,i]}],"font-features":[{"font-features":[Te]}],"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,Re,Te]}],"line-clamp":[{"line-clamp":[at,"none",Re,a1]}],leading:[{leading:[m,...F()]}],"list-image":[{"list-image":["none",Re,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Re,Te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ot(),"wavy"]}],"text-decoration-thickness":[{decoration:[at,"from-font","auto",Re,Nu]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[at,"auto",Re,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re,Te]}],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",Re,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},os,Re,Te],radial:["",Re,Te],conic:[os,Re,Te]},Wy,Xy]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:xe()}],"rounded-s":[{"rounded-s":xe()}],"rounded-e":[{"rounded-e":xe()}],"rounded-t":[{"rounded-t":xe()}],"rounded-r":[{"rounded-r":xe()}],"rounded-b":[{"rounded-b":xe()}],"rounded-l":[{"rounded-l":xe()}],"rounded-ss":[{"rounded-ss":xe()}],"rounded-se":[{"rounded-se":xe()}],"rounded-ee":[{"rounded-ee":xe()}],"rounded-es":[{"rounded-es":xe()}],"rounded-tl":[{"rounded-tl":xe()}],"rounded-tr":[{"rounded-tr":xe()}],"rounded-br":[{"rounded-br":xe()}],"rounded-bl":[{"rounded-bl":xe()}],"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:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...ot(),"none","hidden"]}],"outline-offset":[{"outline-offset":[at,Re,Te]}],"outline-w":[{outline:["",at,zd,Nu]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",M,Sg,xg]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",C,Sg,xg]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[at,Nu]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",H,Sg,xg]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[at,Re,Te]}],"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":Ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ye()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":Ye()}],"mask-image-t-to-pos":[{"mask-t-to":Ye()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":Ye()}],"mask-image-r-to-pos":[{"mask-r-to":Ye()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":Ye()}],"mask-image-b-to-pos":[{"mask-b-to":Ye()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":Ye()}],"mask-image-l-to-pos":[{"mask-l-to":Ye()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":Ye()}],"mask-image-x-to-pos":[{"mask-x-to":Ye()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":Ye()}],"mask-image-y-to-pos":[{"mask-y-to":Ye()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[Re,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ye()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"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":Ae()}],"mask-image-conic-pos":[{"mask-conic":[at]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ye()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Re,Te]}],filter:[{filter:["","none",Re,Te]}],blur:[{blur:rt()}],brightness:[{brightness:[at,Re,Te]}],contrast:[{contrast:[at,Re,Te]}],"drop-shadow":[{"drop-shadow":["","none",q,Sg,xg]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",at,Re,Te]}],"hue-rotate":[{"hue-rotate":[at,Re,Te]}],invert:[{invert:["",at,Re,Te]}],saturate:[{saturate:[at,Re,Te]}],sepia:[{sepia:["",at,Re,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Re,Te]}],"backdrop-blur":[{"backdrop-blur":rt()}],"backdrop-brightness":[{"backdrop-brightness":[at,Re,Te]}],"backdrop-contrast":[{"backdrop-contrast":[at,Re,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",at,Re,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[at,Re,Te]}],"backdrop-invert":[{"backdrop-invert":["",at,Re,Te]}],"backdrop-opacity":[{"backdrop-opacity":[at,Re,Te]}],"backdrop-saturate":[{"backdrop-saturate":[at,Re,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",at,Re,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Re,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[at,"initial",Re,Te]}],ease:[{ease:["linear","initial",ie,Re,Te]}],delay:[{delay:[at,Re,Te]}],animate:[{animate:["none",ce,Re,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[Q,Re,Te]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:xt()}],"rotate-x":[{"rotate-x":xt()}],"rotate-y":[{"rotate-y":xt()}],"rotate-z":[{"rotate-z":xt()}],scale:[{scale:Ot()}],"scale-x":[{"scale-x":Ot()}],"scale-y":[{"scale-y":Ot()}],"scale-z":[{"scale-z":Ot()}],"scale-3d":["scale-3d"],skew:[{skew:Wt()}],"skew-x":[{"skew-x":Wt()}],"skew-y":[{"skew-y":Wt()}],transform:[{transform:[Re,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:te()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:At()}],"translate-x":[{"translate-x":At()}],"translate-y":[{"translate-y":At()}],"translate-z":[{"translate-z":At()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"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",Re,Te]}],"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":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mbs":[{"scroll-mbs":F()}],"scroll-mbe":[{"scroll-mbe":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pbs":[{"scroll-pbs":F()}],"scroll-pbe":[{"scroll-pbe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",Re,Te]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[at,zd,Nu,a1]}],stroke:[{stroke:["none",...w()]}],"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"]}},t2=By(e2);function n2(...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 u=[];return i.forEach(o=>{u.indexOf(o)<0&&u.push(o)}),u.filter(o=>!!o).join(" ")}function O(...r){return t2(n2(...r))}const a2=(r,i,u)=>{const{safeAreas:o}=r;return O(i==="ios"&&"k-ios",i==="material"&&"k-material","k-app w-full h-full min-h-screen relative",o&&"safe-areas",u)};function Uv(){return Uv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Uv.apply(null,arguments)}const iA=r=>{const{component:i="div",className:u,theme:o="material",dark:h=!0,materialTouchRipple:m=!0,iosHoverHighlight:p=!0,safeAreas:b=!0,ref:_,children:y,...M}=r,C=$.useRef(null),H=i,q={...M},k=V1(o),Q=a2({...r,safeAreas:b},k,u);return P.createElement(dy,{theme:k,dark:h,materialTouchRipple:m,iosHoverHighlight:p,autoThemeDetection:!1},P.createElement(H,Uv({ref:G=>{C.current=G,_&&typeof _=="function"?_(G):_&&(_.current=G)},className:Q},q),y))};iA.displayName="App";const Ev=(r,i,u)=>{if(typeof r=="string")return r;const o=[r[i],r.common];return u&&r[u]&&(typeof r[u]=="string"?o.push(r[u]):o.push(r[u].common,r[u][i])),o},r2=(r,i,u)=>{const o={},h=["common","ios","material"];return Object.keys(r).forEach(m=>{const p=m==="base"?u:"";if(!(typeof r[m]!="string"&&Object.keys(r[m]).filter(y=>!h.includes(y)).length>0)){o[m]=O(Ev(r[m],i),p);return}o[m]={};const _=Ev(r[m],i);o[m].default=O(_,p),Object.keys(r[m]).filter(y=>!h.includes(y)).forEach(y=>{o[m][y]=O(_,Ev(r[m],i,y),p)})}),o},Mn=({ios:r,material:i}={})=>{let o=$.useContext(Lc).theme||"ios";return r&&(o="ios"),i&&(o="material"),(h,m)=>r2(h,o,m)},i2=(r,i)=>({base:{common:"",ios:O("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:""}}),Da=({ios:r,material:i}={})=>{let o=$.useContext(Lc).theme||"ios";return r&&(o="ios"),i&&(o="material"),o},Ln=()=>{const r=$.useContext(Lc);return i=>r.dark?i:""},l2=r=>{requestAnimationFrame(()=>{requestAnimationFrame(r)})},s2=({getEl:r,zIndex:i=10,opacity:u=1,offset:o=1,enabled:h=!0,data:m={}})=>{const p=()=>typeof h=="function"?h():h,b=()=>{const k=r();if(k&&m.elScale){m.elScale=!1,k.style.scale="";const Q=()=>{k.style.transitionDuration="",k.style.transitionTimingFunction="",k.removeEventListener("transitionend",Q)};k.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)}},_=k=>{if(m.lightEl){const{x:Q,y:G}=k,ie=Q-m.rect.x,ce=G-m.rect.y;m.lightEl.style.transform=`translate3d(${ie}px, ${ce}px, 0)`}},y=k=>{if(!p())return;const Q=m,G=r();Q.rect=G.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:Ae}=Q.rect,te=(me**2+Ae**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} ${u*100}%, transparent), transparent 50%)`,ce.style.pointerEvents="none",Q.lightEl=ce,Q.lightElWrap=ie,_(k),ie.append(ce),G.append(ie),k.pointerType!=="mouse"&&k.pointerType!=="mouse"){Q.elScale=!0;let ge=1.25;(Q.rect.width>60||Q.rect.height>60)&&(ge=1.05),G.style.scale=ge,G.style.transitionDuration="300ms",G.style.transitionTimingFunction="ease-in-out"}l2(()=>{ie.style.opacity=1})},M=k=>{p()&&_(k)},C=k=>{b()};return{removeHoverHighlight:b,attachEvents:()=>{const k=r();k&&(k.addEventListener("pointerenter",y),k.addEventListener("pointermove",M),k.addEventListener("pointerleave",C))},detachEvents:()=>{const k=r();k&&(k.removeEventListener("pointerenter",y),k.removeEventListener("pointermove",M),k.removeEventListener("pointerleave",C))}}};function kv(){return kv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},kv.apply(null,arguments)}const Tc=r=>{const{component:i="div",className:u,highlight:o=!0,ios:h,material:m,children:p,ref:b,..._}=r,y=$.useRef(null),M=i,C={..._},H=Da(),q=Mn({ios:h,material:m}),k=Ln(),{iosHoverHighlight:Q}=$.useContext(Lc),G=$.useRef({}),{attachEvents:ie,detachEvents:ce}=s2({getEl:()=>y.current,enabled:o&&H==="ios"&&Q,data:G.current}),me=q(i2({...r},k),u);return $.useEffect(()=>(ie(),()=>ce())),P.createElement(M,kv({ref:Ae=>{b&&typeof b=="function"?b(Ae):b&&(b.current=Ae),y.current=Ae},className:me.base},C),p)};Tc.displayName="Glass";function zn(r){if(!r||typeof r!="object")return{};const i={};return Object.keys(r).forEach(u=>{r[u]!=null&&(i[u]=r[u])}),i}class u2{constructor(i,u,o){const h=this;if(!i)return;h.el=i;const{left:m,top:p,width:b,height:_}=i.getBoundingClientRect(),y={x:u-m,y:o-p};let M=Math.max((_**2+b**2)**.5,48);const C=i.classList.contains("k-touch-ripple-inset");C&&(M=Math.max(Math.min(b,_),48));const H=typeof window<"u"&&window.getComputedStyle(i,null).getPropertyValue("overflow")==="hidden";if(!C&&H){const k=((y.x-b/2)**2+(y.y-_/2)**2)**.5,Q=(M/2+k)/(M/2);h.rippleTransform=`translate3d(0px, 0px, 0) scale(${Q})`}else h.rippleTransform=`translate3d(${-y.x+b/2}px, ${-y.y+_/2}px, 0) scale(1)`;h.rippleWaveEl=document.createElement("span"),h.rippleWaveEl.classList.add("k-touch-ripple-wave"),h.rippleWaveEl.style=`
      width: ${M}px;
      height: ${M}px;
      margin-top:-${M/2}px;
      margin-left:-${M/2}px;
      left:${y.x}px;
      top:${y.y}px; --k-ripple-transform: ${h.rippleTransform}`,i.insertAdjacentElement("afterbegin",h.rippleWaveEl);const q=()=>{h.rippleWaveEl.removeEventListener("animationend",q),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",q),h}destroy(){}out(){const i=this,{rippleWaveEl:u}=this;clearTimeout(i.removeTimeout),u.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 x0=(r,i,u)=>{const o=$.useContext(Lc);u||(u=r);const h=$.useRef(null),m=()=>{h.current&&h.current.remove(),h.current=null},p=q=>{h.current=new u2(r.current,q.pageX,q.pageY)},b=()=>{m()},_=()=>{m()},y=()=>{if(!o.materialTouchRipple)return;const q=u.current;q.addEventListener("pointerdown",p),q.addEventListener("pointermove",b),q.addEventListener("pointerup",_),q.addEventListener("pointercancel",_),q.addEventListener("contextmenu",_)},M=()=>{const q=u.current;q.removeEventListener("pointerdown",p),q.removeEventListener("pointermove",b),q.removeEventListener("pointerup",_),q.removeEventListener("pointercancel",_),q.removeEventListener("contextmenu",_)},C=()=>{!u||!u.current||!i||y()},H=()=>{!u||!u.current||!i||M()};$.useEffect(()=>(C(),()=>H()))},o2=(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"}}),c2=(r={})=>({bg:"bg-primary",text:"text-white",...zn(r)});function jv(){return jv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},jv.apply(null,arguments)}const lA=r=>{const{component:i="span",className:u,colors:o,small:h,ios:m,material:p,children:b,ref:_,...y}=r,M=$.useRef(null),C=i,H={...y},q=Mn({ios:m,material:p}),k=c2(o),Q=h?"sm":"md",G=q(o2(r,k),u);return P.createElement(C,jv({ref:ie=>{M.current=ie,_&&typeof _=="function"?_(ie):_&&(_.current=ie)},className:G.base[Q]},H),b)};lA.displayName="Badge";const f2=(r,i)=>{const{inset:u,nested:o,strong:h,outline:m}=r;return{base:{common:O("k-block text-sm z-10 relative",!u&&!o&&m&&"hairline-t hairline-b",u&&m&&"border",u&&"px-4",!u&&"pl-safe-4 pr-safe-4",!o&&"my-8",(h||m)&&"py-4"),ios:O(i.textIos,h&&i.strongBgIos,u&&m&&i.outlineIos),material:O(i.textMaterial,h&&i.strongBgMaterial,u&&m&&i.outlineMaterial)},inset:{common:"ml-safe-4 mr-safe-4 overflow-hidden",ios:"rounded-3xl",material:"rounded-2xl"}}},d2=(r={},i)=>({outlineIos:O("border-black/20",i("dark:border-white/15")),outlineMaterial:O("border-md-light-outline",i("border-md-dark-outline")),strongBgIos:O("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),strongBgMaterial:O("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),textIos:"",textMaterial:O("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),...zn(r)}),S0=(r,i,u)=>{const o={};return Object.keys(i).forEach(h=>{o[h]=typeof i[h]>"u"?r==="ios"?u[`${h}Ios`]:u[`${h}Material`]:i[h]}),o};function Hv(){return Hv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Hv.apply(null,arguments)}const E0=r=>{const{component:i="div",className:u,colors:o,inset:h,insetIos:m,insetMaterial:p,strong:b,strongIos:_,strongMaterial:y,outline:M,outlineIos:C,outlineMaterial:H,nested:q,ios:k,material:Q,ref:G,children:ie,...ce}=r,me=$.useRef(null),Ae=i,te={...ce},de=Da({ios:k,material:Q}),ge=Mn({ios:k,material:Q}),F=Ln(),_e=d2(o,F),{strong:ze,outline:Ee,inset:Le}=S0(de,{strong:b,outline:M,inset:h},r),Ke=ge(f2({...r,inset:Le,strong:ze,outline:Ee},_e)),ye=O(Ke.base,Le&&Ke.inset,u);return P.createElement(Ae,Hv({ref:ae=>{me.current=ae,G&&typeof G=="function"?G(ae):G&&(G.current=ae)},className:ye},te),ie)};E0.displayName="Block";function Gv(){return Gv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Gv.apply(null,arguments)}const h2=r=>P.createElement("svg",Gv({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"14",viewBox:"0 0 12 20",fill:"currentcolor"},r),P.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"})),m2=(r,i,u)=>{const{inline:o,segmented:h,segmentedStrong:m,segmentedActive:p,disabled:b}=r;return{base:{common:O("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",b&&"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:O(b&&O(i.disabledBg,i.disabledText)),ios:O(b?O(i.disabledBg,i.disabledText):`${i.fillTextIos} ${i.fillBgIos}`),material:O(b?O(i.disabledBg,i.disabledText):O(i.fillTextMaterial,i.fillBgMaterial,i.fillTouchRipple))},outline:{common:O(b?O(i.disabledText,i.disabledBorder):i.touchRipple),ios:O(!h&&"border-2",!b&&!h&&i.outlineBorderIos,!b&&O(i.textIos,i.outlineBgIos)),material:O(!h&&"border",!b&&!h&&i.outlineBorderMaterial,!b&&O(i.textMaterial,i.outlineBgMaterial))},clear:{common:O(b?i.disabledText:i.touchRipple),ios:!b&&O(i.textIos,i.clearBgIos),material:!b&&O(i.textMaterial,i.clearBgMaterial)},tonal:{common:b?O(i.disabledBg,i.disabledText):O(i.touchRipple),ios:!b&&O(i.tonalTextIos,i.tonalBgIos),material:!b&&O(i.tonalTextMaterial,i.tonalBgMaterial)},segmentedStrong:O("active:bg-black/10",u("dark:active:bg-white/5 dark:touch-ripple-white")),segmentedStrongActive:{ios:O("duration-200",i.segmentedStrongTextIos),material:O("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"}},g2=(r={},i)=>({textIos:"text-primary",textMaterial:O("text-md-light-primary","dark:text-md-dark-primary"),fillTextIos:O("text-white"),fillTextMaterial:O("text-md-light-on-primary",i("dark:text-md-dark-on-primary")),fillBgIos:"bg-primary active:bg-ios-primary-shade",fillBgMaterial:O("bg-md-light-primary",i("dark:bg-md-dark-primary")),fillTouchRipple:O("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:O("border-md-light-outline",i("dark:border-md-dark-outline")),segmentedStrongTextIos:"text-black",segmentedStrongTextMaterial:"",tonalBgIos:"bg-primary/15 active:bg-primary/25",tonalBgMaterial:O("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),tonalTextIos:"text-primary",tonalTextMaterial:O("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),touchRipple:"touch-ripple-primary",disabledText:O("text-black/30",i("dark:text-white/30")),disabledBg:O("bg-black/10",i("dark:bg-white/10")),disabledBorder:O("border-black/10",i("dark:border-white/10")),...zn(r)});function Iv(){return Iv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Iv.apply(null,arguments)}const zr=r=>{const{component:i="button",className:u,colors:o,ios:h,material:m,disabled:p,href:b,outline:_,outlineIos:y,outlineMaterial:M,clear:C,clearIos:H,clearMaterial:q,tonal:k,tonalIos:Q,tonalMaterial:G,rounded:ie,roundedIos:ce,roundedMaterial:me,small:Ae,smallIos:te,smallMaterial:de,large:ge,largeIos:F,largeMaterial:_e,raised:ze,raisedIos:Ee,raisedMaterial:Le,inline:Ke,segmented:ye,segmentedStrong:ae,segmentedActive:D,children:Z,ref:J,...ve}=r,w=$.useRef(null);let K=i;typeof r.component>"u"&&(b||b==="")&&(K="a");const fe={href:b,...ve},se=Da({ios:h,material:m}),be=Mn({ios:h,material:m}),xe=Ln();x0(w,se==="material");const pe=S0(se,{outline:_,clear:C,tonal:k,rounded:ie,small:Ae,large:ge,raised:ze},r),ot=pe.large?"large":pe.small?"small":"medium";let je=pe.outline?"outline":pe.clear||ye&&!D?"clear":pe.tonal?"tonal":"fill";ae&&(je="segmentedStrong"),ae&&D&&(je="segmentedStrongActive");const Ye=g2(o,xe),rt=be(m2({...r,...pe},Ye,xe)),xt=O(rt.base[pe.rounded?"rounded":"square"],rt.style[je],rt.size[ot],pe.raised&&rt.raised,u);return P.createElement(K,Iv({ref:Ot=>{w.current=Ot,J&&typeof J=="function"?J(Ot):J&&(J.current=Ot)},className:xt,disabled:p,role:"button",tabIndex:"0"},fe),Z)};zr.displayName="Button";const p2=(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:O(i.fillBg||i.fillBgIos,i.fillText||i.fillTextIos),material:O(i.fillBg||i.fillBgMaterial,i.fillText||i.fillTextMaterial)},outline:{common:"border",ios:O(i.outlineText||i.outlineTextIos,i.outlineBorder||i.outlineBorderIos),material:O(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"}),v2=(r={},i)=>({fillTextIos:"text-current",fillTextMaterial:O("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),fillBgIos:O("bg-black/10",i("dark:bg-white/10")),fillBgMaterial:O("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),outlineTextIos:O("text-current"),outlineTextMaterial:O("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),outlineBorderIos:O("border-black/20",i("dark:border-white/20")),outlineBorderMaterial:O("border-md-light-outline",i("dark:border-md-dark-outline")),...zn(r)});function Bg(){return Bg=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Bg.apply(null,arguments)}const Lg=({theme:r,...i})=>r==="ios"?P.createElement("svg",Bg({xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentcolor"},i),P.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"})):P.createElement("svg",Bg({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),P.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 Yv(){return Yv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Yv.apply(null,arguments)}const w0=r=>{const{component:i="div",className:u,colors:o,media:h,deleteButton:m,onDelete:p,ios:b,material:_,outline:y,children:M,ref:C,...H}=r,q=$.useRef(null),k=i,Q={...H},G=Mn({ios:b,material:_}),ie=Da({ios:b,material:_}),ce=Ln(),me=y?"outline":"fill",Ae=v2(o,ce),te=G(p2(r,Ae),u);return P.createElement(k,Yv({ref:de=>{q.current=de,C&&typeof C=="function"?C(de):C&&(C.current=de)},className:te.base[me]},Q),h&&P.createElement("div",{className:te.media},h),M,m&&P.createElement("div",{className:te.deleteButton,role:"button",tabIndex:"0",onClick:p},P.createElement(Lg,{theme:ie,className:"h-4 w-4"})))};w0.displayName="Chip";const A2=(r,i,u)=>{const{titleFontSizeMaterial:o,titleFontSizeIos:h,sizeMaterial:m}=r;return{base:{common:O("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",u),ios:O("rounded-4xl max-w-full w-75",i.bgIos),material:O("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:O("p-6 gap-3 relative")},title:{common:O("w-full"),ios:O(i.titleIos,h,"font-semibold"),material:O(i.titleMaterial,o)},content:{common:O("text-sm w-full"),ios:O(i.contentTextIos),material:O(i.contentTextMaterial)},buttons:{common:"flex items-center",ios:O("justify-center p-3.5 pt-0 gap-2"),material:O("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"}}},b2=(r={},i)=>({bgIos:"",bgMaterial:O("bg-md-light-surface-3",i("dark:bg-md-dark-surface-3")),titleIos:"",titleMaterial:O("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),contentTextIos:"",contentTextMaterial:O("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),...zn(r)});function qv(){return qv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},qv.apply(null,arguments)}const sA=r=>{const{component:i="div",className:u,colors:o,opened:h,backdrop:m=!0,onBackdropClick:p,titleFontSizeIos:b="text-[17px]",titleFontSizeMaterial:_="text-[24px]",title:y,content:M,buttons:C,ios:H,material:q,children:k,ref:Q,...G}=r,ie=$.useRef(null),ce=h?"opened":"closed",me=i,Ae={...G},te=Mn({ios:H,material:q}),de=Ln(),ge=b2(o,de),F=te(A2({...r,titleFontSizeIos:b,titleFontSizeMaterial:_},ge),u);return P.createElement(P.Fragment,null,m&&P.createElement("div",{className:F.backdrop[ce],onClick:p}),P.createElement(Tc,qv({component:me,highlight:!1,ref:_e=>{ie.current=_e,Q&&typeof Q=="function"?Q(_e):Q&&(Q.current=_e)},className:F.base[ce]},Ae),P.createElement("div",{className:F.contentWrap},y&&P.createElement("div",{className:F.title},y),(M||k)&&P.createElement("div",{className:F.content},M,k)),C&&P.createElement("div",{className:F.buttons},C)))};sA.displayName="Dialog";function zg(){return zg=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},zg.apply(null,arguments)}const uA=r=>{const{component:i="button",className:u,ios:o,material:h,disabled:m,strong:p,strongIos:b,strongMaterial:_,children:y,ref:M,...C}=r,H=$.useRef(null),q={...C},k=Da({ios:o,material:h}),Q=typeof p>"u"?k==="ios"?b:_:p;return k==="ios"?P.createElement(zr,zg({component:i,ref:G=>{H.current=G,M&&typeof M=="function"?M(G):M&&(M.current=G)},large:!0,rounded:!0,tonal:!Q,className:u,disabled:m},q),y):P.createElement(zr,zg({component:i,inline:!0,rounded:!0,disabled:m,clear:!Q,className:u,ref:G=>{H.current=G,M&&typeof M=="function"?M(G):M&&(M.current=G)}},q),y)};uA.displayName="DialogButton";const y2=(r,{textColor:i,needsTouchRipple:u})=>{const{iconOnly:o,tabbar:h,tabbarLabels:m,tabbarIcons:p}=r;return{base:{common:O("k-link",!h&&i,"inline-flex gap-1 justify-center items-center cursor-pointer select-none",u&&"touch-ripple-primary relative z-10"),ios:O(!h&&"active:opacity-50 duration-300"),material:!h&&O(u?"":"active:opacity-55")},tabbar:{common:O("w-full h-full duration-300 transition-colors relative"),ios:O("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:O("h-full",o&&"k-touch-ripple-inset"),ios:O(!o&&"px-4 truncate",o&&"aspect-square"),material:"px-3 text-sm font-medium max-h-12"},navbar:{common:O("h-full max-h-12",o&&"k-touch-ripple-inset"),ios:O(!o&&"px-4",o&&"aspect-square"),material:"px-3"}}},_2=(r={},i)=>({textIos:"text-primary",textMaterial:O("text-md-light-primary",i("dark:text-md-dark-primary")),navbarTextIos:"",navbarTextMaterial:"",toolbarTextIos:"",toolbarTextMaterial:O("text-md-light-primary",i("dark:text-md-dark-primary")),...zn(r)}),oA=$.createContext({tabbarLabels:!0,tabbarIcons:!0,tabbar:!1,toolbar:!1}),x2=()=>$.useContext(oA),cA=$.createContext({navbar:!1}),S2=()=>$.useContext(cA);function Vv(){return Vv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Vv.apply(null,arguments)}const rl=r=>{const{component:i="a",className:u,colors:o,iconOnly:h,linkProps:m={},tabbarActive:p,ios:b,material:_,onClick:y,children:M,ref:C,...H}=r,{navbar:q}=S2(),{toolbar:k,tabbar:Q,tabbarLabels:G,tabbarIcons:ie}=x2(),ce=$.useRef(null),me=i,Ae={...m,...H},te=Da({ios:b,material:_}),de=Mn({ios:b,material:_}),ge=Ln(),F=te==="material"&&(k||Q||q);x0(ce,F);const _e=_2(o,ge),ze=q?te==="material"?_e.navbarTextMaterial:_e.navbarTextIos:k?te==="material"?_e.toolbarTextMaterial:_e.toolbarTextIos:te==="material"?_e.textMaterial:_e.textIos,Ee=Q&&!p?_e.tabbarInactive:ze,Le=p?"active":"inactive",Ke=de(y2({...r,tabbarLabels:G,tabbarIcons:ie,tabbar:Q},{textColor:Ee,needsTouchRipple:F})),ye=O(Ke.base,k&&Ke.toolbar,q&&Ke.navbar,Q&&Ke.tabbar[Le],u);return P.createElement(me,Vv({ref:ae=>{ce.current=ae,C&&typeof C=="function"?C(ae):C&&(C.current=ae)},className:ye},Ae,{role:"link",tabIndex:"0",onClick:y}),M)};rl.displayName="Link";const E2=(r,i)=>{const{nested:u,inset:o,strong:h,outline:m}=r;return{base:{common:O("k-list",!u&&"my-8",!o&&!u&&m&&"hairline-t hairline-b",o&&m&&"border","z-10 relative"),ios:O(h&&i.strongBgIos,o&&m&&i.outlineIos),material:O(h&&i.strongBgMaterial,o&&m&&i.outlineMaterial)},ul:{common:O(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"}}},w2=(r={},i)=>({outlineIos:O("border-black/20",i("dark:border-white/15")),outlineMaterial:O("border-md-light-outline",i("border-md-dark-outline")),strongBgIos:O("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),strongBgMaterial:O("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),...zn(r)}),fA=P.createContext({dividers:!1,nested:!1});function Qv(){return Qv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Qv.apply(null,arguments)}const hs=r=>{const{component:i="div",className:u,colors:o,nested:h,menuList:m,dividers:p,dividersIos:b=!0,dividersMaterial:_=!1,inset:y,insetIos:M,insetMaterial:C,strong:H,strongIos:q,strongMaterial:k,outline:Q,outlineIos:G,outlineMaterial:ie,ios:ce,material:me,children:Ae,ref:te,...de}=r,ge=$.useRef(null),F=i,_e={...de},ze=Da(),Ee=Mn({ios:ce,material:me}),Le=Ln(),{strong:Ke,outline:ye,inset:ae,dividers:D}=S0(ze,{strong:H,outline:Q,inset:y,dividers:p},{strongIos:q,strongMaterial:k,outlineIos:G,outlineMaterial:ie,insetIos:M,insetMaterial:C,dividersIos:b,dividersMaterial:_,...r}),Z=w2(o,Le),J=Ee(E2({...r,inset:ae,strong:Ke,outline:ye},Z)),ve=O(J.base,ae&&J.inset,m&&J.menuList,u);return P.createElement(fA.Provider,{value:{nested:h,dividers:D}},P.createElement(F,Qv({ref:w=>{ge.current=w,te&&typeof te=="function"?te(w):te&&(te.current=w)},className:ve},_e),P.createElement("ul",{className:J.ul},Ae)))};hs.displayName="List";const M2=()=>$.useContext(fA),O2=(r,i,{isMediaItem:u,theme:o,textColor:h,needsTouchRipple:m,isMenuListItemActive:p,autoStrongTitle:b,nested:_},y)=>{const{menuListItem:M,dividers:C,mediaClassName:H="",mediaClass:q="",innerClassName:k="",innerClass:Q="",contentClassName:G="",contentClass:ie="",titleWrapClassName:ce="",titleWrapClass:me="",titleFontSizeIos:Ae,titleFontSizeMaterial:te,strongTitle:de,contacts:ge}=r;return{base:{common:O("k-list-item",M?`${h} py-1`:"",y),material:ge&&"[&:nth-child(2)]:-mt-12"},itemContent:{common:O(`flex items-center ${G||ie}`),ios:O(!M&&O(i.primaryTextIos,_?"ps-4":"ps-safe-4"),M&&"rounded-2xl ml-safe-2 mr-safe-2 ps-2"),material:O(!M&&O(i.primaryTextMaterial,u?"ml-safe-2 mr-safe-2 rounded-2xl ps-2":"ps-safe-4",ge&&"ml-10"),M&&"rounded-full min-h-[3.5rem] ml-safe-4 mr-safe-4 ps-4"),link:O("duration-300 active:duration-0 cursor-pointer select-none",C&&o==="ios"&&"active:hairline-transparent",m&&O("relative overflow-hidden z-10",i.touchRipple),O(p?o==="ios"?i.menuListItemActiveBgIos:i.menuListItemActiveBgMaterial:M?o==="ios"?i.menuListItemBgIos:i.menuListItemBgMaterial:o==="ios"?i.activeBgIos:i.activeBgMaterial))},media:{common:`shrink-0 flex ${H||q}`,ios:"py-2 me-4",material:O("py-3",M?"me-3":"me-4")},inner:{common:O("w-full relative",!M&&C&&"hairline-b",k||Q),ios:O("py-3 pe-safe-4"),material:O("py-3",u&&!M?"pe-2":"pe-safe-4")},titleWrap:{common:O(`flex justify-between items-center ${ce||me}`),ios:O(!M&&Ae,!M&&"min-h-7"),material:O(!M&&te)},title:{common:"shrink",menuListItem:O("text-sm",de===!0||b?"font-semibold":"font-medium"),strong:{common:"",ios:"font-semibold",material:"font-medium"}},after:{common:O("shrink-0 ms-auto ps-1 flex items-center gap-1"),ios:i.secondaryTextIos,material:O(i.secondaryTextMaterial,"text-sm")},chevron:"opacity-20 shrink-0 ms-3 rtl:rotate-180",subtitle:"text-sm",text:{common:O("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:O("text-xs mt-0.5"),ios:i.secondaryTextIos,material:i.secondaryTextMaterial},groupTitle:{common:O("pl-safe-4 pr-safe-4 py-1 flex items-center z-20"),ios:`h-8${C?" hairline-t":""} -mt-px ${Ae} ${i.secondaryTextIos} ${i.groupTitleBgIos} ${ge&&O("font-semibold top-safe-15 sticky",i.groupTitleContactsTextIos,i.groupTitleContactsBgIos)}`,material:`h-12 ${te} ${i.secondaryTextMaterial} ${i.groupTitleBgMaterial} ${ge&&O("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)}`}}},C2=(r={},i)=>({primaryTextIos:O("text-black",i("dark:text-white")),primaryTextMaterial:O("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),secondaryTextIos:O("text-black/55",i("dark:text-white/55")),secondaryTextMaterial:O("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),activeBgIos:O("active:not-[:has(.k-toggle:active)]:bg-black/10",i("dark:active:not-[:has(.k-toggle:active)]:bg-white/10")),activeBgMaterial:"",groupTitleBgIos:O("bg-ios-light-surface-variant",i("dark:bg-ios-dark-surface-variant")),groupTitleBgMaterial:O("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),menuListItemTextIos:O("text-black",i("dark:text-white")),menuListItemTextMaterial:O("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),menuListItemBgIos:O("active:bg-black/10",i("dark:active:bg-white/10")),menuListItemBgMaterial:O("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),menuListItemActiveTextIos:O("text-primary",i("dark:text-white")),menuListItemActiveTextMaterial:O("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),menuListItemActiveBgIos:O("bg-primary/15",i("dark:bg-primary")),menuListItemActiveBgMaterial:O("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),touchRipple:O("touch-ripple-black",i("dark:touch-ripple-white")),groupTitleContactsTextIos:O("text-black/90",i("dark:text-white/90")),groupTitleContactsTextMaterial:O("text-md-light-primary",i("dark:text-md-dark-primary")),groupTitleContactsBgIos:O(i("dark:bg-[#323234]")),groupTitleContactsBgMaterial:O("bg-transparent",i("dark:bg-transparent")),...zn(r)});function Ug(){return Ug=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Ug.apply(null,arguments)}const aa=r=>{const{component:i="li",colors:u,className:o,mediaClassName:h="",innerClassName:m="",innerChildren:p,contentClassName:b="",contentChildren:_,titleWrapClassName:y="",titleFontSizeIos:M="text-[17px]",titleFontSizeMaterial:C="text-[16px]",title:H,subtitle:q,text:k,after:Q,media:G,header:ie,footer:ce,menuListItem:me,menuListItemActive:Ae,groupTitle:te,strongTitle:de="auto",label:ge,chevron:F=void 0,chevronIos:_e=!0,chevronMaterial:ze=!0,chevronIcon:Ee,href:Le,target:Ke,link:ye,linkComponent:ae="a",linkProps:D={},dividers:Z,contacts:J,ios:ve,material:w,children:K,ref:fe,...se}=r,be=$.useRef(null),xe=$.useRef(null),pe=i,ot={...se},je=M2(),Ye=typeof Z>"u"?je?.dividers:Z,rt=Da({ios:ve,material:w}),xt=Mn({ios:ve,material:w}),Ot=Ln(),Wt=typeof F>"u"?rt==="ios"?_e:ze:F,At=C2(u,Ot),xn=me&&Ae,Mi=At[`${xn?"menuListItemActiveText":me?"menuListItemText":"text"}${rt==="ios"?"Ios":"Material"}`],bt=!!Le||Le===""||me||ye,sn=!!ge,Kt=rt==="material"&&(sn||bt);x0(be,Kt);const ra=Le===!0||Le===!1||typeof Le>"u"?void 0:Le||"",Ct=bt?ae:sn?"label":"div",On=bt?{href:ra,target:Ke,...D}:{},Ba=H&&(q||k),La=de==="auto"&&Ba,Dt=xt(O2({...r,titleFontSizeIos:M,titleFontSizeMaterial:C,dividers:Ye,strongTitle:de,mediaClassName:h,innerClassName:m,contentClassName:b,titleWrapClassName:y},At,{isMediaItem:Ba,theme:rt,textColor:Mi,needsTouchRipple:Kt,isMenuListItemActive:xn,autoStrongTitle:La,nested:je?.nested}),o),mr=bt||sn?Dt.itemContent.link:Dt.itemContent.default,nn=me?Dt.title.menuListItem:de===!0||La?Dt.title.strong:Dt.title.default;return te?P.createElement(pe,{className:O(Dt.groupTitle,o)},H,K):P.createElement(pe,Ug({ref:gn=>{xe.current=gn,fe&&typeof fe=="function"?fe(gn):fe&&(fe.current=gn)},className:Dt.base},ot),P.createElement(Ct,Ug({ref:be,className:mr},On),G&&P.createElement("div",{className:Dt.media},G),P.createElement("div",{className:Dt.inner},ie&&P.createElement("div",{className:Dt.header},ie),(H||Q)&&P.createElement("div",{className:Dt.titleWrap},H&&P.createElement("div",{className:nn},H),Q&&P.createElement("div",{className:Dt.after},Q),bt&&Wt&&!me&&(Ee||P.createElement(h2,{className:Dt.chevron}))),q&&P.createElement("div",{className:Dt.subtitle},q),k&&P.createElement("div",{className:Dt.text},k),ce&&P.createElement("div",{className:Dt.footer},ce),p),_),K)};aa.displayName="ListItem";function Kv(){return Kv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Kv.apply(null,arguments)}const T2=r=>P.createElement("svg",Kv({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"5",viewBox:"0 0 8 5",fill:"currentcolor"},r),P.createElement("polygon",{fillRule:"evenodd",points:"0 0 8 0 4 5"})),R2=(r,i,{isFloatingTransformed:u,isFocused:o,darkClasses:h,getLabelColor:m,hasLabel:p},b)=>{const{error:_,type:y,outline:M,inputClassName:C="",inputClass:H=""}=r;return{base:{common:O("k-list-input",b),ios:O(M&&"my-4"),material:O("py-2")},itemContent:{common:"relative",ios:O(M&&"ml-4 mr-4 rounded-lg",!M&&i.bgIos),material:O("min-h-[56px] ml-4 mr-4",M?O("rounded"):O(i.bgMaterial,"rounded-t relative "))},inner:{common:"",material:O(M?"pt-4 pb-4":"pt-2 pb-2"),stacked:"",floating:""},label:{common:O("duration-200 text-xs",m(),M&&"flex"),ios:O(M&&"-mt-4"),material:O(M&&"-mt-4"),stacked:"",floating:{common:O("pointer-events-none duration-200 transform origin-left rtl:origin-right max-w-[66%]",u&&"scale-133"),ios:u?M?"translate-y-6":"translate-y-4":"",material:u?M?"translate-y-8":"translate-y-3":""}},labelText:{common:O(M&&"relative p-1 block -m-1"),ios:O(M&&O("-top-1",i.outlineLabelBgIos)),material:O(M&&O("-top-2",i.outlineLabelBgMaterial))},inputWrap:{common:"relative",ios:O((!p||M)&&"-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 ${C||H}`,ios:"h-10",material:"h-6",notFloating:{common:O("placeholder-black/30",h("dark:placeholder-white/30")),material:O(y==="textarea"&&"py-1"),ios:O(y==="textarea"&&"py-2")},floating:u?"placeholder-transparent":O("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:O("w-3.5 h-3.5 opacity-45 active:opacity-30",i.labelTextIos),material:O("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:M&&O(_?i.errorBorder:o?i.outlineBorderFocusIos:i.outlineBorderIos,"h-full border rounded-lg -z-10"),material:O(_?i.errorBorder:o?i.outlineBorderFocusMaterial:i.outlineBorderMaterial,M&&O("h-full border rounded -z-10",o&&"border-2"),!M&&O("border-b h-px origin-bottom",o&&"scale-y-[2]"))}}},N2=(r={},i)=>({bgIos:"",bgMaterial:O("bg-md-light-surface-variant",i("dark:bg-md-dark-surface-variant")),outlineBorderIos:O("border-black/30",i("dark:border-white/30")),outlineBorderFocusIos:"border-primary",outlineBorderMaterial:O("border-md-light-on-surface",i("dark:border-md-dark-on-surface")),outlineBorderFocusMaterial:O("border-md-light-primary",i("dark:border-md-dark-primary")),outlineLabelBgIos:O("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),outlineLabelBgMaterial:O("bg-md-light-surface",i("dark:bg-md-dark-surface")),labelTextIos:"",labelTextFocusIos:"",labelTextMaterial:O("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),labelTextFocusMaterial:O("text-md-light-primary",i("dark:text-md-dark-primary")),errorText:"text-red-500",errorBorder:"border-red-500",...zn(r)});function Zv(){return Zv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Zv.apply(null,arguments)}const Hd=r=>{const{component:i="li",className:u,colors:o,label:h,floatingLabel:m,outline:p,outlineIos:b,outlineMaterial:_,media:y,input:M,info:C,error:H,clearButton:q,dropdown:k,inputId:Q,inputStyle:G,inputClassName:ie="",name:ce,value:me,defaultValue:Ae,type:te="text",inputMode:de,readOnly:ge,required:F,disabled:_e,placeholder:ze,size:Ee,accept:Le,autoComplete:Ke,autoCorrect:ye,autoCapitalize:ae,spellCheck:D,autoFocus:Z,autoSave:J,max:ve,min:w,step:K,maxLength:fe,minLength:se,multiple:be,pattern:xe,tabIndex:pe,onInput:ot,onChange:je,onFocus:Ye,onBlur:rt,onClear:xt,ios:Ot,material:Wt,children:At,ref:xn,...Mi}=r,bt=$.useRef(null),sn=$.useRef(null),[Kt,ra]=$.useState(!1),Ct=Da({ios:Ot,material:Wt}),On=Mn({ios:Ot,material:Wt}),Ba=Ln(),La=N2(o,Ba),Dt=h&&m?"floating":"stacked",mr=Dt==="floating"?"floating":"notFloating",nn=()=>{if(bt.current)return bt.current.value},Sn=h&&m&&!(()=>{const Cn=nn();return typeof me>"u"?Cn||Cn===0:me||me===0})()&&!Kt,ps=()=>H?La.errorText:Ct==="material"?Kt?La.labelTextFocusMaterial:La.labelTextMaterial:Ct==="ios"?Kt?La.labelTextFocusIos:La.labelTextIos:"",vs=Cn=>{ra(!0),Ye&&Ye(Cn)},As=Cn=>{ra(!1),rt&&rt(Cn)},Ja=typeof p>"u"?Ct==="ios"?b:_:p,Zt=On(R2({...r,outline:Ja},La,{isFloatingTransformed:Sn,isFocused:Kt,darkClasses:Ba,getLabelColor:ps,hasLabel:!!h})),za={...Mi},Ir=()=>{if(M)return M;const Cn=te==="select"||te==="textarea"?te:"input",Yu=Cn==="input";return P.createElement(Cn,{id:Q,ref:bt,className:Zt.input[mr],style:G,name:ce,type:Yu?te:void 0,placeholder:ze,inputMode:de,size:Ee,accept:Le,autoComplete:Ke,autoCorrect:ye,autoCapitalize:ae,spellCheck:D,autoFocus:Z,autoSave:J,disabled:_e,max:ve,maxLength:fe,min:w,minLength:se,step:K,multiple:be,readOnly:ge,required:F,pattern:xe,tabIndex:pe,value:me,defaultValue:Ae,onInput:ot,onChange:je,onFocus:vs,onBlur:As},te==="select"?At:null)},gr=P.createElement(P.Fragment,null,H&&H!==!0&&P.createElement("div",{className:O(Zt.errorInfo,Zt.error)},H),C&&!H&&P.createElement("div",{className:O(Zt.errorInfo,Zt.info)},C)),kc=P.createElement(P.Fragment,null,h&&P.createElement("div",{className:Zt.label[Dt]},P.createElement("div",{className:Zt.labelText},h)),P.createElement("div",{className:Zt.inputWrap[Dt]},Ir(),q&&P.createElement(Lg,{theme:Ct,onClick:xt,className:Zt.clearButton}),k&&P.createElement(T2,{className:Zt.dropdown})),gr);return P.createElement(aa,Zv({ref:Cn=>{sn.current=Cn,xn&&typeof xn=="function"?xn(Cn):xn&&(xn.current=Cn)},component:i,media:y,className:Zt.base,title:null,mediaClassName:Zt.media,innerClassName:Zt.inner[Dt],contentClassName:Zt.itemContent,titleWrapClassName:Zt.titleWrap,innerChildren:kc,contentChildren:(Ja||Ct==="material")&&P.createElement("span",{className:Zt.border}),dividers:Ct==="material"||Ja?!1:void 0},za),te!=="select"?At:null)};Hd.displayName="ListInput";const D2=(r,i,u)=>{const{type:o}=r;return{message:{common:O("k-message max-w-[70%] box-border flex relative z-1 transform translate-z-0 mb-2 first:mt-2",u)},messageSent:{common:O("self-end",i.messageSent)},messageReceived:{common:i.messageReceived},messageName:{common:"text-xs",ios:O("mb-0.5 ms-4",i.messageNameIos),material:O("ms-4 mb-0.5",i.messageNameMd)},messageHeader:{common:"text-xs",ios:O("mb-0.5 ms-4",i.messageNameIos),material:O("ms-4 mb-0.5",i.messageNameMd)},messageFooter:{common:"text-xs",ios:O("mb-0.5 ms-4",i.messageNameIos),material:O("ms-4 mb-0.5",i.messageNameMd)},messageAvatar:{common:O("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:O("rounded-3xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",i.bubbleSentIos),material:O("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4",i.bubbleSentMd)},...o==="received"&&{ios:O("rounded-2xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",i.bubbleReceivedIos),material:O("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"}}},B2=(r={},i)=>({messageSent:"text-white",messageReceived:"text-inherit",messageNameIos:O("text-black/45",i("dark:text-white/45")),messageNameMd:O("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),bubbleSentIos:O("bg-primary"),bubbleSentMd:O("bg-md-light-primary",i("dark:bg-md-dark-primary dark:text-md-dark-on-primary")),bubbleReceivedIos:O("bg-[#e5e5ea]",i("dark:bg-[#252525]")),bubbleReceivedMd:O(i("dark:bg-md-dark-surface-variant"),"bg-[#e5e5ea]"),...zn(r)});function Xv(){return Xv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Xv.apply(null,arguments)}const M0=r=>{const{component:i="div",className:u,colors:o,ref:h,id:m,text:p,name:b,type:_="sent",header:y,footer:M,textHeader:C,textFooter:H,avatar:q,ios:k,material:Q,children:G,...ie}=r,ce=$.useRef(null),me=Mn({ios:k,material:Q}),Ae=Ln(),te=B2(o,Ae),de=me(D2({...r},te,u)),ge=i,F={...ie},_e=O(de.message,{[de.messageSent]:_==="sent",[de.messageReceived]:_==="received"});return P.createElement(ge,Xv({id:m,ref:ce,className:_e},F),q&&P.createElement("div",{className:de.messageAvatar},q),P.createElement("div",{className:de.messageContent},b&&P.createElement("div",{className:de.messageName},b),y&&P.createElement("div",{className:de.messageHeader},y),P.createElement("div",{className:de.messageBubble},C&&P.createElement("div",{className:de.messageTextHeader},C),p&&P.createElement("div",{className:de.messageText},p),H&&P.createElement("div",{className:de.messageTextFooter},H)),M&&P.createElement("div",{className:de.messageFooter},M)))};M0.displayName="Message";const L2=(r,i,u)=>{const{bgClassName:o="",bgClass:h="",outline:m,innerClassName:p="",innerClass:b="",tabbar:_,tabbarIcons:y,tabbarLabels:M,top:C}=r;return{base:{common:O("k-toolbar w-full z-20 relative",u),ios:O(!C&&"pb-safe-4","px-safe-4 flex justify-center"),material:O(!C&&"pb-safe")},bgBlur:{ios:!C&&O(O(y&&M?"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:O(o||h),ios:!C&&O(i.bgIos,"bottom-0 absolute w-full left-0 pointer-events-none",y&&M?"h-[calc(var(--k-safe-area-bottom)_+16px_+_64px_+_16px)]":"h-[calc(var(--k-safe-area-bottom)_+16px_+_48px_+_16px)]"),material:O(i.bgMaterial,"h-full top-0 absolute w-full left-0",m&&(C?"hairline-b":"hairline-t"))},inner:{common:O("flex relative justify-between",p||b),ios:O("gap-4 items-stretch",y&&M?"h-16":"h-12",_?"w-full md:w-auto":"w-auto"),material:O("w-full overflow-hidden items-center",_?"":"pl-safe-2 pr-safe-2",y?"h-20":"h-14")},highlight:{common:O(C?"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}}},z2=(r={},i)=>({bgIos:O("bg-gradient-to-t from-ios-light-surface to-transparent",i("dark:from-ios-dark-surface/50")),bgMaterial:O("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),tabbarHighlightBgIos:"",tabbarHighlightBgMaterial:O("bg-md-light-primary",i("dark:bg-md-dark-primary")),...zn(r)});function Pv(){return Pv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Pv.apply(null,arguments)}const dA=r=>{const{component:i="div",className:u,colors:o,bgClassName:h="",innerClassName:m="",outline:p,tabbar:b,tabbarIcons:_,tabbarLabels:y,top:M,ios:C,material:H,children:q,ref:k,...Q}=r,G=$.useRef(null),ie=$.useRef(null),ce=i,[me,Ae]=$.useState({transform:"",width:""}),te=Da({ios:C,material:H}),de=Mn({ios:C,material:H}),ge=Ln(),F={...Q},_e=z2(o,ge),Ee=de(L2({...r,outline:typeof p>"u"?te==="ios":p,bgClassName:h,innerClassName:m},_e),u),Le=te==="material"&&b&&!_;return $.useEffect(()=>{if(Le&&G.current){const Ke=G.current.previousElementSibling,ye=1/Ke.children.length*100,ae=[...Ke.children].indexOf(Ke.querySelector(".k-tabbar-link-active"));Ae({...me,width:`${ye}%`,transform:`translateX(${ae*100}%)`})}},[q]),P.createElement(ce,Pv({ref:Ke=>{ie.current=Ke,k&&typeof k=="function"?k(Ke):k&&(k.current=Ke)},className:Ee.base},F),P.createElement(oA.Provider,{value:{toolbar:!0,tabbarLabels:y,tabbarIcons:_,tabbar:b}},te==="ios"&&!M&&P.createElement("div",{className:Ee.bgBlur}),(te==="material"||!M)&&P.createElement("div",{className:Ee.bg}),P.createElement("div",{className:Ee.inner},q),Le&&P.createElement("span",{className:Ee.highlight,style:me,ref:G})))};dA.displayName="Toolbar";const U2=(r,i,u)=>{const{outline:o,large:h,medium:m,transparent:p,left:b,right:_,subnavbar:y,fontSizeIos:M,fontSizeMaterial:C,titleFontSizeIos:H,titleFontSizeMaterial:q,titleLargeFontSizeIos:k,titleLargeFontSizeMaterial:Q,titleMediumFontSizeIos:G,titleMediumFontSizeMaterial:ie,bgClassName:ce="",bgClass:me="",subnavbarClassName:Ae="",subnavbarClass:te="",innerClassName:de="",innerClass:ge="",leftClassName:F="",leftClass:_e="",titleClassName:ze="",titleClass:Ee="",subtitleClassName:Le="",subtitleClass:Ke="",rightClassName:ye="",rightClass:ae="",centerTitle:D}=r;return{base:{common:O("k-navbar w-full z-20 top-0 sticky",(h||m)&&"pointer-events-none",u),ios:O("pt-[max(16px,var(--k-safe-area-top))]",M,i.textIos),material:O("pt-safe",C,i.textMaterial)},bgBlur:{ios:O("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:O("absolute w-full left-0 top-0",ce||me),ios:O(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:O("h-full",i.bgMaterial,o&&"hairline-b")},subnavbar:{common:O("relative flex items-center",Ae||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:O("flex relative items-center w-full",de||ge,(h||m)&&"pointer-events-auto z-10"),ios:O("pl-safe-4 pr-safe-4 h-11",!b&&_?"justify-end":"justify-between"),material:"justify-start h-16 pl-safe pr-safe overflow-hidden"},titleContainer:{common:O("flex items-center px-safe-4 relative",(h||m)&&"pointer-events-auto"),ios:O(m&&O(G,"h-11 font-semibold"),h&&O(k,"h-13 font-bold")),material:O(m&&O(ie,"h-12 pb-4"),h&&O(Q,"h-[5.5rem]"))},left:{common:O("flex justify-center items-center h-full",F||_e),ios:"me-2 transform transform-gpu rounded-full",material:"mx-1"},title:{common:O("whitespace-nowrap leading-tight",ze||Ee,(h||m||p)&&"opacity-0",D?"absolute top-1/2 left-1/2 transform-gpu -translate-x-1/2 -translate-y-1/2 text-center":"text-start"),ios:O(`${H} font-semibold`,!D&&"first:mx-2"),material:O(`${q} font-normal`,!D&&"first:mx-4")},subtitle:{common:O("leading-none",Le||Ke),ios:"text-sm opacity-75 font-medium",material:"text-sm opacity-85 font-normal"},right:{common:O("flex justify-center items-center h-full",ye||ae),ios:O("transform transform-gpu rounded-full",D?"ms-2":"ms-auto"),material:"ms-auto me-1"}}},k2=(r,i)=>({bgIos:O("bg-gradient-to-b from-ios-light-surface to-transparent",i("dark:from-ios-dark-surface/50")),bgMaterial:O("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),textIos:O("text-black",i("dark:text-white")),textMaterial:O("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),...zn(r)});function Jv(){return Jv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Jv.apply(null,arguments)}const Rc=r=>{const{component:i="div",className:u,bgClassName:o="",innerClassName:h="",leftClassName:m="",titleClassName:p="",subtitleClassName:b="",rightClassName:_="",subnavbarClassName:y="",centerTitle:M,colors:C,outline:H,medium:q,large:k,transparent:Q,fontSizeIos:G="text-[17px]",fontSizeMaterial:ie="text-[16px]",titleFontSizeIos:ce="text-[17px]",titleFontSizeMaterial:me="text-[22px]",titleMediumFontSizeIos:Ae="text-[24px]",titleMediumFontSizeMaterial:te="text-[24px]",titleLargeFontSizeIos:de="text-[34px]",titleLargeFontSizeMaterial:ge="text-[28px]",scrollEl:F,left:_e,title:ze,subtitle:Ee,right:Le,subnavbar:Ke,ios:ye,material:ae,children:D,ref:Z,...J}=r,ve=$.useRef(null),w=$.useRef(0),K=$.useRef(null),fe=$.useRef(null),se=$.useRef(null),be=$.useRef(null),xe=$.useRef(null),pe=$.useRef(null),ot=i,je=Da({ios:ye,material:ae}),Ye=Mn({ios:ye,material:ae}),rt=Ln(),xt={...J},Ot=k2(C,rt),Wt=Q,At=Kt=>{const{scrollTop:ra}=Kt.target;if(!Wt&&!k&&!q){pe.current&&(be.current&&(be.current.style.opacity=""),K.current&&(K.current.style.opacity=""));return}const Ct=w.current,On=Math.max(Math.min(ra/Ct,1),0);je==="material"&&(K.current.style.opacity=Wt?-.5+On*1.5:"",(q||k)&&(K.current.style.transform=`translateY(-${On*Ct}px)`)),se.current&&(se.current.style.transform=`translateY(-${On*Ct}px)`,se.current.style.opacity=1-On*2),be.current&&(be.current.style.opacity=-.5+On*1.5),(q||k)&&xe.current&&(xe.current.style.transform=`translateY(-${On*Ct}px)`)},xn=()=>typeof F>"u"?ve.current&&ve.current.parentNode:F.current||F,Mi=()=>{if(!k&&!q&&!Wt){pe.current&&(At({target:{scrollTop:0}}),pe.current=!1);return}pe.current=!0,se.current?w.current=se.current.offsetHeight:w.current=fe.current.offsetHeight;const Kt=xn();Kt?(Kt.addEventListener("scroll",At),At({target:Kt})):At({target:{scrollTop:0}})},bt=()=>{const Kt=xn();Kt&&Kt.removeEventListener("scroll",At)};$.useEffect(()=>(Mi(),bt));const sn=Ye(U2({...r,centerTitle:typeof M>"u"?je==="ios":M,outline:H,fontSizeIos:G,fontSizeMaterial:ie,titleFontSizeIos:ce,titleFontSizeMaterial:me,titleMediumFontSizeIos:Ae,titleMediumFontSizeMaterial:te,titleLargeFontSizeIos:de,titleLargeFontSizeMaterial:ge,bgClassName:o,innerClassName:h,leftClassName:m,titleClassName:p,subtitleClassName:b,rightClassName:_,subnavbarClassName:y},Ot),u);return P.createElement(ot,Jv({ref:Kt=>{ve.current=Kt,Z&&typeof Z=="function"?Z(Kt):Z&&(Z.current=Kt)},className:sn.base},xt),P.createElement(cA.Provider,{value:{navbar:!0}},je==="ios"&&P.createElement("div",{className:sn.bgBlur}),P.createElement("div",{className:sn.bg,ref:K}),P.createElement("div",{className:sn.inner,ref:fe},_e&&P.createElement(Tc,{className:sn.left},_e),(ze||Ee)&&P.createElement("div",{className:sn.title,ref:be},ze,Ee&&P.createElement("div",{className:sn.subtitle},Ee)),Le&&P.createElement(Tc,{className:sn.right},Le),D),(k||q)&&P.createElement("div",{className:sn.titleContainer,ref:se},ze),Ke&&P.createElement("div",{className:sn.subnavbar,ref:xe},Ke)))};Rc.displayName="Navbar";const j2=(r,i,u)=>{const{opened:o}=r;return{base:{common:O("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]",u),ios:O("rounded-xl p-4 start-2 end-2 top-safe-2 rounded-3xl flex gap-4 items-center",i.bgIos),material:O("rounded-2xl py-5 px-4 start-4 end-4 top-safe-4",i.bgMaterial)},content:{common:"w-full shrink",ios:"",material:O("mt-2")},header:{common:O("flex justify-start"),ios:"items-center",material:"items-start"},icon:{ios:"shrink-0",material:"me-4"},contentTitle:{material:O("flex flex-row items-center")},title:{ios:O("text-sm font-bold",i.titleIos),material:O("font-medium")},titleRightText:{ios:O("me-1 ms-auto text-sm",i.titleRightIos),material:O("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:O("me-1 ms-auto cursor-pointer"),material:O("ms-auto cursor-pointer")},deleteIcon:{ios:O("w-5 h-5",i.deleteIconIos),material:O("w-6 h-6",i.deleteIconMd)},subtitle:{ios:O("text-sm font-semibold",i.subtitleIos),material:O("text-sm")},text:{ios:O("text-sm"),material:O("text-sm",i.textMaterial)}}},H2=(r,i)=>({bgIos:"",bgMaterial:O("bg-md-light-surface-5",i("dark:bg-md-dark-surface-5")),titleIos:O("text-black",i("dark:text-white")),titleRightIos:O("text-black/45",i("dark:text-white/45")),titleRightMd:O("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:O("text-black ",i("dark:text-white")),textMaterial:O("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant ")),deleteIconIos:O("fill-stone-400 active:fill-stone-200",i("dark:fill-stone-500 dark:active:fill-stone-700")),deleteIconMd:O("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),...zn(r)});function kg(){return kg=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},kg.apply(null,arguments)}const hA=r=>{const{component:i="div",className:u,colors:o,button:h,icon:m,title:p,titleRightText:b,subtitle:_,text:y,opened:M,onClose:C,ios:H,material:q,children:k,ref:Q,...G}=r,ie=$.useRef(null),ce=i,me={...G},Ae=Da({ios:H,material:q}),te=Mn({ios:H,material:q}),de=Ln(),ge=H2(o,de),F=te(j2({...r},ge),u);return Ae==="ios"?P.createElement(Tc,kg({ref:_e=>{ie.current=_e,Q&&typeof Q=="function"?Q(_e):Q&&(Q.current=_e)},component:i,className:F.base},me),m&&P.createElement("div",{className:F.icon},m),P.createElement("div",{className:F.content},P.createElement("div",{className:F.header},p&&P.createElement("div",{className:F.title},p),b&&P.createElement("div",{className:F.titleRightText},b),h&&P.createElement("div",{className:F.button,role:"button",tabIndex:"0",onClick:C},P.createElement(Lg,{theme:Ae,className:F.deleteIcon}))),_&&P.createElement("div",{className:F.subtitle},_),y&&P.createElement("div",{className:F.text},y),k)):P.createElement(ce,kg({ref:_e=>{ie.current=_e,Q&&typeof Q=="function"?Q(_e):Q&&(Q.current=_e)},className:F.base},me),P.createElement("div",{className:F.header},m&&P.createElement("div",{className:F.icon},m),P.createElement("div",{className:F.contentWrapper},P.createElement("div",{className:F.contentTitle},p&&P.createElement("div",{className:F.title},p),b&&P.createElement("div",{className:F.titleRightText},b)),P.createElement("div",{className:F.content},_&&P.createElement("div",{className:F.subtitle},_),y&&P.createElement("div",{className:F.text},y),k)),h&&P.createElement("div",{className:F.button,role:"button",tabIndex:"0",onClick:C},P.createElement(Lg,{theme:Ae,className:F.deleteIcon}))))};hA.displayName="Notification";const G2=(r,i,u)=>({base:{common:O("k-page h-full w-full left-0 top-0 overflow-auto absolute",u),ios:i.bgIos,material:i.bgMaterial}}),I2=(r={},i)=>({bgIos:O("bg-ios-light-surface",i("dark:bg-ios-dark-surface")),bgMaterial:O("bg-md-light-surface",i("dark:bg-md-dark-surface")),...zn(r)});function Wv(){return Wv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Wv.apply(null,arguments)}const fs=r=>{const{component:i="div",className:u,colors:o,ios:h,material:m,children:p,ref:b,..._}=r,y=$.useRef(null),M=i,C={..._},H=Mn({ios:h,material:m}),q=Ln(),k=I2(o,q),Q=H(G2(r,k,u));return P.createElement(M,Wv({ref:G=>{y.current=G,b&&typeof b=="function"?b(G):b&&(b.current=G)},className:Q.base},C),p)};fs.displayName="Page";const Y2=({popoverEl:r,targetEl:i,angleEl:u,needsAngle:o,targetX:h,targetY:m,targetWidth:p=0,targetHeight:b=0,theme:_})=>{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,M=document.body.offsetHeight;y===0&&(y=window.innerWidth),M===0&&(M=window.innerHeight);const[C,H]=[r.offsetWidth,r.offsetHeight];let q=0,k,Q,G="";o&&(q=u.offsetWidth/2);let ie,ce;const me=window.getComputedStyle(i);let Ae=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(Ae)&&(Ae=0),Number.isNaN(te)&&(te=0),Number.isNaN(de)&&(de=0),i){p=i.offsetWidth,b=i.offsetHeight;const ye=i.getBoundingClientRect();ie=ye.left,ce=ye.top}else typeof h<"u"&&m!=="undefined"&&(ie=h,ce=m);let[ge,F,_e]=[0,0,0];const ze=_==="ios"?13:23;let Ee="top";H+q<ce-Ae?F=ce-H-q:H+q<M-ce-b?(Ee="bottom",F=ce+b+q):(Ee="middle",F=b/2+ce-H/2,_e=F,F=Math.max(5,Math.min(F,M-H-5)),_e-=F),Ee==="top"||Ee==="bottom"?(ge=p/2+ie-C/2,_e=ge,ge=Math.max(5,Math.min(ge,y-C-5)),te&&(ge=Math.max(ge,te)),de&&ge+C>y-5-de&&(ge=y-5-de-C),Ee==="top"&&(G="bottom"),Ee==="bottom"&&(G="top"),_e-=ge,k=C/2-q+_e,k=Math.max(Math.min(k,C-q*2-ze),ze)):Ee==="middle"&&(ge=ie-C-q,G="right",(ge<5||ge+C+de>y||ge<te)&&(ge<5&&(ge=ie+p+q),ge+C+de>y&&(ge=y-C-5-de),ge<te&&(ge=te),G="left"),Q=H/2-q+_e,Q=Math.max(Math.min(Q,H-q*2-ze),ze));const Le=Ee,Ke=ge<ie?"left":"right";return{set:!0,angleTop:typeof Q>"u"?void 0:`${Q}px`,angleLeft:typeof k>"u"?void 0:`${k}px`,anglePosition:G,popoverTop:`${F}px`,popoverLeft:`${ge}px`,popoverPosition:`${Le}-${Ke}`}},q2=(r,i,u)=>{const{angleClassName:o,angleClass:h}=r;return{base:{common:O("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:O("overflow-hidden relative"),ios:O("rounded-4xl duration-600",i.bgIos),material:O("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:O(o||h||"","pointer-events-none"),ios:O("absolute w-6.5 h-6.5 z-50 overflow-hidden"),material:O("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:O("absolute rounded w-full h-full transform rotate-45"),ios:O("bg-ios-light-glass backdrop-blur-lg",u("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"}}},V2=(r={},i)=>({bgIos:"",bgMaterial:O("bg-md-light-surface-3",i("dark:bg-md-dark-surface-3")),...zn(r)});function Fv(){return Fv=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Fv.apply(null,arguments)}const qd=r=>{const{component:i="div",className:u,angle:o=!1,angleClassName:h="",colors:m,opened:p,backdrop:b=!0,onBackdropClick:_,target:y,targetX:M,targetY:C,targetWidth:H,targetHeight:q,ios:k,material:Q,children:G,style:ie={},ref:ce,...me}=r,Ae=$.useRef(null),te=$.useRef(null),[de,ge]=$.useState({set:!1,angleTop:0,angleLeft:0,anglePosition:"bottom",popoverTop:0,popoverLeft:0,popoverPosition:"top-left"}),F=p?"opened":"closed",_e=i,ze={...me},Ee=Da({ios:k,material:Q}),Le=Mn({ios:k,material:Q}),Ke=Ln(),ye=V2(m,Ke),ae=Le(q2({...r,angleClassName:h},ye,Ke),u),D=()=>{!y||!Ae.current||!p||ge(Y2({popoverEl:Ae.current,targetEl:y,angleEl:te.current,needsAngle:o,targetX:M,targetY:C,targetHeight:q,targetWidth:H,theme:Ee}))},Z=()=>{typeof window>"u"||window.addEventListener("resize",D)},J=()=>{typeof window>"u"||window.removeEventListener("resize",D)};$.useEffect(()=>(Z(),()=>J())),$.useEffect(()=>{D()},[p]);const ve=de.set?{...ie||{},left:de.popoverLeft,top:de.popoverTop}:ie,w=de.set?{left:de.angleLeft,top:de.angleTop}:void 0,K={"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=O(ae.base[F],K[de.popoverPosition]);return P.createElement(P.Fragment,null,b&&P.createElement("div",{className:ae.backdrop[F],onClick:_}),P.createElement(_e,Fv({ref:se=>{Ae.current=se,ce&&typeof ce=="function"?ce(se):ce&&(ce.current=se)},className:fe,style:ve},ze),o&&P.createElement("div",{ref:te,style:w,className:ae.angleWrap[de.anglePosition]},P.createElement("div",{className:ae.angleArrow[de.anglePosition]})),P.createElement(Tc,{className:ae.inner[F]},G)))};qd.displayName="Popover";const Q2=(r,i,u)=>({base:{common:O("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",u),ios:"duration-400 md:rounded-4xl",material:" md:rounded-[1.75rem]",opened:{common:"-translate-y-1/2",material:O("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"}}),K2=(r={},i)=>({bg:O("bg-white",i("dark:bg-black")),...zn(r)});function $v(){return $v=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},$v.apply(null,arguments)}const mA=r=>{const{component:i="div",className:u,colors:o,ref:h,opened:m,backdrop:p=!0,onBackdropClick:b,ios:_,material:y,children:M,...C}=r,H=$.useRef(null),q=m?"opened":"closed",k=i,Q={...C},G=Mn({ios:_,material:y}),ie=Ln(),ce=K2(o,ie),me=G(Q2(r,ce,u));return P.createElement(P.Fragment,null,p&&P.createElement("div",{className:me.backdrop[q],onClick:b}),P.createElement(k,$v({ref:Ae=>{H.current=Ae,h&&typeof h=="function"?h(Ae):h&&(h.current=Ae)},className:me.base[q]},Q),M))};mA.displayName="Popup";function e0(){return e0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},e0.apply(null,arguments)}const Z2=r=>P.createElement("svg",e0({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentcolor"},r),P.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"}),P.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"}),P.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"}),P.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"}),P.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"}),P.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"}),P.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"}),P.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 t0(){return t0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},t0.apply(null,arguments)}const X2=r=>P.createElement("svg",t0({viewBox:"0 0 36 36"},r,{fill:"none",stroke:"currentcolor"}),P.createElement("circle",{cx:"18",cy:"18",r:"16"})),P2=(r,i,u,o)=>({base:{common:O("k-preloader",u==="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"}}),J2=(r={},i)=>({iconIos:"text-primary",iconMaterial:O("text-md-light-primary",i("dark:text-md-dark-primary")),...zn(r)});function n0(){return n0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},n0.apply(null,arguments)}const O0=r=>{const{component:i="span",className:u,colors:o,ios:h,material:m,children:p,ref:b,..._}=r,y=$.useRef(null),M=i,C={..._},H=Da({ios:h,material:m}),q=Mn({ios:h,material:m}),k=Ln(),Q=J2(o,k),G=H==="ios"?Z2:X2,ie=q(P2(r,Q,H,u));return P.createElement(M,n0({ref:ce=>{y.current=ce,b&&typeof b=="function"?b(ce):b&&(b.current=ce)},className:ie.base},C),P.createElement("span",{className:ie.inner},P.createElement(G,{className:"w-full h-full"})),p)};O0.displayName="Preloader";const W2=(r,i,u)=>({base:{common:O("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",u),ios:O("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"}}),F2=(r={},i)=>({bgIos:O("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),bgMaterial:O("bg-md-light-surface",i("dark:bg-md-dark-surface")),...zn(r)});function a0(){return a0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},a0.apply(null,arguments)}const gA=r=>{const{component:i="div",className:u,colors:o,opened:h,backdrop:m=!0,onBackdropClick:p,ios:b,material:_,children:y,ref:M,...C}=r,H=$.useRef(null),q=h?"opened":"closed",k=i,Q={...C},G=Mn({ios:b,material:_}),ie=Ln(),ce=F2(o,ie),me=G(W2(r,ce,u));return P.createElement(P.Fragment,null,m&&P.createElement("div",{className:me.backdrop[q],onClick:p}),P.createElement(k,a0({ref:H,className:me.base[q]},Q),y))};gA.displayName="Sheet";function vt(r){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];throw new Error(typeof r=="number"?"[MobX] minified error nr: "+r+(u.length?" "+u.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+r)}var $2={};function Jg(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:$2}var pA=Object.assign,jg=Object.getOwnPropertyDescriptor,xi=Object.defineProperty,Wg=Object.prototype,r0=[];Object.freeze(r0);var vA={};Object.freeze(vA);var e_=typeof Proxy<"u",t_=Object.toString();function AA(){e_||vt("Proxy not available")}function bA(r){var i=!1;return function(){if(!i)return i=!0,r.apply(this,arguments)}}var Ec=function(){};function jr(r){return typeof r=="function"}function Bu(r){var i=typeof r;switch(i){case"string":case"symbol":case"number":return!0}return!1}function Fg(r){return r!==null&&typeof r=="object"}function sl(r){if(!Fg(r))return!1;var i=Object.getPrototypeOf(r);if(i==null)return!0;var u=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return typeof u=="function"&&u.toString()===t_}function yA(r){var i=r?.constructor;return i?i.name==="GeneratorFunction"||i.displayName==="GeneratorFunction":!1}function Vd(r,i,u){xi(r,i,{enumerable:!1,writable:!0,configurable:!0,value:u})}function _A(r,i,u){xi(r,i,{enumerable:!1,writable:!1,configurable:!0,value:u})}function ju(r,i){var u="isMobX"+r;return i.prototype[u]=!0,function(o){return Fg(o)&&o[u]===!0}}function zc(r){return r!=null&&Object.prototype.toString.call(r)==="[object Map]"}function n_(r){var i=Object.getPrototypeOf(r),u=Object.getPrototypeOf(i),o=Object.getPrototypeOf(u);return o===null}function nl(r){return r!=null&&Object.prototype.toString.call(r)==="[object Set]"}var xA=typeof Object.getOwnPropertySymbols<"u";function a_(r){var i=Object.keys(r);if(!xA)return i;var u=Object.getOwnPropertySymbols(r);return u.length?[].concat(i,u.filter(function(o){return Wg.propertyIsEnumerable.call(r,o)})):i}var Nc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:xA?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames;function SA(r){return r===null?null:typeof r=="object"?""+r:r}function il(r,i){return Wg.hasOwnProperty.call(r,i)}var r_=Object.getOwnPropertyDescriptors||function(i){var u={};return Nc(i).forEach(function(o){u[o]=jg(i,o)}),u};function Za(r,i){return!!(r&i)}function Xa(r,i,u){return u?r|=i:r&=~i,r}function l1(r,i){(i==null||i>r.length)&&(i=r.length);for(var u=0,o=Array(i);u<i;u++)o[u]=r[u];return o}function i_(r,i){for(var u=0;u<i.length;u++){var o=i[u];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,s_(o.key),o)}}function Uc(r,i,u){return i&&i_(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function wc(r,i){var u=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(u)return(u=u.call(r)).next.bind(u);if(Array.isArray(r)||(u=u_(r))||i){u&&(r=u);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 Lu(){return Lu=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)({}).hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Lu.apply(null,arguments)}function EA(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,i0(r,i)}function i0(r,i){return i0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,o){return u.__proto__=o,u},i0(r,i)}function l_(r,i){if(typeof r!="object"||!r)return r;var u=r[Symbol.toPrimitive];if(u!==void 0){var o=u.call(r,i);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function s_(r){var i=l_(r,"string");return typeof i=="symbol"?i:i+""}function u_(r,i){if(r){if(typeof r=="string")return l1(r,i);var u={}.toString.call(r).slice(8,-1);return u==="Object"&&r.constructor&&(u=r.constructor.name),u==="Map"||u==="Set"?Array.from(r):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?l1(r,i):void 0}}var _i=Symbol("mobx-stored-annotations");function Si(r){function i(u,o){if(Kd(o))return r.decorate_20223_(u,o);Qd(u,o,r)}return Object.assign(i,r)}function Qd(r,i,u){il(r,_i)||Vd(r,_i,Lu({},r[_i])),g_(u)||(r[_i][i]=u)}function o_(r){return il(r,_i)||Vd(r,_i,Lu({},r[_i])),r[_i]}function Kd(r){return typeof r=="object"&&typeof r.kind=="string"}var Ze=Symbol("mobx administration"),ms=(function(){function r(u){u===void 0&&(u="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=_t.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=u}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 IA(this)},i.reportChanged=function(){dr(),YA(this),hr()},i.toString=function(){return this.name_},Uc(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)}}])})();ms.isBeingObservedMask_=1;ms.isPendingUnobservationMask_=2;ms.diffValueMask_=4;var C0=ju("Atom",ms);function wA(r,i,u){i===void 0&&(i=Ec),u===void 0&&(u=Ec);var o=new ms(r);return i!==Ec&&Ax(o,i),u!==Ec&&XA(o,u),o}function c_(r,i){return ub(r,i)}function f_(r,i){return Object.is?Object.is(r,i):r===i?r!==0||1/r===1/i:r!==r&&i!==i}var Hg={structural:c_,default:f_};function zu(r,i,u){return $A(r)?r:Array.isArray(r)?Bn.array(r,{name:u}):sl(r)?Bn.object(r,void 0,{name:u}):zc(r)?Bn.map(r,{name:u}):nl(r)?Bn.set(r,{name:u}):typeof r=="function"&&!Dc(r)&&!Id(r)?yA(r)?Bc(r):Gd(u,r):r}function d_(r,i,u){if(r==null||lp(r)||ip(r)||Gu(r)||yi(r))return r;if(Array.isArray(r))return Bn.array(r,{name:u,deep:!1});if(sl(r))return Bn.object(r,void 0,{name:u,deep:!1});if(zc(r))return Bn.map(r,{name:u,deep:!1});if(nl(r))return Bn.set(r,{name:u,deep:!1})}function $g(r){return r}function h_(r,i){return ub(r,i)?i:r}var m_="override";function g_(r){return r.annotationType_===m_}function Zd(r,i){return{annotationType_:r,options_:i,make_:p_,extend_:v_,decorate_20223_:A_}}function p_(r,i,u,o){var h;if((h=this.options_)!=null&&h.bound)return this.extend_(r,i,u,!1)===null?0:1;if(o===r.target_)return this.extend_(r,i,u,!1)===null?0:2;if(Dc(u.value))return 1;var m=MA(r,this,i,u,!1);return xi(o,i,m),2}function v_(r,i,u,o){var h=MA(r,this,i,u);return r.defineProperty_(i,h,o)}function A_(r,i){var u=i.kind,o=i.name,h=i.addInitializer,m=this,p=function(y){var M,C,H,q;return Uu((M=(C=m.options_)==null?void 0:C.name)!=null?M:o.toString(),y,(H=(q=m.options_)==null?void 0:q.autoAction)!=null?H:!1)};if(u=="field")return function(_){var y,M=_;return Dc(M)||(M=p(M)),(y=m.options_)!=null&&y.bound&&(M=M.bind(this),M.isMobxAction=!0),M};if(u=="method"){var b;return Dc(r)||(r=p(r)),(b=this.options_)!=null&&b.bound&&h(function(){var _=this,y=_[o].bind(_);y.isMobxAction=!0,_[o]=y}),r}vt("Cannot apply '"+m.annotationType_+"' to '"+String(o)+"' (kind: "+u+"):"+(`
'`+m.annotationType_+"' can only be used on properties with a function value."))}function b_(r,i,u,o){i.annotationType_,o.value}function MA(r,i,u,o,h){var m,p,b,_,y,M,C;h===void 0&&(h=Se.safeDescriptors),b_(r,i,u,o);var H=o.value;if((m=i.options_)!=null&&m.bound){var q;H=H.bind((q=r.proxy_)!=null?q:r.target_)}return{value:Uu((p=(b=i.options_)==null?void 0:b.name)!=null?p:u.toString(),H,(_=(y=i.options_)==null?void 0:y.autoAction)!=null?_:!1,(M=i.options_)!=null&&M.bound?(C=r.proxy_)!=null?C:r.target_:void 0),configurable:h?r.isPlainObject_:!0,enumerable:!1,writable:!h}}function OA(r,i){return{annotationType_:r,options_:i,make_:y_,extend_:__,decorate_20223_:x_}}function y_(r,i,u,o){var h;if(o===r.target_)return this.extend_(r,i,u,!1)===null?0:2;if((h=this.options_)!=null&&h.bound&&(!il(r.target_,i)||!Id(r.target_[i]))&&this.extend_(r,i,u,!1)===null)return 0;if(Id(u.value))return 1;var m=CA(r,this,i,u,!1,!1);return xi(o,i,m),2}function __(r,i,u,o){var h,m=CA(r,this,i,u,(h=this.options_)==null?void 0:h.bound);return r.defineProperty_(i,m,o)}function x_(r,i){var u,o=i.name,h=i.addInitializer;return Id(r)||(r=Bc(r)),(u=this.options_)!=null&&u.bound&&h(function(){var m=this,p=m[o].bind(m);p.isMobXFlow=!0,m[o]=p}),r}function S_(r,i,u,o){i.annotationType_,o.value}function CA(r,i,u,o,h,m){m===void 0&&(m=Se.safeDescriptors),S_(r,i,u,o);var p=o.value;if(Id(p)||(p=Bc(p)),h){var b;p=p.bind((b=r.proxy_)!=null?b:r.target_),p.isMobXFlow=!0}return{value:p,configurable:m?r.isPlainObject_:!0,enumerable:!1,writable:!m}}function T0(r,i){return{annotationType_:r,options_:i,make_:E_,extend_:w_,decorate_20223_:M_}}function E_(r,i,u){return this.extend_(r,i,u,!1)===null?0:1}function w_(r,i,u,o){return O_(r,this,i,u),r.defineComputedProperty_(i,Lu({},this.options_,{get:u.get,set:u.set}),o)}function M_(r,i){var u=this,o=i.name,h=i.addInitializer;return h(function(){var m=Iu(this)[Ze],p=Lu({},u.options_,{get:r,context:this});p.name||(p.name="ObservableObject."+o.toString()),m.values_.set(o,new Hr(p))}),function(){return this[Ze].getObservablePropValue_(o)}}function O_(r,i,u,o){i.annotationType_,o.get}function ep(r,i){return{annotationType_:r,options_:i,make_:C_,extend_:T_,decorate_20223_:R_}}function C_(r,i,u){return this.extend_(r,i,u,!1)===null?0:1}function T_(r,i,u,o){var h,m;return N_(r,this),r.defineObservableProperty_(i,u.value,(h=(m=this.options_)==null?void 0:m.enhancer)!=null?h:zu,o)}function R_(r,i){var u=this,o=i.kind,h=i.name,m=new WeakSet;function p(b,_){var y,M,C=Iu(b)[Ze],H=new Du(_,(y=(M=u.options_)==null?void 0:M.enhancer)!=null?y:zu,"ObservableObject."+h.toString(),!1);C.values_.set(h,H),m.add(b)}if(o=="accessor")return{get:function(){return m.has(this)||p(this,r.get.call(this)),this[Ze].getObservablePropValue_(h)},set:function(_){return m.has(this)||p(this,_),this[Ze].setObservablePropValue_(h,_)},init:function(_){return m.has(this)||p(this,_),_}}}function N_(r,i,u,o){i.annotationType_}var D_="true",B_=TA();function TA(r){return{annotationType_:D_,options_:r,make_:L_,extend_:z_,decorate_20223_:U_}}function L_(r,i,u,o){var h,m;if(u.get)return tp.make_(r,i,u,o);if(u.set){var p=Dc(u.set)?u.set:Uu(i.toString(),u.set);return o===r.target_?r.defineProperty_(i,{configurable:Se.safeDescriptors?r.isPlainObject_:!0,set:p})===null?0:2:(xi(o,i,{configurable:!0,set:p}),2)}if(o!==r.target_&&typeof u.value=="function"){var b;if(yA(u.value)){var _,y=(_=this.options_)!=null&&_.autoBind?Bc.bound:Bc;return y.make_(r,i,u,o)}var M=(b=this.options_)!=null&&b.autoBind?Gd.bound:Gd;return M.make_(r,i,u,o)}var C=((h=this.options_)==null?void 0:h.deep)===!1?Bn.ref:Bn;if(typeof u.value=="function"&&(m=this.options_)!=null&&m.autoBind){var H;u.value=u.value.bind((H=r.proxy_)!=null?H:r.target_)}return C.make_(r,i,u,o)}function z_(r,i,u,o){var h,m;if(u.get)return tp.extend_(r,i,u,o);if(u.set)return r.defineProperty_(i,{configurable:Se.safeDescriptors?r.isPlainObject_:!0,set:Uu(i.toString(),u.set)},o);if(typeof u.value=="function"&&(h=this.options_)!=null&&h.autoBind){var p;u.value=u.value.bind((p=r.proxy_)!=null?p:r.target_)}var b=((m=this.options_)==null?void 0:m.deep)===!1?Bn.ref:Bn;return b.extend_(r,i,u,o)}function U_(r,i){vt("'"+this.annotationType_+"' cannot be used as a decorator")}var k_="observable",j_="observable.ref",H_="observable.shallow",G_="observable.struct",RA={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(RA);function Eg(r){return r||RA}var l0=ep(k_),I_=ep(j_,{enhancer:$g}),Y_=ep(H_,{enhancer:d_}),q_=ep(G_,{enhancer:h_}),NA=Si(l0);function wg(r){return r.deep===!0?zu:r.deep===!1?$g:Q_(r.defaultDecorator)}function V_(r){var i;return r?(i=r.defaultDecorator)!=null?i:TA(r):void 0}function Q_(r){var i,u;return r&&(i=(u=r.options_)==null?void 0:u.enhancer)!=null?i:zu}function DA(r,i,u){if(Kd(i))return l0.decorate_20223_(r,i);if(Bu(i)){Qd(r,i,l0);return}return $A(r)?r:sl(r)?Bn.object(r,i,u):Array.isArray(r)?Bn.array(r,i):zc(r)?Bn.map(r,i):nl(r)?Bn.set(r,i):typeof r=="object"&&r!==null?r:Bn.box(r,i)}pA(DA,NA);var K_={box:function(i,u){var o=Eg(u);return new Du(i,wg(o),o.name,!0,o.equals)},array:function(i,u){var o=Eg(u);return(Se.useProxies===!1||o.proxy===!1?Yx:Dx)(i,wg(o),o.name)},map:function(i,u){var o=Eg(u);return new nb(i,wg(o),o.name)},set:function(i,u){var o=Eg(u);return new ab(i,wg(o),o.name)},object:function(i,u,o){return gs(function(){return JA(Se.useProxies===!1||o?.proxy===!1?Iu({},o):Cx({},o),i,u)})},ref:Si(I_),shallow:Si(Y_),deep:NA,struct:Si(q_)},Bn=pA(DA,K_),BA="computed",Z_="computed.struct",s0=T0(BA),X_=T0(Z_,{equals:Hg.structural}),tp=function(i,u){if(Kd(u))return s0.decorate_20223_(i,u);if(Bu(u))return Qd(i,u,s0);if(sl(i))return Si(T0(BA,i));var o=sl(u)?u:{};return o.get=i,o.name||(o.name=i.name||""),new Hr(o)};Object.assign(tp,s0);tp.struct=Si(X_);var s1,u1,Gg=0,P_=1,J_=(s1=(u1=jg(function(){},"name"))==null?void 0:u1.configurable)!=null?s1:!1,o1={value:"action",configurable:!0,writable:!1,enumerable:!1};function Uu(r,i,u,o){u===void 0&&(u=!1);function h(){return LA(r,u,i,o||this,arguments)}return h.isMobxAction=!0,h.toString=function(){return i.toString()},J_&&(o1.value=r,xi(h,"name",o1)),h}function LA(r,i,u,o,h){var m=W_(r,i);try{return u.apply(o,h)}catch(p){throw m.error_=p,p}finally{F_(m)}}function W_(r,i,u,o){var h=!1,m=0,p=Se.trackingDerivation,b=!i||!p;dr();var _=Se.allowStateChanges;b&&(Hu(),_=np(!0));var y=R0(!0),M={runAsAction_:b,prevDerivation_:p,prevAllowStateChanges_:_,prevAllowStateReads_:y,notifySpy_:h,startTime_:m,actionId_:P_++,parentActionId_:Gg};return Gg=M.actionId_,M}function F_(r){Gg!==r.actionId_&&vt(30),Gg=r.parentActionId_,r.error_!==void 0&&(Se.suppressReactionErrors=!0),ap(r.prevAllowStateChanges_),kd(r.prevAllowStateReads_),hr(),r.runAsAction_&&ll(r.prevDerivation_),Se.suppressReactionErrors=!1}function $_(r,i){var u=np(r);try{return i()}finally{ap(u)}}function np(r){var i=Se.allowStateChanges;return Se.allowStateChanges=r,i}function ap(r){Se.allowStateChanges=r}var Du=(function(r){function i(o,h,m,p,b){var _;return m===void 0&&(m="ObservableValue"),b===void 0&&(b=Hg.default),_=r.call(this,m)||this,_.enhancer=void 0,_.name_=void 0,_.equals=void 0,_.hasUnreportedChange_=!1,_.interceptors_=void 0,_.changeListeners_=void 0,_.value_=void 0,_.dehancer=void 0,_.enhancer=h,_.name_=m,_.equals=b,_.value_=h(o,void 0,m),_}EA(i,r);var u=i.prototype;return u.dehanceValue=function(h){return this.dehancer!==void 0?this.dehancer(h):h},u.set=function(h){this.value_,h=this.prepareNewValue_(h),h!==Se.UNCHANGED&&this.setNewValue_(h)},u.prepareNewValue_=function(h){if(cr(this)){var m=fr(this,{object:this,type:Ei,newValue:h});if(!m)return Se.UNCHANGED;h=m.newValue}return h=this.enhancer(h,this.value_,this.name_),this.equals(this.value_,h)?Se.UNCHANGED:h},u.setNewValue_=function(h){var m=this.value_;this.value_=h,this.reportChanged(),Ur(this)&&kr(this,{type:Ei,object:this,newValue:h,oldValue:m})},u.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},u.intercept_=function(h){return Xd(this,h)},u.observe_=function(h,m){return m&&h({observableKind:"value",debugObjectName:this.name_,object:this,type:Ei,newValue:this.value_,oldValue:void 0}),Pd(this,h)},u.raw=function(){return this.value_},u.toJSON=function(){return this.get()},u.toString=function(){return this.name_+"["+this.value_+"]"},u.valueOf=function(){return SA(this.get())},u[Symbol.toPrimitive]=function(){return this.valueOf()},i})(ms),Hr=(function(){function r(u){this.dependenciesState_=_t.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=_t.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Yg(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ig.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,u.get||vt(31),this.derivation=u.get,this.name_=u.name||"ComputedValue",u.set&&(this.setter_=Uu("ComputedValue-setter",u.set)),this.equals_=u.equals||(u.compareStructural||u.struct?Hg.structural:Hg.default),this.scope_=u.context,this.requiresReaction_=u.requiresReaction,this.keepAlive_=!!u.keepAlive}var i=r.prototype;return i.onBecomeStale_=function(){rx(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&&vt(32,this.name_,this.derivation),Se.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)u0(this)&&(this.warnAboutUntrackedRead_(),dr(),this.value_=this.computeValue_(!1),hr());else if(IA(this),u0(this)){var o=Se.trackingContext;this.keepAlive_&&!o&&(Se.trackingContext=this),this.trackAndCompute()&&ax(this),Se.trackingContext=o}var h=this.value_;if(Tg(h))throw h.cause;return h},i.set=function(o){if(this.setter_){this.isRunningSetter&&vt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,o)}finally{this.isRunningSetter=!1}}else vt(34,this.name_)},i.trackAndCompute=function(){var o=this.value_,h=this.dependenciesState_===_t.NOT_TRACKING_,m=this.computeValue_(!0),p=h||Tg(o)||Tg(m)||!this.equals_(o,m);return p&&(this.value_=m),p},i.computeValue_=function(o){this.isComputing=!0;var h=np(!1),m;if(o)m=zA(this,this.derivation,this.scope_);else if(Se.disableErrorBoundaries===!0)m=this.derivation.call(this.scope_);else try{m=this.derivation.call(this.scope_)}catch(p){m=new Yg(p)}return ap(h),this.isComputing=!1,m},i.suspend_=function(){this.keepAlive_||(o0(this),this.value_=void 0)},i.observe_=function(o,h){var m=this,p=!0,b=void 0;return hx(function(){var _=m.get();if(!p||h){var y=Hu();o({observableKind:"computed",debugObjectName:m.name_,type:Ei,object:m,newValue:_,oldValue:b}),ll(y)}p=!1,b=_})},i.warnAboutUntrackedRead_=function(){},i.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},i.valueOf=function(){return SA(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},Uc(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)}}])})();Hr.isComputingMask_=1;Hr.isRunningSetterMask_=2;Hr.isBeingObservedMask_=4;Hr.isPendingUnobservationMask_=8;Hr.diffValueMask_=16;var rp=ju("ComputedValue",Hr),_t;(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_"})(_t||(_t={}));var Ig;(function(r){r[r.NONE=0]="NONE",r[r.LOG=1]="LOG",r[r.BREAK=2]="BREAK"})(Ig||(Ig={}));var Yg=function(i){this.cause=void 0,this.cause=i};function Tg(r){return r instanceof Yg}function u0(r){switch(r.dependenciesState_){case _t.UP_TO_DATE_:return!1;case _t.NOT_TRACKING_:case _t.STALE_:return!0;case _t.POSSIBLY_STALE_:{for(var i=R0(!0),u=Hu(),o=r.observing_,h=o.length,m=0;m<h;m++){var p=o[m];if(rp(p)){if(Se.disableErrorBoundaries)p.get();else try{p.get()}catch{return ll(u),kd(i),!0}if(r.dependenciesState_===_t.STALE_)return ll(u),kd(i),!0}}return kA(r),ll(u),kd(i),!1}}}function zA(r,i,u){var o=R0(!0);kA(r),r.newObserving_=new Array(r.runId_===0?100:r.observing_.length),r.unboundDepsCount_=0,r.runId_=++Se.runId;var h=Se.trackingDerivation;Se.trackingDerivation=r,Se.inBatch++;var m;if(Se.disableErrorBoundaries===!0)m=i.call(u);else try{m=i.call(u)}catch(p){m=new Yg(p)}return Se.inBatch--,Se.trackingDerivation=h,ex(r),kd(o),m}function ex(r){for(var i=r.observing_,u=r.observing_=r.newObserving_,o=_t.UP_TO_DATE_,h=0,m=r.unboundDepsCount_,p=0;p<m;p++){var b=u[p];b.diffValue===0&&(b.diffValue=1,h!==p&&(u[h]=b),h++),b.dependenciesState_>o&&(o=b.dependenciesState_)}for(u.length=h,r.newObserving_=null,m=i.length;m--;){var _=i[m];_.diffValue===0&&HA(_,r),_.diffValue=0}for(;h--;){var y=u[h];y.diffValue===1&&(y.diffValue=0,nx(y,r))}o!==_t.UP_TO_DATE_&&(r.dependenciesState_=o,r.onBecomeStale_())}function o0(r){var i=r.observing_;r.observing_=[];for(var u=i.length;u--;)HA(i[u],r);r.dependenciesState_=_t.NOT_TRACKING_}function UA(r){var i=Hu();try{return r()}finally{ll(i)}}function Hu(){var r=Se.trackingDerivation;return Se.trackingDerivation=null,r}function ll(r){Se.trackingDerivation=r}function R0(r){var i=Se.allowStateReads;return Se.allowStateReads=r,i}function kd(r){Se.allowStateReads=r}function kA(r){if(r.dependenciesState_!==_t.UP_TO_DATE_){r.dependenciesState_=_t.UP_TO_DATE_;for(var i=r.observing_,u=i.length;u--;)i[u].lowestObserverState_=_t.UP_TO_DATE_}}var Rg=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},Ng=!0,jA=!1,Se=(function(){var r=Jg();return r.__mobxInstanceCount>0&&!r.__mobxGlobals&&(Ng=!1),r.__mobxGlobals&&r.__mobxGlobals.version!==new Rg().version&&(Ng=!1),Ng?r.__mobxGlobals?(r.__mobxInstanceCount+=1,r.__mobxGlobals.UNCHANGED||(r.__mobxGlobals.UNCHANGED={}),r.__mobxGlobals):(r.__mobxInstanceCount=1,r.__mobxGlobals=new Rg):(setTimeout(function(){jA||vt(35)},1),new Rg)})();function tx(){if((Se.pendingReactions.length||Se.inBatch||Se.isRunningReactions)&&vt(36),jA=!0,Ng){var r=Jg();--r.__mobxInstanceCount===0&&(r.__mobxGlobals=void 0),Se=new Rg}}function nx(r,i){r.observers_.add(i),r.lowestObserverState_>i.dependenciesState_&&(r.lowestObserverState_=i.dependenciesState_)}function HA(r,i){r.observers_.delete(i),r.observers_.size===0&&GA(r)}function GA(r){r.isPendingUnobservation===!1&&(r.isPendingUnobservation=!0,Se.pendingUnobservations.push(r))}function dr(){Se.inBatch++}function hr(){if(--Se.inBatch===0){qA();for(var r=Se.pendingUnobservations,i=0;i<r.length;i++){var u=r[i];u.isPendingUnobservation=!1,u.observers_.size===0&&(u.isBeingObserved&&(u.isBeingObserved=!1,u.onBUO()),u instanceof Hr&&u.suspend_())}Se.pendingUnobservations=[]}}function IA(r){var i=Se.trackingDerivation;return i!==null?(i.runId_!==r.lastAccessedBy_&&(r.lastAccessedBy_=i.runId_,i.newObserving_[i.unboundDepsCount_++]=r,!r.isBeingObserved&&Se.trackingContext&&(r.isBeingObserved=!0,r.onBO())),r.isBeingObserved):(r.observers_.size===0&&Se.inBatch>0&&GA(r),!1)}function YA(r){r.lowestObserverState_!==_t.STALE_&&(r.lowestObserverState_=_t.STALE_,r.observers_.forEach(function(i){i.dependenciesState_===_t.UP_TO_DATE_&&i.onBecomeStale_(),i.dependenciesState_=_t.STALE_}))}function ax(r){r.lowestObserverState_!==_t.STALE_&&(r.lowestObserverState_=_t.STALE_,r.observers_.forEach(function(i){i.dependenciesState_===_t.POSSIBLY_STALE_?i.dependenciesState_=_t.STALE_:i.dependenciesState_===_t.UP_TO_DATE_&&(r.lowestObserverState_=_t.UP_TO_DATE_)}))}function rx(r){r.lowestObserverState_===_t.UP_TO_DATE_&&(r.lowestObserverState_=_t.POSSIBLY_STALE_,r.observers_.forEach(function(i){i.dependenciesState_===_t.UP_TO_DATE_&&(i.dependenciesState_=_t.POSSIBLY_STALE_,i.onBecomeStale_())}))}var wi=(function(){function r(u,o,h,m){u===void 0&&(u="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=_t.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Ig.NONE,this.name_=u,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,Se.pendingReactions.push(this),qA())},i.runReaction_=function(){if(!this.isDisposed){dr(),this.isScheduled=!1;var o=Se.trackingContext;if(Se.trackingContext=this,u0(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(h){this.reportExceptionInDerivation_(h)}}Se.trackingContext=o,hr()}},i.track=function(o){if(!this.isDisposed){dr(),this.isRunning=!0;var h=Se.trackingContext;Se.trackingContext=this;var m=zA(this,o,void 0);Se.trackingContext=h,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&o0(this),Tg(m)&&this.reportExceptionInDerivation_(m.cause),hr()}},i.reportExceptionInDerivation_=function(o){var h=this;if(this.errorHandler_){this.errorHandler_(o,this);return}if(Se.disableErrorBoundaries)throw o;var m="[mobx] uncaught error in '"+this+"'";Se.suppressReactionErrors||console.error(m,o),Se.globalReactionErrorHandlers.forEach(function(p){return p(o,h)})},i.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(dr(),o0(this),hr()))},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[Ze]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(m[Symbol.dispose]=m),m},i.toString=function(){return"Reaction["+this.name_+"]"},i.trace=function(o){},Uc(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)}}])})();wi.isDisposedMask_=1;wi.isScheduledMask_=2;wi.isTrackPendingMask_=4;wi.isRunningMask_=8;wi.diffValueMask_=16;var ix=100,c0=function(i){return i()};function qA(){Se.inBatch>0||Se.isRunningReactions||c0(lx)}function lx(){Se.isRunningReactions=!0;for(var r=Se.pendingReactions,i=0;r.length>0;){++i===ix&&(console.error("[mobx] cycle in reaction: "+r[0]),r.splice(0));for(var u=r.splice(0),o=0,h=u.length;o<h;o++)u[o].runReaction_()}Se.isRunningReactions=!1}var qg=ju("Reaction",wi);function sx(r){var i=c0;c0=function(o){return r(function(){return i(o)})}}function jd(){return!1}function ux(r){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var VA="action",ox="action.bound",QA="autoAction",cx="autoAction.bound",KA="<unnamed action>",f0=Zd(VA),fx=Zd(ox,{bound:!0}),d0=Zd(QA,{autoAction:!0}),dx=Zd(cx,{autoAction:!0,bound:!0});function ZA(r){var i=function(o,h){if(jr(o))return Uu(o.name||KA,o,r);if(jr(h))return Uu(o,h,r);if(Kd(h))return(r?d0:f0).decorate_20223_(o,h);if(Bu(h))return Qd(o,h,r?d0:f0);if(Bu(o))return Si(Zd(r?QA:VA,{name:o,autoAction:r}))};return i}var Mc=ZA(!1);Object.assign(Mc,f0);var Gd=ZA(!0);Object.assign(Gd,d0);Mc.bound=Si(fx);Gd.bound=Si(dx);function tl(r){return LA(r.name||KA,!1,r,this,void 0)}function Dc(r){return jr(r)&&r.isMobxAction===!0}function hx(r,i){var u,o,h,m;i===void 0&&(i=vA);var p=(u=(o=i)==null?void 0:o.name)!=null?u:"Autorun",b=!i.scheduler&&!i.delay,_;if(b)_=new wi(p,function(){this.track(C)},i.onError,i.requiresObservable);else{var y=gx(i),M=!1;_=new wi(p,function(){M||(M=!0,y(function(){M=!1,_.isDisposed||_.track(C)}))},i.onError,i.requiresObservable)}function C(){r(_)}return(h=i)!=null&&(h=h.signal)!=null&&h.aborted||_.schedule_(),_.getDisposer_((m=i)==null?void 0:m.signal)}var mx=function(i){return i()};function gx(r){return r.scheduler?r.scheduler:r.delay?function(i){return setTimeout(i,r.delay)}:mx}var px="onBO",vx="onBUO";function Ax(r,i,u){return PA(px,r,i,u)}function XA(r,i,u){return PA(vx,r,i,u)}function PA(r,i,u,o){var h=Kg(i),m=jr(o)?o:u,p=r+"L";return h[p]?h[p].add(m):h[p]=new Set([m]),function(){var b=h[p];b&&(b.delete(m),b.size===0&&delete h[p])}}var bx="never",Mg="always",yx="observed";function _x(r){r.isolateGlobalState===!0&&tx();var i=r.useProxies,u=r.enforceActions;if(i!==void 0&&(Se.useProxies=i===Mg?!0:i===bx?!1:typeof Proxy<"u"),i==="ifavailable"&&(Se.verifyProxies=!0),u!==void 0){var o=u===Mg?Mg:u===yx;Se.enforceActions=o,Se.allowStateChanges=!(o===!0||o===Mg)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(h){h in r&&(Se[h]=!!r[h])}),Se.allowStateReads=!Se.observableRequiresReaction,r.reactionScheduler&&sx(r.reactionScheduler)}function JA(r,i,u,o){var h=r_(i);return gs(function(){var m=Iu(r,o)[Ze];Nc(h).forEach(function(p){m.extend_(p,h[p],u&&p in u?u[p]:!0)})}),r}function xx(r,i){return WA(Kg(r,i))}function WA(r){var i={name:r.name_};return r.observing_&&r.observing_.length>0&&(i.dependencies=Sx(r.observing_).map(WA)),i}function Sx(r){return Array.from(new Set(r))}var Ex=0;function FA(){this.message="FLOW_CANCELLED"}FA.prototype=Object.create(Error.prototype);var wv=OA("flow"),wx=OA("flow.bound",{bound:!0}),Bc=Object.assign(function(i,u){if(Kd(u))return wv.decorate_20223_(i,u);if(Bu(u))return Qd(i,u,wv);var o=i,h=o.name||"<unnamed flow>",m=function(){var b=this,_=arguments,y=++Ex,M=Mc(h+" - runid: "+y+" - init",o).apply(b,_),C,H=void 0,q=new Promise(function(k,Q){var G=0;C=Q;function ie(Ae){H=void 0;var te;try{te=Mc(h+" - runid: "+y+" - yield "+G++,M.next).call(M,Ae)}catch(de){return Q(de)}me(te)}function ce(Ae){H=void 0;var te;try{te=Mc(h+" - runid: "+y+" - yield "+G++,M.throw).call(M,Ae)}catch(de){return Q(de)}me(te)}function me(Ae){if(jr(Ae?.then)){Ae.then(me,Q);return}return Ae.done?k(Ae.value):(H=Promise.resolve(Ae.value),H.then(ie,ce))}ie(void 0)});return q.cancel=Mc(h+" - runid: "+y+" - cancel",function(){try{H&&c1(H);var k=M.return(void 0),Q=Promise.resolve(k.value);Q.then(Ec,Ec),c1(Q),C(new FA)}catch(G){C(G)}}),q};return m.isMobXFlow=!0,m},wv);Bc.bound=Si(wx);function c1(r){jr(r.cancel)&&r.cancel()}function Id(r){return r?.isMobXFlow===!0}function Mx(r,i){return r?lp(r)||!!r[Ze]||C0(r)||qg(r)||rp(r):!1}function $A(r){return Mx(r)}function al(r,i){i===void 0&&(i=void 0),dr();try{return r.apply(i)}finally{hr()}}function Sc(r){return r[Ze]}var Ox={has:function(i,u){return Sc(i).has_(u)},get:function(i,u){return Sc(i).get_(u)},set:function(i,u,o){var h;return Bu(u)?(h=Sc(i).set_(u,o,!0))!=null?h:!0:!1},deleteProperty:function(i,u){var o;return Bu(u)?(o=Sc(i).delete_(u,!0))!=null?o:!0:!1},defineProperty:function(i,u,o){var h;return(h=Sc(i).defineProperty_(u,o))!=null?h:!0},ownKeys:function(i){return Sc(i).ownKeys_()},preventExtensions:function(i){vt(13)}};function Cx(r,i){var u,o;return AA(),r=Iu(r,i),(o=(u=r[Ze]).proxy_)!=null?o:u.proxy_=new Proxy(r,Ox)}function cr(r){return r.interceptors_!==void 0&&r.interceptors_.length>0}function Xd(r,i){var u=r.interceptors_||(r.interceptors_=[]);return u.push(i),bA(function(){var o=u.indexOf(i);o!==-1&&u.splice(o,1)})}function fr(r,i){var u=Hu();try{for(var o=[].concat(r.interceptors_||[]),h=0,m=o.length;h<m&&(i=o[h](i),i&&!i.type&&vt(14),!!i);h++);return i}finally{ll(u)}}function Ur(r){return r.changeListeners_!==void 0&&r.changeListeners_.length>0}function Pd(r,i){var u=r.changeListeners_||(r.changeListeners_=[]);return u.push(i),bA(function(){var o=u.indexOf(i);o!==-1&&u.splice(o,1)})}function kr(r,i){var u=Hu(),o=r.changeListeners_;if(o){o=o.slice();for(var h=0,m=o.length;h<m;h++)o[h](i);ll(u)}}function Tx(r,i,u){return gs(function(){var o,h=Iu(r,u)[Ze];(o=i)!=null||(i=o_(r)),Nc(i).forEach(function(m){return h.make_(m,i[m])})}),r}var Mv=Symbol("mobx-keys");function eb(r,i,u){return sl(r)?JA(r,r,i,u):(gs(function(){var o=Iu(r,u)[Ze];if(!r[Mv]){var h=Object.getPrototypeOf(r),m=new Set([].concat(Nc(r),Nc(h)));m.delete("constructor"),m.delete(Ze),Vd(h,Mv,m)}r[Mv].forEach(function(p){return o.make_(p,i&&p in i?i[p]:!0)})}),r)}var f1="splice",Ei="update",Rx=1e4,Nx={get:function(i,u){var o=i[Ze];return u===Ze?o:u==="length"?o.getArrayLength_():typeof u=="string"&&!isNaN(u)?o.get_(parseInt(u)):il(Vg,u)?Vg[u]:i[u]},set:function(i,u,o){var h=i[Ze];return u==="length"&&h.setArrayLength_(o),typeof u=="symbol"||isNaN(u)?i[u]=o:h.set_(parseInt(u),o),!0},preventExtensions:function(){vt(15)}},N0=(function(){function r(u,o,h,m){u===void 0&&(u="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 ms(u),this.enhancer_=function(p,b){return o(p,b,"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 Xd(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}),Pd(this,o)},i.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},i.setArrayLength_=function(o){(typeof o!="number"||isNaN(o)||o<0)&&vt("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_&&vt(16),this.lastKnownLength_+=h,this.legacyMode_&&h>0&&sb(o+h+1)},i.spliceWithArray_=function(o,h,m){var p=this;this.atom_;var b=this.values_.length;if(o===void 0?o=0:o>b?o=b:o<0&&(o=Math.max(0,b+o)),arguments.length===1?h=b-o:h==null?h=0:h=Math.max(0,Math.min(h,b-o)),m===void 0&&(m=r0),cr(this)){var _=fr(this,{object:this.proxy_,type:f1,index:o,removedCount:h,added:m});if(!_)return r0;h=_.removedCount,m=_.added}if(m=m.length===0?m:m.map(function(C){return p.enhancer_(C,void 0)}),this.legacyMode_){var y=m.length-h;this.updateArrayLength_(b,y)}var M=this.spliceItemsIntoValues_(o,h,m);return(h!==0||m.length!==0)&&this.notifyArraySplice_(o,m,M),this.dehanceValues_(M)},i.spliceItemsIntoValues_=function(o,h,m){if(m.length<Rx){var p;return(p=this.values_).splice.apply(p,[o,h].concat(m))}else{var b=this.values_.slice(o,o+h),_=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 M=0;M<_.length;M++)this.values_[o+m.length+M]=_[M];return b}},i.notifyArrayChildUpdate_=function(o,h,m){var p=!this.owned_&&jd(),b=Ur(this),_=b||p?{observableKind:"array",object:this.proxy_,type:Ei,debugObjectName:this.atom_.name_,index:o,newValue:h,oldValue:m}:null;this.atom_.reportChanged(),b&&kr(this,_)},i.notifyArraySplice_=function(o,h,m){var p=!this.owned_&&jd(),b=Ur(this),_=b||p?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:f1,index:o,removed:m,added:h,removedCount:m.length,addedCount:h.length}:null;this.atom_.reportChanged(),b&&kr(this,_)},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&&vt(17,o,m.length),o<m.length){this.atom_;var p=m[o];if(cr(this)){var b=fr(this,{type:Ei,object:this.proxy_,index:o,newValue:h});if(!b)return;h=b.newValue}h=this.enhancer_(h,p);var _=h!==p;_&&(m[o]=h,this.notifyArrayChildUpdate_(o,h,p))}else{for(var y=new Array(o+1-m.length),M=0;M<y.length-1;M++)y[M]=void 0;y[y.length-1]=h,this.spliceWithArray_(m.length,0,y)}},r})();function Dx(r,i,u,o){return u===void 0&&(u="ObservableArray"),o===void 0&&(o=!1),AA(),gs(function(){var h=new N0(u,i,o,!1);_A(h.values_,Ze,h);var m=new Proxy(h.values_,Nx);return h.proxy_=m,r&&r.length&&h.spliceWithArray_(0,0,r),m})}var Vg={clear:function(){return this.splice(0)},replace:function(i){var u=this[Ze];return u.spliceWithArray_(0,u.values_.length,i)},toJSON:function(){return this.slice()},splice:function(i,u){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[Ze];switch(arguments.length){case 0:return[];case 1:return p.spliceWithArray_(i);case 2:return p.spliceWithArray_(i,u)}return p.spliceWithArray_(i,u,h)},spliceWithArray:function(i,u,o){return this[Ze].spliceWithArray_(i,u,o)},push:function(){for(var i=this[Ze],u=arguments.length,o=new Array(u),h=0;h<u;h++)o[h]=arguments[h];return i.spliceWithArray_(i.values_.length,0,o),i.values_.length},pop:function(){return this.splice(Math.max(this[Ze].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var i=this[Ze],u=arguments.length,o=new Array(u),h=0;h<u;h++)o[h]=arguments[h];return i.spliceWithArray_(0,0,o),i.values_.length},reverse:function(){return Se.trackingDerivation&&vt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){Se.trackingDerivation&&vt(37,"sort");var i=this.slice();return i.sort.apply(i,arguments),this.replace(i),this},remove:function(i){var u=this[Ze],o=u.dehanceValues_(u.values_).indexOf(i);return o>-1?(this.splice(o,1),!0):!1}};Qt("at",Pa);Qt("concat",Pa);Qt("flat",Pa);Qt("includes",Pa);Qt("indexOf",Pa);Qt("join",Pa);Qt("lastIndexOf",Pa);Qt("slice",Pa);Qt("toString",Pa);Qt("toLocaleString",Pa);Qt("toSorted",Pa);Qt("toSpliced",Pa);Qt("with",Pa);Qt("every",Gr);Qt("filter",Gr);Qt("find",Gr);Qt("findIndex",Gr);Qt("findLast",Gr);Qt("findLastIndex",Gr);Qt("flatMap",Gr);Qt("forEach",Gr);Qt("map",Gr);Qt("some",Gr);Qt("toReversed",Gr);Qt("reduce",tb);Qt("reduceRight",tb);function Qt(r,i){typeof Array.prototype[r]=="function"&&(Vg[r]=i(r))}function Pa(r){return function(){var i=this[Ze];i.atom_.reportObserved();var u=i.dehanceValues_(i.values_);return u[r].apply(u,arguments)}}function Gr(r){return function(i,u){var o=this,h=this[Ze];h.atom_.reportObserved();var m=h.dehanceValues_(h.values_);return m[r](function(p,b){return i.call(u,p,b,o)})}}function tb(r){return function(){var i=this,u=this[Ze];u.atom_.reportObserved();var o=u.dehanceValues_(u.values_),h=arguments[0];return arguments[0]=function(m,p,b){return h(m,p,b,i)},o[r].apply(o,arguments)}}var Bx=ju("ObservableArrayAdministration",N0);function ip(r){return Fg(r)&&Bx(r[Ze])}var Lx={},cs="add",Qg="delete",nb=(function(){function r(u,o,h){var m=this;o===void 0&&(o=zu),h===void 0&&(h="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Ze]=Lx,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,jr(Map)||vt(18),gs(function(){m.keysAtom_=wA("ObservableMap.keys()"),m.data_=new Map,m.hasMap_=new Map,u&&m.merge(u)})}var i=r.prototype;return i.has_=function(o){return this.data_.has(o)},i.has=function(o){var h=this;if(!Se.trackingDerivation)return this.has_(o);var m=this.hasMap_.get(o);if(!m){var p=m=new Du(this.has_(o),$g,"ObservableMap.key?",!1);this.hasMap_.set(o,p),XA(p,function(){return h.hasMap_.delete(o)})}return m.get()},i.set=function(o,h){var m=this.has_(o);if(cr(this)){var p=fr(this,{type:m?Ei:cs,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_,cr(this)){var m=fr(this,{type:Qg,object:this,name:o});if(!m)return!1}if(this.has_(o)){var p=jd(),b=Ur(this),_=b||p?{observableKind:"map",debugObjectName:this.name_,type:Qg,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 M=h.data_.get(o);M.setNewValue_(void 0),h.data_.delete(o)}),b&&kr(this,_),!0}return!1},i.updateValue_=function(o,h){var m=this.data_.get(o);if(h=m.prepareNewValue_(h),h!==Se.UNCHANGED){var p=jd(),b=Ur(this),_=b||p?{observableKind:"map",debugObjectName:this.name_,type:Ei,object:this,oldValue:m.value_,name:o,newValue:h}:null;m.setNewValue_(h),b&&kr(this,_)}},i.addValue_=function(o,h){var m=this;this.keysAtom_,al(function(){var y,M=new Du(h,m.enhancer_,"ObservableMap.key",!1);m.data_.set(o,M),h=M.value_,(y=m.hasMap_.get(o))==null||y.setNewValue_(!0),m.keysAtom_.reportChanged()});var p=jd(),b=Ur(this),_=b||p?{observableKind:"map",debugObjectName:this.name_,type:cs,object:this,name:o,newValue:h}:null;b&&kr(this,_)},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 d1({next:function(){var p=h.next(),b=p.done,_=p.value;return{done:b,value:b?void 0:o.get(_)}}})},i.entries=function(){var o=this,h=this.keys();return d1({next:function(){var p=h.next(),b=p.done,_=p.value;return{done:b,value:b?void 0:[_,o.get(_)]}}})},i[Symbol.iterator]=function(){return this.entries()},i.forEach=function(o,h){for(var m=wc(this),p;!(p=m()).done;){var b=p.value,_=b[0],y=b[1];o.call(h,y,_,this)}},i.merge=function(o){var h=this;return Gu(o)&&(o=new Map(o)),al(function(){sl(o)?a_(o).forEach(function(m){return h.set(m,o[m])}):Array.isArray(o)?o.forEach(function(m){var p=m[0],b=m[1];return h.set(p,b)}):zc(o)?(n_(o)||vt(19,o),o.forEach(function(m,p){return h.set(p,m)})):o!=null&&vt(20,o)}),this},i.clear=function(){var o=this;al(function(){UA(function(){for(var h=wc(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=zx(o),p=new Map,b=!1,_=wc(h.data_.keys()),y;!(y=_()).done;){var M=y.value;if(!m.has(M)){var C=h.delete(M);if(C)b=!0;else{var H=h.data_.get(M);p.set(M,H)}}}for(var q=wc(m.entries()),k;!(k=q()).done;){var Q=k.value,G=Q[0],ie=Q[1],ce=h.data_.has(G);if(h.set(G,ie),h.data_.has(G)){var me=h.data_.get(G);p.set(G,me),ce||(b=!0)}}if(!b)if(h.data_.size!==p.size)h.keysAtom_.reportChanged();else for(var Ae=h.data_.keys(),te=p.keys(),de=Ae.next(),ge=te.next();!de.done;){if(de.value!==ge.value){h.keysAtom_.reportChanged();break}de=Ae.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 Pd(this,o)},i.intercept_=function(o){return Xd(this,o)},Uc(r,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),Gu=ju("ObservableMap",nb);function d1(r){return r[Symbol.toStringTag]="MapIterator",B0(r)}function zx(r){if(zc(r)||Gu(r))return r;if(Array.isArray(r))return new Map(r);if(sl(r)){var i=new Map;for(var u in r)i.set(u,r[u]);return i}else return vt(21,r)}var Ux={},ab=(function(){function r(u,o,h){var m=this;o===void 0&&(o=zu),h===void 0&&(h="ObservableSet"),this.name_=void 0,this[Ze]=Ux,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,jr(Set)||vt(22),this.enhancer_=function(p,b){return o(p,b,h)},gs(function(){m.atom_=wA(m.name_),u&&m.replace(u)})}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(){UA(function(){for(var h=wc(o.data_.values()),m;!(m=h()).done;){var p=m.value;o.delete(p)}})})},i.forEach=function(o,h){for(var m=wc(this),p;!(p=m()).done;){var b=p.value;o.call(h,b,b,this)}},i.add=function(o){var h=this;if(this.atom_,cr(this)){var m=fr(this,{type:cs,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,b=Ur(this),_=b||p?{observableKind:"set",debugObjectName:this.name_,type:cs,object:this,newValue:o}:null;b&&kr(this,_)}return this},i.delete=function(o){var h=this;if(cr(this)){var m=fr(this,{type:Qg,object:this,oldValue:o});if(!m)return!1}if(this.has(o)){var p=!1,b=Ur(this),_=b||p?{observableKind:"set",debugObjectName:this.name_,type:Qg,object:this,oldValue:o}:null;return al(function(){h.atom_.reportChanged(),h.data_.delete(o)}),b&&kr(this,_),!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 h1({next:function(){var m=o.next(),p=m.value,b=m.done;return b?{value:void 0,done:b}:{value:[p,p],done:b}}})},i.keys=function(){return this.values()},i.values=function(){this.atom_.reportObserved();var o=this,h=this.data_.values();return h1({next:function(){var p=h.next(),b=p.value,_=p.done;return _?{value:void 0,done:_}:{value:o.dehanceValue_(b),done:_}}})},i.intersection=function(o){if(nl(o)&&!yi(o))return o.intersection(this);var h=new Set(this);return h.intersection(o)},i.union=function(o){if(nl(o)&&!yi(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)&&!yi(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)&&!yi(o))return o.isDisjointFrom(this);var h=new Set(this);return h.isDisjointFrom(o)},i.replace=function(o){var h=this;return yi(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&&vt("Cannot initialize set from "+o)}),this},i.observe_=function(o,h){return Pd(this,o)},i.intercept_=function(o){return Xd(this,o)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Symbol.iterator]=function(){return this.values()},Uc(r,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),yi=ju("ObservableSet",ab);function h1(r){return r[Symbol.toStringTag]="SetIterator",B0(r)}var m1=Object.create(null),g1="remove",rb=(function(){function r(u,o,h,m){o===void 0&&(o=new Map),m===void 0&&(m=B_),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_=u,this.values_=o,this.name_=h,this.defaultAnnotation_=m,this.keysAtom_=new ms("ObservableObject.keys"),this.isPlainObject_=sl(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 Hr)return m.set(h),!0;if(cr(this)){var p=fr(this,{type:Ei,object:this.proxy_||this.target_,name:o,newValue:h});if(!p)return null;h=p.newValue}if(h=m.prepareNewValue_(h),h!==Se.UNCHANGED){var b=Ur(this),_=!1,y=b||_?{type:Ei,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:m.value_,name:o,newValue:h}:null;m.setNewValue_(h),b&&kr(this,y)}return!0},i.get_=function(o){return Se.trackingDerivation&&!il(this.target_,o)&&this.has_(o),this.target_[o]},i.set_=function(o,h,m){return m===void 0&&(m=!1),il(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(!Se.trackingDerivation)return o in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var h=this.pendingKeys_.get(o);return h||(h=new Du(o in this.target_,$g,"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;vt(1,h.annotationType_,this.name_+"."+o.toString())}for(var p=this.target_;p&&p!==Wg;){var b=jg(p,o);if(b){var _=h.make_(this,o,b,p);if(_===0)return;if(_===1)break}p=Object.getPrototypeOf(p)}v1(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 b=m.extend_(this,o,h,p);return b&&v1(this,m,o),b},i.defineProperty_=function(o,h,m){m===void 0&&(m=!1),this.keysAtom_;try{dr();var p=this.delete_(o);if(!p)return p;if(cr(this)){var b=fr(this,{object:this.proxy_||this.target_,name:o,type:cs,newValue:h.value});if(!b)return null;var _=b.newValue;h.value!==_&&(h=Lu({},h,{value:_}))}if(m){if(!Reflect.defineProperty(this.target_,o,h))return!1}else xi(this.target_,o,h);this.notifyPropertyAddition_(o,h.value)}finally{hr()}return!0},i.defineObservableProperty_=function(o,h,m,p){p===void 0&&(p=!1),this.keysAtom_;try{dr();var b=this.delete_(o);if(!b)return b;if(cr(this)){var _=fr(this,{object:this.proxy_||this.target_,name:o,type:cs,newValue:h});if(!_)return null;h=_.newValue}var y=p1(o),M={configurable:Se.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:y.get,set:y.set};if(p){if(!Reflect.defineProperty(this.target_,o,M))return!1}else xi(this.target_,o,M);var C=new Du(h,m,"ObservableObject.key",!1);this.values_.set(o,C),this.notifyPropertyAddition_(o,C.value_)}finally{hr()}return!0},i.defineComputedProperty_=function(o,h,m){m===void 0&&(m=!1),this.keysAtom_;try{dr();var p=this.delete_(o);if(!p)return p;if(cr(this)){var b=fr(this,{object:this.proxy_||this.target_,name:o,type:cs,newValue:void 0});if(!b)return null}h.name||(h.name="ObservableObject.key"),h.context=this.proxy_||this.target_;var _=p1(o),y={configurable:Se.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:_.get,set:_.set};if(m){if(!Reflect.defineProperty(this.target_,o,y))return!1}else xi(this.target_,o,y);this.values_.set(o,new Hr(h)),this.notifyPropertyAddition_(o,void 0)}finally{hr()}return!0},i.delete_=function(o,h){if(h===void 0&&(h=!1),this.keysAtom_,!il(this.target_,o))return!0;if(cr(this)){var m=fr(this,{object:this.proxy_||this.target_,name:o,type:g1});if(!m)return null}try{var p;dr();var b=Ur(this),_=!1,y=this.values_.get(o),M=void 0;if(!y&&(b||_)){var C;M=(C=jg(this.target_,o))==null?void 0:C.value}if(h){if(!Reflect.deleteProperty(this.target_,o))return!1}else delete this.target_[o];if(y&&(this.values_.delete(o),y instanceof Du&&(M=y.value_),YA(y)),this.keysAtom_.reportChanged(),(p=this.pendingKeys_)==null||(p=p.get(o))==null||p.set(o in this.target_),b||_){var H={type:g1,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:M,name:o};b&&kr(this,H)}}finally{hr()}return!0},i.observe_=function(o,h){return Pd(this,o)},i.intercept_=function(o){return Xd(this,o)},i.notifyPropertyAddition_=function(o,h){var m,p=Ur(this),b=!1;if(p||b){var _=p||b?{type:cs,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:o,newValue:h}:null;p&&kr(this,_)}(m=this.pendingKeys_)==null||(m=m.get(o))==null||m.set(!0),this.keysAtom_.reportChanged()},i.ownKeys_=function(){return this.keysAtom_.reportObserved(),Nc(this.target_)},i.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},r})();function Iu(r,i){var u;if(il(r,Ze))return r;var o=(u=i?.name)!=null?u:"ObservableObject",h=new rb(r,new Map,String(o),V_(i));return Vd(r,Ze,h),r}var kx=ju("ObservableObjectAdministration",rb);function p1(r){return m1[r]||(m1[r]={get:function(){return this[Ze].getObservablePropValue_(r)},set:function(u){return this[Ze].setObservablePropValue_(r,u)}})}function lp(r){return Fg(r)?kx(r[Ze]):!1}function v1(r,i,u){var o;(o=r.target_[_i])==null||delete o[u]}var jx=lb(0),Hx=(function(){var r=!1,i={};return Object.defineProperty(i,"0",{set:function(){r=!0}}),Object.create(i)[0]=1,r===!1})(),Ov=0,ib=function(){};function Gx(r,i){Object.setPrototypeOf?Object.setPrototypeOf(r.prototype,i):r.prototype.__proto__!==void 0?r.prototype.__proto__=i:r.prototype=i}Gx(ib,Array.prototype);var D0=(function(r){function i(o,h,m,p){var b;return m===void 0&&(m="ObservableArray"),p===void 0&&(p=!1),b=r.call(this)||this,gs(function(){var _=new N0(m,h,p,!0);_.proxy_=b,_A(b,Ze,_),o&&o.length&&b.spliceWithArray(0,0,o),Hx&&Object.defineProperty(b,"0",jx)}),b}EA(i,r);var u=i.prototype;return u.concat=function(){this[Ze].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(b){return ip(b)?b.slice():b}))},u[Symbol.iterator]=function(){var o=this,h=0;return B0({next:function(){return h<o.length?{value:o[h++],done:!1}:{done:!0,value:void 0}}})},Uc(i,[{key:"length",get:function(){return this[Ze].getArrayLength_()},set:function(h){this[Ze].setArrayLength_(h)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(ib);Object.entries(Vg).forEach(function(r){var i=r[0],u=r[1];i!=="concat"&&Vd(D0.prototype,i,u)});function lb(r){return{enumerable:!1,configurable:!0,get:function(){return this[Ze].get_(r)},set:function(u){this[Ze].set_(r,u)}}}function Ix(r){xi(D0.prototype,""+r,lb(r))}function sb(r){if(r>Ov){for(var i=Ov;i<r+100;i++)Ix(i);Ov=r}}sb(1e3);function Yx(r,i,u){return new D0(r,i,u)}function Kg(r,i){if(typeof r=="object"&&r!==null){if(ip(r))return i!==void 0&&vt(23),r[Ze].atom_;if(yi(r))return r.atom_;if(Gu(r)){if(i===void 0)return r.keysAtom_;var u=r.data_.get(i)||r.hasMap_.get(i);return u||vt(25,i,h0(r)),u}if(lp(r)){if(!i)return vt(26);var o=r[Ze].values_.get(i);return o||vt(27,i,h0(r)),o}if(C0(r)||rp(r)||qg(r))return r}else if(jr(r)&&qg(r[Ze]))return r[Ze];vt(28)}function qx(r,i){if(r||vt(29),C0(r)||rp(r)||qg(r)||Gu(r)||yi(r))return r;if(r[Ze])return r[Ze];vt(24,r)}function h0(r,i){var u;if(i!==void 0)u=Kg(r,i);else{if(Dc(r))return r.name;lp(r)||Gu(r)||yi(r)?u=qx(r):u=Kg(r)}return u.name_}function gs(r){var i=Hu(),u=np(!0);dr();try{return r()}finally{hr(),ap(u),ll(i)}}var A1=Wg.toString;function ub(r,i,u){return u===void 0&&(u=-1),m0(r,i,u)}function m0(r,i,u,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=A1.call(r);if(p!==A1.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]":u>=0&&u++;break}r=b1(r),i=b1(i);var b=p==="[object Array]";if(!b){if(typeof r!="object"||typeof i!="object")return!1;var _=r.constructor,y=i.constructor;if(_!==y&&!(jr(_)&&_ instanceof _&&jr(y)&&y instanceof y)&&"constructor"in r&&"constructor"in i)return!1}if(u===0)return!1;u<0&&(u=-1),o=o||[],h=h||[];for(var M=o.length;M--;)if(o[M]===r)return h[M]===i;if(o.push(r),h.push(i),b){if(M=r.length,M!==i.length)return!1;for(;M--;)if(!m0(r[M],i[M],u-1,o,h))return!1}else{var C=Object.keys(r),H=C.length;if(Object.keys(i).length!==H)return!1;for(var q=0;q<H;q++){var k=C[q];if(!(il(i,k)&&m0(r[k],i[k],u-1,o,h)))return!1}}return o.pop(),h.pop(),!0}function b1(r){return ip(r)?r.slice():zc(r)||Gu(r)||nl(r)||yi(r)?Array.from(r.entries()):r}var y1,Vx=((y1=Jg().Iterator)==null?void 0:y1.prototype)||{};function B0(r){return r[Symbol.iterator]=Qx,Object.assign(Object.create(Vx),r)}function Qx(){return this}["Symbol","Map","Set"].forEach(function(r){var i=Jg();typeof i[r]>"u"&&vt("MobX requires global '"+r+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:ux,extras:{getDebugName:h0},$mobx:Ze});if(!$.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Tx)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var Kx=Y1();function Zx(r){r()}function Xx(r){r||(r=Zx),_x({reactionScheduler:r})}function Px(r){return xx(r)}var Jx=1e4,Wx=1e4,Fx=(function(){function r(i){var u=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=Jx),clearTimeout(u.sweepTimeout),u.sweepTimeout=void 0;var h=Date.now();u.registrations.forEach(function(m,p){h-m.registeredAt>=o&&(u.finalize(m.value),u.registrations.delete(p))}),u.registrations.size>0&&u.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){u.sweep(0)}})}return Object.defineProperty(r.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(i,u,o){this.registrations.set(o,{value:u,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,Wx))}}),r})(),$x=typeof FinalizationRegistry<"u"?FinalizationRegistry:Fx,Yd=new $x(function(r){var i;(i=r.reaction)===null||i===void 0||i.dispose(),r.reaction=null}),Cv={exports:{}},Tv={};/**
 * @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 _1;function e4(){if(_1)return Tv;_1=1;var r=Pg();function i(C,H){return C===H&&(C!==0||1/C===1/H)||C!==C&&H!==H}var u=typeof Object.is=="function"?Object.is:i,o=r.useState,h=r.useEffect,m=r.useLayoutEffect,p=r.useDebugValue;function b(C,H){var q=H(),k=o({inst:{value:q,getSnapshot:H}}),Q=k[0].inst,G=k[1];return m(function(){Q.value=q,Q.getSnapshot=H,_(Q)&&G({inst:Q})},[C,q,H]),h(function(){return _(Q)&&G({inst:Q}),C(function(){_(Q)&&G({inst:Q})})},[C]),p(q),q}function _(C){var H=C.getSnapshot;C=C.value;try{var q=H();return!u(C,q)}catch{return!0}}function y(C,H){return H()}var M=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:b;return Tv.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:M,Tv}var x1;function t4(){return x1||(x1=1,Cv.exports=e4()),Cv.exports}var n4=t4();function S1(r){r.reaction=new wi("observer".concat(r.name),function(){var i;r.stateVersion=Symbol(),(i=r.onStoreChange)===null||i===void 0||i.call(r)})}function a4(r,i){i===void 0&&(i="observed");var u=P.useRef(null);if(!u.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:i,subscribe:function(b){return Yd.unregister(o),o.onStoreChange=b,o.reaction||(S1(o),o.stateVersion=Symbol()),function(){var _;o.onStoreChange=null,(_=o.reaction)===null||_===void 0||_.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};u.current=o}var h=u.current;h.reaction||(S1(h),Yd.register(u,h,h)),P.useDebugValue(h.reaction,Px),n4.useSyncExternalStore(h.subscribe,h.getSnapshot,h.getSnapshot);var m,p;if(h.reaction.track(function(){try{m=r()}catch(b){p=b}}),p)throw p;return m}var Rv,Nv,ob=typeof Symbol=="function"&&Symbol.for,r4=(Nv=(Rv=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Rv===void 0?void 0:Rv.configurable)!==null&&Nv!==void 0?Nv:!1,E1=ob?Symbol.for("react.forward_ref"):typeof $.forwardRef=="function"&&$.forwardRef(function(r){return null}).$$typeof,w1=ob?Symbol.for("react.memo"):typeof $.memo=="function"&&$.memo(function(r){return null}).$$typeof;function i4(r,i){var u;if(w1&&r.$$typeof===w1)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=(u=void 0)!==null&&u!==void 0?u:!1,h=r,m=r.displayName||r.name;if(E1&&r.$$typeof===E1&&(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(b,_){return a4(function(){return h(b,_)},m)};return p.displayName=r.displayName,r4&&Object.defineProperty(p,"name",{value:r.name,writable:!0,configurable:!0}),r.contextTypes&&(p.contextTypes=r.contextTypes),o&&(p=$.forwardRef(p)),p=$.memo(p),s4(r,p),p}var l4={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function s4(r,i){Object.keys(r).forEach(function(u){l4[u]||Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(r,u))})}var Dv;Xx(Kx.unstable_batchedUpdates);Dv=Yd.finalizeAllImmediately;function u4(r,i){if(M1(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var u=Object.keys(r),o=Object.keys(i);if(u.length!==o.length)return!1;for(var h=0;h<u.length;h++)if(!Object.hasOwnProperty.call(i,u[h])||!M1(r[u[h]],i[u[h]]))return!1;return!0}function M1(r,i){return r===i?r!==0||1/r===1/i:r!==r&&i!==i}var O1=Symbol("patchMixins"),cb=Symbol("patchedDefinition");function o4(r,i){var u=r[O1]=r[O1]||{},o=u[i]=u[i]||{};return o.locks=o.locks||0,o.methods=o.methods||[],o}function C1(r,i){for(var u=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(b){b.apply(u,h)})}}function T1(r,i){var u=function(){for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];C1.call.apply(C1,[this,r,i].concat(m))};return u}function c4(r,i,u){var o=o4(r,i);o.methods.indexOf(u)<0&&o.methods.push(u);var h=Object.getOwnPropertyDescriptor(r,i);if(!(h&&h[cb])){var m=r[i],p=fb(r,i,h?h.enumerable:void 0,o,m);Object.defineProperty(r,i,p)}}function fb(r,i,u,o,h){var m,p=T1(h,o);return m={},m[cb]=!0,m.get=function(){return p},m.set=function(_){if(this===r)p=T1(_,o);else{var y=fb(this,i,u,o,_);Object.defineProperty(this,i,y)}},m.configurable=!0,m.enumerable=u,m}var R1=Symbol("ObserverAdministration"),N1=Symbol("isMobXReactObserver");function g0(r){var i;return(i=r[R1])!=null?i:r[R1]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:p0(r.constructor),state:void 0,props:void 0,context:void 0}}function f4(r){var i=r.prototype;if(r[N1]){var u=p0(r);throw new Error("The provided component class ("+u+") has already been declared as an observer component.")}else r[N1]=!0;if(i.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(r.__proto__!==$.PureComponent){if(!i.shouldComponentUpdate)i.shouldComponentUpdate=D1;else if(i.shouldComponentUpdate!==D1)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}var o=i.render;if(typeof o!="function"){var h=p0(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:d4.call(this,o)}),this.render()};var m=i.componentDidMount;return i.componentDidMount=function(){var p=this,b=g0(this);return b.mounted=!0,Yd.unregister(this),b.forceUpdate=function(){return p.forceUpdate()},(!b.reaction||b.reactionInvalidatedBeforeMount)&&b.forceUpdate(),m?.apply(this,arguments)},c4(i,"componentWillUnmount",function(){var p,b=g0(this);(p=b.reaction)==null||p.dispose(),b.reaction=null,b.forceUpdate=null,b.mounted=!1,b.reactionInvalidatedBeforeMount=!1}),r}function p0(r){return r.displayName||r.name||"<component>"}function d4(r){var i=r.bind(this),u=g0(this);function o(){u.reaction||(u.reaction=h4(u),u.mounted||Yd.register(this,u,this));var h=void 0,m=void 0;if(u.reaction.track(function(){try{m=$_(!1,i)}catch(p){h=p}}),h)throw h;return m}return o}function h4(r){return new wi(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 D1(r,i){return this.state!==i?!0:!u4(this.props,r)}function ol(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($.Component,r)||Object.prototype.isPrototypeOf.call($.PureComponent,r)?f4(r):i4(r)}P.version.split(".")[0];if(!$.Component)throw new Error("mobx-react requires React to be available");if(!Bn)throw new Error("mobx-react requires mobx to be available");const db=$.createRef(),L0=r=>{db.current?.show(r)},m4=$.forwardRef((r,i)=>{const[u,o]=$.useState(null);return $.useImperativeHandle(i,()=>({show:h=>{o(h)}})),T.jsx(sA,{opened:!!u,onBackdropClick:()=>o(null),title:u?.title,content:u?.content,buttons:T.jsx("div",{children:u?.buttons.map(h=>T.jsx(uA,{onClick:()=>{h.onClick?.(),o(null)},children:h.text},h.text))})})});var hb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},B1=P.createContext&&P.createContext(hb),g4=["attr","size","title"];function p4(r,i){if(r==null)return{};var u=v4(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)&&(u[o]=r[o])}return u}function v4(r,i){if(r==null)return{};var u={};for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){if(i.indexOf(o)>=0)continue;u[o]=r[o]}return u}function Zg(){return Zg=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Zg.apply(this,arguments)}function L1(r,i){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);i&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(r,h).enumerable})),u.push.apply(u,o)}return u}function Xg(r){for(var i=1;i<arguments.length;i++){var u=arguments[i]!=null?arguments[i]:{};i%2?L1(Object(u),!0).forEach(function(o){A4(r,o,u[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):L1(Object(u)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(u,o))})}return r}function A4(r,i,u){return i=b4(i),i in r?Object.defineProperty(r,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[i]=u,r}function b4(r){var i=y4(r,"string");return typeof i=="symbol"?i:i+""}function y4(r,i){if(typeof r!="object"||!r)return r;var u=r[Symbol.toPrimitive];if(u!==void 0){var o=u.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 mb(r){return r&&r.map((i,u)=>P.createElement(i.tag,Xg({key:u},i.attr),mb(i.child)))}function Jt(r){return i=>P.createElement(_4,Zg({attr:Xg({},r.attr)},i),mb(r.child))}function _4(r){var i=u=>{var{attr:o,size:h,title:m}=r,p=p4(r,g4),b=h||u.size||"1em",_;return u.className&&(_=u.className),r.className&&(_=(_?_+" ":"")+r.className),P.createElement("svg",Zg({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,o,p,{className:_,style:Xg(Xg({color:r.color||u.color},u.style),r.style),height:b,width:b,xmlns:"http://www.w3.org/2000/svg"}),m&&P.createElement("title",null,m),r.children)};return B1!==void 0?P.createElement(B1.Consumer,null,u=>i(u)):i(hb)}function x4(r){return Jt({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 S4(r){return Jt({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 E4(r){return Jt({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 sp(r){return Jt({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 w4{constructor(){eb(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:u})=>{this.userID=u??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=[];channelListLastMaxUpdated=null;joinChannelListLastMaxUpdated=null;channelListPollingInterval=null;loadChannelList(){const i=this.channelList.length===0;i&&(this.dialogsLoading=!0);const u=!this.channelTab||this.channelTab==="member";(u?Pt.channelList({},["shmChannelMessages"]):Pt.joinChannelList({},["shmChannelMessages"])).then(({result:h})=>{tl(()=>{this.channelList=h?.data??[],u?this.channelListLastMaxUpdated=h?.lastMaxUpdated??null:this.joinChannelListLastMaxUpdated=h?.lastMaxUpdated??null})}).finally(()=>{tl(()=>{i&&(this.dialogsLoading=!1)})})}startChannelListPolling(){this.stopChannelListPolling();const i=5e3;this.channelListPollingInterval=setInterval(()=>{const u=!this.channelTab||this.channelTab==="member";(u?Pt.channelListLastMaxUpdated:Pt.joinChannelLastMaxUpdated)().then(({result:h})=>{const m=u?this.channelListLastMaxUpdated:this.joinChannelListLastMaxUpdated;h!=null&&h!==m&&this.loadChannelList()})},i)}stopChannelListPolling(){this.channelListPollingInterval&&(clearInterval(this.channelListPollingInterval),this.channelListPollingInterval=null)}}const Be=new w4,v0=$.createRef(),M4=$.forwardRef((r,i)=>{const[u,o]=$.useState(!1),[h,m]=$.useState({name:"",text:""});return $.useImperativeHandle(i,()=>({open:p=>{o(!0),m(p||{name:"",text:""})},close:()=>o(!1)})),T.jsx(mA,{opened:u,onBackdropClick:()=>o(!1),children:T.jsxs(fs,{className:"ios:bg-white ios:dark:bg-stone-900 ",children:[T.jsx(Rc,{title:"Быстрый ответ",right:T.jsx(rl,{iconOnly:!0,onClick:()=>o(!1),children:T.jsx(sp,{size:24})})}),T.jsxs(hs,{outline:!0,dividers:!0,children:[T.jsx(Hd,{value:h.name,onChange:p=>m(b=>({...b,name:p.target.value})),title:"Название",placeholder:"Введите название"}),T.jsx(Hd,{value:h.text,onChange:p=>m(b=>({...b,text:p.target.value})),inputClassName:"!h-20 resize-none",type:"textarea",title:"Текст быстрого ответа",placeholder:"Введите текст быстрого ответа"})]}),T.jsxs(E0,{className:"flex items-center justify-center gap-2",children:[T.jsx(zr,{disabled:!h.name||!h.text,onClick:()=>{Pt.mFastAnswers({id:h._id,name:h.name,text:h.text}).then(({result:p})=>{Be.loadFastAnswers(),o(!1)})},children:"Сохранить"}),!!h._id&&T.jsxs(zr,{outline:!0,onClick:()=>{L0({title:"Удалить быстрый ответ?",content:"Вы уверены, что хотите удалить этот быстрый ответ?",buttons:[{text:"Удалить",onClick:()=>{iy({delete:!0,id:h._id}).then(({result:p})=>{Be.loadFastAnswers(),o(!1)})}},{text:"Отмена",onClick:()=>{}}]})},children:[T.jsx(x4,{size:24})," Удалить"]})]})]})})});function gb(r){return Jt({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 pb(r){return Jt({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 vb(r){return Jt({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 O4=({onCancel:r,onSend:i})=>{const[u,o]=$.useState(0),h=$.useRef(null),m=$.useRef(null),p=$.useRef(null),b=$.useRef(null),_=$.useRef([]),[y,M]=$.useState(!1);$.useEffect(()=>{setTimeout(()=>{M(!0)},500)},[]);const C=$.useRef(!1);$.useEffect(()=>C.current?void 0:(C.current=!0,(async()=>{try{const G=await navigator.mediaDevices.getUserMedia({audio:!0});p.current=G;const ie=new MediaRecorder(G,{mimeType:"audio/webm"});ie.ondataavailable=ce=>_.current.push(ce.data),ie.onstop=()=>{const ce=new Blob(_.current,{type:"audio/webm"});h.current=ce,_.current=[]},ie.start(),m.current=ie,b.current=setInterval(()=>o(ce=>ce+1),1e3)}catch(G){console.error("🎙 Не удалось получить доступ к микрофону",G),r()}})(),()=>{b.current&&clearInterval(b.current)}),[]);const H=()=>{m?.current?.stop(),p.current?.getTracks().forEach(Q=>Q.stop()),b.current&&clearInterval(b.current),setTimeout(()=>{h.current&&i(h.current)},200)},q=()=>{m?.current?.stop(),p.current?.getTracks().forEach(Q=>Q.stop()),b.current&&clearInterval(b.current),r()},k=Q=>`${Math.floor(Q/60)}:${(Q%60).toString().padStart(2,"0")}`;return T.jsx(gA,{backdrop:!0,className:"pb-safe ",onBackdropClick:q,opened:y,children:T.jsxs("div",{className:"flex  items-start space-x-4 justify-center py-8 ",children:[T.jsx("div",{onClick:q,className:" bg-gray-600 text-white p-6 rounded-full",children:T.jsx(sp,{size:36})}),T.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[T.jsx("div",{className:"animate-pulse bg-red-600 p-6 rounded-full",children:T.jsx(vb,{className:"text-white",size:36})}),T.jsx("div",{className:"dark:text-white text-black text-xl",children:k(u)})]}),T.jsx("div",{className:" bg-green-600 text-white  p-6 rounded-full",onClick:H,children:T.jsx(gb,{size:36})})]})})},Ab=$.createRef(),bb=$.forwardRef((r,i)=>{const[u,o]=$.useState(!1),h=$.useRef(null);return $.useImperativeHandle(i,()=>({open:m=>{h.current=m,o(!0)},close:()=>{o(!1),h.current=null}})),u?T.jsx(O4,{onCancel:()=>{h.current?.onClose(),o(!1),h.current=null},onSend:m=>{h.current?.onSend(m),o(!1),h.current=null}}):null});bb.displayName="RecordingSheetRoot";const yb=$.createRef(),_b=r=>{yb.current?.show(r)},C4=$.forwardRef((r,i)=>{const[u,o]=$.useState(null);return $.useImperativeHandle(i,()=>({show:h=>{o(h)}})),$.useEffect(()=>{if(u){const h=setTimeout(()=>{o(null)},3e3);return()=>clearTimeout(h)}},[u]),T.jsx(hA,{opened:!!u,onClick:()=>{o(null)},text:u,button:!0})}),z0=window.location.hostname==="localhost"||window.location.port=="8888",T4=()=>{if(z0)return"http://localhost:8888/chat/support";let r=window.location.href;return r=r.split("#")[0],r=r.split("?")[0],r},R4="data:audio/mpeg;base64, ",N4=5e3,D4=new Audio(R4);class B4{channelID=void 0;channel=null;joinInChannel=null;messagesList=[];messagesLoading=!1;messagesLastMaxUpdated=null;loadMessagesPollingInterval=null;replyMsg=null;sending=!1;messageText="";recording=!1;constructor(){eb(this)}get pinnedMessage(){const i=this.messagesList?.filter(u=>u.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.replyMsg=null,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})=>{tl(()=>{if(i){this.channel=i;const u=i?.members?.find(o=>o.owner==Be.userID);this.joinInChannel=!!u}})})}updateChannelInfo(){this.channelID&&Pt.channelInfo({channel:this.channelID}).then(({result:i})=>{tl(()=>{if(i){this.channel=i;const u=i?.members?.find(o=>o.owner==Be.userID);this.joinInChannel=!!u}})})}loadMessages(){if(!this.channel?._id)return;this.messagesList.length===0&&(this.messagesLoading=!0),Pt.channelMessages({channel:this.channel._id,limit:50,offset:0},["shmChannelMessages"]).then(({result:u})=>{tl(()=>{this.messagesList=u?.data??[],this.messagesLastMaxUpdated=u?.lastMaxUpdated??null,this.messagesLoading=!1})}).catch(()=>{tl(()=>{this.messagesLoading=!1})})}startMessagesPolling(i){this.channel?._id&&(this.stopMessagesPolling(),this.loadMessagesPollingInterval=setInterval(()=>{Pt.channelMessagesLastMaxUpdated({channel:this.channel._id}).then(({result:u})=>{u!=null&&u!==this.messagesLastMaxUpdated&&(this.updateChannelInfo(),Pt.channelMessages({channel:this.channel._id,limit:50,offset:0},["shmChannelMessages"]).then(({result:o})=>{tl(()=>{const h=this.messagesList[this.messagesList.length-1]?._id,m=o?.data??[],p=m[m.length-1],b=p?._id;h&&b&&h!==b&&(i?.(),p?.owner!=Be.userID&&D4.play()),this.messagesList=m,this.messagesLastMaxUpdated=o?.lastMaxUpdated??null})}))})},N4))}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}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),this.loadMessages(),tl(()=>{this.replyMsg&&(this.replyMsg=null),i.text&&(this.messageText="")})}finally{tl(()=>{this.sending=!1})}}}resetCompose(){this.replyMsg=null,this.messageText=""}}const Ce=new B4,U0="data:image/jpeg;base64, ";function L4(r){return Jt({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 z4(r){return Jt({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 z1(r){return Jt({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 U4(r){return Jt({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 k4(r){return Jt({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 j4(r){return Jt({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 U1(r){return Jt({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)}const k1=["🦁","🐯","🦅","🦉","🦄","🐎","🦌","🐺","🐆","🦢","🐬","🐳","🦖","🦕","🐉","😎","🙂","😊","🧐","🤓","🤖","👾","🐱","🦊","🐻","🐼","🐨","🐯","🦁","🐸","🐙","🐶","🐱","🐰","🐻","🐼","🐨"],xb=r=>{let i=0;for(let o=0;o<r.length;o++)i=r.charCodeAt(o)+((i<<5)-i);const u=Math.abs(i)%k1.length;return k1[u]},j1=new Map,H4=r=>{const i=[];let h=25;for(let m=0;m<r;m++){const p=(Math.random()-.5)*3,b=Math.max(10,Math.min(50,h+p));i.push(Math.round(b)),h=b}return i},G4=({src:r,barsCount:i=30,cacheKey:u,barColor:o})=>{const h=$.useRef(null),[m,p]=$.useState(!1),[b,_]=$.useState(0),[y,M]=$.useState(0),[C,H]=$.useState([]);$.useEffect(()=>{const G=u??r,ie=j1.get(G);if(ie&&ie.length===i){H(ie);return}const ce=H4(i);j1.set(G,ce),H(ce)},[i,u,r]),$.useEffect(()=>{const G=h.current;if(!G)return;const ie=()=>{G.duration&&_(G.currentTime/G.duration*100)},ce=()=>{M(G.duration||0)};return G.addEventListener("timeupdate",ie),G.addEventListener("loadedmetadata",ce),G.addEventListener("ended",()=>p(!1)),()=>{G.removeEventListener("timeupdate",ie),G.removeEventListener("loadedmetadata",ce)}},[]);const q=()=>{const G=h.current;G&&(m?G.pause():G.play(),p(!m))},k=G=>{const ie=h.current;if(!ie||!y)return;const ce=G/C.length*y;ie.currentTime=ce},Q=Math.floor(b/100*C.length);return T.jsxs("div",{className:"flex items-end  mt-4",onClick:G=>{G.preventDefault(),G.stopPropagation()},children:[T.jsx("audio",{ref:h,src:r,preload:"metadata"}),T.jsx("div",{children:T.jsx("div",{onClick:G=>{G.preventDefault(),G.stopPropagation(),q()},className:"mr-1",children:m?T.jsx(S4,{size:28}):T.jsx(E4,{size:28})})}),T.jsx("div",{className:"flex items-end space-x-1 flex-1  cursor-pointer overflow-hidden",children:C.map((G,ie)=>T.jsx("div",{onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),k(ie)},className:`w-[2px] rounded-sm transition-colors duration-200  ${ie<=Q?"opacity-100":"opacity-50"}`,style:{height:`${G}px`,backgroundColor:o}},ie))})]})};function I4(r){return Jt({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 Y4(r){return Jt({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 q4(r){return Jt({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 H1(r){return Jt({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 G1(r){return Jt({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 V4(r){return Jt({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 k0=({doc:r,size:i=40,className:u=""})=>{const o=r?.type;if(!o)return T.jsx(G1,{size:i,className:u});const h={image:Y4,audio:I4,video:V4,"application/pdf":q4,"application/zip":H1,"application/x-zip-compressed":H1};if(h[o]){const p=h[o];return T.jsx(p,{size:i,className:u})}const m=o.split("/")[0];if(m=="image")return T.jsx("img",{src:r.url,alt:r.name,style:{width:i,height:i},className:` object-cover ${u} rounded-xl bg-white`});if(h[m]){const p=h[m];return T.jsx(p,{size:i,className:u})}return T.jsx(G1,{size:i,className:u})},Sb=({msg:r,onClick:i})=>{const u=!!r.deleted;return T.jsx("div",{className:"mb-2 mt-2 border-l-2 border-gray-500 pl-2",children:T.jsx("div",{onClick:o=>{o.stopPropagation(),i()},id:`replay-msg-${r._id}`,children:u?T.jsx(T.Fragment,{children:T.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[T.jsx(pb,{className:"w-4 h-4"})," Сообщение удалено"]})}):T.jsxs(T.Fragment,{children:[T.jsx("div",{children:r.text}),r.voice?.url&&T.jsx("div",{className:"text-sm ",children:"Аудио сообщение"}),r.attachments?.map(o=>T.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[T.jsx(k0,{doc:o}),T.jsx("div",{children:o.name})]}))]})})})};ul.locale("ru");const Eb=[{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"}],Q4=r=>{const i=Eb.find(u=>u.value===r);return i?i.name:""},K4=({onReplayClick:r,onReactionClick:i,msg:u,onClick:o,onChange:h})=>{const m=C=>{Pt.channelReaction({message:u._id,channel:u.channel,reaction:C}).then(()=>{h()})},p=()=>{if(!u.reactions||u.reactions.length==0)return null;const C=J0.groupBy(u.reactions,H=>H.type);return T.jsx("div",{className:"flex items-center space-x-1 mt-2",children:J0.map(C,(H,q)=>T.jsx(w0,{onClick:k=>{k.stopPropagation(),m(q)},media:T.jsx("div",{className:"ml-2",children:Q4(q)}),className:"m-1 cursor-pointer",children:T.jsx("span",{className:"font-medium",children:H.length})},q))})},b=b0.shmChannelMessagesByID(u.reply),_=!!u.deleted;if(u.type=="system")return T.jsx("div",{className:"text-sm  text-center p-6 opacity-70",children:u.text});const M=document.body.classList.contains("dark");return T.jsx(T.Fragment,{children:T.jsx(M0,{onClick:()=>{_||o()},type:u.owner!=Be.userID?"received":"sent",text:_?T.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[T.jsx(pb,{className:"w-4 h-4"})," Сообщение удалено"]}):T.jsxs("div",{id:`msg-${u._id}`,children:[!!b&&T.jsx(Sb,{msg:b,onClick:()=>{b&&r(b)}}),T.jsx("div",{children:u.text}),u.voice?.url&&T.jsx(G4,{barColor:M?u.owner==Be.userID?"#000":"#fff":u.owner==Be.userID?"#fff":"#000",src:u.voice?.url,cacheKey:u._id}),u.attachments?.map(C=>T.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[T.jsx(k0,{doc:C}),T.jsx("div",{children:C.name}),T.jsx("div",{onClick:H=>{H.stopPropagation(),window.open(C.url,"_blank")},children:T.jsx(L4,{})})]})),T.jsx(p,{}),u.owner!=Be.userID?T.jsx("div",{onClick:C=>{i(u),C.stopPropagation(),C.preventDefault()},id:`msg-add-reactions-${u._id}`,className:"absolute top-3 -right-6",children:T.jsx(rl,{children:T.jsx(U1,{className:"w-4 h-4"})})}):T.jsx("div",{onClick:C=>{i(u),C.stopPropagation(),C.preventDefault()},id:`msg-add-reactions-${u._id}`,className:"absolute top-3 -left-6",children:T.jsx(rl,{children:T.jsx(U1,{className:"w-4 h-4"})})})]}),footer:T.jsx("div",{children:u.created_at&&ul.unix(u.created_at).format("DD.MM hh:mm")}),avatar:u.owner!=Be.userID&&T.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:xb(u.owner??"")})},u._id)})},Z4=({msg:r,onClick:i,onPin:u})=>T.jsxs("div",{className:"mb-2 mt-2 border-l-2 w-full border-gray-500 pl-2  flex justify-between items-center",children:[T.jsxs("div",{className:"active:opacity-50 cursor-pointer",onClick:o=>{o.stopPropagation(),i()},id:`pin-msg-${r._id}`,children:[T.jsx("div",{children:r.text}),r.voice?.url&&T.jsx("div",{className:"text-sm text-gray-500",children:"Аудио сообщение"}),r.attachments?.map(o=>T.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[T.jsx(k0,{doc:o}),T.jsx("div",{children:o.name})]}))]}),T.jsx("div",{className:"cursor-pointer active:opacity-50 p-2",onClick:o=>{o.stopPropagation(),u()},children:T.jsx(sp,{})})]}),X4=r=>{r&&(navigator.clipboard.writeText(r),_b("Текст сообщения скопирован в буфер обмена"))},P4=$.forwardRef((r,i)=>{const[u,o]=$.useState(null),h=$.useRef(null);$.useImperativeHandle(i,()=>({open:y=>{p(!0),o(y.msg),h.current=y}}));const[m,p]=$.useState(!1),b=()=>{p(!1)},_=u?.owner==Be.userID;return!m||!u?._id?null:T.jsx(qd,{opened:m&&!!u?._id,target:`#msg-${u?._id}`,onBackdropClick:b,children:T.jsxs(hs,{nested:!0,outline:!0,dividers:!0,children:[T.jsx(aa,{title:"Ответить",link:!0,onClick:()=>{u&&(h.current?.onReply?.(u),b())}}),!!u.text&&T.jsx(aa,{title:"Копировать текст",link:!0,onClick:()=>{u&&(X4(u.text),b())}}),T.jsx(aa,{title:u?.pinned?.enabled?"Убрать закрепление":"Закрепить",link:!0,onClick:()=>{u&&(h.current?.onPinned?.(),b())}}),_&&T.jsx(aa,{title:T.jsx("span",{className:"text-red-500",children:"Удалить"}),link:!0,onClick:()=>{u&&(h.current?.onDelete?.(),b())}})]})})}),J4=$.forwardRef((r,i)=>{const[u,o]=$.useState(null),h=$.useRef(null);$.useImperativeHandle(i,()=>({open:M=>{p(!0),o(M.msg),h.current=M}}));const[m,p]=$.useState(!1),b=()=>{p(!1)},_=M=>{b(),Pt.channelReaction({channel:u?.channel,message:u?._id,reaction:M}).then(()=>{h.current?.onChange?.()})},y=()=>{const M=u?.reactions?.find(C=>C.user==Be.userID);return T.jsx(hs,{nested:!0,outline:!0,dividers:!0,children:Eb.map((C,H)=>T.jsx(aa,{title:`${C.label}`,media:T.jsx("div",{className:"ml-2",children:C.name}),link:!0,chevron:!1,after:M?.type==C.value?T.jsx(z4,{className:"w-4 h-4"}):null,onClick:()=>{_(C.value)}}))})};return!m||!u?._id?null:T.jsx(qd,{opened:m&&!!u?._id,target:`#msg-add-reactions-${u?._id}`,onBackdropClick:b,className:"w-[300px]",children:T.jsx(y,{})})}),W4=()=>T.jsx(T.Fragment,{children:[1,2,3,4].map(r=>T.jsx(M0,{className:"animate-pulse",type:r%2==0?"received":"sent",text:"▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒"},r))}),F4=300,$4=ol(()=>{const r=$.useRef(null),i=$.useRef(null),u=$.useRef(null),o=$.useRef(null),h=()=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{o.current=null,requestAnimationFrame(()=>{r.current&&r.current.scrollTo({top:r.current.scrollHeight,behavior:"smooth"})})},F4)};$.useEffect(()=>(Ce.channel?._id&&(Ce.loadMessages(),Ce.channel?.closed?Ce.stopMessagesPolling():Ce.startMessagesPolling(h)),()=>{Ce.stopMessagesPolling(),o.current&&clearTimeout(o.current)}),[Ce.channel?._id,Ce.channel?.closed]),$.useEffect(()=>{Ce.messagesList?.length&&r.current&&h()},[Ce.messagesList?.length]);const m=p=>{if(!p){console.warn("Не указан ID сообщения для скрола");return}let _=document.getElementById(`msg-${p}`)?.parentElement?.parentElement?.parentElement?.parentElement?.offsetTop;_&&r.current?setTimeout(()=>{_&&r.current&&r.current.scrollTo({top:_-100,behavior:"smooth"})},100):console.warn(`Не найден элемент с ID msg-${p}`)};return T.jsxs(T.Fragment,{children:[!!Ce.pinnedMessage&&T.jsx(dA,{top:!0,children:T.jsx(Z4,{onPin:()=>{Pt.pinnedMessage({message:Ce.pinnedMessage._id}).then(()=>{Ce.loadMessages()})},onClick:()=>{m(Ce.pinnedMessage._id)},msg:Ce.pinnedMessage})}),T.jsxs("div",{ref:r,className:"overflow-y-scroll h-screen scroll-smooth",children:[T.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-10",style:{background:`url(${U0})`}}),T.jsxs("div",{className:"flex flex-col relative z-1 px-4 mb-48",children:[Ce.messagesLoading&&!Ce.messagesList?.length&&T.jsx(W4,{}),Ce.messagesList?.map(p=>T.jsx(K4,{onReplayClick:b=>{m(b._id)},onReactionClick:b=>{u.current?.open({msg:b,onChange:()=>{Ce.loadMessages()}})},onClick:()=>{i.current?.open({msg:p,onChange:()=>{Ce.loadMessages()},onPinned:()=>{Pt.pinnedMessage({message:p._id}).then(()=>{Ce.loadMessages()})},onDelete:()=>{Pt.channelDeleteMessage({message:p._id,channel:Ce.channel?._id}).then(()=>{Ce.loadMessages()})},onReply:b=>{Ce.setReplyMsg(b)}})},onChange:()=>{Ce.loadMessages()},msg:p},p._id)),!Ce.channel?.closed&&Ce.channel?.type=="support"&&Ce.channel?.members?.find(p=>p.owner==Be.userID)&&T.jsx("div",{onClick:()=>{L0({title:"Вы уверены?",content:"Вы уверены, что хотите закрыть обращение?",buttons:[{text:"Закрыть обращение",onClick:()=>{Pt.channelClose({channel:Ce.channel?._id}).then(()=>{Ce.loadMessages(),Ce.refreshChannel()})}},{text:"Отмена",onClick:()=>{}}]})},className:"flex justify-center items-center cursor-pointer active:opacity-50 mt-2",children:T.jsx(w0,{children:"Закрыть обращение"})})]}),T.jsx(J4,{ref:u}),T.jsx(P4,{ref:i})]})]})});function eS(r){return Jt({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 tS(r){return Jt({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 nS="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/";async function aS(){return new Promise(r=>{const i=document.createElement("input");i.type="file",i.style.display="none",i.addEventListener("change",()=>{const u=i.files?.[0]??null;if(i.remove(),u&&u.size>5242880){alert("❌ Файл слишком большой. Максимальный размер — 5MB."),r(null);return}r(u)}),document.body.appendChild(i),i.click()})}const rS=new Audio(nS),iS=ol(()=>{const r=Ce.channel?._id??"",i=$.useRef(null),[u,o]=$.useState(!1),h=$.useRef(null),m=()=>{Ce.sending||aS().then(y=>{y&&p(y)})},p=y=>{const M=new FormData;M.append("file",y),Ce.setSending(!0),Pt.channelDocumentUpload(M).then(C=>{if(!C||!r){Ce.setSending(!1);return}Ce.sendMessage({attachments:[C],channel:r})}).catch(()=>Ce.setSending(!1))},b=y=>{r&&Ce.sendMessage({...y,channel:r}).then(()=>{rS.play(),y.text&&i.current&&(i.current.style.height="auto")})},_=()=>{Ce.sending||(Ce.messageText?b({text:Ce.messageText}):Ab.current?.open({onClose:()=>{},onSend:y=>{const M=new FormData;M.append("file",y,"audio.webm"),Ce.setSending(!0),Pt.channelVoiceUpload(M).then(C=>{C?._id&&r?b({voice:{_id:C._id}}):Ce.setSending(!1)}).catch(()=>Ce.setSending(!1))}}))};return T.jsxs(T.Fragment,{children:[T.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:[Ce.sending&&T.jsx("div",{className:"flex items-center justify-center w-full  mb-2",children:T.jsx(O0,{className:"w-4 h-4 text-gray-800 dark:text-white"})}),Ce.replyMsg&&T.jsx(Sb,{onClick:()=>{Ce.sending||Ce.setReplyMsg(null)},msg:Ce.replyMsg}),T.jsxs("div",{className:"w-full  flex",children:[T.jsxs("div",{className:"flex items-end",children:[Be.mode=="full"&&T.jsx("div",{onClick:()=>{o(!0)},ref:h,className:"p-2 flex items-center justify-center min-h-11 cursor-pointer active:opacity-50",children:T.jsx(U4,{size:20,className:"text-gray-500"})}),T.jsx("div",{className:"p-2 flex items-center justify-center min-h-11 cursor-pointer active:opacity-50",children:T.jsx("div",{onClick:()=>{m()},children:T.jsx(eS,{className:"text-gray-500",size:20})})})]}),T.jsx("textarea",{ref:i,value:Ce.messageText,className:" p-2 w-full outline-none border-none text-base resize-none overflow-hidden bg-white  rounded-md dark:bg-gray-800",rows:1,onChange:y=>{if(Ce.sending)return;const M=y.currentTarget;M.style.height="auto",M.style.height=`${M.scrollHeight}px`;let C=y.target?.value;C.trim()===""&&(C=""),Ce.setMessageText(C)},placeholder:"Введите сообщение..."}),T.jsx("div",{className:"flex items-end w-10 ",children:T.jsx("div",{onClick:()=>{_()},className:"p-2 flex items-center justify-center min-h-11 relative",children:Ce.messageText?T.jsxs(T.Fragment,{children:[T.jsx("input",{onFocus:()=>{i.current?.focus()},className:"absolute opacity-0  right-0 left-0 top-0 bottom-0  cursor-pointer"}),T.jsx(gb,{size:28,className:"w-6"})]}):T.jsx(vb,{size:28,className:"w-6"})})})]})]}),T.jsx(qd,{className:"w-[300px]",opened:u,target:h.current,onBackdropClick:()=>o(!1),children:T.jsxs(hs,{nested:!0,outline:!0,dividers:!0,children:[Be.fastAnswers.map(y=>T.jsx(aa,{title:y.name,link:!0,chevron:!1,onClick:()=>{y.text&&Ce.setMessageText(y.text),o(!1)},after:T.jsx(rl,{onClick:M=>{M.stopPropagation(),o(!1),v0.current?.open(y)},children:T.jsx(tS,{size:24})})})),T.jsx(aa,{media:T.jsx(j4,{size:20}),title:"Добавить быстрый ответ",link:!0,chevron:!1,onClick:()=>{v0.current?.open(),o(!1)}})]})})]})});ul.locale("ru");const lS=ol(({noPage:r})=>{const i=({children:u})=>r?T.jsx("div",{className:"relative w-full h-full",children:u}):T.jsx(fs,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden",children:u});return $.useEffect(()=>{Be.loadFastAnswers()},[]),T.jsx(T.Fragment,{children:T.jsxs(i,{children:[!Be.cap&&T.jsx(Rc,{centerTitle:!0,outline:!0,title:Ce.channel?.name?Ce.channel?.name:"Диалог",right:Be.isMobile()&&T.jsx(T.Fragment,{children:T.jsx(rl,{onClick:()=>{bS()},children:T.jsx(sp,{size:24})})})}),!Ce.channel?.closed&&Ce.joinInChannel!=null&&!!Ce.channel?._id&&T.jsx(T.Fragment,{children:Ce.joinInChannel?T.jsx(iS,{}):Be.mode=="full"?T.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:[" ",T.jsx(zr,{onClick:()=>{Ce.channel?._id&&Pt.joinChannel({channel:Ce.channel._id}).then(({result:u})=>{u&&Ce.updateChannelInfo()})},children:"Присоединиться"})]}):null}),T.jsx($4,{})]})})}),sS=({noPage:r,channelID:i})=>($.useEffect(()=>(Ce.openChannel(i),()=>Ce.stopMessagesPolling()),[i]),T.jsx(lS,{noPage:r})),wb=ol(sS);ul.locale("ru");const uS=()=>{const r=async()=>{let i=await Pt.mode();if(i.result=="widget"){kt.setToken(()=>new URLSearchParams(window.location.search).get("token")??null);const o=new URLSearchParams(window.location.search).get("channel");Be.loadUser().then(()=>{if(o){Be.setIsFixedChannel(!0),Oc().ChannelPage.move({channelID:o});return}else Oc().MainPage.move({}),Be.setIsFixedChannel(!1)})}else kt.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),kt.setToken(()=>localStorage.getItem("token")??null),kt.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),Be.setMode(i.result??"full"),localStorage.getItem("token")?Be.loadUser().then(()=>{Oc().MainPage.move({})}):Oc().LoginPage.move({})};return $.useEffect(()=>{r()},[]),T.jsx(fs,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden flex items-center justify-center",children:T.jsx(O0,{})})},oS=ol(uS);function cS(r){return Jt({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 fS(r){return Jt({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 dS(r){return Jt({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 hS=()=>{const[r,i]=$.useState(""),[u,o]=$.useState(""),[h,m]=$.useState(!1),p=()=>{m(!0),Pt.auth({login:r,password:u}).then(({result:y})=>{y&&(localStorage.setItem("token",y),window.location.reload())}).catch(()=>{m(!1)})},b=T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex flex-col items-center pt-8 md:pt-12 pb-6 px-6",children:[T.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:T.jsx(dS,{className:"w-8 h-8 md:w-10 md:h-10 text-white"})}),T.jsx("h1",{className:"text-xl md:text-2xl font-semibold text-black dark:text-white",children:"Доступ к диалогам"}),T.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1 text-center",children:"Введите данные для входа в аккаунт"})]}),T.jsxs(hs,{dividers:!0,outline:!0,className:"ios:mx-4 rounded-xl overflow-hidden",children:[T.jsx(Hd,{label:"Логин",placeholder:"Введите логин",value:r,onChange:y=>i(y.target.value)}),T.jsx(Hd,{label:"Пароль",type:"password",placeholder:"Введите пароль",value:u,onChange:y=>o(y.target.value)})]}),T.jsx(E0,{className:"px-4 md:px-6 py-6",children:T.jsx(zr,{disabled:!r||!u||h,large:!0,rounded:!0,className:"!rounded-xl font-medium",onClick:p,children:h?T.jsx(fS,{className:"animate-spin w-6 h-6"}):"Войти"})})]});return Be.isMobile()?T.jsxs(fs,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden",children:[T.jsx(Rc,{title:"Вход",large:!0,centerTitle:!0,outline:!0}),b]}):T.jsxs(fs,{className:"ios:bg-transparent dark:bg-transparent overflow-hidden min-h-screen flex items-center justify-center p-4",children:[T.jsx("div",{className:"absolute inset-0 bg-cover bg-center opacity-[0.06] dark:opacity-[0.04] pointer-events-none",style:{backgroundImage:`url(${U0})`}}),T.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"}),T.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:b})]})},mS=ol(hS),Bv=({className:r})=>T.jsx("div",{className:`w-full  bg-gray-200 dark:bg-gray-800 animate-pulse ${r}`});ul.locale("ru");const gS=({message:r})=>r?.deleted?"Удалено":r?r?.text?r?.text:r.attachments?.length?"Прикрепленные файлы":r?.voice?.url?"Аудио сообщение":"...":"...",pS=({selectChannelID:r,channelTab:i,onSelectChannel:u})=>($.useEffect(()=>(Be.loadChannelList(),Be.startChannelListPolling(),()=>Be.stopChannelListPolling()),[i]),T.jsx(hs,{strong:!0,outline:!0,children:Be.dialogsLoading?T.jsx("div",{children:[1,2,3,4].map(()=>T.jsx(aa,{className:"relative",link:!0,chevron:!1,title:T.jsx(Bv,{className:"w-full h-4"}),header:T.jsx(Bv,{className:"w-10 h-4"}),text:T.jsx(Bv,{className:"w-full h-4"}),media:T.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 "})}))}):Be.channelList.length?Be.channelList.map(o=>{const h=b0.shmChannelMessagesByID(o.lastMessage),m=o.unreadCounts?.[Be.userID]??0;return T.jsx(T.Fragment,{children:T.jsx(aa,{className:"relative",style:{opacity:o.closed?.5:1},after:m?T.jsx(lA,{children:m}):void 0,link:!0,onClick:()=>{o._id&&u(o)},chevron:!1,title:o.name?o.name:"Без имени",header:o.closed?"Диалог закрыт":void 0,text:T.jsx(gS,{message:h}),footer:o.created_at?ul.unix(o.created_at).format("DD.MM.YYYY HH:mm"):"",media:T.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==Be.userID?null:T.jsx("div",{children:xb(p.owner??"")}))}),children:!Be.isMobile()&&r===o._id&&T.jsx("div",{className:"absolute top-0 left-0 w-full h-full pointer-events-none",style:{backgroundColor:"var(--k-color-primary)",opacity:.1}})})})}):T.jsx("div",{className:"py-10 opacity-50",children:T.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[T.jsx(k4,{size:24}),T.jsx("div",{className:"text-sm mt-2",children:"Нет диалогов"})]})})})),I1=ol(pS);ul.locale("ru");const vS=()=>{const r=()=>{L0({title:"Вы уверены?",content:"Вы уверены, что хотите выйти из аккаунта?",buttons:[{text:"Выйти",onClick:()=>{localStorage.clear(),window.location.reload()}},{text:"Отмена",onClick:()=>{}}]})},[i,u]=$.useState(!1),o=$.useRef(null);return Be.isMobile()?T.jsxs(fs,{className:"ios:bg-white ios:dark:bg-stone-900 ",children:[!Be.cap&&T.jsx(Rc,{title:"Диалоги",right:Be.mode=="full"&&T.jsx(rl,{onClick:()=>{r()},children:T.jsx(z1,{size:24})}),subnavbar:T.jsxs("div",{className:"flex items-center w-full",children:[T.jsx(zr,{rounded:!0,className:"rounded-r-none",smallMaterial:!0,tonal:Be.channelTab!=="member",onClick:()=>Be.setChannelTab("member"),children:"Активные"}),T.jsx(zr,{rounded:!0,className:"rounded-l-none",smallMaterial:!0,tonal:Be.channelTab!=="join",onClick:()=>Be.setChannelTab("join"),children:"Новые"})]})}),T.jsx(I1,{selectChannelID:Be.selectChannel?._id??null,channelTab:Be.channelTab,onSelectChannel:h=>{Be.setSelectChannel(h),h?._id&&Oc().ChannelPage.move({channelID:h._id})},selectChannel:Be.selectChannel})]}):T.jsxs(fs,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden flex items-center justify-center",children:[T.jsxs("div",{className:"flex h-screen w-full overflow-hidden",children:[T.jsxs("div",{className:"w-[400px]  flex-shrink-0 overflow-y-scroll border-r border-gray-200 dark:border-gray-800 ",children:[T.jsx(Rc,{centerTitle:!0,outline:!0,title:"Диалоги",left:T.jsx(rl,{ref:o,onClick:()=>{},children:T.jsx(cS,{})}),right:Be.mode=="full"&&T.jsx(rl,{onClick:()=>{r()},children:T.jsx(z1,{size:24})}),subnavbar:T.jsxs("div",{className:"flex items-center w-full",children:[T.jsx(zr,{rounded:!0,className:"rounded-r-none",smallMaterial:!0,tonal:Be.channelTab!=="member",onClick:()=>Be.setChannelTab("member"),children:"Активные"}),T.jsx(zr,{rounded:!0,className:"rounded-l-none",smallMaterial:!0,tonal:Be.channelTab!=="join",onClick:()=>Be.setChannelTab("join"),children:"Новые"})]})}),T.jsx(I1,{selectChannelID:Be.selectChannel?._id??null,channelTab:Be.channelTab,onSelectChannel:h=>Be.setSelectChannel(h),selectChannel:Be.selectChannel})]}),T.jsx("div",{className:"flex-1 ",children:Be.selectChannel?._id?T.jsx(wb,{channelID:Be.selectChannel?._id,noPage:!0}):T.jsx("div",{className:"overflow-y-scroll h-screen  relative flex items-center justify-center",children:T.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-10 ",style:{background:`url(${U0})`}})})})]}),T.jsx(qd,{opened:i,target:o.current,onBackdropClick:()=>u(!1),children:T.jsxs(hs,{nested:!0,children:[T.jsx(aa,{title:"Быстрые ответы",link:!0,onClick:()=>u(!1)}),T.jsx(aa,{title:"List Item 2",link:!0,onClick:()=>u(!1)}),T.jsx(aa,{title:"Item 3",link:!0,onClick:()=>u(!1)}),T.jsx(aa,{title:"List Item 4",link:!0,onClick:()=>u(!1)}),T.jsx(aa,{title:"Item 5",link:!0,onClick:()=>u(!1)})]})})]})},AS=ol(vS),bS=()=>{Cc.current?.goBack()},Oc=()=>({LoadingPage:{component:oS,move:r=>{Cc.current?.onChanceRoute("LoadingPage",r)}},LoginPage:{component:mS,move:r=>{Cc.current?.onChanceRoute("LoginPage",r)}},MainPage:{component:AS,move:r=>{Cc.current?.onChanceRoute("MainPage",r)}},ChannelPage:{component:wb,move:r=>{Cc.current?.onChanceRoute("ChannelPage",r)}}}),Cc=P.createRef(),yS=P.forwardRef((r,i)=>{const u=$.useRef(0);$.useImperativeHandle(i,()=>({goBack:()=>{h(b=>b.slice(0,-1))},onChanceRoute:(b,_)=>{o[o.length-1]?.route!==b&&h(y=>{const M={route:b,props:_,id:u.current++};return[...y,M]})}}));const[o,h]=$.useState([]),[m,p]=$.useState(!1);return $.useEffect(()=>{h([{route:"LoadingPage",props:{},id:u.current++}]),p(!0)},[]),$.useEffect(()=>{if(m&&o.length==0){h([{route:"LoadingPage",props:{},id:u.current++}]);return}},[o,m]),T.jsx(T.Fragment,{children:o.map((b,_)=>{let y=Oc()[b.route];if(!y)return null;if(_==o.length-1)return T.jsx(y.component,{...b.props})})})}),_S=()=>/iPad|iPhone|iPod/.test(navigator.userAgent),xS=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 u=document.documentElement;u.classList.forEach(o=>{o.includes("k-color")&&u.classList.remove(o)}),i&&u.classList.add(i)};ul.locale("ru");z0||(console.log=()=>{},console.error=()=>{},console.warn=()=>{},console.info=()=>{},console.debug=()=>{},console.trace=()=>{},console.dir=()=>{},console.dirxml=()=>{},console.group=()=>{});kt.setUseEncrypt(!z0);kt.setEndpoints([T4()]);kt.setToast(r=>{_b(r)});const SS=()=>($.useEffect(()=>{const r=new URLSearchParams(window.location.search);r.get("cap")?Be.setCap(!0):Be.setCap(!1),r.get("dark")?document.body.classList.add("dark"):document.body.classList.remove("dark");let o=r.get("theme");o&&xS(o)},[]),T.jsxs(iA,{theme:_S()?"ios":"material",safeAreas:!0,children:[T.jsx(yS,{ref:Cc}),T.jsx(M4,{ref:v0}),T.jsx(C4,{ref:yb}),T.jsx(bb,{ref:Ab}),T.jsx(m4,{ref:db})]})),ES=ol(SS);kt.setUseEncrypt(!0);ny.createRoot(document.getElementById("root")).render(T.jsx(ES,{}));
