(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 j0;function Kb(){if(j0)return Bd;j0=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 H0;function Zb(){return H0||(H0=1,vv.exports=Kb()),vv.exports}var R=Zb(),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 G0;function Xb(){return G0||(G0=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=[],O=1,C=null,H=3,G=!1,U=!1,Q=!1,I=!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),!U)if(u(_)!==null)U=!0,de||(de=!0,Be());else{var Z=u(y);Z!==null&&ae(te,Z.startTime-D)}}var de=!1,ge=-1,F=5,_e=-1;function ze(){return I?!0:!(r.unstable_now()-_e<F)}function Ee(){if(I=!1,de){var D=r.unstable_now();_e=D;var Z=!0;try{e:{U=!1,Q&&(Q=!1,ce(ge),ge=-1),G=!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,G=!1}Z=void 0}}finally{Z?Be():de=!1}}}var Be;if(typeof me=="function")Be=function(){me(Ee)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,ye=Ke.port2;Ke.port1.onmessage=Ee,Be=function(){ye.postMessage(null)}}else Be=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(){I=!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:O++,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),U||G||(U=!0,de||(de=!0,Be()))),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 I0;function Pb(){return I0||(I0=1,bv.exports=Xb()),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 Y0;function Jb(){if(Y0)return We;Y0=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"),O=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 G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,Q={};function I(w,K,fe){this.props=w,this.context=K,this.refs=Q,this.updater=fe||G}I.prototype.isReactComponent={},I.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")},I.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function ie(){}ie.prototype=I.prototype;function ce(w,K,fe){this.props=w,this.context=K,this.refs=Q,this.updater=fe||G}var me=ce.prototype=new ie;me.constructor=ce,U(me,I.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 Be(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 O:return pe=w._init,ae(pe(w._payload),K,fe,se,be)}}if(pe)return be=be(w),pe=se===""?"."+Be(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+Be(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+Be(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=I,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=U({},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:O,_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 q0;function Pg(){return q0||(q0=1,_v.exports=Jb()),_v.exports}var xv={exports:{}},aa={};/**
 * @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 V0;function Wb(){if(V0)return aa;V0=1;var r=Pg();function i(_){var y="https://react.dev/errors/"+_;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)y+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+_+"; 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,O){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:C==null?null:""+C,children:_,containerInfo:y,implementation:O}}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 aa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,aa.createPortal=function(_,y){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return m(_,y,null,O)},aa.flushSync=function(_){var y=p.T,O=o.p;try{if(p.T=null,o.p=2,_)return _()}finally{p.T=y,o.p=O,o.d.f()}},aa.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))},aa.prefetchDNS=function(_){typeof _=="string"&&o.d.D(_)},aa.preinit=function(_,y){if(typeof _=="string"&&y&&typeof y.as=="string"){var O=y.as,C=b(O,y.crossOrigin),H=typeof y.integrity=="string"?y.integrity:void 0,G=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;O==="style"?o.d.S(_,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:C,integrity:H,fetchPriority:G}):O==="script"&&o.d.X(_,{crossOrigin:C,integrity:H,fetchPriority:G,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},aa.preinitModule=function(_,y){if(typeof _=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var O=b(y.as,y.crossOrigin);o.d.M(_,{crossOrigin:O,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(_)},aa.preload=function(_,y){if(typeof _=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var O=y.as,C=b(O,y.crossOrigin);o.d.L(_,O,{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})}},aa.preloadModule=function(_,y){if(typeof _=="string")if(y){var O=b(y.as,y.crossOrigin);o.d.m(_,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:O,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(_)},aa.requestFormReset=function(_){o.d.r(_)},aa.unstable_batchedUpdates=function(_,y){return _(y)},aa.useFormState=function(_,y,O){return p.H.useFormState(_,y,O)},aa.useFormStatus=function(){return p.H.useHostTransitionStatus()},aa.version="19.1.1",aa}var Q0;function G1(){if(Q0)return xv.exports;Q0=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=Wb(),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 K0;function Fb(){if(K0)return Ld;K0=1;var r=Pb(),i=Pg(),u=G1();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 O=Object.assign,C=Symbol.for("react.element"),H=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),ce=Symbol.for("react.consumer"),me=Symbol.for("react.context"),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 Be(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 U:return"Fragment";case I: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 G: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),is._currentValue=J)}var Mt=Object.prototype.hasOwnProperty,Jt=r.unstable_scheduleCallback,At=r.unstable_cancelCallback,xn=r.unstable_shouldYield,Oi=r.unstable_requestPaint,bt=r.unstable_now,sn=r.unstable_getCurrentPriorityLevel,Kt=r.unstable_ImmediatePriority,ra=r.unstable_UserBlockingPriority,Ct=r.unstable_NormalPriority,Mn=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:vs,gs=Math.log,ps=Math.LN2;function vs(e){return e>>>=0,e===0?32:31-(gs(e)/ps|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 ol(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,q=e.hiddenUpdates;for(n=v&~n;0<n;){var ne=31-Sn(n),ue=1<<ne;S[ne]=0,N[ne]=-1;var X=q[ne];if(X!==null)for(q[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,qn="__reactProps$"+Yr,qr="__reactContainer$"+Yr,Hc="__reactEvents$"+Yr,cp="__reactListeners$"+Yr,fp="__reactHandles$"+Yr,$d="__reactResources$"+Yr,As="__reactMarker$"+Yr;function Gc(e){delete e[pn],delete e[qn],delete e[Hc],delete e[cp],delete e[fp]}function cl(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 fl(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 dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function hl(e){var t=e[$d];return t||(t=e[$d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vn(e){e[As]=!0}var eh=new Set,th={};function Mi(e,t){ml(e,t),ml(e+"Capture",t)}function ml(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={},bs={};function dp(e){return Mt.call(bs,e)?!0:Mt.call(nh,e)?!1:Qu.test(e)?bs[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 gl(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(`
`),q=S.split(`
`);for(c=s=0;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;for(;c<q.length&&!q[c].includes("DetermineComponentFrameRoot");)c++;if(s===N.length||c===q.length)for(s=N.length-1,c=q.length-1;1<=s&&0<=c&&N[s]!==q[c];)c--;for(;1<=s&&0<=c;s--,c--)if(N[s]!==q[c]){if(s!==1||c!==1)do if(s--,c--,0>c||N[s]!==q[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:"")?gl(n):""}function hp(e){switch(e.tag){case 26:case 27:case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 15:return qc(e.type,!1);case 11:return qc(e.type.render,!1);case 1:return qc(e.type,!0);case 31:return gl("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?ys(e,v,ia(t)):n!=null?ys(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 ys(e,t,n){t==="number"&&Ci(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pl(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 vl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function 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||vl.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 _s(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 Al=null,bl=null;function ef(e){var t=fl(e);if(t&&(e=t.stateNode)){var n=e[qn]||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[qn]||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&&pl(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,(Al!==null||bl!==null)&&($o(),Al&&(t=Al,e=bl,bl=Al=null,ef(t),e)))for(t=0;t<e.length;t++)ef(e[t])}}function xs(e,t){var n=e.stateNode;if(n===null)return null;var s=n[qn]||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"),Ss=!1;if(pr)try{var Es={};Object.defineProperty(Es,"passive",{get:function(){Ss=!0}}),window.addEventListener("test",Es,Es),window.removeEventListener("test",Es,Es)}catch{Ss=!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 Vn(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 O(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=Vn(Ti),ws=O({},Ti,{view:0,detail:0}),mp=Vn(ws),to,af,an,yl=O({},ws,{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=Vn(yl),oh=O({},yl,{dataTransfer:0}),rf=Vn(oh),Aa=O({},ws,{relatedTarget:0}),no=Vn(Aa),ch=O({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),fh=Vn(ch),dh=O({},Ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hh=Vn(dh),mh=O({},Ti,{data:0}),Qn=Vn(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=O({},ws,{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=Vn(ao),Gt=O({},yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vr=Vn(Gt),sf=O({},ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fa}),vp=Vn(sf),uf=O({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ap=Vn(uf),bp=O({},yl,{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=Vn(bp),ph=O({},Ti,{newState:0,oldState:0}),ro=Vn(ph),_l=[9,13,27,32],of=pr&&"CompositionEvent"in window,xl=null;pr&&"documentMode"in document&&(xl=document.documentMode);var vh=pr&&"TextEvent"in window&&!xl,io=pr&&(!of||xl&&8<xl&&11>=xl),lo=" ",cf=!1;function Ah(e,t){switch(e){case"keyup":return _l.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 Sl(e,t,n,s){Al?bl?bl.push(s):bl=[s]:Al=s,t=lc(t,"onChange"),0<t.length&&(n=new eo("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var El=null,wl=null;function xp(e){Xm(e,0)}function oo(e){var t=dl(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(){El&&(El.detachEvent("onpropertychange",co),wl=El=null)}function co(e){if(e.propertyName==="value"&&oo(wl)){var t=[];Sl(t,wl,e,$c(e)),lh(xp,t)}}function Eh(e,t,n){e==="focusin"?(Sh(),El=t,wl=n,El.attachEvent("onpropertychange",co)):e==="focusout"&&Sh()}function Pr(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oo(wl)}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(!Mt.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 Oh(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"),Mh=dt("animationiteration"),ua=dt("animationstart"),mo=dt("transitionrun"),Op=dt("transitionstart"),Ml=dt("transitioncancel"),Os=dt("transitionend"),Ms=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){Ms.set(e,t),Mi(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=[],Cl=0,gf=0;function Ri(){for(var e=Cl,t=gf=Cl=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&&Cs(n,c,d)}}function ka(e,t,n,s){_a[Cl++]=e,_a[Cl++]=t,_a[Cl++]=n,_a[Cl++]=s,gf|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Tl(e,t,n,s){return ka(e,t,n,s),Ts(e)}function Ni(e,t){return ka(e,null,null,t),Ts(e)}function Cs(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 Ts(e){if(50<Wl)throw Wl=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 Kn(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=Kn(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 Rs(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=Kn(31,n,t,c),e.elementType=_e,e.lanes=d,e;case U:return Li(n.children,c,d,t);case Q:v=8,c|=24;break;case I:return e=Kn(12,n,t,c|2),e.elementType=I,e.lanes=d,e;case te:return e=Kn(13,n,t,c),e.elementType=te,e.lanes=d,e;case de:return e=Kn(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=Kn(v,n,t,c),t.elementType=e,t.type=s,t.lanes=d,t}function Li(e,t,n,s){return e=Kn(7,e,s,t),e.lanes=n,e}function pf(e,t,n){return e=Kn(6,e,null,t),e.lanes=n,e}function Rl(e,t,n){return t=Kn(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,Ns=0,xa=[],Sa=0,kt=null,It=1,br="";function zi(e,t){Ar[Wr++]=Ns,Ar[Wr++]=vo,vo=e,Ns=t}function vf(e,t,n){xa[Sa++]=It,xa[Sa++]=br,xa[Sa++]=kt,kt=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 Ds(e){for(;e===vo;)vo=Ar[--Wr],Ar[Wr]=null,Ns=Ar[--Wr],Ar[Wr]=null;for(;e===kt;)kt=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,Zn=!1,Nl=Error(o(519));function Ea(e){var t=Error(o(418,""));throw Fr(Un(t,e)),Nl}function Ch(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[pn]=e,t[qn]=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<yu.length;n++)nt(yu[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:Zn=!1;return;case 27:case 3:Zn=!0;return;default:un=un.return}}function Bs(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 Ls(){Yt=un=null,it=!1}function Rh(){var e=ja;return e!==null&&(ta===null?ta=e:ta.push.apply(ta,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 Xn(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),Xn(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),Xn(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 zs(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(is):e=[is])}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 Wt(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 Mp=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 Mp,data:new Map,refCount:0}}function Us(e){e.refCount--,e.refCount===0&&Cp(Tp,function(){e.controller.abort()})}var ks=null,yf=0,Dl=0,Pn=null;function Rp(e,t){if(ks===null){var n=ks=[];yf=0,Dl=ic(),Pn={status:"pending",value:void 0,then:function(s){n.push(s)}}}return yf++,t.then(Dh,Dh),t}function Dh(){if(--yf===0&&ks!==null){Pn!==null&&(Pn.status="fulfilled");var e=ks;ks=null,Dl=0,Pn=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 Bl=t,jn}}var Bl=null;function kh(){if(Bl===null)throw Error(o(459));var e=Bl;return Bl=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 Ll(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=Ts(e),Cs(e,null,n),t}return ka(e,s,t,n),Ts(e)}function js(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 Hs=!1;function Ga(){if(Hs){var e=Pn;if(e!==null)throw e}}function Tn(e,t,n,s){Hs=!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,q=N.next;N.next=null,v===null?d=q:v.next=q,v=N;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,S=ne.lastBaseUpdate,S!==v&&(S===null?ne.firstBaseUpdate=q:S.next=q,ne.lastBaseUpdate=N))}if(d!==null){var ue=c.baseState;v=0,ne=q=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===Dl&&(Hs=!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=O({},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?(q=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=q,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,zl=!1,Ii=!1,Rn=!1,Ul=0,ni=0,Oa=null,Gh=0;function st(){throw Error(o(321))}function Gs(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=Ws;var t=Et!==null&&Et.next!==null;if(Ia=0,lt=Et=Je=null,zl=!1,ni=0,Oa=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&&(Oa=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 Of(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Is(t):t,e=e.useState()[0],(Et!==null?Et.memoizedState:null)!==e&&(Je.flags|=1024),t}function Mf(){var e=Ul!==0;return Ul=0,e}function Yi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(zl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zl=!1}Ia=0,lt=Et=Je=null,Ii=!1,ni=Ul=0,Oa=null}function Jn(){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 Is(e){var t=ni;return ni+=1,Oa===null&&(Oa=[]),e=xf(Oa,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 Is(e);if(e.$$typeof===me)return Wt(e)}throw Error(o(438,String(e)))}function Ys(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 Oo(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,q=t,ne=!1;do{var ue=q.lane&-536870913;if(ue!==q.lane?(ct&ue)===ue:(Ia&ue)===ue){var X=q.revertLane;if(X===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),ue===Dl&&(ne=!0);else if((Ia&X)===X){q=q.next,X===Dl&&(ne=!0);continue}else ue={lane:0,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},N===null?(S=N=ue,v=d):N=N.next=ue,Je.lanes|=X,oi|=X;ue=q.action,Rn&&n(d,ue),d=q.hasEagerState?q.eagerState:n(d,ue)}else X={lane:ue,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},N===null?(S=N=X,v=d):N=N.next=X,Je.lanes|=ue,oi|=ue;q=q.next}while(q!==null&&q!==t);if(N===null?v=d:N.next=S,!sa(d,e.memoizedState)&&(An=!0,ne&&(n=Pn,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(Qs(2048,8,S,[e]),c.getSnapshot!==t||v||lt!==null&&lt.memoizedState.tag&1){if(s.flags|=2048,kl(9,Bo(),qh.bind(null,s,c,n,t),null),Ut===null)throw Error(o(349));d||(Ia&124)!==0||Mo(s,t,n)}return n}function Mo(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=Jn();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 qs(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(q){Ro(e,t,q)}finally{D.T=d}}else try{d=n(c,s),Lf(e,t,d)}catch(q){Ro(e,t,q)}}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=Zn;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=Jn(),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=Jn(),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=Oo(tr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Is(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,kl(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 kl(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 jl(){return ln().memoizedState}function Vs(e,t,n,s){var c=Jn();s=s===void 0?null:s,Je.flags|=e,c.memoizedState=kl(1|t,Bo(),n,s)}function Qs(e,t,n,s){var c=ln();s=s===void 0?null:s;var d=c.memoizedState.inst;Et!==null&&s!==null&&Gs(s,Et.memoizedState.deps)?c.memoizedState=kl(t,d,n,s):(Je.flags|=e,c.memoizedState=kl(1|t,d,n,s))}function Zh(e,t){Vs(8390656,8,e,t)}function ca(e,t){Qs(2048,8,e,t)}function Xh(e,t){return Qs(4,2,e,t)}function Ks(e,t){return Qs(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,Qs(4,4,Lo.bind(null,t,e),n)}function zo(){}function Wn(e,t){var n=ln();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&Gs(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&&Gs(t,s[1]))return s[0];if(s=e(),Rn){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[s,t],s}function Zs(e,t,n){return n===void 0||(Ia&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Mm(),Je.lanes|=e,oi|=e,n)}function jf(e,t,n,s){return sa(n,t)?n:Gi.current!==null?(e=Zs(e,n,s),sa(e,t)||(An=!0),e):(Ia&42)===0?(An=!0,e.memoizedState=n):(e=Mm(),Je.lanes|=e,oi|=e,t)}function Xs(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(),q=D.S;if(q!==null&&q(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 Ps(e,t,n,s){if(e.tag!==5)throw Error(o(476));var c=Hf(e).queue;Xs(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 Js(){return Wt(is)}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),js(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=Tl(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=Tl(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=Tl(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=zl=!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 Ws={readContext:Wt,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:Wt,use:wo,useCallback:function(e,t){return Jn().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:Zh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Vs(4194308,4,Lo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var n=Jn();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=Jn();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=Jn();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=Jn();return Zs(n,e,t)},useTransition:function(){var e=To(!1);return e=Xs.bind(null,Je,e.queue,!0,!1),Jn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=Je,c=Jn();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||Mo(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,kl(9,Bo(),qh.bind(null,s,d,n,t),null),n},useId:function(){var e=Jn(),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=Ul++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Gh++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Js,useFormState:zf,useActionState:zf,useOptimistic:function(e){var t=Jn();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:Ys,useCacheRefresh:function(){return Jn().memoizedState=ai.bind(null,Je)}},qf={readContext:Wt,use:wo,useCallback:Wn,useContext:Wt,useEffect:ca,useImperativeHandle:kf,useInsertionEffect:Xh,useLayoutEffect:Ks,useMemo:Sr,useReducer:Oo,useRef:jl,useState:function(){return Oo(tr)},useDebugValue:zo,useDeferredValue:function(e,t){var n=ln();return jf(n,Et.memoizedState,e,t)},useTransition:function(){var e=Oo(tr)[0],t=ln().memoizedState;return[typeof e=="boolean"?e:Is(e),t]},useSyncExternalStore:Rf,useId:Er,useHostTransitionStatus:Js,useFormState:Do,useActionState:Do,useOptimistic:function(e,t){var n=ln();return qs(n,Et,e,t)},useMemoCache:Ys,useCacheRefresh:Jh},em={readContext:Wt,use:wo,useCallback:Wn,useContext:Wt,useEffect:ca,useImperativeHandle:kf,useInsertionEffect:Xh,useLayoutEffect:Ks,useMemo:Sr,useReducer:Tf,useRef:jl,useState:function(){return Tf(tr)},useDebugValue:zo,useDeferredValue:function(e,t){var n=ln();return Et===null?Zs(n,e,t):jf(n,Et.memoizedState,e,t)},useTransition:function(){var e=Tf(tr)[0],t=ln().memoizedState;return[typeof e=="boolean"?e:Is(e),t]},useSyncExternalStore:Rf,useId:Er,useHostTransitionStatus:Js,useFormState:Pe,useActionState:Pe,useOptimistic:function(e,t){var n=ln();return Et!==null?qs(n,Et,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ys,useCacheRefresh:Jh},on=null,Fn=0;function jo(e){var t=Fn;return Fn+=1,on===null&&(on=[]),xf(on,e,t)}function Fs(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(k,L){if(e){var Y=k.deletions;Y===null?(k.deletions=[L],k.flags|=16):Y.push(L)}}function n(k,L){if(!e)return null;for(;L!==null;)t(k,L),L=L.sibling;return null}function s(k){for(var L=new Map;k!==null;)k.key!==null?L.set(k.key,k):L.set(k.index,k),k=k.sibling;return L}function c(k,L){return k=kn(k,L),k.index=0,k.sibling=null,k}function d(k,L,Y){return k.index=Y,e?(Y=k.alternate,Y!==null?(Y=Y.index,Y<L?(k.flags|=67108866,L):Y):(k.flags|=67108866,L)):(k.flags|=1048576,L)}function v(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function S(k,L,Y,re){return L===null||L.tag!==6?(L=pf(Y,k.mode,re),L.return=k,L):(L=c(L,Y),L.return=k,L)}function N(k,L,Y,re){var Me=Y.type;return Me===U?ne(k,L,Y.props.children,re,Y.key):L!==null&&(L.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===F&&Ki(Me)===L.type)?(L=c(L,Y.props),Fs(L,Y),L.return=k,L):(L=po(Y.type,Y.key,Y.props,null,k.mode,re),Fs(L,Y),L.return=k,L)}function q(k,L,Y,re){return L===null||L.tag!==4||L.stateNode.containerInfo!==Y.containerInfo||L.stateNode.implementation!==Y.implementation?(L=Rl(Y,k.mode,re),L.return=k,L):(L=c(L,Y.children||[]),L.return=k,L)}function ne(k,L,Y,re,Me){return L===null||L.tag!==7?(L=Li(Y,k.mode,re,Me),L.return=k,L):(L=c(L,Y),L.return=k,L)}function ue(k,L,Y){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=pf(""+L,k.mode,Y),L.return=k,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case H:return Y=po(L.type,L.key,L.props,null,k.mode,Y),Fs(Y,L),Y.return=k,Y;case G:return L=Rl(L,k.mode,Y),L.return=k,L;case F:var re=L._init;return L=re(L._payload),ue(k,L,Y)}if(ae(L)||Be(L))return L=Li(L,k.mode,Y,null),L.return=k,L;if(typeof L.then=="function")return ue(k,jo(L),Y);if(L.$$typeof===me)return ue(k,bo(k,L),Y);Qi(k,L)}return null}function X(k,L,Y,re){var Me=L!==null?L.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Me!==null?null:S(k,L,""+Y,re);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case H:return Y.key===Me?N(k,L,Y,re):null;case G:return Y.key===Me?q(k,L,Y,re):null;case F:return Me=Y._init,Y=Me(Y._payload),X(k,L,Y,re)}if(ae(Y)||Be(Y))return Me!==null?null:ne(k,L,Y,re,null);if(typeof Y.then=="function")return X(k,L,jo(Y),re);if(Y.$$typeof===me)return X(k,L,bo(k,Y),re);Qi(k,Y)}return null}function V(k,L,Y,re,Me){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return k=k.get(Y)||null,S(L,k,""+re,Me);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case H:return k=k.get(re.key===null?Y:re.key)||null,N(L,k,re,Me);case G:return k=k.get(re.key===null?Y:re.key)||null,q(L,k,re,Me);case F:var $e=re._init;return re=$e(re._payload),V(k,L,Y,re,Me)}if(ae(re)||Be(re))return k=k.get(Y)||null,ne(L,k,re,Me,null);if(typeof re.then=="function")return V(k,L,Y,jo(re),Me);if(re.$$typeof===me)return V(k,L,Y,bo(L,re),Me);Qi(L,re)}return null}function He(k,L,Y,re){for(var Me=null,$e=null,De=L,Ge=L=0,_n=null;De!==null&&Ge<Y.length;Ge++){De.index>Ge?(_n=De,De=null):_n=De.sibling;var ht=X(k,De,Y[Ge],re);if(ht===null){De===null&&(De=_n);break}e&&De&&ht.alternate===null&&t(k,De),L=d(ht,L,Ge),$e===null?Me=ht:$e.sibling=ht,$e=ht,De=_n}if(Ge===Y.length)return n(k,De),it&&zi(k,Ge),Me;if(De===null){for(;Ge<Y.length;Ge++)De=ue(k,Y[Ge],re),De!==null&&(L=d(De,L,Ge),$e===null?Me=De:$e.sibling=De,$e=De);return it&&zi(k,Ge),Me}for(De=s(De);Ge<Y.length;Ge++)_n=V(De,k,Ge,Y[Ge],re),_n!==null&&(e&&_n.alternate!==null&&De.delete(_n.key===null?Ge:_n.key),L=d(_n,L,Ge),$e===null?Me=_n:$e.sibling=_n,$e=_n);return e&&De.forEach(function(bi){return t(k,bi)}),it&&zi(k,Ge),Me}function ke(k,L,Y,re){if(Y==null)throw Error(o(151));for(var Me=null,$e=null,De=L,Ge=L=0,_n=null,ht=Y.next();De!==null&&!ht.done;Ge++,ht=Y.next()){De.index>Ge?(_n=De,De=null):_n=De.sibling;var bi=X(k,De,ht.value,re);if(bi===null){De===null&&(De=_n);break}e&&De&&bi.alternate===null&&t(k,De),L=d(bi,L,Ge),$e===null?Me=bi:$e.sibling=bi,$e=bi,De=_n}if(ht.done)return n(k,De),it&&zi(k,Ge),Me;if(De===null){for(;!ht.done;Ge++,ht=Y.next())ht=ue(k,ht.value,re),ht!==null&&(L=d(ht,L,Ge),$e===null?Me=ht:$e.sibling=ht,$e=ht);return it&&zi(k,Ge),Me}for(De=s(De);!ht.done;Ge++,ht=Y.next())ht=V(De,k,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?Me=ht:$e.sibling=ht,$e=ht);return e&&De.forEach(function(mv){return t(k,mv)}),it&&zi(k,Ge),Me}function Nt(k,L,Y,re){if(typeof Y=="object"&&Y!==null&&Y.type===U&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case H:e:{for(var Me=Y.key;L!==null;){if(L.key===Me){if(Me=Y.type,Me===U){if(L.tag===7){n(k,L.sibling),re=c(L,Y.props.children),re.return=k,k=re;break e}}else if(L.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===F&&Ki(Me)===L.type){n(k,L.sibling),re=c(L,Y.props),Fs(re,Y),re.return=k,k=re;break e}n(k,L);break}else t(k,L);L=L.sibling}Y.type===U?(re=Li(Y.props.children,k.mode,re,Y.key),re.return=k,k=re):(re=po(Y.type,Y.key,Y.props,null,k.mode,re),Fs(re,Y),re.return=k,k=re)}return v(k);case G:e:{for(Me=Y.key;L!==null;){if(L.key===Me)if(L.tag===4&&L.stateNode.containerInfo===Y.containerInfo&&L.stateNode.implementation===Y.implementation){n(k,L.sibling),re=c(L,Y.children||[]),re.return=k,k=re;break e}else{n(k,L);break}else t(k,L);L=L.sibling}re=Rl(Y,k.mode,re),re.return=k,k=re}return v(k);case F:return Me=Y._init,Y=Me(Y._payload),Nt(k,L,Y,re)}if(ae(Y))return He(k,L,Y,re);if(Be(Y)){if(Me=Be(Y),typeof Me!="function")throw Error(o(150));return Y=Me.call(Y),ke(k,L,Y,re)}if(typeof Y.then=="function")return Nt(k,L,jo(Y),re);if(Y.$$typeof===me)return Nt(k,L,bo(k,Y),re);Qi(k,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,L!==null&&L.tag===6?(n(k,L.sibling),re=c(L,Y),re.return=k,k=re):(n(k,L),re=pf(Y,k.mode,re),re.return=k,k=re),v(k)):n(k,L)}return function(k,L,Y,re){try{Fn=0;var Me=Nt(k,L,Y,re);return on=null,Me}catch(De){if(De===jn||De===_o)throw De;var $e=Kn(29,De,null,k.mode);return $e.lanes=re,$e.return=k,$e}finally{}}}var Zi=Vf(!0),tm=Vf(!1),fa=K(null),Hn=null;function Ma(e){var t=e.alternate;se(Ft,Ft.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(Ft,Ft.current),se(fa,e),Hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Hn=e)}}else wr()}function wr(){se(Ft,Ft.current),se(fa,fa.current)}function nr(e){fe(fa),Hn===e&&(Hn=null),fe(Ft)}var Ft=K(0);function $s(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 Hl(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:O({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var eu={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),js(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),js(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),js(t,e,n))}};function tu(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&&eu.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=O({},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 nu(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(){nu(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&&zs(t,n,c,!0),n=fa.current,n!==null){switch(n.tag){case 13:return Hn===null?fd():n.alternate===null&&$t===0&&($t=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!==Nl&&(e=Error(o(422),{cause:s}),Fr(Un(e,n)))):(s!==Nl&&(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),$t!==4&&($t=2)),!1;var d=Error(o(520),{cause:s});if(d=Un(d,n),du===null?du=[d]:du.push(d),$t!==4&&($t=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 jt(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=Mf(),e!==null&&!An?(Yi(e,t,c),Or(e,t,c)):(it&&S&&Af(t),t.flags|=1,jt(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 Or(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,Or(e,t,c)}return Gl(e,t,n,s,c)}function au(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 jt(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&&zs(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 Gl(e,t,n,s,c){return ki(t),n=wf(e,t,n,s,void 0,c),s=Mf(),e!==null&&!An?(Yi(e,t,c),Or(e,t,c)):(it&&s&&Af(t),t.flags|=1,jt(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=Mf(),e!==null&&!An?(Yi(e,t,d),Or(e,t,d)):(it&&s&&Af(t),t.flags|=1,jt(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=Wt(v)),d=new n(s,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=eu,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?Wt(v):Di,d.state=t.memoizedState,v=n.getDerivedStateFromProps,typeof v=="function"&&(Hl(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&&eu.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 q=d.context,ne=n.contextType;v=Di,typeof ne=="object"&&ne!==null&&(v=Wt(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||q!==v)&&am(t,d,s,v),er=!1;var X=t.memoizedState;d.state=X,Tn(t,s,d,c),Ga(),q=t.memoizedState,S||X!==q||er?(typeof ue=="function"&&(Hl(t,n,ue,s),q=t.memoizedState),(N=er||tu(t,n,N,s,X,q,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=q),d.props=s,d.state=q,d.context=v,s=N):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{d=t.stateNode,Ll(e,t),v=t.memoizedProps,ne=ri(n,v),d.props=ne,ue=t.pendingProps,X=d.context,q=n.contextType,N=Di,typeof q=="object"&&q!==null&&(N=Wt(q)),S=n.getDerivedStateFromProps,(q=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"&&(Hl(t,n,S,s),V=t.memoizedState),(ne=er||tu(t,n,ne,s,X,V,N)||e!==null&&e.dependencies!==null&&Ao(e.dependencies))?(q||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)):jt(e,t,n,c),t.memoizedState=d.state,e=t.child):e=Or(e,t,c),e}function um(e,t,n,s){return Ls(),t.flags|=256,jt(e,t,n,s),t.child}var ru={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:(Ft.current&2)!==0),v&&(c=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(it){if(c?Ma(t):wr(),it){var S=Yt,N;if(N=S){e:{for(N=S,S=Zn;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:kt!==null?{id:It,overflow:br}:null,retryLane:536870912,hydrationErrors:null},N=Kn(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=iu({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=ru,s):(Ma(t),Zf(t,S))}if(N=e.memoizedState,N!==null&&(S=N.dehydrated,S!==null)){if(d)t.flags&256?(Ma(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=iu({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=ru,t=c);else if(Ma(t),In(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var q=v.dgst;v=q,s=Error(o(419)),s.stack="",s.digest=v,Fr({value:s,source:null,stack:null}),t=Xf(e,t,n)}else if(An||zs(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,Zn=!1,e!==null&&(xa[Sa++]=It,xa[Sa++]=br,xa[Sa++]=kt,It=e.id,br=e.overflow,kt=t),t=Zf(t,s.children),t.flags|=4096);return t}return c?(wr(),c=s.fallback,S=t.mode,N=e.child,q=N.sibling,s=kn(N,{mode:"hidden",children:s.children}),s.subtreeFlags=N.subtreeFlags&65011712,q!==null?c=kn(q,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?(q=Bt._currentValue,N=N.parent!==q?{parent:q,pool:q}:N):N=Lh(),S={baseLanes:S.baseLanes|n,cachePool:N}),c.memoizedState=S,c.childLanes=bn(e,v,n),t.memoizedState=ru,s):(Ma(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=iu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function iu(e,t){return e=Kn(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),Xn(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(jt(e,t,s.children,n),s=Ft.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(Ft,s),c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&$s(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&&$s(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 Or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(zs(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),Ls();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?(Ma(t),t.flags|=128,null):(n&t.child.childLanes)!==0?om(e,t,n):(Ma(t),e=Or(e,t,n),e!==null?e.sibling:null);Ma(t);break;case 19:var c=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(zs(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(Ft,Ft.current),s)break;return null;case 22:case 23:return t.lanes=0,au(e,t,n);case 24:oa(t,Bt,e.memoizedState.cache)}return Or(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,Ns,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=Gl(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 Gl(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,Ll(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,Zn=!0,n=tm(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ls(),s===c){t=Or(e,t,n);break e}jt(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[qn]=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,Zn=!0,c=Yt,Ra(t.type)?(Sd=c,Yt=Va(s.firstChild)):Yt=c),jt(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,Zn),s!==null?(t.stateNode=s,un=t,Yt=Va(s.firstChild),Zn=!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,Of,null,null,n),is._currentValue=c),Ue(e,t),jt(e,t,s,n),t.child;case 6:return e===null&&it&&((e=n=Yt)&&(n=fc(n,t.pendingProps,Zn),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):jt(e,t,s,n),t.child;case 11:return Io(e,t,t.type,t.pendingProps,n);case 7:return jt(e,t,t.pendingProps,n),t.child;case 8:return jt(e,t,t.pendingProps.children,n),t.child;case 12:return jt(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,oa(t,t.type,s.value),jt(e,t,s.children,n),t.child;case 9:return c=t.type._context,s=t.pendingProps.children,ki(t),c=Wt(c),s=s(c),t.flags|=1,jt(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=iu(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 au(e,t,n);case 24:return ki(t),s=Wt(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&&(Ll(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))),jt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Mr(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 Bl=_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,Zl|=t)}function lu(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(Ds(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)&&(Bs(t)?Mr(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?(Mr(t),n!==null?(Lt(t),Zo(t,n)):(Lt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Mr(t),Lt(t),Zo(t,n)):(Lt(t),t.flags&=-16777217):(e.memoizedProps!==s&&Mr(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&&Mr(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Lt(t),null}e=be.current,Bs(t)?Ch(t):(e=ag(c,s,n),t.stateNode=e,Mr(t))}return Lt(t),null;case 5:if(xt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Mr(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Lt(t),null}if(e=be.current,Bs(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[qn]=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&&Mr(t)}}return Lt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Mr(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(e=pe.current,Bs(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=Bs(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 Ls(),(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(Ft),c=t.memoizedState,c===null)return Lt(t),null;if(s=(t.flags&128)!==0,d=c.rendering,d===null)if(s)lu(c,!1);else{if($t!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=$s(e),d!==null){for(t.flags|=128,lu(c,!1),e=d.updateQueue,t.updateQueue=e,Xo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Rs(n,e),n=n.sibling;return se(Ft,Ft.current&1|2),t.child}e=e.sibling}c.tail!==null&&bt()>Xl&&(t.flags|=128,s=!0,lu(c,!1),t.lanes=4194304)}else{if(!s)if(e=$s(d),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Xo(t,e),lu(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!it)return Lt(t),null}else 2*bt()-c.renderingStartTime>Xl&&n!==536870912&&(t.flags|=128,s=!0,lu(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=Ft.current,se(Ft,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(Ds(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));Ls()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(Ft),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(Ds(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(Ft);break;case 10:wa(t.type);break;case 22:case 23:nr(t),Ef(),e!==null&&fe(ji);break;case 24:wa(Bt)}}function su(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,q=S;try{q()}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 Il(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[qn]=t}catch(c){zt(e,e.return,c)}}function Yl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ra(e.type)||e.tag===4}function uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yl(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 ou(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(ou(e,t,n),e=e.sibling;e!==null;)ou(e,t,n),e=e.sibling}function cu(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[qn]=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=Oh(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,q=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&&++q===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&&su(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&&Il(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&&cu(n);case 26:case 5:si(e,n),t===null&&s&4&&Po(n),s&512&&Il(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),es(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,$n=!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=$n;Ra(n.type)&&(qt=n.stateNode,$n=!1),Tr(e,t,n),_u(n.stateNode),qt=s,$n=c;break;case 5:yt||rr(n,t);case 6:if(s=qt,c=$n,qt=null,Tr(e,t,n),qt=s,$n=c,qt!==null)if($n)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&&($n?(e=qt,cc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Tu(e)):cc(qt,n.stateNode));break;case 4:s=qt,c=$n,qt=n.stateNode.containerInfo,$n=!0,Tr(e,t,n),qt=s,$n=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{Tu(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,$n=!1;break e}break;case 5:qt=S.stateNode,$n=!1;break e;case 3:case 4:qt=S.stateNode.containerInfo,$n=!0;break e}S=S.return}if(qt===null)throw Error(o(160));Am(d,v,c),qt=null,$n=!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),ea(e),s&4&&(li(3,e,e.return),su(3,e),li(5,e,e.return));break;case 1:da(t,e),ea(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),ea(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[As]||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),ea(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),ea(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),ea(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(rs=null,c=Ca,Ca=Xe(t.containerInfo),da(t,e),Ca=c,ea(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Tu(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),ea(e),Ca=s;break;case 12:da(t,e),ea(e);break;case 13:da(t,e),ea(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,q=ir,ne=yt;if(ir=q||c,yt=ne||N,da(t,e),yt=ne,ir=q,ea(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),ea(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),ea(e)}}function ea(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(Yl(s)){n=s;break}s=s.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,d=uu(e);ou(e,d,c);break;case 5:var v=n.stateNode;n.flags&32&&(Vr(v,""),n.flags&=-33);var S=uu(e);ou(e,S,v);break;case 3:case 4:var N=n.stateNode.containerInfo,q=uu(e);Wo(e,q,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:_u(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),su(4,d);break;case 1:if(Rr(c,d,n),s=d,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(q){zt(s,s.return,q)}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(q){zt(s,s.return,q)}}n&&v&64&&mm(d),Il(d,d.return);break;case 27:cu(d);case 26:case 5:Rr(c,d,n),n&&s===null&&v&4&&Po(d),Il(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),Il(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&&Us(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&&Us(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&&su(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&&Us(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):fu(e,t):d._visibility&2?lr(e,t,n,s):(d._visibility|=2,ql(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 ql(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,q=v.flags;switch(v.tag){case 0:case 11:case 15:ql(d,v,S,N,c),su(8,v);break;case 23:break;case 22:var ne=v.stateNode;v.memoizedState!==null?ne._visibility&2?ql(d,v,S,N,c):fu(d,v):(ne._visibility|=2,ql(d,v,S,N,c)),c&&q&2048&&ed(v.alternate,v);break;case 24:ql(d,v,S,N,c),c&&q&2048&&td(v.alternate,v);break;default:ql(d,v,S,N,c)}t=t.sibling}}function fu(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:fu(n,s),c&2048&&ed(s.alternate,s);break;case 24:fu(n,s),c&2048&&td(s.alternate,s);break;default:fu(n,s)}t=t.sibling}}var Nn=8192;function Vl(e){if(e.subtreeFlags&Nn)for(e=e.child;e!==null;)xm(e),e=e.sibling}function xm(e){switch(e.tag){case 26:Vl(e),e.flags&Nn&&e.memoizedState!==null&&iv(Ca,e.memoizedState,e.memoizedProps);break;case 5:Vl(e);break;case 3:case 4:var t=Ca;Ca=Xe(e.stateNode.containerInfo),Vl(e),Ca=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Nn,Nn=16777216,Vl(e),Nn=t):Vl(e));break;default:Vl(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 Ql(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:Ql(e),e.flags&2048&&li(9,e,e.return);break;case 3:Ql(e);break;case 12:Ql(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)):Ql(e);break;default:Ql(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:Us(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=Wt(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,Ot=0,ha=null,ui=!1,Kl=!1,ad=!1,Nr=0,$t=0,oi=0,Wi=0,rd=0,Ta=0,Zl=0,du=null,ta=null,id=!1,ld=0,Xl=1/0,hu=null,ci=null,En=0,fi=null,Pl=null,Jl=0,sd=0,ud=null,Om=null,Wl=0,od=null;function Dn(){if((wt&2)!==0&&ct!==0)return ct&-ct;if(D.T!==null){var e=Dl;return e!==0?e:ic()}return Fd()}function Mm(){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&&(Ot===2||Ot===9)||e.cancelPendingCommit!==null)&&(Fl(e,0),di(e,ct,Ta,!1)),ol(e,n),((wt&2)===0||e!==Ut)&&(e===Ut&&((wt&2)===0&&(Wi|=n),$t===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){Kl&&!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=du;var N=S.current.memoizedState.isDehydrated;if(N&&(Fl(S,v).flags|=256),v=dd(S,v,!1),v!==2){if(ad&&!N){S.errorRecoveryDisabledLanes|=d,Wi|=d,c=4;break e}d=ta,ta=c,d!==null&&(ta===null?ta=d:ta.push.apply(ta,d))}c=v}if(d=!1,c!==2)continue}}if(c===1){Fl(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:ta=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,ta,hu,id,t,Ta,Wi,Zl,ui,d,2,-0,0),c);break e}Tm(s,n,ta,hu,id,t,Ta,Wi,Zl,ui,d,0,-0,0)}}break}while(!0);sr(e)}function Tm(e,t,n,s,c,d,v,S,N,q,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(mu.bind(null,e,t,d,n,s,c,v,S,N,ne,1,X,V)),di(e,d,v,!q);return}mu(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?(vu(0),!1):!0}function cd(){if(tt!==null){if(Ot===0)var e=tt.return;else e=tt,x=$r=null,Eo(e),on=null,Fn=0,e=tt;for(;e!==null;)hm(e.alternate,e),e=e.return;tt=null}}function Fl(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,Ot=0,ha=null,ui=!1,Kl=gr(e,t),ad=!1,Zl=Ta=rd=Wi=oi=$t=0,ta=du=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=Ws,t===jn||t===_o?(t=kh(),Ot=3):t===zh?(t=kh(),Ot=4):Ot=t===sm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ha=t,tt===null&&($t=1,nu(e,Un(t,e.current)))}function Nm(){var e=D.H;return D.H=Ws,e===null?Ws:e}function Dm(){var e=D.A;return D.A=zp,e}function fd(){$t=4,ui||(ct&4194048)!==ct&&fa.current!==null||(Kl=!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)&&(hu=null,Fl(e,t)),t=!1;var v=$t;e:do try{if(Ot!==0&&tt!==null){var S=tt,N=ha;switch(Ot){case 8:cd(),v=6;break e;case 3:case 2:case 9:case 6:fa.current===null&&(t=!0);var q=Ot;if(Ot=0,ha=null,$l(e,S,N,q),n&&Kl){v=0;break e}break;default:q=Ot,Ot=0,ha=null,$l(e,S,N,q)}}kp(),v=$t;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?(hu=null,Xl=bt()+500,Fl(e,t)):Kl=gr(e,t);e:do try{if(Ot!==0&&tt!==null){t=tt;var d=ha;t:switch(Ot){case 1:Ot=0,ha=null,$l(e,t,d,1);break;case 2:case 9:if(Uh(d)){Ot=0,ha=null,Lm(t);break}t=function(){Ot!==2&&Ot!==9||Ut!==e||(Ot=7),sr(e)},d.then(t,t);break e;case 3:Ot=7;break e;case 4:Ot=5;break e;case 7:Uh(d)?(Ot=0,ha=null,Lm(t)):(Ot=0,ha=null,$l(e,t,d,7));break;case 5:var v=null;switch(tt.tag){case 26:v=tt.memoizedState;case 5:case 27:var S=tt;if(!v||hn(v)){Ot=0,ha=null;var N=S.sibling;if(N!==null)tt=N;else{var q=S.return;q!==null?(tt=q,ec(q)):tt=null}break t}}Ot=0,ha=null,$l(e,t,d,5);break;case 6:Ot=0,ha=null,$l(e,t,d,6);break;case 8:cd(),$t=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(),$t)}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=Rs(t,Nr),t=Ko(n,t,Nr)}e.memoizedProps=e.pendingProps,t===null?ec(e):tt=t}function $l(e,t,n,s){x=$r=null,Eo(t),on=null,Fn=0;var c=t.return;try{if(lm(e,c,t,n,ct)){$t=1,nu(e,Un(n,e.current)),tt=null;return}}catch(d){if(c!==null)throw tt=c,d;$t=1,nu(e,Un(n,e.current)),tt=null;return}t.flags&32768?(it||s===1?e=!0:Kl||(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);$t===0&&($t=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);$t=6,tt=null}function mu(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),Pl=t,fi=e,Jl=n,sd=d,ud=c,Om=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=Pl,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=Oh(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 q=N.start,ne=N.end;if(ne===void 0&&(ne=q),"selectionStart"in S)S.selectionStart=q,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 k=df(S,ke),L=df(S,Nt);if(k&&L&&(V.rangeCount!==1||V.anchorNode!==k.node||V.anchorOffset!==k.offset||V.focusNode!==L.node||V.focusOffset!==L.offset)){var Y=ue.createRange();Y.setStart(k.node,k.offset),V.removeAllRanges(),ke>Nt?(V.addRange(Y),V.extend(L.node,L.offset)):(Y.setEnd(L.node,L.offset),V.addRange(Y))}}}}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=Pl,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,Oi();var e=fi,t=Pl,n=Jl,s=Om;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?En=5:(En=0,Pl=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}}(Jl&3)!==0&&tc(),sr(e),c=e.pendingLanes,(n&4194090)!==0&&(c&42)!==0?e===od?Wl++:(Wl=0,od=e):Wl=0,vu(0)}}function Hm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Us(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(Jl),s=D.T,c=Z.p;try{Z.p=32>n?32:n,D.T=null,n=ud,ud=null;var d=fi,v=Jl;if(En=0,Pl=fi=null,Jl=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,vu(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&&(ol(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),ol(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&&($t===4||$t===3&&(ct&62914560)===ct&&300>bt()-ld?(wt&2)===0&&Fl(e,0):rd|=n,Zl===ct&&(Zl=0)),sr(e)}function Ym(e,t){t===0&&(t=Yu()),e=Ni(e,t),e!==null&&(ol(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 Jt(e,t)}var gu=null,hi=null,ac=!1,pu=!1,rc=!1,mi=0;function sr(e){e!==hi&&e.next===null&&(hi===null?gu=hi=e:hi=hi.next=e),pu=!0,ac||(ac=!0,gd())}function vu(e,t){if(!rc&&pu){rc=!0;do for(var n=!1,s=gu;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(){Au()}function Au(){pu=ac=!1;var e=0;mi!==0&&(Xp()&&(e=mi),mi=0);for(var t=bt(),n=null,s=gu;s!==null;){var c=s.next,d=bu(s,t);d===0?(s.next=null,n===null?gu=c:n.next=c,c===null&&(hi=n)):(n=s,(e!==0||(d&3)!==0)&&(pu=!0)),s=c}vu(e)}function bu(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&&(Ot===2||Ot===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=Jt(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),bu(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?Jt(Kt,Ip):Au()})}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:_s(""+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[qn]||null).action),v=s.submitter;v&&(t=(t=v[qn]||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);Ps(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),Ps(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(Mh,"onAnimationIteration"),Ua(ua,"onAnimationStart"),Ua("dblclick","onDoubleClick"),Ua("focusin","onFocus"),Ua("focusout","onBlur"),Ua(mo,"onTransitionRun"),Ua(Op,"onTransitionStart"),Ua(Ml,"onTransitionCancel"),Ua(Os,"onTransitionEnd"),ml("onMouseEnter",["mouseout","mouseover"]),ml("onMouseLeave",["mouseout","mouseover"]),ml("onPointerEnter",["pointerout","pointerover"]),ml("onPointerLeave",["pointerout","pointerover"]),Mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yu));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,q=S.currentTarget;if(S=S.listener,N!==d&&c.isPropagationStopped())break e;d=S,c.currentTarget=q;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,q=S.currentTarget,S=S.listener,N!==d&&c.isPropagationStopped())break e;d=S,c.currentTarget=q;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 na="_reactListening"+Math.random().toString(36).slice(2);function bd(e){if(!e[na]){e[na]=!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[na]||(t[na]=!0,Ad("selectionchange",!1,t))}}function Pm(e,t,n,s){switch(mg(t)){case 2:var c=ov;break;case 8:c=ls;break;default:c=Td}n=c.bind(null,t,n,e),c=void 0,!Ss||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=cl(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 q=d,ne=$c(n),ue=[];e:{var X=Ms.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 Mh: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"),k=ke?X!==null?X+"Capture":null:X;ke=[];for(var L=q,Y;L!==null;){var re=L;if(Y=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||Y===null||k===null||(re=xs(L,k),re!=null&&ke.push(Qe(L,re,Y))),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)&&(cl(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=q,He=He?cl(He):null,He!==null&&(Nt=m(He),ke=He.tag,He!==Nt||ke!==5&&ke!==27&&ke!==6)&&(He=null)):(V=null,He=q),V!==He)){if(ke=Kr,re="onMouseLeave",k="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(ke=vr,re="onPointerLeave",k="onPointerEnter",L="pointer"),Nt=V==null?X:dl(V),Y=He==null?X:dl(He),X=new ke(re,L+"leave",V,n,ne),X.target=Nt,X.relatedTarget=Y,re=null,cl(ne)===q&&(ke=new ke(k,L+"enter",He,n,ne),ke.target=Y,ke.relatedTarget=Nt,re=ke),Nt=re,V&&He)t:{for(ke=V,k=He,L=0,Y=ke;Y;Y=fn(Y))L++;for(Y=0,re=k;re;re=fn(re))Y++;for(;0<L-Y;)ke=fn(ke),L--;for(;0<Y-L;)k=fn(k),Y--;for(;L--;){if(ke===k||k!==null&&ke===k.alternate)break t;ke=fn(ke),k=fn(k)}ke=null}else ke=null;V!==null&&en(ue,X,V,ke,!1),He!==null&&Nt!==null&&en(ue,Nt,He,ke,!0)}}e:{if(X=q?dl(q):window,V=X.nodeName&&X.nodeName.toLowerCase(),V==="select"||V==="input"&&X.type==="file")var Me=yh;else if(uo(X))if(_h)Me=Sp;else{Me=Pr;var $e=Eh}else V=X.nodeName,!V||V.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?q&&Fc(q.elementType)&&(Me=yh):Me=fo;if(Me&&(Me=Me(e,q))){Sl(ue,Me,n,ne);break e}$e&&$e(e,X,q),e==="focusout"&&q&&X.type==="number"&&q.memoizedProps.value!=null&&ys(X,"number",X.value)}switch($e=q?dl(q):window,e){case"focusin":(uo($e)||$e.contentEditable==="true")&&(Ol=$e,Jr=q,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(q,Ge),0<$e.length&&(Ge=new Qn(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(q,"onBeforeInput"),0<Ge.length&&($e=new Qn("onBeforeInput","beforeinput",null,n,ne),ue.push({event:$e,listeners:Ge}),$e.data=De)),Yp(ue,e,q,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=xs(e,n),c!=null&&s.unshift(Qe(e,c,d)),c=xs(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 en(e,t,n,s,c){for(var d=t._reactName,v=[];n!==null&&n!==s;){var S=n,N=S.alternate,q=S.stateNode;if(S=S.tag,N!==null&&N===s)break;S!==5&&S!==26&&S!==27||q===null||(N=q,c?(q=xs(n,d),q!=null&&v.unshift(Qe(n,q,N))):c||(q=xs(n,d),q!=null&&v.push(Qe(n,q,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=_s(""+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=_s(""+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=_s(""+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[qn]||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,q=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":q=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,q,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?pl(e,!!s,t,!1):n!=null&&pl(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<yu.length;s++)nt(yu[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(q in n)if(n.hasOwnProperty(q)&&(s=n[q],s!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Rt(e,t,q,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,q=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":q=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,q,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?pl(e,!!n,X,!1):!!s!=!!n&&(t!=null?pl(e,!!n,t,!0):pl(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(q in s)if(X=s[q],V=n[q],s.hasOwnProperty(q)&&X!==V&&(X!=null||V!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(o(137,t));break;default:Rt(e,t,q,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 k in n)X=n[k],n.hasOwnProperty(k)&&X!=null&&!s.hasOwnProperty(k)&&Rt(e,t,k,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&&_u(v.documentElement),n&2&&_u(v.body),n&4)for(n=v.head,_u(n),v=n.firstChild;v;){var S=v.nextSibling,N=v.nodeName;v[As]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&v.rel.toLowerCase()==="stylesheet"||n.removeChild(v),v=S}}if(c===0){e.removeChild(d),Tu(t);return}c--}else n==="$"||n==="$?"||n==="$!"?c++:s=n.charCodeAt(0)-48;else s=0;n=d}while(n);Tu(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[As])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 es(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 _u(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=fl(e);t!==null&&t.tag===5&&t.type==="form"?Uo(t):or.r(e)}var ts=typeof document>"u"?null:document;function pt(e,t,n){var s=ts;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=ts;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=ns(e);break;case"script":d=as(e)}ga.has(d)||(e=O({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(xu(d))||t==="script"&&s.querySelector(Su(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=ts;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=as(e)}if(!ga.has(d)&&(e=O({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(Su(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=ts;if(s&&e){var c=hl(s).hoistableStyles,d=ns(e);t=t||"default";var v=c.get(d);if(!v){var S={loading:0,preload:null};if(v=s.querySelector(xu(d)))S.loading=5;else{e=O({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(d))&&Eu(e,n);var N=v=s.createElement("link");vn(N),dn(N,"link",e),N._p=new Promise(function(q,ne){N.onload=q,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=ts;if(n&&e){var s=hl(n).hoistableScripts,c=as(e),d=s.get(c);d||(d=n.querySelector(Su(c)),d||(e=O({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=ts;if(n&&e){var s=hl(n).hoistableScripts,c=as(e),d=s.get(c);d||(d=n.querySelector(Su(c)),d||(e=O({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=ns(n.href),n=hl(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=ns(n.href);var d=hl(c).hoistableStyles,v=d.get(e);if(v||(c=c.ownerDocument||c,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,v),(d=c.querySelector(xu(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=as(n),n=hl(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 ns(e){return'href="'+va(e)+'"'}function xu(e){return'link[rel="stylesheet"]['+e+"]"}function sg(e){return O({},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 as(e){return'[src="'+va(e)+'"]'}function Su(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=O({},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=ns(n.href);var d=e.querySelector(xu(c));if(d)return t.state.loading|=4,t.instance=d,vn(d),d;s=sg(n),(c=ga.get(c))&&Eu(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=as(n.src),(c=e.querySelector(Su(d)))?(t.instance=c,vn(c),c):(s=n,(c=ga.get(d))&&(s=O({},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 Eu(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 rs=null;function og(e,t,n){if(rs===null){var s=new Map,c=rs=new Map;c.set(n,s)}else c=rs,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[As]||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=ns(n.href),d=e.querySelector(xu(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=wu.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))&&Eu(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=wu.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 wu(){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,wu.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=wu.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 is={$$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,q,ne,ue){return e=new uv(e,t,n,v,S,N,q,ue),t=1,d===!0&&(t|=24),d=Kn(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 Od(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),js(n,e,t))}function Md(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){Md(e,t),(e=e.alternate)&&Md(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 ls(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=fl(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&&(Xl=bt()+500,vu(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=cl(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pc=e,null}function 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 Mn:return 32;case Ba:return 268435456;default:return 32}default:return 32}}var vc=!1,Br=null,pi=null,vi=null,Ou=new Map,Mu=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":Mu.delete(t.pointerId)}}function Cu(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=fl(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=Cu(Br,e,t,n,s,c),!0;case"dragenter":return pi=Cu(pi,e,t,n,s,c),!0;case"mouseover":return vi=Cu(vi,e,t,n,s,c),!0;case"pointerover":var d=c.pointerId;return Ou.set(d,Cu(Ou.get(d)||null,e,t,n,s,c)),!0;case"gotpointercapture":return d=c.pointerId,Mu.set(d,Cu(Mu.get(d)||null,e,t,n,s,c)),!0}return!1}function pg(e){var t=cl(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,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=fl(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),Mu.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=fl(n);d!==null&&(e.splice(t,3),t-=3,Ps(d,{pending:!0,data:c,method:n.method,action:s},s,c))}}))}function Tu(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),Mu.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[qn]||null;if(typeof d=="function")v||Ag(n);else if(v){var S=null;if(d&&d.hasAttribute("formAction")){if(c=d,v=d[qn]||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();Od(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;Od(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,q=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&&(q=n.formState)),t=fg(e,1,!0,t,n??null,s,c,d,v,S,N,q),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,ol(t,n),sr(t),e[qr]=t.current,bd(e),new _c(t)},Ld.version="19.1.1",Ld}var Z0;function $b(){if(Z0)return Av.exports;Z0=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=Fb(),Av.exports}var ey=$b(),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 ty=Ud.exports,X0;function ny(){return X0||(X0=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,O="__lodash_placeholder__",C=1,H=2,G=4,U=1,Q=2,I=1,ie=2,ce=4,me=8,Ae=16,te=32,de=64,ge=128,F=256,_e=512,ze=30,Ee="...",Be=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",I],["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]",Mt="[object Function]",Jt="[object GeneratorFunction]",At="[object Map]",xn="[object Number]",Oi="[object Null]",bt="[object Object]",sn="[object Promise]",Kt="[object Proxy]",ra="[object RegExp]",Ct="[object Set]",Mn="[object String]",Ba="[object Symbol]",La="[object Undefined]",Dt="[object WeakMap]",mr="[object WeakSet]",nn="[object ArrayBuffer]",gn="[object DataView]",Sn="[object Float32Array]",gs="[object Float64Array]",ps="[object Int8Array]",vs="[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,ol=/[&<>"']/g,up=RegExp(qu.source),Jd=RegExp(ol.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,qn=RegExp(pn.source),qr=/^\s+/,Hc=/\s/,cp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fp=/\{\n\/\* \[wrapped with (.+)\] \*/,$d=/,? & /,As=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gc=/[()=,{}\[\]\/\s]/,cl=/\\(\\)?/g,fl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dl=/\w*$/,hl=/^[-+]0x[0-9a-f]+$/i,vn=/^0b[01]+$/i,eh=/^\[object .+?Constructor\]$/,th=/^0o[0-7]+$/i,Mi=/^(?:0|[1-9]\d*)$/,ml=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qu=/($^)/,nh=/['\n\r\u2028\u2029\\]/g,bs="\\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",gl="\\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=gl+Yc+qc+hp,Kc="['’]",Pu="["+bs+"]",Zc="["+Qc+"]",Ci="["+Wa+"]",ah="\\d+",va="["+Xu+"]",Ju="["+Ic+"]",Xc="[^"+bs+Qc+ah+Xu+Ic+Vc+"]",ys="\\ud83c[\\udffb-\\udfff]",pl="(?:"+Ci+"|"+ys+")",Pc="[^"+bs+"]",Wu="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",vl="["+Vc+"]",Jc="\\u200d",Wc="(?:"+Ju+"|"+Xc+")",Fc="(?:"+vl+"|"+Xc+")",rh="(?:"+Kc+"(?:d|ll|m|re|s|t|ve))?",ih="(?:"+Kc+"(?:D|LL|M|RE|S|T|VE))?",_s=pl+"?",Fu="["+ia+"]?",$c="(?:"+Jc+"(?:"+[Pc,Wu,Vr].join("|")+")"+Fu+_s+")*",Al="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ef=Fu+_s+$c,tf="(?:"+[va,Wu,Vr].join("|")+")"+ef,lh="(?:"+[Pc+Ci+"?",Ci,Wu,Vr,Pu].join("|")+")",xs=RegExp(Kc,"g"),pr=RegExp(Ci,"g"),Ss=RegExp(ys+"(?="+ys+")|"+lh+ef,"g"),Es=RegExp([vl+"?"+Ju+"+"+rh+"(?="+[Zc,vl,"$"].join("|")+")",Fc+"+"+ih+"(?="+[Zc,vl+Wc,"$"].join("|")+")",vl+"?"+Wc+"+"+rh,vl+"+"+ih,bl,Al,ah,tf].join("|"),"g"),Qr=RegExp("["+Jc+bs+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[gs]=Tt[ps]=Tt[vs]=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[Mt]=Tt[At]=Tt[xn]=Tt[bt]=Tt[ra]=Tt[Ct]=Tt[Mn]=Tt[Dt]=!1;var St={};St[xe]=St[pe]=St[nn]=St[gn]=St[je]=St[Ye]=St[Sn]=St[gs]=St[ps]=St[vs]=St[Ja]=St[At]=St[xn]=St[bt]=St[ra]=St[Ct]=St[Mn]=St[Ba]=St[Zt]=St[za]=St[Ir]=St[gr]=!0,St[xt]=St[Mt]=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"},Vn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ti={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},eo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ws=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")(),yl=i&&!i.nodeType&&i,Kr=yl&&!0&&r&&!r.nodeType&&r,oh=Kr&&Kr.exports===yl,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 Qn(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&&_l(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(As)||[]}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 _l(z,ee,W){return ee===ee?Ep(z,ee,W):ro(z,xl,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 xl(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 Sl(z,ee){return z.has(ee)}function El(z,ee){for(var W=-1,we=z.length;++W<we&&_l(ee,z[W],0)>-1;);return W}function wl(z,ee){for(var W=z.length;W--&&_l(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(Vn);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===O)&&(z[W]=O,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)?Oh(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 Oh(z){for(var ee=Ss.lastIndex=0;Ss.test(z);)++ee;return ee}function hf(z){return z.match(Ss)||[]}function wp(z){return z.match(Es)||[]}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,Mh=ee.String,ua=ee.TypeError,mo=W.prototype,Op=ft.prototype,Ml=dt.prototype,Os=ee["__core-js_shared__"],Ms=Op.toString,gt=Ml.hasOwnProperty,Ua=0,mf=(function(){var a=/[^.]+$/.exec(Os&&Os.keys&&Os.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})(),Un=Ml.toString,_a=Ms.call(dt),Cl=an._,gf=ho("^"+Ms.call(gt).replace(pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ri=oh?ee.Buffer:u,ka=ee.Symbol,Tl=ee.Uint8Array,Ni=Ri?Ri.allocUnsafe:u,Cs=Eh(dt.getPrototypeOf,dt),Ts=dt.create,Di=Ml.propertyIsEnumerable,go=mo.splice,Kn=ka?ka.isConcatSpreadable:u,Bi=ka?ka.iterator:u,kn=ka?ka.toStringTag:u,Rs=(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,Rl=rn.ceil,Ar=rn.floor,Wr=dt.getOwnPropertySymbols,vo=Ri?Ri.isBuffer:u,Ns=ee.isFinite,xa=mo.join,Sa=Eh(dt.keys,dt),kt=rn.max,It=rn.min,br=we.now,zi=ee.parseInt,vf=rn.random,Af=mo.reverse,Ds=ii(ee,"DataView"),un=ii(ee,"Map"),Yt=ii(ee,"Promise"),it=ii(ee,"Set"),ja=ii(ee,"WeakMap"),Zn=ii(dt,"create"),Nl=ja&&new ja,Ea={},Ch=Cr(Ds),Th=Cr(un),Bs=Cr(Yt),Ls=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 Xn)return a;if(gt.call(a,"__wrapped__"))return cn(a)}return new Xn(a)}var oa=(function(){function a(){}return function(l){if(!Vt(l))return{};if(Ts)return Ts(l);a.prototype=l;var f=new a;return a.prototype=u,f}})();function wa(){}function Xn(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,Xn.prototype=oa(wa.prototype),Xn.prototype.constructor=Xn;function Fe(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function zs(){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__),T=E.start,B=E.end,j=B-T,le=g?B:T-1,oe=this.__iteratees__,he=oe.length,Oe=0,Ne=It(j,this.__takeCount__);if(!f||!g&&A==j&&Ne==j)return Ph(a,this.__actions__);var qe=[];e:for(;j--&&Oe<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[Oe++]=Ve}return qe}Fe.prototype=oa(wa.prototype),Fe.prototype.constructor=Fe;function Wt(a){var l=-1,f=a==null?0:a.length;for(this.clear();++l<f;){var g=a[l];this.set(g[0],g[1])}}function bo(){this.__data__=Zn?Zn(null):{},this.size=0}function Nh(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}function Mp(a){var l=this.__data__;if(Zn){var f=l[a];return f===_?u:f}return gt.call(l,a)?l[a]:u}function Cp(a){var l=this.__data__;return Zn?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]=Zn&&l===u?_:l,this}Wt.prototype.clear=bo,Wt.prototype.delete=Nh,Wt.prototype.get=Mp,Wt.prototype.has=Cp,Wt.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 Us(a){var l=this.__data__,f=Ll(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 ks(a){var l=this.__data__,f=Ll(l,a);return f<0?u:l[f][1]}function yf(a){return Ll(this.__data__,a)>-1}function Dl(a,l){var f=this.__data__,g=Ll(f,a);return g<0?(++this.size,f.push([a,l])):f[g][1]=l,this}Bt.prototype.clear=bf,Bt.prototype.delete=Us,Bt.prototype.get=ks,Bt.prototype.has=yf,Bt.prototype.set=Dl;function Pn(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 Wt,map:new(un||Bt),string:new Wt}}function Dh(a){var l=Gl(this,a).delete(a);return this.size-=l?1:0,l}function Np(a){return Gl(this,a).get(a)}function Bh(a){return Gl(this,a).has(a)}function ji(a,l){var f=Gl(this,a),g=f.size;return f.set(a,l),this.size+=f.size==g?0:1,this}Pn.prototype.clear=Rp,Pn.prototype.delete=Dh,Pn.prototype.get=Np,Pn.prototype.has=Bh,Pn.prototype.set=ji;function yr(a){var l=-1,f=a==null?0:a.length;for(this.__data__=new Pn;++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 Pn(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&&es(a),T=f||g||A||E,B=T?Zr(a.length,Mh):[],j=B.length;for(var le in a)(l||gt.call(a,le))&&!(T&&(le=="length"||A&&(le=="offset"||le=="parent")||E&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||Ya(le,j)))&&B.push(le);return B}function Bl(a){var l=a.length;return l?a[Do(0,l-1)]:u}function kh(a,l){return cu(on(a),Ga(l,0,a.length))}function jh(a){return cu(on(a))}function er(a,l,f){(f!==u&&!na(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)&&na(g,f))||f===u&&!(l in a))&&Ha(a,l,f)}function Ll(a,l){for(var f=a.length;f--;)if(na(a[f][0],l))return f;return-1}function ei(a,l,f,g){return xr(a,function(A,E,T){l(g,A,f(A),T)}),g}function _r(a,l){return a&&Fn(l,hn(l),a)}function js(a,l){return a&&Fn(l,yn(l),a)}function Ha(a,l,f){l=="__proto__"&&Rs?Rs(a,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):a[l]=f}function Hs(a,l){for(var f=-1,g=l.length,A=W(g),E=a==null;++f<g;)A[f]=E?u:Eu(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 T,B=l&C,j=l&H,le=l&G;if(f&&(T=A?f(a,g,A,E):f(a)),T!==u)return T;if(!Vt(a))return a;var oe=Qe(a);if(oe){if(T=Xf(a),!B)return on(a,T)}else{var he=bn(a),Oe=he==Mt||he==Jt;if(gi(a))return Gf(a,B);if(he==bt||he==xe||Oe&&!A){if(T=j||Oe?{}:Pf(a),!B)return j?Fs(a,js(T,a)):jo(a,_r(T,a))}else{if(!St[he])return A?a:{};T=Jf(a,he,B)}}E||(E=new jn);var Ne=E.get(a);if(Ne)return Ne;E.set(a,T),tg(a)?a.forEach(function(Ve){T.add(Tn(Ve,l,f,Ve,a,E))}):oc(a)&&a.forEach(function(Ve,ut){T.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(T,ut,Tn(Ve,l,f,ut,a,E))}),T}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],T=a[A];if(T===u&&!(A in a)||!E(T))return!1}return!0}function Gi(a,l,f){if(typeof a!="function")throw new ua(p);return Yl(function(){a.apply(u,f)},l)}function ti(a,l,f,g){var A=-1,E=ao,T=!0,B=a.length,j=[],le=l.length;if(!B)return j;f&&(l=Gt(l,la(f))),g?(E=lf,T=!1):l.length>=h&&(E=Sl,T=!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,T&&he===he){for(var Oe=le;Oe--;)if(l[Oe]===he)continue e;j.push(oe)}else E(l,he,g)||j.push(oe)}return j}var xr=Vf(Rn),So=Vf(Ul,!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],T=l(E);if(T!=null&&(B===u?T===T&&!In(T):f(T,B)))var B=T,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,T=a.length;for(f||(f=Or),A||(A=[]);++E<T;){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 zl=Zi(),Ii=Zi(!0);function Rn(a,l){return a&&zl(a,l,hn)}function Ul(a,l){return a&&Ii(a,l,hn)}function ni(a,l){return Fa(l,function(f){return qa(a[f])})}function Oa(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:Oi:kn&&kn in dt(a)?um(a):mm(a)}function Gs(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<kt(l,f)}function Of(a,l,f){for(var g=f?lf:ao,A=a[0].length,E=a.length,T=E,B=W(E),j=1/0,le=[];T--;){var oe=a[T];T&&l&&(oe=Gt(oe,la(l))),j=It(oe.length,j),B[T]=!f&&(l||A>=120&&oe.length>=120)?new yr(T&&oe):u}oe=a[0];var he=-1,Oe=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,!(Oe?Sl(Oe,qe):g(le,qe,f))){for(T=E;--T;){var et=B[T];if(!(et?Sl(et,qe):g(a[T],qe,f)))continue e}Oe&&Oe.push(qe),le.push(Ne)}}return le}function Mf(a,l,f,g){return Rn(a,function(A,E,T){l(g,f(A),E,T)}),g}function Yi(a,l,f){l=Er(l,a),a=Il(a,l);var g=a==null?a:a[yt(Nn(l))];return g==null?u:Qn(g,a,f)}function Eo(a){return Xt(a)&&st(a)==xe}function Jn(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:Is(a,l,f,g,qi,A)}function Is(a,l,f,g,A,E){var T=Qe(a),B=Qe(l),j=T?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,Oe=j==le;if(Oe&&gi(a)){if(!gi(l))return!1;T=!0,oe=!1}if(Oe&&!oe)return E||(E=new jn),T||es(a)?lm(a,l,f,g,A,E):sm(a,l,j,f,g,A,E);if(!(f&U)){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 Oe?(E||(E=new jn),An(a,l,f,g,A,E)):!1}function wo(a){return Xt(a)&&bn(a)==At}function Ys(a,l,f,g){var A=f.length,E=A,T=!g;if(a==null)return!E;for(a=dt(a);A--;){var B=f[A];if(T&&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(T&&B[2]){if(le===u&&!(j in a))return!1}else{var he=new jn;if(g)var Oe=g(le,oe,j,a,l,he);if(!(Oe===u?qi(oe,le,U|Q,g,he):Oe))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 Oo(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 Mo(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,T){g[++f]=l(A,E,T)}),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||Ys(f,a,l)}}function To(a,l){return Ko(a)&&fm(l)?dm(yt(a),l):function(f){var g=Eu(f,a);return g===u&&g===l?rs(f,a):qi(l,g,U|Q)}}function qs(a,l,f,g,A){a!==l&&zl(l,function(E,T){if(A||(A=new jn),Vt(E))Dp(a,l,T,f,qs,g,A);else{var B=g?g(Po(a,T),E,T+"",a,l,A):u;B===u&&(B=E),er(a,T,B)}},yn)}function Dp(a,l,f,g,A,E,T){var B=Po(a,f),j=Po(l,f),le=T.get(j);if(le){er(a,f,le);return}var oe=E?E(B,j,f+"",a,l,T):u,he=oe===u;if(he){var Oe=Qe(j),Ne=!Oe&&gi(j),qe=!Oe&&!Ne&&es(j);oe=j,Oe||Ne||qe?Qe(B)?oe=B:en(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&&(T.set(j,oe),A(oe,j,g,E,T),T.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(T){return Oa(T,E.length===1?E[0]:E)}:E}):l=[V];var g=-1;l=Gt(l,la(Ue()));var A=Nf(a,function(E,T,B){var j=Gt(l,function(le){return le(E)});return{criteria:j,index:++g,value:E}});return Ah(A,function(E,T){return $h(E,T,f)})}function Vh(a,l){return Ro(a,l,function(f,g){return rs(a,g)})}function Ro(a,l,f){for(var g=-1,A=l.length,E={};++g<A;){var T=l[g],B=Oa(a,T);f(B,T)&&jl(E,Er(T,a),B)}return E}function Qh(a){return function(l){return Oa(l,a)}}function No(a,l,f,g){var A=g?of:_l,E=-1,T=l.length,B=a;for(a===l&&(l=on(l)),f&&(B=Gt(a,la(f)));++E<T;)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):Zs(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=kt(Rl((l-a)/(f||1)),0),T=W(E);E--;)T[g?E:++A]=a,a+=f;return T}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 uu(Wf(a,l,V),a+"")}function kl(a){return Bl(ls(a))}function Bo(a,l){var f=ls(a);return cu(f,Ga(l,0,f.length))}function jl(a,l,f,g){if(!Vt(a))return a;l=Er(l,a);for(var A=-1,E=l.length,T=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!=T){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 Vs=Nl?function(a,l){return Nl.set(a,l),a}:V,Qs=Rs?function(a,l){return Rs(a,"toString",{configurable:!0,enumerable:!1,value:q(l),writable:!0})}:V;function Zh(a){return cu(ls(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 Ks(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,T=a[E];T!==null&&!In(T)&&(f?T<=l:T<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 T=l!==l,B=l===null,j=In(l),le=l===u;A<E;){var oe=Ar((A+E)/2),he=f(a[oe]),Oe=he!==u,Ne=he===null,qe=he===he,et=In(he);if(T)var Ve=g||qe;else le?Ve=qe&&(g||Oe):B?Ve=qe&&Oe&&(g||!Ne):j?Ve=qe&&Oe&&!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 T=a[f],B=l?l(T):T;if(!f||!na(B,j)){var j=B;E[A++]=T===0?0:T}}return E}function zo(a){return typeof a=="number"?a:In(a)?w:+a}function Wn(a){if(typeof a=="string")return a;if(Qe(a))return Gt(a,Wn)+"";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,T=!0,B=[],j=B;if(f)T=!1,A=lf;else if(E>=h){var le=l?null:rm(a);if(le)return fo(le);T=!1,A=Sl,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,T&&he===he){for(var Oe=j.length;Oe--;)if(j[Oe]===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 Zs(a,l){return l=Er(l,a),a=Il(a,l),a==null||delete a[yt(Nn(l))]}function jf(a,l,f,g){return jl(a,l,f(Oa(a,l)),g)}function Xs(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 Ps(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 T=a[A],B=-1;++B<g;)B!=A&&(E[A]=ti(E[A]||T,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,T={};++g<A;){var B=g<E?l[g]:u;f(T,a[g],B)}return T}function Uo(a){return en(a)?a:[]}function Js(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 Tl(l).set(new Tl(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,dl.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 Ws(a,l){if(a!==l){var f=a!==u,g=a===null,A=a===a,E=In(a),T=l!==u,B=l===null,j=l===l,le=In(l);if(!B&&!le&&!E&&a>l||E&&T&&j&&!B&&!le||g&&T&&j||!f&&j||!A)return 1;if(!g&&!E&&!le&&a<l||le&&f&&A&&!g&&!E||B&&f&&A||!T&&A||!j)return-1}return 0}function $h(a,l,f){for(var g=-1,A=a.criteria,E=l.criteria,T=A.length,B=f.length;++g<T;){var j=Ws(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,T=f.length,B=-1,j=l.length,le=kt(E-T,0),oe=W(j+le),he=!g;++B<j;)oe[B]=l[B];for(;++A<T;)(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,T=-1,B=f.length,j=-1,le=l.length,oe=kt(E-B,0),he=W(oe+le),Oe=!g;++A<oe;)he[A]=a[A];for(var Ne=A;++j<le;)he[Ne+j]=l[j];for(;++T<B;)(Oe||A<E)&&(he[Ne+f[T]]=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 Fn(a,l,f,g){var A=!f;f||(f={});for(var E=-1,T=l.length;++E<T;){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 Fn(a,ru(a),l)}function Fs(a,l){return Fn(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,T=A>2?f[2]:u;for(E=a.length>3&&typeof E=="function"?(A--,E):u,T&&Gn(f[0],f[1],T)&&(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,T=dt(f);(l?E--:++E<A)&&g(T[E],E,T)!==!1;);return f}}function Zi(a){return function(l,f,g){for(var A=-1,E=dt(l),T=g(l),B=T.length;B--;){var j=T[a?B:++A];if(f(E[j],j,E)===!1)break}return l}}function tm(a,l,f){var g=l&I,A=Ma(a);function E(){var T=this&&this!==an&&this instanceof E?A:a;return T.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(xs,"")),a,"")}}function Ma(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=Ma(a);function A(){for(var E=arguments.length,T=W(E),B=E,j=Pi(A);B--;)T[B]=arguments[B];var le=E<3&&T[0]!==j&&T[E-1]!==j?[]:Pr(T,j);if(E-=le.length,E<f)return Qf(a,l,Ft,A.placeholder,u,T,le,u,u,f-E);var oe=this&&this!==an&&this instanceof A?g:a;return Qn(oe,this,T)}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 T=a(l,f,g);return T>-1?A[E?l[T]:T]:u}}function nr(a){return jt(function(l){var f=l.length,g=f,A=Xn.prototype.thru;for(a&&l.reverse();g--;){var E=l[g];if(typeof E!="function")throw new ua(p);if(A&&!T&&au(E)=="wrapper")var T=new Xn([],!0)}for(g=T?g:f;++g<f;){E=l[g];var B=au(E),j=B=="wrapper"?qo(E):u;j&&Zo(j[0])&&j[1]==(ge|me|te|F)&&!j[4].length&&j[9]==1?T=T[au(j[0])].apply(T,j[3]):T=E.length==1&&Zo(E)?T[B]():T.thru(E)}return function(){var le=arguments,oe=le[0];if(T&&le.length==1&&Qe(oe))return T.plant(oe).value();for(var he=0,Oe=f?l[he].apply(this,le):oe;++he<f;)Oe=l[he].call(this,Oe);return Oe}})}function Ft(a,l,f,g,A,E,T,B,j,le){var oe=l&ge,he=l&I,Oe=l&ie,Ne=l&(me|Ae),qe=l&_e,et=Oe?u:Ma(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,T,Ne)),ut-=Ka,Ne&&ut<le){var mn=Pr(mt,pa);return Qf(a,l,Ft,Ve.placeholder,f,mt,mn,B,j,le-ut)}var Lr=he?f:this,$i=Oe?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||Ma($i)),$i.apply(Lr,mt)}return Ve}function $s(a,l){return function(f,g){return Mf(f,a,l(g),{})}}function Hl(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=Wn(f),g=Wn(g)):(f=zo(f),g=zo(g)),A=a(f,g)}return A}}function eu(a){return jt(function(l){return l=Gt(l,la(Ue())),Pe(function(f){var g=this;return a(l,function(A){return Qn(A,g,f)})})})}function tu(a,l){l=l===u?" ":Wn(l);var f=l.length;if(f<2)return f?Uf(l,a):l;var g=Uf(l,Rl(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&I,E=Ma(a);function T(){for(var B=-1,j=arguments.length,le=-1,oe=g.length,he=W(oe+j),Oe=this&&this!==an&&this instanceof T?E:a;++le<oe;)he[le]=g[le];for(;j--;)he[le++]=arguments[++B];return Qn(Oe,A?f:this,he)}return T}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,T,B,j,le){var oe=l&me,he=oe?T:u,Oe=oe?u:T,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,Oe,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&&Ns(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)}:Me;function nu(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,T,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),T=T===u?T:kt(Xe(T),0),B=B===u?B:Xe(B),le-=A?A.length:0,l&de){var oe=g,he=A;g=A=u}var Oe=j?u:qo(a),Ne=[a,l,f,g,A,oe,he,E,T,B];if(Oe&&su(Ne,Oe),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:kt(Ne[9]-le,0),!B&&l&(me|Ae)&&(l&=-25),!l||l==I)var qe=tm(a,l,f);else l==me||l==Ae?qe=nm(a,l,B):(l==te||l==(I|te))&&!A.length?qe=am(a,l,f,g):qe=Ft.apply(u,Ne);var et=Oe?Vs:Jo;return Wo(et(qe,Ne),a,l)}function Go(a,l,f,g){return a===u||na(a,Ml[f])&&!gt.call(g,f)?l:a}function Kf(a,l,f,g,A,E){return Vt(a)&&Vt(l)&&(E.set(l,a),qs(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 T=f&U,B=a.length,j=l.length;if(B!=j&&!(T&&j>B))return!1;var le=E.get(a),oe=E.get(l);if(le&&oe)return le==l&&oe==a;var he=-1,Oe=!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=T?g(et,qe,he,l,a,E):g(qe,et,he,a,l,E);if(Ve!==u){if(Ve)continue;Oe=!1;break}if(Ne){if(!uf(l,function(ut,mt){if(!Sl(Ne,mt)&&(qe===ut||A(qe,ut,f,g,E)))return Ne.push(mt)})){Oe=!1;break}}else if(!(qe===et||A(qe,et,f,g,E))){Oe=!1;break}}return E.delete(a),E.delete(l),Oe}function sm(a,l,f,g,A,E,T){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 Tl(a),new Tl(l)));case je:case Ye:case xn:return na(+a,+l);case xt:return a.name==l.name&&a.message==l.message;case ra:case Mn:return a==l+"";case At:var B=co;case Ct:var j=g&U;if(B||(B=fo),a.size!=l.size&&!j)return!1;var le=T.get(a);if(le)return le==l;g|=Q,T.set(a,l);var oe=lm(B(a),B(l),g,A,E,T);return T.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 T=f&U,B=Io(a),j=B.length,le=Io(l),oe=le.length;if(j!=oe&&!T)return!1;for(var he=j;he--;){var Oe=B[he];if(!(T?Oe in l:gt.call(l,Oe)))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=T;++he<j;){Oe=B[he];var ut=a[Oe],mt=l[Oe];if(g)var Qa=T?g(mt,ut,Oe,l,a,E):g(ut,mt,Oe,a,l,E);if(!(Qa===u?ut===mt||A(ut,mt,f,g,E):Qa)){et=!1;break}Ve||(Ve=Oe=="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 jt(a){return uu(Wf(a,u,ea),a+"")}function Io(a){return Gh(a,hn,ru)}function Yo(a){return Gh(a,yn,Qo)}var qo=Nl?function(a){return Nl.get(a)}:Me;function au(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 Gl(a,l){var f=a.__data__;return Mr(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 ru=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,ru(a)),a=Cs(a);return l}:gv,bn=st;(Ds&&bn(new Ds(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 Bs:return sn;case Ls: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],T=E.size;switch(E.type){case"drop":a+=T;break;case"dropRight":l-=T;break;case"take":l=It(l,a+T);break;case"takeRight":a=kt(a,l-T);break}}return{start:a,end:l}}function Zf(a){var l=a.match(fp);return l?l[1].split($d):[]}function iu(a,l,f){l=Er(l,a);for(var g=-1,A=l.length,E=!1;++g<A;){var T=yt(l[g]);if(!(E=a!=null&&f(a,T)))break;a=a[T]}return E||++g!=A?E:(A=a==null?0:a.length,!!A&&Fi(A)&&Ya(T,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(Cs(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 gs:case ps:case vs:case Ja:case Zt:case za:case Ir:case gr:return Yf(a,f);case At:return new g;case xn:case Mn: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 Or(a){return Qe(a)||Dr(a)||!!(Kn&&a&&a[Kn])}function Ya(a,l){var f=typeof a;return l=l??J,!!l&&(f=="number"||f!="symbol"&&Mi.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)?na(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 Mr(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}function Zo(a){var l=au(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 lu=Os?qa:pv;function Lt(a){var l=a&&a.constructor,f=typeof l=="function"&&l.prototype||Ml;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=Au(a,function(g){return f.size===y&&f.clear(),g}),f=l.cache;return l}function su(a,l){var f=a[1],g=l[1],A=f|g,E=A<(I|ie|ge),T=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||T))return a;g&I&&(a[2]=l[2],A|=f&I?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],O):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],O):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=kt(l===u?a.length-1:l,0),function(){for(var g=arguments,A=-1,E=kt(g.length-l,0),T=W(E);++A<E;)T[A]=g[l+A];A=-1;for(var B=W(l+1);++A<l;)B[A]=g[A];return B[l]=f(T),Qn(a,this,B)}}function Il(a,l){return l.length<2?a:Oa(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=ou(Vs),Yl=pf||function(a,l){return an.setTimeout(a,l)},uu=ou(Qs);function Wo(a,l,f){var g=l+"";return uu(a,cm(g,gm(Zf(g),f)))}function ou(a){var l=0,f=0;return function(){var g=br(),A=Ke-(g-f);if(f=g,A>0){if(++l>=Be)return arguments[0]}else l=0;return a.apply(u,arguments)}}function cu(a,l){var f=-1,g=a.length,A=g-1;for(l=l===u?g:l;++f<l;){var E=Do(f,A),T=a[E];a[E]=a[f],a[f]=T}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(cl,"$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 Ms.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 Xn(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=kt(Xe(l),0);var g=a==null?0:a.length;if(!g||l<1)return[];for(var A=0,E=0,T=W(Rl(g/l));A<g;)T[E++]=ca(a,A,A+=l);return T}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 en(a)?ti(a,lt(l,1,en,!0)):[]}),$n=Pe(function(a,l){var f=Nn(l);return en(f)&&(f=u),en(a)?ti(a,lt(l,1,en,!0),Ue(f,2)):[]}),Tr=Pe(function(a,l){var f=Nn(l);return en(f)&&(f=u),en(a)?ti(a,lt(l,1,en,!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?Xs(a,Ue(l,3),!0,!0):[]}function Ff(a,l){return a&&a.length?Xs(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=kt(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?kt(g+A,0):It(A,g-1)),ro(a,Ue(l,3),A,!0)}function ea(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=kt(g+A,0)),_l(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]?Of(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]?Of(f,Ue(l,2)):[]}),ql=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]?Of(f,u,l):[]});function fu(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 Vl(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?kt(g+A,0):It(A,g-1)),l===l?sa(a,l,A):ro(a,xl,A,!0)}function xm(a,l){return a&&a.length?Bf(a,Xe(l)):u}var Sm=Pe(Ql);function Ql(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=jt(function(a,l){var f=a==null?0:a.length,g=Hs(a,l);return zf(a,Gt(l,function(A){return Ya(A,f)?+A:A}).sort(Ws)),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 T=a[g];l(T,g,a)&&(f.push(T),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 Ks(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=Ks(a,l);if(g<f&&na(a[g],l))return g}return-1}function Ot(a,l){return Ks(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=Ks(a,l,!0)-1;if(na(a[g],l))return g}return-1}function Kl(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 $t(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?Xs(a,Ue(l,3),!1,!0):[]}function rd(a,l){return a&&a.length?Xs(a,Ue(l,3)):[]}var Ta=Pe(function(a){return Sr(lt(a,1,en,!0))}),Zl=Pe(function(a){var l=Nn(a);return en(l)&&(l=u),Sr(lt(a,1,en,!0),Ue(l,2))}),du=Pe(function(a){var l=Nn(a);return l=typeof l=="function"?l:u,Sr(lt(a,1,en,!0),u,l)});function ta(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 Xl(a){if(!(a&&a.length))return[];var l=0;return a=Fa(a,function(f){if(en(f))return l=kt(f.length,l),!0}),Zr(l,function(f){return Gt(a,io(f))})}function hu(a,l){if(!(a&&a.length))return[];var f=Xl(a);return l==null?f:Gt(f,function(g){return Qn(l,u,g)})}var ci=Pe(function(a,l){return en(a)?ti(a,l):[]}),En=Pe(function(a){return Ps(Fa(a,en))}),fi=Pe(function(a){var l=Nn(a);return en(l)&&(l=u),Ps(Fa(a,en),Ue(l,2))}),Pl=Pe(function(a){var l=Nn(a);return l=typeof l=="function"?l:u,Ps(Fa(a,en),u,l)}),Jl=Pe(Xl);function sd(a,l){return Hf(a||[],l||[],Hi)}function ud(a,l){return Hf(a||[],l||[],jl)}var Om=Pe(function(a){var l=a.length,f=l>1?a[l-1]:u;return f=typeof f=="function"?(a.pop(),f):u,hu(a,f)});function Wl(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 Mm=jt(function(a){var l=a.length,f=l?a[0]:0,g=this.__wrapped__,A=function(E){return Hs(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 Xn(g,this.__chain__).thru(function(E){return l&&!E.length&&E.push(u),E}))});function ma(){return Wl(this)}function Cm(){return new Xn(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 Xn(l,this.__chain__)}return this.thru(nd)}function cd(){return Ph(this.__wrapped__,this.__actions__)}var Fl=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(mu(a,l),1)}function kp(a,l){return lt(mu(a,l),Z)}function jp(a,l,f){return f=f===u?1:Xe(f),lt(mu(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 $l(a,l,f,g){a=fn(a)?a:ls(a),f=f&&!g?Xe(f):0;var A=a.length;return f<0&&(f=kt(A+f,0)),fc(a)?f<=A&&a.indexOf(l,f)>-1:!!A&&_l(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(T){E[++g]=A?Qn(l,T,f):Yi(T,l,f)}),E}),zm=Qi(function(a,l,f){Ha(a,f,l)});function mu(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,bu(Ue(l,3)))}function Gm(a){var l=Qe(a)?Bl:kl;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:Mo(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 gu(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=I;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=I|ie;if(f.length){var A=Pr(f,Pi(ac));g|=te}return ar(l,g,a,f,A)});function pu(a,l,f){l=f?u:l;var g=ar(a,me,u,u,u,u,u,l);return g.placeholder=pu.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,T,B,j,le=0,oe=!1,he=!1,Oe=!0;if(typeof a!="function")throw new ua(p);l=Na(l)||0,Vt(f)&&(oe=!!f.leading,he="maxWait"in f,E=he?kt(Na(f.maxWait)||0,l):E,Oe="trailing"in f?!!f.trailing:Oe);function Ne(mn){var Lr=g,$i=A;return g=A=u,le=mn,T=a.apply($i,Lr),T}function qe(mn){return le=mn,B=Yl(ut,l),oe?Ne(mn):T}function et(mn){var Lr=mn-j,$i=mn-le,k0=l-Lr;return he?It(k0,E-$i):k0}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=Yl(ut,et(mn))}function mt(mn){return B=u,Oe&&g?Ne(mn):(g=A=u,T)}function Qa(){B!==u&&Wh(B),le=0,g=j=A=B=u}function pa(){return B===u?T: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=Yl(ut,l),Ne(j)}return B===u&&(B=Yl(ut,l)),T}return Ka.cancel=Qa,Ka.flush=pa,Ka}var sr=Pe(function(a,l){return Gi(a,1,l)}),vu=Pe(function(a,l,f){return Gi(a,Na(l)||0,f)});function Ip(a){return ar(a,_e)}function Au(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 T=a.apply(this,g);return f.cache=E.set(A,T)||E,T};return f.cache=new(Au.Cache||Pn),f}Au.Cache=Pn;function bu(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 gu(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 Qn(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=jt(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:kt(Xe(l),0),Pe(function(f){var g=f[l],A=ai(f,0,l);return g&&vr(A,g),Qn(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(Js(l),a)}function Vp(){if(!arguments.length)return[];var a=arguments[0];return Qe(a)?a:[a]}function yu(a){return Tn(a,G)}function Qp(a,l){return l=typeof l=="function"?l:u,Tn(a,G,l)}function Xm(a){return Tn(a,C|G)}function nt(a,l){return l=typeof l=="function"?l:u,Tn(a,C|G,l)}function Ad(a,l){return l==null||Sf(a,l,hn(l))}function na(a,l){return a===l||a!==a&&l!==l}var bd=Xi(Gs),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):Jn;function fn(a){return a!=null&&Fi(a.length)&&!qa(a)}function en(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)||es(a)||Dr(a)))return!a.length;var l=bn(a);if(l==At||l==Ct)return!a.size;if(Lt(a))return!Mo(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"&&Ns(a)}function qa(a){if(!Vt(a))return!1;var l=st(a);return l==Mt||l==Jt||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||Ys(a,l,Vo(l))}function Xp(a,l,f){return f=typeof f=="function"?f:u,Ys(a,l,Vo(l),f)}function Fm(a){return eg(a)&&a!=+a}function Pp(a){if(lu(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=Cs(a);if(l===null)return!0;var f=gt.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Ms.call(f)==_a}var cc=dh?la(dh):Oo;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)==Mn}function In(a){return typeof a=="symbol"||Xt(a)&&st(a)==Ba}var es=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),_u=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:ls;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):hl.test(a)?w:+a}function rg(a){return Fn(a,yn(a))}function ts(a){return a?Ga(Xe(a),-J,J):a===0?a:0}function pt(a){return a==null?"":Wn(a)}var Wp=Ki(function(a,l){if(Lt(l)||fn(l)){Fn(l,hn(l),a);return}for(var f in l)gt.call(l,f)&&Hi(a,f,l[f])}),ig=Ki(function(a,l){Fn(l,yn(l),a)}),dc=Ki(function(a,l,f,g){Fn(l,yn(l),a,g)}),Fp=Ki(function(a,l,f,g){Fn(l,hn(l),a,g)}),$p=jt(Hs);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],T=yn(E),B=-1,j=T.length;++B<j;){var le=T[B],oe=a[le];(oe===u||na(oe,Ml[le])&&!gt.call(a,le))&&(a[le]=E[le])}return a}),lg=Pe(function(a){return a.push(u,Kf),Qn(wu,u,a)});function ns(a,l){return ph(a,Ue(l,3),Rn)}function xu(a,l){return ph(a,Ue(l,3),Ul)}function sg(a,l){return a==null?a:zl(a,Ue(l,3),yn)}function nv(a,l){return a==null?a:Ii(a,Ue(l,3),yn)}function as(a,l){return a&&Rn(a,Ue(l,3))}function Su(a,l){return a&&Ul(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 Eu(a,l,f){var g=a==null?u:Oa(a,l);return g===u?f:g}function Ed(a,l){return a!=null&&iu(a,l,wf)}function rs(a,l){return a!=null&&iu(a,l,Ih)}var og=$s(function(a,l,f){l!=null&&typeof l.toString!="function"&&(l=Un.call(l)),a[l]=f},q(V)),cg=$s(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):Mo(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){qs(a,l,f)}),wu=Ki(function(a,l,f,g){qs(a,l,f,g)}),mc=jt(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}),Fn(a,Yo(a),f),g&&(f=Tn(f,C|H|G,im));for(var A=l.length;A--;)Zs(f,l[A]);return f});function wd(a,l){return is(a,bu(Ue(l)))}var sv=jt(function(a,l){return a==null?{}:Vh(a,l)});function is(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:jl(a,l,f)}function dg(a,l,f,g){return g=typeof g=="function"?g:u,a==null?a:jl(a,l,f,g)}var Od=nu(hn),Md=nu(yn);function Cd(a,l,f){var g=Qe(a),A=g||gi(a)||es(a);if(l=Ue(l,4),f==null){var E=a&&a.constructor;A?f=g?new E:[]:Vt(a)?f=qa(E)?oa(Cs(a)):{}:f={}}return(A?ba:Rn)(a,function(T,B,j){return l(f,T,B,j)}),f}function hg(a,l){return a==null?!0:Zs(a,l)}function gc(a,l,f){return a==null?a:jf(a,l,Js(f))}function ov(a,l,f,g){return g=typeof g=="function"?g:u,a==null?a:jf(a,l,Js(f),g)}function ls(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+ws("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(ml,oo).replace(pr,"")}function pi(a,l,f){a=pt(a),l=Wn(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(ol,yh):a}function Ou(a){return a=pt(a),a&&qn.test(a)?a.replace(pn,"\\$&"):a}var Mu=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 tu(Ar(A),f)+a+tu(Rl(A),f)}function Cu(a,l,f){a=pt(a),l=Xe(l);var g=l?$a(a):0;return l&&g<l?a+tu(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?tu(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=Wn(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=Wn(l),a.slice(f,f+l.length)==l}function Tu(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),T=uo(A,E),B,j,le=0,oe=l.interpolate||Qu,he="__p += '",Oe=ho((l.escape||Qu).source+"|"+oe.source+"|"+(oe===Vu?fl:Qu).source+"|"+(l.evaluate||Qu).source+"|$","g"),Ne="//# sourceURL="+(gt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sh+"]")+`
`;a.replace(Oe,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,T)});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=Wn(l)))return a;var g=ya(a),A=ya(l),E=El(g,A),T=wl(g,A)+1;return ai(g,E,T).join("")}function hv(a,l,f){if(a=pt(a),a&&(f||l===u))return a.slice(0,df(a)+1);if(!a||!(l=Wn(l)))return a;var g=ya(a),A=wl(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=Wn(l)))return a;var g=ya(a),A=El(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?Wn(l.omission):g}a=pt(a);var E=a.length;if(Xr(a)){var T=ya(a);E=T.length}if(f>=E)return a;var B=f-$a(g);if(B<1)return g;var j=T?ai(T,0,B).join(""):a.slice(0,B);if(A===u)return j+g;if(T&&(B+=j.length-B),cc(A)){if(a.slice(B).search(A)){var le,oe=j;for(A.global||(A=ho(A.source,pt(dl.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(Wn(A),B)!=B){var Oe=j.lastIndexOf(A);Oe>-1&&(j=j.slice(0,Oe))}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 Qn(a,u,l)}catch(f){return dn(f)?f:new Ie(f)}}),v=jt(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(Qn(E[0],this,g))return Qn(E[1],this,g)}})}function N(a){return Hh(Tn(a,C))}function q(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 k=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 Y(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,T=qa(a);return ba(A,function(B){var j=l[B];a[B]=j,T&&(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._=Cl),this}function Me(){}function $e(a){return a=Xe(a),Pe(function(l){return Bf(l,a)})}var De=eu(Gt),Ge=eu(gh),_n=eu(uf);function ht(a){return Ko(a)?io(yt(a)):Qh(a)}function bi(a){return function(l){return a==null?u:Oa(a,l)}}var mv=ri(),Eb=ri(!0);function gv(){return[]}function pv(){return!1}function wb(){return{}}function Ob(){return""}function Mb(){return!0}function Cb(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 Tb(a){return Qe(a)?Gt(a,yt):In(a)?[a]:on(ir(pt(a)))}function Rb(a){var l=++Ua;return pt(a)+l}var Nb=Hl(function(a,l){return a+l},0),Db=Ho("ceil"),Bb=Hl(function(a,l){return a/l},1),Lb=Ho("floor");function zb(a){return a&&a.length?Ia(a,V,Gs):u}function Ub(a,l){return a&&a.length?Ia(a,Ue(l,2),Gs):u}function kb(a){return vh(a,V)}function jb(a,l){return vh(a,Ue(l,2))}function Hb(a){return a&&a.length?Ia(a,V,Co):u}function Gb(a,l){return a&&a.length?Ia(a,Ue(l,2),Co):u}var Ib=Hl(function(a,l){return a*l},1),Yb=Ho("round"),qb=Hl(function(a,l){return a-l},0);function Vb(a){return a&&a.length?so(a,V):0}function Qb(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=gu,x.bind=hi,x.bindAll=v,x.bindKey=ac,x.castArray=Vp,x.chain=Wl,x.chunk=Bp,x.compact=pm,x.concat=vm,x.cond=S,x.conforms=N,x.constant=q,x.countBy=Fl,x.create=ev,x.curry=pu,x.curryRight=rc,x.debounce=mi,x.defaults=tv,x.defaultsDeep=lg,x.defer=sr,x.delay=vu,x.difference=qt,x.differenceBy=$n,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=ea,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=ql,x.invert=og,x.invertBy=cg,x.invokeMap=ec,x.iteratee=He,x.keyBy=zm,x.keys=hn,x.keysIn=yn,x.map=mu,x.mapKeys=rv,x.mapValues=iv,x.matches=ke,x.matchesProperty=Nt,x.memoize=Au,x.merge=lv,x.mergeWith=wu,x.method=k,x.methodOf=L,x.mixin=Y,x.negate=bu,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=is,x.property=ht,x.propertyOf=bi,x.pull=Sm,x.pullAll=Ql,x.pullAllBy=Em,x.pullAllWith=Fo,x.pullAt=wm,x.range=mv,x.rangeRight=Eb,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=Kl,x.sortedUniqBy=ad,x.split=bc,x.spread=Yp,x.tail=Nr,x.take=$t,x.takeRight=oi,x.takeRightWhile=Wi,x.takeWhile=rd,x.tap=od,x.throttle=pd,x.thru=Dn,x.toArray=ga,x.toPairs=Od,x.toPairsIn=Md,x.toPath=Tb,x.toPlainObject=rg,x.transform=Cd,x.unary=vd,x.union=Ta,x.unionBy=Zl,x.unionWith=du,x.uniq=ta,x.uniqBy=id,x.uniqWith=ld,x.unset=hg,x.unzip=Xl,x.unzipWith=hu,x.update=gc,x.updateWith=ov,x.values=ls,x.valuesIn=Td,x.without=ci,x.words=c,x.wrap=qp,x.xor=En,x.xorBy=fi,x.xorWith=Pl,x.zip=Jl,x.zipObject=sd,x.zipObjectDeep=ud,x.zipWith=Om,x.entries=Od,x.entriesIn=Md,x.extend=ig,x.extendWith=dc,Y(x,x),x.add=Nb,x.attempt=d,x.camelCase=mg,x.capitalize=vc,x.ceil=Db,x.clamp=Rd,x.clone=yu,x.cloneDeep=Xm,x.cloneDeepWith=nt,x.cloneWith=Qp,x.conformsTo=Ad,x.deburr=Br,x.defaultTo=ne,x.divide=Bb,x.endsWith=pi,x.eq=na,x.escape=vi,x.escapeRegExp=Ou,x.every=Rm,x.find=Dm,x.findIndex=Ca,x.findKey=ns,x.findLast=fd,x.findLastIndex=$f,x.findLastKey=xu,x.floor=Lb,x.forEach=Bm,x.forEachRight=hd,x.forIn=sg,x.forInRight=nv,x.forOwn=as,x.forOwnRight=Su,x.get=Eu,x.gt=bd,x.gte=Pm,x.has=Ed,x.hasIn=rs,x.head=Rr,x.identity=V,x.includes=$l,x.indexOf=ed,x.inRange=pc,x.invoke=av,x.isArguments=Dr,x.isArray=Qe,x.isArrayBuffer=lc,x.isArrayLike=fn,x.isArrayLikeObject=en,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=es,x.isUndefined=Va,x.isWeakMap=Sd,x.isWeakSet=ng,x.join=fu,x.kebabCase=Mu,x.last=Nn,x.lastIndexOf=Vl,x.lowerCase=Ai,x.lowerFirst=cv,x.lt=ag,x.lte=_u,x.max=zb,x.maxBy=Ub,x.mean=kb,x.meanBy=jb,x.min=Hb,x.minBy=Gb,x.stubArray=gv,x.stubFalse=pv,x.stubObject=wb,x.stubString=Ob,x.stubTrue=Mb,x.multiply=Ib,x.nth=xm,x.noConflict=re,x.noop=Me,x.now=nc,x.pad=gg,x.padEnd=Cu,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=Yb,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=Ot,x.sortedLastIndexBy=ha,x.sortedLastIndexOf=ui,x.startCase=yc,x.startsWith=Ag,x.subtract=qb,x.sum=Vb,x.sumBy=Qb,x.template=Tu,x.times=Cb,x.toFinite=ur,x.toInteger=Xe,x.toLength=or,x.toLower=Dd,x.toNumber=Na,x.toSafeInteger=ts,x.toString=pt,x.toUpper=_c,x.trim=bg,x.trimEnd=hv,x.trimStart=xc,x.truncate=e,x.unescape=t,x.uniqueId=Rb,x.upperCase=n,x.upperFirst=s,x.each=Bm,x.eachRight=hd,x.first=Rr,Y(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:kt(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(bu(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 T=this.__wrapped__,B=g?[1]:arguments,j=T instanceof Fe,le=B[0],oe=j||Qe(T),he=function(ut){var mt=A.apply(x,vr([ut],B));return g&&Oe?mt[0]:mt};oe&&f&&typeof le=="function"&&le.length!=1&&(j=oe=!1);var Oe=this.__chain__,Ne=!!this.__actions__.length,qe=E&&!Oe,et=j&&!Ne;if(!E&&oe){T=et?T:new Fe(this);var Ve=a.apply(T,B);return Ve.__actions__.push({func:Dn,args:[he],thisArg:u}),new Xn(Ve,Oe)}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(T){return l.apply(Qe(T)?T:[],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[Ft(u,ie).name]=[{name:"wrapper",func:u}],Fe.prototype.clone=zs,Fe.prototype.reverse=Ao,Fe.prototype.value=ki,x.prototype.at=Mm,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,yl._=Jr):an._=Jr}).call(ty)})(Ud,Ud.exports)),Ud.exports}var Lv=ny();const P0=A0(Lv),Pt={auth:r=>Ht.call("auth",r,[]),channelClose:r=>Ht.call("channelClose",r,[]),channelDeleteMessage:r=>Ht.call("channelDeleteMessage",r,[]),channelDocumentUpload:r=>Ht.callFormData("channelDocumentUpload",r),channelInfo:(r,i)=>Ht.call("channelInfo",r,i),channelList:(r,i)=>Ht.call("channelList",r,i),channelListLastMaxUpdated:()=>Ht.call("channelListLastMaxUpdated",{},[]),channelMessages:(r,i)=>Ht.call("channelMessages",r,i),channelMessagesLastMaxUpdated:r=>Ht.call("channelMessagesLastMaxUpdated",r,[]),channelReaction:r=>Ht.call("channelReaction",r,[]),channelSendMessage:(r,i)=>Ht.call("channelSendMessage",r,i),channelVoiceUpload:r=>Ht.callFormData("channelVoiceUpload",r),fastAnswers:()=>Ht.call("fastAnswers",{},[]),joinChannel:r=>Ht.call("joinChannel",r,[]),joinChannelLastMaxUpdated:()=>Ht.call("joinChannelLastMaxUpdated",{},[]),joinChannelList:(r,i)=>Ht.call("joinChannelList",r,i),mFastAnswers:r=>Ht.call("mFastAnswers",r,[]),mode:()=>Ht.call("mode",{},[]),pinnedMessage:r=>Ht.call("pinnedMessage",r,[]),profileID:()=>Ht.call("profileID",{},[])},ay=Pt.mFastAnswers,J0=()=>"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)}),ry=(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 Ht{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?J0():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?J0():void 0;let p=o??this.defaultExtensions;const b=await this.getTokenAsync(),_={method:i,extensions:p,context:m,token:b,params:u?m?ry(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,O=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(O),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(O),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 Mg={exports:{}},Cg={exports:{}},iy=Cg.exports,W0;function I1(){return W0||(W0=1,(function(r,i){(function(u,o){r.exports=o()})(iy,(function(){var u=1e3,o=6e4,h=36e5,m="millisecond",p="second",b="minute",_="hour",y="day",O="week",C="month",H="quarter",G="year",U="date",Q="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ie=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ce={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(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:G,w:O,d:y,D:U,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 Be||!(!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 Be(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 Be=(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(I);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 G:return ve?K(1,0):K(31,11);case C:return ve?K(1,be):K(0,be+1);case O: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 U: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[U]=w+"Date",J[C]=w+"Month",J[G]=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===G){var se=this.clone().set(U,1);se.$d[K](fe),se.init(),this.$d=se.set(U,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===G)return this.set(G,this.$y+D);if(w===y)return K(1);if(w===O)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,Mt,Jt){return rt&&(rt[xt]||rt(Z,ve))||Mt[xt].slice(0,Jt)},je=function(rt){return Ee.s(K%12||12,rt,"0")},Ye=pe||function(rt,xt,Mt){var Jt=rt<12?"AM":"PM";return Mt?Jt.toLowerCase():Jt};return ve.replace(ie,(function(rt,xt){return xt||(function(Mt){switch(Mt){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 G:ve=xe()/12;break;case C:ve=xe();break;case H:ve=xe()/3;break;case O: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=Be.prototype;return ze.prototype=Ke,[["$ms",m],["$s",p],["$m",b],["$H",_],["$W",y],["$M",C],["$y",G],["$D",U]].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,Be,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 ly=Mg.exports,F0;function sy(){return F0||(F0=1,(function(r,i){(function(u,o){r.exports=o(I1())})(ly,(function(u){function o(U){return U&&typeof U=="object"&&"default"in U?U:{default:U}}var h=o(u),m="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),p="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),b="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),_="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),y=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function O(U,Q,I){var ie,ce;return I==="m"?Q?"минута":"минуту":U+" "+(ie=+U,ce={mm:Q?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[I].split("_"),ie%10==1&&ie%100!=11?ce[0]:ie%10>=2&&ie%10<=4&&(ie%100<10||ie%100>=20)?ce[1]:ce[2])}var C=function(U,Q){return y.test(Q)?m[U.month()]:p[U.month()]};C.s=p,C.f=m;var H=function(U,Q){return y.test(Q)?b[U.month()]:_[U.month()]};H.s=_,H.f=b;var G={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:O,mm:O,h:"час",hh:O,d:"день",dd:O,M:"месяц",MM:O,y:"год",yy:O},ordinal:function(U){return U},meridiem:function(U){return U<4?"ночи":U<12?"утра":U<17?"дня":"вечера"}};return h.default.locale(G,null,!0),G}))})(Mg)),Mg.exports}sy();var $=Pg();const P=A0($);var uy=I1();const sl=A0(uy),Lc=P.createContext({theme:"material",dark:!0,materialTouchRipple:!0,iosHoverHighlight:!0});function oy(r,i){return typeof window>"u"?$.useEffect(r,i):$.useLayoutEffect(r,i)}const Y1=(r,i=!0)=>{const[u,o]=$.useState(r);return oy(()=>{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},cy=r=>{const{theme:i,dark:u,materialTouchRipple:o=!0,iosHoverHighlight:h=!0,autoThemeDetection:m=!0,children:p}=r,b=Y1(i,m);return P.createElement(Lc.Provider,{value:{theme:b,dark:u,materialTouchRipple:o,iosHoverHighlight:h}},p)},fy=(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},dy=(r,i)=>({classGroupId:r,validator:i}),q1=(r=new Map,i=null,u)=>({nextPart:r,validators:i,classGroupId:u}),Dg="-",$0=[],hy="arbitrary..",my=r=>{const i=py(r),{conflictingClassGroups:u,conflictingClassGroupModifiers:o}=r;return{getClassGroupId:p=>{if(p.startsWith("[")&&p.endsWith("]"))return gy(p);const b=p.split(Dg),_=b[0]===""&&b.length>1?1:0;return V1(b,_,i)},getConflictingClassGroupIds:(p,b)=>{if(b){const _=o[p],y=u[p];return _?y?fy(y,_):_:y||$0}return u[p]||$0}}},V1=(r,i,u)=>{if(r.length-i===0)return u.classGroupId;const h=r[i],m=u.nextPart.get(h);if(m){const y=V1(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 O=p[y];if(O.validator(b))return O.classGroupId}},gy=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?hy+o:void 0})(),py=r=>{const{theme:i,classGroups:u}=r;return vy(u,i)},vy=(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];Ay(p,i,u,o)}},Ay=(r,i,u,o)=>{if(typeof r=="string"){by(r,i,u);return}if(typeof r=="function"){yy(r,i,u,o);return}_y(r,i,u,o)},by=(r,i,u)=>{const o=r===""?i:Q1(i,r);o.classGroupId=u},yy=(r,i,u,o)=>{if(xy(r)){y0(r(o),i,u,o);return}i.validators===null&&(i.validators=[]),i.validators.push(dy(u,r))},_y=(r,i,u,o)=>{const h=Object.entries(r),m=h.length;for(let p=0;p<m;p++){const[b,_]=h[p];y0(_,Q1(i,b),u,o)}},Q1=(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},xy=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,Sy=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="!",e1=":",Ey=[],t1=(r,i,u,o,h)=>({modifiers:r,hasImportantModifier:i,baseClassName:u,maybePostfixModifierPosition:o,isExternal:h}),wy=r=>{const{prefix:i,experimentalParseClassName:u}=r;let o=h=>{const m=[];let p=0,b=0,_=0,y;const O=h.length;for(let Q=0;Q<O;Q++){const I=h[Q];if(p===0&&b===0){if(I===e1){m.push(h.slice(_,Q)),_=Q+1;continue}if(I==="/"){y=Q;continue}}I==="["?p++:I==="]"?p--:I==="("?b++:I===")"&&b--}const C=m.length===0?h:h.slice(_);let H=C,G=!1;C.endsWith(zv)?(H=C.slice(0,-1),G=!0):C.startsWith(zv)&&(H=C.slice(1),G=!0);const U=y&&y>_?y-_:void 0;return t1(m,G,H,U)};if(i){const h=i+e1,m=o;o=p=>p.startsWith(h)?m(p.slice(h.length)):t1(Ey,!1,p,void 0,!0)}if(u){const h=o;o=m=>u({className:m,parseClassName:h})}return o},Oy=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}},My=r=>({cache:Sy(r.cacheSize),parseClassName:wy(r),sortModifiers:Oy(r),...my(r)}),Cy=/\s+/,Ty=(r,i)=>{const{parseClassName:u,getClassGroupId:o,getConflictingClassGroupIds:h,sortModifiers:m}=i,p=[],b=r.trim().split(Cy);let _="";for(let y=b.length-1;y>=0;y-=1){const O=b[y],{isExternal:C,modifiers:H,hasImportantModifier:G,baseClassName:U,maybePostfixModifierPosition:Q}=u(O);if(C){_=O+(_.length>0?" "+_:_);continue}let I=!!Q,ie=o(I?U.substring(0,Q):U);if(!ie){if(!I){_=O+(_.length>0?" "+_:_);continue}if(ie=o(U),!ie){_=O+(_.length>0?" "+_:_);continue}I=!1}const ce=H.length===0?"":H.length===1?H[0]:m(H).join(":"),me=G?ce+zv:ce,Ae=me+ie;if(p.indexOf(Ae)>-1)continue;p.push(Ae);const te=h(ie,I);for(let de=0;de<te.length;++de){const ge=te[de];p.push(me+ge)}_=O+(_.length>0?" "+_:_)}return _},Ry=(...r)=>{let i=0,u,o,h="";for(;i<r.length;)(u=r[i++])&&(o=K1(u))&&(h&&(h+=" "),h+=o);return h},K1=r=>{if(typeof r=="string")return r;let i,u="";for(let o=0;o<r.length;o++)r[o]&&(i=K1(r[o]))&&(u&&(u+=" "),u+=i);return u},Ny=(r,...i)=>{let u,o,h,m;const p=_=>{const y=i.reduce((O,C)=>C(O),r());return u=My(y),o=u.cache.get,h=u.cache.set,m=b,b(_)},b=_=>{const y=o(_);if(y)return y;const O=Ty(_,u);return h(_,O),O};return m=p,(..._)=>m(Ry(..._))},Dy=[],wn=r=>{const i=u=>u[r]||Dy;return i.isThemeGetter=!0,i},Z1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,X1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,By=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ly=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zy=/\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$/,Uy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ky=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ss=r=>By.test(r),at=r=>!!r&&!Number.isNaN(Number(r)),us=r=>!!r&&Number.isInteger(Number(r)),Sv=r=>r.endsWith("%")&&at(r.slice(0,-1)),el=r=>Ly.test(r),P1=()=>!0,Hy=r=>zy.test(r)&&!Uy.test(r),_0=()=>!1,Gy=r=>ky.test(r),Iy=r=>jy.test(r),Yy=r=>!Ce(r)&&!Re(r),qy=r=>ds(r,F1,_0),Ce=r=>Z1.test(r),Ru=r=>ds(r,$1,Hy),n1=r=>ds(r,Wy,at),Vy=r=>ds(r,tA,P1),Qy=r=>ds(r,eA,_0),a1=r=>ds(r,J1,_0),Ky=r=>ds(r,W1,Iy),xg=r=>ds(r,nA,Gy),Re=r=>X1.test(r),zd=r=>ku(r,$1),Zy=r=>ku(r,eA),r1=r=>ku(r,J1),Xy=r=>ku(r,F1),Py=r=>ku(r,W1),Sg=r=>ku(r,nA,!0),Jy=r=>ku(r,tA,!0),ds=(r,i,u)=>{const o=Z1.exec(r);return o?o[1]?i(o[1]):u(o[2]):!1},ku=(r,i,u=!1)=>{const o=X1.exec(r);return o?o[1]?i(o[1]):u:!1},J1=r=>r==="position"||r==="percentage",W1=r=>r==="image"||r==="url",F1=r=>r==="length"||r==="size"||r==="bg-size",$1=r=>r==="length",Wy=r=>r==="number",eA=r=>r==="family-name",tA=r=>r==="number"||r==="weight",nA=r=>r==="shadow",Fy=()=>{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"),O=wn("shadow"),C=wn("inset-shadow"),H=wn("text-shadow"),G=wn("drop-shadow"),U=wn("blur"),Q=wn("perspective"),I=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,Ce],de=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto","contain","none"],F=()=>[Re,Ce,_],_e=()=>[ss,"full","auto",...F()],ze=()=>[us,"none","subgrid",Re,Ce],Ee=()=>["auto",{span:["full",us,Re,Ce]},us,Re,Ce],Be=()=>[us,"auto",Re,Ce],Ke=()=>["auto","min","max","fr",Re,Ce],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=()=>[ss,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],J=()=>[ss,"screen","full","dvw","lvw","svw","min","max","fit",...F()],ve=()=>[ss,"screen","full","lh","dvh","lvh","svh","min","max","fit",...F()],w=()=>[r,Re,Ce],K=()=>[...Ae(),r1,a1,{position:[Re,Ce]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",Xy,qy,{size:[Re,Ce]}],be=()=>[Sv,zd,Ru],xe=()=>["","none","full",y,Re,Ce],pe=()=>["",at,zd,Ru],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,r1,a1],rt=()=>["","none",U,Re,Ce],xt=()=>["none",at,Re,Ce],Mt=()=>["none",at,Re,Ce],Jt=()=>[at,Re,Ce],At=()=>[ss,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[el],breakpoint:[el],color:[P1],container:[el],"drop-shadow":[el],ease:["in","out","in-out"],font:[Yy],"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",ss,Ce,Re,I]}],container:["container"],columns:[{columns:[at,Ce,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:[us,"auto",Re,Ce]}],basis:[{basis:[ss,"full","auto",b,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[at,ss,"auto","initial","none",Ce]}],grow:[{grow:["",at,Re,Ce]}],shrink:[{shrink:["",at,Re,Ce]}],order:[{order:[us,"first","last","none",Re,Ce]}],"grid-cols":[{"grid-cols":ze()}],"col-start-end":[{col:Ee()}],"col-start":[{"col-start":Be()}],"col-end":[{"col-end":Be()}],"grid-rows":[{"grid-rows":ze()}],"row-start-end":[{row:Ee()}],"row-start":[{"row-start":Be()}],"row-end":[{"row-end":Be()}],"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,Ru]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Jy,Vy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sv,Ce]}],"font-family":[{font:[Zy,Qy,i]}],"font-features":[{"font-features":[Ce]}],"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,Ce]}],"line-clamp":[{"line-clamp":[at,"none",Re,n1]}],leading:[{leading:[m,...F()]}],"list-image":[{"list-image":["none",Re,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Re,Ce]}],"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,Ru]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[at,"auto",Re,Ce]}],"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,Ce]}],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,Ce]}],"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"]},us,Re,Ce],radial:["",Re,Ce],conic:[us,Re,Ce]},Py,Ky]}],"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,Ce]}],"outline-w":[{outline:["",at,zd,Ru]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",O,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,Ru]}],"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,Ce]}],"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,Ce]}],"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,Ce]}],filter:[{filter:["","none",Re,Ce]}],blur:[{blur:rt()}],brightness:[{brightness:[at,Re,Ce]}],contrast:[{contrast:[at,Re,Ce]}],"drop-shadow":[{"drop-shadow":["","none",G,Sg,xg]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",at,Re,Ce]}],"hue-rotate":[{"hue-rotate":[at,Re,Ce]}],invert:[{invert:["",at,Re,Ce]}],saturate:[{saturate:[at,Re,Ce]}],sepia:[{sepia:["",at,Re,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",Re,Ce]}],"backdrop-blur":[{"backdrop-blur":rt()}],"backdrop-brightness":[{"backdrop-brightness":[at,Re,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[at,Re,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",at,Re,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[at,Re,Ce]}],"backdrop-invert":[{"backdrop-invert":["",at,Re,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[at,Re,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[at,Re,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",at,Re,Ce]}],"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,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[at,"initial",Re,Ce]}],ease:[{ease:["linear","initial",ie,Re,Ce]}],delay:[{delay:[at,Re,Ce]}],animate:[{animate:["none",ce,Re,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[Q,Re,Ce]}],"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:Mt()}],"scale-x":[{"scale-x":Mt()}],"scale-y":[{"scale-y":Mt()}],"scale-z":[{"scale-z":Mt()}],"scale-3d":["scale-3d"],skew:[{skew:Jt()}],"skew-x":[{"skew-x":Jt()}],"skew-y":[{"skew-y":Jt()}],transform:[{transform:[Re,Ce,"","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,Ce]}],"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,Ce]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[at,zd,Ru,n1]}],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"]}},$y=Ny(Fy);function e2(...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 M(...r){return $y(e2(...r))}const t2=(r,i,u)=>{const{safeAreas:o}=r;return M(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 aA=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,...O}=r,C=$.useRef(null),H=i,G={...O},U=Y1(o),Q=t2({...r,safeAreas:b},U,u);return P.createElement(cy,{theme:U,dark:h,materialTouchRipple:m,iosHoverHighlight:p,autoThemeDetection:!1},P.createElement(H,Uv({ref:I=>{C.current=I,_&&typeof _=="function"?_(I):_&&(_.current=I)},className:Q},G),y))};aA.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},n2=(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]=M(Ev(r[m],i),p);return}o[m]={};const _=Ev(r[m],i);o[m].default=M(_,p),Object.keys(r[m]).filter(y=>!h.includes(y)).forEach(y=>{o[m][y]=M(_,Ev(r[m],i,y),p)})}),o},On=({ios:r,material:i}={})=>{let o=$.useContext(Lc).theme||"ios";return r&&(o="ios"),i&&(o="material"),(h,m)=>n2(h,o,m)},a2=(r,i)=>({base:{common:"",ios:M("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:""},r2=r=>{requestAnimationFrame(()=>{requestAnimationFrame(r)})},i2=({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 U=r();if(U&&m.elScale){m.elScale=!1,U.style.scale="";const Q=()=>{U.style.transitionDuration="",U.style.transitionTimingFunction="",U.removeEventListener("transitionend",Q)};U.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)}},_=U=>{if(m.lightEl){const{x:Q,y:I}=U,ie=Q-m.rect.x,ce=I-m.rect.y;m.lightEl.style.transform=`translate3d(${ie}px, ${ce}px, 0)`}},y=U=>{if(!p())return;const Q=m,I=r();Q.rect=I.getBoundingClientRect();const ie=document.createElement("span");ie.className="rounded-[inherit]",ie.style=`left: ${o}px; top: ${o}px; right: ${o}px; bottom: ${o}px;transition-duration: 300ms; opacity: 0; position: absolute; overflow: hidden; pointer-events: none`;const ce=document.createElement("span"),{width:me,height: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,_(U),ie.append(ce),I.append(ie),U.pointerType!=="mouse"&&U.pointerType!=="mouse"){Q.elScale=!0;let ge=1.25;(Q.rect.width>60||Q.rect.height>60)&&(ge=1.05),I.style.scale=ge,I.style.transitionDuration="300ms",I.style.transitionTimingFunction="ease-in-out"}r2(()=>{ie.style.opacity=1})},O=U=>{p()&&_(U)},C=U=>{b()};return{removeHoverHighlight:b,attachEvents:()=>{const U=r();U&&(U.addEventListener("pointerenter",y),U.addEventListener("pointermove",O),U.addEventListener("pointerleave",C))},detachEvents:()=>{const U=r();U&&(U.removeEventListener("pointerenter",y),U.removeEventListener("pointermove",O),U.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),O=i,C={..._},H=Da(),G=On({ios:h,material:m}),U=Ln(),{iosHoverHighlight:Q}=$.useContext(Lc),I=$.useRef({}),{attachEvents:ie,detachEvents:ce}=i2({getEl:()=>y.current,enabled:o&&H==="ios"&&Q,data:I.current}),me=G(a2({...r},U),u);return $.useEffect(()=>(ie(),()=>ce())),P.createElement(O,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 l2{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 O=Math.max((_**2+b**2)**.5,48);const C=i.classList.contains("k-touch-ripple-inset");C&&(O=Math.max(Math.min(b,_),48));const H=typeof window<"u"&&window.getComputedStyle(i,null).getPropertyValue("overflow")==="hidden";if(!C&&H){const U=((y.x-b/2)**2+(y.y-_/2)**2)**.5,Q=(O/2+U)/(O/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: ${O}px;
      height: ${O}px;
      margin-top:-${O/2}px;
      margin-left:-${O/2}px;
      left:${y.x}px;
      top:${y.y}px; --k-ripple-transform: ${h.rippleTransform}`,i.insertAdjacentElement("afterbegin",h.rippleWaveEl);const G=()=>{h.rippleWaveEl.removeEventListener("animationend",G),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",G),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=G=>{h.current=new l2(r.current,G.pageX,G.pageY)},b=()=>{m()},_=()=>{m()},y=()=>{if(!o.materialTouchRipple)return;const G=u.current;G.addEventListener("pointerdown",p),G.addEventListener("pointermove",b),G.addEventListener("pointerup",_),G.addEventListener("pointercancel",_),G.addEventListener("contextmenu",_)},O=()=>{const G=u.current;G.removeEventListener("pointerdown",p),G.removeEventListener("pointermove",b),G.removeEventListener("pointerup",_),G.removeEventListener("pointercancel",_),G.removeEventListener("contextmenu",_)},C=()=>{!u||!u.current||!i||y()},H=()=>{!u||!u.current||!i||O()};$.useEffect(()=>(C(),()=>H()))},s2=(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"}}),u2=(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 rA=r=>{const{component:i="span",className:u,colors:o,small:h,ios:m,material:p,children:b,ref:_,...y}=r,O=$.useRef(null),C=i,H={...y},G=On({ios:m,material:p}),U=u2(o),Q=h?"sm":"md",I=G(s2(r,U),u);return P.createElement(C,jv({ref:ie=>{O.current=ie,_&&typeof _=="function"?_(ie):_&&(_.current=ie)},className:I.base[Q]},H),b)};rA.displayName="Badge";const o2=(r,i)=>{const{inset:u,nested:o,strong:h,outline:m}=r;return{base:{common:M("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:M(i.textIos,h&&i.strongBgIos,u&&m&&i.outlineIos),material:M(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"}}},c2=(r={},i)=>({outlineIos:M("border-black/20",i("dark:border-white/15")),outlineMaterial:M("border-md-light-outline",i("border-md-dark-outline")),strongBgIos:M("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),strongBgMaterial:M("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),textIos:"",textMaterial:M("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:O,outlineIos:C,outlineMaterial:H,nested:G,ios:U,material:Q,ref:I,children:ie,...ce}=r,me=$.useRef(null),Ae=i,te={...ce},de=Da({ios:U,material:Q}),ge=On({ios:U,material:Q}),F=Ln(),_e=c2(o,F),{strong:ze,outline:Ee,inset:Be}=S0(de,{strong:b,outline:O,inset:h},r),Ke=ge(o2({...r,inset:Be,strong:ze,outline:Ee},_e)),ye=M(Ke.base,Be&&Ke.inset,u);return P.createElement(Ae,Hv({ref:ae=>{me.current=ae,I&&typeof I=="function"?I(ae):I&&(I.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 f2=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"})),d2=(r,i,u)=>{const{inline:o,segmented:h,segmentedStrong:m,segmentedActive:p,disabled:b}=r;return{base:{common:M("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:M(b&&M(i.disabledBg,i.disabledText)),ios:M(b?M(i.disabledBg,i.disabledText):`${i.fillTextIos} ${i.fillBgIos}`),material:M(b?M(i.disabledBg,i.disabledText):M(i.fillTextMaterial,i.fillBgMaterial,i.fillTouchRipple))},outline:{common:M(b?M(i.disabledText,i.disabledBorder):i.touchRipple),ios:M(!h&&"border-2",!b&&!h&&i.outlineBorderIos,!b&&M(i.textIos,i.outlineBgIos)),material:M(!h&&"border",!b&&!h&&i.outlineBorderMaterial,!b&&M(i.textMaterial,i.outlineBgMaterial))},clear:{common:M(b?i.disabledText:i.touchRipple),ios:!b&&M(i.textIos,i.clearBgIos),material:!b&&M(i.textMaterial,i.clearBgMaterial)},tonal:{common:b?M(i.disabledBg,i.disabledText):M(i.touchRipple),ios:!b&&M(i.tonalTextIos,i.tonalBgIos),material:!b&&M(i.tonalTextMaterial,i.tonalBgMaterial)},segmentedStrong:M("active:bg-black/10",u("dark:active:bg-white/5 dark:touch-ripple-white")),segmentedStrongActive:{ios:M("duration-200",i.segmentedStrongTextIos),material:M("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"}},h2=(r={},i)=>({textIos:"text-primary",textMaterial:M("text-md-light-primary","dark:text-md-dark-primary"),fillTextIos:M("text-white"),fillTextMaterial:M("text-md-light-on-primary",i("dark:text-md-dark-on-primary")),fillBgIos:"bg-primary active:bg-ios-primary-shade",fillBgMaterial:M("bg-md-light-primary",i("dark:bg-md-dark-primary")),fillTouchRipple:M("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:M("border-md-light-outline",i("dark:border-md-dark-outline")),segmentedStrongTextIos:"text-black",segmentedStrongTextMaterial:"",tonalBgIos:"bg-primary/15 active:bg-primary/25",tonalBgMaterial:M("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),tonalTextIos:"text-primary",tonalTextMaterial:M("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),touchRipple:"touch-ripple-primary",disabledText:M("text-black/30",i("dark:text-white/30")),disabledBg:M("bg-black/10",i("dark:bg-white/10")),disabledBorder:M("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:O,clear:C,clearIos:H,clearMaterial:G,tonal:U,tonalIos:Q,tonalMaterial:I,rounded:ie,roundedIos:ce,roundedMaterial:me,small:Ae,smallIos:te,smallMaterial:de,large:ge,largeIos:F,largeMaterial:_e,raised:ze,raisedIos:Ee,raisedMaterial:Be,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=On({ios:h,material:m}),xe=Ln();x0(w,se==="material");const pe=S0(se,{outline:_,clear:C,tonal:U,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=h2(o,xe),rt=be(d2({...r,...pe},Ye,xe)),xt=M(rt.base[pe.rounded?"rounded":"square"],rt.style[je],rt.size[ot],pe.raised&&rt.raised,u);return P.createElement(K,Iv({ref:Mt=>{w.current=Mt,J&&typeof J=="function"?J(Mt):J&&(J.current=Mt)},className:xt,disabled:p,role:"button",tabIndex:"0"},fe),Z)};zr.displayName="Button";const m2=(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:M(i.fillBg||i.fillBgIos,i.fillText||i.fillTextIos),material:M(i.fillBg||i.fillBgMaterial,i.fillText||i.fillTextMaterial)},outline:{common:"border",ios:M(i.outlineText||i.outlineTextIos,i.outlineBorder||i.outlineBorderIos),material:M(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"}),g2=(r={},i)=>({fillTextIos:"text-current",fillTextMaterial:M("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),fillBgIos:M("bg-black/10",i("dark:bg-white/10")),fillBgMaterial:M("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),outlineTextIos:M("text-current"),outlineTextMaterial:M("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),outlineBorderIos:M("border-black/20",i("dark:border-white/20")),outlineBorderMaterial:M("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:O,ref:C,...H}=r,G=$.useRef(null),U=i,Q={...H},I=On({ios:b,material:_}),ie=Da({ios:b,material:_}),ce=Ln(),me=y?"outline":"fill",Ae=g2(o,ce),te=I(m2(r,Ae),u);return P.createElement(U,Yv({ref:de=>{G.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),O,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 p2=(r,i,u)=>{const{titleFontSizeMaterial:o,titleFontSizeIos:h,sizeMaterial:m}=r;return{base:{common:M("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:M("rounded-4xl max-w-full w-75",i.bgIos),material:M("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:M("p-6 gap-3 relative")},title:{common:M("w-full"),ios:M(i.titleIos,h,"font-semibold"),material:M(i.titleMaterial,o)},content:{common:M("text-sm w-full"),ios:M(i.contentTextIos),material:M(i.contentTextMaterial)},buttons:{common:"flex items-center",ios:M("justify-center p-3.5 pt-0 gap-2"),material:M("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"}}},v2=(r={},i)=>({bgIos:"",bgMaterial:M("bg-md-light-surface-3",i("dark:bg-md-dark-surface-3")),titleIos:"",titleMaterial:M("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),contentTextIos:"",contentTextMaterial:M("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 iA=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:O,buttons:C,ios:H,material:G,children:U,ref:Q,...I}=r,ie=$.useRef(null),ce=h?"opened":"closed",me=i,Ae={...I},te=On({ios:H,material:G}),de=Ln(),ge=v2(o,de),F=te(p2({...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),(O||U)&&P.createElement("div",{className:F.content},O,U)),C&&P.createElement("div",{className:F.buttons},C)))};iA.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 lA=r=>{const{component:i="button",className:u,ios:o,material:h,disabled:m,strong:p,strongIos:b,strongMaterial:_,children:y,ref:O,...C}=r,H=$.useRef(null),G={...C},U=Da({ios:o,material:h}),Q=typeof p>"u"?U==="ios"?b:_:p;return U==="ios"?P.createElement(zr,zg({component:i,ref:I=>{H.current=I,O&&typeof O=="function"?O(I):O&&(O.current=I)},large:!0,rounded:!0,tonal:!Q,className:u,disabled:m},G),y):P.createElement(zr,zg({component:i,inline:!0,rounded:!0,disabled:m,clear:!Q,className:u,ref:I=>{H.current=I,O&&typeof O=="function"?O(I):O&&(O.current=I)}},G),y)};lA.displayName="DialogButton";const A2=(r,{textColor:i,needsTouchRipple:u})=>{const{iconOnly:o,tabbar:h,tabbarLabels:m,tabbarIcons:p}=r;return{base:{common:M("k-link",!h&&i,"inline-flex gap-1 justify-center items-center cursor-pointer select-none",u&&"touch-ripple-primary relative z-10"),ios:M(!h&&"active:opacity-50 duration-300"),material:!h&&M(u?"":"active:opacity-55")},tabbar:{common:M("w-full h-full duration-300 transition-colors relative"),ios:M("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:M("h-full",o&&"k-touch-ripple-inset"),ios:M(!o&&"px-4 truncate",o&&"aspect-square"),material:"px-3 text-sm font-medium max-h-12"},navbar:{common:M("h-full max-h-12",o&&"k-touch-ripple-inset"),ios:M(!o&&"px-4",o&&"aspect-square"),material:"px-3"}}},b2=(r={},i)=>({textIos:"text-primary",textMaterial:M("text-md-light-primary",i("dark:text-md-dark-primary")),navbarTextIos:"",navbarTextMaterial:"",toolbarTextIos:"",toolbarTextMaterial:M("text-md-light-primary",i("dark:text-md-dark-primary")),...zn(r)}),sA=$.createContext({tabbarLabels:!0,tabbarIcons:!0,tabbar:!1,toolbar:!1}),y2=()=>$.useContext(sA),uA=$.createContext({navbar:!1}),_2=()=>$.useContext(uA);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 Nu=r=>{const{component:i="a",className:u,colors:o,iconOnly:h,linkProps:m={},tabbarActive:p,ios:b,material:_,onClick:y,children:O,ref:C,...H}=r,{navbar:G}=_2(),{toolbar:U,tabbar:Q,tabbarLabels:I,tabbarIcons:ie}=y2(),ce=$.useRef(null),me=i,Ae={...m,...H},te=Da({ios:b,material:_}),de=On({ios:b,material:_}),ge=Ln(),F=te==="material"&&(U||Q||G);x0(ce,F);const _e=b2(o,ge),ze=G?te==="material"?_e.navbarTextMaterial:_e.navbarTextIos:U?te==="material"?_e.toolbarTextMaterial:_e.toolbarTextIos:te==="material"?_e.textMaterial:_e.textIos,Ee=Q&&!p?_e.tabbarInactive:ze,Be=p?"active":"inactive",Ke=de(A2({...r,tabbarLabels:I,tabbarIcons:ie,tabbar:Q},{textColor:Ee,needsTouchRipple:F})),ye=M(Ke.base,U&&Ke.toolbar,G&&Ke.navbar,Q&&Ke.tabbar[Be],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}),O)};Nu.displayName="Link";const x2=(r,i)=>{const{nested:u,inset:o,strong:h,outline:m}=r;return{base:{common:M("k-list",!u&&"my-8",!o&&!u&&m&&"hairline-t hairline-b",o&&m&&"border","z-10 relative"),ios:M(h&&i.strongBgIos,o&&m&&i.outlineIos),material:M(h&&i.strongBgMaterial,o&&m&&i.outlineMaterial)},ul:{common:M(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"}}},S2=(r={},i)=>({outlineIos:M("border-black/20",i("dark:border-white/15")),outlineMaterial:M("border-md-light-outline",i("border-md-dark-outline")),strongBgIos:M("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),strongBgMaterial:M("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),...zn(r)}),oA=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 cs=r=>{const{component:i="div",className:u,colors:o,nested:h,menuList:m,dividers:p,dividersIos:b=!0,dividersMaterial:_=!1,inset:y,insetIos:O,insetMaterial:C,strong:H,strongIos:G,strongMaterial:U,outline:Q,outlineIos:I,outlineMaterial:ie,ios:ce,material:me,children:Ae,ref:te,...de}=r,ge=$.useRef(null),F=i,_e={...de},ze=Da(),Ee=On({ios:ce,material:me}),Be=Ln(),{strong:Ke,outline:ye,inset:ae,dividers:D}=S0(ze,{strong:H,outline:Q,inset:y,dividers:p},{strongIos:G,strongMaterial:U,outlineIos:I,outlineMaterial:ie,insetIos:O,insetMaterial:C,dividersIos:b,dividersMaterial:_,...r}),Z=S2(o,Be),J=Ee(x2({...r,inset:ae,strong:Ke,outline:ye},Z)),ve=M(J.base,ae&&J.inset,m&&J.menuList,u);return P.createElement(oA.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)))};cs.displayName="List";const E2=()=>$.useContext(oA),w2=(r,i,{isMediaItem:u,theme:o,textColor:h,needsTouchRipple:m,isMenuListItemActive:p,autoStrongTitle:b,nested:_},y)=>{const{menuListItem:O,dividers:C,mediaClassName:H="",mediaClass:G="",innerClassName:U="",innerClass:Q="",contentClassName:I="",contentClass:ie="",titleWrapClassName:ce="",titleWrapClass:me="",titleFontSizeIos:Ae,titleFontSizeMaterial:te,strongTitle:de,contacts:ge}=r;return{base:{common:M("k-list-item",O?`${h} py-1`:"",y),material:ge&&"[&:nth-child(2)]:-mt-12"},itemContent:{common:M(`flex items-center ${I||ie}`),ios:M(!O&&M(i.primaryTextIos,_?"ps-4":"ps-safe-4"),O&&"rounded-2xl ml-safe-2 mr-safe-2 ps-2"),material:M(!O&&M(i.primaryTextMaterial,u?"ml-safe-2 mr-safe-2 rounded-2xl ps-2":"ps-safe-4",ge&&"ml-10"),O&&"rounded-full min-h-[3.5rem] ml-safe-4 mr-safe-4 ps-4"),link:M("duration-300 active:duration-0 cursor-pointer select-none",C&&o==="ios"&&"active:hairline-transparent",m&&M("relative overflow-hidden z-10",i.touchRipple),M(p?o==="ios"?i.menuListItemActiveBgIos:i.menuListItemActiveBgMaterial:O?o==="ios"?i.menuListItemBgIos:i.menuListItemBgMaterial:o==="ios"?i.activeBgIos:i.activeBgMaterial))},media:{common:`shrink-0 flex ${H||G}`,ios:"py-2 me-4",material:M("py-3",O?"me-3":"me-4")},inner:{common:M("w-full relative",!O&&C&&"hairline-b",U||Q),ios:M("py-3 pe-safe-4"),material:M("py-3",u&&!O?"pe-2":"pe-safe-4")},titleWrap:{common:M(`flex justify-between items-center ${ce||me}`),ios:M(!O&&Ae,!O&&"min-h-7"),material:M(!O&&te)},title:{common:"shrink",menuListItem:M("text-sm",de===!0||b?"font-semibold":"font-medium"),strong:{common:"",ios:"font-semibold",material:"font-medium"}},after:{common:M("shrink-0 ms-auto ps-1 flex items-center gap-1"),ios:i.secondaryTextIos,material:M(i.secondaryTextMaterial,"text-sm")},chevron:"opacity-20 shrink-0 ms-3 rtl:rotate-180",subtitle:"text-sm",text:{common:M("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:M("text-xs mt-0.5"),ios:i.secondaryTextIos,material:i.secondaryTextMaterial},groupTitle:{common:M("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&&M("font-semibold top-safe-15 sticky",i.groupTitleContactsTextIos,i.groupTitleContactsBgIos)}`,material:`h-12 ${te} ${i.secondaryTextMaterial} ${i.groupTitleBgMaterial} ${ge&&M("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)}`}}},O2=(r={},i)=>({primaryTextIos:M("text-black",i("dark:text-white")),primaryTextMaterial:M("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),secondaryTextIos:M("text-black/55",i("dark:text-white/55")),secondaryTextMaterial:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),activeBgIos:M("active:not-[:has(.k-toggle:active)]:bg-black/10",i("dark:active:not-[:has(.k-toggle:active)]:bg-white/10")),activeBgMaterial:"",groupTitleBgIos:M("bg-ios-light-surface-variant",i("dark:bg-ios-dark-surface-variant")),groupTitleBgMaterial:M("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),menuListItemTextIos:M("text-black",i("dark:text-white")),menuListItemTextMaterial:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),menuListItemBgIos:M("active:bg-black/10",i("dark:active:bg-white/10")),menuListItemBgMaterial:M("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),menuListItemActiveTextIos:M("text-primary",i("dark:text-white")),menuListItemActiveTextMaterial:M("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),menuListItemActiveBgIos:M("bg-primary/15",i("dark:bg-primary")),menuListItemActiveBgMaterial:M("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),touchRipple:M("touch-ripple-black",i("dark:touch-ripple-white")),groupTitleContactsTextIos:M("text-black/90",i("dark:text-white/90")),groupTitleContactsTextMaterial:M("text-md-light-primary",i("dark:text-md-dark-primary")),groupTitleContactsBgIos:M(i("dark:bg-[#323234]")),groupTitleContactsBgMaterial:M("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 Yn=r=>{const{component:i="li",colors:u,className:o,mediaClassName:h="",innerClassName:m="",innerChildren:p,contentClassName:b="",contentChildren:_,titleWrapClassName:y="",titleFontSizeIos:O="text-[17px]",titleFontSizeMaterial:C="text-[16px]",title:H,subtitle:G,text:U,after:Q,media:I,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:Be,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=E2(),Ye=typeof Z>"u"?je?.dividers:Z,rt=Da({ios:ve,material:w}),xt=On({ios:ve,material:w}),Mt=Ln(),Jt=typeof F>"u"?rt==="ios"?_e:ze:F,At=O2(u,Mt),xn=me&&Ae,Oi=At[`${xn?"menuListItemActiveText":me?"menuListItemText":"text"}${rt==="ios"?"Ios":"Material"}`],bt=!!Be||Be===""||me||ye,sn=!!ge,Kt=rt==="material"&&(sn||bt);x0(be,Kt);const ra=Be===!0||Be===!1||typeof Be>"u"?void 0:Be||"",Ct=bt?ae:sn?"label":"div",Mn=bt?{href:ra,target:Ke,...D}:{},Ba=H&&(G||U),La=de==="auto"&&Ba,Dt=xt(w2({...r,titleFontSizeIos:O,titleFontSizeMaterial:C,dividers:Ye,strongTitle:de,mediaClassName:h,innerClassName:m,contentClassName:b,titleWrapClassName:y},At,{isMediaItem:Ba,theme:rt,textColor:Oi,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:M(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},Mn),I&&P.createElement("div",{className:Dt.media},I),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&&Jt&&!me&&(Ee||P.createElement(f2,{className:Dt.chevron}))),G&&P.createElement("div",{className:Dt.subtitle},G),U&&P.createElement("div",{className:Dt.text},U),ce&&P.createElement("div",{className:Dt.footer},ce),p),_),K)};Yn.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 M2=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"})),C2=(r,i,{isFloatingTransformed:u,isFocused:o,darkClasses:h,getLabelColor:m,hasLabel:p},b)=>{const{error:_,type:y,outline:O,inputClassName:C="",inputClass:H=""}=r;return{base:{common:M("k-list-input",b),ios:M(O&&"my-4"),material:M("py-2")},itemContent:{common:"relative",ios:M(O&&"ml-4 mr-4 rounded-lg",!O&&i.bgIos),material:M("min-h-[56px] ml-4 mr-4",O?M("rounded"):M(i.bgMaterial,"rounded-t relative "))},inner:{common:"",material:M(O?"pt-4 pb-4":"pt-2 pb-2"),stacked:"",floating:""},label:{common:M("duration-200 text-xs",m(),O&&"flex"),ios:M(O&&"-mt-4"),material:M(O&&"-mt-4"),stacked:"",floating:{common:M("pointer-events-none duration-200 transform origin-left rtl:origin-right max-w-[66%]",u&&"scale-133"),ios:u?O?"translate-y-6":"translate-y-4":"",material:u?O?"translate-y-8":"translate-y-3":""}},labelText:{common:M(O&&"relative p-1 block -m-1"),ios:M(O&&M("-top-1",i.outlineLabelBgIos)),material:M(O&&M("-top-2",i.outlineLabelBgMaterial))},inputWrap:{common:"relative",ios:M((!p||O)&&"-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:M("placeholder-black/30",h("dark:placeholder-white/30")),material:M(y==="textarea"&&"py-1"),ios:M(y==="textarea"&&"py-2")},floating:u?"placeholder-transparent":M("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:M("w-3.5 h-3.5 opacity-45 active:opacity-30",i.labelTextIos),material:M("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:O&&M(_?i.errorBorder:o?i.outlineBorderFocusIos:i.outlineBorderIos,"h-full border rounded-lg -z-10"),material:M(_?i.errorBorder:o?i.outlineBorderFocusMaterial:i.outlineBorderMaterial,O&&M("h-full border rounded -z-10",o&&"border-2"),!O&&M("border-b h-px origin-bottom",o&&"scale-y-[2]"))}}},T2=(r={},i)=>({bgIos:"",bgMaterial:M("bg-md-light-surface-variant",i("dark:bg-md-dark-surface-variant")),outlineBorderIos:M("border-black/30",i("dark:border-white/30")),outlineBorderFocusIos:"border-primary",outlineBorderMaterial:M("border-md-light-on-surface",i("dark:border-md-dark-on-surface")),outlineBorderFocusMaterial:M("border-md-light-primary",i("dark:border-md-dark-primary")),outlineLabelBgIos:M("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),outlineLabelBgMaterial:M("bg-md-light-surface",i("dark:bg-md-dark-surface")),labelTextIos:"",labelTextFocusIos:"",labelTextMaterial:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),labelTextFocusMaterial:M("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:O,info:C,error:H,clearButton:G,dropdown:U,inputId:Q,inputStyle:I,inputClassName:ie="",name:ce,value:me,defaultValue:Ae,type:te="text",inputMode:de,readOnly:ge,required:F,disabled:_e,placeholder:ze,size:Ee,accept:Be,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:Mt,material:Jt,children:At,ref:xn,...Oi}=r,bt=$.useRef(null),sn=$.useRef(null),[Kt,ra]=$.useState(!1),Ct=Da({ios:Mt,material:Jt}),Mn=On({ios:Mt,material:Jt}),Ba=Ln(),La=T2(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,gs=()=>H?La.errorText:Ct==="material"?Kt?La.labelTextFocusMaterial:La.labelTextMaterial:Ct==="ios"?Kt?La.labelTextFocusIos:La.labelTextIos:"",ps=Cn=>{ra(!0),Ye&&Ye(Cn)},vs=Cn=>{ra(!1),rt&&rt(Cn)},Ja=typeof p>"u"?Ct==="ios"?b:_:p,Zt=Mn(C2({...r,outline:Ja},La,{isFloatingTransformed:Sn,isFocused:Kt,darkClasses:Ba,getLabelColor:gs,hasLabel:!!h})),za={...Oi},Ir=()=>{if(O)return O;const Cn=te==="select"||te==="textarea"?te:"input",Yu=Cn==="input";return P.createElement(Cn,{id:Q,ref:bt,className:Zt.input[mr],style:I,name:ce,type:Yu?te:void 0,placeholder:ze,inputMode:de,size:Ee,accept:Be,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:ps,onBlur:vs},te==="select"?At:null)},gr=P.createElement(P.Fragment,null,H&&H!==!0&&P.createElement("div",{className:M(Zt.errorInfo,Zt.error)},H),C&&!H&&P.createElement("div",{className:M(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(),G&&P.createElement(Lg,{theme:Ct,onClick:xt,className:Zt.clearButton}),U&&P.createElement(M2,{className:Zt.dropdown})),gr);return P.createElement(Yn,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 R2=(r,i,u)=>{const{type:o}=r;return{message:{common:M("k-message max-w-[70%] box-border flex relative z-1 transform translate-z-0 mb-2 first:mt-2",u)},messageSent:{common:M("self-end",i.messageSent)},messageReceived:{common:i.messageReceived},messageName:{common:"text-xs",ios:M("mb-0.5 ms-4",i.messageNameIos),material:M("ms-4 mb-0.5",i.messageNameMd)},messageHeader:{common:"text-xs",ios:M("mb-0.5 ms-4",i.messageNameIos),material:M("ms-4 mb-0.5",i.messageNameMd)},messageFooter:{common:"text-xs",ios:M("mb-0.5 ms-4",i.messageNameIos),material:M("ms-4 mb-0.5",i.messageNameMd)},messageAvatar:{common:M("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:M("rounded-3xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",i.bubbleSentIos),material:M("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4",i.bubbleSentMd)},...o==="received"&&{ios:M("rounded-2xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",i.bubbleReceivedIos),material:M("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"}}},N2=(r={},i)=>({messageSent:"text-white",messageReceived:"text-inherit",messageNameIos:M("text-black/45",i("dark:text-white/45")),messageNameMd:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),bubbleSentIos:M("bg-primary"),bubbleSentMd:M("bg-md-light-primary",i("dark:bg-md-dark-primary dark:text-md-dark-on-primary")),bubbleReceivedIos:M("bg-[#e5e5ea]",i("dark:bg-[#252525]")),bubbleReceivedMd:M(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 O0=r=>{const{component:i="div",className:u,colors:o,ref:h,id:m,text:p,name:b,type:_="sent",header:y,footer:O,textHeader:C,textFooter:H,avatar:G,ios:U,material:Q,children:I,...ie}=r,ce=$.useRef(null),me=On({ios:U,material:Q}),Ae=Ln(),te=N2(o,Ae),de=me(R2({...r},te,u)),ge=i,F={...ie},_e=M(de.message,{[de.messageSent]:_==="sent",[de.messageReceived]:_==="received"});return P.createElement(ge,Xv({id:m,ref:ce,className:_e},F),G&&P.createElement("div",{className:de.messageAvatar},G),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)),O&&P.createElement("div",{className:de.messageFooter},O)))};O0.displayName="Message";const D2=(r,i,u)=>{const{bgClassName:o="",bgClass:h="",outline:m,innerClassName:p="",innerClass:b="",tabbar:_,tabbarIcons:y,tabbarLabels:O,top:C}=r;return{base:{common:M("k-toolbar w-full z-20 relative",u),ios:M(!C&&"pb-safe-4","px-safe-4 flex justify-center"),material:M(!C&&"pb-safe")},bgBlur:{ios:!C&&M(M(y&&O?"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:M(o||h),ios:!C&&M(i.bgIos,"bottom-0 absolute w-full left-0 pointer-events-none",y&&O?"h-[calc(var(--k-safe-area-bottom)_+16px_+_64px_+_16px)]":"h-[calc(var(--k-safe-area-bottom)_+16px_+_48px_+_16px)]"),material:M(i.bgMaterial,"h-full top-0 absolute w-full left-0",m&&(C?"hairline-b":"hairline-t"))},inner:{common:M("flex relative justify-between",p||b),ios:M("gap-4 items-stretch",y&&O?"h-16":"h-12",_?"w-full md:w-auto":"w-auto"),material:M("w-full overflow-hidden items-center",_?"":"pl-safe-2 pr-safe-2",y?"h-20":"h-14")},highlight:{common:M(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}}},B2=(r={},i)=>({bgIos:M("bg-gradient-to-t from-ios-light-surface to-transparent",i("dark:from-ios-dark-surface/50")),bgMaterial:M("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),tabbarHighlightBgIos:"",tabbarHighlightBgMaterial:M("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 cA=r=>{const{component:i="div",className:u,colors:o,bgClassName:h="",innerClassName:m="",outline:p,tabbar:b,tabbarIcons:_,tabbarLabels:y,top:O,ios:C,material:H,children:G,ref:U,...Q}=r,I=$.useRef(null),ie=$.useRef(null),ce=i,[me,Ae]=$.useState({transform:"",width:""}),te=Da({ios:C,material:H}),de=On({ios:C,material:H}),ge=Ln(),F={...Q},_e=B2(o,ge),Ee=de(D2({...r,outline:typeof p>"u"?te==="ios":p,bgClassName:h,innerClassName:m},_e),u),Be=te==="material"&&b&&!_;return $.useEffect(()=>{if(Be&&I.current){const Ke=I.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}%)`})}},[G]),P.createElement(ce,Pv({ref:Ke=>{ie.current=Ke,U&&typeof U=="function"?U(Ke):U&&(U.current=Ke)},className:Ee.base},F),P.createElement(sA.Provider,{value:{toolbar:!0,tabbarLabels:y,tabbarIcons:_,tabbar:b}},te==="ios"&&!O&&P.createElement("div",{className:Ee.bgBlur}),(te==="material"||!O)&&P.createElement("div",{className:Ee.bg}),P.createElement("div",{className:Ee.inner},G),Be&&P.createElement("span",{className:Ee.highlight,style:me,ref:I})))};cA.displayName="Toolbar";const L2=(r,i,u)=>{const{outline:o,large:h,medium:m,transparent:p,left:b,right:_,subnavbar:y,fontSizeIos:O,fontSizeMaterial:C,titleFontSizeIos:H,titleFontSizeMaterial:G,titleLargeFontSizeIos:U,titleLargeFontSizeMaterial:Q,titleMediumFontSizeIos:I,titleMediumFontSizeMaterial:ie,bgClassName:ce="",bgClass:me="",subnavbarClassName:Ae="",subnavbarClass:te="",innerClassName:de="",innerClass:ge="",leftClassName:F="",leftClass:_e="",titleClassName:ze="",titleClass:Ee="",subtitleClassName:Be="",subtitleClass:Ke="",rightClassName:ye="",rightClass:ae="",centerTitle:D}=r;return{base:{common:M("k-navbar w-full z-20 top-0 sticky",(h||m)&&"pointer-events-none",u),ios:M("pt-[max(16px,var(--k-safe-area-top))]",O,i.textIos),material:M("pt-safe",C,i.textMaterial)},bgBlur:{ios:M("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:M("absolute w-full left-0 top-0",ce||me),ios:M(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:M("h-full",i.bgMaterial,o&&"hairline-b")},subnavbar:{common:M("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:M("flex relative items-center w-full",de||ge,(h||m)&&"pointer-events-auto z-10"),ios:M("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:M("flex items-center px-safe-4 relative",(h||m)&&"pointer-events-auto"),ios:M(m&&M(I,"h-11 font-semibold"),h&&M(U,"h-13 font-bold")),material:M(m&&M(ie,"h-12 pb-4"),h&&M(Q,"h-[5.5rem]"))},left:{common:M("flex justify-center items-center h-full",F||_e),ios:"me-2 transform transform-gpu rounded-full",material:"mx-1"},title:{common:M("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:M(`${H} font-semibold`,!D&&"first:mx-2"),material:M(`${G} font-normal`,!D&&"first:mx-4")},subtitle:{common:M("leading-none",Be||Ke),ios:"text-sm opacity-75 font-medium",material:"text-sm opacity-85 font-normal"},right:{common:M("flex justify-center items-center h-full",ye||ae),ios:M("transform transform-gpu rounded-full",D?"ms-2":"ms-auto"),material:"ms-auto me-1"}}},z2=(r,i)=>({bgIos:M("bg-gradient-to-b from-ios-light-surface to-transparent",i("dark:from-ios-dark-surface/50")),bgMaterial:M("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),textIos:M("text-black",i("dark:text-white")),textMaterial:M("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:O,colors:C,outline:H,medium:G,large:U,transparent:Q,fontSizeIos:I="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:Be,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=On({ios:ye,material:ae}),rt=Ln(),xt={...J},Mt=z2(C,rt),Jt=Q,At=Kt=>{const{scrollTop:ra}=Kt.target;if(!Jt&&!U&&!G){pe.current&&(be.current&&(be.current.style.opacity=""),K.current&&(K.current.style.opacity=""));return}const Ct=w.current,Mn=Math.max(Math.min(ra/Ct,1),0);je==="material"&&(K.current.style.opacity=Jt?-.5+Mn*1.5:"",(G||U)&&(K.current.style.transform=`translateY(-${Mn*Ct}px)`)),se.current&&(se.current.style.transform=`translateY(-${Mn*Ct}px)`,se.current.style.opacity=1-Mn*2),be.current&&(be.current.style.opacity=-.5+Mn*1.5),(G||U)&&xe.current&&(xe.current.style.transform=`translateY(-${Mn*Ct}px)`)},xn=()=>typeof F>"u"?ve.current&&ve.current.parentNode:F.current||F,Oi=()=>{if(!U&&!G&&!Jt){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(()=>(Oi(),bt));const sn=Ye(L2({...r,centerTitle:typeof O>"u"?je==="ios":O,outline:H,fontSizeIos:I,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},Mt),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(uA.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)),Be&&P.createElement(Tc,{className:sn.right},Be),D),(U||G)&&P.createElement("div",{className:sn.titleContainer,ref:se},ze),Ke&&P.createElement("div",{className:sn.subnavbar,ref:xe},Ke)))};Rc.displayName="Navbar";const U2=(r,i,u)=>{const{opened:o}=r;return{base:{common:M("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:M("rounded-xl p-4 start-2 end-2 top-safe-2 rounded-3xl flex gap-4 items-center",i.bgIos),material:M("rounded-2xl py-5 px-4 start-4 end-4 top-safe-4",i.bgMaterial)},content:{common:"w-full shrink",ios:"",material:M("mt-2")},header:{common:M("flex justify-start"),ios:"items-center",material:"items-start"},icon:{ios:"shrink-0",material:"me-4"},contentTitle:{material:M("flex flex-row items-center")},title:{ios:M("text-sm font-bold",i.titleIos),material:M("font-medium")},titleRightText:{ios:M("me-1 ms-auto text-sm",i.titleRightIos),material:M("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:M("me-1 ms-auto cursor-pointer"),material:M("ms-auto cursor-pointer")},deleteIcon:{ios:M("w-5 h-5",i.deleteIconIos),material:M("w-6 h-6",i.deleteIconMd)},subtitle:{ios:M("text-sm font-semibold",i.subtitleIos),material:M("text-sm")},text:{ios:M("text-sm"),material:M("text-sm",i.textMaterial)}}},k2=(r,i)=>({bgIos:"",bgMaterial:M("bg-md-light-surface-5",i("dark:bg-md-dark-surface-5")),titleIos:M("text-black",i("dark:text-white")),titleRightIos:M("text-black/45",i("dark:text-white/45")),titleRightMd:M("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:M("text-black ",i("dark:text-white")),textMaterial:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant ")),deleteIconIos:M("fill-stone-400 active:fill-stone-200",i("dark:fill-stone-500 dark:active:fill-stone-700")),deleteIconMd:M("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 fA=r=>{const{component:i="div",className:u,colors:o,button:h,icon:m,title:p,titleRightText:b,subtitle:_,text:y,opened:O,onClose:C,ios:H,material:G,children:U,ref:Q,...I}=r,ie=$.useRef(null),ce=i,me={...I},Ae=Da({ios:H,material:G}),te=On({ios:H,material:G}),de=Ln(),ge=k2(o,de),F=te(U2({...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),U)):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),U)),h&&P.createElement("div",{className:F.button,role:"button",tabIndex:"0",onClick:C},P.createElement(Lg,{theme:Ae,className:F.deleteIcon}))))};fA.displayName="Notification";const j2=(r,i,u)=>({base:{common:M("k-page h-full w-full left-0 top-0 overflow-auto absolute",u),ios:i.bgIos,material:i.bgMaterial}}),H2=(r={},i)=>({bgIos:M("bg-ios-light-surface",i("dark:bg-ios-dark-surface")),bgMaterial:M("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),O=i,C={..._},H=On({ios:h,material:m}),G=Ln(),U=H2(o,G),Q=H(j2(r,U,u));return P.createElement(O,Wv({ref:I=>{y.current=I,b&&typeof b=="function"?b(I):b&&(b.current=I)},className:Q.base},C),p)};fs.displayName="Page";const G2=({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,O=document.body.offsetHeight;y===0&&(y=window.innerWidth),O===0&&(O=window.innerHeight);const[C,H]=[r.offsetWidth,r.offsetHeight];let G=0,U,Q,I="";o&&(G=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+G<ce-Ae?F=ce-H-G:H+G<O-ce-b?(Ee="bottom",F=ce+b+G):(Ee="middle",F=b/2+ce-H/2,_e=F,F=Math.max(5,Math.min(F,O-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"&&(I="bottom"),Ee==="bottom"&&(I="top"),_e-=ge,U=C/2-G+_e,U=Math.max(Math.min(U,C-G*2-ze),ze)):Ee==="middle"&&(ge=ie-C-G,I="right",(ge<5||ge+C+de>y||ge<te)&&(ge<5&&(ge=ie+p+G),ge+C+de>y&&(ge=y-C-5-de),ge<te&&(ge=te),I="left"),Q=H/2-G+_e,Q=Math.max(Math.min(Q,H-G*2-ze),ze));const Be=Ee,Ke=ge<ie?"left":"right";return{set:!0,angleTop:typeof Q>"u"?void 0:`${Q}px`,angleLeft:typeof U>"u"?void 0:`${U}px`,anglePosition:I,popoverTop:`${F}px`,popoverLeft:`${ge}px`,popoverPosition:`${Be}-${Ke}`}},I2=(r,i,u)=>{const{angleClassName:o,angleClass:h}=r;return{base:{common:M("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:M("overflow-hidden relative"),ios:M("rounded-4xl duration-600",i.bgIos),material:M("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:M(o||h||"","pointer-events-none"),ios:M("absolute w-6.5 h-6.5 z-50 overflow-hidden"),material:M("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:M("absolute rounded w-full h-full transform rotate-45"),ios:M("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"}}},Y2=(r={},i)=>({bgIos:"",bgMaterial:M("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 Gd=r=>{const{component:i="div",className:u,angle:o=!1,angleClassName:h="",colors:m,opened:p,backdrop:b=!0,onBackdropClick:_,target:y,targetX:O,targetY:C,targetWidth:H,targetHeight:G,ios:U,material:Q,children:I,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:U,material:Q}),Be=On({ios:U,material:Q}),Ke=Ln(),ye=Y2(m,Ke),ae=Be(I2({...r,angleClassName:h},ye,Ke),u),D=()=>{!y||!Ae.current||!p||ge(G2({popoverEl:Ae.current,targetEl:y,angleEl:te.current,needsAngle:o,targetX:O,targetY:C,targetHeight:G,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=M(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]},I)))};Gd.displayName="Popover";const q2=(r,i,u)=>({base:{common:M("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:M("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"}}),V2=(r={},i)=>({bg:M("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 dA=r=>{const{component:i="div",className:u,colors:o,ref:h,opened:m,backdrop:p=!0,onBackdropClick:b,ios:_,material:y,children:O,...C}=r,H=$.useRef(null),G=m?"opened":"closed",U=i,Q={...C},I=On({ios:_,material:y}),ie=Ln(),ce=V2(o,ie),me=I(q2(r,ce,u));return P.createElement(P.Fragment,null,p&&P.createElement("div",{className:me.backdrop[G],onClick:b}),P.createElement(U,$v({ref:Ae=>{H.current=Ae,h&&typeof h=="function"?h(Ae):h&&(h.current=Ae)},className:me.base[G]},Q),O))};dA.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 Q2=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 K2=r=>P.createElement("svg",t0({viewBox:"0 0 36 36"},r,{fill:"none",stroke:"currentcolor"}),P.createElement("circle",{cx:"18",cy:"18",r:"16"})),Z2=(r,i,u,o)=>({base:{common:M("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"}}),X2=(r={},i)=>({iconIos:"text-primary",iconMaterial:M("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 M0=r=>{const{component:i="span",className:u,colors:o,ios:h,material:m,children:p,ref:b,..._}=r,y=$.useRef(null),O=i,C={..._},H=Da({ios:h,material:m}),G=On({ios:h,material:m}),U=Ln(),Q=X2(o,U),I=H==="ios"?Q2:K2,ie=G(Z2(r,Q,H,u));return P.createElement(O,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(I,{className:"w-full h-full"})),p)};M0.displayName="Preloader";const P2=(r,i,u)=>({base:{common:M("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:M("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"}}),J2=(r={},i)=>({bgIos:M("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),bgMaterial:M("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 hA=r=>{const{component:i="div",className:u,colors:o,opened:h,backdrop:m=!0,onBackdropClick:p,ios:b,material:_,children:y,ref:O,...C}=r,H=$.useRef(null),G=h?"opened":"closed",U=i,Q={...C},I=On({ios:b,material:_}),ie=Ln(),ce=J2(o,ie),me=I(P2(r,ce,u));return P.createElement(P.Fragment,null,m&&P.createElement("div",{className:me.backdrop[G],onClick:p}),P.createElement(U,a0({ref:H,className:me.base[G]},Q),y))};hA.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 W2={};function Jg(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:W2}var mA=Object.assign,jg=Object.getOwnPropertyDescriptor,xi=Object.defineProperty,Wg=Object.prototype,r0=[];Object.freeze(r0);var gA={};Object.freeze(gA);var F2=typeof Proxy<"u",$2=Object.toString();function pA(){F2||vt("Proxy not available")}function vA(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 ll(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()===$2}function AA(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 bA(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 e_(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 yA=typeof Object.getOwnPropertySymbols<"u";function t_(r){var i=Object.keys(r);if(!yA)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:yA?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames;function _A(r){return r===null?null:typeof r=="object"?""+r:r}function rl(r,i){return Wg.hasOwnProperty.call(r,i)}var n_=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 i1(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 a_(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,i_(o.key),o)}}function Uc(r,i,u){return i&&a_(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=l_(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 xA(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 r_(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 i_(r){var i=r_(r,"string");return typeof i=="symbol"?i:i+""}function l_(r,i){if(r){if(typeof r=="string")return i1(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)?i1(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){rl(r,_i)||Vd(r,_i,Lu({},r[_i])),h_(u)||(r[_i][i]=u)}function s_(r){return rl(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"),hs=(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 HA(this)},i.reportChanged=function(){dr(),GA(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)}}])})();hs.isBeingObservedMask_=1;hs.isPendingUnobservationMask_=2;hs.diffValueMask_=4;var C0=ju("Atom",hs);function SA(r,i,u){i===void 0&&(i=Ec),u===void 0&&(u=Ec);var o=new hs(r);return i!==Ec&&px(o,i),u!==Ec&&KA(o,u),o}function u_(r,i){return lb(r,i)}function o_(r,i){return Object.is?Object.is(r,i):r===i?r!==0||1/r===1/i:r!==r&&i!==i}var Hg={structural:u_,default:o_};function zu(r,i,u){return WA(r)?r:Array.isArray(r)?Bn.array(r,{name:u}):ll(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)&&!Yd(r)?AA(r)?Bc(r):Id(u,r):r}function c_(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(ll(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 f_(r,i){return lb(r,i)?i:r}var d_="override";function h_(r){return r.annotationType_===d_}function Zd(r,i){return{annotationType_:r,options_:i,make_:m_,extend_:g_,decorate_20223_:p_}}function m_(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=EA(r,this,i,u,!1);return xi(o,i,m),2}function g_(r,i,u,o){var h=EA(r,this,i,u);return r.defineProperty_(i,h,o)}function p_(r,i){var u=i.kind,o=i.name,h=i.addInitializer,m=this,p=function(y){var O,C,H,G;return Uu((O=(C=m.options_)==null?void 0:C.name)!=null?O:o.toString(),y,(H=(G=m.options_)==null?void 0:G.autoAction)!=null?H:!1)};if(u=="field")return function(_){var y,O=_;return Dc(O)||(O=p(O)),(y=m.options_)!=null&&y.bound&&(O=O.bind(this),O.isMobxAction=!0),O};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 v_(r,i,u,o){i.annotationType_,o.value}function EA(r,i,u,o,h){var m,p,b,_,y,O,C;h===void 0&&(h=Se.safeDescriptors),v_(r,i,u,o);var H=o.value;if((m=i.options_)!=null&&m.bound){var G;H=H.bind((G=r.proxy_)!=null?G: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,(O=i.options_)!=null&&O.bound?(C=r.proxy_)!=null?C:r.target_:void 0),configurable:h?r.isPlainObject_:!0,enumerable:!1,writable:!h}}function wA(r,i){return{annotationType_:r,options_:i,make_:A_,extend_:b_,decorate_20223_:y_}}function A_(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&&(!rl(r.target_,i)||!Yd(r.target_[i]))&&this.extend_(r,i,u,!1)===null)return 0;if(Yd(u.value))return 1;var m=OA(r,this,i,u,!1,!1);return xi(o,i,m),2}function b_(r,i,u,o){var h,m=OA(r,this,i,u,(h=this.options_)==null?void 0:h.bound);return r.defineProperty_(i,m,o)}function y_(r,i){var u,o=i.name,h=i.addInitializer;return Yd(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 __(r,i,u,o){i.annotationType_,o.value}function OA(r,i,u,o,h,m){m===void 0&&(m=Se.safeDescriptors),__(r,i,u,o);var p=o.value;if(Yd(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_:x_,extend_:S_,decorate_20223_:E_}}function x_(r,i,u){return this.extend_(r,i,u,!1)===null?0:1}function S_(r,i,u,o){return w_(r,this,i,u),r.defineComputedProperty_(i,Lu({},this.options_,{get:u.get,set:u.set}),o)}function E_(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 w_(r,i,u,o){i.annotationType_,o.get}function ep(r,i){return{annotationType_:r,options_:i,make_:O_,extend_:M_,decorate_20223_:C_}}function O_(r,i,u){return this.extend_(r,i,u,!1)===null?0:1}function M_(r,i,u,o){var h,m;return T_(r,this),r.defineObservableProperty_(i,u.value,(h=(m=this.options_)==null?void 0:m.enhancer)!=null?h:zu,o)}function C_(r,i){var u=this,o=i.kind,h=i.name,m=new WeakSet;function p(b,_){var y,O,C=Iu(b)[Ze],H=new Du(_,(y=(O=u.options_)==null?void 0:O.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 T_(r,i,u,o){i.annotationType_}var R_="true",N_=MA();function MA(r){return{annotationType_:R_,options_:r,make_:D_,extend_:B_,decorate_20223_:L_}}function D_(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(AA(u.value)){var _,y=(_=this.options_)!=null&&_.autoBind?Bc.bound:Bc;return y.make_(r,i,u,o)}var O=(b=this.options_)!=null&&b.autoBind?Id.bound:Id;return O.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 B_(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 L_(r,i){vt("'"+this.annotationType_+"' cannot be used as a decorator")}var z_="observable",U_="observable.ref",k_="observable.shallow",j_="observable.struct",CA={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(CA);function Eg(r){return r||CA}var l0=ep(z_),H_=ep(U_,{enhancer:$g}),G_=ep(k_,{enhancer:c_}),I_=ep(j_,{enhancer:f_}),TA=Si(l0);function wg(r){return r.deep===!0?zu:r.deep===!1?$g:q_(r.defaultDecorator)}function Y_(r){var i;return r?(i=r.defaultDecorator)!=null?i:MA(r):void 0}function q_(r){var i,u;return r&&(i=(u=r.options_)==null?void 0:u.enhancer)!=null?i:zu}function RA(r,i,u){if(Kd(i))return l0.decorate_20223_(r,i);if(Bu(i)){Qd(r,i,l0);return}return WA(r)?r:ll(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)}mA(RA,TA);var V_={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?Gx:Rx)(i,wg(o),o.name)},map:function(i,u){var o=Eg(u);return new eb(i,wg(o),o.name)},set:function(i,u){var o=Eg(u);return new tb(i,wg(o),o.name)},object:function(i,u,o){return ms(function(){return XA(Se.useProxies===!1||o?.proxy===!1?Iu({},o):Ox({},o),i,u)})},ref:Si(H_),shallow:Si(G_),deep:TA,struct:Si(I_)},Bn=mA(RA,V_),NA="computed",Q_="computed.struct",s0=T0(NA),K_=T0(Q_,{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(ll(i))return Si(T0(NA,i));var o=ll(u)?u:{};return o.get=i,o.name||(o.name=i.name||""),new Hr(o)};Object.assign(tp,s0);tp.struct=Si(K_);var l1,s1,Gg=0,Z_=1,X_=(l1=(s1=jg(function(){},"name"))==null?void 0:s1.configurable)!=null?l1:!1,u1={value:"action",configurable:!0,writable:!1,enumerable:!1};function Uu(r,i,u,o){u===void 0&&(u=!1);function h(){return DA(r,u,i,o||this,arguments)}return h.isMobxAction=!0,h.toString=function(){return i.toString()},X_&&(u1.value=r,xi(h,"name",u1)),h}function DA(r,i,u,o,h){var m=P_(r,i);try{return u.apply(o,h)}catch(p){throw m.error_=p,p}finally{J_(m)}}function P_(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),O={runAsAction_:b,prevDerivation_:p,prevAllowStateChanges_:_,prevAllowStateReads_:y,notifySpy_:h,startTime_:m,actionId_:Z_++,parentActionId_:Gg};return Gg=O.actionId_,O}function J_(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_&&il(r.prevDerivation_),Se.suppressReactionErrors=!1}function W_(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),_}xA(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 _A(this.get())},u[Symbol.toPrimitive]=function(){return this.valueOf()},i})(hs),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(){nx(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(HA(this),u0(this)){var o=Se.trackingContext;this.keepAlive_&&!o&&(Se.trackingContext=this),this.trackAndCompute()&&tx(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=BA(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 fx(function(){var _=m.get();if(!p||h){var y=Hu();o({observableKind:"computed",debugObjectName:m.name_,type:Ei,object:m,newValue:_,oldValue:b}),il(y)}p=!1,b=_})},i.warnAboutUntrackedRead_=function(){},i.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},i.valueOf=function(){return _A(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 il(u),kd(i),!0}if(r.dependenciesState_===_t.STALE_)return il(u),kd(i),!0}}return zA(r),il(u),kd(i),!1}}}function BA(r,i,u){var o=R0(!0);zA(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,F_(r),kd(o),m}function F_(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&&kA(_,r),_.diffValue=0}for(;h--;){var y=u[h];y.diffValue===1&&(y.diffValue=0,ex(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--;)kA(i[u],r);r.dependenciesState_=_t.NOT_TRACKING_}function LA(r){var i=Hu();try{return r()}finally{il(i)}}function Hu(){var r=Se.trackingDerivation;return Se.trackingDerivation=null,r}function il(r){Se.trackingDerivation=r}function R0(r){var i=Se.allowStateReads;return Se.allowStateReads=r,i}function kd(r){Se.allowStateReads=r}function zA(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,UA=!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(){UA||vt(35)},1),new Rg)})();function $_(){if((Se.pendingReactions.length||Se.inBatch||Se.isRunningReactions)&&vt(36),UA=!0,Ng){var r=Jg();--r.__mobxInstanceCount===0&&(r.__mobxGlobals=void 0),Se=new Rg}}function ex(r,i){r.observers_.add(i),r.lowestObserverState_>i.dependenciesState_&&(r.lowestObserverState_=i.dependenciesState_)}function kA(r,i){r.observers_.delete(i),r.observers_.size===0&&jA(r)}function jA(r){r.isPendingUnobservation===!1&&(r.isPendingUnobservation=!0,Se.pendingUnobservations.push(r))}function dr(){Se.inBatch++}function hr(){if(--Se.inBatch===0){IA();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 HA(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&&jA(r),!1)}function GA(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 tx(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 nx(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),IA())},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=BA(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 ax=100,c0=function(i){return i()};function IA(){Se.inBatch>0||Se.isRunningReactions||c0(rx)}function rx(){Se.isRunningReactions=!0;for(var r=Se.pendingReactions,i=0;r.length>0;){++i===ax&&(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 ix(r){var i=c0;c0=function(o){return r(function(){return i(o)})}}function jd(){return!1}function lx(r){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var YA="action",sx="action.bound",qA="autoAction",ux="autoAction.bound",VA="<unnamed action>",f0=Zd(YA),ox=Zd(sx,{bound:!0}),d0=Zd(qA,{autoAction:!0}),cx=Zd(ux,{autoAction:!0,bound:!0});function QA(r){var i=function(o,h){if(jr(o))return Uu(o.name||VA,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:YA,{name:o,autoAction:r}))};return i}var Oc=QA(!1);Object.assign(Oc,f0);var Id=QA(!0);Object.assign(Id,d0);Oc.bound=Si(ox);Id.bound=Si(cx);function tl(r){return DA(r.name||VA,!1,r,this,void 0)}function Dc(r){return jr(r)&&r.isMobxAction===!0}function fx(r,i){var u,o,h,m;i===void 0&&(i=gA);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=hx(i),O=!1;_=new wi(p,function(){O||(O=!0,y(function(){O=!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 dx=function(i){return i()};function hx(r){return r.scheduler?r.scheduler:r.delay?function(i){return setTimeout(i,r.delay)}:dx}var mx="onBO",gx="onBUO";function px(r,i,u){return ZA(mx,r,i,u)}function KA(r,i,u){return ZA(gx,r,i,u)}function ZA(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 vx="never",Og="always",Ax="observed";function bx(r){r.isolateGlobalState===!0&&$_();var i=r.useProxies,u=r.enforceActions;if(i!==void 0&&(Se.useProxies=i===Og?!0:i===vx?!1:typeof Proxy<"u"),i==="ifavailable"&&(Se.verifyProxies=!0),u!==void 0){var o=u===Og?Og:u===Ax;Se.enforceActions=o,Se.allowStateChanges=!(o===!0||o===Og)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(h){h in r&&(Se[h]=!!r[h])}),Se.allowStateReads=!Se.observableRequiresReaction,r.reactionScheduler&&ix(r.reactionScheduler)}function XA(r,i,u,o){var h=n_(i);return ms(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 yx(r,i){return PA(Kg(r,i))}function PA(r){var i={name:r.name_};return r.observing_&&r.observing_.length>0&&(i.dependencies=_x(r.observing_).map(PA)),i}function _x(r){return Array.from(new Set(r))}var xx=0;function JA(){this.message="FLOW_CANCELLED"}JA.prototype=Object.create(Error.prototype);var wv=wA("flow"),Sx=wA("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=++xx,O=Oc(h+" - runid: "+y+" - init",o).apply(b,_),C,H=void 0,G=new Promise(function(U,Q){var I=0;C=Q;function ie(Ae){H=void 0;var te;try{te=Oc(h+" - runid: "+y+" - yield "+I++,O.next).call(O,Ae)}catch(de){return Q(de)}me(te)}function ce(Ae){H=void 0;var te;try{te=Oc(h+" - runid: "+y+" - yield "+I++,O.throw).call(O,Ae)}catch(de){return Q(de)}me(te)}function me(Ae){if(jr(Ae?.then)){Ae.then(me,Q);return}return Ae.done?U(Ae.value):(H=Promise.resolve(Ae.value),H.then(ie,ce))}ie(void 0)});return G.cancel=Oc(h+" - runid: "+y+" - cancel",function(){try{H&&o1(H);var U=O.return(void 0),Q=Promise.resolve(U.value);Q.then(Ec,Ec),o1(Q),C(new JA)}catch(I){C(I)}}),G};return m.isMobXFlow=!0,m},wv);Bc.bound=Si(Sx);function o1(r){jr(r.cancel)&&r.cancel()}function Yd(r){return r?.isMobXFlow===!0}function Ex(r,i){return r?lp(r)||!!r[Ze]||C0(r)||qg(r)||rp(r):!1}function WA(r){return Ex(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 wx={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 Ox(r,i){var u,o;return pA(),r=Iu(r,i),(o=(u=r[Ze]).proxy_)!=null?o:u.proxy_=new Proxy(r,wx)}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),vA(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{il(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),vA(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);il(u)}}function Mx(r,i,u){return ms(function(){var o,h=Iu(r,u)[Ze];(o=i)!=null||(i=s_(r)),Nc(i).forEach(function(m){return h.make_(m,i[m])})}),r}var Ov=Symbol("mobx-keys");function FA(r,i,u){return ll(r)?XA(r,r,i,u):(ms(function(){var o=Iu(r,u)[Ze];if(!r[Ov]){var h=Object.getPrototypeOf(r),m=new Set([].concat(Nc(r),Nc(h)));m.delete("constructor"),m.delete(Ze),Vd(h,Ov,m)}r[Ov].forEach(function(p){return o.make_(p,i&&p in i?i[p]:!0)})}),r)}var c1="splice",Ei="update",Cx=1e4,Tx={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)):rl(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 hs(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&&ib(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:c1,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 O=this.spliceItemsIntoValues_(o,h,m);return(h!==0||m.length!==0)&&this.notifyArraySplice_(o,m,O),this.dehanceValues_(O)},i.spliceItemsIntoValues_=function(o,h,m){if(m.length<Cx){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 O=0;O<_.length;O++)this.values_[o+m.length+O]=_[O];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:c1,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),O=0;O<y.length-1;O++)y[O]=void 0;y[y.length-1]=h,this.spliceWithArray_(m.length,0,y)}},r})();function Rx(r,i,u,o){return u===void 0&&(u="ObservableArray"),o===void 0&&(o=!1),pA(),ms(function(){var h=new N0(u,i,o,!1);bA(h.values_,Ze,h);var m=new Proxy(h.values_,Tx);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",$A);Qt("reduceRight",$A);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 $A(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 Nx=ju("ObservableArrayAdministration",N0);function ip(r){return Fg(r)&&Nx(r[Ze])}var Dx={},os="add",Qg="delete",eb=(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]=Dx,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),ms(function(){m.keysAtom_=SA("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),KA(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:os,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 O=h.data_.get(o);O.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,O=new Du(h,m.enhancer_,"ObservableMap.key",!1);m.data_.set(o,O),h=O.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:os,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 f1({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 f1({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(){ll(o)?t_(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)?(e_(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(){LA(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=Bx(o),p=new Map,b=!1,_=wc(h.data_.keys()),y;!(y=_()).done;){var O=y.value;if(!m.has(O)){var C=h.delete(O);if(C)b=!0;else{var H=h.data_.get(O);p.set(O,H)}}}for(var G=wc(m.entries()),U;!(U=G()).done;){var Q=U.value,I=Q[0],ie=Q[1],ce=h.data_.has(I);if(h.set(I,ie),h.data_.has(I)){var me=h.data_.get(I);p.set(I,me),ce||(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",eb);function f1(r){return r[Symbol.toStringTag]="MapIterator",B0(r)}function Bx(r){if(zc(r)||Gu(r))return r;if(Array.isArray(r))return new Map(r);if(ll(r)){var i=new Map;for(var u in r)i.set(u,r[u]);return i}else return vt(21,r)}var Lx={},tb=(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]=Lx,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)},ms(function(){m.atom_=SA(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(){LA(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:os,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:os,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 d1({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 d1({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",tb);function d1(r){return r[Symbol.toStringTag]="SetIterator",B0(r)}var h1=Object.create(null),m1="remove",nb=(function(){function r(u,o,h,m){o===void 0&&(o=new Map),m===void 0&&(m=N_),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 hs("ObservableObject.keys"),this.isPlainObject_=ll(this.target_)}var i=r.prototype;return i.getObservablePropValue_=function(o){return this.values_.get(o).get()},i.setObservablePropValue_=function(o,h){var m=this.values_.get(o);if(m instanceof 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&&!rl(this.target_,o)&&this.has_(o),this.target_[o]},i.set_=function(o,h,m){return m===void 0&&(m=!1),rl(this.target_,o)?this.values_.has(o)?this.setObservablePropValue_(o,h):m?Reflect.set(this.target_,o,h):(this.target_[o]=h,!0):this.extend_(o,{value:h,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,m)},i.has_=function(o){if(!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)}p1(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&&p1(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:os,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:os,newValue:h});if(!_)return null;h=_.newValue}var y=g1(o),O={configurable:Se.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:y.get,set:y.set};if(p){if(!Reflect.defineProperty(this.target_,o,O))return!1}else xi(this.target_,o,O);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:os,newValue:void 0});if(!b)return null}h.name||(h.name="ObservableObject.key"),h.context=this.proxy_||this.target_;var _=g1(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_,!rl(this.target_,o))return!0;if(cr(this)){var m=fr(this,{object:this.proxy_||this.target_,name:o,type:m1});if(!m)return null}try{var p;dr();var b=Ur(this),_=!1,y=this.values_.get(o),O=void 0;if(!y&&(b||_)){var C;O=(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&&(O=y.value_),GA(y)),this.keysAtom_.reportChanged(),(p=this.pendingKeys_)==null||(p=p.get(o))==null||p.set(o in this.target_),b||_){var H={type:m1,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:O,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:os,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(rl(r,Ze))return r;var o=(u=i?.name)!=null?u:"ObservableObject",h=new nb(r,new Map,String(o),Y_(i));return Vd(r,Ze,h),r}var zx=ju("ObservableObjectAdministration",nb);function g1(r){return h1[r]||(h1[r]={get:function(){return this[Ze].getObservablePropValue_(r)},set:function(u){return this[Ze].setObservablePropValue_(r,u)}})}function lp(r){return Fg(r)?zx(r[Ze]):!1}function p1(r,i,u){var o;(o=r.target_[_i])==null||delete o[u]}var Ux=rb(0),kx=(function(){var r=!1,i={};return Object.defineProperty(i,"0",{set:function(){r=!0}}),Object.create(i)[0]=1,r===!1})(),Mv=0,ab=function(){};function jx(r,i){Object.setPrototypeOf?Object.setPrototypeOf(r.prototype,i):r.prototype.__proto__!==void 0?r.prototype.__proto__=i:r.prototype=i}jx(ab,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,ms(function(){var _=new N0(m,h,p,!0);_.proxy_=b,bA(b,Ze,_),o&&o.length&&b.spliceWithArray(0,0,o),kx&&Object.defineProperty(b,"0",Ux)}),b}xA(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"}}])})(ab);Object.entries(Vg).forEach(function(r){var i=r[0],u=r[1];i!=="concat"&&Vd(D0.prototype,i,u)});function rb(r){return{enumerable:!1,configurable:!0,get:function(){return this[Ze].get_(r)},set:function(u){this[Ze].set_(r,u)}}}function Hx(r){xi(D0.prototype,""+r,rb(r))}function ib(r){if(r>Mv){for(var i=Mv;i<r+100;i++)Hx(i);Mv=r}}ib(1e3);function Gx(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 Ix(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=Ix(r):u=Kg(r)}return u.name_}function ms(r){var i=Hu(),u=np(!0);dr();try{return r()}finally{hr(),ap(u),il(i)}}var v1=Wg.toString;function lb(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=v1.call(r);if(p!==v1.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=A1(r),i=A1(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 O=o.length;O--;)if(o[O]===r)return h[O]===i;if(o.push(r),h.push(i),b){if(O=r.length,O!==i.length)return!1;for(;O--;)if(!m0(r[O],i[O],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 G=0;G<H;G++){var U=C[G];if(!(rl(i,U)&&m0(r[U],i[U],u-1,o,h)))return!1}}return o.pop(),h.pop(),!0}function A1(r){return ip(r)?r.slice():zc(r)||Gu(r)||nl(r)||yi(r)?Array.from(r.entries()):r}var b1,Yx=((b1=Jg().Iterator)==null?void 0:b1.prototype)||{};function B0(r){return r[Symbol.iterator]=qx,Object.assign(Object.create(Yx),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:lx,extras:{getDebugName:h0},$mobx:Ze});if(!$.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Mx)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var Vx=G1();function Qx(r){r()}function Kx(r){r||(r=Qx),bx({reactionScheduler:r})}function Zx(r){return yx(r)}var Xx=1e4,Px=1e4,Jx=(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=Xx),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,Px))}}),r})(),Wx=typeof FinalizationRegistry<"u"?FinalizationRegistry:Jx,qd=new Wx(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 y1;function Fx(){if(y1)return Tv;y1=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 G=H(),U=o({inst:{value:G,getSnapshot:H}}),Q=U[0].inst,I=U[1];return m(function(){Q.value=G,Q.getSnapshot=H,_(Q)&&I({inst:Q})},[C,G,H]),h(function(){return _(Q)&&I({inst:Q}),C(function(){_(Q)&&I({inst:Q})})},[C]),p(G),G}function _(C){var H=C.getSnapshot;C=C.value;try{var G=H();return!u(C,G)}catch{return!0}}function y(C,H){return H()}var O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:b;return Tv.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:O,Tv}var _1;function $x(){return _1||(_1=1,Cv.exports=Fx()),Cv.exports}var e4=$x();function x1(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 t4(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 qd.unregister(o),o.onStoreChange=b,o.reaction||(x1(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||(x1(h),qd.register(u,h,h)),P.useDebugValue(h.reaction,Zx),e4.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,sb=typeof Symbol=="function"&&Symbol.for,n4=(Nv=(Rv=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Rv===void 0?void 0:Rv.configurable)!==null&&Nv!==void 0?Nv:!1,S1=sb?Symbol.for("react.forward_ref"):typeof $.forwardRef=="function"&&$.forwardRef(function(r){return null}).$$typeof,E1=sb?Symbol.for("react.memo"):typeof $.memo=="function"&&$.memo(function(r){return null}).$$typeof;function a4(r,i){var u;if(E1&&r.$$typeof===E1)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(S1&&r.$$typeof===S1&&(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 t4(function(){return h(b,_)},m)};return p.displayName=r.displayName,n4&&Object.defineProperty(p,"name",{value:r.name,writable:!0,configurable:!0}),r.contextTypes&&(p.contextTypes=r.contextTypes),o&&(p=$.forwardRef(p)),p=$.memo(p),i4(r,p),p}var r4={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function i4(r,i){Object.keys(r).forEach(function(u){r4[u]||Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(r,u))})}var Dv;Kx(Vx.unstable_batchedUpdates);Dv=qd.finalizeAllImmediately;function l4(r,i){if(w1(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])||!w1(r[u[h]],i[u[h]]))return!1;return!0}function w1(r,i){return r===i?r!==0||1/r===1/i:r!==r&&i!==i}var O1=Symbol("patchMixins"),ub=Symbol("patchedDefinition");function s4(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 M1(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 C1(r,i){var u=function(){for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];M1.call.apply(M1,[this,r,i].concat(m))};return u}function u4(r,i,u){var o=s4(r,i);o.methods.indexOf(u)<0&&o.methods.push(u);var h=Object.getOwnPropertyDescriptor(r,i);if(!(h&&h[ub])){var m=r[i],p=ob(r,i,h?h.enumerable:void 0,o,m);Object.defineProperty(r,i,p)}}function ob(r,i,u,o,h){var m,p=C1(h,o);return m={},m[ub]=!0,m.get=function(){return p},m.set=function(_){if(this===r)p=C1(_,o);else{var y=ob(this,i,u,o,_);Object.defineProperty(this,i,y)}},m.configurable=!0,m.enumerable=u,m}var T1=Symbol("ObserverAdministration"),R1=Symbol("isMobXReactObserver");function g0(r){var i;return(i=r[T1])!=null?i:r[T1]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:p0(r.constructor),state:void 0,props:void 0,context:void 0}}function o4(r){var i=r.prototype;if(r[R1]){var u=p0(r);throw new Error("The provided component class ("+u+") has already been declared as an observer component.")}else r[R1]=!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=N1;else if(i.shouldComponentUpdate!==N1)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:c4.call(this,o)}),this.render()};var m=i.componentDidMount;return i.componentDidMount=function(){var p=this,b=g0(this);return b.mounted=!0,qd.unregister(this),b.forceUpdate=function(){return p.forceUpdate()},(!b.reaction||b.reactionInvalidatedBeforeMount)&&b.forceUpdate(),m?.apply(this,arguments)},u4(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 c4(r){var i=r.bind(this),u=g0(this);function o(){u.reaction||(u.reaction=f4(u),u.mounted||qd.register(this,u,this));var h=void 0,m=void 0;if(u.reaction.track(function(){try{m=W_(!1,i)}catch(p){h=p}}),h)throw h;return m}return o}function f4(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 N1(r,i){return this.state!==i?!0:!l4(this.props,r)}function ul(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)?o4(r):a4(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 cb=$.createRef(),L0=r=>{cb.current?.show(r)},d4=$.forwardRef((r,i)=>{const[u,o]=$.useState(null);return $.useImperativeHandle(i,()=>({show:h=>{o(h)}})),R.jsx(iA,{opened:!!u,onBackdropClick:()=>o(null),title:u?.title,content:u?.content,buttons:R.jsx("div",{children:u?.buttons.map(h=>R.jsx(lA,{onClick:()=>{h.onClick?.(),o(null)},children:h.text},h.text))})})});var fb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},D1=P.createContext&&P.createContext(fb),h4=["attr","size","title"];function m4(r,i){if(r==null)return{};var u=g4(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 g4(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 B1(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?B1(Object(u),!0).forEach(function(o){p4(r,o,u[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):B1(Object(u)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(u,o))})}return r}function p4(r,i,u){return i=v4(i),i in r?Object.defineProperty(r,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[i]=u,r}function v4(r){var i=A4(r,"string");return typeof i=="symbol"?i:i+""}function A4(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 db(r){return r&&r.map((i,u)=>P.createElement(i.tag,Xg({key:u},i.attr),db(i.child)))}function tn(r){return i=>P.createElement(b4,Zg({attr:Xg({},r.attr)},i),db(r.child))}function b4(r){var i=u=>{var{attr:o,size:h,title:m}=r,p=m4(r,h4),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 D1!==void 0?P.createElement(D1.Consumer,null,u=>i(u)):i(fb)}function y4(r){return tn({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 _4(r){return tn({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 x4(r){return tn({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 tn({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 S4{constructor(){FA(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 Le=new S4,v0=$.createRef(),E4=$.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)})),R.jsx(dA,{opened:u,onBackdropClick:()=>o(!1),children:R.jsxs(fs,{className:"ios:bg-white ios:dark:bg-stone-900 ",children:[R.jsx(Rc,{title:"Быстрый ответ",right:R.jsx(Nu,{iconOnly:!0,onClick:()=>o(!1),children:R.jsx(sp,{size:24})})}),R.jsxs(cs,{outline:!0,dividers:!0,children:[R.jsx(Hd,{value:h.name,onChange:p=>m(b=>({...b,name:p.target.value})),title:"Название",placeholder:"Введите название"}),R.jsx(Hd,{value:h.text,onChange:p=>m(b=>({...b,text:p.target.value})),inputClassName:"!h-20 resize-none",type:"textarea",title:"Текст быстрого ответа",placeholder:"Введите текст быстрого ответа"})]}),R.jsxs(E0,{className:"flex items-center justify-center gap-2",children:[R.jsx(zr,{disabled:!h.name||!h.text,onClick:()=>{Pt.mFastAnswers({id:h._id,name:h.name,text:h.text}).then(({result:p})=>{Le.loadFastAnswers(),o(!1)})},children:"Сохранить"}),!!h._id&&R.jsxs(zr,{outline:!0,onClick:()=>{L0({title:"Удалить быстрый ответ?",content:"Вы уверены, что хотите удалить этот быстрый ответ?",buttons:[{text:"Удалить",onClick:()=>{ay({delete:!0,id:h._id}).then(({result:p})=>{Le.loadFastAnswers(),o(!1)})}},{text:"Отмена",onClick:()=>{}}]})},children:[R.jsx(y4,{size:24})," Удалить"]})]})]})})});function hb(r){return tn({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 mb(r){return tn({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 gb(r){return tn({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 w4=({onCancel:r,onSend:i})=>{const[u,o]=$.useState(0),h=$.useRef(null),m=$.useRef(null),p=$.useRef(null),b=$.useRef(null),_=$.useRef([]),[y,O]=$.useState(!1);$.useEffect(()=>{setTimeout(()=>{O(!0)},500)},[]);const C=$.useRef(!1);$.useEffect(()=>C.current?void 0:(C.current=!0,(async()=>{try{const I=await navigator.mediaDevices.getUserMedia({audio:!0});p.current=I;const ie=new MediaRecorder(I,{mimeType:"audio/webm"});ie.ondataavailable=ce=>_.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(I){console.error("🎙 Не удалось получить доступ к микрофону",I),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)},G=()=>{m?.current?.stop(),p.current?.getTracks().forEach(Q=>Q.stop()),b.current&&clearInterval(b.current),r()},U=Q=>`${Math.floor(Q/60)}:${(Q%60).toString().padStart(2,"0")}`;return R.jsx(hA,{backdrop:!0,className:"pb-safe ",onBackdropClick:G,opened:y,children:R.jsxs("div",{className:"flex  items-start space-x-4 justify-center py-8 ",children:[R.jsx("div",{onClick:G,className:" bg-gray-600 text-white p-6 rounded-full",children:R.jsx(sp,{size:36})}),R.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[R.jsx("div",{className:"animate-pulse bg-red-600 p-6 rounded-full",children:R.jsx(gb,{className:"text-white",size:36})}),R.jsx("div",{className:"dark:text-white text-black text-xl",children:U(u)})]}),R.jsx("div",{className:" bg-green-600 text-white  p-6 rounded-full",onClick:H,children:R.jsx(hb,{size:36})})]})})},pb=$.createRef(),vb=$.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?R.jsx(w4,{onCancel:()=>{h.current?.onClose(),o(!1),h.current=null},onSend:m=>{h.current?.onSend(m),o(!1),h.current=null}}):null});vb.displayName="RecordingSheetRoot";const Ab=$.createRef(),bb=r=>{Ab.current?.show(r)},O4=$.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]),R.jsx(fA,{opened:!!u,onClick:()=>{o(null)},text:u,button:!0})}),M4=window.location.hostname==="localhost"||window.location.port=="8888",C4=()=>{if(M4)return"http://localhost:8888/chat/support";let r=window.location.href;return r=r.split("#")[0],r=r.split("?")[0],r},T4="data:audio/mpeg;base64, ",R4=5e3,N4=new Audio(T4);class D4{channelID=void 0;channel=null;joinInChannel=null;messagesList=[];messagesLoading=!1;messagesLastMaxUpdated=null;loadMessagesPollingInterval=null;replyMsg=null;sending=!1;messageText="";recording=!1;constructor(){FA(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==Le.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==Le.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!=Le.userID&&N4.play()),this.messagesList=m,this.messagesLastMaxUpdated=o?.lastMaxUpdated??null})}))})},R4))}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 Te=new D4,z0="data:image/jpeg;base64, ";function B4(r){return tn({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)}const L1=["🦁","🐯","🦅","🦉","🦄","🐎","🦌","🐺","🐆","🦢","🐬","🐳","🦖","🦕","🐉","😎","🙂","😊","🧐","🤓","🤖","👾","🐱","🦊","🐻","🐼","🐨","🐯","🦁","🐸","🐙","🐶","🐱","🐰","🐻","🐼","🐨"],yb=r=>{let i=0;for(let o=0;o<r.length;o++)i=r.charCodeAt(o)+((i<<5)-i);const u=Math.abs(i)%L1.length;return L1[u]},z1=new Map,L4=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},z4=({src:r,barsCount:i=30,cacheKey:u,barColor:o})=>{const h=$.useRef(null),[m,p]=$.useState(!1),[b,_]=$.useState(0),[y,O]=$.useState(0),[C,H]=$.useState([]);$.useEffect(()=>{const I=u??r,ie=z1.get(I);if(ie&&ie.length===i){H(ie);return}const ce=L4(i);z1.set(I,ce),H(ce)},[i,u,r]),$.useEffect(()=>{const I=h.current;if(!I)return;const ie=()=>{I.duration&&_(I.currentTime/I.duration*100)},ce=()=>{O(I.duration||0)};return I.addEventListener("timeupdate",ie),I.addEventListener("loadedmetadata",ce),I.addEventListener("ended",()=>p(!1)),()=>{I.removeEventListener("timeupdate",ie),I.removeEventListener("loadedmetadata",ce)}},[]);const G=()=>{const I=h.current;I&&(m?I.pause():I.play(),p(!m))},U=I=>{const ie=h.current;if(!ie||!y)return;const ce=I/C.length*y;ie.currentTime=ce},Q=Math.floor(b/100*C.length);return R.jsxs("div",{className:"flex items-end  mt-4",onClick:I=>{I.preventDefault(),I.stopPropagation()},children:[R.jsx("audio",{ref:h,src:r,preload:"metadata"}),R.jsx("div",{children:R.jsx("div",{onClick:I=>{I.preventDefault(),I.stopPropagation(),G()},className:"mr-1",children:m?R.jsx(_4,{size:28}):R.jsx(x4,{size:28})})}),R.jsx("div",{className:"flex items-end space-x-1 flex-1  cursor-pointer overflow-hidden",children:C.map((I,ie)=>R.jsx("div",{onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),U(ie)},className:`w-[2px] rounded-sm transition-colors duration-200  ${ie<=Q?"opacity-100":"opacity-50"}`,style:{height:`${I}px`,backgroundColor:o}},ie))})]})};function U4(r){return tn({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 k4(r){return tn({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 j4(r){return tn({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 U1(r){return tn({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 k1(r){return tn({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 H4(r){return tn({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 U0=({doc:r,size:i=40,className:u=""})=>{const o=r?.type;if(!o)return R.jsx(k1,{size:i,className:u});const h={image:k4,audio:U4,video:H4,"application/pdf":j4,"application/zip":U1,"application/x-zip-compressed":U1};if(h[o]){const p=h[o];return R.jsx(p,{size:i,className:u})}const m=o.split("/")[0];if(m=="image")return R.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 R.jsx(p,{size:i,className:u})}return R.jsx(k1,{size:i,className:u})},_b=({msg:r,onClick:i})=>{const u=!!r.deleted;return R.jsx("div",{className:"mb-2 mt-2 border-l-2 border-gray-500 pl-2",children:R.jsx("div",{onClick:o=>{o.stopPropagation(),i()},id:`replay-msg-${r._id}`,children:u?R.jsx(R.Fragment,{children:R.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[R.jsx(mb,{className:"w-4 h-4"})," Сообщение удалено"]})}):R.jsxs(R.Fragment,{children:[R.jsx("div",{children:r.text}),r.voice?.url&&R.jsx("div",{className:"text-sm ",children:"Аудио сообщение"}),r.attachments?.map(o=>R.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[R.jsx(U0,{doc:o}),R.jsx("div",{children:o.name})]}))]})})})};sl.locale("ru");const xb=[{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"}],G4=r=>{const i=xb.find(u=>u.value===r);return i?i.name:""},I4=({onReplayClick:r,msg:i,onClick:u,onChange:o})=>{const h=O=>{Pt.channelReaction({message:i._id,channel:i.channel,reaction:O}).then(()=>{o()})},m=()=>{if(!i.reactions||i.reactions.length==0)return null;const O=P0.groupBy(i.reactions,C=>C.type);return R.jsx("div",{className:"flex items-center space-x-1 mt-2",children:P0.map(O,(C,H)=>R.jsx(w0,{onClick:G=>{G.stopPropagation(),h(H)},media:R.jsx("div",{className:"ml-2",children:G4(H)}),className:"m-1 cursor-pointer",children:R.jsx("span",{className:"font-medium",children:C.length})},H))})},p=b0.shmChannelMessagesByID(i.reply),b=!!i.deleted;if(i.type=="system")return R.jsx("div",{className:"text-sm  text-center p-6 opacity-70",children:i.text});const y=document.body.classList.contains("dark");return R.jsx(R.Fragment,{children:R.jsx(O0,{onClick:()=>{b||u()},type:i.owner!=Le.userID?"received":"sent",text:b?R.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[R.jsx(mb,{className:"w-4 h-4"})," Сообщение удалено"]}):R.jsxs("div",{id:`msg-${i._id}`,children:[!!p&&R.jsx(_b,{msg:p,onClick:()=>{p&&r(p)}}),R.jsx("div",{children:i.text}),i.voice?.url&&R.jsx(z4,{barColor:y?i.owner==Le.userID?"#000":"#fff":i.owner==Le.userID?"#fff":"#000",src:i.voice?.url,cacheKey:i._id}),i.attachments?.map(O=>R.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[R.jsx(U0,{doc:O}),R.jsx("div",{children:O.name}),R.jsx("div",{onClick:C=>{C.stopPropagation(),window.open(O.url,"_blank")},children:R.jsx(B4,{})})]})),R.jsx(m,{})]}),footer:R.jsx("div",{children:i.created_at&&sl.unix(i.created_at).format("DD.MM hh:mm")}),avatar:i.owner!=Le.userID&&R.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:yb(i.owner??"")})},i._id)})},Y4=({msg:r,onClick:i,onPin:u})=>R.jsxs("div",{className:"mb-2 mt-2 border-l-2 w-full border-gray-500 pl-2  flex justify-between items-center",children:[R.jsxs("div",{className:"active:opacity-50 cursor-pointer",onClick:o=>{o.stopPropagation(),i()},id:`pin-msg-${r._id}`,children:[R.jsx("div",{children:r.text}),r.voice?.url&&R.jsx("div",{className:"text-sm text-gray-500",children:"Аудио сообщение"}),r.attachments?.map(o=>R.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[R.jsx(U0,{doc:o}),R.jsx("div",{children:o.name})]}))]}),R.jsx("div",{className:"cursor-pointer active:opacity-50 p-2",onClick:o=>{o.stopPropagation(),u()},children:R.jsx(sp,{})})]});function q4(r){return tn({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 j1(r){return tn({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 V4(r){return tn({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 Q4(r){return tn({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 K4(r){return tn({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)}const Z4=r=>{r&&(navigator.clipboard.writeText(r),bb("Текст сообщения скопирован в буфер обмена"))},X4=$.forwardRef((r,i)=>{const[u,o]=$.useState(null),h=$.useRef(null);$.useImperativeHandle(i,()=>({open:G=>{p(!0),o(G.msg),h.current=G}}));const[m,p]=$.useState(!1),b=()=>{C(!1),p(!1)},_=G=>{b(),Pt.channelReaction({channel:u?.channel,message:u?._id,reaction:G}).then(()=>{h.current?.onChange?.()})},y=()=>{const G=u?.reactions?.find(U=>U.user==Le.userID);return R.jsx(cs,{nested:!0,outline:!0,dividers:!0,children:xb.map((U,Q)=>R.jsx(Yn,{title:`${U.label}`,media:R.jsx("div",{className:"ml-2",children:U.name}),link:!0,chevron:!1,after:G?.type==U.value?R.jsx(q4,{className:"w-4 h-4"}):null,onClick:()=>{_(U.value)}}))})},[O,C]=$.useState(!1),H=u?.owner==Le.userID;return!m||!u?._id?null:O?R.jsx(Gd,{opened:m&&!!u?._id,target:`#msg-${u?._id}`,onBackdropClick:b,className:"w-[300px]",children:R.jsx(y,{})}):R.jsx(Gd,{opened:m&&!!u?._id,target:`#msg-${u?._id}`,onBackdropClick:b,children:R.jsxs(cs,{nested:!0,outline:!0,dividers:!0,children:[R.jsx(Yn,{title:"Реакции",link:!0,onClick:()=>{C(!O)}}),R.jsx(Yn,{title:"Ответить",link:!0,onClick:()=>{u&&(h.current?.onReply?.(u),b())}}),!!u.text&&R.jsx(Yn,{title:"Копировать текст",link:!0,onClick:()=>{u&&(Z4(u.text),b())}}),R.jsx(Yn,{title:u?.pinned?.enabled?"Убрать закрепление":"Закрепить",link:!0,onClick:()=>{u&&(h.current?.onPinned?.(),b())}}),H&&R.jsx(Yn,{title:R.jsx("span",{className:"text-red-500",children:"Удалить"}),link:!0,onClick:()=>{u&&(h.current?.onDelete?.(),b())}})]})})}),P4=()=>R.jsx(R.Fragment,{children:[1,2,3,4].map(r=>R.jsx(O0,{className:"animate-pulse",type:r%2==0?"received":"sent",text:"▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒"},r))}),J4=300,W4=ul(()=>{const r=$.useRef(null),i=$.useRef(null),u=$.useRef(null),o=()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{u.current=null,requestAnimationFrame(()=>{r.current&&r.current.scrollTo({top:r.current.scrollHeight,behavior:"smooth"})})},J4)};$.useEffect(()=>(Te.channel?._id&&(Te.loadMessages(),Te.channel?.closed?Te.stopMessagesPolling():Te.startMessagesPolling(o)),()=>{Te.stopMessagesPolling(),u.current&&clearTimeout(u.current)}),[Te.channel?._id,Te.channel?.closed]),$.useEffect(()=>{Te.messagesList?.length&&r.current&&o()},[Te.messagesList?.length]);const h=m=>{if(!m){console.warn("Не указан ID сообщения для скрола");return}let b=document.getElementById(`msg-${m}`)?.parentElement?.parentElement?.parentElement?.parentElement?.offsetTop;b&&r.current?setTimeout(()=>{b&&r.current&&r.current.scrollTo({top:b-100,behavior:"smooth"})},100):console.warn(`Не найден элемент с ID msg-${m}`)};return R.jsxs(R.Fragment,{children:[!!Te.pinnedMessage&&R.jsx(cA,{top:!0,children:R.jsx(Y4,{onPin:()=>{Pt.pinnedMessage({message:Te.pinnedMessage._id}).then(()=>{Te.loadMessages()})},onClick:()=>{h(Te.pinnedMessage._id)},msg:Te.pinnedMessage})}),R.jsxs("div",{ref:r,className:"overflow-y-scroll h-screen scroll-smooth",children:[R.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-10",style:{background:`url(${z0})`}}),R.jsxs("div",{className:"flex flex-col relative z-1 px-4 mb-48",children:[Te.messagesLoading&&!Te.messagesList?.length&&R.jsx(P4,{}),Te.messagesList?.map(m=>R.jsx(I4,{onReplayClick:p=>{h(p._id)},onClick:()=>{i.current?.open({msg:m,onChange:()=>{Te.loadMessages()},onPinned:()=>{Pt.pinnedMessage({message:m._id}).then(()=>{Te.loadMessages()})},onDelete:()=>{Pt.channelDeleteMessage({message:m._id,channel:Te.channel?._id}).then(()=>{Te.loadMessages()})},onReply:p=>{Te.setReplyMsg(p)}})},onChange:()=>{Te.loadMessages()},msg:m},m._id)),!Te.channel?.closed&&Te.channel?.type=="support"&&Te.channel?.members?.find(m=>m.owner==Le.userID)&&R.jsx("div",{onClick:()=>{L0({title:"Вы уверены?",content:"Вы уверены, что хотите закрыть обращение?",buttons:[{text:"Закрыть обращение",onClick:()=>{Pt.channelClose({channel:Te.channel?._id}).then(()=>{Te.loadMessages(),Te.refreshChannel()})}},{text:"Отмена",onClick:()=>{}}]})},className:"flex justify-center items-center cursor-pointer active:opacity-50 mt-2",children:R.jsx(w0,{children:"Закрыть обращение"})})]}),R.jsx(X4,{ref:i})]})]})});function F4(r){return tn({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 $4(r){return tn({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 eS="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 tS(){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 nS=new Audio(eS),aS=ul(()=>{const r=Te.channel?._id??"",i=$.useRef(null),[u,o]=$.useState(!1),h=$.useRef(null),m=()=>{Te.sending||tS().then(y=>{y&&p(y)})},p=y=>{const O=new FormData;O.append("file",y),Te.setSending(!0),Pt.channelDocumentUpload(O).then(C=>{if(!C||!r){Te.setSending(!1);return}Te.sendMessage({attachments:[C],channel:r})}).catch(()=>Te.setSending(!1))},b=y=>{r&&Te.sendMessage({...y,channel:r}).then(()=>{nS.play(),y.text&&i.current&&(i.current.style.height="auto")})},_=()=>{Te.sending||(Te.messageText?b({text:Te.messageText}):pb.current?.open({onClose:()=>{},onSend:y=>{const O=new FormData;O.append("file",y,"audio.webm"),Te.setSending(!0),Pt.channelVoiceUpload(O).then(C=>{C?._id&&r?b({voice:{_id:C._id}}):Te.setSending(!1)}).catch(()=>Te.setSending(!1))}}))};return R.jsxs(R.Fragment,{children:[R.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:[Te.sending&&R.jsx("div",{className:"flex items-center justify-center w-full  mb-2",children:R.jsx(M0,{className:"w-4 h-4 text-gray-800 dark:text-white"})}),Te.replyMsg&&R.jsx(_b,{onClick:()=>{Te.sending||Te.setReplyMsg(null)},msg:Te.replyMsg}),R.jsxs("div",{className:"w-full  flex",children:[R.jsxs("div",{className:"flex items-end",children:[Le.mode=="full"&&R.jsx("div",{onClick:()=>{o(!0)},ref:h,className:"p-2 flex items-center justify-center min-h-11 cursor-pointer active:opacity-50",children:R.jsx(V4,{size:20,className:"text-gray-500"})}),R.jsx("div",{className:"p-2 flex items-center justify-center min-h-11 cursor-pointer active:opacity-50",children:R.jsx("div",{onClick:()=>{m()},children:R.jsx(F4,{className:"text-gray-500",size:20})})})]}),R.jsx("textarea",{ref:i,value:Te.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(Te.sending)return;const O=y.currentTarget;O.style.height="auto",O.style.height=`${O.scrollHeight}px`;let C=y.target?.value;C.trim()===""&&(C=""),Te.setMessageText(C)},placeholder:"Введите сообщение..."}),R.jsx("div",{className:"flex items-end w-10 ",children:R.jsx("div",{onClick:()=>{_()},className:"p-2 flex items-center justify-center min-h-11 relative",children:Te.messageText?R.jsxs(R.Fragment,{children:[R.jsx("input",{onFocus:()=>{i.current?.focus()},className:"absolute opacity-0  right-0 left-0 top-0 bottom-0  cursor-pointer"}),R.jsx(hb,{size:28,className:"w-6"})]}):R.jsx(gb,{size:28,className:"w-6"})})})]})]}),R.jsx(Gd,{className:"w-[300px]",opened:u,target:h.current,onBackdropClick:()=>o(!1),children:R.jsxs(cs,{nested:!0,outline:!0,dividers:!0,children:[Le.fastAnswers.map(y=>R.jsx(Yn,{title:y.name,link:!0,chevron:!1,onClick:()=>{y.text&&Te.setMessageText(y.text),o(!1)},after:R.jsx(Nu,{onClick:O=>{O.stopPropagation(),o(!1),v0.current?.open(y)},children:R.jsx($4,{size:24})})})),R.jsx(Yn,{media:R.jsx(K4,{size:20}),title:"Добавить быстрый ответ",link:!0,chevron:!1,onClick:()=>{v0.current?.open(),o(!1)}})]})})]})});sl.locale("ru");const rS=ul(({noPage:r})=>{const i=({children:u})=>r?R.jsx("div",{className:"relative w-full h-full",children:u}):R.jsx(fs,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden",children:u});return $.useEffect(()=>{Le.loadFastAnswers()},[]),R.jsx(R.Fragment,{children:R.jsxs(i,{children:[!Le.cap&&R.jsx(Rc,{centerTitle:!0,outline:!0,title:Te.channel?.name?Te.channel?.name:"Диалог",right:Le.isMobile()&&R.jsx(R.Fragment,{children:R.jsx(Nu,{onClick:()=>{vS()},children:R.jsx(sp,{size:24})})})}),!Te.channel?.closed&&Te.joinInChannel!=null&&!!Te.channel?._id&&R.jsx(R.Fragment,{children:Te.joinInChannel?R.jsx(aS,{}):Le.mode=="full"?R.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:[" ",R.jsx(zr,{onClick:()=>{Te.channel?._id&&Pt.joinChannel({channel:Te.channel._id}).then(({result:u})=>{u&&Te.updateChannelInfo()})},children:"Присоединиться"})]}):null}),R.jsx(W4,{})]})})}),iS=({noPage:r,channelID:i})=>($.useEffect(()=>(Te.openChannel(i),()=>Te.stopMessagesPolling()),[i]),R.jsx(rS,{noPage:r})),Sb=ul(iS);sl.locale("ru");const lS=()=>{const r=async()=>{let i=await Pt.mode();if(i.result=="widget"){Ht.setToken(()=>new URLSearchParams(window.location.search).get("token")??null);const o=new URLSearchParams(window.location.search).get("channel");Le.loadUser().then(()=>{if(o){Le.setIsFixedChannel(!0),Mc().ChannelPage.move({channelID:o});return}else Mc().MainPage.move({}),Le.setIsFixedChannel(!1)})}else Ht.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),Ht.setToken(()=>localStorage.getItem("token")??null),Ht.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),Le.setMode(i.result??"full"),localStorage.getItem("token")?Le.loadUser().then(()=>{Mc().MainPage.move({})}):Mc().LoginPage.move({})};return $.useEffect(()=>{r()},[]),R.jsx(fs,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden flex items-center justify-center",children:R.jsx(M0,{})})},sS=ul(lS);function uS(r){return tn({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 oS(r){return tn({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 cS(r){return tn({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)}sl.locale("ru");const fS=()=>{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=R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:"flex flex-col items-center pt-8 md:pt-12 pb-6 px-6",children:[R.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:R.jsx(cS,{className:"w-8 h-8 md:w-10 md:h-10 text-white"})}),R.jsx("h1",{className:"text-xl md:text-2xl font-semibold text-black dark:text-white",children:"Доступ к диалогам"}),R.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1 text-center",children:"Введите данные для входа в аккаунт"})]}),R.jsxs(cs,{dividers:!0,outline:!0,className:"ios:mx-4 rounded-xl overflow-hidden",children:[R.jsx(Hd,{label:"Логин",placeholder:"Введите логин",value:r,onChange:y=>i(y.target.value)}),R.jsx(Hd,{label:"Пароль",type:"password",placeholder:"Введите пароль",value:u,onChange:y=>o(y.target.value)})]}),R.jsx(E0,{className:"px-4 md:px-6 py-6",children:R.jsx(zr,{disabled:!r||!u||h,large:!0,rounded:!0,className:"!rounded-xl font-medium",onClick:p,children:h?R.jsx(oS,{className:"animate-spin w-6 h-6"}):"Войти"})})]});return Le.isMobile()?R.jsxs(fs,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden",children:[R.jsx(Rc,{title:"Вход",large:!0,centerTitle:!0,outline:!0}),b]}):R.jsxs(fs,{className:"ios:bg-transparent dark:bg-transparent overflow-hidden min-h-screen flex items-center justify-center p-4",children:[R.jsx("div",{className:"absolute inset-0 bg-cover bg-center opacity-[0.06] dark:opacity-[0.04] pointer-events-none",style:{backgroundImage:`url(${z0})`}}),R.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"}),R.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})]})},dS=ul(fS),Bv=({className:r})=>R.jsx("div",{className:`w-full  bg-gray-200 dark:bg-gray-800 animate-pulse ${r}`});sl.locale("ru");const hS=({message:r})=>r?.deleted?"Удалено":r?r?.text?r?.text:r.attachments?.length?"Прикрепленные файлы":r?.voice?.url?"Аудио сообщение":"...":"...",mS=({selectChannelID:r,channelTab:i,onSelectChannel:u})=>($.useEffect(()=>(Le.loadChannelList(),Le.startChannelListPolling(),()=>Le.stopChannelListPolling()),[i]),R.jsx(cs,{strong:!0,outline:!0,children:Le.dialogsLoading?R.jsx("div",{children:[1,2,3,4].map(()=>R.jsx(Yn,{className:"relative",link:!0,chevron:!1,title:R.jsx(Bv,{className:"w-full h-4"}),header:R.jsx(Bv,{className:"w-10 h-4"}),text:R.jsx(Bv,{className:"w-full h-4"}),media:R.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 "})}))}):Le.channelList.length?Le.channelList.map(o=>{const h=b0.shmChannelMessagesByID(o.lastMessage),m=o.unreadCounts?.[Le.userID]??0;return R.jsx(R.Fragment,{children:R.jsx(Yn,{className:"relative",style:{opacity:o.closed?.5:1},after:m?R.jsx(rA,{children:m}):void 0,link:!0,onClick:()=>{o._id&&u(o)},chevron:!1,title:o.name?o.name:"Без имени",header:o.closed?"Диалог закрыт":void 0,text:R.jsx(hS,{message:h}),footer:o.created_at?sl.unix(o.created_at).format("DD.MM.YYYY HH:mm"):"",media:R.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==Le.userID?null:R.jsx("div",{children:yb(p.owner??"")}))}),children:!Le.isMobile()&&r===o._id&&R.jsx("div",{className:"absolute top-0 left-0 w-full h-full pointer-events-none",style:{backgroundColor:"var(--k-color-primary)",opacity:.1}})})})}):R.jsx("div",{className:"py-10 opacity-50",children:R.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[R.jsx(Q4,{size:24}),R.jsx("div",{className:"text-sm mt-2",children:"Нет диалогов"})]})})})),H1=ul(mS);sl.locale("ru");const gS=()=>{const r=()=>{L0({title:"Вы уверены?",content:"Вы уверены, что хотите выйти из аккаунта?",buttons:[{text:"Выйти",onClick:()=>{localStorage.clear(),window.location.reload()}},{text:"Отмена",onClick:()=>{}}]})},[i,u]=$.useState(!1),o=$.useRef(null);return Le.isMobile()?R.jsxs(fs,{className:"ios:bg-white ios:dark:bg-stone-900 ",children:[!Le.cap&&R.jsx(Rc,{title:"Диалоги",right:Le.mode=="full"&&R.jsx(Nu,{onClick:()=>{r()},children:R.jsx(j1,{size:24})}),subnavbar:R.jsxs("div",{className:"flex items-center w-full",children:[R.jsx(zr,{rounded:!0,className:"rounded-r-none",smallMaterial:!0,tonal:Le.channelTab!=="member",onClick:()=>Le.setChannelTab("member"),children:"Активные"}),R.jsx(zr,{rounded:!0,className:"rounded-l-none",smallMaterial:!0,tonal:Le.channelTab!=="join",onClick:()=>Le.setChannelTab("join"),children:"Новые"})]})}),R.jsx(H1,{selectChannelID:Le.selectChannel?._id??null,channelTab:Le.channelTab,onSelectChannel:h=>{Le.setSelectChannel(h),h?._id&&Mc().ChannelPage.move({channelID:h._id})},selectChannel:Le.selectChannel})]}):R.jsxs(fs,{className:"ios:bg-white ios:dark:bg-stone-900 overflow-hidden flex items-center justify-center",children:[R.jsxs("div",{className:"flex h-screen w-full overflow-hidden",children:[R.jsxs("div",{className:"w-[400px]  flex-shrink-0 overflow-y-scroll border-r border-gray-200 dark:border-gray-800 ",children:[R.jsx(Rc,{centerTitle:!0,outline:!0,title:"Диалоги",left:R.jsx(Nu,{ref:o,onClick:()=>{u(!0)},children:R.jsx(uS,{})}),right:Le.mode=="full"&&R.jsx(Nu,{onClick:()=>{r()},children:R.jsx(j1,{size:24})}),subnavbar:R.jsxs("div",{className:"flex items-center w-full",children:[R.jsx(zr,{rounded:!0,className:"rounded-r-none",smallMaterial:!0,tonal:Le.channelTab!=="member",onClick:()=>Le.setChannelTab("member"),children:"Активные"}),R.jsx(zr,{rounded:!0,className:"rounded-l-none",smallMaterial:!0,tonal:Le.channelTab!=="join",onClick:()=>Le.setChannelTab("join"),children:"Новые"})]})}),R.jsx(H1,{selectChannelID:Le.selectChannel?._id??null,channelTab:Le.channelTab,onSelectChannel:h=>Le.setSelectChannel(h),selectChannel:Le.selectChannel})]}),R.jsx("div",{className:"flex-1 ",children:Le.selectChannel?._id?R.jsx(Sb,{channelID:Le.selectChannel?._id,noPage:!0}):R.jsx("div",{className:"overflow-y-scroll h-screen  relative flex items-center justify-center",children:R.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-10 ",style:{background:`url(${z0})`}})})})]}),R.jsx(Gd,{opened:i,target:o.current,onBackdropClick:()=>u(!1),children:R.jsxs(cs,{nested:!0,children:[R.jsx(Yn,{title:"Быстрые ответы",link:!0,onClick:()=>u(!1)}),R.jsx(Yn,{title:"List Item 2",link:!0,onClick:()=>u(!1)}),R.jsx(Yn,{title:"Item 3",link:!0,onClick:()=>u(!1)}),R.jsx(Yn,{title:"List Item 4",link:!0,onClick:()=>u(!1)}),R.jsx(Yn,{title:"Item 5",link:!0,onClick:()=>u(!1)})]})})]})},pS=ul(gS),vS=()=>{Cc.current?.goBack()},Mc=()=>({LoadingPage:{component:sS,move:r=>{Cc.current?.onChanceRoute("LoadingPage",r)}},LoginPage:{component:dS,move:r=>{Cc.current?.onChanceRoute("LoginPage",r)}},MainPage:{component:pS,move:r=>{Cc.current?.onChanceRoute("MainPage",r)}},ChannelPage:{component:Sb,move:r=>{Cc.current?.onChanceRoute("ChannelPage",r)}}}),Cc=P.createRef(),AS=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 O={route:b,props:_,id:u.current++};return[...y,O]})}}));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]),R.jsx(R.Fragment,{children:o.map((b,_)=>{let y=Mc()[b.route];if(!y)return null;if(_==o.length-1)return R.jsx(y.component,{...b.props})})})}),bS=()=>/iPad|iPhone|iPod/.test(navigator.userAgent),yS=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)};sl.locale("ru");Ht.setEndpoints([C4()]);Ht.setToast(r=>{bb(r)});const _S=()=>($.useEffect(()=>{const r=new URLSearchParams(window.location.search);r.get("cap")?Le.setCap(!0):Le.setCap(!1),r.get("dark")?document.body.classList.add("dark"):document.body.classList.remove("dark");let o=r.get("theme");o&&yS(o)},[]),R.jsxs(aA,{theme:bS()?"ios":"material",safeAreas:!0,children:[R.jsx(AS,{ref:Cc}),R.jsx(E4,{ref:v0}),R.jsx(O4,{ref:Ab}),R.jsx(vb,{ref:pb}),R.jsx(d4,{ref:cb})]})),xS=ul(_S);Ht.setUseEncrypt(!0);ey.createRoot(document.getElementById("root")).render(R.jsx(xS,{}));
