(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const v of d)if(v.type==="childList")for(const m of v.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function l(d){const v={};return d.integrity&&(v.integrity=d.integrity),d.referrerPolicy&&(v.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?v.credentials="include":d.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function c(d){if(d.ep)return;d.ep=!0;const v=l(d);fetch(d.href,v)}})();var rg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function FD(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Wv={exports:{}},gh={};/**
 * @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 ZD;function jA(){if(ZD)return gh;ZD=1;var r=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function l(c,d,v){var m=null;if(v!==void 0&&(m=""+v),d.key!==void 0&&(m=""+d.key),"key"in d){v={};for(var E in d)E!=="key"&&(v[E]=d[E])}else v=d;return d=v.ref,{$$typeof:r,type:c,key:m,ref:d!==void 0?d:null,props:v}}return gh.Fragment=s,gh.jsx=l,gh.jsxs=l,gh}var KD;function LA(){return KD||(KD=1,Wv.exports=jA()),Wv.exports}var p=LA(),Pv={exports:{}},vh={},eD={exports:{}},tD={};/**
 * @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 XD;function zA(){return XD||(XD=1,(function(r){function s(B,V){var Q=B.length;B.push(V);e:for(;0<Q;){var he=Q-1>>>1,S=B[he];if(0<d(S,V))B[he]=V,B[Q]=S,Q=he;else break e}}function l(B){return B.length===0?null:B[0]}function c(B){if(B.length===0)return null;var V=B[0],Q=B.pop();if(Q!==V){B[0]=Q;e:for(var he=0,S=B.length,q=S>>>1;he<q;){var ue=2*(he+1)-1,ne=B[ue],ve=ue+1,me=B[ve];if(0>d(ne,Q))ve<S&&0>d(me,ne)?(B[he]=me,B[ve]=Q,he=ve):(B[he]=ne,B[ue]=Q,he=ue);else if(ve<S&&0>d(me,Q))B[he]=me,B[ve]=Q,he=ve;else break e}}return V}function d(B,V){var Q=B.sortIndex-V.sortIndex;return Q!==0?Q:B.id-V.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;r.unstable_now=function(){return v.now()}}else{var m=Date,E=m.now();r.unstable_now=function(){return m.now()-E}}var x=[],C=[],M=1,H=null,Y=3,te=!1,ie=!1,le=!1,pe=!1,Te=typeof setTimeout=="function"?setTimeout:null,De=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null;function ce(B){for(var V=l(C);V!==null;){if(V.callback===null)c(C);else if(V.startTime<=B)c(C),V.sortIndex=V.expirationTime,s(x,V);else break;V=l(C)}}function X(B){if(le=!1,ce(B),!ie)if(l(x)!==null)ie=!0,oe||(oe=!0,ot());else{var V=l(C);V!==null&&re(X,V.startTime-B)}}var oe=!1,we=-1,Ie=5,rt=-1;function He(){return pe?!0:!(r.unstable_now()-rt<Ie)}function Ue(){if(pe=!1,oe){var B=r.unstable_now();rt=B;var V=!0;try{e:{ie=!1,le&&(le=!1,De(we),we=-1),te=!0;var Q=Y;try{t:{for(ce(B),H=l(x);H!==null&&!(H.expirationTime>B&&He());){var he=H.callback;if(typeof he=="function"){H.callback=null,Y=H.priorityLevel;var S=he(H.expirationTime<=B);if(B=r.unstable_now(),typeof S=="function"){H.callback=S,ce(B),V=!0;break t}H===l(x)&&c(x),ce(B)}else c(x);H=l(x)}if(H!==null)V=!0;else{var q=l(C);q!==null&&re(X,q.startTime-B),V=!1}}break e}finally{H=null,Y=Q,te=!1}V=void 0}}finally{V?ot():oe=!1}}}var ot;if(typeof ae=="function")ot=function(){ae(Ue)};else if(typeof MessageChannel<"u"){var dn=new MessageChannel,_e=dn.port2;dn.port1.onmessage=Ue,ot=function(){_e.postMessage(null)}}else ot=function(){Te(Ue,0)};function re(B,V){we=Te(function(){B(r.unstable_now())},V)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(B){B.callback=null},r.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ie=0<B?Math.floor(1e3/B):5},r.unstable_getCurrentPriorityLevel=function(){return Y},r.unstable_next=function(B){switch(Y){case 1:case 2:case 3:var V=3;break;default:V=Y}var Q=Y;Y=V;try{return B()}finally{Y=Q}},r.unstable_requestPaint=function(){pe=!0},r.unstable_runWithPriority=function(B,V){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Q=Y;Y=B;try{return V()}finally{Y=Q}},r.unstable_scheduleCallback=function(B,V,Q){var he=r.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?he+Q:he):Q=he,B){case 1:var S=-1;break;case 2:S=250;break;case 5:S=1073741823;break;case 4:S=1e4;break;default:S=5e3}return S=Q+S,B={id:M++,callback:V,priorityLevel:B,startTime:Q,expirationTime:S,sortIndex:-1},Q>he?(B.sortIndex=Q,s(C,B),l(x)===null&&B===l(C)&&(le?(De(we),we=-1):le=!0,re(X,Q-he))):(B.sortIndex=S,s(x,B),ie||te||(ie=!0,oe||(oe=!0,ot()))),B},r.unstable_shouldYield=He,r.unstable_wrapCallback=function(B){var V=Y;return function(){var Q=Y;Y=V;try{return B.apply(this,arguments)}finally{Y=Q}}}})(tD)),tD}var ID;function UA(){return ID||(ID=1,eD.exports=zA()),eD.exports}var nD={exports:{}},Ye={};/**
 * @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 JD;function HA(){if(JD)return Ye;JD=1;var r=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),m=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),H=Symbol.iterator;function Y(S){return S===null||typeof S!="object"?null:(S=H&&S[H]||S["@@iterator"],typeof S=="function"?S:null)}var te={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ie=Object.assign,le={};function pe(S,q,ue){this.props=S,this.context=q,this.refs=le,this.updater=ue||te}pe.prototype.isReactComponent={},pe.prototype.setState=function(S,q){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,q,"setState")},pe.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function Te(){}Te.prototype=pe.prototype;function De(S,q,ue){this.props=S,this.context=q,this.refs=le,this.updater=ue||te}var ae=De.prototype=new Te;ae.constructor=De,ie(ae,pe.prototype),ae.isPureReactComponent=!0;var ce=Array.isArray,X={H:null,A:null,T:null,S:null,V:null},oe=Object.prototype.hasOwnProperty;function we(S,q,ue,ne,ve,me){return ue=me.ref,{$$typeof:r,type:S,key:q,ref:ue!==void 0?ue:null,props:me}}function Ie(S,q){return we(S.type,q,void 0,void 0,void 0,S.props)}function rt(S){return typeof S=="object"&&S!==null&&S.$$typeof===r}function He(S){var q={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(ue){return q[ue]})}var Ue=/\/+/g;function ot(S,q){return typeof S=="object"&&S!==null&&S.key!=null?He(""+S.key):q.toString(36)}function dn(){}function _e(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(dn,dn):(S.status="pending",S.then(function(q){S.status==="pending"&&(S.status="fulfilled",S.value=q)},function(q){S.status==="pending"&&(S.status="rejected",S.reason=q)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function re(S,q,ue,ne,ve){var me=typeof S;(me==="undefined"||me==="boolean")&&(S=null);var Ee=!1;if(S===null)Ee=!0;else switch(me){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(S.$$typeof){case r:case s:Ee=!0;break;case M:return Ee=S._init,re(Ee(S._payload),q,ue,ne,ve)}}if(Ee)return ve=ve(S),Ee=ne===""?"."+ot(S,0):ne,ce(ve)?(ue="",Ee!=null&&(ue=Ee.replace(Ue,"$&/")+"/"),re(ve,q,ue,"",function(zt){return zt})):ve!=null&&(rt(ve)&&(ve=Ie(ve,ue+(ve.key==null||S&&S.key===ve.key?"":(""+ve.key).replace(Ue,"$&/")+"/")+Ee)),q.push(ve)),1;Ee=0;var bt=ne===""?".":ne+":";if(ce(S))for(var Ze=0;Ze<S.length;Ze++)ne=S[Ze],me=bt+ot(ne,Ze),Ee+=re(ne,q,ue,me,ve);else if(Ze=Y(S),typeof Ze=="function")for(S=Ze.call(S),Ze=0;!(ne=S.next()).done;)ne=ne.value,me=bt+ot(ne,Ze++),Ee+=re(ne,q,ue,me,ve);else if(me==="object"){if(typeof S.then=="function")return re(_e(S),q,ue,ne,ve);throw q=String(S),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function B(S,q,ue){if(S==null)return S;var ne=[],ve=0;return re(S,ne,"","",function(me){return q.call(ue,me,ve++)}),ne}function V(S){if(S._status===-1){var q=S._result;q=q(),q.then(function(ue){(S._status===0||S._status===-1)&&(S._status=1,S._result=ue)},function(ue){(S._status===0||S._status===-1)&&(S._status=2,S._result=ue)}),S._status===-1&&(S._status=0,S._result=q)}if(S._status===1)return S._result.default;throw S._result}var Q=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)};function he(){}return Ye.Children={map:B,forEach:function(S,q,ue){B(S,function(){q.apply(this,arguments)},ue)},count:function(S){var q=0;return B(S,function(){q++}),q},toArray:function(S){return B(S,function(q){return q})||[]},only:function(S){if(!rt(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},Ye.Component=pe,Ye.Fragment=l,Ye.Profiler=d,Ye.PureComponent=De,Ye.StrictMode=c,Ye.Suspense=x,Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,Ye.__COMPILER_RUNTIME={__proto__:null,c:function(S){return X.H.useMemoCache(S)}},Ye.cache=function(S){return function(){return S.apply(null,arguments)}},Ye.cloneElement=function(S,q,ue){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ne=ie({},S.props),ve=S.key,me=void 0;if(q!=null)for(Ee in q.ref!==void 0&&(me=void 0),q.key!==void 0&&(ve=""+q.key),q)!oe.call(q,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&q.ref===void 0||(ne[Ee]=q[Ee]);var Ee=arguments.length-2;if(Ee===1)ne.children=ue;else if(1<Ee){for(var bt=Array(Ee),Ze=0;Ze<Ee;Ze++)bt[Ze]=arguments[Ze+2];ne.children=bt}return we(S.type,ve,void 0,void 0,me,ne)},Ye.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:v,_context:S},S},Ye.createElement=function(S,q,ue){var ne,ve={},me=null;if(q!=null)for(ne in q.key!==void 0&&(me=""+q.key),q)oe.call(q,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(ve[ne]=q[ne]);var Ee=arguments.length-2;if(Ee===1)ve.children=ue;else if(1<Ee){for(var bt=Array(Ee),Ze=0;Ze<Ee;Ze++)bt[Ze]=arguments[Ze+2];ve.children=bt}if(S&&S.defaultProps)for(ne in Ee=S.defaultProps,Ee)ve[ne]===void 0&&(ve[ne]=Ee[ne]);return we(S,me,void 0,void 0,null,ve)},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(S){return{$$typeof:E,render:S}},Ye.isValidElement=rt,Ye.lazy=function(S){return{$$typeof:M,_payload:{_status:-1,_result:S},_init:V}},Ye.memo=function(S,q){return{$$typeof:C,type:S,compare:q===void 0?null:q}},Ye.startTransition=function(S){var q=X.T,ue={};X.T=ue;try{var ne=S(),ve=X.S;ve!==null&&ve(ue,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(he,Q)}catch(me){Q(me)}finally{X.T=q}},Ye.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},Ye.use=function(S){return X.H.use(S)},Ye.useActionState=function(S,q,ue){return X.H.useActionState(S,q,ue)},Ye.useCallback=function(S,q){return X.H.useCallback(S,q)},Ye.useContext=function(S){return X.H.useContext(S)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(S,q){return X.H.useDeferredValue(S,q)},Ye.useEffect=function(S,q,ue){var ne=X.H;if(typeof ue=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ne.useEffect(S,q)},Ye.useId=function(){return X.H.useId()},Ye.useImperativeHandle=function(S,q,ue){return X.H.useImperativeHandle(S,q,ue)},Ye.useInsertionEffect=function(S,q){return X.H.useInsertionEffect(S,q)},Ye.useLayoutEffect=function(S,q){return X.H.useLayoutEffect(S,q)},Ye.useMemo=function(S,q){return X.H.useMemo(S,q)},Ye.useOptimistic=function(S,q){return X.H.useOptimistic(S,q)},Ye.useReducer=function(S,q,ue){return X.H.useReducer(S,q,ue)},Ye.useRef=function(S){return X.H.useRef(S)},Ye.useState=function(S){return X.H.useState(S)},Ye.useSyncExternalStore=function(S,q,ue){return X.H.useSyncExternalStore(S,q,ue)},Ye.useTransition=function(){return X.H.useTransition()},Ye.version="19.1.1",Ye}var $D;function Tg(){return $D||($D=1,nD.exports=HA()),nD.exports}var uD={exports:{}},qn={};/**
 * @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 WD;function GA(){if(WD)return qn;WD=1;var r=Tg();function s(x){var C="https://react.dev/errors/"+x;if(1<arguments.length){C+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)C+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+x+"; visit "+C+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var c={d:{f:l,r:function(){throw Error(s(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},d=Symbol.for("react.portal");function v(x,C,M){var H=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:H==null?null:""+H,children:x,containerInfo:C,implementation:M}}var m=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(x,C){if(x==="font")return"";if(typeof C=="string")return C==="use-credentials"?C:""}return qn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,qn.createPortal=function(x,C){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error(s(299));return v(x,C,null,M)},qn.flushSync=function(x){var C=m.T,M=c.p;try{if(m.T=null,c.p=2,x)return x()}finally{m.T=C,c.p=M,c.d.f()}},qn.preconnect=function(x,C){typeof x=="string"&&(C?(C=C.crossOrigin,C=typeof C=="string"?C==="use-credentials"?C:"":void 0):C=null,c.d.C(x,C))},qn.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},qn.preinit=function(x,C){if(typeof x=="string"&&C&&typeof C.as=="string"){var M=C.as,H=E(M,C.crossOrigin),Y=typeof C.integrity=="string"?C.integrity:void 0,te=typeof C.fetchPriority=="string"?C.fetchPriority:void 0;M==="style"?c.d.S(x,typeof C.precedence=="string"?C.precedence:void 0,{crossOrigin:H,integrity:Y,fetchPriority:te}):M==="script"&&c.d.X(x,{crossOrigin:H,integrity:Y,fetchPriority:te,nonce:typeof C.nonce=="string"?C.nonce:void 0})}},qn.preinitModule=function(x,C){if(typeof x=="string")if(typeof C=="object"&&C!==null){if(C.as==null||C.as==="script"){var M=E(C.as,C.crossOrigin);c.d.M(x,{crossOrigin:M,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0})}}else C==null&&c.d.M(x)},qn.preload=function(x,C){if(typeof x=="string"&&typeof C=="object"&&C!==null&&typeof C.as=="string"){var M=C.as,H=E(M,C.crossOrigin);c.d.L(x,M,{crossOrigin:H,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0,type:typeof C.type=="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority=="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy=="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet=="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes=="string"?C.imageSizes:void 0,media:typeof C.media=="string"?C.media:void 0})}},qn.preloadModule=function(x,C){if(typeof x=="string")if(C){var M=E(C.as,C.crossOrigin);c.d.m(x,{as:typeof C.as=="string"&&C.as!=="script"?C.as:void 0,crossOrigin:M,integrity:typeof C.integrity=="string"?C.integrity:void 0})}else c.d.m(x)},qn.requestFormReset=function(x){c.d.r(x)},qn.unstable_batchedUpdates=function(x,C){return x(C)},qn.useFormState=function(x,C,M){return m.H.useFormState(x,C,M)},qn.useFormStatus=function(){return m.H.useHostTransitionStatus()},qn.version="19.1.1",qn}var PD;function Xp(){if(PD)return uD.exports;PD=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(s){console.error(s)}}return r(),uD.exports=GA(),uD.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 ep;function qA(){if(ep)return vh;ep=1;var r=UA(),s=Tg(),l=Xp();function c(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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(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 m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function E(e){if(v(e)!==e)throw Error(c(188))}function x(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(o===null)break;var h=o.alternate;if(h===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===h.child){for(h=o.child;h;){if(h===n)return E(o),e;if(h===i)return E(o),t;h=h.sibling}throw Error(c(188))}if(n.return!==i.return)n=o,i=h;else{for(var D=!1,b=o.child;b;){if(b===n){D=!0,n=o,i=h;break}if(b===i){D=!0,i=o,n=h;break}b=b.sibling}if(!D){for(b=h.child;b;){if(b===n){D=!0,n=h,i=o;break}if(b===i){D=!0,i=h,n=o;break}b=b.sibling}if(!D)throw Error(c(189))}}if(n.alternate!==i)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}var M=Object.assign,H=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),te=Symbol.for("react.portal"),ie=Symbol.for("react.fragment"),le=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),Te=Symbol.for("react.provider"),De=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),we=Symbol.for("react.memo"),Ie=Symbol.for("react.lazy"),rt=Symbol.for("react.activity"),He=Symbol.for("react.memo_cache_sentinel"),Ue=Symbol.iterator;function ot(e){return e===null||typeof e!="object"?null:(e=Ue&&e[Ue]||e["@@iterator"],typeof e=="function"?e:null)}var dn=Symbol.for("react.client.reference");function _e(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===dn?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ie:return"Fragment";case pe:return"Profiler";case le:return"StrictMode";case X:return"Suspense";case oe:return"SuspenseList";case rt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case te:return"Portal";case ae:return(e.displayName||"Context")+".Provider";case De:return(e._context.displayName||"Context")+".Consumer";case ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case we:return t=e.displayName||null,t!==null?t:_e(e.type)||"Memo";case Ie:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}var re=Array.isArray,B=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},he=[],S=-1;function q(e){return{current:e}}function ue(e){0>S||(e.current=he[S],he[S]=null,S--)}function ne(e,t){S++,he[S]=e.current,e.current=t}var ve=q(null),me=q(null),Ee=q(null),bt=q(null);function Ze(e,t){switch(ne(Ee,t),ne(me,e),ne(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nt(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nt(t),e=Lt(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ue(ve),ne(ve,e)}function zt(){ue(ve),ue(me),ue(Ee)}function kt(e){e.memoizedState!==null&&ne(bt,e);var t=ve.current,n=Lt(t,e.type);t!==n&&(ne(me,e),ne(ve,n))}function tn(e){me.current===e&&(ue(ve),ue(me)),bt.current===e&&(ue(bt),Yr._currentValue=Q)}var Cn=Object.prototype.hasOwnProperty,Du=r.unstable_scheduleCallback,Se=r.unstable_cancelCallback,nn=r.unstable_shouldYield,Tu=r.unstable_requestPaint,pt=r.unstable_now,si=r.unstable_getCurrentPriorityLevel,Wr=r.unstable_ImmediatePriority,_a=r.unstable_UserBlockingPriority,Sn=r.unstable_NormalPriority,Pr=r.unstable_LowPriority,el=r.unstable_IdlePriority,qg=r.log,tl=r.unstable_setDisableYieldValue,nl=null,on=null;function Yn(e){if(typeof qg=="function"&&tl(e),on&&typeof on.setStrictMode=="function")try{on.setStrictMode(nl,e)}catch{}}var An=Math.clz32?Math.clz32:Ao,Do=Math.log,po=Math.LN2;function Ao(e){return e>>>=0,e===0?32:31-(Do(e)/po|0)|0}var ki=256,Vi=4194304;function Ju(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 Qi(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var o=0,h=e.suspendedLanes,D=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~h,i!==0?o=Ju(i):(D&=b,D!==0?o=Ju(D):n||(n=b&~e,n!==0&&(o=Ju(n))))):(b=i&~h,b!==0?o=Ju(b):D!==0?o=Ju(D):n||(n=i&~e,n!==0&&(o=Ju(n)))),o===0?0:t!==0&&t!==o&&(t&h)===0&&(h=o&-o,n=t&-t,h>=n||h===32&&(n&4194048)!==0)?t:o}function ci(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yg(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 Nh(){var e=ki;return ki<<=1,(ki&4194048)===0&&(ki=256),e}function jh(){var e=Vi;return Vi<<=1,(Vi&62914560)===0&&(Vi=4194304),e}function xs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kg(e,t,n,i,o,h){var D=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 b=e.entanglements,w=e.expirationTimes,z=e.hiddenUpdates;for(n=D&~n;0<n;){var I=31-An(n),W=1<<I;b[I]=0,w[I]=-1;var G=z[I];if(G!==null)for(z[I]=null,I=0;I<G.length;I++){var U=G[I];U!==null&&(U.lane&=-536870913)}n&=~W}i!==0&&Lh(e,i,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(D&~t))}function Lh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-An(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function zh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-An(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function mo(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 Es(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Uh(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:eg(e.type))}function Vg(e,t){var n=V.p;try{return V.p=e,t()}finally{V.p=n}}var xa=Math.random().toString(36).slice(2),un="__reactFiber$"+xa,Fn="__reactProps$"+xa,Ea="__reactContainer$"+xa,yo="__reactEvents$"+xa,Qg="__reactListeners$"+xa,Zg="__reactHandles$"+xa,Hh="__reactResources$"+xa,ul="__reactMarker$"+xa;function bo(e){delete e[un],delete e[Fn],delete e[yo],delete e[Qg],delete e[Zg]}function Ki(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ea]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Y0(e);e!==null;){if(n=e[un])return n;e=Y0(e)}return t}e=n,n=e.parentNode}return null}function Xi(e){if(e=e[un]||e[Ea]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ii(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Ji(e){var t=e[Hh];return t||(t=e[Hh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function an(e){e[ul]=!0}var Gh=new Set,qh={};function oi(e,t){$i(e,t),$i(e+"Capture",t)}function $i(e,t){for(qh[e]=t,e=0;e<t.length;e++)Gh.add(t[e])}var Cs=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]*$"),Yh={},al={};function Kg(e){return Cn.call(al,e)?!0:Cn.call(Yh,e)?!1:Cs.test(e)?al[e]=!0:(Yh[e]=!0,!1)}function Ss(e,t,n){if(Kg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Fs(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 Bu(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}var ws,_o;function Wi(e){if(ws===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ws=t&&t[1]||"",_o=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ws+e+_o}var xo=!1;function Eo(e,t){if(!e||xo)return"";xo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(U){var G=U}Reflect.construct(e,[],W)}else{try{W.call()}catch(U){G=U}e.call(W.prototype)}}else{try{throw Error()}catch(U){G=U}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(U){if(U&&G&&typeof U.stack=="string")return[U.stack,G.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=i.DetermineComponentFrameRoot(),D=h[0],b=h[1];if(D&&b){var w=D.split(`
`),z=b.split(`
`);for(o=i=0;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(i===w.length||o===z.length)for(i=w.length-1,o=z.length-1;1<=i&&0<=o&&w[i]!==z[o];)o--;for(;1<=i&&0<=o;i--,o--)if(w[i]!==z[o]){if(i!==1||o!==1)do if(i--,o--,0>o||w[i]!==z[o]){var I=`
`+w[i].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=i&&0<=o);break}}}finally{xo=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Wi(n):""}function Xg(e){switch(e.tag){case 26:case 27:case 5:return Wi(e.type);case 16:return Wi("Lazy");case 13:return Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 15:return Eo(e.type,!1);case 11:return Eo(e.type.render,!1);case 1:return Eo(e.type,!0);case 31:return Wi("Activity");default:return""}}function Co(e){try{var t="";do t+=Xg(e),e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function kn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function So(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fo(e){var t=So(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,h=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(D){i=""+D,h.call(this,D)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(D){i=""+D},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ms(e){e._valueTracker||(e._valueTracker=Fo(e))}function wo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=So(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function fi(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 kh=/[\n"\\]/g;function tu(e){return e.replace(kh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Os(e,t,n,i,o,h,D,b){e.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?e.type=D:e.removeAttribute("type"),t!=null?D==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kn(t)):e.value!==""+kn(t)&&(e.value=""+kn(t)):D!=="submit"&&D!=="reset"||e.removeAttribute("value"),t!=null?il(e,D,kn(t)):n!=null?il(e,D,kn(n)):i!=null&&e.removeAttribute("value"),o==null&&h!=null&&(e.defaultChecked=!!h),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+kn(b):e.removeAttribute("name")}function Mo(e,t,n,i,o,h,D,b){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||n!=null){if(!(h!=="submit"&&h!=="reset"||t!=null))return;n=n!=null?""+kn(n):"",t=t!=null?""+kn(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(e.name=D)}function il(e,t,n){t==="number"&&fi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Pi(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&i&&(e[n].defaultSelected=!0)}else{for(n=""+kn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Oo(e,t,n){if(t!=null&&(t=""+kn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+kn(n):""}function Ts(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(c(92));if(re(i)){if(1<i.length)throw Error(c(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=kn(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function Ca(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var er=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 To(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||er.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Bo(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&To(e,o,i)}else for(var h in t)t.hasOwnProperty(h)&&To(e,h,t[h])}function Ro(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 Vh=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"]]),Qh=/^[\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 rl(e){return Qh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Bs=null;function No(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tr=null,nr=null;function jo(e){var t=Xi(e);if(t&&(e=t.stateNode)){var n=e[Fn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Os(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="'+tu(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Fn]||null;if(!o)throw Error(c(90));Os(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&wo(i)}break e;case"textarea":Oo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Pi(e,!!n.multiple,t,!1)}}}var Lo=!1;function Zh(e,t,n){if(Lo)return e(t,n);Lo=!0;try{var i=e(t);return i}finally{if(Lo=!1,(tr!==null||nr!==null)&&(Bc(),tr&&(t=tr,e=nr,nr=tr=null,jo(t),e)))for(t=0;t<e.length;t++)jo(e[t])}}function ll(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Fn]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var $u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sl=!1;if($u)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){sl=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{sl=!1}var Sa=null,zo=null,Rs=null;function Kh(){if(Rs)return Rs;var e,t=zo,n=t.length,i,o="value"in Sa?Sa.value:Sa.textContent,h=o.length;for(e=0;e<n&&t[e]===o[e];e++);var D=n-e;for(i=1;i<=D&&t[n-i]===o[h-i];i++);return Rs=o.slice(e,1<i?1-i:void 0)}function At(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 dt(){return!0}function Xh(){return!1}function wn(e){function t(n,i,o,h,D){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=h,this.target=D,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(h):h[b]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?dt:Xh,this.isPropagationStopped=Xh,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=dt)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=dt)},persist:function(){},isPersistent:dt}),t}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ns=wn(hi),ol=M({},hi,{view:0,detail:0}),Ig=wn(ol),js,Uo,Yt,ur=M({},ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ru,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!==Yt&&(Yt&&e.type==="mousemove"?(js=e.screenX-Yt.screenX,Uo=e.screenY-Yt.screenY):Uo=js=0,Yt=e),js)},movementY:function(e){return"movementY"in e?e.movementY:Uo}}),Fa=wn(ur),Ih=M({},ur,{dataTransfer:0}),Ho=wn(Ih),nu=M({},ol,{relatedTarget:0}),Ls=wn(nu),Jh=M({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),$h=wn(Jh),Wh=M({},hi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ph=wn(Wh),ed=M({},hi,{data:0}),Mn=wn(ed),Jg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uu={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"},$g={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function td(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$g[e])?!!t[e]:!1}function Ru(){return td}var zs=M({},ol,{key:function(e){if(e.key){var t=Jg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=At(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uu[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ru,charCode:function(e){return e.type==="keypress"?At(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?At(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Go=wn(zs),Ot=M({},ur,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wu=wn(Ot),qo=M({},ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ru}),Wg=wn(qo),Yo=M({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pg=wn(Yo),ev=M({},ur,{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}),tv=wn(ev),nd=M({},hi,{newState:0,oldState:0}),Us=wn(nd),ar=[9,13,27,32],ko=$u&&"CompositionEvent"in window,ir=null;$u&&"documentMode"in document&&(ir=document.documentMode);var ud=$u&&"TextEvent"in window&&!ir,Hs=$u&&(!ko||ir&&8<ir&&11>=ir),Gs=" ",Vo=!1;function ad(e,t){switch(e){case"keyup":return ar.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wa=!1;function nv(e,t){switch(e){case"compositionend":return qs(t);case"keypress":return t.which!==32?null:(Vo=!0,Gs);case"textInput":return e=t.data,e===Gs&&Vo?null:e;default:return null}}function id(e,t){if(wa)return e==="compositionend"||!ko&&ad(e,t)?(e=Kh(),Rs=zo=Sa=null,wa=!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 Hs&&t.locale!=="ko"?null:t.data;default:return null}}var Vn={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 Ys(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vn[e.type]:t==="textarea"}function rr(e,t,n,i){tr?nr?nr.push(i):nr=[i]:tr=i,t=Hc(t,"onChange"),0<t.length&&(n=new Ns("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var lr=null,sr=null;function uv(e){N0(e,0)}function ks(e){var t=Ii(e);if(wo(t))return e}function rd(e,t){if(e==="change")return t}var ld=!1;if($u){var Qo;if($u){var Ma="oninput"in document;if(!Ma){var sd=document.createElement("div");sd.setAttribute("oninput","return;"),Ma=typeof sd.oninput=="function"}Qo=Ma}else Qo=!1;ld=Qo&&(!document.documentMode||9<document.documentMode)}function cd(){lr&&(lr.detachEvent("onpropertychange",Vs),sr=lr=null)}function Vs(e){if(e.propertyName==="value"&&ks(sr)){var t=[];rr(t,sr,e,No(e)),Zh(uv,t)}}function od(e,t,n){e==="focusin"?(cd(),lr=t,sr=n,lr.attachEvent("onpropertychange",Vs)):e==="focusout"&&cd()}function Oa(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ks(sr)}function Qs(e,t){if(e==="click")return ks(t)}function av(e,t){if(e==="input"||e==="change")return ks(t)}function iv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qn=typeof Object.is=="function"?Object.is:iv;function Nu(e,t){if(Qn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!Cn.call(t,o)||!Qn(e[o],t[o]))return!1}return!0}function au(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zo(e,t){var n=au(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=au(n)}}function fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fi(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=fi(e.document)}return t}function Ko(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 rv=$u&&"documentMode"in document&&11>=document.documentMode,cr=null,Ta=null,R=null,Z=!1;function k(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Z||cr==null||cr!==fi(i)||(i=cr,"selectionStart"in i&&Ko(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),R&&Nu(R,i)||(R=i,i=Hc(Ta,"onSelect"),0<i.length&&(t=new Ns("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=cr)))}function de(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Be={animationend:de("Animation","AnimationEnd"),animationiteration:de("Animation","AnimationIteration"),animationstart:de("Animation","AnimationStart"),transitionrun:de("Transition","TransitionRun"),transitionstart:de("Transition","TransitionStart"),transitioncancel:de("Transition","TransitionCancel"),transitionend:de("Transition","TransitionEnd")},nt={},Vt={};$u&&(Vt=document.createElement("div").style,"AnimationEvent"in window||(delete Be.animationend.animation,delete Be.animationiteration.animation,delete Be.animationstart.animation),"TransitionEvent"in window||delete Be.transitionend.transition);function ut(e){if(nt[e])return nt[e];if(!Be[e])return e;var t=Be[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vt)return nt[e]=t[n];return e}var Zs=ut("animationend"),dd=ut("animationiteration"),Zn=ut("animationstart"),Ks=ut("transitionrun"),lv=ut("transitionstart"),or=ut("transitioncancel"),fl=ut("transitionend"),hl=new Map,st="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(" ");st.push("scrollEnd");function pu(e,t){hl.set(e,t),oi(t,[e])}var Xo=new WeakMap;function mn(e,t){if(typeof e=="object"&&e!==null){var n=Xo.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Co(t)},Xo.set(e,t),t)}return{value:e,source:t,stack:Co(t)}}var iu=[],fr=0,Io=0;function di(){for(var e=fr,t=Io=fr=0;t<e;){var n=iu[t];iu[t++]=null;var i=iu[t];iu[t++]=null;var o=iu[t];iu[t++]=null;var h=iu[t];if(iu[t++]=null,i!==null&&o!==null){var D=i.pending;D===null?o.next=o:(o.next=D.next,D.next=o),i.pending=o}h!==0&&dl(n,o,h)}}function Au(e,t,n,i){iu[fr++]=e,iu[fr++]=t,iu[fr++]=n,iu[fr++]=i,Io|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function hr(e,t,n,i){return Au(e,t,n,i),gl(e)}function gi(e,t){return Au(e,null,null,t),gl(e)}function dl(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var o=!1,h=e.return;h!==null;)h.childLanes|=n,i=h.alternate,i!==null&&(i.childLanes|=n),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(o=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,o&&t!==null&&(o=31-An(n),e=h.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=n|536870912),h):null}function gl(e){if(50<Nr)throw Nr=0,Vf=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vi={};function Xs(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(e,t,n,i){return new Xs(e,t,n,i)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var n=e.alternate;return n===null?(n=On(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 vl(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 Is(e,t,n,i,o,h){var D=0;if(i=e,typeof e=="function")Di(e)&&(D=1);else if(typeof e=="string")D=Uv(e,n,ve.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case rt:return e=On(31,n,t,o),e.elementType=rt,e.lanes=h,e;case ie:return pi(n.children,o,h,t);case le:D=8,o|=24;break;case pe:return e=On(12,n,t,o|2),e.elementType=pe,e.lanes=h,e;case X:return e=On(13,n,t,o),e.elementType=X,e.lanes=h,e;case oe:return e=On(19,n,t,o),e.elementType=oe,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Te:case ae:D=10;break e;case De:D=9;break e;case ce:D=11;break e;case we:D=14;break e;case Ie:D=16,i=null;break e}D=29,n=Error(c(130,e===null?"null":typeof e,"")),i=null}return t=On(D,n,t,o),t.elementType=e,t.type=i,t.lanes=h,t}function pi(e,t,n,i){return e=On(7,e,i,t),e.lanes=n,e}function Jo(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function dr(e,t,n){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pu=[],Ba=0,Js=null,Dl=0,ru=[],lu=0,Ft=null,Tt=1,ea="";function Ai(e,t){Pu[Ba++]=Dl,Pu[Ba++]=Js,Js=e,Dl=t}function $o(e,t,n){ru[lu++]=Tt,ru[lu++]=ea,ru[lu++]=Ft,Ft=e;var i=Tt;e=ea;var o=32-An(i)-1;i&=~(1<<o),n+=1;var h=32-An(t)+o;if(30<h){var D=o-o%5;h=(i&(1<<D)-1).toString(32),i>>=D,o-=D,Tt=1<<32-An(t)+o|n<<o|i,ea=h+e}else Tt=1<<h|n<<o|i,ea=e}function Wo(e){e.return!==null&&(Ai(e,1),$o(e,1,0))}function pl(e){for(;e===Js;)Js=Pu[--Ba],Pu[Ba]=null,Dl=Pu[--Ba],Pu[Ba]=null;for(;e===Ft;)Ft=ru[--lu],ru[lu]=null,ea=ru[--lu],ru[lu]=null,Tt=ru[--lu],ru[lu]=null}var Zt=null,Bt=null,Je=!1,mu=null,Tn=!1,gr=Error(c(519));function su(e){var t=Error(c(418,""));throw Ra(mn(t,e)),gr}function gd(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[un]=e,t[Fn]=i,n){case"dialog":Xe("cancel",t),Xe("close",t);break;case"iframe":case"object":case"embed":Xe("load",t);break;case"video":case"audio":for(n=0;n<is.length;n++)Xe(is[n],t);break;case"source":Xe("error",t);break;case"img":case"image":case"link":Xe("error",t),Xe("load",t);break;case"details":Xe("toggle",t);break;case"input":Xe("invalid",t),Mo(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),Ms(t);break;case"select":Xe("invalid",t);break;case"textarea":Xe("invalid",t),Ts(t,i.value,i.defaultValue,i.children),Ms(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||z0(t.textContent,n)?(i.popover!=null&&(Xe("beforetoggle",t),Xe("toggle",t)),i.onScroll!=null&&Xe("scroll",t),i.onScrollEnd!=null&&Xe("scrollend",t),i.onClick!=null&&(t.onclick=Gc),t=!0):t=!1,t||su(e)}function vd(e){for(Zt=e.return;Zt;)switch(Zt.tag){case 5:case 13:Tn=!1;return;case 27:case 3:Tn=!0;return;default:Zt=Zt.return}}function Al(e){if(e!==Zt)return!1;if(!Je)return vd(e),Je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Yc(e.type,e.memoizedProps)),n=!n),n&&Bt&&su(e),vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Bt=Cu(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Bt=null}}else t===27?(t=Bt,gu(e.type)?(e=ah,ah=null,Bt=e):Bt=t):Bt=Zt?Cu(e.stateNode.nextSibling):null;return!0}function ml(){Bt=Zt=null,Je=!1}function Dd(){var e=mu;return e!==null&&(Hn===null?Hn=e:Hn.push.apply(Hn,e),mu=null),e}function Ra(e){mu===null?mu=[e]:mu.push(e)}var mi=q(null),Na=null,y=null;function Kn(e,t,n){ne(mi,t._currentValue),t._currentValue=n}function cu(e){e._currentValue=mi.current,ue(mi)}function Bn(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function ke(e,t,n,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var h=o.dependencies;if(h!==null){var D=o.child;h=h.firstContext;e:for(;h!==null;){var b=h;h=o;for(var w=0;w<t.length;w++)if(b.context===t[w]){h.lanes|=n,b=h.alternate,b!==null&&(b.lanes|=n),Bn(h.return,n,e),i||(D=null);break e}h=b.next}}else if(o.tag===18){if(D=o.return,D===null)throw Error(c(341));D.lanes|=n,h=D.alternate,h!==null&&(h.lanes|=n),Bn(D,n,e),D=null}else D=o.child;if(D!==null)D.return=o;else for(D=o;D!==null;){if(D===e){D=null;break}if(o=D.sibling,o!==null){o.return=D.return,D=o;break}D=D.return}o=D}}function yl(e,t,n,i){e=null;for(var o=t,h=!1;o!==null;){if(!h){if((o.flags&524288)!==0)h=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var D=o.alternate;if(D===null)throw Error(c(387));if(D=D.memoizedProps,D!==null){var b=o.type;Qn(o.pendingProps.value,D.value)||(e!==null?e.push(b):e=[b])}}else if(o===bt.current){if(D=o.alternate,D===null)throw Error(c(387));D.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Yr):e=[Yr])}o=o.return}e!==null&&ke(t,e,n,i),t.flags|=262144}function $s(e){for(e=e.firstContext;e!==null;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yi(e){Na=e,y=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return pd(Na,e)}function Ws(e,t){return Na===null&&yi(e),pd(e,t)}function pd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},y===null){if(e===null)throw Error(c(308));y=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else y=y.next=t;return n}var sv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},cv=r.unstable_scheduleCallback,ov=r.unstable_NormalPriority,_t={$$typeof:ae,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Po(){return{controller:new sv,data:new Map,refCount:0}}function bl(e){e.refCount--,e.refCount===0&&cv(ov,function(){e.controller.abort()})}var _l=null,ef=0,vr=0,Rn=null;function fv(e,t){if(_l===null){var n=_l=[];ef=0,vr=Uc(),Rn={status:"pending",value:void 0,then:function(i){n.push(i)}}}return ef++,t.then(Ad,Ad),t}function Ad(){if(--ef===0&&_l!==null){Rn!==null&&(Rn.status="fulfilled");var e=_l;_l=null,vr=0,Rn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hv(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var md=B.S;B.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&fv(e,t),md!==null&&md(e,t)};var bi=q(null);function ta(){var e=bi.current;return e!==null?e:Ct.pooledCache}function Ps(e,t){t===null?ne(bi,bi.current):ne(bi,t.pool)}function yd(){var e=ta();return e===null?null:{parent:_t._currentValue,pool:e}}var bn=Error(c(460)),bd=Error(c(474)),ec=Error(c(542)),tf={then:function(){}};function _d(e){return e=e.status,e==="fulfilled"||e==="rejected"}function tc(){}function nf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(tc,tc),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ed(e),e;default:if(typeof t.status=="string")t.then(tc,tc);else{if(e=Ct,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ed(e),e}throw Dr=t,bn}}var Dr=null;function xd(){if(Dr===null)throw Error(c(459));var e=Dr;return Dr=null,e}function Ed(e){if(e===bn||e===ec)throw Error(c(483))}var ju=!1;function _i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pr(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 ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function na(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(vt&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=gl(e),dl(e,null,n),t}return Au(e,i,t,n),gl(e)}function xl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,zh(e,n)}}function yu(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,h=null;if(n=n.firstBaseUpdate,n!==null){do{var D={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};h===null?o=h=D:h=h.next=D,n=n.next}while(n!==null);h===null?o=h=t:h=h.next=t}else o=h=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:h,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var El=!1;function bu(){if(El){var e=Rn;if(e!==null)throw e}}function gn(e,t,n,i){El=!1;var o=e.updateQueue;ju=!1;var h=o.firstBaseUpdate,D=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var w=b,z=w.next;w.next=null,D===null?h=z:D.next=z,D=w;var I=e.alternate;I!==null&&(I=I.updateQueue,b=I.lastBaseUpdate,b!==D&&(b===null?I.firstBaseUpdate=z:b.next=z,I.lastBaseUpdate=w))}if(h!==null){var W=o.baseState;D=0,I=z=w=null,b=h;do{var G=b.lane&-536870913,U=G!==b.lane;if(U?(et&G)===G:(i&G)===G){G!==0&&G===vr&&(El=!0),I!==null&&(I=I.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var Me=e,Fe=b;G=t;var yt=n;switch(Fe.tag){case 1:if(Me=Fe.payload,typeof Me=="function"){W=Me.call(yt,W,G);break e}W=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Fe.payload,G=typeof Me=="function"?Me.call(yt,W,G):Me,G==null)break e;W=M({},W,G);break e;case 2:ju=!0}}G=b.callback,G!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[G]:U.push(G))}else U={lane:G,tag:b.tag,payload:b.payload,callback:b.callback,next:null},I===null?(z=I=U,w=W):I=I.next=U,D|=G;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;U=b,b=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);I===null&&(w=W),o.baseState=w,o.firstBaseUpdate=z,o.lastBaseUpdate=I,h===null&&(o.shared.lanes=0),Va|=D,e.lanes=D,e.memoizedState=W}}function Cd(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function uf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Cd(n[e],t)}var xi=q(null),La=q(0);function ua(e,t){e=ha,ne(La,e),ne(xi,t),ha=e|t.baseLanes}function nc(){ne(La,ha),ne(xi,xi.current)}function af(){ha=La.current,ue(xi),ue(La)}var _u=0,qe=null,gt=null,$e=null,Ar=!1,Ei=!1,vn=!1,mr=0,za=0,ou=null,Sd=0;function We(){throw Error(c(321))}function Cl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function rf(e,t,n,i,o,h){return _u=h,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Hd:Ef,vn=!1,h=n(i,o),vn=!1,Ei&&(h=wd(t,n,i,o)),Fd(e),h}function Fd(e){B.H=Ll;var t=gt!==null&&gt.next!==null;if(_u=0,$e=gt=qe=null,Ar=!1,za=0,ou=null,t)throw Error(c(300));e===null||rn||(e=e.dependencies,e!==null&&$s(e)&&(rn=!0))}function wd(e,t,n,i){qe=e;var o=0;do{if(Ei&&(ou=null),za=0,Ei=!1,25<=o)throw Error(c(301));if(o+=1,$e=gt=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}B.H=Gd,h=t(n,i)}while(Ei);return h}function lf(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Sl(t):t,e=e.useState()[0],(gt!==null?gt.memoizedState:null)!==e&&(qe.flags|=1024),t}function sf(){var e=mr!==0;return mr=0,e}function Ci(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function uc(e){if(Ar){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ar=!1}_u=0,$e=gt=qe=null,Ei=!1,za=mr=0,ou=null}function Nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?qe.memoizedState=$e=e:$e=$e.next=e,$e}function Qt(){if(gt===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=gt.next;var t=$e===null?qe.memoizedState:$e.next;if(t!==null)$e=t,gt=e;else{if(e===null)throw qe.alternate===null?Error(c(467)):Error(c(310));gt=e,e={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},$e===null?qe.memoizedState=$e=e:$e=$e.next=e}return $e}function Si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sl(e){var t=za;return za+=1,ou===null&&(ou=[]),e=nf(ou,e,t),t=qe,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Hd:Ef),e}function ac(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Sl(e);if(e.$$typeof===ae)return Ut(e)}throw Error(c(438,String(e)))}function Fl(e){var t=null,n=qe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=qe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Si(),qe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=He;return t.index++,n}function Lu(e,t){return typeof t=="function"?t(e):t}function ic(e){var t=Qt();return cf(t,gt,e)}function cf(e,t,n){var i=e.queue;if(i===null)throw Error(c(311));i.lastRenderedReducer=n;var o=e.baseQueue,h=i.pending;if(h!==null){if(o!==null){var D=o.next;o.next=h.next,h.next=D}t.baseQueue=o=h,i.pending=null}if(h=e.baseState,o===null)e.memoizedState=h;else{t=o.next;var b=D=null,w=null,z=t,I=!1;do{var W=z.lane&-536870913;if(W!==z.lane?(et&W)===W:(_u&W)===W){var G=z.revertLane;if(G===0)w!==null&&(w=w.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),W===vr&&(I=!0);else if((_u&G)===G){z=z.next,G===vr&&(I=!0);continue}else W={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},w===null?(b=w=W,D=h):w=w.next=W,qe.lanes|=G,Va|=G;W=z.action,vn&&n(h,W),h=z.hasEagerState?z.eagerState:n(h,W)}else G={lane:W,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},w===null?(b=w=G,D=h):w=w.next=G,qe.lanes|=W,Va|=W;z=z.next}while(z!==null&&z!==t);if(w===null?D=h:w.next=b,!Qn(h,e.memoizedState)&&(rn=!0,I&&(n=Rn,n!==null)))throw n;e.memoizedState=h,e.baseState=D,e.baseQueue=w,i.lastRenderedState=h}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function of(e){var t=Qt(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,h=t.memoizedState;if(o!==null){n.pending=null;var D=o=o.next;do h=e(h,D.action),D=D.next;while(D!==o);Qn(h,t.memoizedState)||(rn=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),n.lastRenderedState=h}return[h,i]}function ff(e,t,n){var i=qe,o=Qt(),h=Je;if(h){if(n===void 0)throw Error(c(407));n=n()}else n=t();var D=!Qn((gt||o).memoizedState,n);D&&(o.memoizedState=n,rn=!0),o=o.queue;var b=lc.bind(null,i,o,e);if(Ol(2048,8,b,[e]),o.getSnapshot!==t||D||$e!==null&&$e.memoizedState.tag&1){if(i.flags|=2048,yr(9,hc(),Md.bind(null,i,o,n,t),null),Ct===null)throw Error(c(349));h||(_u&124)!==0||rc(i,t,n)}return n}function rc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qe.updateQueue,t===null?(t=Si(),qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Md(e,t,n,i){t.value=n,t.getSnapshot=i,hf(t)&&df(e)}function lc(e,t,n){return n(function(){hf(t)&&df(e)})}function hf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch{return!0}}function df(e){var t=gi(e,2);t!==null&&Wn(t,e,2)}function sc(e){var t=Nn();if(typeof e=="function"){var n=e;if(e=n(),vn){Yn(!0);try{n()}finally{Yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lu,lastRenderedState:e},t}function wl(e,t,n,i){return e.baseState=n,cf(e,gt,typeof i=="function"?i:Lu)}function dv(e,t,n,i,o){if(Dc(e))throw Error(c(485));if(e=t.action,e!==null){var h={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){h.listeners.push(D)}};B.T!==null?n(!0):h.isTransition=!1,i(h),n=t.pending,n===null?(h.next=t.pending=h,gf(t,h)):(h.next=n.next,t.pending=n.next=h)}}function gf(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var h=B.T,D={};B.T=D;try{var b=n(o,i),w=B.S;w!==null&&w(D,b),vf(e,t,b)}catch(z){cc(e,t,z)}finally{B.T=h}}else try{h=n(o,i),vf(e,t,h)}catch(z){cc(e,t,z)}}function vf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Od(e,t,i)},function(i){return cc(e,t,i)}):Od(e,t,n)}function Od(e,t,n){t.status="fulfilled",t.value=n,Td(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gf(e,n)))}function cc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Td(t),t=t.next;while(t!==i)}e.action=null}function Td(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oc(e,t){return t}function Df(e,t){if(Je){var n=Ct.formState;if(n!==null){e:{var i=qe;if(Je){if(Bt){t:{for(var o=Bt,h=Tn;o.nodeType!==8;){if(!h){o=null;break t}if(o=Cu(o.nextSibling),o===null){o=null;break t}}h=o.data,o=h==="F!"||h==="F"?o:null}if(o){Bt=Cu(o.nextSibling),i=o.data==="F!";break e}}su(i)}i=!1}i&&(t=n[0])}}return n=Nn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oc,lastRenderedState:t},n.queue=i,n=bf.bind(null,qe,i),i.dispatch=n,i=sc(!1),h=_f.bind(null,qe,!1,i.queue),i=Nn(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=dv.bind(null,qe,o,h,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function fc(e){var t=Qt();return Bd(t,gt,e)}function Bd(e,t,n){if(t=cf(e,t,oc)[0],e=ic(Lu)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Sl(t)}catch(D){throw D===bn?ec:D}else i=t;t=Qt();var o=t.queue,h=o.dispatch;return n!==t.memoizedState&&(qe.flags|=2048,yr(9,hc(),pf.bind(null,o,n),null)),[i,h,e]}function pf(e,t){e.action=t}function Ge(e){var t=Qt(),n=gt;if(n!==null)return Bd(t,n,e);Qt(),t=t.memoizedState,n=Qt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function yr(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=qe.updateQueue,t===null&&(t=Si(),qe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function hc(){return{destroy:void 0,resource:void 0}}function br(){return Qt().memoizedState}function Ml(e,t,n,i){var o=Nn();i=i===void 0?null:i,qe.flags|=e,o.memoizedState=yr(1|t,hc(),n,i)}function Ol(e,t,n,i){var o=Qt();i=i===void 0?null:i;var h=o.memoizedState.inst;gt!==null&&i!==null&&Cl(i,gt.memoizedState.deps)?o.memoizedState=yr(t,h,n,i):(qe.flags|=e,o.memoizedState=yr(1|t,h,n,i))}function Rd(e,t){Ml(8390656,8,e,t)}function Xn(e,t){Ol(2048,8,e,t)}function Nd(e,t){return Ol(4,2,e,t)}function Tl(e,t){return Ol(4,4,e,t)}function dc(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 Af(e,t,n){n=n!=null?n.concat([e]):null,Ol(4,4,dc.bind(null,t,e),n)}function gc(){}function jn(e,t){var n=Qt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Cl(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function aa(e,t){var n=Qt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Cl(t,i[1]))return i[0];if(i=e(),vn){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[i,t],i}function Bl(e,t,n){return n===void 0||(_u&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=d0(),qe.lanes|=e,Va|=e,n)}function mf(e,t,n,i){return Qn(n,t)?n:xi.current!==null?(e=Bl(e,n,i),Qn(e,t)||(rn=!0),e):(_u&42)===0?(rn=!0,e.memoizedState=n):(e=d0(),qe.lanes|=e,Va|=e,t)}function Rl(e,t,n,i,o){var h=V.p;V.p=h!==0&&8>h?h:8;var D=B.T,b={};B.T=b,_f(e,!1,t,n);try{var w=o(),z=B.S;if(z!==null&&z(b,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var I=hv(w,i);Fi(e,t,I,pn(e))}else Fi(e,t,i,pn(e))}catch(W){Fi(e,t,{then:function(){},status:"rejected",reason:W},pn())}finally{V.p=h,B.T=D}}function jd(){}function Nl(e,t,n,i){if(e.tag!==5)throw Error(c(476));var o=yf(e).queue;Rl(e,o,t,Q,n===null?jd:function(){return vc(e),n(i)})}function yf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lu,lastRenderedState:Q},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lu,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vc(e){var t=yf(e).next.queue;Fi(e,t,{},pn())}function jl(){return Ut(Yr)}function ia(){return Qt().memoizedState}function Ld(){return Qt().memoizedState}function Ua(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pn();e=ja(n);var i=na(t,e,n);i!==null&&(Wn(i,t,n),xl(i,t,n)),t={cache:Po()},e.payload=t;return}t=t.return}}function zd(e,t,n){var i=pn();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Dc(e)?Ud(t,n):(n=hr(e,t,n,i),n!==null&&(Wn(n,e,i),xf(n,t,i)))}function bf(e,t,n){var i=pn();Fi(e,t,n,i)}function Fi(e,t,n,i){var o={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dc(e))Ud(t,o);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var D=t.lastRenderedState,b=h(D,n);if(o.hasEagerState=!0,o.eagerState=b,Qn(b,D))return Au(e,t,o,0),Ct===null&&di(),!1}catch{}finally{}if(n=hr(e,t,o,i),n!==null)return Wn(n,e,i),xf(n,t,i),!0}return!1}function _f(e,t,n,i){if(i={lane:2,revertLane:Uc(),action:i,hasEagerState:!1,eagerState:null,next:null},Dc(e)){if(t)throw Error(c(479))}else t=hr(e,n,i,2),t!==null&&Wn(t,e,2)}function Dc(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function Ud(e,t){Ei=Ar=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xf(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,zh(e,n)}}var Ll={readContext:Ut,use:ac,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We},Hd={readContext:Ut,use:ac,useCallback:function(e,t){return Nn().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:Rd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ml(4194308,4,dc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){Ml(4,2,e,t)},useMemo:function(e,t){var n=Nn();t=t===void 0?null:t;var i=e();if(vn){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Nn();if(n!==void 0){var o=n(t);if(vn){Yn(!0);try{n(t)}finally{Yn(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=zd.bind(null,qe,e),[i.memoizedState,e]},useRef:function(e){var t=Nn();return e={current:e},t.memoizedState=e},useState:function(e){e=sc(e);var t=e.queue,n=bf.bind(null,qe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gc,useDeferredValue:function(e,t){var n=Nn();return Bl(n,e,t)},useTransition:function(){var e=sc(!1);return e=Rl.bind(null,qe,e.queue,!0,!1),Nn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=qe,o=Nn();if(Je){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Ct===null)throw Error(c(349));(et&124)!==0||rc(i,t,n)}o.memoizedState=n;var h={value:n,getSnapshot:t};return o.queue=h,Rd(lc.bind(null,i,h,e),[e]),i.flags|=2048,yr(9,hc(),Md.bind(null,i,h,n,t),null),n},useId:function(){var e=Nn(),t=Ct.identifierPrefix;if(Je){var n=ea,i=Tt;n=(i&~(1<<32-An(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=mr++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Sd++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:jl,useFormState:Df,useActionState:Df,useOptimistic:function(e){var t=Nn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=_f.bind(null,qe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fl,useCacheRefresh:function(){return Nn().memoizedState=Ua.bind(null,qe)}},Ef={readContext:Ut,use:ac,useCallback:jn,useContext:Ut,useEffect:Xn,useImperativeHandle:Af,useInsertionEffect:Nd,useLayoutEffect:Tl,useMemo:aa,useReducer:ic,useRef:br,useState:function(){return ic(Lu)},useDebugValue:gc,useDeferredValue:function(e,t){var n=Qt();return mf(n,gt.memoizedState,e,t)},useTransition:function(){var e=ic(Lu)[0],t=Qt().memoizedState;return[typeof e=="boolean"?e:Sl(e),t]},useSyncExternalStore:ff,useId:ia,useHostTransitionStatus:jl,useFormState:fc,useActionState:fc,useOptimistic:function(e,t){var n=Qt();return wl(n,gt,e,t)},useMemoCache:Fl,useCacheRefresh:Ld},Gd={readContext:Ut,use:ac,useCallback:jn,useContext:Ut,useEffect:Xn,useImperativeHandle:Af,useInsertionEffect:Nd,useLayoutEffect:Tl,useMemo:aa,useReducer:of,useRef:br,useState:function(){return of(Lu)},useDebugValue:gc,useDeferredValue:function(e,t){var n=Qt();return gt===null?Bl(n,e,t):mf(n,gt.memoizedState,e,t)},useTransition:function(){var e=of(Lu)[0],t=Qt().memoizedState;return[typeof e=="boolean"?e:Sl(e),t]},useSyncExternalStore:ff,useId:ia,useHostTransitionStatus:jl,useFormState:Ge,useActionState:Ge,useOptimistic:function(e,t){var n=Qt();return gt!==null?wl(n,gt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Fl,useCacheRefresh:Ld},Kt=null,Ln=0;function pc(e){var t=Ln;return Ln+=1,Kt===null&&(Kt=[]),nf(Kt,e,t)}function zl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wi(e,t){throw t.$$typeof===H?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Mi(e){var t=e._init;return t(e._payload)}function Cf(e){function t(N,T){if(e){var L=N.deletions;L===null?(N.deletions=[T],N.flags|=16):L.push(T)}}function n(N,T){if(!e)return null;for(;T!==null;)t(N,T),T=T.sibling;return null}function i(N){for(var T=new Map;N!==null;)N.key!==null?T.set(N.key,N):T.set(N.index,N),N=N.sibling;return T}function o(N,T){return N=yn(N,T),N.index=0,N.sibling=null,N}function h(N,T,L){return N.index=L,e?(L=N.alternate,L!==null?(L=L.index,L<T?(N.flags|=67108866,T):L):(N.flags|=67108866,T)):(N.flags|=1048576,T)}function D(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function b(N,T,L,J){return T===null||T.tag!==6?(T=Jo(L,N.mode,J),T.return=N,T):(T=o(T,L),T.return=N,T)}function w(N,T,L,J){var Ae=L.type;return Ae===ie?I(N,T,L.props.children,J,L.key):T!==null&&(T.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===Ie&&Mi(Ae)===T.type)?(T=o(T,L.props),zl(T,L),T.return=N,T):(T=Is(L.type,L.key,L.props,null,N.mode,J),zl(T,L),T.return=N,T)}function z(N,T,L,J){return T===null||T.tag!==4||T.stateNode.containerInfo!==L.containerInfo||T.stateNode.implementation!==L.implementation?(T=dr(L,N.mode,J),T.return=N,T):(T=o(T,L.children||[]),T.return=N,T)}function I(N,T,L,J,Ae){return T===null||T.tag!==7?(T=pi(L,N.mode,J,Ae),T.return=N,T):(T=o(T,L),T.return=N,T)}function W(N,T,L){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Jo(""+T,N.mode,L),T.return=N,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Y:return L=Is(T.type,T.key,T.props,null,N.mode,L),zl(L,T),L.return=N,L;case te:return T=dr(T,N.mode,L),T.return=N,T;case Ie:var J=T._init;return T=J(T._payload),W(N,T,L)}if(re(T)||ot(T))return T=pi(T,N.mode,L,null),T.return=N,T;if(typeof T.then=="function")return W(N,pc(T),L);if(T.$$typeof===ae)return W(N,Ws(N,T),L);wi(N,T)}return null}function G(N,T,L,J){var Ae=T!==null?T.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return Ae!==null?null:b(N,T,""+L,J);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case Y:return L.key===Ae?w(N,T,L,J):null;case te:return L.key===Ae?z(N,T,L,J):null;case Ie:return Ae=L._init,L=Ae(L._payload),G(N,T,L,J)}if(re(L)||ot(L))return Ae!==null?null:I(N,T,L,J,null);if(typeof L.then=="function")return G(N,T,pc(L),J);if(L.$$typeof===ae)return G(N,T,Ws(N,L),J);wi(N,L)}return null}function U(N,T,L,J,Ae){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return N=N.get(L)||null,b(T,N,""+J,Ae);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case Y:return N=N.get(J.key===null?L:J.key)||null,w(T,N,J,Ae);case te:return N=N.get(J.key===null?L:J.key)||null,z(T,N,J,Ae);case Ie:var Ve=J._init;return J=Ve(J._payload),U(N,T,L,J,Ae)}if(re(J)||ot(J))return N=N.get(L)||null,I(T,N,J,Ae,null);if(typeof J.then=="function")return U(N,T,L,pc(J),Ae);if(J.$$typeof===ae)return U(N,T,L,Ws(T,J),Ae);wi(T,J)}return null}function Me(N,T,L,J){for(var Ae=null,Ve=null,xe=T,Oe=T=0,cn=null;xe!==null&&Oe<L.length;Oe++){xe.index>Oe?(cn=xe,xe=null):cn=xe.sibling;var at=G(N,xe,L[Oe],J);if(at===null){xe===null&&(xe=cn);break}e&&xe&&at.alternate===null&&t(N,xe),T=h(at,T,Oe),Ve===null?Ae=at:Ve.sibling=at,Ve=at,xe=cn}if(Oe===L.length)return n(N,xe),Je&&Ai(N,Oe),Ae;if(xe===null){for(;Oe<L.length;Oe++)xe=W(N,L[Oe],J),xe!==null&&(T=h(xe,T,Oe),Ve===null?Ae=xe:Ve.sibling=xe,Ve=xe);return Je&&Ai(N,Oe),Ae}for(xe=i(xe);Oe<L.length;Oe++)cn=U(xe,N,Oe,L[Oe],J),cn!==null&&(e&&cn.alternate!==null&&xe.delete(cn.key===null?Oe:cn.key),T=h(cn,T,Oe),Ve===null?Ae=cn:Ve.sibling=cn,Ve=cn);return e&&xe.forEach(function(ei){return t(N,ei)}),Je&&Ai(N,Oe),Ae}function Fe(N,T,L,J){if(L==null)throw Error(c(151));for(var Ae=null,Ve=null,xe=T,Oe=T=0,cn=null,at=L.next();xe!==null&&!at.done;Oe++,at=L.next()){xe.index>Oe?(cn=xe,xe=null):cn=xe.sibling;var ei=G(N,xe,at.value,J);if(ei===null){xe===null&&(xe=cn);break}e&&xe&&ei.alternate===null&&t(N,xe),T=h(ei,T,Oe),Ve===null?Ae=ei:Ve.sibling=ei,Ve=ei,xe=cn}if(at.done)return n(N,xe),Je&&Ai(N,Oe),Ae;if(xe===null){for(;!at.done;Oe++,at=L.next())at=W(N,at.value,J),at!==null&&(T=h(at,T,Oe),Ve===null?Ae=at:Ve.sibling=at,Ve=at);return Je&&Ai(N,Oe),Ae}for(xe=i(xe);!at.done;Oe++,at=L.next())at=U(xe,N,Oe,at.value,J),at!==null&&(e&&at.alternate!==null&&xe.delete(at.key===null?Oe:at.key),T=h(at,T,Oe),Ve===null?Ae=at:Ve.sibling=at,Ve=at);return e&&xe.forEach(function(Iv){return t(N,Iv)}),Je&&Ai(N,Oe),Ae}function yt(N,T,L,J){if(typeof L=="object"&&L!==null&&L.type===ie&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case Y:e:{for(var Ae=L.key;T!==null;){if(T.key===Ae){if(Ae=L.type,Ae===ie){if(T.tag===7){n(N,T.sibling),J=o(T,L.props.children),J.return=N,N=J;break e}}else if(T.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===Ie&&Mi(Ae)===T.type){n(N,T.sibling),J=o(T,L.props),zl(J,L),J.return=N,N=J;break e}n(N,T);break}else t(N,T);T=T.sibling}L.type===ie?(J=pi(L.props.children,N.mode,J,L.key),J.return=N,N=J):(J=Is(L.type,L.key,L.props,null,N.mode,J),zl(J,L),J.return=N,N=J)}return D(N);case te:e:{for(Ae=L.key;T!==null;){if(T.key===Ae)if(T.tag===4&&T.stateNode.containerInfo===L.containerInfo&&T.stateNode.implementation===L.implementation){n(N,T.sibling),J=o(T,L.children||[]),J.return=N,N=J;break e}else{n(N,T);break}else t(N,T);T=T.sibling}J=dr(L,N.mode,J),J.return=N,N=J}return D(N);case Ie:return Ae=L._init,L=Ae(L._payload),yt(N,T,L,J)}if(re(L))return Me(N,T,L,J);if(ot(L)){if(Ae=ot(L),typeof Ae!="function")throw Error(c(150));return L=Ae.call(L),Fe(N,T,L,J)}if(typeof L.then=="function")return yt(N,T,pc(L),J);if(L.$$typeof===ae)return yt(N,T,Ws(N,L),J);wi(N,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,T!==null&&T.tag===6?(n(N,T.sibling),J=o(T,L),J.return=N,N=J):(n(N,T),J=Jo(L,N.mode,J),J.return=N,N=J),D(N)):n(N,T)}return function(N,T,L,J){try{Ln=0;var Ae=yt(N,T,L,J);return Kt=null,Ae}catch(xe){if(xe===bn||xe===ec)throw xe;var Ve=On(29,xe,null,N.mode);return Ve.lanes=J,Ve.return=N,Ve}finally{}}}var Oi=Cf(!0),qd=Cf(!1),In=q(null),_n=null;function fu(e){var t=e.alternate;ne(Ht,Ht.current&1),ne(In,e),_n===null&&(t===null||xi.current!==null||t.memoizedState!==null)&&(_n=e)}function Yd(e){if(e.tag===22){if(ne(Ht,Ht.current),ne(In,e),_n===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(_n=e)}}else ra()}function ra(){ne(Ht,Ht.current),ne(In,In.current)}function zu(e){ue(In),_n===e&&(_n=null),ue(Ht)}var Ht=q(0);function Ul(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==="$?"||En(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 _r(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:M({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hl={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=pn(),o=ja(i);o.payload=t,n!=null&&(o.callback=n),t=na(e,o,i),t!==null&&(Wn(t,e,i),xl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=pn(),o=ja(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=na(e,o,i),t!==null&&(Wn(t,e,i),xl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pn(),i=ja(n);i.tag=2,t!=null&&(i.callback=t),t=na(e,i,n),t!==null&&(Wn(t,e,n),xl(t,e,n))}};function Gl(e,t,n,i,o,h,D){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,h,D):t.prototype&&t.prototype.isPureReactComponent?!Nu(n,i)||!Nu(o,h):!0}function kd(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Hl.enqueueReplaceState(t,t.state,null)}function Ha(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=M({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}var Ti=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 Sf(e){Ti(e)}function Ac(e){console.error(e)}function Vd(e){Ti(e)}function ql(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Uu(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function mc(e,t,n){return n=ja(n),n.tag=3,n.payload={element:null},n.callback=function(){ql(e,t)},n}function Ff(e){return e=ja(e),e.tag=3,e}function Qd(e,t,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var h=i.value;e.payload=function(){return o(h)},e.callback=function(){Uu(t,n,i)}}var D=n.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(e.callback=function(){Uu(t,n,i),typeof o!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function Zd(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&yl(t,n,o,!0),n=In.current,n!==null){switch(n.tag){case 13:return _n===null?Zf():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===tf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),If(e,i,o)),!1;case 22:return n.flags|=65536,i===tf?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),If(e,i,o)),!1}throw Error(c(435,n.tag))}return If(e,i,o),Zf(),!1}if(Je)return t=In.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==gr&&(e=Error(c(422),{cause:i}),Ra(mn(e,n)))):(i!==gr&&(t=Error(c(423),{cause:i}),Ra(mn(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=mn(i,n),o=mc(e.stateNode,i,o),yu(e,o),Gt!==4&&(Gt=2)),!1;var h=Error(c(520),{cause:i});if(h=mn(h,n),$l===null?$l=[h]:$l.push(h),Gt!==4&&(Gt=2),t===null)return!0;i=mn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=mc(n.stateNode,i,e),yu(n,e),!1;case 1:if(t=n.type,h=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Qa===null||!Qa.has(h))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Ff(o),Qd(o,e,n,i),yu(n,o),!1}n=n.return}while(n!==null);return!1}var Kd=Error(c(461)),rn=!1;function wt(e,t,n,i){t.child=e===null?qd(t,null,n,i):Oi(t,e.child,n,i)}function yc(e,t,n,i,o){n=n.render;var h=t.ref;if("ref"in i){var D={};for(var b in i)b!=="ref"&&(D[b]=i[b])}else D=i;return yi(t),i=rf(e,t,n,D,h,o),b=sf(),e!==null&&!rn?(Ci(e,t,o),la(e,t,o)):(Je&&b&&Wo(t),t.flags|=1,wt(e,t,i,o),t.child)}function bc(e,t,n,i,o){if(e===null){var h=n.type;return typeof h=="function"&&!Di(h)&&h.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=h,_c(e,t,h,i,o)):(e=Is(n.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!xu(e,o)){var D=h.memoizedProps;if(n=n.compare,n=n!==null?n:Nu,n(D,i)&&e.ref===t.ref)return la(e,t,o)}return t.flags|=1,e=yn(h,i),e.ref=t.ref,e.return=t,t.child=e}function _c(e,t,n,i,o){if(e!==null){var h=e.memoizedProps;if(Nu(h,i)&&e.ref===t.ref)if(rn=!1,t.pendingProps=i=h,xu(e,o))(e.flags&131072)!==0&&(rn=!0);else return t.lanes=e.lanes,la(e,t,o)}return xr(e,t,n,i,o)}function Yl(e,t,n){var i=t.pendingProps,o=i.children,h=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=h!==null?h.baseLanes|n:n,e!==null){for(o=t.child=e.child,h=0;o!==null;)h=h|o.lanes|o.childLanes,o=o.sibling;t.childLanes=h&~i}else t.childLanes=0,t.child=null;return Bi(e,t,i,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ps(t,h!==null?h.cachePool:null),h!==null?ua(t,h):nc(),Yd(t);else return t.lanes=t.childLanes=536870912,Bi(e,t,h!==null?h.baseLanes|n:n,n)}else h!==null?(Ps(t,h.cachePool),ua(t,h),ra(),t.memoizedState=null):(e!==null&&Ps(t,null),nc(),ra());return wt(e,t,o,n),t.child}function Bi(e,t,n,i){var o=ta();return o=o===null?null:{parent:_t._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Ps(t,null),nc(),Yd(t),e!==null&&yl(e,t,i,!0),null}function Ce(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(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function xr(e,t,n,i,o){return yi(t),n=rf(e,t,n,i,void 0,o),i=sf(),e!==null&&!rn?(Ci(e,t,o),la(e,t,o)):(Je&&i&&Wo(t),t.flags|=1,wt(e,t,n,o),t.child)}function xc(e,t,n,i,o,h){return yi(t),t.updateQueue=null,n=wd(t,i,n,o),Fd(e),i=sf(),e!==null&&!rn?(Ci(e,t,h),la(e,t,h)):(Je&&i&&Wo(t),t.flags|=1,wt(e,t,n,h),t.child)}function Ga(e,t,n,i,o){if(yi(t),t.stateNode===null){var h=vi,D=n.contextType;typeof D=="object"&&D!==null&&(h=Ut(D)),h=new n(i,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Hl,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=i,h.state=t.memoizedState,h.refs={},_i(t),D=n.contextType,h.context=typeof D=="object"&&D!==null?Ut(D):vi,h.state=t.memoizedState,D=n.getDerivedStateFromProps,typeof D=="function"&&(_r(t,n,D,i),h.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(D=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),D!==h.state&&Hl.enqueueReplaceState(h,h.state,null),gn(t,i,h,o),bu(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){h=t.stateNode;var b=t.memoizedProps,w=Ha(n,b);h.props=w;var z=h.context,I=n.contextType;D=vi,typeof I=="object"&&I!==null&&(D=Ut(I));var W=n.getDerivedStateFromProps;I=typeof W=="function"||typeof h.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,I||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b||z!==D)&&kd(t,h,i,D),ju=!1;var G=t.memoizedState;h.state=G,gn(t,i,h,o),bu(),z=t.memoizedState,b||G!==z||ju?(typeof W=="function"&&(_r(t,n,W,i),z=t.memoizedState),(w=ju||Gl(t,n,w,i,G,z,D))?(I||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=z),h.props=i,h.state=z,h.context=D,i=w):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{h=t.stateNode,pr(e,t),D=t.memoizedProps,I=Ha(n,D),h.props=I,W=t.pendingProps,G=h.context,z=n.contextType,w=vi,typeof z=="object"&&z!==null&&(w=Ut(z)),b=n.getDerivedStateFromProps,(z=typeof b=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(D!==W||G!==w)&&kd(t,h,i,w),ju=!1,G=t.memoizedState,h.state=G,gn(t,i,h,o),bu();var U=t.memoizedState;D!==W||G!==U||ju||e!==null&&e.dependencies!==null&&$s(e.dependencies)?(typeof b=="function"&&(_r(t,n,b,i),U=t.memoizedState),(I=ju||Gl(t,n,I,i,G,U,w)||e!==null&&e.dependencies!==null&&$s(e.dependencies))?(z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(i,U,w),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(i,U,w)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||D===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||D===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=U),h.props=i,h.state=U,h.context=w,i=I):(typeof h.componentDidUpdate!="function"||D===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||D===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),i=!1)}return h=i,Ce(e,t),i=(t.flags&128)!==0,h||i?(h=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&i?(t.child=Oi(t,e.child,null,o),t.child=Oi(t,null,n,o)):wt(e,t,n,o),t.memoizedState=h.state,e=t.child):e=la(e,t,o),e}function Xd(e,t,n,i){return ml(),t.flags|=256,wt(e,t,n,i),t.child}var kl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ec(e){return{baseLanes:e,cachePool:yd()}}function ln(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=du),e}function Id(e,t,n){var i=t.pendingProps,o=!1,h=(t.flags&128)!==0,D;if((D=h)||(D=e!==null&&e.memoizedState===null?!1:(Ht.current&2)!==0),D&&(o=!0,t.flags&=-129),D=(t.flags&32)!==0,t.flags&=-33,e===null){if(Je){if(o?fu(t):ra(),Je){var b=Bt,w;if(w=b){e:{for(w=b,b=Tn;w.nodeType!==8;){if(!b){b=null;break e}if(w=Cu(w.nextSibling),w===null){b=null;break e}}b=w}b!==null?(t.memoizedState={dehydrated:b,treeContext:Ft!==null?{id:Tt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},w=On(18,null,null,0),w.stateNode=b,w.return=t,t.child=w,Zt=t,Bt=null,w=!0):w=!1}w||su(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return En(b)?t.lanes=32:t.lanes=536870912,null;zu(t)}return b=i.children,i=i.fallback,o?(ra(),o=t.mode,b=Vl({mode:"hidden",children:b},o),i=pi(i,o,n,null),b.return=t,i.return=t,b.sibling=i,t.child=b,o=t.child,o.memoizedState=Ec(n),o.childLanes=ln(e,D,n),t.memoizedState=kl,i):(fu(t),wf(t,b))}if(w=e.memoizedState,w!==null&&(b=w.dehydrated,b!==null)){if(h)t.flags&256?(fu(t),t.flags&=-257,t=Mf(e,t,n)):t.memoizedState!==null?(ra(),t.child=e.child,t.flags|=128,t=null):(ra(),o=i.fallback,b=t.mode,i=Vl({mode:"visible",children:i.children},b),o=pi(o,b,n,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,Oi(t,e.child,null,n),i=t.child,i.memoizedState=Ec(n),i.childLanes=ln(e,D,n),t.memoizedState=kl,t=o);else if(fu(t),En(b)){if(D=b.nextSibling&&b.nextSibling.dataset,D)var z=D.dgst;D=z,i=Error(c(419)),i.stack="",i.digest=D,Ra({value:i,source:null,stack:null}),t=Mf(e,t,n)}else if(rn||yl(e,t,n,!1),D=(n&e.childLanes)!==0,rn||D){if(D=Ct,D!==null&&(i=n&-n,i=(i&42)!==0?1:mo(i),i=(i&(D.suspendedLanes|n))!==0?0:i,i!==0&&i!==w.retryLane))throw w.retryLane=i,gi(e,i),Wn(D,e,i),Kd;b.data==="$?"||Zf(),t=Mf(e,t,n)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Bt=Cu(b.nextSibling),Zt=t,Je=!0,mu=null,Tn=!1,e!==null&&(ru[lu++]=Tt,ru[lu++]=ea,ru[lu++]=Ft,Tt=e.id,ea=e.overflow,Ft=t),t=wf(t,i.children),t.flags|=4096);return t}return o?(ra(),o=i.fallback,b=t.mode,w=e.child,z=w.sibling,i=yn(w,{mode:"hidden",children:i.children}),i.subtreeFlags=w.subtreeFlags&65011712,z!==null?o=yn(z,o):(o=pi(o,b,n,null),o.flags|=2),o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,b=e.child.memoizedState,b===null?b=Ec(n):(w=b.cachePool,w!==null?(z=_t._currentValue,w=w.parent!==z?{parent:z,pool:z}:w):w=yd(),b={baseLanes:b.baseLanes|n,cachePool:w}),o.memoizedState=b,o.childLanes=ln(e,D,n),t.memoizedState=kl,i):(fu(t),n=e.child,e=n.sibling,n=yn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(D=t.deletions,D===null?(t.deletions=[e],t.flags|=16):D.push(e)),t.child=n,t.memoizedState=null,n)}function wf(e,t){return t=Vl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vl(e,t){return e=On(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Mf(e,t,n){return Oi(t,e.child,null,n),e=wf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Of(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Bn(e.return,t,n)}function Tf(e,t,n,i,o){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=o)}function Jd(e,t,n){var i=t.pendingProps,o=i.revealOrder,h=i.tail;if(wt(e,t,i.children,n),i=Ht.current,(i&2)!==0)i=i&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&&Of(e,n,t);else if(e.tag===19)Of(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}i&=1}switch(ne(Ht,i),o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ul(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Tf(t,!1,o,n,h);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ul(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Tf(t,!0,n,null,h);break;case"together":Tf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function la(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Va|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(yl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=yn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&$s(e)))}function xn(e,t,n){switch(t.tag){case 3:Ze(t,t.stateNode.containerInfo),Kn(t,_t,e.memoizedState.cache),ml();break;case 27:case 5:kt(t);break;case 4:Ze(t,t.stateNode.containerInfo);break;case 10:Kn(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(fu(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Id(e,t,n):(fu(t),e=la(e,t,n),e!==null?e.sibling:null);fu(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(yl(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return Jd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(Ht,Ht.current),i)break;return null;case 22:case 23:return t.lanes=0,Yl(e,t,n);case 24:Kn(t,_t,e.memoizedState.cache)}return la(e,t,n)}function Cc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)rn=!0;else{if(!xu(e,n)&&(t.flags&128)===0)return rn=!1,xn(e,t,n);rn=(e.flags&131072)!==0}else rn=!1,Je&&(t.flags&1048576)!==0&&$o(t,Dl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,o=i._init;if(i=o(i._payload),t.type=i,typeof i=="function")Di(i)?(e=Ha(i,e),t.tag=1,t=Ga(null,t,i,e,n)):(t.tag=0,t=xr(null,t,i,e,n));else{if(i!=null){if(o=i.$$typeof,o===ce){t.tag=11,t=yc(null,t,i,e,n);break e}else if(o===we){t.tag=14,t=bc(null,t,i,e,n);break e}}throw t=_e(i)||i,Error(c(306,t,""))}}return t;case 0:return xr(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Ha(i,t.pendingProps),Ga(e,t,i,o,n);case 3:e:{if(Ze(t,t.stateNode.containerInfo),e===null)throw Error(c(387));i=t.pendingProps;var h=t.memoizedState;o=h.element,pr(e,t),gn(t,i,null,n);var D=t.memoizedState;if(i=D.cache,Kn(t,_t,i),i!==h.cache&&ke(t,[_t],n,!0),bu(),i=D.element,h.isDehydrated)if(h={element:i,isDehydrated:!1,cache:D.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=Xd(e,t,i,n);break e}else if(i!==o){o=mn(Error(c(424)),t),Ra(o),t=Xd(e,t,i,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(Bt=Cu(e.firstChild),Zt=t,Je=!0,mu=null,Tn=!0,n=qd(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ml(),i===o){t=la(e,t,n);break e}wt(e,t,i,n)}t=t.child}return t;case 26:return Ce(e,t),e===null?(n=Z0(t.type,null,t.pendingProps,null))?t.memoizedState=n:Je||(n=t.type,e=t.pendingProps,i=ji(Ee.current).createElement(n),i[un]=t,i[Fn]=e,Jt(i,n,e),an(i),t.stateNode=i):t.memoizedState=Z0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return kt(t),e===null&&Je&&(i=t.stateNode=k0(t.type,t.pendingProps,Ee.current),Zt=t,Tn=!0,o=Bt,gu(t.type)?(ah=o,Bt=Cu(i.firstChild)):Bt=o),wt(e,t,t.pendingProps.children,n),Ce(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Je&&((o=i=Bt)&&(i=q0(i,t.type,t.pendingProps,Tn),i!==null?(t.stateNode=i,Zt=t,Bt=Cu(i.firstChild),Tn=!1,o=!0):o=!1),o||su(t)),kt(t),o=t.type,h=t.pendingProps,D=e!==null?e.memoizedProps:null,i=h.children,Yc(o,h)?i=null:D!==null&&Yc(o,D)&&(t.flags|=32),t.memoizedState!==null&&(o=rf(e,t,lf,null,null,n),Yr._currentValue=o),Ce(e,t),wt(e,t,i,n),t.child;case 6:return e===null&&Je&&((e=n=Bt)&&(n=Vc(n,t.pendingProps,Tn),n!==null?(t.stateNode=n,Zt=t,Bt=null,e=!0):e=!1),e||su(t)),null;case 13:return Id(e,t,n);case 4:return Ze(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Oi(t,null,i,n):wt(e,t,i,n),t.child;case 11:return yc(e,t,t.type,t.pendingProps,n);case 7:return wt(e,t,t.pendingProps,n),t.child;case 8:return wt(e,t,t.pendingProps.children,n),t.child;case 12:return wt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Kn(t,t.type,i.value),wt(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,yi(t),o=Ut(o),i=i(o),t.flags|=1,wt(e,t,i,n),t.child;case 14:return bc(e,t,t.type,t.pendingProps,n);case 15:return _c(e,t,t.type,t.pendingProps,n);case 19:return Jd(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=Vl(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=yn(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Yl(e,t,n);case 24:return yi(t),i=Ut(_t),e===null?(o=ta(),o===null&&(o=Ct,h=Po(),o.pooledCache=h,h.refCount++,h!==null&&(o.pooledCacheLanes|=n),o=h),t.memoizedState={parent:i,cache:o},_i(t),Kn(t,_t,o)):((e.lanes&n)!==0&&(pr(e,t),gn(t,null,null,n),bu()),o=e.memoizedState,h=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Kn(t,_t,i)):(i=h.cache,Kn(t,_t,i),i!==o.cache&&ke(t,[_t],n,!0))),wt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function sa(e){e.flags|=4}function Sc(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$t(t)){if(t=In.current,t!==null&&((et&4194048)===et?_n!==null:(et&62914560)!==et&&(et&536870912)===0||t!==_n))throw Dr=tf,bd;e.flags|=8192}}function Fc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jh():536870912,e.lanes|=t,Or|=t)}function Ql(e,t){if(!Je)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function $d(e,t,n){var i=t.pendingProps;switch(pl(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(t),null;case 1:return xt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),cu(_t),zt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Al(t)?sa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dd())),xt(t),null;case 26:return n=t.memoizedState,e===null?(sa(t),n!==null?(xt(t),Sc(t,n)):(xt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(sa(t),xt(t),Sc(t,n)):(xt(t),t.flags&=-16777217):(e.memoizedProps!==i&&sa(t),xt(t),t.flags&=-16777217),null;case 27:tn(t),n=Ee.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&sa(t);else{if(!i){if(t.stateNode===null)throw Error(c(166));return xt(t),null}e=ve.current,Al(t)?gd(t):(e=k0(o,i,n),t.stateNode=e,sa(t))}return xt(t),null;case 5:if(tn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&sa(t);else{if(!i){if(t.stateNode===null)throw Error(c(166));return xt(t),null}if(e=ve.current,Al(t))gd(t);else{switch(o=ji(Ee.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?o.createElement("select",{is:i.is}):o.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?o.createElement(n,{is:i.is}):o.createElement(n)}}e[un]=t,e[Fn]=i;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(Jt(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&sa(t)}}return xt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&sa(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(c(166));if(e=Ee.current,Al(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,o=Zt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[un]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||z0(e.nodeValue,n)),e||su(t)}else e=ji(e).createTextNode(i),e[un]=t,t.stateNode=e}return xt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Al(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(c(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(c(317));o[un]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xt(t),o=!1}else o=Dd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(zu(t),t):(zu(t),null)}if(zu(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=i!==null,e=e!==null&&e.memoizedState!==null,n){i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool);var h=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(h=i.memoizedState.cachePool.pool),h!==o&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Fc(t,t.updateQueue),xt(t),null;case 4:return zt(),e===null&&eh(t.stateNode.containerInfo),xt(t),null;case 10:return cu(t.type),xt(t),null;case 19:if(ue(Ht),o=t.memoizedState,o===null)return xt(t),null;if(i=(t.flags&128)!==0,h=o.rendering,h===null)if(i)Ql(o,!1);else{if(Gt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=Ul(e),h!==null){for(t.flags|=128,Ql(o,!1),e=h.updateQueue,t.updateQueue=e,Fc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)vl(n,e),n=n.sibling;return ne(Ht,Ht.current&1|2),t.child}e=e.sibling}o.tail!==null&&pt()>Tr&&(t.flags|=128,i=!0,Ql(o,!1),t.lanes=4194304)}else{if(!i)if(e=Ul(h),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Fc(t,e),Ql(o,!0),o.tail===null&&o.tailMode==="hidden"&&!h.alternate&&!Je)return xt(t),null}else 2*pt()-o.renderingStartTime>Tr&&n!==536870912&&(t.flags|=128,i=!0,Ql(o,!1),t.lanes=4194304);o.isBackwards?(h.sibling=t.child,t.child=h):(e=o.last,e!==null?e.sibling=h:t.child=h,o.last=h)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pt(),t.sibling=null,e=Ht.current,ne(Ht,i?e&1|2:e&1),t):(xt(t),null);case 22:case 23:return zu(t),af(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),n=t.updateQueue,n!==null&&Fc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&ue(bi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),cu(_t),xt(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Wd(e,t){switch(pl(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cu(_t),zt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return tn(t),null;case 13:if(zu(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(Ht),null;case 4:return zt(),null;case 10:return cu(t.type),null;case 22:case 23:return zu(t),af(),e!==null&&ue(bi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return cu(_t),null;case 25:return null;default:return null}}function Pd(e,t){switch(pl(t),t.tag){case 3:cu(_t),zt();break;case 26:case 27:case 5:tn(t);break;case 4:zt();break;case 13:zu(t);break;case 19:ue(Ht);break;case 10:cu(t.type);break;case 22:case 23:zu(t),af(),e!==null&&ue(bi);break;case 24:cu(_t)}}function Zl(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&e)===e){i=void 0;var h=n.create,D=n.inst;i=h(),D.destroy=i}n=n.next}while(n!==o)}}catch(b){Et(t,t.return,b)}}function qa(e,t,n){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var h=o.next;i=h;do{if((i.tag&e)===e){var D=i.inst,b=D.destroy;if(b!==void 0){D.destroy=void 0,o=t;var w=n,z=b;try{z()}catch(I){Et(o,w,I)}}}i=i.next}while(i!==h)}}catch(I){Et(t,t.return,I)}}function e0(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{uf(t,n)}catch(i){Et(e,e.return,i)}}}function Bf(e,t,n){n.props=Ha(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Et(e,t,i)}}function Er(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(o){Et(e,t,o)}}function Hu(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){Et(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Et(e,t,o)}else n.current=null}function wc(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){Et(e,e.return,o)}}function Mc(e,t,n){try{var i=e.stateNode;wv(i,e.type,n,t),i[Fn]=t}catch(o){Et(e,e.return,o)}}function Cr(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&gu(e.type)||e.tag===4}function Kl(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cr(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&&gu(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 Oc(e,t,n){var i=e.tag;if(i===5||i===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=Gc));else if(i!==4&&(i===27&&gu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Oc(e,t,n),e=e.sibling;e!==null;)Oc(e,t,n),e=e.sibling}function Xl(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&gu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xl(e,t,n),e=e.sibling;e!==null;)Xl(e,t,n),e=e.sibling}function Il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Jt(t,i,n),t[un]=e,t[Fn]=n}catch(h){Et(e,e.return,h)}}var Gu=!1,ft=!1,ca=!1,t0=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function gv(e,t){if(e=e.containerInfo,Eu=Xc,e=hd(e),Ko(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,h=i.focusNode;i=i.focusOffset;try{n.nodeType,h.nodeType}catch{n=null;break e}var D=0,b=-1,w=-1,z=0,I=0,W=e,G=null;t:for(;;){for(var U;W!==n||o!==0&&W.nodeType!==3||(b=D+o),W!==h||i!==0&&W.nodeType!==3||(w=D+i),W.nodeType===3&&(D+=W.nodeValue.length),(U=W.firstChild)!==null;)G=W,W=U;for(;;){if(W===e)break t;if(G===n&&++z===o&&(b=D),G===h&&++I===i&&(w=D),(U=W.nextSibling)!==null)break;W=G,G=W.parentNode}W=U}n=b===-1||w===-1?null:{start:b,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(qc={focusedElem:e,selectionRange:n},Xc=!1,Xt=t;Xt!==null;)if(t=Xt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Xt=e;else for(;Xt!==null;){switch(t=Xt,h=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,n=t,o=h.memoizedProps,h=h.memoizedState,i=n.stateNode;try{var Me=Ha(n.type,o,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(Me,h),i.__reactInternalSnapshotBeforeUpdate=e}catch(Fe){Et(n,n.return,Fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)uh(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uh(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Xt=e;break}Xt=t.return}}function n0(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Ya(e,n),i&4&&Zl(5,n);break;case 1:if(Ya(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(D){Et(n,n.return,D)}else{var o=Ha(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(D){Et(n,n.return,D)}}i&64&&e0(n),i&512&&Er(n,n.return);break;case 3:if(Ya(e,n),i&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{uf(e,t)}catch(D){Et(n,n.return,D)}}break;case 27:t===null&&i&4&&Il(n);case 26:case 5:Ya(e,n),t===null&&i&4&&wc(n),i&512&&Er(n,n.return);break;case 12:Ya(e,n);break;case 13:Ya(e,n),i&4&&i0(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=jc.bind(null,n),zr(e,n))));break;case 22:if(i=n.memoizedState!==null||Gu,!i){t=t!==null&&t.memoizedState!==null||ft,o=Gu;var h=ft;Gu=i,(ft=t)&&!h?fa(e,n,(n.subtreeFlags&8772)!==0):Ya(e,n),Gu=o,ft=h}break;case 30:break;default:Ya(e,n)}}function u0(e){var t=e.alternate;t!==null&&(e.alternate=null,u0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bo(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 Rt=null,zn=!1;function oa(e,t,n){for(n=n.child;n!==null;)a0(e,t,n),n=n.sibling}function a0(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(nl,n)}catch{}switch(n.tag){case 26:ft||Hu(n,t),oa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ft||Hu(n,t);var i=Rt,o=zn;gu(n.type)&&(Rt=n.stateNode,zn=!1),oa(e,t,n),rs(n.stateNode),Rt=i,zn=o;break;case 5:ft||Hu(n,t);case 6:if(i=Rt,o=zn,Rt=null,oa(e,t,n),Rt=i,zn=o,Rt!==null)if(zn)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(n.stateNode)}catch(h){Et(n,t,h)}else try{Rt.removeChild(n.stateNode)}catch(h){Et(n,t,h)}break;case 18:Rt!==null&&(zn?(e=Rt,kc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),gs(e)):kc(Rt,n.stateNode));break;case 4:i=Rt,o=zn,Rt=n.stateNode.containerInfo,zn=!0,oa(e,t,n),Rt=i,zn=o;break;case 0:case 11:case 14:case 15:ft||qa(2,n,t),ft||qa(4,n,t),oa(e,t,n);break;case 1:ft||(Hu(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Bf(n,t,i)),oa(e,t,n);break;case 21:oa(e,t,n);break;case 22:ft=(i=ft)||n.memoizedState!==null,oa(e,t,n),ft=i;break;default:oa(e,t,n)}}function i0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gs(e)}catch(n){Et(t,t.return,n)}}function vv(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new t0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new t0),t;default:throw Error(c(435,e.tag))}}function Rf(e,t){var n=vv(e);t.forEach(function(i){var o=bv.bind(null,e,i);n.has(i)||(n.add(i),i.then(o,o))})}function Jn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i],h=e,D=t,b=D;e:for(;b!==null;){switch(b.tag){case 27:if(gu(b.type)){Rt=b.stateNode,zn=!1;break e}break;case 5:Rt=b.stateNode,zn=!1;break e;case 3:case 4:Rt=b.stateNode.containerInfo,zn=!0;break e}b=b.return}if(Rt===null)throw Error(c(160));a0(h,D,o),Rt=null,zn=!1,h=o.alternate,h!==null&&(h.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Nf(t,e),t=t.sibling}var hu=null;function Nf(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Jn(t,e),Un(e),i&4&&(qa(3,e,e.return),Zl(3,e),qa(5,e,e.return));break;case 1:Jn(t,e),Un(e),i&512&&(ft||n===null||Hu(n,n.return)),i&64&&Gu&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=hu;if(Jn(t,e),Un(e),i&512&&(ft||n===null||Hu(n,n.return)),i&4){var h=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":h=o.getElementsByTagName("title")[0],(!h||h[ul]||h[un]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=o.createElement(i),o.head.insertBefore(h,o.querySelector("head > title"))),Jt(h,i,n),h[un]=e,an(h),i=h;break e;case"link":var D=I0("link","href",o).get(i+(n.href||""));if(D){for(var b=0;b<D.length;b++)if(h=D[b],h.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&h.getAttribute("rel")===(n.rel==null?null:n.rel)&&h.getAttribute("title")===(n.title==null?null:n.title)&&h.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){D.splice(b,1);break t}}h=o.createElement(i),Jt(h,i,n),o.head.appendChild(h);break;case"meta":if(D=I0("meta","content",o).get(i+(n.content||""))){for(b=0;b<D.length;b++)if(h=D[b],h.getAttribute("content")===(n.content==null?null:""+n.content)&&h.getAttribute("name")===(n.name==null?null:n.name)&&h.getAttribute("property")===(n.property==null?null:n.property)&&h.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&h.getAttribute("charset")===(n.charSet==null?null:n.charSet)){D.splice(b,1);break t}}h=o.createElement(i),Jt(h,i,n),o.head.appendChild(h);break;default:throw Error(c(468,i))}h[un]=e,an(h),i=h}e.stateNode=i}else J0(o,e.type,e.stateNode);else e.stateNode=X0(o,i,e.memoizedProps);else h!==i?(h===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):h.count--,i===null?J0(o,e.type,e.stateNode):X0(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Mc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Jn(t,e),Un(e),i&512&&(ft||n===null||Hu(n,n.return)),n!==null&&i&4&&Mc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Jn(t,e),Un(e),i&512&&(ft||n===null||Hu(n,n.return)),e.flags&32){o=e.stateNode;try{Ca(o,"")}catch(U){Et(e,e.return,U)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Mc(e,o,n!==null?n.memoizedProps:o)),i&1024&&(ca=!0);break;case 6:if(Jn(t,e),Un(e),i&4){if(e.stateNode===null)throw Error(c(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(U){Et(e,e.return,U)}}break;case 3:if(qr=null,o=hu,hu=ze(t.containerInfo),Jn(t,e),hu=o,Un(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{gs(t.containerInfo)}catch(U){Et(e,e.return,U)}ca&&(ca=!1,r0(e));break;case 4:i=hu,hu=ze(e.stateNode.containerInfo),Jn(t,e),Un(e),hu=i;break;case 12:Jn(t,e),Un(e);break;case 13:Jn(t,e),Un(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(qf=pt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rf(e,i)));break;case 22:o=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,z=Gu,I=ft;if(Gu=z||o,ft=I||w,Jn(t,e),ft=I,Gu=z,Un(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||w||Gu||ft||Ri(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(h=w.stateNode,o)D=h.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{b=w.stateNode;var W=w.memoizedProps.style,G=W!=null&&W.hasOwnProperty("display")?W.display:null;b.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(U){Et(w,w.return,U)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(U){Et(w,w.return,U)}}}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}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Rf(e,n))));break;case 19:Jn(t,e),Un(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rf(e,i)));break;case 30:break;case 21:break;default:Jn(t,e),Un(e)}}function Un(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Cr(i)){n=i;break}i=i.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var o=n.stateNode,h=Kl(e);Xl(e,h,o);break;case 5:var D=n.stateNode;n.flags&32&&(Ca(D,""),n.flags&=-33);var b=Kl(e);Xl(e,b,D);break;case 3:case 4:var w=n.stateNode.containerInfo,z=Kl(e);Oc(e,z,w);break;default:throw Error(c(161))}}catch(I){Et(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function r0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;r0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ya(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)n0(e,t.alternate,t),t=t.sibling}function Ri(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qa(4,t,t.return),Ri(t);break;case 1:Hu(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Bf(t,t.return,n),Ri(t);break;case 27:rs(t.stateNode);case 26:case 5:Hu(t,t.return),Ri(t);break;case 22:t.memoizedState===null&&Ri(t);break;case 30:Ri(t);break;default:Ri(t)}e=e.sibling}}function fa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,h=t,D=h.flags;switch(h.tag){case 0:case 11:case 15:fa(o,h,n),Zl(4,h);break;case 1:if(fa(o,h,n),i=h,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Et(i,i.return,z)}if(i=h,o=i.updateQueue,o!==null){var b=i.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Cd(w[o],b)}catch(z){Et(i,i.return,z)}}n&&D&64&&e0(h),Er(h,h.return);break;case 27:Il(h);case 26:case 5:fa(o,h,n),n&&i===null&&D&4&&wc(h),Er(h,h.return);break;case 12:fa(o,h,n);break;case 13:fa(o,h,n),n&&D&4&&i0(o,h);break;case 22:h.memoizedState===null&&fa(o,h,n),Er(h,h.return);break;case 30:break;default:fa(o,h,n)}t=t.sibling}}function jf(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&&bl(n))}function Lf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bl(e))}function qu(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)l0(e,t,n,i),t=t.sibling}function l0(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:qu(e,t,n,i),o&2048&&Zl(9,t);break;case 1:qu(e,t,n,i);break;case 3:qu(e,t,n,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bl(e)));break;case 12:if(o&2048){qu(e,t,n,i),e=t.stateNode;try{var h=t.memoizedProps,D=h.id,b=h.onPostCommit;typeof b=="function"&&b(D,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Et(t,t.return,w)}}else qu(e,t,n,i);break;case 13:qu(e,t,n,i);break;case 23:break;case 22:h=t.stateNode,D=t.alternate,t.memoizedState!==null?h._visibility&2?qu(e,t,n,i):Jl(e,t):h._visibility&2?qu(e,t,n,i):(h._visibility|=2,Sr(e,t,n,i,(t.subtreeFlags&10256)!==0)),o&2048&&jf(D,t);break;case 24:qu(e,t,n,i),o&2048&&Lf(t.alternate,t);break;default:qu(e,t,n,i)}}function Sr(e,t,n,i,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var h=e,D=t,b=n,w=i,z=D.flags;switch(D.tag){case 0:case 11:case 15:Sr(h,D,b,w,o),Zl(8,D);break;case 23:break;case 22:var I=D.stateNode;D.memoizedState!==null?I._visibility&2?Sr(h,D,b,w,o):Jl(h,D):(I._visibility|=2,Sr(h,D,b,w,o)),o&&z&2048&&jf(D.alternate,D);break;case 24:Sr(h,D,b,w,o),o&&z&2048&&Lf(D.alternate,D);break;default:Sr(h,D,b,w,o)}t=t.sibling}}function Jl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,o=i.flags;switch(i.tag){case 22:Jl(n,i),o&2048&&jf(i.alternate,i);break;case 24:Jl(n,i),o&2048&&Lf(i.alternate,i);break;default:Jl(n,i)}t=t.sibling}}var Dn=8192;function Fr(e){if(e.subtreeFlags&Dn)for(e=e.child;e!==null;)s0(e),e=e.sibling}function s0(e){switch(e.tag){case 26:Fr(e),e.flags&Dn&&e.memoizedState!==null&&Gv(hu,e.memoizedState,e.memoizedProps);break;case 5:Fr(e);break;case 3:case 4:var t=hu;hu=ze(e.stateNode.containerInfo),Fr(e),hu=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Dn,Dn=16777216,Fr(e),Dn=t):Fr(e));break;default:Fr(e)}}function c0(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 wr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Xt=i,f0(i,e)}c0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)o0(e),e=e.sibling}function o0(e){switch(e.tag){case 0:case 11:case 15:wr(e),e.flags&2048&&qa(9,e,e.return);break;case 3:wr(e);break;case 12:wr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Tc(e)):wr(e);break;default:wr(e)}}function Tc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Xt=i,f0(i,e)}c0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qa(8,t,t.return),Tc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Tc(t));break;default:Tc(t)}e=e.sibling}}function f0(e,t){for(;Xt!==null;){var n=Xt;switch(n.tag){case 0:case 11:case 15:qa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:bl(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Xt=i;else e:for(n=e;Xt!==null;){i=Xt;var o=i.sibling,h=i.return;if(u0(i),i===n){Xt=null;break e}if(o!==null){o.return=h,Xt=o;break e}Xt=h}}}var Dv={getCacheForType:function(e){var t=Ut(_t),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},zf=typeof WeakMap=="function"?WeakMap:Map,vt=0,Ct=null,Ke=null,et=0,Dt=0,$n=null,ka=!1,Mr=!1,Uf=!1,ha=0,Gt=0,Va=0,Ni=0,Hf=0,du=0,Or=0,$l=null,Hn=null,Gf=!1,qf=0,Tr=1/0,Wl=null,Qa=null,fn=0,Za=null,Br=null,Rr=0,Yf=0,kf=null,h0=null,Nr=0,Vf=null;function pn(){if((vt&2)!==0&&et!==0)return et&-et;if(B.T!==null){var e=vr;return e!==0?e:Uc()}return Uh()}function d0(){du===0&&(du=(et&536870912)===0||Je?Nh():536870912);var e=In.current;return e!==null&&(e.flags|=32),du}function Wn(e,t,n){(e===Ct&&(Dt===2||Dt===9)||e.cancelPendingCommit!==null)&&(jr(e,0),Ka(e,et,du,!1)),Zi(e,n),((vt&2)===0||e!==Ct)&&(e===Ct&&((vt&2)===0&&(Ni|=n),Gt===4&&Ka(e,et,du,!1)),Yu(e))}function g0(e,t,n){if((vt&6)!==0)throw Error(c(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||ci(e,t),o=i?mv(e,t):Kf(e,t,!0),h=i;do{if(o===0){Mr&&!i&&Ka(e,t,0,!1);break}else{if(n=e.current.alternate,h&&!pv(n)){o=Kf(e,t,!1),h=!1;continue}if(o===2){if(h=t,e.errorRecoveryDisabledLanes&h)var D=0;else D=e.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){t=D;e:{var b=e;o=$l;var w=b.current.memoizedState.isDehydrated;if(w&&(jr(b,D).flags|=256),D=Kf(b,D,!1),D!==2){if(Uf&&!w){b.errorRecoveryDisabledLanes|=h,Ni|=h,o=4;break e}h=Hn,Hn=o,h!==null&&(Hn===null?Hn=h:Hn.push.apply(Hn,h))}o=D}if(h=!1,o!==2)continue}}if(o===1){jr(e,0),Ka(e,t,0,!0);break}e:{switch(i=e,h=o,h){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Ka(i,t,du,!ka);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(o=qf+300-pt(),10<o)){if(Ka(i,t,du,!ka),Qi(i,0,!0)!==0)break e;i.timeoutHandle=U0(v0.bind(null,i,n,Hn,Wl,Gf,t,du,Ni,Or,ka,h,2,-0,0),o);break e}v0(i,n,Hn,Wl,Gf,t,du,Ni,Or,ka,h,0,-0,0)}}break}while(!0);Yu(e)}function v0(e,t,n,i,o,h,D,b,w,z,I,W,G,U){if(e.timeoutHandle=-1,W=t.subtreeFlags,(W&8192||(W&16785408)===16785408)&&(sn={stylesheets:null,count:0,unsuspend:Hv},s0(t),W=qv(),W!==null)){e.cancelPendingCommit=W(Pl.bind(null,e,t,h,n,i,o,D,b,w,I,1,G,U)),Ka(e,h,D,!z);return}Pl(e,t,h,n,i,o,D,b,w)}function pv(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 i=0;i<n.length;i++){var o=n[i],h=o.getSnapshot;o=o.value;try{if(!Qn(h(),o))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 Ka(e,t,n,i){t&=~Hf,t&=~Ni,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var h=31-An(o),D=1<<h;i[h]=-1,o&=~D}n!==0&&Lh(e,n,t)}function Bc(){return(vt&6)===0?(ns(0),!1):!0}function Qf(){if(Ke!==null){if(Dt===0)var e=Ke.return;else e=Ke,y=Na=null,uc(e),Kt=null,Ln=0,e=Ke;for(;e!==null;)Pd(e.alternate,e),e=e.return;Ke=null}}function jr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Ov(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Qf(),Ct=e,Ke=n=yn(e.current,null),et=t,Dt=0,$n=null,ka=!1,Mr=ci(e,t),Uf=!1,Or=du=Hf=Ni=Va=Gt=0,Hn=$l=null,Gf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-An(i),h=1<<o;t|=e[o],i&=~h}return ha=t,di(),n}function D0(e,t){qe=null,B.H=Ll,t===bn||t===ec?(t=xd(),Dt=3):t===bd?(t=xd(),Dt=4):Dt=t===Kd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$n=t,Ke===null&&(Gt=1,ql(e,mn(t,e.current)))}function p0(){var e=B.H;return B.H=Ll,e===null?Ll:e}function A0(){var e=B.A;return B.A=Dv,e}function Zf(){Gt=4,ka||(et&4194048)!==et&&In.current!==null||(Mr=!0),(Va&134217727)===0&&(Ni&134217727)===0||Ct===null||Ka(Ct,et,du,!1)}function Kf(e,t,n){var i=vt;vt|=2;var o=p0(),h=A0();(Ct!==e||et!==t)&&(Wl=null,jr(e,t)),t=!1;var D=Gt;e:do try{if(Dt!==0&&Ke!==null){var b=Ke,w=$n;switch(Dt){case 8:Qf(),D=6;break e;case 3:case 2:case 9:case 6:In.current===null&&(t=!0);var z=Dt;if(Dt=0,$n=null,Lr(e,b,w,z),n&&Mr){D=0;break e}break;default:z=Dt,Dt=0,$n=null,Lr(e,b,w,z)}}Av(),D=Gt;break}catch(I){D0(e,I)}while(!0);return t&&e.shellSuspendCounter++,y=Na=null,vt=i,B.H=o,B.A=h,Ke===null&&(Ct=null,et=0,di()),D}function Av(){for(;Ke!==null;)Xf(Ke)}function mv(e,t){var n=vt;vt|=2;var i=p0(),o=A0();Ct!==e||et!==t?(Wl=null,Tr=pt()+500,jr(e,t)):Mr=ci(e,t);e:do try{if(Dt!==0&&Ke!==null){t=Ke;var h=$n;t:switch(Dt){case 1:Dt=0,$n=null,Lr(e,t,h,1);break;case 2:case 9:if(_d(h)){Dt=0,$n=null,y0(t);break}t=function(){Dt!==2&&Dt!==9||Ct!==e||(Dt=7),Yu(e)},h.then(t,t);break e;case 3:Dt=7;break e;case 4:Dt=5;break e;case 7:_d(h)?(Dt=0,$n=null,y0(t)):(Dt=0,$n=null,Lr(e,t,h,7));break;case 5:var D=null;switch(Ke.tag){case 26:D=Ke.memoizedState;case 5:case 27:var b=Ke;if(!D||$t(D)){Dt=0,$n=null;var w=b.sibling;if(w!==null)Ke=w;else{var z=b.return;z!==null?(Ke=z,Rc(z)):Ke=null}break t}}Dt=0,$n=null,Lr(e,t,h,5);break;case 6:Dt=0,$n=null,Lr(e,t,h,6);break;case 8:Qf(),Gt=6;break e;default:throw Error(c(462))}}m0();break}catch(I){D0(e,I)}while(!0);return y=Na=null,B.H=i,B.A=o,vt=n,Ke!==null?0:(Ct=null,et=0,di(),Gt)}function m0(){for(;Ke!==null&&!nn();)Xf(Ke)}function Xf(e){var t=Cc(e.alternate,e,ha);e.memoizedProps=e.pendingProps,t===null?Rc(e):Ke=t}function y0(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=xc(n,t,t.pendingProps,t.type,void 0,et);break;case 11:t=xc(n,t,t.pendingProps,t.type.render,t.ref,et);break;case 5:uc(t);default:Pd(n,t),t=Ke=vl(t,ha),t=Cc(n,t,ha)}e.memoizedProps=e.pendingProps,t===null?Rc(e):Ke=t}function Lr(e,t,n,i){y=Na=null,uc(t),Kt=null,Ln=0;var o=t.return;try{if(Zd(e,o,t,n,et)){Gt=1,ql(e,mn(n,e.current)),Ke=null;return}}catch(h){if(o!==null)throw Ke=o,h;Gt=1,ql(e,mn(n,e.current)),Ke=null;return}t.flags&32768?(Je||i===1?e=!0:Mr||(et&536870912)!==0?e=!1:(ka=e=!0,(i===2||i===9||i===3||i===6)&&(i=In.current,i!==null&&i.tag===13&&(i.flags|=16384))),b0(t,e)):Rc(t)}function Rc(e){var t=e;do{if((t.flags&32768)!==0){b0(t,ka);return}e=t.return;var n=$d(t.alternate,t,ha);if(n!==null){Ke=n;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Gt===0&&(Gt=5)}function b0(e,t){do{var n=Wd(e.alternate,e);if(n!==null){n.flags&=32767,Ke=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ke=e;return}Ke=e=n}while(e!==null);Gt=6,Ke=null}function Pl(e,t,n,i,o,h,D,b,w){e.cancelPendingCommit=null;do Nc();while(fn!==0);if((vt&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(h=t.lanes|t.childLanes,h|=Io,kg(e,n,h,D,b,w),e===Ct&&(Ke=Ct=null,et=0),Br=t,Za=e,Rr=n,Yf=h,kf=o,h0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,M0(Sn,function(){return S0(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=B.T,B.T=null,o=V.p,V.p=2,D=vt,vt|=4;try{gv(e,t,n)}finally{vt=D,V.p=o,B.T=i}}fn=1,_0(),x0(),E0()}}function _0(){if(fn===1){fn=0;var e=Za,t=Br,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=B.T,B.T=null;var i=V.p;V.p=2;var o=vt;vt|=4;try{Nf(t,e);var h=qc,D=hd(e.containerInfo),b=h.focusedElem,w=h.selectionRange;if(D!==b&&b&&b.ownerDocument&&fd(b.ownerDocument.documentElement,b)){if(w!==null&&Ko(b)){var z=w.start,I=w.end;if(I===void 0&&(I=z),"selectionStart"in b)b.selectionStart=z,b.selectionEnd=Math.min(I,b.value.length);else{var W=b.ownerDocument||document,G=W&&W.defaultView||window;if(G.getSelection){var U=G.getSelection(),Me=b.textContent.length,Fe=Math.min(w.start,Me),yt=w.end===void 0?Fe:Math.min(w.end,Me);!U.extend&&Fe>yt&&(D=yt,yt=Fe,Fe=D);var N=Zo(b,Fe),T=Zo(b,yt);if(N&&T&&(U.rangeCount!==1||U.anchorNode!==N.node||U.anchorOffset!==N.offset||U.focusNode!==T.node||U.focusOffset!==T.offset)){var L=W.createRange();L.setStart(N.node,N.offset),U.removeAllRanges(),Fe>yt?(U.addRange(L),U.extend(T.node,T.offset)):(L.setEnd(T.node,T.offset),U.addRange(L))}}}}for(W=[],U=b;U=U.parentNode;)U.nodeType===1&&W.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<W.length;b++){var J=W[b];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Xc=!!Eu,qc=Eu=null}finally{vt=o,V.p=i,B.T=n}}e.current=t,fn=2}}function x0(){if(fn===2){fn=0;var e=Za,t=Br,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=B.T,B.T=null;var i=V.p;V.p=2;var o=vt;vt|=4;try{n0(e,t.alternate,t)}finally{vt=o,V.p=i,B.T=n}}fn=3}}function E0(){if(fn===4||fn===3){fn=0,Tu();var e=Za,t=Br,n=Rr,i=h0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?fn=5:(fn=0,Br=Za=null,C0(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Qa=null),Es(n),t=t.stateNode,on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(nl,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=B.T,o=V.p,V.p=2,B.T=null;try{for(var h=e.onRecoverableError,D=0;D<i.length;D++){var b=i[D];h(b.value,{componentStack:b.stack})}}finally{B.T=t,V.p=o}}(Rr&3)!==0&&Nc(),Yu(e),o=e.pendingLanes,(n&4194090)!==0&&(o&42)!==0?e===Vf?Nr++:(Nr=0,Vf=e):Nr=0,ns(0)}}function C0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bl(t)))}function Nc(e){return _0(),x0(),E0(),S0()}function S0(){if(fn!==5)return!1;var e=Za,t=Yf;Yf=0;var n=Es(Rr),i=B.T,o=V.p;try{V.p=32>n?32:n,B.T=null,n=kf,kf=null;var h=Za,D=Rr;if(fn=0,Br=Za=null,Rr=0,(vt&6)!==0)throw Error(c(331));var b=vt;if(vt|=4,o0(h.current),l0(h,h.current,D,n),vt=b,ns(0,!1),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(nl,h)}catch{}return!0}finally{V.p=o,B.T=i,C0(e,t)}}function F0(e,t,n){t=mn(n,t),t=mc(e.stateNode,t,2),e=na(e,t,2),e!==null&&(Zi(e,2),Yu(e))}function Et(e,t,n){if(e.tag===3)F0(e,e,n);else for(;t!==null;){if(t.tag===3){F0(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Qa===null||!Qa.has(i))){e=mn(n,e),n=Ff(2),i=na(t,n,2),i!==null&&(Qd(n,i,t,e),Zi(i,2),Yu(i));break}}t=t.return}}function If(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new zf;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(n)||(Uf=!0,o.add(n),e=yv.bind(null,e,t,n),t.then(e,e))}function yv(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ct===e&&(et&n)===n&&(Gt===4||Gt===3&&(et&62914560)===et&&300>pt()-qf?(vt&2)===0&&jr(e,0):Hf|=n,Or===et&&(Or=0)),Yu(e)}function w0(e,t){t===0&&(t=jh()),e=gi(e,t),e!==null&&(Zi(e,t),Yu(e))}function jc(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),w0(e,n)}function bv(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(c(314))}i!==null&&i.delete(t),w0(e,n)}function M0(e,t){return Du(e,t)}var es=null,Xa=null,Lc=!1,ts=!1,zc=!1,Ia=0;function Yu(e){e!==Xa&&e.next===null&&(Xa===null?es=Xa=e:Xa=Xa.next=e),ts=!0,Lc||(Lc=!0,Jf())}function ns(e,t){if(!zc&&ts){zc=!0;do for(var n=!1,i=es;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var h=0;else{var D=i.suspendedLanes,b=i.pingedLanes;h=(1<<31-An(42|e)+1)-1,h&=o&~(D&~b),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(n=!0,T0(i,h))}else h=et,h=Qi(i,i===Ct?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(h&3)===0||ci(i,h)||(n=!0,T0(i,h));i=i.next}while(n);zc=!1}}function _v(){us()}function us(){ts=Lc=!1;var e=0;Ia!==0&&(Mv()&&(e=Ia),Ia=0);for(var t=pt(),n=null,i=es;i!==null;){var o=i.next,h=as(i,t);h===0?(i.next=null,n===null?es=o:n.next=o,o===null&&(Xa=n)):(n=i,(e!==0||(h&3)!==0)&&(ts=!0)),i=o}ns(e)}function as(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var D=31-An(h),b=1<<D,w=o[D];w===-1?((b&n)===0||(b&i)!==0)&&(o[D]=Yg(b,t)):w<=t&&(e.expiredLanes|=b),h&=~b}if(t=Ct,n=et,n=Qi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Dt===2||Dt===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Se(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ci(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Se(i),Es(n)){case 2:case 8:n=_a;break;case 32:n=Sn;break;case 268435456:n=el;break;default:n=Sn}return i=O0.bind(null,e),n=Du(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Se(i),e.callbackPriority=2,e.callbackNode=null,2}function O0(e,t){if(fn!==0&&fn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Nc()&&e.callbackNode!==n)return null;var i=et;return i=Qi(e,e===Ct?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(g0(e,i,t),as(e,pt()),e.callbackNode!=null&&e.callbackNode===n?O0.bind(null,e):null)}function T0(e,t){if(Nc())return null;g0(e,t,!0)}function Jf(){Tv(function(){(vt&6)!==0?Du(Wr,_v):us()})}function Uc(){return Ia===0&&(Ia=Nh()),Ia}function B0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:rl(""+e)}function R0(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 xv(e,t,n,i,o){if(t==="submit"&&n&&n.stateNode===o){var h=B0((o[Fn]||null).action),D=i.submitter;D&&(t=(t=D[Fn]||null)?B0(t.formAction):D.getAttribute("formAction"),t!==null&&(h=t,D=null));var b=new Ns("action","action",null,i,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ia!==0){var w=D?R0(o,D):new FormData(o);Nl(n,{pending:!0,data:w,method:o.method,action:h},null,w)}}else typeof h=="function"&&(b.preventDefault(),w=D?R0(o,D):new FormData(o),Nl(n,{pending:!0,data:w,method:o.method,action:h},h,w))},currentTarget:o}]})}}for(var $f=0;$f<st.length;$f++){var Wf=st[$f],Ev=Wf.toLowerCase(),Cv=Wf[0].toUpperCase()+Wf.slice(1);pu(Ev,"on"+Cv)}pu(Zs,"onAnimationEnd"),pu(dd,"onAnimationIteration"),pu(Zn,"onAnimationStart"),pu("dblclick","onDoubleClick"),pu("focusin","onFocus"),pu("focusout","onBlur"),pu(Ks,"onTransitionRun"),pu(lv,"onTransitionStart"),pu(or,"onTransitionCancel"),pu(fl,"onTransitionEnd"),$i("onMouseEnter",["mouseout","mouseover"]),$i("onMouseLeave",["mouseout","mouseover"]),$i("onPointerEnter",["pointerout","pointerover"]),$i("onPointerLeave",["pointerout","pointerover"]),oi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),oi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),oi("onBeforeInput",["compositionend","keypress","textInput","paste"]),oi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),oi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),oi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var is="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(" "),Sv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(is));function N0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],o=i.event;i=i.listeners;e:{var h=void 0;if(t)for(var D=i.length-1;0<=D;D--){var b=i[D],w=b.instance,z=b.currentTarget;if(b=b.listener,w!==h&&o.isPropagationStopped())break e;h=b,o.currentTarget=z;try{h(o)}catch(I){Ti(I)}o.currentTarget=null,h=w}else for(D=0;D<i.length;D++){if(b=i[D],w=b.instance,z=b.currentTarget,b=b.listener,w!==h&&o.isPropagationStopped())break e;h=b,o.currentTarget=z;try{h(o)}catch(I){Ti(I)}o.currentTarget=null,h=w}}}}function Xe(e,t){var n=t[yo];n===void 0&&(n=t[yo]=new Set);var i=e+"__bubble";n.has(i)||(j0(t,e,2,!1),n.add(i))}function Pf(e,t,n){var i=0;t&&(i|=4),j0(n,e,i,t)}var Gn="_reactListening"+Math.random().toString(36).slice(2);function eh(e){if(!e[Gn]){e[Gn]=!0,Gh.forEach(function(n){n!=="selectionchange"&&(Sv.has(n)||Pf(n,!1,e),Pf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gn]||(t[Gn]=!0,Pf("selectionchange",!1,t))}}function j0(e,t,n,i){switch(eg(t)){case 2:var o=Vv;break;case 8:o=kr;break;default:o=oh}n=o.bind(null,t,n,e),o=void 0,!sl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function da(e,t,n,i,o){var h=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var D=i.tag;if(D===3||D===4){var b=i.stateNode.containerInfo;if(b===o)break;if(D===4)for(D=i.return;D!==null;){var w=D.tag;if((w===3||w===4)&&D.stateNode.containerInfo===o)return;D=D.return}for(;b!==null;){if(D=Ki(b),D===null)return;if(w=D.tag,w===5||w===6||w===26||w===27){i=h=D;continue e}b=b.parentNode}}i=i.return}Zh(function(){var z=h,I=No(n),W=[];e:{var G=hl.get(e);if(G!==void 0){var U=Ns,Me=e;switch(e){case"keypress":if(At(n)===0)break e;case"keydown":case"keyup":U=Go;break;case"focusin":Me="focus",U=Ls;break;case"focusout":Me="blur",U=Ls;break;case"beforeblur":case"afterblur":U=Ls;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":U=Fa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Ho;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Wg;break;case Zs:case dd:case Zn:U=$h;break;case fl:U=Pg;break;case"scroll":case"scrollend":U=Ig;break;case"wheel":U=tv;break;case"copy":case"cut":case"paste":U=Ph;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Wu;break;case"toggle":case"beforetoggle":U=Us}var Fe=(t&4)!==0,yt=!Fe&&(e==="scroll"||e==="scrollend"),N=Fe?G!==null?G+"Capture":null:G;Fe=[];for(var T=z,L;T!==null;){var J=T;if(L=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||L===null||N===null||(J=ll(T,N),J!=null&&Fe.push(je(T,J,L))),yt)break;T=T.return}0<Fe.length&&(G=new U(G,Me,null,n,I),W.push({event:G,listeners:Fe}))}}if((t&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",G&&n!==Bs&&(Me=n.relatedTarget||n.fromElement)&&(Ki(Me)||Me[Ea]))break e;if((U||G)&&(G=I.window===I?I:(G=I.ownerDocument)?G.defaultView||G.parentWindow:window,U?(Me=n.relatedTarget||n.toElement,U=z,Me=Me?Ki(Me):null,Me!==null&&(yt=v(Me),Fe=Me.tag,Me!==yt||Fe!==5&&Fe!==27&&Fe!==6)&&(Me=null)):(U=null,Me=z),U!==Me)){if(Fe=Fa,J="onMouseLeave",N="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(Fe=Wu,J="onPointerLeave",N="onPointerEnter",T="pointer"),yt=U==null?G:Ii(U),L=Me==null?G:Ii(Me),G=new Fe(J,T+"leave",U,n,I),G.target=yt,G.relatedTarget=L,J=null,Ki(I)===z&&(Fe=new Fe(N,T+"enter",Me,n,I),Fe.target=L,Fe.relatedTarget=yt,J=Fe),yt=J,U&&Me)t:{for(Fe=U,N=Me,T=0,L=Fe;L;L=It(L))T++;for(L=0,J=N;J;J=It(J))L++;for(;0<T-L;)Fe=It(Fe),T--;for(;0<L-T;)N=It(N),L--;for(;T--;){if(Fe===N||N!==null&&Fe===N.alternate)break t;Fe=It(Fe),N=It(N)}Fe=null}else Fe=null;U!==null&&qt(W,G,U,Fe,!1),Me!==null&&yt!==null&&qt(W,yt,Me,Fe,!0)}}e:{if(G=z?Ii(z):window,U=G.nodeName&&G.nodeName.toLowerCase(),U==="select"||U==="input"&&G.type==="file")var Ae=rd;else if(Ys(G))if(ld)Ae=av;else{Ae=Oa;var Ve=od}else U=G.nodeName,!U||U.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?z&&Ro(z.elementType)&&(Ae=rd):Ae=Qs;if(Ae&&(Ae=Ae(e,z))){rr(W,Ae,n,I);break e}Ve&&Ve(e,G,z),e==="focusout"&&z&&G.type==="number"&&z.memoizedProps.value!=null&&il(G,"number",G.value)}switch(Ve=z?Ii(z):window,e){case"focusin":(Ys(Ve)||Ve.contentEditable==="true")&&(cr=Ve,Ta=z,R=null);break;case"focusout":R=Ta=cr=null;break;case"mousedown":Z=!0;break;case"contextmenu":case"mouseup":case"dragend":Z=!1,k(W,n,I);break;case"selectionchange":if(rv)break;case"keydown":case"keyup":k(W,n,I)}var xe;if(ko)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else wa?ad(e,n)&&(Oe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Oe="onCompositionStart");Oe&&(Hs&&n.locale!=="ko"&&(wa||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&wa&&(xe=Kh()):(Sa=I,zo="value"in Sa?Sa.value:Sa.textContent,wa=!0)),Ve=Hc(z,Oe),0<Ve.length&&(Oe=new Mn(Oe,e,null,n,I),W.push({event:Oe,listeners:Ve}),xe?Oe.data=xe:(xe=qs(n),xe!==null&&(Oe.data=xe)))),(xe=ud?nv(e,n):id(e,n))&&(Oe=Hc(z,"onBeforeInput"),0<Oe.length&&(Ve=new Mn("onBeforeInput","beforeinput",null,n,I),W.push({event:Ve,listeners:Oe}),Ve.data=xe)),xv(W,e,z,n,I)}N0(W,t)})}function je(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hc(e,t){for(var n=t+"Capture",i=[];e!==null;){var o=e,h=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||h===null||(o=ll(e,n),o!=null&&i.unshift(je(e,o,h)),o=ll(e,t),o!=null&&i.push(je(e,o,h))),e.tag===3)return i;e=e.return}return[]}function It(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qt(e,t,n,i,o){for(var h=t._reactName,D=[];n!==null&&n!==i;){var b=n,w=b.alternate,z=b.stateNode;if(b=b.tag,w!==null&&w===i)break;b!==5&&b!==26&&b!==27||z===null||(w=z,o?(z=ll(n,h),z!=null&&D.unshift(je(n,z,w))):o||(z=ll(n,h),z!=null&&D.push(je(n,z,w)))),n=n.return}D.length!==0&&e.push({event:t,listeners:D})}var Fv=/\r\n?/g,Ja=/\u0000|\uFFFD/g;function L0(e){return(typeof e=="string"?e:""+e).replace(Fv,`
`).replace(Ja,"")}function z0(e,t){return t=L0(t),L0(e)===t}function Gc(){}function mt(e,t,n,i,o,h){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Ca(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Ca(e,""+i);break;case"className":Fs(e,"class",i);break;case"tabIndex":Fs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Fs(e,n,i);break;case"style":Bo(e,i,h);break;case"data":if(t!=="object"){Fs(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=rl(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="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 h=="function"&&(n==="formAction"?(t!=="input"&&mt(e,t,"name",o.name,o,null),mt(e,t,"formEncType",o.formEncType,o,null),mt(e,t,"formMethod",o.formMethod,o,null),mt(e,t,"formTarget",o.formTarget,o,null)):(mt(e,t,"encType",o.encType,o,null),mt(e,t,"method",o.method,o,null),mt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=rl(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Gc);break;case"onScroll":i!=null&&Xe("scroll",e);break;case"onScrollEnd":i!=null&&Xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(c(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=rl(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Xe("beforetoggle",e),Xe("toggle",e),Ss(e,"popover",i);break;case"xlinkActuate":Bu(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Bu(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Bu(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Bu(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Bu(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Bu(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Bu(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Bu(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Bu(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ss(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Vh.get(n)||n,Ss(e,n,i))}}function th(e,t,n,i,o,h){switch(n){case"style":Bo(e,i,h);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(c(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Ca(e,i):(typeof i=="number"||typeof i=="bigint")&&Ca(e,""+i);break;case"onScroll":i!=null&&Xe("scroll",e);break;case"onScrollEnd":i!=null&&Xe("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Gc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qh.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),h=e[Fn]||null,h=h!=null?h[n]:null,typeof h=="function"&&e.removeEventListener(t,h,o),typeof i=="function")){typeof h!="function"&&h!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,o);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ss(e,n,i)}}}function Jt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",e),Xe("load",e);var i=!1,o=!1,h;for(h in n)if(n.hasOwnProperty(h)){var D=n[h];if(D!=null)switch(h){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:mt(e,t,h,D,n,null)}}o&&mt(e,t,"srcSet",n.srcSet,n,null),i&&mt(e,t,"src",n.src,n,null);return;case"input":Xe("invalid",e);var b=h=D=o=null,w=null,z=null;for(i in n)if(n.hasOwnProperty(i)){var I=n[i];if(I!=null)switch(i){case"name":o=I;break;case"type":D=I;break;case"checked":w=I;break;case"defaultChecked":z=I;break;case"value":h=I;break;case"defaultValue":b=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(c(137,t));break;default:mt(e,t,i,I,n,null)}}Mo(e,h,b,w,z,D,o,!1),Ms(e);return;case"select":Xe("invalid",e),i=D=h=null;for(o in n)if(n.hasOwnProperty(o)&&(b=n[o],b!=null))switch(o){case"value":h=b;break;case"defaultValue":D=b;break;case"multiple":i=b;default:mt(e,t,o,b,n,null)}t=h,n=D,e.multiple=!!i,t!=null?Pi(e,!!i,t,!1):n!=null&&Pi(e,!!i,n,!0);return;case"textarea":Xe("invalid",e),h=o=i=null;for(D in n)if(n.hasOwnProperty(D)&&(b=n[D],b!=null))switch(D){case"value":i=b;break;case"defaultValue":o=b;break;case"children":h=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(c(91));break;default:mt(e,t,D,b,n,null)}Ts(e,i,o,h),Ms(e);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(i=n[w],i!=null))switch(w){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:mt(e,t,w,i,n,null)}return;case"dialog":Xe("beforetoggle",e),Xe("toggle",e),Xe("cancel",e),Xe("close",e);break;case"iframe":case"object":Xe("load",e);break;case"video":case"audio":for(i=0;i<is.length;i++)Xe(is[i],e);break;case"image":Xe("error",e),Xe("load",e);break;case"details":Xe("toggle",e);break;case"embed":case"source":case"link":Xe("error",e),Xe("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(z in n)if(n.hasOwnProperty(z)&&(i=n[z],i!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:mt(e,t,z,i,n,null)}return;default:if(Ro(t)){for(I in n)n.hasOwnProperty(I)&&(i=n[I],i!==void 0&&th(e,t,I,i,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(i=n[b],i!=null&&mt(e,t,b,i,n,null))}function wv(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,h=null,D=null,b=null,w=null,z=null,I=null;for(U in n){var W=n[U];if(n.hasOwnProperty(U)&&W!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":w=W;default:i.hasOwnProperty(U)||mt(e,t,U,null,i,W)}}for(var G in i){var U=i[G];if(W=n[G],i.hasOwnProperty(G)&&(U!=null||W!=null))switch(G){case"type":h=U;break;case"name":o=U;break;case"checked":z=U;break;case"defaultChecked":I=U;break;case"value":D=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:U!==W&&mt(e,t,G,U,i,W)}}Os(e,D,b,w,z,I,h,o);return;case"select":U=D=b=G=null;for(h in n)if(w=n[h],n.hasOwnProperty(h)&&w!=null)switch(h){case"value":break;case"multiple":U=w;default:i.hasOwnProperty(h)||mt(e,t,h,null,i,w)}for(o in i)if(h=i[o],w=n[o],i.hasOwnProperty(o)&&(h!=null||w!=null))switch(o){case"value":G=h;break;case"defaultValue":b=h;break;case"multiple":D=h;default:h!==w&&mt(e,t,o,h,i,w)}t=b,n=D,i=U,G!=null?Pi(e,!!n,G,!1):!!i!=!!n&&(t!=null?Pi(e,!!n,t,!0):Pi(e,!!n,n?[]:"",!1));return;case"textarea":U=G=null;for(b in n)if(o=n[b],n.hasOwnProperty(b)&&o!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:mt(e,t,b,null,i,o)}for(D in i)if(o=i[D],h=n[D],i.hasOwnProperty(D)&&(o!=null||h!=null))switch(D){case"value":G=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(c(91));break;default:o!==h&&mt(e,t,D,o,i,h)}Oo(e,G,U);return;case"option":for(var Me in n)if(G=n[Me],n.hasOwnProperty(Me)&&G!=null&&!i.hasOwnProperty(Me))switch(Me){case"selected":e.selected=!1;break;default:mt(e,t,Me,null,i,G)}for(w in i)if(G=i[w],U=n[w],i.hasOwnProperty(w)&&G!==U&&(G!=null||U!=null))switch(w){case"selected":e.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:mt(e,t,w,G,i,U)}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 Fe in n)G=n[Fe],n.hasOwnProperty(Fe)&&G!=null&&!i.hasOwnProperty(Fe)&&mt(e,t,Fe,null,i,G);for(z in i)if(G=i[z],U=n[z],i.hasOwnProperty(z)&&G!==U&&(G!=null||U!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(c(137,t));break;default:mt(e,t,z,G,i,U)}return;default:if(Ro(t)){for(var yt in n)G=n[yt],n.hasOwnProperty(yt)&&G!==void 0&&!i.hasOwnProperty(yt)&&th(e,t,yt,void 0,i,G);for(I in i)G=i[I],U=n[I],!i.hasOwnProperty(I)||G===U||G===void 0&&U===void 0||th(e,t,I,G,i,U);return}}for(var N in n)G=n[N],n.hasOwnProperty(N)&&G!=null&&!i.hasOwnProperty(N)&&mt(e,t,N,null,i,G);for(W in i)G=i[W],U=n[W],!i.hasOwnProperty(W)||G===U||G==null&&U==null||mt(e,t,W,G,i,U)}var Eu=null,qc=null;function ji(e){return e.nodeType===9?e:e.ownerDocument}function Nt(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 Lt(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 Yc(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 nh=null;function Mv(){var e=window.event;return e&&e.type==="popstate"?e===nh?!1:(nh=e,!0):(nh=null,!1)}var U0=typeof setTimeout=="function"?setTimeout:void 0,Ov=typeof clearTimeout=="function"?clearTimeout:void 0,H0=typeof Promise=="function"?Promise:void 0,Tv=typeof queueMicrotask=="function"?queueMicrotask:typeof H0<"u"?function(e){return H0.resolve(null).then(e).catch(G0)}:U0;function G0(e){setTimeout(function(){throw e})}function gu(e){return e==="head"}function kc(e,t){var n=t,i=0,o=0;do{var h=n.nextSibling;if(e.removeChild(n),h&&h.nodeType===8)if(n=h.data,n==="/$"){if(0<i&&8>i){n=i;var D=e.ownerDocument;if(n&1&&rs(D.documentElement),n&2&&rs(D.body),n&4)for(n=D.head,rs(n),D=n.firstChild;D;){var b=D.nextSibling,w=D.nodeName;D[ul]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&D.rel.toLowerCase()==="stylesheet"||n.removeChild(D),D=b}}if(o===0){e.removeChild(h),gs(t);return}o--}else n==="$"||n==="$?"||n==="$!"?o++:i=n.charCodeAt(0)-48;else i=0;n=h}while(n);gs(t)}function uh(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":uh(n),bo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function q0(e,t,n,i){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[ul])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=Cu(e.nextSibling),e===null)break}return null}function Vc(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Cu(e.nextSibling),e===null))return null;return e}function En(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function zr(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Cu(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 ah=null;function Y0(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 k0(e,t,n){switch(t=ji(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function rs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bo(e)}var Pn=new Map,ku=new Set;function ze(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vu=V.d;V.d={f:vu,r:V0,D:Bv,C:Q0,L:Qc,m:Rv,X:jv,S:Nv,M:Lv};function vu(){var e=Vu.f(),t=Bc();return e||t}function V0(e){var t=Xi(e);t!==null&&t.tag===5&&t.type==="form"?vc(t):Vu.r(e)}var Ur=typeof document>"u"?null:document;function ct(e,t,n){var i=Ur;if(i&&typeof t=="string"&&t){var o=tu(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),ku.has(o)||(ku.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),Jt(t,"link",e),an(t),i.head.appendChild(t)))}}function Bv(e){Vu.D(e),ct("dns-prefetch",e,null)}function Q0(e,t){Vu.C(e,t),ct("preconnect",e,t)}function Qc(e,t,n){Vu.L(e,t,n);var i=Ur;if(i&&e&&t){var o='link[rel="preload"][as="'+tu(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+tu(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+tu(n.imageSizes)+'"]')):o+='[href="'+tu(e)+'"]';var h=o;switch(t){case"style":h=Hr(e);break;case"script":h=Gr(e)}Pn.has(h)||(e=M({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Pn.set(h,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(ls(h))||t==="script"&&i.querySelector(ss(h))||(t=i.createElement("link"),Jt(t,"link",e),an(t),i.head.appendChild(t)))}}function Rv(e,t){Vu.m(e,t);var n=Ur;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+tu(i)+'"][href="'+tu(e)+'"]',h=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Gr(e)}if(!Pn.has(h)&&(e=M({rel:"modulepreload",href:e},t),Pn.set(h,e),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ss(h)))return}i=n.createElement("link"),Jt(i,"link",e),an(i),n.head.appendChild(i)}}}function Nv(e,t,n){Vu.S(e,t,n);var i=Ur;if(i&&e){var o=Ji(i).hoistableStyles,h=Hr(e);t=t||"default";var D=o.get(h);if(!D){var b={loading:0,preload:null};if(D=i.querySelector(ls(h)))b.loading=5;else{e=M({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Pn.get(h))&&cs(e,n);var w=D=i.createElement("link");an(w),Jt(w,"link",e),w._p=new Promise(function(z,I){w.onload=z,w.onerror=I}),w.addEventListener("load",function(){b.loading|=1}),w.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Zc(D,t,i)}D={type:"stylesheet",instance:D,count:1,state:b},o.set(h,D)}}}function jv(e,t){Vu.X(e,t);var n=Ur;if(n&&e){var i=Ji(n).hoistableScripts,o=Gr(e),h=i.get(o);h||(h=n.querySelector(ss(o)),h||(e=M({src:e,async:!0},t),(t=Pn.get(o))&&ih(e,t),h=n.createElement("script"),an(h),Jt(h,"link",e),n.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},i.set(o,h))}}function Lv(e,t){Vu.M(e,t);var n=Ur;if(n&&e){var i=Ji(n).hoistableScripts,o=Gr(e),h=i.get(o);h||(h=n.querySelector(ss(o)),h||(e=M({src:e,async:!0,type:"module"},t),(t=Pn.get(o))&&ih(e,t),h=n.createElement("script"),an(h),Jt(h,"link",e),n.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},i.set(o,h))}}function Z0(e,t,n,i){var o=(o=Ee.current)?ze(o):null;if(!o)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Hr(n.href),n=Ji(o).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Hr(n.href);var h=Ji(o).hoistableStyles,D=h.get(e);if(D||(o=o.ownerDocument||o,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,D),(h=o.querySelector(ls(e)))&&!h._p&&(D.instance=h,D.state.loading=5),Pn.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},Pn.set(e,n),h||zv(o,e,n,D.state))),t&&i===null)throw Error(c(528,""));return D}if(t&&i!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Gr(n),n=Ji(o).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Hr(e){return'href="'+tu(e)+'"'}function ls(e){return'link[rel="stylesheet"]['+e+"]"}function K0(e){return M({},e,{"data-precedence":e.precedence,precedence:null})}function zv(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Jt(t,"link",n),an(t),e.head.appendChild(t))}function Gr(e){return'[src="'+tu(e)+'"]'}function ss(e){return"script[async]"+e}function X0(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+tu(n.href)+'"]');if(i)return t.instance=i,an(i),i;var o=M({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),an(i),Jt(i,"style",o),Zc(i,n.precedence,e),t.instance=i;case"stylesheet":o=Hr(n.href);var h=e.querySelector(ls(o));if(h)return t.state.loading|=4,t.instance=h,an(h),h;i=K0(n),(o=Pn.get(o))&&cs(i,o),h=(e.ownerDocument||e).createElement("link"),an(h);var D=h;return D._p=new Promise(function(b,w){D.onload=b,D.onerror=w}),Jt(h,"link",i),t.state.loading|=4,Zc(h,n.precedence,e),t.instance=h;case"script":return h=Gr(n.src),(o=e.querySelector(ss(h)))?(t.instance=o,an(o),o):(i=n,(o=Pn.get(h))&&(i=M({},n),ih(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),an(o),Jt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Zc(i,n.precedence,e));return t.instance}function Zc(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,h=o,D=0;D<i.length;D++){var b=i[D];if(b.dataset.precedence===t)h=b;else if(h!==o)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function cs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ih(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qr=null;function I0(e,t,n){if(qr===null){var i=new Map,o=qr=new Map;o.set(n,i)}else o=qr,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var h=n[o];if(!(h[ul]||h[un]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var D=h.getAttribute(t)||"";D=e+D;var b=i.get(D);b?b.push(h):i.set(D,[h])}}return i}function J0(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Uv(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 $t(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var sn=null;function Hv(){}function Gv(e,t,n){if(sn===null)throw Error(c(475));var i=sn;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Hr(n.href),h=e.querySelector(ls(o));if(h){e=h._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=os.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=h,an(h);return}h=e.ownerDocument||e,n=K0(n),(o=Pn.get(o))&&cs(n,o),h=h.createElement("link"),an(h);var D=h;D._p=new Promise(function(b,w){D.onload=b,D.onerror=w}),Jt(h,"link",n),t.instance=h}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(i.count++,t=os.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function qv(){if(sn===null)throw Error(c(475));var e=sn;return e.stylesheets&&e.count===0&&rh(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&rh(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function os(){if(this.count--,this.count===0){if(this.stylesheets)rh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kc=null;function rh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kc=new Map,t.forEach(Yv,e),Kc=null,os.call(e))}function Yv(e,t){if(!(t.state.loading&4)){var n=Kc.get(e);if(n)var i=n.get(null);else{n=new Map,Kc.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<o.length;h++){var D=o[h];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(n.set(D.dataset.precedence,D),i=D)}i&&n.set(null,i)}o=t.instance,D=o.getAttribute("data-precedence"),h=n.get(D)||i,h===i&&n.set(null,o),n.set(D,o),this.count++,i=os.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),h?h.parentNode.insertBefore(o,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Yr={$$typeof:ae,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function kv(e,t,n,i,o,h,D,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xs(0),this.hiddenUpdates=xs(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=h,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function $0(e,t,n,i,o,h,D,b,w,z,I,W){return e=new kv(e,t,n,D,b,w,z,W),t=1,h===!0&&(t|=24),h=On(3,null,null,t),e.current=h,h.stateNode=e,t=Po(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:i,isDehydrated:n,cache:t},_i(h),e}function W0(e){return e?(e=vi,e):vi}function lh(e,t,n,i,o,h){o=W0(o),i.context===null?i.context=o:i.pendingContext=o,i=ja(t),i.payload={element:n},h=h===void 0?null:h,h!==null&&(i.callback=h),n=na(e,i,t),n!==null&&(Wn(n,e,t),xl(n,e,t))}function sh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ch(e,t){sh(e,t),(e=e.alternate)&&sh(e,t)}function P0(e){if(e.tag===13){var t=gi(e,67108864);t!==null&&Wn(t,e,67108864),ch(e,67108864)}}var Xc=!0;function Vv(e,t,n,i){var o=B.T;B.T=null;var h=V.p;try{V.p=2,oh(e,t,n,i)}finally{V.p=h,B.T=o}}function kr(e,t,n,i){var o=B.T;B.T=null;var h=V.p;try{V.p=8,oh(e,t,n,i)}finally{V.p=h,B.T=o}}function oh(e,t,n,i){if(Xc){var o=fh(i);if(o===null)da(e,t,i,Ic,n),tg(e,i);else if(Zv(o,e,t,n,i))i.stopPropagation();else if(tg(e,i),t&4&&-1<Qv.indexOf(e)){for(;o!==null;){var h=Xi(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var D=Ju(h.pendingLanes);if(D!==0){var b=h;for(b.pendingLanes|=2,b.entangledLanes|=2;D;){var w=1<<31-An(D);b.entanglements[1]|=w,D&=~w}Yu(h),(vt&6)===0&&(Tr=pt()+500,ns(0))}}break;case 13:b=gi(h,2),b!==null&&Wn(b,h,2),Bc(),ch(h,2)}if(h=fh(i),h===null&&da(e,t,i,Ic,n),h===o)break;o=h}o!==null&&i.stopPropagation()}else da(e,t,i,null,n)}}function fh(e){return e=No(e),hh(e)}var Ic=null;function hh(e){if(Ic=null,e=Ki(e),e!==null){var t=v(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(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 Ic=e,null}function eg(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(si()){case Wr:return 2;case _a:return 8;case Sn:case Pr:return 32;case el:return 268435456;default:return 32}default:return 32}}var Jc=!1,ga=null,$a=null,Wa=null,fs=new Map,hs=new Map,Pa=[],Qv="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 tg(e,t){switch(e){case"focusin":case"focusout":ga=null;break;case"dragenter":case"dragleave":$a=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":fs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hs.delete(t.pointerId)}}function ds(e,t,n,i,o,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:h,targetContainers:[o]},t!==null&&(t=Xi(t),t!==null&&P0(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Zv(e,t,n,i,o){switch(t){case"focusin":return ga=ds(ga,e,t,n,i,o),!0;case"dragenter":return $a=ds($a,e,t,n,i,o),!0;case"mouseover":return Wa=ds(Wa,e,t,n,i,o),!0;case"pointerover":var h=o.pointerId;return fs.set(h,ds(fs.get(h)||null,e,t,n,i,o)),!0;case"gotpointercapture":return h=o.pointerId,hs.set(h,ds(hs.get(h)||null,e,t,n,i,o)),!0}return!1}function ng(e){var t=Ki(e.target);if(t!==null){var n=v(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Vg(e.priority,function(){if(n.tag===13){var i=pn();i=mo(i);var o=gi(n,i);o!==null&&Wn(o,n,i),ch(n,i)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $c(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fh(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Bs=i,n.target.dispatchEvent(i),Bs=null}else return t=Xi(n),t!==null&&P0(t),e.blockedOn=n,!1;t.shift()}return!0}function ug(e,t,n){$c(e)&&n.delete(t)}function Kv(){Jc=!1,ga!==null&&$c(ga)&&(ga=null),$a!==null&&$c($a)&&($a=null),Wa!==null&&$c(Wa)&&(Wa=null),fs.forEach(ug),hs.forEach(ug)}function Wc(e,t){e.blockedOn===t&&(e.blockedOn=null,Jc||(Jc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Kv)))}var Pc=null;function ag(e){Pc!==e&&(Pc=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Pc===e&&(Pc=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(hh(i||n)===null)continue;break}var h=Xi(n);h!==null&&(e.splice(t,3),t-=3,Nl(h,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function gs(e){function t(w){return Wc(w,e)}ga!==null&&Wc(ga,e),$a!==null&&Wc($a,e),Wa!==null&&Wc(Wa,e),fs.forEach(t),hs.forEach(t);for(var n=0;n<Pa.length;n++){var i=Pa[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Pa.length&&(n=Pa[0],n.blockedOn===null);)ng(n),n.blockedOn===null&&Pa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],h=n[i+1],D=o[Fn]||null;if(typeof h=="function")D||ag(n);else if(D){var b=null;if(h&&h.hasAttribute("formAction")){if(o=h,D=h[Fn]||null)b=D.formAction;else if(hh(o)!==null)continue}else b=D.action;typeof b=="function"?n[i+1]=b:(n.splice(i,3),i-=3),ag(n)}}}function dh(e){this._internalRoot=e}eo.prototype.render=dh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,i=pn();lh(n,i,e,t,null,null)},eo.prototype.unmount=dh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lh(e.current,2,null,e,null,null),Bc(),t[Ea]=null}};function eo(e){this._internalRoot=e}eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pa.length&&t!==0&&t<Pa[n].priority;n++);Pa.splice(n,0,e),n===0&&ng(e)}};var ig=s.version;if(ig!=="19.1.1")throw Error(c(527,ig,"19.1.1"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=x(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var Xv={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{nl=to.inject(Xv),on=to}catch{}}return vh.createRoot=function(e,t){if(!d(e))throw Error(c(299));var n=!1,i="",o=Sf,h=Ac,D=Vd,b=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(D=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=$0(e,1,!1,null,null,n,i,o,h,D,b,null),e[Ea]=t.current,eh(e),new dh(t)},vh.hydrateRoot=function(e,t,n){if(!d(e))throw Error(c(299));var i=!1,o="",h=Sf,D=Ac,b=Vd,w=null,z=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(h=n.onUncaughtError),n.onCaughtError!==void 0&&(D=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(w=n.unstable_transitionCallbacks),n.formState!==void 0&&(z=n.formState)),t=$0(e,1,!0,t,n??null,i,o,h,D,b,w,z),t.context=W0(null),n=t.current,i=pn(),i=mo(i),o=ja(i),o.callback=null,na(n,o,i),n=i,t.current.lanes=n,Zi(t,n),Yu(t),e[Ea]=t.current,eh(e),new eo(t)},vh.version="19.1.1",vh}var tp;function YA(){if(tp)return Pv.exports;tp=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(s){console.error(s)}}return r(),Pv.exports=qA(),Pv.exports}var kA=YA(),Dh={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 VA=Dh.exports,np;function QA(){return np||(np=1,(function(r,s){(function(){var l,c="4.17.21",d=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",E="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",C=500,M="__lodash_placeholder__",H=1,Y=2,te=4,ie=1,le=2,pe=1,Te=2,De=4,ae=8,ce=16,X=32,oe=64,we=128,Ie=256,rt=512,He=30,Ue="...",ot=800,dn=16,_e=1,re=2,B=3,V=1/0,Q=9007199254740991,he=17976931348623157e292,S=NaN,q=4294967295,ue=q-1,ne=q>>>1,ve=[["ary",we],["bind",pe],["bindKey",Te],["curry",ae],["curryRight",ce],["flip",rt],["partial",X],["partialRight",oe],["rearg",Ie]],me="[object Arguments]",Ee="[object Array]",bt="[object AsyncFunction]",Ze="[object Boolean]",zt="[object Date]",kt="[object DOMException]",tn="[object Error]",Cn="[object Function]",Du="[object GeneratorFunction]",Se="[object Map]",nn="[object Number]",Tu="[object Null]",pt="[object Object]",si="[object Promise]",Wr="[object Proxy]",_a="[object RegExp]",Sn="[object Set]",Pr="[object String]",el="[object Symbol]",qg="[object Undefined]",tl="[object WeakMap]",nl="[object WeakSet]",on="[object ArrayBuffer]",Yn="[object DataView]",An="[object Float32Array]",Do="[object Float64Array]",po="[object Int8Array]",Ao="[object Int16Array]",ki="[object Int32Array]",Vi="[object Uint8Array]",Ju="[object Uint8ClampedArray]",Qi="[object Uint16Array]",ci="[object Uint32Array]",Yg=/\b__p \+= '';/g,Nh=/\b(__p \+=) '' \+/g,jh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xs=/&(?:amp|lt|gt|quot|#39);/g,Zi=/[&<>"']/g,kg=RegExp(xs.source),Lh=RegExp(Zi.source),zh=/<%-([\s\S]+?)%>/g,mo=/<%([\s\S]+?)%>/g,Es=/<%=([\s\S]+?)%>/g,Uh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vg=/^\w*$/,xa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,Fn=RegExp(un.source),Ea=/^\s+/,yo=/\s/,Qg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zg=/\{\n\/\* \[wrapped with (.+)\] \*/,Hh=/,? & /,ul=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bo=/[()=,{}\[\]\/\s]/,Ki=/\\(\\)?/g,Xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ii=/\w*$/,Ji=/^[-+]0x[0-9a-f]+$/i,an=/^0b[01]+$/i,Gh=/^\[object .+?Constructor\]$/,qh=/^0o[0-7]+$/i,oi=/^(?:0|[1-9]\d*)$/,$i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cs=/($^)/,Yh=/['\n\r\u2028\u2029\\]/g,al="\\ud800-\\udfff",Kg="\\u0300-\\u036f",Ss="\\ufe20-\\ufe2f",Fs="\\u20d0-\\u20ff",Bu=Kg+Ss+Fs,ws="\\u2700-\\u27bf",_o="a-z\\xdf-\\xf6\\xf8-\\xff",Wi="\\xac\\xb1\\xd7\\xf7",xo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Eo="\\u2000-\\u206f",Xg=" \\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",Co="A-Z\\xc0-\\xd6\\xd8-\\xde",kn="\\ufe0e\\ufe0f",So=Wi+xo+Eo+Xg,Fo="['’]",Ms="["+al+"]",wo="["+So+"]",fi="["+Bu+"]",kh="\\d+",tu="["+ws+"]",Os="["+_o+"]",Mo="[^"+al+So+kh+ws+_o+Co+"]",il="\\ud83c[\\udffb-\\udfff]",Pi="(?:"+fi+"|"+il+")",Oo="[^"+al+"]",Ts="(?:\\ud83c[\\udde6-\\uddff]){2}",Ca="[\\ud800-\\udbff][\\udc00-\\udfff]",er="["+Co+"]",To="\\u200d",Bo="(?:"+Os+"|"+Mo+")",Ro="(?:"+er+"|"+Mo+")",Vh="(?:"+Fo+"(?:d|ll|m|re|s|t|ve))?",Qh="(?:"+Fo+"(?:D|LL|M|RE|S|T|VE))?",rl=Pi+"?",Bs="["+kn+"]?",No="(?:"+To+"(?:"+[Oo,Ts,Ca].join("|")+")"+Bs+rl+")*",tr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nr="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jo=Bs+rl+No,Lo="(?:"+[tu,Ts,Ca].join("|")+")"+jo,Zh="(?:"+[Oo+fi+"?",fi,Ts,Ca,Ms].join("|")+")",ll=RegExp(Fo,"g"),$u=RegExp(fi,"g"),sl=RegExp(il+"(?="+il+")|"+Zh+jo,"g"),cl=RegExp([er+"?"+Os+"+"+Vh+"(?="+[wo,er,"$"].join("|")+")",Ro+"+"+Qh+"(?="+[wo,er+Bo,"$"].join("|")+")",er+"?"+Bo+"+"+Vh,er+"+"+Qh,nr,tr,kh,Lo].join("|"),"g"),Sa=RegExp("["+To+al+Bu+kn+"]"),zo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rs=["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"],Kh=-1,At={};At[An]=At[Do]=At[po]=At[Ao]=At[ki]=At[Vi]=At[Ju]=At[Qi]=At[ci]=!0,At[me]=At[Ee]=At[on]=At[Ze]=At[Yn]=At[zt]=At[tn]=At[Cn]=At[Se]=At[nn]=At[pt]=At[_a]=At[Sn]=At[Pr]=At[tl]=!1;var dt={};dt[me]=dt[Ee]=dt[on]=dt[Yn]=dt[Ze]=dt[zt]=dt[An]=dt[Do]=dt[po]=dt[Ao]=dt[ki]=dt[Se]=dt[nn]=dt[pt]=dt[_a]=dt[Sn]=dt[Pr]=dt[el]=dt[Vi]=dt[Ju]=dt[Qi]=dt[ci]=!0,dt[tn]=dt[Cn]=dt[tl]=!1;var Xh={À:"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"},wn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ns={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ol=parseFloat,Ig=parseInt,js=typeof rg=="object"&&rg&&rg.Object===Object&&rg,Uo=typeof self=="object"&&self&&self.Object===Object&&self,Yt=js||Uo||Function("return this")(),ur=s&&!s.nodeType&&s,Fa=ur&&!0&&r&&!r.nodeType&&r,Ih=Fa&&Fa.exports===ur,Ho=Ih&&js.process,nu=(function(){try{var R=Fa&&Fa.require&&Fa.require("util").types;return R||Ho&&Ho.binding&&Ho.binding("util")}catch{}})(),Ls=nu&&nu.isArrayBuffer,Jh=nu&&nu.isDate,$h=nu&&nu.isMap,Wh=nu&&nu.isRegExp,Ph=nu&&nu.isSet,ed=nu&&nu.isTypedArray;function Mn(R,Z,k){switch(k.length){case 0:return R.call(Z);case 1:return R.call(Z,k[0]);case 2:return R.call(Z,k[0],k[1]);case 3:return R.call(Z,k[0],k[1],k[2])}return R.apply(Z,k)}function Jg(R,Z,k,de){for(var Be=-1,nt=R==null?0:R.length;++Be<nt;){var Vt=R[Be];Z(de,Vt,k(Vt),R)}return de}function uu(R,Z){for(var k=-1,de=R==null?0:R.length;++k<de&&Z(R[k],k,R)!==!1;);return R}function $g(R,Z){for(var k=R==null?0:R.length;k--&&Z(R[k],k,R)!==!1;);return R}function td(R,Z){for(var k=-1,de=R==null?0:R.length;++k<de;)if(!Z(R[k],k,R))return!1;return!0}function Ru(R,Z){for(var k=-1,de=R==null?0:R.length,Be=0,nt=[];++k<de;){var Vt=R[k];Z(Vt,k,R)&&(nt[Be++]=Vt)}return nt}function zs(R,Z){var k=R==null?0:R.length;return!!k&&ar(R,Z,0)>-1}function Go(R,Z,k){for(var de=-1,Be=R==null?0:R.length;++de<Be;)if(k(Z,R[de]))return!0;return!1}function Ot(R,Z){for(var k=-1,de=R==null?0:R.length,Be=Array(de);++k<de;)Be[k]=Z(R[k],k,R);return Be}function Wu(R,Z){for(var k=-1,de=Z.length,Be=R.length;++k<de;)R[Be+k]=Z[k];return R}function qo(R,Z,k,de){var Be=-1,nt=R==null?0:R.length;for(de&&nt&&(k=R[++Be]);++Be<nt;)k=Z(k,R[Be],Be,R);return k}function Wg(R,Z,k,de){var Be=R==null?0:R.length;for(de&&Be&&(k=R[--Be]);Be--;)k=Z(k,R[Be],Be,R);return k}function Yo(R,Z){for(var k=-1,de=R==null?0:R.length;++k<de;)if(Z(R[k],k,R))return!0;return!1}var Pg=Hs("length");function ev(R){return R.split("")}function tv(R){return R.match(ul)||[]}function nd(R,Z,k){var de;return k(R,function(Be,nt,Vt){if(Z(Be,nt,Vt))return de=nt,!1}),de}function Us(R,Z,k,de){for(var Be=R.length,nt=k+(de?1:-1);de?nt--:++nt<Be;)if(Z(R[nt],nt,R))return nt;return-1}function ar(R,Z,k){return Z===Z?iv(R,Z,k):Us(R,ir,k)}function ko(R,Z,k,de){for(var Be=k-1,nt=R.length;++Be<nt;)if(de(R[Be],Z))return Be;return-1}function ir(R){return R!==R}function ud(R,Z){var k=R==null?0:R.length;return k?qs(R,Z)/k:S}function Hs(R){return function(Z){return Z==null?l:Z[R]}}function Gs(R){return function(Z){return R==null?l:R[Z]}}function Vo(R,Z,k,de,Be){return Be(R,function(nt,Vt,ut){k=de?(de=!1,nt):Z(k,nt,Vt,ut)}),k}function ad(R,Z){var k=R.length;for(R.sort(Z);k--;)R[k]=R[k].value;return R}function qs(R,Z){for(var k,de=-1,Be=R.length;++de<Be;){var nt=Z(R[de]);nt!==l&&(k=k===l?nt:k+nt)}return k}function wa(R,Z){for(var k=-1,de=Array(R);++k<R;)de[k]=Z(k);return de}function nv(R,Z){return Ot(Z,function(k){return[k,R[k]]})}function id(R){return R&&R.slice(0,Zo(R)+1).replace(Ea,"")}function Vn(R){return function(Z){return R(Z)}}function Ys(R,Z){return Ot(Z,function(k){return R[k]})}function rr(R,Z){return R.has(Z)}function lr(R,Z){for(var k=-1,de=R.length;++k<de&&ar(Z,R[k],0)>-1;);return k}function sr(R,Z){for(var k=R.length;k--&&ar(Z,R[k],0)>-1;);return k}function uv(R,Z){for(var k=R.length,de=0;k--;)R[k]===Z&&++de;return de}var ks=Gs(Xh),rd=Gs(wn);function ld(R){return"\\"+Ns[R]}function Qo(R,Z){return R==null?l:R[Z]}function Ma(R){return Sa.test(R)}function sd(R){return zo.test(R)}function cd(R){for(var Z,k=[];!(Z=R.next()).done;)k.push(Z.value);return k}function Vs(R){var Z=-1,k=Array(R.size);return R.forEach(function(de,Be){k[++Z]=[Be,de]}),k}function od(R,Z){return function(k){return R(Z(k))}}function Oa(R,Z){for(var k=-1,de=R.length,Be=0,nt=[];++k<de;){var Vt=R[k];(Vt===Z||Vt===M)&&(R[k]=M,nt[Be++]=k)}return nt}function Qs(R){var Z=-1,k=Array(R.size);return R.forEach(function(de){k[++Z]=de}),k}function av(R){var Z=-1,k=Array(R.size);return R.forEach(function(de){k[++Z]=[de,de]}),k}function iv(R,Z,k){for(var de=k-1,Be=R.length;++de<Be;)if(R[de]===Z)return de;return-1}function Qn(R,Z,k){for(var de=k+1;de--;)if(R[de]===Z)return de;return de}function Nu(R){return Ma(R)?hd(R):Pg(R)}function au(R){return Ma(R)?Ko(R):ev(R)}function Zo(R){for(var Z=R.length;Z--&&yo.test(R.charAt(Z)););return Z}var fd=Gs(hi);function hd(R){for(var Z=sl.lastIndex=0;sl.test(R);)++Z;return Z}function Ko(R){return R.match(sl)||[]}function rv(R){return R.match(cl)||[]}var cr=(function R(Z){Z=Z==null?Yt:Ta.defaults(Yt.Object(),Z,Ta.pick(Yt,Rs));var k=Z.Array,de=Z.Date,Be=Z.Error,nt=Z.Function,Vt=Z.Math,ut=Z.Object,Zs=Z.RegExp,dd=Z.String,Zn=Z.TypeError,Ks=k.prototype,lv=nt.prototype,or=ut.prototype,fl=Z["__core-js_shared__"],hl=lv.toString,st=or.hasOwnProperty,pu=0,Xo=(function(){var u=/[^.]+$/.exec(fl&&fl.keys&&fl.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})(),mn=or.toString,iu=hl.call(ut),fr=Yt._,Io=Zs("^"+hl.call(st).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),di=Ih?Z.Buffer:l,Au=Z.Symbol,hr=Z.Uint8Array,gi=di?di.allocUnsafe:l,dl=od(ut.getPrototypeOf,ut),gl=ut.create,vi=or.propertyIsEnumerable,Xs=Ks.splice,On=Au?Au.isConcatSpreadable:l,Di=Au?Au.iterator:l,yn=Au?Au.toStringTag:l,vl=(function(){try{var u=Ga(ut,"defineProperty");return u({},"",{}),u}catch{}})(),Is=Z.clearTimeout!==Yt.clearTimeout&&Z.clearTimeout,pi=de&&de.now!==Yt.Date.now&&de.now,Jo=Z.setTimeout!==Yt.setTimeout&&Z.setTimeout,dr=Vt.ceil,Pu=Vt.floor,Ba=ut.getOwnPropertySymbols,Js=di?di.isBuffer:l,Dl=Z.isFinite,ru=Ks.join,lu=od(ut.keys,ut),Ft=Vt.max,Tt=Vt.min,ea=de.now,Ai=Z.parseInt,$o=Vt.random,Wo=Ks.reverse,pl=Ga(Z,"DataView"),Zt=Ga(Z,"Map"),Bt=Ga(Z,"Promise"),Je=Ga(Z,"Set"),mu=Ga(Z,"WeakMap"),Tn=Ga(ut,"create"),gr=mu&&new mu,su={},gd=ca(pl),vd=ca(Zt),Al=ca(Bt),ml=ca(Je),Dd=ca(mu),Ra=Au?Au.prototype:l,mi=Ra?Ra.valueOf:l,Na=Ra?Ra.toString:l;function y(u){if(Lt(u)&&!je(u)&&!(u instanceof ke)){if(u instanceof Bn)return u;if(st.call(u,"__wrapped__"))return Xt(u)}return new Bn(u)}var Kn=(function(){function u(){}return function(a){if(!Nt(a))return{};if(gl)return gl(a);u.prototype=a;var f=new u;return u.prototype=l,f}})();function cu(){}function Bn(u,a){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=l}y.templateSettings={escape:zh,evaluate:mo,interpolate:Es,variable:"",imports:{_:y}},y.prototype=cu.prototype,y.prototype.constructor=y,Bn.prototype=Kn(cu.prototype),Bn.prototype.constructor=Bn;function ke(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function yl(){var u=new ke(this.__wrapped__);return u.__actions__=Kt(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Kt(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Kt(this.__views__),u}function $s(){if(this.__filtered__){var u=new ke(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function yi(){var u=this.__wrapped__.value(),a=this.__dir__,f=je(u),g=a<0,A=f?u.length:0,_=Id(0,A,this.__views__),F=_.start,O=_.end,j=O-F,$=g?O:F-1,P=this.__iteratees__,ee=P.length,ge=0,ye=Tt(j,this.__takeCount__);if(!f||!g&&A==j&&ye==j)return jd(u,this.__actions__);var Re=[];e:for(;j--&&ge<ye;){$+=a;for(var Qe=-1,Ne=u[$];++Qe<ee;){var Pe=P[Qe],it=Pe.iteratee,Su=Pe.type,eu=it(Ne);if(Su==re)Ne=eu;else if(!eu){if(Su==_e)continue e;break e}}Re[ge++]=Ne}return Re}ke.prototype=Kn(cu.prototype),ke.prototype.constructor=ke;function Ut(u){var a=-1,f=u==null?0:u.length;for(this.clear();++a<f;){var g=u[a];this.set(g[0],g[1])}}function Ws(){this.__data__=Tn?Tn(null):{},this.size=0}function pd(u){var a=this.has(u)&&delete this.__data__[u];return this.size-=a?1:0,a}function sv(u){var a=this.__data__;if(Tn){var f=a[u];return f===x?l:f}return st.call(a,u)?a[u]:l}function cv(u){var a=this.__data__;return Tn?a[u]!==l:st.call(a,u)}function ov(u,a){var f=this.__data__;return this.size+=this.has(u)?0:1,f[u]=Tn&&a===l?x:a,this}Ut.prototype.clear=Ws,Ut.prototype.delete=pd,Ut.prototype.get=sv,Ut.prototype.has=cv,Ut.prototype.set=ov;function _t(u){var a=-1,f=u==null?0:u.length;for(this.clear();++a<f;){var g=u[a];this.set(g[0],g[1])}}function Po(){this.__data__=[],this.size=0}function bl(u){var a=this.__data__,f=pr(a,u);if(f<0)return!1;var g=a.length-1;return f==g?a.pop():Xs.call(a,f,1),--this.size,!0}function _l(u){var a=this.__data__,f=pr(a,u);return f<0?l:a[f][1]}function ef(u){return pr(this.__data__,u)>-1}function vr(u,a){var f=this.__data__,g=pr(f,u);return g<0?(++this.size,f.push([u,a])):f[g][1]=a,this}_t.prototype.clear=Po,_t.prototype.delete=bl,_t.prototype.get=_l,_t.prototype.has=ef,_t.prototype.set=vr;function Rn(u){var a=-1,f=u==null?0:u.length;for(this.clear();++a<f;){var g=u[a];this.set(g[0],g[1])}}function fv(){this.size=0,this.__data__={hash:new Ut,map:new(Zt||_t),string:new Ut}}function Ad(u){var a=xr(this,u).delete(u);return this.size-=a?1:0,a}function hv(u){return xr(this,u).get(u)}function md(u){return xr(this,u).has(u)}function bi(u,a){var f=xr(this,u),g=f.size;return f.set(u,a),this.size+=f.size==g?0:1,this}Rn.prototype.clear=fv,Rn.prototype.delete=Ad,Rn.prototype.get=hv,Rn.prototype.has=md,Rn.prototype.set=bi;function ta(u){var a=-1,f=u==null?0:u.length;for(this.__data__=new Rn;++a<f;)this.add(u[a])}function Ps(u){return this.__data__.set(u,x),this}function yd(u){return this.__data__.has(u)}ta.prototype.add=ta.prototype.push=Ps,ta.prototype.has=yd;function bn(u){var a=this.__data__=new _t(u);this.size=a.size}function bd(){this.__data__=new _t,this.size=0}function ec(u){var a=this.__data__,f=a.delete(u);return this.size=a.size,f}function tf(u){return this.__data__.get(u)}function _d(u){return this.__data__.has(u)}function tc(u,a){var f=this.__data__;if(f instanceof _t){var g=f.__data__;if(!Zt||g.length<d-1)return g.push([u,a]),this.size=++f.size,this;f=this.__data__=new Rn(g)}return f.set(u,a),this.size=f.size,this}bn.prototype.clear=bd,bn.prototype.delete=ec,bn.prototype.get=tf,bn.prototype.has=_d,bn.prototype.set=tc;function nf(u,a){var f=je(u),g=!f&&da(u),A=!f&&!g&&Ja(u),_=!f&&!g&&!A&&zr(u),F=f||g||A||_,O=F?wa(u.length,dd):[],j=O.length;for(var $ in u)(a||st.call(u,$))&&!(F&&($=="length"||A&&($=="offset"||$=="parent")||_&&($=="buffer"||$=="byteLength"||$=="byteOffset")||xu($,j)))&&O.push($);return O}function Dr(u){var a=u.length;return a?u[fc(0,a-1)]:l}function xd(u,a){return Il(Kt(u),bu(a,0,u.length))}function Ed(u){return Il(Kt(u))}function ju(u,a,f){(f!==l&&!Gn(u[a],f)||f===l&&!(a in u))&&yu(u,a,f)}function _i(u,a,f){var g=u[a];(!(st.call(u,a)&&Gn(g,f))||f===l&&!(a in u))&&yu(u,a,f)}function pr(u,a){for(var f=u.length;f--;)if(Gn(u[f][0],a))return f;return-1}function ja(u,a,f,g){return ua(u,function(A,_,F){a(g,A,f(A),F)}),g}function na(u,a){return u&&Ln(a,$t(a),u)}function xl(u,a){return u&&Ln(a,sn(a),u)}function yu(u,a,f){a=="__proto__"&&vl?vl(u,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):u[a]=f}function El(u,a){for(var f=-1,g=a.length,A=k(g),_=u==null;++f<g;)A[f]=_?l:cs(u,a[f]);return A}function bu(u,a,f){return u===u&&(f!==l&&(u=u<=f?u:f),a!==l&&(u=u>=a?u:a)),u}function gn(u,a,f,g,A,_){var F,O=a&H,j=a&Y,$=a&te;if(f&&(F=A?f(u,g,A,_):f(u)),F!==l)return F;if(!Nt(u))return u;var P=je(u);if(P){if(F=Mf(u),!O)return Kt(u,F)}else{var ee=ln(u),ge=ee==Cn||ee==Du;if(Ja(u))return bf(u,O);if(ee==pt||ee==me||ge&&!A){if(F=j||ge?{}:Of(u),!O)return j?zl(u,xl(F,u)):pc(u,na(F,u))}else{if(!dt[ee])return A?u:{};F=Tf(u,ee,O)}}_||(_=new bn);var ye=_.get(u);if(ye)return ye;_.set(u,F),q0(u)?u.forEach(function(Ne){F.add(gn(Ne,a,f,Ne,u,_))}):Yc(u)&&u.forEach(function(Ne,Pe){F.set(Pe,gn(Ne,a,f,Pe,u,_))});var Re=$?j?bc:yc:j?sn:$t,Qe=P?l:Re(u);return uu(Qe||u,function(Ne,Pe){Qe&&(Pe=Ne,Ne=u[Pe]),_i(F,Pe,gn(Ne,a,f,Pe,u,_))}),F}function Cd(u){var a=$t(u);return function(f){return uf(f,u,a)}}function uf(u,a,f){var g=f.length;if(u==null)return!g;for(u=ut(u);g--;){var A=f[g],_=a[A],F=u[A];if(F===l&&!(A in u)||!_(F))return!1}return!0}function xi(u,a,f){if(typeof u!="function")throw new Zn(m);return Cr(function(){u.apply(l,f)},a)}function La(u,a,f,g){var A=-1,_=zs,F=!0,O=u.length,j=[],$=a.length;if(!O)return j;f&&(a=Ot(a,Vn(f))),g?(_=Go,F=!1):a.length>=d&&(_=rr,F=!1,a=new ta(a));e:for(;++A<O;){var P=u[A],ee=f==null?P:f(P);if(P=g||P!==0?P:0,F&&ee===ee){for(var ge=$;ge--;)if(a[ge]===ee)continue e;j.push(P)}else _(a,ee,g)||j.push(P)}return j}var ua=Cf(vn),nc=Cf(mr,!0);function af(u,a){var f=!0;return ua(u,function(g,A,_){return f=!!a(g,A,_),f}),f}function _u(u,a,f){for(var g=-1,A=u.length;++g<A;){var _=u[g],F=a(_);if(F!=null&&(O===l?F===F&&!En(F):f(F,O)))var O=F,j=_}return j}function qe(u,a,f,g){var A=u.length;for(f=ze(f),f<0&&(f=-f>A?0:A+f),g=g===l||g>A?A:ze(g),g<0&&(g+=A),g=f>g?0:Vu(g);f<g;)u[f++]=a;return u}function gt(u,a){var f=[];return ua(u,function(g,A,_){a(g,A,_)&&f.push(g)}),f}function $e(u,a,f,g,A){var _=-1,F=u.length;for(f||(f=la),A||(A=[]);++_<F;){var O=u[_];a>0&&f(O)?a>1?$e(O,a-1,f,g,A):Wu(A,O):g||(A[A.length]=O)}return A}var Ar=Oi(),Ei=Oi(!0);function vn(u,a){return u&&Ar(u,a,$t)}function mr(u,a){return u&&Ei(u,a,$t)}function za(u,a){return Ru(a,function(f){return Eu(u[f])})}function ou(u,a){a=ia(a,u);for(var f=0,g=a.length;u!=null&&f<g;)u=u[ft(a[f++])];return f&&f==g?u:l}function Sd(u,a,f){var g=a(u);return je(u)?g:Wu(g,f(u))}function We(u){return u==null?u===l?qg:Tu:yn&&yn in ut(u)?Xd(u):e0(u)}function Cl(u,a){return u>a}function rf(u,a){return u!=null&&st.call(u,a)}function Fd(u,a){return u!=null&&a in ut(u)}function wd(u,a,f){return u>=Tt(a,f)&&u<Ft(a,f)}function lf(u,a,f){for(var g=f?Go:zs,A=u[0].length,_=u.length,F=_,O=k(_),j=1/0,$=[];F--;){var P=u[F];F&&a&&(P=Ot(P,Vn(a))),j=Tt(P.length,j),O[F]=!f&&(a||A>=120&&P.length>=120)?new ta(F&&P):l}P=u[0];var ee=-1,ge=O[0];e:for(;++ee<A&&$.length<j;){var ye=P[ee],Re=a?a(ye):ye;if(ye=f||ye!==0?ye:0,!(ge?rr(ge,Re):g($,Re,f))){for(F=_;--F;){var Qe=O[F];if(!(Qe?rr(Qe,Re):g(u[F],Re,f)))continue e}ge&&ge.push(Re),$.push(ye)}}return $}function sf(u,a,f,g){return vn(u,function(A,_,F){a(g,f(A),_,F)}),g}function Ci(u,a,f){a=ia(a,u),u=Er(u,a);var g=u==null?u:u[ft(Dn(a))];return g==null?l:Mn(g,u,f)}function uc(u){return Lt(u)&&We(u)==me}function Nn(u){return Lt(u)&&We(u)==on}function Qt(u){return Lt(u)&&We(u)==zt}function Si(u,a,f,g,A){return u===a?!0:u==null||a==null||!Lt(u)&&!Lt(a)?u!==u&&a!==a:Sl(u,a,f,g,Si,A)}function Sl(u,a,f,g,A,_){var F=je(u),O=je(a),j=F?Ee:ln(u),$=O?Ee:ln(a);j=j==me?pt:j,$=$==me?pt:$;var P=j==pt,ee=$==pt,ge=j==$;if(ge&&Ja(u)){if(!Ja(a))return!1;F=!0,P=!1}if(ge&&!P)return _||(_=new bn),F||zr(u)?Zd(u,a,f,g,A,_):Kd(u,a,j,f,g,A,_);if(!(f&ie)){var ye=P&&st.call(u,"__wrapped__"),Re=ee&&st.call(a,"__wrapped__");if(ye||Re){var Qe=ye?u.value():u,Ne=Re?a.value():a;return _||(_=new bn),A(Qe,Ne,f,g,_)}}return ge?(_||(_=new bn),rn(u,a,f,g,A,_)):!1}function ac(u){return Lt(u)&&ln(u)==Se}function Fl(u,a,f,g){var A=f.length,_=A,F=!g;if(u==null)return!_;for(u=ut(u);A--;){var O=f[A];if(F&&O[2]?O[1]!==u[O[0]]:!(O[0]in u))return!1}for(;++A<_;){O=f[A];var j=O[0],$=u[j],P=O[1];if(F&&O[2]){if($===l&&!(j in u))return!1}else{var ee=new bn;if(g)var ge=g($,P,j,u,a,ee);if(!(ge===l?Si(P,$,ie|le,g,ee):ge))return!1}}return!0}function Lu(u){if(!Nt(u)||Fc(u))return!1;var a=Eu(u)?Io:Gh;return a.test(ca(u))}function ic(u){return Lt(u)&&We(u)==_a}function cf(u){return Lt(u)&&ln(u)==Sn}function of(u){return Lt(u)&&ji(u.length)&&!!At[We(u)]}function ff(u){return typeof u=="function"?u:u==null?U:typeof u=="object"?je(u)?sc(u[0],u[1]):df(u):at(u)}function rc(u){if(!xt(u))return lu(u);var a=[];for(var f in ut(u))st.call(u,f)&&f!="constructor"&&a.push(f);return a}function Md(u){if(!Nt(u))return qa(u);var a=xt(u),f=[];for(var g in u)g=="constructor"&&(a||!st.call(u,g))||f.push(g);return f}function lc(u,a){return u<a}function hf(u,a){var f=-1,g=It(u)?k(u.length):[];return ua(u,function(A,_,F){g[++f]=a(A,_,F)}),g}function df(u){var a=xc(u);return a.length==1&&a[0][2]?Wd(a[0][0],a[0][1]):function(f){return f===u||Fl(f,u,a)}}function sc(u,a){return Cc(u)&&$d(a)?Wd(ft(u),a):function(f){var g=cs(f,u);return g===l&&g===a?qr(f,u):Si(a,g,ie|le)}}function wl(u,a,f,g,A){u!==a&&Ar(a,function(_,F){if(A||(A=new bn),Nt(_))dv(u,a,F,f,wl,g,A);else{var O=g?g(wc(u,F),_,F+"",u,a,A):l;O===l&&(O=_),ju(u,F,O)}},sn)}function dv(u,a,f,g,A,_,F){var O=wc(u,f),j=wc(a,f),$=F.get(j);if($){ju(u,f,$);return}var P=_?_(O,j,f+"",u,a,F):l,ee=P===l;if(ee){var ge=je(j),ye=!ge&&Ja(j),Re=!ge&&!ye&&zr(j);P=j,ge||ye||Re?je(O)?P=O:qt(O)?P=Kt(O):ye?(ee=!1,P=bf(j,!0)):Re?(ee=!1,P=xf(j,!0)):P=[]:gu(j)||da(j)?(P=O,da(O)?P=V0(O):(!Nt(O)||Eu(O))&&(P=Of(j))):ee=!1}ee&&(F.set(j,P),A(P,j,g,_,F),F.delete(j)),ju(u,f,P)}function gf(u,a){var f=u.length;if(f)return a+=a<0?f:0,xu(a,f)?u[a]:l}function vf(u,a,f){a.length?a=Ot(a,function(_){return je(_)?function(F){return ou(F,_.length===1?_[0]:_)}:_}):a=[U];var g=-1;a=Ot(a,Vn(Ce()));var A=hf(u,function(_,F,O){var j=Ot(a,function($){return $(_)});return{criteria:j,index:++g,value:_}});return ad(A,function(_,F){return Hd(_,F,f)})}function Od(u,a){return cc(u,a,function(f,g){return qr(u,g)})}function cc(u,a,f){for(var g=-1,A=a.length,_={};++g<A;){var F=a[g],O=ou(u,F);f(O,F)&&br(_,ia(F,u),O)}return _}function Td(u){return function(a){return ou(a,u)}}function oc(u,a,f,g){var A=g?ko:ar,_=-1,F=a.length,O=u;for(u===a&&(a=Kt(a)),f&&(O=Ot(u,Vn(f)));++_<F;)for(var j=0,$=a[_],P=f?f($):$;(j=A(O,P,j,g))>-1;)O!==u&&Xs.call(O,j,1),Xs.call(u,j,1);return u}function Df(u,a){for(var f=u?a.length:0,g=f-1;f--;){var A=a[f];if(f==g||A!==_){var _=A;xu(A)?Xs.call(u,A,1):Bl(u,A)}}return u}function fc(u,a){return u+Pu($o()*(a-u+1))}function Bd(u,a,f,g){for(var A=-1,_=Ft(dr((a-u)/(f||1)),0),F=k(_);_--;)F[g?_:++A]=u,u+=f;return F}function pf(u,a){var f="";if(!u||a<1||a>Q)return f;do a%2&&(f+=u),a=Pu(a/2),a&&(u+=u);while(a);return f}function Ge(u,a){return Kl(Bf(u,a,U),u+"")}function yr(u){return Dr(kr(u))}function hc(u,a){var f=kr(u);return Il(f,bu(a,0,f.length))}function br(u,a,f,g){if(!Nt(u))return u;a=ia(a,u);for(var A=-1,_=a.length,F=_-1,O=u;O!=null&&++A<_;){var j=ft(a[A]),$=f;if(j==="__proto__"||j==="constructor"||j==="prototype")return u;if(A!=F){var P=O[j];$=g?g(P,j,O):l,$===l&&($=Nt(P)?P:xu(a[A+1])?[]:{})}_i(O,j,$),O=O[j]}return u}var Ml=gr?function(u,a){return gr.set(u,a),u}:U,Ol=vl?function(u,a){return vl(u,"toString",{configurable:!0,enumerable:!1,value:z(a),writable:!0})}:U;function Rd(u){return Il(kr(u))}function Xn(u,a,f){var g=-1,A=u.length;a<0&&(a=-a>A?0:A+a),f=f>A?A:f,f<0&&(f+=A),A=a>f?0:f-a>>>0,a>>>=0;for(var _=k(A);++g<A;)_[g]=u[g+a];return _}function Nd(u,a){var f;return ua(u,function(g,A,_){return f=a(g,A,_),!f}),!!f}function Tl(u,a,f){var g=0,A=u==null?g:u.length;if(typeof a=="number"&&a===a&&A<=ne){for(;g<A;){var _=g+A>>>1,F=u[_];F!==null&&!En(F)&&(f?F<=a:F<a)?g=_+1:A=_}return A}return dc(u,a,U,f)}function dc(u,a,f,g){var A=0,_=u==null?0:u.length;if(_===0)return 0;a=f(a);for(var F=a!==a,O=a===null,j=En(a),$=a===l;A<_;){var P=Pu((A+_)/2),ee=f(u[P]),ge=ee!==l,ye=ee===null,Re=ee===ee,Qe=En(ee);if(F)var Ne=g||Re;else $?Ne=Re&&(g||ge):O?Ne=Re&&ge&&(g||!ye):j?Ne=Re&&ge&&!ye&&(g||!Qe):ye||Qe?Ne=!1:Ne=g?ee<=a:ee<a;Ne?A=P+1:_=P}return Tt(_,ue)}function Af(u,a){for(var f=-1,g=u.length,A=0,_=[];++f<g;){var F=u[f],O=a?a(F):F;if(!f||!Gn(O,j)){var j=O;_[A++]=F===0?0:F}}return _}function gc(u){return typeof u=="number"?u:En(u)?S:+u}function jn(u){if(typeof u=="string")return u;if(je(u))return Ot(u,jn)+"";if(En(u))return Na?Na.call(u):"";var a=u+"";return a=="0"&&1/u==-V?"-0":a}function aa(u,a,f){var g=-1,A=zs,_=u.length,F=!0,O=[],j=O;if(f)F=!1,A=Go;else if(_>=d){var $=a?null:Vd(u);if($)return Qs($);F=!1,A=rr,j=new ta}else j=a?[]:O;e:for(;++g<_;){var P=u[g],ee=a?a(P):P;if(P=f||P!==0?P:0,F&&ee===ee){for(var ge=j.length;ge--;)if(j[ge]===ee)continue e;a&&j.push(ee),O.push(P)}else A(j,ee,f)||(j!==O&&j.push(ee),O.push(P))}return O}function Bl(u,a){return a=ia(a,u),u=Er(u,a),u==null||delete u[ft(Dn(a))]}function mf(u,a,f,g){return br(u,a,f(ou(u,a)),g)}function Rl(u,a,f,g){for(var A=u.length,_=g?A:-1;(g?_--:++_<A)&&a(u[_],_,u););return f?Xn(u,g?0:_,g?_+1:A):Xn(u,g?_+1:0,g?A:_)}function jd(u,a){var f=u;return f instanceof ke&&(f=f.value()),qo(a,function(g,A){return A.func.apply(A.thisArg,Wu([g],A.args))},f)}function Nl(u,a,f){var g=u.length;if(g<2)return g?aa(u[0]):[];for(var A=-1,_=k(g);++A<g;)for(var F=u[A],O=-1;++O<g;)O!=A&&(_[A]=La(_[A]||F,u[O],a,f));return aa($e(_,1),a,f)}function yf(u,a,f){for(var g=-1,A=u.length,_=a.length,F={};++g<A;){var O=g<_?a[g]:l;f(F,u[g],O)}return F}function vc(u){return qt(u)?u:[]}function jl(u){return typeof u=="function"?u:U}function ia(u,a){return je(u)?u:Cc(u,a)?[u]:Gu(ct(u))}var Ld=Ge;function Ua(u,a,f){var g=u.length;return f=f===l?g:f,!a&&f>=g?u:Xn(u,a,f)}var zd=Is||function(u){return Yt.clearTimeout(u)};function bf(u,a){if(a)return u.slice();var f=u.length,g=gi?gi(f):new u.constructor(f);return u.copy(g),g}function Fi(u){var a=new u.constructor(u.byteLength);return new hr(a).set(new hr(u)),a}function _f(u,a){var f=a?Fi(u.buffer):u.buffer;return new u.constructor(f,u.byteOffset,u.byteLength)}function Dc(u){var a=new u.constructor(u.source,Ii.exec(u));return a.lastIndex=u.lastIndex,a}function Ud(u){return mi?ut(mi.call(u)):{}}function xf(u,a){var f=a?Fi(u.buffer):u.buffer;return new u.constructor(f,u.byteOffset,u.length)}function Ll(u,a){if(u!==a){var f=u!==l,g=u===null,A=u===u,_=En(u),F=a!==l,O=a===null,j=a===a,$=En(a);if(!O&&!$&&!_&&u>a||_&&F&&j&&!O&&!$||g&&F&&j||!f&&j||!A)return 1;if(!g&&!_&&!$&&u<a||$&&f&&A&&!g&&!_||O&&f&&A||!F&&A||!j)return-1}return 0}function Hd(u,a,f){for(var g=-1,A=u.criteria,_=a.criteria,F=A.length,O=f.length;++g<F;){var j=Ll(A[g],_[g]);if(j){if(g>=O)return j;var $=f[g];return j*($=="desc"?-1:1)}}return u.index-a.index}function Ef(u,a,f,g){for(var A=-1,_=u.length,F=f.length,O=-1,j=a.length,$=Ft(_-F,0),P=k(j+$),ee=!g;++O<j;)P[O]=a[O];for(;++A<F;)(ee||A<_)&&(P[f[A]]=u[A]);for(;$--;)P[O++]=u[A++];return P}function Gd(u,a,f,g){for(var A=-1,_=u.length,F=-1,O=f.length,j=-1,$=a.length,P=Ft(_-O,0),ee=k(P+$),ge=!g;++A<P;)ee[A]=u[A];for(var ye=A;++j<$;)ee[ye+j]=a[j];for(;++F<O;)(ge||A<_)&&(ee[ye+f[F]]=u[A++]);return ee}function Kt(u,a){var f=-1,g=u.length;for(a||(a=k(g));++f<g;)a[f]=u[f];return a}function Ln(u,a,f,g){var A=!f;f||(f={});for(var _=-1,F=a.length;++_<F;){var O=a[_],j=g?g(f[O],u[O],O,f,u):l;j===l&&(j=u[O]),A?yu(f,O,j):_i(f,O,j)}return f}function pc(u,a){return Ln(u,kl(u),a)}function zl(u,a){return Ln(u,Ec(u),a)}function wi(u,a){return function(f,g){var A=je(f)?Jg:ja,_=a?a():{};return A(f,u,Ce(g,2),_)}}function Mi(u){return Ge(function(a,f){var g=-1,A=f.length,_=A>1?f[A-1]:l,F=A>2?f[2]:l;for(_=u.length>3&&typeof _=="function"?(A--,_):l,F&&xn(f[0],f[1],F)&&(_=A<3?l:_,A=1),a=ut(a);++g<A;){var O=f[g];O&&u(a,O,g,_)}return a})}function Cf(u,a){return function(f,g){if(f==null)return f;if(!It(f))return u(f,g);for(var A=f.length,_=a?A:-1,F=ut(f);(a?_--:++_<A)&&g(F[_],_,F)!==!1;);return f}}function Oi(u){return function(a,f,g){for(var A=-1,_=ut(a),F=g(a),O=F.length;O--;){var j=F[u?O:++A];if(f(_[j],j,_)===!1)break}return a}}function qd(u,a,f){var g=a&pe,A=fu(u);function _(){var F=this&&this!==Yt&&this instanceof _?A:u;return F.apply(g?f:this,arguments)}return _}function In(u){return function(a){a=ct(a);var f=Ma(a)?au(a):l,g=f?f[0]:a.charAt(0),A=f?Ua(f,1).join(""):a.slice(1);return g[u]()+A}}function _n(u){return function(a){return qo(o(ga(a).replace(ll,"")),u,"")}}function fu(u){return function(){var a=arguments;switch(a.length){case 0:return new u;case 1:return new u(a[0]);case 2:return new u(a[0],a[1]);case 3:return new u(a[0],a[1],a[2]);case 4:return new u(a[0],a[1],a[2],a[3]);case 5:return new u(a[0],a[1],a[2],a[3],a[4]);case 6:return new u(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new u(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=Kn(u.prototype),g=u.apply(f,a);return Nt(g)?g:f}}function Yd(u,a,f){var g=fu(u);function A(){for(var _=arguments.length,F=k(_),O=_,j=Bi(A);O--;)F[O]=arguments[O];var $=_<3&&F[0]!==j&&F[_-1]!==j?[]:Oa(F,j);if(_-=$.length,_<f)return Sf(u,a,Ht,A.placeholder,l,F,$,l,l,f-_);var P=this&&this!==Yt&&this instanceof A?g:u;return Mn(P,this,F)}return A}function ra(u){return function(a,f,g){var A=ut(a);if(!It(a)){var _=Ce(f,3);a=$t(a),f=function(O){return _(A[O],O,A)}}var F=u(a,f,g);return F>-1?A[_?a[F]:F]:l}}function zu(u){return wt(function(a){var f=a.length,g=f,A=Bn.prototype.thru;for(u&&a.reverse();g--;){var _=a[g];if(typeof _!="function")throw new Zn(m);if(A&&!F&&Yl(_)=="wrapper")var F=new Bn([],!0)}for(g=F?g:f;++g<f;){_=a[g];var O=Yl(_),j=O=="wrapper"?_c(_):l;j&&Sc(j[0])&&j[1]==(we|ae|X|Ie)&&!j[4].length&&j[9]==1?F=F[Yl(j[0])].apply(F,j[3]):F=_.length==1&&Sc(_)?F[O]():F.thru(_)}return function(){var $=arguments,P=$[0];if(F&&$.length==1&&je(P))return F.plant(P).value();for(var ee=0,ge=f?a[ee].apply(this,$):P;++ee<f;)ge=a[ee].call(this,ge);return ge}})}function Ht(u,a,f,g,A,_,F,O,j,$){var P=a&we,ee=a&pe,ge=a&Te,ye=a&(ae|ce),Re=a&rt,Qe=ge?l:fu(u);function Ne(){for(var Pe=arguments.length,it=k(Pe),Su=Pe;Su--;)it[Su]=arguments[Su];if(ye)var eu=Bi(Ne),Fu=uv(it,eu);if(g&&(it=Ef(it,g,A,ye)),_&&(it=Gd(it,_,F,ye)),Pe-=Fu,ye&&Pe<$){var Wt=Oa(it,eu);return Sf(u,a,Ht,Ne.placeholder,f,it,Wt,O,j,$-Pe)}var va=ee?f:this,Li=ge?va[u]:u;return Pe=it.length,O?it=Hu(it,O):Re&&Pe>1&&it.reverse(),P&&j<Pe&&(it.length=j),this&&this!==Yt&&this instanceof Ne&&(Li=Qe||fu(Li)),Li.apply(va,it)}return Ne}function Ul(u,a){return function(f,g){return sf(f,u,a(g),{})}}function _r(u,a){return function(f,g){var A;if(f===l&&g===l)return a;if(f!==l&&(A=f),g!==l){if(A===l)return g;typeof f=="string"||typeof g=="string"?(f=jn(f),g=jn(g)):(f=gc(f),g=gc(g)),A=u(f,g)}return A}}function Hl(u){return wt(function(a){return a=Ot(a,Vn(Ce())),Ge(function(f){var g=this;return u(a,function(A){return Mn(A,g,f)})})})}function Gl(u,a){a=a===l?" ":jn(a);var f=a.length;if(f<2)return f?pf(a,u):a;var g=pf(a,dr(u/Nu(a)));return Ma(a)?Ua(au(g),0,u).join(""):g.slice(0,u)}function kd(u,a,f,g){var A=a&pe,_=fu(u);function F(){for(var O=-1,j=arguments.length,$=-1,P=g.length,ee=k(P+j),ge=this&&this!==Yt&&this instanceof F?_:u;++$<P;)ee[$]=g[$];for(;j--;)ee[$++]=arguments[++O];return Mn(ge,A?f:this,ee)}return F}function Ha(u){return function(a,f,g){return g&&typeof g!="number"&&xn(a,f,g)&&(f=g=l),a=ku(a),f===l?(f=a,a=0):f=ku(f),g=g===l?a<f?1:-1:ku(g),Bd(a,f,g,u)}}function Ti(u){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=vu(a),f=vu(f)),u(a,f)}}function Sf(u,a,f,g,A,_,F,O,j,$){var P=a&ae,ee=P?F:l,ge=P?l:F,ye=P?_:l,Re=P?l:_;a|=P?X:oe,a&=~(P?oe:X),a&De||(a&=-4);var Qe=[u,a,A,ye,ee,Re,ge,O,j,$],Ne=f.apply(l,Qe);return Sc(u)&&Mc(Ne,Qe),Ne.placeholder=g,Oc(Ne,u,a)}function Ac(u){var a=Vt[u];return function(f,g){if(f=vu(f),g=g==null?0:Tt(ze(g),292),g&&Dl(f)){var A=(ct(f)+"e").split("e"),_=a(A[0]+"e"+(+A[1]+g));return A=(ct(_)+"e").split("e"),+(A[0]+"e"+(+A[1]-g))}return a(f)}}var Vd=Je&&1/Qs(new Je([,-0]))[1]==V?function(u){return new Je(u)}:Ae;function ql(u){return function(a){var f=ln(a);return f==Se?Vs(a):f==Sn?av(a):nv(a,u(a))}}function Uu(u,a,f,g,A,_,F,O){var j=a&Te;if(!j&&typeof u!="function")throw new Zn(m);var $=g?g.length:0;if($||(a&=-97,g=A=l),F=F===l?F:Ft(ze(F),0),O=O===l?O:ze(O),$-=A?A.length:0,a&oe){var P=g,ee=A;g=A=l}var ge=j?l:_c(u),ye=[u,a,f,g,A,P,ee,_,F,O];if(ge&&Zl(ye,ge),u=ye[0],a=ye[1],f=ye[2],g=ye[3],A=ye[4],O=ye[9]=ye[9]===l?j?0:u.length:Ft(ye[9]-$,0),!O&&a&(ae|ce)&&(a&=-25),!a||a==pe)var Re=qd(u,a,f);else a==ae||a==ce?Re=Yd(u,a,O):(a==X||a==(pe|X))&&!A.length?Re=kd(u,a,f,g):Re=Ht.apply(l,ye);var Qe=ge?Ml:Mc;return Oc(Qe(Re,ye),u,a)}function mc(u,a,f,g){return u===l||Gn(u,or[f])&&!st.call(g,f)?a:u}function Ff(u,a,f,g,A,_){return Nt(u)&&Nt(a)&&(_.set(a,u),wl(u,a,l,Ff,_),_.delete(a)),u}function Qd(u){return gu(u)?l:u}function Zd(u,a,f,g,A,_){var F=f&ie,O=u.length,j=a.length;if(O!=j&&!(F&&j>O))return!1;var $=_.get(u),P=_.get(a);if($&&P)return $==a&&P==u;var ee=-1,ge=!0,ye=f&le?new ta:l;for(_.set(u,a),_.set(a,u);++ee<O;){var Re=u[ee],Qe=a[ee];if(g)var Ne=F?g(Qe,Re,ee,a,u,_):g(Re,Qe,ee,u,a,_);if(Ne!==l){if(Ne)continue;ge=!1;break}if(ye){if(!Yo(a,function(Pe,it){if(!rr(ye,it)&&(Re===Pe||A(Re,Pe,f,g,_)))return ye.push(it)})){ge=!1;break}}else if(!(Re===Qe||A(Re,Qe,f,g,_))){ge=!1;break}}return _.delete(u),_.delete(a),ge}function Kd(u,a,f,g,A,_,F){switch(f){case Yn:if(u.byteLength!=a.byteLength||u.byteOffset!=a.byteOffset)return!1;u=u.buffer,a=a.buffer;case on:return!(u.byteLength!=a.byteLength||!_(new hr(u),new hr(a)));case Ze:case zt:case nn:return Gn(+u,+a);case tn:return u.name==a.name&&u.message==a.message;case _a:case Pr:return u==a+"";case Se:var O=Vs;case Sn:var j=g&ie;if(O||(O=Qs),u.size!=a.size&&!j)return!1;var $=F.get(u);if($)return $==a;g|=le,F.set(u,a);var P=Zd(O(u),O(a),g,A,_,F);return F.delete(u),P;case el:if(mi)return mi.call(u)==mi.call(a)}return!1}function rn(u,a,f,g,A,_){var F=f&ie,O=yc(u),j=O.length,$=yc(a),P=$.length;if(j!=P&&!F)return!1;for(var ee=j;ee--;){var ge=O[ee];if(!(F?ge in a:st.call(a,ge)))return!1}var ye=_.get(u),Re=_.get(a);if(ye&&Re)return ye==a&&Re==u;var Qe=!0;_.set(u,a),_.set(a,u);for(var Ne=F;++ee<j;){ge=O[ee];var Pe=u[ge],it=a[ge];if(g)var Su=F?g(it,Pe,ge,a,u,_):g(Pe,it,ge,u,a,_);if(!(Su===l?Pe===it||A(Pe,it,f,g,_):Su)){Qe=!1;break}Ne||(Ne=ge=="constructor")}if(Qe&&!Ne){var eu=u.constructor,Fu=a.constructor;eu!=Fu&&"constructor"in u&&"constructor"in a&&!(typeof eu=="function"&&eu instanceof eu&&typeof Fu=="function"&&Fu instanceof Fu)&&(Qe=!1)}return _.delete(u),_.delete(a),Qe}function wt(u){return Kl(Bf(u,l,Un),u+"")}function yc(u){return Sd(u,$t,kl)}function bc(u){return Sd(u,sn,Ec)}var _c=gr?function(u){return gr.get(u)}:Ae;function Yl(u){for(var a=u.name+"",f=su[a],g=st.call(su,a)?f.length:0;g--;){var A=f[g],_=A.func;if(_==null||_==u)return A.name}return a}function Bi(u){var a=st.call(y,"placeholder")?y:u;return a.placeholder}function Ce(){var u=y.iteratee||Me;return u=u===Me?ff:u,arguments.length?u(arguments[0],arguments[1]):u}function xr(u,a){var f=u.__data__;return sa(a)?f[typeof a=="string"?"string":"hash"]:f.map}function xc(u){for(var a=$t(u),f=a.length;f--;){var g=a[f],A=u[g];a[f]=[g,A,$d(A)]}return a}function Ga(u,a){var f=Qo(u,a);return Lu(f)?f:l}function Xd(u){var a=st.call(u,yn),f=u[yn];try{u[yn]=l;var g=!0}catch{}var A=mn.call(u);return g&&(a?u[yn]=f:delete u[yn]),A}var kl=Ba?function(u){return u==null?[]:(u=ut(u),Ru(Ba(u),function(a){return vi.call(u,a)}))}:Jv,Ec=Ba?function(u){for(var a=[];u;)Wu(a,kl(u)),u=dl(u);return a}:Jv,ln=We;(pl&&ln(new pl(new ArrayBuffer(1)))!=Yn||Zt&&ln(new Zt)!=Se||Bt&&ln(Bt.resolve())!=si||Je&&ln(new Je)!=Sn||mu&&ln(new mu)!=tl)&&(ln=function(u){var a=We(u),f=a==pt?u.constructor:l,g=f?ca(f):"";if(g)switch(g){case gd:return Yn;case vd:return Se;case Al:return si;case ml:return Sn;case Dd:return tl}return a});function Id(u,a,f){for(var g=-1,A=f.length;++g<A;){var _=f[g],F=_.size;switch(_.type){case"drop":u+=F;break;case"dropRight":a-=F;break;case"take":a=Tt(a,u+F);break;case"takeRight":u=Ft(u,a-F);break}}return{start:u,end:a}}function wf(u){var a=u.match(Zg);return a?a[1].split(Hh):[]}function Vl(u,a,f){a=ia(a,u);for(var g=-1,A=a.length,_=!1;++g<A;){var F=ft(a[g]);if(!(_=u!=null&&f(u,F)))break;u=u[F]}return _||++g!=A?_:(A=u==null?0:u.length,!!A&&ji(A)&&xu(F,A)&&(je(u)||da(u)))}function Mf(u){var a=u.length,f=new u.constructor(a);return a&&typeof u[0]=="string"&&st.call(u,"index")&&(f.index=u.index,f.input=u.input),f}function Of(u){return typeof u.constructor=="function"&&!xt(u)?Kn(dl(u)):{}}function Tf(u,a,f){var g=u.constructor;switch(a){case on:return Fi(u);case Ze:case zt:return new g(+u);case Yn:return _f(u,f);case An:case Do:case po:case Ao:case ki:case Vi:case Ju:case Qi:case ci:return xf(u,f);case Se:return new g;case nn:case Pr:return new g(u);case _a:return Dc(u);case Sn:return new g;case el:return Ud(u)}}function Jd(u,a){var f=a.length;if(!f)return u;var g=f-1;return a[g]=(f>1?"& ":"")+a[g],a=a.join(f>2?", ":" "),u.replace(Qg,`{
/* [wrapped with `+a+`] */
`)}function la(u){return je(u)||da(u)||!!(On&&u&&u[On])}function xu(u,a){var f=typeof u;return a=a??Q,!!a&&(f=="number"||f!="symbol"&&oi.test(u))&&u>-1&&u%1==0&&u<a}function xn(u,a,f){if(!Nt(f))return!1;var g=typeof a;return(g=="number"?It(f)&&xu(a,f.length):g=="string"&&a in f)?Gn(f[a],u):!1}function Cc(u,a){if(je(u))return!1;var f=typeof u;return f=="number"||f=="symbol"||f=="boolean"||u==null||En(u)?!0:Vg.test(u)||!Uh.test(u)||a!=null&&u in ut(a)}function sa(u){var a=typeof u;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?u!=="__proto__":u===null}function Sc(u){var a=Yl(u),f=y[a];if(typeof f!="function"||!(a in ke.prototype))return!1;if(u===f)return!0;var g=_c(f);return!!g&&u===g[0]}function Fc(u){return!!Xo&&Xo in u}var Ql=fl?Eu:$v;function xt(u){var a=u&&u.constructor,f=typeof a=="function"&&a.prototype||or;return u===f}function $d(u){return u===u&&!Nt(u)}function Wd(u,a){return function(f){return f==null?!1:f[u]===a&&(a!==l||u in ut(f))}}function Pd(u){var a=us(u,function(g){return f.size===C&&f.clear(),g}),f=a.cache;return a}function Zl(u,a){var f=u[1],g=a[1],A=f|g,_=A<(pe|Te|we),F=g==we&&f==ae||g==we&&f==Ie&&u[7].length<=a[8]||g==(we|Ie)&&a[7].length<=a[8]&&f==ae;if(!(_||F))return u;g&pe&&(u[2]=a[2],A|=f&pe?0:De);var O=a[3];if(O){var j=u[3];u[3]=j?Ef(j,O,a[4]):O,u[4]=j?Oa(u[3],M):a[4]}return O=a[5],O&&(j=u[5],u[5]=j?Gd(j,O,a[6]):O,u[6]=j?Oa(u[5],M):a[6]),O=a[7],O&&(u[7]=O),g&we&&(u[8]=u[8]==null?a[8]:Tt(u[8],a[8])),u[9]==null&&(u[9]=a[9]),u[0]=a[0],u[1]=A,u}function qa(u){var a=[];if(u!=null)for(var f in ut(u))a.push(f);return a}function e0(u){return mn.call(u)}function Bf(u,a,f){return a=Ft(a===l?u.length-1:a,0),function(){for(var g=arguments,A=-1,_=Ft(g.length-a,0),F=k(_);++A<_;)F[A]=g[a+A];A=-1;for(var O=k(a+1);++A<a;)O[A]=g[A];return O[a]=f(F),Mn(u,this,O)}}function Er(u,a){return a.length<2?u:ou(u,Xn(a,0,-1))}function Hu(u,a){for(var f=u.length,g=Tt(a.length,f),A=Kt(u);g--;){var _=a[g];u[g]=xu(_,f)?A[_]:l}return u}function wc(u,a){if(!(a==="constructor"&&typeof u[a]=="function")&&a!="__proto__")return u[a]}var Mc=Xl(Ml),Cr=Jo||function(u,a){return Yt.setTimeout(u,a)},Kl=Xl(Ol);function Oc(u,a,f){var g=a+"";return Kl(u,Jd(g,t0(wf(g),f)))}function Xl(u){var a=0,f=0;return function(){var g=ea(),A=dn-(g-f);if(f=g,A>0){if(++a>=ot)return arguments[0]}else a=0;return u.apply(l,arguments)}}function Il(u,a){var f=-1,g=u.length,A=g-1;for(a=a===l?g:a;++f<a;){var _=fc(f,A),F=u[_];u[_]=u[f],u[f]=F}return u.length=a,u}var Gu=Pd(function(u){var a=[];return u.charCodeAt(0)===46&&a.push(""),u.replace(xa,function(f,g,A,_){a.push(A?_.replace(Ki,"$1"):g||f)}),a});function ft(u){if(typeof u=="string"||En(u))return u;var a=u+"";return a=="0"&&1/u==-V?"-0":a}function ca(u){if(u!=null){try{return hl.call(u)}catch{}try{return u+""}catch{}}return""}function t0(u,a){return uu(ve,function(f){var g="_."+f[0];a&f[1]&&!zs(u,g)&&u.push(g)}),u.sort()}function Xt(u){if(u instanceof ke)return u.clone();var a=new Bn(u.__wrapped__,u.__chain__);return a.__actions__=Kt(u.__actions__),a.__index__=u.__index__,a.__values__=u.__values__,a}function gv(u,a,f){(f?xn(u,a,f):a===l)?a=1:a=Ft(ze(a),0);var g=u==null?0:u.length;if(!g||a<1)return[];for(var A=0,_=0,F=k(dr(g/a));A<g;)F[_++]=Xn(u,A,A+=a);return F}function n0(u){for(var a=-1,f=u==null?0:u.length,g=0,A=[];++a<f;){var _=u[a];_&&(A[g++]=_)}return A}function u0(){var u=arguments.length;if(!u)return[];for(var a=k(u-1),f=arguments[0],g=u;g--;)a[g-1]=arguments[g];return Wu(je(f)?Kt(f):[f],$e(a,1))}var Rt=Ge(function(u,a){return qt(u)?La(u,$e(a,1,qt,!0)):[]}),zn=Ge(function(u,a){var f=Dn(a);return qt(f)&&(f=l),qt(u)?La(u,$e(a,1,qt,!0),Ce(f,2)):[]}),oa=Ge(function(u,a){var f=Dn(a);return qt(f)&&(f=l),qt(u)?La(u,$e(a,1,qt,!0),l,f):[]});function a0(u,a,f){var g=u==null?0:u.length;return g?(a=f||a===l?1:ze(a),Xn(u,a<0?0:a,g)):[]}function i0(u,a,f){var g=u==null?0:u.length;return g?(a=f||a===l?1:ze(a),a=g-a,Xn(u,0,a<0?0:a)):[]}function vv(u,a){return u&&u.length?Rl(u,Ce(a,3),!0,!0):[]}function Rf(u,a){return u&&u.length?Rl(u,Ce(a,3),!0):[]}function Jn(u,a,f,g){var A=u==null?0:u.length;return A?(f&&typeof f!="number"&&xn(u,a,f)&&(f=0,g=A),qe(u,a,f,g)):[]}function hu(u,a,f){var g=u==null?0:u.length;if(!g)return-1;var A=f==null?0:ze(f);return A<0&&(A=Ft(g+A,0)),Us(u,Ce(a,3),A)}function Nf(u,a,f){var g=u==null?0:u.length;if(!g)return-1;var A=g-1;return f!==l&&(A=ze(f),A=f<0?Ft(g+A,0):Tt(A,g-1)),Us(u,Ce(a,3),A,!0)}function Un(u){var a=u==null?0:u.length;return a?$e(u,1):[]}function r0(u){var a=u==null?0:u.length;return a?$e(u,V):[]}function Ya(u,a){var f=u==null?0:u.length;return f?(a=a===l?1:ze(a),$e(u,a)):[]}function Ri(u){for(var a=-1,f=u==null?0:u.length,g={};++a<f;){var A=u[a];g[A[0]]=A[1]}return g}function fa(u){return u&&u.length?u[0]:l}function jf(u,a,f){var g=u==null?0:u.length;if(!g)return-1;var A=f==null?0:ze(f);return A<0&&(A=Ft(g+A,0)),ar(u,a,A)}function Lf(u){var a=u==null?0:u.length;return a?Xn(u,0,-1):[]}var qu=Ge(function(u){var a=Ot(u,vc);return a.length&&a[0]===u[0]?lf(a):[]}),l0=Ge(function(u){var a=Dn(u),f=Ot(u,vc);return a===Dn(f)?a=l:f.pop(),f.length&&f[0]===u[0]?lf(f,Ce(a,2)):[]}),Sr=Ge(function(u){var a=Dn(u),f=Ot(u,vc);return a=typeof a=="function"?a:l,a&&f.pop(),f.length&&f[0]===u[0]?lf(f,l,a):[]});function Jl(u,a){return u==null?"":ru.call(u,a)}function Dn(u){var a=u==null?0:u.length;return a?u[a-1]:l}function Fr(u,a,f){var g=u==null?0:u.length;if(!g)return-1;var A=g;return f!==l&&(A=ze(f),A=A<0?Ft(g+A,0):Tt(A,g-1)),a===a?Qn(u,a,A):Us(u,ir,A,!0)}function s0(u,a){return u&&u.length?gf(u,ze(a)):l}var c0=Ge(wr);function wr(u,a){return u&&u.length&&a&&a.length?oc(u,a):u}function o0(u,a,f){return u&&u.length&&a&&a.length?oc(u,a,Ce(f,2)):u}function Tc(u,a,f){return u&&u.length&&a&&a.length?oc(u,a,l,f):u}var f0=wt(function(u,a){var f=u==null?0:u.length,g=El(u,a);return Df(u,Ot(a,function(A){return xu(A,f)?+A:A}).sort(Ll)),g});function Dv(u,a){var f=[];if(!(u&&u.length))return f;var g=-1,A=[],_=u.length;for(a=Ce(a,3);++g<_;){var F=u[g];a(F,g,u)&&(f.push(F),A.push(g))}return Df(u,A),f}function zf(u){return u==null?u:Wo.call(u)}function vt(u,a,f){var g=u==null?0:u.length;return g?(f&&typeof f!="number"&&xn(u,a,f)?(a=0,f=g):(a=a==null?0:ze(a),f=f===l?g:ze(f)),Xn(u,a,f)):[]}function Ct(u,a){return Tl(u,a)}function Ke(u,a,f){return dc(u,a,Ce(f,2))}function et(u,a){var f=u==null?0:u.length;if(f){var g=Tl(u,a);if(g<f&&Gn(u[g],a))return g}return-1}function Dt(u,a){return Tl(u,a,!0)}function $n(u,a,f){return dc(u,a,Ce(f,2),!0)}function ka(u,a){var f=u==null?0:u.length;if(f){var g=Tl(u,a,!0)-1;if(Gn(u[g],a))return g}return-1}function Mr(u){return u&&u.length?Af(u):[]}function Uf(u,a){return u&&u.length?Af(u,Ce(a,2)):[]}function ha(u){var a=u==null?0:u.length;return a?Xn(u,1,a):[]}function Gt(u,a,f){return u&&u.length?(a=f||a===l?1:ze(a),Xn(u,0,a<0?0:a)):[]}function Va(u,a,f){var g=u==null?0:u.length;return g?(a=f||a===l?1:ze(a),a=g-a,Xn(u,a<0?0:a,g)):[]}function Ni(u,a){return u&&u.length?Rl(u,Ce(a,3),!1,!0):[]}function Hf(u,a){return u&&u.length?Rl(u,Ce(a,3)):[]}var du=Ge(function(u){return aa($e(u,1,qt,!0))}),Or=Ge(function(u){var a=Dn(u);return qt(a)&&(a=l),aa($e(u,1,qt,!0),Ce(a,2))}),$l=Ge(function(u){var a=Dn(u);return a=typeof a=="function"?a:l,aa($e(u,1,qt,!0),l,a)});function Hn(u){return u&&u.length?aa(u):[]}function Gf(u,a){return u&&u.length?aa(u,Ce(a,2)):[]}function qf(u,a){return a=typeof a=="function"?a:l,u&&u.length?aa(u,l,a):[]}function Tr(u){if(!(u&&u.length))return[];var a=0;return u=Ru(u,function(f){if(qt(f))return a=Ft(f.length,a),!0}),wa(a,function(f){return Ot(u,Hs(f))})}function Wl(u,a){if(!(u&&u.length))return[];var f=Tr(u);return a==null?f:Ot(f,function(g){return Mn(a,l,g)})}var Qa=Ge(function(u,a){return qt(u)?La(u,a):[]}),fn=Ge(function(u){return Nl(Ru(u,qt))}),Za=Ge(function(u){var a=Dn(u);return qt(a)&&(a=l),Nl(Ru(u,qt),Ce(a,2))}),Br=Ge(function(u){var a=Dn(u);return a=typeof a=="function"?a:l,Nl(Ru(u,qt),l,a)}),Rr=Ge(Tr);function Yf(u,a){return yf(u||[],a||[],_i)}function kf(u,a){return yf(u||[],a||[],br)}var h0=Ge(function(u){var a=u.length,f=a>1?u[a-1]:l;return f=typeof f=="function"?(u.pop(),f):l,Wl(u,f)});function Nr(u){var a=y(u);return a.__chain__=!0,a}function Vf(u,a){return a(u),u}function pn(u,a){return a(u)}var d0=wt(function(u){var a=u.length,f=a?u[0]:0,g=this.__wrapped__,A=function(_){return El(_,u)};return a>1||this.__actions__.length||!(g instanceof ke)||!xu(f)?this.thru(A):(g=g.slice(f,+f+(a?1:0)),g.__actions__.push({func:pn,args:[A],thisArg:l}),new Bn(g,this.__chain__).thru(function(_){return a&&!_.length&&_.push(l),_}))});function Wn(){return Nr(this)}function g0(){return new Bn(this.value(),this.__chain__)}function v0(){this.__values__===l&&(this.__values__=Pn(this.value()));var u=this.__index__>=this.__values__.length,a=u?l:this.__values__[this.__index__++];return{done:u,value:a}}function pv(){return this}function Ka(u){for(var a,f=this;f instanceof cu;){var g=Xt(f);g.__index__=0,g.__values__=l,a?A.__wrapped__=g:a=g;var A=g;f=f.__wrapped__}return A.__wrapped__=u,a}function Bc(){var u=this.__wrapped__;if(u instanceof ke){var a=u;return this.__actions__.length&&(a=new ke(this)),a=a.reverse(),a.__actions__.push({func:pn,args:[zf],thisArg:l}),new Bn(a,this.__chain__)}return this.thru(zf)}function Qf(){return jd(this.__wrapped__,this.__actions__)}var jr=wi(function(u,a,f){st.call(u,f)?++u[f]:yu(u,f,1)});function D0(u,a,f){var g=je(u)?td:af;return f&&xn(u,a,f)&&(a=l),g(u,Ce(a,3))}function p0(u,a){var f=je(u)?Ru:gt;return f(u,Ce(a,3))}var A0=ra(hu),Zf=ra(Nf);function Kf(u,a){return $e(Pl(u,a),1)}function Av(u,a){return $e(Pl(u,a),V)}function mv(u,a,f){return f=f===l?1:ze(f),$e(Pl(u,a),f)}function m0(u,a){var f=je(u)?uu:ua;return f(u,Ce(a,3))}function Xf(u,a){var f=je(u)?$g:nc;return f(u,Ce(a,3))}var y0=wi(function(u,a,f){st.call(u,f)?u[f].push(a):yu(u,f,[a])});function Lr(u,a,f,g){u=It(u)?u:kr(u),f=f&&!g?ze(f):0;var A=u.length;return f<0&&(f=Ft(A+f,0)),Vc(u)?f<=A&&u.indexOf(a,f)>-1:!!A&&ar(u,a,f)>-1}var Rc=Ge(function(u,a,f){var g=-1,A=typeof a=="function",_=It(u)?k(u.length):[];return ua(u,function(F){_[++g]=A?Mn(a,F,f):Ci(F,a,f)}),_}),b0=wi(function(u,a,f){yu(u,f,a)});function Pl(u,a){var f=je(u)?Ot:hf;return f(u,Ce(a,3))}function _0(u,a,f,g){return u==null?[]:(je(a)||(a=a==null?[]:[a]),f=g?l:f,je(f)||(f=f==null?[]:[f]),vf(u,a,f))}var x0=wi(function(u,a,f){u[f?0:1].push(a)},function(){return[[],[]]});function E0(u,a,f){var g=je(u)?qo:Vo,A=arguments.length<3;return g(u,Ce(a,4),f,A,ua)}function C0(u,a,f){var g=je(u)?Wg:Vo,A=arguments.length<3;return g(u,Ce(a,4),f,A,nc)}function Nc(u,a){var f=je(u)?Ru:gt;return f(u,as(Ce(a,3)))}function S0(u){var a=je(u)?Dr:yr;return a(u)}function F0(u,a,f){(f?xn(u,a,f):a===l)?a=1:a=ze(a);var g=je(u)?xd:hc;return g(u,a)}function Et(u){var a=je(u)?Ed:Rd;return a(u)}function If(u){if(u==null)return 0;if(It(u))return Vc(u)?Nu(u):u.length;var a=ln(u);return a==Se||a==Sn?u.size:rc(u).length}function yv(u,a,f){var g=je(u)?Yo:Nd;return f&&xn(u,a,f)&&(a=l),g(u,Ce(a,3))}var w0=Ge(function(u,a){if(u==null)return[];var f=a.length;return f>1&&xn(u,a[0],a[1])?a=[]:f>2&&xn(a[0],a[1],a[2])&&(a=[a[0]]),vf(u,$e(a,1),[])}),jc=pi||function(){return Yt.Date.now()};function bv(u,a){if(typeof a!="function")throw new Zn(m);return u=ze(u),function(){if(--u<1)return a.apply(this,arguments)}}function M0(u,a,f){return a=f?l:a,a=u&&a==null?u.length:a,Uu(u,we,l,l,l,l,a)}function es(u,a){var f;if(typeof a!="function")throw new Zn(m);return u=ze(u),function(){return--u>0&&(f=a.apply(this,arguments)),u<=1&&(a=l),f}}var Xa=Ge(function(u,a,f){var g=pe;if(f.length){var A=Oa(f,Bi(Xa));g|=X}return Uu(u,g,a,f,A)}),Lc=Ge(function(u,a,f){var g=pe|Te;if(f.length){var A=Oa(f,Bi(Lc));g|=X}return Uu(a,g,u,f,A)});function ts(u,a,f){a=f?l:a;var g=Uu(u,ae,l,l,l,l,l,a);return g.placeholder=ts.placeholder,g}function zc(u,a,f){a=f?l:a;var g=Uu(u,ce,l,l,l,l,l,a);return g.placeholder=zc.placeholder,g}function Ia(u,a,f){var g,A,_,F,O,j,$=0,P=!1,ee=!1,ge=!0;if(typeof u!="function")throw new Zn(m);a=vu(a)||0,Nt(f)&&(P=!!f.leading,ee="maxWait"in f,_=ee?Ft(vu(f.maxWait)||0,a):_,ge="trailing"in f?!!f.trailing:ge);function ye(Wt){var va=g,Li=A;return g=A=l,$=Wt,F=u.apply(Li,va),F}function Re(Wt){return $=Wt,O=Cr(Pe,a),P?ye(Wt):F}function Qe(Wt){var va=Wt-j,Li=Wt-$,QD=a-va;return ee?Tt(QD,_-Li):QD}function Ne(Wt){var va=Wt-j,Li=Wt-$;return j===l||va>=a||va<0||ee&&Li>=_}function Pe(){var Wt=jc();if(Ne(Wt))return it(Wt);O=Cr(Pe,Qe(Wt))}function it(Wt){return O=l,ge&&g?ye(Wt):(g=A=l,F)}function Su(){O!==l&&zd(O),$=0,g=j=A=O=l}function eu(){return O===l?F:it(jc())}function Fu(){var Wt=jc(),va=Ne(Wt);if(g=arguments,A=this,j=Wt,va){if(O===l)return Re(j);if(ee)return zd(O),O=Cr(Pe,a),ye(j)}return O===l&&(O=Cr(Pe,a)),F}return Fu.cancel=Su,Fu.flush=eu,Fu}var Yu=Ge(function(u,a){return xi(u,1,a)}),ns=Ge(function(u,a,f){return xi(u,vu(a)||0,f)});function _v(u){return Uu(u,rt)}function us(u,a){if(typeof u!="function"||a!=null&&typeof a!="function")throw new Zn(m);var f=function(){var g=arguments,A=a?a.apply(this,g):g[0],_=f.cache;if(_.has(A))return _.get(A);var F=u.apply(this,g);return f.cache=_.set(A,F)||_,F};return f.cache=new(us.Cache||Rn),f}us.Cache=Rn;function as(u){if(typeof u!="function")throw new Zn(m);return function(){var a=arguments;switch(a.length){case 0:return!u.call(this);case 1:return!u.call(this,a[0]);case 2:return!u.call(this,a[0],a[1]);case 3:return!u.call(this,a[0],a[1],a[2])}return!u.apply(this,a)}}function O0(u){return es(2,u)}var T0=Ld(function(u,a){a=a.length==1&&je(a[0])?Ot(a[0],Vn(Ce())):Ot($e(a,1),Vn(Ce()));var f=a.length;return Ge(function(g){for(var A=-1,_=Tt(g.length,f);++A<_;)g[A]=a[A].call(this,g[A]);return Mn(u,this,g)})}),Jf=Ge(function(u,a){var f=Oa(a,Bi(Jf));return Uu(u,X,l,a,f)}),Uc=Ge(function(u,a){var f=Oa(a,Bi(Uc));return Uu(u,oe,l,a,f)}),B0=wt(function(u,a){return Uu(u,Ie,l,l,l,a)});function R0(u,a){if(typeof u!="function")throw new Zn(m);return a=a===l?a:ze(a),Ge(u,a)}function xv(u,a){if(typeof u!="function")throw new Zn(m);return a=a==null?0:Ft(ze(a),0),Ge(function(f){var g=f[a],A=Ua(f,0,a);return g&&Wu(A,g),Mn(u,this,A)})}function $f(u,a,f){var g=!0,A=!0;if(typeof u!="function")throw new Zn(m);return Nt(f)&&(g="leading"in f?!!f.leading:g,A="trailing"in f?!!f.trailing:A),Ia(u,a,{leading:g,maxWait:a,trailing:A})}function Wf(u){return M0(u,1)}function Ev(u,a){return Jf(jl(a),u)}function Cv(){if(!arguments.length)return[];var u=arguments[0];return je(u)?u:[u]}function is(u){return gn(u,te)}function Sv(u,a){return a=typeof a=="function"?a:l,gn(u,te,a)}function N0(u){return gn(u,H|te)}function Xe(u,a){return a=typeof a=="function"?a:l,gn(u,H|te,a)}function Pf(u,a){return a==null||uf(u,a,$t(a))}function Gn(u,a){return u===a||u!==u&&a!==a}var eh=Ti(Cl),j0=Ti(function(u,a){return u>=a}),da=uc((function(){return arguments})())?uc:function(u){return Lt(u)&&st.call(u,"callee")&&!vi.call(u,"callee")},je=k.isArray,Hc=Ls?Vn(Ls):Nn;function It(u){return u!=null&&ji(u.length)&&!Eu(u)}function qt(u){return Lt(u)&&It(u)}function Fv(u){return u===!0||u===!1||Lt(u)&&We(u)==Ze}var Ja=Js||$v,L0=Jh?Vn(Jh):Qt;function z0(u){return Lt(u)&&u.nodeType===1&&!gu(u)}function Gc(u){if(u==null)return!0;if(It(u)&&(je(u)||typeof u=="string"||typeof u.splice=="function"||Ja(u)||zr(u)||da(u)))return!u.length;var a=ln(u);if(a==Se||a==Sn)return!u.size;if(xt(u))return!rc(u).length;for(var f in u)if(st.call(u,f))return!1;return!0}function mt(u,a){return Si(u,a)}function th(u,a,f){f=typeof f=="function"?f:l;var g=f?f(u,a):l;return g===l?Si(u,a,l,f):!!g}function Jt(u){if(!Lt(u))return!1;var a=We(u);return a==tn||a==kt||typeof u.message=="string"&&typeof u.name=="string"&&!gu(u)}function wv(u){return typeof u=="number"&&Dl(u)}function Eu(u){if(!Nt(u))return!1;var a=We(u);return a==Cn||a==Du||a==bt||a==Wr}function qc(u){return typeof u=="number"&&u==ze(u)}function ji(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=Q}function Nt(u){var a=typeof u;return u!=null&&(a=="object"||a=="function")}function Lt(u){return u!=null&&typeof u=="object"}var Yc=$h?Vn($h):ac;function nh(u,a){return u===a||Fl(u,a,xc(a))}function Mv(u,a,f){return f=typeof f=="function"?f:l,Fl(u,a,xc(a),f)}function U0(u){return G0(u)&&u!=+u}function Ov(u){if(Ql(u))throw new Be(v);return Lu(u)}function H0(u){return u===null}function Tv(u){return u==null}function G0(u){return typeof u=="number"||Lt(u)&&We(u)==nn}function gu(u){if(!Lt(u)||We(u)!=pt)return!1;var a=dl(u);if(a===null)return!0;var f=st.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&hl.call(f)==iu}var kc=Wh?Vn(Wh):ic;function uh(u){return qc(u)&&u>=-Q&&u<=Q}var q0=Ph?Vn(Ph):cf;function Vc(u){return typeof u=="string"||!je(u)&&Lt(u)&&We(u)==Pr}function En(u){return typeof u=="symbol"||Lt(u)&&We(u)==el}var zr=ed?Vn(ed):of;function Cu(u){return u===l}function ah(u){return Lt(u)&&ln(u)==tl}function Y0(u){return Lt(u)&&We(u)==nl}var k0=Ti(lc),rs=Ti(function(u,a){return u<=a});function Pn(u){if(!u)return[];if(It(u))return Vc(u)?au(u):Kt(u);if(Di&&u[Di])return cd(u[Di]());var a=ln(u),f=a==Se?Vs:a==Sn?Qs:kr;return f(u)}function ku(u){if(!u)return u===0?u:0;if(u=vu(u),u===V||u===-V){var a=u<0?-1:1;return a*he}return u===u?u:0}function ze(u){var a=ku(u),f=a%1;return a===a?f?a-f:a:0}function Vu(u){return u?bu(ze(u),0,q):0}function vu(u){if(typeof u=="number")return u;if(En(u))return S;if(Nt(u)){var a=typeof u.valueOf=="function"?u.valueOf():u;u=Nt(a)?a+"":a}if(typeof u!="string")return u===0?u:+u;u=id(u);var f=an.test(u);return f||qh.test(u)?Ig(u.slice(2),f?2:8):Ji.test(u)?S:+u}function V0(u){return Ln(u,sn(u))}function Ur(u){return u?bu(ze(u),-Q,Q):u===0?u:0}function ct(u){return u==null?"":jn(u)}var Bv=Mi(function(u,a){if(xt(a)||It(a)){Ln(a,$t(a),u);return}for(var f in a)st.call(a,f)&&_i(u,f,a[f])}),Q0=Mi(function(u,a){Ln(a,sn(a),u)}),Qc=Mi(function(u,a,f,g){Ln(a,sn(a),u,g)}),Rv=Mi(function(u,a,f,g){Ln(a,$t(a),u,g)}),Nv=wt(El);function jv(u,a){var f=Kn(u);return a==null?f:na(f,a)}var Lv=Ge(function(u,a){u=ut(u);var f=-1,g=a.length,A=g>2?a[2]:l;for(A&&xn(a[0],a[1],A)&&(g=1);++f<g;)for(var _=a[f],F=sn(_),O=-1,j=F.length;++O<j;){var $=F[O],P=u[$];(P===l||Gn(P,or[$])&&!st.call(u,$))&&(u[$]=_[$])}return u}),Z0=Ge(function(u){return u.push(l,Ff),Mn(os,l,u)});function Hr(u,a){return nd(u,Ce(a,3),vn)}function ls(u,a){return nd(u,Ce(a,3),mr)}function K0(u,a){return u==null?u:Ar(u,Ce(a,3),sn)}function zv(u,a){return u==null?u:Ei(u,Ce(a,3),sn)}function Gr(u,a){return u&&vn(u,Ce(a,3))}function ss(u,a){return u&&mr(u,Ce(a,3))}function X0(u){return u==null?[]:za(u,$t(u))}function Zc(u){return u==null?[]:za(u,sn(u))}function cs(u,a,f){var g=u==null?l:ou(u,a);return g===l?f:g}function ih(u,a){return u!=null&&Vl(u,a,rf)}function qr(u,a){return u!=null&&Vl(u,a,Fd)}var I0=Ul(function(u,a,f){a!=null&&typeof a.toString!="function"&&(a=mn.call(a)),u[a]=f},z(U)),J0=Ul(function(u,a,f){a!=null&&typeof a.toString!="function"&&(a=mn.call(a)),st.call(u,a)?u[a].push(f):u[a]=[f]},Ce),Uv=Ge(Ci);function $t(u){return It(u)?nf(u):rc(u)}function sn(u){return It(u)?nf(u,!0):Md(u)}function Hv(u,a){var f={};return a=Ce(a,3),vn(u,function(g,A,_){yu(f,a(g,A,_),g)}),f}function Gv(u,a){var f={};return a=Ce(a,3),vn(u,function(g,A,_){yu(f,A,a(g,A,_))}),f}var qv=Mi(function(u,a,f){wl(u,a,f)}),os=Mi(function(u,a,f,g){wl(u,a,f,g)}),Kc=wt(function(u,a){var f={};if(u==null)return f;var g=!1;a=Ot(a,function(_){return _=ia(_,u),g||(g=_.length>1),_}),Ln(u,bc(u),f),g&&(f=gn(f,H|Y|te,Qd));for(var A=a.length;A--;)Bl(f,a[A]);return f});function rh(u,a){return Yr(u,as(Ce(a)))}var Yv=wt(function(u,a){return u==null?{}:Od(u,a)});function Yr(u,a){if(u==null)return{};var f=Ot(bc(u),function(g){return[g]});return a=Ce(a),cc(u,f,function(g,A){return a(g,A[0])})}function kv(u,a,f){a=ia(a,u);var g=-1,A=a.length;for(A||(A=1,u=l);++g<A;){var _=u==null?l:u[ft(a[g])];_===l&&(g=A,_=f),u=Eu(_)?_.call(u):_}return u}function $0(u,a,f){return u==null?u:br(u,a,f)}function W0(u,a,f,g){return g=typeof g=="function"?g:l,u==null?u:br(u,a,f,g)}var lh=ql($t),sh=ql(sn);function ch(u,a,f){var g=je(u),A=g||Ja(u)||zr(u);if(a=Ce(a,4),f==null){var _=u&&u.constructor;A?f=g?new _:[]:Nt(u)?f=Eu(_)?Kn(dl(u)):{}:f={}}return(A?uu:vn)(u,function(F,O,j){return a(f,F,O,j)}),f}function P0(u,a){return u==null?!0:Bl(u,a)}function Xc(u,a,f){return u==null?u:mf(u,a,jl(f))}function Vv(u,a,f,g){return g=typeof g=="function"?g:l,u==null?u:mf(u,a,jl(f),g)}function kr(u){return u==null?[]:Ys(u,$t(u))}function oh(u){return u==null?[]:Ys(u,sn(u))}function fh(u,a,f){return f===l&&(f=a,a=l),f!==l&&(f=vu(f),f=f===f?f:0),a!==l&&(a=vu(a),a=a===a?a:0),bu(vu(u),a,f)}function Ic(u,a,f){return a=ku(a),f===l?(f=a,a=0):f=ku(f),u=vu(u),wd(u,a,f)}function hh(u,a,f){if(f&&typeof f!="boolean"&&xn(u,a,f)&&(a=f=l),f===l&&(typeof a=="boolean"?(f=a,a=l):typeof u=="boolean"&&(f=u,u=l)),u===l&&a===l?(u=0,a=1):(u=ku(u),a===l?(a=u,u=0):a=ku(a)),u>a){var g=u;u=a,a=g}if(f||u%1||a%1){var A=$o();return Tt(u+A*(a-u+ol("1e-"+((A+"").length-1))),a)}return fc(u,a)}var eg=_n(function(u,a,f){return a=a.toLowerCase(),u+(f?Jc(a):a)});function Jc(u){return i(ct(u).toLowerCase())}function ga(u){return u=ct(u),u&&u.replace($i,ks).replace($u,"")}function $a(u,a,f){u=ct(u),a=jn(a);var g=u.length;f=f===l?g:bu(ze(f),0,g);var A=f;return f-=a.length,f>=0&&u.slice(f,A)==a}function Wa(u){return u=ct(u),u&&Lh.test(u)?u.replace(Zi,rd):u}function fs(u){return u=ct(u),u&&Fn.test(u)?u.replace(un,"\\$&"):u}var hs=_n(function(u,a,f){return u+(f?"-":"")+a.toLowerCase()}),Pa=_n(function(u,a,f){return u+(f?" ":"")+a.toLowerCase()}),Qv=In("toLowerCase");function tg(u,a,f){u=ct(u),a=ze(a);var g=a?Nu(u):0;if(!a||g>=a)return u;var A=(a-g)/2;return Gl(Pu(A),f)+u+Gl(dr(A),f)}function ds(u,a,f){u=ct(u),a=ze(a);var g=a?Nu(u):0;return a&&g<a?u+Gl(a-g,f):u}function Zv(u,a,f){u=ct(u),a=ze(a);var g=a?Nu(u):0;return a&&g<a?Gl(a-g,f)+u:u}function ng(u,a,f){return f||a==null?a=0:a&&(a=+a),Ai(ct(u).replace(Ea,""),a||0)}function $c(u,a,f){return(f?xn(u,a,f):a===l)?a=1:a=ze(a),pf(ct(u),a)}function ug(){var u=arguments,a=ct(u[0]);return u.length<3?a:a.replace(u[1],u[2])}var Kv=_n(function(u,a,f){return u+(f?"_":"")+a.toLowerCase()});function Wc(u,a,f){return f&&typeof f!="number"&&xn(u,a,f)&&(a=f=l),f=f===l?q:f>>>0,f?(u=ct(u),u&&(typeof a=="string"||a!=null&&!kc(a))&&(a=jn(a),!a&&Ma(u))?Ua(au(u),0,f):u.split(a,f)):[]}var Pc=_n(function(u,a,f){return u+(f?" ":"")+i(a)});function ag(u,a,f){return u=ct(u),f=f==null?0:bu(ze(f),0,u.length),a=jn(a),u.slice(f,f+a.length)==a}function gs(u,a,f){var g=y.templateSettings;f&&xn(u,a,f)&&(a=l),u=ct(u),a=Qc({},a,g,mc);var A=Qc({},a.imports,g.imports,mc),_=$t(A),F=Ys(A,_),O,j,$=0,P=a.interpolate||Cs,ee="__p += '",ge=Zs((a.escape||Cs).source+"|"+P.source+"|"+(P===Es?Xi:Cs).source+"|"+(a.evaluate||Cs).source+"|$","g"),ye="//# sourceURL="+(st.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kh+"]")+`
`;u.replace(ge,function(Ne,Pe,it,Su,eu,Fu){return it||(it=Su),ee+=u.slice($,Fu).replace(Yh,ld),Pe&&(O=!0,ee+=`' +
__e(`+Pe+`) +
'`),eu&&(j=!0,ee+=`';
`+eu+`;
__p += '`),it&&(ee+=`' +
((__t = (`+it+`)) == null ? '' : __t) +
'`),$=Fu+Ne.length,Ne}),ee+=`';
`;var Re=st.call(a,"variable")&&a.variable;if(!Re)ee=`with (obj) {
`+ee+`
}
`;else if(bo.test(Re))throw new Be(E);ee=(j?ee.replace(Yg,""):ee).replace(Nh,"$1").replace(jh,"$1;"),ee="function("+(Re||"obj")+`) {
`+(Re?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+ee+`return __p
}`;var Qe=h(function(){return nt(_,ye+"return "+ee).apply(l,F)});if(Qe.source=ee,Jt(Qe))throw Qe;return Qe}function dh(u){return ct(u).toLowerCase()}function eo(u){return ct(u).toUpperCase()}function ig(u,a,f){if(u=ct(u),u&&(f||a===l))return id(u);if(!u||!(a=jn(a)))return u;var g=au(u),A=au(a),_=lr(g,A),F=sr(g,A)+1;return Ua(g,_,F).join("")}function Xv(u,a,f){if(u=ct(u),u&&(f||a===l))return u.slice(0,Zo(u)+1);if(!u||!(a=jn(a)))return u;var g=au(u),A=sr(g,au(a))+1;return Ua(g,0,A).join("")}function to(u,a,f){if(u=ct(u),u&&(f||a===l))return u.replace(Ea,"");if(!u||!(a=jn(a)))return u;var g=au(u),A=lr(g,au(a));return Ua(g,A).join("")}function e(u,a){var f=He,g=Ue;if(Nt(a)){var A="separator"in a?a.separator:A;f="length"in a?ze(a.length):f,g="omission"in a?jn(a.omission):g}u=ct(u);var _=u.length;if(Ma(u)){var F=au(u);_=F.length}if(f>=_)return u;var O=f-Nu(g);if(O<1)return g;var j=F?Ua(F,0,O).join(""):u.slice(0,O);if(A===l)return j+g;if(F&&(O+=j.length-O),kc(A)){if(u.slice(O).search(A)){var $,P=j;for(A.global||(A=Zs(A.source,ct(Ii.exec(A))+"g")),A.lastIndex=0;$=A.exec(P);)var ee=$.index;j=j.slice(0,ee===l?O:ee)}}else if(u.indexOf(jn(A),O)!=O){var ge=j.lastIndexOf(A);ge>-1&&(j=j.slice(0,ge))}return j+g}function t(u){return u=ct(u),u&&kg.test(u)?u.replace(xs,fd):u}var n=_n(function(u,a,f){return u+(f?" ":"")+a.toUpperCase()}),i=In("toUpperCase");function o(u,a,f){return u=ct(u),a=f?l:a,a===l?sd(u)?rv(u):tv(u):u.match(a)||[]}var h=Ge(function(u,a){try{return Mn(u,l,a)}catch(f){return Jt(f)?f:new Be(f)}}),D=wt(function(u,a){return uu(a,function(f){f=ft(f),yu(u,f,Xa(u[f],u))}),u});function b(u){var a=u==null?0:u.length,f=Ce();return u=a?Ot(u,function(g){if(typeof g[1]!="function")throw new Zn(m);return[f(g[0]),g[1]]}):[],Ge(function(g){for(var A=-1;++A<a;){var _=u[A];if(Mn(_[0],this,g))return Mn(_[1],this,g)}})}function w(u){return Cd(gn(u,H))}function z(u){return function(){return u}}function I(u,a){return u==null||u!==u?a:u}var W=zu(),G=zu(!0);function U(u){return u}function Me(u){return ff(typeof u=="function"?u:gn(u,H))}function Fe(u){return df(gn(u,H))}function yt(u,a){return sc(u,gn(a,H))}var N=Ge(function(u,a){return function(f){return Ci(f,u,a)}}),T=Ge(function(u,a){return function(f){return Ci(u,f,a)}});function L(u,a,f){var g=$t(a),A=za(a,g);f==null&&!(Nt(a)&&(A.length||!g.length))&&(f=a,a=u,u=this,A=za(a,$t(a)));var _=!(Nt(f)&&"chain"in f)||!!f.chain,F=Eu(u);return uu(A,function(O){var j=a[O];u[O]=j,F&&(u.prototype[O]=function(){var $=this.__chain__;if(_||$){var P=u(this.__wrapped__),ee=P.__actions__=Kt(this.__actions__);return ee.push({func:j,args:arguments,thisArg:u}),P.__chain__=$,P}return j.apply(u,Wu([this.value()],arguments))})}),u}function J(){return Yt._===this&&(Yt._=fr),this}function Ae(){}function Ve(u){return u=ze(u),Ge(function(a){return gf(a,u)})}var xe=Hl(Ot),Oe=Hl(td),cn=Hl(Yo);function at(u){return Cc(u)?Hs(ft(u)):Td(u)}function ei(u){return function(a){return u==null?l:ou(u,a)}}var Iv=Ha(),dA=Ha(!0);function Jv(){return[]}function $v(){return!1}function gA(){return{}}function vA(){return""}function DA(){return!0}function pA(u,a){if(u=ze(u),u<1||u>Q)return[];var f=q,g=Tt(u,q);a=Ce(a),u-=q;for(var A=wa(g,a);++f<u;)a(f);return A}function AA(u){return je(u)?Ot(u,ft):En(u)?[u]:Kt(Gu(ct(u)))}function mA(u){var a=++pu;return ct(u)+a}var yA=_r(function(u,a){return u+a},0),bA=Ac("ceil"),_A=_r(function(u,a){return u/a},1),xA=Ac("floor");function EA(u){return u&&u.length?_u(u,U,Cl):l}function CA(u,a){return u&&u.length?_u(u,Ce(a,2),Cl):l}function SA(u){return ud(u,U)}function FA(u,a){return ud(u,Ce(a,2))}function wA(u){return u&&u.length?_u(u,U,lc):l}function MA(u,a){return u&&u.length?_u(u,Ce(a,2),lc):l}var OA=_r(function(u,a){return u*a},1),TA=Ac("round"),BA=_r(function(u,a){return u-a},0);function RA(u){return u&&u.length?qs(u,U):0}function NA(u,a){return u&&u.length?qs(u,Ce(a,2)):0}return y.after=bv,y.ary=M0,y.assign=Bv,y.assignIn=Q0,y.assignInWith=Qc,y.assignWith=Rv,y.at=Nv,y.before=es,y.bind=Xa,y.bindAll=D,y.bindKey=Lc,y.castArray=Cv,y.chain=Nr,y.chunk=gv,y.compact=n0,y.concat=u0,y.cond=b,y.conforms=w,y.constant=z,y.countBy=jr,y.create=jv,y.curry=ts,y.curryRight=zc,y.debounce=Ia,y.defaults=Lv,y.defaultsDeep=Z0,y.defer=Yu,y.delay=ns,y.difference=Rt,y.differenceBy=zn,y.differenceWith=oa,y.drop=a0,y.dropRight=i0,y.dropRightWhile=vv,y.dropWhile=Rf,y.fill=Jn,y.filter=p0,y.flatMap=Kf,y.flatMapDeep=Av,y.flatMapDepth=mv,y.flatten=Un,y.flattenDeep=r0,y.flattenDepth=Ya,y.flip=_v,y.flow=W,y.flowRight=G,y.fromPairs=Ri,y.functions=X0,y.functionsIn=Zc,y.groupBy=y0,y.initial=Lf,y.intersection=qu,y.intersectionBy=l0,y.intersectionWith=Sr,y.invert=I0,y.invertBy=J0,y.invokeMap=Rc,y.iteratee=Me,y.keyBy=b0,y.keys=$t,y.keysIn=sn,y.map=Pl,y.mapKeys=Hv,y.mapValues=Gv,y.matches=Fe,y.matchesProperty=yt,y.memoize=us,y.merge=qv,y.mergeWith=os,y.method=N,y.methodOf=T,y.mixin=L,y.negate=as,y.nthArg=Ve,y.omit=Kc,y.omitBy=rh,y.once=O0,y.orderBy=_0,y.over=xe,y.overArgs=T0,y.overEvery=Oe,y.overSome=cn,y.partial=Jf,y.partialRight=Uc,y.partition=x0,y.pick=Yv,y.pickBy=Yr,y.property=at,y.propertyOf=ei,y.pull=c0,y.pullAll=wr,y.pullAllBy=o0,y.pullAllWith=Tc,y.pullAt=f0,y.range=Iv,y.rangeRight=dA,y.rearg=B0,y.reject=Nc,y.remove=Dv,y.rest=R0,y.reverse=zf,y.sampleSize=F0,y.set=$0,y.setWith=W0,y.shuffle=Et,y.slice=vt,y.sortBy=w0,y.sortedUniq=Mr,y.sortedUniqBy=Uf,y.split=Wc,y.spread=xv,y.tail=ha,y.take=Gt,y.takeRight=Va,y.takeRightWhile=Ni,y.takeWhile=Hf,y.tap=Vf,y.throttle=$f,y.thru=pn,y.toArray=Pn,y.toPairs=lh,y.toPairsIn=sh,y.toPath=AA,y.toPlainObject=V0,y.transform=ch,y.unary=Wf,y.union=du,y.unionBy=Or,y.unionWith=$l,y.uniq=Hn,y.uniqBy=Gf,y.uniqWith=qf,y.unset=P0,y.unzip=Tr,y.unzipWith=Wl,y.update=Xc,y.updateWith=Vv,y.values=kr,y.valuesIn=oh,y.without=Qa,y.words=o,y.wrap=Ev,y.xor=fn,y.xorBy=Za,y.xorWith=Br,y.zip=Rr,y.zipObject=Yf,y.zipObjectDeep=kf,y.zipWith=h0,y.entries=lh,y.entriesIn=sh,y.extend=Q0,y.extendWith=Qc,L(y,y),y.add=yA,y.attempt=h,y.camelCase=eg,y.capitalize=Jc,y.ceil=bA,y.clamp=fh,y.clone=is,y.cloneDeep=N0,y.cloneDeepWith=Xe,y.cloneWith=Sv,y.conformsTo=Pf,y.deburr=ga,y.defaultTo=I,y.divide=_A,y.endsWith=$a,y.eq=Gn,y.escape=Wa,y.escapeRegExp=fs,y.every=D0,y.find=A0,y.findIndex=hu,y.findKey=Hr,y.findLast=Zf,y.findLastIndex=Nf,y.findLastKey=ls,y.floor=xA,y.forEach=m0,y.forEachRight=Xf,y.forIn=K0,y.forInRight=zv,y.forOwn=Gr,y.forOwnRight=ss,y.get=cs,y.gt=eh,y.gte=j0,y.has=ih,y.hasIn=qr,y.head=fa,y.identity=U,y.includes=Lr,y.indexOf=jf,y.inRange=Ic,y.invoke=Uv,y.isArguments=da,y.isArray=je,y.isArrayBuffer=Hc,y.isArrayLike=It,y.isArrayLikeObject=qt,y.isBoolean=Fv,y.isBuffer=Ja,y.isDate=L0,y.isElement=z0,y.isEmpty=Gc,y.isEqual=mt,y.isEqualWith=th,y.isError=Jt,y.isFinite=wv,y.isFunction=Eu,y.isInteger=qc,y.isLength=ji,y.isMap=Yc,y.isMatch=nh,y.isMatchWith=Mv,y.isNaN=U0,y.isNative=Ov,y.isNil=Tv,y.isNull=H0,y.isNumber=G0,y.isObject=Nt,y.isObjectLike=Lt,y.isPlainObject=gu,y.isRegExp=kc,y.isSafeInteger=uh,y.isSet=q0,y.isString=Vc,y.isSymbol=En,y.isTypedArray=zr,y.isUndefined=Cu,y.isWeakMap=ah,y.isWeakSet=Y0,y.join=Jl,y.kebabCase=hs,y.last=Dn,y.lastIndexOf=Fr,y.lowerCase=Pa,y.lowerFirst=Qv,y.lt=k0,y.lte=rs,y.max=EA,y.maxBy=CA,y.mean=SA,y.meanBy=FA,y.min=wA,y.minBy=MA,y.stubArray=Jv,y.stubFalse=$v,y.stubObject=gA,y.stubString=vA,y.stubTrue=DA,y.multiply=OA,y.nth=s0,y.noConflict=J,y.noop=Ae,y.now=jc,y.pad=tg,y.padEnd=ds,y.padStart=Zv,y.parseInt=ng,y.random=hh,y.reduce=E0,y.reduceRight=C0,y.repeat=$c,y.replace=ug,y.result=kv,y.round=TA,y.runInContext=R,y.sample=S0,y.size=If,y.snakeCase=Kv,y.some=yv,y.sortedIndex=Ct,y.sortedIndexBy=Ke,y.sortedIndexOf=et,y.sortedLastIndex=Dt,y.sortedLastIndexBy=$n,y.sortedLastIndexOf=ka,y.startCase=Pc,y.startsWith=ag,y.subtract=BA,y.sum=RA,y.sumBy=NA,y.template=gs,y.times=pA,y.toFinite=ku,y.toInteger=ze,y.toLength=Vu,y.toLower=dh,y.toNumber=vu,y.toSafeInteger=Ur,y.toString=ct,y.toUpper=eo,y.trim=ig,y.trimEnd=Xv,y.trimStart=to,y.truncate=e,y.unescape=t,y.uniqueId=mA,y.upperCase=n,y.upperFirst=i,y.each=m0,y.eachRight=Xf,y.first=fa,L(y,(function(){var u={};return vn(y,function(a,f){st.call(y.prototype,f)||(u[f]=a)}),u})(),{chain:!1}),y.VERSION=c,uu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){y[u].placeholder=y}),uu(["drop","take"],function(u,a){ke.prototype[u]=function(f){f=f===l?1:Ft(ze(f),0);var g=this.__filtered__&&!a?new ke(this):this.clone();return g.__filtered__?g.__takeCount__=Tt(f,g.__takeCount__):g.__views__.push({size:Tt(f,q),type:u+(g.__dir__<0?"Right":"")}),g},ke.prototype[u+"Right"]=function(f){return this.reverse()[u](f).reverse()}}),uu(["filter","map","takeWhile"],function(u,a){var f=a+1,g=f==_e||f==B;ke.prototype[u]=function(A){var _=this.clone();return _.__iteratees__.push({iteratee:Ce(A,3),type:f}),_.__filtered__=_.__filtered__||g,_}}),uu(["head","last"],function(u,a){var f="take"+(a?"Right":"");ke.prototype[u]=function(){return this[f](1).value()[0]}}),uu(["initial","tail"],function(u,a){var f="drop"+(a?"":"Right");ke.prototype[u]=function(){return this.__filtered__?new ke(this):this[f](1)}}),ke.prototype.compact=function(){return this.filter(U)},ke.prototype.find=function(u){return this.filter(u).head()},ke.prototype.findLast=function(u){return this.reverse().find(u)},ke.prototype.invokeMap=Ge(function(u,a){return typeof u=="function"?new ke(this):this.map(function(f){return Ci(f,u,a)})}),ke.prototype.reject=function(u){return this.filter(as(Ce(u)))},ke.prototype.slice=function(u,a){u=ze(u);var f=this;return f.__filtered__&&(u>0||a<0)?new ke(f):(u<0?f=f.takeRight(-u):u&&(f=f.drop(u)),a!==l&&(a=ze(a),f=a<0?f.dropRight(-a):f.take(a-u)),f)},ke.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},ke.prototype.toArray=function(){return this.take(q)},vn(ke.prototype,function(u,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),g=/^(?:head|last)$/.test(a),A=y[g?"take"+(a=="last"?"Right":""):a],_=g||/^find/.test(a);A&&(y.prototype[a]=function(){var F=this.__wrapped__,O=g?[1]:arguments,j=F instanceof ke,$=O[0],P=j||je(F),ee=function(Pe){var it=A.apply(y,Wu([Pe],O));return g&&ge?it[0]:it};P&&f&&typeof $=="function"&&$.length!=1&&(j=P=!1);var ge=this.__chain__,ye=!!this.__actions__.length,Re=_&&!ge,Qe=j&&!ye;if(!_&&P){F=Qe?F:new ke(this);var Ne=u.apply(F,O);return Ne.__actions__.push({func:pn,args:[ee],thisArg:l}),new Bn(Ne,ge)}return Re&&Qe?u.apply(this,O):(Ne=this.thru(ee),Re?g?Ne.value()[0]:Ne.value():Ne)})}),uu(["pop","push","shift","sort","splice","unshift"],function(u){var a=Ks[u],f=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",g=/^(?:pop|shift)$/.test(u);y.prototype[u]=function(){var A=arguments;if(g&&!this.__chain__){var _=this.value();return a.apply(je(_)?_:[],A)}return this[f](function(F){return a.apply(je(F)?F:[],A)})}}),vn(ke.prototype,function(u,a){var f=y[a];if(f){var g=f.name+"";st.call(su,g)||(su[g]=[]),su[g].push({name:a,func:f})}}),su[Ht(l,Te).name]=[{name:"wrapper",func:l}],ke.prototype.clone=yl,ke.prototype.reverse=$s,ke.prototype.value=yi,y.prototype.at=d0,y.prototype.chain=Wn,y.prototype.commit=g0,y.prototype.next=v0,y.prototype.plant=Ka,y.prototype.reverse=Bc,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Qf,y.prototype.first=y.prototype.head,Di&&(y.prototype[Di]=pv),y}),Ta=cr();Fa?((Fa.exports=Ta)._=Ta,ur._=Ta):Yt._=Ta}).call(VA)})(Dh,Dh.exports)),Dh.exports}var hD=QA();const ZA=FD(hD);function lt(r){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];throw new Error(typeof r=="number"?"[MobX] minified error nr: "+r+(l.length?" "+l.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+r)}var KA={};function Bg(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:KA}var Ip=Object.assign,pg=Object.getOwnPropertyDescriptor,ai=Object.defineProperty,Eh=Object.prototype,dD=[];Object.freeze(dD);var Jp={};Object.freeze(Jp);var XA=typeof Proxy<"u",IA=Object.toString();function $p(){XA||lt("Proxy not available")}function Wp(r){var s=!1;return function(){if(!s)return s=!0,r.apply(this,arguments)}}var ao=function(){};function ma(r){return typeof r=="function"}function Ds(r){var s=typeof r;switch(s){case"string":case"symbol":case"number":return!0}return!1}function Rg(r){return r!==null&&typeof r=="object"}function qi(r){if(!Rg(r))return!1;var s=Object.getPrototypeOf(r);if(s==null)return!0;var l=Object.hasOwnProperty.call(s,"constructor")&&s.constructor;return typeof l=="function"&&l.toString()===IA}function Pp(r){var s=r?.constructor;return s?s.name==="GeneratorFunction"||s.displayName==="GeneratorFunction":!1}function Ch(r,s,l){ai(r,s,{enumerable:!1,writable:!0,configurable:!0,value:l})}function e1(r,s,l){ai(r,s,{enumerable:!1,writable:!1,configurable:!0,value:l})}function Kr(r,s){var l="isMobX"+r;return s.prototype[l]=!0,function(c){return Rg(c)&&c[l]===!0}}function ho(r){return r!=null&&Object.prototype.toString.call(r)==="[object Map]"}function JA(r){var s=Object.getPrototypeOf(r),l=Object.getPrototypeOf(s),c=Object.getPrototypeOf(l);return c===null}function zi(r){return r!=null&&Object.prototype.toString.call(r)==="[object Set]"}var t1=typeof Object.getOwnPropertySymbols<"u";function $A(r){var s=Object.keys(r);if(!t1)return s;var l=Object.getOwnPropertySymbols(r);return l.length?[].concat(s,l.filter(function(c){return Eh.propertyIsEnumerable.call(r,c)})):s}var co=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:t1?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames;function n1(r){return r===null?null:typeof r=="object"?""+r:r}function Hi(r,s){return Eh.hasOwnProperty.call(r,s)}var WA=Object.getOwnPropertyDescriptors||function(s){var l={};return co(s).forEach(function(c){l[c]=pg(s,c)}),l};function wu(r,s){return!!(r&s)}function Mu(r,s,l){return l?r|=s:r&=~s,r}function up(r,s){(s==null||s>r.length)&&(s=r.length);for(var l=0,c=Array(s);l<s;l++)c[l]=r[l];return c}function PA(r,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,tm(c.key),c)}}function go(r,s,l){return s&&PA(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r}function io(r,s){var l=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(l)return(l=l.call(r)).next.bind(l);if(Array.isArray(r)||(l=nm(r))||s){l&&(r=l);var c=0;return function(){return c>=r.length?{done:!0}:{done:!1,value:r[c++]}}}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 ps(){return ps=Object.assign?Object.assign.bind():function(r){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var c in l)({}).hasOwnProperty.call(l,c)&&(r[c]=l[c])}return r},ps.apply(null,arguments)}function u1(r,s){r.prototype=Object.create(s.prototype),r.prototype.constructor=r,gD(r,s)}function gD(r,s){return gD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},gD(r,s)}function em(r,s){if(typeof r!="object"||!r)return r;var l=r[Symbol.toPrimitive];if(l!==void 0){var c=l.call(r,s);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function tm(r){var s=em(r,"string");return typeof s=="symbol"?s:s+""}function nm(r,s){if(r){if(typeof r=="string")return up(r,s);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?up(r,s):void 0}}var ni=Symbol("mobx-stored-annotations");function ii(r){function s(l,c){if(Fh(c))return r.decorate_20223_(l,c);Sh(l,c,r)}return Object.assign(s,r)}function Sh(r,s,l){Hi(r,ni)||Ch(r,ni,ps({},r[ni])),cm(l)||(r[ni][s]=l)}function um(r){return Hi(r,ni)||Ch(r,ni,ps({},r[ni])),r[ni]}function Fh(r){return typeof r=="object"&&typeof r.kind=="string"}var Le=Symbol("mobx administration"),Xr=(function(){function r(l){l===void 0&&(l="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ht.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=l}var s=r.prototype;return s.onBO=function(){this.onBOL&&this.onBOL.forEach(function(c){return c()})},s.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(c){return c()})},s.reportObserved=function(){return y1(this)},s.reportChanged=function(){Ku(),b1(this),Xu()},s.toString=function(){return this.name_},go(r,[{key:"isBeingObserved",get:function(){return wu(this.flags_,r.isBeingObservedMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isBeingObservedMask_,c)}},{key:"isPendingUnobservation",get:function(){return wu(this.flags_,r.isPendingUnobservationMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isPendingUnobservationMask_,c)}},{key:"diffValue",get:function(){return wu(this.flags_,r.diffValueMask_)?1:0},set:function(c){this.flags_=Mu(this.flags_,r.diffValueMask_,c===1)}}])})();Xr.isBeingObservedMask_=1;Xr.isPendingUnobservationMask_=2;Xr.diffValueMask_=4;var wD=Kr("Atom",Xr);function a1(r,s,l){s===void 0&&(s=ao),l===void 0&&(l=ao);var c=new Xr(r);return s!==ao&&d2(c,s),l!==ao&&F1(c,l),c}function am(r,s){return G1(r,s)}function im(r,s){return Object.is?Object.is(r,s):r===s?r!==0||1/r===1/s:r!==r&&s!==s}var Ag={structural:am,default:im};function As(r,s,l){return TD(r)?r:Array.isArray(r)?hn.array(r,{name:l}):qi(r)?hn.object(r,void 0,{name:l}):ho(r)?hn.map(r,{name:l}):zi(r)?hn.set(r,{name:l}):typeof r=="function"&&!oo(r)&&!yh(r)?Pp(r)?fo(r):mh(l,r):r}function rm(r,s,l){if(r==null||Rh(r)||Bh(r)||Ir(r)||Da(r))return r;if(Array.isArray(r))return hn.array(r,{name:l,deep:!1});if(qi(r))return hn.object(r,void 0,{name:l,deep:!1});if(ho(r))return hn.map(r,{name:l,deep:!1});if(zi(r))return hn.set(r,{name:l,deep:!1})}function Ng(r){return r}function lm(r,s){return G1(r,s)?s:r}var sm="override";function cm(r){return r.annotationType_===sm}function wh(r,s){return{annotationType_:r,options_:s,make_:om,extend_:fm,decorate_20223_:hm}}function om(r,s,l,c){var d;if((d=this.options_)!=null&&d.bound)return this.extend_(r,s,l,!1)===null?0:1;if(c===r.target_)return this.extend_(r,s,l,!1)===null?0:2;if(oo(l.value))return 1;var v=i1(r,this,s,l,!1);return ai(c,s,v),2}function fm(r,s,l,c){var d=i1(r,this,s,l);return r.defineProperty_(s,d,c)}function hm(r,s){var l=s.kind,c=s.name,d=s.addInitializer,v=this,m=function(C){var M,H,Y,te;return ms((M=(H=v.options_)==null?void 0:H.name)!=null?M:c.toString(),C,(Y=(te=v.options_)==null?void 0:te.autoAction)!=null?Y:!1)};if(l=="field")return function(x){var C,M=x;return oo(M)||(M=m(M)),(C=v.options_)!=null&&C.bound&&(M=M.bind(this),M.isMobxAction=!0),M};if(l=="method"){var E;return oo(r)||(r=m(r)),(E=this.options_)!=null&&E.bound&&d(function(){var x=this,C=x[c].bind(x);C.isMobxAction=!0,x[c]=C}),r}lt("Cannot apply '"+v.annotationType_+"' to '"+String(c)+"' (kind: "+l+"):"+(`
'`+v.annotationType_+"' can only be used on properties with a function value."))}function dm(r,s,l,c){s.annotationType_,c.value}function i1(r,s,l,c,d){var v,m,E,x,C,M,H;d===void 0&&(d=fe.safeDescriptors),dm(r,s,l,c);var Y=c.value;if((v=s.options_)!=null&&v.bound){var te;Y=Y.bind((te=r.proxy_)!=null?te:r.target_)}return{value:ms((m=(E=s.options_)==null?void 0:E.name)!=null?m:l.toString(),Y,(x=(C=s.options_)==null?void 0:C.autoAction)!=null?x:!1,(M=s.options_)!=null&&M.bound?(H=r.proxy_)!=null?H:r.target_:void 0),configurable:d?r.isPlainObject_:!0,enumerable:!1,writable:!d}}function r1(r,s){return{annotationType_:r,options_:s,make_:gm,extend_:vm,decorate_20223_:Dm}}function gm(r,s,l,c){var d;if(c===r.target_)return this.extend_(r,s,l,!1)===null?0:2;if((d=this.options_)!=null&&d.bound&&(!Hi(r.target_,s)||!yh(r.target_[s]))&&this.extend_(r,s,l,!1)===null)return 0;if(yh(l.value))return 1;var v=l1(r,this,s,l,!1,!1);return ai(c,s,v),2}function vm(r,s,l,c){var d,v=l1(r,this,s,l,(d=this.options_)==null?void 0:d.bound);return r.defineProperty_(s,v,c)}function Dm(r,s){var l,c=s.name,d=s.addInitializer;return yh(r)||(r=fo(r)),(l=this.options_)!=null&&l.bound&&d(function(){var v=this,m=v[c].bind(v);m.isMobXFlow=!0,v[c]=m}),r}function pm(r,s,l,c){s.annotationType_,c.value}function l1(r,s,l,c,d,v){v===void 0&&(v=fe.safeDescriptors),pm(r,s,l,c);var m=c.value;if(yh(m)||(m=fo(m)),d){var E;m=m.bind((E=r.proxy_)!=null?E:r.target_),m.isMobXFlow=!0}return{value:m,configurable:v?r.isPlainObject_:!0,enumerable:!1,writable:!v}}function MD(r,s){return{annotationType_:r,options_:s,make_:Am,extend_:mm,decorate_20223_:ym}}function Am(r,s,l){return this.extend_(r,s,l,!1)===null?0:1}function mm(r,s,l,c){return bm(r,this,s,l),r.defineComputedProperty_(s,ps({},this.options_,{get:l.get,set:l.set}),c)}function ym(r,s){var l=this,c=s.name,d=s.addInitializer;return d(function(){var v=bs(this)[Le],m=ps({},l.options_,{get:r,context:this});m.name||(m.name="ObservableObject."+c.toString()),v.values_.set(c,new ya(m))}),function(){return this[Le].getObservablePropValue_(c)}}function bm(r,s,l,c){s.annotationType_,c.get}function jg(r,s){return{annotationType_:r,options_:s,make_:_m,extend_:xm,decorate_20223_:Em}}function _m(r,s,l){return this.extend_(r,s,l,!1)===null?0:1}function xm(r,s,l,c){var d,v;return Cm(r,this),r.defineObservableProperty_(s,l.value,(d=(v=this.options_)==null?void 0:v.enhancer)!=null?d:As,c)}function Em(r,s){var l=this,c=s.kind,d=s.name,v=new WeakSet;function m(E,x){var C,M,H=bs(E)[Le],Y=new Zr(x,(C=(M=l.options_)==null?void 0:M.enhancer)!=null?C:As,"ObservableObject."+d.toString(),!1);H.values_.set(d,Y),v.add(E)}if(c=="accessor")return{get:function(){return v.has(this)||m(this,r.get.call(this)),this[Le].getObservablePropValue_(d)},set:function(x){return v.has(this)||m(this,x),this[Le].setObservablePropValue_(d,x)},init:function(x){return v.has(this)||m(this,x),x}}}function Cm(r,s,l,c){s.annotationType_}var Sm="true",Fm=s1();function s1(r){return{annotationType_:Sm,options_:r,make_:wm,extend_:Mm,decorate_20223_:Om}}function wm(r,s,l,c){var d,v;if(l.get)return Lg.make_(r,s,l,c);if(l.set){var m=oo(l.set)?l.set:ms(s.toString(),l.set);return c===r.target_?r.defineProperty_(s,{configurable:fe.safeDescriptors?r.isPlainObject_:!0,set:m})===null?0:2:(ai(c,s,{configurable:!0,set:m}),2)}if(c!==r.target_&&typeof l.value=="function"){var E;if(Pp(l.value)){var x,C=(x=this.options_)!=null&&x.autoBind?fo.bound:fo;return C.make_(r,s,l,c)}var M=(E=this.options_)!=null&&E.autoBind?mh.bound:mh;return M.make_(r,s,l,c)}var H=((d=this.options_)==null?void 0:d.deep)===!1?hn.ref:hn;if(typeof l.value=="function"&&(v=this.options_)!=null&&v.autoBind){var Y;l.value=l.value.bind((Y=r.proxy_)!=null?Y:r.target_)}return H.make_(r,s,l,c)}function Mm(r,s,l,c){var d,v;if(l.get)return Lg.extend_(r,s,l,c);if(l.set)return r.defineProperty_(s,{configurable:fe.safeDescriptors?r.isPlainObject_:!0,set:ms(s.toString(),l.set)},c);if(typeof l.value=="function"&&(d=this.options_)!=null&&d.autoBind){var m;l.value=l.value.bind((m=r.proxy_)!=null?m:r.target_)}var E=((v=this.options_)==null?void 0:v.deep)===!1?hn.ref:hn;return E.extend_(r,s,l,c)}function Om(r,s){lt("'"+this.annotationType_+"' cannot be used as a decorator")}var Tm="observable",Bm="observable.ref",Rm="observable.shallow",Nm="observable.struct",c1={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(c1);function lg(r){return r||c1}var vD=jg(Tm),jm=jg(Bm,{enhancer:Ng}),Lm=jg(Rm,{enhancer:rm}),zm=jg(Nm,{enhancer:lm}),o1=ii(vD);function sg(r){return r.deep===!0?As:r.deep===!1?Ng:Hm(r.defaultDecorator)}function Um(r){var s;return r?(s=r.defaultDecorator)!=null?s:s1(r):void 0}function Hm(r){var s,l;return r&&(s=(l=r.options_)==null?void 0:l.enhancer)!=null?s:As}function f1(r,s,l){if(Fh(s))return vD.decorate_20223_(r,s);if(Ds(s)){Sh(r,s,vD);return}return TD(r)?r:qi(r)?hn.object(r,s,l):Array.isArray(r)?hn.array(r,s):ho(r)?hn.map(r,s):zi(r)?hn.set(r,s):typeof r=="object"&&r!==null?r:hn.box(r,s)}Ip(f1,o1);var Gm={box:function(s,l){var c=lg(l);return new Zr(s,sg(c),c.name,!0,c.equals)},array:function(s,l){var c=lg(l);return(fe.useProxies===!1||c.proxy===!1?H2:M2)(s,sg(c),c.name)},map:function(s,l){var c=lg(l);return new N1(s,sg(c),c.name)},set:function(s,l){var c=lg(l);return new j1(s,sg(c),c.name)},object:function(s,l,c){return Jr(function(){return M1(fe.useProxies===!1||c?.proxy===!1?bs({},c):C2({},c),s,l)})},ref:ii(jm),shallow:ii(Lm),deep:o1,struct:ii(zm)},hn=Ip(f1,Gm),h1="computed",qm="computed.struct",DD=MD(h1),Ym=MD(qm,{equals:Ag.structural}),Lg=function(s,l){if(Fh(l))return DD.decorate_20223_(s,l);if(Ds(l))return Sh(s,l,DD);if(qi(s))return ii(MD(h1,s));var c=qi(l)?l:{};return c.get=s,c.name||(c.name=s.name||""),new ya(c)};Object.assign(Lg,DD);Lg.struct=ii(Ym);var ap,ip,mg=0,km=1,Vm=(ap=(ip=pg(function(){},"name"))==null?void 0:ip.configurable)!=null?ap:!1,rp={value:"action",configurable:!0,writable:!1,enumerable:!1};function ms(r,s,l,c){l===void 0&&(l=!1);function d(){return d1(r,l,s,c||this,arguments)}return d.isMobxAction=!0,d.toString=function(){return s.toString()},Vm&&(rp.value=r,ai(d,"name",rp)),d}function d1(r,s,l,c,d){var v=Qm(r,s);try{return l.apply(c,d)}catch(m){throw v.error_=m,m}finally{Zm(v)}}function Qm(r,s,l,c){var d=!1,v=0,m=fe.trackingDerivation,E=!s||!m;Ku();var x=fe.allowStateChanges;E&&(ys(),x=zg(!0));var C=OD(!0),M={runAsAction_:E,prevDerivation_:m,prevAllowStateChanges_:x,prevAllowStateReads_:C,notifySpy_:d,startTime_:v,actionId_:km++,parentActionId_:mg};return mg=M.actionId_,M}function Zm(r){mg!==r.actionId_&&lt(30),mg=r.parentActionId_,r.error_!==void 0&&(fe.suppressReactionErrors=!0),Ug(r.prevAllowStateChanges_),ph(r.prevAllowStateReads_),Xu(),r.runAsAction_&&Gi(r.prevDerivation_),fe.suppressReactionErrors=!1}function Km(r,s){var l=zg(r);try{return s()}finally{Ug(l)}}function zg(r){var s=fe.allowStateChanges;return fe.allowStateChanges=r,s}function Ug(r){fe.allowStateChanges=r}var Zr=(function(r){function s(c,d,v,m,E){var x;return v===void 0&&(v="ObservableValue"),E===void 0&&(E=Ag.default),x=r.call(this,v)||this,x.enhancer=void 0,x.name_=void 0,x.equals=void 0,x.hasUnreportedChange_=!1,x.interceptors_=void 0,x.changeListeners_=void 0,x.value_=void 0,x.dehancer=void 0,x.enhancer=d,x.name_=v,x.equals=E,x.value_=d(c,void 0,v),x}u1(s,r);var l=s.prototype;return l.dehanceValue=function(d){return this.dehancer!==void 0?this.dehancer(d):d},l.set=function(d){this.value_,d=this.prepareNewValue_(d),d!==fe.UNCHANGED&&this.setNewValue_(d)},l.prepareNewValue_=function(d){if(Qu(this)){var v=Zu(this,{object:this,type:ri,newValue:d});if(!v)return fe.UNCHANGED;d=v.newValue}return d=this.enhancer(d,this.value_,this.name_),this.equals(this.value_,d)?fe.UNCHANGED:d},l.setNewValue_=function(d){var v=this.value_;this.value_=d,this.reportChanged(),pa(this)&&Aa(this,{type:ri,object:this,newValue:d,oldValue:v})},l.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},l.intercept_=function(d){return Oh(this,d)},l.observe_=function(d,v){return v&&d({observableKind:"value",debugObjectName:this.name_,object:this,type:ri,newValue:this.value_,oldValue:void 0}),Th(this,d)},l.raw=function(){return this.value_},l.toJSON=function(){return this.get()},l.toString=function(){return this.name_+"["+this.value_+"]"},l.valueOf=function(){return n1(this.get())},l[Symbol.toPrimitive]=function(){return this.valueOf()},s})(Xr),Xm=Kr("ObservableValue",Zr),ya=(function(){function r(l){this.dependenciesState_=ht.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ht.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new bg(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=yg.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,l.get||lt(31),this.derivation=l.get,this.name_=l.name||"ComputedValue",l.set&&(this.setter_=ms("ComputedValue-setter",l.set)),this.equals_=l.equals||(l.compareStructural||l.struct?Ag.structural:Ag.default),this.scope_=l.context,this.requiresReaction_=l.requiresReaction,this.keepAlive_=!!l.keepAlive}var s=r.prototype;return s.onBecomeStale_=function(){Pm(this)},s.onBO=function(){this.onBOL&&this.onBOL.forEach(function(c){return c()})},s.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(c){return c()})},s.get=function(){if(this.isComputing&&lt(32,this.name_,this.derivation),fe.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)pD(this)&&(this.warnAboutUntrackedRead_(),Ku(),this.value_=this.computeValue_(!1),Xu());else if(y1(this),pD(this)){var c=fe.trackingContext;this.keepAlive_&&!c&&(fe.trackingContext=this),this.trackAndCompute()&&Wm(this),fe.trackingContext=c}var d=this.value_;if(hg(d))throw d.cause;return d},s.set=function(c){if(this.setter_){this.isRunningSetter&&lt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,c)}finally{this.isRunningSetter=!1}}else lt(34,this.name_)},s.trackAndCompute=function(){var c=this.value_,d=this.dependenciesState_===ht.NOT_TRACKING_,v=this.computeValue_(!0),m=d||hg(c)||hg(v)||!this.equals_(c,v);return m&&(this.value_=v),m},s.computeValue_=function(c){this.isComputing=!0;var d=zg(!1),v;if(c)v=g1(this,this.derivation,this.scope_);else if(fe.disableErrorBoundaries===!0)v=this.derivation.call(this.scope_);else try{v=this.derivation.call(this.scope_)}catch(m){v=new bg(m)}return Ug(d),this.isComputing=!1,v},s.suspend_=function(){this.keepAlive_||(AD(this),this.value_=void 0)},s.observe_=function(c,d){var v=this,m=!0,E=void 0;return s2(function(){var x=v.get();if(!m||d){var C=ys();c({observableKind:"computed",debugObjectName:v.name_,type:ri,object:v,newValue:x,oldValue:E}),Gi(C)}m=!1,E=x})},s.warnAboutUntrackedRead_=function(){},s.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},s.valueOf=function(){return n1(this.get())},s[Symbol.toPrimitive]=function(){return this.valueOf()},go(r,[{key:"isComputing",get:function(){return wu(this.flags_,r.isComputingMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isComputingMask_,c)}},{key:"isRunningSetter",get:function(){return wu(this.flags_,r.isRunningSetterMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isRunningSetterMask_,c)}},{key:"isBeingObserved",get:function(){return wu(this.flags_,r.isBeingObservedMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isBeingObservedMask_,c)}},{key:"isPendingUnobservation",get:function(){return wu(this.flags_,r.isPendingUnobservationMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isPendingUnobservationMask_,c)}},{key:"diffValue",get:function(){return wu(this.flags_,r.diffValueMask_)?1:0},set:function(c){this.flags_=Mu(this.flags_,r.diffValueMask_,c===1)}}])})();ya.isComputingMask_=1;ya.isRunningSetterMask_=2;ya.isBeingObservedMask_=4;ya.isPendingUnobservationMask_=8;ya.diffValueMask_=16;var Mh=Kr("ComputedValue",ya),ht;(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_"})(ht||(ht={}));var yg;(function(r){r[r.NONE=0]="NONE",r[r.LOG=1]="LOG",r[r.BREAK=2]="BREAK"})(yg||(yg={}));var bg=function(s){this.cause=void 0,this.cause=s};function hg(r){return r instanceof bg}function pD(r){switch(r.dependenciesState_){case ht.UP_TO_DATE_:return!1;case ht.NOT_TRACKING_:case ht.STALE_:return!0;case ht.POSSIBLY_STALE_:{for(var s=OD(!0),l=ys(),c=r.observing_,d=c.length,v=0;v<d;v++){var m=c[v];if(Mh(m)){if(fe.disableErrorBoundaries)m.get();else try{m.get()}catch{return Gi(l),ph(s),!0}if(r.dependenciesState_===ht.STALE_)return Gi(l),ph(s),!0}}return D1(r),Gi(l),ph(s),!1}}}function g1(r,s,l){var c=OD(!0);D1(r),r.newObserving_=new Array(r.runId_===0?100:r.observing_.length),r.unboundDepsCount_=0,r.runId_=++fe.runId;var d=fe.trackingDerivation;fe.trackingDerivation=r,fe.inBatch++;var v;if(fe.disableErrorBoundaries===!0)v=s.call(l);else try{v=s.call(l)}catch(m){v=new bg(m)}return fe.inBatch--,fe.trackingDerivation=d,Im(r),ph(c),v}function Im(r){for(var s=r.observing_,l=r.observing_=r.newObserving_,c=ht.UP_TO_DATE_,d=0,v=r.unboundDepsCount_,m=0;m<v;m++){var E=l[m];E.diffValue===0&&(E.diffValue=1,d!==m&&(l[d]=E),d++),E.dependenciesState_>c&&(c=E.dependenciesState_)}for(l.length=d,r.newObserving_=null,v=s.length;v--;){var x=s[v];x.diffValue===0&&A1(x,r),x.diffValue=0}for(;d--;){var C=l[d];C.diffValue===1&&(C.diffValue=0,$m(C,r))}c!==ht.UP_TO_DATE_&&(r.dependenciesState_=c,r.onBecomeStale_())}function AD(r){var s=r.observing_;r.observing_=[];for(var l=s.length;l--;)A1(s[l],r);r.dependenciesState_=ht.NOT_TRACKING_}function v1(r){var s=ys();try{return r()}finally{Gi(s)}}function ys(){var r=fe.trackingDerivation;return fe.trackingDerivation=null,r}function Gi(r){fe.trackingDerivation=r}function OD(r){var s=fe.allowStateReads;return fe.allowStateReads=r,s}function ph(r){fe.allowStateReads=r}function D1(r){if(r.dependenciesState_!==ht.UP_TO_DATE_){r.dependenciesState_=ht.UP_TO_DATE_;for(var s=r.observing_,l=s.length;l--;)s[l].lowestObserverState_=ht.UP_TO_DATE_}}var dg=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},gg=!0,p1=!1,fe=(function(){var r=Bg();return r.__mobxInstanceCount>0&&!r.__mobxGlobals&&(gg=!1),r.__mobxGlobals&&r.__mobxGlobals.version!==new dg().version&&(gg=!1),gg?r.__mobxGlobals?(r.__mobxInstanceCount+=1,r.__mobxGlobals.UNCHANGED||(r.__mobxGlobals.UNCHANGED={}),r.__mobxGlobals):(r.__mobxInstanceCount=1,r.__mobxGlobals=new dg):(setTimeout(function(){p1||lt(35)},1),new dg)})();function Jm(){if((fe.pendingReactions.length||fe.inBatch||fe.isRunningReactions)&&lt(36),p1=!0,gg){var r=Bg();--r.__mobxInstanceCount===0&&(r.__mobxGlobals=void 0),fe=new dg}}function $m(r,s){r.observers_.add(s),r.lowestObserverState_>s.dependenciesState_&&(r.lowestObserverState_=s.dependenciesState_)}function A1(r,s){r.observers_.delete(s),r.observers_.size===0&&m1(r)}function m1(r){r.isPendingUnobservation===!1&&(r.isPendingUnobservation=!0,fe.pendingUnobservations.push(r))}function Ku(){fe.inBatch++}function Xu(){if(--fe.inBatch===0){_1();for(var r=fe.pendingUnobservations,s=0;s<r.length;s++){var l=r[s];l.isPendingUnobservation=!1,l.observers_.size===0&&(l.isBeingObserved&&(l.isBeingObserved=!1,l.onBUO()),l instanceof ya&&l.suspend_())}fe.pendingUnobservations=[]}}function y1(r){var s=fe.trackingDerivation;return s!==null?(s.runId_!==r.lastAccessedBy_&&(r.lastAccessedBy_=s.runId_,s.newObserving_[s.unboundDepsCount_++]=r,!r.isBeingObserved&&fe.trackingContext&&(r.isBeingObserved=!0,r.onBO())),r.isBeingObserved):(r.observers_.size===0&&fe.inBatch>0&&m1(r),!1)}function b1(r){r.lowestObserverState_!==ht.STALE_&&(r.lowestObserverState_=ht.STALE_,r.observers_.forEach(function(s){s.dependenciesState_===ht.UP_TO_DATE_&&s.onBecomeStale_(),s.dependenciesState_=ht.STALE_}))}function Wm(r){r.lowestObserverState_!==ht.STALE_&&(r.lowestObserverState_=ht.STALE_,r.observers_.forEach(function(s){s.dependenciesState_===ht.POSSIBLY_STALE_?s.dependenciesState_=ht.STALE_:s.dependenciesState_===ht.UP_TO_DATE_&&(r.lowestObserverState_=ht.UP_TO_DATE_)}))}function Pm(r){r.lowestObserverState_===ht.UP_TO_DATE_&&(r.lowestObserverState_=ht.POSSIBLY_STALE_,r.observers_.forEach(function(s){s.dependenciesState_===ht.UP_TO_DATE_&&(s.dependenciesState_=ht.POSSIBLY_STALE_,s.onBecomeStale_())}))}var li=(function(){function r(l,c,d,v){l===void 0&&(l="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ht.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=yg.NONE,this.name_=l,this.onInvalidate_=c,this.errorHandler_=d,this.requiresObservable_=v}var s=r.prototype;return s.onBecomeStale_=function(){this.schedule_()},s.schedule_=function(){this.isScheduled||(this.isScheduled=!0,fe.pendingReactions.push(this),_1())},s.runReaction_=function(){if(!this.isDisposed){Ku(),this.isScheduled=!1;var c=fe.trackingContext;if(fe.trackingContext=this,pD(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(d){this.reportExceptionInDerivation_(d)}}fe.trackingContext=c,Xu()}},s.track=function(c){if(!this.isDisposed){Ku(),this.isRunning=!0;var d=fe.trackingContext;fe.trackingContext=this;var v=g1(this,c,void 0);fe.trackingContext=d,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&AD(this),hg(v)&&this.reportExceptionInDerivation_(v.cause),Xu()}},s.reportExceptionInDerivation_=function(c){var d=this;if(this.errorHandler_){this.errorHandler_(c,this);return}if(fe.disableErrorBoundaries)throw c;var v="[mobx] uncaught error in '"+this+"'";fe.suppressReactionErrors||console.error(v,c),fe.globalReactionErrorHandlers.forEach(function(m){return m(c,d)})},s.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Ku(),AD(this),Xu()))},s.getDisposer_=function(c){var d=this,v=function m(){d.dispose(),c==null||c.removeEventListener==null||c.removeEventListener("abort",m)};return c==null||c.addEventListener==null||c.addEventListener("abort",v),v[Le]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(v[Symbol.dispose]=v),v},s.toString=function(){return"Reaction["+this.name_+"]"},s.trace=function(c){},go(r,[{key:"isDisposed",get:function(){return wu(this.flags_,r.isDisposedMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isDisposedMask_,c)}},{key:"isScheduled",get:function(){return wu(this.flags_,r.isScheduledMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isScheduledMask_,c)}},{key:"isTrackPending",get:function(){return wu(this.flags_,r.isTrackPendingMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isTrackPendingMask_,c)}},{key:"isRunning",get:function(){return wu(this.flags_,r.isRunningMask_)},set:function(c){this.flags_=Mu(this.flags_,r.isRunningMask_,c)}},{key:"diffValue",get:function(){return wu(this.flags_,r.diffValueMask_)?1:0},set:function(c){this.flags_=Mu(this.flags_,r.diffValueMask_,c===1)}}])})();li.isDisposedMask_=1;li.isScheduledMask_=2;li.isTrackPendingMask_=4;li.isRunningMask_=8;li.diffValueMask_=16;var e2=100,mD=function(s){return s()};function _1(){fe.inBatch>0||fe.isRunningReactions||mD(t2)}function t2(){fe.isRunningReactions=!0;for(var r=fe.pendingReactions,s=0;r.length>0;){++s===e2&&(console.error("[mobx] cycle in reaction: "+r[0]),r.splice(0));for(var l=r.splice(0),c=0,d=l.length;c<d;c++)l[c].runReaction_()}fe.isRunningReactions=!1}var _g=Kr("Reaction",li);function n2(r){var s=mD;mD=function(c){return r(function(){return s(c)})}}function Ah(){return!1}function u2(r){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var x1="action",a2="action.bound",E1="autoAction",i2="autoAction.bound",C1="<unnamed action>",yD=wh(x1),r2=wh(a2,{bound:!0}),bD=wh(E1,{autoAction:!0}),l2=wh(i2,{autoAction:!0,bound:!0});function S1(r){var s=function(c,d){if(ma(c))return ms(c.name||C1,c,r);if(ma(d))return ms(c,d,r);if(Fh(d))return(r?bD:yD).decorate_20223_(c,d);if(Ds(d))return Sh(c,d,r?bD:yD);if(Ds(c))return ii(wh(r?E1:x1,{name:c,autoAction:r}))};return s}var ro=S1(!1);Object.assign(ro,yD);var mh=S1(!0);Object.assign(mh,bD);ro.bound=ii(r2);mh.bound=ii(l2);function Pt(r){return d1(r.name||C1,!1,r,this,void 0)}function oo(r){return ma(r)&&r.isMobxAction===!0}function s2(r,s){var l,c,d,v;s===void 0&&(s=Jp);var m=(l=(c=s)==null?void 0:c.name)!=null?l:"Autorun",E=!s.scheduler&&!s.delay,x;if(E)x=new li(m,function(){this.track(H)},s.onError,s.requiresObservable);else{var C=o2(s),M=!1;x=new li(m,function(){M||(M=!0,C(function(){M=!1,x.isDisposed||x.track(H)}))},s.onError,s.requiresObservable)}function H(){r(x)}return(d=s)!=null&&(d=d.signal)!=null&&d.aborted||x.schedule_(),x.getDisposer_((v=s)==null?void 0:v.signal)}var c2=function(s){return s()};function o2(r){return r.scheduler?r.scheduler:r.delay?function(s){return setTimeout(s,r.delay)}:c2}var f2="onBO",h2="onBUO";function d2(r,s,l){return w1(f2,r,s,l)}function F1(r,s,l){return w1(h2,r,s,l)}function w1(r,s,l,c){var d=Cg(s),v=ma(c)?c:l,m=r+"L";return d[m]?d[m].add(v):d[m]=new Set([v]),function(){var E=d[m];E&&(E.delete(v),E.size===0&&delete d[m])}}var g2="never",cg="always",v2="observed";function D2(r){r.isolateGlobalState===!0&&Jm();var s=r.useProxies,l=r.enforceActions;if(s!==void 0&&(fe.useProxies=s===cg?!0:s===g2?!1:typeof Proxy<"u"),s==="ifavailable"&&(fe.verifyProxies=!0),l!==void 0){var c=l===cg?cg:l===v2;fe.enforceActions=c,fe.allowStateChanges=!(c===!0||c===cg)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(d){d in r&&(fe[d]=!!r[d])}),fe.allowStateReads=!fe.observableRequiresReaction,r.reactionScheduler&&n2(r.reactionScheduler)}function M1(r,s,l,c){var d=WA(s);return Jr(function(){var v=bs(r,c)[Le];co(d).forEach(function(m){v.extend_(m,d[m],l&&m in l?l[m]:!0)})}),r}function p2(r,s){return O1(Cg(r,s))}function O1(r){var s={name:r.name_};return r.observing_&&r.observing_.length>0&&(s.dependencies=A2(r.observing_).map(O1)),s}function A2(r){return Array.from(new Set(r))}var m2=0;function T1(){this.message="FLOW_CANCELLED"}T1.prototype=Object.create(Error.prototype);var aD=r1("flow"),y2=r1("flow.bound",{bound:!0}),fo=Object.assign(function(s,l){if(Fh(l))return aD.decorate_20223_(s,l);if(Ds(l))return Sh(s,l,aD);var c=s,d=c.name||"<unnamed flow>",v=function(){var E=this,x=arguments,C=++m2,M=ro(d+" - runid: "+C+" - init",c).apply(E,x),H,Y=void 0,te=new Promise(function(ie,le){var pe=0;H=le;function Te(ce){Y=void 0;var X;try{X=ro(d+" - runid: "+C+" - yield "+pe++,M.next).call(M,ce)}catch(oe){return le(oe)}ae(X)}function De(ce){Y=void 0;var X;try{X=ro(d+" - runid: "+C+" - yield "+pe++,M.throw).call(M,ce)}catch(oe){return le(oe)}ae(X)}function ae(ce){if(ma(ce?.then)){ce.then(ae,le);return}return ce.done?ie(ce.value):(Y=Promise.resolve(ce.value),Y.then(Te,De))}Te(void 0)});return te.cancel=ro(d+" - runid: "+C+" - cancel",function(){try{Y&&lp(Y);var ie=M.return(void 0),le=Promise.resolve(ie.value);le.then(ao,ao),lp(le),H(new T1)}catch(pe){H(pe)}}),te};return v.isMobXFlow=!0,v},aD);fo.bound=ii(y2);function lp(r){ma(r.cancel)&&r.cancel()}function yh(r){return r?.isMobXFlow===!0}function b2(r,s){return r?Rh(r)||!!r[Le]||wD(r)||_g(r)||Mh(r):!1}function TD(r){return b2(r)}function _2(r){if(Rh(r))return r[Le].ownKeys_();lt(38)}function og(r,s,l){return r.set(s,l),l}function uo(r,s){if(r==null||typeof r!="object"||r instanceof Date||!TD(r))return r;if(Xm(r)||Mh(r))return uo(r.get(),s);if(s.has(r))return s.get(r);if(Bh(r)){var l=og(s,r,new Array(r.length));return r.forEach(function(m,E){l[E]=uo(m,s)}),l}if(Da(r)){var c=og(s,r,new Set);return r.forEach(function(m){c.add(uo(m,s))}),c}if(Ir(r)){var d=og(s,r,new Map);return r.forEach(function(m,E){d.set(E,uo(m,s))}),d}else{var v=og(s,r,{});return _2(r).forEach(function(m){Eh.propertyIsEnumerable.call(r,m)&&(v[m]=uo(r[m],s))}),v}}function x2(r,s){return uo(r,new Map)}function Ui(r,s){s===void 0&&(s=void 0),Ku();try{return r.apply(s)}finally{Xu()}}function no(r){return r[Le]}var E2={has:function(s,l){return no(s).has_(l)},get:function(s,l){return no(s).get_(l)},set:function(s,l,c){var d;return Ds(l)?(d=no(s).set_(l,c,!0))!=null?d:!0:!1},deleteProperty:function(s,l){var c;return Ds(l)?(c=no(s).delete_(l,!0))!=null?c:!0:!1},defineProperty:function(s,l,c){var d;return(d=no(s).defineProperty_(l,c))!=null?d:!0},ownKeys:function(s){return no(s).ownKeys_()},preventExtensions:function(s){lt(13)}};function C2(r,s){var l,c;return $p(),r=bs(r,s),(c=(l=r[Le]).proxy_)!=null?c:l.proxy_=new Proxy(r,E2)}function Qu(r){return r.interceptors_!==void 0&&r.interceptors_.length>0}function Oh(r,s){var l=r.interceptors_||(r.interceptors_=[]);return l.push(s),Wp(function(){var c=l.indexOf(s);c!==-1&&l.splice(c,1)})}function Zu(r,s){var l=ys();try{for(var c=[].concat(r.interceptors_||[]),d=0,v=c.length;d<v&&(s=c[d](s),s&&!s.type&&lt(14),!!s);d++);return s}finally{Gi(l)}}function pa(r){return r.changeListeners_!==void 0&&r.changeListeners_.length>0}function Th(r,s){var l=r.changeListeners_||(r.changeListeners_=[]);return l.push(s),Wp(function(){var c=l.indexOf(s);c!==-1&&l.splice(c,1)})}function Aa(r,s){var l=ys(),c=r.changeListeners_;if(c){c=c.slice();for(var d=0,v=c.length;d<v;d++)c[d](s);Gi(l)}}function S2(r,s,l){return Jr(function(){var c,d=bs(r,l)[Le];(c=s)!=null||(s=um(r)),co(s).forEach(function(v){return d.make_(v,s[v])})}),r}var iD=Symbol("mobx-keys");function B1(r,s,l){return qi(r)?M1(r,r,s,l):(Jr(function(){var c=bs(r,l)[Le];if(!r[iD]){var d=Object.getPrototypeOf(r),v=new Set([].concat(co(r),co(d)));v.delete("constructor"),v.delete(Le),Ch(d,iD,v)}r[iD].forEach(function(m){return c.make_(m,s&&m in s?s[m]:!0)})}),r)}var sp="splice",ri="update",F2=1e4,w2={get:function(s,l){var c=s[Le];return l===Le?c:l==="length"?c.getArrayLength_():typeof l=="string"&&!isNaN(l)?c.get_(parseInt(l)):Hi(xg,l)?xg[l]:s[l]},set:function(s,l,c){var d=s[Le];return l==="length"&&d.setArrayLength_(c),typeof l=="symbol"||isNaN(l)?s[l]=c:d.set_(parseInt(l),c),!0},preventExtensions:function(){lt(15)}},BD=(function(){function r(l,c,d,v){l===void 0&&(l="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_=d,this.legacyMode_=v,this.atom_=new Xr(l),this.enhancer_=function(m,E){return c(m,E,"ObservableArray[..]")}}var s=r.prototype;return s.dehanceValue_=function(c){return this.dehancer!==void 0?this.dehancer(c):c},s.dehanceValues_=function(c){return this.dehancer!==void 0&&c.length>0?c.map(this.dehancer):c},s.intercept_=function(c){return Oh(this,c)},s.observe_=function(c,d){return d===void 0&&(d=!1),d&&c({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Th(this,c)},s.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},s.setArrayLength_=function(c){(typeof c!="number"||isNaN(c)||c<0)&&lt("Out of range: "+c);var d=this.values_.length;if(c!==d)if(c>d){for(var v=new Array(c-d),m=0;m<c-d;m++)v[m]=void 0;this.spliceWithArray_(d,0,v)}else this.spliceWithArray_(c,d-c)},s.updateArrayLength_=function(c,d){c!==this.lastKnownLength_&&lt(16),this.lastKnownLength_+=d,this.legacyMode_&&d>0&&H1(c+d+1)},s.spliceWithArray_=function(c,d,v){var m=this;this.atom_;var E=this.values_.length;if(c===void 0?c=0:c>E?c=E:c<0&&(c=Math.max(0,E+c)),arguments.length===1?d=E-c:d==null?d=0:d=Math.max(0,Math.min(d,E-c)),v===void 0&&(v=dD),Qu(this)){var x=Zu(this,{object:this.proxy_,type:sp,index:c,removedCount:d,added:v});if(!x)return dD;d=x.removedCount,v=x.added}if(v=v.length===0?v:v.map(function(H){return m.enhancer_(H,void 0)}),this.legacyMode_){var C=v.length-d;this.updateArrayLength_(E,C)}var M=this.spliceItemsIntoValues_(c,d,v);return(d!==0||v.length!==0)&&this.notifyArraySplice_(c,v,M),this.dehanceValues_(M)},s.spliceItemsIntoValues_=function(c,d,v){if(v.length<F2){var m;return(m=this.values_).splice.apply(m,[c,d].concat(v))}else{var E=this.values_.slice(c,c+d),x=this.values_.slice(c+d);this.values_.length+=v.length-d;for(var C=0;C<v.length;C++)this.values_[c+C]=v[C];for(var M=0;M<x.length;M++)this.values_[c+v.length+M]=x[M];return E}},s.notifyArrayChildUpdate_=function(c,d,v){var m=!this.owned_&&Ah(),E=pa(this),x=E||m?{observableKind:"array",object:this.proxy_,type:ri,debugObjectName:this.atom_.name_,index:c,newValue:d,oldValue:v}:null;this.atom_.reportChanged(),E&&Aa(this,x)},s.notifyArraySplice_=function(c,d,v){var m=!this.owned_&&Ah(),E=pa(this),x=E||m?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:sp,index:c,removed:v,added:d,removedCount:v.length,addedCount:d.length}:null;this.atom_.reportChanged(),E&&Aa(this,x)},s.get_=function(c){if(this.legacyMode_&&c>=this.values_.length){console.warn("[mobx] Out of bounds read: "+c);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[c])},s.set_=function(c,d){var v=this.values_;if(this.legacyMode_&&c>v.length&&lt(17,c,v.length),c<v.length){this.atom_;var m=v[c];if(Qu(this)){var E=Zu(this,{type:ri,object:this.proxy_,index:c,newValue:d});if(!E)return;d=E.newValue}d=this.enhancer_(d,m);var x=d!==m;x&&(v[c]=d,this.notifyArrayChildUpdate_(c,d,m))}else{for(var C=new Array(c+1-v.length),M=0;M<C.length-1;M++)C[M]=void 0;C[C.length-1]=d,this.spliceWithArray_(v.length,0,C)}},r})();function M2(r,s,l,c){return l===void 0&&(l="ObservableArray"),c===void 0&&(c=!1),$p(),Jr(function(){var d=new BD(l,s,c,!1);e1(d.values_,Le,d);var v=new Proxy(d.values_,w2);return d.proxy_=v,r&&r.length&&d.spliceWithArray_(0,0,r),v})}var xg={clear:function(){return this.splice(0)},replace:function(s){var l=this[Le];return l.spliceWithArray_(0,l.values_.length,s)},toJSON:function(){return this.slice()},splice:function(s,l){for(var c=arguments.length,d=new Array(c>2?c-2:0),v=2;v<c;v++)d[v-2]=arguments[v];var m=this[Le];switch(arguments.length){case 0:return[];case 1:return m.spliceWithArray_(s);case 2:return m.spliceWithArray_(s,l)}return m.spliceWithArray_(s,l,d)},spliceWithArray:function(s,l,c){return this[Le].spliceWithArray_(s,l,c)},push:function(){for(var s=this[Le],l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return s.spliceWithArray_(s.values_.length,0,c),s.values_.length},pop:function(){return this.splice(Math.max(this[Le].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var s=this[Le],l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return s.spliceWithArray_(0,0,c),s.values_.length},reverse:function(){return fe.trackingDerivation&&lt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){fe.trackingDerivation&&lt(37,"sort");var s=this.slice();return s.sort.apply(s,arguments),this.replace(s),this},remove:function(s){var l=this[Le],c=l.dehanceValues_(l.values_).indexOf(s);return c>-1?(this.splice(c,1),!0):!1}};jt("at",Ou);jt("concat",Ou);jt("flat",Ou);jt("includes",Ou);jt("indexOf",Ou);jt("join",Ou);jt("lastIndexOf",Ou);jt("slice",Ou);jt("toString",Ou);jt("toLocaleString",Ou);jt("toSorted",Ou);jt("toSpliced",Ou);jt("with",Ou);jt("every",ba);jt("filter",ba);jt("find",ba);jt("findIndex",ba);jt("findLast",ba);jt("findLastIndex",ba);jt("flatMap",ba);jt("forEach",ba);jt("map",ba);jt("some",ba);jt("toReversed",ba);jt("reduce",R1);jt("reduceRight",R1);function jt(r,s){typeof Array.prototype[r]=="function"&&(xg[r]=s(r))}function Ou(r){return function(){var s=this[Le];s.atom_.reportObserved();var l=s.dehanceValues_(s.values_);return l[r].apply(l,arguments)}}function ba(r){return function(s,l){var c=this,d=this[Le];d.atom_.reportObserved();var v=d.dehanceValues_(d.values_);return v[r](function(m,E){return s.call(l,m,E,c)})}}function R1(r){return function(){var s=this,l=this[Le];l.atom_.reportObserved();var c=l.dehanceValues_(l.values_),d=arguments[0];return arguments[0]=function(v,m,E){return d(v,m,E,s)},c[r].apply(c,arguments)}}var O2=Kr("ObservableArrayAdministration",BD);function Bh(r){return Rg(r)&&O2(r[Le])}var T2={},Vr="add",Eg="delete",N1=(function(){function r(l,c,d){var v=this;c===void 0&&(c=As),d===void 0&&(d="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Le]=T2,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_=c,this.name_=d,ma(Map)||lt(18),Jr(function(){v.keysAtom_=a1("ObservableMap.keys()"),v.data_=new Map,v.hasMap_=new Map,l&&v.merge(l)})}var s=r.prototype;return s.has_=function(c){return this.data_.has(c)},s.has=function(c){var d=this;if(!fe.trackingDerivation)return this.has_(c);var v=this.hasMap_.get(c);if(!v){var m=v=new Zr(this.has_(c),Ng,"ObservableMap.key?",!1);this.hasMap_.set(c,m),F1(m,function(){return d.hasMap_.delete(c)})}return v.get()},s.set=function(c,d){var v=this.has_(c);if(Qu(this)){var m=Zu(this,{type:v?ri:Vr,object:this,newValue:d,name:c});if(!m)return this;d=m.newValue}return v?this.updateValue_(c,d):this.addValue_(c,d),this},s.delete=function(c){var d=this;if(this.keysAtom_,Qu(this)){var v=Zu(this,{type:Eg,object:this,name:c});if(!v)return!1}if(this.has_(c)){var m=Ah(),E=pa(this),x=E||m?{observableKind:"map",debugObjectName:this.name_,type:Eg,object:this,oldValue:this.data_.get(c).value_,name:c}:null;return Ui(function(){var C;d.keysAtom_.reportChanged(),(C=d.hasMap_.get(c))==null||C.setNewValue_(!1);var M=d.data_.get(c);M.setNewValue_(void 0),d.data_.delete(c)}),E&&Aa(this,x),!0}return!1},s.updateValue_=function(c,d){var v=this.data_.get(c);if(d=v.prepareNewValue_(d),d!==fe.UNCHANGED){var m=Ah(),E=pa(this),x=E||m?{observableKind:"map",debugObjectName:this.name_,type:ri,object:this,oldValue:v.value_,name:c,newValue:d}:null;v.setNewValue_(d),E&&Aa(this,x)}},s.addValue_=function(c,d){var v=this;this.keysAtom_,Ui(function(){var C,M=new Zr(d,v.enhancer_,"ObservableMap.key",!1);v.data_.set(c,M),d=M.value_,(C=v.hasMap_.get(c))==null||C.setNewValue_(!0),v.keysAtom_.reportChanged()});var m=Ah(),E=pa(this),x=E||m?{observableKind:"map",debugObjectName:this.name_,type:Vr,object:this,name:c,newValue:d}:null;E&&Aa(this,x)},s.get=function(c){return this.has(c)?this.dehanceValue_(this.data_.get(c).get()):this.dehanceValue_(void 0)},s.dehanceValue_=function(c){return this.dehancer!==void 0?this.dehancer(c):c},s.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},s.values=function(){var c=this,d=this.keys();return cp({next:function(){var m=d.next(),E=m.done,x=m.value;return{done:E,value:E?void 0:c.get(x)}}})},s.entries=function(){var c=this,d=this.keys();return cp({next:function(){var m=d.next(),E=m.done,x=m.value;return{done:E,value:E?void 0:[x,c.get(x)]}}})},s[Symbol.iterator]=function(){return this.entries()},s.forEach=function(c,d){for(var v=io(this),m;!(m=v()).done;){var E=m.value,x=E[0],C=E[1];c.call(d,C,x,this)}},s.merge=function(c){var d=this;return Ir(c)&&(c=new Map(c)),Ui(function(){qi(c)?$A(c).forEach(function(v){return d.set(v,c[v])}):Array.isArray(c)?c.forEach(function(v){var m=v[0],E=v[1];return d.set(m,E)}):ho(c)?(JA(c)||lt(19,c),c.forEach(function(v,m){return d.set(m,v)})):c!=null&&lt(20,c)}),this},s.clear=function(){var c=this;Ui(function(){v1(function(){for(var d=io(c.keys()),v;!(v=d()).done;){var m=v.value;c.delete(m)}})})},s.replace=function(c){var d=this;return Ui(function(){for(var v=B2(c),m=new Map,E=!1,x=io(d.data_.keys()),C;!(C=x()).done;){var M=C.value;if(!v.has(M)){var H=d.delete(M);if(H)E=!0;else{var Y=d.data_.get(M);m.set(M,Y)}}}for(var te=io(v.entries()),ie;!(ie=te()).done;){var le=ie.value,pe=le[0],Te=le[1],De=d.data_.has(pe);if(d.set(pe,Te),d.data_.has(pe)){var ae=d.data_.get(pe);m.set(pe,ae),De||(E=!0)}}if(!E)if(d.data_.size!==m.size)d.keysAtom_.reportChanged();else for(var ce=d.data_.keys(),X=m.keys(),oe=ce.next(),we=X.next();!oe.done;){if(oe.value!==we.value){d.keysAtom_.reportChanged();break}oe=ce.next(),we=X.next()}d.data_=m}),this},s.toString=function(){return"[object ObservableMap]"},s.toJSON=function(){return Array.from(this)},s.observe_=function(c,d){return Th(this,c)},s.intercept_=function(c){return Oh(this,c)},go(r,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),Ir=Kr("ObservableMap",N1);function cp(r){return r[Symbol.toStringTag]="MapIterator",ND(r)}function B2(r){if(ho(r)||Ir(r))return r;if(Array.isArray(r))return new Map(r);if(qi(r)){var s=new Map;for(var l in r)s.set(l,r[l]);return s}else return lt(21,r)}var R2={},j1=(function(){function r(l,c,d){var v=this;c===void 0&&(c=As),d===void 0&&(d="ObservableSet"),this.name_=void 0,this[Le]=R2,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_=d,ma(Set)||lt(22),this.enhancer_=function(m,E){return c(m,E,d)},Jr(function(){v.atom_=a1(v.name_),l&&v.replace(l)})}var s=r.prototype;return s.dehanceValue_=function(c){return this.dehancer!==void 0?this.dehancer(c):c},s.clear=function(){var c=this;Ui(function(){v1(function(){for(var d=io(c.data_.values()),v;!(v=d()).done;){var m=v.value;c.delete(m)}})})},s.forEach=function(c,d){for(var v=io(this),m;!(m=v()).done;){var E=m.value;c.call(d,E,E,this)}},s.add=function(c){var d=this;if(this.atom_,Qu(this)){var v=Zu(this,{type:Vr,object:this,newValue:c});if(!v)return this;c=v.newValue}if(!this.has(c)){Ui(function(){d.data_.add(d.enhancer_(c,void 0)),d.atom_.reportChanged()});var m=!1,E=pa(this),x=E||m?{observableKind:"set",debugObjectName:this.name_,type:Vr,object:this,newValue:c}:null;E&&Aa(this,x)}return this},s.delete=function(c){var d=this;if(Qu(this)){var v=Zu(this,{type:Eg,object:this,oldValue:c});if(!v)return!1}if(this.has(c)){var m=!1,E=pa(this),x=E||m?{observableKind:"set",debugObjectName:this.name_,type:Eg,object:this,oldValue:c}:null;return Ui(function(){d.atom_.reportChanged(),d.data_.delete(c)}),E&&Aa(this,x),!0}return!1},s.has=function(c){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(c))},s.entries=function(){var c=this.values();return op({next:function(){var v=c.next(),m=v.value,E=v.done;return E?{value:void 0,done:E}:{value:[m,m],done:E}}})},s.keys=function(){return this.values()},s.values=function(){this.atom_.reportObserved();var c=this,d=this.data_.values();return op({next:function(){var m=d.next(),E=m.value,x=m.done;return x?{value:void 0,done:x}:{value:c.dehanceValue_(E),done:x}}})},s.intersection=function(c){if(zi(c)&&!Da(c))return c.intersection(this);var d=new Set(this);return d.intersection(c)},s.union=function(c){if(zi(c)&&!Da(c))return c.union(this);var d=new Set(this);return d.union(c)},s.difference=function(c){return new Set(this).difference(c)},s.symmetricDifference=function(c){if(zi(c)&&!Da(c))return c.symmetricDifference(this);var d=new Set(this);return d.symmetricDifference(c)},s.isSubsetOf=function(c){return new Set(this).isSubsetOf(c)},s.isSupersetOf=function(c){return new Set(this).isSupersetOf(c)},s.isDisjointFrom=function(c){if(zi(c)&&!Da(c))return c.isDisjointFrom(this);var d=new Set(this);return d.isDisjointFrom(c)},s.replace=function(c){var d=this;return Da(c)&&(c=new Set(c)),Ui(function(){Array.isArray(c)?(d.clear(),c.forEach(function(v){return d.add(v)})):zi(c)?(d.clear(),c.forEach(function(v){return d.add(v)})):c!=null&&lt("Cannot initialize set from "+c)}),this},s.observe_=function(c,d){return Th(this,c)},s.intercept_=function(c){return Oh(this,c)},s.toJSON=function(){return Array.from(this)},s.toString=function(){return"[object ObservableSet]"},s[Symbol.iterator]=function(){return this.values()},go(r,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),Da=Kr("ObservableSet",j1);function op(r){return r[Symbol.toStringTag]="SetIterator",ND(r)}var fp=Object.create(null),hp="remove",L1=(function(){function r(l,c,d,v){c===void 0&&(c=new Map),v===void 0&&(v=Fm),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_=l,this.values_=c,this.name_=d,this.defaultAnnotation_=v,this.keysAtom_=new Xr("ObservableObject.keys"),this.isPlainObject_=qi(this.target_)}var s=r.prototype;return s.getObservablePropValue_=function(c){return this.values_.get(c).get()},s.setObservablePropValue_=function(c,d){var v=this.values_.get(c);if(v instanceof ya)return v.set(d),!0;if(Qu(this)){var m=Zu(this,{type:ri,object:this.proxy_||this.target_,name:c,newValue:d});if(!m)return null;d=m.newValue}if(d=v.prepareNewValue_(d),d!==fe.UNCHANGED){var E=pa(this),x=!1,C=E||x?{type:ri,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:v.value_,name:c,newValue:d}:null;v.setNewValue_(d),E&&Aa(this,C)}return!0},s.get_=function(c){return fe.trackingDerivation&&!Hi(this.target_,c)&&this.has_(c),this.target_[c]},s.set_=function(c,d,v){return v===void 0&&(v=!1),Hi(this.target_,c)?this.values_.has(c)?this.setObservablePropValue_(c,d):v?Reflect.set(this.target_,c,d):(this.target_[c]=d,!0):this.extend_(c,{value:d,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,v)},s.has_=function(c){if(!fe.trackingDerivation)return c in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var d=this.pendingKeys_.get(c);return d||(d=new Zr(c in this.target_,Ng,"ObservableObject.key?",!1),this.pendingKeys_.set(c,d)),d.get()},s.make_=function(c,d){if(d===!0&&(d=this.defaultAnnotation_),d!==!1){if(!(c in this.target_)){var v;if((v=this.target_[ni])!=null&&v[c])return;lt(1,d.annotationType_,this.name_+"."+c.toString())}for(var m=this.target_;m&&m!==Eh;){var E=pg(m,c);if(E){var x=d.make_(this,c,E,m);if(x===0)return;if(x===1)break}m=Object.getPrototypeOf(m)}gp(this,d,c)}},s.extend_=function(c,d,v,m){if(m===void 0&&(m=!1),v===!0&&(v=this.defaultAnnotation_),v===!1)return this.defineProperty_(c,d,m);var E=v.extend_(this,c,d,m);return E&&gp(this,v,c),E},s.defineProperty_=function(c,d,v){v===void 0&&(v=!1),this.keysAtom_;try{Ku();var m=this.delete_(c);if(!m)return m;if(Qu(this)){var E=Zu(this,{object:this.proxy_||this.target_,name:c,type:Vr,newValue:d.value});if(!E)return null;var x=E.newValue;d.value!==x&&(d=ps({},d,{value:x}))}if(v){if(!Reflect.defineProperty(this.target_,c,d))return!1}else ai(this.target_,c,d);this.notifyPropertyAddition_(c,d.value)}finally{Xu()}return!0},s.defineObservableProperty_=function(c,d,v,m){m===void 0&&(m=!1),this.keysAtom_;try{Ku();var E=this.delete_(c);if(!E)return E;if(Qu(this)){var x=Zu(this,{object:this.proxy_||this.target_,name:c,type:Vr,newValue:d});if(!x)return null;d=x.newValue}var C=dp(c),M={configurable:fe.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:C.get,set:C.set};if(m){if(!Reflect.defineProperty(this.target_,c,M))return!1}else ai(this.target_,c,M);var H=new Zr(d,v,"ObservableObject.key",!1);this.values_.set(c,H),this.notifyPropertyAddition_(c,H.value_)}finally{Xu()}return!0},s.defineComputedProperty_=function(c,d,v){v===void 0&&(v=!1),this.keysAtom_;try{Ku();var m=this.delete_(c);if(!m)return m;if(Qu(this)){var E=Zu(this,{object:this.proxy_||this.target_,name:c,type:Vr,newValue:void 0});if(!E)return null}d.name||(d.name="ObservableObject.key"),d.context=this.proxy_||this.target_;var x=dp(c),C={configurable:fe.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:x.get,set:x.set};if(v){if(!Reflect.defineProperty(this.target_,c,C))return!1}else ai(this.target_,c,C);this.values_.set(c,new ya(d)),this.notifyPropertyAddition_(c,void 0)}finally{Xu()}return!0},s.delete_=function(c,d){if(d===void 0&&(d=!1),this.keysAtom_,!Hi(this.target_,c))return!0;if(Qu(this)){var v=Zu(this,{object:this.proxy_||this.target_,name:c,type:hp});if(!v)return null}try{var m;Ku();var E=pa(this),x=!1,C=this.values_.get(c),M=void 0;if(!C&&(E||x)){var H;M=(H=pg(this.target_,c))==null?void 0:H.value}if(d){if(!Reflect.deleteProperty(this.target_,c))return!1}else delete this.target_[c];if(C&&(this.values_.delete(c),C instanceof Zr&&(M=C.value_),b1(C)),this.keysAtom_.reportChanged(),(m=this.pendingKeys_)==null||(m=m.get(c))==null||m.set(c in this.target_),E||x){var Y={type:hp,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:M,name:c};E&&Aa(this,Y)}}finally{Xu()}return!0},s.observe_=function(c,d){return Th(this,c)},s.intercept_=function(c){return Oh(this,c)},s.notifyPropertyAddition_=function(c,d){var v,m=pa(this),E=!1;if(m||E){var x=m||E?{type:Vr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:c,newValue:d}:null;m&&Aa(this,x)}(v=this.pendingKeys_)==null||(v=v.get(c))==null||v.set(!0),this.keysAtom_.reportChanged()},s.ownKeys_=function(){return this.keysAtom_.reportObserved(),co(this.target_)},s.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},r})();function bs(r,s){var l;if(Hi(r,Le))return r;var c=(l=s?.name)!=null?l:"ObservableObject",d=new L1(r,new Map,String(c),Um(s));return Ch(r,Le,d),r}var N2=Kr("ObservableObjectAdministration",L1);function dp(r){return fp[r]||(fp[r]={get:function(){return this[Le].getObservablePropValue_(r)},set:function(l){return this[Le].setObservablePropValue_(r,l)}})}function Rh(r){return Rg(r)?N2(r[Le]):!1}function gp(r,s,l){var c;(c=r.target_[ni])==null||delete c[l]}var j2=U1(0),L2=(function(){var r=!1,s={};return Object.defineProperty(s,"0",{set:function(){r=!0}}),Object.create(s)[0]=1,r===!1})(),rD=0,z1=function(){};function z2(r,s){Object.setPrototypeOf?Object.setPrototypeOf(r.prototype,s):r.prototype.__proto__!==void 0?r.prototype.__proto__=s:r.prototype=s}z2(z1,Array.prototype);var RD=(function(r){function s(c,d,v,m){var E;return v===void 0&&(v="ObservableArray"),m===void 0&&(m=!1),E=r.call(this)||this,Jr(function(){var x=new BD(v,d,m,!0);x.proxy_=E,e1(E,Le,x),c&&c.length&&E.spliceWithArray(0,0,c),L2&&Object.defineProperty(E,"0",j2)}),E}u1(s,r);var l=s.prototype;return l.concat=function(){this[Le].atom_.reportObserved();for(var d=arguments.length,v=new Array(d),m=0;m<d;m++)v[m]=arguments[m];return Array.prototype.concat.apply(this.slice(),v.map(function(E){return Bh(E)?E.slice():E}))},l[Symbol.iterator]=function(){var c=this,d=0;return ND({next:function(){return d<c.length?{value:c[d++],done:!1}:{done:!0,value:void 0}}})},go(s,[{key:"length",get:function(){return this[Le].getArrayLength_()},set:function(d){this[Le].setArrayLength_(d)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(z1);Object.entries(xg).forEach(function(r){var s=r[0],l=r[1];s!=="concat"&&Ch(RD.prototype,s,l)});function U1(r){return{enumerable:!1,configurable:!0,get:function(){return this[Le].get_(r)},set:function(l){this[Le].set_(r,l)}}}function U2(r){ai(RD.prototype,""+r,U1(r))}function H1(r){if(r>rD){for(var s=rD;s<r+100;s++)U2(s);rD=r}}H1(1e3);function H2(r,s,l){return new RD(r,s,l)}function Cg(r,s){if(typeof r=="object"&&r!==null){if(Bh(r))return s!==void 0&&lt(23),r[Le].atom_;if(Da(r))return r.atom_;if(Ir(r)){if(s===void 0)return r.keysAtom_;var l=r.data_.get(s)||r.hasMap_.get(s);return l||lt(25,s,_D(r)),l}if(Rh(r)){if(!s)return lt(26);var c=r[Le].values_.get(s);return c||lt(27,s,_D(r)),c}if(wD(r)||Mh(r)||_g(r))return r}else if(ma(r)&&_g(r[Le]))return r[Le];lt(28)}function G2(r,s){if(r||lt(29),wD(r)||Mh(r)||_g(r)||Ir(r)||Da(r))return r;if(r[Le])return r[Le];lt(24,r)}function _D(r,s){var l;if(s!==void 0)l=Cg(r,s);else{if(oo(r))return r.name;Rh(r)||Ir(r)||Da(r)?l=G2(r):l=Cg(r)}return l.name_}function Jr(r){var s=ys(),l=zg(!0);Ku();try{return r()}finally{Xu(),Ug(l),Gi(s)}}var vp=Eh.toString;function G1(r,s,l){return l===void 0&&(l=-1),xD(r,s,l)}function xD(r,s,l,c,d){if(r===s)return r!==0||1/r===1/s;if(r==null||s==null)return!1;if(r!==r)return s!==s;var v=typeof r;if(v!=="function"&&v!=="object"&&typeof s!="object")return!1;var m=vp.call(r);if(m!==vp.call(s))return!1;switch(m){case"[object RegExp]":case"[object String]":return""+r==""+s;case"[object Number]":return+r!=+r?+s!=+s:+r==0?1/+r===1/s:+r==+s;case"[object Date]":case"[object Boolean]":return+r==+s;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(r)===Symbol.valueOf.call(s);case"[object Map]":case"[object Set]":l>=0&&l++;break}r=Dp(r),s=Dp(s);var E=m==="[object Array]";if(!E){if(typeof r!="object"||typeof s!="object")return!1;var x=r.constructor,C=s.constructor;if(x!==C&&!(ma(x)&&x instanceof x&&ma(C)&&C instanceof C)&&"constructor"in r&&"constructor"in s)return!1}if(l===0)return!1;l<0&&(l=-1),c=c||[],d=d||[];for(var M=c.length;M--;)if(c[M]===r)return d[M]===s;if(c.push(r),d.push(s),E){if(M=r.length,M!==s.length)return!1;for(;M--;)if(!xD(r[M],s[M],l-1,c,d))return!1}else{var H=Object.keys(r),Y=H.length;if(Object.keys(s).length!==Y)return!1;for(var te=0;te<Y;te++){var ie=H[te];if(!(Hi(s,ie)&&xD(r[ie],s[ie],l-1,c,d)))return!1}}return c.pop(),d.pop(),!0}function Dp(r){return Bh(r)?r.slice():ho(r)||Ir(r)||zi(r)||Da(r)?Array.from(r.entries()):r}var pp,q2=((pp=Bg().Iterator)==null?void 0:pp.prototype)||{};function ND(r){return r[Symbol.iterator]=Y2,Object.assign(Object.create(q2),r)}function Y2(){return this}["Symbol","Map","Set"].forEach(function(r){var s=Bg();typeof s[r]>"u"&&lt("MobX requires global '"+r+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:u2,extras:{getDebugName:_D},$mobx:Le});const St={auth:r=>Mt.call("auth",r,[]),authEnabled:()=>Mt.call("authEnabled",{},[]),channelClose:r=>Mt.call("channelClose",r,[]),channelDeleteMessage:r=>Mt.call("channelDeleteMessage",r,[]),channelDocumentUpload:r=>Mt.callFormData("channelDocumentUpload",r),channelInfo:(r,s)=>Mt.call("channelInfo",r,s),channelList:(r,s)=>Mt.call("channelList",r,s),channelMarkRead:r=>Mt.call("channelMarkRead",r,[]),channelMessages:(r,s)=>Mt.call("channelMessages",r,s),channelReaction:r=>Mt.call("channelReaction",r,[]),channelSendMessage:(r,s)=>Mt.call("channelSendMessage",r,s),channelVoiceUpload:r=>Mt.callFormData("channelVoiceUpload",r),closedChannelList:(r,s)=>Mt.call("closedChannelList",r,s),fastAnswers:()=>Mt.call("fastAnswers",{},[]),joinChannel:r=>Mt.call("joinChannel",r,[]),joinChannelList:(r,s)=>Mt.call("joinChannelList",r,s),mFastAnswers:r=>Mt.call("mFastAnswers",r,[]),pinnedMessage:r=>Mt.call("pinnedMessage",r,[]),profileInfo:()=>Mt.call("profileInfo",{},[])},k2=St.mFastAnswers,Ap=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const s=crypto.getRandomValues(new Uint8Array(1))[0]&15;return(r==="x"?s:s&3|8).toString(16)}),V2=(r,s)=>{const l=new TextEncoder().encode(r),c=new TextEncoder().encode(s),d=new Uint8Array(l.length);for(let v=0;v<l.length;v++)d[v]=l[v]^c[v%c.length];return btoa(String.fromCharCode(...Array.from(d)))},fg=(r,s)=>{const l=atob(r),c=new Uint8Array(l.length);for(let m=0;m<l.length;m++)c[m]=l.charCodeAt(m);const d=new TextEncoder().encode(s),v=new Uint8Array(c.length);for(let m=0;m<c.length;m++)v[m]=c[m]^d[m%d.length];return new TextDecoder().decode(v)};class Mt{static domains=[];static endpoint="";static ENDPOINT_INDEX_KEY="rpcClient_endpointIndex";static currentDomainIndex=0;static initialized=!1;static headers={};static tokenGetter=null;static tokenGetterAsync=null;static unauthorizedHandler=null;static networkErrorHandler=null;static toastHandler=null;static getRedirectURL(s){let l="/redirect?to="+encodeURIComponent(s);return this.getCurrentEndpointDomain()+l}static defaultExtensions=[];static setDefaultExtensions(s){this.defaultExtensions=s}static abortControllerTimeout=3e4;static setAbortControllerTimeout(s){this.abortControllerTimeout=s}static useEncrypt=!1;static setUseEncrypt(s){this.useEncrypt=s}static setNetworkErrorHandler(s){this.networkErrorHandler=s}static async init(){if(!this.initialized){try{const s=localStorage.getItem(this.ENDPOINT_INDEX_KEY);if(s!==null){const l=parseInt(s,10);!isNaN(l)&&l>=0&&l<this.domains.length&&(this.currentDomainIndex=l)}}catch(s){console.log("⚠️ Ошибка при загрузке индекса endpoint:",s)}this.initialized=!0}}static async saveEndpointIndex(){try{localStorage.setItem(this.ENDPOINT_INDEX_KEY,this.currentDomainIndex.toString())}catch(s){console.log("⚠️ Ошибка при сохранении индекса endpoint:",s)}}static switchToNextDomain(){this.domains.length<=1||(this.currentDomainIndex=(this.currentDomainIndex+1)%this.domains.length,this.saveEndpointIndex())}static isConfigReady(){return this.domains.length>0&&this.endpoint.length>0}static async waitForConfig(){if(!this.isConfigReady()&&(await new Promise(s=>setTimeout(s,1e3)),!this.isConfigReady()))throw new Error("Domains and endpoint are not set");await this.init()}static joinUrl(s,l){const c=s.replace(/\/+$/,""),d=l.replace(/^\/+/,"");return d?`${c}/${d}`:c}static getCurrentEndpoint(){if(!this.isConfigReady())throw new Error("Domains and endpoint are not set");return this.joinUrl(this.domains[this.currentDomainIndex],this.endpoint)}static getCurrentEndpointDomain(){return this.domains[this.currentDomainIndex]}static isNetworkError(s){return s.name==="AbortError"||s.name==="TimeoutError"||s.name==="TypeError"||s.message?.includes("Network request failed")||s.message?.includes("Failed to fetch")||s.message?.includes("NetworkError")}static setToken(s){this.tokenGetter=s}static setTokenAsync(s){this.tokenGetterAsync=s}static setUnauthorizedHandler(s){this.unauthorizedHandler=s}static setToast(s){this.toastHandler=s}static setDomains(s){this.domains=s,this.currentDomainIndex=0,this.initialized=!1}static setEndpoint(s){this.endpoint=s,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(s){this.headers={...this.headers,...s}}static handleError(s){s?.type==="UNAUTHORIZED"||s?.type==="UNAUTHENTICATED"?this.unauthorizedHandler&&this.unauthorizedHandler():s?.message&&this.toastHandler&&this.toastHandler(s.message)}static async callFormData(s,l){await this.waitForConfig();const c=this.getCurrentEndpoint();l.append("method",s);let d=await this.getTokenAsync();d&&l.append("token",d),l.append("timezone",Intl.DateTimeFormat().resolvedOptions().timeZone);const v=this.useEncrypt?Ap():void 0;this.useEncrypt&&v&&l.append("context",v);const m={...this.headers};delete m["Content-Type"];const E=new AbortController,x=setTimeout(()=>{E.abort()},this.abortControllerTimeout);return fetch(c,{method:"POST",headers:m,body:l,signal:E.signal}).then(C=>C.json()).then(C=>{if(clearTimeout(x),this.useEncrypt&&v&&(C.result&&(C.result=JSON.parse(fg(C.result,v))),C.extensions&&(C.extensions=JSON.parse(fg(C.extensions,v)))),C?.error)throw this.handleError(C.error),C.error;return this.saveEndpointIndex(),C.result}).catch(C=>{throw clearTimeout(x),this.isNetworkError(C)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextDomain()),C})}static async call(s,l,c){await this.waitForConfig();const d=this.getCurrentEndpoint(),v=this.useEncrypt?Ap():void 0;let m=c??this.defaultExtensions;const E=await this.getTokenAsync(),x={method:s,extensions:m,context:v,token:E,params:l?v?V2(JSON.stringify(l??{}),v):l:void 0,id:Date.now().toString()};console.log("🚀🚀🚀 method: ",s," RPC Endpoint: ",d),console.log("🚀🚀🚀 method: ",s," RPC Body: ",JSON.stringify(x));const C=new AbortController,M=setTimeout(()=>{C.abort()},this.abortControllerTimeout);return fetch(d,{method:"POST",headers:{"Content-Type":"application/json",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,...this.headers},body:JSON.stringify(x),signal:C.signal}).then(H=>H.json()).then(H=>{if(clearTimeout(M),this.useEncrypt&&v&&(H.result&&(H.result=JSON.parse(fg(H.result,v))),H.extensions&&(H.extensions=JSON.parse(fg(H.extensions,v)))),console.log("🍪🍪🍪 method: ",s," RPC Response: ",JSON.stringify(H)),H?.error)throw this.handleError(H.error),H.error;return this.saveEndpointIndex(),H?.extensions&&jD.addToStore(H.extensions),H}).catch(H=>{throw clearTimeout(M),this.isNetworkError(H)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextDomain()),console.log("🛑🛑🛑 RPC Error: ",JSON.stringify(x)),H})}}class jD{static storage=null;static async loadFromStorage(){if(this.storage){const s=await this.storage.get("extensionsStore");if(s)try{let l=JSON.parse(s);hD.map(l,(c,d)=>{c&&(this.store?.[d]?this.store[d]={...this.store[d],...c}:this.store[d]=c)})}catch(l){console.error("⚠️ Ошибка при загрузке extensionsStore из storage:",l)}}}static saveToStorage=hD.debounce(()=>{this.storage&&this.storage.save("extensionsStore",JSON.stringify(x2(this.store)))},1e3);static store=hn({shmChannelMessages:{},shmChannels:{}});static addToStore(s){if(s?.shmChannelMessages&&s?.shmChannelMessages.length>0)for(const l of s?.shmChannelMessages)l?._id&&(this.store.shmChannelMessages[l._id]=l);if(s?.shmChannels&&s?.shmChannels.length>0)for(const l of s?.shmChannels)l?._id&&(this.store.shmChannels[l._id]=l);this.saveToStorage()}static shmChannelMessages(){return Object.values(this.store.shmChannelMessages)}static shmChannels(){return Object.values(this.store.shmChannels)}static shmChannelMessagesByID(s){return s?this.store.shmChannelMessages?.[s]?this.store.shmChannelMessages[s]:(console.info("📕 Extension shmChannelMessages not found by ID: "+s),null):null}static shmChannelsByID(s){return s?this.store.shmChannels?.[s]?this.store.shmChannels[s]:(console.info("📕 Extension shmChannels not found by ID: "+s),null):null}static shmChannelMessagesByIDs(s){if(!s)return[];let l=s.filter(d=>d!=null);const c=[];for(const d of l)this.store.shmChannelMessages[d]&&c.push(this.store.shmChannelMessages[d]);return c.length===0&&console.info("📕 Extensions shmChannelMessages not found by IDs: "+l.join(", ")),c}static shmChannelsByIDs(s){if(!s)return[];let l=s.filter(d=>d!=null);const c=[];for(const d of l)this.store.shmChannels[d]&&c.push(this.store.shmChannels[d]);return c.length===0&&console.info("📕 Extensions shmChannels not found by IDs: "+l.join(", ")),c}}var vg={exports:{}},Dg={exports:{}},Q2=Dg.exports,mp;function q1(){return mp||(mp=1,(function(r,s){(function(l,c){r.exports=c()})(Q2,(function(){var l=1e3,c=6e4,d=36e5,v="millisecond",m="second",E="minute",x="hour",C="day",M="week",H="month",Y="quarter",te="year",ie="date",le="Invalid Date",pe=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Te=/\[([^\]]+)]|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,De={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(_e){var re=["th","st","nd","rd"],B=_e%100;return"["+_e+(re[(B-20)%10]||re[B]||re[0])+"]"}},ae=function(_e,re,B){var V=String(_e);return!V||V.length>=re?_e:""+Array(re+1-V.length).join(B)+_e},ce={s:ae,z:function(_e){var re=-_e.utcOffset(),B=Math.abs(re),V=Math.floor(B/60),Q=B%60;return(re<=0?"+":"-")+ae(V,2,"0")+":"+ae(Q,2,"0")},m:function _e(re,B){if(re.date()<B.date())return-_e(B,re);var V=12*(B.year()-re.year())+(B.month()-re.month()),Q=re.clone().add(V,H),he=B-Q<0,S=re.clone().add(V+(he?-1:1),H);return+(-(V+(B-Q)/(he?Q-S:S-Q))||0)},a:function(_e){return _e<0?Math.ceil(_e)||0:Math.floor(_e)},p:function(_e){return{M:H,y:te,w:M,d:C,D:ie,h:x,m:E,s:m,ms:v,Q:Y}[_e]||String(_e||"").toLowerCase().replace(/s$/,"")},u:function(_e){return _e===void 0}},X="en",oe={};oe[X]=De;var we="$isDayjsObject",Ie=function(_e){return _e instanceof ot||!(!_e||!_e[we])},rt=function _e(re,B,V){var Q;if(!re)return X;if(typeof re=="string"){var he=re.toLowerCase();oe[he]&&(Q=he),B&&(oe[he]=B,Q=he);var S=re.split("-");if(!Q&&S.length>1)return _e(S[0])}else{var q=re.name;oe[q]=re,Q=q}return!V&&Q&&(X=Q),Q||!V&&X},He=function(_e,re){if(Ie(_e))return _e.clone();var B=typeof re=="object"?re:{};return B.date=_e,B.args=arguments,new ot(B)},Ue=ce;Ue.l=rt,Ue.i=Ie,Ue.w=function(_e,re){return He(_e,{locale:re.$L,utc:re.$u,x:re.$x,$offset:re.$offset})};var ot=(function(){function _e(B){this.$L=rt(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[we]=!0}var re=_e.prototype;return re.parse=function(B){this.$d=(function(V){var Q=V.date,he=V.utc;if(Q===null)return new Date(NaN);if(Ue.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var S=Q.match(pe);if(S){var q=S[2]-1||0,ue=(S[7]||"0").substring(0,3);return he?new Date(Date.UTC(S[1],q,S[3]||1,S[4]||0,S[5]||0,S[6]||0,ue)):new Date(S[1],q,S[3]||1,S[4]||0,S[5]||0,S[6]||0,ue)}}return new Date(Q)})(B),this.init()},re.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},re.$utils=function(){return Ue},re.isValid=function(){return this.$d.toString()!==le},re.isSame=function(B,V){var Q=He(B);return this.startOf(V)<=Q&&Q<=this.endOf(V)},re.isAfter=function(B,V){return He(B)<this.startOf(V)},re.isBefore=function(B,V){return this.endOf(V)<He(B)},re.$g=function(B,V,Q){return Ue.u(B)?this[V]:this.set(Q,B)},re.unix=function(){return Math.floor(this.valueOf()/1e3)},re.valueOf=function(){return this.$d.getTime()},re.startOf=function(B,V){var Q=this,he=!!Ue.u(V)||V,S=Ue.p(B),q=function(zt,kt){var tn=Ue.w(Q.$u?Date.UTC(Q.$y,kt,zt):new Date(Q.$y,kt,zt),Q);return he?tn:tn.endOf(C)},ue=function(zt,kt){return Ue.w(Q.toDate()[zt].apply(Q.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(kt)),Q)},ne=this.$W,ve=this.$M,me=this.$D,Ee="set"+(this.$u?"UTC":"");switch(S){case te:return he?q(1,0):q(31,11);case H:return he?q(1,ve):q(0,ve+1);case M:var bt=this.$locale().weekStart||0,Ze=(ne<bt?ne+7:ne)-bt;return q(he?me-Ze:me+(6-Ze),ve);case C:case ie:return ue(Ee+"Hours",0);case x:return ue(Ee+"Minutes",1);case E:return ue(Ee+"Seconds",2);case m:return ue(Ee+"Milliseconds",3);default:return this.clone()}},re.endOf=function(B){return this.startOf(B,!1)},re.$set=function(B,V){var Q,he=Ue.p(B),S="set"+(this.$u?"UTC":""),q=(Q={},Q[C]=S+"Date",Q[ie]=S+"Date",Q[H]=S+"Month",Q[te]=S+"FullYear",Q[x]=S+"Hours",Q[E]=S+"Minutes",Q[m]=S+"Seconds",Q[v]=S+"Milliseconds",Q)[he],ue=he===C?this.$D+(V-this.$W):V;if(he===H||he===te){var ne=this.clone().set(ie,1);ne.$d[q](ue),ne.init(),this.$d=ne.set(ie,Math.min(this.$D,ne.daysInMonth())).$d}else q&&this.$d[q](ue);return this.init(),this},re.set=function(B,V){return this.clone().$set(B,V)},re.get=function(B){return this[Ue.p(B)]()},re.add=function(B,V){var Q,he=this;B=Number(B);var S=Ue.p(V),q=function(ve){var me=He(he);return Ue.w(me.date(me.date()+Math.round(ve*B)),he)};if(S===H)return this.set(H,this.$M+B);if(S===te)return this.set(te,this.$y+B);if(S===C)return q(1);if(S===M)return q(7);var ue=(Q={},Q[E]=c,Q[x]=d,Q[m]=l,Q)[S]||1,ne=this.$d.getTime()+B*ue;return Ue.w(ne,this)},re.subtract=function(B,V){return this.add(-1*B,V)},re.format=function(B){var V=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||le;var he=B||"YYYY-MM-DDTHH:mm:ssZ",S=Ue.z(this),q=this.$H,ue=this.$m,ne=this.$M,ve=Q.weekdays,me=Q.months,Ee=Q.meridiem,bt=function(kt,tn,Cn,Du){return kt&&(kt[tn]||kt(V,he))||Cn[tn].slice(0,Du)},Ze=function(kt){return Ue.s(q%12||12,kt,"0")},zt=Ee||function(kt,tn,Cn){var Du=kt<12?"AM":"PM";return Cn?Du.toLowerCase():Du};return he.replace(Te,(function(kt,tn){return tn||(function(Cn){switch(Cn){case"YY":return String(V.$y).slice(-2);case"YYYY":return Ue.s(V.$y,4,"0");case"M":return ne+1;case"MM":return Ue.s(ne+1,2,"0");case"MMM":return bt(Q.monthsShort,ne,me,3);case"MMMM":return bt(me,ne);case"D":return V.$D;case"DD":return Ue.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return bt(Q.weekdaysMin,V.$W,ve,2);case"ddd":return bt(Q.weekdaysShort,V.$W,ve,3);case"dddd":return ve[V.$W];case"H":return String(q);case"HH":return Ue.s(q,2,"0");case"h":return Ze(1);case"hh":return Ze(2);case"a":return zt(q,ue,!0);case"A":return zt(q,ue,!1);case"m":return String(ue);case"mm":return Ue.s(ue,2,"0");case"s":return String(V.$s);case"ss":return Ue.s(V.$s,2,"0");case"SSS":return Ue.s(V.$ms,3,"0");case"Z":return S}return null})(kt)||S.replace(":","")}))},re.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},re.diff=function(B,V,Q){var he,S=this,q=Ue.p(V),ue=He(B),ne=(ue.utcOffset()-this.utcOffset())*c,ve=this-ue,me=function(){return Ue.m(S,ue)};switch(q){case te:he=me()/12;break;case H:he=me();break;case Y:he=me()/3;break;case M:he=(ve-ne)/6048e5;break;case C:he=(ve-ne)/864e5;break;case x:he=ve/d;break;case E:he=ve/c;break;case m:he=ve/l;break;default:he=ve}return Q?he:Ue.a(he)},re.daysInMonth=function(){return this.endOf(H).$D},re.$locale=function(){return oe[this.$L]},re.locale=function(B,V){if(!B)return this.$L;var Q=this.clone(),he=rt(B,V,!0);return he&&(Q.$L=he),Q},re.clone=function(){return Ue.w(this.$d,this)},re.toDate=function(){return new Date(this.valueOf())},re.toJSON=function(){return this.isValid()?this.toISOString():null},re.toISOString=function(){return this.$d.toISOString()},re.toString=function(){return this.$d.toUTCString()},_e})(),dn=ot.prototype;return He.prototype=dn,[["$ms",v],["$s",m],["$m",E],["$H",x],["$W",C],["$M",H],["$y",te],["$D",ie]].forEach((function(_e){dn[_e[1]]=function(re){return this.$g(re,_e[0],_e[1])}})),He.extend=function(_e,re){return _e.$i||(_e(re,ot,He),_e.$i=!0),He},He.locale=rt,He.isDayjs=Ie,He.unix=function(_e){return He(1e3*_e)},He.en=oe[X],He.Ls=oe,He.p={},He}))})(Dg)),Dg.exports}var Z2=vg.exports,yp;function K2(){return yp||(yp=1,(function(r,s){(function(l,c){r.exports=c(q1())})(Z2,(function(l){function c(ie){return ie&&typeof ie=="object"&&"default"in ie?ie:{default:ie}}var d=c(l),v="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),m="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),E="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),x="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),C=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function M(ie,le,pe){var Te,De;return pe==="m"?le?"минута":"минуту":ie+" "+(Te=+ie,De={mm:le?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[pe].split("_"),Te%10==1&&Te%100!=11?De[0]:Te%10>=2&&Te%10<=4&&(Te%100<10||Te%100>=20)?De[1]:De[2])}var H=function(ie,le){return C.test(le)?v[ie.month()]:m[ie.month()]};H.s=m,H.f=v;var Y=function(ie,le){return C.test(le)?E[ie.month()]:x[ie.month()]};Y.s=x,Y.f=E;var te={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:H,monthsShort:Y,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:M,mm:M,h:"час",hh:M,d:"день",dd:M,M:"месяц",MM:M,y:"год",yy:M},ordinal:function(ie){return ie},meridiem:function(ie){return ie<4?"ночи":ie<12?"утра":ie<17?"дня":"вечера"}};return d.default.locale(te,null,!0),te}))})(vg)),vg.exports}K2();var K=Tg();const Iu=FD(K);var X2=q1();const en=FD(X2);if(!K.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!S2)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var Y1=Xp();function I2(r){r()}function J2(r){r||(r=I2),D2({reactionScheduler:r})}function $2(r){return p2(r)}var W2=1e4,P2=1e4,ey=(function(){function r(s){var l=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:s}),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(c){c===void 0&&(c=W2),clearTimeout(l.sweepTimeout),l.sweepTimeout=void 0;var d=Date.now();l.registrations.forEach(function(v,m){d-v.registeredAt>=c&&(l.finalize(v.value),l.registrations.delete(m))}),l.registrations.size>0&&l.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){l.sweep(0)}})}return Object.defineProperty(r.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(s,l,c){this.registrations.set(c,{value:l,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(r.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(s){this.registrations.delete(s)}}),Object.defineProperty(r.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,P2))}}),r})(),ty=typeof FinalizationRegistry<"u"?FinalizationRegistry:ey,bh=new ty(function(r){var s;(s=r.reaction)===null||s===void 0||s.dispose(),r.reaction=null}),lD={exports:{}},sD={};/**
 * @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 bp;function ny(){if(bp)return sD;bp=1;var r=Tg();function s(H,Y){return H===Y&&(H!==0||1/H===1/Y)||H!==H&&Y!==Y}var l=typeof Object.is=="function"?Object.is:s,c=r.useState,d=r.useEffect,v=r.useLayoutEffect,m=r.useDebugValue;function E(H,Y){var te=Y(),ie=c({inst:{value:te,getSnapshot:Y}}),le=ie[0].inst,pe=ie[1];return v(function(){le.value=te,le.getSnapshot=Y,x(le)&&pe({inst:le})},[H,te,Y]),d(function(){return x(le)&&pe({inst:le}),H(function(){x(le)&&pe({inst:le})})},[H]),m(te),te}function x(H){var Y=H.getSnapshot;H=H.value;try{var te=Y();return!l(H,te)}catch{return!0}}function C(H,Y){return Y()}var M=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?C:E;return sD.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:M,sD}var _p;function uy(){return _p||(_p=1,lD.exports=ny()),lD.exports}var ay=uy();function xp(r){r.reaction=new li("observer".concat(r.name),function(){var s;r.stateVersion=Symbol(),(s=r.onStoreChange)===null||s===void 0||s.call(r)})}function iy(r,s){s===void 0&&(s="observed");var l=Iu.useRef(null);if(!l.current){var c={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:s,subscribe:function(E){return bh.unregister(c),c.onStoreChange=E,c.reaction||(xp(c),c.stateVersion=Symbol()),function(){var x;c.onStoreChange=null,(x=c.reaction)===null||x===void 0||x.dispose(),c.reaction=null}},getSnapshot:function(){return c.stateVersion}};l.current=c}var d=l.current;d.reaction||(xp(d),bh.register(l,d,d)),Iu.useDebugValue(d.reaction,$2),ay.useSyncExternalStore(d.subscribe,d.getSnapshot,d.getSnapshot);var v,m;if(d.reaction.track(function(){try{v=r()}catch(E){m=E}}),m)throw m;return v}var cD,oD,k1=typeof Symbol=="function"&&Symbol.for,ry=(oD=(cD=Object.getOwnPropertyDescriptor(function(){},"name"))===null||cD===void 0?void 0:cD.configurable)!==null&&oD!==void 0?oD:!1,Ep=k1?Symbol.for("react.forward_ref"):typeof K.forwardRef=="function"&&K.forwardRef(function(r){return null}).$$typeof,Cp=k1?Symbol.for("react.memo"):typeof K.memo=="function"&&K.memo(function(r){return null}).$$typeof;function ly(r,s){var l;if(Cp&&r.$$typeof===Cp)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 c=(l=void 0)!==null&&l!==void 0?l:!1,d=r,v=r.displayName||r.name;if(Ep&&r.$$typeof===Ep&&(c=!0,d=r.render,typeof d!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var m=function(E,x){return iy(function(){return d(E,x)},v)};return m.displayName=r.displayName,ry&&Object.defineProperty(m,"name",{value:r.name,writable:!0,configurable:!0}),r.contextTypes&&(m.contextTypes=r.contextTypes),c&&(m=K.forwardRef(m)),m=K.memo(m),cy(r,m),m}var sy={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function cy(r,s){Object.keys(r).forEach(function(l){sy[l]||Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(r,l))})}var fD;J2(Y1.unstable_batchedUpdates);fD=bh.finalizeAllImmediately;function oy(r,s){if(Sp(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var l=Object.keys(r),c=Object.keys(s);if(l.length!==c.length)return!1;for(var d=0;d<l.length;d++)if(!Object.hasOwnProperty.call(s,l[d])||!Sp(r[l[d]],s[l[d]]))return!1;return!0}function Sp(r,s){return r===s?r!==0||1/r===1/s:r!==r&&s!==s}var Fp=Symbol("patchMixins"),V1=Symbol("patchedDefinition");function fy(r,s){var l=r[Fp]=r[Fp]||{},c=l[s]=l[s]||{};return c.locks=c.locks||0,c.methods=c.methods||[],c}function wp(r,s){for(var l=this,c=arguments.length,d=new Array(c>2?c-2:0),v=2;v<c;v++)d[v-2]=arguments[v];s.locks++;try{var m;return r!=null&&(m=r.apply(this,d)),m}finally{s.locks--,s.locks===0&&s.methods.forEach(function(E){E.apply(l,d)})}}function Mp(r,s){var l=function(){for(var d=arguments.length,v=new Array(d),m=0;m<d;m++)v[m]=arguments[m];wp.call.apply(wp,[this,r,s].concat(v))};return l}function hy(r,s,l){var c=fy(r,s);c.methods.indexOf(l)<0&&c.methods.push(l);var d=Object.getOwnPropertyDescriptor(r,s);if(!(d&&d[V1])){var v=r[s],m=Q1(r,s,d?d.enumerable:void 0,c,v);Object.defineProperty(r,s,m)}}function Q1(r,s,l,c,d){var v,m=Mp(d,c);return v={},v[V1]=!0,v.get=function(){return m},v.set=function(x){if(this===r)m=Mp(x,c);else{var C=Q1(this,s,l,c,x);Object.defineProperty(this,s,C)}},v.configurable=!0,v.enumerable=l,v}var Op=Symbol("ObserverAdministration"),Tp=Symbol("isMobXReactObserver");function ED(r){var s;return(s=r[Op])!=null?s:r[Op]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:CD(r.constructor),state:void 0,props:void 0,context:void 0}}function dy(r){var s=r.prototype;if(r[Tp]){var l=CD(r);throw new Error("The provided component class ("+l+") has already been declared as an observer component.")}else r[Tp]=!0;if(s.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(r.__proto__!==K.PureComponent){if(!s.shouldComponentUpdate)s.shouldComponentUpdate=Bp;else if(s.shouldComponentUpdate!==Bp)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}var c=s.render;if(typeof c!="function"){var d=CD(r);throw new Error("[mobx-react] class component ("+d+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}s.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:gy.call(this,c)}),this.render()};var v=s.componentDidMount;return s.componentDidMount=function(){var m=this,E=ED(this);return E.mounted=!0,bh.unregister(this),E.forceUpdate=function(){return m.forceUpdate()},(!E.reaction||E.reactionInvalidatedBeforeMount)&&E.forceUpdate(),v?.apply(this,arguments)},hy(s,"componentWillUnmount",function(){var m,E=ED(this);(m=E.reaction)==null||m.dispose(),E.reaction=null,E.forceUpdate=null,E.mounted=!1,E.reactionInvalidatedBeforeMount=!1}),r}function CD(r){return r.displayName||r.name||"<component>"}function gy(r){var s=r.bind(this),l=ED(this);function c(){l.reaction||(l.reaction=vy(l),l.mounted||bh.register(this,l,this));var d=void 0,v=void 0;if(l.reaction.track(function(){try{v=Km(!1,s)}catch(m){d=m}}),d)throw d;return v}return c}function vy(r){return new li(r.name+".render()",function(){if(!r.mounted){r.reactionInvalidatedBeforeMount=!0;return}try{r.forceUpdate==null||r.forceUpdate()}catch{var s;(s=r.reaction)==null||s.dispose(),r.reaction=null}})}function Bp(r,s){return this.state!==s?!0:!oy(this.props,r)}function Yi(r,s){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(K.Component,r)||Object.prototype.isPrototypeOf.call(K.PureComponent,r)?dy(r):ly(r)}Iu.version.split(".")[0];if(!K.Component)throw new Error("mobx-react requires React to be available");if(!hn)throw new Error("mobx-react requires mobx to be available");const Z1=({opened:r,onClose:s,children:l,className:c=""})=>{const[d,v]=K.useState(r),[m,E]=K.useState(!1);if(K.useEffect(()=>{if(r)v(!0),requestAnimationFrame(()=>E(!0));else{E(!1);const C=setTimeout(()=>v(!1),180);return()=>clearTimeout(C)}},[r]),K.useEffect(()=>{if(!r)return;const C=M=>{M.key==="Escape"&&s()};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[r,s]),!d)return null;const x=p.jsxs("div",{className:"fixed inset-0 z-[300] flex items-center justify-center p-4",children:[p.jsx("div",{className:`absolute inset-0 bg-black/50 transition-opacity duration-200 ${m?"opacity-100":"opacity-0"}`,onClick:s}),p.jsx("div",{className:`relative z-[1] mx-auto box-border min-w-0 w-full max-w-[400px] shrink-0 rounded-2xl bg-[var(--tg-bg)]
          shadow-2xl overflow-hidden
          transition-all duration-200 ${c}
          ${m?"opacity-100 scale-100":"opacity-0 scale-95"}
        `,children:l})]});return Y1.createPortal(x,document.body)},K1=K.createRef(),LD=r=>{K1.current?.show(r)},X1=K.forwardRef((r,s)=>{const[l,c]=K.useState(null);return K.useImperativeHandle(s,()=>({show:d=>c(d)})),p.jsx(Z1,{opened:!!l,onClose:()=>c(null),children:l&&p.jsxs("div",{className:"p-5",children:[p.jsx("div",{className:"text-[17px] font-semibold mb-2 text-[var(--tg-text-primary)]",children:l.title}),l.content&&p.jsx("div",{className:"text-[15px] text-[var(--tg-text-secondary)] mb-5 leading-relaxed",children:l.content}),p.jsx("div",{className:"flex flex-col gap-1.5",children:l.buttons.map((d,v)=>{const m=d.variant==="danger"||/удал|выйти|закры/i.test(d.text),x=m?"text-[var(--tg-danger)] hover:bg-[var(--tg-danger-soft)]":v===0&&!m?"text-[var(--tg-accent)] hover:bg-[var(--tg-accent-soft)]":"text-[var(--tg-text-primary)] hover:bg-[var(--tg-bg-secondary)]";return p.jsx("button",{type:"button",onClick:()=>{d.onClick?.(),c(null)},className:`w-full h-11 rounded-xl font-medium text-[15px]
                    tg-press transition-colors ${x}
                  `,children:d.text},v)})})]})})});X1.displayName="AlertRoot";var I1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Rp=Iu.createContext&&Iu.createContext(I1),Dy=["attr","size","title"];function py(r,s){if(r==null)return{};var l=Ay(r,s),c,d;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(r);for(d=0;d<v.length;d++)c=v[d],!(s.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(r,c)&&(l[c]=r[c])}return l}function Ay(r,s){if(r==null)return{};var l={};for(var c in r)if(Object.prototype.hasOwnProperty.call(r,c)){if(s.indexOf(c)>=0)continue;l[c]=r[c]}return l}function Sg(){return Sg=Object.assign?Object.assign.bind():function(r){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(r[c]=l[c])}return r},Sg.apply(this,arguments)}function Np(r,s){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(r,d).enumerable})),l.push.apply(l,c)}return l}function Fg(r){for(var s=1;s<arguments.length;s++){var l=arguments[s]!=null?arguments[s]:{};s%2?Np(Object(l),!0).forEach(function(c){my(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):Np(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function my(r,s,l){return s=yy(s),s in r?Object.defineProperty(r,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[s]=l,r}function yy(r){var s=by(r,"string");return typeof s=="symbol"?s:s+""}function by(r,s){if(typeof r!="object"||!r)return r;var l=r[Symbol.toPrimitive];if(l!==void 0){var c=l.call(r,s);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(r)}function J1(r){return r&&r.map((s,l)=>Iu.createElement(s.tag,Fg({key:l},s.attr),J1(s.child)))}function tt(r){return s=>Iu.createElement(_y,Sg({attr:Fg({},r.attr)},s),J1(r.child))}function _y(r){var s=l=>{var{attr:c,size:d,title:v}=r,m=py(r,Dy),E=d||l.size||"1em",x;return l.className&&(x=l.className),r.className&&(x=(x?x+" ":"")+r.className),Iu.createElement("svg",Sg({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},l.attr,c,m,{className:x,style:Fg(Fg({color:r.color||l.color},l.style),r.style),height:E,width:E,xmlns:"http://www.w3.org/2000/svg"}),v&&Iu.createElement("title",null,v),r.children)};return Rp!==void 0?Iu.createElement(Rp.Consumer,null,l=>s(l)):s(I1)}function zD(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 5v14"},child:[]},{tag:"path",attr:{d:"m19 12-7 7-7-7"},child:[]}]})(r)}function xy(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m12 19-7-7 7-7"},child:[]},{tag:"path",attr:{d:"M19 12H5"},child:[]}]})(r)}function Ey(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"},child:[]}]})(r)}function Cy(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 16 12 14 15 10 15 8 12 2 12"},child:[]},{tag:"path",attr:{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"},child:[]}]})(r)}function Sy(r){return tt({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 Fy(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"4",x2:"20",y1:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"4",x2:"20",y1:"6",y2:"6"},child:[]},{tag:"line",attr:{x1:"4",x2:"20",y1:"18",y2:"18"},child:[]}]})(r)}function $1(r){return tt({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 wy(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"},child:[]}]})(r)}function My(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 17v5"},child:[]},{tag:"path",attr:{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"},child:[]}]})(r)}function Oy(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12h14"},child:[]},{tag:"path",attr:{d:"M12 5v14"},child:[]}]})(r)}function Ty(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"},child:[]},{tag:"path",attr:{d:"M21 3v5h-5"},child:[]}]})(r)}function By(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"path",attr:{d:"m21 21-4.3-4.3"},child:[]}]})(r)}function Ry(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11v1a10 10 0 1 1-9-10"},child:[]},{tag:"path",attr:{d:"M8 14s1.5 2 4 2 4-2 4-2"},child:[]},{tag:"line",attr:{x1:"9",x2:"9.01",y1:"9",y2:"9"},child:[]},{tag:"line",attr:{x1:"15",x2:"15.01",y1:"9",y2:"9"},child:[]},{tag:"path",attr:{d:"M16 5h6"},child:[]},{tag:"path",attr:{d:"M19 2v6"},child:[]}]})(r)}function Ny(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M8 14s1.5 2 4 2 4-2 4-2"},child:[]},{tag:"line",attr:{x1:"9",x2:"9.01",y1:"9",y2:"9"},child:[]},{tag:"line",attr:{x1:"15",x2:"15.01",y1:"9",y2:"9"},child:[]}]})(r)}function W1(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 6h18"},child:[]},{tag:"path",attr:{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"},child:[]},{tag:"path",attr:{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",x2:"10",y1:"11",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",x2:"14",y1:"11",y2:"17"},child:[]}]})(r)}function jy(r){return tt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"},child:[]}]})(r)}function Ly(r){return tt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]}]})(r)}function zy(r){return tt({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 Uy(r){return tt({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 Hy(r){return tt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},child:[]}]})(r)}function Hg(r){return tt({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 Gy{constructor(){B1(this)}fastAnswers=[];loadFastAnswers(){this.authEnabled&&St.fastAnswers().then(({result:s})=>{this.fastAnswers=s??[]})}isFixedChannel=!1;setIsFixedChannel(s){this.isFixedChannel=s}userID=null;authEnabled=!1;loadUser(){return new Promise(s=>{St.profileInfo().then(({result:l})=>{this.userID=l?.profileID??null,this.authEnabled=l?.authEnabled??!1,s(!0)})})}viewportWidth=typeof window<"u"?window.innerWidth:1024;setViewportWidth(s){this.viewportWidth=s}isMobile=()=>this.viewportWidth<768||this.cap;cap=!1;setCap(s){this.cap=s}channelTab="member";setChannelTab(s){this.channelTab=s}selectChannel=null;setSelectChannel(s){this.selectChannel=s}dialogsLoading=!1;channelList=[];channelListLastHash=null;joinChannelListLastHash=null;closedChannelListLastHash=null;channelListPollingInterval=null;channelListApi(){switch(this.channelTab){case"join":return St.joinChannelList;case"closed":return St.closedChannelList;case"member":default:return St.channelList}}getChannelListLastHash(){switch(this.channelTab){case"join":return this.joinChannelListLastHash;case"closed":return this.closedChannelListLastHash;case"member":default:return this.channelListLastHash}}setChannelListLastHash(s){switch(this.channelTab){case"join":this.joinChannelListLastHash=s;break;case"closed":this.closedChannelListLastHash=s;break;case"member":default:this.channelListLastHash=s;break}}loadChannelList(){const s=this.channelList.length===0;s&&(this.dialogsLoading=!0),this.channelListApi()({},["shmChannelMessages"]).then(({result:l})=>{Pt(()=>{this.channelList=l?.data??[],this.setChannelListLastHash(l?.hash??null)})}).finally(()=>{Pt(()=>{s&&(this.dialogsLoading=!1)})})}startChannelListPolling(){this.stopChannelListPolling();const s=5e3;this.channelListPollingInterval=setInterval(()=>{this.channelListApi()({limit:50,offset:0,onlyHash:!0}).then(({result:l})=>{const c=this.getChannelListLastHash(),d=l?.hash??null;d!=null&&d!==c&&this.loadChannelList()})},s)}stopChannelListPolling(){this.channelListPollingInterval&&(clearInterval(this.channelListPollingInterval),this.channelListPollingInterval=null)}}const be=new Gy,wg=({children:r,onClick:s,disabled:l,loading:c,variant:d="primary",size:v="md",className:m="",type:E="button",fullWidth:x})=>{const C={primary:"bg-[var(--tg-accent)] text-white hover:opacity-90 active:opacity-80",secondary:"bg-[var(--tg-bg-secondary)] text-[var(--tg-text-primary)] hover:bg-[var(--tg-divider)]",ghost:"bg-transparent text-[var(--tg-accent)] hover:bg-[var(--tg-accent-soft)]",danger:"bg-[var(--tg-danger)] text-white hover:opacity-90 active:opacity-80"},M={sm:"h-8 px-3 text-sm rounded-lg",md:"h-10 px-4 text-[15px] rounded-xl",lg:"h-12 px-5 text-[15px] rounded-xl"};return p.jsx("button",{type:E,onClick:s,disabled:l||c,className:`
        inline-flex items-center justify-center gap-2 font-medium
        transition-all duration-150
        ${C[d]}
        ${M[v]}
        ${x?"w-full":""}
        ${l||c?"opacity-50 pointer-events-none":""}
        ${m}
      `,children:c?p.jsx("span",{className:"inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):r})},qy=r=>null,jp=["🦁","🐯","🦅","🦉","🦄","🐎","🦌","🐺","🐆","🦢","🐬","🐳","🦖","🦕","🐉","😎","🙂","😊","🧐","🤓","🤖","👾","🐱","🦊","🐻","🐼","🐨","🐯","🦁","🐸","🐙","🐶","🐱","🐰","🐻","🐼","🐨"],UD=r=>{let s=0;for(let c=0;c<r.length;c++)s=r.charCodeAt(c)+((s<<5)-s);const l=Math.abs(s)%jp.length;return jp[l]},Lp=[["#FF885E","#FF516A"],["#FFCD6A","#FFA85C"],["#82B1FF","#665FFF"],["#A0DE7E","#54CB68"],["#53EDD6","#28C9B7"],["#72D5FD","#2A9EF1"],["#E0A2F3","#D669ED"],["#FF8AAC","#F95887"]],Yy=r=>{let s=0;for(let l=0;l<r.length;l++)s=r.charCodeAt(l)+((s<<5)-s);return Lp[Math.abs(s)%Lp.length]},_s=({id:r,size:s=40,className:l="",online:c})=>{const d=r??"",[v,m]=Yy(d),E=UD(d),x=Math.round(s*.55);return p.jsxs("div",{className:`relative shrink-0 ${l}`,style:{width:s,height:s},children:[p.jsx("div",{className:"w-full h-full rounded-full overflow-hidden flex items-center justify-center",style:{background:`linear-gradient(135deg, ${v} 0%, ${m} 100%)`,fontSize:x,lineHeight:1},children:p.jsx("span",{style:{filter:"drop-shadow(0 1px 1px rgba(0,0,0,0.15))"},children:E})}),c&&p.jsx("div",{className:"absolute bottom-0 right-0 rounded-full ring-2",style:{width:Math.max(8,s*.25),height:Math.max(8,s*.25),background:"#4fae4e","--tw-ring-color":"var(--tg-bg)"}})]})},ky=({title:r,status:s,statusTone:l,avatarId:c,avatarSize:d=40})=>p.jsxs("div",{className:"flex items-center gap-3 min-w-0 pl-0.5",children:[p.jsx(_s,{id:c,size:d}),p.jsxs("div",{className:"min-w-0 flex flex-col justify-center",children:[p.jsx("div",{className:"text-[16px] font-semibold leading-tight truncate text-[var(--tg-text-primary)]",children:r}),p.jsx("div",{className:`text-[13px] leading-snug truncate mt-0.5 font-normal ${l==="muted"?"text-[var(--tg-text-secondary)]":"text-[var(--tg-accent)]"}`,children:s})]})]}),Vy=({onClick:r})=>p.jsx("div",{className:"flex justify-center mt-4 mb-2",children:p.jsx("button",{type:"button",onClick:r,className:"text-[13px] font-bold text-[var(--tg-danger)] hover:opacity-80 active:opacity-70 tg-press",children:"Завершить диалог"})}),Qy=({ts:r})=>{const s=en.unix(r),l=en();let c=s.format("D MMMM");return s.isSame(l,"day")?c="Сегодня":s.isSame(l.subtract(1,"day"),"day")?c="Вчера":s.isSame(l,"year")&&(c=s.format("D MMMM")),p.jsx("div",{className:"flex justify-center my-3 sticky top-2 z-[5]",children:p.jsx("div",{className:"px-3 py-0.5 rounded-md text-[11px] font-bold uppercase tracking-[0.12em] text-[var(--tg-text-secondary)] bg-transparent",children:c})})};function Gg(r){return tt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"44",d:"M465 127 241 384l-92-92m-9 93-93-93m316-165L236 273"},child:[]}]})(r)}function Zy(r){return tt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"44",d:"M416 128 192 384l-96-96"},child:[]}]})(r)}function P1(r){return tt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m476.59 227.05-.16-.07L49.35 49.84A23.56 23.56 0 0 0 27.14 52 24.65 24.65 0 0 0 16 72.59v113.29a24 24 0 0 0 19.52 23.57l232.93 43.07a4 4 0 0 1 0 7.86L35.53 303.45A24 24 0 0 0 16 327v113.31A23.57 23.57 0 0 0 26.59 460a23.94 23.94 0 0 0 13.22 4 24.55 24.55 0 0 0 9.52-1.93L476.4 285.94l.19-.09a32 32 0 0 0 0-58.8z"},child:[]}]})(r)}const Ky=({avatarId:r,title:s,preview:l,timeLabel:c,selected:d,closed:v,switchBlocked:m,onClick:E,showReadCheck:x,unread:C})=>p.jsx("div",{className:"px-0.5",children:p.jsxs("button",{type:"button",disabled:m,onClick:E,className:`
        relative w-full flex items-center gap-3 rounded-2xl px-3 py-2.5 text-left
        transition-all duration-150 tg-press
        ${d?"bg-[var(--tg-bg)] shadow-md ring-1 ring-black/[0.07] dark:ring-white/[0.12]":"bg-[var(--tg-bg)]/80 hover:bg-[var(--tg-bg)] shadow-sm"}
        ${v&&!d?"opacity-55":""}
        ${m?"opacity-45 cursor-not-allowed":""}
      `,children:[p.jsx(_s,{id:r,size:56,className:"shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[p.jsxs("div",{className:"flex items-baseline justify-between gap-2 min-w-0",children:[p.jsx("span",{className:"truncate text-[15px] font-bold tracking-tight text-[var(--tg-text-primary)]",children:s}),p.jsx("span",{className:"shrink-0 text-[12px] tabular-nums text-[var(--tg-text-secondary)]",children:c})]}),p.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[x&&p.jsx(Gg,{size:14,className:"shrink-0 text-[var(--tg-accent)]"}),p.jsx("span",{className:`flex-1 min-w-0 truncate text-[14px] leading-snug ${C>0&&!d?"text-[var(--tg-text-primary)] font-semibold":"text-[var(--tg-text-secondary)] font-normal"}`,children:l}),C>0&&p.jsx("span",{className:"shrink-0 min-w-[22px] h-[22px] px-1.5 inline-flex items-center justify-center rounded-full text-[12px] font-bold bg-[var(--tg-accent)] text-white",children:C>99?"99+":C})]})]})]})}),Xy=()=>p.jsx("div",{className:"flex flex-col gap-2 px-2 py-2 bg-[var(--tg-bg-secondary)] min-h-0",children:[1,2,3,4,5].map(r=>p.jsxs("div",{className:"rounded-2xl bg-[var(--tg-bg)]/90 shadow-sm px-3 py-2.5 flex items-center gap-3",children:[p.jsx("div",{className:"w-14 h-14 rounded-full bg-[var(--tg-bg-secondary)] animate-pulse shrink-0"}),p.jsxs("div",{className:"flex-1 space-y-2",children:[p.jsxs("div",{className:"flex justify-between gap-2",children:[p.jsx("div",{className:"h-3.5 w-2/5 rounded-lg bg-[var(--tg-bg-secondary)] animate-pulse"}),p.jsx("div",{className:"h-2.5 w-10 rounded bg-[var(--tg-bg-secondary)] animate-pulse shrink-0"})]}),p.jsx("div",{className:"h-2.5 w-4/5 rounded-lg bg-[var(--tg-bg-secondary)] animate-pulse"})]})]},r))}),Iy=()=>p.jsxs("div",{className:"flex flex-col items-center justify-center py-28 px-8 bg-[var(--tg-bg-secondary)] text-center",children:[p.jsx("div",{className:"w-20 h-20 rounded-full bg-[var(--tg-bg)] flex items-center justify-center mb-5 shadow-inner border border-[var(--tg-divider)]",children:p.jsx(Cy,{size:36,strokeWidth:1.25,className:"text-[var(--tg-text-secondary)]"})}),p.jsx("div",{className:"text-[17px] font-bold text-[var(--tg-text-primary)] tracking-tight",children:"Нет активных диалогов"}),p.jsx("p",{className:"text-[14px] text-[var(--tg-text-secondary)] mt-2 max-w-[260px] leading-relaxed",children:"Когда появятся новые сообщения, они отобразятся здесь"})]}),Jy=({children:r})=>p.jsx("div",{className:"shrink-0 px-4 py-3 border-t border-[var(--tg-divider)] bg-[var(--tg-bg)]",children:r}),$y=({children:r})=>p.jsx("div",{className:"w-[34%] min-w-[288px] max-w-[420px] shrink-0 flex flex-col border-r border-[var(--tg-divider)] bg-[var(--tg-bg-secondary)]",children:r}),Wy=({searchActive:r,search:s,onSearchChange:l,onSearchBlur:c})=>r?p.jsx("input",{autoFocus:!0,value:s,onChange:d=>l(d.target.value),onBlur:c,placeholder:"Поиск",className:"w-full h-9 px-3 rounded-full bg-[var(--tg-bg-secondary)] outline-none text-[14px] text-[var(--tg-text-primary)] placeholder:text-[var(--tg-text-secondary)] border border-transparent focus:border-[var(--tg-divider)]"}):p.jsx("div",{className:"text-[18px] font-semibold pl-1 tracking-tight text-[var(--tg-text-primary)]",children:"Сообщения"}),Py=()=>p.jsx("div",{className:"flex flex-col gap-3 px-3 py-4",children:[{side:"in",w:220},{side:"out",w:200},{side:"in",w:160},{side:"out",w:260},{side:"in",w:240}].map((r,s)=>p.jsx("div",{className:`flex ${r.side==="out"?"justify-end":"justify-start"}`,children:p.jsx("div",{className:r.side==="out"?"h-10 rounded-[22px] animate-pulse bg-gradient-to-r from-amber-300/55 via-pink-400/50 to-violet-500/45 dark:from-violet-950/80 dark:via-fuchsia-900/70 dark:to-pink-900/65 shadow-[0_2px_10px_rgba(0,0,0,0.08)]":"h-10 rounded-[22px] animate-pulse border border-black/[0.06] dark:border-white/[0.08] bg-[var(--tg-bg)]/70 backdrop-blur-[1px] shadow-[0_1px_6px_rgba(0,0,0,0.05)]",style:{width:r.w}})},s))}),eb=()=>p.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center tg-chat-bg px-8",children:[p.jsx("div",{className:"w-24 h-24 rounded-full border-2 border-dashed border-[var(--tg-divider)] flex items-center justify-center mb-6",children:p.jsx("span",{className:"text-[32px] leading-none opacity-40",children:"✉"})}),p.jsx("p",{className:"text-[17px] font-bold text-[var(--tg-text-primary)] text-center",children:"Ваши сообщения"}),p.jsx("p",{className:"text-[14px] text-[var(--tg-text-secondary)] text-center mt-2 max-w-[280px] leading-relaxed",children:"Отправляйте фото и сообщения лично или группам"})]}),tb=({children:r})=>p.jsx("div",{className:`relative flex-1 min-w-0 flex items-center pl-2 pr-1
    bg-[var(--tg-bg-secondary)] rounded-[22px]
    border-0`,children:r}),nb=({children:r})=>p.jsx("div",{className:"shrink-0 relative bg-[var(--tg-bg)] border-t border-[var(--tg-divider)] pb-safe",children:r}),ub=({visible:r,onClick:s,unread:l})=>p.jsxs("button",{type:"button","aria-hidden":!r,onClick:s,className:`
      absolute right-4 bottom-4 z-10
      w-12 h-12 rounded-full
      bg-[var(--tg-bg)] text-[var(--tg-accent)]
      shadow-[0_2px_12px_rgba(0,0,0,0.15)] dark:shadow-[0_2px_16px_rgba(0,0,0,0.5)]
      ring-2 ring-[var(--tg-accent)]/25
      inline-flex items-center justify-center
      transition-all duration-200 tg-press
      ${r?"opacity-100 scale-100 pointer-events-auto":"opacity-0 scale-90 pointer-events-none"}
    `,children:[p.jsx(zD,{size:22,strokeWidth:2.5}),l>0&&p.jsx("span",{className:`absolute -top-1 -right-1 min-w-[20px] h-5 px-1
          rounded-full text-[10px] font-bold
          inline-flex items-center justify-center
          bg-[var(--tg-danger)] text-white`,children:l>99?"99+":l})]}),ab={MainSidebarHeaderCenter:Wy,MainDesktopSidebarShell:$y,NoChannelSelected:eb,DialogRow:Ky,DialogsListSkeleton:Xy,EmptyDialogs:Iy,ChannelHeaderCenter:ky,JoinChannelBar:Jy,MessagesSkeleton:Py,DateChip:Qy,ScrollToBottomButton:ub,CloseConversationButton:Vy,BubbleTail:qy,RichMessagebarRoot:nb,RichMessagebarComposerWrap:tb},ib=({isOut:r})=>{const s=r?"var(--tg-bubble-out)":"var(--tg-bubble-in)",l=r?"M0 0 L11 0 C11 9, 7 16, 0 17 Z":"M11 0 L0 0 C0 9, 4 16, 11 17 Z";return p.jsx("svg",{className:`absolute -bottom-px pointer-events-none ${r?"-right-[10px]":"-left-[10px]"}`,width:"11",height:"17",viewBox:"0 0 11 17","aria-hidden":!0,children:p.jsx("path",{d:l,fill:s})})},rb=({title:r,status:s,statusTone:l,avatarId:c,avatarSize:d=40})=>p.jsxs("div",{className:"flex items-center gap-3 min-w-0 pl-1",children:[p.jsx(_s,{id:c,size:d}),p.jsxs("div",{className:"min-w-0",children:[p.jsx("div",{className:"font-semibold text-[15px] leading-5 truncate text-[var(--tg-text-primary)]",children:r}),p.jsx("div",{className:`text-[12px] leading-4 truncate ${l==="muted"?"text-[var(--tg-text-secondary)]":"text-[var(--tg-accent)]"}`,children:s})]})]}),lb=({onClick:r})=>p.jsx("div",{className:"flex justify-center mt-3 mb-1",children:p.jsx("button",{type:"button",onClick:r,className:`px-3 py-1.5 rounded-full bg-[var(--tg-bg)]
                      text-[var(--tg-danger)] text-[13px] font-medium
                      border border-[var(--tg-danger-soft)]
                      shadow-sm tg-press hover:bg-[var(--tg-danger-soft)]`,children:"Завершить диалог"})}),sb=({ts:r})=>{const s=en.unix(r),l=en();let c=s.format("D MMMM");return s.isSame(l,"day")?c="Сегодня":s.isSame(l.subtract(1,"day"),"day")?c="Вчера":s.isSame(l,"year")&&(c=s.format("D MMMM")),p.jsx("div",{className:"flex justify-center my-3 sticky top-2 z-[5]",children:p.jsx("div",{className:"px-3 py-1 rounded-full bg-black/40 text-white text-[12px] backdrop-blur-sm",children:c})})},eA=({children:r,variant:s="accent",className:l=""})=>{const c=s==="accent"?"bg-[var(--tg-accent)] text-white":"bg-[var(--tg-bg-secondary)] text-[var(--tg-text-secondary)]";return p.jsx("span",{className:`inline-flex items-center justify-center min-w-[20px] h-5 px-1.5
        text-xs font-semibold rounded-full ${c} ${l}`,children:r})},cb=({avatarId:r,title:s,preview:l,timeLabel:c,selected:d,closed:v,switchBlocked:m,onClick:E,showReadCheck:x,unread:C})=>p.jsxs("button",{type:"button",disabled:m,onClick:E,className:`
        relative w-full flex items-center gap-3 px-3 py-2 rounded-xl
        text-left tg-press transition-colors duration-150
        ${d?"bg-[var(--tg-bg-selected)] text-[var(--tg-bg-selected-text)]":"hover:bg-[var(--tg-bg-secondary)]"}
        ${v&&!d?"opacity-60":""}
        ${m?"opacity-50 cursor-not-allowed":""}
      `,children:[p.jsx(_s,{id:r,size:52}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[p.jsx("div",{className:`flex-1 min-w-0 truncate font-semibold text-[15px] ${d?"text-white":"text-[var(--tg-text-primary)]"}`,children:s}),p.jsx("div",{className:`shrink-0 text-[12px] ${d?"text-white/80":"text-[var(--tg-text-secondary)]"}`,children:c})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[x&&p.jsx(Gg,{size:16,className:d?"text-white":"text-[var(--tg-accent)]"}),p.jsx("div",{className:`flex-1 min-w-0 truncate text-[14px] ${d?"text-white/80":"text-[var(--tg-text-secondary)]"}`,children:l}),C>0&&!d&&p.jsx(eA,{variant:"accent",children:C}),C>0&&d&&p.jsx("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-semibold rounded-full bg-white text-[var(--tg-bg-selected)]",children:C})]})]})]}),ob=()=>p.jsx("div",{className:"px-2 py-1",children:[1,2,3,4,5].map(r=>p.jsxs("div",{className:"flex items-center gap-3 py-2.5 px-2",children:[p.jsx("div",{className:"w-[52px] h-[52px] rounded-full bg-[var(--tg-bg-secondary)] animate-pulse"}),p.jsxs("div",{className:"flex-1 space-y-2",children:[p.jsx("div",{className:"h-3 w-1/3 rounded bg-[var(--tg-bg-secondary)] animate-pulse"}),p.jsx("div",{className:"h-3 w-3/4 rounded bg-[var(--tg-bg-secondary)] animate-pulse"})]})]},r))}),fb=()=>p.jsxs("div",{className:"flex flex-col items-center justify-center py-20 opacity-60",children:[p.jsx($1,{size:36,className:"mb-3 text-[var(--tg-text-secondary)]"}),p.jsx("div",{className:"text-[15px] text-[var(--tg-text-secondary)]",children:"Нет диалогов"})]}),hb=({children:r})=>p.jsx("div",{className:"shrink-0 px-3 py-3 border-t border-[var(--tg-divider)] bg-[var(--tg-bg)]",children:r}),db=({children:r})=>p.jsx("div",{className:"w-[380px] shrink-0 flex flex-col border-r border-[var(--tg-divider)]",children:r}),gb=({searchActive:r,search:s,onSearchChange:l,onSearchBlur:c})=>r?p.jsx("input",{autoFocus:!0,value:s,onChange:d=>l(d.target.value),onBlur:c,placeholder:"Поиск",className:"w-full bg-[var(--tg-bg-secondary)] rounded-full h-9 px-4 outline-none text-[15px]"}):p.jsx("div",{className:"text-[18px] font-semibold pl-2",children:"Чаты"}),vb=()=>p.jsx("div",{className:"flex flex-col gap-3 px-3 py-4",children:[{side:"in",w:200},{side:"out",w:240},{side:"in",w:120},{side:"out",w:180},{side:"in",w:220}].map((r,s)=>p.jsx("div",{className:`flex ${r.side==="out"?"justify-end":"justify-start"}`,children:p.jsx("div",{className:"h-10 rounded-2xl bg-black/10 dark:bg-white/10 animate-pulse",style:{width:r.w}})},s))}),Db=()=>p.jsx("div",{className:"flex-1 flex items-center justify-center  tg-chat-bg",children:p.jsx("div",{className:"rounded-2xl bg-black/30 dark:bg-white/10 px-4 py-2 text-white text-[14px] backdrop-blur-sm",children:"Выберите чат, чтобы начать общение"})}),pb=({children:r})=>p.jsx("div",{className:"relative flex-1 min-w-0 bg-[var(--tg-bg-secondary)] rounded-2xl flex items-end pr-1",children:r}),Ab=({children:r})=>p.jsx("div",{className:"shrink-0 relative bg-[var(--tg-bg)] border-t border-[var(--tg-divider)]",children:r}),mb=({visible:r,onClick:s,unread:l})=>p.jsxs("button",{type:"button","aria-hidden":!r,onClick:s,className:`
            absolute right-3 bottom-3 z-10
            w-11 h-11 rounded-full
            bg-[var(--tg-bg)] border border-[var(--tg-divider)]
            shadow-md
            inline-flex items-center justify-center
            text-[var(--tg-text-secondary)]
            transition-all duration-200 tg-press
            ${r?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-2 pointer-events-none"}
          `,children:[p.jsx(zD,{size:20}),l>0&&p.jsx("span",{className:`absolute -top-1 -right-1 min-w-[20px] h-5 px-1.5
                  rounded-full text-[11px] font-semibold
                  inline-flex items-center justify-center
                  bg-[var(--tg-accent)] text-white`,children:l>99?"99+":l})]}),yb={MainSidebarHeaderCenter:gb,MainDesktopSidebarShell:db,NoChannelSelected:Db,DialogRow:cb,DialogsListSkeleton:ob,EmptyDialogs:fb,ChannelHeaderCenter:rb,JoinChannelBar:hb,MessagesSkeleton:vb,DateChip:sb,ScrollToBottomButton:mb,CloseConversationButton:lb,BubbleTail:ib,RichMessagebarRoot:Ab,RichMessagebarComposerWrap:pb},bb=r=>null,_b=({title:r,status:s,statusTone:l,avatarId:c,avatarSize:d=40})=>p.jsxs("div",{className:"flex items-center gap-3 min-w-0 pl-0.5",children:[p.jsx(_s,{id:c,size:d}),p.jsxs("div",{className:"min-w-0 flex flex-col justify-center",children:[p.jsx("div",{className:"text-[16px] font-medium leading-tight truncate text-[var(--tg-text-primary)]",children:r}),p.jsx("div",{className:`text-[13px] leading-snug truncate mt-0.5 ${l==="muted"?"text-[var(--tg-text-secondary)]":"text-[var(--tg-accent)]"}`,children:s})]})]}),xb=({onClick:r})=>p.jsx("div",{className:"flex justify-center mt-3 mb-1",children:p.jsx("button",{type:"button",onClick:r,className:`px-4 py-2 rounded-lg text-[14px] font-medium
        text-[var(--tg-danger)] bg-[var(--tg-bg)]
        border border-[var(--tg-danger-soft)]
        shadow-sm tg-press hover:bg-[var(--tg-danger-soft)]`,children:"Завершить диалог"})}),Eb=({ts:r})=>{const s=en.unix(r),l=en();let c=s.format("D MMMM");return s.isSame(l,"day")?c="Сегодня":s.isSame(l.subtract(1,"day"),"day")?c="Вчера":s.isSame(l,"year")&&(c=s.format("D MMMM")),p.jsx("div",{className:"flex justify-center my-2 sticky top-2 z-[5]",children:p.jsx("div",{className:`px-2.5 py-1 rounded-lg text-[12px] font-medium shadow-sm
          bg-[#e1f4e5] dark:bg-[#182c24]
          text-[var(--tg-text-secondary)]`,children:c})})},Cb=({avatarId:r,title:s,preview:l,timeLabel:c,selected:d,closed:v,switchBlocked:m,onClick:E,showReadCheck:x,unread:C})=>p.jsxs("button",{type:"button",disabled:m,onClick:E,className:`
      relative w-full flex items-start gap-3 px-3 py-2.5 text-left
      border-b border-[var(--tg-divider)] tg-press transition-colors duration-100
      ${d?"bg-[var(--tg-bg-selected)]":"hover:bg-[var(--tg-bg-secondary)]"}
      ${v&&!d?"opacity-65":""}
      ${m?"opacity-50 cursor-not-allowed":""}
    `,children:[p.jsx(_s,{id:r,size:49,className:"shrink-0 mt-0.5"}),p.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[p.jsxs("div",{className:"flex items-baseline justify-between gap-2 min-w-0",children:[p.jsx("span",{className:`truncate text-[16px] font-medium ${d?"text-[var(--tg-bg-selected-text)]":"text-[var(--tg-text-primary)]"}`,children:s}),p.jsx("span",{className:`shrink-0 text-[12px] tabular-nums ${d?"text-[var(--tg-bg-selected-text)] opacity-80":"text-[var(--tg-accent)]"}`,children:c})]}),p.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[x&&p.jsx(Gg,{size:15,className:d?"text-[var(--tg-bg-selected-text)] shrink-0 opacity-90":"text-[var(--tg-accent)] shrink-0"}),p.jsx("span",{className:`flex-1 min-w-0 truncate text-[14px] leading-tight ${d?"text-[var(--tg-bg-selected-text)] opacity-85":"text-[var(--tg-text-secondary)]"}`,children:l}),C>0&&!d&&p.jsx(eA,{variant:"accent",className:"shrink-0 scale-95",children:C}),C>0&&d&&p.jsx("span",{className:"shrink-0 inline-flex min-w-[20px] h-5 px-1.5 items-center justify-center rounded-full text-[11px] font-semibold bg-[var(--tg-accent)] text-white",children:C})]})]})]}),Sb=()=>p.jsx("div",{className:"bg-[var(--tg-bg)]",children:[1,2,3,4,5,6].map(r=>p.jsxs("div",{className:"flex items-start gap-3 px-3 py-2.5 border-b border-[var(--tg-divider)]",children:[p.jsx("div",{className:"w-[49px] h-[49px] rounded-full bg-[var(--tg-bg-secondary)] animate-pulse shrink-0"}),p.jsxs("div",{className:"flex-1 space-y-2 pt-1",children:[p.jsxs("div",{className:"flex justify-between gap-2",children:[p.jsx("div",{className:"h-3 w-2/5 rounded bg-[var(--tg-bg-secondary)] animate-pulse"}),p.jsx("div",{className:"h-2.5 w-10 rounded bg-[var(--tg-bg-secondary)] animate-pulse shrink-0"})]}),p.jsx("div",{className:"h-2.5 w-4/5 rounded bg-[var(--tg-bg-secondary)] animate-pulse"})]})]},r))}),Fb=()=>p.jsxs("div",{className:"flex flex-col items-center justify-center py-24 px-6 bg-[var(--tg-bg)]",children:[p.jsx($1,{size:40,strokeWidth:1.25,className:"mb-4 text-[var(--tg-text-secondary)] opacity-70"}),p.jsx("div",{className:"text-[15px] text-[var(--tg-text-secondary)] text-center",children:"Нет диалогов"})]}),wb=({children:r})=>p.jsx("div",{className:"shrink-0 px-3 py-3 border-t border-[var(--tg-divider)] bg-[var(--tg-bg-secondary)]",children:r}),Mb=({children:r})=>p.jsx("div",{className:"w-[30%] min-w-[300px] max-w-[420px] shrink-0 flex flex-col border-r border-[var(--tg-divider)] bg-[var(--tg-bg)]",children:r}),Ob=({searchActive:r,search:s,onSearchChange:l,onSearchBlur:c})=>r?p.jsx("input",{autoFocus:!0,value:s,onChange:d=>l(d.target.value),onBlur:c,placeholder:"Поиск",className:"w-full h-9 px-3 rounded-lg bg-[var(--tg-bg-secondary)] outline-none text-[14px] text-[var(--tg-text-primary)] placeholder:text-[var(--tg-text-secondary)]"}):p.jsx("div",{className:"text-[17px] font-medium pl-1 text-[var(--tg-text-primary)]",children:"Чаты"}),Tb=()=>p.jsx("div",{className:"flex flex-col gap-2 px-3 py-3",children:[{side:"in",w:210},{side:"out",w:260},{side:"in",w:140},{side:"out",w:200},{side:"in",w:230}].map((r,s)=>p.jsx("div",{className:`flex ${r.side==="out"?"justify-end":"justify-start"}`,children:p.jsx("div",{className:"h-9 rounded-md shadow-sm bg-black/[0.08] dark:bg-white/[0.12] animate-pulse",style:{width:r.w,borderRadius:"7.5px"}})},s))}),Bb=()=>p.jsx("div",{className:"flex-1 flex items-center justify-center tg-chat-bg px-6",children:p.jsx("p",{className:"text-center text-[15px] text-[var(--tg-text-secondary)] max-w-sm leading-snug",children:"Выберите чат, чтобы начать общение"})}),Rb=({children:r})=>p.jsx("div",{className:`relative flex-1 min-w-0 flex items-end pr-0.5 pl-0.5
    bg-white dark:bg-[#2a3942]
    rounded-lg border border-[var(--tg-divider)]
    shadow-[0_1px_0_rgba(0,0,0,0.04)] dark:shadow-none`,children:r}),Nb=({children:r})=>p.jsx("div",{className:"shrink-0 relative bg-[var(--tg-bg-secondary)] border-t border-[var(--tg-divider)]",children:r}),jb=({visible:r,onClick:s,unread:l})=>p.jsxs("button",{type:"button","aria-hidden":!r,onClick:s,className:`
      absolute right-3 bottom-3 z-10
      w-12 h-12 rounded-full
      bg-[var(--tg-bg)] shadow-lg
      inline-flex items-center justify-center
      text-[var(--tg-accent)]
      transition-all duration-200 tg-press
      ring-1 ring-black/[0.06] dark:ring-white/[0.08]
      ${r?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-2 pointer-events-none"}
    `,children:[p.jsx(zD,{size:22,strokeWidth:2}),l>0&&p.jsx("span",{className:`absolute -top-0.5 -right-0.5 min-w-[20px] h-5 px-1.5
          rounded-full text-[11px] font-semibold
          inline-flex items-center justify-center
          bg-[var(--tg-accent)] text-white shadow-sm`,children:l>99?"99+":l})]}),Lb={MainSidebarHeaderCenter:Ob,MainDesktopSidebarShell:Mb,NoChannelSelected:Bb,DialogRow:Cb,DialogsListSkeleton:Sb,EmptyDialogs:Fb,ChannelHeaderCenter:_b,JoinChannelBar:wb,MessagesSkeleton:Tb,DateChip:Eb,ScrollToBottomButton:jb,CloseConversationButton:xb,BubbleTail:bb,RichMessagebarRoot:Nb,RichMessagebarComposerWrap:Rb},zb="telegram",Ub={telegram:yb,whatsapp:Lb,instagram:ab};function Hb(r){return Ub[r]}const tA=K.createContext(null);function Gb({id:r=zb,children:s}){const l=K.useMemo(()=>({id:r,components:Hb(r)}),[r]);return p.jsx(tA.Provider,{value:l,children:s})}function $r(){const r=K.useContext(tA);if(!r)throw new Error("usePresentation must be used within PresentationProvider");return r}const qb={telegram:"",whatsapp:"!bg-[var(--tg-bg-secondary)] border-[var(--tg-divider)]",instagram:"!bg-[var(--tg-bg)] shadow-[0_1px_0_rgba(0,0,0,0.08)] dark:shadow-[0_1px_0_rgba(255,255,255,0.06)]"},HD=({left:r,center:s,right:l,subnavbar:c,className:d=""})=>{const{id:v}=$r();return p.jsxs("div",{className:`shrink-0 flex flex-col bg-[var(--tg-bg)]
        border-b border-[var(--tg-divider)] z-10 ${qb[v]} ${d}`,children:[p.jsxs("div",{className:"flex items-center h-14 px-2 gap-2",children:[p.jsx("div",{className:"flex items-center shrink-0",children:r}),p.jsx("div",{className:"flex-1 min-w-0 flex items-center",children:s}),p.jsx("div",{className:"flex items-center shrink-0 gap-1",children:l})]}),c&&p.jsx("div",{className:"px-3 pb-3",children:c})]})},ui=K.forwardRef(({children:r,onClick:s,className:l="",disabled:c,title:d,size:v="md",active:m},E)=>{const x={sm:"w-8 h-8 text-[18px]",md:"w-10 h-10 text-[20px]",lg:"w-12 h-12 text-[22px]"};return p.jsx("button",{ref:E,type:"button",title:d,disabled:c,onClick:s,className:`
          inline-flex items-center justify-center rounded-full
          text-[var(--tg-text-secondary)]
          transition-colors duration-150
          hover:bg-[var(--tg-bg-secondary)]
          active:bg-[var(--tg-divider)]
          ${m?"text-[var(--tg-accent)] bg-[var(--tg-accent-soft)]":""}
          ${x[v]}
          ${c?"opacity-40 pointer-events-none":""}
          ${l}
        `,children:r})});ui.displayName="IconButton";const Mg=({value:r,onChange:s,label:l,placeholder:c,type:d="text",className:v="",autoFocus:m,multiline:E,rows:x=3})=>{const C=`
    w-full bg-[var(--tg-bg-secondary)] border-2 border-transparent
    rounded-xl px-3.5 py-2.5 text-[16px] md:text-[15px]
    text-[var(--tg-text-primary)]
    placeholder:text-[var(--tg-text-secondary)]
    outline-none focus:border-[var(--tg-accent)]
    transition-colors duration-150
  `;return p.jsxs("label",{className:`block ${v}`,children:[l&&p.jsx("span",{className:"block text-[13px] font-medium text-[var(--tg-text-secondary)] mb-1.5 px-0.5",children:l}),E?p.jsx("textarea",{rows:x,value:r,onChange:M=>s(M.target.value),placeholder:c,autoFocus:m,className:`${C} resize-none`}):p.jsx("input",{type:d,value:r,onChange:M=>s(M.target.value),placeholder:c,autoFocus:m,className:C})]})},SD=K.createRef(),nA=K.forwardRef((r,s)=>{const[l,c]=K.useState(!1),[d,v]=K.useState({name:"",text:""});return K.useImperativeHandle(s,()=>({open:m=>{c(!0),v(m??{name:"",text:""})},close:()=>c(!1)})),l?p.jsxs("div",{className:"fixed inset-0 z-[250] flex flex-col bg-[var(--tg-bg)] tg-slide-up",children:[p.jsx(HD,{left:p.jsx(ui,{onClick:()=>c(!1),children:p.jsx(Hg,{})}),center:p.jsx("div",{className:"text-[17px] font-semibold pl-2",children:"Быстрый ответ"})}),p.jsxs("div",{className:"flex-1 overflow-y-auto tg-scroll p-4 space-y-3",children:[p.jsx(Mg,{label:"Название",placeholder:"Введите название",value:d.name??"",onChange:m=>v(E=>({...E,name:m}))}),p.jsx(Mg,{label:"Текст",placeholder:"Введите текст быстрого ответа",value:d.text??"",onChange:m=>v(E=>({...E,text:m})),multiline:!0,rows:5})]}),p.jsxs("div",{className:"shrink-0 px-4 py-3 border-t border-[var(--tg-divider)] flex gap-2",children:[p.jsx(wg,{fullWidth:!0,disabled:!d.name||!d.text,onClick:()=>{St.mFastAnswers({id:d._id,name:d.name,text:d.text}).then(()=>{be.loadFastAnswers(),c(!1)})},children:"Сохранить"}),!!d._id&&p.jsx(wg,{variant:"danger",onClick:()=>{LD({title:"Удалить быстрый ответ?",content:"Это действие нельзя отменить.",buttons:[{text:"Удалить",variant:"danger",onClick:()=>{k2({delete:!0,id:d._id}).then(()=>{be.loadFastAnswers(),c(!1)})}},{text:"Отмена"}]})},children:p.jsx(W1,{size:18})})]})]}):null});nA.displayName="FastAnswerPopupRoot";const Yb=({opened:r,onClose:s,children:l,className:c=""})=>{const[d,v]=K.useState(r),[m,E]=K.useState(!1);return K.useEffect(()=>{if(r)v(!0),requestAnimationFrame(()=>E(!0));else{E(!1);const x=setTimeout(()=>v(!1),220);return()=>clearTimeout(x)}},[r]),d?p.jsxs("div",{className:"fixed inset-0 z-[200] flex items-end justify-center",children:[p.jsx("div",{className:`absolute inset-0 bg-black/40 transition-opacity duration-200 ${m?"opacity-100":"opacity-0"}`,onClick:s}),p.jsxs("div",{className:`relative w-full max-w-[600px] rounded-t-2xl bg-[var(--tg-bg)]
          shadow-2xl pb-[max(env(safe-area-inset-bottom),12px)]
          transition-transform duration-200 ${c}
          ${m?"translate-y-0":"translate-y-full"}
        `,children:[p.jsx("div",{className:"flex justify-center pt-2",children:p.jsx("div",{className:"w-10 h-1 rounded-full bg-[var(--tg-divider)]"})}),l]})]}):null},Og=42,kb=()=>Array.from({length:Og},(r,s)=>{const l=s/Og;return 5+Math.sin(l*Math.PI*3)*3}),Vb=({onCancel:r,onSend:s})=>{const[l,c]=K.useState(0),[d,v]=K.useState(!1),[m,E]=K.useState(kb),x=K.useRef(null),C=K.useRef(null),M=K.useRef(null),H=K.useRef(null),Y=K.useRef([]),te=K.useRef(!1),ie=K.useRef(null),le=K.useRef(null),pe=K.useRef(0),Te=K.useRef(null);K.useEffect(()=>{const oe=setTimeout(()=>v(!0),50);return()=>clearTimeout(oe)},[]),K.useEffect(()=>{if(te.current)return;te.current=!0;const oe=Ie=>{const rt=window.AudioContext||window.webkitAudioContext;if(!rt)return;const He=new rt;ie.current=He,He.resume().catch(()=>{});const Ue=He.createMediaStreamSource(Ie),ot=He.createAnalyser();ot.fftSize=256,ot.smoothingTimeConstant=.72,le.current=ot,Ue.connect(ot);const dn=ot.frequencyBinCount,_e=new Uint8Array(new ArrayBuffer(dn));Te.current=_e;const re=()=>{const B=le.current,V=Te.current;if(!B||!V)return;B.getByteFrequencyData(V);const Q=Math.max(1,Math.floor(dn/Og)),he=[];for(let S=0;S<Og;S++){let q=0;const ue=S*Q;for(let me=0;me<Q&&ue+me<dn;me++)q+=V[ue+me]??0;const ve=4+q/Q/255*26;he.push(Math.max(4,Math.min(30,ve)))}E(he),pe.current=requestAnimationFrame(re)};pe.current=requestAnimationFrame(re)};return(async()=>{try{const Ie=await navigator.mediaDevices.getUserMedia({audio:!0});M.current=Ie;const rt=new MediaRecorder(Ie,{mimeType:"audio/webm"});rt.ondataavailable=He=>Y.current.push(He.data),rt.onstop=()=>{const He=new Blob(Y.current,{type:"audio/webm"});x.current=He,Y.current=[]},rt.start(),C.current=rt,H.current=setInterval(()=>c(He=>He+1),1e3),oe(Ie)}catch(Ie){console.error("🎙 Доступ к микрофону отклонён",Ie),r()}})(),()=>{H.current&&clearInterval(H.current),pe.current&&cancelAnimationFrame(pe.current),ie.current?.close()}},[r]);const De=()=>{pe.current&&cancelAnimationFrame(pe.current),pe.current=0,ie.current?.close(),ie.current=null,le.current=null,Te.current=null,C.current?.stop(),M.current?.getTracks().forEach(oe=>oe.stop()),H.current&&clearInterval(H.current)},ae=()=>{De(),setTimeout(()=>{x.current&&s(x.current)},200)},ce=()=>{De(),r()},X=oe=>`${Math.floor(oe/60)}:${(oe%60).toString().padStart(2,"0")}`;return p.jsxs(Yb,{opened:d,onClose:ce,children:[p.jsxs("div",{className:`mx-3 mb-2 mt-1 flex items-center gap-2 rounded-[22px] bg-[var(--tg-bg-secondary)]
          px-2 py-2 pl-3 pr-2 shadow-[0_1px_0_rgba(0,0,0,0.06)]`,children:[p.jsx("button",{type:"button",onClick:ce,className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-full
            bg-[var(--tg-bg)] text-[var(--tg-text-secondary)] tg-press
            shadow-sm`,"aria-label":"Удалить запись",children:p.jsx(W1,{size:22,strokeWidth:2})}),p.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[p.jsx("div",{className:"flex h-8 items-end justify-center gap-[2px] px-1",children:m.map((oe,we)=>p.jsx("div",{className:"w-[2.5px] shrink-0 rounded-full bg-[var(--tg-accent)]",style:{height:`${oe}px`,opacity:.35+oe/30*.65}},we))}),p.jsxs("div",{className:"flex items-center justify-center gap-1.5",children:[p.jsx("span",{className:"inline-block h-2 w-2 shrink-0 rounded-full bg-[#e53935] shadow-[0_0_0_2px_rgba(229,57,53,0.25)]","aria-hidden":!0}),p.jsx("span",{className:"font-mono text-[13px] tabular-nums text-[var(--tg-text-primary)]",children:X(l)})]})]}),p.jsx("button",{type:"button",onClick:ae,className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-full
            bg-[var(--tg-accent)] text-white tg-press shadow-md`,"aria-label":"Отправить голосовое",children:p.jsx(P1,{size:20,className:"-ml-0.5"})})]}),p.jsx("p",{className:"px-4 pb-4 text-center text-[12px] text-[var(--tg-text-secondary)]",children:"Запись… Отправьте или удалите сообщение"})]})},uA=K.createRef(),aA=K.forwardRef((r,s)=>{const[l,c]=K.useState(!1),d=K.useRef(null);return K.useImperativeHandle(s,()=>({open:v=>{d.current=v,c(!0)},close:()=>{c(!1),d.current=null}})),l?p.jsx(Vb,{onCancel:()=>{d.current?.onClose(),c(!1),d.current=null},onSend:v=>{d.current?.onSend(v),c(!1),d.current=null}}):null});aA.displayName="RecordingSheetRoot";const iA=K.createRef(),GD=r=>{iA.current?.show(r)},rA=K.forwardRef((r,s)=>{const[l,c]=K.useState(null),[d,v]=K.useState(!1);return K.useImperativeHandle(s,()=>({show:m=>{c(m),v(!0)}})),K.useEffect(()=>{if(!d)return;const m=setTimeout(()=>v(!1),3e3);return()=>clearTimeout(m)},[d,l]),K.useEffect(()=>{if(d)return;const m=setTimeout(()=>c(null),250);return()=>clearTimeout(m)},[d]),l?p.jsx("div",{className:"fixed left-1/2 -translate-x-1/2 z-[400] pointer-events-none",style:{bottom:"calc(env(safe-area-inset-bottom) + 24px)"},children:p.jsx("div",{className:`pointer-events-auto px-4 py-2.5 rounded-2xl shadow-xl
          bg-black/85 text-white text-[14px] backdrop-blur-sm cursor-pointer
          transition-all duration-200 max-w-[80vw]
          ${d?"opacity-100 translate-y-0":"opacity-0 translate-y-2"}
        `,onClick:()=>v(!1),children:l})}):null});rA.displayName="ToastRoot";const vo=window.location.hostname==="localhost",Qb="1.0.0",Zb=()=>vo?"http://localhost:8888":window.location.origin,Kb=()=>vo?"/chat/support":window.location.pathname;function zp(r){const s=new URLSearchParams(r.startsWith("?")?r.slice(1):r).get("style")?.toLowerCase();return s==="whatsapp"?"whatsapp":s==="instagram"?"instagram":"telegram"}const Xb="data:audio/mpeg;base64, ",vs=4096,Up=50,Ib=2500,Jb=1e4,$b=new Audio(Xb),Wb=()=>"tmp-"+Math.random().toString(36).slice(2,10),Hp=()=>typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Wb();class Pb{channelID=void 0;channel=null;joinInChannel=null;messagesList=[];pendingMessages=[];messagesLoading=!1;messagesFetchInFlight=0;initialChannelSwitchReady=!0;messagesLastHash=null;loadMessagesPollingInterval=null;loadMessagesScrollCallback=null;visibilityHandler=null;replyMsg=null;sending=!1;messageText="";recording=!1;pendingScrollToBottom=!1;constructor(){B1(this)}get pinnedMessage(){const s=this.channel?.pinnedMessageId;if(s){const l=this.messagesList?.find(c=>c._id===s);if(l?.pinned?.enabled)return l}return this.messagesList?.find(l=>l.pinned?.enabled)??null}get displayMessages(){if(!this.pendingMessages.length)return this.messagesList;const s=new Set(this.messagesList.map(c=>c._id).filter(Boolean)),l=new Set(this.messagesList.map(c=>c.clientMessageId).filter(c=>typeof c=="string"&&c.length>0));return[...this.messagesList,...this.pendingMessages.filter(c=>c._id&&!s.has(c._id)&&!(c.clientMessageId&&l.has(c.clientMessageId)))]}openChannel(s){this.channelID=s,this.channel=null,this.joinInChannel=null,this.messagesList=[],this.pendingMessages=[],this.messagesLoading=!1,this.messagesFetchInFlight=0,this.replyMsg=null,this.pendingScrollToBottom=!1,this.loadMessagesPollingInterval&&(clearInterval(this.loadMessagesPollingInterval),this.loadMessagesPollingInterval=null),s?(this.initialChannelSwitchReady=!1,this.refreshChannel()):this.initialChannelSwitchReady=!0}refreshChannel(){if(this.channel=null,this.joinInChannel=null,!this.channelID)return;const s=this.channelID;St.channelInfo({channel:s}).then(({result:l})=>{Pt(()=>{if(this.channelID===s)if(l){this.channel=l;const c=l?.members?.find(d=>d.owner==be.userID);this.joinInChannel=!!c}else this.initialChannelSwitchReady=!0})}).catch(()=>{Pt(()=>{this.channelID===s&&(this.initialChannelSwitchReady=!0)})})}updateChannelInfo(){this.channelID&&St.channelInfo({channel:this.channelID}).then(({result:s})=>{Pt(()=>{if(s){this.channel=s;const l=s?.members?.find(c=>c.owner==be.userID);this.joinInChannel=!!l}})})}markChannelRead(s){if(!this.channel?._id)return Promise.resolve();const l=this.channel._id,c={channel:l};return s&&(c.lastReadMessageId=s),St.channelMarkRead(c).then(()=>{Pt(()=>{this.channel?._id!==l||!be.userID||(this.channel={...this.channel,unreadCounts:{...this.channel.unreadCounts??{},[be.userID]:0}})})})}afterMessagesLoaded(s,l){const c=[...l].reverse().find(d=>d.owner!=be.userID&&d._id);return c?._id?this.markChannelRead(c._id):this.markChannelRead()}prunePendingSyncedWithServer(){const s=new Set(this.messagesList.map(c=>c.clientMessageId).filter(c=>typeof c=="string"&&c.length>0));if(!s.size)return!1;const l=this.pendingMessages.length;return this.pendingMessages=this.pendingMessages.filter(c=>!c.clientMessageId||!s.has(c.clientMessageId)),this.pendingMessages.length<l}mergeSentMessage(s){if(!s?._id||!this.channel?._id||s.channel&&s.channel!==this.channel._id)return;let l=[...this.messagesList];const c=l.findIndex(m=>m._id===s._id),d=s.clientMessageId!=null&&s.clientMessageId!==""?l.findIndex(m=>m.clientMessageId===s.clientMessageId):-1,v=c>=0?c:d;v>=0?l[v]=s:(l.push(s),l.length>Up&&(l=l.slice(-Up))),this.messagesList=l,this.prunePendingSyncedWithServer()&&(this.pendingScrollToBottom=!0)}syncMessagesHash(){if(!this.channel?._id)return;const s=this.channel._id;St.channelMessages({channel:s,onlyHash:!0}).then(({result:l})=>{Pt(()=>{this.channel?._id===s&&(this.messagesLastHash=l?.hash??null)})}).catch(()=>{})}confirmSentMessage(s,l){this.mergeSentMessage(s),l&&this.pendingMessages.some(c=>c.__clientId===l)&&this.removePending(l),this.pendingScrollToBottom=!0,this.markChannelRead(),this.syncMessagesHash()}loadMessages(){if(!this.channel?._id)return Promise.resolve();const s=this.channel._id;return this.messagesList.length===0&&(this.messagesLoading=!0),Pt(()=>{this.messagesFetchInFlight++}),St.channelMessages({channel:s,limit:50,offset:0},["shmChannelMessages"]).then(({result:c})=>(Pt(()=>{this.channelID!==s||this.channel?._id!==s||(this.messagesList=c?.data??[],this.messagesLastHash=c?.hash??null,this.messagesLoading=!1,this.prunePendingSyncedWithServer()&&(this.pendingScrollToBottom=!0))}),this.afterMessagesLoaded(s,c?.data??[]))).catch(()=>{Pt(()=>{this.channelID!==s||this.channel?._id!==s||(this.messagesLoading=!1,this.pendingScrollToBottom=!1)})}).finally(()=>{Pt(()=>{this.messagesFetchInFlight--,this.channelID===s&&(this.initialChannelSwitchReady=!0)})})}pollTick(s){this.messagesFetchInFlight>0||this.channel?._id&&St.channelMessages({channel:this.channel._id,limit:50,offset:0,onlyHash:!0}).then(({result:l})=>{vo&&console.log("POLLING hash:",l?.hash,"last:",this.messagesLastHash),l?.hash!=null&&l.hash!==this.messagesLastHash&&(this.updateChannelInfo(),Pt(()=>{this.messagesFetchInFlight++}),St.channelMessages({channel:this.channel._id,limit:50,offset:0},["shmChannelMessages"]).then(({result:c})=>{const d=this.channel._id;return Pt(()=>{const v=this.messagesList[this.messagesList.length-1]?._id,m=c?.data??[],E=m[m.length-1],x=E?._id;if(v&&x&&v!==x){s?.();const C=typeof document<"u"&&document.hidden;E?.owner!=be.userID&&C&&$b.play().catch(()=>{})}this.messagesList=m,this.messagesLastHash=c?.hash??null,this.prunePendingSyncedWithServer()&&(this.pendingScrollToBottom=!0)}),this.afterMessagesLoaded(d,c?.data??[])}).finally(()=>{Pt(()=>{this.messagesFetchInFlight--})}))})}startMessagesPolling(s){if(!this.channel?._id)return;this.stopMessagesPolling(),this.loadMessagesScrollCallback=s??null;const l=()=>{this.stopMessagesPolling();const c=typeof document<"u"&&document.hidden?Jb:Ib;this.loadMessagesPollingInterval=setInterval(()=>{this.pollTick(this.loadMessagesScrollCallback??void 0)},c)};if(l(),typeof document<"u"){const c=()=>{document.hidden||this.pollTick(this.loadMessagesScrollCallback??void 0),l()};this.visibilityHandler=c,document.addEventListener("visibilitychange",c)}}stopMessagesPolling(){this.loadMessagesPollingInterval&&(clearInterval(this.loadMessagesPollingInterval),this.loadMessagesPollingInterval=null),this.visibilityHandler&&typeof document<"u"&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null)}setJoinInChannel(s){this.joinInChannel=s}setReplyMsg(s){this.replyMsg=s}setMessageText(s){this.messageText=s.length>vs?s.slice(0,vs):s}setRecording(s){this.recording=s}setSending(s){this.sending=s}clearPendingScrollToBottom(){this.pendingScrollToBottom=!1}removePending(s){this.pendingMessages=this.pendingMessages.filter(l=>l.__clientId!==s)}markPendingFailed(s){const l=this.pendingMessages.find(c=>c.__clientId===s);l&&(l.__status="failed")}retryPending(s){const l=this.pendingMessages.find(v=>v.__clientId===s);if(!l||!this.channel?._id)return;const c=l.clientMessageId??Hp();l.clientMessageId||Pt(()=>{l.clientMessageId=c}),l.__status="sending";const d=typeof l.text=="string"&&l.text.length>vs?l.text.slice(0,vs):l.text;St.channelSendMessage({channel:this.channel._id,clientMessageId:c,text:d,reply:l.reply},["shmChannelMessages"]).then(({result:v})=>{Pt(()=>{this.confirmSentMessage(v,s)})}).catch(()=>{Pt(()=>this.markPendingFailed(s))})}async sendMessage(s){if(!this.channel?._id)return;typeof s.text=="string"&&s.text.length>vs&&(s.text=s.text.slice(0,vs)),s.channel=this.channel._id,this.replyMsg?._id&&(s.reply=this.replyMsg._id);const l=Hp(),c=l,d={_id:c,__clientId:c,clientMessageId:l,__status:"sending",channel:this.channel._id,owner:be.userID??void 0,text:s.text,reply:s.reply,attachments:s.attachments,voice:s.voice,type:"regular",created_at:Math.floor(Date.now()/1e3),viewed:!1};Pt(()=>{this.pendingMessages.push(d),this.replyMsg&&(this.replyMsg=null),s.text&&(this.messageText=""),this.pendingScrollToBottom=!0,this.sending=!0});try{s.clientMessageId=l;const{result:v}=await St.channelSendMessage(s,["shmChannelMessages"]);Pt(()=>{this.confirmSentMessage(v,c)})}catch{Pt(()=>{this.markPendingFailed(c)})}finally{Pt(()=>{this.sending=!1})}}resetCompose(){this.replyMsg=null,this.messageText=""}}const se=new Pb,_h=({children:r,className:s=""})=>p.jsx("div",{className:`flex flex-col w-full h-full bg-[var(--tg-bg)] overflow-hidden ${s}`,children:r}),e_=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function t_(r){return tt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.598 5.013a.144.144 0 0 1 .202.134V6.3a.5.5 0 0 0 .5.5c.667 0 2.013.005 3.3.822.984.624 1.99 1.76 2.595 3.876-1.02-.983-2.185-1.516-3.205-1.799a8.7 8.7 0 0 0-1.921-.306 7 7 0 0 0-.798.008h-.013l-.005.001h-.001L7.3 9.9l-.05-.498a.5.5 0 0 0-.45.498v1.153c0 .108-.11.176-.202.134L2.614 8.254l-.042-.028a.147.147 0 0 1 0-.252l.042-.028zM7.8 10.386q.103 0 .223.006c.434.02 1.034.086 1.7.271 1.326.368 2.896 1.202 3.94 3.08a.5.5 0 0 0 .933-.305c-.464-3.71-1.886-5.662-3.46-6.66-1.245-.79-2.527-.942-3.336-.971v-.66a1.144 1.144 0 0 0-1.767-.96l-3.994 2.94a1.147 1.147 0 0 0 0 1.946l3.994 2.94a1.144 1.144 0 0 0 1.767-.96z"},child:[]}]})(r)}function qD(r){return tt({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 Gp(r){return tt({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 qp=["#e17076","#eda86c","#a695e7","#7bc862","#65aadd","#ee7aae","#6ec9cb"],lA=r=>{const s=r??"";let l=0;for(let c=0;c<s.length;c++)l=s.charCodeAt(c)+((l<<5)-l);return qp[Math.abs(l)%qp.length]};function n_(r,{isOut:s,groupedTop:l,groupedBottom:c,showTail:d}){if(r==="whatsapp"){const x="rounded-[7.5px]";return l&&c?`${x} rounded-t-[5px] rounded-b-[5px]`:l?`${x} rounded-tl-[5px] rounded-tr-[5px]`:c?`${x} rounded-bl-[5px] rounded-br-[5px]`:x}if(r==="instagram"){const x="rounded-[22px]";return l&&c?`${x} rounded-t-[11px] rounded-b-[11px]`:l?`${x} rounded-tl-[11px] rounded-tr-[11px]`:c?`${x} rounded-bl-[11px] rounded-br-[11px]`:x}const v="rounded-2xl";return s?[v,l?"rounded-tr-md":"",c?"rounded-br-md":d?"rounded-br-none":""].filter(Boolean).join(" "):[v,l?"rounded-tl-md":"",c?"rounded-bl-md":d?"rounded-bl-none":""].filter(Boolean).join(" ")}const Yp=new Map,u_=r=>{const s=[];let d=14;for(let v=0;v<r;v++){const m=(Math.random()-.5)*7,E=Math.max(5,Math.min(24,d+m));s.push(Math.round(E)),d=E}return s},a_=r=>{if(!r||!isFinite(r))return"0:00";const s=Math.floor(r/60),l=Math.floor(r%60);return`${s}:${l.toString().padStart(2,"0")}`},i_=({src:r,barsCount:s=32,cacheKey:l,barColor:c})=>{const d=K.useRef(null),v=K.useRef(null),[m,E]=K.useState(!1),[x,C]=K.useState(0),[M,H]=K.useState(0),[Y,te]=K.useState(0),[ie,le]=K.useState([]);K.useEffect(()=>{const ae=l??r,ce=Yp.get(ae);if(ce&&ce.length===s){le(ce);return}const X=u_(s);Yp.set(ae,X),le(X)},[s,l,r]),K.useEffect(()=>{const ae=d.current;if(!ae)return;const ce=()=>{ae.duration&&(C(ae.currentTime/ae.duration*100),te(ae.currentTime))},X=()=>{H(ae.duration||0)},oe=()=>{E(!1),C(0),te(0)};return ae.addEventListener("timeupdate",ce),ae.addEventListener("loadedmetadata",X),ae.addEventListener("ended",oe),()=>{ae.removeEventListener("timeupdate",ce),ae.removeEventListener("loadedmetadata",X),ae.removeEventListener("ended",oe)}},[]);const pe=()=>{const ae=d.current;ae&&(m?ae.pause():ae.play().catch(()=>{}),E(!m))},Te=ae=>{const ce=d.current,X=v.current;if(!ce||!X||!M)return;const oe=X.getBoundingClientRect(),we=Math.max(0,Math.min(1,(ae-oe.left)/oe.width));ce.currentTime=we*M},De=Math.floor(x/100*ie.length);return p.jsxs("div",{className:"flex items-center gap-2 select-none",onClick:ae=>{ae.preventDefault(),ae.stopPropagation()},children:[p.jsx("audio",{ref:d,src:r,preload:"metadata"}),p.jsx("button",{type:"button",onClick:ae=>{ae.preventDefault(),ae.stopPropagation(),pe()},className:`shrink-0 inline-flex items-center justify-center
          text-[var(--tg-accent)]`,"aria-label":m?"Пауза":"Играть",children:m?p.jsx(zy,{size:36}):p.jsx(Uy,{size:36})}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("div",{ref:v,className:"flex items-center gap-[3px] h-7 cursor-pointer",onClick:ae=>{ae.preventDefault(),ae.stopPropagation(),Te(ae.clientX)},children:ie.map((ae,ce)=>p.jsx("div",{className:"w-[2px] rounded-full transition-opacity duration-150",style:{height:ae,backgroundColor:c,opacity:ce<=De?1:.4}},ce))}),p.jsx("div",{className:"mt-0.5 text-[11px] opacity-70 leading-none",children:a_(m||Y>0?Y:M)})]})]})};function r_(r){return tt({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 l_(r){return tt({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 s_(r){return tt({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 kp(r){return tt({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 Vp(r){return tt({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 c_(r){return tt({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 YD=({doc:r,size:s=40,className:l=""})=>{const c=r?.type;if(!c)return p.jsx(Vp,{size:s,className:l});const d={image:l_,audio:r_,video:c_,"application/pdf":s_,"application/zip":kp,"application/x-zip-compressed":kp};if(d[c]){const m=d[c];return p.jsx(m,{size:s,className:l})}const v=c.split("/")[0];if(v=="image")return p.jsx("img",{src:r.url,alt:r.name,style:{width:s,height:s},className:` object-cover ${l} rounded-xl bg-white`});if(d[v]){const m=d[v];return p.jsx(m,{size:s,className:l})}return p.jsx(Vp,{size:s,className:l})},sA=({msg:r,onClick:s,variant:l="inline"})=>{const{id:c}=$r(),d=c==="instagram",v=!!r.deleted,m=v?null:r.text||(r.voice?.url?"🎙 Голосовое сообщение":r.attachments?.[0]?.name||"📎 Файл"),E=r.owner??"",x=E&&E===be.userID,C=lA(E),M=x?"Вы":UD(E)+" Собеседник",H=d?"rounded-2xl":"rounded-md",Y=l==="compose"?d?"bg-[var(--tg-bg-secondary)]/80 backdrop-blur-md mx-1 border border-[var(--tg-divider)]/70":"bg-[var(--tg-bg-secondary)] mx-1":d?"bg-[var(--tg-bg)]/55 backdrop-blur-[2px] border border-[var(--tg-divider)]/55":"bg-black/5 dark:bg-white/5";return p.jsxs("div",{onClick:te=>{te.stopPropagation(),s()},id:`replay-msg-${r._id}`,className:`cursor-pointer active:opacity-70 relative pl-3 py-1.5 my-1.5
        ${H} overflow-hidden ${Y}`,children:[p.jsx("div",{className:d?"absolute left-0 top-2 bottom-2 w-[3px] rounded-full bg-gradient-to-b from-[#f58529] via-[#dd2a7b] to-[#8134af]":"absolute left-0 top-1 bottom-1 w-[3px] rounded-full",style:d?void 0:{background:C}}),p.jsx("div",{className:"text-[13px] font-semibold truncate leading-4",style:{color:C},children:M}),v?p.jsxs("div",{className:"text-[13px] opacity-70 flex items-center gap-1.5",children:[p.jsx(qD,{className:"w-3.5 h-3.5"})," Сообщение удалено"]}):p.jsxs("div",{className:"flex items-center gap-1.5 text-[13px] opacity-90 truncate",children:[r.attachments?.[0]&&p.jsx("div",{className:"shrink-0 w-3.5 h-3.5",children:p.jsx(YD,{size:14,doc:r.attachments[0]})}),p.jsx("span",{className:"truncate",children:m})]})]})};en.locale("ru");const kD=[{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"}],o_=r=>kD.find(s=>s.value===r)?.name||"";function f_(r){if(!r)return!1;const s=e_(),l=r.match(s);if(!l)return!1;const c=l.join("")===r,d=l.length<=8;return c&&d}const h_=60,d_=80,g_=r=>r.type?.split("/")[0]==="image"&&!!r.url,v_=({onReplayClick:r,onReactionClick:s,msg:l,onOpenMenu:c,onChange:d,groupedTop:v,groupedBottom:m,showAuthorName:E})=>{const{id:x,components:{BubbleTail:C}}=$r(),[M,H]=K.useState(null),Y=K.useRef(null),te=K.useRef(null),ie=K.useRef(null),le=K.useRef(!1),pe=Se=>{St.channelReaction({message:l._id,channel:l.channel,reaction:Se}).then(()=>d())},Te=jD.shmChannelMessagesByID(l.reply),De=!!l.deleted,ae=l.type=="system",ce=!De&&f_(l.text),X=l.owner==be.userID,oe=!!l.__clientId,we=l.__status==="failed",Ie=!m&&!ce,rt=!X&&!m;if(ae)return x==="whatsapp"?p.jsx("div",{className:"flex justify-center my-2",children:p.jsx("div",{className:`max-w-[90%] text-center px-2.5 py-1 rounded-lg text-[12.5px] font-medium shadow-sm tg-fade-in
              bg-white/95 text-[var(--tg-text-secondary)] border border-[var(--tg-divider)]
              dark:bg-[#2a3942] dark:text-[var(--tg-text-secondary)] dark:border-[var(--tg-divider)]`,children:l.text})}):x==="instagram"?p.jsx("div",{className:"flex justify-center my-3 px-4",children:p.jsx("div",{className:`max-w-[min(92%,420px)] text-center px-4 py-1.5 rounded-full text-[11px] font-semibold uppercase tracking-wider tg-fade-in
              bg-[var(--tg-bg-secondary)] text-[var(--tg-text-secondary)] border border-[var(--tg-divider)]
              dark:bg-[#1a1a1a] dark:border-[#333] dark:text-[var(--tg-text-meta)]`,children:l.text})}):p.jsx("div",{className:"flex justify-center my-3",children:p.jsx("div",{className:"px-3 py-1 rounded-full bg-black/40 text-white text-[12px] tg-fade-in",children:l.text})});const He=n_(x,{isOut:X,groupedTop:!!v,groupedBottom:!!m,showTail:Ie}),Ue=X?"bg-[var(--tg-bubble-out)] text-[var(--tg-bubble-out-text)]":"bg-[var(--tg-bubble-in)] text-[var(--tg-bubble-in-text)]",ot=x==="instagram"&&!De&&!ce,dn=ot?X?"ig-out-bubble text-[var(--tg-bubble-out-text)]":"ig-in-bubble text-[var(--tg-bubble-in-text)]":Ue,_e=ot?"px-3 pt-1.5 pb-1.5":"px-2.5 pt-1 pb-1",re=ce||x==="instagram"?"":"shadow-[var(--tg-bubble-shadow)]",B=l.reactions?ZA.groupBy(l.reactions,Se=>Se.type):{},V=l.reactions?.find(Se=>Se.user==be.userID)?.type,Q=!!l.text,he=!!l.voice?.url,S=!!l.attachments?.length,q=he||S,ue=!De&&!!Object.keys(B).length;let ne=null;X&&!De&&(we?ne=p.jsx(Ly,{size:14,className:"text-[var(--tg-danger)]"}):oe?ne=p.jsx(Hy,{size:13}):l.viewed?ne=p.jsx(Gg,{size:14}):ne=p.jsx(Zy,{size:14}));const ve=X?we?64:56:36,me=!ce&&p.jsxs("span",{className:`inline-flex items-center gap-0.5 leading-none select-none ${x==="instagram"?"text-[10px] font-semibold tracking-wide":"text-[11px]"} ${X?"text-[var(--tg-text-meta-out)]":"text-[var(--tg-text-meta)]"} opacity-90`,children:[p.jsx("span",{children:l.created_at&&en.unix(l.created_at).format("HH:mm")}),ne]}),Ee=(()=>{if(!E||X||v)return null;const Se=l.owner??"",nn=lA(Se),Tu=UD(Se)+" Собеседник";return p.jsx("div",{className:"text-[13px] font-semibold leading-4 mb-0.5 truncate",style:{color:nn},children:Tu})})(),bt=()=>{te.current&&(clearTimeout(te.current),te.current=null)},Ze=()=>{Y.current&&(Y.current.style.transition="transform 0.18s ease",Y.current.style.transform="",setTimeout(()=>{Y.current&&(Y.current.style.transition="")},200))},zt=Se=>{if(De||we)return;const nn=Se.touches[0];ie.current={x:nn.clientX,y:nn.clientY},le.current=!1,bt(),te.current=setTimeout(()=>{if(te.current=null,!le.current&&Y.current){if(typeof navigator<"u"&&"vibrate"in navigator)try{navigator.vibrate?.(10)}catch{}c(Y.current)}},380)},kt=Se=>{if(!ie.current||!Y.current)return;const nn=Se.touches[0],Tu=nn.clientX-ie.current.x,pt=nn.clientY-ie.current.y;if(Math.abs(pt)>12&&!le.current){bt();return}const si=X?-1:1,Wr=Tu*si;if(Wr>6){le.current=!0,bt();const _a=Math.min(Wr,d_);Y.current.style.transform=`translateX(${_a*si}px)`}else le.current&&(Y.current.style.transform="")},tn=()=>{if(bt(),le.current&&Y.current){const Se=Y.current.style.transform.match(/-?\d+/);(Se?Math.abs(parseInt(Se[0],10)):0)>=h_&&se.setReplyMsg(l)}Ze(),le.current=!1,ie.current=null},Cn=()=>{bt(),Ze(),le.current=!1,ie.current=null},Du=Se=>{De||(Se.preventDefault(),Y.current&&c(Y.current))};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:`flex items-end gap-1.5 ${X?"justify-end":"justify-start"} ${x==="whatsapp"?m?"mb-0.5":"mb-1.5":x==="instagram"?m?"mb-1":"mb-3":m?"mb-px":"mb-2"} tg-fade-in`,children:[!X&&p.jsx("div",{className:"w-9 shrink-0 self-end",children:rt&&p.jsx(_s,{id:l.owner??"",size:36})}),p.jsxs("div",{id:`msg-${l._id}`,ref:Y,onContextMenu:Du,onTouchStart:zt,onTouchMove:kt,onTouchEnd:tn,onTouchCancel:Cn,className:`
          group relative max-w-[78%] sm:max-w-[60%] md:max-w-[520px]
          ${ce?"tg-only-emoji bg-transparent p-0":`${_e} ${dn} ${He}`}
          ${re}
          ${oe?"opacity-80":""}
        `,children:[Ee,Ie&&p.jsx(C,{isOut:X}),Te&&p.jsx(sA,{msg:Te,onClick:()=>Te&&r(Te)}),De?p.jsxs("div",{className:"flex items-center gap-1.5 italic opacity-70 text-[14px] py-1 pr-[60px] relative",children:[p.jsx(qD,{className:"w-3.5 h-3.5"}),"Сообщение удалено",p.jsx("span",{className:"absolute bottom-1 right-2 text-[11px] not-italic opacity-80",children:l.created_at&&en.unix(l.created_at).format("HH:mm")})]}):p.jsxs(p.Fragment,{children:[he&&p.jsx("div",{className:"py-1 min-w-[220px]",children:p.jsx(i_,{barColor:X?"color-mix(in srgb, var(--tg-accent) 70%, white)":"var(--tg-accent)",src:l.voice.url,cacheKey:l._id})}),l.attachments?.map((Se,nn)=>{const Tu=g_(Se);return p.jsx("div",{className:"py-1.5",children:Tu?p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",title:"Открыть",className:`block w-full p-0 m-0 border-0 bg-transparent cursor-pointer text-left rounded-xl overflow-hidden active:opacity-90 ${x==="instagram"?"ring-1 ring-black/[0.05] dark:ring-white/10":"ring-1 ring-black/10 dark:ring-white/15"}`,onClick:pt=>{pt.stopPropagation(),Se.url&&H({url:Se.url,name:Se.name})},children:p.jsx("img",{src:Se.url,alt:Se.name||"",className:"max-h-64 w-full object-cover bg-black/5 dark:bg-white/5",loading:"lazy",draggable:!1})}),p.jsxs("div",{className:"flex items-center gap-2 pt-1.5",children:[p.jsx("div",{className:"flex-1 min-w-0 font-medium text-[14px] truncate",children:Se.name}),p.jsx("button",{type:"button",onClick:pt=>{pt.stopPropagation(),window.open(Se.url,"_blank")},className:"p-1 opacity-70 hover:opacity-100 shrink-0",title:"Открыть в новой вкладке",children:p.jsx(Gp,{size:16})})]})]}):p.jsxs("div",{className:"flex items-center gap-2 cursor-pointer active:opacity-70",children:[p.jsx(YD,{doc:Se,size:36}),p.jsx("div",{className:"flex-1 min-w-0",children:p.jsx("div",{className:"font-medium text-[14px] truncate",children:Se.name})}),p.jsx("button",{type:"button",onClick:pt=>{pt.stopPropagation(),window.open(Se.url,"_blank")},className:"p-1 opacity-70 hover:opacity-100",children:p.jsx(Gp,{size:16})})]})},nn)}),Q&&p.jsxs("div",{className:`relative whitespace-pre-wrap break-words leading-[1.35] ${x==="instagram"&&!ce?"text-[14px] leading-[1.45]":"text-[15px]"}`,style:ce?{fontSize:48,lineHeight:1.1}:void 0,children:[l.text,!ce&&p.jsxs(p.Fragment,{children:[" ",p.jsx("span",{"aria-hidden":!0,className:"inline-block align-bottom select-none",style:{width:ve,height:"1em"},children:"​"})]})]}),!Q&&q&&p.jsx("div",{style:{height:14}})]}),ue&&p.jsx("div",{className:"flex flex-wrap gap-1 mt-1 mb-0.5 pr-[60px]",children:Object.entries(B).map(([Se,nn])=>{const Tu=V===Se,pt=x==="instagram"?`inline-flex items-center gap-1 h-6 px-2 rounded-full text-[12px] font-semibold tg-press border
                    ${Tu?X?"border-white/35 bg-white/15 text-white backdrop-blur-[2px]":"border-[var(--tg-accent)]/35 bg-[var(--tg-accent-soft)] text-[var(--tg-accent)]":X?"border-white/20 bg-black/12 text-current dark:bg-white/12":"border-[var(--tg-divider)] bg-[var(--tg-bg)]/90 text-[var(--tg-text-primary)] shadow-[0_1px_2px_rgba(0,0,0,0.04)] dark:bg-[var(--tg-bg-secondary)]/90"}`:`inline-flex items-center gap-1 h-6 px-1.5 rounded-full
                    text-[12px] font-medium tg-press
                    ${Tu?X?"bg-white/25 ring-1 ring-white/60 text-current":"bg-[var(--tg-accent)] text-white":X?"bg-black/10 dark:bg-white/15 text-current":"bg-[var(--tg-accent-soft)] text-[var(--tg-accent)]"}`;return p.jsxs("button",{type:"button",onClick:si=>{si.stopPropagation(),pe(Se)},className:pt,children:[p.jsx("span",{children:o_(Se)}),p.jsx("span",{children:nn.length})]},Se)})}),!ce&&!De&&p.jsx("div",{className:"absolute bottom-[5px] right-2 pointer-events-none",children:me}),ce&&p.jsx("div",{className:"flex justify-end mt-1 pr-1",children:me}),we&&l.__clientId&&p.jsx("button",{type:"button",onClick:Se=>{Se.stopPropagation(),se.retryPending(l.__clientId)},className:`
              absolute -left-9 bottom-0 w-7 h-7 inline-flex items-center justify-center
              rounded-full text-[var(--tg-danger)]
              ${x==="instagram"?"ig-float-action":"bg-[var(--tg-bg)] shadow border border-[var(--tg-divider)]"}
            `,title:"Повторить отправку",children:p.jsx(Ty,{className:"w-4 h-4"})}),!De&&!oe&&p.jsx("button",{type:"button",id:`msg-add-reactions-${l._id}`,onClick:Se=>{Se.stopPropagation(),s(l)},className:`
              hidden md:inline-flex absolute bottom-0
              ${X?"-left-9":"-right-9"}
              w-7 h-7 items-center justify-center
              rounded-full
              ${x==="instagram"?"ig-float-action":"bg-[var(--tg-bg)] shadow border border-[var(--tg-divider)]"}
              opacity-0 group-hover:opacity-100
              transition-opacity
            `,children:p.jsx(Ry,{className:"w-4 h-4 text-[var(--tg-text-secondary)]"})})]})]}),p.jsx(Z1,{opened:!!M,onClose:()=>H(null),className:"!w-fit !max-w-[min(96vw,1200px)] !bg-transparent !shadow-none overflow-visible p-1",children:M&&p.jsxs("div",{className:"relative flex max-w-[min(96vw,1200px)] flex-col items-center",children:[p.jsx("button",{type:"button",onClick:()=>H(null),className:`absolute -right-1 -top-1 z-10 flex h-9 w-9 items-center justify-center rounded-full
              bg-black/55 text-white shadow-md hover:bg-black/70 active:opacity-90`,"aria-label":"Закрыть",children:p.jsx(Hg,{size:22})}),p.jsx("img",{src:M.url,alt:M.name||"",className:"max-h-[85vh] max-w-[min(92vw,1200px)] w-auto object-contain rounded-lg",draggable:!1})]})})]})},D_=({msg:r,onClick:s,onPin:l})=>{const c=r.text||(r.voice?.url?"🎙 Голосовое сообщение":r.attachments?.[0]?.name||"📎 Файл");return p.jsxs("div",{className:"shrink-0 flex items-center gap-2 px-3 py-2 border-b border-[var(--tg-divider)] bg-[var(--tg-bg)]",children:[p.jsxs("div",{id:`pin-msg-${r._id}`,onClick:d=>{d.stopPropagation(),s()},className:"flex-1 min-w-0 flex items-center gap-2 pl-2 relative cursor-pointer active:opacity-70",children:[p.jsx("div",{className:"absolute left-0 top-1 bottom-1 w-[3px] rounded-full bg-[var(--tg-accent)]"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("div",{className:"text-[12px] font-semibold text-[var(--tg-accent)]",children:"Закреплённое сообщение"}),p.jsxs("div",{className:"flex items-center gap-1.5 text-[13px] text-[var(--tg-text-primary)] truncate",children:[r.attachments?.[0]&&p.jsx("div",{className:"shrink-0 w-3.5 h-3.5",children:p.jsx(YD,{size:14,doc:r.attachments[0]})}),p.jsx("span",{className:"truncate",children:c})]})]})]}),p.jsx(ui,{size:"sm",onClick:d=>{d.stopPropagation(),l()},children:p.jsx(Hg,{})})]})},Qr=({icon:r,title:s,onClick:l,danger:c,after:d})=>p.jsxs("button",{type:"button",onClick:l,className:`
      w-full flex items-center gap-3 px-3 py-2.5
      text-left text-[15px] tg-press
      hover:bg-[var(--tg-bg-hover)]
      ${c?"text-[var(--tg-danger)]":"text-[var(--tg-text-primary)]"}
    `,children:[r!=null&&p.jsx("span",{className:"w-5 h-5 flex items-center justify-center text-[18px] opacity-80",children:r}),p.jsx("span",{className:"flex-1 truncate",children:s}),d&&p.jsx("span",{className:"shrink-0",children:d})]}),VD=({children:r})=>p.jsx("div",{className:"py-1.5",children:r}),ti=8,xh=({opened:r,onClose:s,target:l,children:c,placement:d="auto",width:v=240,className:m=""})=>{const E=K.useRef(null),[x,C]=K.useState(null);return K.useLayoutEffect(()=>{if(!r||!l){C(null);return}const M=l.getBoundingClientRect(),H=E.current?.offsetHeight??200,Y=E.current?.offsetWidth??v,te=window.innerHeight-M.bottom,ie=M.top;let le;d==="auto"?le=te>=H+ti?"bottom":"top":le=d,le==="top"&&ie<H+ti&&(le="bottom");let pe=le==="bottom"?M.bottom+ti:M.top-H-ti,Te=M.left+M.width/2-Y/2;Te<ti&&(Te=ti),Te+Y>window.innerWidth-ti&&(Te=window.innerWidth-Y-ti),pe<ti&&(pe=ti),C({top:pe,left:Te,placement:le})},[r,l,d,v]),K.useEffect(()=>{if(!r)return;const M=H=>{H.key==="Escape"&&s()};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[r,s]),r?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"fixed inset-0 z-[100]",onClick:s,onContextMenu:M=>{M.preventDefault(),s()}}),p.jsx("div",{ref:E,style:{top:x?.top??-9999,left:x?.left??-9999,width:v,visibility:x?"visible":"hidden"},className:`fixed z-[101] tg-fade-in rounded-2xl shadow-xl shadow-black/20 overflow-hidden
          bg-[var(--tg-bg)] border border-[var(--tg-divider)] ${m}`,onClick:M=>M.stopPropagation(),children:c})]}):null},p_=r=>{r&&(navigator.clipboard.writeText(r),GD("Скопировано"))},cA=K.forwardRef((r,s)=>{const[l,c]=K.useState(null),[d,v]=K.useState(!1),[m,E]=K.useState(null),x=K.useRef(null);K.useImperativeHandle(s,()=>({open:te=>{c(te.msg),E(document.getElementById(`msg-${te.msg._id}`)),v(!0),x.current=te}}));const C=()=>{v(!1),E(null)},M=te=>{C(),St.channelReaction({channel:l?.channel,message:l?._id,reaction:te}).then(()=>x.current?.onChange?.())};if(!d||!l?._id)return null;const H=l.owner==be.userID,Y=l.reactions?.find(te=>te.user==be.userID);return p.jsxs(xh,{opened:d,onClose:C,target:m,width:260,children:[p.jsx("div",{className:"flex gap-1 px-2 pt-2 pb-1",children:kD.slice(0,6).map(te=>{const ie=Y?.type===te.value;return p.jsx("button",{type:"button",onClick:()=>M(te.value),className:`
                w-9 h-9 inline-flex items-center justify-center rounded-full
                text-[22px] tg-press
                ${ie?"bg-[var(--tg-accent-soft)]":"hover:bg-[var(--tg-bg-secondary)]"}
              `,children:te.name},te.value)})}),p.jsx("div",{className:"mx-2 h-px bg-[var(--tg-divider)] my-1"}),p.jsxs(VD,{children:[p.jsx(Qr,{icon:p.jsx(t_,{}),title:"Ответить",onClick:()=>{l&&(x.current?.onReply?.(l),C())}}),!!l.text&&p.jsx(Qr,{icon:p.jsx(Ey,{}),title:"Копировать текст",onClick:()=>{p_(l.text),C()}}),p.jsx(Qr,{icon:p.jsx(My,{}),title:l.pinned?.enabled?"Открепить":"Закрепить",onClick:()=>{x.current?.onPinned?.(),C()}}),H&&p.jsx(Qr,{icon:p.jsx(qD,{}),title:"Удалить",danger:!0,onClick:()=>{x.current?.onDelete?.(),C()}})]})]})});cA.displayName="MessagePopover";const oA=K.forwardRef((r,s)=>{const[l,c]=K.useState(null),[d,v]=K.useState(!1),[m,E]=K.useState(null),x=K.useRef(null);K.useImperativeHandle(s,()=>({open:Y=>{c(Y.msg),E(document.getElementById(`msg-add-reactions-${Y.msg._id}`)||document.getElementById(`msg-${Y.msg._id}`)),v(!0),x.current=Y}}));const C=()=>{v(!1),E(null)},M=Y=>{C(),St.channelReaction({channel:l?.channel,message:l?._id,reaction:Y}).then(()=>x.current?.onChange?.())};if(!d||!l?._id)return null;const H=l.reactions?.find(Y=>Y.user==be.userID);return p.jsx(xh,{opened:d,onClose:C,target:m,width:320,children:p.jsx("div",{className:"p-2 grid grid-cols-5 gap-1",children:kD.map(Y=>{const te=H?.type===Y.value;return p.jsx("button",{type:"button",onClick:()=>M(Y.value),className:`
                  h-12 inline-flex items-center justify-center rounded-xl
                  text-[26px] tg-press
                  ${te?"bg-[var(--tg-accent-soft)]":"hover:bg-[var(--tg-bg-secondary)]"}
                `,title:Y.label,children:Y.name},Y.value)})})})});oA.displayName="MessageReactionPopover";const A_=300,m_=320,y_=400,b_=Yi(()=>{const{components:{MessagesSkeleton:r,DateChip:s,ScrollToBottomButton:l,CloseConversationButton:c}}=$r(),d=K.useRef(null),v=K.useRef(null),m=K.useRef(null),E=K.useRef(null),[x,C]=K.useState(!1),M=(De=!1)=>{E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{E.current=null,requestAnimationFrame(()=>{const ae=d.current;if(!ae)return;const ce=Math.max(0,ae.scrollHeight-ae.clientHeight),X=ce-ae.scrollTop;ae.scrollTo({top:ce,behavior:!De&&X>0&&X<=m_||De?"smooth":"auto"})})},A_)};K.useEffect(()=>(se.channel?._id&&(se.loadMessages(),se.channel?.closed?se.stopMessagesPolling():se.startMessagesPolling(M)),()=>{se.stopMessagesPolling(),E.current&&clearTimeout(E.current)}),[se.channel?._id,se.channel?.closed]);const H=K.useRef(!1);K.useEffect(()=>{H.current=!1},[se.channel?._id]),K.useEffect(()=>{se.displayMessages?.length&&d.current&&(H.current||(H.current=!0,M()))},[se.displayMessages?.length,se.channel?._id]),K.useEffect(()=>{se.pendingScrollToBottom&&se.displayMessages?.length&&(M(),se.clearPendingScrollToBottom())},[se.displayMessages]),K.useEffect(()=>{const De=d.current;if(!De)return;const ae=()=>{const ce=De.scrollHeight-De.scrollTop-De.clientHeight;C(ce>y_)};return De.addEventListener("scroll",ae,{passive:!0}),ae(),()=>De.removeEventListener("scroll",ae)},[se.channel?._id]);const Y=De=>{if(!De)return;const ae=document.getElementById(`msg-${De}`);!ae||!d.current||setTimeout(()=>{if(!d.current)return;const ce=ae.getBoundingClientRect(),X=d.current.getBoundingClientRect();d.current.scrollTo({top:d.current.scrollTop+(ce.top-X.top)-80,behavior:"smooth"}),ae.classList.add("tg-fade-in")},100)},te=se.displayMessages??[],le=(se.channel?.members??[]).filter(De=>De.owner!=be.userID).length>1,pe=te.map((De,ae)=>{const ce=te[ae-1],X=te[ae+1],oe=ce?.created_at&&De.created_at&&en.unix(ce.created_at).isSame(en.unix(De.created_at),"day"),we=!ce||!oe,Ie=ce&&ce.owner===De.owner&&oe,rt=X&&X.owner===De.owner&&X.created_at&&De.created_at&&en.unix(X.created_at).isSame(en.unix(De.created_at),"day");return{msg:De,newDay:we,groupedTop:!!Ie,groupedBottom:!!rt}}),Te=se.channel?._id&&se.channel.unreadCounts&&be.userID?se.channel.unreadCounts[be.userID]??0:0;return p.jsxs(p.Fragment,{children:[!!se.pinnedMessage&&p.jsx(D_,{onPin:()=>{St.pinnedMessage({message:se.pinnedMessage._id}).then(()=>se.loadMessages())},onClick:()=>Y(se.pinnedMessage._id),msg:se.pinnedMessage}),p.jsxs("div",{className:"relative flex-1 min-h-0 tg-chat-bg",children:[vo&&p.jsx("div",{className:"absolute top-1 left-2 text-[10px] text-red-500/60 select-none pointer-events-none z-10",children:Qb}),p.jsx("div",{ref:d,className:"absolute inset-0 overflow-y-auto tg-scroll",children:p.jsxs("div",{className:"flex flex-col py-3 px-3 pb-4 min-h-full",children:[se.messagesLoading&&!te.length&&p.jsx(r,{}),pe.map(({msg:De,newDay:ae,groupedTop:ce,groupedBottom:X})=>p.jsxs("div",{className:"contents",children:[ae&&De.created_at&&p.jsx(s,{ts:De.created_at}),p.jsx(v_,{onReplayClick:oe=>Y(oe._id),onReactionClick:oe=>{m.current?.open({msg:oe,onChange:()=>se.loadMessages()})},onOpenMenu:()=>{v.current?.open({msg:De,onChange:()=>se.loadMessages(),onPinned:()=>{St.pinnedMessage({message:De._id}).then(()=>se.loadMessages())},onDelete:()=>{St.channelDeleteMessage({message:De._id,channel:se.channel?._id}).then(()=>se.loadMessages())},onReply:oe=>se.setReplyMsg(oe)})},onChange:()=>se.loadMessages(),msg:De,showAuthorName:le,groupedTop:ce,groupedBottom:X})]},De._id)),!se.channel?.closed&&se.channel?.space=="support"&&se.channel?.members?.find(De=>De.owner==be.userID)&&p.jsx(c,{onClick:()=>{LD({title:"Завершить диалог?",content:"Диалог будет переведён в статус закрытого.",buttons:[{text:"Да, завершить",onClick:()=>{St.channelClose({channel:se.channel?._id}).then(()=>{se.loadMessages(),se.refreshChannel()})}},{text:"Отмена"}]})}})]})}),p.jsx(l,{visible:x,onClick:()=>M(!0),unread:Te}),p.jsx(oA,{ref:m}),p.jsx(cA,{ref:v})]})]})});function __(r){return tt({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)}function x_(r){return tt({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 E_="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/",C_=["😂","❤️","🤣","👍","😭","🙏","😘","🥰","😍","😊","🎉","😁","💕","🥺","😅","🔥","💔","👏","😢","🤔","😆","🤗","🙂","💖","😎","👌","💯","✨","💪","🤷","😔","😏","😳","😱","🤪","😤","🌹","😇","🙌","😋","😌","😜","💘","😝","🥳","😴","😡","🤩","👀","🥲","🤤","🤯","😬","🙈","🥴","😮","😑","🙄","😞","👋","🤞","🤝","🤠","🤑","🤓","😷","🫶","🫠","🥵","🤬","🤐","🥸","😨","😰","😥","😪","🤢","🤮","🤡","💀","👻","👽","🤖","💩","😸","🐶","🐱","🦄","🌈","⭐","💫","🌙","☀️","⚡","💤","🎂","🍕","☕","🍻","🎁"],Qp=5,S_=new Audio(E_),F_=Yi(()=>{const{id:r,components:{RichMessagebarRoot:s,RichMessagebarComposerWrap:l}}=$r(),c=se.channel?._id??"",d=K.useRef(null),v=K.useRef(null),m=K.useRef(null),E=K.useRef(null),x=K.useRef(!1),[C,M]=K.useState(!1),[H,Y]=K.useState(!1),te=()=>{se.sending||!c||v.current?.click()},ie=X=>{const oe=X.currentTarget,we=oe.files?.[0]??null;if(oe.value="",!we||se.sending||!c)return;const Ie=Qp*1024*1024;if(we.size>Ie){GD(`Файл слишком большой. Максимум ${Qp}MB.`);return}const rt=new FormData;rt.append("file",we),se.setSending(!0),St.channelDocumentUpload(rt).then(He=>{if(!He||!c){se.setSending(!1);return}se.sendMessage({attachments:[He],channel:c})}).catch(()=>se.setSending(!1))},le=X=>{c&&se.sendMessage({...X,channel:c}).then(()=>{S_.play().catch(()=>{}),X.text&&d.current&&(d.current.style.height="auto")})},pe=()=>{se.sending||(se.messageText?le({text:se.messageText}):uA.current?.open({onClose:()=>{},onSend:X=>{const oe=new FormData;oe.append("file",X,"audio.webm"),se.setSending(!0),St.channelVoiceUpload(oe).then(we=>{we?._id&&c?le({voice:{_id:we._id}}):se.setSending(!1)}).catch(()=>se.setSending(!1))}}))},Te=X=>{se.messageText.trim()&&(X.preventDefault(),d.current?.focus())},De=X=>{se.messageText.trim()&&(X.preventDefault(),x.current=!0,pe())},ae=()=>{if(x.current){x.current=!1;return}pe()},ce=!!se.messageText.trim();return p.jsxs(s,{children:[se.replyMsg&&p.jsxs("div",{className:"flex items-start gap-2 px-3 pt-2",children:[p.jsx("div",{className:"flex-1 min-w-0",children:p.jsx(sA,{variant:"compose",onClick:()=>{},msg:se.replyMsg})}),p.jsx(ui,{size:"sm",onClick:()=>{se.sending||se.setReplyMsg(null)},children:p.jsx(Hg,{})})]}),p.jsxs("div",{className:"flex items-end gap-1 px-2 py-2",children:[be.authEnabled&&p.jsx(ui,{ref:m,onClick:()=>M(!0),title:"Быстрые ответы",children:p.jsx(jy,{})}),p.jsxs("div",{className:"relative",children:[p.jsx("input",{ref:v,type:"file",className:"fixed left-[-9999px] top-0 h-px w-px opacity-0",tabIndex:-1,disabled:se.sending||!c,onChange:ie}),p.jsx(ui,{onClick:te,disabled:se.sending||!c,title:"Прикрепить",children:p.jsx(wy,{})})]}),p.jsxs(l,{children:[p.jsx("textarea",{id:"text-area-messagebar",ref:d,value:se.messageText,className:`
              flex-1 min-w-0 bg-transparent outline-none border-none
              resize-none overflow-hidden
              px-3 ${r==="instagram"?"py-2":"py-2.5"} text-[16px] md:text-[15px]
              text-[var(--tg-text-primary)]
              placeholder:text-[var(--tg-text-secondary)]
              max-h-[160px]
            `,rows:1,maxLength:vs,onChange:X=>{if(se.sending)return;const oe=X.currentTarget;oe.style.height="auto",oe.style.height=`${Math.min(oe.scrollHeight,160)}px`;let we=X.target?.value;we.trim()===""&&(we=""),se.setMessageText(we)},onKeyDown:X=>{X.key==="Enter"&&!X.shiftKey&&!be.isMobile()&&(X.preventDefault(),ce&&pe())},placeholder:"Сообщение..."}),p.jsx(ui,{ref:E,onClick:()=>Y(!0),size:"sm",className:r==="instagram"?"shrink-0":"mb-1 shrink-0",title:"Эмодзи",children:p.jsx(Ny,{})})]}),p.jsxs("button",{type:"button",onMouseDown:Te,onTouchStart:Te,onTouchEnd:De,onClick:ae,className:`
            relative w-10 h-10 rounded-full inline-flex items-center justify-center
            transition-all duration-200 tg-press
            ${ce?"bg-[var(--tg-accent)] text-white":"text-[var(--tg-text-secondary)] hover:bg-[var(--tg-bg-secondary)]"}
          `,children:[p.jsx("span",{className:`absolute inset-0 flex items-center justify-center transition-all duration-150 ${ce?"opacity-0 scale-50":"opacity-100 scale-100"}`,children:p.jsx(__,{size:20,className:r==="instagram"?"translate-y-[2px]":void 0})}),p.jsx("span",{className:`absolute inset-0 flex items-center justify-center transition-all duration-150 ${ce?"opacity-100 scale-100":"opacity-0 scale-50"}`,children:p.jsx(P1,{size:18,className:"-ml-0.5"})})]})]}),p.jsx(xh,{opened:H,onClose:()=>Y(!1),target:E.current,width:320,children:p.jsx("div",{className:"p-2 grid grid-cols-7 gap-1 max-h-[300px] overflow-y-auto tg-scroll",children:C_.map((X,oe)=>p.jsx("button",{type:"button",onClick:()=>{se.setMessageText(se.messageText+X)},className:`
                h-9 w-9 inline-flex items-center justify-center
                rounded-lg hover:bg-[var(--tg-bg-secondary)]
                text-[22px] tg-press
              `,children:X},oe))})}),p.jsx(xh,{opened:C,onClose:()=>M(!1),target:m.current,width:320,children:p.jsxs(VD,{children:[be.fastAnswers.map(X=>p.jsx(Qr,{title:X.name,onClick:()=>{X.text&&se.setMessageText(X.text),M(!1)},after:p.jsx("button",{type:"button",onClick:oe=>{oe.stopPropagation(),M(!1),SD.current?.open(X)},className:`p-1 rounded-md hover:bg-[var(--tg-bg-secondary)]
                    text-[var(--tg-accent)]`,children:p.jsx(x_,{size:18})})},X._id??X.name)),p.jsx(Qr,{icon:p.jsx(Oy,{}),title:"Добавить быстрый ответ",onClick:()=>{SD.current?.open(),M(!1)}})]})})]})});en.locale("ru");const w_=Yi(({noPage:r})=>{const{components:{ChannelHeaderCenter:s,JoinChannelBar:l}}=$r();K.useEffect(()=>{be.loadFastAnswers()},[]);const c=se.channel?.members?.find(M=>M.owner!=be.userID),d=se.channel?.name||"Чат",v=!!se.channel?.closed,m=v?"диалог закрыт":se.joinInChannel===!1?"ожидает присоединения":"был(а) недавно",E=p.jsx(HD,{left:be.isMobile()?p.jsx(ui,{onClick:()=>Y_(),children:p.jsx(xy,{})}):null,center:p.jsx(s,{title:d,status:m,statusTone:v||m==="был(а) недавно"?"muted":"accent",avatarId:c?.owner??se.channel?._id??"",avatarSize:40})});//!store.cap &&
const x=!v&&se.joinInChannel!=null&&!!se.channel?._id&&p.jsx(p.Fragment,{children:se.joinInChannel?p.jsx(F_,{}):be.authEnabled?p.jsx(l,{children:p.jsx(wg,{fullWidth:!0,onClick:()=>{se.channel?._id&&St.joinChannel({channel:se.channel._id}).then(({result:M})=>{M&&se.updateChannelInfo()})},children:"Присоединиться"})}):null}),C=p.jsxs(p.Fragment,{children:[E,p.jsx("div",{className:"flex-1 flex flex-col min-h-0 relative",children:p.jsx(b_,{})}),x]});return r?p.jsx("div",{className:"relative w-full h-full flex flex-col",children:C}):p.jsx(_h,{children:C})}),M_=({noPage:r,channelID:s})=>(K.useLayoutEffect(()=>(se.openChannel(s),()=>se.stopMessagesPolling()),[s]),p.jsx(w_,{noPage:r})),fA=Yi(M_),O_=({size:r=22,className:s=""})=>p.jsx("span",{className:`inline-block rounded-full border-[2.5px] border-current border-t-transparent animate-spin ${s}`,style:{width:r,height:r,color:"var(--tg-accent)"}});en.locale("ru");const T_=()=>{const r=async()=>{const s=new URLSearchParams(window.location.search);if((await St.authEnabled()).result)Mt.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),Mt.setToken(()=>localStorage.getItem("token")??null),localStorage.getItem("token")?be.loadUser().then(()=>lo().MainPage.move({})):lo().LoginPage.move({});else{Mt.setToken(()=>s.get("token")??null);const c=s.get("channel");be.loadUser().then(()=>{c?(be.setIsFixedChannel(!0),lo().ChannelPage.move({channelID:c})):(lo().MainPage.move({}),be.setIsFixedChannel(!1))})}};return K.useEffect(()=>{r()},[]),p.jsx(_h,{className:"items-center justify-center",children:p.jsx("div",{className:"my-auto flex flex-col items-center gap-3",children:p.jsx(O_,{size:32})})})},B_=Yi(T_);function hA(r){return tt({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)}en.locale("ru");const R_=()=>{const[r,s]=K.useState(""),[l,c]=K.useState(""),[d,v]=K.useState(!1),[m,E]=K.useState(null),x=()=>{E(null),v(!0),St.auth({login:r,password:l}).then(({result:C})=>{C?(localStorage.setItem("token",C),window.location.reload()):(E("Неверный логин или пароль"),v(!1))}).catch(()=>{E("Ошибка входа"),v(!1)})};return p.jsx(_h,{className:"items-center justify-center",children:p.jsxs("div",{className:"w-full max-w-[380px] px-6 flex flex-col items-center my-auto",children:[p.jsx("div",{className:`w-20 h-20 rounded-full flex items-center justify-center mb-6
            shadow-[0_8px_24px_rgba(51,144,236,0.35)]`,style:{background:"linear-gradient(135deg, var(--tg-accent) 0%, #5eaaf3 100%)"},children:p.jsx(hA,{className:"w-10 h-10 text-white"})}),p.jsx("h1",{className:"text-[24px] font-semibold text-[var(--tg-text-primary)] mb-1",children:"Вход в чат"}),p.jsx("p",{className:"text-[14px] text-[var(--tg-text-secondary)] mb-7 text-center",children:"Введите данные для входа в аккаунт"}),p.jsxs("div",{className:"w-full space-y-3 mb-2",children:[p.jsx(Mg,{label:"Логин",placeholder:"Введите логин",value:r,onChange:s}),p.jsx(Mg,{label:"Пароль",type:"password",placeholder:"Введите пароль",value:l,onChange:c})]}),m&&p.jsx("div",{className:"text-[13px] text-[var(--tg-danger)] my-1.5 px-1 w-full",children:m}),p.jsx(wg,{fullWidth:!0,size:"lg",loading:d,disabled:!r||!l,onClick:x,className:"mt-4",children:"Войти"})]})})},N_=Yi(R_);function Zp({value:r,onChange:s,tabs:l,className:c=""}){return p.jsx("div",{className:`relative flex gap-1 p-1 rounded-xl bg-[var(--tg-bg-secondary)] ${c}`,children:l.map(d=>{const v=d.id===r;return p.jsx("button",{type:"button",onClick:()=>s(d.id),className:`flex-1 h-8 rounded-lg text-[14px] font-medium tg-press
              transition-colors duration-150
              ${v?"bg-[var(--tg-bg)] text-[var(--tg-text-primary)] shadow-sm":"text-[var(--tg-text-secondary)]"}`,children:d.label},d.id)})})}const j_={telegram:"flex flex-col gap-0.5 px-1 py-1",whatsapp:"flex flex-col gap-0",instagram:"flex flex-col gap-2 px-2 py-2 bg-[var(--tg-bg-secondary)] min-h-0"};en.locale("ru");const L_=r=>r?r.deleted?"Сообщение удалено":r.text?r.text:r.attachments?.length?"📎 Файл":r.voice?.url?"🎙 Голосовое сообщение":"":"",z_=r=>{if(!r)return"";const s=en.unix(r),l=en();return s.isSame(l,"day")?s.format("HH:mm"):s.isSame(l.subtract(1,"day"),"day")?"вчера":s.isSame(l,"year")?s.format("D MMM"):s.format("DD.MM.YY")},U_=({selectChannelID:r,channelTab:s,desktopChannelSwitchBlocked:l=!1,onSelectChannel:c})=>{const{id:d,components:{DialogRow:v,DialogsListSkeleton:m,EmptyDialogs:E}}=$r();return K.useEffect(()=>(be.loadChannelList(),be.startChannelListPolling(),()=>be.stopChannelListPolling()),[s]),be.dialogsLoading?p.jsx(m,{}):be.channelList.length?p.jsx("div",{className:j_[d],children:be.channelList.map(x=>{const C=jD.shmChannelMessagesByID(x.lastMessage),M=x.unreadCounts?.[be.userID]??0,H=!!x.closed,Y=x.members?.find(pe=>pe.owner!=be.userID),te=C?.owner==be.userID,ie=H?"Диалог закрыт":L_(C),le=!!(te&&C?.viewed);return p.jsx(v,{avatarId:Y?.owner??x._id??"",title:x.name||"Без имени",preview:ie,timeLabel:z_(C?.created_at??x.created_at),selected:!be.isMobile()&&r===x._id,closed:H,switchBlocked:l&&r!==x._id,onClick:()=>x._id&&c(x),showReadCheck:le,unread:M},x._id)})}):p.jsx(E,{})},H_=Yi(U_);en.locale("ru");const G_=()=>{const{components:{MainSidebarHeaderCenter:r,MainDesktopSidebarShell:s,NoChannelSelected:l}}=$r(),c=!be.isMobile()&&!se.initialChannelSwitchReady,[d,v]=K.useState(!1),m=K.useRef(null),[E,x]=K.useState(""),[C,M]=K.useState(!1),H=()=>{v(!1),LD({title:"Выйти из аккаунта?",content:"Вы уверены, что хотите выйти?",buttons:[{text:"Выйти",onClick:()=>{localStorage.clear(),window.location.reload()}},{text:"Отмена"}]})},Y=[{id:"member",label:"Активные"},{id:"join",label:"Новые"},{id:"closed",label:"Закрытые"}],te=[{id:"member",label:"Активные"},{id:"closed",label:"Закрытые"}],ie=p.jsxs(p.Fragment,{children:[be.cap?p.jsx(Zp,{value:be.channelTab,onChange:le=>be.setChannelTab(le),tabs:te}):p.jsx(HD,{left:p.jsx(ui,{ref:m,onClick:()=>v(!0),children:p.jsx(Fy,{})}),center:p.jsx(r,{searchActive:C,search:E,onSearchChange:x,onSearchBlur:()=>{E||M(!1)}}),right:p.jsx(ui,{onClick:()=>M(le=>!le),children:p.jsx(By,{})}),subnavbar:be.authEnabled&&p.jsx(Zp,{value:be.channelTab,onChange:le=>be.setChannelTab(le),tabs:Y})}),p.jsx("div",{className:"flex-1 overflow-y-auto tg-scroll",children:p.jsx(H_,{selectChannelID:be.selectChannel?._id??null,channelTab:be.channelTab,selectChannel:be.selectChannel,desktopChannelSwitchBlocked:c,onSelectChannel:le=>{c&&le._id!==be.selectChannel?._id||(be.setSelectChannel(le),be.isMobile()&&le?._id&&lo().ChannelPage.move({channelID:le._id}))}})}),p.jsx(xh,{opened:d,onClose:()=>v(!1),target:m.current,width:240,children:p.jsxs(VD,{children:[be.authEnabled&&p.jsx(Qr,{icon:p.jsx(Sy,{}),title:"Выйти",danger:!0,onClick:H}),be.authEnabled&&p.jsx(Qr,{icon:p.jsx(hA,{}),title:"О приложении",onClick:()=>v(!1)})]})})]});return be.isMobile()?p.jsx(_h,{children:ie}):p.jsxs(_h,{className:"flex-row",children:[p.jsx(s,{children:ie}),p.jsx("div",{className:"flex-1 flex flex-col min-w-0 relative",children:be.selectChannel?._id?p.jsx(fA,{channelID:be.selectChannel?._id,noPage:!0}):p.jsx(l,{})})]})},q_=Yi(G_),Y_=()=>{so.current?.goBack()},lo=()=>({LoadingPage:{component:B_,move:r=>{so.current?.onChanceRoute("LoadingPage",r)}},LoginPage:{component:N_,move:r=>{so.current?.onChanceRoute("LoginPage",r)}},MainPage:{component:q_,move:r=>{so.current?.onChanceRoute("MainPage",r)}},ChannelPage:{component:fA,move:r=>{so.current?.onChanceRoute("ChannelPage",r)}}}),so=Iu.createRef(),k_=Iu.forwardRef((r,s)=>{const l=K.useRef(0);K.useImperativeHandle(s,()=>({goBack:()=>{d(E=>E.slice(0,-1))},onChanceRoute:(E,x)=>{c[c.length-1]?.route!==E&&d(C=>{const M={route:E,props:x,id:l.current++};return[...C,M]})}}));const[c,d]=K.useState([]),[v,m]=K.useState(!1);return K.useEffect(()=>{d([{route:"LoadingPage",props:{},id:l.current++}]),m(!0)},[]),K.useEffect(()=>{if(v&&c.length==0){d([{route:"LoadingPage",props:{},id:l.current++}]);return}},[c,v]),p.jsx(p.Fragment,{children:c.map((E,x)=>{let C=lo()[E.route];if(!C)return null;if(x==c.length-1)return p.jsx(C.component,{...E.props},E.id)})})}),Kp={primary:"#3390ec",red:"#e53935",green:"#43a047",blue:"#1e88e5",pink:"#ec407a",yellow:"#fbc02d",orange:"#fb8c00",purple:"#8e24aa",deeppurple:"#5e35b1",lightblue:"#039be5",teal:"#00897b",lime:"#7cb342",deeporange:"#f4511e"},V_=r=>{const s=Kp[r]??Kp.primary;document.documentElement.style.setProperty("--tg-theme-color",s)};en.locale("ru");vo||(console.log=()=>{},console.error=()=>{},console.warn=()=>{},console.info=()=>{},console.debug=()=>{},console.trace=()=>{},console.dir=()=>{},console.dirxml=()=>{},console.group=()=>{});Mt.setUseEncrypt(!vo);Mt.setDomains([Zb()]);Mt.setEndpoint(Kb());Mt.setToast(r=>{GD(r)});const Q_=()=>{const[r,s]=K.useState(()=>typeof window<"u"?zp(window.location.search):"telegram");return K.useEffect(()=>{const l=()=>be.setViewportWidth(window.innerWidth);l(),window.addEventListener("resize",l);const c=Y=>Y.preventDefault();document.addEventListener("gesturestart",c),document.addEventListener("gesturechange",c),document.addEventListener("gestureend",c);let d=0;const v=Y=>{const te=Date.now();te-d<=350&&Y.preventDefault(),d=te};document.addEventListener("touchend",v,{passive:!1});const m=Y=>{Y.ctrlKey&&Y.preventDefault()};window.addEventListener("wheel",m,{passive:!1});const E=Y=>{(Y.ctrlKey||Y.metaKey)&&["+","=","-","_","0"].includes(Y.key)&&Y.preventDefault()};window.addEventListener("keydown",E);const x=new URLSearchParams(window.location.search),C=x.get("cap");be.setCap(!!C),x.get("dark")?document.body.classList.add("dark"):document.body.classList.remove("dark");const H=x.get("theme");return H&&V_(H),s(zp(window.location.search)),()=>{window.removeEventListener("resize",l),document.removeEventListener("gesturestart",c),document.removeEventListener("gesturechange",c),document.removeEventListener("gestureend",c),document.removeEventListener("touchend",v),window.removeEventListener("wheel",m),window.removeEventListener("keydown",E)}},[]),K.useEffect(()=>(document.documentElement.setAttribute("data-presentation",r),()=>{document.documentElement.removeAttribute("data-presentation")}),[r]),p.jsxs("div",{"data-presentation":r,className:"fixed inset-0 flex flex-col overflow-hidden bg-[var(--tg-bg)] text-[var(--tg-text-primary)]",style:{paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)"},children:[p.jsx(Gb,{id:r,children:p.jsx(k_,{ref:so})}),p.jsx(nA,{ref:SD}),p.jsx(rA,{ref:iA}),p.jsx(aA,{ref:uA}),p.jsx(X1,{ref:K1})]})},Z_=Yi(Q_);Mt.setUseEncrypt(!0);kA.createRoot(document.getElementById("root")).render(p.jsx(Z_,{}));
