vendor: 4,848 bytes, line 1
1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&n(f)}).observe(document,{childList:!0,subtree:!0});function r(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(l){if(l.ep)return;l.ep=!0;const c=r(l);fetch(l.href,c)}})();var Tv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function aT(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var l=!1;try{l=this instanceof n}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),r}var Nv={exports:{}},gp={};var mw;function lT(){if(mw)return gp;mw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,l,c){var f=null;if(c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),"key"in l){c={};for(var x in l)x!=="key"&&(c[x]=l[x])}else c=l;return l=c.ref,{$$typeof:e,type:n,key:f,ref:l!==void 0?l:null,props:c}}return gp.Fragment=t,gp.jsx=r,gp.jsxs=r,gp}var xw;function oT(){return xw||(xw=1,Nv.exports=lT()),Nv.exports}var o=oT(),jv={exports:{}},Dt={};var gw;function cT(){if(gw)return Dt;gw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),R=Symbol.iterator;function O(Q){return Q===null||typeof Q!="object"?null:(Q=R&&Q[R]||Q["@@iterator"],typeof Q=="function"?Q:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,_={};function $(Q,re,ge){this.props=Q,this.context=re,this.refs=_,this.updater=ge||M}$.prototype.isReactComponent={},$.prototype.setState=function(Q,re){if(typeof Q!="object"&&typeof Q!="function"&&Q!=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,Q,re,"setState")},$.prototype.forceUpdate=function(Q){this.updater.enqueueForceUpdate(this,Q,"forceUpdate")};function D(){}D.prototype=$.prototype;function F(Q,re,ge){this.props=Q,this.context=re,this.refs=_,this.updater=ge||M}var J=F.prototype=new D;J.constructor=F,P(J,$.prototype),J.isPureReactComponent=!0;var te=Array.isArray;function le(){}var se={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function W(Q,re,ge){var ye=ge.ref;return{$$typeof:e,type:Q,key:re,ref:ye!==void 0?ye:null,props:ge}}function z(Q,re){return W(Q.type,re,Q.props)}function H(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e}function Z(Q){var re={"=":"=0",":":"=2"};return"$"+Q.replace(/[=:]/g,function(ge){return re[ge]})}var ae=/\/+/g;function ue(Q,re){return typeof Q=="object"&&Q!==null&&Q.key!=null?Z(""+Q.key):re.toString(36)}function ie(Q){switch(Q.status){case"fulfilled":return Q.value;case"rejected":throw Q.reason;default:switch(typeof Q.status=="string"?Q.then(le,le):(Q.status="pending",Q.then(function(re){Q.status==="pending"&&(Q.status="fulfilled",Q.value=re)},function(re){Q.status==="pending"&&(Q.status="rejected",Q.reason=re)})),Q.status){case"fulfilled":return Q.value;case"rejected":throw Q.reason}}throw Q}function X(Q,re,ge,ye,Te){var _e=typeof Q;(_e==="undefined"||_e==="boolean")&&(Q=null);var Qe=!1;if(Q===null)Qe=!0;else switch(_e){case"bigint":case"string":case"number":Qe=!0;break;case"object":switch(Q.$$typeof){case e:case t:Qe=!0;break;case S:return Qe=Q._init,X(Qe(Q._payload),re,ge,ye,Te)}}if(Qe)return Te=Te(Q),Qe=ye===""?"."+ue(Q,0):ye,te(Te)?(ge="",Qe!=null&&(ge=Qe.replace(ae,"$&/")+"/"),X(Te,re,ge,"",function(gt){return gt})):Te!=null&&(H(Te)&&(Te=z(Te,ge+(Te.key==null||Q&&Q.key===Te.key?"":(""+Te.key).replace(ae,"$&/")+"/")+Qe)),re.push(Te)),1;Qe=0;var Je=ye===""?".":ye+":";if(te(Q))for(var it=0;
vendor: 15,955 bytes, line 1
1it<Q.length;it++)ye=Q[it],_e=Je+ue(ye,it),Qe+=X(ye,re,ge,_e,Te);else if(it=O(Q),typeof it=="function")for(Q=it.call(Q),it=0;!(ye=Q.next()).done;)ye=ye.value,_e=Je+ue(ye,it++),Qe+=X(ye,re,ge,_e,Te);else if(_e==="object"){if(typeof Q.then=="function")return X(ie(Q),re,ge,ye,Te);throw re=String(Q),Error("Objects are not valid as a React child (found: "+(re==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":re)+"). If you meant to render a collection of children, use an array instead.")}return Qe}function oe(Q,re,ge){if(Q==null)return Q;var ye=[],Te=0;return X(Q,ye,"","",function(_e){return re.call(ge,_e,Te++)}),ye}function ne(Q){if(Q._status===-1){var re=Q._result;re=re(),re.then(function(ge){(Q._status===0||Q._status===-1)&&(Q._status=1,Q._result=ge)},function(ge){(Q._status===0||Q._status===-1)&&(Q._status=2,Q._result=ge)}),Q._status===-1&&(Q._status=0,Q._result=re)}if(Q._status===1)return Q._result.default;throw Q._result}var fe=typeof reportError=="function"?reportError:function(Q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var re=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Q=="object"&&Q!==null&&typeof Q.message=="string"?String(Q.message):String(Q),error:Q});if(!window.dispatchEvent(re))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Q);return}console.error(Q)},pe={map:oe,forEach:function(Q,re,ge){oe(Q,function(){re.apply(this,arguments)},ge)},count:function(Q){var re=0;return oe(Q,function(){re++}),re},toArray:function(Q){return oe(Q,function(re){return re})||[]},only:function(Q){if(!H(Q))throw Error("React.Children.only expected to receive a single React element child.");return Q}};return Dt.Activity=C,Dt.Children=pe,Dt.Component=$,Dt.Fragment=r,Dt.Profiler=l,Dt.PureComponent=F,Dt.StrictMode=n,Dt.Suspense=y,Dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=se,Dt.__COMPILER_RUNTIME={__proto__:null,c:function(Q){return se.H.useMemoCache(Q)}},Dt.cache=function(Q){return function(){return Q.apply(null,arguments)}},Dt.cacheSignal=function(){return null},Dt.cloneElement=function(Q,re,ge){if(Q==null)throw Error("The argument must be a React element, but you passed "+Q+".");var ye=P({},Q.props),Te=Q.key;if(re!=null)for(_e in re.key!==void 0&&(Te=""+re.key),re)!L.call(re,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&re.ref===void 0||(ye[_e]=re[_e]);var _e=arguments.length-2;if(_e===1)ye.children=ge;else if(1<_e){for(var Qe=Array(_e),Je=0;Je<_e;Je++)Qe[Je]=arguments[Je+2];ye.children=Qe}return W(Q.type,Te,ye)},Dt.createContext=function(Q){return Q={$$typeof:f,_currentValue:Q,_currentValue2:Q,_threadCount:0,Provider:null,Consumer:null},Q.Provider=Q,Q.Consumer={$$typeof:c,_context:Q},Q},Dt.createElement=function(Q,re,ge){var ye,Te={},_e=null;if(re!=null)for(ye in re.key!==void 0&&(_e=""+re.key),re)L.call(re,ye)&&ye!=="key"&&ye!=="__self"&&ye!=="__source"&&(Te[ye]=re[ye]);var Qe=arguments.length-2;if(Qe===1)Te.children=ge;else if(1<Qe){for(var Je=Array(Qe),it=0;it<Qe;it++)Je[it]=arguments[it+2];Te.children=Je}if(Q&&Q.defaultProps)for(ye in Qe=Q.defaultProps,Qe)Te[ye]===void 0&&(Te[ye]=Qe[ye]);return W(Q,_e,Te)},Dt.createRef=function(){return{current:null}},Dt.forwardRef=function(Q){return{$$typeof:x,render:Q}},Dt.isValidElement=H,Dt.lazy=function(Q){return{$$typeof:S,_payload:{_status:-1,_result:Q},_init:ne}},Dt.memo=function(Q,re){return{$$typeof:b,type:Q,compare:re===void 0?null:re}},Dt.startTransition=function(Q){var re=se.T,ge={};se.T=ge;try{var ye=Q(),Te=se.S;Te!==null&&Te(ge,ye),typeof ye=="object"&&ye!==null&&typeof ye.then=="function"&&ye.then(le,fe)}catch(_e){fe(_e)}finally{re!==null&&ge.types!==null&&(re.types=ge.types),se.T=re}},Dt.unstable_useCacheRefresh=function(){return se.H.useCacheRefresh()},Dt.use=function(Q){return se.H.use(Q)},Dt.useActionState=function(Q,re,ge){return se.H.useActionState(Q,re,ge)},Dt.useCallback=function(Q,re){return se.H.useCallback(Q,re)},Dt.useContext=function(Q){return se.H.useContext(Q)},Dt.useDebugValue=function(){},Dt.useDeferredValue=function(Q,re){return se.H.useDeferredValue(Q,re)},Dt.useEffect=function(Q,re){return se.H.useEffect(Q,re)},Dt.useEffectEvent=function(Q){return se.H.useEffectEvent(Q)},Dt.useId=function(){return se.H.useId()},Dt.useImperativeHandle=function(Q,re,ge){return se.H.useImperativeHandle(Q,re,ge)},Dt.useInsertionEffect=function(Q,re){return se.H.useInsertionEffect(Q,re)},Dt.useLayoutEffect=function(Q,re){return se.H.useLayoutEffect(Q,re)},Dt.useMemo=function(Q,re){return se.H.useMemo(Q,re)},Dt.useOptimistic=function(Q,re){return se.H.useOptimistic(Q,re)},Dt.useReducer=function(Q,re,ge){return se.H.useReducer(Q,re,ge)},Dt.useRef=function(Q){return se.H.useRef(Q)},Dt.useState=function(Q){return se.H.useState(Q)},Dt.useSyncExternalStore=function(Q,re,ge){return se.H.useSyncExternalStore(Q,re,ge)},Dt.useTransition=function(){return se.H.useTransition()},Dt.version="19.2.4",Dt}var yw;function Xp(){return yw||(yw=1,jv.exports=cT()),jv.exports}var Y=Xp();const nr=gc(Y);var Mv={exports:{}},yp={},Rv={exports:{}},Ov={};var vw;function uT(){return vw||(vw=1,(function(e){function t(X,oe){var ne=X.length;X.push(oe);e:for(;0<ne;){var fe=ne-1>>>1,pe=X[fe];if(0<l(pe,oe))X[fe]=oe,X[ne]=pe,ne=fe;else break e}}function r(X){return X.length===0?null:X[0]}function n(X){if(X.length===0)return null;var oe=X[0],ne=X.pop();if(ne!==oe){X[0]=ne;e:for(var fe=0,pe=X.length,Q=pe>>>1;fe<Q;){var re=2*(fe+1)-1,ge=X[re],ye=re+1,Te=X[ye];if(0>l(ge,ne))ye<pe&&0>l(Te,ge)?(X[fe]=Te,X[ye]=ne,fe=ye):(X[fe]=ge,X[re]=ne,fe=re);else if(ye<pe&&0>l(Te,ne))X[fe]=Te,X[ye]=ne,fe=ye;else break e}}return oe}function l(X,oe){var ne=X.sortIndex-oe.sortIndex;return ne!==0?ne:X.id-oe.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,x=f.now();e.unstable_now=function(){return f.now()-x}}var y=[],b=[],S=1,C=null,R=3,O=!1,M=!1,P=!1,_=!1,$=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function J(X){for(var oe=r(b);oe!==null;){if(oe.callback===null)n(b);else if(oe.startTime<=X)n(b),oe.sortIndex=oe.expirationTime,t(y,oe);else break;oe=r(b)}}function te(X){if(P=!1,J(X),!M)if(r(y)!==null)M=!0,le||(le=!0,Z());else{var oe=r(b);oe!==null&&ie(te,oe.startTime-X)}}var le=!1,se=-1,L=5,W=-1;function z(){return _?!0:!(e.unstable_now()-W<L)}function H(){if(_=!1,le){var X=e.unstable_now();W=X;var oe=!0;try{e:{M=!1,P&&(P=!1,D(se),se=-1),O=!0;var ne=R;try{t:{for(J(X),C=r(y);C!==null&&!(C.expirationTime>X&&z());){var fe=C.callback;if(typeof fe=="function"){C.callback=null,R=C.priorityLevel;var pe=fe(C.expirationTime<=X);if(X=e.unstable_now(),typeof pe=="function"){C.callback=pe,J(X),oe=!0;break t}C===r(y)&&n(y),J(X)}else n(y);C=r(y)}if(C!==null)oe=!0;else{var Q=r(b);Q!==null&&ie(te,Q.startTime-X),oe=!1}}break e}finally{C=null,R=ne,O=!1}oe=void 0}}finally{oe?Z():le=!1}}}var Z;if(typeof F=="function")Z=function(){F(H)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ue=ae.port2;ae.port1.onmessage=H,Z=function(){ue.postMessage(null)}}else Z=function(){$(H,0)};function ie(X,oe){se=$(function(){X(e.unstable_now())},oe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return R},e.unstable_next=function(X){switch(R){case 1:case 2:case 3:var oe=3;break;default:oe=R}var ne=R;R=oe;try{return X()}finally{R=ne}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(X,oe){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var ne=R;R=X;try{return oe()}finally{R=ne}},e.unstable_scheduleCallback=function(X,oe,ne){var fe=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?fe+ne:fe):ne=fe,X){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=ne+pe,X={id:S++,callback:oe,priorityLevel:X,startTime:ne,expirationTime:pe,sortIndex:-1},ne>fe?(X.sortIndex=ne,t(b,X),r(y)===null&&X===r(b)&&(P?(D(se),se=-1):P=!0,ie(te,ne-fe))):(X.sortIndex=pe,t(y,X),M||O||(M=!0,le||(le=!0,Z()))),X},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(X){var oe=R;return function(){var ne=R;R=oe;try{return X.apply(this,arguments)}finally{R=ne}}}})(Ov)),Ov}var bw;function dT(){return bw||(bw=1,Rv.exports=uT()),Rv.exports}var Bv={exports:{}},sn={};var ww;function hT(){if(ww)return sn;ww=1;var e=Xp();function t(y){var b="https://react.dev/errors/"+y;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)b+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(y,b,S){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:C==null?null:""+C,children:y,containerInfo:b,implementation:S}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(y,b){if(y==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,sn.createPortal=function(y,b){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(t(299));return c(y,b,null,S)},sn.flushSync=function(y){var b=f.T,S=n.p;try{if(f.T=null,n.p=2,y)return y()}finally{f.T=b,n.p=S,n.d.f()}},sn.preconnect=function(y,b){typeof y=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,n.d.C(y,b))},sn.prefetchDNS=function(y){typeof y=="string"&&n.d.D(y)},sn.preinit=function(y,b){if(typeof y=="string"&&b&&typeof b.as=="string"){var S=b.as,C=x(S,b.crossOrigin),R=typeof b.integrity=="string"?b.integrity:void 0,O=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;S==="style"?n.d.S(y,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:C,integrity:R,fetchPriority:O}):S==="script"&&n.d.X(y,{crossOrigin:C,integrity:R,fetchPriority:O,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},sn.preinitModule=function(y,b){if(typeof y=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var S=x(b.as,b.crossOrigin);n.d.M(y,{crossOrigin:S,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&n.d.M(y)},sn.preload=function(y,b){if(typeof y=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var S=b.as,C=x(S,b.crossOrigin);n.d.L(y,S,{crossOrigin:C,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},sn.preloadModule=function(y,b){if(typeof y=="string")if(b){var S=x(b.as,b.crossOrigin);n.d.m(y,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:S,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else n.d.m(y)},sn.requestFormReset=function(y){n.d.r(y)},sn.unstable_batchedUpdates=function(y,b){return y(b)},sn.useFormState=function(y,b,S){return f.H.useFormState(y,b,S)},sn.useFormStatus=function(){return f.H.useHostTransitionStatus()},sn.version="19.2.4",sn}var Sw;function TE(){if(Sw)return Bv.exports;Sw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Bv.exports=hT(),Bv.exports}var Aw;function fT(){if(Aw)return yp;Aw=1;var e=dT(),t=Xp(),r=TE();function n(s){var a="https://react.dev/errors/"+s;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)a+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+s+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function c(s){var a=s,d=s;if(s.alternate)for(;a.return;)a=a.return;else{s=a;do a=s,(a.flags&4098)!==0&&(d=a.return),s=a.return;while(s)}return a.tag===3?d:null}function f(s){if(s.tag===13){var a=s.memoizedState;if(a===null&&(s=s.alternate,s!==null&&(a=s.memoizedState)),a!==null)return a.dehydrated}return null}function x(s){if(s.tag===31){var a=s.memoizedState;if(a===null&&(s=s.alternate,s!==null&&(a=s.memoizedState)),a!==null)return a.dehydrated}return null}function y(s){if(c(s)!==s)throw Error(n(188))}function b(s){var a=s.alternate;if(!a){if(a=c(s),a===null)throw Error(n(188));return a!==s?null:s}for(var d=s,p=a;;){var E=d.return;if(E===null)break;var T=E.alternate;if(T===null){if(p=E.return,p!==null){d=p;continue}break}if(E.child===T.child){for(T=E.child;T;){if(T===d)return y(E),s;if(T===p)return y(E),a;T=T.sibling}throw Error(n(188))}if(d.return!==p.return)d=E,p=T;else{for(var V=!1,ce=E.child;ce;){if(ce===d){V=!0,d=E,p=T;break}if(ce===p){V=!0,p=E,d=T;break}ce=ce.sibling}if(!V){for(ce=T.child;ce;){if(ce===d){V=!0,d=T,p=E;break}if(ce===p){V=!0,p=T,d=E;break}ce=ce.sibling}if(!V)throw Error(n(189))}}if(d.alternate!==p)throw Error(n(190))}if(d.tag!==3)throw Error(n(188));return d.stateNode.current===d?s:a}function S(s){var a=s.tag;if(a===5||a===26||a===27||a===6)return s;for(s=s.child;s!==null;){if(a=S(s),a!==null)return a;s=s.sibling}return null}var C=Object.assign,R=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),F=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function Z(s){return s===null||typeof s!="object"?null:(s=H&&s[H]||s["@@iterator"],typeof s=="function"?s:null)}var ae=Symbol.for("react.client.reference");function ue(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===ae?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case P:return"Fragment";case $:return"Profiler";case _:return"StrictMode";case te:return"Suspense";case le:return"SuspenseList";case W:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case M:return"Portal";case F:return s.displayName||"Context";case D:return(s._context.displayName||"Context")+".Consumer";case J:var a=s.render;return s=s.displayName,s||(s=a.displayName||a.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case se:return a=s.displayName||null,a!==null?a:ue(s.type)||"Memo";case L:a=s._payload,s=s._init;try{return ue(s(a))}catch{}}return null}var ie=Array.isArray,X=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pen
vendor: 4,269 bytes, lines 1-8
1ding:!1,data:null,method:null,action:null},fe=[],pe=-1;function Q(s){return{current:s}}function re(s){0>pe||(s.current=fe[pe],fe[pe]=null,pe--)}function ge(s,a){pe++,fe[pe]=s.current,s.current=a}var ye=Q(null),Te=Q(null),_e=Q(null),Qe=Q(null);function Je(s,a){switch(ge(_e,a),ge(Te,s),ge(ye,null),a.nodeType){case 9:case 11:s=(s=a.documentElement)&&(s=s.namespaceURI)?G(s):0;break;default:if(s=a.tagName,a=a.namespaceURI)a=G(a),s=K(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}re(ye),ge(ye,s)}function it(){re(ye),re(Te),re(_e)}function gt(s){s.memoizedState!==null&&ge(Qe,s);var a=ye.current,d=K(a,s.type);a!==d&&(ge(Te,s),ge(ye,d))}function bt(s){Te.current===s&&(re(ye),re(Te)),Qe.current===s&&(re(Qe),fp._currentValue=ne)}var Xt,Nt;function xt(s){if(Xt===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);Xt=a&&a[1]||"",Nt=-1<d.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+Xt+s+Nt}var jt=!1;function Le(s,a){if(!s||jt)return"";jt=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(a){var Xe=function(){throw Error()};if(Object.defineProperty(Xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Xe,[])}catch(Ie){var Be=Ie}Reflect.construct(s,[],Xe)}else{try{Xe.call()}catch(Ie){Be=Ie}s.call(Xe.prototype)}}else{try{throw Error()}catch(Ie){Be=Ie}(Xe=s())&&typeof Xe.catch=="function"&&Xe.catch(function(){})}}catch(Ie){if(Ie&&Be&&typeof Ie.stack=="string")return[Ie.stack,Be.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=p.DetermineComponentFrameRoot(),V=T[0],ce=T[1];if(V&&ce){var we=V.split(` 4`),Oe=ce.split(` 5`);for(E=p=0;p<we.length&&!we[p].includes("DetermineComponentFrameRoot");)p++;for(;E<Oe.length&&!Oe[E].includes("DetermineComponentFrameRoot");)E++;if(p===we.length||E===Oe.length)for(p=we.length-1,E=Oe.length-1;1<=p&&0<=E&&we[p]!==Oe[E];)E--;for(;1<=p&&0<=E;p--,E--)if(we[p]!==Oe[E]){if(p!==1||E!==1)do if(p--,E--,0>E||we[p]!==Oe[E]){var Ve=` 6`+we[p].replace(" at new "," at ");return s.displayName&&Ve.includes("<anonymous>")&&(Ve=Ve.replace("<anonymous>",s.displayName)),Ve}while(1<=p&&0<=E);break}}}finally{jt=!1,Error.prepareStackTrace=d}return(d=s?s.displayName||s.name:"")?xt(d):""}function Ke(s,a){switch(s.tag){case 26:case 27:case 5:return xt(s.type);case 16:return xt("Lazy");case 13:return s.child!==a&&a!==null?xt("Suspense Fallback"):xt("Suspense");case 19:return xt("SuspenseList");case 0:case 15:return Le(s.type,!1);case 11:return Le(s.type.render,!1);case 1:return Le(s.type,!0);case 31:return xt("Activity");default:return""}}function tt(s){try{var a="",d=null;do a+=Ke(s,d),d=s,s=s.return;while(s);return a}catch(p){return` 7Error generating stack: `+p.message+` 8`+p.stack}}var Ze=Object.prototype.hasOwnProperty,dt=e.unstable_scheduleCallback,xe=e.unstable_cancelCallback,Se=e.unstable_shouldYield,he=e.unstable_requestPaint,Ne=e.unstable_now,ze=e.unstable_getCurrentPriorityLevel,Ue=e.unstable_ImmediatePriority,Me=e.unstable_UserBlockingPriority,ot=e.unstable_NormalPriority,kt=e.unstable_LowPriority,vr=e.unstable_IdlePriority,ir=e.log,qt=e.unstable_setDisableYieldValue,qr=null,xr=null;function Fr(s){if(typeof ir=="function"&&qt(s),xr&&typeof xr.setStrictMode=="function")try{xr.setStrictMode(qr,s)}catch{}}var Er=Math.clz32?Math.clz32:hi,qn=Math.log,gr=Math.LN2;function hi(s){return s>>>=0,s===0?32:31-(qn(s)/gr|0)|0}var Ts=256,ya=262144,Ri=4194304;function En(s){var a=s&42;if(a!==0)return a;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;
vendor: 6,160 bytes, line 8
8case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Wn(s,a,d){var p=s.pendingLanes;if(p===0)return 0;var E=0,T=s.suspendedLanes,V=s.pingedLanes;s=s.warmLanes;var ce=p&134217727;return ce!==0?(p=ce&~T,p!==0?E=En(p):(V&=ce,V!==0?E=En(V):d||(d=ce&~s,d!==0&&(E=En(d))))):(ce=p&~T,ce!==0?E=En(ce):V!==0?E=En(V):d||(d=p&~s,d!==0&&(E=En(d)))),E===0?0:a!==0&&a!==E&&(a&T)===0&&(T=E&-E,d=a&-a,T>=d||T===32&&(d&4194048)!==0)?a:E}function on(s,a){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&a)===0}function Bt(s,a){switch(s){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Tr(){var s=Ri;return Ri<<=1,(Ri&62914560)===0&&(Ri=4194304),s}function us(s){for(var a=[],d=0;31>d;d++)a.push(s);return a}function Wr(s,a){s.pendingLanes|=a,a!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function ds(s,a,d,p,E,T){var V=s.pendingLanes;s.pendingLanes=d,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=d,s.entangledLanes&=d,s.errorRecoveryDisabledLanes&=d,s.shellSuspendCounter=0;var ce=s.entanglements,we=s.expirationTimes,Oe=s.hiddenUpdates;for(d=V&~d;0<d;){var Ve=31-Er(d),Xe=1<<Ve;ce[Ve]=0,we[Ve]=-1;var Be=Oe[Ve];if(Be!==null)for(Oe[Ve]=null,Ve=0;Ve<Be.length;Ve++){var Ie=Be[Ve];Ie!==null&&(Ie.lane&=-536870913)}d&=~Xe}p!==0&&ar(s,p,0),T!==0&&E===0&&s.tag!==0&&(s.suspendedLanes|=T&~(V&~a))}function ar(s,a,d){s.pendingLanes|=a,s.suspendedLanes&=~a;var p=31-Er(a);s.entangledLanes|=a,s.entanglements[p]=s.entanglements[p]|1073741824|d&261930}function br(s,a){var d=s.entangledLanes|=a;for(s=s.entanglements;d;){var p=31-Er(d),E=1<<p;E&a|s[p]&a&&(s[p]|=a),d&=~E}}function tr(s,a){var d=a&-a;return d=(d&42)!==0?1:cn(d),(d&(s.suspendedLanes|a))!==0?0:d}function cn(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Oi(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function l0(){var s=oe.p;return s!==0?s:(s=window.event,s===void 0?32:ow(s.type))}function o0(s,a){var d=oe.p;try{return oe.p=s,a()}finally{oe.p=d}}var Qr=Math.random().toString(36).slice(2),ys="__reactFiber$"+Qr,Vs="__reactProps$"+Qr,va="__reactContainer$"+Qr,Nr="__reactEvents$"+Qr,c0="__reactListeners$"+Qr,Iy="__reactHandles$"+Qr,Yu="__reactResources$"+Qr,wc="__reactMarker$"+Qr;function Ns(s){delete s[ys],delete s[Vs],delete s[Nr],delete s[c0],delete s[Iy]}function so(s){var a=s[ys];if(a)return a;for(var d=s.parentNode;d;){if(a=d[va]||d[ys]){if(d=a.alternate,a.child!==null||d!==null&&d.child!==null)for(s=Vt(s);s!==null;){if(d=s[ys])return d;s=Vt(s)}return a}s=d,d=s.parentNode}return null}function no(s){if(s=s[ys]||s[va]){var a=s.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return s}return null}function Sc(s){var a=s.tag;if(a===5||a===26||a===27||a===6)return s.stateNode;throw Error(n(33))}function io(s){var a=s[Yu];return a||(a=s[Yu]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function as(s){s[wc]=!0}var Ih=new Set,u0={};function al(s,a){ba(s,a),ba(s+"Capture",a)}function ba(s,a){for(u0[s]=a,s=0;s<a.length;s++)Ih.add(a[s])}var d0=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]*$"),vs={},Ph={};function Py(s){return Ze.call(Ph,s)?!0:Ze.call(vs,s)?!1:d0.test(s)?Ph[s]=!0:(vs[s]=!0,!1)}function Gu(s,a,d){if(Py(a))if(d===null)s.removeAttribute(a);else{switch(typeof d){case"undefined":case"function":case"symbol":s.removeAttribute(a);return;case"boolean":var p=a.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){s.removeAttribute(a);return}}s.setAttribute(a,""+d)}}function Xu(s,a,d){if(d===null)s.removeAttribute(a);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(a);return}s.setAttribute(a,""+d)}}function Bi(s,a,d,p){if(p===null)s.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(d);return}s.setAttributeNS(a,d,""+p)}}function un(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function h0(s){var a=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function f0(s,a,d){var p=Object.getOwnPropertyDescriptor(s.constructor.prototype,a);if(!s.hasOwnProperty(a)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var E=p.get,T=p.set;return Object.defineProperty(s,a,{configurable:!0,get:function(){return E.call(this)},set:function(V){d=""+V,T.call(this,V)}}),Object.defineProperty(s,a,{enumerable:p.enumerable}),{getValue:function(){return d},setValue:function(V){d=""+V},stopTracking:function(){s._valueTracker=null,delete s[a]}}}}function qu(s){if(!s._valueTracker){var a=h0(s)?"checked":"value";s._valueTracker=f0(s,a,""+s[a])}}function p0(s){if(!s)return!1;var a=s._valueTracker;if(!a)return!0;var d=a.getValue(),p="";return s&&(p=h0(s)?s.checked?"true":"false":s.value),s=p,s!==d?(a.setValue(s),!0):!1}function ao(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var Wu=/[\n"\\]/g;function Cn(s){return s.replace(Wu,function(a){return"\\"+a.charCo
vendor: 4,427 bytes, line 8
8deAt(0).toString(16)+" "})}function Cr(s,a,d,p,E,T,V,ce){s.name="",V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?s.type=V:s.removeAttribute("type"),a!=null?V==="number"?(a===0&&s.value===""||s.value!=a)&&(s.value=""+un(a)):s.value!==""+un(a)&&(s.value=""+un(a)):V!=="submit"&&V!=="reset"||s.removeAttribute("value"),a!=null?Qu(s,V,un(a)):d!=null?Qu(s,V,un(d)):p!=null&&s.removeAttribute("value"),E==null&&T!=null&&(s.defaultChecked=!!T),E!=null&&(s.checked=E&&typeof E!="function"&&typeof E!="symbol"),ce!=null&&typeof ce!="function"&&typeof ce!="symbol"&&typeof ce!="boolean"?s.name=""+un(ce):s.removeAttribute("name")}function Fh(s,a,d,p,E,T,V,ce){if(T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(s.type=T),a!=null||d!=null){if(!(T!=="submit"&&T!=="reset"||a!=null)){qu(s);return}d=d!=null?""+un(d):"",a=a!=null?""+un(a):d,ce||a===s.value||(s.value=a),s.defaultValue=a}p=p??E,p=typeof p!="function"&&typeof p!="symbol"&&!!p,s.checked=ce?s.checked:!!p,s.defaultChecked=!!p,V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(s.name=V),qu(s)}function Qu(s,a,d){a==="number"&&ao(s.ownerDocument)===s||s.defaultValue===""+d||(s.defaultValue=""+d)}function lo(s,a,d,p){if(s=s.options,a){a={};for(var E=0;E<d.length;E++)a["$"+d[E]]=!0;for(d=0;d<s.length;d++)E=a.hasOwnProperty("$"+s[d].value),s[d].selected!==E&&(s[d].selected=E),E&&p&&(s[d].defaultSelected=!0)}else{for(d=""+un(d),a=null,E=0;E<s.length;E++){if(s[E].value===d){s[E].selected=!0,p&&(s[E].defaultSelected=!0);return}a!==null||s[E].disabled||(a=s[E])}a!==null&&(a.selected=!0)}}function m0(s,a,d){if(a!=null&&(a=""+un(a),a!==s.value&&(s.value=a),d==null)){s.defaultValue!==a&&(s.defaultValue=a);return}s.defaultValue=d!=null?""+un(d):""}function x0(s,a,d,p){if(a==null){if(p!=null){if(d!=null)throw Error(n(92));if(ie(p)){if(1<p.length)throw Error(n(93));p=p[0]}d=p}d==null&&(d=""),a=d}d=un(a),s.defaultValue=d,p=s.textContent,p===d&&p!==""&&p!==null&&(s.value=p),qu(s)}function oo(s,a){if(a){var d=s.firstChild;if(d&&d===s.lastChild&&d.nodeType===3){d.nodeValue=a;return}}s.textContent=a}var g0=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 y0(s,a,d){var p=a.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?p?s.setProperty(a,""):a==="float"?s.cssFloat="":s[a]="":p?s.setProperty(a,d):typeof d!="number"||d===0||g0.has(a)?a==="float"?s.cssFloat=d:s[a]=(""+d).trim():s[a]=d+"px"}function v0(s,a,d){if(a!=null&&typeof a!="object")throw Error(n(62));if(s=s.style,d!=null){for(var p in d)!d.hasOwnProperty(p)||a!=null&&a.hasOwnProperty(p)||(p.indexOf("--")===0?s.setProperty(p,""):p==="float"?s.cssFloat="":s[p]="");for(var E in a)p=a[E],a.hasOwnProperty(E)&&d[E]!==p&&y0(s,E,p)}else for(var T in a)a.hasOwnProperty(T)&&y0(s,T,a[T])}function zh(s){if(s.indexOf("-")===-1)return!1;switch(s){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 Fy=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"],["colorRen
8dering","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"]]),Ju=/^[\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 Ac(s){return Ju.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function kn(){}var Ku=null;function Gs(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var fi=null,co=null;function b0(s){var a=no(s);if(a&&(s=a.stateNode)){var d=s[Vs]||null;e:switch(s=a.stateNode,a.type){case"input":if(Cr(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),a=d.name,d.type==="radio"&&a!=null){for(d=s;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Cn(""+a)+'"][type="radio"]'),a=0;a<d.length;a++){var p=d[a];if(p!==s&&p.form===s.form){var E=p[Vs]||null;if(!E)throw Error(n(90));Cr(p,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(a=0;a<d.length;a++)p=d[a],p.form===s.form&&p0(p)}break e;case"textarea":m0(s,d.value,d.defaultValue);break e;case"select":a=d.value,a!=null&&lo(s,!!d.multiple,a,!1)}}}var Uh=!1;function Zu(s,a,d){if(Uh)return s(a,d);Uh=!0;try{var p=s(a);return p}finally{if(Uh=!1,(fi!==null||co!==null)&&(Go(),fi&&(a=fi,s=co,co=fi=null,b0(a),s)))for(a=0;a<s.length;a++)b0(s[a])}}function wa(s,a){var d=s.stateNode;if(d===null)return null;var p=d[Vs]||null;if(p===null)return null;d=p[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(s=s.type,p=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!p;break e;default:s=!1}if(s)return null;if(d&&typeof d!="function")throw Error(n(231,a,typeof d));return d}var _i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$h=!1;if(_i)try{var uo={};Object.defineProperty(uo,"passive",{get:function(){$h=!0}
vendor: 3,279 bytes, line 8
8}),window.addEventListener("test",uo,uo),window.removeEventListener("test",uo,uo)}catch{$h=!1}var Di=null,Sa=null,ed=null;function Ec(){if(ed)return ed;var s,a=Sa,d=a.length,p,E="value"in Di?Di.value:Di.textContent,T=E.length;for(s=0;s<d&&a[s]===E[s];s++);var V=d-s;for(p=1;p<=V&&a[d-p]===E[T-p];p++);return ed=E.slice(s,1<p?1-p:void 0)}function td(s){var a=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&a===13&&(s=13)):s=a,s===10&&(s=13),32<=s||s===13?s:0}function rd(){return!0}function w0(){return!1}function _s(s){function a(d,p,E,T,V){this._reactName=d,this._targetInst=E,this.type=p,this.nativeEvent=T,this.target=V,this.currentTarget=null;for(var ce in s)s.hasOwnProperty(ce)&&(d=s[ce],this[ce]=d?d(T):T[ce]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?rd:w0,this.isPropagationStopped=w0,this}return C(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=rd)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=rd)},persist:function(){},isPersistent:rd}),a}var ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ol=_s(ll),ho=C({},ll,{view:0,detail:0}),pi=_s(ho),Vh,cl,ul,fo=C({},ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==ul&&(ul&&s.type==="mousemove"?(Vh=s.screenX-ul.screenX,cl=s.screenY-ul.screenY):cl=Vh=0,ul=s),Vh)},movementY:function(s){return"movementY"in s?s.movementY:cl}}),Hh=_s(fo),S0=C({},fo,{dataTransfer:0}),zy=_s(S0),Uy=C({},ho,{relatedTarget:0}),sd=_s(Uy),Yh=C({},ll,{animationName:0,elapsedTime:0,pseudoElement:0}),po=_s(Yh),dl=C({},ll,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),nd=_s(dl),$y=C({},ll,{data:0}),A0=_s($y),Vy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E0={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"},hs={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mi(s){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(s):(s=hs[s])?!!a[s]:!1}function id(){return mi}var Hy=C({},ho,{key:function(s){if(s.key){var a=Vy[s.key]||s.key;if(a!=="Unidentified")return a}return s.type==="keypress"?(s=td(s),s===13?"Enter":String.fromCharCode(s)):s.type==="
8keydown"||s.type==="keyup"?E0[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(s){return s.type==="keypress"?td(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?td(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),C0=_s(Hy),Cc=C({},fo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),k0=_s(Cc),ad=C({},ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),T0=_s(ad),hl=C({},ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),N0=_s(hl),Yy=C({},fo,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),kc=_s(Yy),j0=C({},ll,{newState:0,oldState:0}),M0=_s(j0),Gh=[9,13,27,32],ld=_i&&"CompositionEvent"in window,fl=null;_i&&"documentMode"in document&&(fl=document.documentMode);var Gy=_i&&"TextEvent"in window&&!fl,Xh=_i&&(!ld||fl&&8<fl&&11>=fl),od=" ",R0=!1;function O0(s,a){switch(s){case"keyup":return Gh.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B0(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var mo=!1;function Xy(s,a){switch(s){case"compositionend":return B0(a);case"keypress":return a.which!==32?null:(R0=!0,od);case"textInput":return s=a.data,s===od&&R0?null:s;default:return null}}function qh(s,a){if(mo)return s==="compositionend"||!ld&&O0(s,a)?(s=Ec(),ed=Sa=Di=null,mo=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Xh&&a.locale!=="ko"?null:a.data;default:return null}}var qy={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 _0(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a==="input"?!!qy[s.type]:a==="textarea"}function D0(s,a,d,p){fi?co?co.push(p):co=[p]:fi=p,a=k(a,"onChange"),0<a.length&&(d=new ol("onChange","change",null,d,p),s.push({event:d,listeners:a}))}var xo=null,xi=null;function L0(s){nx(s,0)}function Tc(s){var a=Sc(s);if(p0(a))return s}function I0(s,a){if(s==="change")return a}var P0=!1;if(_i){var Wh;
vendor: 5,966 bytes, line 8
8if(_i){var Nc="oninput"in document;if(!Nc){var cd=document.createElement("div");cd.setAttribute("oninput","return;"),Nc=typeof cd.oninput=="function"}Wh=Nc}else Wh=!1;P0=Wh&&(!document.documentMode||9<document.documentMode)}function jc(){xo&&(xo.detachEvent("onpropertychange",Mc),xi=xo=null)}function Mc(s){if(s.propertyName==="value"&&Tc(xi)){var a=[];D0(a,xi,s,Gs(s)),Zu(L0,a)}}function Wy(s,a,d){s==="focusin"?(jc(),xo=a,xi=d,xo.attachEvent("onpropertychange",Mc)):s==="focusout"&&jc()}function F0(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Tc(xi)}function ud(s,a){if(s==="click")return Tc(a)}function pl(s,a){if(s==="input"||s==="change")return Tc(a)}function Qy(s,a){return s===a&&(s!==0||1/s===1/a)||s!==s&&a!==a}var fs=typeof Object.is=="function"?Object.is:Qy;function Rc(s,a){if(fs(s,a))return!0;if(typeof s!="object"||s===null||typeof a!="object"||a===null)return!1;var d=Object.keys(s),p=Object.keys(a);if(d.length!==p.length)return!1;for(p=0;p<d.length;p++){var E=d[p];if(!Ze.call(a,E)||!fs(s[E],a[E]))return!1}return!0}function Aa(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function go(s,a){var d=Aa(s);s=0;for(var p;d;){if(d.nodeType===3){if(p=s+d.textContent.length,s<=a&&p>=a)return{node:d,offset:a-s};s=p}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Aa(d)}}function z0(s,a){return s&&a?s===a?!0:s&&s.nodeType===3?!1:a&&a.nodeType===3?z0(s,a.parentNode):"contains"in s?s.contains(a):s.compareDocumentPosition?!!(s.compareDocumentPosition(a)&16):!1:!1}function dd(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var a=ao(s.document);a instanceof s.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)s=a.contentWindow;else break;a=ao(s.document)}return a}function Oc(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a&&(a==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||a==="textarea"||s.contentEditable==="true")}var Jy=_i&&"documentMode"in document&&11>=document.documentMode,yo=null,Qh=null,Ea=null,Jh=!1;function U0(s,a,d){var p=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Jh||yo==null||yo!==ao(p)||(p=yo,"selectionStart"in p&&Oc(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Ea&&Rc(Ea,p)||(Ea=p,p=k(Qh,"onSelect"),0<p.length&&(a=new ol("onSelect","select",null,a,d),s.push({event:a,listeners:p}),a.target=yo)))}function ml(s,a){var d={};return d[s.toLowerCase()]=a.toLowerCase(),d["Webkit"+s]="webkit"+a,d["Moz"+s]="moz"+a,d}var dn={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionrun:ml("Transition","TransitionRun"),transitionstart:ml("Transition","TransitionStart"),transitioncancel:ml("Transition","TransitionCancel"),transitionend:ml("Transition","TransitionEnd")},Kh={},Zh={};_i&&(Zh=document.createElement("div").style,"AnimationEvent"in window||(delete dn.animationend.animation,delete dn.animationiteration.animation,delete dn.animationstart.animation),"TransitionEvent"in window||delete dn.transitionend.transition);function xl(s){if(Kh[s])return Kh[s];if(!dn[s])return s;var a=dn[s],d;for(d in a)if(a.hasOwnProperty(d)&&d in Zh)return Kh[s]=a[d];return s}var $0=xl("animationend"),Bc=xl("animationiteration"),V0=xl("animationstart"),Ky=xl("transitionrun"),H0=xl("transitionstart"),Zy=xl("transitioncancel"),gl=xl("transitionend"),Ca=new Map,ef="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(" ");ef.push("scrollEnd");function Qn(s,a){Ca.set(s,a),al(a,[s])}var hd=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},Tn=[],vo=0,bo=0;function wo(){for(var s=vo,a=bo=vo=0;a<s;){var d=Tn[a];Tn[a++]=null;var p=Tn[a];Tn[a++]=null;var E=Tn[a];Tn[a++]=null;var T=Tn[a];if(Tn[a++]=null,p!==null&&E!==null){var V=p.pending;V===null?E.next=E:(E.next=V.next,V.next=E),p.pending=E}T!==0&&Y0(d,E,T)}}function fd(s,a,d,p){Tn[vo++]=s,Tn[vo++]=a,Tn[vo++]=d,Tn[vo++]=p,bo|=p,s.lanes|=p,s=s.alternate,s!==null&&(s.lanes|=p)}function So(s,a,d,p){return fd(s,a,d,p),_c(s)}function Li(s,a){return fd(s,null,null,a),_c(s)}function Y0(s,a,d){s.lanes|=d;var p=s.alternate;p!==null&&(p.lanes|=d);for(var E=!1,T=s.return;T!==null;)T.childLanes|=d,p=T.alternate,p!==null&&(p.childLanes|=d),T.tag===22&&(s=T.stateNode,s===null||s._visibility&1||(E=!0)),s=T,T=T.return;return s.tag===3?(T=s.stateNode,E&&a!==null&&(E=31-Er(d),s=T.hiddenUpdates,p=s[E],p===null?s[E]=[a]:p.push(a),a.lane=d|536870912),T):null}function _c(s){if(50<Ul)throw Ul=0,qf=null,Error(n(185));for(var a=s.return;a!==null;)s=a,a=s.return;return s.tag===3?s.stateNode:null}var gi={};function ev(s,a,d,p){this.tag=s,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 15,390 bytes, line 8
8ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ds(s,a,d,p){return new ev(s,a,d,p)}function tf(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Ii(s,a){var d=s.alternate;return d===null?(d=Ds(s.tag,a,s.key,s.mode),d.elementType=s.elementType,d.type=s.type,d.stateNode=s.stateNode,d.alternate=s,s.alternate=d):(d.pendingProps=a,d.type=s.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=s.flags&65011712,d.childLanes=s.childLanes,d.lanes=s.lanes,d.child=s.child,d.memoizedProps=s.memoizedProps,d.memoizedState=s.memoizedState,d.updateQueue=s.updateQueue,a=s.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=s.sibling,d.index=s.index,d.ref=s.ref,d.refCleanup=s.refCleanup,d}function Jn(s,a){s.flags&=65011714;var d=s.alternate;return d===null?(s.childLanes=0,s.lanes=a,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=d.childLanes,s.lanes=d.lanes,s.child=d.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=d.memoizedProps,s.memoizedState=d.memoizedState,s.updateQueue=d.updateQueue,s.type=d.type,a=d.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),s}function Pi(s,a,d,p,E,T){var V=0;if(p=s,typeof s=="function")tf(s)&&(V=1);else if(typeof s=="string")V=qk(s,d,ye.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case W:return s=Ds(31,d,a,E),s.elementType=W,s.lanes=T,s;case P:return yl(d.children,E,T,a);case _:V=8,E|=24;break;case $:return s=Ds(12,d,a,E|2),s.elementType=$,s.lanes=T,s;case te:return s=Ds(13,d,a,E),s.elementType=te,s.lanes=T,s;case le:return s=Ds(19,d,a,E),s.elementType=le,s.lanes=T,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case F:V=10;break e;case D:V=9;break e;case J:V=11;break e;case se:V=14;break e;case L:V=16,p=null;break e}V=29,d=Error(n(130,s===null?"null":typeof s,"")),p=null}return a=Ds(V,d,a,E),a.elementType=s,a.type=p,a.lanes=T,a}function yl(s,a,d,p){return s=Ds(7,s,p,a),s.lanes=d,s}function pd(s,a,d){return s=Ds(6,s,null,a),s.lanes=d,s}function G0(s){var a=Ds(18,null,null,0);return a.stateNode=s,a}function Dc(s,a,d){return a=Ds(4,s.children!==null?s.children:[],s.key,a),a.lanes=d,a.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},a}var X0=new WeakMap;function Nn(s,a){if(typeof s=="object"&&s!==null){var d=X0.get(s);return d!==void 0?d:(a={value:s,source:a,stack:tt(a)},X0.set(s,a),a)}return{value:s,source:a,stack:tt(a)}}var vl=[],Ao=0,bl=null,js=0,It=[],jn=0,Fi=null,Mn=1,hn="";function rr(s,a){vl[Ao++]=js,vl[Ao++]=bl,bl=s,js=a}function rf(s,a,d){It[jn++]=Mn,It[jn++]=hn,It[jn++]=Fi,Fi=s;var p=Mn;s=hn;var E=32-Er(p)-1;p&=~(1<<E),d+=1;var T=32-Er(a)+E;if(30<T){var V=E-E%5;T=(p&(1<<V)-1).toString(32),p>>=V,E-=V,Mn=1<<32-Er(a)+E|d<<E|p,hn=T+s}else Mn=1<<T|d<<E|p,hn=s}function sf(s){s.return!==null&&(rr(s,1),rf(s,1,0))}function md(s){for(;s===bl;)bl=vl[--Ao],vl[Ao]=null,js=vl[--Ao],vl[Ao]=null;for(;s===Fi;)Fi=It[--jn],It[jn]=null,hn=It[--jn],It[jn]=null,Mn=It[--jn],It[jn]=null}function mt(s,a){It[jn++]=Mn,It[jn++]=hn,It[jn++]=Fi,Mn=a.id,hn=a.overflow,Fi=s}var bs=null,wr=null,Yt=!1,Kn=null,wt=!1,Eo=Error(n(519));function ka(s){var a=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Lc(Nn(a,s)),Eo}function q0(s){var a=s.stateNode,d=s.type,p=s.memoizedProps;switch(a[ys]=s,a[Vs]=p,d){case"dialog":$t("cancel",a),$t("close",a);break;case"iframe":case"object":case"embed":$t("load",a);break;case"video":case"audio":for(d=0;d<mu.length;d++)$t(mu[d],a);break;case"source":$t("error",a);break;case"img":case"image":case"link":$t("error",a),$t("load",a);break;case"details":$t("toggle",a);break;case"input":$t("invalid",a),Fh(a,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":$t("invalid",a);break;case"textarea":$t("invalid",a),x0(a,p.value,p.defaultValue,p.children)}d=p.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||a.textContent===""+d||p.suppressHydrationWarning===!0||v(a.textContent,d)?(p.popover!=null&&($t("beforetoggle",a),$t("toggle",a)),p.onScroll!=null&&$t("scroll",a),p.onScrollEnd!=null&&$t("scrollend",a),p.onClick!=null&&(a.onclick=kn),a=!0):a=!1,a||ka(s,!0)}function W0(s){for(bs=s.return;bs;)switch(bs.tag){case 5:case 31:case 13:wt=!1;return;case 27:case 3:wt=!0;return;default:bs=bs.return}}function wl(s){if(s!==bs)return!1;if(!Yt)return W0(s),Yt=!0,!1;var a=s.tag,d;if((d=a!==3&&a!==27)&&((d=a===5)&&(d=s.type,d=!(d!=="form"&&d!=="button")||de(s.type,s.memoizedProps)),d=!d),d&&wr&&ka(s),W0(s),a===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));wr=St(s)}else if(a===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));wr=St(s)}else a===27?(a=wr,$e(s.type)?(s=yt,yt=null,wr=s):wr=a):wr=bs?Mr(s.stateNode.nextSibling):null;return!0}function Rn(){wr=bs=null,Yt=!1}function nf(){var s=Kn;return s!==null&&(Ss===null?Ss=s:Ss.push.apply(Ss,s),Kn=null),s}function Lc(s){Kn===null?Kn=[s]:Kn.push(s)}var af=Q(null),yi=null,zi=null;function Ui(s,a,d){ge(af,a._currentValue),a._currentValue=d}function $i(s){s._currentValue=af.current,re(af)}function lf(s,a,d){for(;s!==null;){var p=s.alternate;if((s.childLanes&a)!==a?(s.childLanes|=a,p!==null&&(p.childLanes|=a)):p!==null&&(p.childLanes&a)!==a&&(p.childLanes|=a),s===d)break;s=s.return}}function of(s,a,d,p){var E=s.child;for(E!==null&&(E.return=s);E!==null;){var T=E.dependencies;if(T!==null){var V=E.child;T=T.firstContext;e:for(;T!==null;){var ce=T;T=E;for(var we=0;we<a.length;we++)if(ce.context===a[we]){T.lanes|=d,ce=T.alternate,ce!==null&&(ce.lanes|=d),lf(T.return,d,s),p||(V=null);break e}T=ce.next}}else if(E.tag===18){if(V=E.return,V===null)throw Error(n(341));V.lanes|=d,T=V.alternate,T!==null&&(T.lanes|=d),lf(V,d,s),V=null}else V=E.child;if(V!==null)V.return=E;else for(V=E;V!==null;){if(V===s){V=null;break}if(E=V.sibling,E!==null){E.return=V.return,V=E;break}V=V.return}E=V}}function Co(s,a,d,p){s=null;for(var E=a,T=!1;E!==null;){if(!T){if((E.flags&524288)!==0)T=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var V=E.alternate;if(V===null)throw Error(n(387));if(V=V.memoizedProps,V!==null){var ce=E.type;fs(E.pendingProps.value,V.value)||(s!==null?s.push(ce):s=[ce])}}else if(E===Qe.current){if(V=E.alternate,V===null)throw Error(n(387));V.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(s!==null?s.push(fp):s=[fp])}E=E.return}s!==null&&of(a,s,d,p),a.flags|=262144}function xd(s){for(s=s.firstContext;s!==null;){if(!fs(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Ta(s){yi=s,zi=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Ms(s){return cf(yi,s)}function gd(s,a){return yi===null&&Ta(s),cf(s,a)}function cf(s,a){var d=a._currentValue;if(a={context:a,memoizedValue:d,next:null},zi===null){if(s===null)throw Error(n(308));zi=a,s.dependencies={lanes:0,firstContext:a},s.flags|=524288}else zi=zi.next=a;return d}var Q0=typeof AbortController<"u"?AbortController:function(){var s=[],a=this.signal={aborted:!1,addEventListener:function(d,p){s.push(p)}};this.abort=function(){a.aborted=!0,s.forEach(function(d){return d()})}},vi=e.unstable_scheduleCallback,tv=e.unstable_NormalPriority,ls={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uf(){return{controller:new Q0,data:new Map,refCount:0}}function ko(s){s.refCount--,s.refCount===0&&vi(tv,function(){s.controller.abort()})}var Ic=null,df=0,Vi=0,To=null;function J0(s,a){if(Ic===null){var d=Ic=[];df=0,Vi=ip(),To={status:"pending",value:void 0,then:function(p){d.push(p)}}}return df++,a.then(K0,K0),a}function K0(){if(--df===0&&Ic!==null){To!==null&&(To.status="fulfilled");var s=Ic;Ic=null,Vi=0,To=null;for(var a=0;a<s.length;a++)(0,s[a])()}}function rv(s,a){var d=[],p={status:"pending",value:null,reason:null,then:function(E){d.push(E)}};return s.then(function(){p.status="fulfilled",p.value=a;for(var E=0;E<d.length;E++)(0,d[E])(a)},function(E){for(p.status="rejected",p.reason=E,E=0;E<d.length;E++)(0,d[E])(void 0)}),p}var hf=X.S;X.S=function(s,a){zm=Ne(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&J0(s,a),hf!==null&&hf(s,a)};var Sl=Q(null);function ff(){var s=Sl.current;return s!==null?s:Sr.pooledCache}function Pc(s,a){a===null?ge(Sl,Sl.current):ge(Sl,a.pool)}function Al(){var s=ff();return s===null?null:{parent:ls._currentValue,pool:s}}var El=Error(n(460)),No=Error(n(474)),yd=Error(n(542)),vd={then:function(){}};function bd(s){return s=s.status,s==="fulfilled"||s==="rejected"}function pf(s,a,d){switch(d=s[d],d===void 0?s.push(a):d!==a&&(a.then(kn,kn),a=d),a.status){case"fulfilled":return a.value;case"rejected":throw s=a.reason,wd(s),s;default:if(typeof a.status=="string")a.then(kn,kn);else{if(s=Sr,s!==null&&100<s.shellSuspendCounter)throw Error(n(482));s=a,s.status="pending",s.then(function(p){if(a.status==="pending"){var E=a;E.status="fulfilled",E.value=p}},function(p){if(a.status==="pending"){var E=a;E.status="rejected",E.reason=p}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw s=a.reason,wd(s),s}throw kl=a,El}}function Cl(s){try{var a=s._init;return a(s._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(kl=d,El):d}}var kl=null;function Z0(){if(kl===null)throw Error(n(459));var s=kl;return kl=null,s}function wd(s){if(s===El||s===yd)throw Error(n(483))}var jo=null,bi=0;function Sd(s){var a=bi;return bi+=1,jo===null&&(jo=[]),pf(jo,s,a)}function Tl(s,a){a=a.props.ref,s.ref=a!==void 0?a:null}function Ad(s,a){throw a.$$typeof===R?Error(n(525)):(s=Object.prototype.toString.call(a),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":s)))}function Ed(s){function a(je,ke){if(s){var Re=je.deletions;Re===null?(je.deletions=[ke],je.flags|=16):Re.push(ke)}}function d(je,ke){if(!s)return null;for(;ke!==null;)a(je,ke),ke=ke.sibling;return null}function p(je){for(var ke=new Map;je!==null;)je.key!==null?ke.set(je.key,je):ke.set(je.index,je),je=je.sibling;return ke}function E(je,ke){return je=Ii(je,ke),je.index=0,je.sibling=null,je}function T(je,ke,Re){return je.index=Re,s?(Re=je.alternate,Re!==null?(Re=Re.index,Re<ke?(je.flags|=67108866,ke):Re):(je.flags|=67108866,ke)):(je.flags|=1048576,ke)}function V(je){return s&&je.alternate===null&&(je.flags|=67108866),je}function ce(je,ke,Re,Ge){return ke===null||ke.tag!==6?(ke=pd(Re,je.mode,Ge),ke.return=je,ke):(ke=E(ke,Re),ke.return=je,ke)}function we(je,ke,Re,Ge){var vt=Re.type;return vt===P?Ve(je,ke,Re.props.children,Ge,Re.key):ke!==null&&(ke.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===L&&Cl(vt)===ke.type)?(ke=E(ke,Re.props),Tl(ke,Re),ke.return=je,ke):(ke=Pi(Re.type,Re.key,Re.props,null,je.mode,Ge),Tl(ke,Re),ke.return=je,ke)}function Oe(je,ke,Re,Ge){return ke===null||ke.tag!==4||ke.stateNode.containerInfo!==Re.containerInfo||ke.stateNode.implementation!==Re.implementation?(ke=Dc(Re,je.mode,Ge),ke.return=je,ke):(ke=E(ke,Re.children||[]),ke.return=je,ke)}function Ve(je,ke,Re,Ge,vt){return ke===null||ke.tag!==7?(ke=yl(Re,je.mode,Ge,vt),ke.return=je,ke):(ke=E(ke,Re),ke.return=je,ke)}function Xe(je,ke,Re){if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return ke=pd(""+ke,je.mode,Re),ke.return=je,ke;if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case O:return Re=Pi(ke.type,ke.key,ke.props,null,je.mode,Re),Tl(Re,ke),Re.return=je,Re;case M:return ke=Dc(ke,je.mode,Re),ke.return=je,ke;case L:return ke=Cl(ke),Xe(je,ke,Re)}if(ie(ke)||Z(ke))return ke=yl(ke,je.mode,Re,null),ke.return=je,ke;if(typeof ke.then=="function")return Xe(je,Sd(ke),Re);if(ke.$$typeof===F)return Xe(je,gd(je,ke),Re);Ad(je,ke)}return null}function Be(je,ke,Re,Ge){var vt=ke!==null?ke.key:null;if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return vt!==null?null:ce(je,ke,""+Re,Ge);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case O:return Re.key===vt?we(je,ke,Re,Ge):null;case M:return Re.key===vt?Oe(je,ke,Re,Ge):null;case L:return Re=Cl(Re),Be(je,ke,Re,Ge)}if(ie(Re)||Z(Re))return vt!==null?null:Ve(je,ke,Re,Ge,null);if(typeof Re.then=="function")return Be(je,ke,Sd(Re),Ge);if(Re.$$typeof===F)return Be(je,ke,gd(je,Re),Ge);Ad(je,Re)}return null}function Ie(je,ke,Re,Ge,vt){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return je=je.get(Re)||null,ce(ke,je,""+Ge,vt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case O:return je=je.get(Ge.key===null?Re:Ge.key)||null,we(ke,je,Ge,vt);case M:return je=je.get(Ge.key===null?Re:Ge.key)||null,Oe(ke,je,Ge,vt);case L:return Ge=Cl(Ge),Ie(je,ke,Re,Ge,vt)}if(ie(Ge)||Z(Ge))return je=je.get(Re)||null,Ve(ke,je,Ge,vt,null);if(typeof Ge.then=="function")return Ie(je,ke,Re,Sd(Ge),vt);if(Ge.$$typeof===F)return Ie(je,ke,Re,gd(ke,Ge),vt);Ad(ke,Ge)}return null}function ut(je,ke,Re,Ge){for(var vt=null,fr=null,ft=ke,Ft=ke=0,Qt=null;ft!==null&&Ft<Re.length;Ft++){ft.index>Ft?(Qt=ft,ft=null):Qt=ft.sibling;var pr=Be(je,ft,Re[Ft],Ge);if(pr===null){ft===null&&(ft=Qt);break}s&&ft&&pr.alternate===null&&a(je,ft),ke=T(pr,ke,Ft),fr===null?vt=pr:fr.sibling=pr,fr=pr,ft=Qt}if(Ft===Re.length)return d(je,ft),Yt&&rr(je,Ft),vt;if(ft===null){for(;Ft<Re.length;Ft++)ft=Xe(je,Re[Ft],Ge),ft!==null&&(ke=T(ft,ke,Ft),fr===null?vt=ft:fr.sibling=ft,fr=ft);return Yt&&rr(je,Ft),vt}for(ft=p(ft);Ft<Re.length;Ft++)Qt=Ie(ft,je,Ft,Re[Ft],Ge),Qt!==null&&(s&&Qt.alternate!==null&&ft.delete(Qt.key===null?Ft:Qt.key),ke=T(Qt,ke,Ft),fr===null?vt=Qt:fr.sibling=Qt,fr=Qt);return s&&ft.forEach(function(nc){return a(je,nc)}),Yt&&rr(je,Ft),vt}function Et(je,ke,Re,Ge){if(Re==null)throw Error(n(151));for(var vt=null,fr=null,ft=ke,Ft=ke=0,Qt=null,pr=Re.next();ft!==null&&!pr.done;Ft++,pr=Re.next()){ft.index>Ft?(Qt=ft,ft=null):Qt=ft.sibling;var nc=Be(je,ft,pr.value,Ge);if(nc===null){ft===null&&(ft=Qt);break}s&&ft&&nc.alternate===null&&a(je,ft),ke=T(nc,ke,Ft),fr===null?vt=nc:fr.sibling=nc,fr=nc,ft=Qt}if(pr.done)return d(je,ft),Yt&&rr(je,Ft),vt;if(ft===null){for(;!pr.done;Ft++,pr=Re.next())pr=Xe(je,pr.value,Ge),pr!==null&&(ke=T(pr,ke,Ft),fr===null?vt=pr:fr.sibling=pr,fr=pr);return Yt&&rr(je,Ft),vt}for(ft=p(ft);!pr.done;Ft++,pr=Re.next())pr=Ie(ft,je,Ft,pr.value,Ge),pr!==null&&(s&&pr.alternate!==null&&ft.delete(pr.key===null?Ft:pr.key),ke=T(pr,ke,Ft),fr===null?vt=pr:fr.sibling=pr,fr=pr);return s&&ft.forEach(function(iT){return a(je,iT)}),Yt&&rr(je,Ft),vt}function Or(je,ke,Re,Ge){if(typeof Re=="object"&&Re!==null&&Re.type===P&&Re.key===null&&(Re=Re.props.children),typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case O:e:{for(var vt=Re.key;ke!==null;){if(ke.key===vt){if(vt=Re.type,vt===P){if(ke.tag===7){d(je,ke.sibling),Ge=E(ke,Re.props.children),Ge.return=je,je=Ge;break e}}else if(ke.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===L&&Cl(vt)===ke.type){d(je,ke.sibling),Ge=E(ke,Re.props),Tl(Ge,Re),Ge.return=je,je=Ge;break e}d(je,ke);break}else a(je,ke);ke=ke.sibling}Re.type===P?(Ge=yl(Re.props.children,je.mode,Ge,Re.key),Ge.return=je,je=Ge):(Ge=Pi(Re.type,Re.key,Re.props,null,
vendor: 4,613 bytes, line 8
8je.mode,Ge),Tl(Ge,Re),Ge.return=je,je=Ge)}return V(je);case M:e:{for(vt=Re.key;ke!==null;){if(ke.key===vt)if(ke.tag===4&&ke.stateNode.containerInfo===Re.containerInfo&&ke.stateNode.implementation===Re.implementation){d(je,ke.sibling),Ge=E(ke,Re.children||[]),Ge.return=je,je=Ge;break e}else{d(je,ke);break}else a(je,ke);ke=ke.sibling}Ge=Dc(Re,je.mode,Ge),Ge.return=je,je=Ge}return V(je);case L:return Re=Cl(Re),Or(je,ke,Re,Ge)}if(ie(Re))return ut(je,ke,Re,Ge);if(Z(Re)){if(vt=Z(Re),typeof vt!="function")throw Error(n(150));return Re=vt.call(Re),Et(je,ke,Re,Ge)}if(typeof Re.then=="function")return Or(je,ke,Sd(Re),Ge);if(Re.$$typeof===F)return Or(je,ke,gd(je,Re),Ge);Ad(je,Re)}return typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint"?(Re=""+Re,ke!==null&&ke.tag===6?(d(je,ke.sibling),Ge=E(ke,Re),Ge.return=je,je=Ge):(d(je,ke),Ge=pd(Re,je.mode,Ge),Ge.return=je,je=Ge),V(je)):d(je,ke)}return function(je,ke,Re,Ge){try{bi=0;var vt=Or(je,ke,Re,Ge);return jo=null,vt}catch(ft){if(ft===El||ft===yd)throw ft;var fr=Ds(29,ft,null,je.mode);return fr.lanes=Ge,fr.return=je,fr}}}var Na=Ed(!0),em=Ed(!1),ja=!1;function mf(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xf(s,a){s=s.updateQueue,a.updateQueue===s&&(a.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Ma(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Ra(s,a,d){var p=s.updateQueue;if(p===null)return null;if(p=p.shared,(sr&2)!==0){var E=p.pending;return E===null?a.next=a:(a.next=E.next,E.next=a),p.pending=a,a=_c(s),Y0(s,null,d),a}return fd(s,p,a,d),_c(s)}function Oa(s,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194048)!==0)){var p=a.lanes;p&=s.pendingLanes,d|=p,a.lanes=d,br(s,d)}}function Fc(s,a){var d=s.updateQueue,p=s.alternate;if(p!==null&&(p=p.updateQueue,d===p)){var E=null,T=null;if(d=d.firstBaseUpdate,d!==null){do{var V={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};T===null?E=T=V:T=T.next=V,d=d.next}while(d!==null);T===null?E=T=a:T=T.next=a}else E=T=a;d={baseState:p.baseState,firstBaseUpdate:E,lastBaseUpdate:T,shared:p.shared,callbacks:p.callbacks},s.updateQueue=d;return}s=d.lastBaseUpdate,s===null?d.firstBaseUpdate=a:s.next=a,d.lastBaseUpdate=a}var gf=!1;function zc(){if(gf){var s=To;if(s!==null)throw s}}function Uc(s,a,d,p){gf=!1;var E=s.updateQueue;ja=!1;var T=E.firstBaseUpdate,V=E.lastBaseUpdate,ce=E.shared.pending;if(ce!==null){E.shared.pending=null;var we=ce,Oe=we.next;we.next=null,V===null?T=Oe:V.next=Oe,V=we;var Ve=s.alternate;Ve!==null&&(Ve=Ve.updateQueue,ce=Ve.lastBaseUpdate,ce!==V&&(ce===null?Ve.firstBaseUpdate=Oe:ce.next=Oe,Ve.lastBaseUpdate=we))}if(T!==null){var Xe=E.baseState;V=0,Ve=Oe=we=null,ce=T;do{var Be=ce.lane&-536870913,Ie=Be!==ce.lane;if(Ie?(Pt&Be)===Be:(p&Be)===Be){Be!==0&&Be===Vi&&(gf=!0),Ve!==null&&(Ve=Ve.next={lane:0,tag:ce.tag,payload:ce.payload,callback:null,next:null});e:{var ut=s,Et=ce;Be=a;var Or=d;switch(Et.tag){case 1:if(ut=Et.payload,typeof ut=="function"){Xe=ut.call(Or,Xe,Be);break e}Xe=ut;break e;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=Et.payload,Be=typeof ut=="function"?ut.call(Or,Xe,Be):ut,Be==null)break e;Xe=C({},Xe,Be);break e;case 2:ja=!0}}Be=ce.callback,Be!==null&&(s.flags|=64,Ie&&(s.flags|=8192),Ie=E.callbacks,Ie===null?E.callbacks=[Be]:Ie.push(Be))}else Ie={lane:Be,tag:ce.tag,payload:ce.payload,callback:ce.callback,next:null},Ve===null?(Oe=Ve=Ie,we=Xe):Ve=Ve.next=Ie,V|=Be;if(ce=ce.next,ce===null){if(ce=E.shared.pending,ce===null)break;Ie=ce,ce=Ie.next,Ie.next=null,E.lastBaseUpdate=Ie,E.shared.pending=null}}while(!0);Ve===null&&(we=Xe),E.baseState=we,E.firstBaseUpdate=Oe,E.lastBaseUpdate=Ve,T===null&&(E.shared.lanes=0),Zs|=V,s.lanes=V,s.memoizedState=Xe}}function Hi(s,a){if(typeof s!="function")throw Error(n(191,s));s.call(a)}function $c(s,a){var d=s.callbacks;if(d!==null)for(s.callbacks=null,s=0;s<d.length;s++)Hi(d[s],a)}var Nl=Q(null),Zn=Q(0);function tm(s,a){s=ra,ge(Zn,s),ge(Nl,a),ra=s|a.baseLanes}function Cd(){ge(Zn,ra),ge(Nl,Nl.current)}function yf(){ra=Zn.current,re(Nl),re(Zn)}var Rs=Q(null),ps=null;function Ba(s){var a=s.alternate;ge(ts,ts.current&1),ge(Rs,s),ps===null&&(a===null||Nl.current!==null||a.memoizedState!==null)&&(ps=s)}function Vc(s){ge(ts,ts.current),ge(Rs,s),ps===null&&(ps=s)}function rm(s){s.tag===22?(ge(ts,ts.current),ge(Rs,s),ps===null&&(ps=s)):_a()}function _a(){ge(ts,ts.current),ge(Rs,Rs.current)}function zr(s){re(Rs),ps===s&&(ps=null),re(ts)}
vendor: 9,261 bytes, line 8
8var ts=Q(0);function Mo(s){for(var a=s;a!==null;){if(a.tag===13){var d=a.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||at(d)||dr(d)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var ei=0,_t=null,Gt=null,Hr=null,jl=!1,Ro=!1,Ml=!1,fn=0,Hc=0,Rl=null,ms=0;function Yr(){throw Error(n(321))}function vf(s,a){if(a===null)return!1;for(var d=0;d<a.length&&d<s.length;d++)if(!fs(s[d],a[d]))return!1;return!0}function kd(s,a,d,p,E,T){return ei=T,_t=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,X.H=s===null||s.memoizedState===null?ym:Of,Ml=!1,T=d(p,E),Ml=!1,Ro&&(T=Oo(a,d,p,E)),Td(s),T}function Td(s){X.H=_l;var a=Gt!==null&&Gt.next!==null;if(ei=0,Hr=Gt=_t=null,jl=!1,Hc=0,Rl=null,a)throw Error(n(300));s===null||Jr||(s=s.dependencies,s!==null&&xd(s)&&(Jr=!0))}function Oo(s,a,d,p){_t=s;var E=0;do{if(Ro&&(Rl=null),Hc=0,Ro=!1,25<=E)throw Error(n(301));if(E+=1,Hr=Gt=null,s.updateQueue!=null){var T=s.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}X.H=Fd,T=a(d,p)}while(Ro);return T}function Yc(){var s=X.H,a=s.useState()[0];return a=typeof a.then=="function"?_o(a):a,s=s.useState()[0],(Gt!==null?Gt.memoizedState:null)!==s&&(_t.flags|=1024),a}function Bo(){var s=fn!==0;return fn=0,s}function bf(s,a,d){a.updateQueue=s.updateQueue,a.flags&=-2053,s.lanes&=~d}function wf(s){if(jl){for(s=s.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}jl=!1}ei=0,Hr=Gt=_t=null,Ro=!1,Hc=fn=0,Rl=null}function Ls(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hr===null?_t.memoizedState=Hr=s:Hr=Hr.next=s,Hr}function Gr(){if(Gt===null){var s=_t.alternate;s=s!==null?s.memoizedState:null}else s=Gt.next;var a=Hr===null?_t.memoizedState:Hr.next;if(a!==null)Hr=a,Gt=s;else{if(s===null)throw _t.alternate===null?Error(n(467)):Error(n(310));Gt=s,s={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},Hr===null?_t.memoizedState=Hr=s:Hr=Hr.next=s}return Hr}function Gc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _o(s){var a=Hc;return Hc+=1,Rl===null&&(Rl=[]),s=pf(Rl,s,a),a=_t,(Hr===null?a.memoizedState:Hr.next)===null&&(a=a.alternate,X.H=a===null||a.memoizedState===null?ym:Of),s}function Xc(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return _o(s);if(s.$$typeof===F)return Ms(s)}throw Error(n(438,String(s)))}function Sf(s){var a=null,d=_t.updateQueue;if(d!==null&&(a=d.memoCache),a==null){var p=_t.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(a={data:p.data.map(function(E){return E.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),d===null&&(d=Gc(),_t.updateQueue=d),d.memoCache=a,d=a.data[a.index],d===void 0)for(d=a.data[a.index]=Array(s),p=0;p<s;p++)d[p]=z;return a.index++,d}function Yi(s,a){return typeof a=="function"?a(s):a}function Nd(s){var a=Gr();return On(a,Gt,s)}function On(s,a,d){var p=s.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=d;var E=s.baseQueue,T=p.pending;if(T!==null){if(E!==null){var V=E.next;E.next=T.next,T.next=V}a.baseQueue=E=T,p.pending=null}if(T=s.baseState,E===null)s.memoizedState=T;else{a=E.next;var ce=V=null,we=null,Oe=a,Ve=!1;do{var Xe=Oe.lane&-536870913;if(Xe!==Oe.lane?(Pt&Xe)===Xe:(ei&Xe)===Xe){var Be=Oe.revertLane;if(Be===0)we!==null&&(we=we.next={lane:0,revertLane:0,gesture:null,action:Oe.action,hasEagerState:Oe.hasEagerState,eagerState:Oe.eagerState,next:null}),Xe===Vi&&(Ve=!0);else if((ei&Be)===Be){Oe=Oe.next,Be===Vi&&(Ve=!0);continue}else Xe={lane:0,revertLane:Oe.revertLane,gesture:null,action:Oe.action,hasEagerState:Oe.hasEagerState,eagerState:Oe.eagerState,next:null},we===null?(ce=we=Xe,V=T):we=we.next=Xe,_t.lanes|=Be,Zs|=Be;Xe=Oe.action,Ml&&d(T,Xe),T=Oe.hasEagerState?Oe.eagerState:d(T,Xe)}else Be={lane:Xe,revertLane:Oe.revertLane,gesture:Oe.gesture,action:Oe.action,hasEagerState:Oe.hasEagerState,eagerState:Oe.eagerState,next:null},we===null?(ce=we=Be,V=T):we=we.next=Be,_t.lanes|=Xe,Zs|=Xe;Oe=Oe.next}while(Oe!==null&&Oe!==a);if(we===null?V=T:we.next=ce,!fs(T,s.memoizedState)&&(Jr=!0,Ve&&(d=To,d!==null)))throw d;s.memoizedState=T,s.baseState=V,s.baseQueue=we,p.lastRenderedState=T}return E===null&&(p.lanes=0),[s.memoizedState,p.dispatch]}function jd(s){var a=Gr(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=s;var p=d.dispatch,E=d.pending,T=a.memoizedState;if(E!==null){d.pending=null;var V=E=E.next;do T=s(T,V.action),V=V.next;while(V!==E);fs(T,a.memoizedState)||(Jr=!0),a.memoizedState=T,a.baseQueue===null&&(a.baseState=T),d.lastRenderedState=T}return[T,p]}function Ur(s,a,d){var p=_t,E=Gr(),T=Yt;if(T){if(d===void 0)throw Error(n(407));d=d()}else d=a();var V=!fs((Gt||E).memoizedState,d);if(V&&(E.memoizedState=d,Jr=!0),E=E.queue,_d(qc.bind(null,p,E,s),[s]),E.getSnapshot!==a||V||Hr!==null&&Hr.memoizedState.tag&1){if(p.flags|=2048,Do(9,{destroy:void 0},sm.bind(null,p,E,d,a),null),Sr===null)throw Error(n(349));T||(ei&127)!==0||Af(p,a,d)}return d}function Af(s,a,d){s.flags|=16384,s={getSnapshot:a,value:d},a=_t.updateQueue,a===null?(a=Gc(),_t.updateQueue=a,a.stores=[s]):(d=a.stores,d===null?a.stores=[s]:d.push(s))}function sm(s,a,d,p){a.value=d,a.getSnapshot=p,nm(a)&&im(s)}function qc(s,a,d){return d(function(){nm(a)&&im(s)})}function nm(s){var a=s.getSnapshot;s=s.value;try{var d=a();return!fs(s,d)}catch{return!0}}function im(s){var a=Li(s,2);a!==null&&rn(a,s,2)}function Ef(s){var a=Ls();if(typeof s=="function"){var d=s;if(s=d(),Ml){Fr(!0);try{d()}finally{Fr(!1)}}}return a.memoizedState=a.baseState=s,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:s},a}function Ol(s,a,d,p){return s.baseState=d,On(s,Gt,typeof p=="function"?p:Yi)}function sv(s,a,d,p,E){if(wi(s))throw Error(n(485));if(s=a.action,s!==null){var T={payload:E,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(V){T.listeners.push(V)}};X.T!==null?d(!0):T.isTransition=!1,p(T),d=a.pending,d===null?(T.next=a.pending=T,Md(a,T)):(T.next=d.next,a.pending=d.next=T)}}function Md(s,a){var d=a.action,p=a.payload,E=s.state;if(a.isTransition){var T=X.T,V={};X.T=V;try{var ce=d(E,p),we=X.S;we!==null&&we(V,ce),Cf(s,a,ce)}catch(Oe){Rd(s,a,Oe)}finally{T!==null&&V.types!==null&&(T.types=V.types),X.T=T}}else try{T=d(E,p),Cf(s,a,T)}catch(Oe){Rd(s,a,Oe)}}function Cf(s,a,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(p){kf(s,a,p)},function(p){return Rd(s,a,p)}):kf(s,a,d)}function kf(s,a,d){a.status="fulfilled",a.value=d,am(a),s.state=d,a=s.pending,a!==null&&(d=a.next,d===a?s.pending=null:(d=d.next,a.next=d,Md(s,d)))}function Rd(s,a,d){var p=s.pending;if(s.pending=null,p!==null){p=p.next;do a.status="rejected",a.reason=d,am(a),a=a.next;while(a!==p)}s.action=null}function am(s){s=s.listeners;for(var a=0;a<s.length;a++)(0,s[a])()}function rs(s,a){return a}function lm(s,a){if(Yt){var d=Sr.formState;if(d!==null){e:{var p=_t;if(Yt){if(wr){t:{for(var E=wr,T=wt;E.nodeType!==8;){if(!T){E=null;break t}if(E=Mr(E.nextSibling),E===null){E=null;break t}}T=E.data,E=T==="F!"||T==="F"?E:null}if(E){wr=Mr(E.nextSibling),p=E.data==="F!";break e}}ka(p)}p=!1}p&&(a=d[0])}}return d=Ls(),d.memoizedState=d.baseState=a,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:a},d.queue=p,d=xm.bind(null,_t,p),p.dispatch=d,p=Ef(!1),T=Pd.bind(null,_t,!1,p.queue),p=Ls(),E={state:a,dispatch:null,action:s,pending:null},p.queue=E,d=sv.bind(null,_t,E,T,d),E.dispatch=d,p.memoizedState=s,[a,d,!1]}function om(s){var a=Gr();return Tf(a,Gt,s)}function Tf(s,a,d){if(a=On(s,a,rs)[0],s=Nd(Yi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var p=_o(a)}catch(V){throw V===El?yd:V}else p=a;a=Gr();var E=a.queue,T=E.dispatch;return d!==a.memoizedState&&(_t.flags|=2048,Do(9,{destroy:void 0},Od.bind(null,E,d),null)),[p,T,s]}function Od(s,a){s.action=a}function Bl(s){var a=Gr(),d=Gt;if(d!==null)return Tf(a,d,s);Gr(),a=a.memoizedState,d=Gr();var p=d.queue.dispatch;return d.memoizedState=s,[a,p,!1]}function Do(s,a,d,p){return s={tag:s,create:d,deps:p,inst:a,next:null},a=_t.updateQueue,a===null&&(a=Gc(),_t.updateQueue=a),d=a.lastEffect,d===null?a.lastEffect=s.next=s:(p=d.next,d.next=s,s.next=p,a.lastEffect=s),s}function jr(){return Gr().memoizedState}function Bd(s,a,d,p){var E=Ls();_t.flags|=s,E.memoizedState=Do(1|a,{destroy:void 0},d,p===void 0?null:p)}function Wc(s,a,d,p){var E=Gr();p=p===void 0?null:p;var T=E.memoizedState.inst;Gt!==null&&p!==null&&vf(p,Gt.memoizedState.deps)?E.memoizedState=Do(a,T,d,p):(_t.flags|=s,E.memoizedState=Do(1|a,T,d,p))}function Nf(s,a){Bd(8390656,8,s,a)}function _d(s,a){Wc(2048,8,s,a)}function xs(s){_t.flags|=4;var a=_t.updateQueue;if(a===null)a=Gc(),_t.updateQueue=a,a.events=[s];else{var d=a.events;d===null?a.events=[s]:d.push(s)}}function cm(s){var a=Gr().memoizedState;
vendor: 4,713 bytes, line 8
8return xs({ref:a,nextImpl:s}),function(){if((sr&2)!==0)throw Error(n(440));return a.impl.apply(void 0,arguments)}}function Lo(s,a){return Wc(4,2,s,a)}function Dd(s,a){return Wc(4,4,s,a)}function Br(s,a){if(typeof a=="function"){s=s();var d=a(s);return function(){typeof d=="function"?d():a(null)}}if(a!=null)return s=s(),a.current=s,function(){a.current=null}}function um(s,a,d){d=d!=null?d.concat([s]):null,Wc(4,4,Br.bind(null,a,s),d)}function Ld(){}function Bn(s,a){var d=Gr();a=a===void 0?null:a;var p=d.memoizedState;return a!==null&&vf(a,p[1])?p[0]:(d.memoizedState=[s,a],s)}function Xs(s,a){var d=Gr();a=a===void 0?null:a;var p=d.memoizedState;if(a!==null&&vf(a,p[1]))return p[0];if(p=s(),Ml){Fr(!0);try{s()}finally{Fr(!1)}}return d.memoizedState=[p,a],p}function jf(s,a,d){return d===void 0||(ei&1073741824)!==0&&(Pt&261930)===0?s.memoizedState=a:(s.memoizedState=d,s=$m(),_t.lanes|=s,Zs|=s,d)}function dm(s,a,d,p){return fs(d,a)?d:Nl.current!==null?(s=jf(s,d,p),fs(s,a)||(Jr=!0),s):(ei&42)===0||(ei&1073741824)!==0&&(Pt&261930)===0?(Jr=!0,s.memoizedState=d):(s=$m(),_t.lanes|=s,Zs|=s,a)}function Mf(s,a,d,p,E){var T=oe.p;oe.p=T!==0&&8>T?T:8;var V=X.T,ce={};X.T=ce,Pd(s,!1,a,d);try{var we=E(),Oe=X.S;if(Oe!==null&&Oe(ce,we),we!==null&&typeof we=="object"&&typeof we.then=="function"){var Ve=rv(we,p);pn(s,a,Ve,tn(s))}else pn(s,a,p,tn(s))}catch(Xe){pn(s,a,{then:function(){},status:"rejected",reason:Xe},tn())}finally{oe.p=T,V!==null&&ce.types!==null&&(V.types=ce.types),X.T=V}}function nv(){}function Id(s,a,d,p){if(s.tag!==5)throw Error(n(476));var E=hm(s).queue;Mf(s,E,a,ne,d===null?nv:function(){return fm(s),d(p)})}function hm(s){var a=s.memoizedState;if(a!==null)return a;a={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:ne},next:null};var d={};return a.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:d},next:null},s.memoizedState=a,s=s.alternate,s!==null&&(s.memoizedState=a),a}function fm(s){var a=hm(s);a.next===null&&(a=s.alternate.memoizedState),pn(s,a.next.queue,{},tn())}function Io(){return Ms(fp)}function pm(){return Gr().memoizedState}function mm(){return Gr().memoizedState}function Rf(s){for(var a=s.return;a!==null;){switch(a.tag){case 24:case 3:var d=tn();s=Ma(d);var p=Ra(a,s,d);p!==null&&(rn(p,a,d),Oa(p,a,d)),a={cache:uf()},s.payload=a;return}a=a.return}}function iv(s,a,d){var p=tn();d={lane:p,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},wi(s)?_n(a,d):(d=So(s,a,d,p),d!==null&&(rn(d,s,p),gm(d,a,p)))}function xm(s,a,d){var p=tn();pn(s,a,d,p)}function pn(s,a,d,p){var E={lane:p,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(wi(s))_n(a,E);else{var T=s.alternate;if(s.lanes===0&&(T===null||T.lanes===0)&&(T=a.lastRenderedReducer,T!==null))try{var V=a.lastRenderedState,ce=T(V,d);if(E.hasEagerState=!0,E.eagerState=ce,fs(ce,V))return fd(s,a,E,0),Sr===null&&wo(),!1}catch{}if(d=So(s,a,E,p),d!==null)return rn(d,s,p),gm(d,a,p),!0}return!1}function Pd(s,a,d,p){if(p={lane:2,revertLane:ip(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},wi(s)){if(a)throw Error(n(479))}else a=So(s,d,p,2),a!==null&&rn(a,s,2)}function wi(s){var a=s.alternate;return s===_t||a!==null&&a===_t}function _n(s,a){Ro=jl=!0;var d=s.pending;d===null?a.next=a:(a.next=d.next,d.next=a),s.pending=a}function gm(s,a,d){if((d&4194048)!==0){var p=a.lanes;p&=s.pendingLanes,d|=p,a.lanes=d,br(s,d)}}var _l={readContext:Ms,use:Xc,useCallback:Yr,useContext:Yr,useEffect:Yr,useImperativeHandle:Yr,useLayoutEffect:Yr,useInsertionEffect:Yr,useMemo:Yr,useReducer:Yr,useRef:Yr,useState:Yr,useDebugValue:Yr,useDeferredValue:Yr,useTransition:Yr,useSyncExternalStore:Yr,useId:Yr,useHostTransitionStatus:Yr,useFormState:Yr,useActionState:Yr,useOptimistic:Yr,useMemoCache:Yr,useCacheRefresh:Yr};_l.useEffectEvent=Yr;var ym={readContext:Ms,use:Xc,useCallback:function(s,a){return Ls().memoizedState=[s,a===void 0?null:a],s},useContext:Ms,useEffect:Nf,useImperativeHandle:function(s,a,d){d=d!=null?d.concat([s]):null,Bd(4194308,4,Br.bind(null,a,s),d)},useLayoutEffect:function(s,a){return Bd(4194308,4,s,a)},useInsertionEffect:function(s,a){Bd(4,2,s,a)},useMemo:function(s,a){var d=Ls();a=a===void 0?null:a;var p=s();if(Ml){Fr(!0);try{s()}finally{Fr(!1)}}return d.memoizedState=[p,a],p},useReducer:function(s,a,d){var p=Ls();if(d!==void 0){var E=d(a);if(Ml){Fr(!0);try{d(a)}finally{Fr(!1)}}}else E=a;return p.memoizedState=p.baseState=E,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:E},p.queue=s,s=s.dispatch=iv.bind(null,_t,s),[p.memoizedState,s]}
vendor: 4,119 bytes, line 8
8,useRef:function(s){var a=Ls();return s={current:s},a.memoizedState=s},useState:function(s){s=Ef(s);var a=s.queue,d=xm.bind(null,_t,a);return a.dispatch=d,[s.memoizedState,d]},useDebugValue:Ld,useDeferredValue:function(s,a){var d=Ls();return jf(d,s,a)},useTransition:function(){var s=Ef(!1);return s=Mf.bind(null,_t,s.queue,!0,!1),Ls().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,a,d){var p=_t,E=Ls();if(Yt){if(d===void 0)throw Error(n(407));d=d()}else{if(d=a(),Sr===null)throw Error(n(349));(Pt&127)!==0||Af(p,a,d)}E.memoizedState=d;var T={value:d,getSnapshot:a};return E.queue=T,Nf(qc.bind(null,p,T,s),[s]),p.flags|=2048,Do(9,{destroy:void 0},sm.bind(null,p,T,d,a),null),d},useId:function(){var s=Ls(),a=Sr.identifierPrefix;if(Yt){var d=hn,p=Mn;d=(p&~(1<<32-Er(p)-1)).toString(32)+d,a="_"+a+"R_"+d,d=fn++,0<d&&(a+="H"+d.toString(32)),a+="_"}else d=ms++,a="_"+a+"r_"+d.toString(32)+"_";return s.memoizedState=a},useHostTransitionStatus:Io,useFormState:lm,useActionState:lm,useOptimistic:function(s){var a=Ls();a.memoizedState=a.baseState=s;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=d,a=Pd.bind(null,_t,!0,d),d.dispatch=a,[s,a]},useMemoCache:Sf,useCacheRefresh:function(){return Ls().memoizedState=Rf.bind(null,_t)},useEffectEvent:function(s){var a=Ls(),d={impl:s};return a.memoizedState=d,function(){if((sr&2)!==0)throw Error(n(440));return d.impl.apply(void 0,arguments)}}},Of={readContext:Ms,use:Xc,useCallback:Bn,useContext:Ms,useEffect:_d,useImperativeHandle:um,useInsertionEffect:Lo,useLayoutEffect:Dd,useMemo:Xs,useReducer:Nd,useRef:jr,useState:function(){return Nd(Yi)},useDebugValue:Ld,useDeferredValue:function(s,a){var d=Gr();return dm(d,Gt.memoizedState,s,a)},useTransition:function(){var s=Nd(Yi)[0],a=Gr().memoizedState;return[typeof s=="boolean"?s:_o(s),a]},useSyncExternalStore:Ur,useId:pm,useHostTransitionStatus:Io,useFormState:om,useActionState:om,useOptimistic:function(s,a){var d=Gr();return Ol(d,Gt,s,a)},useMemoCache:Sf,useCacheRefresh:mm};Of.useEffectEvent=cm;var Fd={readContext:Ms,use:Xc,useCallback:Bn,useContext:Ms,useEffect:_d,useImperativeHandle:um,useInsertionEffect:Lo,useLayoutEffect:Dd,useMemo:Xs,useReducer:jd,useRef:jr,useState:function(){return jd(Yi)},useDebugValue:Ld,useDeferredValue:function(s,a){var d=Gr();return Gt===null?jf(d,s,a):dm(d,Gt.memoizedState,s,a)},useTransition:function(){var s=jd(Yi)[0],a=Gr().memoizedState;return[typeof s=="boolean"?s:_o(s),a]},useSyncExternalStore:Ur,useId:pm,useHostTransitionStatus:Io,useFormState:Bl,useActionState:Bl,useOptimistic:function(s,a){var d=Gr();return Gt!==null?Ol(d,Gt,s,a):(d.baseState=s,[s,d.queue.dispatch])},useMemoCache:Sf,useCacheRefresh:mm};Fd.useEffectEvent=cm;function zd(s,a,d,p){a=s.memoizedState,d=d(p,a),d=d==null?a:C({},a,d),s.memoizedState=d,s.lanes===0&&(s.updateQueue.baseState=d)}var Qc={enqueueSetState:function(s,a,d){s=s._reactInternals;var p=tn(),E=Ma(p);E.payload=a,d!=null&&(E.callback=d),a=Ra(s,E,p),a!==null&&(rn(a,s,p),Oa(a,s,p))},enqueueReplaceState:function(s,a,d){s=s._reactInternals;var p=tn(),E=Ma(p);E.tag=1,E.payload=a,d!=null&&(E.callback=d),a=Ra(s,E,p),a!==null&&(rn(a,s,p),Oa(a,s,p))},enqueueForceUpdate:function(s,a){s=s._reactInternals;var d=tn(),p=Ma(d);p.tag=2,a!=null&&(p.callback=a),a=Ra(s,p,d),a!==null&&(rn(a,s,d),Oa(a,s,d))}};function vm(s,a,d,p,E,T,V){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(p,T,V):a.prototype&&a.prototype.isPureReactComponent?!Rc(d,p)||!Rc(E,T):!0}function Ud(s,a,d,p){s=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(d,p),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(d,p),a.state!==s&&Qc.enqueueReplaceState(a,a.state,null)}function Gi(s,a){var d=a;if("ref"in a){d={};for(var p in a)p!=="ref"&&(d[p]=a[p])}if(s=s.defaultProps){d===a&&(d=C({},d));for(var E in s)d[E]===void 0&&(d[E]=s[E])}return d}function bm(s){hd(s)}function Bf(s){console.error(s)}function Da(s){hd(s)}function La(s,a){try{var d=s.onUncaughtError;d(a.value,{componentStack:a.stack})}
vendor: 4,167 bytes, line 8
8catch(p){setTimeout(function(){throw p})}}function _f(s,a,d){try{var p=s.onCaughtError;p(d.value,{componentStack:d.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function Df(s,a,d){return d=Ma(d),d.tag=3,d.payload={element:null},d.callback=function(){La(s,a)},d}function $d(s){return s=Ma(s),s.tag=3,s}function Vd(s,a,d,p){var E=d.type.getDerivedStateFromError;if(typeof E=="function"){var T=p.value;s.payload=function(){return E(T)},s.callback=function(){_f(a,d,p)}}var V=d.stateNode;V!==null&&typeof V.componentDidCatch=="function"&&(s.callback=function(){_f(a,d,p),typeof E!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var ce=p.stack;this.componentDidCatch(p.value,{componentStack:ce!==null?ce:""})})}function Lf(s,a,d,p,E){if(d.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(a=d.alternate,a!==null&&Co(a,d,E,!0),d=Rs.current,d!==null){switch(d.tag){case 31:case 13:return ps===null?th():d.alternate===null&&Zr===0&&(Zr=3),d.flags&=-257,d.flags|=65536,d.lanes=E,p===vd?d.flags|=16384:(a=d.updateQueue,a===null?d.updateQueue=new Set([p]):a.add(p),ah(s,p,E)),!1;case 22:return d.flags|=65536,p===vd?d.flags|=16384:(a=d.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([p])},d.updateQueue=a):(d=a.retryQueue,d===null?a.retryQueue=new Set([p]):d.add(p)),ah(s,p,E)),!1}throw Error(n(435,d.tag))}return ah(s,p,E),th(),!1}if(Yt)return a=Rs.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=E,p!==Eo&&(s=Error(n(422),{cause:p}),Lc(Nn(s,d)))):(p!==Eo&&(a=Error(n(423),{cause:p}),Lc(Nn(a,d))),s=s.current.alternate,s.flags|=65536,E&=-E,s.lanes|=E,p=Nn(p,d),E=Df(s.stateNode,p,E),Fc(s,E),Zr!==4&&(Zr=2)),!1;var T=Error(n(520),{cause:p});if(T=Nn(T,d),sa===null?sa=[T]:sa.push(T),Zr!==4&&(Zr=2),a===null)return!0;p=Nn(p,d),d=a;do{switch(d.tag){case 3:return d.flags|=65536,s=E&-E,d.lanes|=s,s=Df(d.stateNode,p,s),Fc(d,s),!1;case 1:if(a=d.type,T=d.stateNode,(d.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Va===null||!Va.has(T))))return d.flags|=65536,E&=-E,d.lanes|=E,E=$d(E),Vd(E,s,d,p),Fc(d,E),!1}d=d.return}while(d!==null);return!1}var Hd=Error(n(461)),Jr=!1;function kr(s,a,d,p){a.child=s===null?em(a,null,d,p):Na(a,s.child,d,p)}function Xi(s,a,d,p,E){d=d.render;var T=a.ref;if("ref"in p){var V={};for(var ce in p)ce!=="ref"&&(V[ce]=p[ce])}else V=p;return Ta(a),p=kd(s,a,d,V,T,E),ce=Bo(),s!==null&&!Jr?(bf(s,a,E),Qi(s,a,E)):(Yt&&ce&&sf(a),a.flags|=1,kr(s,a,p,E),a.child)}function If(s,a,d,p,E){if(s===null){var T=d.type;return typeof T=="function"&&!tf(T)&&T.defaultProps===void 0&&d.compare===null?(a.tag=15,a.type=T,wm(s,a,T,p,E)):(s=Pi(d.type,null,p,a,a.mode,E),s.ref=a.ref,s.return=a,a.child=s)}if(T=s.child,!zf(s,E)){var V=T.memoizedProps;if(d=d.compare,d=d!==null?d:Rc,d(V,p)&&s.ref===a.ref)return Qi(s,a,E)}return a.flags|=1,s=Ii(T,p),s.ref=a.ref,s.return=a,a.child=s}function wm(s,a,d,p,E){if(s!==null){var T=s.memoizedProps;if(Rc(T,p)&&s.ref===a.ref)if(Jr=!1,a.pendingProps=p=T,zf(s,E))(s.flags&131072)!==0&&(Jr=!0);else return a.lanes=s.lanes,Qi(s,a,E)}return Pf(s,a,d,p,E)}function Sm(s,a,d,p){var E=p.children,T=s!==null?s.memoizedState:null;if(s===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((a.flags&128)!==0){if(T=T!==null?T.baseLanes|d:d,s!==null){for(p=a.child=s.child,E=0;p!==null;)E=E|p.lanes|p.childLanes,p=p.sibling;p=E&~T}else p=0,a.child=null;return qi(s,a,T,d,p)}if((d&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},s!==null&&Pc(a,T!==null?T.cachePool:null),T!==null?tm(a,T):Cd(),rm(a);else return p=a.lanes=536870912,qi(s,a,T!==null?T.baseLanes|d:d,d,p)}else T!==null?(Pc(a,T.cachePool),tm(a,T),_a(),a.memoizedState=null):(s!==null&&Pc(a,null),Cd(),_a());return kr(s,a,E,d),a.child}function Ia(s,a){return s!==null&&s.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function qi(s,a,d,p,E){var T=ff();return T=T===null?null:{parent:ls._currentValue,pool:T}
vendor: 5,783 bytes, line 8
8,a.memoizedState={baseLanes:d,cachePool:T},s!==null&&Pc(a,null),Cd(),rm(a),s!==null&&Co(s,a,p,!0),a.childLanes=E,null}function Po(s,a){return a=Zc({mode:a.mode,children:a.children},s.mode),a.ref=s.ref,s.child=a,a.return=s,a}function Ut(s,a,d){return Na(a,s.child,null,d),s=Po(a,a.pendingProps),s.flags|=2,zr(a),a.memoizedState=null,s}function av(s,a,d){var p=a.pendingProps,E=(a.flags&128)!==0;if(a.flags&=-129,s===null){if(Yt){if(p.mode==="hidden")return s=Po(a,p),a.lanes=536870912,Ia(null,s);if(Vc(a),(s=wr)?(s=lt(s,wt),s=s!==null&&s.data==="&"?s:null,s!==null&&(a.memoizedState={dehydrated:s,treeContext:Fi!==null?{id:Mn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},d=G0(s),d.return=a,a.child=d,bs=a,wr=null)):s=null,s===null)throw ka(a);return a.lanes=536870912,null}return Po(a,p)}var T=s.memoizedState;if(T!==null){var V=T.dehydrated;if(Vc(a),E)if(a.flags&256)a.flags&=-257,a=Ut(s,a,d);else if(a.memoizedState!==null)a.child=s.child,a.flags|=128,a=null;else throw Error(n(558));else if(Jr||Co(s,a,d,!1),E=(d&s.childLanes)!==0,Jr||E){if(p=Sr,p!==null&&(V=tr(p,d),V!==0&&V!==T.retryLane))throw T.retryLane=V,Li(s,V),rn(p,s,V),Hd;th(),a=Ut(s,a,d)}else s=T.treeContext,wr=Mr(V.nextSibling),bs=a,Yt=!0,Kn=null,wt=!1,s!==null&&mt(a,s),a=Po(a,p),a.flags|=4096;return a}return s=Ii(s.child,{mode:p.mode,children:p.children}),s.ref=a.ref,a.child=s,s.return=a,s}function Fo(s,a){var d=a.ref;if(d===null)s!==null&&s.ref!==null&&(a.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(n(284));(s===null||s.ref!==d)&&(a.flags|=4194816)}}function Pf(s,a,d,p,E){return Ta(a),d=kd(s,a,d,p,void 0,E),p=Bo(),s!==null&&!Jr?(bf(s,a,E),Qi(s,a,E)):(Yt&&p&&sf(a),a.flags|=1,kr(s,a,d,E),a.child)}function Dl(s,a,d,p,E,T){return Ta(a),a.updateQueue=null,d=Oo(a,p,d,E),Td(s),p=Bo(),s!==null&&!Jr?(bf(s,a,T),Qi(s,a,T)):(Yt&&p&&sf(a),a.flags|=1,kr(s,a,d,T),a.child)}function Am(s,a,d,p,E){if(Ta(a),a.stateNode===null){var T=gi,V=d.contextType;typeof V=="object"&&V!==null&&(T=Ms(V)),T=new d(p,T),a.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=Qc,a.stateNode=T,T._reactInternals=a,T=a.stateNode,T.props=p,T.state=a.memoizedState,T.refs={},mf(a),V=d.contextType,T.context=typeof V=="object"&&V!==null?Ms(V):gi,T.state=a.memoizedState,V=d.getDerivedStateFromProps,typeof V=="function"&&(zd(a,d,V,p),T.state=a.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(V=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),V!==T.state&&Qc.enqueueReplaceState(T,T.state,null),Uc(a,p,T,E),zc(),T.state=a.memoizedState),typeof T.componentDidMount=="function"&&(a.flags|=4194308),p=!0}else if(s===null){T=a.stateNode;var ce=a.memoizedProps,we=Gi(d,ce);T.props=we;var Oe=T.context,Ve=d.contextType;V=gi,typeof Ve=="object"&&Ve!==null&&(V=Ms(Ve));var Xe=d.getDerivedStateFromProps;Ve=typeof Xe=="function"||typeof T.getSnapshotBeforeUpdate=="function",ce=a.pendingProps!==ce,Ve||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(ce||Oe!==V)&&Ud(a,T,p,V),ja=!1;var Be=a.memoizedState;T.state=Be,Uc(a,p,T,E),zc(),Oe=a.memoizedState,ce||Be!==Oe||ja?(typeof Xe=="function"&&(zd(a,d,Xe,p),Oe=a.memoizedState),(we=ja||vm(a,d,we,p,Be,Oe,V))?(Ve||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(a.flags|=4194308)):(typeof T.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=p,a.memoizedState=Oe),T.props=p,T.state=Oe,T.context=V,p=we):(typeof T.componentDidMount=="function"&&(a.flags|=4194308),p=!1)}else{T=a.stateNode,xf(s,a),V=a.memoizedProps,Ve=Gi(d,V),T.props=Ve,Xe=a.pendingProps,Be=T.context,Oe=d.contextType,we=gi,typeof Oe=="object"&&Oe!==null&&(we=Ms(Oe)),ce=d.getDerivedStateFromProps,(Oe=typeof ce=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(V!==Xe||Be!==we)&&Ud(a,T,p,we),ja=!1,Be=a.memoizedState,T.state=Be,Uc(a,p,T,E),zc();var Ie=a.memoizedState;V!==Xe||Be!==Ie||ja||s!==null&&s.dependencies!==null&&xd(s.dependencies)?(typeof ce=="function"&&(zd(a,d,ce,p),Ie=a.memoizedState),(Ve=ja||vm(a,d,Ve,p,Be,Ie,we)||s!==null&&s.dependencies!==null&&xd(s.dependencies))?(Oe||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(p,Ie,we),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(p,Ie,we)),typeof T.componentDidUpdate=="function"&&(a.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof T.componentDidUpdate!="function"||V===s.memoizedProps&&Be===s.memoizedState||(a.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||V===s.memoizedProps&&Be===s.memoizedState||(a.flags|=1024),a.memoizedProps=p,a.memoizedState=Ie),T.props=p,T.state=Ie,T.context=we,p=Ve):(typeof T.componentDidUpdate!="function"||V===s.memoizedProps&&Be===s.memoizedState||(a.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||V===s.memoizedProps&&Be===s.memoizedState||(a.flags|=1024),p=!1)}return T=p,Fo(s,a),p=(a.flags&128)!==0,T||p?(T=a.stateNode,d=p&&typeof d.getDerivedStateFromError!="function"?null:T.render(),a.flags|=1,s!==null&&p?(a.child=Na(a,s.child,null,E),a.child=Na(a,null,d,E)):kr(s,a,d,E),a.memoizedState=T.state,s=a.child):s=Qi(s,a,E),s}
vendor: 2,682 bytes, line 8
8function Jc(s,a,d,p){return Rn(),a.flags|=256,kr(s,a,d,p),a.child}var Dn={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(s){return{baseLanes:s,cachePool:Al()}}function Is(s,a,d){return s=s!==null?s.childLanes&~d:0,a&&(s|=en),s}function Em(s,a,d){var p=a.pendingProps,E=!1,T=(a.flags&128)!==0,V;if((V=T)||(V=s!==null&&s.memoizedState===null?!1:(ts.current&2)!==0),V&&(E=!0,a.flags&=-129),V=(a.flags&32)!==0,a.flags&=-33,s===null){if(Yt){if(E?Ba(a):_a(),(s=wr)?(s=lt(s,wt),s=s!==null&&s.data!=="&"?s:null,s!==null&&(a.memoizedState={dehydrated:s,treeContext:Fi!==null?{id:Mn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},d=G0(s),d.return=a,a.child=d,bs=a,wr=null)):s=null,s===null)throw ka(a);return dr(s)?a.lanes=32:a.lanes=536870912,null}var ce=p.children;return p=p.fallback,E?(_a(),E=a.mode,ce=Zc({mode:"hidden",children:ce},E),p=yl(p,E,d,null),ce.return=a,p.return=a,ce.sibling=p,a.child=ce,p=a.child,p.memoizedState=Kc(d),p.childLanes=Is(s,V,d),a.memoizedState=Dn,Ia(null,p)):(Ba(a),Yd(a,ce))}var we=s.memoizedState;if(we!==null&&(ce=we.dehydrated,ce!==null)){if(T)a.flags&256?(Ba(a),a.flags&=-257,a=zo(s,a,d)):a.memoizedState!==null?(_a(),a.child=s.child,a.flags|=128,a=null):(_a(),ce=p.fallback,E=a.mode,p=Zc({mode:"visible",children:p.children},E),ce=yl(ce,E,d,null),ce.flags|=2,p.return=a,ce.return=a,p.sibling=ce,a.child=p,Na(a,s.child,null,d),p=a.child,p.memoizedState=Kc(d),p.childLanes=Is(s,V,d),a.memoizedState=Dn,a=Ia(null,p));else if(Ba(a),dr(ce)){if(V=ce.nextSibling&&ce.nextSibling.dataset,V)var Oe=V.dgst;V=Oe,p=Error(n(419)),p.stack="",p.digest=V,Lc({value:p,source:null,stack:null}),a=zo(s,a,d)}else if(Jr||Co(s,a,d,!1),V=(d&s.childLanes)!==0,Jr||V){if(V=Sr,V!==null&&(p=tr(V,d),p!==0&&p!==we.retryLane))throw we.retryLane=p,Li(s,p),rn(V,s,p),Hd;at(ce)||th(),a=zo(s,a,d)}else at(ce)?(a.flags|=192,a.child=s.child,a=null):(s=we.treeContext,wr=Mr(ce.nextSibling),bs=a,Yt=!0,Kn=null,wt=!1,s!==null&&mt(a,s),a=Yd(a,p.children),a.flags|=4096);return a}return E?(_a(),ce=p.fallback,E=a.mode,we=s.child,Oe=we.sibling,p=Ii(we,{mode:"hidden",children:p.children}),p.subtreeFlags=we.subtreeFlags&65011712,Oe!==null?ce=Ii(Oe,ce):(ce=yl(ce,E,d,null),ce.flags|=2),ce.return=a,p.return=a,p.sibling=ce,a.child=p,Ia(null,p),p=a.child,ce=s.child.memoizedState,ce===null?ce=Kc(d):(E=ce.cachePool,E!==null?(we=ls._currentValue,E=E.parent!==we?{parent:we,pool:we}:E):E=Al(),ce={baseLanes:ce.baseLanes|d,cachePool:E}),p.memoizedState=ce,p.childLanes=Is(s,V,d),a.memoizedState=Dn,Ia(s.child,p)):(Ba(a),d=s.child,s=d.sibling,d=Ii(d,{mode:"visible",children:p.children}),d.return=a,d.sibling=null,s!==null&&(V=a.deletions,V===null?(a.deleti
vendor: 5,474 bytes, line 8
8ons=[s],a.flags|=16):V.push(s)),a.child=d,a.memoizedState=null,d)}function Yd(s,a){return a=Zc({mode:"visible",children:a},s.mode),a.return=s,s.child=a}function Zc(s,a){return s=Ds(22,s,null,a),s.lanes=0,s}function zo(s,a,d){return Na(a,s.child,null,d),s=Yd(a,a.pendingProps.children),s.flags|=2,a.memoizedState=null,s}function Cm(s,a,d){s.lanes|=a;var p=s.alternate;p!==null&&(p.lanes|=a),lf(s.return,a,d)}function Ff(s,a,d,p,E,T){var V=s.memoizedState;V===null?s.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:p,tail:d,tailMode:E,treeForkCount:T}:(V.isBackwards=a,V.rendering=null,V.renderingStartTime=0,V.last=p,V.tail=d,V.tailMode=E,V.treeForkCount=T)}function Wi(s,a,d){var p=a.pendingProps,E=p.revealOrder,T=p.tail;p=p.children;var V=ts.current,ce=(V&2)!==0;if(ce?(V=V&1|2,a.flags|=128):V&=1,ge(ts,V),kr(s,a,p,d),p=Yt?js:0,!ce&&s!==null&&(s.flags&128)!==0)e:for(s=a.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Cm(s,d,a);else if(s.tag===19)Cm(s,d,a);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(E){case"forwards":for(d=a.child,E=null;d!==null;)s=d.alternate,s!==null&&Mo(s)===null&&(E=d),d=d.sibling;d=E,d===null?(E=a.child,a.child=null):(E=d.sibling,d.sibling=null),Ff(a,!1,E,d,T,p);break;case"backwards":case"unstable_legacy-backwards":for(d=null,E=a.child,a.child=null;E!==null;){if(s=E.alternate,s!==null&&Mo(s)===null){a.child=E;break}s=E.sibling,E.sibling=d,d=E,E=s}Ff(a,!0,d,null,T,p);break;case"together":Ff(a,!1,null,null,void 0,p);break;default:a.memoizedState=null}return a.child}function Qi(s,a,d){if(s!==null&&(a.dependencies=s.dependencies),Zs|=a.lanes,(d&a.childLanes)===0)if(s!==null){if(Co(s,a,d,!1),(d&a.childLanes)===0)return null}else return null;if(s!==null&&a.child!==s.child)throw Error(n(153));if(a.child!==null){for(s=a.child,d=Ii(s,s.pendingProps),a.child=d,d.return=a;s.sibling!==null;)s=s.sibling,d=d.sibling=Ii(s,s.pendingProps),d.return=a;d.sibling=null}return a.child}function zf(s,a){return(s.lanes&a)!==0?!0:(s=s.dependencies,!!(s!==null&&xd(s)))}function Pa(s,a,d){switch(a.tag){case 3:Je(a,a.stateNode.containerInfo),Ui(a,ls,s.memoizedState.cache),Rn();break;case 27:case 5:gt(a);break;case 4:Je(a,a.stateNode.containerInfo);break;case 10:Ui(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Vc(a),null;break;case 13:var p=a.memoizedState;if(p!==null)return p.dehydrated!==null?(Ba(a),a.flags|=128,null):(d&a.child.childLanes)!==0?Em(s,a,d):(Ba(a),s=Qi(s,a,d),s!==null?s.sibling:null);Ba(a);break;case 19:var E=(s.flags&128)!==0;if(p=(d&a.childLanes)!==0,p||(Co(s,a,d,!1),p=(d&a.childLanes)!==0),E){if(p)return Wi(s,a,d);a.flags|=128}if(E=a.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),ge(ts,ts.current),p)break;return null;case 22:return a.lanes=0,Sm(s,a,d,a.pendingProps);case 24:Ui(a,ls,s.memoizedState.cache)}return Qi(s,a,d)}function eu(s,a,d){if(s!==null)if(s.memoizedProps!==a.pendingProps)Jr=!0;else{if(!zf(s,d)&&(a.flags&128)===0)return Jr=!1,Pa(s,a,d);Jr=(s.flags&131072)!==0}else Jr=!1,Yt&&(a.flags&1048576)!==0&&rf(a,js,a.index);switch(a.lanes=0,a.tag){case 16:e:{var p=a.pendingProps;if(s=Cl(a.elementType),a.type=s,typeof s=="function")tf(s)?(p=Gi(s,p),a.tag=1,a=Am(null,a,s,p,d)):(a.tag=0,a=Pf(null,a,s,p,d));else{if(s!=null){var E=s.$$typeof;if(E===J){a.tag=11,a=Xi(null,a,s,p,d);break e}else if(E===se){a.tag=14,a=If(null,a,s,p,d);break e}}throw a=ue(s)||s,Error(n(306,a,""))}}return a;case 0:return Pf(s,a,a.type,a.pendingProps,d);case 1:return p=a.type,E=Gi(p,a.pendingProps),Am(s,a,p,E,d);case 3:e:{if(Je(a,a.stateNode.containerInfo),s===null)throw Error(n(387));p=a.pendingProps;var T=a.memoizedState;E=T.element,xf(s,a),Uc(a,p,null,d);var V=a.memoizedState;if(p=V.cache,Ui(a,ls,p),p!==T.cache&&of(a,[ls],d,!0),zc(),p=V.element,T.isDehydrated)if(T={element:p,isDehydrated:!1,cache:V.cache},a.updateQueue.baseState=T,a.memoizedState=T,a.flags&256){a=Jc(s,a,p,d);break e}else if(p!==E){E=Nn(Error(n(424)),a),Lc(E),a=Jc(s,a,p,d);break e}else for(s=a.stateNode.containerInfo,s.nodeType===9?s=s.body:s=s.nodeName==="HTML"?s.ownerDocument.body:s,wr=Mr(s.firstChild),bs=a,Yt=!0,Kn=null,wt=!0,d=em(a,null,p,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Rn(),p===E){a=Qi(s,a,d);break e}kr(s,a,p,d)}a=a.child}return a;case 26:return Fo(s,a),s===null?(d=Q1(a.type,null,a.pendingProps,null))?a.memoizedState=d:Yt||(d=a.type,s=a.pendingProps,p=ee(_e.current).createElement(d),p[ys]=a,p[Vs]=s,N(p,d,s),as(p),a.stateNode=p):a.memoizedState=Q1(a.type,s.memoizedProps,a.pendingProps,s.memoizedState),null;case 27:return gt(a),s===null&&Yt&&(p=a.stateNode=Mt(a.type,a.pendingProps,_e.current),bs=a,wt=!0,E=wr,$e(a.type)?(yt=E,wr=Mr(p.firstChild)):wr=E),kr(s,a,a.pendingProps.children,d),Fo(s,a),s===null&&(a.flags|=4194304),a.child;case 5:return s===null&&Yt&&((E=p=wr)&&(p=nt(p,a.type,a.pendingProps,wt),p!==null?(a.stateNode=p,bs=a,wr=Mr(p.firstChild),wt=!1,E=!0):E=!1),E||ka(a)),gt(a),E=a.type,T=a.pendingProps,V=s!==null?s.memoizedProps:null,p=T.children,de(E,T)?p=null:V!==null&&de(E,V)&&(a.flags|=32),a.memoizedState!==null&&(E=kd(s,a,Yc,null,null,d),fp._currentValue=E),Fo(s,a),kr(s,a,p,d),a.child;case 6:return s===null&&Yt&&((s=d=wr)&&(d=ct(d,a.pendingProps,wt),d!==null?(a.stateNode=d,bs=a,wr=null,s=!0):s=!1),s||ka(a)),null;case 13:return Em(s,a,d);
vendor: 4,187 bytes, line 8
8case 4:return Je(a,a.stateNode.containerInfo),p=a.pendingProps,s===null?a.child=Na(a,null,p,d):kr(s,a,p,d),a.child;case 11:return Xi(s,a,a.type,a.pendingProps,d);case 7:return kr(s,a,a.pendingProps,d),a.child;case 8:return kr(s,a,a.pendingProps.children,d),a.child;case 12:return kr(s,a,a.pendingProps.children,d),a.child;case 10:return p=a.pendingProps,Ui(a,a.type,p.value),kr(s,a,p.children,d),a.child;case 9:return E=a.type._context,p=a.pendingProps.children,Ta(a),E=Ms(E),p=p(E),a.flags|=1,kr(s,a,p,d),a.child;case 14:return If(s,a,a.type,a.pendingProps,d);case 15:return wm(s,a,a.type,a.pendingProps,d);case 19:return Wi(s,a,d);case 31:return av(s,a,d);case 22:return Sm(s,a,d,a.pendingProps);case 24:return Ta(a),p=Ms(ls),s===null?(E=ff(),E===null&&(E=Sr,T=uf(),E.pooledCache=T,T.refCount++,T!==null&&(E.pooledCacheLanes|=d),E=T),a.memoizedState={parent:p,cache:E},mf(a),Ui(a,ls,E)):((s.lanes&d)!==0&&(xf(s,a),Uc(a,null,null,d),zc()),E=s.memoizedState,T=a.memoizedState,E.parent!==p?(E={parent:p,cache:p},a.memoizedState=E,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=E),Ui(a,ls,p)):(p=T.cache,Ui(a,ls,p),p!==E.cache&&of(a,[ls],d,!0))),kr(s,a,a.pendingProps.children,d),a.child;case 29:throw a.pendingProps}throw Error(n(156,a.tag))}function ti(s){s.flags|=4}function tu(s,a,d,p,E){if((a=(s.mode&32)!==0)&&(a=!1),a){if(s.flags|=16777216,(E&335544128)===E)if(s.stateNode.complete)s.flags|=8192;else if(Ym())s.flags|=8192;else throw kl=vd,No}else s.flags&=-16777217}function km(s,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!tw(a))if(Ym())s.flags|=8192;else throw kl=vd,No}function ru(s,a){a!==null&&(s.flags|=4),s.flags&16384&&(a=s.tag!==22?Tr():536870912,s.lanes|=a,mn|=a)}function Uo(s,a){if(!Yt)switch(s.tailMode){case"hidden":a=s.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?s.tail=null:d.sibling=null;break;case"collapsed":d=s.tail;for(var p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?a||s.tail===null?s.tail=null:s.tail.sibling=null:p.sibling=null}}function _r(s){var a=s.alternate!==null&&s.alternate.child===s.child,d=0,p=0;if(a)for(var E=s.child;E!==null;)d|=E.lanes|E.childLanes,p|=E.subtreeFlags&65011712,p|=E.flags&65011712,E.return=s,E=E.sibling;else for(E=s.child;E!==null;)d|=E.lanes|E.childLanes,p|=E.subtreeFlags,p|=E.flags,E.return=s,E=E.sibling;return s.subtreeFlags|=p,s.childLanes=d,a}function Tm(s,a,d){var p=a.pendingProps;switch(md(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _r(a),null;case 1:return _r(a),null;case 3:return d=a.stateNode,p=null,s!==null&&(p=s.memoizedState.cache),a.memoizedState.cache!==p&&(a.flags|=2048),$i(ls),it(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(s===null||s.child===null)&&(wl(a)?ti(a):s===null||s.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,nf())),_r(a),null;case 26:var E=a.type,T=a.memoizedState;return s===null?(ti(a),T!==null?(_r(a),km(a,T)):(_r(a),tu(a,E,null,p,d))):T?T!==s.memoizedState?(ti(a),_r(a),km(a,T)):(_r(a),a.flags&=-16777217):(s=s.memoizedProps,s!==p&&ti(a),_r(a),tu(a,E,s,p,d)),null;case 27:if(bt(a),d=_e.current,E=a.type,s!==null&&a.stateNode!=null)s.memoizedProps!==p&&ti(a);else{if(!p){if(a.stateNode===null)throw Error(n(166));return _r(a),null}s=ye.current,wl(a)?q0(a):(s=Mt(E,p,d),a.stateNode=s,ti(a))}return _r(a),null;case 5:if(bt(a),E=a.type,s!==null&&a.stateNode!=null)s.memoizedProps!==p&&ti(a);else{if(!p){if(a.stateNode===null)throw Error(n(166));return _r(a),null}if(T=ye.current,wl(a))q0(a);else{var V=ee(_e.current);switch(T){case 1:T=V.createElementNS("http://www.w3.org/2000/svg",E);break;case 2:T=V.createElementNS("http://www.w3.org/1998/Math/MathML",E);break;default:switch(E){case"svg":T=V.createElementNS("http://www.w3.org/2000/svg",E);break;case"math":T=V.createElementNS("http://www.w3.org/1998/Math/MathML",E);break;case"script":T=V.createElement("div"),T.innerHTML="<script><\/script>",T=T.removeChild(T.firstChild);break;case"select":T=typeof p.is=="string"?V.createElement("select",{is:p.is}):V.createElement("select"),p.multiple?T.multiple=!0:p.size&&(T.size=p.size);break;
vendor: 25,186 bytes, line 8
8default:T=typeof p.is=="string"?V.createElement(E,{is:p.is}):V.createElement(E)}}T[ys]=a,T[Vs]=p;e:for(V=a.child;V!==null;){if(V.tag===5||V.tag===6)T.appendChild(V.stateNode);else if(V.tag!==4&&V.tag!==27&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===a)break e;for(;V.sibling===null;){if(V.return===null||V.return===a)break e;V=V.return}V.sibling.return=V.return,V=V.sibling}a.stateNode=T;e:switch(N(T,E,p),E){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&ti(a)}}return _r(a),tu(a,a.type,s===null?null:s.memoizedProps,a.pendingProps,d),null;case 6:if(s&&a.stateNode!=null)s.memoizedProps!==p&&ti(a);else{if(typeof p!="string"&&a.stateNode===null)throw Error(n(166));if(s=_e.current,wl(a)){if(s=a.stateNode,d=a.memoizedProps,p=null,E=bs,E!==null)switch(E.tag){case 27:case 5:p=E.memoizedProps}s[ys]=a,s=!!(s.nodeValue===d||p!==null&&p.suppressHydrationWarning===!0||v(s.nodeValue,d)),s||ka(a,!0)}else s=ee(s).createTextNode(p),s[ys]=a,a.stateNode=s}return _r(a),null;case 31:if(d=a.memoizedState,s===null||s.memoizedState!==null){if(p=wl(a),d!==null){if(s===null){if(!p)throw Error(n(318));if(s=a.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(557));s[ys]=a}else Rn(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_r(a),s=!1}else d=nf(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=d),s=!0;if(!s)return a.flags&256?(zr(a),a):(zr(a),null);if((a.flags&128)!==0)throw Error(n(558))}return _r(a),null;case 13:if(p=a.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(E=wl(a),p!==null&&p.dehydrated!==null){if(s===null){if(!E)throw Error(n(318));if(E=a.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(n(317));E[ys]=a}else Rn(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_r(a),E=!1}else E=nf(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=E),E=!0;if(!E)return a.flags&256?(zr(a),a):(zr(a),null)}return zr(a),(a.flags&128)!==0?(a.lanes=d,a):(d=p!==null,s=s!==null&&s.memoizedState!==null,d&&(p=a.child,E=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(E=p.alternate.memoizedState.cachePool.pool),T=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(T=p.memoizedState.cachePool.pool),T!==E&&(p.flags|=2048)),d!==s&&d&&(a.child.flags|=8192),ru(a,a.updateQueue),_r(a),null);case 4:return it(),s===null&&cp(a.stateNode.containerInfo),_r(a),null;case 10:return $i(a.type),_r(a),null;case 19:if(re(ts),p=a.memoizedState,p===null)return _r(a),null;if(E=(a.flags&128)!==0,T=p.rendering,T===null)if(E)Uo(p,!1);else{if(Zr!==0||s!==null&&(s.flags&128)!==0)for(s=a.child;s!==null;){if(T=Mo(s),T!==null){for(a.flags|=128,Uo(p,!1),s=T.updateQueue,a.updateQueue=s,ru(a,s),a.subtreeFlags=0,s=d,d=a.child;d!==null;)Jn(d,s),d=d.sibling;return ge(ts,ts.current&1|2),Yt&&rr(a,p.treeForkCount),a.child}s=s.sibling}p.tail!==null&&Ne()>uu&&(a.flags|=128,E=!0,Uo(p,!1),a.lanes=4194304)}else{if(!E)if(s=Mo(T),s!==null){if(a.flags|=128,E=!0,s=s.updateQueue,a.updateQueue=s,ru(a,s),Uo(p,!0),p.tail===null&&p.tailMode==="hidden"&&!T.alternate&&!Yt)return _r(a),null}else 2*Ne()-p.renderingStartTime>uu&&d!==536870912&&(a.flags|=128,E=!0,Uo(p,!1),a.lanes=4194304);p.isBackwards?(T.sibling=a.child,a.child=T):(s=p.last,s!==null?s.sibling=T:a.child=T,p.last=T)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=Ne(),s.sibling=null,d=ts.current,ge(ts,E?d&1|2:d&1),Yt&&rr(a,p.treeForkCount),s):(_r(a),null);case 22:case 23:return zr(a),yf(),p=a.memoizedState!==null,s!==null?s.memoizedState!==null!==p&&(a.flags|=8192):p&&(a.flags|=8192),p?(d&536870912)!==0&&(a.flags&128)===0&&(_r(a),a.subtreeFlags&6&&(a.flags|=8192)):_r(a),d=a.updateQueue,d!==null&&ru(a,d.retryQueue),d=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),p=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(p=a.memoizedState.cachePool.pool),p!==d&&(a.flags|=2048),s!==null&&re(Sl),null;case 24:return d=null,s!==null&&(d=s.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),$i(ls),_r(a),null;case 25:return null;case 30:return null}throw Error(n(156,a.tag))}function su(s,a){switch(md(a),a.tag){case 1:return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 3:return $i(ls),it(),s=a.flags,(s&65536)!==0&&(s&128)===0?(a.flags=s&-65537|128,a):null;case 26:case 27:case 5:return bt(a),null;case 31:if(a.memoizedState!==null){if(zr(a),a.alternate===null)throw Error(n(340));Rn()}return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 13:if(zr(a),s=a.memoizedState,s!==null&&s.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Rn()}return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 19:return re(ts),null;case 4:return it(),null;case 10:return $i(a.type),null;case 22:case 23:return zr(a),yf(),s!==null&&re(Sl),s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 24:return $i(ls),null;case 25:return null;default:return null}}function Nm(s,a){switch(md(a),a.tag){case 3:$i(ls),it();break;case 26:case 27:case 5:bt(a);break;case 4:it();break;case 31:a.memoizedState!==null&&zr(a);break;case 13:zr(a);break;case 19:re(ts);break;case 10:$i(a.type);break;case 22:case 23:zr(a),yf(),s!==null&&re(Sl);break;case 24:$i(ls)}}function nu(s,a){try{var d=a.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var E=p.next;d=E;do{if((d.tag&s)===s){p=void 0;var T=d.create,V=d.inst;p=T(),V.destroy=p}d=d.next}while(d!==E)}}catch(ce){ur(a,a.return,ce)}}function Fa(s,a,d){try{var p=a.updateQueue,E=p!==null?p.lastEffect:null;if(E!==null){var T=E.next;p=T;do{if((p.tag&s)===s){var V=p.inst,ce=V.destroy;if(ce!==void 0){V.destroy=void 0,E=a;var we=d,Oe=ce;try{Oe()}catch(Ve){ur(E,we,Ve)}}}p=p.next}while(p!==T)}}catch(Ve){ur(a,a.return,Ve)}}function Uf(s){var a=s.updateQueue;if(a!==null){var d=s.stateNode;try{$c(a,d)}catch(p){ur(s,s.return,p)}}}function Gd(s,a,d){d.props=Gi(s.type,s.memoizedProps),d.state=s.memoizedState;try{d.componentWillUnmount()}catch(p){ur(s,a,p)}}function Ll(s,a){try{var d=s.ref;if(d!==null){switch(s.tag){case 26:case 27:case 5:var p=s.stateNode;break;case 30:p=s.stateNode;break;default:p=s.stateNode}typeof d=="function"?s.refCleanup=d(p):d.current=p}}catch(E){ur(s,a,E)}}function qs(s,a){var d=s.ref,p=s.refCleanup;if(d!==null)if(typeof p=="function")try{p()}catch(E){ur(s,a,E)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(E){ur(s,a,E)}else d.current=null}function $f(s){var a=s.type,d=s.memoizedProps,p=s.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":d.autoFocus&&p.focus();break e;case"img":d.src?p.src=d.src:d.srcSet&&(p.srcset=d.srcSet)}}catch(E){ur(s,s.return,E)}}function Vf(s,a,d){try{var p=s.stateNode;B(p,s.type,d,a),p[Vs]=a}catch(E){ur(s,s.return,E)}}function jm(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&$e(s.type)||s.tag===4}function Xd(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||jm(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&$e(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Il(s,a,d){var p=s.tag;if(p===5||p===6)s=s.stateNode,a?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(s,a):(a=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,a.appendChild(s),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=kn));else if(p!==4&&(p===27&&$e(s.type)&&(d=s.stateNode,a=null),s=s.child,s!==null))for(Il(s,a,d),s=s.sibling;s!==null;)Il(s,a,d),s=s.sibling}function iu(s,a,d){var p=s.tag;if(p===5||p===6)s=s.stateNode,a?d.insertBefore(s,a):d.appendChild(s);else if(p!==4&&(p===27&&$e(s.type)&&(d=s.stateNode),s=s.child,s!==null))for(iu(s,a,d),s=s.sibling;s!==null;)iu(s,a,d),s=s.sibling}function Mm(s){var a=s.stateNode,d=s.memoizedProps;try{for(var p=s.type,E=a.attributes;E.length;)a.removeAttributeNode(E[0]);N(a,p,d),a[ys]=s,a[Vs]=d}catch(T){ur(s,s.return,T)}}var Ji=!1,Kr=!1,Ki=!1,qd=typeof WeakSet=="function"?WeakSet:Set,ws=null;function lv(s,a){if(s=s.containerInfo,U=hx,s=dd(s),Oc(s)){if("selectionStart"in s)var d={start:s.selectionStart,end:s.selectionEnd};else e:{d=(d=s.ownerDocument)&&d.defaultView||window;var p=d.getSelection&&d.getSelection();if(p&&p.rangeCount!==0){d=p.anchorNode;var E=p.anchorOffset,T=p.focusNode;p=p.focusOffset;try{d.nodeType,T.nodeType}catch{d=null;break e}var V=0,ce=-1,we=-1,Oe=0,Ve=0,Xe=s,Be=null;t:for(;;){for(var Ie;Xe!==d||E!==0&&Xe.nodeType!==3||(ce=V+E),Xe!==T||p!==0&&Xe.nodeType!==3||(we=V+p),Xe.nodeType===3&&(V+=Xe.nodeValue.length),(Ie=Xe.firstChild)!==null;)Be=Xe,Xe=Ie;for(;;){if(Xe===s)break t;if(Be===d&&++Oe===E&&(ce=V),Be===T&&++Ve===p&&(we=V),(Ie=Xe.nextSibling)!==null)break;Xe=Be,Be=Xe.parentNode}Xe=Ie}d=ce===-1||we===-1?null:{start:ce,end:we}}else d=null}d=d||{start:0,end:0}}else d=null;for(q={focusedElem:s,selectionRange:d},hx=!1,ws=a;ws!==null;)if(a=ws,s=a.child,(a.subtreeFlags&1028)!==0&&s!==null)s.return=a,ws=s;else for(;ws!==null;){switch(a=ws,T=a.alternate,s=a.flags,a.tag){case 0:if((s&4)!==0&&(s=a.updateQueue,s=s!==null?s.events:null,s!==null))for(d=0;d<s.length;d++)E=s[d],E.ref.impl=E.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&T!==null){s=void 0,d=a,E=T.memoizedProps,T=T.memoizedState,p=d.stateNode;try{var ut=Gi(d.type,E);s=p.getSnapshotBeforeUpdate(ut,T),p.__reactInternalSnapshotBeforeUpdate=s}catch(Et){ur(d,d.return,Et)}}break;case 3:if((s&1024)!==0){if(s=a.stateNode.containerInfo,d=s.nodeType,d===9)rt(s);else if(d===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":rt(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(n(163))}if(s=a.sibling,s!==null){s.return=a.return,ws=s;break}ws=a.return}}function Rm(s,a,d){var p=d.flags;switch(d.tag){case 0:case 11:case 15:ea(s,d),p&4&&nu(5,d);break;case 1:if(ea(s,d),p&4)if(s=d.stateNode,a===null)try{s.componentDidMount()}catch(V){ur(d,d.return,V)}else{var E=Gi(d.type,a.memoizedProps);a=a.memoizedState;try{s.componentDidUpdate(E,a,s.__reactInternalSnapshotBeforeUpdate)}catch(V){ur(d,d.return,V)}}p&64&&Uf(d),p&512&&Ll(d,d.return);break;case 3:if(ea(s,d),p&64&&(s=d.updateQueue,s!==null)){if(a=null,d.child!==null)switch(d.child.tag){case 27:case 5:a=d.child.stateNode;break;case 1:a=d.child.stateNode}try{$c(s,a)}catch(V){ur(d,d.return,V)}}break;case 27:a===null&&p&4&&Mm(d);case 26:case 5:ea(s,d),a===null&&p&4&&$f(d),p&512&&Ll(d,d.return);break;case 12:ea(s,d);break;case 31:ea(s,d),p&4&&_m(s,d);break;case 13:ea(s,d),p&4&&Dm(s,d),p&64&&(s=d.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(d=hv.bind(null,d),hr(s,d))));break;case 22:if(p=d.memoizedState!==null||Ji,!p){a=a!==null&&a.memoizedState!==null||Kr,E=Ji;var T=Kr;Ji=p,(Kr=a)&&!T?ri(s,d,(d.subtreeFlags&8772)!==0):ea(s,d),Ji=E,Kr=T}break;case 30:break;default:ea(s,d)}}function Om(s){var a=s.alternate;a!==null&&(s.alternate=null,Om(a)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(a=s.stateNode,a!==null&&Ns(a)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var $r=null,Ws=!1;function Zi(s,a,d){for(d=d.child;d!==null;)Bm(s,a,d),d=d.sibling}function Bm(s,a,d){if(xr&&typeof xr.onCommitFiberUnmount=="function")try{xr.onCommitFiberUnmount(qr,d)}catch{}switch(d.tag){case 26:Kr||qs(d,a),Zi(s,a,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:Kr||qs(d,a);var p=$r,E=Ws;$e(d.type)&&($r=d.stateNode,Ws=!1),Zi(s,a,d),Wt(d.stateNode),$r=p,Ws=E;break;case 5:Kr||qs(d,a);case 6:if(p=$r,E=Ws,$r=null,Zi(s,a,d),$r=p,Ws=E,$r!==null)if(Ws)try{($r.nodeType===9?$r.body:$r.nodeName==="HTML"?$r.ownerDocument.body:$r).removeChild(d.stateNode)}catch(T){ur(d,a,T)}else try{$r.removeChild(d.stateNode)}catch(T){ur(d,a,T)}break;case 18:$r!==null&&(Ws?(s=$r,Pe(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,d.stateNode),hh(s)):Pe($r,d.stateNode));break;case 4:p=$r,E=Ws,$r=d.stateNode.containerInfo,Ws=!0,Zi(s,a,d),$r=p,Ws=E;break;case 0:case 11:case 14:case 15:Fa(2,d,a),Kr||Fa(4,d,a),Zi(s,a,d);break;case 1:Kr||(qs(d,a),p=d.stateNode,typeof p.componentWillUnmount=="function"&&Gd(d,a,p)),Zi(s,a,d);break;case 21:Zi(s,a,d);break;case 22:Kr=(p=Kr)||d.memoizedState!==null,Zi(s,a,d),Kr=p;break;default:Zi(s,a,d)}}function _m(s,a){if(a.memoizedState===null&&(s=a.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{hh(s)}catch(d){ur(a,a.return,d)}}}function Dm(s,a){if(a.memoizedState===null&&(s=a.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{hh(s)}catch(d){ur(a,a.return,d)}}function ov(s){switch(s.tag){case 31:case 13:case 19:var a=s.stateNode;return a===null&&(a=s.stateNode=new qd),a;case 22:return s=s.stateNode,a=s._retryCache,a===null&&(a=s._retryCache=new qd),a;default:throw Error(n(435,s.tag))}}function au(s,a){var d=ov(s);a.forEach(function(p){if(!d.has(p)){d.add(p);var E=ex.bind(null,s,p);p.then(E,E)}})}function Qs(s,a){var d=a.deletions;if(d!==null)for(var p=0;p<d.length;p++){var E=d[p],T=s,V=a,ce=V;e:for(;ce!==null;){switch(ce.tag){case 27:if($e(ce.type)){$r=ce.stateNode,Ws=!1;break e}break;case 5:$r=ce.stateNode,Ws=!1;break e;case 3:case 4:$r=ce.stateNode.containerInfo,Ws=!0;break e}ce=ce.return}if($r===null)throw Error(n(160));Bm(T,V,E),$r=null,Ws=!1,T=E.alternate,T!==null&&(T.return=null),E.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Wd(a,s),a=a.sibling}var Ln=null;function Wd(s,a){var d=s.alternate,p=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Qs(a,s),Js(s),p&4&&(Fa(3,s,s.return),nu(3,s),Fa(5,s,s.return));break;case 1:Qs(a,s),Js(s),p&512&&(Kr||d===null||qs(d,d.return)),p&64&&Ji&&(s=s.updateQueue,s!==null&&(p=s.callbacks,p!==null&&(d=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=d===null?p:d.concat(p))));break;case 26:var E=Ln;if(Qs(a,s),Js(s),p&512&&(Kr||d===null||qs(d,d.return)),p&4){var T=d!==null?d.memoizedState:null;if(p=s.memoizedState,d===null)if(p===null)if(s.stateNode===null){e:{p=s.type,d=s.memoizedProps,E=E.ownerDocument||E;t:switch(p){case"title":T=E.getElementsByTagName("title")[0],(!T||T[wc]||T[ys]||T.namespaceURI==="http://www.w3.org/2000/svg"||T.hasAttribute("itemprop"))&&(T=E.createElement(p),E.head.insertBefore(T,E.querySelector("head > title"))),N(T,p,d),T[ys]=s,as(T),p=T;break e;case"link":var V=Z1("link","href",E).get(p+(d.href||""));if(V){for(var ce=0;ce<V.length;ce++)if(T=V[ce],T.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&T.getAttribute("rel")===(d.rel==null?null:d.rel)&&T.getAttribute("title")===(d.title==null?null:d.title)&&T.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){V.splice(ce,1);break t}}T=E.createElement(p),N(T,p,d),E.head.appendChild(T);break;case"meta":if(V=Z1("meta","content",E).get(p+(d.content||""))){for(ce=0;ce<V.length;ce++)if(T=V[ce],T.getAttribute("content")===(d.content==null?null:""+d.content)&&T.getAttribute("name")===(d.name==null?null:d.name)&&T.getAttribute("property")===(d.property==null?null:d.property)&&T.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&T.getAttribute("charset")===(d.charSet==null?null:d.charSet)){V.splice(ce,1);break t}}T=E.createElement(p),N(T,p,d),E.head.appendChild(T);break;default:throw Error(n(468,p))}T[ys]=s,as(T),p=T}s.stateNode=p}else ew(E,s.type,s.stateNode);else s.stateNode=K1(E,p,s.memoizedProps);else T!==p?(T===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):T.count--,p===null?ew(E,s.type,s.stateNode):K1(E,p,s.memoizedProps)):p===null&&s.stateNode!==null&&Vf(s,s.memoizedProps,d.memoizedProps)}break;case 27:Qs(a,s),Js(s),p&512&&(Kr||d===null||qs(d,d.return)),d!==null&&p&4&&Vf(s,s.memoizedProps,d.memoizedProps);break;case 5:if(Qs(a,s),Js(s),p&512&&(Kr||d===null||qs(d,d.return)),s.flags&32){E=s.stateNode;try{oo(E,"")}catch(ut){ur(s,s.return,ut)}}p&4&&s.stateNode!=null&&(E=s.memoizedProps,Vf(s,E,d!==null?d.memoizedProps:E)),p&1024&&(Ki=!0);break;case 6:if(Qs(a,s),Js(s),p&4){if(s.stateNode===null)throw Error(n(162));p=s.memoizedProps,d=s.stateNode;try{d.nodeValue=p}catch(ut){ur(s,s.return,ut)}}break;case 3:if(ox=null,E=Ln,Ln=Rr(a.containerInfo),Qs(a,s),Ln=E,Js(s),p&4&&d!==null&&d.memoizedState.isDehydrated)try{hh(a.containerInfo)}catch(ut){ur(s,s.return,ut)}Ki&&(Ki=!1,Lm(s));break;case 4:p=Ln,Ln=Rr(s.stateNode.containerInfo),Qs(a,s),Js(s),Ln=p;break;case 12:Qs(a,s),Js(s);break;case 31:Qs(a,s),Js(s),p&4&&(p=s.updateQueue,p!==null&&(s.updateQueue=null,au(s,p)));break;case 13:Qs(a,s),Js(s),s.child.flags&8192&&s.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&($a=Ne()),p&4&&(p=s.updateQueue,p!==null&&(s.updateQueue=null,au(s,p)));break;case 22:E=s.memoizedState!==null;var we=d!==null&&d.memoizedState!==null,Oe=Ji,Ve=Kr;if(Ji=Oe||E,Kr=Ve||we,Qs(a,s),Kr=Ve,Ji=Oe,Js(s),p&8192)e:for(a=s.stateNode,a._visibility=E?a._visibility&-2:a._visibility|1,E&&(d===null||we||Ji||Kr||Si(s)),d=null,a=s;;){if(a.tag===5||a.tag===26){if(d===null){we=d=a;try{if(T=we.stateNode,E)V=T.style,typeof V.setProperty=="function"?V.setProperty("display","none","important"):V.display="none";else{ce=we.stateNode;var Xe=we.memoizedProps.style,Be=Xe!=null&&Xe.hasOwnProperty("display")?Xe.display:null;ce.style.display=Be==null||typeof Be=="boolean"?"":(""+Be).trim()}}catch(ut){ur(we,we.return,ut)}}}else if(a.tag===6){if(d===null){we=a;try{we.stateNode.nodeValue=E?"":we.memoizedProps}catch(ut){ur(we,we.return,ut)}}}else if(a.tag===18){if(d===null){we=a;try{var Ie=we.stateNode;E?et(Ie,!0):et(we.stateNode,!1)}catch(ut){ur(we,we.return,ut)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===s)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;d===a&&(d=null),a=a.return}d===a&&(d=null),a.sibling.return=a.return,a=a.sibling}p&4&&(p=s.updateQueue,p!==null&&(d=p.retryQueue,d!==null&&(p.retryQueue=null,au(s,d))));break;case 19:Qs(a,s),Js(s),p&4&&(p=s.updateQueue,p!==null&&(s.updateQueue=null,au(s,p)));break;case 30:break;case 21:break;default:Qs(a,s),Js(s)}}function Js(s){var a=s.flags;if(a&2){try{for(var d,p=s.return;p!==null;){if(jm(p)){d=p;break}p=p.return}if(d==null)throw Error(n(160));switch(d.tag){case 27:var E=d.stateNode,T=Xd(s);iu(s,T,E);break;case 5:var V=d.stateNode;d.flags&32&&(oo(V,""),d.flags&=-33);var ce=Xd(s);iu(s,ce,V);break;case 3:case 4:var we=d.stateNode.containerInfo,Oe=Xd(s);Il(s,Oe,we);break;default:throw Error(n(161))}}catch(Ve){ur(s,s.return,Ve)}s.flags&=-3}a&4096&&(s.flags&=-4097)}function Lm(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var a=s;Lm(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),s=s.sibling}}function ea(s,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Rm(s,a.alternate,a),a=a.sibling}function Si(s){for(s=s.child;s!==null;){var a=s;switch(a.tag){case 0:case 11:case 14:case 15:Fa(4,a,a.return),Si(a);break;case 1:qs(a,a.return);var d=a.stateNode;typeof d.componentWillUnmount=="function"&&Gd(a,a.return,d),Si(a);break;case 27:Wt(a.stateNode);case 26:case 5:qs(a,a.return),Si(a);break;case 22:a.memoizedState===null&&Si(a);break;case 30:Si(a);break;default:Si(a)}s=s.sibling}}function ri(s,a,d){for(d=d&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var p=a.alternate,E=s,T=a,V=T.flags;switch(T.tag){case 0:case 11:case 15:ri(E,T,d),nu(4,T);break;case 1:if(ri(E,T,d),p=T,E=p.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(Oe){ur(p,p.return,Oe)}if(p=T,E=p.updateQueue,E!==null){var ce=p.stateNode;try{var we=E.shared.hiddenCallbacks;if(we!==null)for(E.shared.hiddenCallbacks=null,E=0;E<we.length;E++)Hi(we[E],ce)}catch(Oe){ur(p,p.return,Oe)}}d&&V&64&&Uf(T),Ll(T,T.return);break;case 27:Mm(T);case 26:case 5:ri(E,T,d),d&&p===null&&V&4&&$f(T),Ll(T,T.return);break;case 12:ri(E,T,d);break;case 31:ri(E,T,d),d&&V&4&&_m(E,T);break;case 13:ri(E,T,d),d&&V&4&&Dm(E,T);break;case 22:T.memoizedState===null&&ri(E,T,d),Ll(T,T.return);break;case 30:break;default:ri(E,T,d)}a=a.sibling}}function Qd(s,a){var d=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==d&&(s!=null&&s.refCount++,d!=null&&ko(d))}function Hf(s,a){s=null,a.alternate!==null&&(s=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==s&&(a.refCount++,s!=null&&ko(s))}function Ks(s,a,d,p){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Jd(s,a,d,p),a=a.sibling}function Jd(s,a,d,p){var E=a.flags;switch(a.tag){case 0:case 11:case 15:Ks(s,a,d,p),E&2048&&nu(9,a);break;case 1:Ks(s,a,d,p);break;case 3:Ks(s,a,d,p),E&2048&&(s=null,a.alternate!==null&&(s=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==s&&(a.refCount++,s!=null&&ko(s)));break;case 12:if(E&2048){Ks(s,a,d,p),s=a.stateNode;try{var T=a.memoizedProps,V=T.id,ce=T.onPostCommit;typeof ce=="function"&&ce(V,a.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(we){ur(a,a.return,we)}}else Ks(s,a,d,p);break;case 31:Ks(s,a,d,p);break;case 13:Ks(s,a,d,p);break;case 23:break;case 22:T=a.stateNode,V=a.alternate,a.memoizedState!==null?T._visibility&2?Ks(s,a,d,p):lu(s,a):T._visibility&2?Ks(s,a,d,p):(T._visibility|=2,Pl(s,a,d,p,(a.subtreeFlags&10256)!==0||!1)),E&2048&&Qd(V,a);break;case 24:Ks(s,a,d,p),E&2048&&Hf(a.alternate,a);break;default:Ks(s,a,d,p)}}function Pl(s,a,d,p,E){for(E=E&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var T=s,V=a,ce=d,we=p,Oe=V.flags;switch(V.tag){case 0:case 11:case 15:Pl(T,V,ce,we,E),nu(8,V);break;case 23:break;case 22:var Ve=V.stateNode;V.memoizedState!==null?Ve._visibility&2?Pl(T,V,ce,we,E):lu(T,V):(Ve._visibility|=2,Pl(T,V,ce,we,E)),E&&Oe&2048&&Qd(V.alternate,V);break;case 24:Pl(T,V,ce,we,E),E&&Oe&2048&&Hf(V.alternate,V);break;default:Pl(T,V,ce,we,E)}a=a.sibling}}function lu(s,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var d=s,p=a,E=p.flags;switch(p.tag){case 22:lu(d,p),E&2048&&Qd(p.alternate,p);break;case 24:lu(d,p),E&2048&&Hf(p.alternate,p);break;default:lu(d,p)}a=a.sibling}}var Fl=8192;function $o(s,a,d){if(s.subtreeFlags&Fl)for(s=s.child;s!==null;)Im(s,a,d),s=s.sibling}function Im(s,a,d){switch(s.tag){case 26:$o(s,a,d),s.flags&Fl&&s.memoizedState!==null&&Wk(d,Ln,s.memoizedState,s.memoizedProps);break;case 5:$o(s,a,d);break;case 3:case 4:var p=Ln;Ln=Rr(s.stateNode.containerInfo),$o(s,a,d),Ln=p;break;case 22:s.memoizedState===null&&(p=s.alternate,p!==null&&p.memoizedState!==null?(p=Fl,Fl=16777216,$o(s,a,d),Fl=p):$o(s,a,d));break;default:$o(s,a,d)}}function Kd(s){var a=s.alternate;if(a!==null&&(s=a.child,s!==null)){a.child=null;do a=s.sibling,s.sibling=null,s=a;while(s!==null)}}function ou(s){var a=s.deletions;if((s.flags&16)!==0){if(a!==null)for(var d=0;d<a.length;d++){var p=a[d];ws=p,cu(p,s)}Kd(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Pm(s),s=s.sibling}function Pm(s){switch(s.tag){case 0:case 11:case 15:ou(s),s.flags&2048&&Fa(9,s,s.return);break;case 3:ou(s);break;case 12:ou(s);break;case 22:var a=s.stateNode;s.memoizedState!==null&&a._visibility&2&&(s.return===null||s.return.tag!==13)?(a._visibility&=-3,Zd(s)):ou(s);break;default:ou(s)}}function Zd(s){var a=s.deletions;if((s.flags&16)!==0){if(a!==null)for(var d=0;d<a.length;d++){var p=a[d];ws=p,cu(p,s)}Kd(s)}for(s=s.child;s!==null;){switch(a=s,a.tag){case 0:case 11:case 15:Fa(8,a,a.return),Zd(a);break;case 22:d=a.stateNode,d._visibility&2&&(d._visibility&=-3,Zd(a));break;default:Zd(a)}s=s.sibling}}function cu(s,a){for(;ws!==null;){var d=ws;switch(d.tag){case 0:case 11:case 15:Fa(8,d,a);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var p=d.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:ko(d.memoizedState.cache)}if(p=d.child,p!==null)p.return=d,ws=p;else e:for(d=s;ws!==null;){p=ws;var E=p.sibling,T=p.return;if(Om(p),p===d){ws=null;break e}if(E!==null){E.return=T,ws=E;break e}ws=T}}}var eh={getCacheForType:function(s){var a=Ms(ls),d=a.data.get(s);return d===void 0&&(d=s(),a.data.set(s,d)),d},cacheSignal:function(){return Ms(ls).controller.signal}},Fm=typeof WeakMap=="function"?WeakMap:Map,sr=0,Sr=null,zt=null,Pt=0,lr=0,Os=null,za=!1,ta=!1,Vo=!1,ra=0,Zr=0,Zs=0,Ua=0,Ho=0,en=0,mn=0,sa=null,Ss=null,Yf=!1,$a=0,zm=0,uu=1/0,zl=null,Va=null,os=0,Ha=null,Yo=null,na=0,Gf=0,Xf=null,Um=null,Ul=0,qf=null;function tn(){return(sr&2)!==0&&Pt!==0?Pt&-Pt:X.T!==null?ip():l0()}function $m(){if(en===0)if((Pt&536870912)===0||Yt){var s=ya;ya<<=1,(ya&3932160)===0&&(ya=262144),en=s}else en=536870912;return s=Rs.current,s!==null&&(s.flags|=32),en}function rn(s,a,d){(s===Sr&&(lr===2||lr===9)||s.cancelPendingCommit!==null)&&(qo(s,0),Ya(s,Pt,en,!1)),Wr(s,d),((sr&2)===0||s!==Sr)&&(s===Sr&&((sr&2)===0&&(Ua|=d),Zr===4&&Ya(s,Pt,en,!1)),si(s))}function Vm(s,a,d){if((sr&6)!==0)throw Error(n(327));var p=!d&&(a&127)===0&&(a&s.expiredLanes)===0||on(s,a),E=p?uv(s,a):Jf(s,a,!0),T=p;
vendor: 21,094 bytes, line 8
8do{if(E===0){ta&&!p&&Ya(s,a,0,!1);break}else{if(d=s.current.alternate,T&&!Hm(d)){E=Jf(s,a,!1),T=!1;continue}if(E===2){if(T=a,s.errorRecoveryDisabledLanes&T)var V=0;else V=s.pendingLanes&-536870913,V=V!==0?V:V&536870912?536870912:0;if(V!==0){a=V;e:{var ce=s;E=sa;var we=ce.current.memoizedState.isDehydrated;if(we&&(qo(ce,V).flags|=256),V=Jf(ce,V,!1),V!==2){if(Vo&&!we){ce.errorRecoveryDisabledLanes|=T,Ua|=T,E=4;break e}T=Ss,Ss=E,T!==null&&(Ss===null?Ss=T:Ss.push.apply(Ss,T))}E=V}if(T=!1,E!==2)continue}}if(E===1){qo(s,0),Ya(s,a,0,!0);break}e:{switch(p=s,T=E,T){case 0:case 1:throw Error(n(345));case 4:if((a&4194048)!==a)break;case 6:Ya(p,a,en,!za);break e;case 2:Ss=null;break;case 3:case 5:break;default:throw Error(n(329))}if((a&62914560)===a&&(E=$a+300-Ne(),10<E)){if(Ya(p,a,en,!za),Wn(p,0,!0)!==0)break e;na=a,p.timeoutHandle=be(du.bind(null,p,d,Ss,zl,Yf,a,en,Ua,mn,za,T,"Throttled",-0,0),E);break e}du(p,d,Ss,zl,Yf,a,en,Ua,mn,za,T,null,-0,0)}}break}while(!0);si(s)}function du(s,a,d,p,E,T,V,ce,we,Oe,Ve,Xe,Be,Ie){if(s.timeoutHandle=-1,Xe=a.subtreeFlags,Xe&8192||(Xe&16785408)===16785408){Xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kn},Im(a,T,Xe);var ut=(T&62914560)===T?$a-Ne():(T&4194048)===T?zm-Ne():0;if(ut=Qk(Xe,ut),ut!==null){na=T,s.cancelPendingCommit=ut(sh.bind(null,s,a,T,d,p,E,V,ce,we,Ve,Xe,null,Be,Ie)),Ya(s,T,V,!Oe);return}}sh(s,a,T,d,p,E,V,ce,we)}function Hm(s){for(var a=s;;){var d=a.tag;if((d===0||d===11||d===15)&&a.flags&16384&&(d=a.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var p=0;p<d.length;p++){var E=d[p],T=E.getSnapshot;E=E.value;try{if(!fs(T(),E))return!1}catch{return!1}}if(d=a.child,a.subtreeFlags&16384&&d!==null)d.return=a,a=d;else{if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ya(s,a,d,p){a&=~Ho,a&=~Ua,s.suspendedLanes|=a,s.pingedLanes&=~a,p&&(s.warmLanes|=a),p=s.expirationTimes;for(var E=a;0<E;){var T=31-Er(E),V=1<<T;p[T]=-1,E&=~V}d!==0&&ar(s,d,a)}function Go(){return(sr&6)===0?(fu(0),!1):!0}function Xo(){if(zt!==null){if(lr===0)var s=zt.return;else s=zt,zi=yi=null,wf(s),jo=null,bi=0,s=zt;for(;s!==null;)Nm(s.alternate,s),s=s.return;zt=null}}function qo(s,a){var d=s.timeoutHandle;d!==-1&&(s.timeoutHandle=-1,Ae(d)),d=s.cancelPendingCommit,d!==null&&(s.cancelPendingCommit=null,d()),na=0,Xo(),Sr=s,zt=d=Ii(s.current,null),Pt=a,lr=0,Os=null,za=!1,ta=on(s,a),Vo=!1,mn=en=Ho=Ua=Zs=Zr=0,Ss=sa=null,Yf=!1,(a&8)!==0&&(a|=a&32);var p=s.entangledLanes;if(p!==0)for(s=s.entanglements,p&=a;0<p;){var E=31-Er(p),T=1<<E;a|=s[E],p&=~T}return ra=a,wo(),d}function Wf(s,a){_t=null,X.H=_l,a===El||a===yd?(a=Z0(),lr=3):a===No?(a=Z0(),lr=4):lr=a===Hd?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Os=a,zt===null&&(Zr=1,La(s,Nn(a,s.current)))}function Ym(){var s=Rs.current;return s===null?!0:(Pt&4194048)===Pt?ps===null:(Pt&62914560)===Pt||(Pt&536870912)!==0?s===ps:!1}function Qf(){var s=X.H;return X.H=_l,s===null?_l:s}function Gm(){var s=X.A;return X.A=eh,s}function th(){Zr=4,za||(Pt&4194048)!==Pt&&Rs.current!==null||(ta=!0),(Zs&134217727)===0&&(Ua&134217727)===0||Sr===null||Ya(Sr,Pt,en,!1)}function Jf(s,a,d){var p=sr;sr|=2;var E=Qf(),T=Gm();(Sr!==s||Pt!==a)&&(zl=null,qo(s,a)),a=!1;var V=Zr;e:do try{if(lr!==0&&zt!==null){var ce=zt,we=Os;switch(lr){case 8:Xo(),V=6;break e;case 3:case 2:case 9:case 6:Rs.current===null&&(a=!0);var Oe=lr;if(lr=0,Os=null,Wo(s,ce,we,Oe),d&&ta){V=0;break e}break;default:Oe=lr,lr=0,Os=null,Wo(s,ce,we,Oe)}}cv(),V=Zr;break}catch(Ve){Wf(s,Ve)}while(!0);return a&&s.shellSuspendCounter++,zi=yi=null,sr=p,X.H=E,X.A=T,zt===null&&(Sr=null,Pt=0,wo()),V}function cv(){for(;zt!==null;)qm(zt)}function uv(s,a){var d=sr;sr|=2;var p=Qf(),E=Gm();Sr!==s||Pt!==a?(zl=null,uu=Ne()+500,qo(s,a)):ta=on(s,a);e:do try{if(lr!==0&&zt!==null){a=zt;var T=Os;t:switch(lr){case 1:lr=0,Os=null,Wo(s,a,T,1);break;case 2:case 9:if(bd(T)){lr=0,Os=null,Kf(a);break}a=function(){lr!==2&&lr!==9||Sr!==s||(lr=7),si(s)},T.then(a,a);break e;case 3:lr=7;break e;case 4:lr=5;break e;case 7:bd(T)?(lr=0,Os=null,Kf(a)):(lr=0,Os=null,Wo(s,a,T,7));break;case 5:var V=null;switch(zt.tag){case 26:V=zt.memoizedState;case 5:case 27:var ce=zt;if(V?tw(V):ce.stateNode.complete){lr=0,Os=null;var we=ce.sibling;if(we!==null)zt=we;else{var Oe=ce.return;Oe!==null?(zt=Oe,rh(Oe)):zt=null}break t}}lr=0,Os=null,Wo(s,a,T,5);break;case 6:lr=0,Os=null,Wo(s,a,T,6);break;case 8:Xo(),Zr=6;break e;default:throw Error(n(462))}}Xm();break}catch(Ve){Wf(s,Ve)}while(!0);return zi=yi=null,X.H=p,X.A=E,sr=d,zt!==null?0:(Sr=null,Pt=0,wo(),Zr)}function Xm(){for(;zt!==null&&!Se();)qm(zt)}function qm(s){var a=eu(s.alternate,s,ra);s.memoizedProps=s.pendingProps,a===null?rh(s):zt=a}function Kf(s){var a=s,d=a.alternate;switch(a.tag){case 15:case 0:a=Dl(d,a,a.pendingProps,a.type,void 0,Pt);break;case 11:a=Dl(d,a,a.pendingProps,a.type.render,a.ref,Pt);break;case 5:wf(a);default:Nm(d,a),a=zt=Jn(a,ra),a=eu(d,a,ra)}s.memoizedProps=s.pendingProps,a===null?rh(s):zt=a}function Wo(s,a,d,p){zi=yi=null,wf(a),jo=null,bi=0;var E=a.return;try{if(Lf(s,E,a,d,Pt)){Zr=1,La(s,Nn(d,s.current)),zt=null;return}}catch(T){if(E!==null)throw zt=E,T;Zr=1,La(s,Nn(d,s.current)),zt=null;return}a.flags&32768?(Yt||p===1?s=!0:ta||(Pt&536870912)!==0?s=!1:(za=s=!0,(p===2||p===9||p===3||p===6)&&(p=Rs.current,p!==null&&p.tag===13&&(p.flags|=16384))),Zf(a,s)):rh(a)}function rh(s){var a=s;do{if((a.flags&32768)!==0){Zf(a,za);return}s=a.return;var d=Tm(a.alternate,a,ra);if(d!==null){zt=d;return}if(a=a.sibling,a!==null){zt=a;return}zt=a=s}while(a!==null);Zr===0&&(Zr=5)}function Zf(s,a){do{var d=su(s.alternate,s);if(d!==null){d.flags&=32767,zt=d;return}if(d=s.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!a&&(s=s.sibling,s!==null)){zt=s;return}zt=s=d}while(s!==null);Zr=6,zt=null}function sh(s,a,d,p,E,T,V,ce,we){s.cancelPendingCommit=null;do ih();while(os!==0);if((sr&6)!==0)throw Error(n(327));if(a!==null){if(a===s.current)throw Error(n(177));if(T=a.lanes|a.childLanes,T|=bo,ds(s,d,T,V,ce,we),s===Sr&&(zt=Sr=null,Pt=0),Yo=a,Ha=s,na=d,Gf=T,Xf=E,Um=p,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,fv(ot,function(){return ep(),null})):(s.callbackNode=null,s.callbackPriority=0),p=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||p){p=X.T,X.T=null,E=oe.p,oe.p=2,V=sr,sr|=4;try{lv(s,a,d)}finally{sr=V,oe.p=E,X.T=p}}os=1,Wm(),nh(),Qm()}}function Wm(){if(os===1){os=0;var s=Ha,a=Yo,d=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||d){d=X.T,X.T=null;var p=oe.p;oe.p=2;var E=sr;sr|=4;try{Wd(a,s);var T=q,V=dd(s.containerInfo),ce=T.focusedElem,we=T.selectionRange;if(V!==ce&&ce&&ce.ownerDocument&&z0(ce.ownerDocument.documentElement,ce)){if(we!==null&&Oc(ce)){var Oe=we.start,Ve=we.end;if(Ve===void 0&&(Ve=Oe),"selectionStart"in ce)ce.selectionStart=Oe,ce.selectionEnd=Math.min(Ve,ce.value.length);else{var Xe=ce.ownerDocument||document,Be=Xe&&Xe.defaultView||window;if(Be.getSelection){var Ie=Be.getSelection(),ut=ce.textContent.length,Et=Math.min(we.start,ut),Or=we.end===void 0?Et:Math.min(we.end,ut);!Ie.extend&&Et>Or&&(V=Or,Or=Et,Et=V);var je=go(ce,Et),ke=go(ce,Or);if(je&&ke&&(Ie.rangeCount!==1||Ie.anchorNode!==je.node||Ie.anchorOffset!==je.offset||Ie.focusNode!==ke.node||Ie.focusOffset!==ke.offset)){var Re=Xe.createRange();Re.setStart(je.node,je.offset),Ie.removeAllRanges(),Et>Or?(Ie.addRange(Re),Ie.extend(ke.node,ke.offset)):(Re.setEnd(ke.node,ke.offset),Ie.addRange(Re))}}}}for(Xe=[],Ie=ce;Ie=Ie.parentNode;)Ie.nodeType===1&&Xe.push({element:Ie,left:Ie.scrollLeft,top:Ie.scrollTop});for(typeof ce.focus=="function"&&ce.focus(),ce=0;ce<Xe.length;ce++){var Ge=Xe[ce];Ge.element.scrollLeft=Ge.left,Ge.element.scrollTop=Ge.top}}hx=!!U,q=U=null}finally{sr=E,oe.p=p,X.T=d}}s.current=a,os=2}}function nh(){if(os===2){os=0;var s=Ha,a=Yo,d=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||d){d=X.T,X.T=null;var p=oe.p;oe.p=2;var E=sr;sr|=4;try{Rm(s,a.alternate,a)}finally{sr=E,oe.p=p,X.T=d}}os=3}}function Qm(){if(os===4||os===3){os=0,he();var s=Ha,a=Yo,d=na,p=Um;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?os=5:(os=0,Yo=Ha=null,Jm(s,s.pendingLanes));var E=s.pendingLanes;if(E===0&&(Va=null),Oi(d),a=a.stateNode,xr&&typeof xr.onCommitFiberRoot=="function")try{xr.onCommitFiberRoot(qr,a,void 0,(a.current.flags&128)===128)}catch{}if(p!==null){a=X.T,E=oe.p,oe.p=2,X.T=null;try{for(var T=s.onRecoverableError,V=0;V<p.length;V++){var ce=p[V];T(ce.value,{componentStack:ce.stack})}}finally{X.T=a,oe.p=E}}(na&3)!==0&&ih(),si(s),E=s.pendingLanes,(d&261930)!==0&&(E&42)!==0?s===qf?Ul++:(Ul=0,qf=s):Ul=0,fu(0)}}function Jm(s,a){(s.pooledCacheLanes&=a)===0&&(a=s.pooledCache,a!=null&&(s.pooledCache=null,ko(a)))}function ih(){return Wm(),nh(),Qm(),ep()}function ep(){if(os!==5)return!1;var s=Ha,a=Gf;Gf=0;var d=Oi(na),p=X.T,E=oe.p;try{oe.p=32>d?32:d,X.T=null,d=Xf,Xf=null;var T=Ha,V=na;if(os=0,Yo=Ha=null,na=0,(sr&6)!==0)throw Error(n(331));var ce=sr;if(sr|=4,Pm(T.current),Jd(T,T.current,V,d),sr=ce,fu(0,!1),xr&&typeof xr.onPostCommitFiberRoot=="function")try{xr.onPostCommitFiberRoot(qr,T)}catch{}return!0}finally{oe.p=E,X.T=p,Jm(s,a)}}function Km(s,a,d){a=Nn(d,a),a=Df(s.stateNode,a,2),s=Ra(s,a,2),s!==null&&(Wr(s,2),si(s))}function ur(s,a,d){if(s.tag===3)Km(s,s,d);else for(;a!==null;){if(a.tag===3){Km(a,s,d);break}else if(a.tag===1){var p=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Va===null||!Va.has(p))){s=Nn(d,s),d=$d(2),p=Ra(a,d,2),p!==null&&(Vd(d,p,a,s),Wr(p,2),si(p));break}}a=a.return}}function ah(s,a,d){var p=s.pingCache;if(p===null){p=s.pingCache=new Fm;var E=new Set;p.set(a,E)}else E=p.get(a),E===void 0&&(E=new Set,p.set(a,E));E.has(d)||(Vo=!0,E.add(d),s=dv.bind(null,s,a,d),a.then(s,s))}function dv(s,a,d){var p=s.pingCache;p!==null&&p.delete(a),s.pingedLanes|=s.suspendedLanes&d,s.warmLanes&=~d,Sr===s&&(Pt&d)===d&&(Zr===4||Zr===3&&(Pt&62914560)===Pt&&300>Ne()-$a?(sr&2)===0&&qo(s,0):Ho|=d,mn===Pt&&(mn=0)),si(s)}function Zm(s,a){a===0&&(a=Tr()),s=Li(s,a),s!==null&&(Wr(s,a),si(s))}function hv(s){var a=s.memoizedState,d=0;a!==null&&(d=a.retryLane),Zm(s,d)}function ex(s,a){var d=0;switch(s.tag){case 31:case 13:var p=s.stateNode,E=s.memoizedState;E!==null&&(d=E.retryLane);break;case 19:p=s.stateNode;break;case 22:p=s.stateNode._retryCache;break;default:throw Error(n(314))}p!==null&&p.delete(a),Zm(s,d)}function fv(s,a){return dt(s,a)}var lh=null,Qo=null,tp=!1,hu=!1,oh=!1,Ga=0;function si(s){s!==Qo&&s.next===null&&(Qo===null?lh=Qo=s:Qo=Qo.next=s),hu=!0,tp||(tp=!0,np())}function fu(s,a){if(!oh&&hu){oh=!0;do for(var d=!1,p=lh;p!==null;){if(s!==0){var E=p.pendingLanes;if(E===0)var T=0;else{var V=p.suspendedLanes,ce=p.pingedLanes;T=(1<<31-Er(42|s)+1)-1,T&=E&~(V&~ce),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(d=!0,sx(p,T))}else T=Pt,T=Wn(p,p===Sr?T:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(T&3)===0||on(p,T)||(d=!0,sx(p,T));p=p.next}while(d);oh=!1}}function tx(){rp()}function rp(){hu=tp=!1;var s=0;Ga!==0&&ve()&&(s=Ga);for(var a=Ne(),d=null,p=lh;p!==null;){var E=p.next,T=rx(p,a);T===0?(p.next=null,d===null?lh=E:d.next=E,E===null&&(Qo=d)):(d=p,(s!==0||(T&3)!==0)&&(hu=!0)),p=E}os!==0&&os!==5||fu(s),Ga!==0&&(Ga=0)}function rx(s,a){for(var d=s.suspendedLanes,p=s.pingedLanes,E=s.expirationTimes,T=s.pendingLanes&-62914561;0<T;){var V=31-Er(T),ce=1<<V,we=E[V];we===-1?((ce&d)===0||(ce&p)!==0)&&(E[V]=Bt(ce,a)):we<=a&&(s.expiredLanes|=ce),T&=~ce}if(a=Sr,d=Pt,d=Wn(s,s===a?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),p=s.callbackNode,d===0||s===a&&(lr===2||lr===9)||s.cancelPendingCommit!==null)return p!==null&&p!==null&&xe(p),s.callbackNode=null,s.callbackPriority=0;if((d&3)===0||on(s,d)){if(a=d&-d,a===s.callbackPriority)return a;switch(p!==null&&xe(p),Oi(d)){case 2:case 8:d=Me;break;case 32:d=ot;break;case 268435456:d=vr;break;default:d=ot}return p=sp.bind(null,s),d=dt(d,p),s.callbackPriority=a,s.callbackNode=d,a}return p!==null&&p!==null&&xe(p),s.callbackPriority=2,s.callbackNode=null,2}function sp(s,a){if(os!==0&&os!==5)return s.callbackNode=null,s.callbackPriority=0,null;var d=s.callbackNode;if(ih()&&s.callbackNode!==d)return null;var p=Pt;return p=Wn(s,s===Sr?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),p===0?null:(Vm(s,p,a),rx(s,Ne()),s.callbackNode!=null&&s.callbackNode===d?sp.bind(null,s):null)}function sx(s,a){if(ih())return null;Vm(s,a,!0)}function np(){Ce(function(){(sr&6)!==0?dt(Ue,tx):rp()})}function ip(){if(Ga===0){var s=Vi;s===0&&(s=Ts,Ts<<=1,(Ts&261888)===0&&(Ts=256)),Ga=s}return Ga}function ap(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Ac(""+s)}function lp(s,a){var d=a.ownerDocument.createElement("input");return d.name=a.name,d.value=a.value,s.id&&d.setAttribute("form",s.id),a.parentNode.insertBefore(d,a),s=new FormData(s),d.parentNode.removeChild(d),s}function pv(s,a,d,p,E){if(a==="submit"&&d&&d.stateNode===E){var T=ap((E[Vs]||null).action),V=p.submitter;V&&(a=(a=V[Vs]||null)?ap(a.formAction):V.getAttribute("formAction"),a!==null&&(T=a,V=null));var ce=new ol("action","action",null,p,E);s.push({event:ce,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Ga!==0){var we=V?lp(E,V):new FormData(E);Id(d,{pending:!0,data:we,method:E.method,action:T},null,we)}}else typeof T=="function"&&(ce.preventDefault(),we=V?lp(E,V):new FormData(E),Id(d,{pending:!0,data:we,method:E.method,action:T},T,we))},currentTarget:E}]})}}for(var op=0;op<ef.length;op++){var pu=ef[op],mv=pu.toLowerCase(),xv=pu[0].toUpperCase()+pu.slice(1);Qn(mv,"on"+xv)}Qn($0,"onAnimationEnd"),Qn(Bc,"onAnimationIteration"),Qn(V0,"onAnimationStart"),Qn("dblclick","onDoubleClick"),Qn("focusin","onFocus"),Qn("focusout","onBlur"),Qn(Ky,"onTransitionRun"),Qn(H0,"onTransitionStart"),Qn(Zy,"onTransitionCancel"),Qn(gl,"onTransitionEnd"),ba("onMouseEnter",["mouseout","mouseover"]),ba("onMouseLeave",["mouseout","mouseover"]),ba("onPointerEnter",["pointerout","pointerover"]),ba("onPointerLeave",["pointerout","pointerover"]),al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),al("onBeforeInput",["compositionend","keypress","textInput","paste"]),al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mu="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(" "),gv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mu));function nx(s,a){a=(a&4)!==0;for(var d=0;d<s.length;d++){var p=s[d],E=p.event;p=p.listeners;e:{var T=void 0;if(a)for(var V=p.length-1;0<=V;V--){var ce=p[V],we=ce.instance,Oe=ce.currentTarget;if(ce=ce.listener,we!==T&&E.isPropagationStopped())break e;T=ce,E.currentTarget=Oe;try{T(E)}catch(Ve){hd(Ve)}E.currentTarget=null,T=we}else for(V=0;V<p.length;V++){if(ce=p[V],we=ce.instance,Oe=ce.currentTarget,ce=ce.listener,we!==T&&E.isPropagationStopped())break e;T=ce,E.currentTarget=Oe;try{T(E)}catch(Ve){hd(Ve)}E.currentTarget=null,T=we}}}}function $t(s,a){var d=a[Nr];d===void 0&&(d=a[Nr]=new Set);var p=s+"__bubble";d.has(p)||(ix(a,s,2,!1),d.add(p))}function Jo(s,a,d){var p=0;a&&(p|=4),ix(d,s,p,a)}var ch="_reactListening"+Math.random().toString(36).slice(2);function cp(s){if(!s[ch]){s[ch]=!0,Ih.forEach(function(d){d!=="selectionchange"&&(gv.has(d)||Jo(d,!1,s),Jo(d,!0,s))});var a=s.nodeType===9?s:s.ownerDocument;a===null||a[ch]||(a[ch]=!0,Jo("selectionchange",!1,a))}}function ix(s,a,d,p){switch(ow(a)){case 2:var E=Zk;break;case 8:E=eT;break;default:E=Sv}d=E.bind(null,a,d,s),E=void 0,!$h||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(E=!0),p?E!==void 0?s.addEventListener(a,d,{capture:!0,passive:E}):s.addEventListener(a,d,!0):E!==void 0?s.addEventListener(a,d,{passive:E}):s.addEventListener(a,d,!1)}function up(s,a,d,p,E){var T=p;if((a&1)===0&&(a&2)===0&&p!==null)e:for(;;){if(p===null)return;var V=p.tag;if(V===3||V===4){var ce=p.stateNode.containerInfo;if(ce===E)break;if(V===4)for(V=p.return;V!==null;){var we=V.tag;if((we===3||we===4)&&V.stateNode.containerInfo===E)return;V=V.return}for(;ce!==null;){if(V=so(ce),V===null)return;if(we=V.tag,we===5||we===6||we===26||we===27){p=T=V;continue e}ce=ce.parentNode}}p=p.return}Zu(function(){var Oe=T,Ve=Gs(d),Xe=[];e:{var Be=Ca.get(s);if(Be!==void 0){var Ie=ol,ut=s;switch(s){case"keypress":if(td(d)===0)break e;case"keydown":case"keyup":Ie=C0;break;case"focusin":ut="focus",Ie=sd;break;case"focusout":ut="blur",Ie=sd;break;case"beforeblur":case"afterblur":Ie=sd;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ie=Hh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ie=zy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ie=T0;break;case $0:case Bc:case V0:Ie=po;break;case gl:Ie=N0;break;case"scroll":case"scrollend":Ie=pi;break;case"wheel":Ie=kc;break;case"copy":case"cut":case"paste":Ie=nd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ie=k0;break;case"toggle":case"beforetoggle":Ie=M0}var Et=(a&4)!==0,Or=!Et&&(s==="scroll"||s==="scrollend"),je=Et?Be!==null?Be+"Capture":null:Be;Et=[];for(var ke=Oe,Re;ke!==null;){var Ge=ke;if(Re=Ge.stateNode,Ge=Ge.tag,Ge!==5&&Ge!==26&&Ge!==27||Re===null||je===null||(Ge=wa(ke,je),Ge!=null&&Et.push(xu(ke,Ge,Re))),Or)break;ke=ke.return}0<Et.length&&(Be=new Ie(Be,ut,null,d,Ve),Xe.push({event:Be,listeners:Et}))}}if((a&7)===0){e:{if(Be=s==="mouseover"||s==="pointerover",Ie=s==="mouseout"||s==="pointerout",Be&&d!==Ku&&(ut=d.relatedTarget||d.fromElement)&&(so(ut)||ut[va]))break e;if((Ie||Be)&&(Be=Ve.window===Ve?Ve:(Be=Ve.ownerDocument)?Be.defaultView||Be.parentWindow:window,Ie?(ut=d.relatedTarget||d.toElement,Ie=Oe,ut=ut?so(ut):null,ut!==null&&(Or=c(ut),Et=ut.tag,ut!==Or||Et!==5&&Et!==27&&Et!==6)&&(ut=null)):(Ie=null,ut=Oe),Ie!==ut)){if(Et=Hh,Ge="onMouseLeave",je="onMouseEnter",ke="mouse",(s==="pointerout"||s==="pointerover")&&(Et=k0,Ge="onPointerLeave",je="onPointerEnter",ke="pointer"),Or=Ie==null?Be:Sc(Ie),Re=ut==null?Be:Sc(ut),Be=new Et(Ge,ke+"leave",Ie,d,Ve),Be.target=Or,Be.relatedTarget=Re,Ge=null,so(Ve)===Oe&&(Et=new Et(je,ke+"enter",ut,d,Ve),Et.target=Re,Et.relatedTarget=Or,Ge=Et),Or=Ge,Ie&&ut)t:{for(Et=i,je=Ie,ke=ut,Re=0,Ge=je;Ge;Ge=Et(Ge))Re++;Ge=0;for(var vt=ke;vt;vt=Et(vt))Ge++;for(;0<Re-Ge;)je=Et(je),Re--;for(;0<Ge-Re;)ke=Et(ke),Ge--;for(;Re--;){if(je===ke||ke!==null&&je===ke.alternate){Et=je;break t}je=Et(je),ke=Et(ke)}Et=null}else Et=null;Ie!==null&&u(Xe,Be,Ie,Et,!1),ut!==null&&Or!==null&&u(Xe,Or,ut,Et,!0)}}e:{if(Be=Oe?Sc(Oe):window,Ie=Be.nodeName&&Be.nodeName.toLowerCase(),Ie==="select"||Ie==="input"&&Be.type==="file")var fr=I0;else if(_0(Be))if(P0)fr=pl;else{fr=F0;var ft=Wy}else Ie=Be.nodeName,!Ie||Ie.toLowerCase()!=="input"||Be.type!=="checkbox"&&Be.type!=="radio"?Oe&&zh(Oe.elementType)&&(fr=I0):fr=ud;if(fr&&(fr=fr(s,Oe))){D0(Xe,fr,d,Ve);break e}ft&&ft(s,Be,Oe),s==="focusout"&&Oe&&Be.type==="number"&&Oe.memoizedProps.value!=null&&Qu(Be,"number",Be.value)}switch(ft=Oe?Sc(Oe):window,s){case"focusin":(_0(ft)||ft.contentEditable==="true")&&(yo=ft,Qh=Oe,Ea=null);break;case"focusout":Ea=Qh=yo=null;break;case"mousedown":Jh=!0;break;case"contextmenu":case"mouseup":case"dragend":Jh=!1,U0(Xe,d,Ve);break;case"selectionchange":if(Jy)break;case"keydown":case"keyup":U0(Xe,d,Ve)}var Ft;if(ld)e:{switch(s){case"compositionstart":var Qt="onCompositionStart";break e;case"compositionend":Qt="onCompositionEnd";break e;case"compositionupdate":Qt="onCompositionUpdate";break e}Qt=void 0}else mo?O0(s,d)&&(Qt="onCompositionEnd"):s==="keydown"&&d.keyCode===229&&(Qt="onCompositionStart");Qt&&(Xh&&d.locale!=="ko"&&(mo||Qt!=="onCompositionStart"?Qt==="onCompositionEnd"&&mo&&(Ft=Ec()):(Di=Ve,Sa="value"in Di?Di.value:Di.textContent,mo=!0)),ft=k(Oe,Qt),0<ft.length&&(Qt=new A0(Qt,s,null,d,Ve),Xe.push({event:Qt,listeners:ft}),Ft?Qt.data=Ft:(Ft=B0(d),Ft!==null&&(Qt.data=Ft)))),(Ft=Gy?Xy(s,d):qh(s,d))&&(Qt=k(Oe,"onBeforeInput"),0<Qt.length&&(ft=new A0("onBeforeInput","beforeinput",null,d,Ve),Xe.push({event:ft,listeners:Qt}),ft.data=Ft)),pv(Xe,s,Oe,d,Ve)}nx(Xe,a)})}function xu(s,a,d){return{instance:s,listener:a,currentTarget:d}}function k(s,a){for(var d=a+"Capture",p=[];s!==null;){var E=s,T=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||T===null||(E=wa(s,d),E!=null&&p.unshift(xu(s,E,T)),E=wa(s,a),E!=null&&p.push(xu(s,E,T))),s.tag===3)return p;s=s.return}return[]}
vendor: 16,410 bytes, lines 8-9
8function i(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function u(s,a,d,p,E){for(var T=a._reactName,V=[];d!==null&&d!==p;){var ce=d,we=ce.alternate,Oe=ce.stateNode;if(ce=ce.tag,we!==null&&we===p)break;ce!==5&&ce!==26&&ce!==27||Oe===null||(we=Oe,E?(Oe=wa(d,T),Oe!=null&&V.unshift(xu(d,Oe,we))):E||(Oe=wa(d,T),Oe!=null&&V.push(xu(d,Oe,we)))),d=d.return}V.length!==0&&s.push({event:a,listeners:V})}var h=/\r\n?/g,m=/\u0000|\uFFFD/g;function g(s){return(typeof s=="string"?s:""+s).replace(h,` 9`).replace(m,"")}function v(s,a){return a=g(a),g(s)===a}function w(s,a,d,p,E,T){switch(d){case"children":typeof p=="string"?a==="body"||a==="textarea"&&p===""||oo(s,p):(typeof p=="number"||typeof p=="bigint")&&a!=="body"&&oo(s,""+p);break;case"className":Xu(s,"class",p);break;case"tabIndex":Xu(s,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Xu(s,d,p);break;case"style":v0(s,p,T);break;case"data":if(a!=="object"){Xu(s,"data",p);break}case"src":case"href":if(p===""&&(a!=="a"||d!=="href")){s.removeAttribute(d);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){s.removeAttribute(d);break}p=Ac(""+p),s.setAttribute(d,p);break;case"action":case"formAction":if(typeof p=="function"){s.setAttribute(d,"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 T=="function"&&(d==="formAction"?(a!=="input"&&w(s,a,"name",E.name,E,null),w(s,a,"formEncType",E.formEncType,E,null),w(s,a,"formMethod",E.formMethod,E,null),w(s,a,"formTarget",E.formTarget,E,null)):(w(s,a,"encType",E.encType,E,null),w(s,a,"method",E.method,E,null),w(s,a,"target",E.target,E,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){s.removeAttribute(d);break}p=Ac(""+p),s.setAttribute(d,p);break;case"onClick":p!=null&&(s.onclick=kn);break;case"onScroll":p!=null&&$t("scroll",s);break;case"onScrollEnd":p!=null&&$t("scrollend",s);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(n(61));if(d=p.__html,d!=null){if(E.children!=null)throw Error(n(60));s.innerHTML=d}}break;case"multiple":s.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":s.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){s.removeAttribute("xlink:href");break}d=Ac(""+p),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?s.setAttribute(d,""+p):s.removeAttribute(d);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":p&&typeof p!="function"&&typeof p!="symbol"?s.setAttribute(d,""):s.removeAttribute(d);break;case"capture":case"download":p===!0?s.setAttribute(d,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?s.setAttribute(d,p):s.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?s.setAttribute(d,p):s.removeAttribute(d);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?s.removeAttribute(d):s.setAttribute(d,p);break;case"popover":$t("beforetoggle",s),$t("toggle",s),Gu(s,"popover",p);break;case"xlinkActuate":Bi(s,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Bi(s,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Bi(s,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Bi(s,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Bi(s,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Bi(s,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Bi(s,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Bi(s,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Bi(s,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Gu(s,"is",p);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=Fy.get(d)||d,Gu(s,d,p))}}function A(s,a,d,p,E,T){switch(d){case"style":v0(s,p,T);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(n(61));if(d=p.__html,d!=null){if(E.children!=null)throw Error(n(60));s.innerHTML=d}}break;case"children":typeof p=="string"?oo(s,p):(typeof p=="number"||typeof p=="bigint")&&oo(s,""+p);break;case"onScroll":p!=null&&$t("scroll",s);break;case"onScrollEnd":p!=null&&$t("scrollend",s);break;case"onClick":p!=null&&(s.onclick=kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!u0.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(E=d.endsWith("Capture"),a=d.slice(2,E?d.length-7:void 0),T=s[Vs]||null,T=T!=null?T[d]:null,typeof T=="function"&&s.removeEventListener(a,T,E),typeof p=="function")){typeof T!="function"&&T!==null&&(d in s?s[d]=null:s.hasAttribute(d)&&s.removeAttribute(d)),s.addEventListener(a,p,E);break e}d in s?s[d]=p:p===!0?s.setAttribute(d,""):Gu(s,d,p)}}}function N(s,a,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$t("error",s),$t("load",s);var p=!1,E=!1,T;for(T in d)if(d.hasOwnProperty(T)){var V=d[T];if(V!=null)switch(T){case"src":p=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,a));default:w(s,a,T,V,d,null)}}E&&w(s,a,"srcSet",d.srcSet,d,null),p&&w(s,a,"src",d.src,d,null);return;case"input":$t("invalid",s);var ce=T=V=E=null,we=null,Oe=null;for(p in d)if(d.hasOwnProperty(p)){var Ve=d[p];if(Ve!=null)switch(p){case"name":E=Ve;break;case"type":V=Ve;break;case"checked":we=Ve;break;case"defaultChecked":Oe=Ve;break;case"value":T=Ve;break;case"defaultValue":ce=Ve;break;case"children":case"dangerouslySetInnerHTML":if(Ve!=null)throw Error(n(137,a));break;default:w(s,a,p,Ve,d,null)}}Fh(s,T,ce,we,Oe,V,E,!1);return;case"select":$t("invalid",s),p=V=T=null;for(E in d)if(d.hasOwnProperty(E)&&(ce=d[E],ce!=null))switch(E){case"value":T=ce;break;case"defaultValue":V=ce;break;case"multiple":p=ce;default:w(s,a,E,ce,d,null)}a=T,d=V,s.multiple=!!p,a!=null?lo(s,!!p,a,!1):d!=null&&lo(s,!!p,d,!0);return;case"textarea":$t("invalid",s),T=E=p=null;for(V in d)if(d.hasOwnProperty(V)&&(ce=d[V],ce!=null))switch(V){case"value":p=ce;break;case"defaultValue":E=ce;break;case"children":T=ce;break;case"dangerouslySetInnerHTML":if(ce!=null)throw Error(n(91));break;default:w(s,a,V,ce,d,null)}x0(s,p,E,T);return;case"option":for(we in d)d.hasOwnProperty(we)&&(p=d[we],p!=null)&&(we==="selected"?s.selected=p&&typeof p!="function"&&typeof p!="symbol":w(s,a,we,p,d,null));return;case"dialog":$t("beforetoggle",s),$t("toggle",s),$t("cancel",s),$t("close",s);break;case"iframe":case"object":$t("load",s);break;case"video":case"audio":for(p=0;p<mu.length;p++)$t(mu[p],s);break;case"image":$t("error",s),$t("load",s);break;case"details":$t("toggle",s);break;case"embed":case"source":case"link":$t("error",s),$t("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Oe in d)if(d.hasOwnProperty(Oe)&&(p=d[Oe],p!=null))switch(Oe){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,a));default:w(s,a,Oe,p,d,null)}return;default:if(zh(a)){for(Ve in d)d.hasOwnProperty(Ve)&&(p=d[Ve],p!==void 0&&A(s,a,Ve,p,d,void 0));return}}for(ce in d)d.hasOwnProperty(ce)&&(p=d[ce],p!=null&&w(s,a,ce,p,d,null))}function B(s,a,d,p){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,T=null,V=null,ce=null,we=null,Oe=null,Ve=null;for(Ie in d){var Xe=d[Ie];if(d.hasOwnProperty(Ie)&&Xe!=null)switch(Ie){case"checked":break;case"value":break;case"defaultValue":we=Xe;default:p.hasOwnProperty(Ie)||w(s,a,Ie,null,p,Xe)}}for(var Be in p){var Ie=p[Be];if(Xe=d[Be],p.hasOwnProperty(Be)&&(Ie!=null||Xe!=null))switch(Be){case"type":T=Ie;break;case"name":E=Ie;break;case"checked":Oe=Ie;break;case"defaultChecked":Ve=Ie;break;case"value":V=Ie;break;case"defaultValue":ce=Ie;break;case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(n(137,a));break;default:Ie!==Xe&&w(s,a,Be,Ie,p,Xe)}}Cr(s,V,ce,we,Oe,Ve,T,E);return;case"select":Ie=V=ce=Be=null;for(T in d)if(we=d[T],d.hasOwnProperty(T)&&we!=null)switch(T){case"value":break;case"multiple":Ie=we;default:p.hasOwnProperty(T)||w(s,a,T,null,p,we)}for(E in p)if(T=p[E],we=d[E],p.hasOwnProperty(E)&&(T!=null||we!=null))switch(E){case"value":Be=T;break;case"defaultValue":ce=T;break;case"multiple":V=T;default:T!==we&&w(s,a,E,T,p,we)}a=ce,d=V,p=Ie,Be!=null?lo(s,!!d,Be,!1):!!p!=!!d&&(a!=null?lo(s,!!d,a,!0):lo(s,!!d,d?[]:"",!1));return;case"textarea":Ie=Be=null;for(ce in d)if(E=d[ce],d.hasOwnProperty(ce)&&E!=null&&!p.hasOwnProperty(ce))switch(ce){case"value":break;case"children":break;default:w(s,a,ce,null,p,E)}for(V in p)if(E=p[V],T=d[V],p.hasOwnProperty(V)&&(E!=null||T!=null))switch(V){case"value":Be=E;break;case"defaultValue":Ie=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(n(91));break;default:E!==T&&w(s,a,V,E,p,T)}m0(s,Be,Ie);return;case"option":for(var ut in d)Be=d[ut],d.hasOwnProperty(ut)&&Be!=null&&!p.hasOwnProperty(ut)&&(ut==="selected"?s.selected=!1:w(s,a,ut,null,p,Be));for(we in p)Be=p[we],Ie=d[we],p.hasOwnProperty(we)&&Be!==Ie&&(Be!=null||Ie!=null)&&(we==="selected"?s.selected=Be&&typeof Be!="function"&&typeof Be!="symbol":w(s,a,we,Be,p,Ie));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 Et in d)Be=d[Et],d.hasOwnProperty(Et)&&Be!=null&&!p.hasOwnProperty(Et)&&w(s,a,Et,null,p,Be);for(Oe in p)if(Be=p[Oe],Ie=d[Oe],p.hasOwnProperty(Oe)&&Be!==Ie&&(Be!=null||Ie!=null))switch(Oe){case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(n(137,a));break;default:w(s,a,Oe,Be,p,Ie)}return;default:if(zh(a)){for(var Or in d)Be=d[Or],d.hasOwnProperty(Or)&&Be!==void 0&&!p.hasOwnProperty(Or)&&A(s,a,Or,void 0,p,Be);for(Ve in p)Be=p[Ve],Ie=d[Ve],!p.hasOwnProperty(Ve)||Be===Ie||Be===void 0&&Ie===void 0||A(s,a,Ve,Be,p,Ie);return}}for(var je in d)Be=d[je],d.hasOwnProperty(je)&&Be!=null&&!p.hasOwnProperty(je)&&w(s,a,je,null,p,Be);for(Xe in p)Be=p[Xe],Ie=d[Xe],!p.hasOwnProperty(Xe)||Be===Ie||Be==null&&Ie==null||w(s,a,Xe,Be,p,Ie)}function j(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function I(){if(typeof performance.getEntriesByType=="function"){for(var s=0,a=0,d=performance.getEntriesByType("resource"),p=0;p<d.length;p++){var E=d[p],T=E.transferSize,V=E.initiatorType,ce=E.duration;if(T&&ce&&j(V)){for(V=0,ce=E.responseEnd,p+=1;p<d.length;p++){var we=d[p],Oe=we.startTime;if(Oe>ce)break;var Ve=we.transferSize,Xe=we.initiatorType;Ve&&j(Xe)&&(we=we.responseEnd,V+=Ve*(we<ce?1:(ce-Oe)/(we-Oe)))}if(--p,a+=8*(T+V)/(E.duration/1e3),s++,10<s)break}}if(0<s)return a/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var U=null,q=null;function ee(s){return s.nodeType===9?s:s.ownerDocument}function G(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function K(s,a){if(s===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&a==="foreignObject"?0:s}function de(s,a){return s==="textarea"||s==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var me=null;function ve(){var s=window.event;return s&&s.type==="popstate"?s===me?!1:(me=s,!0):(me=null,!1)}var be=typeof setTimeout=="function"?setTimeout:void 0,Ae=typeof clearTimeout=="function"?clearTimeout:void 0,Ee=typeof Promise=="function"?Promise:void 0,Ce=typeof queueMicrotask=="function"?queueMicrotask:typeof Ee<"u"?function(s){return Ee.resolve(null).then(s).catch(Fe)}:be;function Fe(s){setTimeout(function(){throw s})}function $e(s){return s==="head"}function Pe(s,a){var d=a,p=0;do{var E=d.nextSibling;if(s.removeChild(d),E&&E.nodeType===8)if(d=E.data,d==="/$"||d==="/&"){if(p===0){s.removeChild(E),hh(a);return}p--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")p++;else if(d==="html")Wt(s.ownerDocument.documentElement);else if(d==="head"){d=s.ownerDocument.head,Wt(d);for(var T=d.firstChild;T;){var V=T.nextSibling,ce=T.nodeName;T[wc]||ce==="SCRIPT"||ce==="STYLE"||ce==="LINK"&&T.rel.toLowerCase()==="stylesheet"||d.removeChild(T),T=V}}else d==="body"&&Wt(s.ownerDocument.body);d=E}while(d);hh(a)}function et(s,a){var d=s;s=0;do{var p=d.nextSibling;if(d.nodeType===1?a?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(a?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),p&&p.nodeType===8)if(d=p.data,d==="/$"){if(s===0)break;s--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||s++;d=p}while(d)}function rt(s){var a=s.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var d=a;switch(a=a.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":rt(d),Ns(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}s.removeChild(d)}}function nt(s,a,d,p){for(;s.nodeType===1;){var E=d;if(s.nodeName.toLowerCase()!==a.toLowerCase()){if(!p&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(p){if(!s[wc])switch(a){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(T=s.getAttribute("rel"),T==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(T!==E.rel||s.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||s.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||s.getAttribute("title")!==(E.title==null?null:E.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(T=s.getAttribute("src"),(T!==(E.src==null?null:E.src)||s.getAttribute("type")!==(E.type==null?null:E.type)||s.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&T&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(a==="input"&&s.type==="hidden"){var T=E.name==null?null:""+E.name;if(E.type==="hidden"&&s.getAttribute("name")===T)return s}else return s;if(s=Mr(s.nextSibling),s===null)break}return null}function ct(s,a,d){if(a==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!d||(s=Mr(s.nextSibling),s===null))return null;return s}function lt(s,a){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!a||(s=Mr(s.nextSibling),s===null))return null;return s}function at(s){return s.data==="$?"||s.data==="$~"}function dr(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function hr(s,a){var d=s.ownerDocument;if(s.data==="$~")s._reactRetry=a;else if(s.data!=="$?"||d.readyState!=="loading")a();else{var p=function(){a(),d.removeEventListener("DOMContentLoaded",p)};d.addEventListener("DOMContentLoaded",p),s._reactRetry=p}}function Mr(s){for(;s!=null;s=s.nextSibling){var a=s.nodeType;if(a===1||a===3)break;if(a===8){if(a=s.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;
vendor: 4,974 bytes, line 9
9if(a==="/$"||a==="/&")return null}}return s}var yt=null;function St(s){s=s.nextSibling;for(var a=0;s;){if(s.nodeType===8){var d=s.data;if(d==="/$"||d==="/&"){if(a===0)return Mr(s.nextSibling);a--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||a++}s=s.nextSibling}return null}function Vt(s){s=s.previousSibling;for(var a=0;s;){if(s.nodeType===8){var d=s.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(a===0)return s;a--}else d!=="/$"&&d!=="/&"||a++}s=s.previousSibling}return null}function Mt(s,a,d){switch(a=ee(d),s){case"html":if(s=a.documentElement,!s)throw Error(n(452));return s;case"head":if(s=a.head,!s)throw Error(n(453));return s;case"body":if(s=a.body,!s)throw Error(n(454));return s;default:throw Error(n(451))}}function Wt(s){for(var a=s.attributes;a.length;)s.removeAttributeNode(a[0]);Ns(s)}var Kt=new Map,or=new Set;function Rr(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Xr=oe.d;oe.d={f:Hs,r:Ko,D:ia,C:xn,L:$l,m:gu,X:Zo,S:ni,M:ax};function Hs(){var s=Xr.f(),a=Go();return s||a}function Ko(s){var a=no(s);a!==null&&a.tag===5&&a.type==="form"?fm(a):Xr.r(s)}var Ps=typeof document>"u"?null:document;function As(s,a,d){var p=Ps;if(p&&typeof a=="string"&&a){var E=Cn(a);E='link[rel="'+s+'"][href="'+E+'"]',typeof d=="string"&&(E+='[crossorigin="'+d+'"]'),or.has(E)||(or.add(E),s={rel:s,crossOrigin:d,href:a},p.querySelector(E)===null&&(a=p.createElement("link"),N(a,"link",s),as(a),p.head.appendChild(a)))}}function ia(s){Xr.D(s),As("dns-prefetch",s,null)}function xn(s,a){Xr.C(s,a),As("preconnect",s,a)}function $l(s,a,d){Xr.L(s,a,d);var p=Ps;if(p&&s&&a){var E='link[rel="preload"][as="'+Cn(a)+'"]';a==="image"&&d&&d.imageSrcSet?(E+='[imagesrcset="'+Cn(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(E+='[imagesizes="'+Cn(d.imageSizes)+'"]')):E+='[href="'+Cn(s)+'"]';var T=E;switch(a){case"style":T=uh(s);break;case"script":T=dh(s)}Kt.has(T)||(s=C({rel:"preload",href:a==="image"&&d&&d.imageSrcSet?void 0:s,as:a},d),Kt.set(T,s),p.querySelector(E)!==null||a==="style"&&p.querySelector(dp(T))||a==="script"&&p.querySelector(hp(T))||(a=p.createElement("link"),N(a,"link",s),as(a),p.head.appendChild(a)))}}function gu(s,a){Xr.m(s,a);var d=Ps;if(d&&s){var p=a&&typeof a.as=="string"?a.as:"script",E='link[rel="modulepreload"][as="'+Cn(p)+'"][href="'+Cn(s)+'"]',T=E;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":T=dh(s)}if(!Kt.has(T)&&(s=C({rel:"modulepreload",href:s},a),Kt.set(T,s),d.querySelector(E)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(hp(T)))return}p=d.createElement("link"),N(p,"link",s),as(p),d.head.appendChild(p)}}}function ni(s,a,d){Xr.S(s,a,d);var p=Ps;if(p&&s){var E=io(p).hoistableStyles,T=uh(s);a=a||"default";var V=E.get(T);if(!V){var ce={loading:0,preload:null};if(V=p.querySelector(dp(T)))ce.loading=5;else{s=C({rel:"stylesheet",href:s,"data-precedence":a},d),(d=Kt.get(T))&&yv(s,d);var we=V=p.createElement("link");as(we),N(we,"link",s),we._p=new Promise(function(Oe,Ve){we.onload=Oe,we.onerror=Ve}),we.addEventListener("load",function(){ce.loading|=1}),we.addEventListener("error",function(){ce.loading|=2}),ce.loading|=4,lx(V,a,p)}V={type:"stylesheet",instance:V,count:1,state:ce},E.set(T,V)}}}function Zo(s,a){Xr.X(s,a);var d=Ps;if(d&&s){var p=io(d).hoistableScripts,E=dh(s),T=p.get(E);T||(T=d.querySelector(hp(E)),T||(s=C({src:s,async:!0},a),(a=Kt.get(E))&&vv(s,a),T=d.createElement("script"),as(T),N(T,"link",s),d.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},p.set(E,T))}}function ax(s,a){Xr.M(s,a);var d=Ps;if(d&&s){var p=io(d).hoistableScripts,E=dh(s),T=p.get(E);T||(T=d.querySelector(hp(E)),T||(s=C({src:s,async:!0,type:"module"},a),(a=Kt.get(E))&&vv(s,a),T=d.createElement("script"),as(T),N(T,"link",s),d.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},p.set(E,T))}}function Q1(s,a,d,p){var E=(E=_e.current)?Rr(E):null;if(!E)throw Error(n(446));switch(s){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(a=uh(d.href),d=io(E).hoistableStyles,p=d.get(a),p||(p={type:"style",instance:null,count:0,state:null},d.set(a,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){s=uh(d.href);var T=io(E).hoistableStyles,V=T.get(s);if(V||(E=E.ownerDocument||E,V={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},T.set(s,V),(T=E.querySelector(dp(s)))&&!T._p&&(V.instance=T,V.state.loading=5),Kt.has(s)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},Kt.set(s,d),T||Xk(E,s,d,V.state))),a&&p===null)throw Error(n(528,""));return V}if(a&&p!==null)throw Error(n(529,""));return null;
vendor: 5,055 bytes, line 9
9case"script":return a=d.async,d=d.src,typeof d=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=dh(d),d=io(E).hoistableScripts,p=d.get(a),p||(p={type:"script",instance:null,count:0,state:null},d.set(a,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,s))}}function uh(s){return'href="'+Cn(s)+'"'}function dp(s){return'link[rel="stylesheet"]['+s+"]"}function J1(s){return C({},s,{"data-precedence":s.precedence,precedence:null})}function Xk(s,a,d,p){s.querySelector('link[rel="preload"][as="style"]['+a+"]")?p.loading=1:(a=s.createElement("link"),p.preload=a,a.addEventListener("load",function(){return p.loading|=1}),a.addEventListener("error",function(){return p.loading|=2}),N(a,"link",d),as(a),s.head.appendChild(a))}function dh(s){return'[src="'+Cn(s)+'"]'}function hp(s){return"script[async]"+s}function K1(s,a,d){if(a.count++,a.instance===null)switch(a.type){case"style":var p=s.querySelector('style[data-href~="'+Cn(d.href)+'"]');if(p)return a.instance=p,as(p),p;var E=C({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return p=(s.ownerDocument||s).createElement("style"),as(p),N(p,"style",E),lx(p,d.precedence,s),a.instance=p;case"stylesheet":E=uh(d.href);var T=s.querySelector(dp(E));if(T)return a.state.loading|=4,a.instance=T,as(T),T;p=J1(d),(E=Kt.get(E))&&yv(p,E),T=(s.ownerDocument||s).createElement("link"),as(T);var V=T;return V._p=new Promise(function(ce,we){V.onload=ce,V.onerror=we}),N(T,"link",p),a.state.loading|=4,lx(T,d.precedence,s),a.instance=T;case"script":return T=dh(d.src),(E=s.querySelector(hp(T)))?(a.instance=E,as(E),E):(p=d,(E=Kt.get(T))&&(p=C({},d),vv(p,E)),s=s.ownerDocument||s,E=s.createElement("script"),as(E),N(E,"link",p),s.head.appendChild(E),a.instance=E);case"void":return null;default:throw Error(n(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(p=a.instance,a.state.loading|=4,lx(p,d.precedence,s));return a.instance}function lx(s,a,d){for(var p=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=p.length?p[p.length-1]:null,T=E,V=0;V<p.length;V++){var ce=p[V];if(ce.dataset.precedence===a)T=ce;else if(T!==E)break}T?T.parentNode.insertBefore(s,T.nextSibling):(a=d.nodeType===9?d.head:d,a.insertBefore(s,a.firstChild))}function yv(s,a){s.crossOrigin==null&&(s.crossOrigin=a.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=a.referrerPolicy),s.title==null&&(s.title=a.title)}function vv(s,a){s.crossOrigin==null&&(s.crossOrigin=a.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=a.referrerPolicy),s.integrity==null&&(s.integrity=a.integrity)}var ox=null;function Z1(s,a,d){if(ox===null){var p=new Map,E=ox=new Map;E.set(d,p)}else E=ox,p=E.get(d),p||(p=new Map,E.set(d,p));if(p.has(s))return p;for(p.set(s,null),d=d.getElementsByTagName(s),E=0;E<d.length;E++){var T=d[E];if(!(T[wc]||T[ys]||s==="link"&&T.getAttribute("rel")==="stylesheet")&&T.namespaceURI!=="http://www.w3.org/2000/svg"){var V=T.getAttribute(a)||"";V=s+V;var ce=p.get(V);ce?ce.push(T):p.set(V,[T])}}return p}function ew(s,a,d){s=s.ownerDocument||s,s.head.insertBefore(d,a==="title"?s.querySelector("head > title"):null)}function qk(s,a,d){if(d===1||a.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(s=a.disabled,typeof a.precedence=="string"&&s==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function tw(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function Wk(s,a,d,p){if(d.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var E=uh(p.href),T=a.querySelector(dp(E));if(T){a=T._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(s.count++,s=cx.bind(s),a.then(s,s)),d.state.loading|=4,d.instance=T,as(T);return}T=a.ownerDocument||a,p=J1(p),(E=Kt.get(E))&&yv(p,E),T=T.createElement("link"),as(T);var V=T;V._p=new Promise(function(ce,we){V.onload=ce,V.onerror=we}),N(T,"link",p),d.instance=T}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(d,a),(a=d.state.preload)&&(d.state.loading&3)===0&&(s.count++,d=cx.bind(s),a.addEventListener("load",d),a.addEventListener("error",d))}}var bv=0;function Qk(s,a){return s.stylesheets&&s.count===0&&dx(s,s.stylesheets),0<s.count||0<s.imgCount?function(d){var p=setTimeout(function(){if(s.stylesheets&&dx(s,s.stylesheets),s.unsuspend){var T=s.unsuspend;s.unsuspend=null,T()}},6e4+a);0<s.imgBytes&&bv===0&&(bv=62500*I());var E=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&dx(s,s.stylesheets),s.unsuspend)){var T=s.unsuspend;s.unsuspend=null,T()}},(s.imgBytes>bv?50:800)+a);return s.unsuspend=d,function(){s.unsuspend=null,clearTimeout(p),clearTimeout(E)}}:null}
vendor: 4,098 bytes, line 9
9function cx(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dx(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var ux=null;function dx(s,a){s.stylesheets=null,s.unsuspend!==null&&(s.count++,ux=new Map,a.forEach(Jk,s),ux=null,cx.call(s))}function Jk(s,a){if(!(a.state.loading&4)){var d=ux.get(s);if(d)var p=d.get(null);else{d=new Map,ux.set(s,d);for(var E=s.querySelectorAll("link[data-precedence],style[data-precedence]"),T=0;T<E.length;T++){var V=E[T];(V.nodeName==="LINK"||V.getAttribute("media")!=="not all")&&(d.set(V.dataset.precedence,V),p=V)}p&&d.set(null,p)}E=a.instance,V=E.getAttribute("data-precedence"),T=d.get(V)||p,T===p&&d.set(null,E),d.set(V,E),this.count++,p=cx.bind(this),E.addEventListener("load",p),E.addEventListener("error",p),T?T.parentNode.insertBefore(E,T.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(E,s.firstChild)),a.state.loading|=4}}var fp={$$typeof:F,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Kk(s,a,d,p,E,T,V,ce,we){this.tag=1,this.containerInfo=s,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=us(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.hiddenUpdates=us(null),this.identifierPrefix=p,this.onUncaughtError=E,this.onCaughtError=T,this.onRecoverableError=V,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=we,this.incompleteTransitions=new Map}function rw(s,a,d,p,E,T,V,ce,we,Oe,Ve,Xe){return s=new Kk(s,a,d,V,we,Oe,Ve,Xe,ce),a=1,T===!0&&(a|=24),T=Ds(3,null,null,a),s.current=T,T.stateNode=s,a=uf(),a.refCount++,s.pooledCache=a,a.refCount++,T.memoizedState={element:p,isDehydrated:d,cache:a},mf(T),s}function sw(s){return s?(s=gi,s):gi}function nw(s,a,d,p,E,T){E=sw(E),p.context===null?p.context=E:p.pendingContext=E,p=Ma(a),p.payload={element:d},T=T===void 0?null:T,T!==null&&(p.callback=T),d=Ra(s,p,a),d!==null&&(rn(d,s,a),Oa(d,s,a))}function iw(s,a){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var d=s.retryLane;s.retryLane=d!==0&&d<a?d:a}}function wv(s,a){iw(s,a),(s=s.alternate)&&iw(s,a)}function aw(s){if(s.tag===13||s.tag===31){var a=Li(s,67108864);a!==null&&rn(a,s,67108864),wv(s,67108864)}}function lw(s){if(s.tag===13||s.tag===31){var a=tn();a=cn(a);var d=Li(s,a);d!==null&&rn(d,s,a),wv(s,a)}}var hx=!0;function Zk(s,a,d,p){var E=X.T;X.T=null;var T=oe.p;try{oe.p=2,Sv(s,a,d,p)}finally{oe.p=T,X.T=E}}function eT(s,a,d,p){var E=X.T;X.T=null;var T=oe.p;try{oe.p=8,Sv(s,a,d,p)}finally{oe.p=T,X.T=E}}function Sv(s,a,d,p){if(hx){var E=Av(p);if(E===null)up(s,a,p,fx,d),cw(s,p);else if(rT(E,s,a,d,p))p.stopPropagation();else if(cw(s,p),a&4&&-1<tT.indexOf(s)){for(;E!==null;){var T=no(E);if(T!==null)switch(T.tag){case 3:if(T=T.stateNode,T.current.memoizedState.isDehydrated){var V=En(T.pendingLanes);if(V!==0){var ce=T;for(ce.pendingLanes|=2,ce.entangledLanes|=2;V;){var we=1<<31-Er(V);ce.entanglements[1]|=we,V&=~we}si(T),(sr&6)===0&&(uu=Ne()+500,fu(0))}}break;case 31:case 13:ce=Li(T,2),ce!==null&&rn(ce,T,2),Go(),wv(T,2)}if(T=Av(p),T===null&&up(s,a,p,fx,d),T===E)break;E=T}E!==null&&p.stopPropagation()}else up(s,a,p,null,d)}}function Av(s){return s=Gs(s),Ev(s)}var fx=null;function Ev(s){if(fx=null,s=so(s),s!==null){var a=c(s);if(a===null)s=null;else{var d=a.tag;if(d===13){if(s=f(a),s!==null)return s;s=null}else if(d===31){if(s=x(a),s!==null)return s;s=null}else if(d===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;s=null}else a!==s&&(s=null)}}return fx=s,null}function ow(s){switch(s){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"invali
9d":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(ze()){case Ue:return 2;case Me:return 8;case ot:case kt:return 32;case vr:return 268435456;default:return 32}default:return 32}}var Cv=!1,ec=null,tc=null,rc=null,pp=new Map,mp=new Map,sc=[],tT="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 cw(s,a){switch(s){case"focusin":case"focusout":ec=null;break;case"dragenter":case"dragleave":tc=null;break;case"mouseover":case"mouseout":rc=null;break;case"pointerover":case"pointerout":pp.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":mp.delete(a.pointerId)}}function xp(s,a,d,p,E,T){return s===null||s.nativeEvent!==T?(s={blockedOn:a,domEventName:d,eventSystemFlags:p,nativeEvent:T,targetContainers:[E]},a!==null&&(a=no(a),a!==null&&aw(a)),s):(s.eventSystemFlags|=p,a=s.targetContainers,E!==null&&a.indexOf(E)===-1&&a.push(E),s)}function rT(s,a,d,p,E){switch(a){case"focusin":return ec=xp(ec,s,a,d,p,E),!0;case"dragenter":return tc=xp(tc,s,a,d,p,E),!0;case"mouseover":return rc=xp(rc,s,a,d,p,E),!0;case"pointerover":var T=E.pointerId;return pp.set(T,xp(pp.get(T)||null,s,a,d,p,E)),!0;case"gotpointercapture":return T=E.pointerId,mp.set(T,xp(mp.get(T)||null,s,a,d,p,E)),!0}return!1}function uw(s){var a=so(s.target);if(a!==null){var d=c(a);if(d!==null){if(a=d.tag,a===13){if(a=f(d),a!==null){s.blockedOn=a,o0(s.priority,function(){lw(d)});return}}else if(a===31){if(a=x(d),a!==null){s.blockedOn=a,o0(s.priority,function(){lw(d)});return}}else if(a===3&&d.stateNode.current.memoizedState.isDehydrated){s.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}s.blockedOn=null}function px(s){if(s.blockedOn!==null)return!1;for(var a=s.targetContainers;0<a.length;){var d=Av(s.nativeEvent);if(d===null){d=s.nativeEvent;var p=new d.constructor(d.type,d);Ku=p,d.target.dispatchEvent(p),Ku=null}else return a=no(d),a!==null&&aw(a),s.blockedOn=d,!1;a.shift()}return!0}function dw(s,a,d){px(s)&&d.delete(a)}function sT(){Cv=!1,ec!==null&&px(ec)&&(ec=null),tc!==null&&px(tc)&&(tc=null),rc!==null&&px(rc)&&(rc=null),pp.forEach(dw),mp.forEach(dw)}function mx(s,a){s.blockedOn===a&&(s.blockedOn=null,Cv||(Cv=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,sT)))}var xx=null;function hw(s){xx!==s&&(xx=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){xx===s&&(xx=null);for(var a=0;a<s.length;a+=3){var d=s[a],p=s[a+1],E=s[a+2];if(typeof p!="function"){if(Ev(p||d)===null)continue;break}var T=no(d);T!==null&&(s.splice(a,3),a-=3,Id(T,{pending:!0,data:E,method:d.method,action:p},p,E))}}))}function hh(s){function a(we){return mx(we,s)}ec!==null&&mx(ec,s),tc!==null&&mx(tc,s),rc!==null&&mx(rc,s),pp.forEach(a),mp.forEach(a);for(var d=0;d<sc.length;d++){var p=sc[d];p.blockedOn===s&&(p.blockedOn=null)}for(;0<sc.length&&(d=sc[0],d.blockedOn===null);)uw(d),d.blockedOn===null&&sc.shift();if(d=(s.ownerDocument||s).$$reactFormReplay,d!=null)for(p=0;p<d.length;p+=3){var E=d[p],T=d[p+1],V=E[Vs]||null;if(typeof T=="function")V||hw(d);else if(V){var ce=null;if(T&&T.hasAttribute("formAction")){if(E=T,V=T[Vs]||null)ce=V.formAction;else if(Ev(E)!==null)continue}else ce=V.action;typeof ce=="function"?d[p+1]=ce:(d.splice(p,3),p-=3),hw(d)}}}function fw(){function s(T){T.canIntercept&&T.info==="react-transition"&&T.intercept({handler:function(){return new Promise(function(V){return E=V}
9)},focusReset:"manual",scroll:"manual"})}function a(){E!==null&&(E(),E=null),p||setTimeout(d,20)}function d(){if(!p&&!navigation.transition){var T=navigation.currentEntry;T&&T.url!=null&&navigation.navigate(T.url,{state:T.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,E=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(d,100),function(){p=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),E!==null&&(E(),E=null)}}}function kv(s){this._internalRoot=s}gx.prototype.render=kv.prototype.render=function(s){var a=this._internalRoot;if(a===null)throw Error(n(409));var d=a.current,p=tn();nw(d,p,s,a,null,null)},gx.prototype.unmount=kv.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var a=s.containerInfo;nw(s.current,2,null,s,null,null),Go(),a[va]=null}};function gx(s){this._internalRoot=s}gx.prototype.unstable_scheduleHydration=function(s){if(s){var a=l0();s={blockedOn:null,target:s,priority:a};for(var d=0;d<sc.length&&a!==0&&a<sc[d].priority;d++);sc.splice(d,0,s),d===0&&uw(s)}};var pw=t.version;if(pw!=="19.2.4")throw Error(n(527,pw,"19.2.4"));oe.findDOMNode=function(s){var a=s._reactInternals;if(a===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=b(a),s=s!==null?S(s):null,s=s===null?null:s.stateNode,s};var nT={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yx=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yx.isDisabled&&yx.supportsFiber)try{qr=yx.inject(nT),xr=yx}catch{}}return yp.createRoot=function(s,a){if(!l(s))throw Error(n(299));var d=!1,p="",E=bm,T=Bf,V=Da;return a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onUncaughtError!==void 0&&(E=a.onUncaughtError),a.onCaughtError!==void 0&&(T=a.onCaughtError),a.onRecoverableError!==void 0&&(V=a.onRecoverableError)),a=rw(s,1,!1,null,null,d,p,null,E,T,V,fw),s[va]=a.current,cp(s),new kv(a)},yp.hydrateRoot=function(s,a,d){if(!l(s))throw Error(n(299));var p=!1,E="",T=bm,V=Bf,ce=Da,we=null;return d!=null&&(d.unstable_strictMode===!0&&(p=!0),d.identifierPrefix!==void 0&&(E=d.identifierPrefix),d.onUncaughtError!==void 0&&(T=d.onUncaughtError),d.onCaughtError!==void 0&&(V=d.onCaughtError),d.onRecoverableError!==void 0&&(ce=d.onRecoverableError),d.formState!==void 0&&(we=d.formState)),a=rw(s,1,!0,a,d??null,p,E,we,T,V,ce,fw),a.context=sw(null),d=a.current,p=tn(),p=cn(p),E=Ma(p),E.callback=null,Ra(d,E,p),d=p,a.current.lanes=d,Wr(a,d),si(a),s[va]=a.current,cp(s),new gx(a)},yp.version="19.2.4",yp}var Ew;function pT(){if(Ew)return Mv.exports;Ew=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Mv.exports=fT(),Mv.exports}var mT=pT();var Cw="popstate";function kw(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function xT(e={}){function t(n,l){let c=l.state?.masked,{pathname:f,search:x,hash:y}=c||n.location;return vb("",{pathname:f,search:x,hash:y},l.state&&l.state.usr||null,l.state&&l.state.key||"default",c?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,l){return typeof l=="string"?l:Pp(l)}return yT(t,r,null,e)}function es(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ji(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gT(){return Math.random().toString(36).substring(2,10)}function Tw(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function vb(e,t,r=null,n,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Rh(t):t,state:r,key:t&&t.key||n||gT(),unstable_mask:l}}function Pp({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Rh(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function yT(e,t,r,n={}){let{window:l=document.defaultView,v5Compat:c=!1}=n,f=l.history,x="POP",y=null,b=S();b==null&&(b=0,f.replaceState({...f.state,idx:b},""));function S(){return(f.state||{idx:null}).idx}function C(){x="POP";let _=S(),$=_==null?null:_-b;b=_,y&&y({action:x,location:P.location,delta:$})}function R(_,$){x="PUSH";let D=kw(_)?_:vb(P.location,_,$);b=S()+1;
9let F=Tw(D,b),J=P.createHref(D.unstable_mask||D);try{f.pushState(F,"",J)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;l.location.assign(J)}c&&y&&y({action:x,location:P.location,delta:1})}function O(_,$){x="REPLACE";let D=kw(_)?_:vb(P.location,_,$);b=S();let F=Tw(D,b),J=P.createHref(D.unstable_mask||D);f.replaceState(F,"",J),c&&y&&y({action:x,location:P.location,delta:0})}function M(_){return vT(_)}let P={get action(){return x},get location(){return e(l,f)},listen(_){if(y)throw new Error("A history only accepts one active listener");return l.addEventListener(Cw,C),y=_,()=>{l.removeEventListener(Cw,C),y=null}},createHref(_){return t(l,_)},createURL:M,encodeLocation(_){let $=M(_);return{pathname:$.pathname,search:$.search,hash:$.hash}},push:R,replace:O,go(_){return f.go(_)}};return P}function vT(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),es(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Pp(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function NE(e,t,r="/"){return bT(e,t,r,!1)}function bT(e,t,r,n){let l=typeof t=="string"?Rh(t):t,c=eo(l.pathname||"/",r);if(c==null)return null;let f=jE(e);wT(f);let x=null;for(let y=0;x==null&&y<f.length;++y){let b=OT(c);x=MT(f[y],b,n)}return x}function jE(e,t=[],r=[],n="",l=!1){let c=(f,x,y=l,b)=>{let S={relativePath:b===void 0?f.path||"":b,caseSensitive:f.caseSensitive===!0,childrenIndex:x,route:f};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(n)&&y)return;es(S.relativePath.startsWith(n),`Absolute route path "${S.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(n.length)}let C=el([n,S.relativePath]),R=r.concat(S);f.children&&f.children.length>0&&(es(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${C}".`),jE(f.children,t,R,C,y)),!(f.path==null&&!f.index)&&t.push({path:C,score:NT(C,f.index),routesMeta:R})};return e.forEach((f,x)=>{if(f.path===""||!f.path?.includes("?"))c(f,x);else for(let y of ME(f.path))c(f,x,!0,y)}),t}function ME(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,l=r.endsWith("?"),c=r.replace(/\?$/,"");if(n.length===0)return l?[c,""]:[c];let f=ME(n.join("/")),x=[];return x.push(...f.map(y=>y===""?c:[c,y].join("/"))),l&&x.push(...f),x.map(y=>e.startsWith("/")&&y===""?"/":y)}function wT(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:jT(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var ST=/^:[\w-]+$/,AT=3,ET=2,CT=1,kT=10,TT=-2,Nw=e=>e==="*";function NT(e,t){let r=e.split("/"),n=r.length;return r.some(Nw)&&(n+=TT),t&&(n+=ET),r.filter(l=>!Nw(l)).reduce((l,c)=>l+(ST.test(c)?AT:c===""?CT:kT),n)}function jT(e,t){return e.length===t.length&&e.slice(0,-1).every((n,l)=>n===t[l])?e[e.length-1]-t[t.length-1]:0}function MT(e,t,r=!1){let{routesMeta:n}=e,l={},c="/",f=[];for(let x=0;x<n.length;++x){let y=n[x],b=x===n.length-1,S=c==="/"?t:t.slice(c.length)||"/",C=zg({path:y.relativePath,caseSensitive:y.caseSensitive,end:b},S),R=y.route;if(!C&&b&&r&&!n[n.length-1].route.index&&(C=zg({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},S)),!C)return null;
9Object.assign(l,C.params),f.push({params:l,pathname:el([c,C.pathname]),pathnameBase:LT(el([c,C.pathnameBase])),route:R}),C.pathnameBase!=="/"&&(c=el([c,C.pathnameBase]))}return f}function zg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=RT(e.path,e.caseSensitive,e.end),l=t.match(r);if(!l)return null;let c=l[0],f=c.replace(/(.)\/+$/,"$1"),x=l.slice(1);return{params:n.reduce((b,{paramName:S,isOptional:C},R)=>{if(S==="*"){let M=x[R]||"";f=c.slice(0,c.length-M.length).replace(/(.)\/+$/,"$1")}const O=x[R];return C&&!O?b[S]=void 0:b[S]=(O||"").replace(/%2F/g,"/"),b},{}),pathname:c,pathnameBase:f,pattern:e}}function RT(e,t=!1,r=!0){ji(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,x,y,b,S)=>{if(n.push({paramName:x,isOptional:y!=null}),y){let C=S.charAt(b+f.length);return C&&C!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),n]}function OT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ji(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function eo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var BT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function _T(e,t="/"){let{pathname:r,search:n="",hash:l=""}=typeof e=="string"?Rh(e):e,c;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?c=jw(r.substring(1),"/"):c=jw(r,t)):c=t,{pathname:c,search:IT(n),hash:PT(l)}}function jw(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function _v(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function DT(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Zb(e){let t=DT(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function cy(e,t,r,n=!1){let l;typeof e=="string"?l=Rh(e):(l={...e},es(!l.pathname||!l.pathname.includes("?"),_v("?","pathname","search",l)),es(!l.pathname||!l.pathname.includes("#"),_v("#","pathname","hash",l)),es(!l.search||!l.search.includes("#"),_v("#","search","hash",l)));let c=e===""||l.pathname==="",f=c?"/":l.pathname,x;if(f==null)x=r;else{let C=t.length-1;if(!n&&f.startsWith("..")){let R=f.split("/");for(;R[0]==="..";)R.shift(),C-=1;l.pathname=R.join("/")}x=C>=0?t[C]:"/"}let y=_T(l,x),b=f&&f!=="/"&&f.endsWith("/"),S=(c||f===".")&&r.endsWith("/");return!y.pathname.endsWith("/")&&(b||S)&&(y.pathname+="/"),y}var el=e=>e.join("/").replace(/\/\/+/g,"/"),LT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),IT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,FT=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function zT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function UT(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var RE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function OE(e,t){let r=e;if(typeof r!="string"||!BT.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,l=!1;if(RE)try{let c=new URL(window.location.href),f=r.startsWith("//")?new URL(c.protocol+r):new URL(r),x=eo(f.pathname,t);f.origin===c.origin&&x!=null?r=x+f.search+f.hash:l=!0}catch{ji(!1,`<Link to="${r}">
9 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:l,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var BE=["POST","PUT","PATCH","DELETE"];new Set(BE);var $T=["GET",...BE];new Set($T);var Oh=Y.createContext(null);Oh.displayName="DataRouter";var uy=Y.createContext(null);uy.displayName="DataRouterState";var VT=Y.createContext(!1),_E=Y.createContext({isTransitioning:!1});_E.displayName="ViewTransition";var HT=Y.createContext(new Map);HT.displayName="Fetchers";var YT=Y.createContext(null);YT.displayName="Await";var ci=Y.createContext(null);ci.displayName="Navigation";var qp=Y.createContext(null);qp.displayName="Location";var ma=Y.createContext({outlet:null,matches:[],isDataRoute:!1});ma.displayName="Route";var e1=Y.createContext(null);e1.displayName="RouteError";var DE="REACT_ROUTER_ERROR",GT="REDIRECT",XT="ROUTE_ERROR_RESPONSE";function qT(e){if(e.startsWith(`${DE}:${GT}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function WT(e){if(e.startsWith(`${DE}:${XT}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new FT(t.status,t.statusText,t.data)}catch{}}function QT(e,{relative:t}={}){es(Bh(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=Y.useContext(ci),{hash:l,pathname:c,search:f}=Wp(e,{relative:t}),x=c;return r!=="/"&&(x=c==="/"?r:el([r,c])),n.createHref({pathname:x,search:f,hash:l})}function Bh(){return Y.useContext(qp)!=null}function Sn(){return es(Bh(),"useLocation() may be used only in the context of a <Router> component."),Y.useContext(qp).location}var LE="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function IE(e){Y.useContext(ci).static||Y.useLayoutEffect(e)}function yr(){let{isDataRoute:e}=Y.useContext(ma);return e?cN():JT()}function JT(){es(Bh(),"useNavigate() may be used only in the context of a <Router> component.");let e=Y.useContext(Oh),{basename:t,navigator:r}=Y.useContext(ci),{matches:n}=Y.useContext(ma),{pathname:l}=Sn(),c=JSON.stringify(Zb(n)),f=Y.useRef(!1);return IE(()=>{f.current=!0}),Y.useCallback((y,b={})=>{if(ji(f.current,LE),!f.current)return;if(typeof y=="number"){r.go(y);return}let S=cy(y,JSON.parse(c),l,b.relative==="path");e==null&&t!=="/"&&(S.pathname=S.pathname==="/"?t:el([t,S.pathname])),(b.replace?r.replace:r.push)(S,b.state,b)},[t,r,c,l,e])}Y.createContext(null);function dy(){let{matches:e}=Y.useContext(ma),t=e[e.length-1];return t?t.params:{}}function Wp(e,{relative:t}={}){let{matches:r}=Y.useContext(ma),{pathname:n}=Sn(),l=JSON.stringify(Zb(r));return Y.useMemo(()=>cy(e,JSON.parse(l),n,t==="path"),[e,l,n,t])}function KT(e,t){return PE(e,t)}function PE(e,t,r){es(Bh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=Y.useContext(ci),{matches:l}=Y.useContext(ma),c=l[l.length-1],f=c?c.params:{},x=c?c.pathname:"/",y=c?c.pathnameBase:"/",b=c&&c.route;{let _=b&&b.path||"";zE(x,!b||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 10 11Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let S=Sn(),C;if(t){let _=typeof t=="string"?Rh(t):t;es(y==="/"||_.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${_.pathname}" was given in the \`location\` prop.`),C=_}else C=S;let R=C.pathname||"/",O=R;if(y!=="/"){let _=y.replace(/^\//,"").split("/");O="/"+R.replace(/^\//,"").split("/").slice(_.length).join("/")}let M=NE(e,{pathname:O});ji(b||M!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),ji(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${C.pathname}${C.search}${C.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let P=sN(M&&M.map(_=>Object.assign({},_,{params:Object.assign({},f,_.params),pathname:el([y,n.encodeLocation?n.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?y:el([y,n.encodeLocation?n.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),l,r);return t&&P?Y.createElement(qp.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...C},navigationType:"POP"}},P):P}function ZT(){let e=oN(),t=zT(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:n},c={padding:"2px 4px",backgroundColor:n},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=Y.createElement(Y.Fragment,null,Y.createElement("p",null,"ð¿ Hey developer ð"),Y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Y.createElement("code",{style:c},"ErrorBoundary")," or"," ",Y.createElement("code",{style:c},"errorElement")," prop on your route.")),Y.createElement(Y.Fragment,null,Y.createElement("h2",null,"Unexpected Application
11Error!"),Y.createElement("h3",{style:{fontStyle:"italic"}},t),r?Y.createElement("pre",{style:l},r):null,f)}var eN=Y.createElement(ZT,null),FE=class extends Y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=WT(e.digest);r&&(e=r)}let t=e!==void 0?Y.createElement(ma.Provider,{value:this.props.routeContext},Y.createElement(e1.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?Y.createElement(tN,{error:e},t):t}};FE.contextType=VT;var Dv=new WeakMap;function tN({children:e,error:t}){let{basename:r}=Y.useContext(ci);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=qT(t.digest);if(n){let l=Dv.get(t);if(l)throw l;let c=OE(n.location,r);if(RE&&!Dv.get(t))if(c.isExternal||n.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:n.replace}));throw Dv.set(t,f),f}return Y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function rN({routeContext:e,match:t,children:r}){let n=Y.useContext(Oh);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),Y.createElement(ma.Provider,{value:e},r)}function sN(e,t=[],r){let n=r?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,c=n?.errors;if(c!=null){let S=l.findIndex(C=>C.route.id&&c?.[C.route.id]!==void 0);es(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,S+1))}let f=!1,x=-1;if(r&&n){f=n.renderFallback;for(let S=0;S<l.length;S++){let C=l[S];if((C.route.HydrateFallback||C.route.hydrateFallbackElement)&&(x=S),C.route.id){let{loaderData:R,errors:O}=n,M=C.route.loader&&!R.hasOwnProperty(C.route.id)&&(!O||O[C.route.id]===void 0);if(C.route.lazy||M){r.isStatic&&(f=!0),x>=0?l=l.slice(0,x+1):l=[l[0]];break}}}}let y=r?.onError,b=n&&y?(S,C)=>{y(S,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:UT(n.matches),errorInfo:C})}:void 0;return l.reduceRight((S,C,R)=>{let O,M=!1,P=null,_=null;n&&(O=c&&C.route.id?c[C.route.id]:void 0,P=C.route.errorElement||eN,f&&(x<0&&R===0?(zE("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,_=null):x===R&&(M=!0,_=C.route.hydrateFallbackElement||null)));let $=t.concat(l.slice(0,R+1)),D=()=>{let F;return O?F=P:M?F=_:C.route.Component?F=Y.createElement(C.route.Component,null):C.route.element?F=C.route.element:F=S,Y.createElement(rN,{match:C,routeContext:{outlet:S,matches:$,isDataRoute:n!=null},children:F})};return n&&(C.route.ErrorBoundary||C.route.errorElement||R===0)?Y.createElement(FE,{location:n.location,revalidation:n.revalidation,component:P,error:O,children:D(),routeContext:{outlet:null,matches:$,isDataRoute:!0},onError:b}):D()},null)}function t1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nN(e){let t=Y.useContext(Oh);return es(t,t1(e)),t}function iN(e){let t=Y.useContext(uy);return es(t,t1(e)),t}function aN(e){let t=Y.useContext(ma);return es(t,t1(e)),t}function r1(e){let t=aN(e),r=t.matches[t.matches.length-1];return es(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function lN(){return r1("useRouteId")}function oN(){let e=Y.useContext(e1),t=iN("useRouteError"),r=r1("useRouteError");return e!==void 0?e:t.errors?.[r]}function cN(){let{router:e}=nN("useNavigate"),t=r1("useNavigate"),r=Y.useRef(!1);return IE(()=>{r.current=!0}),Y.useCallback(async(l,c={})=>{ji(r.current,LE),r.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...c}))},[e,t])}var Mw={};function zE(e,t,r){!t&&!Mw[e]&&(Mw[e]=!0,ji(!1,r))}Y.memo(uN);function uN({routes:e,future:t,state:r,isStatic:n,onError:l}){return PE(e,void 0,{state:r,isStatic:n,onError:l})}function Fp({to:e,replace:t,state:r,relative:n}){es(Bh(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=Y.useContext(ci);ji(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=Y.useContext(ma),{pathname:f}=Sn(),x=yr(),y=cy(e,Zb(c),f,n==="path"),b=JSON.stringify(y);return Y.useEffect(()=>{x(JSON.parse(b),{replace:t,state:r,relative:n})},[x,b,n,t,r]),null}function mr(e){es(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function dN({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:l,static:c=!1,unstable_useTransitions:f}){es(!Bh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=e.replace(/^\/*/,"/"),y=Y.useMemo(()=>({basename:x,navigator:l,static:c,unstable_useTransitions:f,future:{}}),[x,l,c,f]);typeof r=="string"&&(r=Rh(r));let{pathname:b="/",search:S="",hash:C="",state:R=null,key:O="default",unstable_mask:M}=r,P=Y.useMemo(()=>{let _=eo(b,x);return _==null?null:{location:{pathname:_,search:S,hash:C,state:R,key:O,unstable_mask:M},navigationType:n}},[x,b,S,C,R,O,n,M]);
11return ji(P!=null,`<Router basename="${x}"> is not able to match the URL "${b}${S}${C}" because it does not start with the basename, so the <Router> won't render anything.`),P==null?null:Y.createElement(ci.Provider,{value:y},Y.createElement(qp.Provider,{children:t,value:P}))}function hN({children:e,location:t}){return KT(bb(e),t)}function bb(e,t=[]){let r=[];return Y.Children.forEach(e,(n,l)=>{if(!Y.isValidElement(n))return;let c=[...t,l];if(n.type===Y.Fragment){r.push.apply(r,bb(n.props.children,c));return}es(n.type===mr,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),es(!n.props.index||!n.props.children,"An index route cannot have child routes.");let f={id:n.props.id||c.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(f.children=bb(n.props.children,c)),r.push(f)}),r}var Ox="get",Bx="application/x-www-form-urlencoded";function hy(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function fN(e){return hy(e)&&e.tagName.toLowerCase()==="button"}function pN(e){return hy(e)&&e.tagName.toLowerCase()==="form"}function mN(e){return hy(e)&&e.tagName.toLowerCase()==="input"}function xN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gN(e,t){return e.button===0&&(!t||t==="_self")&&!xN(e)}function wb(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(l=>[r,l]):[[r,n]])},[]))}function yN(e,t){let r=wb(e);return t&&t.forEach((n,l)=>{r.has(l)||t.getAll(l).forEach(c=>{r.append(l,c)})}),r}var vx=null;function vN(){if(vx===null)try{new FormData(document.createElement("form"),0),vx=!1}catch{vx=!0}return vx}var bN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lv(e){return e!=null&&!bN.has(e)?(ji(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bx}"`),null):e}function wN(e,t){let r,n,l,c,f;if(pN(e)){let x=e.getAttribute("action");n=x?eo(x,t):null,r=e.getAttribute("method")||Ox,l=Lv(e.getAttribute("enctype"))||Bx,c=new FormData(e)}else if(fN(e)||mN(e)&&(e.type==="submit"||e.type==="image")){let x=e.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=e.getAttribute("formaction")||x.getAttribute("action");if(n=y?eo(y,t):null,r=e.getAttribute("formmethod")||x.getAttribute("method")||Ox,l=Lv(e.getAttribute("formenctype"))||Lv(x.getAttribute("enctype"))||Bx,c=new FormData(x,e),!vN()){let{name:b,type:S,value:C}=e;if(S==="image"){let R=b?`${b}.`:"";c.append(`${R}x`,"0"),c.append(`${R}y`,"0")}else b&&c.append(b,C)}}else{if(hy(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ox,n=null,l=Bx,f=e}return c&&l==="text/plain"&&(f=c,c=void 0),{action:n,method:r.toLowerCase(),encType:l,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function s1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function SN(e,t,r,n){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${n}`:l.pathname=`${l.pathname}.${n}`:l.pathname==="/"?l.pathname=`_root.${n}`:t&&eo(l.pathname,t)==="/"?l.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${n}`,l}async function AN(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
11isSpaMode,window.location.reload(),new Promise(()=>{})}}function EN(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function CN(e,t,r){let n=await Promise.all(e.map(async l=>{let c=t.routes[l.route.id];if(c){let f=await AN(c,r);return f.links?f.links():[]}return[]}));return jN(n.flat(1).filter(EN).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Rw(e,t,r,n,l,c){let f=(y,b)=>r[b]?y.route.id!==r[b].route.id:!0,x=(y,b)=>r[b].pathname!==y.pathname||r[b].route.path?.endsWith("*")&&r[b].params["*"]!==y.params["*"];return c==="assets"?t.filter((y,b)=>f(y,b)||x(y,b)):c==="data"?t.filter((y,b)=>{let S=n.routes[y.route.id];if(!S||!S.hasLoader)return!1;if(f(y,b)||x(y,b))return!0;if(y.route.shouldRevalidate){let C=y.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function kN(e,t,{includeHydrateFallback:r}={}){return TN(e.map(n=>{let l=t.routes[n.route.id];if(!l)return[];let c=[l.module];return l.clientActionModule&&(c=c.concat(l.clientActionModule)),l.clientLoaderModule&&(c=c.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(c=c.concat(l.hydrateFallbackModule)),l.imports&&(c=c.concat(l.imports)),c}).flat(1))}function TN(e){return[...new Set(e)]}function NN(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function jN(e,t){let r=new Set;return new Set(t),e.reduce((n,l)=>{let c=JSON.stringify(NN(l));return r.has(c)||(r.add(c),n.push({key:c,link:l})),n},[])}function UE(){let e=Y.useContext(Oh);return s1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function MN(){let e=Y.useContext(uy);return s1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var n1=Y.createContext(void 0);n1.displayName="FrameworkContext";function $E(){let e=Y.useContext(n1);return s1(e,"You must render this element inside a <HydratedRouter> element"),e}function RN(e,t){let r=Y.useContext(n1),[n,l]=Y.useState(!1),[c,f]=Y.useState(!1),{onFocus:x,onBlur:y,onMouseEnter:b,onMouseLeave:S,onTouchStart:C}=t,R=Y.useRef(null);Y.useEffect(()=>{if(e==="render"&&f(!0),e==="viewport"){let P=$=>{$.forEach(D=>{f(D.isIntersecting)})},_=new IntersectionObserver(P,{threshold:.5});return R.current&&_.observe(R.current),()=>{_.disconnect()}}},[e]),Y.useEffect(()=>{if(n){let P=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(P)}}},[n]);let O=()=>{l(!0)},M=()=>{l(!1),f(!1)};return r?e!=="intent"?[c,R,{}]:[c,R,{onFocus:vp(x,O),onBlur:vp(y,M),onMouseEnter:vp(b,O),onMouseLeave:vp(S,M),onTouchStart:vp(C,O)}]:[!1,R,{}]}function vp(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function ON({page:e,...t}){let{router:r}=UE(),n=Y.useMemo(()=>NE(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?Y.createElement(_N,{page:e,matches:n,...t}):null}function BN(e){let{manifest:t,routeModules:r}=$E(),[n,l]=Y.useState([]);return Y.useEffect(()=>{let c=!1;return CN(e,t,r).then(f=>{c||l(f)}),()=>{c=!0}},[e,t,r]),n}function _N({page:e,matches:t,...r}){let n=Sn(),{future:l,manifest:c,routeModules:f}=$E(),{basename:x}=UE(),{loaderData:y,matches:b}=MN(),S=Y.useMemo(()=>Rw(e,t,b,c,n,"data"),[e,t,b,c,n]),C=Y.useMemo(()=>Rw(e,t,b,c,n,"assets"),[e,t,b,c,n]),R=Y.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let P=new Set,_=!1;if(t.forEach(D=>{let F=c.routes[D.route.id];!F||!F.hasLoader||(!S.some(J=>J.route.id===D.route.id)&&D.route.id in y&&f[D.route.id]?.shouldRevalidate||F.hasClientLoader?_=!0:P.add(D.route.id))}),P.size===0)return[];let $=SN(e,x,l.unstable_trailingSlashAwareDataRequests,"data");return _&&P.size>0&&$.searchParams.set("_routes",t.filter(D=>P.has(D.route.id)).map(D=>D.route.id).join(",")),[$.pathname+$.search]},[x,l.unstable_trailingSlashAwareDataRequests,y,n,c,S,t,e,f]),O=Y.useMemo(()=>kN(C,c),[C,c]),M=BN(C);return Y.createElement(Y.Fragment,null,R.map(P=>Y.createElement("link",{key:P,rel:"prefetch",as:"fetch",href:P,...r})),O.map(P=>Y.createElement("link",{key:P,rel:"modulepreload",href:P,...r})),M.map(({key:P,link:_})=>Y.createElement("link",{key:P,nonce:r.nonce,..._,crossOrigin:_.crossOrigin??r.crossOrigin})))}function DN(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var LN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{LN&&(window.__reactRouterVersion="7.13.1")}catch{}
11function IN({basename:e,children:t,unstable_useTransitions:r,window:n}){let l=Y.useRef();l.current==null&&(l.current=xT({window:n,v5Compat:!0}));let c=l.current,[f,x]=Y.useState({action:c.action,location:c.location}),y=Y.useCallback(b=>{r===!1?x(b):Y.startTransition(()=>x(b))},[r]);return Y.useLayoutEffect(()=>c.listen(y),[c,y]),Y.createElement(dN,{basename:e,children:t,location:f.location,navigationType:f.action,navigator:c,unstable_useTransitions:r})}var VE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,i1=Y.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:l,reloadDocument:c,replace:f,unstable_mask:x,state:y,target:b,to:S,preventScrollReset:C,viewTransition:R,unstable_defaultShouldRevalidate:O,...M},P){let{basename:_,navigator:$,unstable_useTransitions:D}=Y.useContext(ci),F=typeof S=="string"&&VE.test(S),J=OE(S,_);S=J.to;let te=QT(S,{relative:l}),le=Sn(),se=null;if(x){let ie=cy(x,[],le.unstable_mask?le.unstable_mask.pathname:"/",!0);_!=="/"&&(ie.pathname=ie.pathname==="/"?_:el([_,ie.pathname])),se=$.createHref(ie)}let[L,W,z]=RN(n,M),H=UN(S,{replace:f,unstable_mask:x,state:y,target:b,preventScrollReset:C,relative:l,viewTransition:R,unstable_defaultShouldRevalidate:O,unstable_useTransitions:D});function Z(ie){t&&t(ie),ie.defaultPrevented||H(ie)}let ae=!(J.isExternal||c),ue=Y.createElement("a",{...M,...z,href:(ae?se:void 0)||J.absoluteURL||te,onClick:ae?Z:t,ref:DN(P,W),target:b,"data-discover":!F&&r==="render"?"true":void 0});return L&&!F?Y.createElement(Y.Fragment,null,ue,Y.createElement(ON,{page:te})):ue});i1.displayName="Link";var PN=Y.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:l=!1,style:c,to:f,viewTransition:x,children:y,...b},S){let C=Wp(f,{relative:b.relative}),R=Sn(),O=Y.useContext(uy),{navigator:M,basename:P}=Y.useContext(ci),_=O!=null&&GN(C)&&x===!0,$=M.encodeLocation?M.encodeLocation(C).pathname:C.pathname,D=R.pathname,F=O&&O.navigation&&O.navigation.location?O.navigation.location.pathname:null;r||(D=D.toLowerCase(),F=F?F.toLowerCase():null,$=$.toLowerCase()),F&&P&&(F=eo(F,P)||F);const J=$!=="/"&&$.endsWith("/")?$.length-1:$.length;let te=D===$||!l&&D.startsWith($)&&D.charAt(J)==="/",le=F!=null&&(F===$||!l&&F.startsWith($)&&F.charAt($.length)==="/"),se={isActive:te,isPending:le,isTransitioning:_},L=te?t:void 0,W;typeof n=="function"?W=n(se):W=[n,te?"active":null,le?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let z=typeof c=="function"?c(se):c;return Y.createElement(i1,{...b,"aria-current":L,className:W,ref:S,style:z,to:f,viewTransition:x},typeof y=="function"?y(se):y)});PN.displayName="NavLink";var FN=Y.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:l,state:c,method:f=Ox,action:x,onSubmit:y,relative:b,preventScrollReset:S,viewTransition:C,unstable_defaultShouldRevalidate:R,...O},M)=>{let{unstable_useTransitions:P}=Y.useContext(ci),_=HN(),$=YN(x,{relative:b}),D=f.toLowerCase()==="get"?"get":"post",F=typeof x=="string"&&VE.test(x),J=te=>{if(y&&y(te),te.defaultPrevented)return;te.preventDefault();let le=te.nativeEvent.submitter,se=le?.getAttribute("formmethod")||f,L=()=>_(le||te.currentTarget,{fetcherKey:t,method:se,navigate:r,replace:l,state:c,relative:b,preventScrollReset:S,viewTransition:C,unstable_defaultShouldRevalidate:R});P&&r!==!1?Y.startTransition(()=>L()):L()};return Y.createElement("form",{ref:M,method:D,action:$,onSubmit:n?y:J,...O,"data-discover":!F&&e==="render"?"true":void 0})});FN.displayName="Form";function zN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function HE(e){let t=Y.useContext(Oh);return es(t,zN(e)),t}function UN(e,{target:t,replace:r,unstable_mask:n,state:l,preventScrollReset:c,relative:f,viewTransition:x,unstable_defaultShouldRevalidate:y,unstable_useTransitions:b}={}){let S=yr(),C=Sn(),R=Wp(e,{relative:f});return Y.useCallback(O=>{if(gN(O,t)){O.preventDefault();let M=r!==void 0?r:Pp(C)===Pp(R),P=()=>S(e,{replace:M,unstable_mask:n,state:l,preventScrollReset:c,relative:f,viewTransition:x,unstable_defaultShouldRevalidate:y});b?Y.startTransition(()=>P()):P()}},[C,S,R,r,n,l,t,e,c,f,x,y,b])}function YE(e){ji(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=Y.useRef(wb(e)),r=Y.useRef(!1),n=Sn(),l=Y.useMemo(()=>yN(n.search,r.current?null:t.current),[n.search]),c=yr(),f=Y.useCallback((x,y)=>{const b=wb(typeof x=="function"?x(new URLSearchParams(l)):x);
11r.current=!0,c("?"+b,y)},[c,l]);return[l,f]}var $N=0,VN=()=>`__${String(++$N)}__`;function HN(){let{router:e}=HE("useSubmit"),{basename:t}=Y.useContext(ci),r=lN(),n=e.fetch,l=e.navigate;return Y.useCallback(async(c,f={})=>{let{action:x,method:y,encType:b,formData:S,body:C}=wN(c,t);if(f.navigate===!1){let R=f.fetcherKey||VN();await n(R,r,f.action||x,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:S,body:C,formMethod:f.method||y,formEncType:f.encType||b,flushSync:f.flushSync})}else await l(f.action||x,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:S,body:C,formMethod:f.method||y,formEncType:f.encType||b,replace:f.replace,state:f.state,fromRouteId:r,flushSync:f.flushSync,viewTransition:f.viewTransition})},[n,l,t,r])}function YN(e,{relative:t}={}){let{basename:r}=Y.useContext(ci),n=Y.useContext(ma);es(n,"useFormAction must be used inside a RouteContext");let[l]=n.matches.slice(-1),c={...Wp(e||".",{relative:t})},f=Sn();if(e==null){c.search=f.search;let x=new URLSearchParams(c.search),y=x.getAll("index");if(y.some(S=>S==="")){x.delete("index"),y.filter(C=>
11C).forEach(C=>x.append("index",C));let S=x.toString();c.search=S?`?${S}`:""}}return(!e||e===".")&&l.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:el([r,c.pathname])),Pp(c)}function GN(e,{relative:t}={}){let r=Y.useContext(_E);es(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=HE("useViewTransitionState"),l=Wp(e,{relative:t});if(!r.isTransitioning)return!1;let c=eo(r.currentLocation.pathname,n)||r.currentLocation.pathname,f=eo(r.nextLocation.pathname,n)||r.nextLocation.pathname;return zg(l.pathname,f)!=null||zg(l.pathname,c)!=null}var a1=TE(),Iv={exports:{}},Pv={};var Ow;function XN(){if(Ow)return Pv;Ow=1;var e=Xp();function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,l=e.useRef,c=e.useEffect,f=e.useMemo,x=e.useDebugValue;return Pv.useSyncExternalStoreWithSelector=function(y,b,S,C,R){var O=l(null);if(O.current===null){var M={hasValue:!1,value:null};O.current=M}else M=O.current;O=f(function(){function _(te){if(!$){if($=!0,D=te,te=C(te),R!==void 0&&M.hasValue){var le=M.value;if(R(le,te))return F=le}return F=te}if(le=F,r(D,te))return le;var se=C(te);return R!==void 0&&R(le,se)?(D=te,le):(D=te,F=se)}var $=!1,D,F,J=S===void 0?null:S;return[function(){return _(b())},J===null?void 0:function(){return _(J())}]},[b,S,C,R]);var P=n(y,O[0],O[1]);return c(function(){M.hasValue=!0,M.value=P},[P]),x(P),P},Pv}var Bw;function qN(){return Bw||(Bw=1,Iv.exports=XN()),Iv.exports}var WN=qN();function QN(e){e()}function JN(){let e=null,t=null;return{clear(){e=null,t=null},notify(){QN(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const l=t={callback:r,next:null,prev:t};return l.prev?l.prev.next=l:e=l,function(){!n||e===null||(n=!1,l.next?l.next.prev=l.prev:t=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var _w={notify(){},get:()=>[]};function KN(e,t){let r,n=_w,l=0,c=!1;function f(P){S();const _=n.subscribe(P);let $=!1;return()=>{$||($=!0,_(),C())}}function x(){n.notify()}function y(){M.onStateChange&&M.onStateChange()}function b(){return c}function S(){l++,r||(r=e.subscribe(y),n=JN())}function C(){l--,r&&l===0&&(r(),r=void 0,n.clear(),n=_w)}function R(){c||(c=!0,S())}function O(){c&&(c=!1,C())}const M={addNestedSub:f,notifyNestedSubs:x,handleChangeWrapper:y,isSubscribed:b,trySubscribe:R,tryUnsubscribe:O,getListeners:()=>n};return M}var ZN=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ej=ZN(),tj=()=>typeof navigator<"u"&&navigator.product==="ReactNative",rj=tj(),sj=()=>ej||rj?Y.useLayoutEffect:Y.useEffect,nj=sj(),ij=Symbol.for("react-redux-context"),aj=typeof globalThis<"u"?globalThis:{};function lj(){if(!Y.createContext)return{};const e=aj[ij]??=new Map;let t=e.get(Y.createContext);return t||(t=Y.createContext(null),e.set(Y.createContext,t)),t}var fc=lj();function oj(e){const{children:t,context:r,serverState:n,store:l}=e,c=Y.useMemo(()=>{const y=KN(l);return{store:l,subscription:y,getServerState:n?()=>n:void 0}},[l,n]),f=Y.useMemo(()=>l.getState(),[l]);nj(()=>{const{subscription:y}=c;return y.onStateChange=y.notifyNestedSubs,y.trySubscribe(),f!==l.getState()&&y.notifyNestedSubs(),()=>{y.tryUnsubscribe(),y.onStateChange=void 0}},[c,f]);const x=r||fc;return Y.createElement(x.Provider,{value:c},t)}var cj=oj;function l1(e=fc){return function(){return Y.useContext(e)}}var GE=l1();function XE(e=fc){const t=e===fc?GE:l1(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var uj=XE();function dj(e=fc){const t=e===fc?uj:XE(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var hj=dj(),fj=(e,t)=>e===t;function pj(e=fc){const t=e===fc?GE:l1(e),r=(n,l={})=>{const{equalityFn:c=fj}=typeof l=="function"?{equalityFn:l}:l,f=t(),{store:x,subscription:y,getServerState:b}=f;Y.useRef(!0);const S=Y.useCallback({[n.name](R){return n(R)}}[n.name],[n]),C=WN.useSyncExternalStoreWithSelector(y.addNestedSub,x.get
vendor: 4,996 bytes, line 11
11State,b||x.getState,S,c);return Y.useDebugValue(C),C};return Object.assign(r,{withTypes:()=>r}),r}var mj=pj();function Ys(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var xj=typeof Symbol=="function"&&Symbol.observable||"@@observable",Dw=xj,Fv=()=>Math.random().toString(36).substring(7).split("").join("."),gj={INIT:`@@redux/INIT${Fv()}`,REPLACE:`@@redux/REPLACE${Fv()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fv()}`},Ug=gj;function o1(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function qE(e,t,r){if(typeof e!="function")throw new Error(Ys(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ys(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ys(1));return r(qE)(e,t)}let n=e,l=t,c=new Map,f=c,x=0,y=!1;function b(){f===c&&(f=new Map,c.forEach((_,$)=>{f.set($,_)}))}function S(){if(y)throw new Error(Ys(3));return l}function C(_){if(typeof _!="function")throw new Error(Ys(4));if(y)throw new Error(Ys(5));let $=!0;b();const D=x++;return f.set(D,_),function(){if($){if(y)throw new Error(Ys(6));$=!1,b(),f.delete(D),c=null}}}function R(_){if(!o1(_))throw new Error(Ys(7));if(typeof _.type>"u")throw new Error(Ys(8));if(typeof _.type!="string")throw new Error(Ys(17));if(y)throw new Error(Ys(9));try{y=!0,l=n(l,_)}finally{y=!1}return(c=f).forEach(D=>{D()}),_}function O(_){if(typeof _!="function")throw new Error(Ys(10));n=_,R({type:Ug.REPLACE})}function M(){const _=C;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(Ys(11));function D(){const J=$;J.next&&J.next(S())}return D(),{unsubscribe:_(D)}},[Dw](){return this}}}return R({type:Ug.INIT}),{dispatch:R,subscribe:C,getState:S,replaceReducer:O,[Dw]:M}}function yj(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ug.INIT})>"u")throw new Error(Ys(12));if(typeof r(void 0,{type:Ug.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ys(13))})}function vj(e){const t=Object.keys(e),r={};for(let c=0;c<t.length;c++){const f=t[c];typeof e[f]=="function"&&(r[f]=e[f])}const n=Object.keys(r);let l;try{yj(r)}catch(c){l=c}return function(f={},x){if(l)throw l;let y=!1;const b={};for(let S=0;S<n.length;S++){const C=n[S],R=r[C],O=f[C],M=R(O,x);if(typeof M>"u")throw x&&x.type,new Error(Ys(14));b[C]=M,y=y||M!==O}return y=y||n.length!==Object.keys(f).length,y?b:f}}function $g(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function bj(...e){return t=>(r,n)=>{const l=t(r,n);let c=()=>{throw new Error(Ys(15))};const f={getState:l.getState,dispatch:(y,...b)=>c(y,...b)},x=e.map(y=>y(f));return c=$g(...x)(l.dispatch),{...l,dispatch:c}}}function wj(e){return o1(e)&&"type"in e&&typeof e.type=="string"}var WE=Symbol.for("immer-nothing"),Lw=Symbol.for("immer-draftable"),wn=Symbol.for("immer-state");function ca(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var oi=Object,kh=oi.getPrototypeOf,Vg="constructor",fy="prototype",Sb="configurable",Hg="enumerable",_x="writable",zp="value",to=e=>!!e&&!!e[wn];function pa(e){return e?QE(e)||my(e)||!!e[Lw]||!!e[Vg]?.[Lw]||xy(e)||gy(e):!1}var Sj=oi[fy][Vg].toString(),Iw=new WeakMap;function QE(e){if(!e||!c1(e))return!1;const t=kh(e);if(t===null||t===oi[fy])return!0;const r=oi.hasOwnProperty.call(t,Vg)&&t[Vg];if(r===Object)return!0;if(!yh(r))return!1;let n=Iw.get(r);return n===void 0&&(n=Function.toString.call(r),Iw.set(r,n)),n===Sj}function py(e,t,r=!0){Qp(e)===0?(r?Reflect.ownKeys(e):oi.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((n,l)=>t(l,n,e))}function Qp(e){const t=e[wn];return t?t.type_:my(e)?1:xy(e)?2:gy(e)?3:0}var Pw=(e,t,r=Qp(e))=>r===2?e.has(t):oi[fy].hasOwnProperty.call(e,t),Ab=(e,t,r=Qp(e))=>r===2?e.get(t):e[t],Yg=(e,t,r,n=Qp(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Aj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var my=Array.isArray,xy=e=>e instanceof Map,gy=e=>e instanceof Set,c1=e=>typeof e=="object",yh=e=>typeof e=="function",zv=e=>typeof e=="boolean";function Ej(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Ql=e=>e.copy_||e.base_,u1=e=>e.modified_?e.copy_:e.base_;function Eb(e,t){if(xy(e))return new Map(e);if(gy(e))return new Set(e);if(my(e))return Array[fy].slice.call(e);const r=QE(e);if(t===!0||t==="class_only"&&!r){const n=oi.getOwnPropertyDescriptors(e);delete n[wn];let l=Reflect.ownKeys(n);for(let c=0;c<l.length;c++){const f=l[c],x=n[f];x[_x]===!1&&(x[_x]=!0,x[Sb]=!0),(x.get||x.set)&&(n[f]={[Sb]:!0,[_x]:!0,[Hg]:x[Hg],[zp]:e[f]})}return oi.create(kh(e),n)}else{const n=kh(e);if(n!==null&&r)return{...e};const l=oi.create(n);return oi.assign(l,e)}}function d1(e,t=!1){return yy(e)||to(e)||!pa(e)||(Qp(e)>
vendor: 6,668 bytes, line 11
111&&oi.defineProperties(e,{set:bx,add:bx,clear:bx,delete:bx}),oi.freeze(e),t&&py(e,(r,n)=>{d1(n,!0)},!1)),e}function Cj(){ca(2)}var bx={[zp]:Cj};function yy(e){return e===null||!c1(e)?!0:oi.isFrozen(e)}var Gg="MapSet",Cb="Patches",Fw="ArrayMethods",JE={};function Ou(e){const t=JE[e];return t||ca(0,e),t}var zw=e=>!!JE[e],Up,KE=()=>Up,kj=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:zw(Gg)?Ou(Gg):void 0,arrayMethodsPlugin_:zw(Fw)?Ou(Fw):void 0});function Uw(e,t){t&&(e.patchPlugin_=Ou(Cb),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kb(e){Tb(e),e.drafts_.forEach(Tj),e.drafts_=null}function Tb(e){e===Up&&(Up=e.parent_)}var $w=e=>Up=kj(Up,e);function Tj(e){const t=e[wn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Vw(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[wn].modified_&&(kb(t),ca(4)),pa(e)&&(e=Hw(t,e));const{patchPlugin_:l}=t;l&&l.generateReplacementPatches_(r[wn].base_,e,t)}else e=Hw(t,r);return Nj(t,e,!0),kb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==WE?e:void 0}function Hw(e,t){if(yy(t))return t;const r=t[wn];if(!r)return Xg(t,e.handledSet_,e);if(!vy(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);t2(r,e)}return r.copy_}function Nj(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&d1(t,r)}function ZE(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var vy=(e,t)=>e.scope_===t,jj=[];function e2(e,t,r,n){const l=Ql(e),c=e.type_;if(n!==void 0&&Ab(l,n,c)===t){Yg(l,n,r,c);return}if(!e.draftLocations_){const x=e.draftLocations_=new Map;py(l,(y,b)=>{if(to(b)){const S=x.get(b)||[];S.push(y),x.set(b,S)}})}const f=e.draftLocations_.get(t)??jj;for(const x of f)Yg(l,x,r,c)}function Mj(e,t,r){e.callbacks_.push(function(l){const c=t;if(!c||!vy(c,l))return;l.mapSetPlugin_?.fixSetContents(c);const f=u1(c);e2(e,c.draft_??c,f,r),t2(c,l)})}function t2(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const l=n.getPath(e);l&&n.generatePatches_(e,l,t)}ZE(e)}}function Rj(e,t,r){const{scope_:n}=e;if(to(r)){const l=r[wn];vy(l,n)&&l.callbacks_.push(function(){Dx(e);const f=u1(l);e2(e,r,f,t)})}else pa(r)&&e.callbacks_.push(function(){const c=Ql(e);e.type_===3?c.has(r)&&Xg(r,n.handledSet_,n):Ab(c,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Xg(Ab(e.copy_,t,e.type_),n.handledSet_,n)})}function Xg(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||to(e)||t.has(e)||!pa(e)||yy(e)||(t.add(e),py(e,(n,l)=>{if(to(l)){const c=l[wn];if(vy(c,r)){const f=u1(c);Yg(e,n,f,e.type_),ZE(c)}}else pa(l)&&Xg(l,t,r)})),e}function Oj(e,t){const r=my(e),n={type_:r?1:0,scope_:t?t.scope_:KE(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let l=n,c=qg;r&&(l=[n],c=$p);const{revoke:f,proxy:x}=Proxy.revocable(l,c);return n.draft_=x,n.revoke_=f,[x,n]}var qg={get(e,t){if(t===wn)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const l=Ql(e);if(!Pw(l,t,e.type_))return Bj(e,l,t);const c=l[t];if(e.finalized_||!pa(c)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Ej(t))return c;if(c===Uv(e.base_,t)){Dx(e);const f=e.type_===1?+t:t,x=jb(e.scope_,c,e,f);return e.copy_[f]=x}return c},has(e,t){return t in Ql(e)},ownKeys(e){return Reflect.ownKeys(Ql(e))},set(e,t,r){const n=r2(Ql(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const l=Uv(Ql(e),t),c=l?.[wn];if(c&&c.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Aj(r,l)&&(r!==void 0||Pw(e.base_,t,e.type_)))return!0;Dx(e),Nb(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Rj(e,t,r)),!0},deleteProperty(e,t){return Dx(e),Uv(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Nb(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ql(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[_x]:!0,[Sb]:e.type_!==1||t!=="length",[Hg]:n[Hg],[zp]:r[t]}},defineProperty(){ca(11)},getPrototypeOf(e){return kh(e.base_)},setPrototypeOf(){ca(12)}},$p={};for(let e in qg){let t=qg[e];$p[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}$p.deleteProperty=function(e,t){return $p.set.call(this,e,t,void 0)};$p.set=function(e,t,r){return qg.set.call(this,e[0],t,r,e[0])};function Uv(e,t){const r=e[wn];return(r?Ql(r):e)[t]}function Bj(e,t,r){const n=r2(t,r);return n?zp in n?n[zp]:n.get?.call(e.draft_):void 0}function r2(e,t){if(!(t in e))return;let r=kh(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=kh(r)}}function Nb(e){e.modified_||(e.modified_=!0,e.parent_&&Nb(e.parent_))}function Dx(e){e.copy_||(e.assigned_=new Map,e.copy_=Eb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _j=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(yh(t)&&!yh(r)){const c=r;r=t;const f=this;return function(y=c,...b){return f.produce(y,S=>r.call(this,S,...b))}}yh(r)||ca(6),n!==void 0&&!yh(n)&&ca(7);let l;if(pa(t)){const c=$w(this),f=jb(c,t,void 0);let x=!0;try{l=r(f),x=!1}finally{x?kb(c):Tb(c)}return Uw(c,n),Vw(l,c)}else if(!t||!c1(t)){if(l=r(t),l===void 0&&(l=t),l===WE&&(l=void 0),this.autoFreeze_&&d1(l,!0),n){const c=[],f=[];Ou(Cb).generateReplacementPatches_(t,l,{patches_:c,inversePatches_:f}),n(c,f)}return l}else ca(1,t)},this.produceWithPatches=(t,r)=>{if(yh(t))return(f,...x)=>this.produceWithPatches(f,y=>t(y,...x));let n,l;return[this.produce(t,r,(f,x)=>{n=f,l=x}),n,l]},zv(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),zv(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),zv(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){pa(e)||ca(8),to(e)&&(e=Dj(e));const t=$w(this),r=jb(t,e,void 0);return r[wn].isManual_=!0,Tb(t),r}finishDraft(e,t){const r=e&&e[wn];(!r||!r.isManual_)&&ca(9);const{scope_:n}=r;return Uw(n,t),Vw(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const l=t[r];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}r>
vendor: 4,634 bytes, line 11
11-1&&(t=t.slice(r+1));const n=Ou(Cb).applyPatches_;return to(e)?n(e,t):this.produce(e,l=>n(l,t))}};function jb(e,t,r,n){const[l,c]=xy(t)?Ou(Gg).proxyMap_(t,r):gy(t)?Ou(Gg).proxySet_(t,r):Oj(t,r);return(r?.scope_??KE()).drafts_.push(l),c.callbacks_=r?.callbacks_??[],c.key_=n,r&&n!==void 0?Mj(r,c,n):c.callbacks_.push(function(y){y.mapSetPlugin_?.fixSetContents(c);const{patchPlugin_:b}=y;c.modified_&&b&&b.generatePatches_(c,[],y)}),l}function Dj(e){return to(e)||ca(10,e),s2(e)}function s2(e){if(!pa(e)||yy(e))return e;const t=e[wn];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Eb(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Eb(e,!0);return py(r,(l,c)=>{Yg(r,l,s2(c))},n),t&&(t.finalized_=!1),r}var Lj=new _j,n2=Lj.produce;function i2(e){return({dispatch:r,getState:n})=>l=>c=>typeof c=="function"?c(r,n,e):l(c)}var Ij=i2(),Pj=i2,Fj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$g:$g.apply(null,arguments)},zj=e=>e&&typeof e.match=="function";function Np(e,t){function r(...n){if(t){let l=t(...n);if(!l)throw new Error(Kl(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>wj(n)&&n.type===e,r}var a2=class Cp extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Cp.prototype)}static get[Symbol.species](){return Cp}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Cp(...t[0].concat(this)):new Cp(...t.concat(this))}};function Yw(e){return pa(e)?n2(e,()=>{}):e}function wx(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Uj(e){return typeof e=="boolean"}var $j=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:l=!0,actionCreatorCheck:c=!0}=t??{};let f=new a2;return r&&(Uj(r)?f.push(Ij):f.push(Pj(r.extraArgument))),f},Vj="RTK_autoBatch",Gw=e=>t=>{setTimeout(t,e)},Hj=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let l=!0,c=!1,f=!1;const x=new Set,y=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gw(10):e.type==="callback"?e.queueNotification:Gw(e.timeout),b=()=>{f=!1,c&&(c=!1,x.forEach(S=>S()))};return Object.assign({},n,{subscribe(S){const C=()=>l&&S(),R=n.subscribe(C);return x.add(S),()=>{R(),x.delete(S)}},dispatch(S){try{return l=!S?.meta?.[Vj],c=!l,c&&(f||(f=!0,y(b))),n.dispatch(S)}finally{l=!0}}})},Yj=e=>function(r){const{autoBatch:n=!0}=r??{};let l=new a2(e);return n&&l.push(Hj(typeof n=="object"?n:void 0)),l};function Gj(e){const t=$j(),{reducer:r=void 0,middleware:n,devTools:l=!0,preloadedState:c=void 0,enhancers:f=void 0}=e||{};let x;if(typeof r=="function")x=r;else if(o1(r))x=vj(r);else throw new Error(Kl(1));let y;typeof n=="function"?y=n(t):y=t();let b=$g;l&&(b=Fj({trace:!1,...typeof l=="object"&&l}));const S=bj(...y),C=Yj(S);let R=typeof f=="function"?f(C):C();const O=b(...R);return qE(x,c,O)}function l2(e){const t={},r=[];let n;const l={addCase(c,f){const x=typeof c=="string"?c:c.type;if(!x)throw new Error(Kl(28));if(x in t)throw new Error(Kl(29));return t[x]=f,l},addAsyncThunk(c,f){return f.pending&&(t[c.pending.type]=f.pending),f.rejected&&(t[c.rejected.type]=f.rejected),f.fulfilled&&(t[c.fulfilled.type]=f.fulfilled),f.settled&&r.push({matcher:c.settled,reducer:f.settled}),l},addMatcher(c,f){return r.push({matcher:c,reducer:f}),l},addDefaultCase(c){return n=c,l}};return e(l),[t,r,n]}function Xj(e){return typeof e=="function"}function qj(e,t){let[r,n,l]=l2(t),c;if(Xj(e))c=()=>Yw(e());else{const x=Yw(e);c=()=>x}function f(x=c(),y){let b=[r[y.type],...n.filter(({matcher:S})=>S(y)).map(({reducer:S})=>S)];return b.filter(S=>!!S).length===0&&(b=[l]),b.reduce((S,C)=>{if(C)if(to(S)){const O=C(S,y);return O===void 0?S:O}else{if(pa(S))return n2(S,R=>C(R,y));{const R=C(S,y);if(R===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}}return S},x)}return f.getInitialState=c,f}var Wj=(e,t)=>zj(e)?e.match(t):e(t);function Qj(...e){return t=>e.some(r=>Wj(r,t))}var Jj="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Kj=(e=21)=>{let t="",r=e;for(;r--;)t+=Jj[Math.random()*64|0];return t},Zj=["name","message","stack","code"],$v=class{constructor(e,t){this.payload=e,this.meta=t}_type},Xw=class{constructor(e,t){this.payload=e,this.meta=t}_type},eM=e=>{if(typeof e=="object"&&e!==null){const t={};
vendor: 4,443 bytes, line 11
11for(const r of Zj)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},qw="External signal was aborted",At=(()=>{function e(t,r,n){const l=Np(t+"/fulfilled",(y,b,S,C)=>({payload:y,meta:{...C||{},arg:S,requestId:b,requestStatus:"fulfilled"}})),c=Np(t+"/pending",(y,b,S)=>({payload:void 0,meta:{...S||{},arg:b,requestId:y,requestStatus:"pending"}})),f=Np(t+"/rejected",(y,b,S,C,R)=>({payload:C,error:(n&&n.serializeError||eM)(y||"Rejected"),meta:{...R||{},arg:S,requestId:b,rejectedWithValue:!!C,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"}}));function x(y,{signal:b}={}){return(S,C,R)=>{const O=n?.idGenerator?n.idGenerator(y):Kj(),M=new AbortController;let P,_;function $(F){_=F,M.abort()}b&&(b.aborted?$(qw):b.addEventListener("abort",()=>$(qw),{once:!0}));const D=(async function(){let F;try{let te=n?.condition?.(y,{getState:C,extra:R});if(rM(te)&&(te=await te),te===!1||M.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const le=new Promise((se,L)=>{P=()=>{L({name:"AbortError",message:_||"Aborted"})},M.signal.addEventListener("abort",P,{once:!0})});S(c(O,y,n?.getPendingMeta?.({requestId:O,arg:y},{getState:C,extra:R}))),F=await Promise.race([le,Promise.resolve(r(y,{dispatch:S,getState:C,extra:R,requestId:O,signal:M.signal,abort:$,rejectWithValue:(se,L)=>new $v(se,L),fulfillWithValue:(se,L)=>new Xw(se,L)})).then(se=>{if(se instanceof $v)throw se;return se instanceof Xw?l(se.payload,O,y,se.meta):l(se,O,y)})])}catch(te){F=te instanceof $v?f(null,O,y,te.payload,te.meta):f(te,O,y)}finally{P&&M.signal.removeEventListener("abort",P)}return n&&!n.dispatchConditionRejection&&f.match(F)&&F.meta.condition||S(F),F})();return Object.assign(D,{abort:$,requestId:O,arg:y,unwrap(){return D.then(tM)}})}}return Object.assign(x,{pending:c,rejected:f,fulfilled:l,settled:Qj(f,l),typePrefix:t})}return e.withTypes=()=>e,e})();function tM(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function rM(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sM=Symbol.for("rtk-slice-createasyncthunk");function nM(e,t){return`${e}/${t}`}function iM({creators:e}={}){const t=e?.asyncThunk?.[sM];return function(n){const{name:l,reducerPath:c=l}=n;if(!l)throw new Error(Kl(11));const f=(typeof n.reducers=="function"?n.reducers(lM()):n.reducers)||{},x=Object.keys(f),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},b={addCase(F,J){const te=typeof F=="string"?F:F.type;if(!te)throw new Error(Kl(12));if(te in y.sliceCaseReducersByType)throw new Error(Kl(13));return y.sliceCaseReducersByType[te]=J,b},addMatcher(F,J){return y.sliceMatchers.push({matcher:F,reducer:J}),b},exposeAction(F,J){return y.actionCreators[F]=J,b},exposeCaseReducer(F,J){return y.sliceCaseReducersByName[F]=J,b}};x.forEach(F=>{const J=f[F],te={reducerName:F,type:nM(l,F),createNotation:typeof n.reducers=="function"};cM(J)?dM(te,J,b,t):oM(te,J,b)});function S(){const[F={},J=[],te=void 0]=typeof n.extraReducers=="function"?l2(n.extraReducers):[n.extraReducers],le={...F,...y.sliceCaseReducersByType};return qj(n.initialState,se=>{for(let L in le)se.addCase(L,le[L]);for(let L of y.sliceMatchers)se.addMatcher(L.matcher,L.reducer);for(let L of J)se.addMatcher(L.matcher,L.reducer);te&&se.addDefaultCase(te)})}const C=F=>F,R=new Map,O=new WeakMap;let M;function P(F,J){return M||(M=S()),M(F,J)}function _(){return M||(M=S()),M.getInitialState()}function $(F,J=!1){function te(se){let L=se[F];return typeof L>"u"&&J&&(L=wx(O,te,_)),L}function le(se=C){const L=wx(R,J,()=>new WeakMap);return wx(L,se,()=>{const W={};for(const[z,H]of Object.entries(n.selectors??{}))W[z]=aM(H,se,()=>wx(O,se,_),J);return W})}return{reducerPath:F,getSelectors:le,get selectors(){return le(te)},selectSlice:te}}const D={name:l,reducer:P,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:_,...$(c),injectInto(F,{reducerPath:J,...te}={}){const le=J??c;return F.inject({reducerPath:le,reducer:P},te),{...D,...$(le,!0)}}};return D}}function aM(e,t,r,n){function l(c,...f){let x=t(c);return typeof x>"u"&&n&&(x=r()),e(x,...f)}return l.unwrapped=e,l}var ln=iM();function lM(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}
vendor: 23,484 bytes, lines 11-13
11[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function oM({type:e,reducerName:t,createNotation:r},n,l){let c,f;if("reducer"in n){if(r&&!uM(n))throw new Error(Kl(17));c=n.reducer,f=n.prepare}else c=n;l.addCase(e,c).exposeCaseReducer(t,c).exposeAction(t,f?Np(e,f):Np(e))}function cM(e){return e._reducerDefinitionType==="asyncThunk"}function uM(e){return e._reducerDefinitionType==="reducerWithPrepare"}function dM({type:e,reducerName:t},r,n,l){if(!l)throw new Error(Kl(18));const{payloadCreator:c,fulfilled:f,pending:x,rejected:y,settled:b,options:S}=r,C=l(e,c,S);n.exposeAction(t,C),f&&n.addCase(C.fulfilled,f),x&&n.addCase(C.pending,x),y&&n.addCase(C.rejected,y),b&&n.addMatcher(C.settled,b),n.exposeCaseReducer(t,{fulfilled:f||Sx,pending:x||Sx,rejected:y||Sx,settled:b||Sx})}function Sx(){}function Kl(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function o2(e,t){return function(){return e.apply(t,arguments)}}const{toString:hM}=Object.prototype,{getPrototypeOf:h1}=Object,{iterator:by,toStringTag:c2}=Symbol,wy=(e=>t=>{const r=hM.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),xa=e=>(e=e.toLowerCase(),t=>wy(t)===e),Sy=e=>t=>typeof t===e,{isArray:_h}=Array,Th=Sy("undefined");function Jp(e){return e!==null&&!Th(e)&&e.constructor!==null&&!Th(e.constructor)&&Vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const u2=xa("ArrayBuffer");function fM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&u2(e.buffer),t}const pM=Sy("string"),Vn=Sy("function"),d2=Sy("number"),Kp=e=>e!==null&&typeof e=="object",mM=e=>e===!0||e===!1,Lx=e=>{if(wy(e)!=="object")return!1;const t=h1(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(c2 in e)&&!(by in e)},xM=e=>{if(!Kp(e)||Jp(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gM=xa("Date"),yM=xa("File"),vM=e=>!!(e&&typeof e.uri<"u"),bM=e=>e&&typeof e.getParts<"u",wM=xa("Blob"),SM=xa("FileList"),AM=e=>Kp(e)&&Vn(e.pipe);function EM(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ww=EM(),Qw=typeof Ww.FormData<"u"?Ww.FormData:void 0,CM=e=>{let t;return e&&(Qw&&e instanceof Qw||Vn(e.append)&&((t=wy(e))==="formdata"||t==="object"&&Vn(e.toString)&&e.toString()==="[object FormData]"))},kM=xa("URLSearchParams"),[TM,NM,jM,MM]=["ReadableStream","Request","Response","Headers"].map(xa),RM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zp(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,l;if(typeof e!="object"&&(e=[e]),_h(e))for(n=0,l=e.length;n<l;n++)t.call(null,e[n],n,e);else{if(Jp(e))return;const c=r?Object.getOwnPropertyNames(e):Object.keys(e),f=c.length;let x;for(n=0;n<f;n++)x=c[n],t.call(null,e[x],x,e)}}function h2(e,t){if(Jp(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,l;for(;n-- >0;)if(l=r[n],t===l.toLowerCase())return l;return null}const Eu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,f2=e=>!Th(e)&&e!==Eu;function Mb(){const{caseless:e,skipUndefined:t}=f2(this)&&this||{},r={},n=(l,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=e&&h2(r,c)||c;Lx(r[f])&&Lx(l)?r[f]=Mb(r[f],l):Lx(l)?r[f]=Mb({},l):_h(l)?r[f]=l.slice():(!t||!Th(l))&&(r[f]=l)};for(let l=0,c=arguments.length;l<c;l++)arguments[l]&&Zp(arguments[l],n);return r}const OM=(e,t,r,{allOwnKeys:n}={})=>(Zp(t,(l,c)=>{r&&Vn(l)?Object.defineProperty(e,c,{value:o2(l,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,c,{value:l,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),BM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_M=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},DM=(e,t,r,n)=>{let l,c,f;const x={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),c=l.length;c-- >0;)f=l[c],(!n||n(f,e,t))&&!x[f]&&(t[f]=e[f],x[f]=!0);e=r!==!1&&h1(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},LM=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},IM=e=>{if(!e)return null;if(_h(e))return e;let t=e.length;if(!d2(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},PM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&h1(Uint8Array)),FM=(e,t)=>{const n=(e&&e[by]).call(e);let l;for(;(l=n.next())&&!l.done;){const c=l.value;t.call(e,c[0],c[1])}},zM=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},UM=xa("HTMLFormElement"),$M=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,l){return n.toUpperCase()+l}),Jw=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),VM=xa("RegExp"),p2=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Zp(r,(l,c)=>{let f;(f=t(l,c,e))!==!1&&(n[c]=f||l)}),Object.defineProperties(e,n)},HM=e=>{p2(e,(t,r)=>{if(Vn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Vn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},YM=(e,t)=>{const r={},n=l=>{l.forEach(c=>{r[c]=!0})};return _h(e)?n(e):n(String(e).split(t)),r},GM=()=>{},XM=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qM(e){return!!(e&&Vn(e.append)&&e[c2]==="FormData"&&e[by])}const WM=e=>{const t=new Array(10),r=(n,l)=>{if(Kp(n)){if(t.indexOf(n)>=0)return;if(Jp(n))return n;if(!("toJSON"in n)){t[l]=n;const c=_h(n)?[]:{};return Zp(n,(f,x)=>{const y=r(f,l+1);!Th(y)&&(c[x]=y)}),t[l]=void 0,c}}return n};return r(e,0)},QM=xa("AsyncFunction"),JM=e=>e&&(Kp(e)||Vn(e))&&Vn(e.then)&&Vn(e.catch),m2=((e,t)=>e?setImmediate:t?((r,n)=>(Eu.addEventListener("message",({source:l,data:c})=>{l===Eu&&c===r&&n.length&&n.shift()()},!1),l=>{n.push(l),Eu.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Vn(Eu.postMessage)),KM=typeof queueMicrotask<"u"?queueMicrotask.bind(Eu):typeof process<"u"&&process.nextTick||m2,ZM=e=>e!=null&&Vn(e[by]),De={isArray:_h,isArrayBuffer:u2,isBuffer:Jp,isFormData:CM,isArrayBufferView:fM,isString:pM,isNumber:d2,isBoolean:mM,isObject:Kp,isPlainObject:Lx,isEmptyObject:xM,isReadableStream:TM,isRequest:NM,isResponse:jM,isHeaders:MM,isUndefined:Th,isDate:gM,isFile:yM,isReactNativeBlob:vM,isReactNative:bM,isBlob:wM,isRegExp:VM,isFunction:Vn,isStream:AM,isURLSearchParams:kM,isTypedArray:PM,isFileList:SM,forEach:Zp,merge:Mb,extend:OM,trim:RM,stripBOM:BM,inherits:_M,toFlatObject:DM,kindOf:wy,kindOfTest:xa,endsWith:LM,toArray:IM,forEachEntry:FM,matchAll:zM,isHTMLForm:UM,hasOwnProperty:Jw,hasOwnProp:Jw,reduceDescriptors:p2,freezeMethods:HM,toObjectSet:YM,toCamelCase:$M,noop:GM,toFiniteNumber:XM,findKey:h2,global:Eu,isContextDefined:f2,isSpecCompliantForm:qM,toJSONObject:WM,isAsyncFn:QM,isThenable:JM,setImmediate:m2,asap:KM,isIterable:ZM};let Tt=class x2 extends Error{static from(t,r,n,l,c,f){const x=new x2(t.message,r||t.code,n,l,c);return x.cause=t,x.name=t.name,t.status!=null&&x.status==null&&(x.status=t.status),f&&Object.assign(x,f),x}constructor(t,r,n,l,c){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),l&&(this.request=l),c&&(this.response=c,this.status=c.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:De.toJSONObject(this.config),code:this.code,status:this.status}}};Tt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Tt.ERR_BAD_OPTION="ERR_BAD_OPTION";Tt.ECONNABORTED="ECONNABORTED";Tt.ETIMEDOUT="ETIMEDOUT";Tt.ERR_NETWORK="ERR_NETWORK";Tt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Tt.ERR_DEPRECATED="ERR_DEPRECATED";Tt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Tt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Tt.ERR_CANCELED="ERR_CANCELED";Tt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Tt.ERR_INVALID_URL="ERR_INVALID_URL";const e4=null;function Rb(e){return De.isPlainObject(e)||De.isArray(e)}function g2(e){return De.endsWith(e,"[]")?e.slice(0,-2):e}function Vv(e,t,r){return e?e.concat(t).map(function(l,c){return l=g2(l),!r&&c?"["+l+"]":l}).join(r?".":""):t}function t4(e){return De.isArray(e)&&!e.some(Rb)}const r4=De.toFlatObject(De,{},null,function(t){return/^is[A-Z]/.test(t)});function Ay(e,t,r){if(!De.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=De.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P,_){return!De.isUndefined(_[P])});const n=r.metaTokens,l=r.visitor||S,c=r.dots,f=r.indexes,y=(r.Blob||typeof Blob<"u"&&Blob)&&De.isSpecCompliantForm(t);if(!De.isFunction(l))throw new TypeError("visitor must be a function");function b(M){if(M===null)return"";if(De.isDate(M))return M.toISOString();if(De.isBoolean(M))return M.toString();if(!y&&De.isBlob(M))throw new Tt("Blob is not supported. Use a Buffer instead.");return De.isArrayBuffer(M)||De.isTypedArray(M)?y&&typeof Blob=="function"?new Blob([M]):Buffer.from(M):M}function S(M,P,_){let $=M;if(De.isReactNative(t)&&De.isReactNativeBlob(M))return t.append(Vv(_,P,c),b(M)),!1;if(M&&!_&&typeof M=="object"){if(De.endsWith(P,"{}"))P=n?P:P.slice(0,-2),M=JSON.stringify(M);else if(De.isArray(M)&&t4(M)||(De.isFileList(M)||De.endsWith(P,"[]"))&&($=De.toArray(M)))return P=g2(P),$.forEach(function(F,J){!(De.isUndefined(F)||F===null)&&t.append(f===!0?Vv([P],J,c):f===null?P:P+"[]",b(F))}),!1}return Rb(M)?!0:(t.append(Vv(_,P,c),b(M)),!1)}const C=[],R=Object.assign(r4,{defaultVisitor:S,convertValue:b,isVisitable:Rb});function O(M,P){if(!De.isUndefined(M)){if(C.indexOf(M)!==-1)throw Error("Circular reference detected in "+P.join("."));C.push(M),De.forEach(M,function($,D){(!(De.isUndefined($)||$===null)&&l.call(t,$,De.isString(D)?D.trim():D,P,R))===!0&&O($,P?P.concat(D):[D])}),C.pop()}}if(!De.isObject(e))throw new TypeError("data must be an object");return O(e),t}function Kw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function f1(e,t){this._pairs=[],e&&Ay(e,this,t)}const y2=f1.prototype;y2.append=function(t,r){this._pairs.push([t,r])};y2.toString=function(t){const r=t?function(n){return t.call(this,n,Kw)}:Kw;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function s4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function v2(e,t,r){if(!t)return e;const n=r&&r.encode||s4,l=De.isFunction(r)?{serialize:r}:r,c=l&&l.serialize;let f;if(c?f=c(t,l):f=De.isURLSearchParams(t)?t.toString():new f1(t,l).toString(n),f){const x=e.indexOf("#");x!==-1&&(e=e.slice(0,x)),e+=(e.indexOf("?")===-1?"?":"&")+f}return e}class Zw{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){De.forEach(this.handlers,function(n){n!==null&&t(n)})}}const p1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},n4=typeof URLSearchParams<"u"?URLSearchParams:f1,i4=typeof FormData<"u"?FormData:null,a4=typeof Blob<"u"?Blob:null,l4={isBrowser:!0,classes:{URLSearchParams:n4,FormData:i4,Blob:a4},protocols:["http","https","file","blob","url","data"]},m1=typeof window<"u"&&typeof document<"u",Ob=typeof navigator=="object"&&navigator||void 0,o4=m1&&(!Ob||["ReactNative","NativeScript","NS"].indexOf(Ob.product)<0),c4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",u4=m1&&window.location.href||"http://localhost",d4=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:m1,hasStandardBrowserEnv:o4,hasStandardBrowserWebWorkerEnv:c4,navigator:Ob,origin:u4},Symbol.toStringTag,{value:"Module"})),nn={...d4,...l4};function h4(e,t){return Ay(e,new nn.classes.URLSearchParams,{visitor:function(r,n,l,c){return nn.isNode&&De.isBuffer(r)?(this.append(n,r.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)},...t})}function f4(e){return De.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function p4(e){const t={},r=Object.keys(e);let n;const l=r.length;let c;for(n=0;n<l;n++)c=r[n],t[c]=e[c];return t}function b2(e){function t(r,n,l,c){let f=r[c++];if(f==="__proto__")return!0;const x=Number.isFinite(+f),y=c>=r.length;return f=!f&&De.isArray(l)?l.length:f,y?(De.hasOwnProp(l,f)?l[f]=[l[f],n]:l[f]=n,!x):((!l[f]||!De.isObject(l[f]))&&(l[f]=[]),t(r,n,l[f],c)&&De.isArray(l[f])&&(l[f]=p4(l[f])),!x)}if(De.isFormData(e)&&De.isFunction(e.entries)){const r={};return De.forEachEntry(e,(n,l)=>{t(f4(n),l,r,0)}),r}return null}function m4(e,t,r){if(De.isString(e))try{return(t||JSON.parse)(e),De.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const e0={transitional:p1,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",l=n.indexOf("application/json")>-1,c=De.isObject(t);if(c&&De.isHTMLForm(t)&&(t=new FormData(t)),De.isFormData(t))return l?JSON.stringify(b2(t)):t;if(De.isArrayBuffer(t)||De.isBuffer(t)||De.isStream(t)||De.isFile(t)||De.isBlob(t)||De.isReadableStream(t))return t;if(De.isArrayBufferView(t))return t.buffer;if(De.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let x;if(c){if(n.indexOf("application/x-www-form-urlencoded")>-1)return h4(t,this.formSerializer).toString();if((x=De.isFileList(t))||n.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Ay(x?{"files[]":t}:t,y&&new y,this.formSerializer)}}return c||l?(r.setContentType("application/json",!1),m4(t)):t}],transformResponse:[function(t){const r=this.transitional||e0.transitional,n=r&&r.forcedJSONParsing,l=this.responseType==="json";if(De.isResponse(t)||De.isReadableStream(t))return t;if(t&&De.isString(t)&&(n&&!this.responseType||l)){const f=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t,this.parseReviver)}catch(x){if(f)throw x.name==="SyntaxError"?Tt.from(x,Tt.ERR_BAD_RESPONSE,this,null,this.response):x}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nn.classes.FormData,Blob:nn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};De.forEach(["delete","get","head","post","put","patch"],e=>{e0.headers[e]={}});const x4=De.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),g4=e=>{const t={};let r,n,l;return e&&e.split(` 12`).forEach(function(f){l=f.indexOf(":"),r=f.substring(0,l).trim().toLowerCase(),n=f.substring(l+1).trim(),!(!r||t[r]&&x4[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},eS=Symbol("internals");function bp(e){return e&&String(e).trim().toLowerCase()}function Ix(e){return e===!1||e==null?e:De.isArray(e)?e.map(Ix):String(e)}function y4(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const v4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hv(e,t,r,n,l){if(De.isFunction(n))return n.call(this,t,r);if(l&&(t=r),!!De.isString(t)){if(De.isString(n))return t.indexOf(n)!==-1;if(De.isRegExp(n))return n.test(t)}}function b4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function w4(e,t){const r=De.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(l,c,f){return this[n].call(this,t,l,c,f)},configurable:!0})})}let Hn=class{constructor(t){t&&this.set(t)}set(t,r,n){const l=this;function c(x,y,b){const S=bp(y);if(!S)throw new Error("header name must be a non-empty string");const C=De.findKey(l,S);(!C||l[C]===void 0||b===!0||b===void 0&&l[C]!==!1)&&(l[C||y]=Ix(x))}const f=(x,y)=>De.forEach(x,(b,S)=>c(b,S,y));if(De.isPlainObject(t)||t instanceof this.constructor)f(t,r);else if(De.isString(t)&&(t=t.trim())&&!v4(t))f(g4(t),r);else if(De.isObject(t)&&De.isIterable(t)){let x={},y,b;for(const S of t){if(!De.isArray(S))throw TypeError("Object iterator must return a key-value pair");x[b=S[0]]=(y=x[b])?De.isArray(y)?[...y,S[1]]:[y,S[1]]:S[1]}f(x,r)}else t!=null&&c(r,t,n);return this}get(t,r){if(t=bp(t),t){const n=De.findKey(this,t);if(n){const l=this[n];if(!r)return l;if(r===!0)return y4(l);if(De.isFunction(r))return r.call(this,l,n);if(De.isRegExp(r))return r.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=bp(t),t){const n=De.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Hv(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let l=!1;function c(f){if(f=bp(f),f){const x=De.findKey(n,f);x&&(!r||Hv(n,n[x],x,r))&&(delete n[x],l=!0)}}return De.isArray(t)?t.forEach(c):c(t),l}clear(t){const r=Object.keys(this);let n=r.length,l=!1;for(;n--;){const c=r[n];(!t||Hv(this,this[c],c,t,!0))&&(delete this[c],l=!0)}return l}normalize(t){const r=this,n={};return De.forEach(this,(l,c)=>{const f=De.findKey(n,c);if(f){r[f]=Ix(l),delete r[c];return}const x=t?b4(c):String(c).trim();x!==c&&delete r[c],r[x]=Ix(l),n[x]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return De.forEach(this,(n,l)=>{n!=null&&n!==!1&&(r[l]=t&&De.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 13`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(l=>n.set(l)),n}static accessor(t){const n=(this[eS]=this[eS]={accessors:{}}).accessors,l=this.prototype;function c(f){const x=bp(f);n[x]||(w4(l,f),n[x]=!0)}return De.isArray(t)?t.forEach(c):c(t),this}};Hn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);De.reduceDescriptors(Hn.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});De.freezeMethods(Hn);function Yv(e,t){const r=this||e0,n=t||r,l=Hn.from(n.headers);let c=n.data;return De.forEach(e,function(x){c=x.call(r,c,l.normalize(),t?t.status:void 0)}),l.normalize(),c}function w2(e){return!!(e&&e.__CANCEL__)}let t0=class extends Tt{constructor(t,r,n){super(t??"canceled",Tt.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function S2(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Tt("Request failed with status code "+r.status,[Tt.ERR_BAD_REQUEST,Tt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function S4(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function A4(e,t){e=e||10;const r=new Array(e),n=new Array(e);let l=0,c=0,f;return t=t!==void 0?t:1e3,function(y){const b=Date.now(),S=n[c];f||(f=b),r[l]=y,n[l]=b;let C=c,R=0;for(;C!==l;)R+=r[C++],C=C%e;if(l=(l+1)%e,l===c&&(c=(c+1)%e),b-f<t)return;const O=S&&b-S;return O?Math.round(R*1e3/O):void 0}}function E4(e,t){let r=0,n=1e3/t,l,c;const f=(b,S=Date.now())=>{r=S,l=null,c&&(clearTimeout(c),c=null),e(...b)};return[(...b)=>{const S=Date.now(),C=S-r;C>=n?f(b,S):(l=b,c||(c=setTimeout(()=>{c=null,f(l)},n-C)))},()=>l&&f(l)]}const Wg=(e,t,r=3)=>{let n=0;const l=A4(50,250);return E4(c=>{const f=c.loaded,x=c.lengthComputable?c.total:void 0,y=f-n,b=l(y),S=f<=x;n=f;const C={loaded:f,total:x,progress:x?f/x:void 0,bytes:y,rate:b||void 0,estimated:b&&x&&S?(x-f)/b:void 0,event:c,lengthComputable:x!=null,[t?"download":"upload"]:!0};e(C)},r)},tS=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},rS=e=>(...t)=>De.asap(()=>e(...t)),C4=nn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,nn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(nn.origin),nn.navigator&&/(msie|trident)/i.test(nn.navigator.userAgent)):()=>!0,k4=nn.hasStandardBrowserEnv?{write(e,t,r,n,l,c,f){if(typeof document>"u")return;const x=[`${e}=${encodeURIComponent(t)}`];De.isNumber(r)&&x.push(`expires=${new Date(r).toUTCString()}`),De.isString(n)&&x.push(`path=${n}`),De.isString(l)&&x.push(`domain=${l}`),c===!0&&x.push("secure"),De.isString(f)&&x.push(`SameSite=${f}`),document.cookie=x.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function T4(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N4(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function A2(e,t,r){let n=!T4(t);return e&&(n||r==!1)?N4(e,t):t}const sS=e=>e instanceof Hn?{...e}:e;function Bu(e,t){t=t||{};const r={};function n(b,S,C,R){return De.isPlainObject(b)&&De.isPlainObject(S)?De.merge.call({caseless:R},b,S):De.isPlainObject(S)?De.merge({},S):De.isArray(S)?S.slice():S}function l(b,S,C,R){if(De.isUndefined(S)){if(!De.isUndefined(b))return n(void 0,b,C,R)}else return n(b,S,C,R)}function c(b,S){if(!De.isUndefined(S))return n(void 0,S)}function f(b,S){if(De.isUndefined(S)){if(!De.isUndefined(b))return n(void 0,b)}else return n(void 0,S)}function x(b,S,C){if(C in t)return n(b,S);if(C in e)return n(void 0,b)}const y={url:c,method:c,data:c,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:x,headers:(b,S,C)=>l(sS(b),sS(S),C,!0)};return De.forEach(Object.keys({...e,...t}),function(S){if(S==="__proto__"||S==="constructor"||S==="prototype")return;const C=De.hasOwnProp(y,S)?y[S]:l,R=C(e[S],t[S],S);De.isUndefined(R)&&C!==x||(r[S]=R)}),r}const E2=e=>{const t=Bu({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:l,xsrfCookieName:c,headers:f,auth:x}=t;if(t.headers=f=Hn.from(f),t.url=v2(A2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),x&&f.set("Authorization","Basic "+btoa((x.username||"")+":"+(x.password?unescape(encodeURIComponent(x.password)):""))),De.isFormData(r)){if(nn.hasStandardBrowserEnv||nn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if(De.isFunction(r.getHeaders)){const y=r.getHeaders(),b=["content-type","content-length"];
vendor: 4,412 bytes, line 13
13Object.entries(y).forEach(([S,C])=>{b.includes(S.toLowerCase())&&f.set(S,C)})}}if(nn.hasStandardBrowserEnv&&(n&&De.isFunction(n)&&(n=n(t)),n||n!==!1&&C4(t.url))){const y=l&&c&&k4.read(c);y&&f.set(l,y)}return t},j4=typeof XMLHttpRequest<"u",M4=j4&&function(e){return new Promise(function(r,n){const l=E2(e);let c=l.data;const f=Hn.from(l.headers).normalize();let{responseType:x,onUploadProgress:y,onDownloadProgress:b}=l,S,C,R,O,M;function P(){O&&O(),M&&M(),l.cancelToken&&l.cancelToken.unsubscribe(S),l.signal&&l.signal.removeEventListener("abort",S)}let _=new XMLHttpRequest;_.open(l.method.toUpperCase(),l.url,!0),_.timeout=l.timeout;function $(){if(!_)return;const F=Hn.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),te={data:!x||x==="text"||x==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:F,config:e,request:_};S2(function(se){r(se),P()},function(se){n(se),P()},te),_=null}"onloadend"in _?_.onloadend=$:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout($)},_.onabort=function(){_&&(n(new Tt("Request aborted",Tt.ECONNABORTED,e,_)),_=null)},_.onerror=function(J){const te=J&&J.message?J.message:"Network Error",le=new Tt(te,Tt.ERR_NETWORK,e,_);le.event=J||null,n(le),_=null},_.ontimeout=function(){let J=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const te=l.transitional||p1;l.timeoutErrorMessage&&(J=l.timeoutErrorMessage),n(new Tt(J,te.clarifyTimeoutError?Tt.ETIMEDOUT:Tt.ECONNABORTED,e,_)),_=null},c===void 0&&f.setContentType(null),"setRequestHeader"in _&&De.forEach(f.toJSON(),function(J,te){_.setRequestHeader(te,J)}),De.isUndefined(l.withCredentials)||(_.withCredentials=!!l.withCredentials),x&&x!=="json"&&(_.responseType=l.responseType),b&&([R,M]=Wg(b,!0),_.addEventListener("progress",R)),y&&_.upload&&([C,O]=Wg(y),_.upload.addEventListener("progress",C),_.upload.addEventListener("loadend",O)),(l.cancelToken||l.signal)&&(S=F=>{_&&(n(!F||F.type?new t0(null,e,_):F),_.abort(),_=null)},l.cancelToken&&l.cancelToken.subscribe(S),l.signal&&(l.signal.aborted?S():l.signal.addEventListener("abort",S)));const D=S4(l.url);if(D&&nn.protocols.indexOf(D)===-1){n(new Tt("Unsupported protocol "+D+":",Tt.ERR_BAD_REQUEST,e));return}_.send(c||null)})},R4=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,l;const c=function(b){if(!l){l=!0,x();const S=b instanceof Error?b:this.reason;n.abort(S instanceof Tt?S:new t0(S instanceof Error?S.message:S))}};let f=t&&setTimeout(()=>{f=null,c(new Tt(`timeout of ${t}ms exceeded`,Tt.ETIMEDOUT))},t);const x=()=>{e&&(f&&clearTimeout(f),f=null,e.forEach(b=>{b.unsubscribe?b.unsubscribe(c):b.removeEventListener("abort",c)}),e=null)};e.forEach(b=>b.addEventListener("abort",c));const{signal:y}=n;return y.unsubscribe=()=>De.asap(x),y}},O4=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,l;for(;n<r;)l=n+t,yield e.slice(n,l),n=l},B4=async function*(e,t){for await(const r of _4(e))yield*O4(r,t)},_4=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},nS=(e,t,r,n)=>{const l=B4(e,t);let c=0,f,x=y=>{f||(f=!0,n&&n(y))};return new ReadableStream({async pull(y){try{const{done:b,value:S}=await l.next();if(b){x(),y.close();return}let C=S.byteLength;if(r){let R=c+=C;r(R)}y.enqueue(new Uint8Array(S))}catch(b){throw x(b),b}},cancel(y){return x(y),l.return()}},{highWaterMark:2})},iS=64*1024,{isFunction:Ax}=De,D4=(({Request:e,Response:t})=>({Request:e,Response:t}))(De.global),{ReadableStream:aS,TextEncoder:lS}=De.global,oS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},L4=e=>{e=De.merge.call({skipUndefined:!0},D4,e);const{fetch:t,Request:r,Response:n}=e,l=t?Ax(t):typeof fetch=="function",c=Ax(r),f=Ax(n);if(!l)return!1;const x=l&&Ax(aS),y=l&&(typeof lS=="function"?(M=>P=>M.encode(P))(new lS):async M=>new Uint8Array(await new r(M).arrayBuffer())),b=c&&x&&oS(()=>{let M=!1;const P=new r(nn.origin,{body:new aS,method:"POST",get duplex(){return M=!0,"half"}}).headers.has("Content-Type");return M&&!P}),S=f&&x&&oS(()=>De.isReadableStream(new n("").body)),C={stream:S&&(M=>M.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(M=>{!C[M]&&(C[M]=(P,_)=>{let $=P&&P[M];if($)return $.call(P);throw new Tt(`Response type '${M}
13' is not supported`,Tt.ERR_NOT_SUPPORT,_)})});const R=async M=>{if(M==null)return 0;if(De.isBlob(M))return M.size;if(De.isSpecCompliantForm(M))return(await new r(nn.origin,{method:"POST",body:M}).arrayBuffer()).byteLength;if(De.isArrayBufferView(M)||De.isArrayBuffer(M))return M.byteLength;if(De.isURLSearchParams(M)&&(M=M+""),De.isString(M))return(await y(M)).byteLength},O=async(M,P)=>{const _=De.toFiniteNumber(M.getContentLength());return _??R(P)};return async M=>{let{url:P,method:_,data:$,signal:D,cancelToken:F,timeout:J,onDownloadProgress:te,onUploadProgress:le,responseType:se,headers:L,withCredentials:W="same-origin",fetchOptions:z}=E2(M),H=t||fetch;se=se?(se+"").toLowerCase():"text";let Z=R4([D,F&&F.toAbortSignal()],J),ae=null;const ue=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let ie;try{if(le&&b&&_!=="get"&&_!=="head"&&(ie=await O(L,$))!==0){let Q=new r(P,{method:"POST",body:$,duplex:"half"}),re;if(De.isFormData($)&&(re=Q.headers.get("content-type"))&&L.setContentType(re),Q.body){const[ge,ye]=tS(ie,Wg(rS(le)));$=nS(Q.body,iS,ge,ye)}}De.isString(W)||(W=W?"include":"omit");const X=c&&"credentials"in r.prototype,oe={...z,signal:Z,method:_.toUpperCase(),headers:L.normalize().toJSON(),body:$,duplex:"half",credentials:X?W:void 0};ae=c&&new r(P,oe);let ne=await(c?H(ae,z):H(P,oe));const fe=S&&(se==="stream"||se==="response");if(S&&(te||fe&&ue)){const Q={};["status","statusText","headers"].forEach(Te=>{Q[Te]=ne[Te]});const re=De.toFiniteNumber(ne.headers.get("content-length")),[ge,ye]=te&&tS(re,Wg(rS(te),!0))||[];ne=new n(nS(ne.body,iS,ge,()=>{ye&&ye(),ue&&ue()}),Q)}se=se||"text";let pe=await C[De.findKey(C,se)||"text"](ne,M);return!fe&&ue&&ue(),await new Promise((Q,re)=>{S2(Q,re,{data:pe,headers:Hn.from(ne.headers),status:ne.status,statusText:ne.statusText,config:M,request:ae})})}catch(X){throw ue&&ue(),X&&X.name==="TypeError"&&/Load failed|fetch/i.test(X.message)?Object.assign(new Tt("Network Error",Tt.ERR_NETWORK,M,ae,X&&X.response),{cause:X.cause||X}):Tt.from(X,X&&X.code,M,ae,X&&X.response)}}},I4=new Map,C2=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:l}=t,c=[n,l,r];let f=c.length,x=f,y,b,S=I4;for(;x--;)y=c[x],b=S.get(y),b===void 0&&S.set(y,b=x?new Map:L4(t)),S=b;return b};C2();const x1={http:e4,xhr:M4,fetch:{get:C2}};De.forEach(x1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cS=e=>`- ${e}`,P4=e=>De.isFunction(e)||e===null||e===!1;function F4(e,t){e=De.isArray(e)?e:[e];const{length:r}=e;let n,l;const c={};for(let f=0;f<r;f++){n=e[f];let x;if(l=n,!P4(n)&&(l=x1[(x=String(n)).toLowerCase()],l===void 0))throw new Tt(`Unknown adapter '${x}'`);if(l&&(De.isFunction(l)||(l=l.get(t))))break;c[x||"#"+f]=l}if(!l){const f=Object.entries(c).map(([y,b])=>`adapter ${y} `+(b===!1?"is not supported by the environment":"is not available in the build"));let x=r?f.length>1?`since : 14`+f.map(cS).join(` 15`):" "+cS(f[0]):"as no adapter specified";throw new Tt("There is no suitable adapter to dispatch the request "+x,"ERR_NOT_SUPPORT")}return l}const k2={getAdapter:F4,adapters:x1};function Gv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new t0(null,e)}function uS(e){return Gv(e),e.headers=Hn.from(e.headers),e.data=Yv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),k2.getAdapter(e.adapter||e0.adapter,e)(e).then(function(n){return Gv(e),n.data=Yv.call(e,e.transformResponse,n),n.headers=Hn.from(n.headers),n},function(n){return w2(n)||(Gv(e),n&&n.response&&(n.response.data=Yv.call(e,e.transformResponse,n.response),n.response.headers=Hn.from(n.response.headers))),Promise.reject(n)})}const T2="1.13.6",Ey={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ey[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const dS={};Ey.transitional=function(t,r,n){function l(c,f){return"[Axios v"+T2+"] Transitional option '"+c+"'"+f+(n?". "+n:"")}return(c,f,x)=>{if(t===!1)throw new Tt(l(f," has been removed"+(r?" in "+r:"")),Tt.ERR_DEPRECATED);
vendor: 4,536 bytes, lines 15-16
15return r&&!dS[f]&&(dS[f]=!0,console.warn(l(f," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(c,f,x):!0}};Ey.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function z4(e,t,r){if(typeof e!="object")throw new Tt("options must be an object",Tt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let l=n.length;for(;l-- >0;){const c=n[l],f=t[c];if(f){const x=e[c],y=x===void 0||f(x,c,e);if(y!==!0)throw new Tt("option "+c+" must be "+y,Tt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Tt("Unknown option "+c,Tt.ERR_BAD_OPTION)}}const Px={assertOptions:z4,validators:Ey},Ai=Px.validators;let Mu=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Zw,response:new Zw}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const c=l.stack?l.stack.replace(/^.+\n/,""):"";try{n.stack?c&&!String(n.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(n.stack+=` 16`+c):n.stack=c}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Bu(this.defaults,r);const{transitional:n,paramsSerializer:l,headers:c}=r;n!==void 0&&Px.assertOptions(n,{silentJSONParsing:Ai.transitional(Ai.boolean),forcedJSONParsing:Ai.transitional(Ai.boolean),clarifyTimeoutError:Ai.transitional(Ai.boolean),legacyInterceptorReqResOrdering:Ai.transitional(Ai.boolean)},!1),l!=null&&(De.isFunction(l)?r.paramsSerializer={serialize:l}:Px.assertOptions(l,{encode:Ai.function,serialize:Ai.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Px.assertOptions(r,{baseUrl:Ai.spelling("baseURL"),withXsrfToken:Ai.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let f=c&&De.merge(c.common,c[r.method]);c&&De.forEach(["delete","get","head","post","put","patch","common"],M=>{delete c[M]}),r.headers=Hn.concat(f,c);const x=[];let y=!0;this.interceptors.request.forEach(function(P){if(typeof P.runWhen=="function"&&P.runWhen(r)===!1)return;y=y&&P.synchronous;const _=r.transitional||p1;_&&_.legacyInterceptorReqResOrdering?x.unshift(P.fulfilled,P.rejected):x.push(P.fulfilled,P.rejected)});const b=[];this.interceptors.response.forEach(function(P){b.push(P.fulfilled,P.rejected)});let S,C=0,R;if(!y){const M=[uS.bind(this),void 0];for(M.unshift(...x),M.push(...b),R=M.length,S=Promise.resolve(r);C<R;)S=S.then(M[C++],M[C++]);return S}R=x.length;let O=r;for(;C<R;){const M=x[C++],P=x[C++];try{O=M(O)}catch(_){P.call(this,_);break}}try{S=uS.call(this,O)}catch(M){return Promise.reject(M)}for(C=0,R=b.length;C<R;)S=S.then(b[C++],b[C++]);return S}getUri(t){t=Bu(this.defaults,t);const r=A2(t.baseURL,t.url,t.allowAbsoluteUrls);return v2(r,t.params,t.paramsSerializer)}};De.forEach(["delete","get","head","options"],function(t){Mu.prototype[t]=function(r,n){return this.request(Bu(n||{},{method:t,url:r,data:(n||{}).data}))}});De.forEach(["post","put","patch"],function(t){function r(n){return function(c,f,x){return this.request(Bu(x||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:c,data:f}))}}Mu.prototype[t]=r(),Mu.prototype[t+"Form"]=r(!0)});let U4=class N2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(c){r=c});const n=this;this.promise.then(l=>{if(!n._listeners)return;let c=n._listeners.length;for(;c-- >0;)n._listeners[c](l);n._listeners=null}),this.promise.then=l=>{let c;const f=new Promise(x=>{n.subscribe(x),c=x}).then(l);return f.cancel=function(){n.unsubscribe(c)},f},t(function(c,f,x){n.reason||(n.reason=new t0(c,f,x),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new N2(function(l){t=l}),cancel:t}}};function $4(e){return function(r){return e.apply(null,r)}}function V4(e){return De.isObject(e)&&e.isAxiosError===!0}const Bb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
16setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Bb).forEach(([e,t])=>{Bb[t]=e});function j2(e){const t=new Mu(e),r=o2(Mu.prototype.request,t);return De.extend(r,Mu.prototype,t,{allOwnKeys:!0}),De.extend(r,t,null,{allOwnKeys:!0}),r.create=function(l){return j2(Bu(e,l))},r}const st=j2(e0);st.Axios=Mu;st.CanceledError=t0;st.CancelToken=U4;st.isCancel=w2;st.VERSION=T2;st.toFormData=Ay;st.AxiosError=Tt;st.Cancel=st.CanceledError;st.all=function(t){return Promise.all(t)};st.spread=$4;st.isAxiosError=V4;st.mergeConfig=Bu;st.AxiosHeaders=Hn;st.formToJSON=e=>b2(De.isHTMLForm(e)?new FormData(e):e);st.getAdapter=k2.getAdapter;st.HttpStatusCode=Bb;st.default=st;const{Axios:xz,AxiosError:gz,CanceledError:yz,isCancel:vz,CancelToken:bz,VERSION:wz,all:Sz,Cancel:Az,isAxiosError:Ez,spread:Cz,toFormData:kz,AxiosHeaders:Tz,HttpStatusCode:Nz,formToJSON:jz,getAdapter:Mz,mergeConfig:Rz}=st,pt={REALTIME_PUSH:"https://realtime-sse.stockradars.co/emapi",REALTIME_PULL:"https://realtime-mme.stockradars.co/setmme",REALTIME_PULLMOST:"https://realtime-mme-pullmost.stockradars.co/setmme",DELAY_PULL:"https://delay-mme.stockradars.co/delay",AUTH_API:"https://auth.stockradars.co/v1",STORE_API:"https://store.stockradars.co/v1",FREE_URL:"https://honshu.stockradars.co/free",DATA_STORAGE:"https://storage-th-xbkk.stockradars.co",NEXT_API:"https://next-api.stockradars.co/v1",FAV_NEXT_API:"https://client-watchlist.stockradars.co/v1",INBOX_NEXT_API:"https://inbox-client-nt.stockradars.co/v1",GLOBLEX_API:"https://globlex-api.stockradars.co",GLOBLEX_USER_API:"https://globlex.stockradars.co/globlexservice",KRUNGSRI_API:"https://wsapi.krungsrisecurities.com/StockExpertAPI",YUANTA_API:"https://itrade.yuanta.co.th",MAYBANK_API:"https://tradingk.maybank-ke.co.th/keapi",KSONE_AUTH_API:"https://kasikornsecurities.com/oneapp-authentication/v1"},hS={BUY_URL:"https://shop.radarspoint.com/?item=SRVC002011500",PRICE:16800},fa={APP:"stockradars",APP_ID:"web"},pc={VERSION:"9.23",DEVICE:"web"},an={FULL_CHART:"https://stockradars.co/full-chart-highcharts",IFRAME_URL:"https://stockradars.co/appmodule/insight_v4"};function Ex(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var H4={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function _b(e,t){function r(l,c,f){if(!(typeof document>"u")){f=Ex({},t,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var x="";for(var y in f)f[y]&&(x+="; "+y,f[y]!==!0&&(x+="="+f[y].split(";")[0]));return document.cookie=l+"="+e.write(c,l)+x}}function n(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var c=document.cookie?document.cookie.split("; "):[],f={},x=0;x<c.length;x++){var y=c[x].split("="),b=y.slice(1).join("=");try{var S=decodeURIComponent(y[0]);
16if(f[S]=e.read(b,S),l===S)break}catch{}}return l?f[l]:f}}return Object.create({set:r,get:n,remove:function(l,c){r(l,"",Ex({},c,{expires:-1}))},withAttributes:function(l){return _b(this.converter,Ex({},this.attributes,l))},withConverter:function(l){return _b(Ex({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Cs=_b(H4,{path:"/"});const g1={stockradars:"sr",globlex:"glx",krungsri:"kri",yuanta:"yta",kstradeplus:"ktp",mbket:"mbk"},Nh=new Set(["stockradars","globlex"]),Vp=e=>`bk_${g1[e]??"sr"}`,Db=()=>{for(const[e,t]of Object.entries(g1)){const r=`bk_${t}`,n=Nh.has(e)?sessionStorage.getItem(r):Cs.get(r);if(n)try{if(JSON.parse(n).token)return e}catch{}}return null},Dr=()=>sessionStorage.getItem("broker")??Db()??"",Fn=e=>{const t=Vp(e),r=Nh.has(e)?sessionStorage.getItem(t):Cs.get(t);if(!r)return{};try{return JSON.parse(r)}catch{return{}}},aa=(e,t)=>{const r={...Fn(e),...t},n=Vp(e);Nh.has(e)?sessionStorage.setItem(n,JSON.stringify(r)):Cs.set(n,JSON.stringify(r),{expires:7})},Vl=(e,t)=>{const r=Fn(e);delete r[t];const n=Vp(e);Nh.has(e)?sessionStorage.setItem(n,JSON.stringify(r)):Cs.set(n,JSON.stringify(r),{expires:7})},He={getBroker:()=>sessionStorage.getItem("broker")??Db()??void 0,setBroker:e=>{sessionStorage.setItem("broker",e)},removeBroker:()=>{sessionStorage.removeItem("broker")},initBrokerTab:()=>{if(sessionStorage.getItem("broker"))return;const e=Db();e&&sessionStorage.setItem("broker",e)},getProfile:()=>Fn(Dr()).profile??null,setProfile:e=>aa(Dr(),{profile:e}),removeProfile:()=>Vl(Dr(),"profile"),getToken:()=>Fn(Dr()).token,setToken:e=>aa(Dr(),{token:e}),removeToken:()=>Vl(Dr(),"token"),getRefreshToken:()=>Fn(Dr()).refresh_token,setRefreshToken:e=>aa(Dr(),{refresh_token:e}),removeRefreshToken:()=>Vl(Dr(),"refresh_token"),getUserId:()=>Fn(Dr()).user_id,setUserId:e=>aa(Dr(),{user_id:e}),removeUserId:()=>Vl(Dr(),"user_id"),getState:()=>Fn(Dr()).state,setState:e=>aa(Dr(),{state:e}),removeState:()=>Vl(Dr(),"state"),getUsername:()=>Fn(Dr()).username,setUsername:e=>aa(Dr(),{username:e}),removeUsername:()=>Vl(Dr(),"username"),getAccessToken:()=>Fn(Dr()).access_token,setAccessToken:e=>aa(Dr(),{access_token:e}),removeAccessToken:()=>Vl(Dr(),"access_token"),getAccountNo:()=>Fn(Dr()).accountno,setAccountNo:e=>aa(Dr(),{accountno:e}),removeAccountNo:()=>Vl(Dr(),"accountno"),getFullname:()=>Fn(Dr()).fullname,setFullname:e=>aa(Dr(),{fullname:e}),removeFullname:()=>Vl(Dr(),"fullname"),hasBrokerSession:e=>!!Fn(e).token,getBrokerSession:e=>Fn(e),setBrokerSession:(e,t)=>aa(e,t),clearBroker:e=>{Nh.has(e)?sessionStorage.removeItem(Vp(e)):Cs.remove(Vp(e)),localStorage.removeItem("highcharts-chart")},clearAll:()=>{sessionStorage.removeItem("broker"),Object.entries(g1).forEach(([e,t])=>{Nh.has(e)?sessionStorage.removeItem(`bk_${t}`):Cs.remove(`bk_${t}`)}),localStorage.removeItem("highcharts-chart")},migrateOldCookies:()=>{Cs.remove("_ab"),Cs.remove("profile");const e=["token","refreshToken","userId","state","username","access_token","accountno","fullname"];if(!e.some(n=>!!Cs.get(n)))return;const r=sessionStorage.getItem("broker")??"stockradars";Fn(r).token||aa(r,{token:Cs.get("token"),refresh_token:Cs.get("refreshToken"),user_id:Cs.get("userId"),state:Cs.get("state"),username:Cs.get("username"),access_token:Cs.get("access_token"),accountno:Cs.get("accountno"),fullname:Cs.get("fullname")}),e.forEach(n=>Cs.remove(n))}},Y4=["error_description","errordescription","errormessage","message","msg","desc","description","err","error"],cs=(e,t="Something went wrong")=>{if(!e||typeof e!="object")return t;const r={};for(const n of Object.keys(e))r[n.toLowerCase()]=e[n];for(const n of Y4){const l=r[n];if(typeof l=="string"&&l.trim())return l}return t},ui=st.create({baseURL:pt.REALTIME_PULL,timeout:1e4}),M2=st.create({baseURL:pt.REALTIME_PULLMOST,timeout:1e4}),G4=st.create({baseURL:pt.DELAY_PULL,timeout:1e4}),Rt=st.create({baseURL:pt.NEXT_API,timeout:1e4}),y1=st.create({baseURL:pt.AUTH_API,timeout:1e4}),v1=st.create({baseURL:pt.STORE_API,timeout:1e4}),X4=e=>{const t=He.getToken(),r=He.getUserId(),n=He.getState();return t&&(e.headers.authorization=`Bearer ${t}`),r&&(e.headers["user-id"]=r),n&&(e.headers.state=n),e.headers.app=fa.APP,e},R2=e=>e.data?.err==="Invalid Token"||e.data?.msg==="Please relogon"?Promise.reject(new Error("Session expired")):e.data,O2=async e=>{e.response?.status;const t=cs(e.response?.data,"");return t&&(e.message=t),Promise.reject(e)};
vendor: 3,600 bytes, line 16
16[ui,M2,Rt,y1,v1].forEach(e=>{e.interceptors.request.use(X4,Promise.reject),e.interceptors.response.use(R2,O2)});G4.interceptors.response.use(R2,O2);const B2=e=>{ui.defaults.baseURL=e};var Fx={exports:{}};function q4(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zx={exports:{}};const W4={},Q4=Object.freeze(Object.defineProperty({__proto__:null,default:W4},Symbol.toStringTag,{value:"Module"})),J4=aT(Q4);var K4=zx.exports,fS;function Zt(){return fS||(fS=1,(function(e,t){(function(r,n){e.exports=n()})(K4,function(){var r=r||(function(n,l){var c;if(typeof window<"u"&&window.crypto&&(c=window.crypto),typeof self<"u"&&self.crypto&&(c=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof window<"u"&&window.msCrypto&&(c=window.msCrypto),!c&&typeof Tv<"u"&&Tv.crypto&&(c=Tv.crypto),!c&&typeof q4=="function")try{c=J4}catch{}var f=function(){if(c){if(typeof c.getRandomValues=="function")try{return c.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof c.randomBytes=="function")try{return c.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},x=Object.create||(function(){function D(){}return function(F){var J;return D.prototype=F,J=new D,D.prototype=null,J}})(),y={},b=y.lib={},S=b.Base=(function(){return{extend:function(D){var F=x(this);return D&&F.mixIn(D),(!F.hasOwnProperty("init")||this.init===F.init)&&(F.init=function(){F.$super.init.apply(this,arguments)}),F.init.prototype=F,F.$super=this,F},create:function(){var D=this.extend();return D.init.apply(D,arguments),D},init:function(){},mixIn:function(D){for(var F in D)D.hasOwnProperty(F)&&(this[F]=D[F]);D.hasOwnProperty("toString")&&(this.toString=D.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),C=b.WordArray=S.extend({init:function(D,F){D=this.words=D||[],F!=l?this.sigBytes=F:this.sigBytes=D.length*4},toString:function(D){return(D||O).stringify(this)},concat:function(D){var F=this.words,J=D.words,te=this.sigBytes,le=D.sigBytes;if(this.clamp(),te%4)for(var se=0;se<le;se++){var L=J[se>>>2]>>>24-se%4*8&255;F[te+se>>>2]|=L<<24-(te+se)%4*8}else for(var W=0;W<le;W+=4)F[te+W>>>2]=J[W>>>2];return this.sigBytes+=le,this},clamp:function(){var D=this.words,F=this.sigBytes;D[F>>>2]&=4294967295<<32-F%4*8,D.length=n.ceil(F/4)},clone:function(){var D=S.clone.call(this);return D.words=this.words.slice(0),D},random:function(D){for(var F=[],J=0;J<D;J+=4)F.push(f());return new C.init(F,D)}}),R=y.enc={},O=R.Hex={stringify:function(D){for(var F=D.words,J=D.sigBytes,te=[],le=0;le<J;le++){var se=F[le>>>2]>>>24-le%4*8&255;te.push((se>>>4).toString(16)),te.push((se&15).toString(16))}return te.join("")},parse:function(D){for(var F=D.length,J=[],te=0;te<F;te+=2)J[te>>>3]|=parseInt(D.substr(te,2),16)<<24-te%8*4;return new C.init(J,F/2)}},M=R.Latin1={stringify:function(D){for(var F=D.words,J=D.sigBytes,te=[],le=0;le<J;le++){var se=F[le>>>2]>>>24-le%4*8&255;te.push(String.fromCharCode(se))}return te.join("")},parse:function(D){for(var F=D.length,J=[],te=0;te<F;te++)J[te>>>2]|=(D.charCodeAt(te)&255)<<24-te%4*8;return new C.init(J,F)}},P=R.Utf8={stringify:function(D){try{return decodeURIComponent(escape(M.stringify(D)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(D){return M.parse(unescape(encodeURIComponent(D)))}},_=b.BufferedBlockAlgorithm=S.extend({reset:function(){this._data=new C.init,this._nDataBytes=0}
vendor: 4,155 bytes, line 16
16,_append:function(D){typeof D=="string"&&(D=P.parse(D)),this._data.concat(D),this._nDataBytes+=D.sigBytes},_process:function(D){var F,J=this._data,te=J.words,le=J.sigBytes,se=this.blockSize,L=se*4,W=le/L;D?W=n.ceil(W):W=n.max((W|0)-this._minBufferSize,0);var z=W*se,H=n.min(z*4,le);if(z){for(var Z=0;Z<z;Z+=se)this._doProcessBlock(te,Z);F=te.splice(0,z),J.sigBytes-=H}return new C.init(F,H)},clone:function(){var D=S.clone.call(this);return D._data=this._data.clone(),D},_minBufferSize:0});b.Hasher=_.extend({cfg:S.extend(),init:function(D){this.cfg=this.cfg.extend(D),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(D){return this._append(D),this._process(),this},finalize:function(D){D&&this._append(D);var F=this._doFinalize();return F},blockSize:16,_createHelper:function(D){return function(F,J){return new D.init(J).finalize(F)}},_createHmacHelper:function(D){return function(F,J){return new $.HMAC.init(D,J).finalize(F)}}});var $=y.algo={};return y})(Math);return r})})(zx)),zx.exports}var Ux={exports:{}},Z4=Ux.exports,pS;function Cy(){return pS||(pS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(Z4,function(r){return(function(n){var l=r,c=l.lib,f=c.Base,x=c.WordArray,y=l.x64={};y.Word=f.extend({init:function(b,S){this.high=b,this.low=S}}),y.WordArray=f.extend({init:function(b,S){b=this.words=b||[],S!=n?this.sigBytes=S:this.sigBytes=b.length*8},toX32:function(){for(var b=this.words,S=b.length,C=[],R=0;R<S;R++){var O=b[R];C.push(O.high),C.push(O.low)}return x.create(C,this.sigBytes)},clone:function(){for(var b=f.clone.call(this),S=b.words=this.words.slice(0),C=S.length,R=0;R<C;R++)S[R]=S[R].clone();return b}})})(),r})})(Ux)),Ux.exports}var $x={exports:{}},e3=$x.exports,mS;function t3(){return mS||(mS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(e3,function(r){return(function(){if(typeof ArrayBuffer=="function"){var n=r,l=n.lib,c=l.WordArray,f=c.init,x=c.init=function(y){if(y instanceof ArrayBuffer&&(y=new Uint8Array(y)),(y instanceof Int8Array||typeof Uint8ClampedArray<"u"&&y instanceof Uint8ClampedArray||y instanceof Int16Array||y instanceof Uint16Array||y instanceof Int32Array||y instanceof Uint32Array||y instanceof Float32Array||y instanceof Float64Array)&&(y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength)),y instanceof Uint8Array){for(var b=y.byteLength,S=[],C=0;C<b;C++)S[C>>>2]|=y[C]<<24-C%4*8;f.call(this,S,b)}else f.apply(this,arguments)};x.prototype=c}})(),r.lib.WordArray})})($x)),$x.exports}var Vx={exports:{}},r3=Vx.exports,xS;function s3(){return xS||(xS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(r3,function(r){return(function(){var n=r,l=n.lib,c=l.WordArray,f=n.enc;f.Utf16=f.Utf16BE={stringify:function(y){for(var b=y.words,S=y.sigBytes,C=[],R=0;R<S;R+=2){var O=b[R>>>2]>>>16-R%4*8&65535;C.push(String.fromCharCode(O))}return C.join("")},parse:function(y){for(var b=y.length,S=[],C=0;C<b;C++)S[C>>>1]|=y.charCodeAt(C)<<16-C%2*16;return c.create(S,b*2)}},f.Utf16LE={stringify:function(y){for(var b=y.words,S=y.sigBytes,C=[],R=0;R<S;R+=2){var O=x(b[R>>>2]>>>16-R%4*8&65535);C.push(String.fromCharCode(O))}return C.join("")},parse:function(y){for(var b=y.length,S=[],C=0;C<b;C++)S[C>>>1]|=x(y.charCodeAt(C)<<16-C%2*16);return c.create(S,b*2)}};function x(y){return y<<8&4278255360|y>>>8&16711935}})(),r.enc.Utf16})})(Vx)),Vx.exports}var Hx={exports:{}},n3=Hx.exports,gS;function Lu(){return gS||(gS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(n3,function(r){return(function(){var n=r,l=n.lib,c=l.WordArray,f=n.enc;f.Base64={stringify:function(y){var b=y.words,S=y.sigBytes,C=this._map;y.clamp();for(var R=[],O=0;O<S;O+=3)for(var M=b[O>>>2]>>>24-O%4*8&255,P=b[O+1>>>2]>>>24-(O+1)%4*8&255,_=b[O+2>>>2]>>>24-(O+2)%4*8&255,$=M<<16|P<<8|_,D=0;D<4&&O+D*.75<S;D++)R.push(C.charAt($>>>6*(3-D)&63));var F=C.charAt(64);if(F)for(;R.length%4;)R.push(F);return R.join("")},parse:function(y){var b=y.length,S=this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var R=0;R<S.length;R++)C[S.charCodeAt(R)]=R}var O=S.charAt(64);if(O){var M=y.indexOf(O);M!==-1&&(b=M)}return x(y,b,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
16+/="};function x(y,b,S){for(var C=[],R=0,O=0;O<b;O++)if(O%4){var M=S[y.charCodeAt(O-1)]<<O%4*2,P=S[y.charCodeAt(O)]>>>6-O%4*2,_=M|P;C[R>>>2]|=_<<24-R%4*8,R++}return c.create(C,R)}})(),r.enc.Base64})})(Hx)),Hx.exports}var Yx={exports:{}},i3=Yx.exports,yS;function a3(){return yS||(yS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(i3,function(r){return(function(){var n=r,l=n.lib,c=l.WordArray,f=n.enc;f.Base64url={stringify:function(y,b){b===void 0&&(b=!0);var S=y.words,C=y.sigBytes,R=b?this._safe_map:this._map;y.clamp();for(var O=[],M=0;M<C;M+=3)for(var P=S[M>>>2]>>>24-M%4*8&255,_=S[M+1>>>2]>>>24-(M+1)%4*8&255,$=S[M+2>>>2]>>>24-(M+2)%4*8&255,D=P<<16|_<<8|$,F=0;F<4&&M+F*.75<C;F++)O.push(R.charAt(D>>>6*(3-F)&63));var J=R.charAt(64);if(J)for(;O.length%4;)O.push(J);return O.join("")},parse:function(y,b){b===void 0&&(b=!0);var S=y.length,C=b?this._safe_map:this._map,R=this._reverseMap;if(!R){R=this._reverseMap=[];for(var O=0;O<C.length;O++)R[C.charCodeAt(O)]=O}var M=C.charAt(64);if(M){var P=y.indexOf(M);P!==-1&&(S=P)}return x(y,S,R)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function x(y,b,S){for(var C=[],R=0,O=0;O<b;O++)if(O%4){var M=S[y.charCodeAt(O-1)]<<O%4*2,P=S[y.charCodeAt(O)]>>>6-O%4*2,_=M|P;C[R>>>2]|=_<<24-R%4*8,R++}return c.create(C,R)}})(),r.enc.Base64url})})(Yx)),Yx.exports}var Gx={exports:{}},l3=Gx.exports,vS;function Iu(){return vS||(vS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(l3,function(r){return(function(n){var l=r,c=l.lib,f=c.WordArray,x=c.Hasher,y=l.algo,b=[];(function(){for(var P=0;P<64;P++)b[P]=n.abs(n.sin(P+1))*4294967296|0})();var S=y.MD5=x.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(P,_){for(var $=0;$<16;$++){var D=_+$,F=P[D];P[D]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}var J=this._hash.words,te=P[_+0],le=P[_+1],se=P[_+2],L=P[_+3],W=P[_+4],z=P[_+5],H=P[_+6],Z=P[_+7],ae=P[_+8],ue=P[_+9],ie=P[_+10],X=P[_+11],oe=P[_+12],ne=P[_+13],fe=P[_+14],pe=P[_+15],Q=J[0],re=J[1],ge=J[2],ye=J[3];Q=C(Q,re,ge,ye,te,7,b[0]),ye=C(ye,Q,re,ge,le,12,b[1]),ge=C(ge,ye,Q,re,se,17,b[2]),re=C(re,ge,ye,Q,L,22,b[3]),Q=C(Q,re,ge,ye,W,7,b[4]),ye=C(ye,Q,re,ge,z,12,b[5]),ge=C(ge,ye,Q,re,H,17,b[6]),re=C(re,ge,ye,Q,Z,22,b[7]),Q=C(Q,re,ge,ye,ae,7,b[8]),ye=C(ye,Q,re,ge,ue,12,b[9]),ge=C(ge,ye,Q,re,ie,17,b[10]),re=C(re,ge,ye,Q,X,22,b[11]),Q=C(Q,re,ge,ye,oe,7,b[12]),ye=C(ye,Q,re,ge,ne,12,b[13]),ge=C(ge,ye,Q,re,fe,17,b[14]),re=C(re,ge,ye,Q,pe,22,b[15]),Q=R(Q,re,ge,ye,le,5,b[16]),ye=R(ye,Q,re,ge,H,9,b[17]),ge=R(ge,ye,Q,re,X,14,b[18]),re=R(re,ge,ye,Q,te,20,b[19]),Q=R(Q,re,ge,ye,z,5,b[20]),ye=R(ye,Q,re,ge,ie,9,b[21]),ge=R(ge,ye,Q,re,pe,14,b[22]),re=R(re,ge,ye,Q,W,20,b[23]),Q=R(Q,re,ge,ye,ue,5,b[24]),ye=R(ye,Q,re,ge,fe,9,b[25]),ge=R(ge,ye,Q,re,L,14,b[26]),re=R(re,ge,ye,Q,ae,20,b[27]),Q=R(Q,re,ge,ye,ne,5,b[28]),ye=R(ye,Q,re,ge,se,9,b[29]),ge=R(ge,ye,Q,re,Z,14,b[30]),re=R(re,ge,ye,Q,oe,20,b[31]),Q=O(Q,re,ge,ye,z,4,b[32]),ye=O(ye,Q,re,ge,ae,11,b[33]),ge=O(ge,ye,Q,re,X,16,b[34]),re=O(re,ge,ye,Q,fe,23,b[35]),Q=O(Q,re,ge,ye,le,4,b[36]),ye=O(ye,Q,re,ge,W,11,b[37]),ge=O(ge,ye,Q,re,Z,16,b[38]),re=O(re,ge,ye,Q,ie,23,b[39]),Q=O(Q,re,ge,ye,ne,4,b[40]),ye=O(ye,Q,re,ge,te,11,b[41]),ge=O(ge,ye,Q,re,L,16,b[42]),re=O(re,ge,ye,Q,H,23,b[43]),Q=O(Q,re,ge,ye,ue,4,b[44]),ye=O(ye,Q,re,ge,oe,11,b[45]),ge=O(ge,ye,Q,re,pe,16,b[46]),re=O(re,ge,ye,Q,se,23,b[47]),Q=M(Q,re,ge,ye,te,6,b[48]),ye=M(ye,Q,re,ge,Z,10,b[49]),ge=M(ge,ye,Q,re,fe,15,b[50]),re=M(re,ge,ye,Q,z,21,b[51]),Q=M(Q,re,ge,ye,oe,6,b[52]),ye=M(ye,Q,re,ge,L,10,b[53]),ge=M(ge,ye,Q,re,ie,15,b[54]),re=M(re,ge,ye,Q,le,21,b[55]),Q=M(Q,re,ge,ye,ae,6,b[56]),ye=M(ye,Q,re,ge,pe,10,b[57]),ge=M(ge,ye,Q,re,H,15,b[58]),re=M(re,ge,ye,Q,ne,21,b[59]),Q=M(Q,re,ge,ye,W,6,b[60]),ye=M(ye,Q,re,ge,X,10,b[61]),ge=M(ge,ye,Q,re,se,15,b[62]),re=M(re,ge,ye,Q,ue,21,b[63]),J[0]=J[0]+Q|0,J[1]=J[1]+re|0,J[2]=J[2]+ge|0,J[3]=J[3]+ye|0},_doFinalize:function(){var P=this._data,_=P.words,$=this._nDataBytes*8,D=P.sigBytes*8;_[D>>>5]|=128<<24-D%32;var F=n.floor($/4294967296),J=$;_[(D+64>>>9<<4)+15]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,_[(D+64>>>9<<4)+14]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,P.sigBytes=(_.length+1)*4,this._process();for(var te=this._hash,le=te.words,se=0;se<4;se++){var L=le[se];le[se]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return te},clone:function(){var P=x.clone.call(this);return P._hash=this._hash.clone(),P}});function C(P,_,$,D,F,J,te){var le=P+(_&$|~_&D)+F+te;return(le<<J|le>>>32-J)+_}function R(P,_,$,D,F,J,te){var le=P+(_&D|$&~D)+F+te;return(le<<J|le>>>32-J)+_}function O(P,_,$,D,F,J,te){var le=P+(_^$^D)+F+te;return(le<<J|le>>>32-J)+_}function M(P,_,$,D,F,J,te){var le=P+($^(_|~D))+F+te;return(le<<J|le>>>32-J)+_}l.MD5=x._createHelper(S),l.HmacMD5=x._createHmacHelper(S)})(Math),r.MD5})})(Gx)),Gx.exports}var Xx={exports:{}},o3=Xx.exports,bS;
vendor: 15,154 bytes, line 16
16function _2(){return bS||(bS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(o3,function(r){return(function(){var n=r,l=n.lib,c=l.WordArray,f=l.Hasher,x=n.algo,y=[],b=x.SHA1=f.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,C){for(var R=this._hash.words,O=R[0],M=R[1],P=R[2],_=R[3],$=R[4],D=0;D<80;D++){if(D<16)y[D]=S[C+D]|0;else{var F=y[D-3]^y[D-8]^y[D-14]^y[D-16];y[D]=F<<1|F>>>31}var J=(O<<5|O>>>27)+$+y[D];D<20?J+=(M&P|~M&_)+1518500249:D<40?J+=(M^P^_)+1859775393:D<60?J+=(M&P|M&_|P&_)-1894007588:J+=(M^P^_)-899497514,$=_,_=P,P=M<<30|M>>>2,M=O,O=J}R[0]=R[0]+O|0,R[1]=R[1]+M|0,R[2]=R[2]+P|0,R[3]=R[3]+_|0,R[4]=R[4]+$|0},_doFinalize:function(){var S=this._data,C=S.words,R=this._nDataBytes*8,O=S.sigBytes*8;return C[O>>>5]|=128<<24-O%32,C[(O+64>>>9<<4)+14]=Math.floor(R/4294967296),C[(O+64>>>9<<4)+15]=R,S.sigBytes=C.length*4,this._process(),this._hash},clone:function(){var S=f.clone.call(this);return S._hash=this._hash.clone(),S}});n.SHA1=f._createHelper(b),n.HmacSHA1=f._createHmacHelper(b)})(),r.SHA1})})(Xx)),Xx.exports}var qx={exports:{}},c3=qx.exports,wS;function b1(){return wS||(wS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(c3,function(r){return(function(n){var l=r,c=l.lib,f=c.WordArray,x=c.Hasher,y=l.algo,b=[],S=[];(function(){function O($){for(var D=n.sqrt($),F=2;F<=D;F++)if(!($%F))return!1;return!0}function M($){return($-($|0))*4294967296|0}for(var P=2,_=0;_<64;)O(P)&&(_<8&&(b[_]=M(n.pow(P,1/2))),S[_]=M(n.pow(P,1/3)),_++),P++})();var C=[],R=y.SHA256=x.extend({_doReset:function(){this._hash=new f.init(b.slice(0))},_doProcessBlock:function(O,M){for(var P=this._hash.words,_=P[0],$=P[1],D=P[2],F=P[3],J=P[4],te=P[5],le=P[6],se=P[7],L=0;L<64;L++){if(L<16)C[L]=O[M+L]|0;else{var W=C[L-15],z=(W<<25|W>>>7)^(W<<14|W>>>18)^W>>>3,H=C[L-2],Z=(H<<15|H>>>17)^(H<<13|H>>>19)^H>>>10;C[L]=z+C[L-7]+Z+C[L-16]}var ae=J&te^~J&le,ue=_&$^_&D^$&D,ie=(_<<30|_>>>2)^(_<<19|_>>>13)^(_<<10|_>>>22),X=(J<<26|J>>>6)^(J<<21|J>>>11)^(J<<7|J>>>25),oe=se+X+ae+S[L]+C[L],ne=ie+ue;se=le,le=te,te=J,J=F+oe|0,F=D,D=$,$=_,_=oe+ne|0}P[0]=P[0]+_|0,P[1]=P[1]+$|0,P[2]=P[2]+D|0,P[3]=P[3]+F|0,P[4]=P[4]+J|0,P[5]=P[5]+te|0,P[6]=P[6]+le|0,P[7]=P[7]+se|0},_doFinalize:function(){var O=this._data,M=O.words,P=this._nDataBytes*8,_=O.sigBytes*8;return M[_>>>5]|=128<<24-_%32,M[(_+64>>>9<<4)+14]=n.floor(P/4294967296),M[(_+64>>>9<<4)+15]=P,O.sigBytes=M.length*4,this._process(),this._hash},clone:function(){var O=x.clone.call(this);return O._hash=this._hash.clone(),O}});l.SHA256=x._createHelper(R),l.HmacSHA256=x._createHmacHelper(R)})(Math),r.SHA256})})(qx)),qx.exports}var Wx={exports:{}},u3=Wx.exports,SS;function d3(){return SS||(SS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),b1())})(u3,function(r){return(function(){var n=r,l=n.lib,c=l.WordArray,f=n.algo,x=f.SHA256,y=f.SHA224=x.extend({_doReset:function(){this._hash=new c.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var b=x._doFinalize.call(this);return b.sigBytes-=4,b}});n.SHA224=x._createHelper(y),n.HmacSHA224=x._createHmacHelper(y)})(),r.SHA224})})(Wx)),Wx.exports}var Qx={exports:{}},h3=Qx.exports,AS;function D2(){return AS||(AS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),Cy())})(h3,function(r){return(function(){var n=r,l=n.lib,c=l.Hasher,f=n.x64,x=f.Word,y=f.WordArray,b=n.algo;function S(){return x.create.apply(x,arguments)}var C=[S(1116352408,3609767458),S(1899447441,602891725),S(3049323471,3964484399),S(3921009573,2173295548),S(961987163,4081628472),S(1508970993,3053834265),S(2453635748,2937671579),S(2870763221,3664609560),S(3624381080,2734883394),S(310598401,1164996542),S(607225278,1323610764),S(1426881987,3590304994),S(1925078388,4068182383),S(2162078206,991336113),S(2614888103,633803317),S(3248222580,3479774868),S(3835390401,2666613458),S(4022224774,944711139),S(264347078,2341262773),S(604807628,2007800933),S(770255983,1495990901),S(1249150122,1856431235),S(1555081692,3175218132),S(1996064986,2198950837),S(2554220882,3999719339),S(2821834349,766784016),S(2952996808,2566594879),S(3210313671,3203337956),S(3336571891,1034457026),S(3584528711,2466948901),S(113926993,3758326383),S(338241895,168717936),S(666307205,1188179964),S(773529912,1546045734),S(1294757372,1522805485),S(1396182291,2643833823),S(1695183700,2343527390),S(1986661051,1014477480),S(2177026350,1206759142),S(2456956037,344077627),S(2730485921,1290863460),S(2820302411,3158454273),S(3259730800,3505952657),S(3345764771,106217008),S(3516065817,3606008344),S(3600352804,1432725776),S(4094571909,1467031594),S(275423344,851169720),S(430227734,3100823752),S(506948616,1363258195),S(659060556,3750685593),S(883997877,3785050280),S(958139571,3318307427),S(1322822218,3812723403),S(1537002063,2003034995),S(1747873779,3602036899),S(1955562222,1575990012),S(2024104815,1125592928),S(2227730452,2716904306),S(2361852424,442776044),S(2428436474,593698344),S(2756734187,3733110249),S(3204031479,2999351573),S(3329325298,3815920427),S(3391569614,3928383900),S(3515267271,566280711),S(3940187606,3454069534),S(4118630271,4000239992),S(116418474,1914138554),S(174292421,2731055270),S(289380356,3203993006),S(460393269,320620315),S(685471733,587496836),S(852142971,1086792851),S(1017036298,365543100),S(1126000580,2618297676),S(1288033470,3409855158),S(1501505948,4234509866),S(1607167915,987167468),S(1816402316,1246189591)],R=[];(function(){for(var M=0;M<80;M++)R[M]=S()})();var O=b.SHA512=c.extend({_doReset:function(){this._hash=new y.init([new x.init(1779033703,4089235720),new x.init(3144134277,2227873595),new x.init(1013904242,4271175723),new x.init(2773480762,1595750129),new x.init(1359893119,2917565137),new x.init(2600822924,725511199),new x.init(528734635,4215389547),new x.init(1541459225,327033209)])},_doProcessBlock:function(M,P){for(var _=this._hash.words,$=_[0],D=_[1],F=_[2],J=_[3],te=_[4],le=_[5],se=_[6],L=_[7],W=$.high,z=$.low,H=D.high,Z=D.low,ae=F.high,ue=F.low,ie=J.high,X=J.low,oe=te.high,ne=te.low,fe=le.high,pe=le.low,Q=se.high,re=se.low,ge=L.high,ye=L.low,Te=W,_e=z,Qe=H,Je=Z,it=ae,gt=ue,bt=ie,Xt=X,Nt=oe,xt=ne,jt=fe,Le=pe,Ke=Q,tt=re,Ze=ge,dt=ye,xe=0;xe<80;xe++){var Se,he,Ne=R[xe];if(xe<16)he=Ne.high=M[P+xe*2]|0,Se=Ne.low=M[P+xe*2+1]|0;else{var ze=R[xe-15],Ue=ze.high,Me=ze.low,ot=(Ue>>>1|Me<<31)^(Ue>>>8|Me<<24)^Ue>>>7,kt=(Me>>>1|Ue<<31)^(Me>>>8|Ue<<24)^(Me>>>7|Ue<<25),vr=R[xe-2],ir=vr.high,qt=vr.low,qr=(ir>>>19|qt<<13)^(ir<<3|qt>>>29)^ir>>>6,xr=(qt>>>19|ir<<13)^(qt<<3|ir>>>29)^(qt>>>6|ir<<26),Fr=R[xe-7],Er=Fr.high,qn=Fr.low,gr=R[xe-16],hi=gr.high,Ts=gr.low;Se=kt+qn,he=ot+Er+(Se>>>0<kt>>>0?1:0),Se=Se+xr,he=he+qr+(Se>>>0<xr>>>0?1:0),Se=Se+Ts,he=he+hi+(Se>>>0<Ts>>>0?1:0),Ne.high=he,Ne.low=Se}var ya=Nt&jt^~Nt&Ke,Ri=xt&Le^~xt&tt,En=Te&Qe^Te&it^Qe&it,Wn=_e&Je^_e>^Je>,on=(Te>>>28|_e<<4)^(Te<<30|_e>>>2)^(Te<<25|_e>>>7),Bt=(_e>>>28|Te<<4)^(_e<<30|Te>>>2)^(_e<<25|Te>>>7),Tr=(Nt>>>14|xt<<18)^(Nt>>>18|xt<<14)^(Nt<<23|xt>>>9),us=(xt>>>14|Nt<<18)^(xt>>>18|Nt<<14)^(xt<<23|Nt>>>9),Wr=C[xe],ds=Wr.high,ar=Wr.low,br=dt+us,tr=Ze+Tr+(br>>>0<dt>>>0?1:0),br=br+Ri,tr=tr+ya+(br>>>0<Ri>>>0?1:0),br=br+ar,tr=tr+ds+(br>>>0<ar>>>0?1:0),br=br+Se,tr=tr+he+(br>>>0<Se>>>0?1:0),cn=Bt+Wn,Oi=on+En+(cn>>>0<Bt>>>0?1:0);Ze=Ke,dt=tt,Ke=jt,tt=Le,jt=Nt,Le=xt,xt=Xt+br|0,Nt=bt+tr+(xt>>>0<Xt>>>0?1:0)|0,bt=it,Xt=gt,it=Qe,gt=Je,Qe=Te,Je=_e,_e=br+cn|0,Te=tr+Oi+(_e>>>0<br>>>0?1:0)|0}z=$.low=z+_e,$.high=W+Te+(z>>>0<_e>>>0?1:0),Z=D.low=Z+Je,D.high=H+Qe+(Z>>>0<Je>>>0?1:0),ue=F.low=ue+gt,F.high=ae+it+(ue>>>0<gt>>>0?1:0),X=J.low=X+Xt,J.high=ie+bt+(X>>>0<Xt>>>0?1:0),ne=te.low=ne+xt,te.high=oe+Nt+(ne>>>0<xt>>>0?1:0),pe=le.low=pe+Le,le.high=fe+jt+(pe>>>0<Le>>>0?1:0),re=se.low=re+tt,se.high=Q+Ke+(re>>>0<tt>>>0?1:0),ye=L.low=ye+dt,L.high=ge+Ze+(ye>>>0<dt>>>0?1:0)},_doFinalize:function(){var M=this._data,P=M.words,_=this._nDataBytes*8,$=M.sigBytes*8;P[$>>>5]|=128<<24-$%32,P[($+128>>>10<<5)+30]=Math.floor(_/4294967296),P[($+128>>>10<<5)+31]=_,M.sigBytes=P.length*4,this._process();var D=this._hash.toX32();return D},clone:function(){var M=c.clone.call(this);return M._hash=this._hash.clone(),M},blockSize:1024/32});n.SHA512=c._createHelper(O),n.HmacSHA512=c._createHmacHelper(O)})(),r.SHA512})})(Qx)),Qx.exports}var Jx={exports:{}},f3=Jx.exports,ES;function p3(){return ES||(ES=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),Cy(),D2())})(f3,function(r){return(function(){var n=r,l=n.x64,c=l.Word,f=l.WordArray,x=n.algo,y=x.SHA512,b=x.SHA384=y.extend({_doReset:function(){this._hash=new f.init([new c.init(3418070365,3238371032),new c.init(1654270250,914150663),new c.init(2438529370,812702999),new c.init(355462360,4144912697),new c.init(1731405415,4290775857),new c.init(2394180231,1750603025),new c.init(3675008525,1694076839),new c.init(1203062813,3204075428)])},_doFinalize:function(){var S=y._doFinalize.call(this);return S.sigBytes-=16,S}});n.SHA384=y._createHelper(b),n.HmacSHA384=y._createHmacHelper(b)})(),r.SHA384})})(Jx)),Jx.exports}var Kx={exports:{}},m3=Kx.exports,CS;function x3(){return CS||(CS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),Cy())})(m3,function(r){return(function(n){var l=r,c=l.lib,f=c.WordArray,x=c.Hasher,y=l.x64,b=y.Word,S=l.algo,C=[],R=[],O=[];(function(){for(var _=1,$=0,D=0;D<24;D++){C[_+5*$]=(D+1)*(D+2)/2%64;var F=$%5,J=(2*_+3*$)%5;_=F,$=J}for(var _=0;_<5;_++)for(var $=0;$<5;$++)R[_+5*$]=$+(2*_+3*$)%5*5;for(var te=1,le=0;le<24;le++){for(var se=0,L=0,W=0;W<7;W++){if(te&1){var z=(1<<W)-1;z<32?L^=1<<z:se^=1<<z-32}te&128?te=te<<1^113:te<<=1}O[le]=b.create(se,L)}})();var M=[];(function(){for(var _=0;_<25;_++)M[_]=b.create()})();var P=S.SHA3=x.extend({cfg:x.cfg.extend({outputLength:512}),_doReset:function(){for(var _=this._state=[],$=0;$<25;$++)_[$]=new b.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(_,$){for(var D=this._state,F=this.blockSize/2,J=0;J<F;J++){var te=_[$+2*J],le=_[$+2*J+1];te=(te<<8|te>>>24)&16711935|(te<<24|te>>>8)&4278255360,le=(le<<8|le>>>24)&16711935|(le<<24|le>>>8)&4278255360;var se=D[J];se.high^=le,se.low^=te}for(var L=0;L<24;L++){for(var W=0;W<5;W++){for(var z=0,H=0,Z=0;Z<5;Z++){var se=D[W+5*Z];z^=se.high,H^=se.low}var ae=M[W];ae.high=z,ae.low=H}for(var W=0;W<5;W++)for(var ue=M[(W+4)%5],ie=M[(W+1)%5],X=ie.high,oe=ie.low,z=ue.high^(X<<1|oe>>>31),H=ue.low^(oe<<1|X>>>31),Z=0;Z<5;Z++){var se=D[W+5*Z];se.high^=z,se.low^=H}for(var ne=1;ne<25;ne++){var z,H,se=D[ne],fe=se.high,pe=se.low,Q=C[ne];Q<32?(z=fe<<Q|pe>>>32-Q,H=pe<<Q|fe>>>32-Q):(z=pe<<Q-32|fe>>>64-Q,H=fe<<Q-32|pe>>>64-Q);var re=M[R[ne]];re.high=z,re.low=H}var ge=M[0],ye=D[0];ge.high=ye.high,ge.low=ye.low;for(var W=0;W<5;W++)for(var Z=0;Z<5;Z++){var ne=W+5*Z,se=D[ne],Te=M[ne],_e=M[(W+1)%5+5*Z],Qe=M[(W+2)%5+5*Z];se.high=Te.high^~_e.high&Qe.high,se.low=Te.low^~_e.low&Qe.low}var se=D[0],Je=O[L];se.high^=Je.high,se.low^=Je.low}},_doFinalize:function(){var _=this._data,$=_.words;this._nDataBytes*8;var D=_.sigBytes*8,F=this.blockSize*32;$[D>>>5]|=1<<24-D%32,$[(n.ceil((D+1)/F)*F>>>5)-1]|=128,_.sigBytes=$.length*4,this._process();for(var J=this._state,te=this.cfg.outputLength/8,le=te/8,se=[],L=0;L<le;L++){var W=J[L],z=W.high,H=W.low;z=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360,H=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360,se.push(H),se.push(z)}return new f.init(se,te)},clone:function(){for(var _=x.clone.call(this),$=_._state=this._state.slice(0),D=0;D<25;D++)$[D]=$[D].clone();return _}});l.SHA3=x._createHelper(P),l.HmacSHA3=x._createHmacHelper(P)})(Math),r.SHA3})})(Kx)),Kx.exports}var Zx={exports:{}},g3=Zx.exports,kS;function y3(){return kS||(kS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(g3,function(r){return(function(n){var l=r,c=l.lib,f=c.WordArray,x=c.Hasher,y=l.algo,b=f.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),S=f.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),C=f.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),R=f.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),O=f.create([0,1518500249,1859775393,2400959708,2840853838]),M=f.create([1352829926,1548603684,1836072691,2053994217,0]),P=y.RIPEMD160=x.extend({_doReset:function(){this._hash=f.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(le,se){for(var L=0;L<16;L++){var W=se+L,z=le[W];le[W]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}var H=this._hash.words,Z=O.words,ae=M.words,ue=b.words,ie=S.words,X=C.words,oe=R.words,ne,fe,pe,Q,re,ge,ye,Te,_e,Qe;ge=ne=H[0],ye=fe=H[1],Te=pe=H[2],_e=Q=H[3],Qe=re=H[4];for(var Je,L=0;L<80;L+=1)Je=ne+le[se+ue[L]]|0,L<16?Je+=_(fe,pe,Q)+Z[0]:L<32?Je+=$(fe,pe,Q)+Z[1]:L<48?Je+=D(fe,pe,Q)+Z[2]:L<64?Je+=F(fe,pe,Q)+Z[3]:Je+=J(fe,pe,Q)+Z[4],Je=Je|0,Je=te(Je,X[L]),Je=Je+re|0,ne=re,re=Q,Q=te(pe,10),pe=fe,fe=Je,Je=ge+le[se+ie[L]]|0,L<16?Je+=J(ye,Te,_e)+ae[0]:L<32?Je+=F(ye,Te,_e)+ae[1]:L<48?Je+=D(ye,Te,_e)+ae[2]:L<64?Je+=$(ye,Te,_e)+ae[3]:Je+=_(ye,Te,_e)+ae[4],Je=Je|0,Je=te(Je,oe[L]),Je=Je+Qe|0,ge=Qe,Qe=_e,_e=te(Te,10),Te=ye,ye=Je;Je=H[1]+pe+_e|0,H[1]=H[2]+Q+Qe|0,H[2]=H[3]+re+ge|0,H[3]=H[4]+ne+ye|0,H[4]=H[0]+fe+Te|0,H[0]=Je},_doFinalize:function(){var le=this._data,se=le.words,L=this._nDataBytes*8,W=le.sigBytes*8;se[W>>>5]|=128<<24-W%32,se[(W+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,le.sigBytes=(se.length+1)*4,this._process();for(var z=this._hash,H=z.words,Z=0;Z<5;Z++){var ae=H[Z];H[Z]=(ae<<8|ae>>>24)&16711935|(ae<<24|ae>>>8)&4278255360}return z},clone:function(){var le=x.clone.call(this);return le._hash=this._hash.clone(),le}});function _(le,se,L){return le^se^L}function $(le,se,L){return le&se|~le&L}function D(le,se,L){return(le|~se)^L}function F(le,se,L){return le&L|se&~L}function J(le,se,L){return le^(se|~L)}function te(le,se){return le<<se|le>>>32-se}l.RIPEMD160=x._createHelper(P),l.HmacRIPEMD160=x._createHmacHelper(P)})(),r.RIPEMD160})})(Zx)),Zx.exports}var eg={exports:{}},v3=eg.exports,TS;function w1(){return TS||(TS=1,(function(e,t){(function(r,n){e.exports=n(Zt())})(v3,function(r){(function(){var n=r,l=n.lib,c=l.Base,f=n.enc,x=f.Utf8,y=n.algo;y.HMAC=c.extend({init:function(b,S){b=this._hasher=new b.init,typeof S=="string"&&(S=x.parse(S));var C=b.blockSize,R=C*4;S.sigBytes>R&&(S=b.finalize(S)),S.clamp();for(var O=this._oKey=S.clone(),M=this._iKey=S.clone(),P=O.words,_=M.words,$=0;$<C;$++)P[$]^=1549556828,_[$]^=909522486;O.sigBytes=M.sigBytes=R,this.reset()},reset:function(){var b=this._hasher;b.reset(),b.update(this._iKey)},update:function(b){return this._hasher.update(b),this},finalize:function(b){var S=this._hasher,C=S.finalize(b);S.reset();var R=S.finalize(this._oKey.clone().concat(C));return R}})})()})}
vendor: 6,439 bytes, line 16
16)(eg)),eg.exports}var tg={exports:{}},b3=tg.exports,NS;function w3(){return NS||(NS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),b1(),w1())})(b3,function(r){return(function(){var n=r,l=n.lib,c=l.Base,f=l.WordArray,x=n.algo,y=x.SHA256,b=x.HMAC,S=x.PBKDF2=c.extend({cfg:c.extend({keySize:128/32,hasher:y,iterations:25e4}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,R){for(var O=this.cfg,M=b.create(O.hasher,C),P=f.create(),_=f.create([1]),$=P.words,D=_.words,F=O.keySize,J=O.iterations;$.length<F;){var te=M.update(R).finalize(_);M.reset();for(var le=te.words,se=le.length,L=te,W=1;W<J;W++){L=M.finalize(L),M.reset();for(var z=L.words,H=0;H<se;H++)le[H]^=z[H]}P.concat(te),D[0]++}return P.sigBytes=F*4,P}});n.PBKDF2=function(C,R,O){return S.create(O).compute(C,R)}})(),r.PBKDF2})})(tg)),tg.exports}var rg={exports:{}},S3=rg.exports,jS;function yc(){return jS||(jS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),_2(),w1())})(S3,function(r){return(function(){var n=r,l=n.lib,c=l.Base,f=l.WordArray,x=n.algo,y=x.MD5,b=x.EvpKDF=c.extend({cfg:c.extend({keySize:128/32,hasher:y,iterations:1}),init:function(S){this.cfg=this.cfg.extend(S)},compute:function(S,C){for(var R,O=this.cfg,M=O.hasher.create(),P=f.create(),_=P.words,$=O.keySize,D=O.iterations;_.length<$;){R&&M.update(R),R=M.update(S).finalize(C),M.reset();for(var F=1;F<D;F++)R=M.finalize(R),M.reset();P.concat(R)}return P.sigBytes=$*4,P}});n.EvpKDF=function(S,C,R){return b.create(R).compute(S,C)}})(),r.EvpKDF})})(rg)),rg.exports}var sg={exports:{}},A3=sg.exports,MS;function $s(){return MS||(MS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),yc())})(A3,function(r){r.lib.Cipher||(function(n){var l=r,c=l.lib,f=c.Base,x=c.WordArray,y=c.BufferedBlockAlgorithm,b=l.enc;b.Utf8;var S=b.Base64,C=l.algo,R=C.EvpKDF,O=c.Cipher=y.extend({cfg:f.extend(),createEncryptor:function(z,H){return this.create(this._ENC_XFORM_MODE,z,H)},createDecryptor:function(z,H){return this.create(this._DEC_XFORM_MODE,z,H)},init:function(z,H,Z){this.cfg=this.cfg.extend(Z),this._xformMode=z,this._key=H,this.reset()},reset:function(){y.reset.call(this),this._doReset()},process:function(z){return this._append(z),this._process()},finalize:function(z){z&&this._append(z);var H=this._doFinalize();return H},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function z(H){return typeof H=="string"?W:le}return function(H){return{encrypt:function(Z,ae,ue){return z(ae).encrypt(H,Z,ae,ue)},decrypt:function(Z,ae,ue){return z(ae).decrypt(H,Z,ae,ue)}}}})()});c.StreamCipher=O.extend({_doFinalize:function(){var z=this._process(!0);return z},blockSize:1});var M=l.mode={},P=c.BlockCipherMode=f.extend({createEncryptor:function(z,H){return this.Encryptor.create(z,H)},createDecryptor:function(z,H){return this.Decryptor.create(z,H)},init:function(z,H){this._cipher=z,this._iv=H}}),_=M.CBC=(function(){var z=P.extend();z.Encryptor=z.extend({processBlock:function(Z,ae){var ue=this._cipher,ie=ue.blockSize;H.call(this,Z,ae,ie),ue.encryptBlock(Z,ae),this._prevBlock=Z.slice(ae,ae+ie)}}),z.Decryptor=z.extend({processBlock:function(Z,ae){var ue=this._cipher,ie=ue.blockSize,X=Z.slice(ae,ae+ie);ue.decryptBlock(Z,ae),H.call(this,Z,ae,ie),this._prevBlock=X}});function H(Z,ae,ue){var ie,X=this._iv;X?(ie=X,this._iv=n):ie=this._prevBlock;for(var oe=0;oe<ue;oe++)Z[ae+oe]^=ie[oe]}return z})(),$=l.pad={},D=$.Pkcs7={pad:function(z,H){for(var Z=H*4,ae=Z-z.sigBytes%Z,ue=ae<<24|ae<<16|ae<<8|ae,ie=[],X=0;X<ae;X+=4)ie.push(ue);var oe=x.create(ie,ae);z.concat(oe)},unpad:function(z){var H=z.words[z.sigBytes-1>>>2]&255;z.sigBytes-=H}};c.BlockCipher=O.extend({cfg:O.cfg.extend({mode:_,padding:D}),reset:function(){var z;O.reset.call(this);var H=this.cfg,Z=H.iv,ae=H.mode;this._xformMode==this._ENC_XFORM_MODE?z=ae.createEncryptor:(z=ae.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==z?this._mode.init(this,Z&&Z.words):(this._mode=z.call(ae,this,Z&&Z.words),this._mode.__creator=z)},_doProcessBlock:function(z,H){this._mode.processBlock(z,H)},_doFinalize:function(){var z,H=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(H.pad(this._data,this.blockSize),z=this._process(!0)):(z=this._process(!0),H.unpad(z)),z},blockSize:128/32});var F=c.CipherParams=f.extend({init:function(z){this.mixIn(z)},toString:function(z){return(z||this.formatter).stringify(this)}}),J=l.format={},te=J.OpenSSL={stringify:function(z){var H,Z=z.ciphertext,ae=z.salt;return ae?H=x.create([1398893684,1701076831]).concat(ae).concat(Z):H=Z,H.toString(S)},parse:function(z){var H,Z=S.parse(z),ae=Z.words;return ae[0]==1398893684&&ae[1]==1701076831&&(H=x.create(ae.slice(2,4)),ae.splice(0,4),Z.sigBytes-=16),F.create({ciphertext:Z,salt:H})}},le=c.SerializableCipher=f.extend({cfg:f.extend({format:te}),encrypt:function(z,H,Z,ae){ae=this.cfg.extend(ae);var ue=z.createEncryptor(Z,ae),ie=ue.finalize(H),X=ue.cfg;return F.create({ciphertext:ie,key:Z,iv:X.iv,algorithm:z,mode:X.mode,padding:X.padding,blockSize:z.blockSize,formatter:ae.format})},decrypt:function(z,H,Z,ae){ae=this.cfg.extend(ae),H=this._parse(H,ae.format);var ue=z.createDecryptor(Z,ae).finalize(H.ciphertext);return ue},_parse:function(z,H){return typeof z=="string"?H.parse(z,this):z}}),se=l.kdf={},L=se.OpenSSL={execute:function(z,H,Z,ae,ue){if(ae||(ae=x.random(64/8)),ue)var ie=R.create({keySize:H+Z,hasher:ue}).compute(z,ae);else var ie=R.create({keySize:H+Z}).compute(z,ae);var X=x.create(ie.words.slice(H),Z*4);return ie.sigBytes=H*4,F.create({key:ie,iv:X,salt:ae})}},W=c.PasswordBasedCipher=le.extend({cfg:le.cfg.extend({kdf:L}),encrypt:function(z,H,Z,ae){ae=this.cfg.extend(ae);var ue=ae.kdf.execute(Z,z.keySize,z.ivSize,ae.salt,ae.hasher);ae.iv=ue.iv;var ie=le.encrypt.call(this,z,H,ue.key,ae);return ie.mixIn(ue),ie},decrypt:function(z,H,Z,ae){ae=this.cfg.extend(ae),H=this._parse(H,ae.format);var ue=ae.kdf.execute(Z,z.keySize,z.ivSize,H.salt,ae.hasher);ae.iv=ue.iv;var ie=le.decrypt.call(this,z,H,ue.key,ae);return ie}})})()})})(sg)),sg.exports}var ng={exports:{}},E3=ng.exports,RS;function C3(){return RS||(RS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(E3,function(r){return r.mode.CFB=(function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(c,f){var x=this._cipher,y=x.blockSize;l.call(this,c,f,y,x),this._prevBlock=c.slice(f,f+y)}}),n.Decryptor=n.extend({processBlock:function(c,f){var x=this._cipher,y=x.blockSize,b
vendor: 4,539 bytes, line 16
16=c.slice(f,f+y);l.call(this,c,f,y,x),this._prevBlock=b}});function l(c,f,x,y){var b,S=this._iv;S?(b=S.slice(0),this._iv=void 0):b=this._prevBlock,y.encryptBlock(b,0);for(var C=0;C<x;C++)c[f+C]^=b[C]}return n})(),r.mode.CFB})})(ng)),ng.exports}var ig={exports:{}},k3=ig.exports,OS;function T3(){return OS||(OS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(k3,function(r){return r.mode.CTR=(function(){var n=r.lib.BlockCipherMode.extend(),l=n.Encryptor=n.extend({processBlock:function(c,f){var x=this._cipher,y=x.blockSize,b=this._iv,S=this._counter;b&&(S=this._counter=b.slice(0),this._iv=void 0);var C=S.slice(0);x.encryptBlock(C,0),S[y-1]=S[y-1]+1|0;for(var R=0;R<y;R++)c[f+R]^=C[R]}});return n.Decryptor=l,n})(),r.mode.CTR})})(ig)),ig.exports}var ag={exports:{}},N3=ag.exports,BS;function j3(){return BS||(BS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(N3,function(r){return r.mode.CTRGladman=(function(){var n=r.lib.BlockCipherMode.extend();function l(x){if((x>>24&255)===255){var y=x>>16&255,b=x>>8&255,S=x&255;y===255?(y=0,b===255?(b=0,S===255?S=0:++S):++b):++y,x=0,x+=y<<16,x+=b<<8,x+=S}else x+=1<<24;return x}function c(x){return(x[0]=l(x[0]))===0&&(x[1]=l(x[1])),x}var f=n.Encryptor=n.extend({processBlock:function(x,y){var b=this._cipher,S=b.blockSize,C=this._iv,R=this._counter;C&&(R=this._counter=C.slice(0),this._iv=void 0),c(R);var O=R.slice(0);b.encryptBlock(O,0);for(var M=0;M<S;M++)x[y+M]^=O[M]}});return n.Decryptor=f,n})(),r.mode.CTRGladman})})(ag)),ag.exports}var lg={exports:{}},M3=lg.exports,_S;function R3(){return _S||(_S=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(M3,function(r){return r.mode.OFB=(function(){var n=r.lib.BlockCipherMode.extend(),l=n.Encryptor=n.extend({processBlock:function(c,f){var x=this._cipher,y=x.blockSize,b=this._iv,S=this._keystream;b&&(S=this._keystream=b.slice(0),this._iv=void 0),x.encryptBlock(S,0);for(var C=0;C<y;C++)c[f+C]^=S[C]}});return n.Decryptor=l,n})(),r.mode.OFB})})(lg)),lg.exports}var og={exports:{}},O3=og.exports,DS;function B3(){return DS||(DS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(O3,function(r){return r.mode.ECB=(function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(l,c){this._cipher.encryptBlock(l,c)}}),n.Decryptor=n.extend({processBlock:function(l,c){this._cipher.decryptBlock(l,c)}}),n})(),r.mode.ECB})})(og)),og.exports}var cg={exports:{}},_3=cg.exports,LS;function D3(){return LS||(LS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(_3,function(r){return r.pad.AnsiX923={pad:function(n,l){var c=n.sigBytes,f=l*4,x=f-c%f,y=c+x-1;n.clamp(),n.words[y>>>2]|=x<<24-y%4*8,n.sigBytes+=x},unpad:function(n){var l=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=l}},r.pad.Ansix923})})(cg)),cg.exports}var ug={exports:{}},L3=ug.exports,IS;function I3(){return IS||(IS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(L3,function(r){return r.pad.Iso10126={pad:function(n,l){var c=l*4,f=c-n.sigBytes%c;n.concat(r.lib.WordArray.random(f-1)).concat(r.lib.WordArray.create([f<<24],1))},unpad:function(n){var l=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=l}},r.pad.Iso10126})})(ug)),ug.exports}var dg={exports:{}},P3=dg.exports,PS;function F3(){return PS||(PS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(P3,function(r){return r.pad.Iso97971={pad:function(n,l){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,l)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})})(dg)),dg.exports}var hg={exports:{}},z3=hg.exports,FS;function U3(){return FS||(FS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(z3,function(r){return r.pad.ZeroPadding={pad:function(n,l){var c=l*4;n.clamp(),n.sigBytes+=c-(n.sigBytes%c||c)},unpad:function(n){for(var l=n.words,c=n.sigBytes-1,c=n.sigBytes-1;c>=0;c--)if(l[c>>>2]>>>24-c%4*8&255){n.sigBytes=c+1;break}}},r.pad.ZeroPadding})})(hg)),hg.exports}var fg={exports:{}},$3=fg.exports,zS;function V3(){return zS||(zS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})($3,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})})(fg)),fg.exports}var pg={exports:{}},H3=pg.exports,US;function Y3(){return US||(US=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),$s())})(H3,function(r){return(function(n){var l=r,c=l.lib,f=c.CipherParams,x=l.enc,y=x.Hex,b=l.format;b.Hex={stringify:function(S){return S.ciphertext.toString(y)},parse:function(S){var C=y.parse(S);return f.create({ciphertext:C})}}})(),r.format.Hex}
vendor: 3,032 bytes, line 16
16)})(pg)),pg.exports}var mg={exports:{}},G3=mg.exports,$S;function X3(){return $S||($S=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),Lu(),Iu(),yc(),$s())})(G3,function(r){return(function(){var n=r,l=n.lib,c=l.BlockCipher,f=n.algo,x=[],y=[],b=[],S=[],C=[],R=[],O=[],M=[],P=[],_=[];(function(){for(var F=[],J=0;J<256;J++)J<128?F[J]=J<<1:F[J]=J<<1^283;for(var te=0,le=0,J=0;J<256;J++){var se=le^le<<1^le<<2^le<<3^le<<4;se=se>>>8^se&255^99,x[te]=se,y[se]=te;var L=F[te],W=F[L],z=F[W],H=F[se]*257^se*16843008;b[te]=H<<24|H>>>8,S[te]=H<<16|H>>>16,C[te]=H<<8|H>>>24,R[te]=H;var H=z*16843009^W*65537^L*257^te*16843008;O[se]=H<<24|H>>>8,M[se]=H<<16|H>>>16,P[se]=H<<8|H>>>24,_[se]=H,te?(te=L^F[F[F[z^L]]],le^=F[F[le]]):te=le=1}})();var $=[0,1,2,4,8,16,32,64,128,27,54],D=f.AES=c.extend({_doReset:function(){var F;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var J=this._keyPriorReset=this._key,te=J.words,le=J.sigBytes/4,se=this._nRounds=le+6,L=(se+1)*4,W=this._keySchedule=[],z=0;z<L;z++)z<le?W[z]=te[z]:(F=W[z-1],z%le?le>6&&z%le==4&&(F=x[F>>>24]<<24|x[F>>>16&255]<<16|x[F>>>8&255]<<8|x[F&255]):(F=F<<8|F>>>24,F=x[F>>>24]<<24|x[F>>>16&255]<<16|x[F>>>8&255]<<8|x[F&255],F^=$[z/le|0]<<24),W[z]=W[z-le]^F);for(var H=this._invKeySchedule=[],Z=0;Z<L;Z++){var z=L-Z;if(Z%4)var F=W[z];else var F=W[z-4];Z<4||z<=4?H[Z]=F:H[Z]=O[x[F>>>24]]^M[x[F>>>16&255]]^P[x[F>>>8&255]]^_[x[F&255]]}}},encryptBlock:function(F,J){this._doCryptBlock(F,J,this._keySchedule,b,S,C,R,x)},decryptBlock:function(F,J){var te=F[J+1];F[J+1]=F[J+3],F[J+3]=te,this._doCryptBlock(F,J,this._invKeySchedule,O,M,P,_,y);var te=F[J+1];F[J+1]=F[J+3],F[J+3]=te},_doCryptBlock:function(F,J,te,le,se,L,W,z){for(var H=this._nRounds,Z=F[J]^te[0],ae=F[J+1]^te[1],ue=F[J+2]^te[2],ie=F[J+3]^te[3],X=4,oe=1;oe<H;oe++){var ne=le[Z>>>24]^se[ae>>>16&255]^L[ue>>>8&255]^W[ie&255]^te[X++],fe=le[ae>>>24]^se[ue>>>16&255]^L[ie>>>8&255]^W[Z&255]^te[X++],pe=le[ue>>>24]^se[ie>>>16&255]^L[Z>>>8&255]^W[ae&255]^te[X++],Q=le[ie>>>24]^se[Z>>>16&255]^L[ae>>>8&255]^W[ue&255]^te[X++];Z=ne,ae=fe,ue=pe,ie=Q}var ne=(z[Z>>>24]<<24|z[ae>>>16&255]<<16|z[ue>>>8&255]<<8|z[ie&255])^te[X++],fe=(z[ae>>>24]<<24|z[ue>>>16&255]<<16|z[ie>>>8&255]<<8|z[Z&255])^te[X++],pe=(z[ue>>>24]<<24|z[ie>>>16&255]<<16|z[Z>>>8&255]<<8|z[ae&255])^te[X++],Q=(z[ie>>>24]<<24|z[Z>>>16&255]<<16|z[ae>>>8&255]<<8|z[ue&255])^te[X++];F[J]=ne,F[J+1]=fe,F[J+2]=pe,F[J+3]=Q},keySize:256/32});n.AES=c._createHelper(D)})(),r.AES})})(mg)),mg.exports}var xg={exports:{}},q3=xg.exports,VS;function W3(){return VS||(VS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),Lu(),Iu(),yc(),$s())})(q3,function(r){return(function(){var n=r,l=n.lib,c=l.WordArray,f=l.BlockCipher,x=n.algo,y=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],b=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],S=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C
vendor: 7,629 bytes, line 16
16=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 7,836 bytes, line 16
16R=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],O=x.DES=f.extend({_doReset:function(){for(var $=this._key,D=$.words,F=[],J=0;J<56;J++){var te=y[J]-1;F[J]=D[te>>>5]>>>31-te%32&1}for(var le=this._subKeys=[],se=0;se<16;se++){for(var L=le[se]=[],W=S[se],J=0;J<24;J++)L[J/6|0]|=F[(b[J]-1+W)%28]<<31-J%6,L[4+(J/6|0)]|=F[28+(b[J+24]-1+W)%28]<<31-J%6;L[0]=L[0]<<1|L[0]>>>31;for(var J=1;J<7;J++)L[J]=L[J]>>>(J-1)*4+3;L[7]=L[7]<<5|L[7]>>>27}for(var z=this._invSubKeys=[],J=0;J<16;J++)z[J]=le[15-J]},encryptBlock:function($,D){this._doCryptBlock($,D,this._subKeys)},decryptBlock:function($,D){this._doCryptBlock($,D,this._invSubKeys)},_doCryptBlock:function($,D,F){this._lBlock=$[D],this._rBlock=$[D+1],M.call(this,4,252645135),M.call(this,16,65535),P.call(this,2,858993459),P.call(this,8,16711935),M.call(this,1,1431655765);for(var J=0;J<16;J++){for(var te=F[J],le=this._lBlock,se=this._rBlock,L=0,W=0;W<8;W++)L|=C[W][((se^te[W])&R[W])>>>0];this._lBlock=se,this._rBlock=le^L}var z=this._lBlock;this._lBlock=this._rBlock,this._rBlock=z,M.call(this,1,1431655765),P.call(this,8,16711935),P.call(this,2,858993459),M.call(this,16,65535),M.call(this,4,252645135),$[D]=this._lBlock,$[D+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function M($,D){var F=(this._lBlock>>>$^this._rBlock)&D;this._rBlock^=F,this._lBlock^=F<<$}function P($,D){var F=(this._rBlock>>>$^this._lBlock)&D;this._lBlock^=F,this._rBlock^=F<<$}n.DES=f._createHelper(O);var _=x.TripleDES=f.extend({_doReset:function(){var $=this._key,D=$.words;if(D.length!==2&&D.length!==4&&D.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var F=D.slice(0,2),J=D.length<4?D.slice(0,2):D.slice(2,4),te=D.length<6?D.slice(0,2):D.slice(4,6);this._des1=O.createEncryptor(c.create(F)),this._des2=O.createEncryptor(c.create(J)),this._des3=O.createEncryptor(c.create(te))},encryptBlock:function($,D){this._des1.encryptBlock($,D),this._des2.decryptBlock($,D),this._des3.encryptBlock($,D)},decryptBlock:function($,D){this._des3.decryptBlock($,D),this._des2.encryptBlock($,D),this._des1.decryptBlock($,D)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=f._createHelper(_)})(),r.TripleDES})})(xg)),xg.exports}var gg={exports:{}},Q3=gg.exports,HS;function J3(){return HS||(HS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),Lu(),Iu(),yc(),$s())})(Q3,function(r){return(function(){var n=r,l=n.lib,c=l.StreamCipher,f=n.algo,x=f.RC4=c.extend({_doReset:function(){for(var S=this._key,C=S.words,R=S.sigBytes,O=this._S=[],M=0;M<256;M++)O[M]=M;for(var M=0,P=0;M<256;M++){var _=M%R,$=C[_>>>2]>>>24-_%4*8&255;P=(P+O[M]+$)%256;var D=O[M];O[M]=O[P],O[P]=D}this._i=this._j=0},_doProcessBlock:function(S,C){S[C]^=y.call(this)},keySize:256/32,ivSize:0});function y(){for(var S=this._S,C=this._i,R=this._j,O=0,M=0;M<4;M++){C=(C+1)%256,R=(R+S[C])%256;var P=S[C];S[C]=S[R],S[R]=P,O|=S[(S[C]+S[R])%256]<<24-M*8}return this._i=C,this._j=R,O}n.RC4=c._createHelper(x);var b=f.RC4Drop=x.extend({cfg:x.cfg.extend({drop:192}),_doReset:function(){x._doReset.call(this);for(var S=this.cfg.drop;S>0;S--)y.call(this)}});n.RC4Drop=c._createHelper(b)})(),r.RC4})})(gg)),gg.exports}var yg={exports:{}},K3=yg.exports,YS;function Z3(){return YS||(YS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),Lu(),Iu(),yc(),$s())})(K3,function(r){return(function(){var n=r,l=n.lib,c=l.StreamCipher,f=n.algo,x=[],y=[],b=[],S=f.Rabbit=c.extend({_doReset:function(){for(var R=this._key.words,O=this.cfg.iv,M=0;M<4;M++)R[M]=(R[M]<<8|R[M]>>>24)&16711935|(R[M]<<24|R[M]>>>8)&4278255360;var P=this._X=[R[0],R[3]<<16|R[2]>>>16,R[1],R[0]<<16|R[3]>>>16,R[2],R[1]<<16|R[0]>>>16,R[3],R[2]<<16|R[1]>>>16],_=this._C=[R[2]<<16|R[2]>>>16,R[0]&4294901760|R[1]&65535,R[3]<<16|R[3]>>>16,R[1]&4294901760|R[2]&65535,R[0]<<16|R[0]>>>16,R[2]&4294901760|R[3]&65535,R[1]<<16|R[1]>>>16,R[3]&4294901760|R[0]&65535];this._b=0;for(var M=0;M<4;M++)C.call(this);for(var M=0;M<8;M++)_[M]^=P[M+4&7];if(O){var $=O.words,D=$[0],F=$[1],J=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,te=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,le=J>>>16|te&4294901760,se=te<<16|J&65535;_[0]^=J,_[1]^=le,_[2]^=te,_[3]^=se,_[4]^=J,_[5]^=le,_[6]^=te,_[7]^=se;for(var M=0;M<4;M++)C.call(this)}},_doProcessBlock:function(R,O){var M=this._X;C.call(this),x[0]=M[0]^M[5]>>>16^M[3]<<16,x[1]=M[2]^M[7]>>>16^M[5]<<16,x[2]=M[4]^M[1]>>>16^M[7]<<16,x[3]=M[6]^M[3]>>>16^M[1]<<16;for(var P=0;P<4;P++)x[P]=(x[P]<<8|x[P]>>>24)&16711935|(x[P]<<24|x[P]>>>8)&4278255360,R[O+P]^=x[P]},blockSize:128/32,ivSize:64/32});function C(){for(var R=this._X,O=this._C,M=0;M<8;M++)y[M]=O[M];O[0]=O[0]+1295307597+this._b|0,O[1]=O[1]+3545052371+(O[0]>>>0<y[0]>>>0?1:0)|0,O[2]=O[2]+886263092+(O[1]>>>0<y[1]>>>0?1:0)|0,O[3]=O[3]+1295307597+(O[2]>>>0<y[2]>>>0?1:0)|0,O[4]=O[4]+3545052371+(O[3]>>>0<y[3]>>>0?1:0)|0,O[5]=O[5]+886263092+(O[4]>>>0<y[4]>>>0?1:0)|0,O[6]=O[6]+1295307597+(O[5]>>>0<y[5]>>>0?1:0)|0,O[7]=O[7]+3545052371+(O[6]>>>0<y[6]>>>0?1:0)|0,this._b=O[7]>>>0<y[7]>>>0?1:0;for(var M=0;M<8;M++){var P=R[M]+O[M],_=P&65535,$=P>>>16,D=((_*_>>>17)+_*$>>>15)+$*$,F=((P&4294901760)*P|0)+((P&65535)*P|0);b[M]=D^F}R[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,R[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,R[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,R[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,R[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,R[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,R[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,R[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}n.Rabbit=c._createHelper(S)})(),r.Rabbit})})(yg)),yg.exports}var vg={exports:{}},eR=vg.exports,GS;function tR(){return GS||(GS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),Lu(),Iu(),yc(),$s())})(eR,function(r){return(function(){var n=r,l=n.lib,c=l.StreamCipher,f=n.algo,x=[],y=[],b=[],S=f.RabbitLegacy=c.extend({_doReset:function(){var R=this._key.words,O=this.cfg.iv,M=this._X=[R[0],R[3]<<16|R[2]>>>16,R[1],R[0]<<16|R[3]>>>16,R[2],R[1]<<16|R[0]>>>16,R[3],R[2]<<16|R[1]>>>16],P=this._C=[R[2]<<16|R[2]>>>16,R[0]&4294901760|R[1]&65535,R[3]<<16|R[3]>>>16,R[1]&4294901760|R[2]&65535,R[0]<<16|R[0]>>>16,R[2]&4294901760|R[3]&65535,R[1]<<16|R[1]>>>16,R[3]&4294901760|R[0]&65535];this._b=0;for(var _=0;_<4;_++)C.call(this);for(var _=0;_<8;_++)P[_]^=M[_+4&7];if(O){var $=O.words,D=$[0],F=$[1],J=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,te=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,le=J>>>16|te&4294901760,se=te<<16|J&65535;P[0]^=J,P[1]^=le,P[2]^=te,P[3]^=se,P[4]^=J,P[5]^=le,P[6]^=te,P[7]^=se;for(var _=0;_<4;_++)C.call(this)}},_doProcessBlock:function(R,O){var M=this._X;C.call(this),x[0]=M[0]^M[5]>>>16^M[3]<<16,x[1]=M[2]^M[7]>>>16^M[5]<<16,x[2]=M[4]^M[1]>>>16^M[7]<<16,x[3]=M[6]^M[3]>>>16^M[1]<<16;for(var P=0;P<4;P++)x[P]=(x[P]<<8|x[P]>>>24)&16711935|(x[P]<<24|x[P]>>>8)&4278255360,R[O+P]^=x[P]},blockSize:128/32,ivSize:64/32});function C(){for(var R=this._X,O=this._C,M=0;M<8;M++)y[M]=O[M];O[0]=O[0]+1295307597+this._b|0,O[1]=O[1]+3545052371+(O[0]>>>0<y[0]>>>0?1:0)|0,O[2]=O[2]+886263092+(O[1]>>>0<y[1]>>>0?1:0)|0,O[3]=O[3]+1295307597+(O[2]>>>0<y[2]>>>0?1:0)|0,O[4]=O[4]+3545052371+(O[3]>>>0<y[3]>>>0?1:0)|0,O[5]=O[5]+886263092+(O[4]>>>0<y[4]>>>0?1:0)|0,O[6]=O[6]+1295307597+(O[5]>>>0<y[5]>>>0?1:0)|0,O[7]=O[7]+3545052371+(O[6]>>>0<y[6]>>>0?1:0)|0,this._b=O[7]>>>0<y[7]>>>0?1:0;for(var M=0;M<8;M++){var P=R[M]+O[M],_=P&65535,$=P>>>16,D=((_*_>>>17)+_*$>>>15)+$*$,F=((P&4294901760)*P|0)+((P&65535)*P|0);b[M]=D^F}R[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,R[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,R[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,R[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,R[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,R[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,R[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,R[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}n.RabbitLegacy=c._createHelper(S)})(),r.RabbitLegacy})}
16)(vg)),vg.exports}var bg={exports:{}},rR=bg.exports,XS;function sR(){return XS||(XS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),Lu(),Iu(),yc(),$s())})(rR,function(r){return(function(){var n=r,l=n.lib,c=l.BlockCipher,f=n.algo;const x=16,y=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],b
vendor: 11,038 bytes, line 16
16=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var
vendor: 1,418 bytes, line 16
16S={pbox:[],sbox:[]};function C(_,$){let D=$>>24&255,F=$>>16&255,J=$>>8&255,te=$&255,le=_.sbox[0][D]+_.sbox[1][F];return le=le^_.sbox[2][J],le=le+_.sbox[3][te],le}function R(_,$,D){let F=$,J=D,te;for(let le=0;le<x;++le)F=F^_.pbox[le],J=C(_,F)^J,te=F,F=J,J=te;return te=F,F=J,J=te,J=J^_.pbox[x],F=F^_.pbox[x+1],{left:F,right:J}}function O(_,$,D){let F=$,J=D,te;for(let le=x+1;le>1;--le)F=F^_.pbox[le],J=C(_,F)^J,te=F,F=J,J=te;return te=F,F=J,J=te,J=J^_.pbox[1],F=F^_.pbox[0],{left:F,right:J}}function M(_,$,D){for(let se=0;se<4;se++){_.sbox[se]=[];for(let L=0;L<256;L++)_.sbox[se][L]=b[se][L]}let F=0;for(let se=0;se<x+2;se++)_.pbox[se]=y[se]^$[F],F++,F>=D&&(F=0);let J=0,te=0,le=0;for(let se=0;se<x+2;se+=2)le=R(_,J,te),J=le.left,te=le.right,_.pbox[se]=J,_.pbox[se+1]=te;for(let se=0;se<4;se++)for(let L=0;L<256;L+=2)le=R(_,J,te),J=le.left,te=le.right,_.sbox[se][L]=J,_.sbox[se][L+1]=te;return!0}var P=f.Blowfish=c.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var _=this._keyPriorReset=this._key,$=_.words,D=_.sigBytes/4;M(S,$,D)}},encryptBlock:function(_,$){var D=R(S,_[$],_[$+1]);_[$]=D.left,_[$+1]=D.right},decryptBlock:function(_,$){var D=O(S,_[$],_[$+1]);_[$]=D.left,_[$+1]=D.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=c._createHelper(P)})(),r.Blowfish})})(bg)),bg.exports}var nR=Fx.exports,qS;function iR(){return qS||(qS=1,(function(e,t){(function(r,n,l){e.exports=n(Zt(),
16Cy(),t3(),s3(),Lu(),a3(),Iu(),_2(),b1(),d3(),D2(),p3(),x3(),y3(),w1(),w3(),yc(),$s(),C3(),T3(),j3(),R3(),B3(),D3(),I3(),F3(),U3(),V3(),Y3(),X3(),W3(),J3(),Z3(),tR(),sR())})(nR,function(r){return r})})(Fx)),Fx.exports}var aR=iR();const ii=gc(aR);function L2(e){return ii.MD5(e).toString()}function S1(e=8){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<e;n++)r+=t.charAt(Math.floor(Math.random()*t.length));return r}const wp=()=>({Authorization:`bearer ${He.getAccessToken()}`}),WS=async()=>{try{return(await st.get("https://checkip.stockradars.co/checkip.php",{headers:{"cache-control":"no-cache"}})).data}catch{return null}};class lR{ip=null;async login(t,r){const n=new URLSearchParams({username:t,password:r,grant_type:"password"});try{const l=await st.post(`${pt.GLOBLEX_API}/Token`,n.toString());if(l.data?.access_token)return l.data;throw new Error(cs(l.data,"Login failed"))}catch(l){throw st.isAxiosError(l)&&l.response?.data?new Error(cs(l.response.data,"Login failed")):l}}async loginPortal(t){return null}async accounts(t){const r={accountNo:[]},n=new URLSearchParams({user_id:t||""});try{const l=await st.post(`${pt.GLOBLEX_USER_API}/users/get_user_account`,n.toString());l.data?.AccountNo&&l.data.AccountNo.forEach(c=>{r.accountNo.push({accountNo:c.AccountNo})})}catch{}return r}async portfolio(t){const r=[];try{(await st.get(`${pt.GLOBLEX_API}/api/portfolio/${t}/position`,{headers:wp()})).data?.forEach(l=>{r.push({averageAmount:l.AverageAmount,averagePrice:l.AveragePrice,cost:l.Cost,marketPrice:l.MarketPrice,onHand:l.OnHand,percentUnRealized:isFinite(l.percentUnRealized)?l.percentUnRealized:0,realized:l.Realized,sellable:l.Sellable,symbol:l.Stock,trustId:l.TrustId,type:l.Type,unRealized:l.Unrealized})})}catch{}return r}async credit(t){try{const r=await st.get(`${pt.GLOBLEX_API}/api/portfolio/${t}/credit`,{headers:wp()});if(r.data?.AccountNo)return{accountNo:r.data.AccountNo,accountType:r.data.AccountType,creditLimit:r.data.CreditLimit,buyLimit:r.data.BuyLimit,buyValue:r.data.BuyValue,sellValue:r.data.SellValue,cashAmount:r.data.CashAmount}}catch{}return null}async orders(t){const r=[];try{(await st.get(`${pt.GLOBLEX_API}/api/portfolio/${t}/order`,{headers:wp()})).data?.forEach(l=>{const c=isNaN(l.Price)?l.Price:null;r.push({accountNo:l.AccountNo,orderDate:l.OrderDate,orderTime:l.OrderTime,orderNo:l.OrderNo,matchedVolume:l.MatchedVolume,matchedPrice:l.Price,price:l.Price,side:l.Side,status:String(l.Status).trim(),stock:String(l.Stock).trim(),trustId:l.TrustId,volume:l.Volume,conditionPrice:c})})}catch{}return r.reverse()}async sendOrder(t){(!t.publish||t.publish===0)&&(t.publish=t.volume),t.cPrice!=="_"&&(t.price=0),this.ip||(this.ip=await WS()),t.ip=this.ip;try{const r=await st.post(`${pt.GLOBLEX_API}/api/order`,{AccountNo:t.accountNo,Stock:t.stock,Side:t.side,Volume:t.volume,Publish:t.publish,Price:t.price,TrustId:t.trustId,ConditionPrice:t.cPrice,Condition:t.condition,Pin:t.pin,Cip:t.ip,CChannel:"web"},{headers:wp()});return{Result:r.data?.Result===!0,Message:r.data?.Message||""}}catch(r){return{Result:!1,Message:r.response?.data?.Message||"Please try again"}}}async cancelOrder(t){this.ip||(this.ip=await WS()),t.ip=this.ip;try{return await st.delete(`${pt.GLOBLEX_API}/api/order`,{headers:{...wp(),"content-type":"application/x-www-form-urlencoded"},data:{AccountNo:t.accountNo,OrderNo:t.orderNo,Pin:t.pin,Cip:t.ip,CChannel:"web"}}),{Result:!0,Message:""}}catch(r){return{Result:!1,Message:r.response?.data?.Message||"Please try again"}}}}const fh=()=>({Authorization:`Bearer ${He.getAccessToken()}`});class oR{async login(t,r){const n=new URLSearchParams({username:t,password:r,grant_type:"password"});try{const l=await st.post(`${pt.KRUNGSRI_API}/Token`,n.toString());if(l.data?.access_token)return l.data;throw new Error(cs(l.data,"The user name or password is incorrect."))}catch(l){throw st.isAxiosError(l)&&l.response?.data?new Error(cs(l.response.data,"The user name or password is incorrect.")):l}}async loginPortal(t){try{const r=new URLSearchParams({token:t}),n=await st.post(`${pt.KRUNGSRI_API}/api/sso`,r.toString(),{headers:{"content-type":"application/x-www-form-urlencoded"}});if(n.data?.access_token)return n.data;throw new Error(cs(n.data,"Portal login failed"))}catch(r){throw st.isAxiosError(r)&&r.response?.data?new Error(cs(r.response.data,"Portal login failed")):r}}async accounts(t){const r={accountNo:[]};try{const n=await st.post(`${pt.KRUNGSRI_API}/api/account/userinfo`,{username:He.getUsername()},{headers:fh()});
16n.data?.Accounts&&n.data.Accounts.forEach(c=>{r.accountNo.push({accountNo:c.AccountNo})});const l=n.data?.InvestorName||n.data?.FullName||n.data?.fullname;l&&(r.fullname=l)}catch{}return r}async portfolio(t){const r=[];try{const n=await st.get(`${pt.KRUNGSRI_API}/api/portfolio/${t}/position`,{headers:fh()});Array.isArray(n.data)&&n.data.forEach(l=>{r.push({averageAmount:parseFloat(l.Cost),averagePrice:parseFloat(l.AveragePrice),cost:parseFloat(l.Cost),marketPrice:parseFloat(l.MarketPrice),onHand:parseFloat(l.OnHand),percentUnRealized:isFinite(parseFloat(l.percentUnRealized))?parseFloat(l.percentUnRealized):0,realized:parseFloat(l.Realized),sellable:parseFloat(l.Sellable),symbol:l.Stock,trustId:parseFloat(l.TrustId),type:l.Type,unRealized:l.Unrealized})})}catch{}return r}async credit(t){try{const r=await st.get(`${pt.KRUNGSRI_API}/api/portfolio/${t}/credit`,{headers:fh()});if(Array.isArray(r.data)&&r.data.length>0){const n=r.data[0];return{accountNo:n.AccountNo,accountType:n.AccountType,creditLimit:n.CreditLimit,buyLimit:n.BuyLimit,buyValue:n.BuyValue,sellValue:n.SellValue,cashAmount:n.CashAmount}}}catch{}return null}async orders(t){const r=[];try{const n=await st.get(`${pt.KRUNGSRI_API}/api/portfolio/${t}/order`,{headers:fh()});Array.isArray(n.data)&&n.data.forEach(l=>{const c=isNaN(l.Price)?l.Price:null;r.push({accountNo:l.AccountNo,orderDate:l.OrderDate,orderTime:l.OrderTime,orderNo:l.OrderNo,matchedVolume:l.MatchedVolume,matchedPrice:l.Price,price:l.Price,side:l.Side,status:String(l.Status).trim(),stock:String(l.Stock).trimEnd(),trustId:l.TrustId,volume:l.Volume,conditionPrice:c})})}catch{}return r.reverse()}async sendOrder(t){(!t.publish||t.publish===0)&&(t.publish=t.volume),t.cPrice!=="_"&&(t.price=0);try{const r=await st.post(`${pt.KRUNGSRI_API}/api/order`,{AccountNo:t.accountNo,Stock:t.stock,Side:t.side,Volume:t.volume,Publish:t.publish,Price:t.price,TrustId:t.trustId,ConditionPrice:t.cPrice,Condition:t.condition,Pin:t.pin},{headers:{...fh(),"content-type":"application/x-www-form-urlencoded"}}),n=r.data?.Result==="YES";return{Result:n,Message:n?"Order has been sent successfully":r.data?.Message||""}}catch(r){return{Result:!1,Message:r.response?.data?.Message||"Please try again"}}}async cancelOrder(t){try{const r=await st.delete(`${pt.KRUNGSRI_API}/api/order`,{headers:{...fh(),"content-type":"application/x-www-form-urlencoded"},data:{AccountNo:t.accountNo,OrderNo:t.orderNo,Pin:t.pin}});return{Result:r.data?.Result==="YES",Message:r.data?.Message||""}}catch(r){return{Result:!1,Message:r.response?.data?.Message||"Please try again"}}}}const I2=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",cR=I2+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",uR="["+I2+"]["+cR+"]*",dR=new RegExp("^"+uR+"$");function P2(e,t){const r=[];let n=t.exec(e);for(;n;){const l=[];l.startIndex=t.lastIndex-n[0].length;const c=n.length;for(let f=0;f<c;f++)l.push(n[f]);r.push(l),n=t.exec(e)}return r}const ky=function(e){const t=dR.exec(e);return!(t===null||typeof t>"u")};function hR(e){return typeof e<"u"}const fR={allowBooleanAttributes:!1,unpairedTags:[]};function pR(e,t){t=Object.assign({},fR,t);const r=[];let n=!1,l=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let c=0;c<e.length;c++)if(e[c]==="<"&&e[c+1]==="?"){if(c+=2,c=JS(e,c),c.err)return c}else if(e[c]==="<"){let f=c;if(c++,e[c]==="!"){c=KS(e,c);continue}else{let x=!1;e[c]==="/"&&(x=!0,c++);let y="";for(;c<e.length&&e[c]!==">"&&e[c]!==" "&&e[c]!==" "&&e[c]!==` 17`&&e[c]!=="\r";c++)y+=e[c];if(y=y.trim(),y[y.length-1]==="/"&&(y=y.substring(0,y.length-1),c--),!SR(y)){let C;return y.trim().length===0?C="Invalid space after '<'.":C="Tag '"+y+"' is an invalid name.",gs("InvalidTag",C,gn(e,c))}const b=gR(e,c);if(b===!1)return gs("InvalidAttr","Attributes for '"+y+"' have open quote.",gn(e,c));let S=b.value;if(c=b.index,S[S.length-1]==="/"){const C=c-S.length;S=S.substring(0,S.length-1);const R=ZS(S,t);if(R===!0)n=!0;else return gs(R.err.code,R.err.msg,gn(e,C+R.err.line))}else if(x)if(b.tagClosed){if(S.trim().length>
vendor: 5,831 bytes, lines 17-18
170)return gs("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",gn(e,f));if(r.length===0)return gs("InvalidTag","Closing tag '"+y+"' has not been opened.",gn(e,f));{const C=r.pop();if(y!==C.tagName){let R=gn(e,C.tagStartPos);return gs("InvalidTag","Expected closing tag '"+C.tagName+"' (opened in line "+R.line+", col "+R.col+") instead of closing tag '"+y+"'.",gn(e,f))}r.length==0&&(l=!0)}}else return gs("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",gn(e,c));else{const C=ZS(S,t);if(C!==!0)return gs(C.err.code,C.err.msg,gn(e,c-S.length+C.err.line));if(l===!0)return gs("InvalidXml","Multiple possible root nodes found.",gn(e,c));t.unpairedTags.indexOf(y)!==-1||r.push({tagName:y,tagStartPos:f}),n=!0}for(c++;c<e.length;c++)if(e[c]==="<")if(e[c+1]==="!"){c++,c=KS(e,c);continue}else if(e[c+1]==="?"){if(c=JS(e,++c),c.err)return c}else break;else if(e[c]==="&"){const C=bR(e,c);if(C==-1)return gs("InvalidChar","char '&' is not expected.",gn(e,c));c=C}else if(l===!0&&!QS(e[c]))return gs("InvalidXml","Extra text at the end",gn(e,c));e[c]==="<"&&c--}}else{if(QS(e[c]))continue;return gs("InvalidChar","char '"+e[c]+"' is not expected.",gn(e,c))}if(n){if(r.length==1)return gs("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",gn(e,r[0].tagStartPos));if(r.length>0)return gs("InvalidXml","Invalid '"+JSON.stringify(r.map(c=>c.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return gs("InvalidXml","Start tag expected.",1);return!0}function QS(e){return e===" "||e===" "||e===` 18`||e==="\r"}function JS(e,t){const r=t;for(;t<e.length;t++)if(e[t]=="?"||e[t]==" "){const n=e.substr(r,t-r);if(t>5&&n==="xml")return gs("InvalidXml","XML declaration allowed only at the start of the document.",gn(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function KS(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t<e.length;t++)if(e[t]==="<")r++;else if(e[t]===">"&&(r--,r===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}const mR='"',xR="'";function gR(e,t){let r="",n="",l=!1;for(;t<e.length;t++){if(e[t]===mR||e[t]===xR)n===""?n=e[t]:n!==e[t]||(n="");else if(e[t]===">"&&n===""){l=!0;break}r+=e[t]}return n!==""?!1:{value:r,index:t,tagClosed:l}}const yR=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ZS(e,t){const r=P2(e,yR),n={};for(let l=0;l<r.length;l++){if(r[l][1].length===0)return gs("InvalidAttr","Attribute '"+r[l][2]+"' has no space in starting.",Sp(r[l]));if(r[l][3]!==void 0&&r[l][4]===void 0)return gs("InvalidAttr","Attribute '"+r[l][2]+"' is without value.",Sp(r[l]));if(r[l][3]===void 0&&!t.allowBooleanAttributes)return gs("InvalidAttr","boolean attribute '"+r[l][2]+"' is not allowed.",Sp(r[l]));const c=r[l][2];if(!wR(c))return gs("InvalidAttr","Attribute '"+c+"' is an invalid name.",Sp(r[l]));if(!Object.prototype.hasOwnProperty.call(n,c))n[c]=1;else return gs("InvalidAttr","Attribute '"+c+"' is repeated.",Sp(r[l]))}return!0}function vR(e,t){let r=/\d/;for(e[t]==="x"&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(r))break}return-1}function bR(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,vR(e,t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(e[t]===";")break;return-1}return t}function gs(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function wR(e){return ky(e)}function SR(e){return ky(e)}function gn(e,t){const r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Sp(e){return e.startIndex+e[1].length}const AR={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0};function F2(e){return typeof e=="boolean"?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof e=="object"&&e!==null?{enabled:e.enabled!==!1,maxEntitySize:e.maxEntitySize??1e4,maxExpansionDepth:e.maxExpansionDepth??10,maxTotalExpansions:e.maxTotalExpansions??1e3,maxExpandedLength:e.maxExpandedLength??1e5,maxEntityCount:e.maxEntityCount??100,allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:F2(!0)}const ER=function(e){const t=Object.assign({},AR,e);return t.processEntities=F2(t.processEntities),t};let Qg;typeof Symbol!="function"?Qg="@@xmlMetadata":Qg=Symbol("XML Node Metadata");class ac{constructor(t){this.tagname=t,this.child=[],this[":@"]=Object.create(null)}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t,r){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),r!==void 0&&(this.child[this.child.length-1][Qg]={startIndex:r})}static getMetaDataSymbol(){return Qg}}class CR{constructor(t){this.suppressValidationErr=!t,this.options=t}
18readDocType(t,r){const n=Object.create(null);let l=0;if(t[r+3]==="O"&&t[r+4]==="C"&&t[r+5]==="T"&&t[r+6]==="Y"&&t[r+7]==="P"&&t[r+8]==="E"){r=r+9;let c=1,f=!1,x=!1,y="";for(;r<t.length;r++)if(t[r]==="<"&&!x){if(f&&yu(t,"!ENTITY",r)){r+=7;let b,S;if([b,S,r]=this.readEntityExp(t,r+1,this.suppressValidationErr),S.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount&&l>=this.options.maxEntityCount)throw new Error(`Entity count (${l+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const C=b.replace(/[.\-+*:]/g,"\\.");n[b]={regx:RegExp(`&${C};`,"g"),val:S},l++}}else if(f&&yu(t,"!ELEMENT",r)){r+=8;const{index:b}=this.readElementExp(t,r+1);r=b}else if(f&&yu(t,"!ATTLIST",r))r+=8;else if(f&&yu(t,"!NOTATION",r)){r+=9;const{index:b}=this.readNotationExp(t,r+1,this.suppressValidationErr);r=b}else if(yu(t,"!--",r))x=!0;else throw new Error("Invalid DOCTYPE");c++,y=""}else if(t[r]===">"){if(x?t[r-1]==="-"&&t[r-2]==="-"&&(x=!1,c--):c--,c===0)break}else t[r]==="["?f=!0:y+=t[r];if(c!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(t,r){r=In(t,r);let n="";for(;r<t.length&&!/\s/.test(t[r])&&t[r]!=='"'&&t[r]!=="'";)n+=t[r],r++;if(Ap(n),r=In(t,r),!this.suppressValidationErr){if(t.substring(r,r+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(t[r]==="%")throw new Error("Parameter entities are not supported")}let l="";if([r,l]=this.readIdentifierVal(t,r,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize&&l.length>this.options.maxEntitySize)throw new Error(`Entity "${n}" size (${l.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return r--,[n,l,r]}readNotationExp(t,r){r=In(t,r);let n="";for(;r<t.length&&!/\s/.test(t[r]);)n+=t[r],r++;!this.suppressValidationErr&&Ap(n),r=In(t,r);const l=t.substring(r,r+6).toUpperCase();if(!this.suppressValidationErr&&l!=="SYSTEM"&&l!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${l}"`);r+=l.length,r=In(t,r);let c=null,f=null;if(l==="PUBLIC")[r,c]=this.readIdentifierVal(t,r,"publicIdentifier"),r=In(t,r),(t[r]==='"'||t[r]==="'")&&([r,f]=this.readIdentifierVal(t,r,"systemIdentifier"));else if(l==="SYSTEM"&&([r,f]=this.readIdentifierVal(t,r,"systemIdentifier"),!this.suppressValidationErr&&!f))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:c,systemIdentifier:f,index:--r}}readIdentifierVal(t,r,n){let l="";const c=t[r];if(c!=='"'&&c!=="'")throw new Error(`Expected quoted string, found "${c}"`);for(r++;r<t.length&&t[r]!==c;)l+=t[r],r++;if(t[r]!==c)throw new Error(`Unterminated ${n} value`);return r++,[r,l]}readElementExp(t,r){r=In(t,r);let n="";for(;r<t.length&&!/\s/.test(t[r]);)n+=t[r],r++;if(!this.suppressValidationErr&&!ky(n))throw new Error(`Invalid element name: "${n}"`);r=In(t,r);let l="";if(t[r]==="E"&&yu(t,"MPTY",r))r+=4;else if(t[r]==="A"&&yu(t,"NY",r))r+=2;else if(t[r]==="("){for(r++;r<t.length&&t[r]!==")";)l+=t[r],r++;if(t[r]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${t[r]}"`);return{elementName:n,contentModel:l.trim(),index:r}}readAttlistExp(t,r){r=In(t,r);let n="";for(;r<t.length&&!/\s/.test(t[r]);)n+=t[r],r++;Ap(n),r=In(t,r);let l="";for(;r<t.length&&!/\s/.test(t[r]);)l+=t[r],r++;if(!Ap(l))throw new Error(`Invalid attribute name: "${l}"`);r=In(t,r);let c="";if(t.substring(r,r+8).toUpperCase()==="NOTATION"){if(c="NOTATION",r+=8,r=In(t,r),t[r]!=="(")throw new Error(`Expected '(', found "${t[r]}"`);r++;let x=[];for(;r<t.length&&t[r]!==")";){let y="";for(;r<t.length&&t[r]!=="|"&&t[r]!==")";)y+=t[r],r++;if(y=y.trim(),!Ap(y))throw new Error(`Invalid notation name: "${y}"`);x.push(y),t[r]==="|"&&(r++,r=In(t,r))}if(t[r]!==")")throw new Error("Unterminated list of notations");r++,c+=" ("+x.join("|")+")"}else{for(;r<t.length&&!/\s/.test(t[r]);)c+=t[r],r++;const x=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!x.includes(c.toUpperCase()))throw new Error(`Invalid attribute type: "${c}"`)}r=In(t,r);let f="";return t.substring(r,r+8).toUpperCase()==="#REQUIRED"?(f="#REQUIRED",r+=8):t.substring(r,r+7).toUpperCase()==="#IMPLIED"?(f="#IMPLIED",r+=7):[r,f]=this.readIdentifierVal(t,r,"ATTLIST"),{elementName:n,attributeName:l,attributeType:c,defaultValue:f,index:r}}}const In=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function yu(e,t,r){for(let n=0;n<t.length;n++)if(t[n]!==e[r+n+1])return!1;return!0}function Ap(e){if(ky(e))return e;throw new Error(`Invalid entity name ${e}`)}const kR=/^[-+]?0x[a-fA-F0-9]+$/,TR=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,NR={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"};function jR(e,t={}){if(t=Object.assign({},NR,t),!e||typeof e!="string")return e;let r=e.trim();if(t.skipLike!==void 0&&t.skipLike.test(r))return e;if(e==="0")return 0;if(t.hex&&kR.test(r))return BR(r,16);if(isFinite(r)){if(r.includes("e")||r.includes("E"))return RR(e,r,t);{const n=TR.exec(r);if(n){const l=n[1]||"",c=n[2];let f=OR(n[3]);const x=l?e[c.length+1]===".":e[c.length]===".";if(!t.leadingZeros&&(c.length>1||c.length===1&&!x))return e;{const y=Number(r),b=String(y);if(y===0)return y;if(b.search(/[eE]/)!==-1)return t.eNotation?y:e;if(r.indexOf(".")!==-1)return b==="0"||b===f||b===`${l}${f}`?y:e;let S=c?f:r;return c?S===b||l+S===b?y:e:S===b||S===l+b?y:e}}else return e}}else return _R(e,Number(r),t)}const MR=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function RR(e,t,r){if(!r.eNotation)return e;const n=t.match(MR);if(n){let l=n[1]||"";const c=n[3].indexOf("e")===-1?"E":"e",f=n[2],x=l?e[f.length+1]===c:e[f.length]===c;return f.length>1&&x?e:f.length===1&&(n[3].startsWith(`.${c}`)||n[3][0]===c)?Number(t):r.leadingZeros&&!x?(t=(n[1]||"")+n[3],Number(t)):e}else return e}function OR(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substring(0,e.length-1))),e}function BR(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function _R(e,t,r){const n=t===1/0;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return n?"Infinity":"-Infinity";default:return e}}function DR(e){return typeof e=="function"?e:Array.isArray(e)?t=>{for(const r of e)if(typeof r=="string"&&t===r||r instanceof RegExp&&r.test(t))return!0}:()=>!1}class LR{constructor(t){if(this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"Â¥"},euro:{regex:/&(euro|#8364);/g,val:"â¬"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"â¹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(r,n)=>eA(n,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(r,n)=>eA(n,16,"&#x")}},this.addExternalEntities=IR,this.parseXml=$R,this.parseTextData=PR,this.resolveNameSpace=FR,this.buildAttributesMap=UR,this.isItStopNode=GR,this.replaceEntitiesValue=HR,this.readStopNodeData=qR,this.saveTextToParentTag=YR,this.addChild=VR,this.ignoreAttributesFn=DR(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let r=0;r<this.options.stopNodes.length;r++){const n=this.options.stopNodes[r];typeof n=="string"&&(n.startsWith("*.")?this.stopNodesWildcard.add(n.substring(2)):this.stopNodesExact.add(n))}}}}function IR(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r],l=n.replace(/[.\-+*:]/g,"\\.");this.lastEntities[n]={regex:new RegExp("&"+l+";","g"),val:e[n]}}}function PR(e,t,r,n,l,c,f){if(e!==void 0&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){f||(e=this.replaceEntitiesValue(e,t,r));const x=this.options.tagValueProcessor(t,e,r,l,c);return x==null?e:typeof x!=typeof e||x!==e?x:this.options.trimValues?Ib(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Ib(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function FR(e){if(this.options.removeNSPrefix){const t=e.split(":"),r=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=r+t[1])}return e}const zR=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function UR(e,t,r){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const n=P2(e,zR),l=n.length,c={};for(let f=0;f<l;f++){const x=this.resolveNameSpace(n[f][1]);if(this.ignoreAttributesFn(x,t))continue;let y=n[f][4],b=this.options.attributeNamePrefix+x;if(x.length)if(this.options.transformAttributeName&&(b=this.options.transformAttributeName(b)),b==="__proto__"&&(b="#__proto__"),y!==void 0){this.options.trimValues&&(y=y.trim()),y=this.replaceEntitiesValue(y,r,t);const S=this.options.attributeValueProcessor(x,y,t);S==null?c[b]=y:typeof S!=typeof y||S!==y?c[b]=S:c[b]=Ib(y,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(c[b]=!0)}if(!Object.keys(c).length)return;if(this.options.attributesGroupName){const f={};return f[this.options.attributesGroupName]=c,f}return c}}const $R=function(e){e=e.replace(/\r\n?/g,` 19`);const t=new ac("!xml");let r=t,n="",l="";this.entityExpansionCount=0,this.currentExpandedLength=0;const c=new CR(this.options.processEntities);for(let f=0;f<e.length;f++)if(e[f]==="<")if(e[f+1]==="/"){const y=Cu(e,">",f,"Closing Tag is not closed.");let b=e.substring(f+2,y).trim();if(this.options.removeNSPrefix){const R=b.indexOf(":");R!==-1&&(b=b.substr(R+1))}this.options.transformTagName&&(b=this.options.transformTagName(b)),r&&(n=this.saveTextToParentTag(n,r,l));const S=l.substring(l.lastIndexOf(".")+1);if(b&&this.options.unpairedTags.indexOf(b)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${b}>`);let C=0;S&&this.options.unpairedTags.indexOf(S)!==-1?(C=l.lastIndexOf(".",l.lastIndexOf(".")-1),this.tagsNodeStack.pop()):C=l.lastIndexOf("."),l=l.substring(0,C),r=this.tagsNodeStack.pop(),n="",f=y}else if(e[f+1]==="?"){let y=Lb(e,f,!1,"?>");if(!y)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,l),!(this.options.ignoreDeclaration&&y.tagName==="?xml"||this.options.ignorePiTags)){const b=new ac(y.tagName);b.add(this.options.textNodeName,""),y.tagName!==y.tagExp&&y.attrExpPresent&&(b[":@"]=this.buildAttributesMap(y.tagExp,l,y.tagName)),this.addChild(r,b,l,f)}f=y.closeIndex+1}else if(e.substr(f+1,3)==="!--"){const y=Cu(e,"-->",f+4,"Comment is not closed.");if(this.options.commentPropName){const b=e.substring(f+4,y-2);n=this.saveTextToParentTag(n,r,l),r.add(this.options.commentPropName,[{[this.options.textNodeName]:b}])}f=y}else if(e.substr(f+1,2)==="!D"){const y=c.readDocType(e,f);this.docTypeEntities=y.entities,f=y.i}else if(e.substr(f+1,2)==="!["){const y=Cu(e,"]]>",f,"CDATA is not closed.")-2,b=e.substring(f+9,y);n=this.saveTextToParentTag(n,r,l);let S=this.parseTextData(b,r.tagname,l,!0,!1,!0,!0);S==null&&(S=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:b}]):r.add(this.options.textNodeName,S),f=y+2}else{let y=Lb(e,f,this.options.removeNSPrefix),b=y.tagName;const S=y.rawTagName;let C=y.tagExp,R=y.attrExpPresent,O=y.closeIndex;if(this.options.transformTagName){const _=this.options.transformTagName(b);C===b&&(C=_),b=_}if(this.options.strictReservedNames&&(b===this.options.commentPropName||b===this.options.cdataPropName))throw new Error(`Invalid tag name: ${b}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,l,!1));const M=r;M&&this.options.unpairedTags.indexOf(M.tagname)!==-1&&(r=this.tagsNodeStack.pop(),l=l.substring(0,l.lastIndexOf("."))),b!==t.tagname&&(l+=l?"."+b:b);const P=f;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,l,b)){let _="";if(C.length>0&&C.lastIndexOf("/")===C.length-1)b[b.length-1]==="/"?(b=b.substr(0,b.length-1),l=l.substr(0,l.length-1),C=b):C=C.substr(0,C.length-1),f=y.closeIndex;else if(this.options.unpairedTags.indexOf(b)!==-1)f=y.closeIndex;else{const D=this.readStopNodeData(e,S,O+1);if(!D)throw new Error(`Unexpected end of ${S}`);f=D.i,_=D.tagContent}const $=new ac(b);b!==C&&R&&($[":@"]=this.buildAttributesMap(C,l,b)),_&&(_=this.parseTextData(_,b,l,!0,R,!0,!0)),l=l.substr(0,l.lastIndexOf(".")),$.add(this.options.textNodeName,_),this.addChild(r,$,l,P)}else{if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(b[b.length-1]==="/"?(b=b.substr(0,b.length-1),l=l.substr(0,l.length-1),C=b):C=C.substr(0,C.length-1),this.options.transformTagName){const $=this.options.transformTagName(b);C===b&&(C=$),b=$}const _=new ac(b);b!==C&&R&&(_[":@"]=this.buildAttributesMap(C,l,b)),this.addChild(r,_,l,P),l=l.substr(0,l.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(b)!==-1){const _=new ac(b);b!==C&&R&&(_[":@"]=this.buildAttributesMap(C,l)),this.addChild(r,_,l,P),l=l.substr(0,l.lastIndexOf(".")),f=y.closeIndex;continue}else{const _=new ac(b);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),b!==C&&R&&(_[":@"]=this.buildAttributesMap(C,l,b)),this.addChild(r,_,l,P),r=_}n="",f=O}}else n+=e[f];return t.child};function VR(e,t,r,n){this.options.captureMetaData||(n=void 0);const l=this.options.updateTag(t.tagname,r,t[":@"]);l===!1||(typeof l=="string"&&(t.tagname=l),e.addChild(t,n))}const HR=function(e,t,r){if(e.indexOf("&")===-1)return e;const n=this.options.processEntities;if(!n.enabled||n.allowedTags&&!n.allowedTags.includes(t)||n.tagFilter&&!n.tagFilter(t,r))return e;for(let l in this.docTypeEntities){const c=this.docTypeEntities[l],f=e.match(c.regx);if(f){if(this.entityExpansionCount+=f.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n.maxTotalExpansions}`);const x=e.length;if(e=e.replace(c.regx,c.val),n.maxExpandedLength&&(this.currentExpandedLength+=e.length-x,this.currentExpandedLength>n.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${n.maxExpandedLength}`)}}if(e.indexOf("&")===-1)return e;for(let l in this.lastEntities){const c=this.lastEntities[l];
19e=e.replace(c.regex,c.val)}if(e.indexOf("&")===-1)return e;if(this.options.htmlEntities)for(let l in this.htmlEntities){const c=this.htmlEntities[l];e=e.replace(c.regex,c.val)}return e=e.replace(this.ampEntity.regex,this.ampEntity.val),e};function YR(e,t,r,n){return e&&(n===void 0&&(n=t.child.length===0),e=this.parseTextData(e,t.tagname,r,!1,t[":@"]?Object.keys(t[":@"]).length!==0:!1,n),e!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function GR(e,t,r,n){return!!(t&&t.has(n)||e&&e.has(r))}function XR(e,t,r=">"){let n,l="";for(let c=t;c<e.length;c++){let f=e[c];if(n)f===n&&(n="");else if(f==='"'||f==="'")n=f;else if(f===r[0])if(r[1]){if(e[c+1]===r[1])return{data:l,index:c}}else return{data:l,index:c};else f===" "&&(f=" ");l+=f}}function Cu(e,t,r,n){const l=e.indexOf(t,r);if(l===-1)throw new Error(n);return l+t.length-1}function Lb(e,t,r,n=">"){const l=XR(e,t+1,n);if(!l)return;let c=l.data;const f=l.index,x=c.search(/\s/);let y=c,b=!0;x!==-1&&(y=c.substring(0,x),c=c.substring(x+1).trimStart());const S=y;if(r){const C=y.indexOf(":");C!==-1&&(y=y.substr(C+1),b=y!==l.data.substr(C+1))}return{tagName:y,tagExp:c,closeIndex:f,attrExpPresent:b,rawTagName:S}}function qR(e,t,r){const n=r;let l=1;for(;r<e.length;r++)if(e[r]==="<")if(e[r+1]==="/"){const c=Cu(e,">",r,`${t} is not closed`);if(e.substring(r+2,c).trim()===t&&(l--,l===0))return{tagContent:e.substring(n,r),i:c};r=c}else if(e[r+1]==="?")r=Cu(e,"?>",r+1,"StopNode is not closed.");else if(e.substr(r+1,3)==="!--")r=Cu(e,"-->",r+3,"StopNode is not closed.");else if(e.substr(r+1,2)==="![")r=Cu(e,"]]>",r,"StopNode is not closed.")-2;else{const c=Lb(e,r,">");c&&((c&&c.tagName)===t&&c.tagExp[c.tagExp.length-1]!=="/"&&l++,r=c.closeIndex)}}function Ib(e,t,r){if(t&&typeof e=="string"){const n=e.trim();return n==="true"?!0:n==="false"?!1:jR(e,r)}else return hR(e)?e:""}function eA(e,t,r){const n=Number.parseInt(e,t);return n>=0&&n<=1114111?String.fromCodePoint(n):r+e+";"}const Xv=ac.getMetaDataSymbol();function WR(e,t){return z2(e,t)}function z2(e,t,r){let n;const l={};for(let c=0;c<e.length;c++){const f=e[c],x=QR(f);let y="";if(r===void 0?y=x:y=r+"."+x,x===t.textNodeName)n===void 0?n=f[x]:n+=""+f[x];else{if(x===void 0)continue;if(f[x]){let b=z2(f[x],t,y);const S=KR(b,t);f[":@"]?JR(b,f[":@"],y,t):Object.keys(b).length===1&&b[t.textNodeName]!==void 0&&!t.alwaysCreateTextNode?b=b[t.textNodeName]:Object.keys(b).length===0&&(t.alwaysCreateTextNode?b[t.textNodeName]="":b=""),f[Xv]!==void 0&&typeof b=="object"&&b!==null&&(b[Xv]=f[Xv]),l[x]!==void 0&&Object.prototype.hasOwnProperty.call(l,x)?(Array.isArray(l[x])||(l[x]=[l[x]]),l[x].push(b)):t.isArray(x,y,S)?l[x]=[b]:l[x]=b}}}return typeof n=="string"?n.length>0&&(l[t.textNodeName]=n):n!==void 0&&(l[t.textNodeName]=n),l}function QR(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];if(n!==":@")return n}}function JR(e,t,r,n){if(t){const l=Object.keys(t),c=l.length;for(let f=0;f<c;f++){const x=l[f];n.isArray(x,r+"."+x,!0,!0)?e[x]=[t[x]]:e[x]=t[x]}}}function KR(e,t){const{textNodeName:r}=t,n=Object.keys(e).length;return!!(n===0||n===1&&(e[r]||typeof e[r]=="boolean"||e[r]===0))}class U2{constructor(t){this.externalEntities={},this.options=ER(t)}parse(t,r){if(typeof t!="string"&&t.toString)t=t.toString();else if(typeof t!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(r){r===!0&&(r={});const c=pR(t,r);if(c!==!0)throw Error(`${c.err.msg}:${c.err.line}:${c.err.col}`)}const n=new LR(this.options);n.addExternalEntities(this.externalEntities);const l=n.parseXml(t);return this.options.preserveOrder||l===void 0?l:WR(l,this.options)}addEntity(t,r){if(r.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(r==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=r}static getMetaDataSymbol(){return ac.getMetaDataSymbol()}}const Xa=new U2,tA=async()=>{try{return(await st.get("https://checkip.stockradars.co/checkip.php",{headers:{"cache-control":"no-cache"}})).data}catch{return null}},ZR=(e,t)=>{switch(e){case"A":return-3;case"C":return-4;case"M":return-1;case"K":return-5;case"L":return-6;default:return t}},eO=e=>e==="_"?"":e;class tO{ip=null;async login(t,r){const n=new URLSearchParams({username:t,password:r,grant_type:"password"});try{const l=await st.post(`${pt.YUANTA_API}/ytapi/login.aspx`,n.toString()),{result:c}=Xa.parse(l.data);if(c?.code===0)return{username:c.userid?.toString(),access_token:c.sid?.toString(),fullname:c.invname?.toString(),accountno:c.invno?.toString(),eservice:c.eservice};throw new Error(cs(c,"The user name or password is incorrect."))}
19catch(l){if(st.isAxiosError(l)&&l.response?.data){const c=typeof l.response.data=="string"?Xa.parse(l.response.data)?.result:l.response.data;throw new Error(cs(c,"The user name or password is incorrect."))}throw l}}async loginPortal(t){const r=new URLSearchParams({ticketid:t});try{const n=await st.post(`${pt.YUANTA_API}/ytapi/loginportal.aspx`,r.toString()),{result:l}=Xa.parse(n.data);if(l?.code===0)return{username:l.userid?.toString(),access_token:l.sid?.toString(),fullname:l.invname?.toString(),accountno:l.invno?.toString(),eservice:l.eservice};throw new Error(cs(l,"The user name or password is incorrect."))}catch(n){if(st.isAxiosError(n)&&n.response?.data){const l=typeof n.response.data=="string"?Xa.parse(n.response.data)?.result:n.response.data;throw new Error(cs(l,"The user name or password is incorrect."))}throw n}}async accounts(t){const r={accountNo:[]};try{const n=await st.post(`${pt.YUANTA_API}/ytapi/get_cust_account.aspx`,{Userid:He.getUsername(),Sid:He.getAccessToken()},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:l}=Xa.parse(n.data);l?.code===0&&l.list&&(Array.isArray(l.list.account)?l.list.account.forEach(c=>{r.accountNo.push({accountNo:c.accountno})}):l.list.account&&r.accountNo.push({accountNo:l.list.account.accountno}))}catch{}return r}async portfolio(t){const r=[];try{const n=await st.post(`${pt.YUANTA_API}/ytapi/get_cust_posi.aspx`,{Userid:He.getUsername(),Sid:He.getAccessToken(),Accountno:t},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:l}=Xa.parse(n.data);l?.code===0&&l.list&&(Array.isArray(l.list.port)?l.list.port:[l.list.port]).forEach(f=>{r.push({averagePrice:f.avgprice,averageAmount:f.cost,cost:f.cost,marketPrice:f.mktprice,onHand:f.onhand,percentUnRealized:f.percentpl,realized:0,sellable:f.sellable,symbol:String(f.stock).trimEnd(),trustId:parseFloat(f.trustid),type:f.type,unRealized:f.gainloss})})}catch{}return r}async credit(t){try{const r=await st.post(`${pt.YUANTA_API}/ytapi/get_cust_credit.aspx`,{Userid:He.getUsername(),Sid:He.getAccessToken(),Accountno:t},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:n}=Xa.parse(r.data);if(n?.code===0)return{accountNo:n.accno,accountType:n.acctype,creditLimit:n.creditline,buyLimit:n.buylimit,buyValue:n.bvalue,sellValue:n.svalue,cashAmount:n.netvalue}}catch{}return null}async orders(t){const r=[];try{const n=await st.post(`${pt.YUANTA_API}/ytapi/get_order_info.aspx`,{Userid:He.getUsername(),Sid:He.getAccessToken(),Accountno:t},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:l}=Xa.parse(n.data);l?.code===0&&l.list&&(Array.isArray(l.list.order)?l.list.order:[l.list.order]).forEach(f=>{const x=f.orderprice===0?f.matchedprice:f.orderprice;r.push({accountNo:t,orderTime:String(f.entrytime),orderDate:String(f.senddate),matchedVolume:f.matchedvolume,matchedPrice:f.matchedprice,orderNo:f.orderno,price:x,side:f.side,status:String(f.status).trim(),stock:String(f.stock).trimEnd(),trustId:f.trusted,volume:f.volume,conditionPrice:(f.orderprice===0,null)})})}catch{}return r}async sendOrder(t){t=JSON.parse(JSON.stringify(t)),(!t.publish||t.publish===0)&&(t.publish=t.volume),t.cPrice!=="_"&&(t.price=0),this.ip||(this.ip=await tA()),t.ip=this.ip,t.price=ZR(t.cPrice,t.price),t.condition=eO(t.condition);try{const r=await st.post(`${pt.YUANTA_API}/ytapi/put_order.aspx`,{Userid:He.getUsername(),Sid:He.getAccessToken(),Accountno:t.accountNo,Stock:t.stock,Side:t.side,Volume:t.volume,Price:t.price,TrustID:t.trustId,Conidition:t.condition,RefID:"radars",Pin:t.pin,Channeltype:"X",IP:t.ip,Publish:t.publish},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:n}=Xa.parse(r.data);return n?.code===0?{Result:!0,Message:""}:{Result:!1,Message:n?.msg??"Please try again"}}catch{return{Result:!1,Message:"Please try again"}}}async cancelOrder(t){this.ip||(this.ip=await tA()),t.ip=this.ip;try{const r=await st.post(`${pt.YUANTA_API}/ytapi/put_cancel_order.aspx`,{Userid:He.getUsername(),Sid:He.getAccessToken(),Orderno:t.orderNo,Orderdate:t.orderDate,Pin:t.pin,IP:t.ip,Accountno:t.accountNo},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:n}=Xa.parse(r.data);return n?.code===0?{Result:!0,Message:""}:{Result:!1,Message:n?.msg??"Please try again"}}catch{return{Result:!1,Message:"Please try again"}}}}const la=new U2,rA=async()=>{try{return(await st.get("https://checkip.stockradars.co/checkip.php",{headers:{"cache-control":"no-cache"}})).data}catch{return null}},rO=(e,t)=>{switch(e){case"A":return-3;case"C":return-4;case"M":return-1;case"K":return-5;case"L":return-6;default:return t}},sO=e=>e==="_"?"":e;class nO{ip=null;async login(t,r){const n=new URLSearchParams({User:t,Password:r,Product:"radars"});try{const l=await st.post(`${pt.MAYBANK_API}/login.asp`,n.toString()),{result:c}=la.parse(l.data);if(c?.code===0)return{username:t,access_token:c.sid,fullname:c.invname,accountno:c.invno?.toString()};throw new Error(cs(c,"The user name or password is incorrect."))}
19catch(l){if(st.isAxiosError(l)&&l.response?.data){const c=typeof l.response.data=="string"?la.parse(l.response.data)?.result:l.response.data;throw new Error(cs(c,"The user name or password is incorrect."))}throw l}}async loginPortal(t){const r=new URLSearchParams({TicketID:t});try{const n=await st.post(`${pt.MAYBANK_API}/login_MKETRadars.asp`,r.toString(),{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:l}=la.parse(n.data);if(l?.code===0){const c=await this.encrypt(l.EncryptedData.CipherData.CipherValue),f=la.parse(c.data);if(f.result?.sid)return{username:f.result.invno,access_token:f.result.sid,fullname:f.result.invname,accountno:f.result.invno?.toString()}}throw new Error(cs(l,"The user name or password is incorrect."))}catch(n){if(st.isAxiosError(n)&&n.response?.data){const l=typeof n.response.data=="string"?la.parse(n.response.data)?.result:n.response.data;throw new Error(cs(l,"The user name or password is incorrect."))}throw n}}async encrypt(t){return st({method:"GET",url:`https://stockradars.co/webapp/AES.php?ticket=${t}`,headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}})}async accounts(t){const r={accountNo:[]};try{const n=await st.post(`${pt.MAYBANK_API}/get_cust_account.asp`,{Userid:He.getUsername(),Sid:He.getAccessToken()},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:l}=la.parse(n.data);l?.res_code===0&&l.list&&(Array.isArray(l.list.account)?l.list.account.forEach(c=>{c.market==="E"&&r.accountNo.push({accountNo:c.accountno?.toString(),tradeable:c.cantrade==="Y",sbl:c.sbl==="Y"})}):l.list.account?.market==="E"&&r.accountNo.push({accountNo:l.list.account.accountno?.toString(),tradeable:l.list.account.cantrade==="Y",sbl:l.list.account.sbl==="Y"}))}catch{}return r}async portfolio(t){const r=[];try{const n=await st.post(`${pt.MAYBANK_API}/get_cust_posi.asp`,{Userid:He.getUsername(),Sid:He.getAccessToken(),Accountno:t},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:l}=la.parse(n.data);l?.res_code===0&&l.list&&(Array.isArray(l.list.port)?l.list.port:[l.list.port]).forEach(f=>{r.push({averagePrice:f.avgprice,averageAmount:f.cost,cost:f.cost,marketPrice:f.mktprice,onHand:f.onhand,percentUnRealized:f.percentpl,realized:f.realize,sellable:f.sellable,symbol:String(f.stock).trimEnd(),trustId:parseFloat(f.trustid),type:f.type,unRealized:f.gainloss})})}catch{}return r}async credit(t){try{const r=await st.post(`${pt.MAYBANK_API}/get_cust_credit.asp`,{Userid:He.getUsername(),Sid:He.getAccessToken(),Accountno:t},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:n}=la.parse(r.data);if(n?.res_code===0)return{accountNo:n.accno,accountType:n.acctype,creditLimit:n.CreditLine,buyLimit:n.Buylimit,buyValue:n.Bvalue,sellValue:n.Svalue,cashAmount:n.Netvalue}}catch{}return null}async orders(t){const r=[];try{const n=await st.post(`${pt.MAYBANK_API}/get_order_info.asp`,{Userid:He.getUsername(),Sid:He.getAccessToken(),Accountno:t},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:l}=la.parse(n.data);l?.res_code===0&&l.list&&(Array.isArray(l.list.order)?l.list.order:[l.list.order]).forEach(f=>{const x=f.orderprice===0?f.matchedprice:f.orderprice,y=String(f.entrytime);r.push({accountNo:t,orderTime:y.length<6?y.padStart(6,"0"):y,orderDate:String(f.senddate),matchedVolume:f.matchedvolume,matchedPrice:f.matchedprice,orderNo:f.orderno,price:x,side:f.side,status:String(f.status).trim(),stock:String(f.stock).trimEnd(),trustId:f.trustid,volume:f.volume,conditionPrice:(f.orderprice===0,null)})})}catch{}return r}async sendOrder(t){t=JSON.parse(JSON.stringify(t)),(!t.publish||t.publish===0)&&(t.publish=t.volume),t.cPrice!=="_"&&(t.price=0),this.ip||(this.ip=await rA()),t.ip=this.ip,t.price=rO(t.cPrice,t.price),t.condition=sO(t.condition);try{const r=await st.post(`${pt.MAYBANK_API}/put_order.asp`,{Userid:t.accountNo,Sid:He.getAccessToken(),Stock:t.stock,Side:t.side,Volume:t.volume,Price:t.price,TrustID:t.trustId,Conidition:t.condition,RefID:"radars",Pin:t.pin,Channeltype:"2",IP:t.ip,Publish:t.publish},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:n}=la.parse(r.data);return n?.code===0?{Result:!0,Message:""}:{Result:!1,Message:n?.msg??"Please try again"}}catch{return{Result:!1,Message:"Please try again"}}}async cancelOrder(t){this.ip||(this.ip=await rA()),t.ip=this.ip;try{const r=await st.post(`${pt.MAYBANK_API}/put_cancel_order.asp`,{Userid:t.accountNo,Sid:He.getAccessToken(),Orderno:t.orderNo,Orderdate:t.orderDate,Pin:t.pin,IP:t.ip,Accountno:t.accountNo},{headers:{"content-type":"application/x-www-form-urlencoded","cache-control":"no-cache"}}),{result:n}=la.parse(r.data);return n?.code===0?{Result:!0,Message:""}:{Result:!1,Message:n?.msg??"Please try again"}}catch{return{Result:!1,Message:"Please try again"}}}}var wg={exports:{}},iO=wg.exports,sA;function $2(){return sA||(sA=1,(function(e,t){(function(r,n){e.exports=n()})(iO,(function(){var r=1e3,n=6e4,l=36e5,c="millisecond",f="second",x="minute",y="hour",b="day",S="week",C="month",R="quarter",O="year",M="date",P="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 5,817 bytes, line 19
19|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={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(ue){var ie=["th","st","nd","rd"],X=ue%100;return"["+ue+(ie[(X-20)%10]||ie[X]||ie[0])+"]"}},F=function(ue,ie,X){var oe=String(ue);return!oe||oe.length>=ie?ue:""+Array(ie+1-oe.length).join(X)+ue},J={s:F,z:function(ue){var ie=-ue.utcOffset(),X=Math.abs(ie),oe=Math.floor(X/60),ne=X%60;return(ie<=0?"+":"-")+F(oe,2,"0")+":"+F(ne,2,"0")},m:function ue(ie,X){if(ie.date()<X.date())return-ue(X,ie);var oe=12*(X.year()-ie.year())+(X.month()-ie.month()),ne=ie.clone().add(oe,C),fe=X-ne<0,pe=ie.clone().add(oe+(fe?-1:1),C);return+(-(oe+(X-ne)/(fe?ne-pe:pe-ne))||0)},a:function(ue){return ue<0?Math.ceil(ue)||0:Math.floor(ue)},p:function(ue){return{M:C,y:O,w:S,d:b,D:M,h:y,m:x,s:f,ms:c,Q:R}[ue]||String(ue||"").toLowerCase().replace(/s$/,"")},u:function(ue){return ue===void 0}},te="en",le={};le[te]=D;var se="$isDayjsObject",L=function(ue){return ue instanceof Z||!(!ue||!ue[se])},W=function ue(ie,X,oe){var ne;if(!ie)return te;if(typeof ie=="string"){var fe=ie.toLowerCase();le[fe]&&(ne=fe),X&&(le[fe]=X,ne=fe);var pe=ie.split("-");if(!ne&&pe.length>1)return ue(pe[0])}else{var Q=ie.name;le[Q]=ie,ne=Q}return!oe&&ne&&(te=ne),ne||!oe&&te},z=function(ue,ie){if(L(ue))return ue.clone();var X=typeof ie=="object"?ie:{};return X.date=ue,X.args=arguments,new Z(X)},H=J;H.l=W,H.i=L,H.w=function(ue,ie){return z(ue,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var Z=(function(){function ue(X){this.$L=W(X.locale,null,!0),this.parse(X),this.$x=this.$x||X.x||{},this[se]=!0}var ie=ue.prototype;return ie.parse=function(X){this.$d=(function(oe){var ne=oe.date,fe=oe.utc;if(ne===null)return new Date(NaN);if(H.u(ne))return new Date;if(ne instanceof Date)return new Date(ne);if(typeof ne=="string"&&!/Z$/i.test(ne)){var pe=ne.match(_);if(pe){var Q=pe[2]-1||0,re=(pe[7]||"0").substring(0,3);return fe?new Date(Date.UTC(pe[1],Q,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,re)):new Date(pe[1],Q,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,re)}}return new Date(ne)})(X),this.init()},ie.init=function(){var X=this.$d;this.$y=X.getFullYear(),this.$M=X.getMonth(),this.$D=X.getDate(),this.$W=X.getDay(),this.$H=X.getHours(),this.$m=X.getMinutes(),this.$s=X.getSeconds(),this.$ms=X.getMilliseconds()},ie.$utils=function(){return H},ie.isValid=function(){return this.$d.toString()!==P},ie.isSame=function(X,oe){var ne=z(X);return this.startOf(oe)<=ne&&ne<=this.endOf(oe)},ie.isAfter=function(X,oe){return z(X)<this.startOf(oe)},ie.isBefore=function(X,oe){return this.endOf(oe)<z(X)},ie.$g=function(X,oe,ne){return H.u(X)?this[oe]:this.set(ne,X)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(X,oe){var ne=this,fe=!!H.u(oe)||oe,pe=H.p(X),Q=function(it,gt){var bt=H.w(ne.$u?Date.UTC(ne.$y,gt,it):new Date(ne.$y,gt,it),ne);return fe?bt:bt.endOf(b)},re=function(it,gt){return H.w(ne.toDate()[it].apply(ne.toDate("s"),(fe?[0,0,0,0]:[23,59,59,999]).slice(gt)),ne)},ge=this.$W,ye=this.$M,Te=this.$D,_e="set"+(this.$u?"UTC":"");switch(pe){case O:return fe?Q(1,0):Q(31,11);case C:return fe?Q(1,ye):Q(0,ye+1);case S:var Qe=this.$locale().weekStart||0,Je=(ge<Qe?ge+7:ge)-Qe;return Q(fe?Te-Je:Te+(6-Je),ye);case b:case M:return re(_e+"Hours",0);case y:return re(_e+"Minutes",1);case x:return re(_e+"Seconds",2);case f:return re(_e+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(X){return this.startOf(X,!1)},ie.$set=function(X,oe){var ne,fe=H.p(X),pe="set"+(this.$u?"UTC":""),Q=(ne={},ne[b]=pe+"Date",ne[M]=pe+"Date",ne[C]=pe+"Month",ne[O]=pe+"FullYear",ne[y]=pe+"Hours",ne[x]=pe+"Minutes",ne[f]=pe+"Seconds",ne[c]=pe+"Milliseconds",ne)[fe],re=fe===b?this.$D+(oe-this.$W):oe;if(fe===C||fe===O){var ge=this.clone().set(M,1);ge.$d[Q](re),ge.init(),this.$d=ge.set(M,Math.min(this.$D,ge.daysInMonth())).$d}else Q&&this.$d[Q](re);return this.init(),this},ie.set=function(X,oe){return this.clone().$set(X,oe)},ie.get=function(X){return this[H.p(X)]()},ie.add=function(X,oe){var ne,fe=this;X=Number(X);var pe=H.p(oe),Q=function(ye){var Te=z(fe);return H.w(Te.date(Te.date()+Math.round(ye*X)),fe)};if(pe===C)return this.set(C,this.$M+X);if(pe===O)return this.set(O,this.$y+X);if(pe===b)return Q(1);if(pe===S)return Q(7);var re=(ne={},ne[x]=n,ne[y]=l,ne[f]=r,ne)[pe]||1,ge=this.$d.getTime()+X*re;return H.w(ge,this)},ie.subtract=function(X,oe){return this.add(-1*X,oe)},ie.format=function(X){var oe=this,ne=this.$locale();if(!this.isValid())return ne.invalidDate||P;var fe=X||"YYYY-MM-DDTHH:mm:ssZ",pe=H.z(this),Q=this.$H,re=this.$m,ge=this.$M,ye=ne.weekdays,Te=ne.months,_e=ne.meridiem,Qe=function(gt,bt,Xt,Nt){return gt&&(gt[bt]||gt(oe,fe))||Xt[bt].slice(0,Nt)},Je=function(gt){return H.s(Q%12||12,gt,"0")},it=_e||function(gt,bt,Xt){var Nt=gt<12?"AM":"PM";return Xt?Nt.toLowerCase():Nt};return fe.replace($,(function(gt,bt){return bt||(function(Xt){switch(Xt){case"YY":return String(oe.$y).slice(-2);case"YYYY":return H.s(oe.$y,4,"0");case"M":return ge+1;case"MM":return H.s(ge+1,2,"0");case"MMM":return Qe(ne.monthsShort,ge,Te,3);case"MMMM":return Qe(Te,ge);case"D":return oe.$D;case"DD":return H.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return Qe(ne.weekdaysMin,oe.$W,ye,2);case"ddd":return Qe(ne.weekdaysShort,oe.$W,ye,3);case"dddd":return ye[oe.$W];case"H":return String(Q);case"HH":return H.s(Q,2,"0");case"h":return Je(1);case"hh":return Je(2);case"a":return it(Q,re,!0);case"A":return it(Q,re,!1);case"m":return String(re);case"mm":return H.s(re,2,"0");case"s":return String(oe.$s);case"ss":return H.s(oe.$s,2,"0");case"SSS":return H.s(oe.$ms,3,"0");case"Z":return pe}return null})(gt)||pe.replace(":","")}))}
19,ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(X,oe,ne){var fe,pe=this,Q=H.p(oe),re=z(X),ge=(re.utcOffset()-this.utcOffset())*n,ye=this-re,Te=function(){return H.m(pe,re)};switch(Q){case O:fe=Te()/12;break;case C:fe=Te();break;case R:fe=Te()/3;break;case S:fe=(ye-ge)/6048e5;break;case b:fe=(ye-ge)/864e5;break;case y:fe=ye/l;break;case x:fe=ye/n;break;case f:fe=ye/r;break;default:fe=ye}return ne?fe:H.a(fe)},ie.daysInMonth=function(){return this.endOf(C).$D},ie.$locale=function(){return le[this.$L]},ie.locale=function(X,oe){if(!X)return this.$L;var ne=this.clone(),fe=W(X,oe,!0);return fe&&(ne.$L=fe),ne},ie.clone=function(){return H.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},ue})(),ae=Z.prototype;return z.prototype=ae,[["$ms",c],["$s",f],["$m",x],["$H",y],["$W",b],["$M",C],["$y",O],["$D",M]].forEach((function(ue){ae[ue[1]]=function(ie){return this.$g(ie,ue[0],ue[1])}})),z.extend=function(ue,ie){return ue.$i||(ue(ie,Z,z),ue.$i=!0),z},z.locale=W,z.isDayjs=L,z.unix=function(ue){return z(1e3*ue)},z.en=le[te],z.Ls=le,z.p={},z}))})(wg)),wg.exports}var aO=$2();const Pr=gc(aO),Cx=async()=>{try{return(await st.get("https://checkip.stockradars.co/checkip.php",{headers:{"cache-control":"no-cache"}})).data}catch{return null}},ph=()=>({Authorization:`Bearer ${He.getAccessToken()}`});class lO{ip=null;r1;r2=null;r3=null;constructor(){this.r1=this.getKey(16)}getKey(t){let r="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let l=0;l<t;l++)r+=n.charAt(Math.floor(Math.random()*n.length));return r}getTrustId(t){return!t||t===""?0:t}encrypt(t,r){const n=ii.enc.Utf8.parse("sUV4du2bvyVgd7kJ"),l=ii.enc.Utf8.parse(r);return ii.AES.encrypt(t,l,{iv:n,mode:ii.mode.CBC}).toString(ii.format.Hex)}decrypt(t){const r=ii.enc.Utf8.parse("sUV4du2bvyVgd7kJ"),n=ii.enc.Utf8.parse(this.r3),l=ii.enc.Hex.parse(t);return ii.AES.decrypt({ciphertext:l},n,{iv:r,mode:ii.mode.CBC}).toString(ii.enc.Utf8)}getR3(t,r){return ii.SHA256(t+r).toString().toUpperCase().substring(0,32)}async getR2(){this.ip||(this.ip=await Cx());try{const t=await st.post(`${pt.KSONE_AUTH_API}/rsso/r2`,{ip:this.ip,requestDateTime:Pr().format("YYYYMMDD HH:mm:ss:SSS"),r1:this.r1,flag:"O",appID:"KSTP"},{headers:{"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded"}});if(t.data?.r2)return this.r2=t.data.r2,this.r3=this.getR3(this.r1,this.r2),!0}catch{}return!1}async login(t,r){if(this.ip||(this.ip=await Cx()),!await this.getR2())throw new Error("Please try again.");const l={ip:this.ip,requestDateTime:Pr().format("YYYYMMDD HH:mm:ss:SSS"),custCode:this.encrypt(t,this.r3),password:this.encrypt(r,this.r3),deviceID:this.encrypt("6fa13f43-47f3-4ce8-a80f-b5352ecf6762",this.r3),requestID:this.r1,uniqueID:this.encrypt(this.getKey(16),this.r3),appID:"KSTP"};try{const c=await st.post(`${pt.KSONE_AUTH_API}/rsso/signin`,l,{headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(["00000","10018"].includes(c.data?.responseCode)){const f=this.decrypt(c.data.ksToken),x=JSON.parse(f);if(x?.ksToken)return{username:t,access_token:x.ksToken}}throw new Error(cs(c.data,"Login failed. Please try again."))}catch(c){throw st.isAxiosError(c)&&c.response?.data?new Error(cs(c.response.data,"Login failed. Please try again.")):c}}async loginPortal(t){return null}async accounts(t){const r={accountNo:[]};try{const n=await st.post("https://kasikornsecurities.com/ks-trade/v1VITE_APP_VERSION=8.8.8/trade/account",{},{headers:ph()});n.data?.account&&n.data.account.forEach(l=>{r.accountNo.push({accountNo:l.accountNo,accountType:l.accountType,tradeable:l.tradeable})})}catch{}return r}async portfolio(t){const r=[];try{(await st.post("https://kasikornsecurities.com/ks-trade/v1VITE_APP_VERSION=8.8.8/portfolio/position",{AccountNo:t},{headers:{...ph(),"cache-control":"no-cache","Content-Type":"application/x-www-form-urlencoded"}})).data?.forEach(l=>
19{r.push({averageAmount:l.AverageAmount,averagePrice:l.AveragePrice,cost:l.Cost,marketPrice:l.MarketPrice,onHand:l.OnHand,percentUnRealized:0,realized:l.Realized,sellable:l.Sellable,symbol:l.Stock,trustId:this.getTrustId(l.TrustId),type:l.Type,unRealized:l.Unrealized})})}catch{}return r}async credit(t){try{const r=await st.post("https://kasikornsecurities.com/ks-trade/v1VITE_APP_VERSION=8.8.8/portfolio/credit",{AccountNo:t},{headers:{...ph(),"cache-control":"no-cache","Content-Type":"application/x-www-form-urlencoded"}});if(r.data)return{accountNo:r.data.AccountNo,accountType:r.data.AccountType,creditLimit:r.data.CreditLimit,buyLimit:r.data.BuyLimit,buyValue:r.data.BuyValue,sellValue:r.data.SellValue,cashAmount:r.data.CashAmount}}catch{}return null}async orders(t){const r=[];try{(await st.post("https://kasikornsecurities.com/ks-trade/v1VITE_APP_VERSION=8.8.8/portfolio/order",{AccountNo:t},{headers:{...ph(),"cache-control":"no-cache","Content-Type":"application/x-www-form-urlencoded"}})).data?.forEach(l=>{const c=isNaN(l.Price)?l.Price:null;r.push({accountNo:l.AccountNo,orderDate:l.OrderDate,orderTime:l.OrderTime,orderNo:l.OrderNo,matchedVolume:l.MatchedVolume,matchedPrice:l.Price,price:l.Price,side:l.Side,status:String(l.Status).trim(),stock:String(l.Stock).trim(),trustId:this.getTrustId(l.TrustId),volume:l.Volume,conditionPrice:c})})}catch{}return r.reverse()}async sendOrder(t){(!t.publish||t.publish===0)&&(t.publish=t.volume),t.cPrice!=="_"&&(t.price=0),this.ip||(this.ip=await Cx()),t.ip=this.ip;const r="cZ5KJWL18lejTcESyPTIOvnxDWKEV2jV";t.pin=this.encrypt(t.pin,r),t.ksCustCode=this.encrypt(He.getUsername()||"",r),t.rqDate=Pr().format("YYYY-MM-DDTHH:mm:ss.000Z"),t.rqUID=this.getKey(32);try{const n=await st.post("https://kasikornsecurities.com/ks-trade/v1VITE_APP_VERSION=8.8.8/trade/order",{AccountNo:t.accountNo,Stock:t.stock,Side:t.side,Volume:t.volume,Publish:t.publish,Price:t.price,TrustId:t.trustId,ConditionPrice:t.cPrice,Condition:t.condition,Life:"D",ExpireDate:"0000",RefId:`TP${t.accountNo}${Pr().format("YYYYMMDDHHmmssSSS")}`,PIN:JSON.stringify({rqDate:t.rqDate,rqUID:t.rqUID,ksCustCode:t.ksCustCode,rqAppID:"KSTP",pin:t.pin})},{headers:{...ph(),"cache-control":"no-cache","Content-Type":"application/x-www-form-urlencoded"}});return{Result:n.data?.Result===!0,Message:n.data?.Message||""}}catch(n){return{Result:!1,Message:n.response?.data?.Message||"Please try again"}}}async cancelOrder(t){this.ip||(this.ip=await Cx()),t.ip=this.ip;const r="cZ5KJWL18lejTcESyPTIOvnxDWKEV2jV";t.pin=this.encrypt(t.pin,r),t.ksCustCode=this.encrypt(He.getUsername()||"",r),t.rqDate=Pr().format("YYYY-MM-DDTHH:mm:ss.000Z"),t.rqUID=this.getKey(32);try{const n=await st.post("https://kasikornsecurities.com/ks-trade/v1VITE_APP_VERSION=8.8.8/trade/order/cancel",{AccountNo:t.accountNo,OrderNo:t.orderNo,RefId:`TP${t.accountNo}${Pr().format("YYYYMMDDHHmmssSSS")}`,PIN:JSON.stringify({rqDate:t.rqDate,rqUID:t.rqUID,ksCustCode:t.ksCustCode,rqAppID:"KSTP",pin:t.pin})},{headers:{...ph(),"cache-control":"no-cache","Content-Type":"application/x-www-form-urlencoded"}});return{Result:n.data?.Result===!0,Message:n.data?.Message||""}}catch(n){return{Result:!1,Message:n.response?.data?.Message||"Please try again"}}}}const vc={globlex:lR,krungsri:oR,yuanta:tO,mbket:nO,kstradeplus:lO},oO={stockradars:"stockradars",globlex:"globlex",krungsri:"krungsri",yuanta:"yuanta",kstradeplus:"kstradeplus",mbket:"keitrade"},cO=async(e,t)=>{const r=S1(8),n={email:e,password:L2(t),state:r,app:fa.APP,app_id:fa.APP_ID,app_version:pc.VERSION,app_device:pc.DEVICE};return{...await y1.post("/auth/sign_in/email",n),state:r}},uO="!26c90797",dO="af93f94!",V2=async(e,t,r)=>{const n=L2(`${uO}${t.toString().toLowerCase()}${dO}`),l=new URLSearchParams({broker:oO[e],identity:t,password:n,state:r,app:fa.APP,app_id:fa.APP_ID,app_version:pc.VERSION,app_device:pc.DEVICE});return{...await y1.post("/broker/th/sign_in",l.toString()),state:r}},hO=async()=>{const e=He.getToken(),t=He.getRefreshToken(),r=He.getUserId();try{return(await st.get(`${pt.AUTH_API}/check/current_session`,{params:{refresh_token:t,user_id:r,app:fa.APP,app_id:fa.APP_ID,app_version:pc.VERSION,app_device:pc.DEVICE},headers:{authorization:e||"",app:fa.APP,"app-id":fa.APP_ID}})).data?.status===!0}catch{return!1}},H2=async()=>{try{return(await v1.get("/store/user_type"))?.type||null}catch{return null}},fO={user:null,token:He.getToken()||null,refreshToken:He.getRefreshToken()||null,isAuthenticated:!!He.getToken(),loading:!1,error:null,broker:He.getBroker()||null,logoutBroker:null,userType:null,userTypeLoaded:!1,accounts:[],selectedAccount:He.getAccountNo()||"",profile:He.getProfile()},jp=At("auth/login",async({email:e,password:t,broker:r="stockradars"})=>{if(r!=="stockradars"){const c=vc[r];if(!c)throw new Error(`Unknown broker: ${r}`);const x=await new c().login(e,t);if(!x?.access_token)throw new Error(cs(x,"Login failed"));const y=S1(8),b=await V2(r,x.username,y);if(!b?.access_token)throw new Error(cs(b,"Login failed"));He.setBroker(r),He.setToken(b.access_token),He.setRefreshToken(b.refresh_token),He.setUserId(b.user_id),He.setState(y),He.setUsername(x.username),He.setAccessToken(x.access_token),x.accountno&&He.setAccountNo(x.accountno);const S=r==="globlex"?x.username:x.fullname||`${b.profile?.first_name??""} ${b.profile?.last_name??""}`.trim();return He.setFullname(S),b.profile&&He.setProfile(b.profile),{...b,broker:r,userType:null,fullname:S}}const n=await cO(e,t);if(!n?.access_token)throw new Error(cs(n,"Login failed"));if(He.setBroker("stockradars"),He.setToken(n.access_token),He.setRefreshToken(n.refresh_token),He.setUserId(n.user_id
19),n.state&&He.setState(n.state),He.setUsername(e),n.profile){He.setProfile(n.profile);const c=`${n.profile.first_name??""} ${n.profile.last_name??""}`.trim();c&&He.setFullname(c)}const l=await H2();return B2(l==="delay"?pt.DELAY_PULL:pt.REALTIME_PULL),{...n,broker:"stockradars",userType:l}}),qv=At("auth/switchBroker",async e=>{const t=He.getBrokerSession(e);if(!t.token)throw new Error(`No active session for ${e}`);return He.setBroker(e),{broker:e,token:t.token,refreshToken:t.refresh_token??null,userId:t.user_id??"",username:t.username??"",fullname:t.fullname??"",selectedAccount:t.accountno??""}}),Mp=At("auth/loginPortal",async({ticket:e,broker:t})=>{const r=vc[t];if(!r)throw new Error(`Unknown broker: ${t}`);const l=await new r().loginPortal(e);if(!l?.access_token)throw new Error(cs(l,"Portal login failed"));const c=S1(8),f=await V2(t,l.username,c);if(!f?.access_token)throw new Error(cs(f,"Portal login failed"));He.setBroker(t),He.setToken(f.access_token),He.setRefreshToken(f.refresh_token),He.setUserId(f.user_id),He.setState(c),He.setUsername(l.username),He.setAccessToken(l.access_token),l.accountno&&He.setAccountNo(l.accountno);const x=t==="globlex"?l.username:l.fullname||`${f.profile?.first_name??""} ${f.profile?.last_name??""}`.trim();return He.setFullname(x),f.profile&&He.setProfile(f.profile),{...f,broker:t,userType:null,fullname:x}}),Y2=At("auth/getCurrentUser",async()=>{const e=He.getUserId(),t=He.getToken();return!e||!t?null:{id:e,username:He.getUsername()??"",fullname:He.getFullname()??"",token:t,refreshToken:He.getRefreshToken()??"",broker:He.getBroker()??"stockradars",selectedAccount:He.getAccountNo()??""}}),G2=At("auth/fetchUserType",async()=>{const e=await H2();return B2(e==="delay"?pt.DELAY_PULL:pt.REALTIME_PULL),e}),X2=At("auth/loadAccounts",async(e,{getState:t})=>{const n=t().auth.broker;if(!n||n==="stockradars")return{accounts:[],fullname:void 0};const l=vc[n];if(!l)return{accounts:[],fullname:void 0};const c=new l,f=He.getUserId()||"",x=await c.accounts(f),y=x?.accountNo??[];return!He.getAccountNo()&&y.length>0&&He.setAccountNo(y[0].accountNo),x?.fullname&&He.setFullname(x.fullname),{accounts:y,fullname:x?.fullname}}),Ty=ln({name:"auth",initialState:fO,reducers:{clearError:e=>{e.error=null},setUserTypeLoaded:(e,t)=>{e.userTypeLoaded=t.payload},setSelectedAccount:(e,t)=>{e.selectedAccount=t.payload,He.setAccountNo(t.payload)},logoutAction:e=>{e.logoutBroker=e.broker,e.user=null,e.token=null,e.refreshToken=null,e.isAuthenticated=!1,e.loading=!1,e.error=null,e.broker=null,e.userType=null,e.userTypeLoaded=!1,e.accounts=[],e.selectedAccount="",e.profile=null}},extraReducers:e=>{e.addCase(jp.pending,t=>{t.loading=!0,t.error=null}).addCase(jp.fulfilled,(t,r)=>{t.loading=!1,t.logoutBroker=null,t.token=r.payload.access_token,t.refreshToken=r.payload.refresh_token,t.broker=r.payload.broker,t.userType=r.payload.userType??null,t.user={id:r.payload.user_id,username:r.payload.profile?.first_name||"",email:"",fullname:"fullname"in r.payload?r.payload.fullname:void 0,first_name:r.payload.profile?.first_name,last_name:r.payload.profile?.last_name},t.profile=r.payload.profile??null,t.isAuthenticated=!0}).addCase(jp.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message||"Login failed"}).addCase(Mp.pending,t=>{t.loading=!0,t.error=null}).addCase(Mp.fulfilled,(t,r)=>{t.loading=!1,t.logoutBroker=null,t.token=r.payload.access_token,t.refreshToken=r.payload.refresh_token,t.broker=r.payload.broker,t.userType=r.payload.userType??null,t.user={id:r.payload.user_id,username:r.payload.profile?.first_name||"",email:"",fullname:r.payload.fullname,first_name:r.payload.profile?.first_name,last_name:r.payload.profile?.last_name},t.profile=r.payload.profile??null,t.isAuthenticated=!0}).addCase(Mp.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message||"Portal login failed"}).addCase(Y2.fulfilled,(t,r)=>{if(!r.payload)return;const n=r.payload;t.user={id:n.id,username:n.username,email:"",first_name:n.fullname,last_name:""},t.token=n.token,t.refreshToken=n.refreshToken,t.broker=n.broker,t.selectedAccount=n.selectedAccount,t.profile=He.getProfile(),t.isAuthenticated=!0}).addCase(G2.fulfilled,(t,r)=>{t.userType=r.payload??null,t.userTypeLoaded=!0}).addCase(qv.pending,t=>{t.loading=!0,t.error=null}).addCase(qv.fulfilled,(t,r)=>{const n=r.payload;t.loading=!1,t.token=n.token,t.refreshToken=n.refreshToken,t.broker=n.broker,t.selectedAccount=n.selectedAccount,t.accounts=[],t.user={id:n.userId,username:n.username,email:"",fullname:n.fullname,first_name:n.fullname,last_name:""},t.profile=He.getProfile(),t.isAuthenticated=!0}).addCase(qv.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message||"Switch broker failed"}).addCase(X2.fulfilled,(t,r)=>{const n=r.payload.accounts;t.accounts=n,!t.selectedAccount&&n.length>0&&(t.selectedAccount=n[0].accountNo),r.payload.fullname&&t.user&&(t.user.fullname=r.payload.fullname,t.user.first_name=r.payload.fullname)})}}
19),{clearError:nA,setUserTypeLoaded:pO,setSelectedAccount:mO}=Ty.actions,xO=()=>e=>{const t=He.getBroker();t&&He.clearBroker(t),He.removeBroker(),e(Ty.actions.logoutAction())},gO=()=>async e=>{const t=await hO();return t||(He.clearAll(),e(Ty.actions.logoutAction())),t},yO=Ty.reducer,q2=[{name:"Most Active Value",value:"MA"},{name:"Most Active Volume",value:"MV"},{name:"Top Gainer",value:"MG"},{name:"Top Loser",value:"ML"},{name:"Most Swing",value:"MS"},{name:"Most Buy",value:"MI"},{name:"Most Sell",value:"MO"}],vu=[{name:"Common Stock",mktType:"ST",stockType:"S"},{name:"Warrant",mktType:"ST",stockType:"W"},{name:"DW",mktType:"ST",stockType:"V"},{name:"DW Call",mktType:"ST",stockType:"DWC"},{name:"DW Put",mktType:"ST",stockType:"DWP"},{name:"DR",mktType:"ST",stockType:"DR"},{name:"All",mktType:"",stockType:""},{name:"SET 50",mktType:"IU",stockType:"SET50"},{name:"SET 100",mktType:"IU",stockType:"SET100"},{name:"sSET",mktType:"IU",stockType:"sSET"},{name:"SETHD",mktType:"IU",stockType:"SETHD"},{name:"SETCLMV",mktType:"IU",stockType:"SETCLMV"},{name:"SETESG",mktType:"IU",stockType:"SETESG"},{name:"MAI",mktType:"IU",stockType:"MAI"}],W2=async(e="MA",t="ST",r="S")=>{const n=[e,t,r,"40"].filter(Boolean).join("|"),c=await(["MA","MV","MG","ML","MS","MI","MO","FG","FL"].includes(e)?M2:ui).get(`/pull?msg=${encodeURIComponent(n)}`);return{stocks:vO(c)}},vO=e=>{const t=e;return!t?.list||!Array.isArray(t.list)?[]:t.list};async function bO(){try{return await Rt.get(`${pt.NEXT_API}/funda/insight/get_all_symbol_today`,{baseURL:""})||null}catch(e){return console.error("Failed to fetch all stocks:",e),null}}function iA(e){let t=e.symbol;const r=e.type||null;["INDEX","SECTOR"].includes(r||"")?t=`.${e.symbol}`:r==="INDUSTRY"&&(t=`.${e.symbol.replace("-M","-ms")}`);const c=["I","INDEX","SECTOR","SE","INDUSTRY","MK"].includes(r||"");return{sid:null,name:e.symbol||null,symbol:t,aliasName:null,fullName:e.name_e||null,type:r,price:null,change:0,percentChange:0,prior:0,averagePrice:c?0:null,priceOld:null,open:null,high:null,low:null,ceiling:c?0:null,floor:c?0:null,volume:null,accVolume:null,accValue:null,totalVolume:null,totalValue:null,buyVolume:null,buyValue:null,buyTicker:null,sellVolume:null,sellValue:null,sellTicker:null,unknownVolume:c?0:null,bids:new Array(10).fill(null),offers:new Array(10).fill(null),bidVolumes:new Array(10).fill(null),offerVolumes:new Array(10).fill(null),totalBidVolume:0,totalOfferVolume:0,indexValue:null,advance:null,decline:null,unchange:null,openIndex:null,status:null,haltFlag:null,flags:null,isFinal:!1,isFinalBuffer:!1,isFinalBuy:!1,isFinalSell:!1,market:null,marketId:null,marketCap:null,marketStatusCode:null,sector:null,sectorCode:null,industry:null,indexTypes:null,m1Min:0,m1Max:0,m3Min:0,m3Max:0,m6Min:0,m6Max:0,yearMin:0,yearMax:0,threeDayPercentChange:0,threeDayValue:0,threeDayVolume:0,projectOpen:c?"N/A":null,projectVolume:c?"N/A":null,open0:c?"N/A":null,open1:c?0:null,open2:c?0:null,tickers:[],tickerIndex:0,tickerMax:15,topPriceTime:null,lastTickerSide:null,lastTickerTimeStamp:null,eps:null,pe:null,pbv:null,yield:null,dividendDate:null,dataDate:null,share:null,amount:null,listShare:null,ipoPrice:null,exercisePrice:null,exerciseRatioOld:null,exerciseRatioNew:null,expireDate:null,optionStyle:null,optionType:null,exerciseDate:null,lastTradeDate:null,multiplier:null,lastExerciseDate:null,issueDate:null,tradingDate:null,settlementType:null,autoExerciseDate:null,marketMaker:null,marketMakerTH:null,underlying:null,warrant:null,totalConvertedShares:null,issueShares:null,fundFlow:null,timeFrame:null}}async function Q2(e,t){try{const r=`TK|${e}|${t}`;return await ui.get(`/pull?msg=${encodeURIComponent(r)}`)}catch(r){return console.error("pullTKWithAmount error:",r),null}}async function wO(){try{return await ui.get("/pull?msg=TL")}catch(e){return console.error("pullTL error:",e),null}}async function J2(e){try{const t=`DXS|${e}`;return await ui.get(`/pull?msg=${encodeURIComponent(t)}`)}catch(t){return console.error("pullDXS error:",t),null}}async function SO(e){try{const t=`BO|${e}`;return await ui.get(`/pull?msg=${encodeURIComponent(t)}`)}catch(t){return console.error("pullBO error:",t),null}}async function AO(e){try{const t=`BOS|${e.join("|")}`;return await ui.get(`/pull?msg=${encodeURIComponent(t)}`)}catch(t){return console.error("pullBOS error:",t),null}}async function EO(e){try{const t=`SX|${e}`;return await ui.get(`/pull?msg=${encodeURIComponent(t)}`)}catch(t){return console.error("pullSX error:",t),null}}async function CO(e){try{if(!e)return null;const t=`IU|${e}`;return await ui.get(`/pull?msg=${encodeURIComponent(t)}`)}catch(t){return console.error("pullIU error:",t),null}}async function Dh(e){try{if(!e)return null;const t=`IUS|${e}`;return await ui.get(`/pull?msg=${encodeURIComponent(t)}`)}catch(t){return console.error("pullIUS error:",t),null}}async function kO(e){try{const t=encodeURIComponent(`IG|${encodeURIComponent(e)}`);return await ui.get(`/pull?msg=${t}`)}catch(t){return console.error("pullIG error:",t),null}}
19async function Hp(e,t,r,n){try{const l=[e,t,r,n].filter(Boolean).join("|");return await ui.get(`/pull?msg=${encodeURIComponent(l)}`)}catch(l){return console.error("getMarketMover error:",l),null}}async function TO(e){try{return await Rt.get(`${pt.NEXT_API}/funda/insight/get_price_by_timeframe/${e}`,{baseURL:""})??null}catch(t){return console.error("getStockTimeFrame error:",t),null}}async function r0(e){try{return await Rt.get(`${pt.NEXT_API}/funda/information/get_profile_of_symbols/${e}`,{baseURL:""})}catch(t){return console.error("getStockProfile error:",t),null}}async function K2(e){try{return await Rt.get(`${pt.NEXT_API}/funda/information/get_w_dw_data_of_symbol/${e}`,{baseURL:""})}catch(t){return console.error("getWDWProfile error:",t),null}}function We(e){return e==null?0:e/100}function vn(e,t){return t-e}function Un(e,t){return e===0?0:(t-e)/e*100}function Ir(e,t,r=!1){if(e==null||r&&e===0)return"text-white";if(t===0)return"text-yellow";const n=e-t;if(n===0)return"text-yellow";const l=n*100/e;return n>0?l<=.5?"text-green1":l<=3?"text-green2":l<=10?"text-green3":l<=20?"text-green4":"text-green5":l>-.5?"text-red1":l>-3?"text-red2":l>-10?"text-red3":l>-20?"text-red4":"text-red5"}function Ny(e,t){const r=parseFloat(String(e||0)),n=parseFloat(String(t||0));return r>0?n<=.5?"green1":n<=3?"green2":n<=10?"green3":n<=20?"green4":"green5":r<0?n>-.5?"red1":n>-3?"red2":n>-10?"red3":n>-20?"red4":"red5":"yellow"}function NO(e){return e>0?"#0FD99F":e<0?"#FF4B3A":"#FFC42D"}const jO={green1:"#0FD99F",green2:"#00CE93",green3:"#09C087",green4:"#2DA879",green5:"#238B63",yellow:"#FFC42D",red1:"#FF4B3A",red2:"#EB1F0B",red3:"#C42A1F",red4:"#C10400",red5:"#A70300"};function mc(e){if(!e)return"";const t=e.trim().toUpperCase();return t==="B"?"text-blue":t==="S"?"text-pink":""}function tl(e){return e>0?e<=.5?"text-green1":e<=3?"text-green2":e<=10?"text-green3":e<=20?"text-green4":"text-green5":e<0?e>-.5?"text-red1":e>-3?"text-red2":e>-10?"text-red3":e>-20?"text-red4":"text-red5":"text-yellow"}function MO(e,t){return Z2(e.bids[0],e.bidVolumes[0],e.isFinal,e.topPriceTime,t)}function RO(e,t){return Z2(e.offers[0],e.offerVolumes[0],e.isFinal,e.topPriceTime,t)}function Z2(e,t,r,n,l){if(!(e===0||e===null))return e;if(t&&t>0){if(r)return aA(n,e);{const f=(l??"").toLowerCase();return l==="P"||l==="F"||f.indexOf("pre-day")!==-1||f.indexOf("pre-night")!==-1||f.indexOf("pre-open")!==-1?"ATO":l==="A"||l==="X"||f.indexOf("pre-close")!==-1?"ATC":aA(n,e)}}return e??0}function aA(e,t){if(!e)return t??0;const r=e.split(":")[0];return r==="09"||r==="10"||r==="13"||r==="14"?"ATO":r==="16"?"ATC":t??0}const OO={securities:{},loading:!1,error:null,loaded:!1,watchList:new Set,selectedSymbol:""};function Ar(e,t){return e[t]||e[`.${t}`]||e[t.replace(/^\./,"")]}const Sg=At("securities/loadAllSymbols",async()=>{const e=await bO();if(!e)return;const t={},r=e.data.filter(l=>!["FUND","PS","PSF"].includes((l.type??"").toUpperCase())),n=iA({symbol:"sSET",type:"INDEX",name_e:"sSET Index"});t.sSET=n;for(const l of r){const c=iA(l);c.name&&(t[c.name]=c)}return t}),_u=At("securities/pullStockInfo",async(e,{getState:t})=>{const r=t(),n=Ar(r.securities.securities,e);if(!n)return null;if(["I","INDEX","SECTOR","SE","INDUSTRY","MK"].includes(n.type||"")){const c=await EO(e);if(c)return{type:"SX",stockName:e,data:c}}else{const c=await J2(e);if(c&&!c.err)return{type:"DXS",stockName:e,data:c}}return null}),A1=At("securities/pullTKData",async(e,{getState:t})=>{const r=await Q2(e,15);if(!r?.tck)return null;const n=t(),c=Ar(n.securities.securities,e)?.prior??0,f=r.tck.map(x=>{const y=We(x.prc);return{tim:x.tim,sid:x.sid,vol:x.vol,sym:e,price:y,prior:c,change:vn(c,y),lastIndex:!1}});return f.length>0&&(f[f.length-1].lastIndex=!0),{symbol:e,tickers:f}}),jh=At("securities/pullBOData",async e=>{const t=await SO(e);return t&&t.sym?{symbol:t.sym,data:t}:null}),eC=At("securities/pullBOSData",async e=>{const t=await AO(e);return t&&!t.err&&t.list?t.list:[]}),BO=["ytd","1m","3m","6m","1y","3y","5y","ipo"],tC=At("securities/pullTimeFrame",async(e,{getState:t})=>{const r=await TO(e),n=t(),c=Ar(n.securities.securities,e)?.price??0,f={};for(const x of BO){const y=r?.[`p_${x}`];if(y==null){f[x]=null;continue}f[x]=[vn(y,c),Un(y,c)]}return{symbol:e,data:f}}),Pu=At("securities/pullDXSData",async e=>{const t=await J2(e.join("|"));return t&&!t.err?t:null}),ro=At("securities/loadStockProfile",async(e,{getState:t,dispatch:r})=>{const n=t(),l=Ar(n.securities.securities,e),c=(l?.type||"").toUpperCase();if(["W","V","DWC","DWP"].includes(c)){const y=await K2(e);
19if(y?.display&&y.data){const b=y.data;r({type:"securities/updateWDWProfile",payload:{symbol:e,tradingDate:b.FIRST_DATE??null,lastTradeDate:b.LAST_TRADE_DATE??null,lastExerciseDate:b.LAST_EXERCISE_DATE??null,autoExerciseDate:b.AUTO_EXERCISE_DATE??null,exerciseDate:b.EXERCISE_DATE??null,exercisePrice:b.EXERCISE_PRICE?parseFloat(b.EXERCISE_PRICE):null,exerciseRatioOld:b.EXERCISE_RATIO_OLD?parseFloat(b.EXERCISE_RATIO_OLD):null,exerciseRatioNew:b.EXERCISE_RATIO_NEW?parseFloat(b.EXERCISE_RATIO_NEW):null,expireDate:b.EXPIRE_DATE??null,underlying:b.UNDERLYING??null,listShare:b.LISTED_SHARES??null,issueDate:b.ISSUE_DATE??null,totalConvertedShares:b.TOTAL_CONVERTED_SHARES??null,issueShares:b.ISSUED_SHARES??null,multiplier:b.MULTIPLIER??null,settlementType:b.SETTLEMENT_TYPE??null,optionStyle:b.OPTION_STYLE??null,optionType:b.OPTION_TYPE??null,marketMaker:b.MARKET_MAKER?.[0]??null,marketMakerTH:b.MARKET_MAKER_TH?.[0]??null}})}return null}const f=await r0(l?.symbol??e);if(!f?.display||!f.data?.[0])return null;const x=f.data[0];return{symbol:e,sid:x.security_id??null,m1Min:x.min1mPrice||0,m1Max:x.max1mPrice||0,m3Min:x.min3mPrice||0,m3Max:x.max3mPrice||0,m6Min:x.min6mPrice||0,m6Max:x.max6mPrice||0,yearMin:x.min1yPrice||0,yearMax:x.max1yPrice||0,pe:x.peRatio??null,yield:x.divYield??null,market:x.market??null,sector:x.sectorId??null,sectorCode:x.sectorCode??null,indexTypes:x.indexTypes??null,underlying:x.underlying??null}}),E1=At("securities/pullIUData",async(e,{getState:t,dispatch:r})=>{const n=t();Ar(n.securities.securities,e)||await r(ro(e));const l=await CO(e);return l||null}),s0=At("securities/pullIUSData",async(e,{getState:t,dispatch:r})=>{const n=t(),l=e.split("|").filter(f=>!Ar(n.securities.securities,f));l.length>0&&await Promise.all(l.map(f=>r(ro(f))));const c=await Dh(e);return!c||c.err?null:c}),rC=ln({name:"securities",initialState:OO,reducers:{updateTickerPrice:(e,t)=>{const{name:r,price:n,volume:l,side:c,time:f}=t.payload,x=Ar(e.securities,r);if(x&&(x.priceOld=x.price,x.price=n,x.volume=l,x.prior&&(x.change=vn(x.prior,n),x.percentChange=Un(x.prior,n)),c&&f)){x.tickers.forEach(b=>{b.lastIndex=!1}),x.tickerIndex>=x.tickerMax&&(x.tickerIndex=0);const y={tim:f,sid:c,vol:l,lastIndex:!0,sym:x.name||r,price:n,prior:x.prior,change:vn(x.prior,n)};x.tickers[x.tickerIndex]=y,x.tickerIndex++}},updateStats:(e,t)=>{const{name:r,...n}=t.payload,l=Ar(e.securities,r);l&&(l.prior=n.prior,l.averagePrice=n.averagePrice,l.high=n.high,l.low=n.low,l.totalVolume=n.accVolume,l.totalValue=n.accValue,l.accVolume=n.accVolume,l.accValue=n.accValue,l.buyVolume=n.buyVolume,l.sellVolume=n.sellVolume,l.unknownVolume=n.unknownVolume,n.haltFlag!==void 0&&(l.haltFlag=n.haltFlag),l.price!==null&&(l.change=l.price-n.prior,l.percentChange=Un(n.prior,l.price)))},updateTopPrice:(e,t)=>{const{name:r,side:n,prices:l,volumes:c,time:f}=t.payload,x=Ar(e.securities,r);x&&(f&&(x.topPriceTime=f),n==="B"?(x.bids=l,x.bidVolumes=c,x.isFinalBuy=x.isFinalBuffer):(x.offers=l,x.offerVolumes=c,x.isFinalSell=x.isFinalBuffer),x.isFinal=x.isFinalBuy&&x.isFinalSell,x.totalBidVolume=x.bidVolumes.reduce((y,b)=>y+(b||0),0),x.totalOfferVolume=x.offerVolumes.reduce((y,b)=>y+(b||0),0))},updateIndexData:(e,t)=>{const{group:r,...n}=t.payload,l=Ar(e.securities,r);l&&(n.time&&(l.topPriceTime=n.time),l.indexValue=n.indexValue,l.price=n.indexValue,l.prior=n.prior,l.high=n.high,l.low=n.low,l.openIndex=n.openIndex,l.buyVolume=n.buyVolume,l.sellVolume=n.sellVolume,l.unknownVolume=n.unknownVolume,l.change=vn(n.prior,n.indexValue),l.percentChange=Un(n.prior,n.indexValue),n.advance!==void 0&&(l.advance=n.advance),n.decline!==void 0&&(l.decline=n.decline),n.unchange!==void 0&&(l.unchange=n.unchange),n.status!==void 0&&(l.status=n.status),n.totalValue!==void 0&&(l.totalValue=n.totalValue),n.totalVolume!==void 0&&(l.totalVolume=n.totalVolume))},updateIndexVolume:(e,t)=>{const{group:r,...n}=t.payload,l=Ar(e.securities,r);l&&(l.totalVolume=n.totalVolume,l.totalValue=n.totalValue,n.advance!==void 0&&(l.advance=n.advance),n.decline!==void 0&&(l.decline=n.decline),n.unchange!==void 0&&(l.unchange=n.unchange))},updateSectorIndex:(e,t)=>{const{sectorName:r,...n}=t.payload,l=Ar(e.securities,r);l&&(l.price=n.indexValue,l.indexValue=n.indexValue,l.prior=n.prior,l.high=n.high,l.low=n.low,l.advance=n.advance,l.decline=n.decline,l.unchange=n.unchange,l.buyVolume=n.buyVolume,l.sellVolume=n.sellVolume,l.unknownVolume=n.unknownVolume,n.openIndex!==void 0&&(l.openIndex=n.openIndex),l.totalValue=n.totalValue,l.totalVolume=n.totalVolume,l.change=vn(n.prior,n.indexValue),l.percentChange=Un(n.prior,n.indexValue),n.status!==void 0&&(l.status=n.status))},updateProjectedOpen:(e,t)=>{const{name:r,...n}=t.payload,l=Ar(e.securities,r);
19l&&(l.projectOpen=n.projectOpen,l.projectVolume=n.projectVolume,n.open0!==void 0&&(l.open0=n.open0),n.open1!==void 0&&(l.open1=n.open1),n.open2!==void 0&&(l.open2=n.open2),n.haltFlag!==void 0&&(l.haltFlag=n.haltFlag),n.isFinal==="T"?l.isFinalBuffer=!0:n.isFinal==="F"&&(l.isFinalBuffer=!1))},updateStockStatus:(e,t)=>{const{name:r,haltFlag:n,status:l}=t.payload,c=Ar(e.securities,r);c&&(n!==void 0&&(c.haltFlag=n),l!==void 0&&(c.status=l))},updateSystemControl:(e,t)=>{const{group:r,status:n}=t.payload;if(r==="MAI"){const l=Ar(e.securities,"MAI");l&&(l.status=n)}else for(const l of["SET","SET50","SET100","SETHD"]){const c=Ar(e.securities,l);c&&(c.status=n)}},mergeAPIStocks:(e,t)=>{for(const r of t.payload){const n=Ar(e.securities,r.sym);n&&(n.bids[0]=We(r.bid),n.offers[0]=We(r.off),n.bidVolumes[0]=r.bvo,n.offerVolumes[0]=r.ofv,n.price=r.prc===0?We(r.prr):We(r.prc),n.prior=We(r.prr),n.high=We(r.hgh),n.low=We(r.low),n.ceiling=We(r.cei),n.floor=We(r.flo),n.averagePrice=We(r.avg),n.totalVolume=r.tvo,n.totalValue=r.tva,n.change=vn(n.prior,n.price),n.percentChange=Un(n.prior,n.price),n.projectOpen=r.pjp?We(r.pjp):null,n.projectVolume=r.pjv,n.marketStatusCode=r.mkt,n.fundFlow=r.mio,n.flags=r.flg)}},addToWatchlist:(e,t)=>{e.watchList=new Set(t.payload)},clearWatchlist:e=>{e.watchList=new Set},updateStockProfile:(e,t)=>{const{symbol:r,...n}=t.payload,l=Ar(e.securities,r);l&&(Object.assign(l,n),["INDUSTRY","SECTOR"].includes(l.type||"")&&(l.sectorCode=`.${l.name}`))},updateWDWProfile:(e,t)=>{const{symbol:r,...n}=t.payload,l=Ar(e.securities,r);l&&Object.assign(l,n)},setSelectedSymbol:(e,t)=>{e.selectedSymbol=t.payload.toUpperCase()}},extraReducers:e=>{e.addCase(Sg.pending,t=>{t.loading=!0,t.error=null}).addCase(Sg.fulfilled,(t,r)=>{t.loading=!1,t.loaded||(t.securities=r.payload??{},t.loaded=!0)}).addCase(Sg.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message||"Failed to load symbols"}).addCase(A1.fulfilled,(t,r)=>{if(!r.payload)return;const{symbol:n,tickers:l}=r.payload,c=Ar(t.securities,n);c&&(c.tickers=l,c.tickerIndex=l.length%c.tickerMax)}).addCase(jh.fulfilled,(t,r)=>{if(!r.payload)return;const{symbol:n,data:l}=r.payload,c=Ar(t.securities,n);c&&(c.bids=(l.bid??[]).map(We),c.offers=(l.off??[]).map(We),c.bidVolumes=l.bdv??[],c.offerVolumes=l.ofv??[],c.totalBidVolume=c.bidVolumes.reduce((f,x)=>f+(x||0),0),c.totalOfferVolume=c.offerVolumes.reduce((f,x)=>f+(x||0),0))}).addCase(eC.fulfilled,(t,r)=>{for(const n of r.payload){const l=Ar(t.securities,n.sym);l&&(l.bids=(n.bid??[]).map(We),l.offers=(n.off??[]).map(We),l.bidVolumes=n.bdv??[],l.offerVolumes=n.ofv??[],l.totalBidVolume=l.bidVolumes.reduce((c,f)=>c+(f||0),0),l.totalOfferVolume=l.offerVolumes.reduce((c,f)=>c+(f||0),0))}}).addCase(Pu.fulfilled,(t,r)=>{if(r.payload?.list)for(const n of r.payload.list){const l=Ar(t.securities,n.sym);l&&(l.ceiling=We(n.cei),l.flags=n.flg,l.floor=We(n.flo),l.haltFlag=n.hf,l.high=We(n.hgh),l.low=We(n.low),n.op0&&(l.open0=We(n.op0)),l.open1=We(n.op1),l.open2=We(n.op2),l.unknownVolume=n.ovo,l.status=n.mkt,l.price=n.prc===0?We(n.prr):We(n.prc),l.prior=We(n.prr),l.averagePrice=We(n.avg),l.sellVolume=n.svo,l.sellValue=n.sva,l.sellTicker=n.svt,l.buyVolume=n.bvo,l.buyValue=n.bva,l.buyTicker=n.bvt,l.totalValue=n.tva,l.totalVolume=n.tvo,l.change=vn(l.prior,l.price),l.percentChange=Un(l.prior,l.price))}}).addCase(_u.fulfilled,(t,r)=>{if(!r.payload)return;const{type:n,stockName:l,data:c}=r.payload;if(n==="DXS"&&c.list)for(const f of c.list){const x=Ar(t.securities,f.sym);x&&(x.ceiling=We(f.cei),x.flags=f.flg,x.floor=We(f.flo),x.haltFlag=f.hf,x.high=We(f.hgh),x.low=We(f.low),f.op0&&(x.open0=We(f.op0)),x.open1=We(f.op1),x.open2=We(f.op2),x.unknownVolume=f.ovo,x.status=f.mkt,x.price=f.prc===0?We(f.prr):We(f.prc),x.prior=We(f.prr),x.averagePrice=We(f.avg),x.sellVolume=f.svo,x.sellValue=f.sva,x.buyVolume=f.bvo,x.buyValue=f.bva,x.totalValue=f.tva,x.totalVolume=f.tvo,x.unknownVolume=f.ovo,x.change=vn(x.prior,x.price),x.percentChange=Un(x.prior,x.price))}else if(n==="SX"){const f=c,x=Ar(t.securities,f.sxn)||Ar(t.securities,l);if(!x)return;x.buyVolume=f.bvo,x.status=f.fst,x.high=We(f.hgh),x.price=f.idx===0?We(f.prr):We(f.idx),x.low=We(f.low),x.unknownVolume=f.opo,x.open1=We(f.opx),x.prior=We(f.prr),x.sellVolume=f.svo,x.totalValue=We(f.val),x.totalVolume=f.vol,x.change=vn(x.prior,x.price),x.percentChange=Un(x.prior,x.price)}}).addCase(tC.fulfilled,(t,r)=>{if(!r.payload)return;const{symbol:n,data:l}=r.payload,c=Ar(t.securities,n);c&&(c.timeFrame=l)}).addCase(E1.fulfilled,(t,r)=>{if(!r.payload)return;const n=r.payload,l=`${n.grp}`,c=Ar(t.securities,l);c&&(c.open=We(n.opx),c.high=We(n.hgh),c.low=We(n.low),c.price=n.idx===0?We(n.prr):We(n.idx),c.prior=We(n.prr),c.sellVolume=n.svo,c.sellValue=n.sva,c.buyVolume=n.bvo,c.buyValue=n.bva,c.totalValue=We(n.val),c.totalVolume=n.vol,c.unknownVolume=n.opo,c.change=vn(c.prior,c.price),c.percentChange=Un(c.prior,c.price),c.status=n.fst)}).addCase(s0.fulfilled,(t,r)=>{if(r.payload)for(const n of r.payload){const l=n.grp==="-M"?n.grp.replace("-M",""):n.grp,c=Ar(t.securities,l);c&&(c.open=We(n.opx),c.high=We(n.hgh),c.low=We(n.low),c.price=n.idx===0?We(n.prr):We(n.idx),c.prior=We(n.prr),c.sellVolume=n.svo,c.sellValue=n.sva,c.buyVolume=n.bvo,c.buyValue=n.bva,c.totalValue=We(n.val),c.totalVolume=n.vol,c.unknownVolume=n.opo,c.change=vn(c.prior,c.price),c.percentChange=Un(c.prior,c.price),c.status=n.fst)}}).addCase(ro.fulfilled,(t,r)=>{if(!r.payload)return;const{symbol:n,...l}=r.payload,c=Ar(t.securities,n);c&&(Object.assign(c,l),["INDUSTRY","SECTOR"].includes(c.type||"")&&(c.sectorCode=`.${c.name}`))})}}),_O=(e,t)=>e.securities.securities[t]||null,Wv=(e,t)=>
19(t||[]).map(r=>e.securities.securities[r]).filter(r=>!!r),n0=e=>e.securities.selectedSymbol,{updateTickerPrice:DO,updateStats:LO,updateTopPrice:IO,updateIndexData:C1,updateIndexVolume:PO,updateSectorIndex:FO,updateProjectedOpen:zO,updateStockStatus:UO,updateSystemControl:$O,mergeAPIStocks:sC,addToWatchlist:Fu,clearWatchlist:Oz,setSelectedSymbol:Gn,updateStockProfile:VO,updateWDWProfile:HO}=rC.actions,YO=rC.reducer,GO={marketMoverStocks:[],selectedType:"MA",loading:!1,error:null},ku=At("stocks/loadMarketMovers",async(e,{dispatch:t})=>{const r=typeof e=="string"?e:e?.type??"MA",n=typeof e=="object"?e?.mktType:void 0,l=typeof e=="object"?e?.stockType:void 0,c=await W2(r,n,l),f=c.stocks.map(x=>x.sym);return t(sC(c.stocks)),t(Fu(f)),{marketMoverStocks:f,selectedType:r}}),XO=ln({name:"stocks",initialState:GO,reducers:{},extraReducers:e=>{e.addCase(ku.pending,(t,r)=>{typeof r.meta.arg=="object"&&r.meta.arg?.silent||(t.loading=!0,t.error=null)}).addCase(ku.fulfilled,(t,r)=>{t.loading=!1,t.marketMoverStocks=r.payload.marketMoverStocks,t.selectedType=r.payload.selectedType}).addCase(ku.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message||"Failed to load market movers"})}}),qO=XO.reducer,WO={connected:!1,lastUpdate:null,error:null},nC=ln({name:"realtime",initialState:WO,reducers:{connectionEstablished:e=>{e.connected=!0,e.error=null},connectionLost:e=>{e.connected=!1},connectionError:(e,t)=>{e.connected=!1,e.error=t.payload},dataReceived:e=>{e.lastUpdate=Date.now()}}}),{connectionEstablished:QO,connectionLost:JO,connectionError:KO,dataReceived:ZO}=nC.actions,eB=nC.reducer,lA={set:[],indexSet:0,maxSet:30,active:!1,loading:!1},iC=ln({name:"ticker",initialState:lA,reducers:{setTickerActive:(e,t)=>{e.active=t.payload},updateSetTicker:(e,t)=>{if(!e.active)return;const{sym:r,prc:n,prr:l,vol:c,sid:f,tim:x}=t.payload,y=We(n),b=We(l),S=f||"";e.set.forEach(M=>{M.lastIndex=!1});const C=(e.indexSet-1+e.maxSet)%e.maxSet,R=e.set[C];if(R&&R.sym===r&&R.sid===S&&R.price===y){R.vol+=c,R.tim=x||"",R.lastIndex=!0;return}e.indexSet>=e.maxSet&&(e.indexSet=0);const O={sym:r,price:y,prior:b,change:y-b,vol:c,sid:S,tim:x||"",lastIndex:!0};e.set[e.indexSet]=O,e.indexSet++},loadMarketCloseTicker:(e,t)=>{e.set=t.payload.map(r=>({sym:r.sym||"",price:We(r.prc)||0,prior:We(r.prr)||0,change:(We(r.prc)||0)-(We(r.prr)||0),vol:r.vol||0,sid:r.sid||"",tim:r.tim||"",lastIndex:!1})),e.loading=!1},setTickerLoading:(e,t)=>
19{e.loading=t.payload},resetTicker:()=>lA}}),tB=e=>e.ticker.set,rB=e=>e.ticker.loading,{setTickerActive:sB,updateSetTicker:nB,loadMarketCloseTicker:iB,setTickerLoading:Qv,resetTicker:aB}=iC.actions,lB=iC.reducer,di=pt.NEXT_API;async function oB(){try{return await Rt.get(`${di}/timeline/quick_menu`,{baseURL:""})}catch(e){return console.error("getQuickMenu error:",e),null}}async function cB(){try{return await Rt.get(`${di}/marketoverview/get_radars`,{baseURL:""})}catch(e){return console.error("getRadarsList error:",e),null}}async function uB(){try{return await Rt.get(`${di}/marketoverview/today_events`,{baseURL:""})}catch(e){return console.error("getTodayEvents error:",e),null}}async function dB(){try{return await Rt.get(`${di}/marketoverview/upcoming_events`,{baseURL:""})}catch(e){return console.error("getWeekEvents error:",e),null}}async function hB(){try{return await Rt.get(`${di}/marketoverview/get_sector_overview`,{baseURL:""})}catch(e){return console.error("getSectorOverview error:",e),null}}async function fB(){try{return await Rt.get(`${di}/marketoverview/get_indices`,{baseURL:""})}catch(e){return console.error("getIndices error:",e),null}}async function pB(){try{return await Rt.get(`${di}/marketoverview/get_investor_type`,{baseURL:""})}catch(e){return console.error("getInvestorType error:",e),null}}async function mB(){try{return await Rt.get(`${di}/marketoverview/exchange_rate`,{baseURL:""})}catch(e){return console.error("getExchangeRate error:",e),null}}async function xB(e=0,t=20){try{return await Rt.get(`${di}/marketoverview/stockradars_news?start=${e}&limit=${t}`,{baseURL:""})}catch(r){return console.error("getStockRadarsNews error:",r),null}}async function gB(e){try{return await Rt.get(`${di}/marketoverview/get_top_gainer_timeframe?period=${e.toLowerCase()}&limit=100`,{baseURL:""})}catch(t){return console.error("getTopGainerTimeframe error:",t),null}}async function yB(e){try{return await Rt.get(`${di}/marketoverview/get_top_loser_timeframe?period=${e.toLowerCase()}&limit=100`,{baseURL:""})}catch(t){return console.error("getTopLoserTimeframe error:",t),null}}async function vB(){try{return await Rt.get(`${di}/misc/commodities`)}catch(e){return console.error("getCommodities error:",e),null}}async function bB(){try{return await Rt.get(`${di}/misc/interest_rate`)}catch(e){return console.error("getInterestsRate error:",e),null}}const wB={selectedIndex:".SET",menuList:[".SET",".SET50",".SET100",".sSET",".SETHD",".SETCLMV",".SETESG",".SETWB",".MAI"],topGainers:[],topLosers:[],marketMovers:[],quickMenuList:[],intraDayData:[],loading:!1,error:null};function Pb(e){return!e?.list||!Array.isArray(e.list)?[]:e.list.map(t=>({name:t.sym,symbol:t.sym,price:We(t.prc)||We(t.prr),change:vn(We(t.prr),We(t.prc)||We(t.prr)),percentChange:Un(We(t.prr),We(t.prc)||We(t.prr))}))}const Ag=At("marketOverview/loadIndexData",async(e,{dispatch:t})=>{const r=e.map(c=>
19c.replace(".","")),[n,l]=await Promise.all([r0(e.join(",")),Dh(r.join("|"))]);if(n?.display&&n.data&&n.data.forEach((c,f)=>{t(VO({symbol:r[f],sid:c.security_id??null,m1Min:c.min1mPrice||0,m1Max:c.max1mPrice||0,m3Min:c.min3mPrice||0,m3Max:c.max3mPrice||0,m6Min:c.min6mPrice||0,m6Max:c.max6mPrice||0,yearMin:c.min1yPrice||0,yearMax:c.max1yPrice||0,pe:c.peRatio??null,yield:c.divYield??null,market:c.market??null,sector:c.sectorId??null,sectorCode:c.sectorCode??null,indexTypes:c.indexTypes??null,underlying:c.underlying??null}))}),l)for(const c of l)t(C1({group:c.grp,indexValue:We(c.idx),prior:We(c.prr),high:We(c.hgh),low:We(c.low),openIndex:We(c.opx),buyVolume:c.bvo,sellVolume:c.svo,unknownVolume:c.opo,totalValue:c.val!==void 0?c.val/100:void 0,totalVolume:c.vol,advance:c.adv,decline:c.dec,unchange:c.nch,status:c.fst,time:c.tim}))}),Jg=At("marketOverview/loadIntraDayChart",async e=>{const t=e.replace(".",""),r=await kO(t);if(!r?.grp||r.grp.length===0)return[];const n=[];for(const l of r.grp){const c=l[0],f=l[1],x=l[2];if(c>"12:30"&&c<"14:26")continue;const y=f.toString(),b=y?parseFloat(y.substring(0,y.length-2)+"."+y.substring(y.length-2)):0;n.push({time:c,price:b||0,volume:x||0})}if(n.length>0){const l=n[n.length-1].time;let[c,f]=l.split(":").map(Number);const x=16,y=49;for(;c<x||c===x&&f<y;){f++,f>=60&&(f=0,c++);const b=`${String(c).padStart(2,"0")}:${String(f).padStart(2,"0")}`;b>"12:30"&&b<"14:26"||n.push({time:b,price:0,volume:0})}}return n}),aC=At("marketOverview/loadTopGainerLoser",async()=>{const[e,t]=await Promise.all([Hp("FG","ST","S","40"),Hp("FL","ST","S","40")]);return{topGainers:Pb(e),topLosers:Pb(t)}}),lC=At("marketOverview/loadMarketMovers",async()=>{const e=await Hp("MA","ST","S","40");return Pb(e)}),oC=At("marketOverview/loadQuickMenu",async(e,{getState:t})=>{const n=t().auth.broker,l=await oB();if(!l?.data?.length)return[];let c=l.data;return n==="stockradars"&&(c=c.filter(f=>f.name!=="Trade"&&f.name!=="Portfolio"),c.push({deepUrl:"stockradars://ranking",imgUrl:"images/quick_menu/ranking.png",name:"Ranking"},{deepUrl:"stockradars://top100",imgUrl:"images/quick_menu/top100.png",name:"Top 100"})),c}),SB=At("marketOverview/loadMarketOverviewTable",async e=>{const t=e.map(r=>r.replace(".","")).join("|");return await Dh(t),t}),cC=ln({name:"marketOverview",initialState:wB,reducers:{setSelectedIndex:(e,t)=>{e.selectedIndex=t.payload}},extraReducers:e=>{e.addCase(Ag.pending,t=>{t.loading=!0}).addCase(Ag.fulfilled,t=>{t.loading=!1}).addCase(Ag.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message||"Failed to load index data"}).addCase(Jg.fulfilled,(t,r)=>{t.intraDayData=r.payload}).addCase(aC.fulfilled,(t,r)=>{t.topGainers=r.payload.topGainers,t.topLosers=r.payload.topLosers}).addCase(lC.fulfilled,(t,r)=>{t.marketMovers=r.payload}).addCase(oC.fulfilled,(t,r)=>{t.quickMenuList=r.payload})}}),uC=e=>e.marketOverview.selectedIndex,AB=e=>e.marketOverview.menuList,EB=e=>e.marketOverview.topGainers,CB=e=>e.marketOverview.topLosers,kB=e=>e.marketOverview.marketMovers,TB=e=>e.marketOverview.quickMenuList,NB=e=>e.marketOverview.intraDayData,{setSelectedIndex:jB}=cC.actions,MB=cC.reducer,jy=pt.NEXT_API;async function RB(){try{return await Rt.get(`${jy}/ranking/get_type`,{baseURL:""})}catch(e){return console.error("getMenuRanking error:",e),null}}async function OB(){try{return await Rt.get(`${jy}/ranking/get_industry_sector`,{baseURL:""})}catch(e){return console.error("getSectorList error:",e),null}}async function BB(e){try{return await Rt.get(`${jy}/marketoverview/market_cap_ranking/?symbol=${e}&datadate=&limit=`,{baseURL:""})}catch(t){return console.error("getRankOfSymbol error:",t),null}}async function dC(e){try{return await Rt.get(`${jy}/funda/insight/get_badge_list/${e}`,{baseURL:""})}catch(t){return console.error("getCompanyLogo error:",t),null}}const _B={menuList:[],sectorList:[],selectedMenu:"Revenue",selectedSector:"All",selectedSortBy:"Symbol",tableColumns:[],tableData:[],loading:!1,error:null,symbolRankInfo:null,symbolLogoData:null},DB=At("ranking/loadMenuRanking",async()=>(await RB())?.data??[]),LB=At("ranking/loadSectorList",async()=>{const e=await OB();return e?.data?[...e.data].reverse():[]}),hC=At("ranking/loadRankOfSymbol",async e=>(await BB(e))?.list?.[0]??null),k1=At("ranking/loadCompanyLogo",async e=>await dC(e)??null),fC=ln({name:"ranking",initialState:_B,reducers:{setSelectedMenu:(e,t)=>{e.selectedMenu=t.payload,e.selectedSortBy="Symbol"},setSelectedSector:(e,t)=>
19{e.selectedSector=t.payload},setSelectedSortBy:(e,t)=>{e.selectedSortBy=t.payload},reverseTableData:e=>{e.tableData.reverse()},resetSymbolData:e=>{e.symbolRankInfo=null,e.symbolLogoData=null}},extraReducers:e=>{e.addCase(DB.fulfilled,(t,r)=>{t.menuList=r.payload}).addCase(LB.fulfilled,(t,r)=>{t.sectorList=r.payload}).addCase(hC.fulfilled,(t,r)=>{t.symbolRankInfo=r.payload}).addCase(k1.fulfilled,(t,r)=>{t.symbolLogoData=r.payload})}}),{setSelectedMenu:Bz,setSelectedSector:_z,setSelectedSortBy:Dz,reverseTableData:Lz,resetSymbolData:pC}=fC.actions,IB=e=>e.ranking.symbolRankInfo,mC=e=>e.ranking.symbolLogoData,PB=fC.reducer,My=pt.FAV_NEXT_API,FB=Array.from({length:5},(e,t)=>({row:t+1,name:`Favorite ${t+1}`,data:[]}));async function xC(){try{const e=await Rt.get(`${My}/symbol/get_all`,{baseURL:""})??[],t=Array.from({length:5},(r,n)=>({row:n+1,name:`Favorite ${n+1}`,data:[]}));for(const r of e){const n=Math.max(0,Math.min(4,(r.label_id??1)-1));r.label_name&&(t[n].name=r.label_name),t[n].data.push(r)}return t}catch(e){return console.error("getFavorites error:",e),FB.map(t=>({...t,data:[]}))}}async function zB(e,t){try{const r=new URLSearchParams({label_id:String(e)});await Rt.post(`${My}/symbol/add/${encodeURIComponent(t)}`,r,{baseURL:"",headers:{"content-type":"application/x-www-form-urlencoded"}})}catch(r){console.error("saveFavorites error:",r)}}async function UB(e,t){try{await Rt.delete(`${My}/symbol/remove/${t}?label_id=${e}`,{baseURL:"",headers:{"content-type":"application/x-www-form-urlencoded"}})}catch(r){console.error("deleteFavorites error:",r)}}async function $B(e,t){try{await Rt.put(`${My}/symbol/change_label_name/${e}/${encodeURIComponent(t)}`,{baseURL:""})}catch(r){console.error("editNameFavorites error:",r)}}const VB={list:[],loading:!1},rl=At("favorite/loadFavorites",async()=>await xC()),Rp=At("favorite/addFavorites",async({favRows:e,symbol:t})=>{await zB(e,t)}),Sh=At("favorite/removeFavorites",async({favRows:e,symbol:t})=>{await UB(e,t)}),Eg=At("favorite/editNameFavorites",async({favRows:e,favName:t})=>(await $B(e,t),await xC())),HB=ln({name:"favorite",initialState:VB,reducers:{},extraReducers:e=>{e.addCase(rl.pending,t=>{t.loading=!0}).addCase(rl.fulfilled,(t,r)=>{t.loading=!1,t.list=r.payload}).addCase(rl.rejected,t=>{t.loading=!1}).addCase(Rp.pending,t=>{t.loading=!0}).addCase(Rp.fulfilled,t=>{t.loading=!1}).addCase(Rp.rejected,t=>{t.loading=!1}).addCase(Sh.pending,t=>{t.loading=!0}).addCase(Sh.fulfilled,t=>{t.loading=!1}).addCase(Sh.rejected,t=>{t.loading=!1}).addCase(Eg.pending,t=>{t.loading=!0}).addCase(Eg.fulfilled,(t,r)=>{t.loading=!1,t.list=r.payload}).addCase(Eg.rejected,t=>{t.loading=!1})}}),Ry=e=>e.favorite,YB=HB.reducer,GB=[{name:"3 Rows Bid/Offer",value:3},{name:"5 Rows Bid/Offer",value:5},{name:"10 Rows Bid/Offer",value:10}],XB={selectedMenu:"MA",rowsBidOffer:10,symbols:[],loading:!1},Ah=At("bidOffer/loadBidOffer",async(e,{dispatch:t,getState:r})=>{let n=[];if(e.includes("FAVORITE")){const l=await t(rl()).unwrap(),c=parseInt(e.replace("FAVORITE ",""))-1;n=(l[c]?.data??[]).map(f=>f.symbol).filter(f=>!f.includes("."))}else if(e==="PORTFOLIO")n=r().portfolio.list.map(l=>l.symbol).filter(l=>l&&!l.includes("."));else{const l=await W2(e);n=l.stocks.map(c=>c.sym),t(sC(l.stocks))}if(n.length>0){const l=await r0(n.join(","));l?.display&&l.data&&(n=n.filter((c,f)=>l.data[f]?.security_id!=null&&l.data[f]?.assetType!=="")),t(Fu(n)),await Promise.all([t(eC(n)),t(Pu(n))])}return{symbols:n}}),Fb=At("bidOffer/removeFavoriteAndReload",async({symbol:e,selectedMenu:t},{dispatch:r,getState:n})=>{const c=n().favorite.list.flatMap(f=>f.data).find(f=>f.symbol===e);c?.label_id&&await r(Sh({favRows:c.label_id,symbol:e})),await r(Ah(t))}),gC=ln({name:"bidOffer",initialState:XB,reducers:{setSelectedMenu:(e,t)=>{e.selectedMenu=t.payload},setRowsBidOffer:(e,t)=>{e.rowsBidOffer=t.payload}},extraReducers:e=>{e.addCase(Ah.pending,t=>{t.loading=!0,t.symbols=[]}).addCase(Ah.fulfilled,(t,r)=>{t.loading=!1,t.symbols=r.payload.symbols}).addCase(Ah.rejected,t=>{t.loading=!1}).addCase(Fb.pending,t=>{t.loading=!0}).addCase(Fb.fulfilled,t=>{t.loading=!1})}}),{setSelectedMenu:oA,setRowsBidOffer:qB}=gC.actions,WB=e=>e.bidOffer,QB=gC.reducer,JB=["X","S","L","V","W","U","MK","ETF"],KB=async e=>{const t="https://search-stock.stockradars.co/search",r="stock,holder2021",n=new FormData;n.append("wording",e.toUpperCase()),n.append("group",r);const l=await st.post(t,n);return(Array.isArray(l.data)?l.data:[]).filter(f=>JB.includes(f._source?.F_TYPE))},ZB={results:[],loading:!1,error:null},Op=At("search/fetchResults",async e=>await KB(e)),yC=ln({name:"search",initialState:ZB,reducers:{clearSearch:e=>{e.results=[],e.error=null}},extraReducers:e=>{e.addCase(Op.pending,t=>{t.loading=!0,t.error=null,t.results=[]}).addCase(Op.fulfilled,(t,r)=>{t.loading=!1,t.results=r.payload}).addCase(Op.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message||"Search failed"})}}),{clearSearch:Tu}=yC.actions,e_=yC.reducer,zu=pt.NEXT_API,t_=pt.DATA_STORAGE;async function r_(e){if(!e)return null;try{return await Rt.get(`${t_}
19/insight-data/${e}.json`,{baseURL:"",headers:{"Content-Type":"application/x-www-form-urlencoded"},transformRequest:[(r,n)=>(delete n.authorization,delete n.app,delete n.state,delete n["user-id"],r)]})??null}catch(t){return console.error("getIndustryDesc error:",t),null}}async function vC(e){try{return await Rt.get(`${zu}/funda/insight/symbol_in_industry/${e}`,{baseURL:""})??null}catch(t){return console.error("getIndustrySymbol error:",t),null}}async function T1(e){try{return await Rt.get(`${zu}/funda/insight/symbol_in_sector/${e}`,{baseURL:""})??null}catch(t){return console.error("getSectorSymbol error:",t),null}}async function bC(e){try{return await Rt.get(`${zu}/funda/insight/symbol_in_index/${e}`,{baseURL:""})??null}catch(t){return console.error("getIndexSymbol error:",t),null}}async function s_(e){try{return await Rt.get(`${zu}/funda/insight/dw_in_broker/${e}`,{baseURL:""})??null}catch(t){return console.error("getDWBrokerSymbol error:",t),null}}async function n_(e){try{return await Rt.get(`${zu}/funda/company/latest_document/${e}`,{baseURL:""})??null}catch(t){return console.error("getCompanyDoc error:",t),null}}async function i_(){try{return await Rt.get(`${zu}/shareholder/get_tsd_stock_list`,{baseURL:""})??null}catch(e){return console.error("getTop100List error:",e),null}}async function a_(e){try{return await Rt.get(`${zu}/funda/insight/get_stock_peers/${e}`,{baseURL:""})??null}catch(t){return console.error("getStockPeers error:",t),null}}const l_="ASPS à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¹à¸à¹à¸à¸µà¸¢ à¸à¸¥à¸±à¸ª à¸à¸³à¸à¸±à¸ à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 8 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",o_="BLS à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¸à¸±à¸§à¸«à¸¥à¸§à¸ à¸à¸³à¸à¸±à¸ (มหาà¸à¸) à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 1 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",c_="CIMBS à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¸à¸µà¹à¸à¹à¸à¹à¸¡à¸à¸µ (à¸à¸£à¸°à¹à¸à¸¨à¹à¸à¸¢) à¸à¸³à¸à¸±à¸ à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 7 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",u_="FSS à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¸à¸´à¸à¸±à¸à¹à¸à¸µà¸¢ à¹à¸à¸£à¸±à¸ª à¸à¸³à¸à¸±à¸ (มหาà¸à¸) à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 24 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",d_="KGI à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¹à¸à¸à¸µà¹à¸ (à¸à¸£à¸°à¹à¸à¸¨à¹à¸à¸¢) à¸à¸³à¸à¸±à¸ (มหาà¸à¸) à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 13 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",h_="KTZ à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¹à¸à¸à¸µ à¸à¸µà¸¡à¸´à¹à¸à¹ à¸à¸³à¸à¸±à¸ à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 18 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",f_="MBKET à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¹à¸¡à¸¢à¹à¹à¸à¸à¸à¹ à¸à¸´à¸¡à¹à¸à¹à¸ (à¸à¸£à¸°à¹à¸à¸¨à¹à¸à¸¢) à¸à¸³à¸à¸±à¸ (มหาà¸à¸) à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 42 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹
19à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",p_="KS à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¸à¸ªà¸´à¸à¸£à¹à¸à¸¢ à¸à¸³à¸à¸±à¸ (มหาà¸à¸) à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 11 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",m_="MACQ à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¹à¸¡à¸à¸à¸§à¸à¸£à¸µ (à¸à¸£à¸°à¹à¸à¸¨à¹à¸à¸¢) à¸à¸³à¸à¸±à¸ à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 28 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",x_="PTSEC à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ ภัà¸à¸£ à¸à¸³à¸à¸±à¸ (มหาà¸à¸) à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 6 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",g_="RHBS à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¸à¸²à¸£à¹à¹à¸à¸à¸à¸µ (à¸à¸£à¸°à¹à¸à¸¨à¹à¸à¸¢) à¸à¸³à¸à¸±à¸ (มหาà¸à¸) à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 27 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",y_="SCBS à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ à¹à¸à¸¢à¸à¸²à¸à¸´à¸à¸¢à¹ à¸à¸³à¸à¸±à¸ à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 23 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",v_="TNS à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¸à¸à¸²à¸ à¸à¸³à¸à¸±à¸ (มหาà¸à¸) à¸à¸¹à¹à¸à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸«à¸¡à¸²à¸¢à¹à¸¥à¸ 16 à¹à¸à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸à¸·à¹à¸ ๠à¸à¸µà¹à¸à¸à¸à¹à¸à¸¢à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸¡à¸µà¸à¸±à¸à¸à¸µà¹",b_=`Derivative Warrants (DW) - à¹à¸à¸ªà¸³à¸à¸±à¸à¹à¸ªà¸à¸à¸ªà¸´à¸à¸à¸´à¸à¸à¸¸à¸à¸±à¸à¸à¹ à¹à¸à¹à¸à¸à¸£à¸²à¸ªà¸²à¸£à¸à¸µà¹à¸à¸¹à¹à¸à¸à¸à¹à¸«à¹à¸ªà¸´à¸à¸à¸´à¸à¸·à¹à¸ (Call DW) หรืà¸à¸à¸²à¸¢ (Put DW) สิà¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¹à¸à¸£à¸²à¸à¸²à¹à¸¥à¸°à¹à¸§à¸¥à¸²à¸à¸µà¹à¸à¸³à¸«à¸à¸ à¸à¸¶à¹à¸à¸à¸¹à¹à¸à¸à¸à¸à¸°à¹à¸à¹à¸à¸à¸¸à¸à¸à¸¥à¸à¸µà¹à¸ªà¸²à¸¡ à¹à¸à¹à¸ à¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ 20à¹à¸à¸¢à¸à¸·à¹à¸à¸¢à¹à¸à¸à¹à¸²à¸ ๠มีà¸à¸§à¸²à¸¡à¸«à¸¡à¸²à¸¢à¸à¸±à¸à¸à¸µà¹ 21UUUUIICYYMMA 22UUUU à¹à¸à¸à¸à¹à¸§à¸¢ à¸à¸·à¹à¸à¸¢à¹à¸à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸ 23II à¹à¸à¸à¸à¹à¸§à¸¢ รหัสà¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¸µà¹à¸à¸à¸ DW 24C หรืภP à¹à¸à¸à¸à¹à¸§à¸¢ à¸à¸£à¸°à¹à¸ ภCall (สิà¸à¸à¸´à¸à¸·à¹à¸) หรืภPut (สิà¸à¸à¸´à¸à¸²à¸¢) 25YYMM à¹à¸à¸à¸à¹à¸§à¸¢ à¸à¸µà¹à¸¥à¸°à¹à¸à¸·à¸à¸à¸ªà¸¸à¸à¸à¹à¸²à¸¢à¸à¸µà¹à¸à¸·à¹à¸à¸à¸²à¸¢à¹à¸à¹à¸à¹à¸à¸à¸«à¸¡à¸à¸à¸²à¸¢à¸¸ 26A à¹à¸à¸à¸à¹à¸§à¸¢ รุà¹à¸ à¹à¸à¸¢à¹à¸£à¸µà¸¢à¸à¸à¸²à¸ A-Z à¸à¸²à¸¡à¸£à¸¸à¹à¸à¸à¸µà¹à¸¡à¸µà¸à¸²à¸£à¸à¸·à¹à¸à¸à¸²à¸¢à¹à¸à¸·à¸à¸à¸ªà¸¸à¸à¸à¹à¸²à¸¢à¹à¸à¸·à¸à¸à¹à¸à¸µà¸¢à¸§à¸à¸±à¸`,w_=`Warrants (W) - à¹à¸à¸ªà¸³à¸à¸±à¸à¹à¸ªà¸à¸à¸ªà¸´à¸à¸à¸´à¸à¸µà¹à¸à¸°à¸à¸·à¹à¸à¸«à¸¸à¹à¸à¸ªà¸²à¸¡à¸±à¸ à¹à¸à¹à¸à¸à¸£à¸²à¸ªà¸²à¸£à¸à¸µà¹à¸à¸¹à¹à¸à¸à¸à¹à¸«à¹à¸ªà¸´à¸à¸à¸´à¸à¸·à¹à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¹à¸à¸£à¸²à¸à¸² à¹à¸§à¸¥à¸² à¹à¸¥à¸°à¸à¸²à¸¡à¹à¸à¸·à¹à¸à¸à¹à¸à¸à¸µà¹à¸à¸³à¸«à¸à¸ (หาà¸à¸à¸£à¸à¸à¸³à¸«à¸à¸à¸§à¸±à¸à¸«à¸¡à¸à¸à¸²à¸¢à¸¸à¸à¸²à¸£à¹à¸à¹à¸ªà¸´à¸à¸à¸´à¹à¹à¸¥à¹à¸§à¸¢à¸±à¸à¹à¸¡à¹à¸à¸£à¸°à¸ªà¸à¸à¹à¹à¸à¹à¸ªà¸´à¸à¸à¸´à¹ à¸à¸°à¸à¸³à¹à¸«à¹à¸¡à¸¹à¸¥à¸à¹à¸²à¸à¸à¸ Warrants à¸à¸±à¹à¸à¹à¸à¹à¸ 0) à¸à¸¶à¹à¸à¸à¸¹à¹à¸à¸à¸à¸à¸·à¸à¸à¸£à¸´à¸©à¸±à¸à¹à¸à¹à¸²à¸à¸à¸à¸à¸´à¸à¸à¸²à¸£à¸à¸±à¹à¸ ๠27à¹à¸à¸¢à¸à¸±à¸§à¹à¸¥à¸à¸«à¸¥à¸±à¸ W à¸à¸à¸à¸à¸¶à¸à¸à¸³à¸à¸§à¸à¸à¸£à¸±à¹à¸à¸à¸µà¹à¸à¸à¸ Warrant à¹à¸à¹à¸ AAA-W3 หมายà¸à¸¶à¸ à¹à¸à¸ªà¸³à¸à¸±à¸à¹à¸ªà¸à¸à¸ªà¸´à¸à¸à¸´à¸à¸µà¹à¸à¸°à¸à¸·à¹à¸à¸«à¸¸à¹à¸ AAA à¸à¸£à¸±à¹à¸à¸à¸µà¹ 3`,S_="Call - สิà¸à¸à¸´à¸à¸·à¹à¸à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸ (หาà¸à¸£à¸²à¸à¸²à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¹à¸à¸´à¹à¸¡à¸à¸¶à¹à¸ ราà¸à¸²à¸à¸à¸ DW à¸à¹à¸à¸°à¹à¸à¸´à¹à¸¡à¸à¸¶à¹à¸ à¹à¸à¸à¸²à¸à¸à¸¥à¸±à¸à¸à¸±à¸ หาà¸à¸£à¸²à¸à¸²à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸¥à¸à¸¥à¸ ราà¸à¸²à¸à¸à¸ DW à¸à¹à¸à¸°à¸¥à¸à¸¥à¸)",A_="Put - สิà¸à¸à¸´à¸à¸²à¸¢à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸ (หาà¸à¸£à¸²à¸à¸²à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¸¥à¸à¸¥à¸ ราà¸à¸²à¸à¸à¸ DW à¸à¹à¸à¸°à¹à¸à¸´à¹à¸¡à¸à¸¶à¹à¸ à¹à¸à¸à¸²à¸à¸à¸¥à¸±à¸à¸à¸±à¸ หาà¸à¸£à¸²à¸à¸²à¸ªà¸´à¸à¸à¸£à¸±à¸à¸¢à¹à¸à¹à¸²à¸à¸à¸´à¸à¹à¸à¸´à¹à¸¡à¸à¸¶à¹à¸ ราà¸à¸²à¸à¸à¸ DW à¸à¹à¸à¸°à¸¥à¸à¸¥à¸)",E_={ASPS:l_,BLS:o_,CIMBS:c_,FSS:u_,KGI:d_,KTZ:h_,MBKET:f_,KS:p_,MACQ:m_,PTSEC:x_,RHBS:g_,SCBS:y_,TNS:v_,DW:b_,W:w_,Call:S_,Put:A_},C_="หุà¹à¸à¸à¸µà¹à¸¡à¸µà¸à¸£à¸£à¸¡à¸à¸²à¸£à¸«à¸£à¸·à¸à¸à¸¹à¹à¸à¸£à¸´à¸«à¸²à¸£à¸à¸à¸à¸à¸£à¸´à¸©à¸±à¸ à¹à¸à¸¢à¸à¸¹à¸à¸à¸¥à¹à¸²à¸§à¹à¸à¸© หรืà¸à¸¡à¸µà¸à¸§à¸²à¸¡à¸à¸´à¸à¸à¸²à¸¡à¸à¸à¸«à¸¡à¸²à¸¢à¸à¸²à¸à¸ªà¸³à¸à¸±à¸à¸à¸²à¸à¸à¸à¸°à¸à¸£à¸£à¸¡à¸à¸²à¸£à¸à¸³à¸à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¹à¸¥à¸°à¸à¸¥à¸²à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ (à¸.ล.à¸.) à¹à¸¥à¸°à¸à¸à¸´à¸à¸±à¸à¸´à¸à¸²à¸à¸à¸¢à¸¹à¹",cA=E_,k_={profileDescription:"",profileItems:[],profileItemsLoading:!1},wC=At("insight/loadProfileDescription",async({type:e,title:t})=>{if(cA[t])return cA[t];if(e==="accused")return C_;let r=t;return(e==="industry"||e==="sector")&&(r=r.replace(".","")),(await r_(r))?.desc??""}),Cg=At("insight/loadProfileItems",async({type:e,title:t})=>{let r=null;return e==="industry"?r=await vC(t):e==="sector"?r=await T1(t.replace(".","")):e==="index"?r=await bC(t):e==="broker"&&(r=await s_(t)),r?.data??[]}),SC=ln({name:"insight",initialState:k_,reducers:{resetProfileModal:e=>{e.profileDescription="",e.profileItems=[],e.profileItemsLoading=!1}},extraReducers:e=>{e.addCase(wC.fulfilled,(t,r)=>{t.profileDescription=r.payload}).addCase(Cg.pending,t=>{t.profileItemsLoading=!0}).addCase(Cg.fulfilled,(t,r)=>{t.profileItems=r.payload,t.profileItemsLoading=!1}).addCase(Cg.rejected,t=>{t.profileItemsLoading=!1})}}),{resetProfileModal:T_}=SC.actions,N_=e=>e.insight.profileDescription,j_=e=>e.insight.profileItems,M_=e=>e.insight.profileItemsLoading,R_=SC.reducer,uA={list:[],amount:0,marketValue:0,realized:0,unRealized:0,percentUnRealized:0,credit:null,loading:!1,error:null,orders:[],ordersLoading:!1},uc=At("portfolio/loadPortfolio",async(e,{getState:t,dispatch:r})=>{const n=t(),l=n.auth.broker;if(!l||l==="stockradars")return null;const c=vc[l];if(!c)return null;const f=new c,x=n.auth.selectedAccount;if(!x)return null;const y=await f.portfolio(x);if(!y?.length)return{list:[],amount:0,marketValue:0,realized:0,unRealized:0,percentUnRealized:0};const b=y.map(D=>
27D.symbol).filter(Boolean);b.length>0&&await r(Pu(b)).unwrap();const C=t().securities.securities;let R=0,O=0,M=0,P=0;const _=y.map(D=>{const F=C[D.symbol]?.price??0,J=D.averagePrice,te=D.sellable,le=te*J,se=te*F,L=(F-J)*te;let W=0;return J!==0&&te!==0&&(W=L/le*100,isFinite(W)||(W=0)),R+=le,O+=se,M+=L,P+=D.realized,{...D,percentUnRealized:W,totalMarketValue:se,unRealized:J!==0&&te!==0?L:0}}),$=R!==0?(O-R)/R*100:0;return{list:_,amount:R,marketValue:O,realized:P,unRealized:M,percentUnRealized:isFinite($)?$:0}}),xc=At("portfolio/loadCredit",async(e,{getState:t})=>{const r=t(),n=r.auth.broker;if(!n||n==="stockradars")return null;const l=vc[n];if(!l)return null;const c=new l,f=r.auth.selectedAccount;return f?await c.credit(f):null}),dc=At("portfolio/loadOrders",async(e,{getState:t})=>{const r=t(),n=r.auth.broker;if(!n||n==="stockradars")return[];const l=vc[n];if(!l)return[];const c=new l,f=r.auth.selectedAccount;return f?await c.orders(f):[]}),O_=At("portfolio/sendOrder",async(e,{getState:t,dispatch:r})=>{const l=t().auth.broker;if(!l||l==="stockradars")throw new Error("No broker");const c=vc[l];if(!c)throw new Error("Unknown broker");const x=await new c().sendOrder(e);return x.Result&&(r(dc()),r(uc()),r(xc())),x}),AC=At("portfolio/cancelOrder",async(e,{getState:t,dispatch:r})=>{const l=t().auth.broker;if(!l||l==="stockradars")throw new Error("No broker");const c=vc[l];if(!c)throw new Error("Unknown broker");const x=await new c().cancelOrder(e);return x.Result&&r(dc()),x}),EC=ln({name:"portfolio",initialState:uA,reducers:{calculatePortfolio:(e,t)=>{const r=t.payload;let n=0,l=0,c=0,f=0;for(const x of e.list){const b=r[x.symbol]?.price??0,S=x.averagePrice,C=x.sellable,R=C*S,O=C*b,M=(b-S)*C;x.totalMarketValue=O,S!==0&&C!==0?(x.unRealized=M,x.percentUnRealized=M/R*100,isFinite(x.percentUnRealized)||(x.percentUnRealized=0)):(x.unRealized=0,x.percentUnRealized=0),n+=R,l+=O,c+=M,f+=x.realized}e.amount=n,e.marketValue=l,e.unRealized=c,e.realized=f,e.percentUnRealized=n!==0?(l-n)/n*100:0,isFinite(e.percentUnRealized)||(e.percentUnRealized=0)},clearPortfolio:()=>uA},extraReducers:e=>{e.addCase(uc.pending,t=>{t.loading=!0,t.error=null,t.list=[],t.amount=0,t.marketValue=0,t.realized=0,t.unRealized=0,t.percentUnRealized=0}).addCase(uc.fulfilled,(t,r)=>{t.loading=!1,t.list=r.payload?.list??[],t.amount=r.payload?.amount??0,t.marketValue=r.payload?.marketValue??0,t.realized=r.payload?.realized??0,t.unRealized=r.payload?.unRealized??0,t.percentUnRealized=r.payload?.percentUnRealized??0}).addCase(uc.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message||"Failed to load portfolio"}).addCase(xc.pending,t=>{t.credit=null}).addCase(xc.fulfilled,(t,r)=>{t.credit=r.payload??null}).addCase(dc.pending,t=>{t.ordersLoading=!0,t.orders=[]}).addCase(dc.fulfilled,(t,r)=>{t.ordersLoading=!1,t.orders=r.payload||[]}).addCase(dc.rejected,t=>{t.ordersLoading=!1})}}),Oy=e=>e.portfolio.list,N1=e=>({amount:e.portfolio.amount,marketValue:e.portfolio.marketValue,realized:e.portfolio.realized,unRealized:e.portfolio.unRealized,percentUnRealized:e.portfolio.percentUnRealized}),B_=e=>e.portfolio.credit,By=e=>e.portfolio.loading,CC=e=>e.portfolio.orders,__=e=>e.portfolio.ordersLoading,{calculatePortfolio:kC,clearPortfolio:Iz}=EC.actions,D_=EC.reducer,j1=pt.NEXT_API,L_=pt.DATA_STORAGE;async function I_(e,t,r,n){if(!e)return null;try{return await Rt.get(`${j1}/timeline/search?symbol=${e}&type=${r}&keyword=${t}&startDate=&page=${n}&size=50`,{baseURL:""})??null}catch(l){return console.error("getNewsTimeline error:",l),null}}async function P_(e){if(!e)return null;try{return await Rt.get(`${j1}/timeline/upcoming/${e}`,{baseURL:""})??null}catch(t){return console.error("getUpcomingEvent error:",t),null}}async function F_(e){if(!e)return null;try{return await Rt.get(`${L_}/radars-data/${e}.json`,{baseURL:"",transformRequest:[(r,n)=>(delete n.authorization,delete n.app,delete n.state,delete n["user-id"],r)]})??null}catch(t){return console.error("getInfoTimeline error:",t),null}}async function z_(){try{return await Rt.get(`${j1}/timeline/filter`,{baseURL:""})??null}catch(e){return console.error("getFiltersList error:",e),null}}const U_={feed:[],upcoming:[],filterOptions:[],subfeed:null,loading:!1,loaded:!1}
27,kg=At("timeline/loadTimeline",async({symbol:e,filters:t,page:r},{getState:n})=>{const c=n().timeline.filterOptions,f=t.length===0||t.length===c.length;let x="",y="";if(!f){const O=c.filter(_=>t.includes(_.value)),M=[],P=[];for(const _ of O)_.filterType&&P.push(_.filterType),_.keywords.length>0&&M.push(..._.keywords);x=[...new Set(M)].join(","),y=[...new Set(P)].join(",")}const[b,S]=await Promise.all([I_(e,x,y,r),f?P_(e):Promise.resolve(null)]),C=b??[],R=S?.data?.length?(S?.data).filter(O=>Pr(O.D_effect)>Pr()).reverse():[];return{feed:C,upcoming:R}}),TC=At("timeline/loadFiltersList",async()=>{const e=await z_();return e?.length?e.filter(t=>(t.title||"").toLowerCase()!=="all").map(t=>({label:t.title,value:t.keyword?.length===1?t.keyword[0]:t.type||"all",imgUrl:t.imgUrl??"",keywords:t.keyword??[],filterType:t.type??""})):[]}),NC=At("timeline/loadOnRadarsInfo",async e=>{const t=await F_(e);return t?{id:t.id,name:e,desc:t.desc}:null}),jC=ln({name:"timeline",initialState:U_,reducers:{clearSubfeed:e=>{e.subfeed=null},resetTimeline:e=>{e.feed=[],e.upcoming=[],e.loaded=!1}},extraReducers:e=>{e.addCase(kg.pending,t=>{t.loading=!0,t.feed=[],t.upcoming=[]}).addCase(kg.fulfilled,(t,r)=>{t.feed=r.payload.feed,t.upcoming=r.payload.upcoming,t.loading=!1,t.loaded=!0}).addCase(kg.rejected,t=>{t.loading=!1,t.loaded=!0}).addCase(TC.fulfilled,(t,r)=>{t.filterOptions=r.payload}).addCase(NC.fulfilled,(t,r)=>{t.subfeed=r.payload})}}),$_=e=>e.timeline.feed,V_=e=>e.timeline.upcoming,H_=e=>e.timeline.filterOptions,Y_=e=>e.timeline.subfeed,G_=e=>e.timeline.loading,X_=e=>e.timeline.loaded,{clearSubfeed:q_,resetTimeline:W_}=jC.actions,Q_=jC.reducer,Lh=pt.NEXT_API;async function J_(){try{return(await Rt.get(`${Lh}/legacy/radars/list_by_app/`,{baseURL:""}))?.list??null}catch(e){return console.error("getRadars error:",e),null}}async function K_(e){try{return await Rt.get(`${Lh}/radars/symbol_in_radars_between/${e}`,{baseURL:""})}catch(t){return console.error("getRadarsResult error:",t),null}}async function Z_(e){try{return await Rt.get(`${Lh}/radars/info/get_symbol_in_radars/${e}`,{baseURL:"",headers:{"app-id":"com.siamsquared.stockradars"}})}catch(t){return console.error("getRadarsMetric error:",t),null}}async function eD(e){try{return await Rt.get(`${Lh}/legacy/radars/count_radars/${e}`,{baseURL:"",headers:{"app-id":"com.siamsquared.stockradars"}})}catch(t){console.error("countRadars error:",t)}}async function tD(e){try{return await Rt.get(`${Lh}/legacy/radars/like/${e}`,{baseURL:"",headers:{"app-id":"com.siamsquared.stockradars"}})}catch(t){return console.error("likeRadars error:",t),null}}async function rD(e){try{return await Rt.post(`${Lh}/legacy/radars/follow/${e}`,{baseURL:""})}catch(t){return console.error("followRadars error:",t),null}}const sD={groups:[],loading:!1,error:null,result:null,resultLoading:!1,count:null,countLoading:!1,like:null,likeLoading:!1,follow:null,followLoading:!1},Jv=At("radars/countRadars",async e=>await eD(e)??null),Kv=At("radars/likeRadars",async e=>await tD(e)??null),Zv=At("radars/followRadars",async e=>await rD(e)??null),eb=At("radars/loadRadarsResult",async e=>await K_(e)??null),Bp=At("radars/loadRadars",async()=>{const e=await J_();if(!e||!Array.isArray(e))return[];if(e[0]?.radars)return e;const t={};for(const r of e){const n=r.N_group??r.group??"All Radars";t[n]||(t[n]=[]),t[n].push(r)}return Object.entries(t).map(([r,n])=>({name:r,radars:n}))}),nD=ln({name:"radars",initialState:sD,reducers:{},extraReducers:e=>{e.addCase(Bp.pending,t=>{t.loading=!0,t.error=null}).addCase(Bp.fulfilled,(t,r)=>{t.loading=!1,t.groups=r.payload}).addCase(Bp.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message??"Failed to load radars"}).addCase(eb.pending,t=>{t.resultLoading=!0}).addCase(eb.fulfilled,(t,r)=>{t.resultLoading=!1,t.result=r.payload}).addCase(eb.rejected,t=>{t.resultLoading=!1}).addCase(Jv.pending,t=>{t.countLoading=!0}).addCase(Jv.fulfilled,(t,r)=>{t.countLoading=!1,t.count=r.payload}).addCase(Jv.rejected,t=>{t.countLoading=!1}).addCase(Kv.pending,t=>{t.likeLoading=!0}).addCase(Kv.fulfilled,(t,r)=>{t.likeLoading=!1,t.like=r.payload}).addCase(Kv.rejected,t=>{t.likeLoading=!1}).addCase(Zv.pending,t=>{t.followLoading=!0}).addCase(Zv.fulfilled,(t,r)=>{t.followLoading=!1,t.follow=r.payload}).addCase(Zv.rejected,t=>{t.followLoading=!1})}}),MC=e=>e.radars.groups,iD=e=>e.radars.loading,aD=nD.reducer,RC=pt.NEXT_API;async function lD(e){try{return await Rt.get(`${RC}/shareholder/profile/get_shareholder?id=${e}`,{baseURL:""})}catch(t){return console.error("getShareholder error:",t),null}}async function oD(e){try{return await Rt.get(`${RC}/shareholder/profile/get_surname?surname=${encodeURIComponent(e)}`,{baseURL:""})}catch(t){return console.error("getSurname error:",t),null}}const cD={profile:null,profileLoading:!1},Tg=At("shareholder/fetchShareholder",async e=>await lD(e)),Ng=At("shareholder/fetchSurname",async e=>await oD(e)),OC=ln({name:"shareholder",initialState:cD,reducers:{clearProfile:e=>{e.profile=null}},extraReducers:e=>{e.addCase(Tg.pending,t=>{t.profileLoading=!0}).addCase(Tg.fulfilled,(t,r)=>{t.profile=r.payload,t.profileLoading=!1}).addCase(Tg.rejected,t=>{t.profileLoading=!1}).addCase(Ng.pending,t=>{t.profileLoading=!0}).addCase(Ng.fulfilled,(t,r)=>{t.profile=r.payload,t.profileLoading=!1}).addCase(Ng.rejected,t=>{t.profileLoading=!1})}}
27),{clearProfile:Pz}=OC.actions,uD=OC.reducer,dA=pt.INBOX_NEXT_API;async function BC(e){const t=e?`${dA}/cursor/${encodeURIComponent(e)}/`:`${dA}/cursor/`;return await Rt.get(t,{baseURL:""})}const dD={items:[],loading:!1,loadingMore:!1,cursor:null,hasMore:!0},jg=At("inbox/fetchInbox",async()=>await BC()),Mg=At("inbox/fetchMoreInbox",async(e,{getState:t})=>{const n=t().inbox.cursor;return await BC(n)}),hD=ln({name:"inbox",initialState:dD,reducers:{},extraReducers:e=>{e.addCase(jg.pending,t=>{t.loading=!0}).addCase(jg.fulfilled,(t,r)=>{t.loading=!1,t.items=r.payload.data??[],t.cursor=r.payload.nextCursor??null,t.hasMore=!!r.payload.nextCursor}).addCase(jg.rejected,t=>{t.loading=!1}).addCase(Mg.pending,t=>{t.loadingMore=!0}).addCase(Mg.fulfilled,(t,r)=>{t.loadingMore=!1,t.items=[...t.items,...r.payload.data??[]],t.cursor=r.payload.nextCursor??null,t.hasMore=!!r.payload.nextCursor}).addCase(Mg.rejected,t=>{t.loadingMore=!1})}}),fD=e=>e.inbox,pD=hD.reducer,Us=Gj({reducer:{auth:yO,stocks:qO,realtime:eB,securities:YO,ticker:lB,marketOverview:MB,ranking:PB,bidOffer:QB,favorite:YB,search:e_,insight:R_,portfolio:D_,timeline:Q_,radars:aD,shareholder:uD,inbox:pD},middleware:e=>e({serializableCheck:!1})}),er=()=>hj(),Ye=mj,Yp="/webapp/assets/sr_loading-YOkn567Z.gif";const _C=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const mD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const xD=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const hA=e=>{const t=xD(e);return t.charAt(0).toUpperCase()+t.slice(1)};var gD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const yD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const vD=Y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:l="",children:c,iconNode:f,...x},y)=>Y.createElement("svg",{ref:y,...gD,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:_C("lucide",l),...!c&&!yD(x)&&{"aria-hidden":"true"},...x},[...f.map(([b,S])=>Y.createElement(b,S)),...Array.isArray(c)?c:[c]]));const Xn=(e,t)=>{const r=Y.forwardRef(({className:n,...l},c)=>Y.createElement(vD,{ref:c,iconNode:t,className:_C(`lucide-${mD(hA(e))}`,`lucide-${e}`,n),...l}));return r.displayName=hA(e),r};const bD=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],wD=Xn("bell",bD);const SD=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],AD=Xn("calendar",SD);const ED=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zl=Xn("chevron-down",ED);const CD=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],DC=Xn("chevron-left",CD);const kD=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],LC=Xn("chevron-right",kD);const TD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ND=Xn("circle-alert",TD);const jD=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],MD=Xn("eye",jD);const RD=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],OD=Xn("funnel",RD);const BD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],_D=Xn("info",BD);const DD=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],LD=Xn("lock",DD);const ID=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],PD=Xn("menu",ID);const FD=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],zD=Xn("search",FD);
27const UD=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],$D=Xn("triangle-alert",UD);const VD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],M1=Xn("x",VD),Ei=["stockradars","globlex","krungsri","yuanta","kstradeplus","mbket"],fA=["globlex","krungsri","yuanta","kstradeplus","mbket"],qa=["stockradars"],HD={radars:Ei,store:qa,"market-overview":Ei,"market-mover":Ei,favorite:Ei,bidoffer:Ei,ticker:Ei,trade:fA,portfolio:fA,topshareholder:Ei,top100:qa,ranking:qa,chart:Ei,"stock-compare":qa,builder:qa,alert:qa,account:Ei,"volume-analysis":Ei,"quote-default":Ei,"stock-may-you-know":qa,"shareholder-detail":qa,"free-float":["globlex","krungsri","yuanta","mbket"],"financial-brief":qa,"pbv-band":["stockradars","krungsri"],"pe-band":["stockradars","krungsri"],"season-change":qa,"earnings-call-summary":["stockradars","globlex","krungsri","yuanta","kstradeplus"],"insight-premium":Ei},IC=["store","market-overview","market-mover","favorite","bidoffer","chart","quote-default","financial-brief","stock-may-you-know","season-change","earnings-call-summary"],YD=["ticker"],PC=["top100","builder","alert"];function R1(e,t){return t?HD[e].includes(t):!1}function FC(e,t){return!(t!=="delay"||IC.includes(e)||PC.includes(e))}function zC(e,t){return t!=="delay"||IC.includes(e)?"active":PC.includes(e)?"download":YD.includes(e)?"disable":"lock"}const GD="/webapp/assets/logo_srnext_premium_w-DbpMnQhj.svg",XD="/webapp/assets/logo_stockradars_free_w-DM_CCGEv.png",qD="/webapp/assets/logo_mbket-DmmRAWdU.png";function WD(e,t){return e==="mbket"?qD:t==="delay"?XD:GD}const O1=({isOpen:e,onClose:t})=>{const r=yr();if(!e)return null;const n=()=>{t(),r("/store")};return a1.createPortal(o.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 animate-modal-backdrop",onClick:t,children:o.jsxs("div",{className:"bg-app-surface border border-app-border rounded-xl p-6 w-auto text-center space-y-4 animate-modal-content",onClick:l=>l.stopPropagation(),children:[o.jsx($D,{size:40,className:"text-yellow-400 mx-auto"}),o.jsx("p",{className:"text-white font-semibold text-lg",children:"StockRadars"}),o.jsx("p",{className:"text-app-secondary text-sm whitespace-nowrap",children:"à¸à¸²à¸£à¹à¸à¹à¸à¸²à¸à¸ªà¹à¸§à¸à¸à¸µà¹à¸ªà¸³à¸«à¸£à¸±à¸à¸¥à¸¹à¸à¸à¹à¸² PREMIUM à¸à¸£à¸±à¸ ð"}),o.jsxs("div",{className:"flex gap-3 pt-2",children:[o.jsx("button",{onClick:n,className:"flex-1 py-2 rounded-lg bg-primary text-white text-sm hover:bg-primary/90 transition-colors",children:"à¹à¸à¹à¸¡à¸à¸¹ Radars Store"}),o.jsx("button",{onClick:t,className:"flex-1 py-2 rounded-lg border border-app-border text-app-secondary text-sm hover:bg-app-hover transition-colors",children:"ลà¸à¸à¹à¸¥à¹à¸à¹à¸à¸à¸à¸£à¸µà¸à¸¹à¸à¹à¸à¸"})]})]})}),document.body)},QD=({isOpen:e,onClose:t,onConfirm:r})=>e?a1.createPortal(o.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 animate-modal-backdrop",onClick:t,children:o.jsxs("div",{className:"bg-app-surface border border-app-border rounded-xl p-8 w-80 text-center space-y-4 animate-modal-content",onClick:n=>n.stopPropagation(),children:[o.jsx(ND,{size:72,className:"text-yellow-400 mx-auto",strokeWidth:1.5}),o.jsx("p",{className:"text-white font-bold text-2xl",children:"Logout"}),o.jsx("p",{className:"text-app-secondary text-sm",children:"Please confirm to logout?"}),o.jsxs("div",{className:"flex gap-3 pt-2",children:[o.jsx("button",{onClick:r,className:"flex-1 py-2.5 rounded-lg bg-primary text-white text-sm hover:bg-primary/90 transition-colors",children:"Logout"}),o.jsx("button",{onClick:t,className:"flex-1 py-2.5 rounded-lg bg-app-hover text-white text-sm hover:bg-app-border transition-colors",children:"Cancel"})]})]})}),document.body):null,JD="/webapp/assets/radars-BBBnSZPJ.png",KD="/webapp/assets/[email protected]",pA="/webapp/assets/Chart-D8OlJ0zc.png",ZD="/webapp/assets/market_mover-DWh7tDva.png",e8="/webapp/assets/favorite-Dd_ZuVWG.png",t8="/webapp/assets/bid_offer-CB2blTAn.png",r8="/webapp/assets/ticker-Ctn2W5WV.png",s8="/webapp/assets/trade-BDzLLZzq.png",n8="/webapp/assets/portfolio-CP6HHRKh.png",i8="/webapp/assets/top_shareholder
27-B2bwnTzu.png",a8="/webapp/assets/top100-BzS7OG4H.png",l8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkEAAAJACAYAAACKWLIIAAAACXBIWXMAACxKAAAsSgF3enRNAAALoklEQVR4nO3c0W1UVxhG0d8R7ykBdwAd4HRAOqCDkAoCHTgdkApiKgA6MBVk0gFUMHkwiCg2wlI8nOvZa0nn/ZPufdg6VzMn+/1+AABqflg9AABgBREEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAA/uvFzOxmZu8cxbmYmcfDNSf7/X71BgC243xmflk9gjv3ca5CaLd4x6aIIAA+O52Zv1aP4GD+mJlnq0dsic9hAHzmk8lxO109YGtEEACfiSBSRBAAkCSCAIAkEQQAJIkgAG7r5cycOJs9P3390XETEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIerB6AHCj05l5PjOPF+/gblzMzKuZ+bB4B/AvIgi25/HMvJ2ZHxfv4O48mZlnM3M2Qgg2w+cw2J6LEUDH6NHMnK8eAXwhgmBbzmbm4eoRHMzT1QOAL0QQwPfjhg82RAQBAEkiCABIEkEAQJKfyMP98n6u/j+I7XqzegBwOyII7pcPc/UfQgD8Tz6HAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiaCvezozlzOzd47ivJ2ZswGAT0TQzZ7OzJ8z82j1EO7Mk5l5M0IIgE9E0M3OVw/gYF6tHgDANoig605n5uHqERyMZwvAzIigm5yuHgAAHJ4IAgCSRBAAkCSCAICkB6sH3EPvxs+st26/egAA2+cmCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSHqwecA89mZn96hFkef9Y6bdPB46CmyAAIEkEAQBJIggASBJB1+1WDwBY5HL1APieRNB1u5n5e/UIDmbrz/ZyZj6uHsHBvF494BtE0HHbrR6wNSLoZs9XD+Bgtv5sP8zM+eoRHMTHmXmxesQ37Gbm99UjOIj78P59dyLoZhcz8/Ns/9aA23s/V8/0YvWQW3gxM7+O9++YvJuZs7kfNy3PZ+bleP+Oyeu5ev92a2dsz8l+7y9HAIAeN0EAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkkQQAJAkggCAJBEEACSJIAAgSQQBAEkiCABIEkEAQJIIAgCSRBAAkCSCAIAkEQQAJIkgACBJBAEASSIIAEgSQQBAkggCAJJEEACQJIIAgCQRBAAkiSAAIEkEAQBJIggASBJBAECSCAIAkv4Bu+4uIIR4ZCUAAAAASUVORK5CYII=",o8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASKADAAQAAAABAAAASAAAAACQMUbvAAAGpUlEQVR4Ae2be4hVVRSHHR9lamWllpFSZtML6SEpNVkWRFFghWVoRlT0ABUKKuif+isiyoiIwJReVFRWkGCYvQjBAhWkBwYS1vioTE3JUcfX7ftus/U6c2fOPveeme51zoLPs+ecvddZ67f3Po99rn365JYrkCuQK5ArkCuQK5Ar0DsVaKjHtAuFwjHEPRpOhv6ROeyl3jb4taGh4WBkm/qqhjB94UH4AbbDfoi1fVTcBivhjtjMY9WP9ddt9UiqL85fgLvgfVgOLRA7CwrUHQqTYT7+RjGSnqd8dBgJ3QK74epqM8LHTGiBy5J8RamPowE4ug6aYDjEzmF7fQd8C0vpsZ1sUxvnN87FsA8fN6d20K4B/vqxayUsx9+sdoeP+DNxiuHsbFosgAmwGWLFoeohe4jSL/i6n4BWHNobXxhE1Qvho/gmndckhgPEspEal3de678jXQqEkxOo9h7shithHaQ15/4IeBo+xmcTATandGKPe+dyRGZl+jo2yVmXAtF4OjTCuAqSKj33DoS5hx0/wRx4rPRgZFmhs7ZEn0k9cisRrapSnGJS+GihsASuR6zEnis2qoF/kgQ6gxhbM4xzF76cbkeNQA7BqDtdpIj6ShzWkb56pFrSCOqRIGr5JLlACb2TC5QLlKBAwuF8BOUCJSiQcLieRlDWjwhRjzD1IpAPq1tgYEKHpznsCkVzUoO6EIjXFAX6Cq7lNcWX1qoMH8NxcDF8muQoSaAsn6JDLJX6fBEHrgi+SoKjYQD0T4ltzsPHm+CIfBe6tKS3eRe6s3w10Jc+U68pMYrWkdw02ro29T38CfpKY74DjoS1MA2fW5MaJwnkqtulBIavhiyEGoO/n8GX1tRGDN8QywQaToFJ4FeNNHE5ar6AxfiqKAbaHjaCmQR74PbDeysr4eMKcB34zso8/D+tuhxBqLyMhOYS2htsJ7J1aDs99oHDs6upMoLjwf9YyrNhIXwAdWNRF0zEuZuMHoVzweVPhUm6PjnfvQkcgGZ4BV5C9P1se9zIwVjsMO+CrnF7JzsFhsEGWEFsHaZrlEA07sMJdDwKXKfWUVLbUMe53szJXdfO1IjJGHyeEeMzaRMOybs9FRzNXpwtuwhoXduKcX4Gt5XrvKQkadfzRuKlSZ9EBKGnTTCUT6Ns0qeD+0+EkE9I3NH6Vwne+fzbrXjRXg+/IU4L2w4WHHY4kPUOknZ4h54eQtnkTNLeFXvbvx0Bbr1Dua+9Ob1N8g/wM9SmNkzW62LYetykvRT4Pc2pntqqEoikndcOVxP3NSAkbWL2qona427dpxAKoFjh3A5xk/4HTEpKkzbhkLSC/A0h6W6/noUgOeeRRvJejH1yDT1qwmEu27uKYdJinSFgsiFhisUFf4fyRvgdLJukWxMNiSuKd8Yi9LY+asLKCtQ2HV4jwulQmrRlh2pI0sRNzuQd3hLmvOWdYC/vraWkiSfaOhPI/TfBGFAMk3W7Dex5e3p/pfOatrmlVYBROwjmwVvg1M6tVAFEeQ40fxQ1r/RYry8jyBSVwR6BB4qlQsHrX26IMQo2wVJwvaYBFoI/l/PVpvcaArjg9QlsgbFBCcojYT18DceF/b1uS/IPg9ZhOrHvxuKRQuHJXieMCZP8RNgLCzoTgGNeuP012DWd1Tkq95PwUFgNa8Cn8rLGscHwHawDn+J7h5Hsy+DvlpuSMqbOJeBK5DtQ9sE2yUddHSfJqaA9ERs4dWcVWxQK98W2qct6JHkWbIbPwRXHKKNuP/AHoDthXFSjeqtEYj7jLAGfb85JGz9tfF7aAMthcNr2NV+fpB4HbWalwdI2PHE/U6mPmmxHYk3QCq9DVRda2s+Fg3BDTSabNigSGQY/grd0F9aqMnwMAf/HTjO4Hl3fRhL+zxrf0K/KKhN8jYdd8CG48lmfRvAzQMv8dQGfc4qeC4XZdakOwTfCVvgSom/pscni01v/IvAhcnxsu5qoR8ADQWG8pTd2V1D4PhM2wio4vrvOk7lfgn0KtHszd97OIefwP9pp/n6o9o1AJ4O39Pk9FS3neha89U/N+pxVPZOUC4Ygl7Hf14EZ4PevcA63oUyxg4XPS+FAV/Xb13WR/23YDhfwteVgcFLt1i+cmRnimNQauAgWgV9eg+2hsBvKieQ+PzyW3rJb2+qz6WB+zR1UslfB/DK7GixnZuWCrco5Ihn8+WACIVjP09JGuXO6z1Fgh9nGvxXTD4/lzLti+JWJx61v3bWMHjsit1yBXIFcgVyBXIFcgVyBJAX+BcuJ2JSFyDU8AAAAAElFTkSuQmCC",c8="/webapp/assets/[email protected]",u8="/webapp/assets/[email protected]",UC="/webapp/assets/promotion-B1RojSYO.png",d8="/webapp/assets/school-DXITe9JC.png",h8="/webapp/assets/RadarsPoint-CLf1GVCv.png",f8="/webapp/assets/logout-B0Uu_NU3.png",p8=[{image:JD,label:"Radars",path:"/radars",feature:"radars"},{image:KD,label:"Radars Store",path:"/store",feature:"store"},{image:pA,label:"Market Overview",path:"/market-overview",feature:"market-overview"},{image:ZD,label:"Market Mover",path:"/market-mover",feature:"market-mover"},{image:e8,label:"Favorite",path:"/favorite",feature:"favorite"},{image:t8,label:"Bid / Offer",path:"/bidoffer",feature:"bidoffer"},{image:r8,label:"Ticker",path:"/ticker",feature:"ticker"},{image:s8,label:"Trade",path:"/trade",feature:"trade"},{image:n8,label:"Portfolio",path:"/portfolio",feature:"portfolio"},{image:i8,label:"Top Shareholder",path:"/topshareholder",feature:"topshareholder"},{image:a8,label:"Top 100",path:"/top100",feature:"top100"},{image:l8,label:"Ranking",path:"/ranking",feature:"ranking"},{image:pA,label:"Chart",path:"/chart",feature:"chart"},{image:o8,label:"Stock Compare",path:"/stock-compare",feature:"stock-compare"},{image:c8,label:"Radars Builder",path:"/builder",feature:"builder"},{image:u8,label:"Alert",path:"/alert",feature:"alert"}],m8=[{image:h8,label:"Radars Point",path:"https://stockradars.co/openapp/radarspoint",external:!0,visibleForBrokers:["stockradars"]},{image:UC,label:"Promotion",path:"/promotion",visibleForBrokers:["stockradars"]},{image:d8,label:"Radars School",path:"https://stockradars.co/radars-sch
27ool/",external:!0}],mA=({onClose:e})=>{const t=Sn(),r=er(),n=Ye(O=>O.auth.broker),l=Ye(O=>O.auth.userType),c=Ye(O=>O.auth.userTypeLoaded),f=WD(n,l),[x,y]=Y.useState(!1),[b,S]=Y.useState(!1),C=()=>{r(xO())},R=O=>{if(O.hiddenForBrokers?.includes(n)||O.visibleForBrokers&&!O.visibleForBrokers.includes(n)||O.feature&&!R1(O.feature,n))return null;const M=O.feature?zC(O.feature,l):"active";if(M==="disable")return null;const P=M==="lock",_=!P&&t.pathname===O.path,$=`flex items-center gap-3 px-4 py-2.5 rounded-lg mx-2 text-sm transition-colors ${P?"text-white cursor-pointer hover:bg-app-hover":_?"bg-primary text-white":"text-white hover:bg-app-hover"}`;return P?o.jsxs("div",{className:$,onClick:()=>y(!0),children:[o.jsx("img",{src:O.image,width:20,height:20,alt:""}),o.jsx("span",{children:O.label})]},O.path):O.external?o.jsxs("a",{href:O.path,target:"_blank",rel:"noopener noreferrer",className:$,children:[o.jsx("img",{src:O.image,width:20,height:20,alt:""}),o.jsx("span",{children:O.label})]},O.path):o.jsxs(i1,{to:O.path,className:$,onClick:e,children:[o.jsx("img",{src:O.image,width:20,height:20,alt:""}),o.jsx("span",{children:O.label})]},O.path)};return o.jsxs(o.Fragment,{children:[o.jsx(O1,{isOpen:x,onClose:()=>y(!1)}),o.jsx(QD,{isOpen:b,onClose:()=>S(!1),onConfirm:C}),o.jsxs("div",{className:"flex flex-col h-full",children:[o.jsxs("div",{className:"flex items-center justify-center px-4 h-16 border-b border-app-border shrink-0",children:[o.jsxs("div",{className:"relative flex",children:[c&&o.jsx("img",{className:"w-full max-h-[50px]",src:f,alt:"StockRadars"}),o.jsxs("div",{className:"absolute top-[-5px] right-0 text-app-muted text-[10px] text-end pr-3",children:["v",pc.VERSION]})]}),e&&o.jsx("button",{onClick:e,className:"text-app-secondary hover:text-white lg:hidden","aria-label":"Close menu",children:o.jsx(M1,{size:20})})]}),o.jsx("nav",{className:"flex-1 overflow-y-auto py-2 space-y-0.5 text-white",children:p8.map(R)}),o.jsxs("div",{className:"shrink-0 border-t border-app-border py-2 space-y-0.5 pb-[env(safe-area-inset-bottom)]",children:[m8.map(R),o.jsxs("button",{onClick:()=>S(!0),className:"flex items-center gap-3 px-4 py-2.5 rounded-lg mx-2 text-sm text-white hover:bg-app-hover transition-colors w-[calc(100%-16px)]",children:[o.jsx("img",{src:f8,width:20,height:20,alt:""}),o.jsx("span",{children:"Logout"})]})]})]})]})},Mh="/webapp/assets/logo_stockradars-BVXnHid6.png";var Rg={exports:{}},x8=Rg.exports,xA;function g8(){return xA||(xA=1,(function(e,t){(function(r,n){e.exports=n($2())})(x8,(function(r){function n(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}var l=n(r),c={name:"th",weekdays:"à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹".split("_"),weekdaysShort:"à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ª_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹".split("_"),weekdaysMin:"à¸à¸²._à¸._à¸._à¸._à¸à¸¤._ศ._ส.".split("_"),months:"มà¸à¸£à¸²à¸à¸¡_à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹_มีà¸à¸²à¸à¸¡_à¹à¸¡à¸©à¸²à¸¢à¸_à¸à¸¤à¸©à¸ าà¸à¸¡_มิà¸à¸¸à¸à¸²à¸¢à¸_à¸à¸£à¸à¸à¸²à¸à¸¡_สิà¸à¸«à¸²à¸à¸¡_à¸à¸±à¸à¸¢à¸²à¸¢à¸_à¸à¸¸à¸¥à¸²à¸à¸¡_à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸_à¸à¸±à¸à¸§à¸²à¸à¸¡".split("_"),monthsShort:"ม.à¸._à¸.à¸._มี.à¸._à¹à¸¡.ย._à¸.à¸._มิ.ย._à¸.à¸._ส.à¸._à¸.ย._à¸.à¸._à¸.ย._à¸.à¸.".split("_"),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:"1 à¸à¸²à¸à¸µ",mm:"%d à¸à¸²à¸à¸µ",h:"1 à¸à¸±à¹à¸§à¹à¸¡à¸",hh:"%d à¸à¸±à¹à¸§à¹à¸¡à¸",d:"1 วัà¸",dd:"%d วัà¸",M:"1 à¹à¸à¸·à¸à¸",MM:"%d à¹à¸à¸·à¸à¸",y:"1 à¸à¸µ",yy:"%d à¸à¸µ"},ordinal:function(f){return f+"."}};return l.default.locale(c,null,!0),c}))})(Rg)),Rg.exports}g8();var Og={exports:{}},y8=Og.exports,gA;function v8(){return gA||(gA=1,(function(e,t){(function(r,n){e.exports=n()})(y8,(function(){return function(r,n,l){r=r||{};var c=n.prototype,f={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function x(b,S,C,R){return c.fromToBase(b,S,C,R)}l.en.relativeTime=f,c.fromToBase=function(b,S,C,R,O){for(var M,P,_,$=C.$locale().relativeTime||f,D=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],F=D.length,J=0;J<F;J+=1){var te=D[J];te.d&&(M=R?l(b).diff(C,te.d,!0):C.diff(b,te.d,!0));var le=(r.rounding||Math.round)(Math.abs(M));if(_=M>0,le<=te.r||!te.r){le<=1&&J>0&&(te=D[J-1]);var se=$[te.l];O&&(le=O(""+le)),P=typeof se=="string"?se.replace("%d",le):se(le,S,te.l,_);break}}if(S)return P;var L=_?$.future:$.past;return typeof L=="function"?L(P):L.replace("%s",P)},c.to=function(b,S){return x(b,S,this,!0)},c.from=function(b,S){return x(b,S,this)};var y=function(b){return b.$u?l.utc():l()};c.toNow=function(b){return this.to(y(this),b)},c.fromNow=function(b){return this.from(y(this),b)}}}))})(Og)),Og.exports}var b8=v8();const w8=gc(b8);var Bg={exports:{}},S8=Bg.exports,yA;function A8(){return yA||(yA=1,(function(e,t){(function(r,n){e.exports=n()})(S8,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d/,c=/\d\d/,f=/\d\d?/,x=/\d*[^-_:/,()\s\d]+/,y={},b=function(_){return(_=+_)+(_>68?1900:2e3)},S=function(_){return function($){this[_]=+$}},C=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=(function($){if(!$||$==="Z")return 0;var D=$.match(/([+-]|\d\d)/g),F=60*D[1]+(+D[2]||0);return F===0?0:D[0]==="+"?-F:F})(_)}],R=function(_){var $=y[_];return $&&($.indexOf?$:$.s.concat($.f))},O=function(_,$){var D,F=y.meridiem;if(F){for(var J=1;J<=24;J+=1)if(_.indexOf(F(J,0,$))>-1){D=J>12;break}}else D=_===($?"pm":"PM");return D},M={A:[x,function(_){this.afternoon=O(_,!1)}],a:[x,function(_){this.afternoon=O(_,!0)}],Q:[l,function(_){this.month=3*(_-1)+1}],S:[l,function(_){this.milliseconds=100*+_}],SS:[c,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[f,S("seconds")],ss:[f,S("seconds")],m:[f,S("minutes")],mm:[f,S("minutes")],H:[f,S("hours")],h:[f,S("hours")],HH:[f,S("hours")],hh:[f,S("hours")],D:[f,S("day")],DD:[c,S("day")],Do:[x,function(_){var $=y.ordinal,D=_.match(/\d+/);if(this.day=D[0],$)for(var F=1;F<=31;F+=1)$(F).replace(/\[|\]/g,"")===_&&(this.day=F)}],w:[f,S("week")],ww:[c,S("week")],M:[f,S("month")],MM:[c,S("month")],MM
27M:[x,function(_){var $=R("months"),D=(R("monthsShort")||$.map((function(F){return F.slice(0,3)}))).indexOf(_)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[x,function(_){var $=R("months").indexOf(_)+1;if($<1)throw new Error;this.month=$%12||$}],Y:[/[+-]?\d+/,S("year")],YY:[c,function(_){this.year=b(_)}],YYYY:[/\d{4}/,S("year")],Z:C,ZZ:C};function P(_){var $,D;$=_,D=y&&y.formats;for(var F=(_=$.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(z,H,Z){var ae=Z&&Z.toUpperCase();return H||D[Z]||r[Z]||D[ae].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(ue,ie,X){return ie||X.slice(1)}))}))).match(n),J=F.length,te=0;te<J;te+=1){var le=F[te],se=M[le],L=se&&se[0],W=se&&se[1];F[te]=W?{regex:L,parser:W}:le.replace(/^\[|\]$/g,"")}return function(z){for(var H={},Z=0,ae=0;Z<J;Z+=1){var ue=F[Z];if(typeof ue=="string")ae+=ue.length;else{var ie=ue.regex,X=ue.parser,oe=z.slice(ae),ne=ie.exec(oe)[0];X.call(H,ne),z=z.replace(ne,"")}}return(function(fe){var pe=fe.afternoon;if(pe!==void 0){var Q=fe.hours;pe?Q<12&&(fe.hours+=12):Q===12&&(fe.hours=0),delete fe.afternoon}})(H),H}}return function(_,$,D){D.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(b=_.parseTwoDigitYear);var F=$.prototype,J=F.parse;F.parse=function(te){var le=te.date,se=te.utc,L=te.args;this.$u=se;var W=L[1];if(typeof W=="string"){var z=L[2]===!0,H=L[3]===!0,Z=z||H,ae=L[2];H&&(ae=L[2]),y=this.$locale(),!z&&ae&&(y=D.Ls[ae]),this.$d=(function(oe,ne,fe,pe){try{if(["x","X"].indexOf(ne)>-1)return new Date((ne==="X"?1e3:1)*oe);var Q=P(ne)(oe),re=Q.year,ge=Q.month,ye=Q.day,Te=Q.hours,_e=Q.minutes,Qe=Q.seconds,Je=Q.milliseconds,it=Q.zone,gt=Q.week,bt=new Date,Xt=ye||(re||ge?1:bt.getDate()),Nt=re||bt.getFullYear(),xt=0;re&&!ge||(xt=ge>0?ge-1:bt.getMonth());var jt,Le=Te||0,Ke=_e||0,tt=Qe||0,Ze=Je||0;return it?new Date(Date.UTC(Nt,xt,Xt,Le,Ke,tt,Ze+60*it.offset*1e3)):fe?new Date(Date.UTC(Nt,xt,Xt,Le,Ke,tt,Ze)):(jt=new Date(Nt,xt,Xt,Le,Ke,tt,Ze),gt&&(jt=pe(jt).week(gt).toDate()),jt)}catch{return new Date("")}})(le,W,se,D),this.init(),ae&&ae!==!0&&(this.$L=this.locale(ae).$L),Z&&le!=this.format(W)&&(this.$d=new Date("")),y={}}else if(W instanceof Array)for(var ue=W.length,ie=1;ie<=ue;ie+=1){L[1]=W[ie-1];var X=D.apply(this,L);if(X.isValid()){this.$d=X.$d,this.$L=X.$L,this.init();break}ie===ue&&(this.$d=new Date(""))}else J.call(this,te)}}}))})(Bg)),Bg.exports}var E8=A8();const C8=gc(E8);Pr.extend(w8);Pr.extend(C8);const Mi="N/A",ga=e=>e!==Mi&&e!==""&&e!=="None"&&e!=null,k8=e=>{if(!ga(e))return Mi;const t=Pr(e).add(7,"hour"),r=Pr().diff(t,"day");return r<1?t.fromNow():r===1?`Yesterday at ${t.format("HH:mm")}`:r<=6?`${t.format("dddd")} at ${t.format("HH:mm")}`:T8(e)},T8=e=>ga(e)?`${Pr(e).format("MMMM D")} at ${Pr(e).format("HH:mm")}`:Mi,$C=e=>ga(e)?Pr(e).add(7,"hour").format("DD MMM YYYY"):Mi,VC=e=>ga(e)?Pr(e).add(7,"hour").format("DD MMM YYYY HH:mm"):Mi,zb=e=>{if(!ga(e))return Mi;const t=Pr(e).add(7,"hours");return`${t.format("MMM D, YYYY")} at ${t.format("HH:mm")}`},N8=e=>ga(e)?Pr(e).format("DD MMMM YYYY"):Mi,j8=e=>ga(String(e))?`${Pr.unix(Number(e)).format("MMMM D")} at ${Pr.unix(Number(e)).format("HH:mm")}`:Mi,Hl=e=>ga(e)?Pr(e).locale("th").add(7,"hour").add(543,"year").format("DD MMM YYYY"):Mi,Wa=e=>ga(e)?Pr(e).locale("th").add(543,"year").format("DD MMMM YYYY"):Mi,M8=e=>ga(e)?Pr(e).locale("th").add(7,"hour").add(543,"year").format("DD MMMM YYYY HH:mm"):Mi,R8=e=>ga(e)?Pr(e).locale("th").add(7,"hour").add(543,"year").format("DD MMM YYYY HH:mm"):Mi,O8={marketoverview:"/market-overview",marketmover:"/market-mover",radars:"/radars",store:"/store",favorite:"/favorite",bidoffer:"/bidoffer",ticker:"/ticker",trade:"/trade",portfolio:"/portfolio",orderstatus:"/order-status",topshareholder:"/topshareholder",top100:"/top100",ranking:"/ranking",chart:"/chart",stockcompare:"/stock-compare",builder:"/builder",alert:"/alert",promotion:"/promotion",realtime:"/realtime",insight:"/insight",timeline:"/timeline",account:"/account",profile:"/profile",radarspoint:"/radars-point",stockradarsplus:"/stockradars-plus"},B8=e=>{if(!e)return null;const t=e.toLowerCase().replace(/[-_\s]/g,"");return O8[t]??null},_8=({onClose:e})=>{const t=er(),r=yr(),{items:n,loading:l,loadingMore:c,hasMore:f}=Ye(fD),x=Y.useRef(null),y=S=>{if(S.action==="menu"){const C=B8(S.sub_action);C&&(r(C),e())}};Y.useEffect(()=>{t(jg())},[t]),Y.useEffect(()=>{const S=C=>
27{x.current&&!x.current.contains(C.target)&&e()};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[e]);const b=()=>{c||!f||t(Mg())};return o.jsxs("div",{ref:x,className:"absolute right-0 top-full mt-2 w-[380px] max-h-140 bg-app-bg border border-app-border rounded-xl shadow-2xl z-50 flex flex-col overflow-hidden",children:[o.jsx("div",{className:"px-4 py-3 border-b border-app-border shrink-0",children:o.jsx("h2",{className:"text-white font-semibold text-base",children:"Inbox"})}),o.jsxs("div",{className:"overflow-y-auto flex-1 min-h-0",children:[l?Array.from({length:5}).map((S,C)=>o.jsxs("div",{className:"flex items-start gap-3 px-4 py-3 border-b border-app-border animate-pulse",children:[o.jsx("div",{className:"w-10 h-10 rounded-full bg-app-surface shrink-0"}),o.jsxs("div",{className:"flex-1 space-y-2 py-1",children:[o.jsx("div",{className:"h-3 bg-app-surface rounded w-1/3"}),o.jsx("div",{className:"h-3 bg-app-surface rounded w-full"}),o.jsx("div",{className:"h-3 bg-app-surface rounded w-2/3"})]})]},C)):n.length===0?o.jsx("div",{className:"py-12 text-center text-app-muted text-sm",children:"à¹à¸¡à¹à¸¡à¸µà¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸«à¸¡à¹"}):n.map((S,C)=>o.jsxs("div",{onClick:()=>y(S),className:"flex items-start gap-3 px-4 py-3 border-b border-app-border hover:bg-app-surface cursor-pointer transition-colors",children:[o.jsx("img",{src:S.icon_url||S.image_url||Mh,onError:R=>{R.currentTarget.src=Mh},className:"w-10 h-10 rounded-full shrink-0 object-cover",alt:"inbox"}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o.jsx("span",{className:"text-white font-medium text-sm",children:S.title||"Inbox"}),o.jsx("span",{className:"text-app-muted text-xs shrink-0",children:j8(S.date)})]}),o.jsx("p",{className:"text-app-secondary text-sm mt-0.5 leading-snug",children:S.content})]})]},C)),!l&&f&&n.length>0&&o.jsx("div",{className:"px-4 py-3 border-t border-app-border",children:o.jsx("button",{onClick:b,disabled:c,className:"w-full py-2 text-sm text-white bg-app-surface hover:bg-app-border rounded-md transition-colors disabled:opacity-60 disabled:cursor-not-allowed",children:c?"Loading...":"Load more"})})]})]})},HC=e=>{const t=e.trim().split(" ");return t.length>=2?(t[0][0]+t[1][0]).toUpperCase():e.substring(0,2).toUpperCase()};function D8(e){return{error:"bg-red1",success:"bg-green1",info:"bg-primary"}[e]??"bg-primary"}function L8(e){return{error:"Error",success:"Success",info:"Information"}[e]??"Information"}const Kg=({isOpen:e,onClose:t,title:r,message:n,type:l="info"})=>(Y.useEffect(()=>{if(!e)return;const c=f=>{f.key==="Enter"&&t()};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[e,t]),e?o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop",onClick:t}),o.jsxs("div",{className:"relative bg-app-bg border border-app-border rounded-lg w-full max-w-sm mx-4 animate-modal-content",children:[o.jsx("div",{className:`px-4 py-3 border-b border-app-border ${D8(l)} rounded-t-lg`,children:o.jsx("p",{className:"font-medium text-white text-center",children:r??L8(l)})}),o.jsx("div",{className:"px-5 py-6 text-sm text-center text-white",children:n}),o.jsx("div",{className:"flex justify-end px-5 pb-5",children:o.jsx("button",{onClick:t,className:"px-6 py-2 rounded border border-app-border text-sm text-white hover:bg-app-hover transition-colors",children:"OK"})})]})]}):null),_p="https://stockradars-image.com",I8=Mh,P8=`${_p}/images/shareholder/default.jpg`,F8=`${_p}/images/icon_news.png`,z8=({onMenuToggle:e})=>{const t=er(),r=yr(),n=Sn(),l=Ye(se=>se.auth.user),c=He.getFullname()||l?.username||"SR",f=HC(c),x=Ye(se=>se.search.results),[y,b]=Y.useState(""),[S,C]=Y.useState(!1),[R,O]=Y.useState(!1),[M,P]=Y.useState(!1),_=Y.useRef(null),$=Y.useRef(!1),D=Y.useRef(null),F=Y.useRef(null),J=async se=>{C(!1);const L=await r0(se);if(L?.data?.[0]?.security_id==null&&L?.data?.[0]?.assetType===""){b(""),t(Tu()),P(!0);return}t(Gn(se)),t(Tu()),b(""),n.pathname!=="/chart"&&r(`/realtime/${encodeURIComponent(se.replace(".",""))}`)},te=()=>{const se=y.trim();se&&(_.current&&clearTimeout(_.current),$.current=!0,t(Tu()),J(se))},le=se=>{const L=se.target.value;
27if(b(L),_.current&&clearTimeout(_.current),!L.trim()){t(Tu()),C(!1);return}_.current=setTimeout(()=>{$.current=!1,t(Op(L.trim())).unwrap().then(W=>{$.current||C(W.length>0)}).catch(console.error)},.5*1e3)};return Y.useEffect(()=>{const se=L=>{D.current&&!D.current.contains(L.target)&&C(!1)};return document.addEventListener("mousedown",se),()=>document.removeEventListener("mousedown",se)},[]),o.jsxs(o.Fragment,{children:[o.jsx(Kg,{isOpen:M,onClose:()=>P(!1),type:"error",message:"Invalid Symbol."}),o.jsxs("header",{className:"fixed top-0 right-0 left-0 lg:left-[220px] h-16 bg-app-bg border-b border-app-border z-20 flex items-center px-4 gap-4",children:[o.jsx("button",{onClick:e,className:"lg:hidden text-app-secondary hover:text-white","aria-label":"Toggle menu",children:o.jsx(PD,{size:24})}),o.jsxs("div",{className:"flex-1 relative",ref:D,children:[o.jsx(zD,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-app-muted"}),o.jsx("input",{type:"text",value:y,onChange:le,onKeyDown:se=>se.key==="Enter"&&te(),onFocus:()=>x.length>0&&C(!0),placeholder:"symbol",className:"w-full bg-app-surface uppercase border border-app-border rounded-lg pl-9 pr-4 py-2 text-sm text-white placeholder-app-muted focus:outline-none focus:border-primary"}),S&&o.jsx("ul",{className:"absolute top-full left-0 right-0 mt-1 bg-app-surface border border-app-border rounded-lg overflow-hidden z-30 max-h-60 overflow-y-auto",children:x.map((se,L)=>{const W=se._source,z=se._type,H=W.N_name??"";return o.jsxs("li",{onMouseDown:()=>J(H),className:"flex items-center gap-3 px-4 py-2 cursor-pointer hover:bg-app-border text-sm",children:[(z==="stock"||z==="stock_uat")&&o.jsxs(o.Fragment,{children:[o.jsx("img",{src:`${_p}/images/company_logo/${H}.png`,onError:Z=>{Z.currentTarget.src=I8},width:40,height:40,className:"rounded-full shrink-0",alt:H}),o.jsx("span",{className:"text-white font-medium",children:H})]}),z==="holder2021"&&o.jsxs(o.Fragment,{children:[o.jsx("img",{src:`${_p}/images/shareholder/${W.I_PERSON_ID}.jpg`,onError:Z=>{Z.currentTarget.src=P8},width:40,height:40,className:"rounded-full border border-app-border shrink-0",alt:H}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-white font-medium",children:H}),W.N_BIO&&o.jsx("p",{className:"text-app-muted text-xs truncate",children:W.N_BIO})]})]}),z==="radars"&&o.jsxs(o.Fragment,{children:[o.jsx("img",{src:`${_p}/images/sub_radars/${W.I_radars_id}.png`,width:40,height:40,className:"rounded-full shrink-0",alt:H}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-white font-medium",children:H}),W.N_th_desc&&o.jsx("p",{className:"text-app-muted text-xs truncate",children:W.N_th_desc})]})]}),z!=="stock"&&z!=="stock_uat"&&z!=="holder2021"&&z!=="radars"&&o.jsxs(o.Fragment,{children:[o.jsx("img",{src:F8,width:40,height:40,className:"rounded-full shrink-0",alt:"news"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-white font-medium",children:H}),W.D_news&&o.jsx("p",{className:"text-app-muted text-xs",children:k8(W.D_news)})]})]})]},L)})})]}),o.jsxs("div",{ref:F,className:"relative",children:[o.jsx("button",{onClick:()=>O(se=>!se),className:"text-app-secondary hover:text-white","aria-label":"Notifications",children:o.jsx(wD,{size:20})}),R&&o.jsx(_8,{onClose:()=>O(!1)})]}),o.jsx("button",{onClick:()=>r("/profile"),className:"w-9 h-9 rounded-full bg-primary flex items-center justify-center text-white text-sm font-bold shrink-0 hover:opacity-80 transition-opacity","aria-label":"Profile",children:f})]})]})};var kp={exports:{}};var U8=kp.exports,vA;function $8(){return vA||(vA=1,(function(e,t){(function(r){var n=r.setTimeout,l=r.clearTimeout,c=r.XMLHttpRequest,f=r.XDomainRequest,x=r.ActiveXObject,y=r.EventSource,b=r.document,S=r.Promise,C=r.fetch,R=r.Response,O=r.TextDecoder,M=r.TextEncoder,P=r.AbortController;if(typeof window<"u"&&typeof b<"u"&&!("readyState"in b)&&b.body==null&&(b.readyState="loading",window.addEventListener("load",function(Le){b.readyState="complete"},!1)),c==null&&x!=null&&(c=function(){return new x("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(Le){function Ke(){}return Ke.prototype=Le,new Ke}),Date.now||(Date.now=function(){return new Date().getTime()}),P==null){var _=C;C=function(Le,Ke){var tt=Ke.signal;return _(Le,{headers:Ke.headers,credentials:Ke.credentials,cache:Ke.cache}).then(function(Ze){var dt=Ze.body.getReader();return tt._reader=dt,tt._aborted&&tt._reader.cancel(),{status:Ze.status,statusText:Ze.statusText,headers:Ze.headers,body:{getReader:function(){return dt}}}})},P=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function $(){this.bitsNeeded=0,this.codePoint=0}$.prototype.decode=function(Le){function Ke(ze,Ue,Me){if(Me===1)return ze>=128>>Ue&&ze<<Ue<=2047;if(Me===2)return ze>=2048>>Ue&&ze<<Ue<=55295||ze>=57344>>Ue&&ze<<Ue<=65535;if(Me===3)return ze>
27=65536>>Ue&&ze<<Ue<=1114111;throw new Error}function tt(ze,Ue){if(ze===6)return Ue>>6>15?3:Ue>31?2:1;if(ze===12)return Ue>15?3:2;if(ze===18)return 3;throw new Error}for(var Ze=65533,dt="",xe=this.bitsNeeded,Se=this.codePoint,he=0;he<Le.length;he+=1){var Ne=Le[he];xe!==0&&(Ne<128||Ne>191||!Ke(Se<<6|Ne&63,xe-6,tt(xe,Se)))&&(xe=0,Se=Ze,dt+=String.fromCharCode(Se)),xe===0?(Ne>=0&&Ne<=127?(xe=0,Se=Ne):Ne>=192&&Ne<=223?(xe=6,Se=Ne&31):Ne>=224&&Ne<=239?(xe=12,Se=Ne&15):Ne>=240&&Ne<=247?(xe=18,Se=Ne&7):(xe=0,Se=Ze),xe!==0&&!Ke(Se,xe,tt(xe,Se))&&(xe=0,Se=Ze)):(xe-=6,Se=Se<<6|Ne&63),xe===0&&(Se<=65535?dt+=String.fromCharCode(Se):(dt+=String.fromCharCode(55296+(Se-65535-1>>10)),dt+=String.fromCharCode(56320+(Se-65535-1&1023))))}return this.bitsNeeded=xe,this.codePoint=Se,dt};var D=function(){try{return new O().decode(new M().encode("test"),{stream:!0})==="test"}catch(Le){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+Le)}return!1};(O==null||M==null||!D())&&(O=$);var F=function(){};function J(Le){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=F,this.onload=F,this.onerror=F,this.onreadystatechange=F,this._contentType="",this._xhr=Le,this._sendTimeout=0,this._abort=F}J.prototype.open=function(Le,Ke){this._abort(!0);var tt=this,Ze=this._xhr,dt=1,xe=0;this._abort=function(Me){tt._sendTimeout!==0&&(l(tt._sendTimeout),tt._sendTimeout=0),(dt===1||dt===2||dt===3)&&(dt=4,Ze.onload=F,Ze.onerror=F,Ze.onabort=F,Ze.onprogress=F,Ze.onreadystatechange=F,Ze.abort(),xe!==0&&(l(xe),xe=0),Me||(tt.readyState=4,tt.onabort(null),tt.onreadystatechange())),dt=0};var Se=function(){if(dt===1){var Me=0,ot="",kt=void 0;if("contentType"in Ze)Me=200,ot="OK",kt=Ze.contentType;else try{Me=Ze.status,ot=Ze.statusText,kt=Ze.getResponseHeader("Content-Type")}catch{Me=0,ot="",kt=void 0}Me!==0&&(dt=2,tt.readyState=2,tt.status=Me,tt.statusText=ot,tt._contentType=kt,tt.onreadystatechange())}},he=function(){if(Se(),dt===2||dt===3){dt=3;var Me="";try{Me=Ze.responseText}catch{}tt.readyState=3,tt.responseText=Me,tt.onprogress()}},Ne=function(Me,ot){if((ot==null||ot.preventDefault==null)&&(ot={preventDefault:F}),he(),dt===1||dt===2||dt===3){if(dt=4,xe!==0&&(l(xe),xe=0),tt.readyState=4,Me==="load")tt.onload(ot);else if(Me==="error")tt.onerror(ot);else if(Me==="abort")tt.onabort(ot);else throw new TypeError;tt.onreadystatechange()}},ze=function(Me){Ze!=null&&(Ze.readyState===4?(!("onload"in Ze)||!("onerror"in Ze)||!("onabort"in Ze))&&Ne(Ze.responseText===""?"error":"load",Me):Ze.readyState===3?"onprogress"in Ze||he():Ze.readyState===2&&Se())},Ue=function(){xe=n(function(){Ue()},500),Ze.readyState===3&&he()};"onload"in Ze&&(Ze.onload=function(Me){Ne("load",Me)}),"onerror"in Ze&&(Ze.onerror=function(Me){Ne("error",Me)}),"onabort"in Ze&&(Ze.onabort=function(Me){Ne("abort",Me)}),"onprogress"in Ze&&(Ze.onprogress=he),"onreadystatechange"in Ze&&(Ze.onreadystatechange=function(Me){ze(Me)}),("contentType"in Ze||!("ontimeout"in c.prototype))&&(Ke+=(Ke.indexOf("?")===-1?"?":"&")+"padding=true"),Ze.open(Le,Ke,!0),"readyState"in Ze&&(xe=n(function(){Ue()},0))},J.prototype.abort=function(){this._abort(!1)},J.prototype.getResponseHeader=function(Le){return this._contentType},J.prototype.setRequestHeader=function(Le,Ke){var tt=this._xhr;"setRequestHeader"in tt&&tt.setRequestHeader(Le,Ke)},J.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},J.prototype.send=function(){if((!("ontimeout"in c.prototype)||!("sendAsBinary"in c.prototype)&&!("mozAnon"in c.prototype))&&b!=null&&b.readyState!=null&&b.readyState!=="complete"){var Le=this;Le._sendTimeout=n(function(){Le._sendTimeout=0,Le.send()},4);return}var Ke=this._xhr;"withCredentials"in Ke&&(Ke.withCredentials=this.withCredentials);try{Ke.send(void 0)}catch(tt){throw tt}};function te(Le){return Le.replace(/[A-Z]/g,function(Ke){return String.fromCharCode(Ke.charCodeAt(0)+32)})}function le(Le){for(var Ke=Object.create(null),tt=Le.split(`\r 28`),Ze=0;Ze<tt.length;Ze+=1){var dt=tt[Ze],xe=dt.split(": "),Se=xe.shift(),he=xe.join(": ");Ke[te(Se)]=he}this._map=Ke}le.prototype.get=function(Le){return this._map[te(Le)]},c!=null&&c.HEADERS_RECEIVED==null&&(c.HEADERS_RECEIVED=2);function se(){}se.prototype.open=function(Le,Ke,tt,Ze,dt,xe,Se){Le.open("GET",dt);var he=0;Le.onprogress=function(){var ze=Le.responseText,Ue=ze.slice(he);he+=Ue.length,tt(Ue)},Le.onerror=function(ze){ze.preventDefault(),Ze(new Error("NetworkError"))},Le.onload=function(){Ze(null)},Le.onabort=function(){Ze(null)},Le.onreadystatechange=function(){if(Le.readyState===c.HEADERS_RECEIVED){var ze=Le.status,Ue=Le.statusText,Me=Le.getResponseHeader("Content-Type"),ot=Le.getAllResponseHeaders();Ke(ze,Ue,Me,new le(ot))}},Le.withCredentials=xe;for(var Ne in Se)Object.prototype.hasOwnProperty.call(Se,Ne)&&Le.setRequestHeader(Ne,Se[Ne]);return Le.send(),Le};function L(Le){this._headers=Le}L.prototype.get=function(Le){return this._headers.get(Le)};function W(){}W.prototype.open=function(Le,Ke,tt,Ze,dt,xe,Se){var he=null,Ne=new P,ze=Ne.signal,Ue=new O;return C(dt,{headers:Se,credentials:xe?"include":"same-origin",signal:ze,cache:"no-store"}).then(function(Me){return he=Me.body.getReader(),Ke(Me.status,Me.statusText,Me.headers.get("Content-Type"),new L(Me.headers)),new S(function(ot,kt){var vr=function(){he.read().then(function(ir){if(ir.done)ot(void 0);else{var qt=Ue.decode(ir.value,{stream:!0});tt(qt),vr()}}).catch(function(ir){kt(ir)})};vr()})}).catch(function(Me){if(Me.name!=="AbortError")return Me}).then(function(Me){Ze(Me)}),{abort:function(){he?.cancel(),Ne.abort()}}};function z(){this._listeners=Object.create(null)}function H(Le){n(function(){throw Le},0)}z.prototype.dispatchEvent=function(Le){Le.target=this;var Ke=this._listeners[Le.type];if(Ke!=null)for(var tt=Ke.length,Ze=0;Ze<tt;Ze+=1){var dt=Ke[Ze];try{typeof dt.handleEvent=="function"?dt.handleEvent(Le):dt.call(this,Le)}catch(xe){H(xe)}}},z.prototype.addEventListener=function(Le,Ke){Le=String(Le);var tt=this._listeners,Ze=tt[Le];Ze==null&&(Ze=[],tt[Le]=Ze);for(var dt=!1,xe=0;xe<Ze.length;xe+=1)Ze[xe]===Ke&&(dt=!0);dt||Ze.push(Ke)},z.prototype.removeEventListener=function(Le,Ke){Le=String(Le);var tt=this._listeners,Ze=tt[Le];if(Ze!=null){for(var dt=[],xe=0;xe<Ze.length;xe+=1)Ze[xe]!==Ke&&dt.push(Ze[xe]);dt.length===0?delete tt[Le]:tt[Le]=dt}};function Z(Le){this.type=Le,this.target=void 0}function ae(Le,Ke){Z.call(this,Le),this.data=Ke.data,this.lastEventId=Ke.lastEventId}ae.prototype=Object.create(Z.prototype);function ue(Le,Ke){Z.call(this,Le),this.status=Ke.status,this.statusText=Ke.statusText,this.headers=Ke.headers}ue.prototype=Object.create(Z.prototype);function ie(Le,Ke){Z.call(this,Le),this.error=Ke.error}ie.prototype=Object.create(Z.prototype);var X=-1,oe=0,ne=1,fe=2,pe=-1,Q=0,re=1,ge=2,ye=3,Te=/^text\/event\-stream(;.*)?$/i,_e=1e3,Qe=18e6,Je=function(Le,Ke){var tt=Le==null?Ke:parseInt(Le,10);return tt!==tt&&(tt=Ke),it(tt)},it=function(Le){return Math.min(Math.max(Le,_e),Qe)},gt=function(Le,Ke,tt){try{typeof Ke=="function"&&Ke.call(Le,tt)}catch(Ze){H(Ze)}};function bt(Le,Ke){z.call(this),Ke=Ke||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,xt(this,Le,Ke)}function Xt(){return c!=null&&"withCredentials"in c.prototype||f==null?new c:new f}var Nt=C!=null&&R!=null&&"body"in R.prototype;function xt(Le,Ke,tt){Ke=String(Ke);var Ze=!!tt.withCredentials,dt=tt.lastEventIdQueryParameterName||"lastEventId",xe=it(1e3),Se=Je(tt.heartbeatTimeout,45e3),he="",Ne=xe,ze=!1,Ue=0,Me=tt.headers||{},ot=tt.Transport,kt=Nt&&ot==null?void 0:new J(ot!=null?new ot:Xt()),vr=ot!=null&&typeof ot!="string"?new ot:kt==null?new W:new se,ir=void 0,qt=0,qr=X,xr="",Fr="",Er="",qn="",gr=Q,hi=0,Ts=0,ya=function(Bt,Tr,us,Wr){if(qr===oe)if(Bt===200&&us!=null&&Te.test(us)){qr=ne,ze=Date.now(),Ne=xe,Le.readyState=ne;var ds=new ue("open",{status:Bt,statusText:Tr,headers:Wr});
28Le.dispatchEvent(ds),gt(Le,Le.onopen,ds)}else{var ar="";Bt!==200?(Tr&&(Tr=Tr.replace(/\s+/g," ")),ar="EventSource's response has a status "+Bt+" "+Tr+" that is not 200. Aborting the connection."):ar="EventSource's response has a Content-Type specifying an unsupported type: "+(us==null?"-":us.replace(/\s+/g," "))+". Aborting the connection.",Wn();var ds=new ue("error",{status:Bt,statusText:Tr,headers:Wr});Le.dispatchEvent(ds),gt(Le,Le.onerror,ds),console.error(ar)}},Ri=function(Bt){if(qr===ne){for(var Tr=-1,us=0;us<Bt.length;us+=1){var Wr=Bt.charCodeAt(us);(Wr===10||Wr===13)&&(Tr=us)}var ds=(Tr!==-1?qn:"")+Bt.slice(0,Tr+1);qn=(Tr===-1?qn:"")+Bt.slice(Tr+1),Bt!==""&&(ze=Date.now(),Ue+=Bt.length);for(var ar=0;ar<ds.length;ar+=1){var Wr=ds.charCodeAt(ar);if(gr===pe&&Wr===10)gr=Q;else if(gr===pe&&(gr=Q),Wr===13||Wr===10){if(gr!==Q){gr===re&&(Ts=ar+1);var br=ds.slice(hi,Ts-1),tr=ds.slice(Ts+(Ts<ar&&ds.charCodeAt(Ts)===32?1:0),ar);br==="data"?(xr+=` 29`,xr+=tr):br==="id"?Fr=tr:br==="event"?Er=tr:br==="retry"?(xe=Je(tr,xe),Ne=xe):br==="heartbeatTimeout"&&(Se=Je(tr,Se),qt!==0&&(l(qt),qt=n(function(){on()},Se)))}if(gr===Q){if(xr!==""){he=Fr,Er===""&&(Er="message");var cn=new ae(Er,{data:xr.slice(1),lastEventId:Fr});if(Le.dispatchEvent(cn),Er==="open"?gt(Le,Le.onopen,cn):Er==="message"?gt(Le,Le.onmessage,cn):Er==="error"&>(Le,Le.onerror,cn),qr===fe)return}xr="",Er=""}gr=Wr===13?pe:Q}else gr===Q&&(hi=ar,gr=re),gr===re?Wr===58&&(Ts=ar+1,gr=ge):gr===ge&&(gr=ye)}}},En=function(Bt){if(qr===ne||qr===oe){qr=X,qt!==0&&(l(qt),qt=0),qt=n(function(){on()},Ne),Ne=it(Math.min(xe*16,Ne*2)),Le.readyState=oe;var Tr=new ie("error",{error:Bt});Le.dispatchEvent(Tr),gt(Le,Le.onerror,Tr),Bt!=null&&console.error(Bt)}},Wn=function(){qr=fe,ir!=null&&(ir.abort(),ir=void 0),qt!==0&&(l(qt),qt=0),Le.readyState=fe},on=function(){if(qt=0,qr!==X){if(!ze&&ir!=null)En(new Error("No activity within "+Se+" milliseconds. "+(qr===oe?"No response received.":Ue+" chars received.")+" Reconnecting.")),ir!=null&&(ir.abort(),ir=void 0);else{var Bt=Math.max((ze||Date.now())+Se-Date.now(),1);ze=!1,qt=n(function(){on()},Bt)}return}ze=!1,Ue=0,qt=n(function(){on()},Se),qr=oe,xr="",Er="",Fr=he,qn="",hi=0,Ts=0,gr=Q;var Tr=Ke;if(Ke.slice(0,5)!=="data:"&&Ke.slice(0,5)!=="blob:"&&he!==""){var us=Ke.indexOf("?");Tr=us===-1?Ke:Ke.slice(0,us+1)+Ke.slice(us+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(tr,cn){return cn===dt?"":tr}),Tr+=(Ke.indexOf("?")===-1?"?":"&")+dt+"="+encodeURIComponent(he)}var Wr=Le.withCredentials,ds={};ds.Accept="text/event-stream";var ar=Le.headers;if(ar!=null)for(var br in ar)Object.prototype.hasOwnProperty.call(ar,br)&&(ds[br]=ar[br]);try{ir=vr.open(kt,ya,Ri,En,Tr,Wr,ds)}catch(tr){throw Wn(),tr}};Le.url=Ke,Le.readyState=oe,Le.withCredentials=Ze,Le.headers=Me,Le._close=Wn,on()}bt.prototype=Object.create(z.prototype),bt.prototype.CONNECTING=oe,bt.prototype.OPEN=ne,bt.prototype.CLOSED=fe,bt.prototype.close=function(){this._close()},bt.CONNECTING=oe,bt.OPEN=ne,bt.CLOSED=fe,bt.prototype.withCredentials=void 0;var jt=y;c!=null&&(y==null||!("withCredentials"in y.prototype))&&(jt=bt),(function(Le){{var Ke=Le(t);Ke!==void 0&&(e.exports=Ke)}})(function(Le){Le.EventSourcePolyfill=bt,Le.NativeEventSource=y,Le.EventSource=jt})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:U8:globalThis)})(kp,kp.exports)),kp.exports}var V8=$8();const Qa={TICKER:"TT",TOP_PRICE:"TP",STATS:"TS",INDEX_UPDATE:"IU",INDEX_VOLUME:"IV",PROJECTED_OPEN:"PO",SECTOR_INDEX:"SX",STOCK_STATUS:"SS",SYSTEM_CONTROL:"SC",INDEX_STOCK:"IX"};let bu=null;const i0=e=>Us.getState().securities.watchList.has(e),H8=()=>Us.getState().ticker.active,Zg={connect:()=>{const e=He.getToken(),t=He.getUserId(),r=He.getState();if(!e){console.error("No token available for SSE connection");return}Zg.disconnect(),bu=new V8.EventSourcePolyfill(`${pt.REALTIME_PUSH}/push`,{headers:{"Cache-Control":"no-cache",app:fa.APP,"app-id":fa.APP_ID,Authorization:`Bearer ${e}`,"user-id":t||"",state:r||""}}),bu.addEventListener("emapi",n=>{try{const l=JSON.parse(n.data);Zg.processMessage(l),Us.dispatch(ZO())}catch(l){console.error("Failed to parse SSE message:",l)}}),bu.onopen=()=>{console.log("SSE connection established"),Us.dispatch(QO())},bu.onerror=n=>{console.error("SSE connection error:",n),Us.dispatch(KO("Connection error"))}},disconnect:()=>{bu&&(bu.close(),bu=null,Us.dispatch(JO()))},processMessage:e=>{switch(e.mt){case Qa.TICKER:Y8(e);break;case Qa.STATS:G8(e);break;case Qa.TOP_PRICE:X8(e);break;case Qa.INDEX_UPDATE:q8(e);break;case Qa.INDEX_VOLUME:W8(e);break;case Qa.PROJECTED_OPEN:Q8(e);break;case Qa.SECTOR_INDEX:J8(e);break;case Qa.STOCK_STATUS:K8(e);break;case Qa.SYSTEM_CONTROL:eL(e);break;case Qa.INDEX_STOCK:Z8(e);break;default:console.log("Unhandled message type:",e.mt)}}},Y8=e=>{const t=e.sym;if(!t)return;const r=i0(t),n=H8();if(!r&&!n)return;const l=We(e.prc),c=e.vol;r&&Us.dispatch(DO({name:t,price:l,volume:c,side:e.sid,time:e.tim})),n&&Us.dispatch(nB({sym:t,prc:e.prc,prr:e.prr,vol:c,sid:e.sid,tim:e.tim}))},G8=e=>{const t=e.sym;!t||!i0(t)||Us.dispatch(LO({name:t,prior:parseFloat(String(We(e.prr))),averagePrice:We(e.avg),high:We(e.hgh),low:We(e.low),accVolume:e.avo,accValue:e.ava,buyVolume:e.bvo,sellVolume:e.svo,unknownVolume:e.ovo,haltFlag:e.hf}))},X8=e=>{const t=e.sym;if(!t||!i0(t))return;const r=e.sid,n=e.pri||[],l=e.vol||[],c=n.map(f=>We(f));Us.dispatch(IO({name:t,side:r,prices:c,volumes:l,time:e.time}))},q8=e=>{const t=e.grp;t&&Us.dispatch(C1({group:t,indexValue:We(e.idx),prior:We(e.prr),high:We(e.hgh),low:We(e.low),openIndex:We(e.opx),buyVolume:e.bvo,sellVolume:e.svo,unknownVolume:e.opo,totalValue:e.val!==void 0?e.val/100:void 0,totalVolume:e.vol,advance:e.adv,decline:e.dec,unchange:e.nch,status:e.fst,time:e.tim}))},W8=e=>{const t=e.grp;t&&Us.dispatch(PO({group:t,totalVolume:e.vol,totalValue:We(e.val),advance:e.adv,decline:e.dec,unchange:e.nch}))},Q8=e=>{const t=e.sym;!t||!i0(t)||Us.dispatch(zO({name:t,projectOpen:We(e.pri),project
29Volume:e.vol,open0:e.op0!==void 0?We(e.op0):void 0,open1:e.op1!==void 0?We(e.op1):void 0,open2:e.op2!==void 0?We(e.op2):void 0,haltFlag:e.hf,isFinal:e.isf}))},J8=e=>{const t=e.sxn;t&&Us.dispatch(FO({sectorName:t,indexValue:We(e.idx),prior:We(e.prr),high:We(e.hgh),low:We(e.low),advance:e.adv,decline:e.dec,unchange:e.nch,buyVolume:e.bvo,sellVolume:e.svo,unknownVolume:e.opo,openIndex:e.opx,totalValue:e.val,totalVolume:e.vol,status:e.mks}))},K8=e=>{const t=e.sym;!t||!i0(t)||Us.dispatch(UO({name:t,haltFlag:e.hf,status:e.fst}))},Z8=e=>{const t=e.ixn;t&&Us.dispatch(C1({group:t,indexValue:We(e.idx),prior:We(e.prr),high:We(e.hgh),low:We(e.low),openIndex:We(e.opx),buyVolume:e.bvo,sellVolume:e.svo,unknownVolume:e.opo,totalValue:e.val!==void 0?e.val/100:void 0,totalVolume:e.vol,advance:e.adv,decline:e.dec,unchange:e.nch,status:e.fst,time:e.tim}))},eL=e=>{const t=e.grp,r=e.fst;!t||!r||Us.dispatch($O({group:t,status:r}))},tL=({children:e})=>{const[t,r]=Y.useState(!1),n=er(),{loading:l,loaded:c}=Ye(b=>b.securities),f=Ye(b=>b.auth.broker),x=Ye(b=>b.auth.userType),y=Ye(b=>b.auth.userTypeLoaded);return Y.useEffect(()=>{n(Sg())},[n]),Y.useEffect(()=>{c&&(n(Y2()),n(rl()))},[c]),Y.useEffect(()=>{!c||!f||(f!=="stockradars"?(n(pO(!0)),n(X2()).then(()=>{n(uc()),n(xc())})):n(G2()))},[c,f]),Y.useEffect(()=>{if(y&&x!=="delay")return Zg.connect(),()=>{Zg.disconnect()}},[y,x]),o.jsxs("div",{className:"flex bg-app-bg min-h-screen",children:[o.jsx("aside",{className:"hidden lg:flex flex-col fixed left-0 top-0 w-[220px] h-dvh bg-app-bg border-r border-app-border z-30",children:o.jsx(mA,{})}),t&&o.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[o.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:()=>r(!1)}),o.jsx("aside",{className:"fixed left-0 top-0 w-[220px] h-dvh bg-app-bg border-r border-app-border z-50",children:o.jsx(mA,{onClose:()=>r(!1)})})]}),o.jsxs("div",{className:"flex-1 lg:ml-[220px] flex flex-col h-screen overflow-hidden",children:[o.jsx(z8,{onMenuToggle:()=>r(!0)}),o.jsx("main",{className:"pt-16 flex-1 flex flex-col overflow-hidden text-white",children:l||!y?o.jsx("div",{className:"flex justify-center items-center h-[calc(100vh-64px)]",children:o.jsx("img",{src:Yp,alt:"loading",className:"w-20 h-20"})}):e})]})]})},rL=({children:e})=>{const{isAuthenticated:t,logoutBroker:r}=Ye(n=>n.auth);return t?o.jsx(o.Fragment,{children:e}):r&&r!=="globlex"&&r!=="stockradars"?o.jsx(Fp,{to:`/auth-message?broker=${r}`,replace:!0}):o.jsx(Fp,{to:"/login",replace:!0})},sL=({feature:e,children:t,redirect:r=!0})=>{const n=Ye(c=>c.auth.broker),l=Ye(c=>c.auth.userType);return!R1(e,n)||FC(e,l)?r?o.jsx(Fp,{to:"/",replace:!0}):null:o.jsx(o.Fragment,{children:t})};var a0=e=>e.type==="checkbox",Nu=e=>e instanceof Date,$n=e=>e==null;const YC=e=>typeof e=="object";var ks=e=>!$n(e)&&!Array.isArray(e)&&YC(e)&&!Nu(e),nL=e=>ks(e)&&e.target?a0(e.target)?e.target.checked:e.target.value:e,iL=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,aL=(e,t)=>e.has(iL(t)),lL=e=>{const t=e.constructor&&e.constructor.prototype;return ks(t)&&t.hasOwnProperty("isPrototypeOf")},B1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Bs(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(B1&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(ks(e)&&lL(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(n[l]=Bs(e[l]));return n}var _y=e=>/^\w*$/.test(e),is=e=>e===void 0,_1=e=>Array.isArray(e)?e.filter(Boolean):[],D1=e=>_1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ht=(e,t,r)=>{if(!t||!ks(e))return r;const n=(_y(t)?[t]:D1(t)).reduce((l,c)=>$n(l)?l:l[c],e);return is(n)||n===e?is(e[t])?r:e[t]:n},Ja=e=>typeof e=="boolean",ua=e=>typeof e=="function",Lr=(e,t,r)=>{let n=-1;const l=_y(t)?[t]:D1(t),c=l.length,f=c-1;for(;++n<c;){const x=l[n];let y=r;if(n!==f){const b=e[x];y=ks(b)||Array.isArray(b)?b:isNaN(+l[n+1])?{}:[]}if(x==="__proto__"||x==="constructor"||x==="prototype")return;e[x]=y,e=e[x]}};const bA={BLUR:"blur",FOCUS_OUT:"focusout"},da={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yl={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},oL=nr.createContext(null);oL.displayName="HookFormControlContext";var cL=(e,t,r,n=!0)=>{const l={defaultValues:t._defaultValues};for(const c in e)Object.defineProperty(l,c,{get:()=>{const f=c;return t._proxyFormState[f]!==da.all&&(t._proxyFormState[f]=!n||da.all),e[f]}});return l};const uL=typeof window<"u"?nr.useLayoutEffect:nr.useEffect;var li=e=>typeof e=="string",dL=(e,t,r,n,l)=>li(e)?(n&&t.watch.add(e),ht(r,e,l)):Array.isArray(e)?e.map(c=>(n&&t.watch.add(c),ht(r,c))):(n&&(t.watchAll=!0),r),Ub=e=>$n(e)||!YC(e);function lc(e,t,r=new WeakSet){if(Ub(e)||Ub(t))return Object.is(e,t);if(Nu(e)&&Nu(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const c of n){const f=e[c];if(!l.includes(c))return!1;if(c!=="ref"){const x=t[c];if(Nu(f)&&Nu(x)||ks(f)&&ks(x)||Array.isArray(f)&&Array.isArray(x)?!lc(f,x,r):!Object.is(f,x))return!1}}return!0}const hL=nr.createContext(null);hL.displayName="HookFormContext";var GC=(e,t,r,n,l)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:l||!0}}:{},Dp=e=>Array.isArray(e)?e:[e],wA=()=>{let e=[];return{get observers(){return e},next:l=>{for(const c of e)c.next&&c.next(l)},subscribe:l=>(e.push(l),{unsubscribe:()=>{e=e.filter(c=>c!==l)}}),unsubscribe:()=>{e=[]}}};function XC(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const l=e[n],c=t[n];if(l&&ks(l)&&c){const f=XC(l,c);ks(f)&&(r[n]=f)}else e[n]&&(r[n]=c)}return r}var yn=e=>ks(e)&&!Object.keys(e).length,L1=e=>e.type==="file",ey=e=>{if(!B1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},qC=e=>e.type==="select-multiple",I1=e=>e.type==="radio",fL=e=>I1(e)||a0(e),tb=e=>ey(e)&&e.isConnected;function pL(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=is(e)?n++:e[t[n++]];return e}function mL(e){for(const t in e)if(e.hasOwnProperty(t)&&!is(e[t]))return!1;return!0}function Es(e,t){const r=Array.isArray(t)?t:_y(t)?[t]:D1(t),n=r.length===1?e:pL(e,r),l=r.length-1,c=r[l];return n&&delete n[c],l!==0&&(ks(n)&&yn(n)||Array.isArray(n)&&mL(n))&&Es(e,r.slice(0,-1)),e}var xL=e=>{for(const t in e)if(ua(e[t]))return!0;return!1};function WC(e){return Array.isArray(e)||ks(e)&&!xL(e)}function $b(e,t={}){for(const r in e){const n=e[r];WC(n)?(t[r]=Array.isArray(n)?[]:{},$b(n,t[r])):is(n)||(t[r]=!0)}return t}function vh(e,t,r){r||(r=$b(t));for(const n in e){const l=e[n];if(WC(l))is(t)||Ub(r[n])?r[n]=$b(l,Array.isArray(l)?[]:{}):vh(l,$n(t)?{}:t[n],r[n]);else{const c=t[n];r[n]=!lc(l,c)}}return r}const SA={value:!1,isValid:!1},AA={value:!0,isValid:!0};var QC=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!is(e[0].attributes.value)?is(e[0].value)||e[0].value===""?AA:{value:e[0].value,isValid:!0}:AA:SA}return SA},JC=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>is(e)?e:t?e===""?NaN:e&&+e:r&&li(e)?new Date(e):n?n(e):e;const EA={isValid:!1,value:null};var KC=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,EA):EA;function CA(e){const t=e.ref;return L1(t)?t.files:I1(t)?KC(e.refs).value:qC(t)?[...t.selectedOptions].map(({value:r})=>r):a0(t)?QC(e.refs).value:JC(is(t.value)?e.ref.value:t.value,e)}var gL=(e,t,r,n)=>{const l={};for(const c of e){const f=ht(t,c);f&&Lr(l,c,f._f)}return{criteriaMode:r,names:[...e],fields:l,shouldUseNativeValidation:n}},ty=e=>e instanceof RegExp,Ep=e=>is(e)?e:ty(e)?e.source:ks(e)?ty(e.value)?e.value.source:e.value:e,kA=e=>({isOnSubmit:!e||e===da.onSubmit,isOnBlur:e===da.onBlur,isOnChange:e===da.onChange,isOnAll:e===da.all,isOnTouch:e===da.onTouched});const TA="AsyncFunction";var yL=e=>!!e&&!!e.validate&&!!(ua(e.validate)&&e.validate.constructor.name===TA||ks(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===TA)),vL=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),NA=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Lp=(e,t,r,n)=>{for(const l of r||Object.keys(e)){const c=ht(e,l);if(c){const{_f:f,...x}=c;if(f){if(f.refs&&f.refs[0]&&t(f.refs[0],l)&&!n)return!0;
vendor: 4,251 bytes, line 29
29if(f.ref&&t(f.ref,f.name)&&!n)return!0;if(Lp(x,t))break}else if(ks(x)&&Lp(x,t))break}}};function jA(e,t,r){const n=ht(e,r);if(n||_y(r))return{error:n,name:r};const l=r.split(".");for(;l.length;){const c=l.join("."),f=ht(t,c),x=ht(e,c);if(f&&!Array.isArray(f)&&r!==c)return{name:r};if(x&&x.type)return{name:c,error:x};if(x&&x.root&&x.root.type)return{name:`${c}.root`,error:x.root};l.pop()}return{name:r}}var bL=(e,t,r,n)=>{r(e);const{name:l,...c}=e;return yn(c)||Object.keys(c).length>=Object.keys(t).length||Object.keys(c).find(f=>t[f]===(!n||da.all))},wL=(e,t,r)=>!e||!t||e===t||Dp(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),SL=(e,t,r,n,l)=>l.isOnAll?!1:!r&&l.isOnTouch?!(t||e):(r?n.isOnBlur:l.isOnBlur)?!e:(r?n.isOnChange:l.isOnChange)?e:!0,AL=(e,t)=>!_1(ht(e,t)).length&&Es(e,t),EL=(e,t,r)=>{const n=Dp(ht(e,r));return Lr(n,"root",t[r]),Lr(e,r,n),e};function MA(e,t,r="validate"){if(li(e)||Array.isArray(e)&&e.every(li)||Ja(e)&&!e)return{type:r,message:li(e)?e:"",ref:t}}var mh=e=>ks(e)&&!ty(e)?e:{value:e,message:""},RA=async(e,t,r,n,l,c)=>{const{ref:f,refs:x,required:y,maxLength:b,minLength:S,min:C,max:R,pattern:O,validate:M,name:P,valueAsNumber:_,mount:$}=e._f,D=ht(r,P);if(!$||t.has(P))return{};const F=x?x[0]:f,J=Z=>{l&&F.reportValidity&&(F.setCustomValidity(Ja(Z)?"":Z||""),F.reportValidity())},te={},le=I1(f),se=a0(f),L=le||se,W=(_||L1(f))&&is(f.value)&&is(D)||ey(f)&&f.value===""||D===""||Array.isArray(D)&&!D.length,z=GC.bind(null,P,n,te),H=(Z,ae,ue,ie=Yl.maxLength,X=Yl.minLength)=>{const oe=Z?ae:ue;te[P]={type:Z?ie:X,message:oe,ref:f,...z(Z?ie:X,oe)}};if(c?!Array.isArray(D)||!D.length:y&&(!L&&(W||$n(D))||Ja(D)&&!D||se&&!QC(x).isValid||le&&!KC(x).isValid)){const{value:Z,message:ae}=li(y)?{value:!!y,message:y}:mh(y);if(Z&&(te[P]={type:Yl.required,message:ae,ref:F,...z(Yl.required,ae)},!n))return J(ae),te}if(!W&&(!$n(C)||!$n(R))){let Z,ae;const ue=mh(R),ie=mh(C);if(!$n(D)&&!isNaN(D)){const X=f.valueAsNumber||D&&+D;$n(ue.value)||(Z=X>ue.value),$n(ie.value)||(ae=X<ie.value)}else{const X=f.valueAsDate||new Date(D),oe=pe=>new Date(new Date().toDateString()+" "+pe),ne=f.type=="time",fe=f.type=="week";li(ue.value)&&D&&(Z=ne?oe(D)>oe(ue.value):fe?D>ue.value:X>new Date(ue.value)),li(ie.value)&&D&&(ae=ne?oe(D)<oe(ie.value):fe?D<ie.value:X<new Date(ie.value))}if((Z||ae)&&(H(!!Z,ue.message,ie.message,Yl.max,Yl.min),!n))return J(te[P].message),te}if((b||S)&&!W&&(li(D)||c&&Array.isArray(D))){const Z=mh(b),ae=mh(S),ue=!$n(Z.value)&&D.length>+Z.value,ie=!$n(ae.value)&&D.length<+ae.value;if((ue||ie)&&(H(ue,Z.message,ae.message),!n))return J(te[P].message),te}if(O&&!W&&li(D)){const{value:Z,message:ae}=mh(O);if(ty(Z)&&!D.match(Z)&&(te[P]={type:Yl.pattern,message:ae,ref:f,...z(Yl.pattern,ae)},!n))return J(ae),te}if(M){if(ua(M)){const Z=await M(D,r),ae=MA(Z,F);if(ae&&(te[P]={...ae,...z(Yl.validate,ae.message)},!n))return J(ae.message),te}else if(ks(M)){let Z={};for(const ae in M){if(!yn(Z)&&!n)break;const ue=MA(await M[ae](D,r),F,ae);ue&&(Z={...ue,...z(ae,ue.message)},J(ue.message),n&&(te[P]=Z))}if(!yn(Z)&&(te[P]={ref:F,...Z},!n))return te}}return J(!0),te};const CL={mode:da.onSubmit,reValidateMode:da.onChange,shouldFocusError:!0};function kL(e={}){let t={...CL,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:ua(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},l=ks(t.defaultValues)||ks(t.values)?Bs(t.defaultValues||t.values)||{}:{},c=t.shouldUnregister?{}:Bs(l),f={action:!1,mount:!1,watch:!1,keepIsValid:!1},x={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},y,b=0;const S={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},C={...S};let R={...C};const O={array:wA(),state:wA()},M=t.criteriaMode===da.all,P=xe=>Se=>{clearTimeout(b),b=setTimeout(xe,Se)},_=async xe=>{if(!f.keepIsValid&&!t.disabled&&(C.isValid||R.isValid||xe)){let Se;t.resolver?(Se=yn((await L()).errors),$()):Se=await z(n,!0),Se!==r.isValid&&O.state.next({isValid:Se})}},$=(xe,Se)=>{!t.disabled&&(C.isValidating||C.validatingFields||R.isValidating||R.validatingFields)&&((xe||Array.from(x.mount)).forEac
vendor: 4,734 bytes, line 29
29h(he=>{he&&(Se?Lr(r.validatingFields,he,Se):Es(r.validatingFields,he))}),O.state.next({validatingFields:r.validatingFields,isValidating:!yn(r.validatingFields)}))},D=(xe,Se=[],he,Ne,ze=!0,Ue=!0)=>{if(Ne&&he&&!t.disabled){if(f.action=!0,Ue&&Array.isArray(ht(n,xe))){const Me=he(ht(n,xe),Ne.argA,Ne.argB);ze&&Lr(n,xe,Me)}if(Ue&&Array.isArray(ht(r.errors,xe))){const Me=he(ht(r.errors,xe),Ne.argA,Ne.argB);ze&&Lr(r.errors,xe,Me),AL(r.errors,xe)}if((C.touchedFields||R.touchedFields)&&Ue&&Array.isArray(ht(r.touchedFields,xe))){const Me=he(ht(r.touchedFields,xe),Ne.argA,Ne.argB);ze&&Lr(r.touchedFields,xe,Me)}(C.dirtyFields||R.dirtyFields)&&(r.dirtyFields=vh(l,c)),O.state.next({name:xe,isDirty:Z(xe,Se),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Lr(c,xe,Se)},F=(xe,Se)=>{Lr(r.errors,xe,Se),O.state.next({errors:r.errors})},J=xe=>{r.errors=xe,O.state.next({errors:r.errors,isValid:!1})},te=(xe,Se,he,Ne)=>{const ze=ht(n,xe);if(ze){const Ue=ht(c,xe,is(he)?ht(l,xe):he);is(Ue)||Ne&&Ne.defaultChecked||Se?Lr(c,xe,Se?Ue:CA(ze._f)):ie(xe,Ue),f.mount&&!f.action&&_()}},le=(xe,Se,he,Ne,ze)=>{let Ue=!1,Me=!1;const ot={name:xe};if(!t.disabled){if(!he||Ne){(C.isDirty||R.isDirty)&&(Me=r.isDirty,r.isDirty=ot.isDirty=Z(),Ue=Me!==ot.isDirty);const kt=lc(ht(l,xe),Se);Me=!!ht(r.dirtyFields,xe),kt?Es(r.dirtyFields,xe):Lr(r.dirtyFields,xe,!0),ot.dirtyFields=r.dirtyFields,Ue=Ue||(C.dirtyFields||R.dirtyFields)&&Me!==!kt}if(he){const kt=ht(r.touchedFields,xe);kt||(Lr(r.touchedFields,xe,he),ot.touchedFields=r.touchedFields,Ue=Ue||(C.touchedFields||R.touchedFields)&&kt!==he)}Ue&&ze&&O.state.next(ot)}return Ue?ot:{}},se=(xe,Se,he,Ne)=>{const ze=ht(r.errors,xe),Ue=(C.isValid||R.isValid)&&Ja(Se)&&r.isValid!==Se;if(t.delayError&&he?(y=P(()=>F(xe,he)),y(t.delayError)):(clearTimeout(b),y=null,he?Lr(r.errors,xe,he):Es(r.errors,xe)),(he?!lc(ze,he):ze)||!yn(Ne)||Ue){const Me={...Ne,...Ue&&Ja(Se)?{isValid:Se}:{},errors:r.errors,name:xe};r={...r,...Me},O.state.next(Me)}},L=async xe=>($(xe,!0),await t.resolver(c,t.context,gL(xe||x.mount,n,t.criteriaMode,t.shouldUseNativeValidation))),W=async xe=>{const{errors:Se}=await L(xe);if($(xe),xe)for(const he of xe){const Ne=ht(Se,he);Ne?Lr(r.errors,he,Ne):Es(r.errors,he)}else r.errors=Se;return Se},z=async(xe,Se,he={valid:!0})=>{for(const Ne in xe){const ze=xe[Ne];if(ze){const{_f:Ue,...Me}=ze;if(Ue){const ot=x.array.has(Ue.name),kt=ze._f&&yL(ze._f);kt&&C.validatingFields&&$([Ue.name],!0);const vr=await RA(ze,x.disabled,c,M,t.shouldUseNativeValidation&&!Se,ot);if(kt&&C.validatingFields&&$([Ue.name]),vr[Ue.name]&&(he.valid=!1,Se||e.shouldUseNativeValidation))break;!Se&&(ht(vr,Ue.name)?ot?EL(r.errors,vr,Ue.name):Lr(r.errors,Ue.name,vr[Ue.name]):Es(r.errors,Ue.name))}!yn(Me)&&await z(Me,Se,he)}}return he.valid},H=()=>{for(const xe of x.unMount){const Se=ht(n,xe);Se&&(Se._f.refs?Se._f.refs.every(he=>!tb(he)):!tb(Se._f.ref))&&Je(xe)}x.unMount=new Set},Z=(xe,Se)=>!t.disabled&&(xe&&Se&&Lr(c,xe,Se),!lc(Q(),l)),ae=(xe,Se,he)=>dL(xe,x,{...f.mount?c:is(Se)?l:li(xe)?{[xe]:Se}:Se},he,Se),ue=xe=>_1(ht(f.mount?c:l,xe,t.shouldUnregister?ht(l,xe,[]):[])),ie=(xe,Se,he={})=>{const Ne=ht(n,xe);let ze=Se;if(Ne){const Ue=Ne._f;Ue&&(!Ue.disabled&&Lr(c,xe,JC(Se,Ue)),ze=ey(Ue.ref)&&$n(Se)?"":Se,qC(Ue.ref)?[...Ue.ref.options].forEach(Me=>Me.selected=ze.includes(Me.value)):Ue.refs?a0(Ue.ref)?Ue.refs.forEach(Me=>{(!Me.defaultChecked||!Me.disabled)&&(Array.isArray(ze)?Me.checked=!!ze.find(ot=>ot===Me.value):Me.checked=ze===Me.value||!!ze)}):Ue.refs.forEach(Me=>Me.checked=Me.value===ze):L1(Ue.ref)?Ue.ref.value="":(Ue.ref.value=ze,Ue.ref.type||O.state.next({name:xe,values:Bs(c)})))}(he.shouldDirty||he.shouldTouch)&&le(xe,ze,he.shouldTouch,he.shouldDirty,!0),he.shouldValidate&&pe(xe)},X=(xe,Se,he)=>{for(const Ne in Se){if(!Se.hasOwnProperty(Ne))return;const ze=Se[Ne],Ue=xe+"."+Ne,Me=ht(n,Ue);(x.array.has(xe)||ks(ze)||Me&&!Me._f)&&!Nu(ze)?X(Ue,ze,he):ie(Ue,ze,he)}},oe=(xe,Se,he={})=>{const Ne=ht(n,xe),ze=x.array.has(xe),Ue=Bs(Se);Lr(c,xe,Ue),ze?(O.array.next({name:xe,values:Bs(c)}),(C.isDirty||C.dirtyFields||R.isDirty||R.dirtyFields)&&he.shouldDirty&&O.state.next({name:xe,dirtyFields:vh(l,c),isDirty:Z(xe,Ue)})):Ne&&!Ne._f&&!$n(Ue)?X(xe,Ue,he):ie(xe,Ue,he),NA(xe,x)?O.state.next({...r,name:xe,values:Bs(c)}):O.state.next({name:f.mount?xe:void 0,values:Bs(c)})},ne=async xe=>{f.mount=!0;const Se=xe.target;let he=Se.name,Ne=!0;const ze=ht(n,he),Ue=kt=>{Ne=Number.isNaN(kt)||Nu(kt)&&isNaN(kt.getTime())||lc(kt,ht(c,he,kt))},Me=kA(t.mode),ot=kA(t.reValidateMode);if(ze){let kt,vr;const ir=Se.type?CA(ze._f):nL(xe),qt=xe.type===bA.BLUR||xe.type===bA.FOCUS_OUT,qr=!vL(ze._f)&&!t.resolver&&!ht(r.errors,he)&&!ze._f.deps||SL(qt,ht(r.touchedFields,he),r.isSubmitted,ot,Me),xr=NA(he,x,qt);
vendor: 8,676 bytes, line 29
29Lr(c,he,ir),qt?(!Se||!Se.readOnly)&&(ze._f.onBlur&&ze._f.onBlur(xe),y&&y(0)):ze._f.onChange&&ze._f.onChange(xe);const Fr=le(he,ir,qt),Er=!yn(Fr)||xr;if(!qt&&O.state.next({name:he,type:xe.type,values:Bs(c)}),qr)return(C.isValid||R.isValid)&&(t.mode==="onBlur"?qt&&_():qt||_()),Er&&O.state.next({name:he,...xr?{}:Fr});if(!qt&&xr&&O.state.next({...r}),t.resolver){const{errors:qn}=await L([he]);if($([he]),Ue(ir),Ne){const gr=jA(r.errors,n,he),hi=jA(qn,n,gr.name||he);kt=hi.error,he=hi.name,vr=yn(qn)}}else $([he],!0),kt=(await RA(ze,x.disabled,c,M,t.shouldUseNativeValidation))[he],$([he]),Ue(ir),Ne&&(kt?vr=!1:(C.isValid||R.isValid)&&(vr=await z(n,!0)));Ne&&(ze._f.deps&&(!Array.isArray(ze._f.deps)||ze._f.deps.length>0)&&pe(ze._f.deps),se(he,vr,kt,Fr))}},fe=(xe,Se)=>{if(ht(r.errors,Se)&&xe.focus)return xe.focus(),1},pe=async(xe,Se={})=>{let he,Ne;const ze=Dp(xe);if(t.resolver){const Ue=await W(is(xe)?xe:ze);he=yn(Ue),Ne=xe?!ze.some(Me=>ht(Ue,Me)):he}else xe?(Ne=(await Promise.all(ze.map(async Ue=>{const Me=ht(n,Ue);return await z(Me&&Me._f?{[Ue]:Me}:Me)}))).every(Boolean),!(!Ne&&!r.isValid)&&_()):Ne=he=await z(n);return O.state.next({...!li(xe)||(C.isValid||R.isValid)&&he!==r.isValid?{}:{name:xe},...t.resolver||!xe?{isValid:he}:{},errors:r.errors}),Se.shouldFocus&&!Ne&&Lp(n,fe,xe?ze:x.mount),Ne},Q=(xe,Se)=>{let he={...f.mount?c:l};return Se&&(he=XC(Se.dirtyFields?r.dirtyFields:r.touchedFields,he)),is(xe)?he:li(xe)?ht(he,xe):xe.map(Ne=>ht(he,Ne))},re=(xe,Se)=>({invalid:!!ht((Se||r).errors,xe),isDirty:!!ht((Se||r).dirtyFields,xe),error:ht((Se||r).errors,xe),isValidating:!!ht(r.validatingFields,xe),isTouched:!!ht((Se||r).touchedFields,xe)}),ge=xe=>{const Se=xe?Dp(xe):void 0;Se?.forEach(he=>Es(r.errors,he)),Se?Se.forEach(he=>{O.state.next({name:he,errors:r.errors})}):O.state.next({errors:{}})},ye=(xe,Se,he)=>{const Ne=(ht(n,xe,{_f:{}})._f||{}).ref,ze=ht(r.errors,xe)||{},{ref:Ue,message:Me,type:ot,...kt}=ze;Lr(r.errors,xe,{...kt,...Se,ref:Ne}),O.state.next({name:xe,errors:r.errors,isValid:!1}),he&&he.shouldFocus&&Ne&&Ne.focus&&Ne.focus()},Te=(xe,Se)=>ua(xe)?O.state.subscribe({next:he=>"values"in he&&xe(ae(void 0,Se),he)}):ae(xe,Se,!0),_e=xe=>O.state.subscribe({next:Se=>{wL(xe.name,Se.name,xe.exact)&&bL(Se,xe.formState||C,tt,xe.reRenderRoot)&&xe.callback({values:{...c},...r,...Se,defaultValues:l})}}).unsubscribe,Qe=xe=>(f.mount=!0,R={...R,...xe.formState},_e({...xe,formState:{...S,...xe.formState}})),Je=(xe,Se={})=>{for(const he of xe?Dp(xe):x.mount)x.mount.delete(he),x.array.delete(he),Se.keepValue||(Es(n,he),Es(c,he)),!Se.keepError&&Es(r.errors,he),!Se.keepDirty&&Es(r.dirtyFields,he),!Se.keepTouched&&Es(r.touchedFields,he),!Se.keepIsValidating&&Es(r.validatingFields,he),!t.shouldUnregister&&!Se.keepDefaultValue&&Es(l,he);O.state.next({values:Bs(c)}),O.state.next({...r,...Se.keepDirty?{isDirty:Z()}:{}}),!Se.keepIsValid&&_()},it=({disabled:xe,name:Se})=>{if(Ja(xe)&&f.mount||xe||x.disabled.has(Se)){const ze=x.disabled.has(Se)!==!!xe;xe?x.disabled.add(Se):x.disabled.delete(Se),ze&&f.mount&&!f.action&&_()}},gt=(xe,Se={})=>{let he=ht(n,xe);const Ne=Ja(Se.disabled)||Ja(t.disabled);return Lr(n,xe,{...he||{},_f:{...he&&he._f?he._f:{ref:{name:xe}},name:xe,mount:!0,...Se}}),x.mount.add(xe),he?it({disabled:Ja(Se.disabled)?Se.disabled:t.disabled,name:xe}):te(xe,!0,Se.value),{...Ne?{disabled:Se.disabled||t.disabled}:{},...t.progressive?{required:!!Se.required,min:Ep(Se.min),max:Ep(Se.max),minLength:Ep(Se.minLength),maxLength:Ep(Se.maxLength),pattern:Ep(Se.pattern)}:{},name:xe,onChange:ne,onBlur:ne,ref:ze=>{if(ze){gt(xe,Se),he=ht(n,xe);const Ue=is(ze.value)&&ze.querySelectorAll&&ze.querySelectorAll("input,select,textarea")[0]||ze,Me=fL(Ue),ot=he._f.refs||[];if(Me?ot.find(kt=>kt===Ue):Ue===he._f.ref)return;Lr(n,xe,{_f:{...he._f,...Me?{refs:[...ot.filter(tb),Ue,...Array.isArray(ht(l,xe))?[{}]:[]],ref:{type:Ue.type,name:xe}}:{ref:Ue}}}),te(xe,!1,void 0,Ue)}else he=ht(n,xe,{}),he._f&&(he._f.mount=!1),(t.shouldUnregister||Se.shouldUnregister)&&!(aL(x.array,xe)&&f.action)&&x.unMount.add(xe)}}},bt=()=>t.shouldFocusError&&Lp(n,fe,x.mount),Xt=xe=>{Ja(xe)&&(O.state.next({disabled:xe}),Lp(n,(Se,he)=>{const Ne=ht(n,he);Ne&&(Se.disabled=Ne._f.disabled||xe,Array.isArray(Ne._f.refs)&&Ne._f.refs.forEach(ze=>{ze.disabled=Ne._f.disabled||xe}))},0,!1))},Nt=(xe,Se)=>async he=>{let Ne;he&&(he.preventDefault&&he.preventDefault(),he.persist&&he.persist());let ze=Bs(c);if(O.state.next({isSubmitting:!0}),t.resolver){const{errors:Ue,values:Me}=await L();$(),r.errors=Ue,ze=Bs(Me)}else await z(n);if(x.disabled.size)for(const Ue of x.disabled)Es(ze,Ue);if(Es(r.errors,"root"),yn(r.errors)){O.state.next({errors:{}});try{await xe(ze,he)}catch(Ue){Ne=Ue}}else Se&&await Se({...r.errors},he),bt(),setTimeout(bt);if(O.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:yn(r.errors)&&!Ne,submitCount:r.submitCount+1,errors:r.errors}),Ne)throw Ne},xt=(xe,Se={})=>{ht(n,xe)&&(is(Se.defaultValue)?oe(xe,Bs(ht(l,xe))):(oe(xe,Se.defaultValue),Lr(l,xe,Bs(Se.defaultValue))),Se.keepTouched||Es(r.touchedFields,xe),Se.keepDirty||(Es(r.dirtyFields,xe),r.isDirty=Se.defaultValue?Z(xe,Bs(ht(l,xe))):Z()),Se.keepError||(Es(r.errors,xe),C.isValid&&_()),O.state.next({...r}))},jt=(xe,Se={})=>{const he=xe?Bs(xe):l,Ne=Bs(he),ze=yn(xe),Ue=ze?l:Ne;if(Se.keepDefaultValues||(l=he),!Se.keepValues){if(Se.keepDirtyValues){const Me=new Set([...x.mount,...Object.keys(vh(l,c))]);for(const ot of Array.from(Me)){const kt=ht(r.dirtyFields,ot),vr=ht(c,ot),ir=ht(Ue,ot);kt&&!is(vr)?Lr(Ue,ot,vr):!kt&&!is(ir)&&oe(ot,ir)}}else{if(B1&&is(xe))for(const Me of x.mount){const ot=ht(n,Me);if(ot&&ot._f){const kt=Array.isArray(ot._f.refs)?ot._f.refs[0]:ot._f.ref;if(ey(kt)){const vr=kt.closest("form");if(vr){vr.reset();break}}}}if(Se.keepFieldsRef)for(const Me of x.mount)oe(Me,ht(Ue,Me));else n={}}c=t.shouldUnregister?Se.keepDefaultValues?Bs(l):{}:Bs(Ue),O.array.next({values:{...Ue}}),O.state.next({values:{...Ue}})}x={mount:Se.keepDirtyValues?x.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!C.isValid||!!Se.keepIsValid||!!Se.keepDirtyValues||!t.shouldUnregister&&!yn(Ue),f.watch=!!t.shouldUnregister,f.keepIsValid=!!Se.keepIsValid,f.action=!1,Se.keepErrors||(r.errors={}),O.state.next({submitCount:Se.keepSubmitCount?r.submitCount:0,isDirty:ze?!1:Se.keepDirty?r.isDirty:!!(Se.keepDefaultValues&&!lc(xe,l)),isSubmitted:Se.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ze?{}:Se.keepDirtyValues?Se.keepDefaultValues&&c?vh(l,c):r.dirtyFields:Se.keepDefaultValues&&xe?vh(l,xe):Se.keepDirty?r.dirtyFields:{},touchedFields:Se.keepTouched?r.touchedFields:{},errors:Se.keepErrors?r.errors:{},isSubmitSuccessful:Se.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:l})},Le=(xe,Se)=>jt(ua(xe)?xe(c):xe,{...t.resetOptions,...Se}),Ke=(xe,Se={})=>{const he=ht(n,xe),Ne=he&&he._f;if(Ne){const ze=Ne.refs?Ne.refs[0]:Ne.ref;ze.focus&&setTimeout(()=>{ze.focus(),Se.shouldSelect&&ua(ze.select)&&ze.select()})}},tt=xe=>{r={...r,...xe}},dt={control:{register:gt,unregister:Je,getFieldState:re,handleSubmit:Nt,setError:ye,_subscribe:_e,_runSchema:L,_updateIsValidating:$,_focusError:bt,_getWatch:ae,_getDirty:Z,_setValid:_,_setFieldArray:D,_setDisabledField:it,_setErrors:J,_getFieldArray:ue,_reset:jt,_resetDefaultValues:()=>ua(t.defaultValues)&&t.defaultValues().then(xe=>{Le(xe,t.resetOptions),O.state.next({isLoading:!1})}),_removeUnmounted:H,_disableForm:Xt,_subjects:O,_proxyFormState:C,get _fields(){return n},get _formValues(){return c},get _state(){return f},set _state(xe){f=xe},get _defaultValues(){return l},get _names(){return x},set _names(xe){x=xe},get _formState(){return r},get _options(){return t},set _options(xe){t={...t,...xe}}},subscribe:Qe,trigger:pe,register:gt,handleSubmit:Nt,watch:Te,setValue:oe,getValues:Q,reset:Le,resetField:xt,clearErrors:ge,unregister:Je,setError:ye,setFocus:Ke,getFieldState:re};return{...dt,formControl:dt}}function TL(e={}){const t=nr.useRef(void 0),r=nr.useRef(void 0),[n,l]=nr.useState({isDirty:!1,isValidating:!1,isLoading:ua(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ua(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!ua(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:f,...x}=kL(e);t.current={...x,formState:n}}const c=t.current.control;return c._options=e,uL(()=>{const f=c._subscribe({formState:c._proxyFormState,callback:()=>l({...c._formState}
29),reRenderRoot:!0});return l(x=>({...x,isReady:!0})),c._formState.isReady=!0,f},[c]),nr.useEffect(()=>c._disableForm(e.disabled),[c,e.disabled]),nr.useEffect(()=>{e.mode&&(c._options.mode=e.mode),e.reValidateMode&&(c._options.reValidateMode=e.reValidateMode)},[c,e.mode,e.reValidateMode]),nr.useEffect(()=>{e.errors&&(c._setErrors(e.errors),c._focusError())},[c,e.errors]),nr.useEffect(()=>{e.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,e.shouldUnregister]),nr.useEffect(()=>{if(c._proxyFormState.isDirty){const f=c._getDirty();f!==n.isDirty&&c._subjects.state.next({isDirty:f})}},[c,n.isDirty]),nr.useEffect(()=>{var f;e.values&&!lc(e.values,r.current)?(c._reset(e.values,{keepFieldsRef:!0,...c._options.resetOptions}),!((f=c._options.resetOptions)===null||f===void 0)&&f.keepIsValid||c._setValid(),r.current=e.values,l(x=>({...x}))):c._resetDefaultValues()},[c,e.values]),nr.useEffect(()=>{c._state.mount||(c._setValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=nr.useMemo(()=>cL(n,c),[c,n]),t.current}const OA=(e,t,r)=>{if(e&&"reportValidity"in e){const n=ht(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},ZC=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?OA(n.ref,r,e):n&&n.refs&&n.refs.forEach(l=>OA(l,r,e))}},NL=(e,t)=>{t.shouldUseNativeValidation&&ZC(e,t);const r={};for(const n in e){const l=ht(t.fields,n),c=Object.assign(e[n]||{},{ref:l&&l.ref});if(jL(t.names||Object.keys(e),n)){const f=Object.assign({},ht(r,n));Lr(f,"root",c),Lr(r,n,f)}else Lr(r,n,c)}return r},jL=(e,t)=>{const r=BA(t);return e.some(n=>BA(n).match(`^${r}\\.\\d+`))};function BA(e){return e.replace(/\]|\[/g,"")}function ML(e,t,r){return r===void 0&&(r={}),function(n,l,c){try{return Promise.resolve((function(f,x){try{var y=(t?.context,Promise.resolve(e[r.mode==="sync"?"validateSync":"validate"](n,Object.assign({abortEarly:!1},t,{context:l}))).then(function(b){return c.shouldUseNativeValidation&&ZC({},c),{values:r.raw?Object.assign({},n):b,errors:{}}}))}catch(b){return x(b)}return y&&y.then?y.then(void 0,x):y})(0,function(f){if(!f.inner)throw f;return{values:{},errors:NL((x=f,y=!c.shouldUseNativeValidation&&c.criteriaMode==="all",(x.inner||[]).reduce(function(b,S){if(b[S.path]||(b[S.path]={message:S.message,type:S.type}),y){var C=b[S.path].types,R=C&&C[S.type];b[S.path]=GC(S.path,y,b,S.type,R?[].concat(R,S.message):S.message)}return b},{})),c)};var x,y}))}catch(f){return Promise.reject(f)}}}var rb,_A;function RL(){if(_A)return rb;_A=1;function e($){this._maxSize=$,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function($){return this._values[$]},e.prototype.set=function($,D){return this._size>=this._maxSize&&this.clear(),$ in this._values||this._size++,this._values[$]=D};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,n=/^\d/,l=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,c=/^\s*(['"]?)(.*?)(\1)\s*$/,f=512,x=new e(f),y=new e(f),b=new e(f);rb={Cache:e,split:C,normalizePath:S,setter:function($){var D=S($);return y.get($)||y.set($,function(J,te){for(var le=0,se=D.length,L=J;le<se-1;){var W=D[le];if(W==="__proto__"||W==="constructor"||W==="prototype")return J;L=L[D[le++]]}L[D[le]]=te})},getter:function($,D){var F=S($);return b.get($)||b.set($,function(te){for(var le=0,se=F.length;le<se;)if(te!=null||!D)te=te[F[le++]];else return;return te})},join:function($){return $.reduce(function(D,F){return D+(O(F)||r.test(F)?"["+F+"]":(D?".":"")+F)},"")},forEach:function($,D,F){R(Array.isArray($)?$:C($),D,F)}};function S($){return x.get($)||x.set($,C($).map(function(D){return D.replace(c,"$2")}))}function C($){return $.match(t)||[""]}function R($,D,F){var J=$.length,te,le,se,L;for(le=0;le<J;le++)te=$[le],te&&(_(te)&&(te='"'+te+'"'),L=O(te),se=!L&&/^\d+$/.test(te),D.call(F,te,L,se,le,$))}function O($){return typeof $=="string"&&$&&["'",'"'].indexOf($.charAt(0))!==-1}function M($){return $.match(n)&&!$.match(r)}function P($){return l.test($)}
vendor: 11,354 bytes, line 29
29function _($){return!O($)&&(M($)||P($))}return rb}var Ru=RL(),sb,DA;function OL(){if(DA)return sb;DA=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['â](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['â](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=S=>S.match(e)||[],r=S=>S[0].toUpperCase()+S.slice(1),n=(S,C)=>t(S).join(C).toLowerCase(),l=S=>t(S).reduce((C,R)=>`${C}${C?R[0].toUpperCase()+R.slice(1).toLowerCase():R.toLowerCase()}`,"");return sb={words:t,upperFirst:r,camelCase:l,pascalCase:S=>r(l(S)),snakeCase:S=>n(S,"_"),kebabCase:S=>n(S,"-"),sentenceCase:S=>r(n(S," ")),titleCase:S=>t(S).map(r).join(" ")},sb}var nb=OL(),kx={exports:{}},LA;function BL(){if(LA)return kx.exports;LA=1,kx.exports=function(l){return e(t(l),l)},kx.exports.array=e;function e(l,c){var f=l.length,x=new Array(f),y={},b=f,S=r(c),C=n(l);for(c.forEach(function(O){if(!C.has(O[0])||!C.has(O[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});b--;)y[b]||R(l[b],b,new Set);return x;function R(O,M,P){if(P.has(O)){var _;try{_=", node was:"+JSON.stringify(O)}catch{_=""}throw new Error("Cyclic dependency"+_)}if(!C.has(O))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(O));if(!y[M]){y[M]=!0;var $=S.get(O)||new Set;if($=Array.from($),M=$.length){P.add(O);do{var D=$[--M];R(D,C.get(D),P)}while(M);P.delete(O)}x[--f]=O}}}function t(l){for(var c=new Set,f=0,x=l.length;f<x;f++){var y=l[f];c.add(y[0]),c.add(y[1])}return Array.from(c)}function r(l){for(var c=new Map,f=0,x=l.length;f<x;f++){var y=l[f];c.has(y[0])||c.set(y[0],new Set),c.has(y[1])||c.set(y[1],new Set),c.get(y[0]).add(y[1])}return c}function n(l){for(var c=new Map,f=0,x=l.length;f<x;f++)c.set(l[f],f);return c}return kx.exports}var _L=BL();const DL=gc(_L),LL=Object.prototype.toString,IL=Error.prototype.toString,PL=RegExp.prototype.toString,FL=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",zL=/^Symbol\((.*)\)(.*)$/;function UL(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function IA(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return UL(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return FL.call(e).replace(zL,"Symbol($1)");const n=LL.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+IL.call(e)+"]":n==="RegExp"?PL.call(e):null}function hc(e,t){let r=IA(e,t);return r!==null?r:JSON.stringify(e,function(n,l){let c=IA(this[n],t);return c!==null?c:l},2)}function ek(e){return e==null?[]:[].concat(e)}let tk,rk,sk,$L=/\$\{\s*(\w+)\s*\}/g;tk=Symbol.toStringTag;class PA{constructor(t,r,n,l){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[tk]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=l,this.errors=[],this.inner=[],ek(t).forEach(c=>{if(bn.isError(c)){this.errors.push(...c.errors);const f=c.inner.length?c.inner:[c];this.inner.push(...f)}else this.errors.push(c)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}rk=Symbol.hasInstance;sk=Symbol.toStringTag;class bn extends Error{static formatError(t,r){const n=r.label||r.path||"this";return r=Object.assign({},r,{path:n,originalPath:r.path}),typeof t=="string"?t.replace($L,(l,c)=>hc(r[c])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,l,c){const f=new PA(t,r,n,l);if(c)return f;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[sk]="Error",this.name=f.name,this.message=f.message,this.type=f.type,this.value=f.value,this.path=f.path,this.errors=f.errors,this.inner=f.inner,Error.captureStackTrace&&Error.captureStackTrace(this,bn)}static[rk](t){return PA[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Ka={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const l=n!=null&&n!==r?` (cast from the value \`${hc(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${hc(r,!0)}\``+l:`${e} must match the configured type. The validated value was: \`${hc(r,!0)}\``+l}},Pn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},VL={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Vb={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},HL={isValue:"${path} field must be ${value}"},_g={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},YL={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},GL={notType:e=>{const{path:t,value:r,spec:n}=e,l=n.types.length;if(Array.isArray(r)){if(r.length<l)return`${t} tuple value has too few items, expected a length of ${l} but got ${r.length} for value: \`${hc(r,!0)}\``;if(r.length>l)return`${t} tuple value has too many items, expected a length of ${l} but got ${r.length} for value: \`${hc(r,!0)}\``}return bn.formatError(Ka.notType,e)}};Object.assign(Object.create(null),{mixed:Ka,string:Pn,number:VL,date:Vb,object:_g,array:YL,boolean:HL,tuple:GL});const P1=e=>e&&e.__isYupSchema__;class ry{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:l,otherwise:c}=r,f=typeof n=="function"?n:(...x)=>x.every(y=>y===n);return new ry(t,(x,y)=>{var b;let S=f(...x)?l:c;return(b=S?.(y))!=null?b:y})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(c=>c.getValue(r?.value,r?.parent,r?.context)),l=this.fn(n,t,r);if(l===void 0||l===t)return t;if(!P1(l))throw new TypeError("conditions must return a schema object");return l.resolve(r)}}const Tx={context:"$",value:"."};class Uu{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Tx.context,this.isValue=this.key[0]===Tx.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Tx.context:this.isValue?Tx.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Ru.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let l=this.isContext?n:this.isValue?t:r;return this.getter&&(l=this.getter(l||{})),this.map&&(l=this.map(l)),l}cast(t,r){return this.getValue(t,r?.parent,r?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Uu.prototype.__isYupRef=!0;const ju=e=>e==null;function xh(e){function t({value:r,path:n="",options:l,originalValue:c,schema:f},x,y){const{name:b,test:S,params:C,message:R,skipAbsent:O}=e;let{parent:M,context:P,abortEarly:_=f.spec.abortEarly,disableStackTrace:$=f.spec.disableStackTrace}=l;const D={value:r,parent:M,context:P};function F(H={}){const Z=nk(Object.assign({value:r,originalValue:c,label:f.spec.label,path:H.path||n,spec:f.spec,disableStackTrace:H.disableStackTrace||$},C,H.params),D),ae=new bn(bn.formatError(H.message||R,Z),r,Z.path,H.type||b,Z.disableStackTrace);return ae.params=Z,ae}const J=_?x:y;let te={path:n,parent:M,type:b,from:l.from,createError:F,resolve(H){return ik(H,D)},options:l,originalValue:c,schema:f};const le=H=>{bn.isError(H)?J(H):H?y(null):J(F())},se=H=>{bn.isError(H)?J(H):x(H)};if(O&&ju(r))return le(!0);let W;try{var z;if(W=S.call(te,r,te),typeof((z=W)==null?void 0:z.then)=="function"){if(l.sync)throw new Error(`Validation test of type: "${te.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(W).then(le,se)}}catch(H){se(H);return}le(W)}return t.OPTIONS=e,t}function nk(e,t){if(!e)return e;for(const r of Object.keys(e))e[r]=ik(e[r],t);return e}function ik(e,t){return Uu.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function XL(e,t,r,n=r){let l,c,f;
29return t?(Ru.forEach(t,(x,y,b)=>{let S=y?x.slice(1,x.length-1):x;e=e.resolve({context:n,parent:l,value:r});let C=e.type==="tuple",R=b?parseInt(S,10):0;if(e.innerType||C){if(C&&!b)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${f}" must contain an index to the tuple element, e.g. "${f}[0]"`);if(r&&R>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${x}, in the path: ${t}. because there is no value at that index. `);l=r,r=r&&r[R],e=C?e.spec.types[R]:e.innerType}if(!b){if(!e.fields||!e.fields[S])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${f} which is a type: "${e.type}")`);l=r,r=r&&r[S],e=e.fields[S]}c=S,f=y?"["+x+"]":"."+x}),{schema:e,parent:l,parentPath:c}):{parent:l,parentPath:t,schema:e}}class sy extends Set{describe(){const t=[];for(const r of this.values())t.push(Uu.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new sy(this.values())}merge(t,r){const n=this.clone();return t.forEach(l=>n.add(l)),r.forEach(l=>n.delete(l)),n}}function wh(e,t=new Map){if(P1(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=wh(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,l]of e.entries())r.set(n,wh(l,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(wh(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,l]of Object.entries(e))r[n]=wh(l,t)}else throw Error(`Unable to clone ${e}`);return r}function qL(e){if(!(e!=null&&e.length))return;const t=[];let r="",n=!1,l=!1;for(let c=0;c<e.length;c++){const f=e[c];if(f==="["&&!l){r&&(t.push(...r.split(".").filter(Boolean)),r=""),n=!0;continue}if(f==="]"&&!l){r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),n=!1;continue}if(f==='"'){l=!l;continue}if(f==="."&&!n&&!l){r&&(t.push(r),r="");continue}r+=f}return r&&t.push(...r.split(".").filter(Boolean)),t}function WL(e,t){const r=t?`${t}.${e.path}`:e.path;return e.errors.map(n=>({message:n,path:qL(r)}))}function ak(e,t){var r;if(!((r=e.inner)!=null&&r.length)&&e.errors.length)return WL(e,t);const n=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(l=>ak(l,n))}class nl{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new sy,this._blacklist=new sy,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ka.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t?.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=wh(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const l=Object.assign({},r.spec,n.spec);return n.spec=l,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blackl
vendor: 13,210 bytes, lines 29-32
29ist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(c=>{t.tests.forEach(f=>{c.test(f.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((l,c)=>c.resolve(l,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,l,c;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(l=t.recursive)!=null?l:this.spec.recursive,disableStackTrace:(c=t.disableStackTrace)!=null?c:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({},r,{value:t})),l=r.assert==="ignore-optionality",c=n._cast(t,r);if(r.assert!==!1&&!n.isType(c)){if(l&&ju(c))return c;let f=hc(t),x=hc(c);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". 30 31attempted value: ${f} 32`+(x!==f?`result of cast: ${x}`:""))}return c}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((l,c)=>c.call(this,l,t,this,r),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,l){let{path:c,originalValue:f=t,strict:x=this.spec.strict}=r,y=t;x||(y=this._cast(y,Object.assign({assert:!1},r)));let b=[];for(let S of Object.values(this.internalTests))S&&b.push(S);this.runTests({path:c,value:y,originalValue:f,options:r,tests:b},n,S=>{if(S.length)return l(S,y);this.runTests({path:c,value:y,originalValue:f,options:r,tests:this.tests},n,l)})}runTests(t,r,n){let l=!1,{tests:c,value:f,originalValue:x,path:y,options:b}=t,S=P=>{l||(l=!0,r(P,f))},C=P=>{l||(l=!0,n(P,f))},R=c.length,O=[];if(!R)return C([]);let M={value:f,originalValue:x,path:y,options:b,schema:this};for(let P=0;P<c.length;P++){const _=c[P];_(M,S,function(D){D&&(Array.isArray(D)?O.push(...D):O.push(D)),--R<=0&&C(O)})}}asNestedTest({key:t,index:r,parent:n,parentPath:l,originalParent:c,options:f}){const x=t??r;if(x==null)throw TypeError("Must include `key` or `index` for nested validations");const y=typeof x=="number";let b=n[x];const S=Object.assign({},f,{strict:!0,parent:n,value:b,originalValue:c[x],key:void 0,[y?"index":"key"]:x,path:y||x.includes(".")?`${l||""}[${y?x:`"${x}"`}]`:(l?`${l}.`:"")+t});return(C,R,O)=>this.resolve(S)._validate(b,S,R,O)}validate(t,r){var n;let l=this.resolve(Object.assign({},r,{value:t})),c=(n=r?.disableStackTrace)!=null?n:l.spec.disableStackTrace;return new Promise((f,x)=>l._validate(t,r,(y,b)=>{bn.isError(y)&&(y.value=b),x(y)},(y,b)=>{y.length?x(new bn(y,b,void 0,void 0,c)):f(b)}))}validateSync(t,r){var n;let l=this.resolve(Object.assign({},r,{value:t})),c,f=(n=r?.disableStackTrace)!=null?n:l.spec.disableStackTrace;return l._validate(t,Object.assign({},r,{sync:!0}),(x,y)=>{throw bn.isError(x)&&(x.value=y),x},(x,y)=>{if(x.length)throw new bn(x,t,void 0,void 0,f);c=y}),c}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(bn.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(bn.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):wh(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=xh({message:r,name:"nullable",test(l){return l===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=xh({message:r,name:"optionality",test(l){return l===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=Ka.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ka.notNull){return this.nullability(!1,t)}required(t=Ka.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=Ka.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),l=xh(r),c=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(f=>!(f.OPTIONS.name===r.name&&(c||f.OPTIONS.test===l.OPTIONS.test))),n.tests.push(l),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),l=ek(t).map(c=>new Uu(c));return l.forEach(c=>{c.isSibling&&n.deps.push(c.key)}),n.conditions.push(typeof r=="function"?new ry(l,r):ry.fromOptions(l,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=xh({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=Ka.oneOf){let n=this.clone();return t.forEach(l=>{n._whitelist.add(l),n._blacklist.delete(l)}),n.internalTests.whiteList=xh({message:r,name:"oneOf",skipAbsent:!0,test(l){let c=this.schema._whitelist,f=c.resolveAll(this.resolve);return f.includes(l)?!0:this.createError({params:{values:Array.from(c).join(", "),resolved:f}})}}),n}notOneOf(t,r=Ka.notOneOf){let n=this.clone();return t.forEach(l=>{n._blacklist.add(l),n._whitelist.delete(l)}),n.internalTests.blacklist=xh({message:r,name:"notOneOf",test(l){let c=this.schema._blacklist,f=c.resolveAll(this.resolve);return f.includes(l)?this.createError({params:{values:Array.from(c).join(", "),resolved:f}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:l,optional:c,nullable:f}=r.spec;return{meta:l,label:n,optional:c,nullable:f,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.filter((y,b,S)=>S.findIndex(C=>C.OPTIONS.name===y.OPTIONS.name)===b).map(y=>{const b=y.OPTIONS.params&&t?nk(Object.assign({},y.OPTIONS.params),t):y.OPTIONS.params;return{name:y.OPTIONS.name,params:b}})}}get"~standard"(){const t=this;return{version:1,vendor:"yup",async validate(n){try{return{value:await t.validate(n,{abortEarly:!1})}}catch(l){if(l instanceof bn)return{issues:ak(l)};throw l}}}}}nl.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])nl.prototype[`${e}At`]=function(t,r,n={}){const{parent:l,parentPath:c,schema:f}=XL(this,t,r,n.context);return f[e](l&&l[c],Object.assign({},n,{parent:l,path:t}))};for(const e of["equals","is"])nl.prototype[e]=nl.prototype.oneOf;for(const e of["not","nope"])nl.prototype[e]=nl.prototype.notOneOf;const QL=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function JL(e){const t=Hb(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function Hb(e){var t,r;const n=QL.exec(e);return n?{year:Gl(n[1]),month:Gl(n[2],1)-1,day:Gl(n[3],1),hour:Gl(n[4]),minute:Gl(n[5]),second:Gl(n[6]),millisecond:n[7]?Gl(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:Gl(n[10]),minuteOffset:Gl(n[11])}:null}function Gl(e,t=0){return Number(e)||t}let KL=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ZL=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,e6=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,t6="^\\d{4}-\\d{2}-\\d{2}",r6="\\d{2}:\\d{2}:\\d{2}",s6="(([+-]\\d{2}(:?\\d{2})?)|Z)",n6=new RegExp(`${t6}T${r6}(\\.\\d+)?${s6}$`),i6=e=>ju(e)||e===e.trim(),a6={}.toString();function Yb(){return new lk}class lk extends nl{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r)=>{if(!this.spec.coerce||this.isType(t)||Array.isArray(t))return t;const n=t!=null&&t.toString?t.toString():t;return n===a6?t:n})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Ka.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=Pn.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=Pn.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=Pn.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,l,c;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:l,name:c}=r:l=r),this.test({name:c||"matches",message:l||Pn.matches,params:{regex:t},skipAbsent:!0,test:f=>f===""&&n||f.search(t)!==-1})}email(t=Pn.email){return this.matches(KL,{name:"email",message:t,excludeEmptyString:!0})}url(t=Pn.url){return this.matches(ZL,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Pn.uuid){return this.matches(e6,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,l;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:l=void 0}=t:r=t),this.matches(n6,{name:"datetime",message:r||Pn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Pn.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:c=>{if(!c||n)return!0;const f=Hb(c);return f?!!f.z:!1}}).test({name:"datetime_precision",message:r||Pn.datetime_precision,params:{precision:l},skipAbsent:!0,test:c=>{if(!c||l==null)return!0;const f=Hb(c);return f?f.precision===l:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Pn.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:i6})}lowercase(t=Pn.lowercase){return this.transform(r=>ju(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ju(r)||r===r.toLowerCase()})}uppercase(t=Pn.uppercase){return this.transform(r=>ju(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ju(r)||r===r.toUpperCase()})}}Yb.prototype=lk.prototype;let l6=new Date(""),o6=e=>Object.prototype.toString.call(e)==="[object Date]";class F1 extends nl{constructor(){super({type:"date",check(t){return o6(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r)=>!this.spec.coerce||this.isType(t)||t===null?t:(t=JL(t),isNaN(t)?F1.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(Uu.isRef(t))n=t;else{let l=this.cast(t);if(!this._typeCheck(l))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=l}return n}min(t,r=Vb.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(l){return l>=this.resolve(n)}})}max(t,r=Vb.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(l){return l<=this.resolve(n)}})}}F1.INVALID_DATE=l6;function c6(e,t=[]){let r=[],n=new Set,l=new Set(t.map(([f,x])=>`${f}-${x}`));function c(f,x){let y=Ru.split(f)[0];n.add(y),l.has(`${x}
32-${y}`)||r.push([x,y])}for(const f of Object.keys(e)){let x=e[f];n.add(f),Uu.isRef(x)&&x.isSibling?c(x.path,f):P1(x)&&"deps"in x&&x.deps.forEach(y=>c(y,f))}return DL.array(Array.from(n),r).reverse()}function FA(e,t){let r=1/0;return e.some((n,l)=>{var c;if((c=t.path)!=null&&c.includes(n))return r=l,!0}),r}function ok(e){return(t,r)=>FA(e,t)-FA(e,r)}const u6=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function Dg(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=Dg(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Dg(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Dg)}):"optional"in e?e.optional():e}const d6=(e,t)=>{const r=[...Ru.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),l=Ru.getter(Ru.join(r),!0)(e);return!!(l&&n in l)};let zA=e=>Object.prototype.toString.call(e)==="[object Object]";function UA(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const h6=ok([]);function ck(e){return new uk(e)}class uk extends nl{constructor(t){super({type:"object",check(r){return zA(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=h6,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let l=super._cast(t,r);if(l===void 0)return this.getDefault(r);if(!this._typeCheck(l))return l;let c=this.fields,f=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,x=[].concat(this._nodes,Object.keys(l).filter(C=>!this._nodes.includes(C))),y={},b=Object.assign({},r,{parent:y,__validating:r.__validating||!1}),S=!1;for(const C of x){let R=c[C],O=C in l,M=l[C];if(R){let P;b.path=(r.path?`${r.path}.`:"")+C,R=R.resolve({value:M,context:r.context,parent:y});let _=R instanceof nl?R.spec:void 0,$=_?.strict;if(_!=null&&_.strip){S=S||C in l;continue}P=!r.__validating||!$?R.cast(M,b):M,P!==void 0&&(y[C]=P)}else O&&!f&&(y[C]=M);(O!==C in y||y[C]!==M)&&(S=!0)}return S?y:l}_validate(t,r={},n,l){let{from:c=[],originalValue:f=t,recursive:x=this.spec.recursive}=r;r.from=[{schema:this,value:f},...c],r.__validating=!0,r.originalValue=f,super._validate(t,r,n,(y,b)=>{if(!x||!zA(b)){l(y,b);return}f=f||b;let S=[];for(let C of this._nodes){let R=this.fields[C];!R||Uu.isRef(R)||S.push(R.asNestedTest({options:r,key:C,parent:b,parentPath:r.path,originalParent:f}))}this.runTests({tests:S,value:b,originalValue:f,options:r},n,C=>{l(C.sort(this._sortErrors).concat(y),b)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[l,c]of Object.entries(this.fields)){const f=n[l];n[l]=f===void 0?c:f}return r.withMutation(l=>l.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var l;const c=this.fields[n];let f=t;(l=f)!=null&&l.value&&(f=Object.assign({},f,{parent:f.value,value:f.value[n]})),r[n]=c&&"getDefault"in c?c.getDefault(f):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=c6(t,r),n._sortErrors=ok(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let l=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),l=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),l)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return Dg(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,l])=>t.includes(n)&&t.includes(l)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let l=Ru.getter(t,!0);return this.transform(c=>{if(!c)return c;let f=c;return d6(c,t)&&(f=Object.assign({},c),n||delete f[t],f[r]=l(c)),f})}json(){return this.transform(u6)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||_g.exact,test(r){if(r==null)return!0;const n=UA(this.schema,r);return n.length===0||this.createError({params:{properties:n.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=_g.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(l){if(l==null)return!0;const c=UA(this.schema,l);return!t||c.length===0||this.createError({params:{unknown:c.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=_g.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const l of Object.keys(r))n[t(l)]=r[l];return n})}camelCase(){return this.transformKeys(nb.camelCase)}snakeCase(){return this.transformKeys(nb.snakeCase)}constantCase(){return this.transformKeys(t=>nb.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[c,f]of Object.entries(r.fields)){var l;let x=t;(l=x)!=null&&l.value&&(x=Object.assign({},x,{parent:x.value,value:x.value[c]})),n.fields[c]=f.describe(x)}return n}}ck.prototype=uk.prototype;function $A(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function z1(e={},t={}){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>
vendor: 36,795 bytes, line 32
32r.indexOf(n)<0).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:$A(t[n])&&$A(e[n])&&Object.keys(t[n]).length>0&&z1(e[n],t[n])})}const dk={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function $u(){const e=typeof document<"u"?document:{};return z1(e,dk),e}const f6={document:dk,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function An(){const e=typeof window<"u"?window:{};return z1(e,f6),e}function p6(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function m6(e){const t=e;Object.keys(t).forEach(r=>{try{t[r]=null}catch{}try{delete t[r]}catch{}})}function hk(e,t=0){return setTimeout(e,t)}function ny(){return Date.now()}function x6(e){const t=An();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}function g6(e,t="x"){const r=An();let n,l,c;const f=x6(e);return r.WebKitCSSMatrix?(l=f.transform||f.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map(x=>x.replace(",",".")).join(", ")),c=new r.WebKitCSSMatrix(l==="none"?"":l)):(c=f.MozTransform||f.OTransform||f.MsTransform||f.msTransform||f.transform||f.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=c.toString().split(",")),t==="x"&&(r.WebKitCSSMatrix?l=c.m41:n.length===16?l=parseFloat(n[12]):l=parseFloat(n[4])),t==="y"&&(r.WebKitCSSMatrix?l=c.m42:n.length===16?l=parseFloat(n[13]):l=parseFloat(n[5])),l||0}function Nx(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function y6(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function ai(...e){const t=Object(e[0]);for(let r=1;r<e.length;r+=1){const n=e[r];if(n!=null&&!y6(n)){const l=Object.keys(Object(n)).filter(c=>c!=="__proto__"&&c!=="constructor"&&c!=="prototype");for(let c=0,f=l.length;c<f;c+=1){const x=l[c],y=Object.getOwnPropertyDescriptor(n,x);y!==void 0&&y.enumerable&&(Nx(t[x])&&Nx(n[x])?n[x].__swiper__?t[x]=n[x]:ai(t[x],n[x]):!Nx(t[x])&&Nx(n[x])?(t[x]={},n[x].__swiper__?t[x]=n[x]:ai(t[x],n[x])):t[x]=n[x])}}}return t}function gh(e,t,r){e.style.setProperty(t,r)}function fk({swiper:e,targetPosition:t,side:r}){const n=An(),l=-e.translate;let c=null,f;const x=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);const y=t>l?"next":"prev",b=(C,R)=>y==="next"&&C>=R||y==="prev"&&C<=R,S=()=>{f=new Date().getTime(),c===null&&(c=f);const C=Math.max(Math.min((f-c)/x,1),0),R=.5-Math.cos(C*Math.PI)/2;let O=l+R*(t-l);if(b(O,t)&&(O=t),e.wrapperEl.scrollTo({[r]:O}),b(O,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:O})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(S)};S()}function Za(e,t=""){const r=An(),n=[...e.children];return r.HTMLSlotElement&&e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(l=>l.matches(t)):n}function v6(e,t){const r=[t];for(;r.length>0;){const n=r.shift();if(e===n)return!0;r.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function b6(e,t){const r=An();let n=t.contains(e);return!n&&r.HTMLSlotElement&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=v6(e,t))),n}function iy(e){try{console.warn(e);return}catch{}}function ay(e,t=[]){const r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:p6(t)),r}function w6(e,t){const r=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function S6(e,t){const r=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function oc(e,t){return An().getComputedStyle(e,null).getPropertyValue(t)}function VA(e){let t=e,r;if(t){for(r=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(r+=1);return r}}function A6(e,t){const r=[];let n=e.parentElement;for(;n;)r.push(n),n=n.parentElement;return r}function HA(e,t,r){const n=An();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Xl(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Gb(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:r=>r}).createHTML(t):e.innerHTML=t}let ib;function E6(){const e=An(),t=$u();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function pk(){return ib||(ib=E6()),ib}let ab;function C6({userAgent:e}={}){const t=pk(),r=An(),n=r.navigator.platform,l=e||r.navigator.userAgent,c={ios:!1,android:!1},f=r.screen.width,x=r.screen.height,y=l.match(/(Android);?[\s\/]+([\d.]+)?/);let b=l.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const S=l.match(/(iPod)(.*OS\s([\d_]+))?/),C=!b&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),R=n==="Win32";let O=n==="MacIntel";const M=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!b&&O&&t.touch&&M.indexOf(`${f}x${x}`)>=0&&(b=l.match(/(Version)\/([\d.]+)/),b||(b=[0,1,"13_0_0"]),O=!1),y&&!R&&(c.os="android",c.android=!0),(b||C||S)&&(c.os="ios",c.ios=!0),c}function mk(e={}){return ab||(ab=C6(e)),ab}let lb;function k6(){const e=An(),t=mk();let r=!1;function n(){const x=e.navigator.userAgent.toLowerCase();return x.indexOf("safari")>=0&&x.indexOf("chrome")<0&&x.indexOf("android")<0}if(n()){const x=String(e.navigator.userAgent);if(x.includes("Version/")){const[y,b]=x.split("Version/")[1].split(" ")[0].split(".").map(S=>Number(S));r=y<16||y===16&&b<2}}const l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),c=n(),f=c||l&&t.ios;return{isSafari:r||c,needPerspectiveFix:r,need3dFix:f,isWebView:l}}function xk(){return lb||(lb=k6()),lb}function T6({swiper:e,on:t,emit:r}){const n=An();let l=null,c=null;const f=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},x=()=>{!e||e.destroyed||!e.initialized||(l=new ResizeObserver(S=>{c=n.requestAnimationFrame(()=>{const{width:C,height:R}=e;let O=C,M=R;S.forEach(({contentBoxSize:P,contentRect:_,target:$})=>{$&&$!==e.el||(O=_?_.width:(P[0]||P).inlineSize,M=_?_.height:(P[0]||P).blockSize)}),(O!==C||M!==R)&&f()})}),l.observe(e.el))},y=()=>{c&&n.cancelAnimationFrame(c),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null)},b=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver<"u"){x();return}n.addEventListener("resize",f),n.addEventListener("orientationchange",b)}),t("destroy",()=>{y(),n.removeEventListener("resize",f),n.removeEventListener("orientationchange",b)})}function N6({swiper:e,extendParams:t,on:r,emit:n}){const l=[],c=An(),f=(b,S={})=>{const C=c.MutationObserver||c.WebkitMutationObserver,R=new C(O=>{if(e.__preventObserver__)return;if(O.length===1){n("observerUpdate",O[0]);return}const M=function(){n("observerUpdate",O[0])};c.requestAnimationFrame?c.requestAnimationFrame(M):c.setTimeout(M,0)});R.observe(b,{attributes:typeof S.attributes>"u"?!0:S.attributes,childList:e.isElement||(typeof S.childList>"u"?!0:S).childList,characterData:typeof S.characterData>"u"?!0:S.characterData}),l.push(R)},x=()=>{if(e.params.observer){if(e.params.observeParents){const b=A6(e.hostEl);for(let S=0;S<b.length;S+=1)f(b[S])}f(e.hostEl,{childList:e.params.observeSlideChildren}),f(e.wrapperEl,{attributes:!1})}},y=()=>{l.forEach(b=>{b.disconnect()}),l.splice(0,l.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",x),r("destroy",y)}var j6={on(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const l=r?"unshift":"push";return e.split(" ").forEach(c=>{n.eventsListeners[c]||(n.eventsListeners[c]=[]),n.eventsListeners[c][l](t)}),n},once(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;function l(...c){n.off(e,l),l.__emitterProxy&&delete l.__emitterProxy,t.apply(n,c)}return l.__emitterProxy=t,n.on(e,l,r)},onAny(e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const n=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[n](e),r},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||e.split(" ").forEach(n=>{typeof t>"u"?r.eventsListeners[n]=[]:r.eventsListeners[n]&&r.eventsListeners[n].forEach((l,c)=>{(l===t||l.__emitterProxy&&l.__emitterProxy===t)&&r.eventsListeners[n].splice(c,1)})}),r},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let r,n,l;return typeof e[0]=="string"||Array.isArray(e[0])?(r=e[0],n=e.slice(1,e.length),l=t):(r=e[0].events,n=e[0].data,l=e[0].context||t),n.unshift(l),(Array.isArray(r)?r:r.split(" ")).forEach(f=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(x=>{x.apply(l,[f,...n])}),t.eventsListeners&&t.eventsListeners[f]&&t.eventsListeners[f].forEach(x=>{x.apply(l,n)})}),t}};function M6(){const e=this;let t,r;const n=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=n.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?r=e.params.height:r=n.clientHeight,!(t===0&&e.isHorizontal()||r===0&&e.isVertical())&&(t=t-parseInt(oc(n,"padding-left")||0,10)-parseInt(oc(n,"padding-right")||0,10),r=r-parseInt(oc(n,"padding-top")||0,10)-parseInt(oc(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(r)&&(r=0),Object.assign(e,{width:t,height:r,size:e.isHorizontal()?t:r}))}function R6(){const e=this;function t(z,H){return parseFloat(z.getPropertyValue(e.getDirectionLabel(H))||0)}const r=e.params,{wrapperEl:n,slidesEl:l,rtlTranslate:c,wrongRTL:f}=e,x=e.virtual&&r.virtual.enabled,y=x?e.virtual.slides.length:e.slides.length,b=Za(l,`.${e.params.slideClass}, swiper-slide`),S=x?e.virtual.slides.length:b.length;let C=[];const R=[],O=[];let M=r.slidesOffsetBefore;typeof M=="function"&&(M=r.slidesOffsetBefore.call(e));let P=r.slidesOffsetAfter;typeof P=="function"&&(P=r.slidesOffsetAfter.call(e));const _=e.snapGrid.length,$=e.slidesGrid.length,D=e.size-M-P;let F=r.spaceBetween,J=-M,te=0,le=0;if(typeof D>"u")return;typeof F=="string"&&F.indexOf("%")>=0?F=parseFloat(F.replace("%",""))/100*D:typeof F=="string"&&(F=parseFloat(F)),e.virtualSize=-F-M-P,b.forEach(z=>{c?z.style.marginLeft="":z.style.marginRight="",z.style.marginBottom="",z.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(gh(n,"--swiper-centered-offset-before",""),gh(n,"--swiper-centered-offset-after","")),r.cssMode&&(gh(n,"--swiper-slides-offset-before",`${M}px`),gh(n,"--swiper-slides-offset-after",`${P}px`));const se=r.grid&&r.grid.rows>1&&e.grid;se?e.grid.initSlides(b):e.grid&&e.grid.unsetSlides();let L;const W=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(z=>typeof r.breakpoints[z].slidesPerView<"u").length>0;for(let z=0;z<S;z+=1){L=0;const H=b[z];if(!(H&&(se&&e.grid.updateSlide(z,H,b),oc(H,"display")==="none"))){if(x&&r.slidesPerView==="auto")r.virtual.slidesPerViewAutoSlideSize&&(L=r.virtual.slidesPerViewAutoSlideSize),L&&H&&(r.roundLengths&&(L=Math.floor(L)),H.style[e.getDirectionLabel("width")]=`${L}px`);else if(r.slidesPerView==="auto"){W&&(H.style[e.getDirectionLabel("width")]="");const Z=getComputedStyle(H),ae=H.style.transform,ue=H.style.webkitTransform;if(ae&&(H.style.transform="none"),ue&&(H.style.webkitTransform="none"),r.roundLengths)L=e.isHorizontal()?HA(H,"width"):HA(H,"height");else{const ie=t(Z,"width"),X=t(Z,"padding-left"),oe=t(Z,"padding-right"),ne=t(Z,"margin-left"),fe=t(Z,"margin-right"),pe=Z.getPropertyValue("box-sizing");if(pe&&pe==="border-box")L=ie+ne+fe;else{const{clientWidth:Q,offsetWidth:re}=H;L=ie+X+oe+ne+fe+(re-Q)}}ae&&(H.style.transform=ae),ue&&(H.style.webkitTransform=ue),r.roundLengths&&(L=Math.floor(L))}else L=(D-(r.slidesPerView-1)*F)/r.slidesPerView,r.roundLengths&&(L=Math.floor(L)),H&&(H.style[e.getDirectionLabel("width")]=`${L}px`);H&&(H.swiperSlideSize=L),O.push(L),r.centeredSlides?(J=J+L/2+te/2+F,te===0&&z!==0&&(J=J-D/2-F),z===0&&(J=J-D/2-F),Math.abs(J)<1/1e3&&(J=0),r.roundLengths&&(J=Math.floor(J)),le%r.slidesPerGroup===0&&C.push(J),R.push(J)):(r.roundLengths&&(J=Math.floor(J)),(le-Math.min(e.params.slidesPerGroupSkip,le))%e.params.slidesPerGroup===0&&C.push(J),R.push(J),J=J+L+F),e.virtualSize+=L+F,te=L,le+=1}}if(e.virtualSize=Math.max(e.virtualSize,D)+P,c&&f&&(r.effect==="slide"||r.effect==="coverflow")&&(n.style.width=`${e.virtualSize+F}px`),r.setWrapperSize&&(n.style[e.getDirectionLabel("width")]=`${e.virtualSize+F}px`),se&&e.grid.updateWrapperSize(L,C),!r.centeredSlides){const z=r.slidesPerView!=="auto"&&r.slidesPerView%1!==0,H=r.snapToSlideEdge&&!r.loop&&(r.slidesPerView==="auto"||z);let Z=C.length;if(H){let ue;if(r.slidesPerView==="auto"){ue=1;let ie=0;for(let X=O.length-1;X>=0&&(ie+=O[X]+(X<O.length-1?F:0),ie<=D);X-=1)ue=O.length-X}else ue=Math.floor(r.slidesPerView);Z=Math.max(S-ue,0)}const ae=[];for(let ue=0;ue<C.length;ue+=1){let ie=C[ue];r.roundLengths&&(ie=Math.floor(ie)),H?ue<=Z&&ae.push(ie):C[ue]<=e.virtualSize-D&&ae.push(ie)}C=ae,Math.floor(e.virtualSize-D)-Math.floor(C[C.length-1])>1&&(H||C.push(e.virtualSize-D))}if(x&&r.loop){const z=O[0]+F;if(r.slidesPerGroup>1){const H=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),Z=z*r.slidesPerGroup;for(let ae=0;ae<H;ae+=1)C.push(C[C.length-1]+Z)}for(let H=0;H<e.virtual.slidesBefore+e.virtual.slidesAfter;H+=1)r.slidesPerGroup===1&&C.push(C[C.length-1]+z),R.push(R[R.length-1]+z),e.virtualSize+=z}if(C.length===0&&(C=[0]),F!==0){const z=e.isHorizontal()&&c?"marginLeft":e.getDirectionLabel("marginRight");b.filter((H,Z)=>!r.cssMode||r.loop?!0:Z!==b.length-1).forEach(H=>{H.style[z]=`${F}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let z=0;O.forEach(Z=>{z+=Z+(F||0)}),z-=F;const H=z>D?z-D:0;C=C.map(Z=>Z<=0?-M:Z>H?H+P:Z)}if(r.centerInsufficientSlides){let z=0;if(O.forEach(H=>{z+=H+(F||0)}),z-=F,z<D){const H=(D-z)/2;C.forEach((Z,ae)=>{C[ae]=Z-H}),R.forEach((Z,ae)=>{R[ae]=Z+H})}}if(Object.assign(e,{slides:b,snapGrid:C,slidesGrid:R,slidesSizesGrid:O}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){gh(n,"--swiper-centered-offset-before",`${-C[0]}px`),gh(n,"--swiper-centered-offset-after",`${e.size/2-O[O.length-1]/2}px`);const z=-e.snapGrid[0],H=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(Z=>Z+z),e.slidesGrid=e.slidesGrid.map(Z=>Z+H)}if(S!==y&&e.emit("slidesLengthChange"),C.length!==_&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),R.length!==$&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!x&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const z=`${r.containerModifierClass}backface-hidden`,H=e.el.classList.contains(z);S<=r.maxBackfaceHiddenSlides?H||e.el.classList.add(z):H&&e.el.classList.remove(z)}}function O6(e){const t=this,r=[],n=t.virtual&&t.params.virtual.enabled;let l=0,c;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const f=x=>n?t.slides[t.getSlideIndexByData(x)]:t.slides[x];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(x=>{r.push(x)});else for(c=0;c<Math.ceil(t.params.slidesPerView);c+=1){const x=t.activeIndex+c;if(x>t.slides.length&&!n)break;r.push(f(x))}else r.push(f(t.activeIndex));for(c=0;c<r.length;c+=1)if(typeof r[c]<"u"){const x=r[c].offsetHeight;l=x>l?x:l}(l||l===0)&&(t.wrapperEl.style.height=`${l}px`)}function B6(){const e=this,t=e.slides,r=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-r-e.cssOverflowAdjustment()}const YA=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function _6(e=this&&this.translate||0){const t=this,r=t.params,{slides:n,rtlTranslate:l,snapGrid:c}=t;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let f=-e;l&&(f=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let x=r.spaceBetween;typeof x=="string"&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*t.size:typeof x=="string"&&(x=parseFloat(x));for(let y=0;y<n.length;y+=1){const b=n[y];let S=b.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(S-=n[0].swiperSlideOffset);const C=(f+(r.centeredSlides?t.minTranslate():0)-S)/(b.swiperSlideSize+x),R=(f-c[0]+(r.centeredSlides?t.minTranslate():0)-S)/(b.swiperSlideSize+x),O=-(f-S),M=O+t.slidesSizesGrid[y],P=O>=0&&O<=t.size-t.slidesSizesGrid[y],_=O>=0&&O<t.size-1||M>1&&M<=t.size||O<=0&&M>=t.size;_&&(t.visibleSlides.push(b),t.visibleSlidesIndexes.push(y)),YA(b,_,r.slideVisibleClass),YA(b,P,r.slideFullyVisibleClass),b.progress=l?-C:C,b.originalProgress=l?-R:R}}function D6(e){const t=this;if(typeof e>"u"){const S=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*S||0}const r=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:l,isBeginning:c,isEnd:f,progressLoop:x}=t;const y=c,b=f;if(n===0)l=0,c=!0,f=!0;else{l=(e-t.minTranslate())/n;const S=Math.abs(e-t.minTranslate())<1,C=Math.abs(e-t.maxTranslate())<1;c=S||l<=0,f=C||l>=1,S&&(l=0),C&&(l=1)}if(r.loop){const S=t.getSlideIndexByData(0),C=t.getSlideIndexByData(t.slides.length-1),R=t.slidesGrid[S],O=t.slidesGrid[C],M=t.slidesGrid[t.slidesGrid.length-1],P=Math.abs(e);P>=R?x=(P-R)/M:x=(P+M-O)/M,x>1&&(x-=1)}Object.assign(t,{progress:l,progressLoop:x,isBeginning:c,isEnd:f}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),c&&!y&&t.emit("reachBeginning toEdge"),f&&!b&&t.emit("reachEnd toEdge"),(y&&!c||b&&!f)&&t.emit("fromEdge"),t.emit("progress",l)}const ob=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function L6(){const e=this,{slides:t,params:r,slidesEl:n,activeIndex:l}=e,c=e.virtual&&r.virtual.enabled,f=e.grid&&r.grid&&r.grid.rows>1,x=C=>Za(n,`.${r.slideClass}${C}, swiper-slide${C}`)[0];let y,b,S;if(c)if(r.loop){let C=l-e.virtual.slidesBefore;C<0&&(C=e.virtual.slides.length+C),C>=e.virtual.slides.length&&(C-=e.virtual.slides.length),y=x(`[data-swiper-slide-index="${C}"]`)}else y=x(`[data-swiper-slide-index="${l}"]`);else f?(y=t.find(C=>C.column===l),S=t.find(C=>C.column===l+1),b=t.find(C=>C.column===l-1)):y=t[l];y&&(f||(S=S6(y,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!S&&(S=t[0]),b=w6(y,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!b===0&&(b=t[t.length-1]))),t.forEach(C=>{ob(C,C===y,r.slideActiveClass),ob(C,C===S,r.slideNextClass),ob(C,C===b,r.slidePrevClass)}),e.emitSlidesClasses()}const Lg=(e,t)=>{if(!e||e.destroyed||!e.params)return;const r=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,n=t.closest(r());if(n){let l=n.querySelector(`.${e.params.lazyPreloaderClass}`);!l&&e.isElement&&(n.shadowRoot?l=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(l=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),l&&!l.lazyPreloaderManaged&&l.remove())})),l&&!l.lazyPreloaderManaged&&l.remove()}},cb=(e,t)=>{if(!e.slides[t])return;const r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},Xb=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const r=e.slides.length;if(!r||!t||t<0)return;t=Math.min(t,r);const n=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),l=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const f=l,x=[f-t];x.push(...Array.from({length:t}).map((y,b)=>f+n+b)),e.slides.forEach((y,b)=>{x.includes(y.column)&&cb(e,b)});return}const c=l+n-1;if(e.params.rewind||e.params.loop)for(let f=l-t;f<=c+t;f+=1){const x=(f%r+r)%r;(x<l||x>c)&&cb(e,x)}else for(let f=Math.max(l-t,0);f<=Math.min(c+t,r-1);f+=1)f!==l&&(f>c||f<l)&&cb(e,f)};function I6(e){const{slidesGrid:t,params:r}=e,n=e.rtlTranslate?e.translate:-e.translate;let l;for(let c=0;c<t.length;c+=1)typeof t[c+1]<"u"?n>=t[c]&&n<t[c+1]-(t[c+1]-t[c])/2?l=c:n>=t[c]&&n<t[c+1]&&(l=c+1):n>=t[c]&&(l=c);return r.normalizeSlideIndex&&(l<0||typeof l>"u")&&(l=0),l}function P6(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:l,activeIndex:c,realIndex:f,snapIndex:x}=t;let y=e,b;const S=O=>{let M=O-t.virtual.slidesBefore;return M<0&&(M=t.virtual.slides.length+M),M>=t.virtual.slides.length&&(M-=t.virtual.slides.length),M};if(typeof y>"u"&&(y=I6(t)),n.indexOf(r)>=0)b=n.indexOf(r);else{const O=Math.min(l.slidesPerGroupSkip,y);b=O+Math.floor((y-O)/l.slidesPerGroup)}if(b>=n.length&&(b=n.length-1),y===c&&!t.params.loop){b!==x&&(t.snapIndex=b,t.emit("snapIndexChange"));return}if(y===c&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=S(y);return}const C=t.grid&&l.grid&&l.grid.rows>1;let R;if(t.virtual&&l.virtual.enabled)l.loop?R=S(y):R=y;else if(C){const O=t.slides.find(P=>P.column===y);let M=parseInt(O.getAttribute("data-swiper-slide-index"),10);Number.isNaN(M)&&(M=Math.max(t.slides.indexOf(O),0)),R=Math.floor(M/l.grid.rows)}else if(t.slides[y]){const O=t.slides[y].getAttribute("data-swiper-slide-index");O?R=parseInt(O,10):R=y}else R=y;Object.assign(t,{previousSnapIndex:x,snapIndex:b,previousRealIndex:f,realIndex:R,previousIndex:c,activeIndex:y}),t.initialized&&Xb(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(f!==R&&t.emit("realIndexChange"),t.emit("slideChange"))}function F6(e,t){const r=this,n=r.params;let l=e.closest(`.${n.slideClass}, swiper-slide`);!l&&r.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(x=>{!l&&x.matches&&x.matches(`.${n.slideClass}, swiper-slide`)&&(l=x)});let c=!1,f;if(l){for(let x=0;x<r.slides.length;x+=1)if(r.slides[x]===l){c=!0,f=x;break}}if(l&&c)r.clickedSlide=l,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(l.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=f;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}n.slideToClickedSlide&&r.clickedIndex!==void 0&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}var z6={updateSize:M6,updateSlides:R6,updateAutoHeight:O6,updateSlidesOffset:B6,updateSlidesProgress:_6,updateProgress:D6,updateSlidesClasses:L6,updateActiveIndex:P6,updateClickedSlide:F6};function U6(e=this.isHorizontal()?"x":"y"){const t=this,{params:r,rtlTranslate:n,translate:l,wrapperEl:c}=t;if(r.virtualTranslate)return n?-l:l;if(r.cssMode)return l;let f=g6(c,e);return f+=t.cssOverflowAdjustment(),n&&(f=-f),f||0}function $6(e,t){const r=this,{rtlTranslate:n,params:l,wrapperEl:c,progress:f}=r;let x=0,y=0;const b=0;r.isHorizontal()?x=n?-e:e:y=e,l.roundLengths&&(x=Math.floor(x),y=Math.floor(y)),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?x:y,l.cssMode?c[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-x:-y:l.virtualTranslate||(r.isHorizontal()?x-=r.cssOverflowAdjustment():y-=r.cssOverflowAdjustment(),c.style.transform=`translate3d(${x}px, ${y}px, ${b}px)`);let S;const C=r.maxTranslate()-r.minTranslate();C===0?S=0:S=(e-r.minTranslate())/C,S!==f&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)}function V6(){return-this.snapGrid[0]}function H6(){return-this.snapGrid[this.snapGrid.length-1]}function Y6(e=0,t=this.params.speed,r=!0,n=!0,l){const c=this,{params:f,wrapperEl:x}=c;if(c.animating&&f.preventInteractionOnTransition)return!1;const y=c.minTranslate(),b=c.maxTranslate();let S;if(n&&e>y?S=y:n&&e<b?S=b:S=e,c.updateProgress(S),f.cssMode){const C=c.isHorizontal();if(t===0)x[C?"scrollLeft":"scrollTop"]=-S;else{if(!c.support.smoothScroll)return fk({swiper:c,targetPosition:-S,side:C?"left":"top"}),!0;x.scrollTo({[C?"left":"top"]:-S,behavior:"smooth"})}return!0}return t===0?(c.setTransition(0),c.setTranslate(S),r&&(c.emit("beforeTransitionStart",t,l),c.emit("transitionEnd"))):(c.setTransition(t),c.setTranslate(S),r&&(c.emit("beforeTransitionStart",t,l),c.emit("transitionStart")),c.animating||(c.animating=!0,c.onTranslateToWrapperTransitionEnd||(c.onTranslateToWrapperTransitionEnd=function(R){!c||c.destroyed||R.target===this&&(c.wrapperEl.removeEventListener("transitionend",c.onTranslateToWrapperTransitionEnd),c.onTranslateToWrapperTransitionEnd=null,delete c.onTranslateToWrapperTransitionEnd,c.animating=!1,r&&c.emit("transitionEnd"))}),c.wrapperEl.addEventListener("transitionend",c.onTranslateToWrapperTransitionEnd))),!0}var G6={getTranslate:U6,setTranslate:$6,minTranslate:V6,maxTranslate:H6,translateTo:Y6};function X6(e,t){const r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${e}ms`,r.wrapperEl.style.transitionDelay=e===0?"0ms":""),r.emit("setTransition",e,t)}function gk({swiper:e,runCallbacks:t,direction:r,step:n}){const{activeIndex:l,previousIndex:c}=e;let f=r;f||(l>c?f="next":l<c?f="prev":f="reset"),e.emit(`transition${n}`),t&&f==="reset"?e.emit(`slideResetTransition${n}`):t&&l!==c&&(e.emit(`slideChangeTransition${n}`),f==="next"?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`))}function q6(e=!0,t){const r=this,{params:n}=r;n.cssMode||(n.autoHeight&&r.updateAutoHeight(),gk({swiper:r,runCallbacks:e,direction:t,step:"Start"}))}function W6(e=!0,t){const r=this,{params:n}=r;r.animating=!1,!n.cssMode&&(r.setTransition(0),gk({swiper:r,runCallbacks:e,direction:t,step:"End"}))}var Q6={setTransition:X6,transitionStart:q6,transitionEnd:W6};function J6(e=0,t,r=!0,n,l){typeof e=="string"&&(e=parseInt(e,10));const c=this;let f=e;f<0&&(f=0);const{params:x,snapGrid:y,slidesGrid:b,previousIndex:S,activeIndex:C,rtlTranslate:R,wrapperEl:O,enabled:M}=c;if(!M&&!n&&!l||c.destroyed||c.animating&&x.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=c.params.speed);const P=Math.min(c.params.slidesPerGroupSkip,f);let _=P+Math.floor((f-P)/c.params.slidesPerGroup);_>=y.length&&(_=y.length-1);const $=-y[_];if(x.normalizeSlideIndex)for(let se=0;se<b.length;se+=1){const L=-Math.floor($*100),W=Math.floor(b[se]*100),z=Math.floor(b[se+1]*100);typeof b[se+1]<"u"?L>=W&&L<z-(z-W)/2?f=se:L>=W&&L<z&&(f=se+1):L>=W&&(f=se)}if(c.initialized&&f!==C&&(!c.allowSlideNext&&(R?$>c.translate&&$>c.minTranslate():$<c.translate&&$<c.minTranslate())||!c.allowSlidePrev&&$>c.translate&&$>c.maxTranslate()&&(C||0)!==f))return!1;f!==(S||0)&&r&&c.emit("beforeSlideChangeStart"),c.updateProgress($);let D;f>C?D="next":f<C?D="prev":D="reset";const F=c.virtual&&c.params.virtual.enabled;if(!(F&&l)&&(R&&-$===c.translate||!R&&$===c.translate))return c.updateActiveIndex(f),x.autoHeight&&c.updateAutoHeight(),c.updateSlidesClasses(),x.effect!=="slide"&&c.setTranslate($),D!=="reset"&&(c.transitionStart(r,D),c.transitionEnd(r,D)),!1;if(x.cssMode){const se=c.isHorizontal(),L=R?$:-$;if(t===0)F&&(c.wrapperEl.style.scrollSnapType="none",c._immediateVirtual=!0),F&&!c._cssModeVirtualInitialSet&&c.params.initialSlide>0?(c._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{O[se?"scrollLeft":"scrollTop"]=L})):O[se?"scrollLeft":"scrollTop"]=L,F&&requestAnimationFrame(()=>{c.wrapperEl.style.scrollSnapType="",c._immediateVirtual=!1});else{if(!c.support.smoothScroll)return fk({swiper:c,targetPosition:L,side:se?"left":"top"}),!0;O.scrollTo({[se?"left":"top"]:L,behavior:"smooth"})}return!0}const le=xk().isSafari;return F&&!l&&le&&c.isElement&&c.virtual.update(!1,!1,f),c.setTransition(t),c.setTranslate($),c.updateActiveIndex(f),c.updateSlidesClasses(),c.emit("beforeTransitionStart",t,n),c.transitionStart(r,D),t===0?c.transitionEnd(r,D):c.animating||(c.animating=!0,c.onSlideToWrapperTransitionEnd||(c.onSlideToWrapperTransitionEnd=function(L){!c||c.destroyed||L.target===this&&(c.wrapperEl.removeEventListener("transitionend",c.onSlideToWrapperTransitionEnd),c.onSlideToWrapperTransitionEnd=null,delete c.onSlideToWrapperTransitionEnd,c.transitionEnd(r,D))}),c.wrapperEl.addEventListener("transitionend",c.onSlideToWrapperTransitionEnd)),!0}function K6(e=0,t,r=!0,n){typeof e=="string"&&(e=parseInt(e,10));const l=this;if(l.destroyed)return;typeof t>"u"&&(t=l.params.speed);const c=l.grid&&l.params.grid&&l.params.grid.rows>1;let f=e;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)f=f+l.virtual.slidesBefore;else{let x;if(c){const P=f*l.params.grid.rows;x=l.slides.find(_=>_.getAttribute("data-swiper-slide-index")*1===P).column}else x=l.getSlideIndexByData(f);const y=c?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,{centeredSlides:b,slidesOffsetBefore:S,slidesOffsetAfter:C}=l.params,R=b||!!S||!!C;let O=l.params.slidesPerView;O==="auto"?O=l.slidesPerViewDynamic():(O=Math.ceil(parseFloat(l.params.slidesPerView,10)),R&&O%2===0&&(O=O+1));let M=y-x<O;if(R&&(M=M||x<Math.ceil(O/2)),n&&R&&l.params.slidesPerView!=="auto"&&!c&&(M=!1),M){const P=R?x<l.activeIndex?"prev":"next":x-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:P,slideTo:!0,activeSlideIndex:P==="next"?x+1:x-y+1,slideRealIndex:P==="next"?l.realIndex:void 0})}if(c){const P=f*l.params.grid.rows;f=l.slides.find(_=>_.getAttribute("data-swiper-slide-index")*1===P).column}else f=l.getSlideIndexByData(f)}return requestAnimationFrame(()=>{l.slideTo(f,t,r,n)}),l}function Z6(e,t=!0,r){const n=this,{enabled:l,params:c,animating:f}=n;if(!l||n.destroyed)return n;typeof e>"u"&&(e=n.params.speed);let x=c.slidesPerGroup;c.slidesPerView==="auto"&&c.slidesPerGroup===1&&c.slidesPerGroupAuto&&(x=Math.max(n.slidesPerViewDynamic("current",!0),1));const y=n.activeIndex<c.slidesPerGroupSkip?1:x,b=n.virtual&&c.virtual.enabled;if(c.loop){if(f&&!b&&c.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&c.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+y,e,t,r)}),!0}return c.rewind&&n.isEnd?n.slideTo(0,e,t,r):n.slideTo(n.activeIndex+y,e,t,r)}function e5(e,t=!0,r){const n=this,{params:l,snapGrid:c,slidesGrid:f,rtlTranslate:x,enabled:y,animating:b}=n;if(!y||n.destroyed)return n;typeof e>"u"&&(e=n.params.speed);const S=n.virtual&&l.virtual.enabled;if(l.loop){if(b&&!S&&l.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const C=x?n.translate:-n.translate;function R(D){return D<0?-Math.floor(Math.abs(D)):Math.floor(D)}const O=R(C),M=c.map(D=>R(D)),P=l.freeMode&&l.freeMode.enabled;let _=c[M.indexOf(O)-1];if(typeof _>"u"&&(l.cssMode||P)){let D;c.forEach((F,J)=>{O>=F&&(D=J)}),typeof D<"u"&&(_=P?c[D]:c[D>0?D-1:D])}let $=0;if(typeof _<"u"&&($=f.indexOf(_),$<0&&($=n.activeIndex-1),l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&($=$-n.slidesPerViewDynamic("previous",!0)+1,$=Math.max($,0))),l.rewind&&n.isBeginning){const D=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(D,e,t,r)}else if(l.loop&&n.activeIndex===0&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo($,e,t,r)}),!0;return n.slideTo($,e,t,r)}function t5(e,t=!0,r){const n=this;if(!n.destroyed)return typeof e>"u"&&(e=n.params.speed),n.slideTo(n.activeIndex,e,t,r)}function r5(e,t=!0,r,n=.5){const l=this;if(l.destroyed)return;typeof e>"u"&&(e=l.params.speed);let c=l.activeIndex;const f=Math.min(l.params.slidesPerGroupSkip,c),x=f+Math.floor((c-f)/l.params.slidesPerGroup),y=l.rtlTranslate?l.translate:-l.translate;if(y>=l.snapGrid[x]){const b=l.snapGrid[x],S=l.snapGrid[x+1];y-b>(S-b)*n&&(c+=l.params.slidesPerGroup)}else{const b=l.snapGrid[x-1],S=l.snapGrid[x];y-b<=(S-b)*n&&(c-=l.params.slidesPerGroup)}return c=Math.max(c,0),c=Math.min(c,l.slidesGrid.length-1),l.slideTo(c,e,t,r)}function s5(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:r}=e,n=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let l=e.getSlideIndexWhenGrid(e.clickedIndex),c;const f=e.isElement?"swiper-slide":`.${t.slideClass}`,x=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;c=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(c):l>(x?(e.slides.length-n)/2-(e.params.grid.rows-1):e.slides.length-n)?(e.loopFix(),l=e.getSlideIndex(Za(r,`${f}[data-swiper-slide-index="${c}"]`)[0]),hk(()=>{e.slideTo(l)})):e.slideTo(l)}else e.slideTo(l)}var n5={slideTo:J6,slideToLoop:K6,slideNext:Z6,slidePrev:e5,slideReset:t5,slideToClosest:r5,slideToClickedSlide:s5};function i5(e,t){const r=this,{params:n,slidesEl:l}=r;if(!n.loop||r.virtual&&r.params.virtual.enabled)return;const c=()=>{Za(l,`.${n.slideClass}, swiper-slide`).forEach((M,P)=>{M.setAttribute("data-swiper-slide-index",P)})},f=()=>{const O=Za(l,`.${n.slideBlankClass}`);O.forEach(M=>{M.remove()}),O.length>0&&(r.recalcSlides(),r.updateSlides())},x=r.grid&&n.grid&&n.grid.rows>1;n.loopAddBlankSlides&&(n.slidesPerGroup>1||x)&&f();const y=n.slidesPerGroup*(x?n.grid.rows:1),b=r.slides.length%y!==0,S=x&&r.slides.length%n.grid.rows!==0,C=O=>{for(let M=0;M<O;M+=1){const P=r.isElement?ay("swiper-slide",[n.slideBlankClass]):ay("div",[n.slideClass,n.slideBlankClass]);r.slidesEl.append(P)}};if(b){if(n.loopAddBlankSlides){const O=y-r.slides.length%y;C(O),r.recalcSlides(),r.updateSlides()}else iy("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");c()}else if(S){if(n.loopAddBlankSlides){const O=n.grid.rows-r.slides.length%n.grid.rows;C(O),r.recalcSlides(),r.updateSlides()}else iy("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");c()}else c();const R=n.centeredSlides||!!n.slidesOffsetBefore||!!n.slidesOffsetAfter;r.loopFix({slideRealIndex:e,direction:R?void 0:"next",initial:t})}function a5({slideRealIndex:e,slideTo:t=!0,direction:r,setTranslate:n,activeSlideIndex:l,initial:c,byController:f,byMousewheel:x}={}){const y=this;if(!y.params.loop)return;y.emit("beforeLoopFix");const{slides:b,allowSlidePrev:S,allowSlideNext:C,slidesEl:R,params:O}=y,{centeredSlides:M,slidesOffsetBefore:P,slidesOffsetAfter:_,initialSlide:$}=O,D=M||!!P||!!_;if(y.allowSlidePrev=!0,y.allowSlideNext=!0,y.virtual&&O.virtual.enabled){t&&(!D&&y.snapIndex===0?y.slideTo(y.virtual.slides.length,0,!1,!0):D&&y.snapIndex<O.slidesPerView?y.slideTo(y.virtual.slides.length+y.snapIndex,0,!1,!0):y.snapIndex===y.snapGrid.length-1&&y.slideTo(y.virtual.slidesBefore,0,!1,!0)),y.allowSlidePrev=S,y.allowSlideNext=C,y.emit("loopFix");return}let F=O.slidesPerView;F==="auto"?F=y.slidesPerViewDynamic():(F=Math.ceil(parseFloat(O.slidesPerView,10)),D&&F%2===0&&(F=F+1));const J=O.slidesPerGroupAuto?F:O.slidesPerGroup;let te=D?Math.max(J,Math.ceil(F/2)):J;te%J!==0&&(te+=J-te%J),te+=O.loopAdditionalSlides,y.loopedSlides=te;const le=y.grid&&O.grid&&O.grid.rows>1;b.length<F+te||y.params.effect==="cards"&&b.length<F+te*2?iy("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):le&&O.grid.fill==="row"&&iy("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const se=[],L=[],W=le?Math.ceil(b.length/O.grid.rows):b.length,z=c&&W-$<F&&!D;let H=z?$:y.activeIndex;typeof l>"u"?l=y.getSlideIndex(b.find(ne=>ne.classList.contains(O.slideActiveClass))):H=l;const Z=r==="next"||!r,ae=r==="prev"||!r;let ue=0,ie=0;const oe=(le?b[l].column:l)+(D&&typeof n>"u"?-F/2+.5:0);
vendor: 7,680 bytes, line 32
32if(oe<te){ue=Math.max(te-oe,J);for(let ne=0;ne<te-oe;ne+=1){const fe=ne-Math.floor(ne/W)*W;if(le){const pe=W-fe-1;for(let Q=b.length-1;Q>=0;Q-=1)b[Q].column===pe&&se.push(Q)}else se.push(W-fe-1)}}else if(oe+F>W-te){ie=Math.max(oe-(W-te*2),J),z&&(ie=Math.max(ie,F-W+$+1));for(let ne=0;ne<ie;ne+=1){const fe=ne-Math.floor(ne/W)*W;le?b.forEach((pe,Q)=>{pe.column===fe&&L.push(Q)}):L.push(fe)}}if(y.__preventObserver__=!0,requestAnimationFrame(()=>{y.__preventObserver__=!1}),y.params.effect==="cards"&&b.length<F+te*2&&(L.includes(l)&&L.splice(L.indexOf(l),1),se.includes(l)&&se.splice(se.indexOf(l),1)),ae&&se.forEach(ne=>{b[ne].swiperLoopMoveDOM=!0,R.prepend(b[ne]),b[ne].swiperLoopMoveDOM=!1}),Z&&L.forEach(ne=>{b[ne].swiperLoopMoveDOM=!0,R.append(b[ne]),b[ne].swiperLoopMoveDOM=!1}),y.recalcSlides(),O.slidesPerView==="auto"?y.updateSlides():le&&(se.length>0&&ae||L.length>0&&Z)&&y.slides.forEach((ne,fe)=>{y.grid.updateSlide(fe,ne,y.slides)}),O.watchSlidesProgress&&y.updateSlidesOffset(),t){if(se.length>0&&ae){if(typeof e>"u"){const ne=y.slidesGrid[H],pe=y.slidesGrid[H+ue]-ne;x?y.setTranslate(y.translate-pe):(y.slideTo(H+Math.ceil(ue),0,!1,!0),n&&(y.touchEventsData.startTranslate=y.touchEventsData.startTranslate-pe,y.touchEventsData.currentTranslate=y.touchEventsData.currentTranslate-pe))}else if(n){const ne=le?se.length/O.grid.rows:se.length;y.slideTo(y.activeIndex+ne,0,!1,!0),y.touchEventsData.currentTranslate=y.translate}}else if(L.length>0&&Z)if(typeof e>"u"){const ne=y.slidesGrid[H],pe=y.slidesGrid[H-ie]-ne;x?y.setTranslate(y.translate-pe):(y.slideTo(H-ie,0,!1,!0),n&&(y.touchEventsData.startTranslate=y.touchEventsData.startTranslate-pe,y.touchEventsData.currentTranslate=y.touchEventsData.currentTranslate-pe))}else{const ne=le?L.length/O.grid.rows:L.length;y.slideTo(y.activeIndex-ne,0,!1,!0)}}if(y.allowSlidePrev=S,y.allowSlideNext=C,y.controller&&y.controller.control&&!f){const ne={slideRealIndex:e,direction:r,setTranslate:n,activeSlideIndex:l,byController:!0};Array.isArray(y.controller.control)?y.controller.control.forEach(fe=>{!fe.destroyed&&fe.params.loop&&fe.loopFix({...ne,slideTo:fe.params.slidesPerView===O.slidesPerView?t:!1})}):y.controller.control instanceof y.constructor&&y.controller.control.params.loop&&y.controller.control.loopFix({...ne,slideTo:y.controller.control.params.slidesPerView===O.slidesPerView?t:!1})}y.emit("loopFix")}function l5(){const e=this,{params:t,slidesEl:r}=e;if(!t.loop||!r||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];e.slides.forEach(l=>{const c=typeof l.swiperSlideIndex>"u"?l.getAttribute("data-swiper-slide-index")*1:l.swiperSlideIndex;n[c]=l}),e.slides.forEach(l=>{l.removeAttribute("data-swiper-slide-index")}),n.forEach(l=>{r.append(l)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var o5={loopCreate:i5,loopFix:a5,loopDestroy:l5};function c5(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const r=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function u5(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var d5={setGrabCursor:c5,unsetGrabCursor:u5};function h5(e,t=this){function r(n){if(!n||n===$u()||n===An())return null;n.assignedSlot&&(n=n.assignedSlot);const l=n.closest(e);return!l&&!n.getRootNode?null:l||r(n.getRootNode().host)}return r(t)}function GA(e,t,r){const n=An(),{params:l}=e,c=l.edgeSwipeDetection,f=l.edgeSwipeThreshold;return c&&(r<=f||r>=n.innerWidth-f)?c==="prevent"?(t.preventDefault(),!0):!1:!0}function f5(e){const t=this,r=$u();let n=e;n.originalEvent&&(n=n.originalEvent);const l=t.touchEventsData;if(n.type==="pointerdown"){if(l.pointerId!==null&&l.pointerId!==n.pointerId)return;l.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(l.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){GA(t,n,n.targetTouches[0].pageX);return}const{params:c,touches:f,enabled:x}=t;if(!x||!c.simulateTouch&&n.pointerType==="mouse"||t.animating&&c.preventInteractionOnTransition)return;!t.animating&&c.cssMode&&c.loop&&t.loopFix();let y=n.target;if(c.touchEventsTarget==="wrapper"&&!b6(y,t.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||l.isTouched&&l.isMoved)return;const b=!!c.noSwipingClass&&c.noSwipingClass!=="",S=n.composedPath?n.composedPath():n.path;b&&n.target&&n.target.shadowRoot&&S&&(y=S[0]);const C=c.noSwipingSelector?c.noSwipingSelector:`.${c.noSwipingClass}`,R=!!(n.target&&n.target.shadowRoot);if(c.noSwiping&&(R?h5(C,y):y.closest(C))){t.allowClick=!0;return}if(c.swipeHandler&&!y.closest(c.swipeHandler))return;f.currentX=n.pageX,f.currentY=n.pageY;const O=f.currentX,M=f.currentY;if(!GA(t,n,O))return;Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),f.startX=O,f.startY=M,l.touchStartTime=ny(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,c.threshold>0&&(l.allowThresholdMove=!1);let P=!0;y.matches(l.focusableElements)&&(P=!1,y.nodeName==="SELECT"&&(l.isTouched=!1)),r.activeElement&&r.activeElement.matches(l.focusableElements)&&r.activeElement!==y&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!y.matches(l.focusableElements))&&r.activeElement.blur();const _=P&&t.allowTouchMove&&c.touchStartPreventDefault;(c.touchStartForcePreventDefault||_)&&!y.isContentEditable&&n.preventDefault(),c.freeMode&&c.freeMode.enabled&&t.freeMode&&t.animating&&!c.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function p5(e){const t=$u(),r=this,n=r.touchEventsData,{params:l,touches:c,rtlTranslate:f,enabled:x}=r;if(!x||!l.simulateTouch&&e.pointerType==="mouse")return;let y=e;if(y.originalEvent&&(y=y.originalEvent),y.type==="pointermove"&&(n.touchId!==null||y.pointerId!==n.pointerId))return;let b;if(y.type==="touchmove"){if(b=[...y.changedTouches].find(te=>te.identifier===n.touchId),!b||b.identifier!==n.touchId)return}else b=y;if(!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",y);return}const S=b.pageX,C=b.pageY;if(y.preventedByNestedSwiper){c.startX=S,c.startY=C;return}if(!r.allowTouchMove){y.target.matches(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(c,{startX:S,startY:C,currentX:S,currentY:C}),n.touchStartTime=ny());return}if(l.touchReleaseOnEdges&&!l.loop)if(r.isVertical()){if(C<c.startY&&r.translate<=r.maxTranslate()||C>c.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else{if(f&&(S>c.startX&&-r.translate<=r.maxTranslate()||S<c.startX&&-r.translate>=r.minTranslate()))return;if(!f&&(S<c.startX&&r.translate<=r.maxTranslate()||S>c.startX&&r.translate>=r.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==y.target&&y.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&y.target===t.activeElement&&y.target.matches(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}n.allowTouchCallbacks&&r.emit("touchMove",y),c.previousX=c.currentX,c.previousY=c.currentY,c.currentX=S,c.currentY=C;const R=c.currentX-c.startX,O=c.currentY-c.startY;if(r.params.threshold&&Math.sqrt(R**2+O**2)<r.params.threshold)return;if(typeof n.isScrolling>"u"){let te;r.isHorizontal()&&c.currentY===c.startY||r.isVertical()&&c.currentX===c.startX?n.isScrolling=!1:R*R+O*O>=25&&(te=Math.atan2(Math.abs(O),Math.abs(R))*180/Math.PI,n.isScrolling=r.isH
vendor: 11,668 bytes, line 32
32orizontal()?te>l.touchAngle:90-te>l.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",y),typeof n.startMoving>"u"&&(c.currentX!==c.startX||c.currentY!==c.startY)&&(n.startMoving=!0),n.isScrolling||y.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!l.cssMode&&y.cancelable&&y.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&y.stopPropagation();let M=r.isHorizontal()?R:O,P=r.isHorizontal()?c.currentX-c.previousX:c.currentY-c.previousY;l.oneWayMovement&&(M=Math.abs(M)*(f?1:-1),P=Math.abs(P)*(f?1:-1)),c.diff=M,M*=l.touchRatio,f&&(M=-M,P=-P);const _=r.touchesDirection;r.swipeDirection=M>0?"prev":"next",r.touchesDirection=P>0?"prev":"next";const $=r.params.loop&&!l.cssMode,D=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!n.isMoved){if($&&D&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const te=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(te)}n.allowMomentumBounce=!1,l.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",y)}if(new Date().getTime(),l._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&_!==r.touchesDirection&&$&&D&&Math.abs(M)>=1){Object.assign(c,{startX:S,startY:C,currentX:S,currentY:C,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}r.emit("sliderMove",y),n.isMoved=!0,n.currentTranslate=M+n.startTranslate;let F=!0,J=l.resistanceRatio;if(l.touchReleaseOnEdges&&(J=0),M>0?($&&D&&n.allowThresholdMove&&n.currentTranslate>(l.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(l.slidesPerView!=="auto"&&r.slides.length-l.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(F=!1,l.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+M)**J))):M<0&&($&&D&&n.allowThresholdMove&&n.currentTranslate<(l.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(l.slidesPerView!=="auto"&&r.slides.length-l.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(l.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),n.currentTranslate<r.maxTranslate()&&(F=!1,l.resistance&&(n.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-n.startTranslate-M)**J))),F&&(y.preventedByNestedSwiper=!0),!r.allowSlideNext&&r.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&r.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(n.currentTranslate=n.startTranslate),l.threshold>0)if(Math.abs(M)>l.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,c.startX=c.currentX,c.startY=c.currentY,n.currentTranslate=n.startTranslate,c.diff=r.isHorizontal()?c.currentX-c.startX:c.currentY-c.startY;return}}else{n.currentTranslate=n.startTranslate;return}!l.followFinger||l.cssMode||((l.freeMode&&l.freeMode.enabled&&r.freeMode||l.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function m5(e){const t=this,r=t.touchEventsData;let n=e;n.originalEvent&&(n=n.originalEvent);let l;if(n.type==="touchend"||n.type==="touchcancel"){if(l=[...n.changedTouches].find(te=>te.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else{if(r.touchId!==null||n.pointerId!==r.pointerId)return;l=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(t.browser.isSafari||t.browser.isWebView)))return;r.pointerId=null,r.touchId=null;const{params:f,touches:x,rtlTranslate:y,slidesGrid:b,enabled:S}=t;if(!S||!f.simulateTouch&&n.pointerType==="mouse")return;if(r.allowTouchCallbacks&&t.emit("touchEnd",n),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&f.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}f.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const C=ny(),R=C-r.touchStartTime;if(t.allowClick){const te=n.path||n.composedPath&&n.composedPath();t.updateClickedSlide(te&&te[0]||n.target,te),t.emit("tap click",n),R<300&&C-r.lastClickTime<300&&t.emit("doubleTap doubleClick",n)}if(r.lastClickTime=ny(),hk(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||x.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let O;if(f.followFinger?O=y?t.translate:-t.translate:O=-r.currentTranslate,f.cssMode)return;if(f.freeMode&&f.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:O});return}const M=O>=-t.maxTranslate()&&!t.params.loop;let P=0,_=t.slidesSizesGrid[0];for(let te=0;te<b.length;te+=te<f.slidesPerGroupSkip?1:f.slidesPerGroup){const le=te<f.slidesPerGroupSkip-1?1:f.slidesPerGroup;typeof b[te+le]<"u"?(M||O>=b[te]&&O<b[te+le])&&(P=te,_=b[te+le]-b[te]):(M||O>=b[te])&&(P=te,_=b[b.length-1]-b[b.length-2])}let $=null,D=null;f.rewind&&(t.isBeginning?D=f.virtual&&f.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&($=0));const F=(O-b[P])/_,J=P<f.slidesPerGroupSkip-1?1:f.slidesPerGroup;if(R>f.longSwipesMs){if(!f.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(F>=f.longSwipesRatio?t.slideTo(f.rewind&&t.isEnd?$:P+J):t.slideTo(P)),t.swipeDirection==="prev"&&(F>1-f.longSwipesRatio?t.slideTo(P+J):D!==null&&F<0&&Math.abs(F)>f.longSwipesRatio?t.slideTo(D):t.slideTo(P))}else{if(!f.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(n.target===t.navigation.nextEl||n.target===t.navigation.prevEl)?n.target===t.navigation.nextEl?t.slideTo(P+J):t.slideTo(P):(t.swipeDirection==="next"&&t.slideTo($!==null?$:P+J),t.swipeDirection==="prev"&&t.slideTo(D!==null?D:P))}}function XA(){const e=this,{params:t,el:r}=e;if(r&&r.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:l,snapGrid:c}=e,f=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const x=f&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!x){const y=f?e.virtual.slides:e.slides;e.slideTo(y.length-1,0,!1,!0)}else e.params.loop&&!f?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=l,e.allowSlideNext=n,e.params.watchOverflow&&c!==e.snapGrid&&e.checkOverflow()}function x5(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function g5(){const e=this,{wrapperEl:t,rtlTranslate:r,enabled:n}=e;if(!n)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let l;const c=e.maxTranslate()-e.minTranslate();c===0?l=0:l=(e.translate-e.minTranslate())/c,l!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function y5(e){const t=this;Lg(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function v5(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const yk=(e,t)=>{const r=$u(),{params:n,el:l,wrapperEl:c,device:f}=e,x=!!n.nested,y=t==="on"?"addEventListener":"removeEventListener",b=t;!l||typeof l=="string"||(r[y]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:x}),l[y]("touchstart",e.onTouchStart,{passive:!1}),l[y]("pointerdown",e.onTouchStart,{passive:!1}),r[y]("touchmove",e.onTouchMove,{passive:!1,capture:x}),r[y]("pointermove",e.onTouchMove,{passive:!1,capture:x}),r[y]("touchend",e.onTouchEnd,{passive:!0}),r[y]("pointerup",e.onTouchEnd,{passive:!0}),r[y]("pointercancel",e.onTouchEnd,{passive:!0}),r[y]("touchcancel",e.onTouchEnd,{passive:!0}),r[y]("pointerout",e.onTouchEnd,{passive:!0}),r[y]("pointerleave",e.onTouchEnd,{passive:!0}),r[y]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&l[y]("click",e.onClick,!0),n.cssMode&&c[y]("scroll",e.onScroll),n.updateOnWindowResize?e[b](f.ios||f.android?"resize orientationchange observerUpdate":"resize observerUpdate",XA,!0):e[b]("observerUpdate",XA,!0),l[y]("load",e.onLoad,{capture:!0}))};function b5(){const e=this,{params:t}=e;e.onTouchStart=f5.bind(e),e.onTouchMove=p5.bind(e),e.onTouchEnd=m5.bind(e),e.onDocumentTouchStart=v5.bind(e),t.cssMode&&(e.onScroll=g5.bind(e)),e.onClick=x5.bind(e),e.onLoad=y5.bind(e),yk(e,"on")}function w5(){yk(this,"off")}var S5={attachEvents:b5,detachEvents:w5};const qA=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function A5(){const e=this,{realIndex:t,initialized:r,params:n,el:l}=e,c=n.breakpoints;if(!c||c&&Object.keys(c).length===0)return;const f=$u(),x=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",y=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?e.el:f.querySelector(n.breakpointsBase),b=e.getBreakpoint(c,x,y);if(!b||e.currentBreakpoint===b)return;const C=(b in c?c[b]:void 0)||e.originalParams,R=qA(e,n),O=qA(e,C),M=e.params.grabCursor,P=C.grabCursor,_=n.enabled;R&&!O?(l.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!R&&O&&(l.classList.add(`${n.containerModifierClass}grid`),(C.grid.fill&&C.grid.fill==="column"||!C.grid.fill&&n.grid.fill==="column")&&l.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),M&&!P?e.unsetGrabCursor():!M&&P&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(le=>{if(typeof C[le]>"u")return;const se=n[le]&&n[le].enabled,L=C[le]&&C[le].enabled;se&&!L&&e[le].disable(),!se&&L&&e[le].enable()});const $=C.direction&&C.direction!==n.direction,D=n.loop&&(C.slidesPerView!==n.slidesPerView||$),F=n.loop;$&&r&&e.changeDirection(),ai(e.params,C);const J=e.params.enabled,te=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),_&&!J?e.disable():!_&&J&&e.enable(),e.currentBreakpoint=b,e.emit("_beforeBreakpoint",C),r&&(D?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!F&&te?(e.loopCreate(t),e.updateSlides()):F&&!te&&e.loopDestroy()),e.emit("breakpoint",C)}function E5(e,t="window",r){if(!e||t==="container"&&!r)return;let n=!1;const l=An(),c=t==="window"?l.innerHeight:r.clientHeight,f=Object.keys(e).map(x=>{if(typeof x=="string"&&x.indexOf("@")===0){const y=parseFloat(x.substr(1));return{value:c*y,point:x}}return{value:x,point:x}});f.sort((x,y)=>
vendor: 4,666 bytes, line 32
32parseInt(x.value,10)-parseInt(y.value,10));for(let x=0;x<f.length;x+=1){const{point:y,value:b}=f[x];t==="window"?l.matchMedia(`(min-width: ${b}px)`).matches&&(n=y):b<=r.clientWidth&&(n=y)}return n||"max"}var C5={setBreakpoint:A5,getBreakpoint:E5};function k5(e,t){const r=[];return e.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(l=>{n[l]&&r.push(t+l)}):typeof n=="string"&&r.push(t+n)}),r}function T5(){const e=this,{classNames:t,params:r,rtl:n,el:l,device:c}=e,f=k5(["initialized",r.direction,{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:c.android},{ios:c.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...f),l.classList.add(...t),e.emitContainerClasses()}function N5(){const e=this,{el:t,classNames:r}=e;!t||typeof t=="string"||(t.classList.remove(...r),e.emitContainerClasses())}var j5={addClasses:T5,removeClasses:N5};function M5(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:n}=r;if(n){const l=e.slides.length-1,c=e.slidesGrid[l]+e.slidesSizesGrid[l]+n*2;e.isLocked=e.size>c}else e.isLocked=e.snapGrid.length===1;r.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),r.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var R5={checkOverflow:M5},qb={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function O5(e,t){return function(n={}){const l=Object.keys(n)[0],c=n[l];if(typeof c!="object"||c===null){ai(t,n);return}if(e[l]===!0&&(e[l]={enabled:!0}),l==="navigation"&&e[l]&&e[l].enabled&&!e[l].prevEl&&!e[l].nextEl&&(e[l].auto=!0),["pagination","scrollbar"].indexOf(l)>=0&&e[l]&&e[l].enabled&&!e[l].el&&(e[l].auto=!0),!(l in e&&"enabled"in c)){ai(t,n);return}typeof e[l]=="object"&&!("enabled"in e[l])&&(e[l].enabled=!0),e[l]||(e[l]={enabled:!1}),ai(t,n)}}const ub={eventsEmitter:j6,update:z6,translate:G6,transition:Q6,slide:n5,loop:o5,grabCursor:d5,events:S5,breakpoints:C5,checkOverflow:R5,classes:j5},db={};let U1=class Wl{constructor(...t){let r,n;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?n=t[0]:[r,n]=t,n||(n={}),n=ai({},n),r&&!n.el&&(n.el=r);const l=$u();if(n.el&&typeof n.el=="string"&&l.querySelectorAll(n.el).length>1){const y=[];return l.querySelectorAll(n.el).forEach(b=>{const S=ai({},n,{el:b});y.push(new Wl(S))}),y}const c=this;c.__swiper__=!0,c.support=pk(),c.device=mk({userAgent:n.userAgent}),c.browser=xk(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=[...c.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEac
vendor: 8,318 bytes, line 32
32h(y=>{typeof y=="function"&&c.modules.indexOf(y)<0&&c.modules.push(y)});const f={};c.modules.forEach(y=>{y({params:n,swiper:c,extendParams:O5(n,f),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})});const x=ai({},qb,f);return c.params=ai({},x,db,n),c.originalParams=ai({},c.params),c.passedParams=ai({},n),c.params&&c.params.on&&Object.keys(c.params.on).forEach(y=>{c.on(y,c.params.on[y])}),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:r,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return c.params.direction==="horizontal"},isVertical(){return c.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:r,params:n}=this,l=Za(r,`.${n.slideClass}, swiper-slide`),c=VA(l[0]);return VA(t)-c}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(r=>r.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:r,params:n}=t;t.slides=Za(r,`.${n.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,r){const n=this;t=Math.min(Math.max(t,0),1);const l=n.minTranslate(),f=(n.maxTranslate()-l)*t+l;n.translateTo(f,typeof r>"u"?0:r),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=t.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",r.join(" "))}getSlideClasses(t){const r=this;return r.destroyed?"":t.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=[];t.slides.forEach(n=>{const l=t.getSlideClasses(n);r.push({slideEl:n,classNames:l}),t.emit("_slideClass",n,l)}),t.emit("_slideClasses",r)}slidesPerViewDynamic(t="current",r=!1){const n=this,{params:l,slides:c,slidesGrid:f,slidesSizesGrid:x,size:y,activeIndex:b}=n;let S=1;if(typeof l.slidesPerView=="number")return l.slidesPerView;if(l.centeredSlides){let C=c[b]?Math.ceil(c[b].swiperSlideSize):0,R;for(let O=b+1;O<c.length;O+=1)c[O]&&!R&&(C+=Math.ceil(c[O].swiperSlideSize),S+=1,C>y&&(R=!0));for(let O=b-1;O>=0;O-=1)c[O]&&!R&&(C+=c[O].swiperSlideSize,S+=1,C>y&&(R=!0))}else if(t==="current")for(let C=b+1;C<c.length;C+=1)(r?f[C]+x[C]-f[b]<y:f[C]-f[b]<y)&&(S+=1);else for(let C=b-1;C>=0;C-=1)f[b]-f[C]<y&&(S+=1);return S}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:r,params:n}=t;n.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(f=>{f.complete&&Lg(t,f)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function l(){const f=t.rtlTranslate?t.translate*-1:t.translate,x=Math.min(Math.max(f,t.maxTranslate()),t.minTranslate());t.setTranslate(x),t.updateActiveIndex(),t.updateSlidesClasses()}let c;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)l(),n.autoHeight&&t.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&t.isEnd&&!n.centeredSlides){const f=t.virtual&&n.virtual.enabled?t.virtual.slides:t.slides;c=t.slideTo(f.length-1,0,!1,!0)}else c=t.slideTo(t.activeIndex,0,!1,!0);c||l()}n.watchOverflow&&r!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,r=!0){const n=this,l=n.params.direction;return t||(t=l==="horizontal"?"vertical":"horizontal"),t===l||t!=="horizontal"&&t!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${l}`),n.el.classList.add(`${n.params.containerModifierClass}${t}`),n.emitContainerClasses(),n.params.direction=t,n.slides.forEach(c=>{t==="vertical"?c.style.width="":c.style.height=""}),n.emit("changeDirection"),r&&n.update()),n}changeLanguageDirection(t){const r=this;r.rtl&&t==="rtl"||!r.rtl&&t==="ltr"||(r.rtl=t==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(t){const r=this;if(r.mounted)return!0;let n=t||r.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=r,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);const l=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let f=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(l()):Za(n,l())[0];return!f&&r.params.createElements&&(f=ay("div",r.params.wrapperClass),n.append(f),Za(n,`.${r.params.slideClass}`).forEach(x=>{f.append(x)})),Object.assign(r,{el:n,wrapperEl:f,slidesEl:r.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:f,hostEl:r.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||oc(n,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||oc(n,"direction")==="rtl"),wrongRTL:oc(f,"display")==="-webkit-box"}),!0}init(t){const r=this;if(r.initialized||r.mount(t)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(void 0,!0),r.attachEvents();const l=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&l.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),l.forEach(c=>{c.complete?Lg(r,c):c.addEventListener("load",f=>{Lg(r,f.target)})}),Xb(r),r.initialized=!0,Xb(r),r.emit("init"),r.emit("afterInit"),r}destroy(t=!0,r=!0){const n=this,{params:l,el:c,wrapperEl:f,slides:x}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),l.loop&&n.loopDestroy(),r&&(n.removeClasses(),c&&typeof c!="string"&&c.removeAttribute("style"),f&&f.removeAttribute("style"),x&&x.length&&x.forEach(y=>{y.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass),y.removeAttribute("style"),y.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(y=>{n.off(y)}),t!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),m6(n)),n.destroyed=!0),null}static extendDefaults(t){ai(db,t)}static get extendedDefaults(){return db}static get defaults(){return qb}static installModule(t){Wl.prototype.__modules__||(Wl.prototype.__modules__=[]);const r=Wl.prototype.__modules__;typeof t=="function"&&r.indexOf(t)<0&&r.push(t)}static use(t){return Array.isArray(t)?(t.forEach(r=>
vendor: 13,179 bytes, line 32
32Wl.installModule(r)),Wl):(Wl.installModule(t),Wl)}};Object.keys(ub).forEach(e=>{Object.keys(ub[e]).forEach(t=>{U1.prototype[t]=ub[e][t]})});U1.use([T6,N6]);const vk=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Du(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Eh(e,t){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Du(t[n])&&Du(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:Eh(e[n],t[n]):e[n]=t[n]})}function bk(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function wk(e={}){return e.pagination&&typeof e.pagination.el>"u"}function Sk(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Ak(e=""){const t=e.split(" ").map(n=>n.trim()).filter(n=>!!n),r=[];return t.forEach(n=>{r.indexOf(n)<0&&r.push(n)}),r.join(" ")}function B5(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function _5({swiper:e,slides:t,passedParams:r,changedParams:n,nextEl:l,prevEl:c,scrollbarEl:f,paginationEl:x}){const y=n.filter(L=>L!=="children"&&L!=="direction"&&L!=="wrapperClass"),{params:b,pagination:S,navigation:C,scrollbar:R,virtual:O,thumbs:M}=e;let P,_,$,D,F,J,te,le;n.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&b.thumbs&&(!b.thumbs.swiper||b.thumbs.swiper.destroyed)&&(P=!0),n.includes("controller")&&r.controller&&r.controller.control&&b.controller&&!b.controller.control&&(_=!0),n.includes("pagination")&&r.pagination&&(r.pagination.el||x)&&(b.pagination||b.pagination===!1)&&S&&!S.el&&($=!0),n.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||f)&&(b.scrollbar||b.scrollbar===!1)&&R&&!R.el&&(D=!0),n.includes("navigation")&&r.navigation&&(r.navigation.prevEl||c)&&(r.navigation.nextEl||l)&&(b.navigation||b.navigation===!1)&&C&&!C.prevEl&&!C.nextEl&&(F=!0);const se=L=>{e[L]&&(e[L].destroy(),L==="navigation"?(e.isElement&&(e[L].prevEl.remove(),e[L].nextEl.remove()),b[L].prevEl=void 0,b[L].nextEl=void 0,e[L].prevEl=void 0,e[L].nextEl=void 0):(e.isElement&&e[L].el.remove(),b[L].el=void 0,e[L].el=void 0))};n.includes("loop")&&e.isElement&&(b.loop&&!r.loop?J=!0:!b.loop&&r.loop?te=!0:le=!0),y.forEach(L=>{if(Du(b[L])&&Du(r[L]))Object.assign(b[L],r[L]),(L==="navigation"||L==="pagination"||L==="scrollbar")&&"enabled"in r[L]&&!r[L].enabled&&se(L);else{const W=r[L];(W===!0||W===!1)&&(L==="navigation"||L==="pagination"||L==="scrollbar")?W===!1&&se(L):b[L]=r[L]}}),y.includes("controller")&&!_&&e.controller&&e.controller.control&&b.controller&&b.controller.control&&(e.controller.control=b.controller.control),n.includes("children")&&t&&O&&b.virtual.enabled?(O.slides=t,O.update(!0)):n.includes("virtual")&&O&&b.virtual.enabled&&(t&&(O.slides=t),O.update(!0)),n.includes("children")&&t&&b.loop&&(le=!0),P&&M.init()&&M.update(!0),_&&(e.controller.control=b.controller.control),$&&(e.isElement&&(!x||typeof x=="string")&&(x=document.createElement("div"),x.classList.add("swiper-pagination"),x.part.add("pagination"),e.el.appendChild(x)),x&&(b.pagination.el=x),S.init(),S.render(),S.update()),D&&(e.isElement&&(!f||typeof f=="string")&&(f=document.createElement("div"),f.classList.add("swiper-scrollbar"),f.part.add("scrollbar"),e.el.appendChild(f)),f&&(b.scrollbar.el=f),R.init(),R.updateSize(),R.setTranslate()),F&&(e.isElement&&((!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-next"),Gb(l,e.navigation.arrowSvg),l.part.add("button-next"),e.el.appendChild(l)),(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-button-prev"),Gb(c,e.navigation.arrowSvg),c.part.add("button-prev"),e.el.appendChild(c))),l&&(b.navigation.nextEl=l),c&&(b.navigation.prevEl=c),C.init(),C.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),n.includes("direction")&&e.changeDirection(r.direction,!1),(J||le)&&e.loopDestroy(),(te||le)&&e.loopCreate(),e.update()}function D5(e={},t=!0){const r={on:{}},n={},l={};Eh(r,qb),r._emitClasses=!0,r.init=!1;const c={},f=vk.map(y=>y.replace(/_/,"")),x=Object.assign({},e);return Object.keys(x).forEach(y=>{typeof e[y]>"u"||(f.indexOf(y)>=0?Du(e[y])?(r[y]={},l[y]={},Eh(r[y],e[y]),Eh(l[y],e[y])):(r[y]=e[y],l[y]=e[y]):y.search(/on[A-Z]/)===0&&typeof e[y]=="function"?t?n[`${y[2].toLowerCase()}${y.substr(3)}`]=e[y]:r.on[`${y[2].toLowerCase()}${y.substr(3)}`]=e[y]:c[y]=e[y])}),["navigation","pagination","scrollbar"].forEach(y=>{r[y]===!0&&(r[y]={}),r[y]===!1&&delete r[y]}),{params:r,passedParams:l,rest:c,events:n}}function L5({el:e,nextEl:t,prevEl:r,paginationEl:n,scrollbarEl:l,swiper:c},f){bk(f)&&t&&r&&(c.params.navigation.nextEl=t,c.originalParams.navigation.nextEl=t,c.params.navigation.prevEl=r,c.originalParams.navigation.prevEl=r),wk(f)&&n&&(c.params.pagination.el=n,c.originalParams.pagination.el=n),Sk(f)&&l&&(c.params.scrollbar.el=l,c.originalParams.scrollbar.el=l),c.init(e)}function I5(e,t,r,n,l){const c=[];if(!t)return c;const f=y=>{c.indexOf(y)<0&&c.push(y)};if(r&&n){const y=n.map(l),b=r.map(l);y.join("")!==b.join("")&&f("children"),n.length!==r.length&&f("children")}return vk.filter(y=>y[0]==="_").map(y=>y.replace(/_/,"")).forEach(y=>{if(y in e&&y in t)if(Du(e[y])&&Du(t[y])){const b=Object.keys(e[y]),S=Object.keys(t[y]);b.length!==S.length?f(y):(b.forEach(C=>{e[y][C]!==t[y][C]&&f(y)}),S.forEach(C=>{e[y][C]!==t[y][C]&&f(y)}))}else e[y]!==t[y]&&f(y)}),c}const P5=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ly.apply(this,arguments)}function Ek(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Ck(e){const t=[];return nr.Children.toArray(e).forEach(r=>{Ek(r)?t.push(r):r.props&&r.props.children&&Ck(r.props.children).forEach(n=>t.push(n))}),t}function F5(e){const t=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return nr.Children.toArray(e).forEach(n=>{if(Ek(n))t.push(n);else if(n.props&&n.props.slot&&r[n.props.slot])r[n.props.slot].push(n);else if(n.props&&n.props.children){const l=Ck(n.props.children);l.length>0?l.forEach(c=>t.push(c)):r["container-end"].push(n)}else r["container-end"].push(n)}),{slides:t,slots:r}}function z5(e,t,r){if(!r)return null;const n=S=>{let C=S;return S<0?C=t.length+S:C>=t.length&&(C=C-t.length),C},l=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:c,to:f}=r,x=e.params.loop?-t.length:0,y=e.params.loop?t.length*2:t.length,b=[];for(let S=x;S<y;S+=1)S>=c&&S<=f&&b.push(t[n(S)]);return b.map((S,C)=>nr.cloneElement(S,{swiper:e,style:l,key:S.props.virtualIndex||S.key||`slide-${C}`}))}function Ip(e,t){return typeof window>"u"?Y.useEffect(e,t):Y.useLayoutEffect(e,t)}const WA=Y.createContext(null),U5=Y.createContext(null),kk=Y.forwardRef(({className:e,tag:t="div",wrapperTag:r="div",children:n,onSwiper:l,...c}={},f)=>{let x=!1;const[y,b]=Y.useState("swiper"),[S,C]=Y.useState(null),[R,O]=Y.useState(!1),M=Y.useRef(!1),P=Y.useRef(null),_=Y.useRef(null),$=Y.useRef(null),D=Y.useRef(null),F=Y.useRef(null),J=Y.useRef(null),te=Y.useRef(null),le=Y.useRef(null),{params:se,passedParams:L,rest:W,events:z}=D5(c),{slides:H,slots:Z}=F5(n),ae=()=>{O(!R)};Object.assign(se.on,{_containerClasses(ne,fe){b(fe)}});const ue=()=>{Object.assign(se.on,z),x=!0;const ne={...se};if(delete ne.wrapperClass,_.current=new U1(ne),_.current.virtual&&_.current.params.virtual.enabled){_.current.virtual.slides=H;const fe={cache:!1,slides:H,renderExternal:C,renderExternalUpdate:!1};Eh(_.current.params.virtual,fe),Eh(_.current.originalParams.virtual,fe)}};P.current||ue(),_.current&&_.current.on("_beforeBreakpoint",ae);const ie=()=>{x||!z||!_.current||Object.keys(z).forEach(ne=>{_.current.on(ne,z[ne])})},X=()=>{!z||!_.current||Object.keys(z).forEach(ne=>{_.current.off(ne,z[ne])})};Y.useEffect(()=>()=>{_.current&&_.current.off("_beforeBreakpoint",ae)}),Y.useEffect(()=>{!M.current&&_.current&&(_.current.emitSlidesClasses(),M.current=!0)}),Ip(()=>{if(f&&(f.current=P.current),!!P.current)return _.current.destroyed&&ue(),L5({el:P.current,nextEl:F.current,prevEl:J.current,paginationEl:te.current,scrollbarEl:le.current,swiper:_.current},se),l&&!_.current.destroyed&&l(_.current),()=>{_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}},[]),Ip(()=>{ie();const ne=I5(L,$.current,H,D.current,fe=>fe.key);return $.current=L,D.current=H,ne.length&&_.current&&!_.current.destroyed&&_5({swiper:_.current,slides:H,passedParams:L,changedParams:ne,nextEl:F.current,prevEl:J.current,scrollbarEl:le.current,paginationEl:te.current}),()=>{X()}}),Ip(()=>{P5(_.current)},[S]);function oe(){return se.virtual?z5(_.current,H,S):H.map((ne,fe)=>nr.cloneElement(ne,{swiper:_.current,swiperSlideIndex:fe}))}return nr.createElement(t,ly({ref:P,className:Ak(`${y}${e?` ${e}`:""}`)},W),nr.createElement(U5.Provider,{value:_.current},Z["container-start"],nr.createElement(r,{className:B5(se.wrapperClass)},Z["wrapper-start"],oe(),Z["wrapper-end"]),bk(se)&&nr.createElement(nr.Fragment,null,nr.createElement("div",{ref:J,className:"swiper-button-prev"}),nr.createElement("div",{ref:F,className:"swiper-button-next"})),Sk(se)&&nr.createElement("div",{ref:le,className:"swiper-scrollbar"}),wk(se)&&nr.createElement("div",{ref:te,className:"swiper-pagination"}),Z["container-end"]))});kk.displayName="Swiper";const Tk=Y.forwardRef(({tag:e="div",children:t,className:r="",swiper:n,zoom:l,lazy:c,virtualIndex:f,swiperSlideIndex:x,...y}={},b)=>{const S=Y.useRef(null),[C,R]=Y.useState("swiper-slide"),[O,M]=Y.useState(!1);function P(F,J,te){J===S.current&&R(te)}Ip(()=>{if(typeof x<"u"&&(S.current.swiperSlideIndex=x),b&&(b.current=S.current),!(!S.current||!n)){if(n.destroyed){C!=="swiper-slide"&&R("swiper-slide");return}return n.on("_slideClass",P),()=>{n&&n.off("_slideClass",P)}}}),Ip(()=>{n&&S.current&&!n.destroyed&&R(n.getSlideClasses(S.current))},[n]);const _={isActive:C.indexOf("swiper-slide-active")>=0,isVisible:C.indexOf("swiper-slide-visible")>=0,isPrev:C.indexOf("swiper-slide-prev")>=0,isNext:C.indexOf("swiper-slide-next")>=0},$=()=>typeof t=="function"?t(_):t,D=()=>{M(!0)};return nr.createElement(e,ly({ref:S,className:Ak(`${C}${r?` ${r}`:""}`),"data-swiper-slide-index":f,onLoad:D},y),l&&nr.createElement(WA.Provider,{value:_},nr.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},$(),c&&!O&&nr.createElement("div",{className:"swiper-lazy-preloader",ref:F=>{F&&(F.lazyPreloaderManaged=!0)}}))),!l&&nr.createElement(WA.Provider,{value:_},$(),c&&!O&&nr.createElement("div",{className:"swiper-lazy-preloader",ref:F=>{F&&(F.lazyPreloaderManaged=!0)}})))});Tk.displayName="SwiperSlide";function $5(e,t,r,n){return e.params.createElements&&Object.keys(n).forEac
vendor: 4,839 bytes, line 32
32h(l=>{if(!r[l]&&r.auto===!0){let c=Za(e.el,`.${n[l]}`)[0];c||(c=ay("div",n[l]),c.className=n[l],e.el.append(c)),r[l]=c,t[l]=c}}),r}const QA='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function V5({swiper:e,extendParams:t,on:r,emit:n}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:QA};function l(O){let M;return O&&typeof O=="string"&&e.isElement&&(M=e.el.querySelector(O)||e.hostEl.querySelector(O),M)?M:(O&&(typeof O=="string"&&(M=[...document.querySelectorAll(O)]),e.params.uniqueNavElements&&typeof O=="string"&&M&&M.length>1&&e.el.querySelectorAll(O).length===1?M=e.el.querySelector(O):M&&M.length===1&&(M=M[0])),O&&!M?O:M)}function c(O,M){const P=e.params.navigation;O=Xl(O),O.forEach(_=>{_&&(_.classList[M?"add":"remove"](...P.disabledClass.split(" ")),_.tagName==="BUTTON"&&(_.disabled=M),e.params.watchOverflow&&e.enabled&&_.classList[e.isLocked?"add":"remove"](P.lockClass))})}function f(){const{nextEl:O,prevEl:M}=e.navigation;if(e.params.loop){c(M,!1),c(O,!1);return}c(M,e.isBeginning&&!e.params.rewind),c(O,e.isEnd&&!e.params.rewind)}function x(O){O.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function y(O){O.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function b(){const O=e.params.navigation;if(e.params.navigation=$5(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(O.nextEl||O.prevEl))return;let M=l(O.nextEl),P=l(O.prevEl);Object.assign(e.navigation,{nextEl:M,prevEl:P}),M=Xl(M),P=Xl(P);const _=($,D)=>{if($){if(O.addIcons&&$.matches(".swiper-button-next,.swiper-button-prev")&&!$.querySelector("svg")){const F=document.createElement("div");Gb(F,QA),$.appendChild(F.querySelector("svg")),F.remove()}$.addEventListener("click",D==="next"?y:x)}!e.enabled&&$&&$.classList.add(...O.lockClass.split(" "))};M.forEach($=>_($,"next")),P.forEach($=>_($,"prev"))}function S(){let{nextEl:O,prevEl:M}=e.navigation;O=Xl(O),M=Xl(M);const P=(_,$)=>{_.removeEventListener("click",$==="next"?y:x),_.classList.remove(...e.params.navigation.disabledClass.split(" "))};O.forEach(_=>P(_,"next")),M.forEach(_=>P(_,"prev"))}r("init",()=>{e.params.navigation.enabled===!1?R():(b(),f())}),r("toEdge fromEdge lock unlock",()=>{f()}),r("destroy",()=>{S()}),r("enable disable",()=>{let{nextEl:O,prevEl:M}=e.navigation;if(O=Xl(O),M=Xl(M),e.enabled){f();return}[...O,...M].filter(P=>!!P).forEach(P=>P.classList.add(e.params.navigation.lockClass))}),r("click",(O,M)=>{let{nextEl:P,prevEl:_}=e.navigation;P=Xl(P),_=Xl(_);const $=M.target;let D=_.includes($)||P.includes($);if(e.isElement&&!D){const F=M.path||M.composedPath&&M.composedPath();F&&(D=F.find(J=>P.includes(J)||_.includes(J)))}if(e.params.navigation.hideOnClick&&!D){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===$||e.pagination.el.contains($)))return;let F;P.length?F=P[0].classList.contains(e.params.navigation.hiddenClass):_.length&&(F=_[0].classList.contains(e.params.navigation.hiddenClass)),n(F===!0?"navigationShow":"navigationHide"),[...P,..._].filter(J=>!!J).forEach(J=>J.classList.toggle(e.params.navigation.hiddenClass))}});const C=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),b(),f()},R=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),S()};Object.assign(e.navigation,{enable:C,disable:R,update:f,init:b,destroy:S})}const H5="/webapp/assets/space-C3czS6LM.svg",Y5="https://stockradars-image.com",G5="https://stockradars.co/user/register",X5="https://stockradars.co/user/forgotpassword",JA=[{key:"stockradars",name:"StockRadars",image:""},{key:"globlex",name:"Globlex Securities",image:`${Y5}/images/broker/GLOBLEX.png`}],q5=ck({username:Yb().required("Please enter username"),password:Yb().required("Please enter password")}),W5=()=>{const[e,t]=Y.useState("stockradars"),[,r]=Y.useState(null),[n,l]=Y.useState(null),[c,f]=Y.useState(null),x=er(),y=yr(),b=Ye(L=>L.auth.isAuthenticated);Y.useEffect(()=>{b&&y("/",{replace:!0})},[]);const{register:S,handleSubmit:C,reset:R,formState:{errors:O,isSubmitting:
32M}}=TL({resolver:ML(q5)}),P=L=>W=>{W.target.value=W.target.value.replace(/[à¸-๿]/g,""),L(W)},{onChange:_,...$}=S("username"),{onChange:D,...F}=S("password"),J=L=>{t(JA[L].key),x(nA()),R()},te=async L=>{x(nA());const W=await x(jp({email:L.username,password:L.password,broker:e}));jp.fulfilled.match(W)?y("/"):f(W.error?.message||"Invalid email or password. Please try again.")},le=()=>{e==="globlex"?l("à¸à¸£à¸¸à¸à¸²à¸à¸´à¸à¸à¹à¸à¹à¸à¹à¸²à¸«à¸à¹à¸²à¸à¸µà¹à¹à¸à¸£ 02-672-5999"):window.open(`${X5}`,"_blank")},se=()=>{e==="globlex"?window.open("https://stockradars.co/globlex-open-account/?ref=webapp","_blank"):window.open(`${G5}`,"_blank")};return o.jsxs("div",{className:"min-h-screen flex items-center justify-center",style:{backgroundImage:`url(${H5})`,backgroundPosition:"right -15px bottom -15px",backgroundRepeat:"no-repeat"},children:[o.jsxs("div",{className:"w-full mx-4 p-8 sm:p-10",style:{maxWidth:"550px",borderRadius:"24px",backdropFilter:"blur(40px)",WebkitBackdropFilter:"blur(40px)",boxShadow:"rgba(0, 0, 0, 0.1) 0px 4px 12px",backgroundColor:"rgba(255, 255, 255, 0.05)",border:"1px solid rgba(255, 255, 255, 0.1)"},children:[o.jsx(kk,{modules:[V5],navigation:!0,loop:!0,slidesPerView:1,centeredSlides:!0,onSwiper:r,onSlideChange:L=>J(L.realIndex),className:"mb-8 broker-swiper",children:JA.map(L=>o.jsx(Tk,{children:o.jsxs("div",{className:"flex items-center justify-center gap-3 py-4",children:[o.jsx("img",{src:L.image||Mh,alt:L.name,className:"w-20 h-20 object-contain rounded-full cursor-pointer",onError:W=>{W.currentTarget.style.display="none"}}),o.jsx("h3",{className:"text-white text-xl font-semibold",children:L.name})]})},L.key))}),o.jsxs("form",{onSubmit:C(te),noValidate:!0,children:[o.jsxs("div",{className:"mb-3",children:[o.jsx("input",{type:"text",placeholder:"à¸à¸·à¹à¸à¸à¸¹à¹à¹à¸à¹à¸à¸²à¸ (Username)",className:"w-full px-4 py-3 bg-transparent border border-white/20 rounded-lg text-white placeholder-white/60 focus:outline-none focus:border-white/40",...$,onChange:P(_)}),O.username&&o.jsx("p",{className:"text-danger text-xs mt-1",children:O.username.message})]}),o.jsxs("div",{className:"mb-3",children:[o.jsx("input",{type:"password",placeholder:"รหัสà¸à¹à¸²à¸ (Password)",autoComplete:"off",className:"w-full px-4 py-3 bg-transparent border border-white/20 rounded-lg text-white placeholder-white/60 focus:outline-none focus:border-white/40",...F,onChange:P(D)}),O.password&&o.jsx("p",{className:"text-danger text-xs mt-1",children:O.password.message})]}),o.jsx("div",{className:"mb-3 text-right",children:o.jsx("button",{type:"button",onClick:le,className:"text-white/70 text-xs underline hover:text-white",children:"Forgot Password ?"})}),o.jsx("button",{type:"submit",disabled:M,className:"w-full py-3 rounded-lg text-white font-semibold disabled:opacity-50",style:{background:"linear-gradient(93.23deg, #0098FF -4.64%, #0167F6 86.17%)"},children:"Log in"})]}),o.jsx("div",{className:"mt-8 text-center",children:o.jsxs("p",{className:"text-white/60 text-sm",children:["Don't have an account ?"," ",o.jsx("button",{type:"button",onClick:se,className:"text-white underline hover:text-white/80",children:"Sign up"})]})})]}),o.jsx(Kg,{isOpen:n!==null,onClose:()=>l(null),title:"Forgot Password?",message:n??""}),o.jsx(Kg,{isOpen:c!==null,onClose:()=>f(null),type:"error",title:"Login failed",message:c??""})]})},Q5=e=>{const t=e.toLowerCase();return t==="mbket"||t==="042"||t==="keitrade"?"mbket":t==="kss"||t==="krungsri"?"krungsri":t==="kstradeplus"||t==="kstp"?"kstradeplus":t==="globlex"?"globlex":"yuanta"},J5=()=>{const[e]=YE(),t=er(),r=yr();return Y.useEffect(()=>{const n=e.get("ticketID")||e.get("ticketid")||e.get("TicketID")||"",l=e.get("brokerID")||e.get("brokerid")||e.get("BrokerID")||e.get("BrokerId")||"yuanta",c=Q5(l);if(!n){r(`/auth-message?broker=${c}`,{replace:!0});return}t(Mp({ticket:n,broker:c})).then(f=>{Mp.fulfilled.match(f)?r("/",{replace:!0}):(console.error("[LoginPortal] failed:",f),r(`/auth-message?broker=${c}`,{replace:!0}))})},[]),o.jsx("div",{className:"min-h-screen flex items-center justify-center bg-app-bg",children:o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"inline-block w-12 h-12 border-4 border-primary border-t-transparent roun
32ded-full animate-spin mb-4"}),o.jsx("p",{className:"text-app-secondary",children:"Authenticating..."})]})})},K5="https://stockradars-image.com",Z5="https://stockradars.co/webapp",eI=e=>{switch(e.toUpperCase()){case"GLOBLEX":return"Globlex";case"YUANTA":return"Yuanta";case"KRUNGSRI":case"KSS":return"Krungsri";case"KSTP":return"Kasikorn";case"MBKET":return"Maybank Securities";default:return"StockRadars"}},tI=e=>{switch(e.toUpperCase()){case"GLOBLEX":return"GLOBLEX";case"YUANTA":return"YUANTA";case"KRUNGSRI":case"KSS":return"KSS";case"KSTP":return"KSEC";case"MBKET":return"MBKET";default:return"STOCKRADARS"}},rI=()=>{const[e]=YE(),t=e.get("broker")||"STOCKRADARS",r=eI(t),n=r.toUpperCase()==="STOCKRADARS"||r.toUpperCase()==="GLOBLEX",l=()=>{window.location.replace(Z5)};return o.jsx("div",{className:"min-h-screen flex items-center justify-center",children:o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"flex justify-center mb-3",children:o.jsx("img",{className:"max-h-20 img-fluid",src:`${K5}/images/broker/${tI(t)}.png`,alt:r})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-white",children:"You already logout or session expired."}),o.jsxs("p",{className:"text-white",children:["Please login via",o.jsxs("span",{children:[" ",r]})," website."]})]}),n&&o.jsxs("button",{className:"btn btn-primary w-100 mt-3",type:"button",onClick:l,children:["à¹à¸ ",r," Login"]})]})})};var sI=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,hb=Math.ceil,Ti=Math.floor,zn="[BigNumber Error] ",KA=zn+"Number primitive has more than 15 significant digits: ",oa=1e14,Lt=14,fb=9007199254740991,pb=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],ic=1e7,Fs=1e9;function Nk(e){var t,r,n,l=D.prototype={constructor:D,toString:null,valueOf:null},c=new D(1),f=20,x=4,y=-7,b=21,S=-1e7,C=1e7,R=!1,O=1,M=0,P={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},_="0123456789abcdefghijklmnopqrstuvwxyz",$=!0;function D(L,W){var z,H,Z,ae,ue,ie,X,oe,ne=this;if(!(ne instanceof D))return new D(L,W);if(W==null){if(L&&L._isBigNumber===!0){ne.s=L.s,!L.c||L.e>C?ne.c=ne.e=null:L.e<S?ne.c=[ne.e=0]:(ne.e=L.e,ne.c=L.c.slice());return}if((ie=typeof L=="number")&&L*0==0){if(ne.s=1/L<0?(L=-L,-1):1,L===~~L){for(ae=0,ue=L;ue>=10;ue/=10,ae++);ae>C?ne.c=ne.e=null:(ne.e=ae,ne.c=[L]);return}oe=String(L)}else{if(!sI.test(oe=String(L)))return n(ne,oe,ie);ne.s=oe.charCodeAt(0)==45?(oe=oe.slice(1),-1):1}(ae=oe.indexOf("."))>-1&&(oe=oe.replace(".","")),(ue=oe.search(/e/i))>0?(ae<0&&(ae=ue),ae+=+oe.slice(ue+1),oe=oe.substring(0,ue)):ae<0&&(ae=oe.length)}else{if(ss(W,2,_.length,"Base"),W==10&&$)return ne=new D(L),le(ne,f+ne.e+1,x);if(oe=String(L),ie=typeof L=="number"){if(L*0!=0)return n(ne,oe,ie,W);if(ne.s=1/L<0?(oe=oe.slice(1),-1):1,D.DEBUG&&oe.replace(/^0\.0*|\./,"").length>15)throw Error(KA+L)}else ne.s=oe.charCodeAt(0)===45?(oe=oe.slice(1),-1):1;for(z=_.slice(0,W),ae=ue=0,X=oe.length;ue<X;ue++)if(z.indexOf(H=oe.charAt(ue))<0){if(H=="."){if(ue>ae){ae=X;continue}}else if(!Z&&(oe==oe.toUpperCase()&&(oe=oe.toLowerCase())||oe==oe.toLowerCase()&&(oe=oe.toUpperCase()))){Z=!0,ue=-1,ae=0;continue}return n(ne,String(L),ie,W)}ie=!1,oe=r(oe,W,10,ne.s),(ae=oe.indexOf("."))>-1?oe=oe.replace(".",""):ae=oe.length}for(ue=0;oe.charCodeAt(ue)===48;ue++);for(X=oe.length;oe.charCodeAt(--X)===48;);if(oe=oe.slice(ue,++X)){if(X-=ue,ie&&D.DEBUG&&X>15&&(L>fb||L!==Ti(L)))throw Error(KA+ne.s*L);if((ae=ae-ue-1)>C)ne.c=ne.e=null;else if(ae<S)ne.c=[ne.e=0];else{if(ne.e=ae,ne.c=[],ue=(ae+1)%Lt,ae<0&&(ue+=Lt),ue<X){for(ue&&ne.c.push(+oe.slice(0,ue)),X-=Lt;ue<X;)ne.c.push(+oe.slice(ue,ue+=Lt));ue=Lt-(oe=oe.slice(ue)).length}else ue-=X;for(;ue--;oe+="0");ne.c.push(+oe)}}else ne.c=[ne.e=0]}D.clone=Nk,D.ROUND_UP=0,D.ROUND_DOWN=1,D.ROUND_CEIL=2,D.ROUND_FLOOR=3,D.ROUND_HALF_UP=4,D.ROUND_HALF_DOWN=5,D.ROUND_HALF_EVEN=6,D.ROUND_HALF_CEIL=7,D.ROUND_HALF_FLOOR=8,D.EUCLID=9,D.config=D.set=function(L){var W,z;if(L!=null)if(typeof L=="object"){if(L.hasOwnProperty(W="DECIMAL_PLACES")&&(z=L[W],ss(z,0,Fs,W),f=z),L.hasOwnProperty(W="ROUNDING_MODE")&&(z=L[W],ss(z,0,8,W),x=z),L.hasOwnProperty(W="EXPONENTIAL_AT")&&(z=L[W],z&&z.pop?(ss(z[0],-Fs,0,W),ss(z[1],0,Fs,W),y=z[0],b=z[1]):(ss(z,-Fs,Fs,W),y=-(b=z<0?-z:z))),L.hasOwnProperty(W="RANGE"))if(z=L[W],z&&z.pop)ss(z[0],-Fs,-1,W),ss(z[1],1,Fs,W),S=z[0],C=z[1];else if(ss(z,-Fs,Fs,W),z)S=-(C=z<0?-z:z);else throw Error(zn+W+" cannot be zero: "+z);if(L.hasOwnProperty(W="CRYPTO"))if(z=L[W],z===!!z)if(z)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))R=z;else throw R=!z,Error(zn+"crypto unavailable");else R=z;else throw Error(zn+W+" not true or false: "+z);if(L.hasOwnProperty(W="MODULO_MODE")&&(z=L[W],ss(z,0,9,W),O=z),L.hasOwnProperty(W="POW_PRECISION")&&(z=L[W],ss(z,0,Fs,W),M=z),L.hasOwnProperty(W="FORMAT"))if(z=L[W],typeof z=="object")P=z;else throw Error(zn+W+" not an object: "+z);if(L.hasOwnProperty(W="ALPHABET"))if(z=L[W],typeof z=="string"&&!/^.?$|[+\-.\
vendor: 15,466 bytes, line 32
32s]|(.).*\1/.test(z))$=z.slice(0,10)=="0123456789",_=z;else throw Error(zn+W+" invalid: "+z)}else throw Error(zn+"Object expected: "+L);return{DECIMAL_PLACES:f,ROUNDING_MODE:x,EXPONENTIAL_AT:[y,b],RANGE:[S,C],CRYPTO:R,MODULO_MODE:O,POW_PRECISION:M,FORMAT:P,ALPHABET:_}},D.isBigNumber=function(L){if(!L||L._isBigNumber!==!0)return!1;if(!D.DEBUG)return!0;var W,z,H=L.c,Z=L.e,ae=L.s;e:if({}.toString.call(H)=="[object Array]"){if((ae===1||ae===-1)&&Z>=-Fs&&Z<=Fs&&Z===Ti(Z)){if(H[0]===0){if(Z===0&&H.length===1)return!0;break e}if(W=(Z+1)%Lt,W<1&&(W+=Lt),String(H[0]).length==W){for(W=0;W<H.length;W++)if(z=H[W],z<0||z>=oa||z!==Ti(z))break e;if(z!==0)return!0}}}else if(H===null&&Z===null&&(ae===null||ae===1||ae===-1))return!0;throw Error(zn+"Invalid BigNumber: "+L)},D.maximum=D.max=function(){return J(arguments,-1)},D.minimum=D.min=function(){return J(arguments,1)},D.random=(function(){var L=9007199254740992,W=Math.random()*L&2097151?function(){return Ti(Math.random()*L)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(z){var H,Z,ae,ue,ie,X=0,oe=[],ne=new D(c);if(z==null?z=f:ss(z,0,Fs),ue=hb(z/Lt),R)if(crypto.getRandomValues){for(H=crypto.getRandomValues(new Uint32Array(ue*=2));X<ue;)ie=H[X]*131072+(H[X+1]>>>11),ie>=9e15?(Z=crypto.getRandomValues(new Uint32Array(2)),H[X]=Z[0],H[X+1]=Z[1]):(oe.push(ie%1e14),X+=2);X=ue/2}else if(crypto.randomBytes){for(H=crypto.randomBytes(ue*=7);X<ue;)ie=(H[X]&31)*281474976710656+H[X+1]*1099511627776+H[X+2]*4294967296+H[X+3]*16777216+(H[X+4]<<16)+(H[X+5]<<8)+H[X+6],ie>=9e15?crypto.randomBytes(7).copy(H,X):(oe.push(ie%1e14),X+=7);X=ue/7}else throw R=!1,Error(zn+"crypto unavailable");if(!R)for(;X<ue;)ie=W(),ie<9e15&&(oe[X++]=ie%1e14);for(ue=oe[--X],z%=Lt,ue&&z&&(ie=pb[Lt-z],oe[X]=Ti(ue/ie)*ie);oe[X]===0;oe.pop(),X--);if(X<0)oe=[ae=0];else{for(ae=-1;oe[0]===0;oe.splice(0,1),ae-=Lt);for(X=1,ie=oe[0];ie>=10;ie/=10,X++);X<Lt&&(ae-=Lt-X)}return ne.e=ae,ne.c=oe,ne}})(),D.sum=function(){for(var L=1,W=arguments,z=new D(W[0]);L<W.length;)z=z.plus(W[L++]);return z},r=(function(){var L="0123456789";function W(z,H,Z,ae){for(var ue,ie=[0],X,oe=0,ne=z.length;oe<ne;){for(X=ie.length;X--;ie[X]*=H);for(ie[0]+=ae.indexOf(z.charAt(oe++)),ue=0;ue<ie.length;ue++)ie[ue]>Z-1&&(ie[ue+1]==null&&(ie[ue+1]=0),ie[ue+1]+=ie[ue]/Z|0,ie[ue]%=Z)}return ie.reverse()}return function(z,H,Z,ae,ue){var ie,X,oe,ne,fe,pe,Q,re,ge=z.indexOf("."),ye=f,Te=x;for(ge>=0&&(ne=M,M=0,z=z.replace(".",""),re=new D(H),pe=re.pow(z.length-ge),M=ne,re.c=W(ql(Ci(pe.c),pe.e,"0"),10,Z,L),re.e=re.c.length),Q=W(z,H,Z,ue?(ie=_,L):(ie=L,_)),oe=ne=Q.length;Q[--ne]==0;Q.pop());if(!Q[0])return ie.charAt(0);if(ge<0?--oe:(pe.c=Q,pe.e=oe,pe.s=ae,pe=t(pe,re,ye,Te,Z),Q=pe.c,fe=pe.r,oe=pe.e),X=oe+ye+1,ge=Q[X],ne=Z/2,fe=fe||X<0||Q[X+1]!=null,fe=Te<4?(ge!=null||fe)&&(Te==0||Te==(pe.s<0?3:2)):ge>ne||ge==ne&&(Te==4||fe||Te==6&&Q[X-1]&1||Te==(pe.s<0?8:7)),X<1||!Q[0])z=fe?ql(ie.charAt(1),-ye,ie.charAt(0)):ie.charAt(0);else{if(Q.length=X,fe)for(--Z;++Q[--X]>Z;)Q[X]=0,X||(++oe,Q=[1].concat(Q));for(ne=Q.length;!Q[--ne];);for(ge=0,z="";ge<=ne;z+=ie.charAt(Q[ge++]));z=ql(z,oe,ie.charAt(0))}return z}})(),t=(function(){function L(H,Z,ae){var ue,ie,X,oe,ne=0,fe=H.length,pe=Z%ic,Q=Z/ic|0;for(H=H.slice();fe--;)X=H[fe]%ic,oe=H[fe]/ic|0,ue=Q*X+oe*pe,ie=pe*X+ue%ic*ic+ne,ne=(ie/ae|0)+(ue/ic|0)+Q*oe,H[fe]=ie%ae;return ne&&(H=[ne].concat(H)),H}function W(H,Z,ae,ue){var ie,X;if(ae!=ue)X=ae>ue?1:-1;else for(ie=X=0;ie<ae;ie++)if(H[ie]!=Z[ie]){X=H[ie]>Z[ie]?1:-1;break}return X}function z(H,Z,ae,ue){for(var ie=0;ae--;)H[ae]-=ie,ie=H[ae]<Z[ae]?1:0,H[ae]=ie*ue+H[ae]-Z[ae];for(;!H[0]&&H.length>1;H.splice(0,1));}return function(H,Z,ae,ue,ie){var X,oe,ne,fe,pe,Q,re,ge,ye,Te,_e,Qe,Je,it,gt,bt,Xt,Nt=H.s==Z.s?1:-1,xt=H.c,jt=Z.c;if(!xt||!xt[0]||!jt||!jt[0])return new D(!H.s||!Z.s||(xt?jt&&xt[0]==jt[0]:!jt)?NaN:xt&&xt[0]==0||!jt?Nt*0:Nt/0);for(ge=new D(Nt),ye=ge.c=[],oe=H.e-Z.e,Nt=ae+oe+1,ie||(ie=oa,oe=Ni(H.e/Lt)-Ni(Z.e/Lt),Nt=Nt/Lt|0),ne=0;jt[ne]==(xt[ne]||0);ne++);if(jt[ne]>(xt[ne]||0)&&oe--,Nt<0)ye.push(1),fe=!0;else{for(it=xt.length,bt=jt.length,ne=0,Nt+=2,pe=Ti(ie/(jt[0]+1)),pe>1&&(jt=L(jt,pe,ie),xt=L(xt,pe,ie),bt=jt.length,it=xt.length),Je=bt,Te=xt.slice(0,bt),_e=Te.length;_e<bt;Te[_e++]=0);Xt=jt.slice(),Xt=[0].concat(Xt),gt=jt[0],jt[1]>=ie/2&>++;do{if(pe=0,X=W(jt,Te,bt,_e),X<0){if(Qe=Te[0],bt!=_e&&(Qe=Qe*ie+(Te[1]||0)),pe=Ti(Qe/gt),pe>1)for(pe>=ie&&(pe=ie-1),Q=L(jt,pe,ie),re=Q.length,_e=Te.length;W(Q,Te,re,_e)==1;)pe--,z(Q,bt<re?Xt:jt,re,ie),re=Q.length,X=1;else pe==0&&(X=pe=1),Q=jt.slice(),re=Q.length;if(re<_e&&(Q=[0].concat(Q)),z(Te,Q,_e,ie),_e=Te.length,X==-1)for(;W(jt,Te,bt,_e)<1;)pe++,z(Te,bt<_e?Xt:jt,_e,ie),_e=Te.length}else X===0&&(pe++,Te=[0]);ye[ne++]=pe,Te[0]?Te[_e++]=xt[Je]||0:(Te=[xt[Je]],_e=1)}while((Je++<it||Te[0]!=null)&&Nt--);fe=Te[0]!=null,ye[0]||ye.splice(0,1)}if(ie==oa){for(ne=1,Nt=ye[0];Nt>=10;Nt/=10,ne++);le(ge,ae+(ge.e=ne+oe*Lt-1)+1,ue,fe)}else ge.e=oe,ge.r=+fe;return ge}})();function F(L,W,z,H){var Z,ae,ue,ie,X;if(z==null?z=x:ss(z,0,8),!L.c)return L.toString();if(Z=L.c[0],ue=L.e,W==null)X=Ci(L.c),X=H==1||H==2&&(ue<=y||ue>=b)?Mx(X,ue):ql(X,ue,"0");else if(L=le(new D(L),W,z),ae=L.e,X=Ci(L.c),ie=X.length,H==1||H==2&&(W<=ae||ae<=y)){for(;ie<W;X+="0",ie++);X=Mx(X,ae)}else if(W-=ue+(H===2&&ae>ue),X=ql(X,ae,"0"),ae+1>ie){if(--W>0)for(X+=".";W--;X+="0");}else if(W+=ae-ie,W>0)for(ae+1==ie&&(X+=".");W--;X+="0");return L.s<0&&Z?"-"+X:X}function J(L,W){for(var z,H,Z=1,ae=new D(L[0]);Z<L.length;Z++)H=new D(L[Z]),(!H.s||(z=wu(ae,H))===W||z===0&&ae.s===W)&&(ae=H);return ae}function te(L,W,z){for(var H=1,Z=W.length;!W[--Z];W.pop());for(Z=W[0];Z>=10;Z/=10,H++);return(z=H+z*Lt-1)>C?L.c=L.e=null:z<S?L.c=[L.e=0]:(L.e=z,L.c=W),L}n=(function(){var L=/^(-?)0([xbo])(?=\w[\w.]*$)/i,W=/^([^.]+)\.$/,z=/^\.([^.]+)$/,H=/^-?(Infinity|NaN)$/,Z=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(ae,ue,ie,X){var oe,ne=ie?ue:ue.replace(Z,"");if(H.test(ne))ae.s=isNaN(ne)?null:ne<0?-1:1;else{if(!ie&&(ne=ne.replace(L,function(fe,pe,Q){return oe=(Q=Q.toLowerCase())=="x"?16:Q=="b"?2:8,!X||X==oe?pe:fe}),X&&(oe=X,ne=ne.replace(W,"$1").replace(z,"0.$1")),ue!=ne))return new D(ne,oe);if(D.DEBUG)throw Error(zn+"Not a"+(X?" base "+X:"")+" number: "+ue);ae.s=null}ae.c=ae.e=null}})();function le(L,W,z,H){var Z,ae,ue,ie,X,oe,ne,fe=L.c,pe=pb;if(fe){e:{for(Z=1,ie=fe[0];ie>=10;ie/=10,Z++);if(ae=W-Z,ae<0)ae+=Lt,ue=W,X=fe[oe=0],ne=Ti(X/pe[Z-ue-1]%10);else if(oe=hb((ae+1)/Lt),oe>=fe.length)if(H){for(;fe.length<=oe;fe.push(0));X=ne=0,Z=1,ae%=Lt,ue=ae-Lt+1}else break e;else{for(X=ie=fe[oe],Z=1;ie>=10;ie/=10,Z++);ae%=Lt,ue=ae-Lt+Z,ne=ue<0?0:Ti(X/pe[Z-ue-1]%10)}if(H=H||W<0||fe[oe+1]!=null||(ue<0?X:X%pe[Z-ue-1]),H=z<4?(ne||H)&&(z==0||z==(L.s<0?3:2)):ne>5||ne==5&&(z==4||H||z==6&&(ae>0?ue>0?X/pe[Z-ue]:0:fe[oe-1])%10&1||z==(L.s<0?8:7)),W<1||!fe[0])return fe.length=0,H?(W-=L.e+1,fe[0]=pe[(Lt-W%Lt)%Lt],L.e=-W||0):fe[0]=L.e=0,L;if(ae==0?(fe.length=oe,ie=1,oe--):(fe.length=oe+1,ie=pe[Lt-ae],fe[oe]=ue>0?Ti(X/pe[Z-ue]%pe[ue])*ie:0),H)for(;;)if(oe==0){for(ae=1,ue=fe[0];ue>=10;ue/=10,ae++);for(ue=fe[0]+=ie,ie=1;ue>=10;ue/=10,ie++);ae!=ie&&(L.e++,fe[0]==oa&&(fe[0]=1));break}else{if(fe[oe]+=ie,fe[oe]!=oa)break;fe[oe--]=0,ie=1}for(ae=fe.length;fe[--ae]===0;fe.pop());}L.e>C?L.c=L.e=null:L.e<S&&(L.c=[L.e=0])}return L}function se(L){var W,z=L.e;return z===null?L.toString():(W=Ci(L.c),W=z<=y||z>=b?Mx(W,z):ql(W,z,"0"),L.s<0?"-"+W:W)}return l.absoluteValue=l.abs=function(){var L=new D(this);return L.s<0&&(L.s=1),L},l.comparedTo=function(L,W){return wu(this,new D(L,W))},l.decimalPlaces=l.dp=function(L,W){var z,H,Z,ae=this;if(L!=null)return ss(L,0,Fs),W==null?W=x:ss(W,0,8),le(new D(ae),L+ae.e+1,W);if(!(z=ae.c))return null;if(H=((Z=z.length-1)-Ni(this.e/Lt))*Lt,Z=z[Z])for(;Z%10==0;Z/=10,H--);return H<0&&(H=0),H},l.dividedBy=l.div=function(L,W){return t(this,new D(L,W),f,x)},l.dividedToIntegerBy=l.idiv=function(L,W){return t(this,new D(L,W),0,1)},l.exponentiatedBy=l.pow=function(L,W){var z,H,Z,ae,ue,ie,X,oe,ne,fe=this;if(L=new D(L),L.c&&!L.isInteger())throw Error(zn+"Exponent not an integer: "+se(L));if(W!=null&&(W=new D(W)),ie=L.e>14,!fe.c||!fe.c[0]||fe.c[0]==1&&!fe.e&&fe.c.length==1||!L.c||!L.c[0])return ne=new D(Math.pow(+se(fe),ie?L.s*(2-jx(L)):+se(L))),W?ne.mod(W):ne;if(X=L.s<0,W){if(W.c?!W.c[0]:!W.s)return new D(NaN);H=!X&&fe.isInteger()&&W.isInteger(),H&&(fe=fe.mod(W))}else{if(L.e>9&&(fe.e>0||fe.e<-1||(fe.e==0?fe.c[0]>1||ie&&fe.c[1]>=24e7:fe.c[0]<8e13||ie&&fe.c[0]<=9999975e7)))return ae=fe.s<0&&jx(L)?-0:0,fe.e>-1&&(ae=1/ae),new D(X?1/ae:ae);M&&(ae=hb(M/Lt+2))}for(ie?(z=new D(.5),X&&(L.s=1),oe=jx(L)):(Z=Math.abs(+se(L)),oe=Z%2),ne=new D(c);;){if(oe){if(ne=ne.times(fe),!ne.c)break;ae?ne.c.length>ae&&(ne.c.length=ae):H&&(ne=ne.mod(W))}if(Z){if(Z=Ti(Z/2),Z===0)break;oe=Z%2}else if(L=L.times(z),le(L,L.e+1,1),L.e>14)oe=jx(L);else{if(Z=+se(L),Z===0)break;oe=Z%2}fe=fe.times(fe),ae?fe.c&&fe.c.length>ae&&(fe.c.length=ae):H&&(fe=fe.mod(W))}return H?ne:(X&&(ne=c.div(ne)),W?ne.mod(W):ae?le(ne,M,x,ue):ne)},l.integerValue=function(L){var W=new D(this);return L==null?L=x:ss(L,0,8),le(W,W.e+1,L)},l.isEqualTo=l.eq=function(L,W){return wu(this,new D(L,W))===0},l.isFinite=function(){return!!this.c},l.isGreaterThan=l.gt=function(L,W){return wu(this,new D(L,W))>0},l.isGreaterThanOrEqualTo=l.gte=function(L,W){return(W=wu(this,new D(L,W)))===1||W===0},l.isInteger=function(){return!!this.c&&Ni(this.e/Lt)>this.c.length-2},l.isLessThan=l.lt=function(L,W){return wu(this,new D(L,W))<0},l.isLessThanOrEqualTo=l.lte=function(L,W){return(W=wu(this,new D(L,W)))===-1||W===0},l.isNaN=function(){return!this.s},l.isNegative=function(){return this.s<0},l.isPositive=function(){return this.s>0},l.isZero=function(){return!!this.c&&this.c[0]==0},l.minus=function(L,W){var z,H,Z,ae,ue=this,ie=ue.s;if(L=new D(L,W),W=L.s,!ie||!W)return new D(NaN);if(ie!=W)return L.s=-W,ue.plus(L);var X=ue.e/Lt,oe=L.e/Lt,ne=ue.c,fe=L.c;if(!X||!oe){if(!ne||!fe)return ne?(L.s=-W,L):new D(fe?ue:NaN);if(!ne[0]||!fe[0])return fe[0]?(L.s=-W,L):new D(ne[0]?ue:x==3?-0:0)}if(X=Ni(X),oe=Ni(oe),ne=ne.slice(),ie=X-oe){for((ae=ie<0)?(ie=-ie,Z=ne):(oe=X,Z=fe),Z.reverse(),W=ie;W--;Z.push(0));Z.reverse()}else for(H=(ae=(ie=ne.length)<(W=fe.length))?ie:W,ie=W=0;W<H;W++)if(ne[W]!=fe[W]){ae=ne[W]<fe[W];break}if(ae&&(Z=ne,ne=fe,fe=Z,L.s=-L.s),W=(H=fe.length)-(z=ne.length),W>0)for(;W--;ne[z++]=0);for(W=oa-1;H>ie;){if(ne[--H]<fe[H]){for(z=H;z&&!ne[--z];ne[z]=W);--ne[z],ne[H]+=oa}ne[H]-=fe[H]}for(;ne[0]==0;ne.splice(0,1),--oe);return ne[0]?te(L,ne,oe):(L.s=x==3?-1:1,L.c=[L.e=0],L)},l.modulo=l.mod=function(L,W){var z,H,Z=this;return L=new D(L,W),!Z.c||!L.s||L.c&&!L.c[0]?new D(NaN):!L.c||Z.c&&!Z.c[0]?new D(Z):(O==9?(H=L.s,L.s=1,z=t(Z,L,0,3),L.s=H,z.s*=H):z=t(Z,L,0,O),L=Z.minus(z.times(L)),!L.c[0]&&O==1&&(L.s=Z.s),L)},l.multipliedBy=l.times=function(L,W){var z,H,Z,ae,ue,ie,X,oe,ne,fe,pe,Q,re,ge,ye,Te=this,_e=Te.c,Qe=(L=new D(L,W)).c;if(!_e||!Qe||!_e[0]||!Qe[0])return!Te.s||!L.s||_e&&!_e[0]&&!Qe||Qe&&!Qe[0]&&!_e?L.c=L.e=L.s=null:(L.s*=Te.s,!_e||!Qe?L.c=L.e=null:(L.c=[0],L.e=0)),L;for(H=Ni(Te.e/Lt)+Ni(L.e/Lt),L.s*=Te.s,X=_e.length,fe=Qe.length,X<fe&&(re=_e,_e=Qe,Qe=re,Z=X,X=fe,fe=Z),Z=X+fe,re=[];Z--;re.push(0));for(ge=oa,ye=ic,Z=fe;--Z>=0;){for(z=0,pe=Qe[Z]%ye,Q=Qe[Z]/ye|0,ue=X,ae=Z+ue;ae>Z;)oe=_e[--ue]%ye,ne=_e[ue]/ye|0,ie=Q*oe+ne*pe,oe=pe*oe+ie%ye*ye+re[ae]+z,z=(oe/ge|0)+(ie/ye|0)+Q*ne,re[ae--]=oe%ge;re[ae]=z}return z?++H:re.splice(0,1),te(L,re,H)},l.negated=function(){var L=new D(this);return L.s=-L.s||null,L},l.plus=function(L,W){var z,H=this,Z=H.s;if(L=new D(L,W),W=L.s,!Z||!W)return new D(NaN);if(Z!=W)return L.s=-W,H.minus(L);var ae=H.e/Lt,ue=L.e/Lt,ie=H.c,X=L.c;if(!ae||!ue){if(!ie||!X)return new D(Z/0);if(!ie[0]||!X[0])return X[0]?L:new D(ie[0]?H:Z*0)}if(ae=Ni(ae),ue=Ni(ue),ie=ie.slice(),Z=ae-ue){for(Z>0?(ue=ae,z=X):(Z=-Z,z=ie),z.reverse();Z--;z.push(0));z.reverse()}for(Z=ie.length,W=X.length,Z-W<0&&(z=X,X=ie,ie=z,W=Z),Z=0;W;)Z=(ie[--W]=ie[W]+X[W]+Z)/oa|0,ie[W]=oa===ie[W]?0:ie[W]%oa;return Z&&(ie=[Z].concat(ie),++ue),te(L,ie,ue)},l.precision=l.sd=function(L,W){var z,H,Z,ae=this;if(L!=null&&L!==!!L)return ss(L,1,Fs),W==null?W=x:ss(W,0,8),le(new D(ae),L,W);if(!(z=ae.c))return null;if(Z=z.length-1,H=Z*Lt+1,Z=z[Z]){for(;Z%10==0;Z/=10,H--);for(Z=z[0];Z>=10;Z/=10,H++);}return L&&ae.e+1>H&&(H=ae.e+1),H},l.shiftedBy=function(L){return ss(L,-fb,fb),this.times("1e"+L)},l.squareRoot=l.sqrt=function(){var L,W,z,H,Z,ae=this,ue=ae.c,ie=ae.s,X=ae.e,oe=f+4,ne=new D("0.5");if(ie!==1||!ue||!ue[0])return new D(!ie||ie<0&&(!ue||ue[0])?NaN:ue?ae:1/0);if(ie=Math.sqrt(+se(ae)),ie==0||ie==1/0?(W=Ci(ue),(W.length+X)%2==0&&(W+="0"),ie=Math.sqrt(+W),X=Ni((X+1)/2)-(X<0||X%2),ie==1/0?W="5e"+X:(W=ie.toExponential(),W=W.slice(0,W.indexOf("e")+1)+X),z=new D(W)):z=new D(ie+""),z.c[0]){for(X=z.e,ie=X+oe,ie<3&&(ie=0);;)if(Z=z,z=ne.times(Z.plus(t(ae,Z,oe,1))),Ci(Z.c).slice(0,ie)===(W=Ci(z.c)).slice(0,ie))if(z.e<X&&--ie,W=W.slice(ie-3,ie+1),W=="9999"||!H&&W=="4999"){if(!H&&(le(Z,Z.e+f+2,0),Z.times(Z).eq(ae))){z=Z;break}oe+=4,ie+=4,H=1}else{(!+W||!+W.slice(1)&&W.charAt(0)=="5")&&(le(z,z.e+f+2,1),L=!z.times(z).eq(ae));break}}return le(z,z.e+f+1,x,L)},l.toExponential=function(L,W){return L!=null&&(ss(L,0,Fs),L++),F(this,L,W,1)},l.toFixed=function(L,W){return L!=null&&(ss(L,0,Fs),L=L+this.e+1),F(this,L,W)},l.toFormat=function(L,W,z){var H,Z=this;if(z==null)L!=null&&W&&typeof W=="object"?(z=W,W=null):L&&typeof L=="object"?(z=L,L=W=null):z=P;else if(typeof z!="object")throw Error(zn+"Argument not an object: "+z);if(H=Z.toFixed(L,W),Z.c){var ae,ue=H.split("."),ie=+z.groupSize,X=+z.secondaryGroupSize,oe=z.groupSeparator||"",ne=ue[0],fe=ue[1],pe=Z.s<0,Q=pe?ne.slice(1):ne,re=Q.length;if(X&&(ae=ie,ie=X,X=ae,re-=ae),ie>0&&re>0){for(ae=re%ie||ie,ne=Q.substr(0,ae);ae<re;ae+=ie)ne+=oe+Q.substr(ae,ie);X>0&&(ne+=oe+Q.slice(ae)),pe&&(ne="-"+ne)}H=fe?ne+(z.decimalSeparator||"")+((X=+z.fractionGroupSize)?fe.replace(new RegExp("\\d{"+X+"}\\B","g"),"$&"+(z.fractionGroupSeparator||"")):fe):ne}return(z.prefix||"")+H+(z.suffix||"")},l.toFraction=function(L){var W,z,H,Z,ae,ue,ie,X,oe,ne,fe,pe,Q=this,re=Q.c;if(L!=null&&(ie=new D(L),!ie.isInteger()&&(ie.c||ie.s!==1)||ie.lt(c)))throw Error(zn+"Argument "+(ie.isInteger()?"out of range: ":"not an integer: ")+se(ie));if(!re)return new D(Q);for(W=new D(c),oe=z=new D(c),H=X=new D(c),pe=Ci(re),ae=W.e=pe.length-Q.e-1,W.c[0]=pb[(ue=ae%Lt)<0?Lt+ue:ue],L=!L||ie.comparedTo(W)>0?ae>0?W:oe:ie,ue=C,C=1/0,ie=new D(pe),X.c[0]=0;ne=t(ie,W,0,1),Z=z.plus(ne.times(H)),Z.comparedTo(L)!=1;)z=H,H=Z,oe=X.plus(ne.times(Z=oe)),X=Z,W=ie.minus(ne.times(Z=W)),ie=Z;return Z=t(L.minus(z),H,0,1),X=X.plus(Z.times(oe)),z=z.plus(Z.times(H)),X.s=oe.s=Q.s,ae=ae*2,fe=t(oe,H,ae,x).minus(Q).abs().comparedTo(t(X,z,ae,x).minus(Q).abs())<1?[oe,H]:[X,z],C=ue,fe},l.toNumber=function(){return+se(this)},l.toPrecision=function(L,W){return L!=null&&ss(L,1,Fs),F(this,L,W,2)},l.toString=function(L){var W,z=this,H=z.s,Z=z.e;return Z===null?H?(W="Infinity",H<0&&(W="-"+W)):W="NaN":(L==null?W=Z<=y||Z>=b?Mx(Ci(z.c),Z):ql(Ci(z.c),Z,"0"):L===10&&$?(z=le(new D(z),f+Z+1,x),W=ql(Ci(z.c),z.e,"0")):(ss(L,2,_.length,"Base"),W=r(ql(Ci(z.c),Z,"0"),10,L,H,!0)),H<0&&z.c[0]&&(W="-"+W)),W},l.valueOf=l.toJSON=function(){return se(this)},l._isBigNumber=!0,l[Symbol.toStringTag]="BigNumber",l[Symbol.for("nodejs.util.inspect.custom")]=l.valueOf,e!=null&&D.set(e),D}function Ni(e){var t=e|0;return e>0||e===t?t:t-1}function Ci(e){for(var t,r,n=1,l=e.length,c=e[0]+"";n<l;){for(t=e[n++]+"",r=Lt-t.length;r--;t="0"+t);c+=t}for(l=c.length;
32c.charCodeAt(--l)===48;);return c.slice(0,l+1||1)}function wu(e,t){var r,n,l=e.c,c=t.c,f=e.s,x=t.s,y=e.e,b=t.e;if(!f||!x)return null;if(r=l&&!l[0],n=c&&!c[0],r||n)return r?n?0:-x:f;if(f!=x)return f;if(r=f<0,n=y==b,!l||!c)return n?0:!l^r?1:-1;if(!n)return y>b^r?1:-1;for(x=(y=l.length)<(b=c.length)?y:b,f=0;f<x;f++)if(l[f]!=c[f])return l[f]>c[f]^r?1:-1;return y==b?0:y>b^r?1:-1}function ss(e,t,r,n){if(e<t||e>r||e!==Ti(e))throw Error(zn+(n||"Argument")+(typeof e=="number"?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function jx(e){var t=e.c.length-1;return Ni(e.e/Lt)==t&&e.c[t]%2!=0}function Mx(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function ql(e,t,r){var n,l;if(t<0){for(l=r+".";++t;l+=r);e=l+e}else if(n=e.length,++t>n){for(l=r,t-=n;--t;l+=r);e+=l}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var sl=Nk();function qe(e,t=0,r=2){if(e==null)return"N/A";if(!Number(e)&&Number(e)!==0)return String(e);const n=new sl(e).decimalPlaces(r,sl.ROUND_HALF_UP);return Number(n).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:r})}function cr(e,t=0,r=2){if(e==null)return"N/A";if(!Number(e)&&Number(e)!==0)return String(e);const n=Math.max(t,r),l=new sl(e).decimalPlaces(n,sl.ROUND_HALF_UP),c=Number(l).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n});return(l.isNegative()?-1:l.isZero()?0:1)<=0?c:`+${c}`}function Yn(e,t=2){if(e==null||e==="")return"N/A";if(isNaN(Number(e)))return String(e);const r=new sl(e);if(r.abs().isLessThan(1e6)&&(t=0),r.abs().isGreaterThanOrEqualTo(1e6)){const l=r.div(1e6).decimalPlaces(t,sl.ROUND_HALF_UP);return`${Number(l).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})} M`}const n=r.decimalPlaces(t,sl.ROUND_HALF_UP);return Number(n).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})}function nI(e,t=2){if(e==null||e==="")return"N/A";if(isNaN(Number(e)))return String(e);const r=new sl(e);if(r.abs().isGreaterThanOrEqualTo(1e6)){const l=r.div(1e6).decimalPlaces(t,sl.ROUND_HALF_UP);return`${Number(l).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})} M`}const n=r.decimalPlaces(t,sl.ROUND_HALF_UP);return Number(n).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t})}const Ct=e=>{const t=Y.useRef(e),[r,n]=Y.useState("");return Y.useEffect(()=>{if(e==null||t.current==null||e===t.current){t.current=e;return}n("animate-flash");const l=setTimeout(()=>{n("")},100);return t.current=e,()=>clearTimeout(l)},[e]),r},iI=(e,t)=>{const r=parseFloat(String(e||0)),n=parseFloat(String(t||0));return r>0?n<=.5?"green1":n>.5&&n<=3?"green2":n>3&&n<=10?"green3":n>10&&n<=20?"green4":"green5":r<0?n>-.5?"red1":n<=-.5&&n>-3?"red2":n<=-3&&n>-10?"red3":n<=-10&&n>-20?"red4":"red5":"yellow"},aI=e=>!e||e.length<=4?"text-2xl":e.length<=6?"text-xl":"text-lg",Dy=({stock:e,onClick:t,hidePercentChange:r,timeframeNA:n})=>{const l=yr(),c=er(),f=Ct(e.price),x=n?"gray":iI(e.change,e.percentChange),y=()=>
32{if(t){t();return}e.name&&(c(Gn(e.name)),l(`/realtime/${encodeURIComponent(e.name.replace(".",""))}`))};return o.jsxs("div",{className:`market-box ${x} grid gap-2 cursor-pointer`,onClick:y,children:[o.jsxs("div",{className:"flex items-center justify-between text-sm font-medium",children:[o.jsx("span",{children:n?"N/A":cr(e.change,2)}),!r&&o.jsx("span",{children:n?"N/A":`${cr(e.percentChange,2)}%`})]}),o.jsxs("div",{className:"grid text-center",children:[o.jsx("h3",{className:`${aI(e.symbol??e.name)} font-bold m-0`,children:e.symbol??e.name}),o.jsx("h5",{className:`${f} text-lg font-semibold m-0`,children:qe(e.price,2)})]})]})},lI=()=>o.jsx("thead",{children:o.jsxs("tr",{className:"h-10 text-left text-xs text-app-muted",children:[o.jsx("th",{className:"px-3 align-middle w-[160px]",children:"Symbol"}),o.jsx("th",{className:"px-3 align-middle text-right w-[80px]",children:"Last"}),o.jsx("th",{className:"px-3 align-middle text-right w-[80px]",children:"Bid"}),o.jsx("th",{className:"px-3 align-middle text-right w-[80px]",children:"Offer"}),o.jsx("th",{className:"px-3 align-middle text-right w-[80px]",children:"Change"}),o.jsx("th",{className:"px-3 align-middle text-right w-[90px]",children:"%Change"}),o.jsx("th",{className:"px-3 align-middle text-right w-[80px]",children:"High"}),o.jsx("th",{className:"px-3 align-middle text-right w-[80px]",children:"Low"}),o.jsx("th",{className:"px-3 align-middle text-right w-[80px]",children:"Prior"}),o.jsx("th",{className:"px-3 align-middle text-right w-[110px]",children:"Fund Flow"}),o.jsx("th",{className:"px-3 align-middle text-right w-[90px] text-nowrap",children:"Prj. Price"}),o.jsx("th",{className:"px-3 align-middle text-right w-[110px]",children:"Value"}),o.jsx("th",{className:"px-3 align-middle text-right w-[110px]",children:"Volume"})]})}),oI=({stock:e})=>{const t=yr(),r=er(),n=e.prior??0,l=Ir(e.price,n),c=Ir(e.bids?.[0],n,!0),f=Ir(e.offers?.[0],n,!0),x=Ir(e.high,n),y=Ir(e.low,n),b="text-yellow",S=Ir(e.projectOpen,n),C=Ir(e.fundFlow,n),R=Ct(e.price),O=Ct(e.bids?.[0]),M=Ct(e.offers?.[0]),P=Ct(e.change),_=Ct(e.percentChange),$=Ct(e.high),D=Ct(e.low),F=Ct(e.prior),J=Ct(e.projectOpen),te=Ct(e.totalValue),le=Ct(e.totalVolume),se=Ct(e.fundFlow),L=()=>{e.name&&(r(Gn(e.name)),t(`/realtime/${encodeURIComponent(e.name.replace(".",""))}`))};return o.jsxs("tr",{className:"h-10 hover:bg-app-hover cursor-pointer",onClick:L,children:[o.jsxs("td",{className:"px-3 align-middle",children:[o.jsx("div",{className:`font-medium leading-none ${l}`,children:e.symbol??e.name}),o.jsx("div",{className:"text-xs text-app-muted truncate max-w-[150px] leading-none mt-0.5",children:e.flags})]}),o.jsx("td",{className:`${R} px-3 align-middle text-right font-medium ${l}`,children:qe(e.price,2,2)}),o.jsx("td",{className:`${O} px-3 align-middle text-right ${c}`,children:qe(e.bids?.[0],2,2)}),o.jsx("td",{className:`${M} px-3 align-middle text-right ${f}`,children:qe(e.offers?.[0],2,2)}),o.jsx("td",{className:`${P} px-3 align-middle text-right ${l}`,children:cr(e.change,2,2)}),o.jsxs("td",{className:`${_} px-3 align-middle text-right font-medium ${l}`,children:[cr(e.percentChange,2,2),"%"]}),o.jsx("td",{className:`${$} px-3 align-middle text-right ${x}`,children:qe(e.high,2,2)}),o.jsx("td",{className:`${D} px-3 align-middle text-right ${y}`,children:qe(e.low,2,2)}),o.jsx("td",{className:`${F} px-3 align-middle text-right ${b}`,children:qe(e.prior,2,2)}),o.jsx("td",{className:`${se} px-3 align-middle text-right ${C}`,children:Yn(e.fundFlow)}),o.jsx("td",{className:`${J} px-3 align-middle text-right ${S}`,children:qe(e.projectOpen,2,2)}),o.jsx("td",{className:`${te} px-3 align-middle text-right`,children:Yn(e.totalValue)}),o.jsx("td",{className:`${le} px-3 align-middle text-right`,children:Yn(e.totalVolume)})]},e.name)},cI=()=>o.jsxs("tr",{className:"h-10",children:[o.jsxs("td",{className:"px-3 align-middle",children:[o.jsx("div",{className:"h-3 w-16 rounded bg-app-border animate-pulse mb-1"}),o.jsx("div",{className:"h-2 w-10 rounded bg-app-border animate-pulse"})]}),Array.from({length:11}).map((e,t)=>o.jsx("td",{className:"px-3 align-middle text-right",children:o.jsx("div",{className:"h-3 w-12 rounded bg-app-border animate-pulse ml-auto"})},t))]}),uI=({stocks:e,loading:t})=>o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("table",{className:"w-full text-sm table-fixed",children:[o.jsx(lI,{}),t?o.jsx("tbody",{children:Array.from({length:15}).map((r,n)=>o.jsx(cI,{},n))}):o.jsx("tbody",{children:e.map(r=>o.jsx(oI,{stock:r},r.name))})]})}),$1="/webapp/assets/icon-mode-stacked-CLMg5RgZ.png",V1="/webapp/assets/icon-mode-list-KU73LzwG.png",Vu=({className:e="w-16 h-16"})=>o.jsx("img",{src:Yp,alt:"loading",className:e}),Hu=()=>o.jsx("div",{className:"flex justify-center items-center h-screen",children:o.jsx(Vu,{className:"w-20 h-20"})}),mb="appearance-none bg-app-surface border border-app-border text-white text-sm rounded-lg pl-3 pr-8 py-1.5 focus:outline-none focus:ring-2 focus:ring-primary min-w-[120px]",dI=Y.memo(({stocks:e,viewType:t,loading:r})=>t==="card"?o.jsx("div",{className:"flex-1 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2 overflow-auto content-start",children:e.map(n=>o.jsx(Dy,{stock:n},n.name))}):o.jsx("div",{className:"flex-1 overflow-auto",children:o.jsx(uI,{stocks:e,loading:r})})),hI=()=>{const e=er(),t=Ye(Te=>Te.auth.isAuthenticated),r=Ye(Te=>Te.auth.broker),{list:n}=Ye(Ry),l=Ye(Oy),c=Ye(By),{selectedType:f,marketMoverStocks:x,loading:y}=Ye(Te=>Te.stocks),b=Ye(Te=>Wv(Te,x)),[S,C]=Y.useState("MA"),[R,O]=Y.useState(vu[0]),[M,P]=Y.useState(""),[_,$]=Y.useState("table"),[D,F]=Y.useState([]),[J,te]=Y.useState(!1),le=Y.useRef(S),se=Y.useRef(R),L=Y.useRef(R);Y.useEffect(()=>{le.current=S},[S]),Y.useEffect(()=>{se.current=R},[R]);const W=S.startsWith("FAV_"),z=S==="PORTFOLIO",H=!!r&&r!=="stockradars",Z=Ye(Te=>Wv(Te,D)),ae=Y.useMemo(()=>l.map(Te=>
32Te.symbol).filter(Boolean),[l]),ue=Ye(Te=>Wv(Te,ae)),ie=W?Z:z?ue:b,X=W?J:z?c:y,oe=Y.useMemo(()=>{const Te=n.map((Je,it)=>({name:Je.name,value:`FAV_${it+1}`})),_e={name:"Portfolio",value:"PORTFOLIO"},Qe=q2.map(Je=>({name:Je.name,value:Je.value}));return t?H?[...Qe,...Te,_e]:[...Qe,...Te]:Qe},[t,H,n]),ne=Y.useCallback(async Te=>{const _e=parseInt(Te.replace("FAV_",""))-1,Qe=(n[_e]?.data??[]).map(Je=>Je.symbol).filter(Boolean);if(F(Qe),Qe.length>0){te(!0),e(Fu(Qe));const Je=[];for(let it=0;it<Qe.length;it+=40)Je.push(Qe.slice(it,it+40));await Promise.all(Je.map(it=>e(Pu([it.join("|")])))),te(!1)}},[e,n]);Y.useEffect(()=>{e(ku({type:f,mktType:vu[0].mktType,stockType:vu[0].stockType}));const Te=setInterval(()=>{const _e=le.current,Qe=se.current;!_e.startsWith("FAV_")&&_e!=="PORTFOLIO"&&e(ku({type:_e,mktType:Qe.mktType,stockType:Qe.stockType,silent:!0}))},60*1e3);return()=>clearInterval(Te)},[e]);const fe=Y.useCallback(async Te=>{const _e=le.current,Qe=_e.startsWith("FAV_")||_e==="PORTFOLIO";P(""),C(Te);const Je=vu.find(it=>it.name==="All");if(Te.startsWith("FAV_"))L.current=se.current,O(Je),await ne(Te);else if(Te==="PORTFOLIO")L.current=se.current,O(Je),F([]);else{F([]);const it=Qe?L.current:se.current;Qe&&O(it),e(ku({type:Te,mktType:it.mktType,stockType:it.stockType}))}},[e,ne]),pe=Y.useCallback(Te=>{P(""),O(Te),e(ku({type:f,mktType:Te.mktType,stockType:Te.stockType}))},[e,f]),Q=Y.useCallback(()=>{P(""),$(Te=>Te==="table"?"card":"table")},[]),re=Y.useMemo(()=>M?[...ie].sort((Te,_e)=>{const Qe=(Te.name??"").toUpperCase(),Je=(_e.name??"").toUpperCase();return M==="ACS"?Qe<Je?-1:Qe>Je?1:0:Qe>Je?-1:Qe<Je?1:0}):ie,[ie,M]),[ge,ye]=Y.useState(!1);return Y.useEffect(()=>{!X&&ie.length>0&&ye(!0)},[X,ie.length]),!ge&&X?o.jsx(Hu,{}):o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden px-4 py-4",children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[o.jsxs("div",{className:"relative",children:[o.jsx("select",{value:S,onChange:Te=>fe(Te.target.value),className:mb,children:oe.map(Te=>o.jsx("option",{value:Te.value,children:Te.name},Te.value))}),o.jsx(Zl,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-app-muted"})]}),o.jsxs("div",{className:"relative",children:[o.jsx("select",{value:R.stockType,onChange:Te=>{const _e=vu.find(Qe=>Qe.stockType===Te.target.value);_e&&pe(_e)},className:mb,children:(W||z?vu.filter(Te=>Te.name==="All"):vu).map(Te=>o.jsx("option",{value:Te.stockType,children:Te.name},Te.stockType||"all"))}),o.jsx(Zl,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-app-muted"})]}),o.jsxs("div",{className:"relative",children:[o.jsxs("select",{value:M,onChange:Te=>P(Te.target.value),className:mb,children:[o.jsx("option",{value:"",children:"Sort By"}),o.jsx("option",{value:"ACS",children:"A â Z"}),o.jsx("option",{value:"DECS",children:"Z â A"})]}),o.jsx(Zl,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-app-muted"})]}),o.jsx("div",{className:"md:ml-auto flex items-center gap-2",children:o.jsx("button",{onClick:Q,className:"shrink-0 flex items-center","aria-label":"Toggle view",children:o.jsx("img",{src:_==="table"?$1:V1,width:35,alt:_==="table"?"Switch to card view":"Switch to table view"})})})]}),o.jsx(dI,{stocks:re,viewType:_,loading:X})]})},fI=()=>{const[e,t]=Y.useState(!0),r=Ye(n0),n=He.getUserId()||"",l=He.getToken()||"",c=`${an.FULL_CHART}/?symbol=${r}&userId=${n}&token=${l}&avgcost=`;return Y.useEffect(()=>{t(!0)},[r]),o.jsxs("div",{className:"relative",style:{height:"calc(100vh - 64px)",width:"100%"},children:[e&&o.jsx("div",{className:"absolute inset-0 flex justify-center items-center bg-app-bg z-10",children:o.jsx(Vu,{})}),o.jsx("iframe",{src:c,style:{height:"100%",width:"100%"},frameBorder:0,title:"Chart",onLoad:()=>t(!1)})]})},pI="/webapp/assets/icon-people-ChzGXNZX.png",mI="/webapp/assets/icon-institution-QmniJ9bH.png",xI="/webapp/assets/icon-surname-BfnmolgH.png",gI=({onMenuClick:e,allowedOrigins:t=[]})=>{const r=Y.useCallback(l=>{if(t.length>0&&!t.includes(l.origin)){console.warn("Message from unauthorized origin:",l.origin);return}l.data&&l.data.type==="onClickMenu"&&e?.(l.data.data)},[e,t]);return Y.useEffect(()=>(window.addEventListener("message",r),()=>window.removeEventListener("message",r)),[r]),{sendToIframe:Y.useCallback((l,c,f="*")=>{l.current?.contentWindow&&l.current.contentWindow.postMessage({type:"response",data:c},f)},[])}},yI="https://stockradars-image.com/images/banner/top_shareholders_background.png",vI=({tab:e,onTabChange:t})=>o.jsxs("div",{className:"relative overflow-hidden shrink-0",style:{minHeight:"clamp(120px, 20vw, 160px)"},children:[o.jsx("div",{className:"absolute inset-0 bg-center bg-cover",style:{backgroundImage:`url(${yI})`}}),o.jsx("div",{className:"absolute inset-0 bg-black/55"}),o.jsxs("div",{className:"relative z-10 flex flex-col h-full px-4 pt-3 pb-0",children:[o.jsxs("div",{className:"flex-1 mt-3",children:[o.jsx("h1",{className:"text-white text-xl font-bold leading-tight",children:"Top Shareholders"}),o.jsx("p",{className:"text-white/70 text-xs mt-1 line-clamp-2",children:"à¸à¹à¸à¸¡à¸¹à¸¥ Top Shareholders à¹à¸ªà¸à¸à¸£à¸²à¸¢à¸à¸·à¹à¸à¸à¸¹à¹à¸à¸·à¸à¸«à¸¸à¹à¸à¸£à¸²à¸¢à¹à¸«à¸à¹ à¹à¸à¸¢à¸à¹à¸²à¸à¸à¸´à¸à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸¹à¹à¸à¸·à¸à¸«à¸¸à¹à¸à¸à¸µà¹à¹à¸à¸¢à¹à¸à¸£à¹à¸à¸à¸à¸à¸¥à¸²à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹à¹à¸«à¹à¸à¸à¸£à¸°à¹à¸à¸¨à¹à¸à¸¢ (https://www.set.or.th) à¹à¸¥à¸°à¸.ล.à¸. (https://capital.sec.or.th)"})]}),o.jsx("div",{className:"flex bg-black/30 rounded-full p-1 mt-3 mb-3",children:["ranking","activity"].map(r=>o.jsx("button",{className:`flex-1 py-1.5 rounded-full text-sm font-medium transition-colors ${e===r?"bg-primary text-white":"text-white/70"}`,onClick:()=>t(r),children:r==="ranking"?"Ranking":"Activity"},r))})]})]}),bI="https://stockradars-image.com/images/banner/top_shareholders_institution_background.png",wI=({onBack:e})=>o.jsxs("div",{className:"relative overflow-hidden shrink-0",style:{minHeight:"clamp(120px, 20vw, 160px)"},children:[o.jsx("div",{className:"absolute inset-0 bg-center bg-cover",style:{backgroundImage:`url(${bI})`}}),o.jsx("div",{className:"absolute inset-0 bg-black/55"}),o.jsxs("div",{className:"relative z-10 flex flex-col h-full px-4 pt-3 pb-4",children:[o.jsx("button",{onClick:e,className:"w-10 h-10 rounded-full bg-white/20 flex items-center justify-center text-white text-lg",children:"â¹"}),o.jsxs("div",{className:"mt-3",children:[o.jsx("h1",{className:"text-white text-xl font-bold leading-tight",children:"Top Shareholders"}),o.jsx("p",{className:"text-white/70 text-xs mt-1",children:"à¹à¸ªà¸à¸à¸£à¸²à¸¢à¸à¸·à¹à¸à¸à¸¹à¹à¸à¸·à¸à¸«à¸¸à¹à¸à¸£à¸²à¸¢à¹à¸«à¸à¹ / à¸à¸¹à¹à¸à¸£à¸´à¸«à¸²à¸£ à¹à¸£à¸µà¸¢à¸à¸¥à¸³à¸à¸±à¸à¸à¸²à¸¡à¸¡à¸¹à¸¥à¸à¹à¸²à¸à¸à¸£à¹à¸"})]})]})]}),jk="/webapp/assets/icon_ranking_up-bhFKWXY0.png",Mk="/webapp/assets/icon_ranking_down-CCecy3S9.png",Rk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAHbklEQVR42u2c229UVRTG25legABT4gjBAO0IbedyzowmJEoRYoE3H0xM/AOML0Z9Jz4pGknwUWM0YmKINVITR
32HoDAQPpOUMLpS0+MCYG9VW3DwpEw6XsuL59ptOptdhOi84+8/2SlULbgfN966xz2XvtXVdHCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgipSuKxSF18baTeRKwhhPoayvRFai+5hZ6Nq1RvIqZ6t8YKPe6q8iTH4xZqis9OLjRBGzRCa00kOd4iZ3UsGkm2Njer/lSnPp/pQqj+TCe+Jz+rTyaidceO2ZVkHCuOGcduNBh9mTJ9qWl9EXgQ2uQWvkivUEOZhBpI79Ge+4r2nAMmhp2X1UBqt/qyc0vh3W0rYJRt4Jhx7NAALdBU0idaoRna4UHokhxfE62TM7hBDTod2nf3S5yQmNB595oJ3x2T+FzMeFWMaMWZbt9tJxrBsUOD0QJNM/omipr3wwN4AU9Ck9zCe+0rVZ/Tqb3si3I2nxWh1/XF7F09kZsycdG9I0Yo+VmPmPS4mBW1MMFRHLto+1S0/GI0lfSJVmiGdvEAXsAT65Ncqlwkdzj3WjG5P4sB9/SIq/VoNohLEuO52/L9s3J56xKzGqxM8FB6BzToy9nbRtO0PmiFZmiHB+IFPLG6kuep3N9F6FRRsJa/BzEqMZFDFZ9XQ9YmuEENJHeKHk9PipaL2Rl90BponjIe2F7J96ncKZ13isl1gsgXz+68e0PuX8dUf3K7tZfowfQTovOkXJ7/1Bfcf9DpTCfZ3kpeWOUWRV8oVq/v/ibJzcuT5+uqL9Vu70NWR0p7mUOiZVI03TTaLvwtyTZX8qIrF2LH5H7lu1eRXD2c6lKnEjG8S1qX4LWRenW8dZ3OZ3ZLgt8UvQWjbSQklbyoyp1Oru/8IWK/037msB5O71OnN8YKlxsjto5kFcYbI2psU0yPZPYaTT60icb59NtSyRVW7h1jQD79tlTunsKRtg3JVjuTW57kZKIxUjj66HrtpfYYbdAIrbZWckWVmy9WridnuRhRONy6Nrm5MTSDtcktTRFoMkmGRmjNW1jJFVduvli5SO7RxHoYErahWZNk0Vaq5LxllbxslRvC5FpfyUur3IzclzpCW7nzVrJoNtqrvZIrrlzfVO5H2k92F440rU622vcqVHGSRSs0Q3vgQZVWMqa5Kn5a9hyp3HS3OuPEd+WaIxj5wfBejUQUmqEdHgReVFjJD2qqsTSfiym/xd9z5axNdevRthY9mV6pBlMPS7hqINmF8duQR5fRKpqh3XgAL+DJYu/J4v0Dm082Q3FDmYSZz13oCNXMPVcqNxE3Ar3sVvns8/K7EHhOft8z4Re/hiFmaRGN0ArN0I4THF6IJ2X35IWNeGE+WXKw7EO56CcybSjoxAgmrq+XpvzKD6oU7g35elX7cpZ68kAl959d2aaIOu4+pIezz8ol6n353I96MndLX8ndCXVAI7RCs2iHB/DC3JPFG+OR8cp4NtvHmUq+ZzwX75GDoP0nsnzJNQ1y6KFCmw26EzCBPW9ynbsS30q8Ie9/Txc+wdNytN5cAfrTnfL5g/LvjJvBeEyp1UJAa6D5IDwwfWniCbyBR8arwLO78yY5aBqYMO0/kotla+Qzg+i9iZhpIBt2Dsh/ck2P56bMRDbmOr05CcZD1Tm5xzynvmptSW4JRqjKOh565CCVfJ2amVILaeSnZ5NEa6B5VscKvIFH8Mp4Fng346XxttgYAc/hPXKARj7JCXLDBFdPgn+V+EwNVluCeYleWlzKBs8knnNJ4i11Kt0eb6miSzQfspblIet70fyO+LFPnemI4Z24ah6y+Jq01NckV25Xzgd6OP2MPtu2UfetaVLHO+PaS1bPaxIHOpY40DGQclRfYp3uW92kv9kUk8tyt6ncahro4FDlUocq5RZ1Wip3xCS3+oYqOdmwTJMNfhVPNnC6sAamCznhX0OtO2zZCXHLDiv5Psnd3BiOprslV7JfXsmPrkfLqfVts62S3CNtG9AKHIq22SVVsl98ukaT+EhmL5rG0TxubeP75cYImvfRxG805UPS+L7ESr5tlnmY5R6Z3Vj+sSyD6P+19li0HstusPzGLMPBcpwwLV2pqJJnFp/dNAu2vMwhLOCydvFZX6rdJBcL6bCgLmyLzyquZJiAJZe+exJLMK1dPtqf3I4lsGYpbLAkNnzLRxdXycXAtNqVxzAd5qkTyaesXQA+JJfnvHveLGYfdcO7AHwBlTx7CwfEWPaW/OxrqeAnLa3gBmw/YbZwwHYUYd/C4V8q+boYEGzCMplDRWON8E9iwoeYZbJ6ExbP7TEbytTCJixzKnnuNko/mPCdUYmP5c8vqP7OTVYuAK/VbZRKBsy3EZpvNgt7SfV17lT9ziOF3lRzcpt9G4XV9EZo5Umes5Wh5+yYtZWhJJdbGdqeaG5GWhtJ5nbChBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYSQ/5u/ALpoNHgQ+qzyAAAAAElFTkSuQmCC",SI="https://stockradars-image.com",AI="https://stockradars-image.com/images/banner/shareholder_details_background.png",EI={up:jk,down:Mk,nochange:Rk},Ok=()=>o.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.6)",strokeWidth:"2",children:[o.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),o.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),o.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),o.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),CI=()=>o.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.6)",strokeWidth:"2",children:[o.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),Bk=({src:e,fallback:t,className:r})=>o.jsx("img",{src:e??t,alt:"avatar",className:r,onError:n=>{n.currentTarget.src=t}}),kI=({header:e})=>o.jsxs("div",{className:"relative z-10 flex flex-col justify-end h-full px-4 pt-3 pb-4 gap-3",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(Bk,{src:e.avatarSrc,fallback:e.defaultAvatar,className:"w-14 h-14 rounded-full object-cover shrink-0 border-2 border-white/30"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-white font-bold text-xl leading-tight",children:e.title}),e.count!=null&&o.jsxs("p",{className:"text-white/70 text-xs mt-0.5",children:["à¸à¸³à¸à¸§à¸ ",e.count," à¸à¸"]})]})]}),e.date&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(Ok,{}),o.jsx("span",{className:"text-white/70 text-xs",children:e.date})]})]}),TI=({header:e})=>o.jsxs("div",{className:"relative z-10 flex flex-col h-full px-4 pt-3 pb-4 gap-3",children:[o.jsx("div",{className:"flex items-center justify-end",children:o.jsx("button",{className:"w-9 h-9 rounded-full bg-black/50 flex items-center justify-center",children:e.following?o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"#FACC15",children:o.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})}):o.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})})}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(Bk,{src:e.avatarSrc,fallback:e.defaultAvatar,className:"w-12 h-12 rounded-full object-cover shrink-0 border-2 border-white/30"}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("p",{className:"text-white font-bold text-lg leading-tight truncate",children:e.title}),e.type&&o.jsx("p",{className:"text-white/60 text-xs mt-0.5",children:e.type})]}),e.rank!=null&&o.jsxs("div",{className:"flex flex-row items-center shrink-0",children:[o.jsx("p",{className:"text-white font-bold text-lg leading-none mt-0.5",children:e.rank}),e.rankChange&&o.jsx("div",{className:"w-7 h-7 flex items-center justify-center rounded-full shrink-0 bg-white/30 ms-2",children:o.jsx("img",{src:EI[e.rankChange],alt:e.rankChange,className:"w-3.5 h-3.5 object-contain"})})]}),e.count!=null&&o.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[o.jsx("span",{className:"text-white font-bold text-lg",children:e.count}),o.jsx("button",{className:"w-9 h-9 rounded-full bg-amber-500/80 flex items-center justify-center",children:o.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M7 16V4m0 0L3 8m4-4l4 4"}),o.jsx("path",{d:"M17 8v12m0 0l4-4m-4 4l-4-4"})]})})]})]}),o.jsxs("div",{className:"flex items-center gap-4",children:[e.viewCount!=null&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(CI,{}),o.jsx("span",{className:"text-white/70 text-xs",children:e.viewCount.toLocaleStr
32ing()})]}),e.date&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(Ok,{}),o.jsx("span",{className:"text-white/70 text-xs",children:e.date})]})]})]}),NI=({header:e})=>{const t=e.sectorId?`${SI}/images/sector/sector${e.sectorId}_iphone.png`:null,[r,n]=Y.useState(!1);Y.useEffect(()=>{n(!1)},[t]);const l=t&&!r?t:AI;return o.jsxs("div",{className:"relative overflow-hidden shrink-0",style:{minHeight:"clamp(120px, 20vw, 160px)"},children:[o.jsx("div",{className:"absolute inset-0 bg-bottom bg-cover",style:{backgroundImage:`url(${l})`}}),t&&!r&&o.jsx("img",{src:t,alt:"",className:"hidden",onError:()=>n(!0)}),o.jsx("div",{className:"absolute inset-0 bg-black/50"}),e.menu==="surname_profile"?o.jsx(kI,{header:e}):o.jsx(TI,{header:e})]})},ZA=({src:e,title:t,loading:r,onLoad:n,iframeRef:l,emptyState:c})=>o.jsxs("div",{className:"relative flex-1",children:[r&&o.jsx("div",{className:"absolute inset-0 flex justify-center items-center bg-app-bg z-10",children:o.jsx(Vu,{})}),e?o.jsx("iframe",{ref:l,src:e,style:{height:"100%",width:"100%",border:"none"},title:t,onLoad:n}):c??null]}),jI=e=>{if(e!=null)return e>0?"up":e<0?"down":"nochange"},MI=()=>{const e=Ye(z=>z.auth.broker)||"",[t,r]=Y.useState("ranking"),[n,l]=Y.useState(null),[c,f]=Y.useState(!0),[x,y]=Y.useState(!1),[b,S]=Y.useState(null),[C,R]=Y.useState(null),O=He.getUserId()||"",M=He.getToken()||"",P=He.getState()||"",_=t==="ranking"?"shareholder/ranking":"shareholder/activities",$=`userId=${O}&Token=${M}&state=${P}&lang=en&broker=${e}&bundle=${e}&theme=dark`,D=n?`${an.IFRAME_URL}/shareholder/ranking/${n}?${$}`:`${an.IFRAME_URL}/${_}?${$}`,F=er(),J=Sn(),te=yr(),le=Y.useRef(null),se=Y.useRef(null),L=async z=>{const H=`${z.menu}|${z.id??""}|${z.surname??""}`;if(H===se.current)return;se.current=H;let Z=null,ae=null;if(z.menu?.startsWith("see_all_")){const oe=z.menu.replace("see_all_","");l(oe),f(!0),se.current=null;return}if(z.menu==="shareholder_profile"&&z.id?(Z=`/shareholder/profile/${z.id}`,ae={menu:"shareholder_profile",title:"",type:z.type,avatarSrc:`https://stockradars-image.com/images/shareholder/${z.id}.jpg`,defaultAvatar:z.type==="institution"?mI:pI}):z.menu==="surname_profile"&&z.surname&&(Z=`/shareholder/surname/${encodeURIComponent(z.surname)}`,ae={menu:"surname_profile",title:`à¸à¸£à¸°à¸à¸¹à¸¥ ${z.surname}`,defaultAvatar:xI}),!Z||!ae)return;S(`${an.IFRAME_URL}${Z}?${$}`),y(!0);const ue=z.menu==="shareholder_profile"&&z.id?await F(Tg(z.id)).unwrap():z.menu==="surname_profile"&&z.surname?await F(Ng(z.surname)).unwrap():null;if(!ue){R(ae);return}const ie=ue.sector?.[0]?.name;let X;if(ie){const ne=(await T1(ie))?.data?.[0]?.symbol;ne&&(X=(await dC(ne))?.sectorId)}R({...ae,title:ue.name??ae.title,date:ue.update,rank:ue.rank,rankChange:jI(ue.diff),count:ue.count,viewCount:ue.viewCount,following:ue.following==="true",sectorId:X})};gI({onMenuClick:L}),Y.useEffect(()=>{const z=J.state?.menuClick;z&&(L(z),te(J.pathname,{replace:!0,state:null}))},[]),Y.useEffect(()=>{f(!0)},[t]),Y.useEffect(()=>{const z=H=>{if(!H.origin)return;const Z=H.data;if(Z){if(Z.type==="navigate"&&Z.url){const ae=Z.url.includes("?")?`${Z.url}&${$}`:`${Z.url}?${$}`;S(ae),y(!0);return}if(Z.type==="shareholder"&&Z.id){S(`${an.IFRAME_URL}/shareholder/detail/${Z.id}?${$}`),y(!0);return}typeof Z=="string"&&Z.startsWith("http")&&(S(Z),y(!0))}};return window.addEventListener("message",z),()=>window.removeEventListener("message",z)},[$]);const W=()=>{S(null),R(null),se.current=null};return o.jsxs("div",{className:"flex flex-col md:flex-row",style:{height:"calc(100vh - 64px)",width:"100%"},children:[o.jsxs("div",{className:`${b?"hidden md:flex":"flex"} relative flex-1 flex-col border-r border-app-border overflow-hidden`,children:[n?o.jsx(wI,{onBack:()=>{l(null),f(!0)}}):o.jsx(vI,{tab:t,onTabChange:r}),o.jsx(ZA,{src:D,title:"Top Shareholder List",loading:c,onLoad:()=>f(!1),iframeRef:le},n??"list")]}),o.jsxs("div",{className:`${b?"flex":"hidden md:flex"} relative flex-1 flex-col overflow-hidden`,children:[o.jsx("button",{onClick:W,className:"md:hidden absolute top-3 left-4 z-20 w-9 h-9 rounded-full bg-white/20 flex items-center justify-center text-white text-lg",children:"â¹"}),C&&o.jsx(NI,{header:C}),o.jsx(ZA,{src:b,title:"Top Shareholder Detail",loading:x,onLoad:()=>y(!1),emptyState:o.jsx("div",{className:"flex h-full items-center justify-center text-app-secondary text-sm",children:"à¹à¸¥à¸·à¸à¸à¸£à¸²à¸¢à¸à¸·à¹à¸à¸à¸²à¸à¸à¹à¸²à¸à¸à¹à¸²à¸¢à¹à¸à¸·à¹à¸à¸à¸¹à¸£à¸²à¸¢à¸¥à¸°à¹à¸à¸µà¸¢à¸"})},b??"")]})]})},RI=()=>{const[e,t]=Y.useState(!0),r=He.getUserId()||"",n=He.getToken()||"",l=He.getState()||"",f=`${an.IFRAME_URL}
32/stock-compare?userId=${r}&Token=${n}&bundle=com.siamsquared.radar&state=${l}`;return o.jsxs("div",{className:"relative",style:{height:"calc(100vh - 64px)",width:"100%"},children:[e&&o.jsx("div",{className:"absolute inset-0 flex justify-center items-center bg-app-bg z-10",children:o.jsx(Vu,{})}),o.jsx("iframe",{src:f,style:{height:"100%",width:"100%"},frameBorder:0,title:"Stock Compare",onLoad:()=>t(!1)})]})},eE="https://stockradars-image.com",tE=Y.memo(({item:e})=>{const t=yr(),r=e.I_radars??e.id,n=e.N_name??e.name??"";return o.jsxs("div",{className:"relative cursor-pointer rounded-xl overflow-hidden aspect-3/2 bg-app-surface",onClick:()=>t(`/radars/${r}`),children:[o.jsx("img",{className:"absolute inset-0 w-full h-full object-cover",src:`${eE}/images/sub_radars_bg/${r}.png`,alt:n,onError:l=>{l.currentTarget.style.display="none"}}),o.jsx("div",{className:"absolute inset-0 bg-black/40"}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-1 p-2",children:[o.jsx("img",{className:"w-12 h-12 object-contain",src:`${eE}/images/sub_radars/${r}.png`,alt:n,onError:l=>{l.currentTarget.style.display="none"}}),o.jsx("p",{className:"text-white font-semibold text-sm text-center drop-shadow",children:n})]})]})}),OI=()=>{const e=er(),t=Ye(MC),r=Ye(iD),[n,l]=Y.useState("");Y.useEffect(()=>{t.length===0&&e(Bp())},[e,t.length]);const c=n?t.filter(f=>f.name===n):t;return r&&t.length===0?o.jsx(Hu,{}):o.jsxs("div",{className:"flex flex-col gap-4 px-4 py-4 overflow-auto",children:[t.length>1&&o.jsxs("div",{className:"relative w-full sm:w-64",children:[o.jsxs("select",{value:n,onChange:f=>l(f.target.value),className:"appearance-none w-full bg-app-surface border border-app-border text-white text-sm rounded-lg pl-3 pr-8 py-1.5 focus:outline-none focus:ring-2 focus:ring-primary",children:[o.jsx("option",{value:"",children:"All Radars"}),t.map((f,x)=>o.jsx("option",{value:f.name,children:f.name},f.name??x))]}),o.jsx(Zl,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-app-muted"})]}),c.map((f,x)=>o.jsxs("div",{children:[o.jsx("div",{className:"bg-app-surface border-l-4 border-primary rounded px-3 py-2 mb-3",children:o.jsx("h2",{className:"text-white font-semibold text-sm",children:f.name})}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-2",children:f.radars.flatMap((y,b)=>y.signal?.length?[o.jsx("p",{className:"col-span-full text-app-secondary text-sm",children:y.name},`label-${b}`),...y.signal.map((S,C)=>o.jsx(tE,{item:S,groupName:y.name},S.id??`${b}-${C}`))]:[o.jsx(tE,{item:y,groupName:f.name},y.id??b)])})]},f.name??x))]})},H1=Y.createContext(!1),Ly=()=>Y.useContext(H1),BI=({stock:e,extraValues:t,onStockSelect:r})=>{const n=e.prior??0,l=Ir(e.price,n),c=Ct(e.price),f=Ct(e.change),x=Ct(e.percentChange);return o.jsxs("tr",{className:"h-10 hover:bg-app-hover cursor-pointer",onClick:()=>r?.(e),children:[o.jsxs("td",{className:"px-3 align-middle",children:[o.jsx("div",{className:`font-medium leading-none ${l}`,children:e.name}),o.jsx("div",{className:"text-xs text-app-muted leading-none mt-0.5",children:e.flags})]}),o.jsx("td",{className:`${c} px-3 align-middle text-right font-medium ${l}`,children:qe(e.price,2,2)}),o.jsx("td",{className:`${f} px-3 align-middle text-right ${l}`,children:cr(e.change,2,2)}),o.jsxs("td",{className:`${x} px-3 align-middle text-right ${l}`,children:[cr(e.percentChange,2,2),"%"]}),t.map((y,b)=>o.jsx("td",{className:"px-3 align-middle text-right text-app-secondary",children:typeof y=="number"?nI(y,2):y},b))]})},_I=({colCount:e})=>o.jsxs("tr",{className:"h-10",children:[o.jsxs("td",{className:"px-3 align-middle",children:[o.jsx("div",{className:"h-3 w-16 rounded bg-app-border animate-pulse mb-1"}),o.jsx("div",{className:"h-2 w-10 rounded bg-app-border animate-pulse"})]}),Array.from({length:3+e}).map((t,r)=>o.jsx("td",{className:"px-3 align-middle text-right",children:o.jsx("div",{className:"h-3 w-12 rounded bg-app-border animate-pulse ml-auto"})},r))]}),DI=({stocks:e,cols:t,body:r,loading:n,onStockSelect:l})=>{const c=Y.useMemo(()=>e.map(f=>{const x=r.find(y=>y[0]===f.name);return x?t.map((y,b)=>{const S=x[b+1];return typeof S=="number"?S:typeof S=="string"&&S||"N/A"}):t.map(()=>"N/A")}),[e,t,r]);return o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"text-app-secondary text-xs",children:[o.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Symbol"}),o.jsx("th",{className:"px-3 py-2 text-right font-medium",children:"Last Price"}),o.jsx("th",{className:"px-3 py-2 text-right font-medium",children:"Change"}),o.jsx("th",{className:"px-3 py-2 text-right font-medium",children:"%Change"}),t.map((f,x)=>o.jsx("th",{className:"px-3 py-2 text-right font-medium",children:f},x))]})}),n?o.jsx("tbody",{children:Array.from({length:15}).map((f,x)=>o.jsx(_I,{colCount:t.length},x))}):o.jsx("tbody",{children:e.map((f,x)=>o.jsx(BI,{stock:f,extraValues:c[x],onStockSelect:l},f.name))})]})})},LI=["I","INDEX","SECTOR","SE","INDUSTRY","MK"],II=[{label:"Realtime",path:"/realt
32ime"},{label:"Insight",path:"/insight"},{label:"Timeline",path:"/timeline"}],cc=()=>{const e=Ly(),t=yr(),{pathname:r}=Sn(),n=Ye(n0),l=Ye(x=>n?x.securities.securities[n]:null),c=l&&LI.includes(l.type??"")?"Stock":"Insight",f=n?`/${encodeURIComponent(n)}`:"";return e?null:o.jsx("div",{className:"flex border border-primary rounded-md overflow-hidden",children:II.map(x=>{const y=x.path==="/insight"?c:x.label,b=r.startsWith(x.path);return o.jsx("button",{onClick:()=>t(`${x.path}${f}`),className:`flex-1 py-2 text-sm font-medium transition-colors ${b?"bg-primary text-white":"text-app-muted hover:text-white"}`,children:y},x.path)})})},Ch=({stock:e})=>{const t=yr(),r=er(),n=Ct(e.price),l=Ny(e.change,e.percentChange),c=Ye(O=>O.favorite.list),[f,x]=Y.useState(!1),y=e.symbol??e.name??"",b=c.some(O=>O.data.some(M=>M.symbol===y)),S=()=>{e.name&&(r(Gn(e.name)),t(`/realtime/${encodeURIComponent(e.name.replace(".","").toUpperCase())}`))},C=async()=>{if(e.name)if(b){const O=c.flatMap(M=>M.data).find(M=>M.symbol===y);if(!O?.label_id)return;await r(Sh({favRows:O.label_id,symbol:y})),r(rl())}else x(!0)},R=async O=>{if(!e.name)return;const M=c[O];if((M?.data.map(_=>_.symbol)??[]).includes(y)){x(!1);return}await r(Rp({favRows:M.row,symbol:y})),r(rl()),x(!1)};return o.jsxs("div",{className:`stock-price-box ${l} px-3 py-2`,children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("span",{className:`text-sm cursor-pointer rounded-full w-6 h-6 flex items-center justify-center shrink-0 bg-black/30 ${b?"text-yellow-400":"text-white"}`,onClick:C,children:"â
"}),o.jsx("span",{className:"text-2xl font-bold cursor-pointer",onClick:S,children:e.symbol})]}),o.jsx("span",{className:`text-2xl font-semibold ${n}`,children:qe(e.price,2,2)})]}),o.jsx("div",{className:"min-h-[15px]",children:o.jsx("p",{className:"text-xs text-white/60 m-0",children:e.flags})}),o.jsxs("div",{className:"flex items-center justify-between text-sm",children:[o.jsx("span",{className:"text-white/80 truncate",children:e.fullName}),o.jsxs("span",{className:"shrink-0 ml-2",children:[cr(e.change,2,2)," (",cr(e.percentChange,2,2),"%)"]})]}),f&&a1.createPortal(o.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 animate-modal-backdrop",onClick:()=>x(!1),children:o.jsxs("div",{className:"bg-app-surface border border-app-border rounded-xl w-72 overflow-hidden animate-modal-content",onClick:O=>O.stopPropagation(),children:[o.jsx("div",{className:"bg-primary px-4 py-2.5",children:o.jsx("p",{className:"text-white font-semibold text-sm",children:"Add to Favorite"})}),o.jsx("div",{className:"p-2",children:c.map((O,M)=>o.jsx("button",{onClick:()=>R(M),className:"w-full text-left px-3 py-2 text-sm text-white hover:bg-app-hover rounded transition-colors",children:O.name},M))})]})}),document.body)]})},rE=({height:e=254,url:t})=>o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsx("div",{className:"section-box-header",children:o.jsx("p",{children:"Candlestick Chart"})}),t?o.jsx("iframe",{id:"candlestickChartId",src:t,width:"100%",height:e-44,style:{border:0,display:"block"},title:"Candlestick Chart"}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:e-44},children:"No Results"})]}),sE=({height:e=254,url:t})=>o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsx("div",{className:"section-box-header",children:o.jsx("p",{children:"Intraday Chart"})}),t?o.jsx("iframe",{id:"intradayChartId",src:t,width:"100%",height:e-44,style:{border:0,display:"block"},title:"Intraday Chart"}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:e-44},children:"No Results"})]}),PI=({bidPrice:e,offerPrice:t,bidVolume:r,offerVolume:n,prior:l,currPrice:c,onSetPrice:f})=>{const x=Number(e),y=Number(t),b=Ct(e),S=Ct(t),C=Ct(r),R=Ct(n);return o.jsxs("tr",{className:"h-8 hover:bg-app-hover",children:[o.jsx("td",{className:`px-3 align-middle text-right ${C}`,children:r!=null?qe(r,0):""}),o.jsx("td",{className:`px-3 align-middle text-right ${b} ${f?"cursor-pointer":""} ${Ir(x||null,l,!0)}`,onClick:()=>e!=null&&f?.(e),children:o.jsxs("div",{className:"flex items-center justify-end gap-1",children:[c===x&&o.jsx("span",{className:"text-primary",style:{position:"relative",top:"-1.5px"},children:"â¢"}),o.jsx("span",{children:qe(e,2,2)})]})}),o.jsx("td",{className:`px-3 align-middle text-left ${S} ${f?"cursor-pointer":""} ${Ir(y||null,l,!0)}`,onClick:()=>t!=null&&f?.(t),children:o.jsxs("div",{className:"flex items-center justify-start gap-1",children:[o.jsx("span",{children:qe(t,2,2)}),c===y&&o.jsx("span",{className:"text-primary",style:{position:"relative",top:"-1.5px"},children:"â¢"})]})}),o.jsx("td",{className:`px-3 align-middle text-right ${R}`,children:n!=null?qe(n,0):""})]})}
32,Y1=({symbol:e,rows:t,onSetPrice:r,header:n=!1,height:l=0,showStats:c=!0})=>{const f=Ye(se=>se.securities.securities[e]),[x,y]=Y.useState(null);Y.useEffect(()=>{if(!f)return;const se=setTimeout(()=>y(f.price),100);return()=>clearTimeout(se)},[f?.price]);const b=Ct(f?.high),S=Ct(f?.low),C=Ct(f?.ceiling),R=Ct(f?.floor),O=Ct(f?.projectOpen),M=Ct(f?.projectVolume);if(!f)return o.jsxs("div",{className:"overflow-y-hidden text-sm flex flex-col",style:l?{height:l}:void 0,children:[o.jsx("div",{className:"px-4 py-2 text-sm text-white border-b border-app-border",children:"Bid / Offer"}),o.jsx("div",{className:"flex-1 flex items-center justify-center text-sm",children:"No Results"})]});const P=Math.min(t,10),_=f.prior??0,$=f.status??"",D=(f.totalBidVolume??0)+(f.totalOfferVolume??0),F=D>0?(f.totalBidVolume??0)/D*100:null,J=D>0?(f.totalOfferVolume??0)/D*100:null,te=se=>se===0?MO(f,$):f.bids[se],le=se=>se===0?RO(f,$):f.offers[se];return o.jsxs("div",{className:"overflow-hidden text-sm flex flex-col",style:l?{height:l}:{height:"100%"},children:[n&&o.jsx("div",{className:"px-4 py-2 text-sm text-white border-b border-app-border",children:"Bid / Offer"}),c&&o.jsx("table",{className:"w-full text-xs shrink-0",children:o.jsxs("tbody",{children:[o.jsxs("tr",{className:"h-8",children:[o.jsx("td",{className:"px-3 align-middle w-1/4",children:"High"}),o.jsx("td",{className:`px-3 align-middle text-right w-1/4 ${b} ${Ir(f.high,_)}`,children:qe(f.high,2,2)}),o.jsx("td",{className:"px-3 align-middle w-1/4",children:"Low"}),o.jsx("td",{className:`px-3 align-middle text-right w-1/4 ${S} ${Ir(f.low,_)}`,children:qe(f.low,2,2)})]}),o.jsxs("tr",{className:"h-8",children:[o.jsx("td",{className:"px-3 align-middle",children:"Ceiling"}),o.jsx("td",{className:`px-3 align-middle text-right ${C} ${Ir(f.ceiling,_)}`,children:qe(f.ceiling,2,2)}),o.jsx("td",{className:"px-3 align-middle",children:"Floor"}),o.jsx("td",{className:`px-3 align-middle text-right ${R} ${Ir(f.floor,_)}`,children:qe(f.floor,2,2)})]}),o.jsxs("tr",{className:"h-8",children:[o.jsx("td",{className:"px-3 align-middle",children:"Prj. Price"}),o.jsx("td",{className:`px-3 align-middle text-right ${O}`,children:qe(f.projectOpen,2,2)}),o.jsx("td",{className:"px-3 align-middle",children:"Prj. Vol"}),o.jsx("td",{className:`px-3 align-middle text-right ${M}`,children:qe(f.projectVolume,2,2)})]})]})}),o.jsxs("div",{className:"flex items-center gap-2 px-3 shrink-0 h-10",children:[o.jsxs("span",{className:"text-xs w-10 text-right",children:[qe(F??0,2),"%"]}),o.jsx("div",{className:"flex flex-1 h-0.75 overflow-hidden rounded-full bg-app-border",children:F!=null&&J!=null?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"h-full",style:{width:`${F}%`,backgroundColor:"var(--blue1)"}}),o.jsx("div",{className:"h-full",style:{width:`${J}%`,backgroundColor:"var(--pink)"}})]}):o.jsx("div",{className:"h-full w-full bg-app-border"})}),o.jsxs("span",{className:"text-xs w-10",children:[qe(J??0,2),"%"]})]}),o.jsx("div",{className:"flex-1 overflow-hidden",children:o.jsxs("table",{className:"w-full text-xs h-full",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"h-8",children:[o.jsx("th",{className:"px-3 align-middle text-right font-normal w-1/4",children:"Vol"}),o.jsx("th",{className:"px-3 align-middle text-right font-normal w-1/4",children:"Bid"}),o.jsx("th",{className:"px-3 align-middle text-left font-normal w-1/4",children:"Offer"}),o.jsx("th",{className:"px-3 align-middle text-right font-normal w-1/4",children:"Vol"})]})}),o.jsx("tbody",{children:Array.from({length:P},(se,L)=>o.jsx(PI,{bidPrice:te(L),offerPrice:le(L),bidVolume:f.bidVolumes[L],offerVolume:f.offerVolumes[L],prior:_,currPrice:x,onSetPrice:r},L))})]})})]})},FI=({symbol:e,rows:t=5,height:r=254,onSetPrice:n})=>o.jsxs("div",{className:"section-box",style:{height:r},children:[o.jsx("div",{className:"section-box-header",children:o.jsx("p",{children:"Bid / Offer"})}),e?o.jsx("div",{className:"flex flex-col",style:{height:r-44},children:o.jsx(Y1,{symbol:e,rows:t,onSetPrice:n,showStats:!1})}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:r-44},children:"No Results"})]}),Su=({leftLabel:e,leftValue:t,rightLabel:r,rightValue:n})=>o.jsxs("tr",{className:"h-8",children:[o.jsx("td",{className:"px-3 align-middle w-1/4",children:e}),o.jsx("td",{className:"px-3 align-middle text-right w-1/4",children:t}),o.jsx("td",{className:"px-3 align-middle w-1/4",children:r}),o.jsx("td",{className:"px-3 align-middle text-right w-1/4",children:n})]}),nE=({height:e=254,stock:t})=>{const r=t?.prior??0,n=Ct(t?.high),l=Ct(t?.low),c=Ct(t?.averagePrice),f=Ct(t?.prior),x=Ct(t?.ceiling),y=Ct(t?.floor),b=Ct(t?.open0),S=Ct(t?.open1),C=Ct(t?.open2),R=Ct(t?.projectOpen),O=Ct(t?.projectVolume),M=Ct(t?.totalValue),P=Ct(t?.totalVolume),_=Ct((t?.buyTicker??0)+(t?.sellTicker??0));return o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsx("div",{className:"section-box-header",children:o.jsx("p",{children:"Intraday Information"})}),t?o.jsx("div",{className:"overflow-auto",style:{height:e-44},children:o.jsx("table",{className:"w-full text-xs",children:o.jsxs("tbody",{children:[o.jsx(Su,{leftLabel:"High",leftValue:o.jsx("span",{className:`${n} ${Ir(t.high,r)}`,children:qe(t.high,2,2)}),rightLabel:"Open0",rightValue:o.jsx("span",{className:`${b} ${Ir(Number(t.open0)||null,r)}`,children:qe(t.open0,2,2)})}),o.jsx(Su,{leftLabel:"Low",leftValue:o.jsx("span",{className:`${l} ${Ir(t.low,r)}`,children:qe(t.low,2,2)}),rightLabel:"Open1",rightValue:o.jsx("span",{className:`${S} ${Ir(t.open1,r)}`,children:qe(t.open1,2,2)})}),o.jsx(Su,{leftLabel:"Avg",leftValue:o.jsx("span",{className:`${c} ${Ir(t.averagePrice,r)}`,children:qe(t.averagePrice,2,2)}),rightLabel:"Open2",rightValue:o.jsx("span",{className:`${C} ${Ir(t.open2,r)}`,children:qe(t.open2,2,2)})}),o.jsx(Su,{leftLabel:"Prior",leftValue:o.jsx("span",{className:`${f} ${Ir(t.prior,r)}`,children:qe(t.prior,2,2)}),rightLabel:"Prj. Price",rightValue:o.jsx("span",{className:R,children:qe(t.projectOpen,2,2)})}),o.jsx(Su,{leftLabel:"Ceiling",leftValue:o.jsx("span",{className:`${x} ${Ir(t.ceiling,r)}`,children:qe(t.ceiling??0,2,2)}
32),rightLabel:"Prj. Vol",rightValue:o.jsx("span",{className:O,children:qe(t.projectVolume,2,2)})}),o.jsx(Su,{leftLabel:"Floor",leftValue:o.jsx("span",{className:`${y} ${Ir(t.floor,r)}`,children:qe(t.floor??0,2,2)}),rightLabel:"Value",rightValue:o.jsx("span",{className:M,children:Yn(t.totalValue)})}),o.jsx(Su,{leftLabel:"Status",leftValue:t.status,rightLabel:"Vol",rightValue:o.jsx("span",{className:P,children:Yn(t.totalVolume)})}),o.jsxs("tr",{className:"h-8",children:[o.jsx("td",{className:"px-3 align-middle",colSpan:2,children:"Frequency (Buy/Sell)"}),o.jsx("td",{className:"px-3 align-middle"}),o.jsx("td",{className:"px-3 align-middle text-right",children:t.buyTicker||t.sellTicker?o.jsxs("span",{className:_,children:[qe((t.buyTicker??0)+(t.sellTicker??0),0)," (",qe(t.buyTicker,0),"/",qe(t.sellTicker,0),")"]}):"N/A"})]})]})})}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:e-44},children:"No Results"})]})},oy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAS8SURBVHja7NtpiFVlHMfxz0wz6kyZ4FYimWn4KtsMgjKlkoLSly2QCBFh2kbQhpFRYEi0SRatEJVBCUEvikrLxhZbiNKJyLCYstwrchv36cX5T94ud2bOvefcmTs1Pxi4d+bc89zvOc/5L7/nmbqOjg7/J9X7n2kAeAD4P6aGXhqnDs1oQmOMW4cOHMJ+7MPe/gzciDE4BadjQrwehaEx9kHswib8jB+xLl5vxpHcr3wV0tJwnIeLcGFAl6s2rMD7+BJ7ahF4GGbhapyT4wVchdfxFg7UCvBMzMOUKj4iLXgSq/sS+ATchSvima22duFFPFZpgMsCfBYW4ew+yC4rcB9+6i3gaVgckbev9BXuRmu1gadhSYXRN2+tx434tlrAk/ECxtVQ8dSKOZG3cy0tR+KhGoPtvAmLMSRv4DsjUNWiLsXcPIFnYnaN9wU3pakD0gAfH0VFrXdWQ+N7NmQFnlXlCipPzcT0LMDD+sFULtZsDKoUeHoNB6qudAnOrAR4CGb0Q1PjGFzcFVt3wKNwQcbBD0RDvyp63J60Fh+GEZCl+Z8eDktZwBNyKB/XR4MxB/eEs1FK2/EG5uNaPI8/M4w7AWPLAa4LWyartkcfezDci1uwreiYv6LHXRR3tj0+U5dh3CacUeocXQE3Y2IOwBMxteD9x1ERbS+AbQnY34pS4ZAM4zbg1FLTur6bKzQ+B+CT8QTOLfjdmigQNsadXVg01W/AHV09g2mbovj+TaWuRCk1YnROUXMMnguQTwvu9GzsxJaCY+fh3pyquuGlXJj6bqbEsTmmitF4KqJnfUFA21xwgedHYMurhG0uda7uglbeHtWJ0V5OKvG3K2Nq5+mTD46cnAq4Qw6WaIlo/E1E4WJtxI6cx2vH4bTAh7A7Z9gW3C9ZVSjWalyHrTmOubdU8dIV8P60lkkPOhJ37oOiaFwXQev8gmM/x/X4NSfgbcGRCnhfylIwTb+9OiJvcTR+GM8W5ekvJKZcWw4Xui04UgG3R9WTVa14pOj5nI8F8XpE5OmpRXd6ocR0r1SHsaFUvOguaK3LAfiPogqqE7ahKE8/WjS9N5WajmU+v63Bkbp5aMthap0UjcOkqKMXdJF6xgX05RIX8qqMKer7okfoaL7txpduxAPRvWTR7wWe06Aejt0dz90giZdWqR7E0nKitOhwVuQwrUfEz6AUxx4n8b+zwO6JzuxIJRbPGhmXJ/tAb0fZWpGn1Y5l/Qj2IF6NwqkiYHgPH/UT4OX4rKfCIE1NuiSuXi1rB54plYrKBe7sX5fWMGyHZEFtfZrSL60ex8oaBV6GV1JZIWWuD48P92JyDcG2RNOxM21xX47acDu+qxHYTyTLuDvTfqASO2UtbsXXfQy7Erd10V/nCtzZBc3FO30E+zJuxi/lfjDrPq2GaArmSlYaq63Nkj1aL1V6grx24k2R2LCzqlhBLcfT+CHLifLca9kYjfw1uEw+dusevInXwhjIrGrsph2M0yQ7aWdItgw369n27dw7vTf62XclXtiG7mrjWgD+59zR7o2VLMxNjDw+UrJuNNjRTeFb/Xu/9BY5bhnuLeDibNDk6I74eolJfjj61l7bEV838H9LA8ADwP1afw8Ae74ra8w90MwAAAAASUVORK5CYII=",zI=({isOpen:e,onClose:t,symbol:r})=>{const n=Ye(f=>r?f.securities.securities[r]:null),[l,c]=Y.useState([]);return Y.useEffect(()=>{!e||!r||!n||(c([]),Q2(r,500).then(f=>{if(f?.tck){const x=n.prior,y=f.tck.map(b=>({tim:b.tim,sid:b.sid,vol:b.vol,sym:n.name??r,price:We(b.prc),prior:x,change:vn(x,We(b.prc)),lastIndex:!1}));c(y.reverse())}}))},[e,r]),e?o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop"}),o.jsxs("div",{className:"relative bg-app-bg border border-app-border rounded-lg w-full max-w-md mx-4 overflow-hidden animate-modal-content",children:[o.jsxs("div",{className:"flex items-center justify-center px-4 py-3 border-b border-app-border bg-primary relative",children:[o.jsx("p",{className:"font-medium",children:"Ticker"}),o.jsx("button",{onClick:t,"aria-label":"Close",className:"absolute right-3",children:o.jsx("img",{src:oy,className:"w-8 h-8",alt:"close"})})]}),o.jsx("div",{className:"overflow-auto",style:{maxHeight:"70vh"},children:l.length>0?o.jsx("table",{className:"w-full text-xs",children:o.jsx("tbody",{children:l.map((f,x)=>o.jsxs("tr",{className:`h-8 ${f.lastIndex?"bg-app-hover":""}`,children:[o.jsx("td",{className:"px-3 align-middle",children:f.tim}),o.jsx("td",{className:`px-3 align-middle ${Ir(f.price,f.prior)}`,children:qe(f.price,2,2)}),o.jsx("td",{className:`px-3 align-middle text-center ${mc(f.sid)}`,children:f.sid}),o.jsx("td",{className:`px-3 align-middle text-right ${mc(f.sid)}`,children:qe(f.vol,0)}),o.jsx("td",{className:`px-3 align-middle text-right ${Ir(f.price,f.prior)}`,children:cr(f.change,2,2)})]},x))})}):o.jsx("div",{className:"flex items-center justify-center py-4",children:o.jsx(Vu,{})})})]})]}):null},UI=({ticker:e,isLatest:t})=>{const r=Ct(e?.price),n=Ct(e?.vol);return o.jsxs("tr",{className:`h-8 ${t?"bg-app-hover":""}`,children:[o.jsx("td",{className:"px-3 align-middle",children:e?.tim??""}),o.jsx("td",{className:`px-3 align-middle text-right ${r} ${e?Ir(e.price,e.prior):""}`,children:e?qe(e.price,2,2):""}),o.jsx("td",{className:`px-3 align-middle text-center ${e?mc(e.sid):""}
32`,children:e?.sid??""}),o.jsx("td",{className:`px-3 align-middle text-right ${n} ${e?mc(e.sid):""}`,children:e?qe(e.vol,0):""}),o.jsx("td",{className:`px-3 align-middle text-right ${e?Ir(e.price,e.prior):""}`,children:e?cr(e.change,2,2):""})]})},Wb=({symbol:e,rows:t,height:r=254})=>{const[n,l]=Y.useState(!1),c=er(),f=Ye(C=>e?_O(C,e):null),x=f?.tickers??[],y=f?.tickerIndex??0;Y.useEffect(()=>{e&&f&&x.length===0&&c(A1(e))},[e]);const b=t?Math.min(t,f?.tickerMax??t):x.length,S=Array.from({length:b},(C,R)=>{if(R>=x.length)return null;const O=(y-1-R+x.length)%x.length;return x[O]});return o.jsxs("div",{className:"section-box",style:{height:r},children:[o.jsxs("div",{className:"section-box-header flex items-center justify-between",children:[o.jsx("p",{children:"Last Executed"}),e&&x.length>0&&o.jsx("p",{className:"cursor-pointer text-xs text-app-muted hover:text-white transition-colors",onClick:()=>l(!0),children:"See All"})]}),x.length>0?o.jsx("div",{className:"overflow-auto",style:{height:r-44},children:o.jsx("table",{className:"w-full text-xs",children:o.jsx("tbody",{children:S.map((C,R)=>o.jsx(UI,{ticker:C,isLatest:C?.lastIndex??!1},R))})})}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:r-44},children:"No Results"}),o.jsx(zI,{isOpen:n,onClose:()=>l(!1),symbol:e})]})},$I=({isOpen:e,onClose:t,url:r})=>e?o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop"}),o.jsxs("div",{className:"relative bg-app-bg border border-app-border rounded-lg w-full max-w-2xl mx-4 overflow-hidden animate-modal-content",children:[o.jsxs("div",{className:"flex items-center justify-center px-4 py-3 border-b border-app-border relative",children:[o.jsx("p",{className:"text-sm font-medium",children:"Volume Analysis"}),o.jsx("button",{onClick:t,className:"absolute right-4 text-app-muted hover:text-white transition-colors text-lg leading-none","aria-label":"Close",children:"â"})]}),o.jsx("div",{className:"w-full",style:{height:"60vh"},children:r?o.jsx("iframe",{src:r,width:"100%",height:"100%",style:{border:0,display:"block"},title:"Volume Analysis"}):o.jsx("div",{className:"flex items-center justify-center text-sm h-full",children:"No Results"})})]})]}):null,VI=({height:e=254,url:t,modalUrl:r})=>{const[n,l]=Y.useState(!1);return o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsxs("div",{className:"section-box-header flex items-center justify-between",children:[o.jsx("p",{children:"Volume Analysis"}),t&&o.jsx("p",{className:"cursor-pointer text-xs text-app-muted hover:text-white transition-colors underline",onClick:()=>l(!0),children:"Setting"})]}),t?o.jsx("iframe",{id:"VolumeAnalysisId",src:t,width:"100%",height:e-44,style:{border:0,display:"block"},title:"Volume Analysis"}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:e-44},children:"No Results"}),o.jsx($I,{isOpen:n,onClose:()=>l(!1),url:r})]})},xb=({label:e,bvo:t,ovo:r,svo:n,total:l})=>{if(l===0)return null;const c=t/l*100,f=r/l*100,x=n/l*100;return o.jsxs("div",{className:"flex-1 flex flex-col justify-center px-3",children:[o.jsx("p",{className:"text-xs",children:e}),o.jsxs("div",{className:"flex justify-between text-xs mb-0.5",children:[o.jsx("span",{children:Yn(t)}),o.jsxs("span",{children:["ATO/ATC ",Yn(r)," (",qe(f,2),"%)"]}),o.jsx("span",{children:Yn(n)})]}),o.jsxs("div",{className:"relative flex w-full h-6 text-xs overflow-hidden rounded-sm",children:[o.jsx("div",{className:"bg-blue1",style:{width:`${c}%`},children:o.jsxs("span",{className:"absolute left-1 top-1 whitespace-nowrap",children:["Buy ",qe(c,2),"%"]})}),o.jsx("div",{className:"bg-warning",style:{width:`${f}%`}}),o.jsx("div",{className:"bg-pink",style:{width:`${x}%`},children:o.jsxs("span",{className:"absolute right-1 top-1 whitespace-nowrap",children:[qe(x,2),"% Sell"]})})]})]})},HI=({height:e=254,symbol:t})=>{const r=er(),n=Ye(R=>t?R.securities.securities[t]:null),l=n?.sectorCode??null,c=l?l.replace(/^\./,""):null,f=Ye(R=>c?R.securities.securities[c]??R.securities.securities[`.${c}`]??null:null),x=Ye(R=>R.securities.securities.SET),y=Ye(R=>R.securities.securities.MAI);Y.useEffect(()=>{t&&r(s0("SET|MAI"))},[t]),Y.useEffect(()=>{!c||t?.includes(".")||r(E1(c))},[c,t]);const b=(()=>
32{if(!n)return null;const R=n.buyVolume??0,O=n.unknownVolume??0,M=n.sellVolume??0,P=R+O+M;return P>0?{label:n.symbol??t??"",bvo:R,ovo:O,svo:M,total:P}:null})(),S=(()=>{if(!f||t?.includes("."))return null;const R=f.buyVolume??0,O=f.unknownVolume??0,M=f.sellVolume??0,P=R+O+M;return P>0?{label:f.symbol??l??"",bvo:R,ovo:O,svo:M,total:P}:null})(),C=(()=>{if(!x&&!y)return null;const R=(x?.buyVolume??0)+(y?.buyVolume??0),O=(x?.unknownVolume??0)+(y?.unknownVolume??0),M=(x?.sellVolume??0)+(y?.sellVolume??0),P=R+O+M;return P>0?{label:"Market",bvo:R,ovo:O,svo:M,total:P}:null})();return o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsx("div",{className:"section-box-header",children:o.jsx("p",{children:"Buy / Sell Volume"})}),t?o.jsxs("div",{className:"flex flex-col",style:{height:e-44},children:[b&&o.jsx(xb,{...b}),S&&o.jsx(xb,{...S}),C&&o.jsx(xb,{...C})]}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:e-44},children:"No Results"})]})},YI=[{name:"1M",value:"1m"},{name:"3M",value:"3m"},{name:"6M",value:"6m"},{name:"1Y",value:"1y"},{name:"3Y",value:"3y"},{name:"5Y",value:"5y"}],GI=({symbol:e})=>{const t=er(),r=Ye(c=>e?c.securities.securities[e]:null),n=r?.timeFrame??null;Y.useEffect(()=>{r?.symbol&&t(tC(r.symbol))},[r?.change]);const l=Y.useMemo(()=>{if(!r)return null;const c=r.price||0,f=r.yearMin>0?r.yearMin>c?c:r.yearMin:c,x=r.yearMax>0?r.yearMax<c?c:r.yearMax:r.m1Max,y=r.m1Min>c?c:r.m1Min,b=r.m1Max<c?c:r.m1Max,S=x-f;if(S<=0)return null;const C=(y-f)/S*100,R=(c-f)/S*100,O=(b-f)/S*100;return{yearMin:f,yearMax:x,m1Min:y,m1Max:b,m1MinPct:C,pricePct:R,m1MaxPct:O}},[r?.price,r?.yearMin,r?.yearMax,r?.m1Min,r?.m1Max]);return o.jsxs("div",{className:"section-box",children:[o.jsx("div",{className:"section-box-header",children:o.jsx("p",{children:"Price Visualizer"})}),r&&l?o.jsxs("div",{className:"px-3 py-2",children:[o.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{height:"100px"},children:[o.jsxs("div",{className:"text-center",children:[o.jsx("p",{children:qe(l.yearMin,2)}),o.jsx("p",{className:"text-app-muted",children:"52wk."})]}),o.jsxs("div",{className:"flex-1 relative h-1 bg-app-border rounded mx-2 my-4",children:[o.jsx("div",{className:"absolute h-1 bg-primary rounded",style:{left:`${l.m1MinPct}%`,width:`${l.m1MaxPct-l.m1MinPct}%`}}),o.jsx("div",{className:"absolute top-0 w-0.5 h-4 bg-white",style:{left:`${l.m1MinPct}%`}}),o.jsx("div",{className:"absolute top-4 text-xs",style:{left:`${l.m1MinPct}%`,transform:"translateX(-50%)"},children:qe(l.m1Min,2)}),o.jsx("div",{className:"absolute -top-0.5 w-2 h-2 bg-white border-2 border-primary rounded-full",style:{left:`${l.pricePct}%`,transform:"translateX(-50%)"}}),o.jsx("div",{className:"absolute -top-4 text-[10px] text-app-muted leading-none",style:{left:`${l.pricePct}%`,transform:"translateX(-50%)"},children:"30D"}),o.jsx("div",{className:"absolute -top-4 w-0.5 h-4 bg-white",style:{left:`${l.m1MaxPct}%`}}),o.jsx("div",{className:"absolute -top-8 text-xs",style:{left:`${l.m1MaxPct}%`,transform:"translateX(-50%)"},children:qe(l.m1Max,2)})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("p",{children:qe(l.yearMax,2)}),o.jsx("p",{className:"text-app-muted",children:"52wk."})]})]}),n&&o.jsx("div",{className:"grid grid-cols-3 gap-1.5 mt-1",children:YI.map(({name:c,value:f})=>{const x=n[f],y=x==null;return o.jsxs("div",{className:`text-center text-xs rounded py-1 shadow ${y?"":Ny(x[0],x[1])}`,children:[o.jsx("p",{children:y?"N/A":`${cr(x[1],2)}%`}),o.jsx("p",{children:c})]},f)})})]}):o.jsx("div",{className:"flex items-center justify-center text-sm py-10",children:"No Results"})]})},XI=({height:e=254,url:t})=>o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsx("div",{className:"section-box-header",children:o.jsx("p",{children:"Price History"})}),t?o.jsx("iframe",{id:"PriceHistoryId",src:t,width:"100%",height:e-44,style:{border:0,display:"block"},title:"Price History"}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:e-44},children:"No Results"})]}),qI=({height:e=300,header:t})=>{const[r,n]=Y.useState(!1),l=t?e-40:e;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"bg-app-surface rounded-lg overflow-hidden",style:{height:e},children:[t&&o.jsx("div",{className:"flex items-center px-4 h-10 border-b border-app-border",children:o.jsx("p",{className:"text-sm font-medium text-white",children:t})}),o.jsxs("div",{className:"flex flex-col items-center justify-center cursor-pointer text-app-muted hover:text-app-secondary transition-colors",style:{height:l},onClick:()=>n(!0),children:[o.jsx(LD,{size:48,className:"mb-3"}),o.jsx("p",{className:"text-sm",children:"Get more with StockRadars PREMIUM"})]})]}),o.jsx(O1,{isOpen:r,onClose:()=>n(!1)})]})},Jt=({name:e,children:t,lockHeader:r,lockHeight:n})=>{const l=Ye(f=>f.auth.broker),c=Ye(f=>f.auth.userType);return R1(e,l)?FC(e,c)?o.jsx(qI,{header:r,height:n}):o.jsx(o.Fragment,{children:t}):null}
32,Jl=Y.memo(({stock:e,menu:t,showDetails:r=!0})=>{const n=Ct(e.price),l=Ny(e.change,e.percentChange),c=t.includes(".")?t.replace(".",""):t;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:`stock-price-box ${l} px-3 py-2`,children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-2xl font-bold",children:c}),o.jsx("span",{className:`text-2xl font-semibold ${n}`,children:qe(e.price,2,2)})]}),o.jsx("div",{className:"min-h-3.75"}),o.jsxs("div",{className:"flex items-center justify-between text-sm",children:[o.jsx("span",{className:"text-white/80",children:e.status}),o.jsxs("span",{className:n,children:[cr(e.change,2,2),"Â (",cr(e.percentChange,2,2),"%)"]})]})]}),r&&o.jsxs("div",{className:"grid grid-cols-5 text-sm",children:[o.jsxs("p",{children:["H: ",qe(e.high,2)]}),o.jsxs("p",{children:["L: ",qe(e.low,2)]}),o.jsx("p",{className:"text-end text-green1",children:e.advance}),o.jsx("p",{className:"text-end text-yellow",children:e.unchange}),o.jsx("p",{className:"text-end text-red1",children:e.decline})]})]})}),WI=["INDUSTRY","MK","SECTOR","SE","INDEX","I"],G1=()=>{const e=Ly(),{symbol:t}=dy(),r=er(),n=Ye(n0);Y.useEffect(()=>{t&&r(Gn(decodeURIComponent(t)))},[t]);const l=Ye(J=>n?J.securities.securities[n]:null),c=Ye(J=>J.securities.securities.SET??J.securities.securities[".SET"]);Y.useEffect(()=>{r(s0("SET|MAI"))},[]);const f=He.getUserId()||"",x=He.getToken()||"",y=He.getState()||"",b=He.getBroker()||"",S=l?.type?.toUpperCase()??"",C=WI.includes(S);if(Y.useEffect(()=>{n&&(r(ro(n)),Dh("SET|MAI"),r(_u(n)),r(C?E1(n):jh(n)))},[n]),!n||!l)return o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden",children:[!e&&o.jsxs("div",{className:"px-4 pt-4 flex flex-col gap-2",children:[c&&o.jsx(Jl,{stock:c,menu:".SET",showDetails:!1}),o.jsx(cc,{})]}),o.jsx("div",{className:"flex items-center justify-center flex-1",children:o.jsx("p",{className:"text-app-muted",children:"Select a stock to view realtime data"})})]});const R=l.symbol??n,O=`symbol=${encodeURIComponent(R)}&userId=${f}&Token=${x}&state=${y}&broker=${b}&bundle=${b}`,M=`${an.IFRAME_URL}/candlestick-chart?${O}`,P=`${an.IFRAME_URL}/intraday-chart?${O}`,_=`${an.IFRAME_URL}/volume-analysis-box?${O}`,$=`${an.IFRAME_URL}/volume-analysis-chart?${O}`,D=`${an.IFRAME_URL}/price-history?${O}`,F=o.jsxs("div",{className:"px-4 py-4 flex flex-col gap-4",children:[o.jsx(Ch,{stock:l}),o.jsxs("div",{className:`grid gap-4 ${e?"grid-cols-2":"grid-cols-1 lg:grid-cols-3"}`,children:[e?o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsx(rE,{url:M}),o.jsx(sE,{url:P}),o.jsx(nE,{stock:l})]}):o.jsx("div",{className:"lg:col-span-2 flex flex-col gap-4",children:o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[o.jsx(rE,{url:M}),o.jsx(sE,{url:P}),o.jsx(nE,{stock:l}),o.jsx(Wb,{symbol:n})]})}),o.jsxs("div",{className:e?"flex flex-col gap-4":"lg:col-span-1",children:[o.jsx(FI,{symbol:n,rows:10,height:524}),e&&o.jsx(Wb,{symbol:n})]})]}),o.jsxs("div",{className:`grid gap-4 ${e?"grid-cols-2":"grid-cols-1 lg:grid-cols-3"}`,children:[o.jsx(Jt,{name:"volume-analysis",lockHeader:"Volume Analysis",lockHeight:254,children:o.jsx(VI,{url:_,modalUrl:$})}),o.jsx(HI,{symbol:n}),o.jsx(GI,{symbol:n}),o.jsx(XI,{url:D})]})]});return e?F:o.jsxs("div",{className:"flex flex-col flex-1 overflow-auto",children:[o.jsxs("div",{className:"px-4 pt-4 flex flex-col gap-2",children:[c&&o.jsx(Jl,{stock:c,menu:".SET",showDetails:!1}),o.jsx(cc,{})]}),F]})},QI="/webapp/assets/icon_accused-DWA4Spo8.png",_k="/webapp/assets/icon-people-ChzGXNZX.png";function ha(e){e.currentTarget.src=Mh,e.currentTarget.onerror=null}function JI(e){e.currentTarget.src=_k,e.currentTarget.onerror=null}const Ig="https://stockradars-image.com";function KI(e,t){return e==="report"?"Report":e==="accused"?"Accused":t??""}function ZI(e,t){return e==="report"?o.jsx("div",{className:"w-[45px] h-[45px] rounded-full bg-[#ADFF2F] mx-auto"}):e==="accused"?o.jsx("img",{src:QI,width:45,alt:"accused",onError:r=>{r.target.style.display="none"}}):t?.includes(".")?o.jsx("img",{src:`${Ig}/images/sector/${t.replace(".","")}.png`,width:45,alt:t,onError:r=>{r.target.style.display="none"}}):e==="index"?o.jsx("img",{src:`${Ig}/images/index/${t?.replace(".","")}.png`,width:45,alt:t??"",className:"rounded-full",onError:r=>{r.target.style.display="none"}}):o.jsx("img",{src:`${Ig}/images/badge/${t}.png`,width:45,alt:t??"",onError:r=>{r.target.style.display="none"}})}const Dk=({isOpen:e,onClose:t,type:r,title:n})=>{const l=er(),c=yr(),f=Ye(N_),x=Ye(j_),y=Ye(M_);Y.useEffect(()=>{!e||!r||!n||(l(T_()),l(wC({type:r,title:n}
32)),["industry","sector","index","broker"].includes(r)&&l(Cg({type:r,title:n})))},[e,r,n]);const b=S=>{l(Gn(S)),c(`/insight/${encodeURIComponent(S)}`),t()};return e?o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop",onClick:t}),o.jsxs("div",{className:"relative bg-app-bg border border-app-border rounded-lg w-full max-w-md mx-4 overflow-hidden animate-modal-content",children:[o.jsxs("div",{className:"flex items-center justify-center px-4 py-3 border-b border-app-border relative",children:[o.jsx("p",{className:"text-sm font-medium",children:KI(r,n)}),o.jsx("button",{onClick:t,className:"absolute right-3 text-app-muted hover:text-white transition-colors text-lg leading-none","aria-label":"Close",children:"â"})]}),o.jsxs("div",{className:"overflow-auto",style:{maxHeight:"calc(70vh)"},children:[o.jsxs("div",{className:"flex flex-col items-center py-4 px-4 gap-2",children:[ZI(r,n),f?o.jsx("p",{className:"text-xs text-center whitespace-pre-wrap",children:f}):null]}),y&&Array.from({length:6}).map((S,C)=>o.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 border-t border-app-border animate-pulse",children:[o.jsx("div",{className:"w-10 h-10 rounded-full bg-app-border shrink-0"}),o.jsxs("div",{className:"flex flex-col gap-1.5 flex-1",children:[o.jsx("div",{className:"h-3 w-16 rounded bg-app-border"}),o.jsx("div",{className:"h-2.5 w-32 rounded bg-app-border"})]})]},C)),!y&&x.map((S,C)=>o.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 border-t border-app-border cursor-pointer hover:bg-app-hover",onClick:()=>b(S.symbol),children:[o.jsx("img",{src:`${Ig}/images/company_logo/${S.symbol}.png`,width:40,height:40,alt:S.symbol,onError:ha}),o.jsxs("div",{className:"flex flex-col text-sm",children:[o.jsx("p",{children:S.symbol}),o.jsx("p",{className:"text-app-muted text-xs",children:S["Security Name"]})]})]},C))]})]})]}):null},eP="https://stockradars-image.com",Qb=({height:e=300,symbol:t})=>{const r=er(),n=yr(),l=Ye(mC),c=Ye(C=>C.securities.securities),[f,x]=Y.useState(null);Y.useEffect(()=>{t&&(r(pC()),r(k1(t)))},[t]);const y=l?.sectorId?`${eP}/images/sector/sector${l.sectorId}_iphone.png`:void 0,b=C=>{c[C]&&(r(Gn(C)),n(`/realtime/${C}`))},S=C=>{if(C.action==="quote"){b(C.title);return}x({type:C.badge.toLowerCase(),title:C.title})};return o.jsxs("div",{className:"section-box relative overflow-hidden",style:{height:e},children:[y&&o.jsx("div",{className:"absolute inset-0 bg-center bg-no-repeat bg-cover opacity-40 rounded-lg",style:{backgroundImage:`url(${y})`}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col",style:{height:e},children:[o.jsx("div",{className:"flex items-center justify-center flex-1",children:o.jsx("div",{className:"w-32 h-32 rounded-full bg-white flex items-center justify-center text-sm font-medium",children:o.jsx("span",{className:"text-primary",children:t})})}),o.jsx("div",{className:"flex gap-0 overflow-x-auto h-21.25 shrink-0",children:l?.badges?.map(C=>o.jsxs("div",{className:"flex flex-col items-center px-3 cursor-pointer shrink-0",onClick:()=>S(C),children:[o.jsx("img",{src:C.image,width:45,alt:C.titleDisplay,onError:ha}),o.jsx("p",{className:"mt-1 text-xs",children:C.titleDisplay})]},C.seq))})]}),o.jsx(Dk,{isOpen:f!==null,onClose:()=>x(null),type:f?.type??null,title:f?.title??null})]})},iE="https://stockradars-image.com";function tP(e){return e===1?"st":e===2?"nd":e===3?"rd":"th"}const aE=({height:e=300,symbol:t})=>{const r=er(),n=Ye(IB),l=Ye(mC),c=Ye(M=>t?M.securities.securities[t]:null),[f,x]=Y.useState(!1),[y,b]=Y.useState(null),S=(c?.type||"").toUpperCase(),C=["W","V","DWC","DWP"].includes(S);if(Y.useEffect(()=>{t&&(r(pC()),x(!1),r(hC(t)),r(k1(t)))},[t]),C)return o.jsx(Qb,{height:e,symbol:t});const R=l?.sectorId?`${iE}/images/sector/sector${l.sectorId}_iphone.png`:void 0,O=`${iE}/images/company_logo/${t}.png`;return o.jsxs("div",{className:"section-box relative overflow-hidden",style:{height:e},children:[R&&o.jsx("div",{className:"absolute inset-0 bg-center bg-no-repeat bg-cover opacity-40 rounded-lg",style:{backgroundImage:`url(${R})`}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col",style:{height:e},children:[n&&o.jsxs("div",{className:"absolute top-3 left-3 text-xs",children:[o.jsxs("div",{className:"flex items-start",children:[o.jsx("span",{className:"text-2xl font-bold",children:n.ranking}),o.jsx("span",{className:"mt-1",children:tP(n.ranking)})]}),o.jsxs("div",{className:"flex items-center gap-1",children:[Math.sign(n.diff_ranking)===1?o.jsx("img",{src:jk,width:15,alt:"up"}):Math.sign(n.diff_ranking)===-1?o.jsx("img",{src:Mk,width:15,alt:"down"}):o.jsx("img",{src:Rk,width:15,alt:"no change"}),n.diff_ranking!==0&&o.jsx("span",{className:`text-xs ${Math.sign(n.diff_ranking)===1?"text-green-400":"text-red-400"}`,children:n.diff_ranking})]})]}),o.jsx("div",{className:"flex items-center justify-center flex-1",children:f?o.jsx("div",{className:"w-24 h-24 rounded-full border border-app-border flex items-center justify-center text-sm font-medium",children:t}):o.jsx("img",{src:O,width:100,height:100,alt:t??"",onError:()=>x(!0)})}),o.jsx("div",{className:"flex gap-0 overflow-x-auto h-[85px] shrink-0",children:l?.badges?.map(M=>o.jsxs("div",{className:"flex flex-col items-center px-3 cursor-pointer shrink-0",onClick:()=>b({type:M.badge.toLowerCase(),title:M.title}),children:[o.jsx("img",{src:M.image,width:45,alt:M.titleDisplay,onError:ha}),o.jsx("p",{className:"mt-1 text-xs",children:M.titleDisplay})]},M.seq))})]}),o.jsx(Dk,{isOpen:y!==null,onClose:()=>b(null),type:y?.type??null,title:y?.title??null})]})},rP="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAABsFJREFUeAHtnV+IVFUcx3c0TcP+WFmZ0iJJUfRQRlH4IlHUg1BED+UaPW2QFZRUhATVS0hiD0VBLURkUj1ULGQghIFC9FBBRX9AKs0tSyk300p3dft8x3un3XFn555z/5wzO78Dn52ZO+f3+93z/d0z95wz987WeiIqY2Nj57E7osyyr1ar7SszQMf6JgEDUHYZiEmgU2LaGfblHPgc7i5pvzYlMUpy7+42tgSoBYf5iPjGvSntLehah9vXqrbGjGrDZYpWy1TLr1KZvr32KLYEjNEKUVYp27/zfjeOCLrnfKwfhbvgVGdPxRgsTNzsLcbdSV7K9n9SwKYNR3j9JmzgY/aA3qufAxLxN/N6ObwMv0CIciwJOrOk4GX7b7fbF1LhfrgSzfvSJPTwoh+OwO3tPNj7+RSQxonW/Q1PbHgJ9jQ22JNSFZDW0lxB0pPwcZ6n3bPU4Oa8roC0luaNBNS32p/qFUh7QPWRLWJdAUtA4APBEmAJCKxA4PAxLsZVKgnDQWlwA/RCY2XAcSc0ovkOPmZyVR/dZLXv+gQg1EXwKpwGw+CTBH2JtBNWgHxkLpaAnp65qKVx+WPwHrgmQAt8j8BKcF5CsQScWH2ViH/y8fE7j86Fj7FDGMmHc7FR0P+S5dHCtdc0ouYJ2nBiT/wVsAT4a1eIpSWgEBn9nVgC/LUrxNISUIiM/k4sAf7aFWJpCShERn8nUU/EmODoSg0tEXhNchJZhplg/e0vUbmW0SYA8XtputZoFoPTAleTZFvxtdZ1kazJR2kvo00ALT4frgclQQtdrrNNre+sBvmYDf9CdCXmBOiol2hvcPR+4qMcR/5S7K7xsa3KphNOwrNyiOG8OpkjlpdpJyTAq2GdYmQJCJwpS4AlILACgcNbD7AEBFYgcHjveQBjbE2MdCOH6wRpfJOPM8bXTQtdW7wTgGL3wEY4A3ySoInWryRSNyrs4HlXljwJWIZiP8NDcNRDvbOxeRLkxxLgIaBMhjh6N/nYcuRrpfNByLPS6RM6Kpu8o6CZCKkLm3yKlpnzxveJG5VN1wsQOhuWgMAZsARYAgIrEDi89QBLQGAFAoe3HmAJCKxA4PDWAywBgRUIHN56gCUgsAKBw1sPsAQEViBweOsBloDACgQObz3AEhBYgcDh8/YAfZ876tkG2WX5PjjPb9m53NhRVZwJcuW5KkLJ06+E3Mj3wrqO3+XSFAkj26kuaZE/XZp+Lf51g4XrwTKCzRJod4l6Gke/5bk/Q32qTChK3CWgOC4a1J3kSYDuWumDzXVP7n+0s+oF8jNZ0Q9n7IanwffolChb2tgrzh54ANaAT1Gc7eB8F06eBA
32wQ8CNwzjo2aZkqAT9S6VZQL3H5KEl961H7tpdLZ0bGbxz/nPd0cdidbDsLsnwkjjdPn6t3/oYv/WqKU/FOAMF05+GXTtEcKuNfYnzvYOJdlVi7vI1zGrp+ruYMZ+bNClgCmhWp+LUloGLBm8OlCchzIm32aa+zKVDXPE2AhnlzGA2E+scN2XZ5GtRKNJ5DU+pD6zQBW9lwJqyjgu/FttNAnnKbkGi7LtFamp8Yw/OGhqN643HQNf/O41lsyioajmrIq4Mly8GR1tfkSEdaTGUeO7MI1sMzDH9HJ3z2kwhNfISWAGIpEl37dBA+yLBTpyf1h3jcBmkvz2BaehVNCAcRfrD0SEUF4KC4Bf6BVVl9Uvc1+AEWZLWxepMogIDzYScMgj5SMhXqXgz74ZVMBlZpcgUQcAMcgqsmr9F6Kzb3wgjc3LqWvdNSAYkOB+G5lpWmeAO7ebADPgON8KxkVQDBZsAW+Bp0N6VXwXY5qBes9XLQrUYItgpG4ba8GuDjeRiGpXl9dYU9Qi0EjWDeBe/l8lQsfPTCT/A2xDQkTXcxrkdEWg9/wRVF7Rm+7gP1qJuK8jkt/SDQdXAUNCMvrOBP61wfwheg+5OtNCuQiKSfmNSJ99zm9/O+xucK0P/L1JKLlWYFEGY1FHLibfat1/iuwYvwB1w6WZ2u3YYgC2A3vAO5T7ythMT34iSOlirshCyhEEJH5gtwAC5vJV5R24nRB8fgjqJ8drQfhFgGmvE+VUVDiDMXtoPONfrFlu4tCDAbtsGnoLXySgqxrgadkJ+oJGCsQRBgDejEu7LqfSTms6AZ8mVVx44iHg3vhSF4C0o78bZqLDE1494FTkvdrfx13HYavhE0JNSFrUEKsftBpfIeGKTBaVAarCuqNeN9ON0W4pH4s+B9+BYKn/yFaFOmmDT2dfgqhkazD1qyVk/U987dUWjsIrggltayL0tAV2FXXv4DWwhEQk3gtTAAAAAASUVORK5CYII=",sP="/webapp/assets/Financial-jTbmDcIF.png",nP="/webapp/assets/Management-Bap-x2oY.png",iP="/webapp/assets/Financial-jTbmDcIF.png",aP="/webapp/assets/Business-DWB54-nd.png",lE="https://storage-th-xbkk.stockradars.co",lP={AnnualReport:rP,Financial:sP,Management:nP,Structured:iP,Business:aP},oE=({height:e=142,symbol:t})=>{const[r,n]=Y.useState(null),[l,c]=Y.useState([]);Y.useEffect(()=>{t&&(n(null),c([]),n_(t).then(y=>{y?.[0]&&(n(y[0][0]),c(y[0][1]??[]))}))},[t]);const f=y=>{if(!t||!r)return;let b="";y.toLowerCase()==="annualreport"?b=`${lE}/annual-report/${t}.pdf?openExternalBrowser=1`:b=`${lE}/stocksymbol/56-1/${t}/${r}/${y}.pdf?openExternalBrowser=1`,window.open(b,"_blank")},x=y=>y.includes(" ")?y:y.replace(/([A-Z])/g," $1").trim();return o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsx("div",{className:"section-box-header",children:o.jsx("p",{children:"Company Document"})}),l.length>0?o.jsx("div",{className:"overflow-auto p-3",style:{height:e-44},children:o.jsx("div",{className:"grid grid-cols-2 gap-2",children:l.map((y,b)=>o.jsxs("div",{className:"flex items-center gap-2 px-2 py-2 rounded border border-app-border cursor-pointer hover:border-white transition-colors",onClick:()=>f(y),children:[o.jsx("img",{src:lP[y],alt:y,className:"w-4 h-4 object-contain shrink-0",onError:S=>{S.target.style.display="none"}}),o.jsx("p",{className:"text-xs truncate",children:x(y)})]},b))})}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:e-44},children:"No Results"})]})},oP="https://stockradars-image.com",cE=({height:e=142,symbol:t})=>{const r=er(),n=yr(),[l,c]=Y.useState(null);Y.useEffect(()=>{t&&(c(null),a_(t).then(x=>{x?.peersList?.length&&c(x.peersList)}))},[t]);const f=x=>{r(Gn(x)),n(`/realtime/${encodeURIComponent(x.replace(".",""))}`)};return o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsx("div",{className:"section-box-header",children:o.jsx("p",{children:"Stock You May Know"})}),l?o.jsx("div",{className:"flex flex-nowrap items-center overflow-x-auto",style:{height:e-44},children:l.map(x=>o.jsxs("div",{className:"flex flex-col items-center shrink-0 px-5 cursor-pointer",onClick:()=>f(x),children:[o.jsx("img",{src:`${oP}/images/company_logo/${x}.png`,width:40,height:40,alt:x,onError:y=>{y.target.style.display="none"}}),o.jsx("p",{className:"text-xs mt-2",children:x})]},x))}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:e-44},children:"No Results"})]})},cP="/webapp/assets/logo_srnext_w-iaEwZgHl.png",uP="/webapp/assets/qrcode_download-BNytwL-3.png",dP="/webapp/assets/app_store-CVyK0T4N.svg",hP="/webapp/assets/google_play-XvR5LaEp.png",uE="https://stockradars.co/getradars",bc=()=>o.jsxs("div",{className:"flex flex-col flex-1 items-center justify-center gap-4 text-center px-4",children:[o.jsxs("div",{className:"flex items-center mb-3",children:[o.jsx("p",{className:"text-3xl",children:"Download"}),o.jsx("img",{src:cP,style:{height:50,width:"auto"},alt:"StockRadars"})]}),o.jsx("img",{src:uP,style:{height:200,width:200,objectFit:"contain"},alt:"QR Code"}),o.jsxs("div",{className:"flex gap-3 cursor-pointer mb-3",onClick:()=>window.open(uE,"_blank"),children:[o.jsx("img",{src:dP,style:{height:40,width:"auto"},alt:"App Store"}),o.jsx("img",{src:hP,style:{height:40,width:"auto"},alt:"Google Play"})]}),o.jsx("button",{className:"px-6 py-2 rounded bg-primary text-white text-sm font-medium",onClick:()=>window.open(uE,"_blank"),children:"Download"})]}),Lk=({isOpen:e,onClose:t,title:r,url:n,fullScreen:l=!1,tabs:c})=>{const[f,x]=Y.useState(0),y=yr(),b=Ye(O=>O.auth.isAuthenticated),S=Ye(O=>O.auth.userType),C=b&&S==="delay";if(Y.useEffect(()=>{if(!e)return;const O=M=>{const P=M.data;if(!P||P.type!=="onClickMenu")return;const _=P.data;(_?.menu==="shareholder_profile"||_?.menu==="surname_profile")&&(t(),y("/topshareholder",{state:{menuClick:_}}))};
32return window.addEventListener("message",O),()=>window.removeEventListener("message",O)},[e,y,t]),!e)return null;const R=c?.[f]?.url??n;return o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop",onClick:t}),o.jsxs("div",{className:`relative bg-app-bg border border-app-border overflow-hidden animate-modal-content flex flex-col ${l?"w-full h-full rounded-none":"rounded-lg w-full max-w-2xl mx-4"}`,children:[o.jsxs("div",{className:"flex items-center justify-center px-4 py-3 border-b border-app-border relative shrink-0",children:[o.jsx("p",{className:"text-sm font-medium",children:r}),o.jsx("button",{onClick:t,className:"absolute right-3 text-app-muted hover:text-white transition-colors text-lg leading-none","aria-label":"Close",children:"â"})]}),c&&c.length>0&&o.jsx("div",{className:"px-4 py-3 shrink-0",children:o.jsx("div",{className:"flex p-1 rounded-md bg-app-surface border border-app-border",children:c.map((O,M)=>o.jsx("button",{onClick:()=>x(M),className:`flex-1 py-2 text-sm rounded-md transition-colors ${M===f?"bg-primary text-white":"text-white/90 hover:text-white"}`,children:O.label},O.label))})}),o.jsx("div",{className:l?"flex-1 flex":"flex",style:l?void 0:{minHeight:"60vh",maxHeight:"calc(70vh)",overflowY:"auto"},children:C?o.jsx(bc,{}):o.jsx("iframe",{src:R,width:"100%",height:l?"100%":void 0,style:{minHeight:l?void 0:"60vh",height:l?"100%":void 0,border:0,display:"block"},title:r},R)})]})]})},Ht=({height:e=300,title:t,url:r,modalUrl:n,fullScreen:l=!1,modalTabs:c})=>{const[f,x]=Y.useState(!1);return o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsxs("div",{className:"section-box-header flex items-center justify-between",children:[o.jsx("p",{children:t}),n&&o.jsx("p",{className:"cursor-pointer text-xs text-app-muted hover:text-white transition-colors",onClick:()=>x(!0),children:"See All"})]}),r?o.jsx("iframe",{src:r,width:"100%",height:e-44,style:{border:0,display:"block"},title:t}):o.jsx("div",{className:"flex items-center justify-center text-sm",style:{height:e-44},children:"No Results"}),n&&o.jsx(Lk,{isOpen:f,onClose:()=>x(!1),title:t,url:n,fullScreen:l,tabs:c})]})},fP="https://stockradars-image.com",pP=({height:e=300,symbol:t})=>{const r=yr(),n=Ye(f=>t?f.securities.securities[t]:null),[l,c]=Y.useState(null);return Y.useEffect(()=>{i_().then(f=>{if(f?.data?.length&&t){const x=f.data.find(y=>y.symbol===t);x?.last_update&&c(x.last_update)}})},[t]),o.jsxs("div",{className:"section-box",style:{height:e},children:[o.jsxs("div",{className:"section-box-header flex items-center justify-between",children:[o.jsx("p",{children:"Top 100"}),l&&o.jsxs("p",{className:"text-xs",children:["As of Date ",N8(l)]})]}),o.jsxs("div",{className:"flex flex-col items-center justify-evenly cursor-pointer",style:{height:e-44},onClick:()=>r("/top100"),children:[n&&o.jsxs("div",{className:"flex flex-col items-center gap-1",children:[o.jsx("img",{src:`${fP}/images/company_logo/${t}.png`,alt:t??"",className:"w-16 h-16 object-contain",onError:f=>{f.target.style.display="none"}}),o.jsx("p",{className:"font-medium",children:t}),o.jsx("p",{className:"text-sm text-center px-2 line-clamp-2",children:n.fullName})]}),o.jsx("p",{className:"text-xs",children:"à¸à¸¹à¸à¹à¸à¸¡à¸¹à¸¥ Top 100 à¹à¸à¹à¹à¸ StockRadars Mobile App"})]})]})},mP="https://stockradars-image.com";function xP(e,t){return["SECTOR","SE"].includes(e)?T1(t):["INDUSTRY"].includes(e)?vC(t):bC(t)}const dE=({symbol:e,stockType:t})=>{const r=yr(),n=er(),[l,c]=Y.useState(null);Y.useEffect(()=>{e&&(c(null),xP(t,e).then(x=>{c(x?.data??[])}))},[e,t]);const f=x=>{n(Gn(x.trim())),r(`/realtime/${encodeURIComponent(x.trim().replace(".",""))}`)};return l?l.length===0?o.jsx("div",{className:"flex items-center justify-center flex-1",children:o.jsx("p",{className:"text-app-muted text-sm",children:"No Results"})}):o.jsx("div",{className:"flex-1 overflow-auto px-4 py-4",children:l.map(x=>o.jsxs("div",{className:"flex items-center gap-3 mb-2 cursor-pointer hover:bg-app-hover rounded-lg px-2 py-1",onClick:()=>f(x.symbol),children:[o.jsx("img",{src:`${mP}/images/company_logo/${x.symbol}.png`,width:50,height:50,alt:x.symbol,onError:ha}),o.jsxs("div",{className:"flex flex-col justify-around",children:[o.jsx("p",{className:"text-sm font-medium",children:x.symbol}),o.jsx("p",{className:"text-xs text-app-muted",children:x["Security Name"]})]})]},x.symbol))}):o.jsx("div",{className:"flex items-center justify-center flex-1",children:o.jsx(Vu,{})})};function gP(e={}){const{rootMargin:t="200px",threshold:r=0,triggerOnce:n=!0}=e,l=Y.useRef(null),[c,f]=Y.useState(!1);return Y.useEffect(()=>{const x=l.current;if(!x)return;const y=new IntersectionObserver(([b])=>{b.isIntersecting?(f(!0),n&&y.unobserve(x)):n||f(!1)},{rootMargin:t,threshold:r});
32return y.observe(x),()=>y.disconnect()},[t,r,n]),{ref:l,inView:c}}function Ot({children:e,height:t="100px",className:r}){const{ref:n,inView:l}=gP({rootMargin:"200px",triggerOnce:!0});return o.jsx("div",{ref:n,className:r,style:{minHeight:l?void 0:t},children:l?e:null})}const X1=()=>{const e=Ly(),{symbol:t}=dy(),r=er(),n=Ye(n0);Y.useEffect(()=>{t&&r(Gn(decodeURIComponent(t)))},[t]);const l=Ye(te=>n?te.securities.securities[n]:null),c=Ye(te=>te.securities.securities.SET??te.securities.securities[".SET"]);Y.useEffect(()=>{r(s0("SET|MAI"))},[]);const f=He.getUserId()||"",x=He.getToken()||"",y=He.getState()||"",b=He.getBroker()||"",S=l?.type?.toUpperCase()||"",C=["W","V","DWC","DWP"].includes(S);if(Y.useEffect(()=>{n&&(C?K2(n).then(te=>{if(te?.display&&te.data){const le=te.data;r(HO({symbol:n,tradingDate:le.FIRST_DATE??null,lastTradeDate:le.LAST_TRADE_DATE??null,lastExerciseDate:le.LAST_EXERCISE_DATE??null,autoExerciseDate:le.AUTO_EXERCISE_DATE??null,exerciseDate:le.EXERCISE_DATE??null,exercisePrice:le.EXERCISE_PRICE?parseFloat(le.EXERCISE_PRICE):null,exerciseRatioOld:le.EXERCISE_RATIO_OLD?parseFloat(le.EXERCISE_RATIO_OLD):null,exerciseRatioNew:le.EXERCISE_RATIO_NEW?parseFloat(le.EXERCISE_RATIO_NEW):null,expireDate:le.EXPIRE_DATE??null,underlying:le.UNDERLYING??null,listShare:le.LISTED_SHARES??null,issueDate:le.ISSUE_DATE??null,totalConvertedShares:le.TOTAL_CONVERTED_SHARES??null,issueShares:le.ISSUED_SHARES??null,multiplier:le.MULTIPLIER??null,settlementType:le.SETTLEMENT_TYPE??null,optionStyle:le.OPTION_STYLE??null,optionType:le.OPTION_TYPE??null,marketMaker:le.MARKET_MAKER?.[0]??null,marketMakerTH:le.MARKET_MAKER_TH?.[0]??null}))}}):r(ro(n)),r(_u(n)))},[n]),!n||!l)return e?o.jsx("div",{className:"flex items-center justify-center py-8",children:o.jsx("p",{className:"text-app-muted",children:"Select a stock to view insight data"})}):o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden",children:[o.jsxs("div",{className:"px-4 pt-4 flex flex-col gap-2",children:[c&&o.jsx(Jl,{stock:c,menu:".SET",showDetails:!1}),o.jsx(cc,{})]}),o.jsx("div",{className:"flex items-center justify-center flex-1",children:o.jsx("p",{className:"text-app-muted",children:"Select a stock to view insight data"})})]});if(["I","INDEX","SECTOR","SE","INDUSTRY","MK"].includes(S))return e?o.jsx(dE,{symbol:n,stockType:S}):o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden",children:[o.jsxs("div",{className:"px-4 pt-4 flex flex-col gap-2",children:[c&&o.jsx(Jl,{stock:c,menu:".SET",showDetails:!1}),o.jsx(cc,{})]}),o.jsx(dE,{symbol:n,stockType:S})]});const O=`symbol=${encodeURIComponent(n)}&userId=${f}&Token=${x}&state=${y}&broker=${b}&bundle=${b}`,M=te=>`${an.IFRAME_URL}/${te}?${O}`,P=`symbol=${encodeURIComponent(n)}&fullName=${encodeURIComponent(l.fullName||"")}&userId=${f}&Token=${x}&state=${y}&broker=${b}&bundle=${b}`,_=S==="DR"?`${an.IFRAME_URL}/drdrx?${P}`:null,$=["W"].includes(S)?`${an.IFRAME_URL}/warrants-view?${O}`:null,D=["V","DWC","DWP"].includes(S)?`${an.IFRAME_URL}/derivative-warrant-view?${O}`:null,F=_??$??D??null;if(F){const te=_?"DR":$?"Warrants":"Derivative Warrants";return e?o.jsxs("div",{className:"px-4 py-4 flex flex-col gap-4",children:[o.jsx(Ch,{stock:l}),C&&o.jsx(Qb,{symbol:n}),o.jsx("iframe",{src:F,title:te,className:"w-full border-0",style:{height:600}})]}):o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden",children:[o.jsxs("div",{className:"px-4 pt-4 flex flex-col gap-2",children:[c&&o.jsx(Jl,{stock:c,menu:".SET",showDetails:!1}),o.jsx(cc,{})]}),o.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden px-4 py-4 gap-4",children:[o.jsx(Ch,{stock:l}),C&&o.jsx(Qb,{symbol:n}),o.jsx("iframe",{src:F,title:te,className:"flex-1 w-full border-0"})]})]})}const J=o.jsxs("div",{className:"px-4 py-4 flex flex-col gap-4",children:[o.jsx(Ch,{stock:l}),e?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsx(aE,{symbol:n}),o.jsx(Ht,{title:"Business",url:M("business")})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsx(oE,{symbol:n}),o.jsx(Jt,{name:"stock-may-you-know",children:o.jsx(cE,{symbol:n})})]}),o.jsx(Jt,{name:"free-float",children:o.jsx(Ht,{title:"Free Float",url:M("freefloat-box"),height:142})})]}):o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[o.jsx("div",{className:"lg:col-span-2 flex flex-col gap-4",children:o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[o.jsx(aE,{symbol:n}),o.jsx(Ht,{title:"Business",url:M("business")})]})}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-1 gap-4",children:[o.jsx(oE,{symbol:n}),o.jsx(Jt,{name:"stock-may-you-know",children:o.jsx(cE,{symbol:n})}),o.jsx(Jt,{name:"free-float",children:o.jsx(Ht,{title:"Free Float",url:M("freefloat-box"),height:142})})]})]}),o.jsxs("div",{className:`grid gap-4 ${e?"grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"}
32`,children:[o.jsx(Jt,{name:"shareholder-detail",lockHeader:"Shareholder Detail",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Shareholder Detail",url:M("shareholder-detail")})})}),o.jsx(Jt,{name:"financial-brief",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Financial Brief",url:M("financial-brief"),modalUrl:M("financial-brief-table")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Statement of Cashflow",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Statement of Cashflow",url:M("statement-cashflow"),modalUrl:M("statement-cashflow-table")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Quarterly Report",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Quarterly Report",url:M("quarterly-report-compare-box"),modalUrl:M("quarterly-report-table")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Statistics",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Statistics",url:M("statistics-box")})})}),o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Ratios",url:M("ratios-box"),modalUrl:M("ratios-chart")})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Rate of Return",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Rate of Return",url:M("rate-return-box"),modalUrl:M("rate-return-table")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Statement of Comprehensive Income",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Statement of Comprehensive Income",url:M("comprehensive-income-box"),modalUrl:M("comprehensive-income-table")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Statement of Financial Position",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Statement of Financial Position",url:M("financial-position-box"),modalUrl:M("financial-position-table")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Top Shareholders",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Top Shareholders",url:M("topshareholders-box"),modalUrl:M("topshareholders-list"),modalTabs:[{label:"List",url:M("topshareholders-list")},{label:"Overview",url:M("topshareholders-table")}]})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Top NVDR Shareholders",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Top NVDR Shareholders",url:M("topnvdr-shareholders-box"),modalUrl:M("topnvdr-shareholders-list"),modalTabs:[{label:"List",url:M("topnvdr-shareholders-list")},{label:"Overview",url:M("topnvdr-shareholders-table")}]})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Revenue Structure",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Revenue Structure",url:M("revenue-structure-box"),modalUrl:M("revenue-structure-table")})})}),o.jsx(Jt,{name:"pe-band",lockHeader:"P/E Band",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"P/E Band",url:M("pe_band")})})}),o.jsx(Jt,{name:"pbv-band",lockHeader:"P/BV Band",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"P/BV Band",url:M("pbv_band")})})}),o.jsx(Jt,{name:"earnings-call-summary",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Earnings Call Summary (Beta)",url:M("meeting-summary"),modalUrl:M("meeting-summary")})})}),o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Income Statement",url:M("income-statement"),modalUrl:M("income-statement-full"),fullScreen:!0})}),o.jsx(Jt,{name:"top100",lockHeader:"Top 100",children:o.jsx(Ot,{height:"300px",children:o.jsx(pP,{symbol:n})})}),o.jsx(Jt,{name:"season-change",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Seasons Change",url:M("seasonality")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"EPS & Price",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"EPS & Price",url:M("eps-price")})})}),o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"P/E on Sector",url:M("pe-sector")})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"EPS on Sector",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"EPS on Sector",url:M("eps-sector")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"GPM on Sector",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"GPM on Sector",url:M("gpm-sector")}
32)})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"NPM on Sector",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"NPM on Sector",url:M("npm-sector")})})}),o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Par History",url:M("par-history-box"),modalUrl:M("par-history-list")})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Management",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Management",url:M("management-box"),modalUrl:M("management-list")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Insider Report (59-2)",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Insider Report (59-2)",url:M("insider-report-box"),modalUrl:M("insider-report-list")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Change of Top Shareholders",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Change of Top Shareholders",url:M("change-top-shareholder-box"),modalUrl:M("change-top-shareholder-list")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Noticeable Transaction",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Noticeable Transaction",url:M("notice-transaction-box"),modalUrl:M("notice-transaction-list")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Selected From Mutual Fund",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Selected From Mutual Fund",url:M("mutual-fund-box"),modalUrl:M("mutual-fund-list")})})}),o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Name History",url:M("name-history-box"),modalUrl:M("name-history-list")})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Short Sales",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Short Sales",url:M("shortsales-box"),modalUrl:M("shortsales-chart")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Big Lot",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Big Lot",url:M("biglot-box"),modalUrl:M("biglot-chart")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"NVDR",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"NVDR",url:M("nvdr-box"),modalUrl:M("nvdr-chart")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Derivative Warrants (DW)",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Derivative Warrants (DW)",url:M("dw-box"),modalUrl:M("dw-list")})})}),o.jsx(Jt,{name:"insight-premium",lockHeader:"Warrants (W)",children:o.jsx(Ot,{height:"300px",children:o.jsx(Ht,{title:"Warrants (W)",url:M("w-box"),modalUrl:M("w-list")})})})]})]});return e?J:o.jsxs("div",{className:"flex flex-col flex-1 overflow-auto",children:[o.jsxs("div",{className:"px-4 pt-4 flex flex-col gap-2",children:[c&&o.jsx(Jl,{stock:c,menu:".SET",showDetails:!1}),o.jsx(cc,{})]}),J]})},yP="/webapp/assets/icon-onradars-CdBKq7XZ.png";function vP(e){switch(e){case"XR":return"Excluding Right";case"XM":return"Excluding Meeting";case"XE":return"Excluding Exercise";case"XN":return"Excluding Capital Return";case"XB":return"Excluding Other Benefit";case"XW":return"Excluding Warrant";case"XD":return"Excluding Dividend";default:return e}}const ns=({label:e,value:t})=>o.jsxs("div",{className:"flex justify-between py-1 border-b border-app-border last:border-0",children:[o.jsx("span",{className:"text-app-muted",children:e}),o.jsx("span",{className:"text-app-muted text-right ml-4",children:t})]}),Ik=({event:e})=>{const t=e.flag;return o.jsxs("div",{className:"section-box",children:[o.jsxs("div",{className:"section-box-header flex items-center gap-3",children:[o.jsx("div",{className:"w-10 h-10 rounded-full shrink-0 bg-gray-500 flex items-center justify-center font-bold",children:o.jsx("p",{children:t})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-white",children:vP(t)}),e.datadate&&o.jsx("p",{className:"text-xs text-app-muted",children:zb(e.datadate)})]})]}),o.jsxs("div",{className:"px-4 py-3 text-sm flex flex-col gap-1",children:[o.jsx(ns,{label:"วัà¸à¸à¸¶à¹à¸à¹à¸à¸£à¸·à¹à¸à¸à¸«à¸¡à¸²à¸¢",value:Wa(e.D_effect)}),t!=="XN"&&e.recordDate&&o.jsx(ns,{label:"วัà¸à¸à¸³à¸«à¸à¸à¸£à¸²à¸¢à¸à¸·à¹à¸à¸à¸¹à¹à¸à¸·à¸à¸«à¸¸à¹à¸",value:Wa(e.recordDate)}),t==="XD"&&o.jsxs(o.Fragment,{children:[e.D_PAYMENT&&o.jsx(ns,{label:"วัà¸à¸à¸µà¹à¸à¹à¸²à¸¢à¸à¸±à¸à¸à¸¥",value:Wa(e.D_PAYMENT)}),e["dividend per share"]&&o.jsx(ns,{label:"à¸à¸±à¸à¸à¸¥",value:`${e["dividend per share"]} ${e.N_type==="SD"?" หุà¹à¸":" à¸à¸²à¸/หุà¹à¸"}`})]}),t==="XB"&&o.jsxs(o.Fragment,{children:[(e.BENEFIT_RATIO||e.BENEFIT_PRICE)&&o.jsx(ns,{label:"à¸à¸±à¸à¸£à¸²à¸ªà¹à¸§à¸à¸à¸à¸à¸à¸·à¹à¸ ภราà¸à¸²(à¸à¸²à¸)",value:[e.BENEFIT_RATIO?`(${e.BENEFIT_RATIO}
32)`:null,e.BENEFIT_PRICE].filter(Boolean).join(" ")}),e.BENEFIT_TYPE&&o.jsx(ns,{label:"à¸à¸£à¸°à¹à¸ à¸à¸à¸²à¸£à¹à¸«à¹à¸ªà¸´à¸à¸à¸´à¸à¸£à¸°à¹à¸¢à¸à¸à¹",value:e.BENEFIT_TYPE}),e.ALLOT_COMPANY&&o.jsx(ns,{label:"à¸à¸£à¸´à¸©à¸±à¸à¸¢à¹à¸à¸¢à¸à¸µà¹à¸à¸±à¸à¸ªà¸£à¸£à¸«à¸¸à¹à¸à¹à¸à¸´à¹à¸¡à¸à¸¸à¸à¹à¸«à¹à¸à¸¹à¹à¸à¸·à¸à¸«à¸¸à¹à¸",value:e.ALLOT_COMPANY})]}),t==="XR"&&o.jsxs(o.Fragment,{children:[e.benefitType&&o.jsx(ns,{label:"หลัà¸à¸à¸£à¸±à¸à¸¢à¹à¸à¸µà¹à¹à¸à¹à¸ªà¸´à¸à¸à¸´",value:e.benefitType}),(e.beginSubDate||e.endSubDate)&&o.jsx(ns,{label:"à¸à¹à¸§à¸à¹à¸§à¸¥à¸²à¸à¸à¸à¸à¸·à¹à¸",value:`${Wa(e.beginSubDate)} - ${Wa(e.endSubDate)}`}),(e.ALLOT_RATIO||e.ALLOT_PRICE)&&o.jsx(ns,{label:"à¸à¸±à¸à¸£à¸²à¸ªà¹à¸§à¸(à¹à¸à¸´à¸¡:à¹à¸«à¸¡à¹) ภราà¸à¸²(à¸à¸²à¸)",value:[e.ALLOT_RATIO?`(${e.ALLOT_RATIO})`:null,e.ALLOT_PRICE].filter(Boolean).join(" ")})]}),t==="XW"&&o.jsxs(o.Fragment,{children:[e.benefitType&&o.jsx(ns,{label:"หลัà¸à¸à¸£à¸±à¸à¸¢à¹à¸à¸µà¹à¹à¸à¹à¸ªà¸´à¸à¸à¸´",value:e.benefitType}),(e.beginSubDate||e.endSubDate)&&o.jsx(ns,{label:"à¸à¹à¸§à¸à¹à¸§à¸¥à¸²à¸à¸à¸à¸à¸·à¹à¸",value:`${Wa(e.beginSubDate)} - ${Wa(e.endSubDate)}`}),e.ALLOT_RATIO&&o.jsx(ns,{label:"à¸à¸±à¸à¸£à¸²à¸ªà¹à¸§à¸(à¹à¸à¸´à¸¡:à¹à¸«à¸¡à¹)",value:e.ALLOT_RATIO})]}),t==="XM"&&o.jsxs(o.Fragment,{children:[e.MEETING_TYPE&&o.jsx(ns,{label:"à¸à¸£à¸°à¹à¸ à¸à¸à¸²à¸£à¸à¸£à¸°à¸à¸¸à¸¡",value:e.MEETING_TYPE}),e.D_MEETING&&o.jsx(ns,{label:"วัà¸à¸à¸µà¹à¸à¸£à¸°à¸à¸¸à¸¡",value:M8(e.D_MEETING)}),e.MEETING_LOCATION&&o.jsx(ns,{label:"สà¸à¸²à¸à¸à¸µà¹",value:e.MEETING_LOCATION})]}),t==="XE"&&o.jsxs(o.Fragment,{children:[e.EXERCISE_RATIO&&o.jsx(ns,{label:"à¸à¸±à¸à¸£à¸²à¸à¸²à¸£à¹à¸à¹à¸ªà¸´à¸à¸à¸´",value:e.EXERCISE_RATIO}),e.EXERCISE_PRICE&&o.jsx(ns,{label:"ราà¸à¸²à¹à¸à¹à¸ªà¸´à¸à¸à¸´",value:e.EXERCISE_PRICE}),e.D_EXERCISE_DATE&&o.jsx(ns,{label:"วัà¸à¸à¸³à¸«à¸à¸à¹à¸à¹à¸ªà¸´à¸à¸à¸´",value:Wa(e.D_EXERCISE_DATE)})]}),t==="XN"&&o.jsxs(o.Fragment,{children:[e.RETURN_AMOUNT&&o.jsx(ns,{label:"à¸à¸³à¸à¸§à¸à¹à¸à¸´à¸à¸à¸·à¸ (à¸à¸²à¸/หุà¹à¸)",value:e.RETURN_AMOUNT}),e.D_PAYMENT&&o.jsx(ns,{label:"วัà¸à¸à¸µà¹à¸à¹à¸²à¸¢à¸à¸±à¸à¸à¸¥",value:Wa(e.D_PAYMENT)}),e.paymentDate&&o.jsx(ns,{label:"วัà¸à¸à¹à¸²à¸¢à¹à¸à¸´à¸",value:Wa(e.paymentDate)}),e.R_CAPITAL_RETURN_PER_SHARE&&o.jsx(ns,{label:"à¹à¸à¸´à¸à¸à¸·à¸ (à¸à¸²à¸/หุà¹à¸)",value:e.R_CAPITAL_RETURN_PER_SHARE})]})]})]})},Pk=pt.DATA_STORAGE,bP="https://stockradars-image.com";function wP(e){if(!e)return"";const t=e.toUpperCase()==="THUNHOON"?"ThunHoon":e;return`${Pk}/images/news_icon/${t}.png`}function SP(e){return e?`${Pk}/images/social/${e}.png`:""}function AP(e){switch(e){case"XD":return"Excluding Dividend";case"XM":return"Excluding Meeting";case"XR":return"Excluding Right";case"XB":return"Excluding Other Benefit";case"XW":return"Excluding Warrant";case"XE":return"Excluding Exercise";case"XN":return"Excluding Capital Return";default:return e}}const zs=({label:e,value:t})=>o.jsxs("div",{className:"flex justify-between py-1 border-b border-app-border last:border-0",children:[o.jsx("span",{className:"text-app-muted",children:e}),o.jsx("span",{className:"text-app-muted text-right ml-4",children:t})]}),EP=({item:e})=>{const t=e.flag,r=AP(t);return o.jsxs(bh,{children:[o.jsxs(Tp,{children:[e.imgSymbolUrl?o.jsx("img",{src:e.imgSymbolUrl,width:40,height:40,className:"rounded shrink-0",alt:t,onError:ha}):o.jsx("div",{className:"w-10 h-10 rounded-full shrink-0 bg-gray-500 flex items-center justify-center font-bold text-sm",children:t}),o.jsx("div",{children:o.jsx("p",{className:"text-sm font-medium text-white",children:r})})]}),o.jsxs("div",{className:"px-4 py-3 text-sm flex flex-col gap-1",children:[o.jsx(zs,{label:"วัà¸à¸à¸¶à¹à¸à¹à¸à¸£à¸·à¹à¸à¸à¸«à¸¡à¸²à¸¢",value:Hl(e.effectiveDate)}),t!=="XN"&&e.recordDate&&o.jsx(zs,{label:"วัà¸à¸à¸³à¸«à¸à¸à¸£à¸²à¸¢à¸à¸·à¹à¸à¸à¸¹à¹à¸à¸·à¸à¸«à¸¸à¹à¸",value:Hl(e.recordDate)}),t==="XD"&&o.jsxs(o.Fragment,{children:[e.paymentDate&&o.jsx(zs,{label:"วัà¸à¸à¸µà¹à¸à¹à¸²à¸¢à¸à¸±à¸à¸à¸¥",value:Hl(e.paymentDate)}),e.dividendPerShare!=null&&o.jsx(zs,{label:"à¸à¸±à¸à¸à¸¥",value:`${e.dividendPerShare} à¸à¸²à¸/หุà¹à¸`})]}),t==="XM"&&o.jsxs(o.Fragment,{children:[e.meetingDate&&o.jsx(zs,{label:"วัà¸à¸à¸µà¹à¸à¸£à¸°à¸à¸¸à¸¡",value:R8(e.meetingDate)}),e.meetingAgendaTh&&o.jsx(zs,{label:"วาระà¸à¸²à¸£à¸à¸£à¸°à¸à¸¸à¸¡",value:e.meetingAgendaTh})]}),t==="XR"&&o.jsxs(o.Fragment,{children:[e.benefitType&&o.jsx(zs,{label:"หลัà¸à¸à¸£à¸±à¸à¸¢à¹à¸à¸µà¹à¹à¸à¹à¸ªà¸´à¸à¸à¸´",value:e.benefitType}),(e.beginSubDate||e.endSubDate)&&o.jsx(zs,{label:"à¸à¹à¸§à¸à¹à¸§à¸¥à¸²à¸à¸à¸à¸à¸·à¹à¸",value:`${Hl(e.beginSubDate)} - ${Hl(e.endSubDate)}`}),(e.ratio||e.rightPrice!=null)&&o.jsx(zs,{label:"à¸à¸±à¸à¸£à¸²à¸ªà¹à¸§à¸(à¹à¸à¸´à¸¡:à¹à¸«à¸¡à¹) ภราà¸à¸²(à¸à¸²à¸)",value:[e.ratio?`(${e.ratio}
32)`:null,e.rightPrice!=null?String(e.rightPrice):null].filter(Boolean).join(" ")})]}),t==="XW"&&o.jsxs(o.Fragment,{children:[e.benefitType&&o.jsx(zs,{label:"หลัà¸à¸à¸£à¸±à¸à¸¢à¹à¸à¸µà¹à¹à¸à¹à¸ªà¸´à¸à¸à¸´",value:e.benefitType}),(e.beginSubDate||e.endSubDate)&&o.jsx(zs,{label:"à¸à¹à¸§à¸à¹à¸§à¸¥à¸²à¸à¸à¸à¸à¸·à¹à¸",value:`${Hl(e.beginSubDate)} - ${Hl(e.endSubDate)}`}),e.ratio&&o.jsx(zs,{label:"à¸à¸±à¸à¸£à¸²à¸ªà¹à¸§à¸(à¹à¸à¸´à¸¡:à¹à¸«à¸¡à¹)",value:e.ratio})]}),t==="XB"&&o.jsxs(o.Fragment,{children:[(e.ratio||e.rightPrice!=null)&&o.jsx(zs,{label:"à¸à¸±à¸à¸£à¸²à¸ªà¹à¸§à¸à¸à¸à¸à¸à¸·à¹à¸ ภราà¸à¸²(à¸à¸²à¸)",value:[e.ratio?`(${e.ratio})`:null,e.rightPrice!=null?String(e.rightPrice):null].filter(Boolean).join(" ")}),e.benefitType&&o.jsx(zs,{label:"à¸à¸£à¸°à¹à¸ à¸à¸à¸²à¸£à¹à¸«à¹à¸ªà¸´à¸à¸à¸´à¸à¸£à¸°à¹à¸¢à¸à¸à¹",value:e.benefitType}),e.affiliateCompany&&o.jsx(zs,{label:"à¸à¸£à¸´à¸©à¸±à¸à¸¢à¹à¸à¸¢à¸à¸µà¹à¸à¸±à¸à¸ªà¸£à¸£à¸«à¸¸à¹à¸à¹à¸à¸´à¹à¸¡à¸à¸¸à¸à¹à¸«à¹à¸à¸¹à¹à¸à¸·à¸à¸«à¸¸à¹à¸",value:e.affiliateCompany})]}),t==="XN"&&o.jsxs(o.Fragment,{children:[e.bookClosingDate&&o.jsx(zs,{label:"วัà¸à¸à¸´à¸à¸ªà¸¡à¸¸à¸à¸à¸°à¹à¸à¸µà¸¢à¸",value:Hl(e.bookClosingDate)}),e.paymentDate&&o.jsx(zs,{label:"วัà¸à¸à¹à¸²à¸¢à¹à¸à¸´à¸",value:Hl(e.paymentDate)}),e.R_CAPITAL_RETURN_PER_SHARE&&o.jsx(zs,{label:"à¹à¸à¸´à¸à¸à¸·à¸ (à¸à¸²à¸/หุà¹à¸)",value:e.R_CAPITAL_RETURN_PER_SHARE})]})]})]})},bh=({children:e})=>o.jsx("div",{className:"section-box",children:e}),Tp=({children:e})=>o.jsx("div",{className:"section-box-header flex items-center gap-3",children:e}),CP=({item:e,onOnRadarsClick:t})=>e.type==="news"?o.jsxs(bh,{children:[o.jsxs(Tp,{children:[o.jsx("img",{src:e.imgSourceUrl,width:40,height:40,className:"rounded shrink-0",alt:e.source,onError:ha}),o.jsx("div",{className:"min-w-0",children:o.jsx("p",{className:"text-sm font-medium text-white truncate",children:e.source==="SET"?"Company News":`News by ${e.source}`})})]}),o.jsx("button",{className:"w-full text-left px-4 py-3 text-sm hover:text-white transition-colors flex flex-col gap-2",onClick:()=>window.open(e.link,"_blank"),children:o.jsx("span",{children:e.title})})]}):e.type==="insider"?o.jsx(bh,{children:o.jsxs("div",{className:"flex gap-3 p-4 text-sm",children:[o.jsx("div",{children:o.jsx("img",{src:_k,width:45,height:45,className:"mt-0.5",alt:e.method,onError:JI})}),o.jsxs("div",{className:"flex-1 flex flex-col gap-1 min-w-0",children:[o.jsx("div",{className:"flex justify-between gap-2",children:o.jsx("span",{className:"leading-snug",children:e.name})}),o.jsxs("div",{className:"flex justify-between gap-2",children:[o.jsx("span",{className:e.method.toUpperCase()==="ACQUISITION"?"text-green1":"text-red1",children:e.method}),o.jsx("span",{className:"text-white",children:e.symbol})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{children:"Price"}),o.jsx("span",{children:qe(e.price,2,2)})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{children:"Volume"}),o.jsx("span",{children:qe(e.volume,2,2)})]})]})]})}):e.type==="onradars"?o.jsxs(bh,{children:[o.jsxs(Tp,{children:[o.jsx("img",{src:yP,width:45,height:45,className:"shrink-0",alt:"On Radars",onError:ha}),o.jsx("div",{children:o.jsx("p",{className:"text-sm font-medium text-white",children:"On Radars"})})]}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-2 p-3",children:e.onradars?.map(r=>o.jsxs("button",{className:"flex flex-col items-center gap-1 p-2 rounded-lg hover:bg-white/5 transition-colors",onClick:()=>t(r.name),children:[o.jsx("img",{src:`${bP}/images/sub_radars/${r.id}.png`,className:"w-11.25 h-11.25 shrink-0 object-contain",alt:r.name,onError:ha}),o.jsx("p",{className:"text-xs text-center leading-tight",children:r.name})]},r.id))})]}):e.type==="social"?o.jsxs(bh,{children:[o.jsxs(Tp,{children:[o.jsx("img",{src:e.imgSourceUrl||SP(e.from),width:40,height:40,className:"rounded shrink-0",alt:e.source||e.from,onError:ha}),o.jsxs("div",{className:"min-w-0",children:[e.author&&o.jsx("p",{className:"text-sm font-medium text-white truncate",children:e.author}),e.source&&o.jsx("p",{className:"text-xs text-app-muted",children:e.source})]})]}),o.jsx("button",{className:"w-full text-left px-4 py-3 text-sm hover:text-white transition-colors",onClick:()=>window.open(e.link,"_blank"),children:(()=>{const r=e.title||e.data||"",n=r.split(` 33`)[0].trim();return n&&n.length<r.trim().length?`${n}...`:n})()})]}):e.type==="flag_effect"?o.jsx(Ik,{event:e}):e.type==="company_event"?o.jsx(EP,{item:e}):e.type==="video"||e.type==="opp_day"?o.jsxs(bh,{children:[o.jsxs(Tp,{children:[o.jsx("img",{src:wP(e.source??""),width:40,height:40,className:"rounded shrink-0",alt:e.source??"",onError:ha}),o.jsx("div",{children:o.jsx("p",{className:"text-sm font-medium text-white",children:e.topic})})]}),o.jsx("div",{className:"p-3",children:o.jsx("iframe",{src:`https://www.youtube.com/embed/${e.videoid}`,width:"100%",height:240,style:{border:0},title:e.topic,allowFullScreen:!0})})]}):null,kP=({isOpen:e,filterOptions:t,selectedFilters:r,onApply:n,onClose:l})=>{const[c,f]=Y.useState(r);if(Y.useEffect(()=>{e&&f(r.length>0?r:t.map(C=>C.value))},[e]),!e)return null;function x(C){f(R=>R.includes(C)?R.filter(O=>O!==C):[...R,C])}function y(){n(c)}function b(){f(t.map(C=>C.value))}function S(){f([])}return o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",onClick:l,children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop"}),o.jsxs("div",{className:"relative bg-app-bg border border-app-border rounded-xl w-full max-w-sm mx-4 animate-modal-content",onClick:C=>C.stopPropagation(),children:[o.jsxs("div",{className:"flex items-center justify-center px-4 py-3 border-b border-app-border relative",children:[o.jsx("p",{className:"text-sm font-medium",children:"à¹à¸¥à¸·à¸à¸à¸à¸£à¸°à¹à¸ à¸à¸à¹à¸à¸¡à¸¹à¸¥"}),o.jsx("button",{onClick:l,className:"absolute right-4 text-app-muted hover:text-white transition-colors text-lg leading-none","aria-label":"Close",children:"â"})]}),o.jsx("div",{className:"overflow-y-auto",style:{maxHeight:"calc(50vh)"},children:t.map(C=>{const R=c.includes(C.value);return o.jsxs("button",{className:`w-full flex items-center gap-3 px-4 py-3 text-sm text-left transition-colors border-b border-app-border last:border-0 ${R?" font-medium":"text-white hover:bg-white/5"}`,onClick:()=>
33x(C.value),children:[o.jsx("img",{src:C.imgUrl,width:40,height:40,onError:ha,alt:C.label,className:"shrink-0"}),o.jsx("span",{className:"flex-1",children:C.label}),o.jsx("span",{className:`w-5 h-5 rounded border-2 flex items-center justify-center shrink-0 transition-colors ${R?"bg-primary border-primary text-white":"border-app-border"}`,children:R&&o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:o.jsx("path",{d:"M2 6l3 3 5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]},C.value)})}),o.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-t border-app-border",children:[o.jsx("button",{className:"flex-1 py-2 text-sm border border-app-border rounded-lg text-app-muted hover:text-white transition-colors",onClick:S,children:"ลà¹à¸²à¸à¸à¸±à¹à¸à¸«à¸¡à¸"}),o.jsx("button",{className:"flex-1 py-2 text-sm border border-app-border rounded-lg text-app-muted hover:text-white transition-colors",onClick:b,children:"à¹à¸¥à¸·à¸à¸à¸à¸±à¹à¸à¸«à¸¡à¸"}),o.jsxs("button",{className:"flex-1 py-2 text-sm bg-primary rounded-lg text-white font-medium hover:bg-primary/80 transition-colors",onClick:y,children:["à¸à¸³à¹à¸à¹à¸à¹",c.length>0?` (${c.length})`:""]})]})]})]})},TP="https://stockradars-image.com",NP=({isOpen:e,subfeed:t,onClose:r})=>!e||!t?null:o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",onClick:r,children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop"}),o.jsxs("div",{className:"relative bg-app-bg border border-app-border rounded-xl p-4 max-w-sm w-full mx-4 animate-modal-content",onClick:n=>n.stopPropagation(),children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("img",{src:`${TP}/images/sub_radars/${t.id}.png`,width:45,height:45,alt:t.name,onError:n=>{n.target.style.display="none"}}),o.jsx("p",{className:"text-white font-semibold",children:t.name})]}),o.jsx("button",{onClick:r,className:"text-app-muted hover:text-white transition-colors text-lg leading-none ml-2","aria-label":"Close",children:"â"})]}),o.jsx("p",{className:"text-app-muted text-sm leading-relaxed",children:t.desc})]})]}),q1=()=>{const e=Ly(),{symbol:t}=dy(),r=er(),n=Ye(n0),l=Ye(te=>n?te.securities.securities[n]:null),c=Ye(te=>te.securities.securities.SET??te.securities.securities[".SET"]),f=Ye($_),x=Ye(V_),y=Ye(H_),b=Ye(Y_),S=Ye(G_),C=Ye(X_),[R,O]=Y.useState([]),[M,P]=Y.useState(0),[_,$]=Y.useState(!1);Y.useEffect(()=>{t&&r(Gn(decodeURIComponent(t)))},[t]),Y.useEffect(()=>(r(TC()),r(s0("SET|MAI")),()=>{r(W_())}),[]),Y.useEffect(()=>{n&&(r(ro(n)),r(_u(n)))},[n]),Y.useEffect(()=>{n&&r(kg({symbol:n,filters:R,page:M}))},[n,R,M]);function D(te){O(te),P(0),$(!1)}if(!n||!l)return o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden",children:[!e&&o.jsxs("div",{className:"px-4 pt-4 flex flex-col gap-2",children:[c&&o.jsx(Jl,{stock:c,menu:".SET",showDetails:!1}),o.jsx(cc,{})]}),o.jsx("div",{className:"flex items-center justify-center flex-1",children:o.jsx("p",{className:"text-app-muted",children:"Select a stock to view timeline"})})]});const F=o.jsxs("div",{className:"px-4 py-4 flex flex-col gap-4",children:[o.jsx(Ch,{stock:l}),(()=>{const te=R.length===0||R.length===y.length,le=R.length===0?y:y.filter(L=>R.includes(L.value)),se=te?"Show all":le.map(L=>L.label).join(", ");return o.jsxs("button",{className:"w-full flex items-center justify-between py-1 text-sm",onClick:()=>$(!0),children:[o.jsxs("div",{className:"flex flex-col items-start gap-0.5 min-w-0 flex-1 pr-3",children:[o.jsxs("span",{className:"font-semibold text-white text-base",children:["Timeline (",le.length,")"]}),o.jsx("span",{className:"text-app-muted text-xs truncate w-full text-left",children:se})]}),o.jsx(OD,{size:22,className:"text-primary shrink-0"})]})})(),S&&o.jsx("div",{className:"flex justify-center py-4",children:o.jsx(Vu,{})}),x.map((te,le)=>o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("p",{className:"text-xs px-1",children:zb(te.D_effect)}),o.jsx(Ik,{event:te})]},le)),f.map((te,le)=>o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("p",{className:"text-xs px-1",children:zb(te.datadate)}),o.jsx(CP,{item:te,onOnRadarsClick:se=>r(NC(se))})]},le)),(M>0||f.length>20)&&o.jsxs("div",{className:"flex justify-between gap-2",children:[M>0&&o.jsx("button",{className:"px-4 py-2 text-sm border border-app-border rounded-lg hover:text-white transition-colors",onClick:()=>P(te=>te-1),children:"â Prev"}),o.jsx("button",{className:"ml-auto px-4 py-2 text-sm border border-app-border rounded-lg hover:text-white transition-colors",onClick:()=>P(te=>te+1),children:"Next â"})]}),C&&!S&&x.length===0&&f.length===0&&o.jsx("div",{className:"flex items-center justify-center",style:{height:"50vh"},children:o.jsx("p",{children:"No Results"})})]}),J=o.jsxs(o.Fragment,{children:[o.jsx(kP,{isOpen:_,filterOptions:y,selectedFilters:R,onApply:D,onClose:()=>$(!1)}),o.jsx(NP,{isOpen:!!b,subfeed:b,onClose:()=>r(q_())})]});return e?o.jsxs(o.Fragment,{children:[F,J]}):o.jsxs("div",{className:"flex flex-col flex-1 overflow-auto",children:[o.jsxs("div",{className:"px-4 pt-4 flex flex-col gap-2",children:[c&&o.jsx(Jl,{stock:c,menu:".SET",showDetail
33s:!1}),o.jsx(cc,{})]}),F,J]})},jP="https://stockradars-image.com",MP=["I","INDEX","SECTOR","SE","INDUSTRY","MK"],RP=[{label:"Realtime",key:"realtime"},{label:"Insight",key:"insight"},{label:"Timeline",key:"timeline"}],OP=()=>{const{radarsId:e}=dy(),t=yr(),r=er(),n=Ye(MC),l=Ye(fe=>fe.securities.securities),[c,f]=Y.useState([]),[x,y]=Y.useState([]),[b,S]=Y.useState([]),[C,R]=Y.useState(!0),[O,M]=Y.useState("card"),[P,_]=Y.useState(null),[$,D]=Y.useState("realtime"),[F,J]=Y.useState(!1),[te,le]=Y.useState(0),[se,L]=Y.useState(""),W=P?l[P]??null:null,z=Y.useCallback(()=>{M(fe=>fe==="table"?"card":"table")},[]),H=Y.useCallback(fe=>{if(!fe.name)return;const pe=fe.name;_(pe),r(Gn(pe)),r(ro(pe)),r(_u(pe)),r(jh(pe)),J(!0)},[r]);let Z=null;for(const fe of n){for(const pe of fe.radars){if(String(pe.I_radars??pe.id)===e){Z=pe;break}if(pe.signal?.length){const Q=pe.signal.find(re=>String(re.I_radars??re.id)===e);if(Q){Z=Q;break}}}if(Z)break}Y.useEffect(()=>{n.length===0&&r(Bp())},[r,n.length]),Y.useEffect(()=>{e&&(R(!0),Z_(Number(e)).then(async fe=>{if(!fe?.symbols?.length){R(!1);return}const pe=fe.symbols,Q=[],re=[];for(const _e of pe)_e.includes(".")?re.push(_e):Q.push(_e);const ge=[];for(let _e=0;_e<Q.length;
33_e+=40)ge.push(Q.slice(_e,_e+40));const ye=[...re,".SET",".MAI"].join("|").replaceAll(".","");await Promise.all([...ge.map(_e=>r(Pu([_e.join("|")]))),Dh(ye)]),r(Fu(pe)),y(fe.col??[]),S(fe.data??[]),f(pe),le(fe.viewCount??0),L(fe.latestDate??""),R(!1);const Te=Q[0]??pe[0];Te&&(_(Te),r(Gn(Te)),r(ro(Te)),r(_u(Te)),r(jh(Te)))}))},[e]);const ae=c.map(fe=>l[fe]??l[`.${fe}`]).filter(fe=>!!fe),ue=Z?.N_name??Z?.name??"",ie=Z?.N_desc??Z?.desc??"",X=te||Z?.view||0,oe=se||Z?.last_update||Z?.N_date||Z?.date||"",ne=W?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex border-b border-app-border",children:RP.map(fe=>{const pe=fe.key==="insight"&&MP.includes(W.type??"")?"Stock":fe.label;return o.jsx("button",{onClick:()=>D(fe.key),className:`flex-1 py-2 text-sm font-medium transition-colors border-b-2 -mb-px ${$===fe.key?"border-primary bg-primary text-white":"border-transparent text-app-muted hover:text-white"}`,children:pe},fe.key)})}),o.jsx(H1.Provider,{value:!0,children:o.jsxs("div",{className:"flex-1 overflow-y-auto",children:[$==="realtime"&&o.jsx(G1,{}),$==="insight"&&o.jsx(X1,{}),$==="timeline"&&o.jsx(q1,{})]})})]}):null;return o.jsxs("div",{className:"flex h-full overflow-hidden",children:[o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden",children:[o.jsxs("div",{className:"relative overflow-hidden bg-app-surface shrink-0 h-60",children:[o.jsx("img",{src:`${jP}/images/sub_radars_bg/${e}.png`,alt:"",className:"absolute inset-0 w-full h-full object-cover opacity-30",onError:fe=>{fe.currentTarget.style.display="none"}}),o.jsx("div",{className:"absolute inset-0 bg-linear-to-b from-transparent to-app-surface/80"}),o.jsxs("div",{className:"relative h-full flex flex-col justify-between px-4 pt-4 pb-5",children:[o.jsxs("div",{children:[o.jsx("div",{className:"flex justify-between items-center mb-3",children:o.jsx("button",{onClick:()=>t("/radars"),className:"w-8 h-8 cursor-pointer rounded-full bg-black/40 flex items-center justify-center text-white hover:bg-black/60 transition-colors",children:"â"})}),o.jsx("h1",{className:"text-white font-bold text-xl mb-1",children:ue}),ie&&o.jsx("p",{className:"line-clamp-2 mb-2",children:ie})]}),o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(MD,{size:22}),o.jsx("span",{children:X})]}),oe&&o.jsxs("span",{className:"flex items-center gap-1",children:[o.jsx(AD,{size:22}),o.jsx("span",{children:oe})]})]})]})]}),o.jsxs("div",{className:"flex-1 overflow-auto px-4 py-3",children:[o.jsxs("div",{className:"flex items-center justify-between mb-3",children:[o.jsxs("span",{className:"text-white font-semibold text-sm",children:["Stocks (",C?"...":ae.length,")"]}),o.jsx("button",{onClick:z,className:"shrink-0 flex items-center","aria-label":"Toggle view",children:o.jsx("img",{src:O==="table"?$1:V1,width:35,alt:O==="table"?"Switch to card view":"Switch to table view"})})]}),C?o.jsx(Hu,{}):ae.length===0?o.jsx("p",{className:"text-app-secondary text-center py-8 text-sm",children:"No stocks"}):O==="card"?o.jsx("div",{className:"grid grid-cols-2 gap-2",children:ae.map(fe=>o.jsx(Dy,{stock:fe,onClick:()=>H(fe)},fe.name))}):o.jsx(DI,{stocks:ae,cols:x,body:b,loading:C,onStockSelect:H})]})]}),o.jsx("div",{className:"hidden lg:flex flex-col w-2/3 shrink-0 border-l border-app-border overflow-hidden",children:W?ne:o.jsx("div",{className:"flex items-center justify-center h-full text-app-secondary text-sm",children:"Select a stock to view details"})}),F&&W&&o.jsxs("div",{className:"lg:hidden fixed inset-0 z-50 flex flex-col justify-end",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop",onClick:()=>J(!1)}),o.jsxs("div",{className:"relative bg-app-surface rounded-t-2xl flex flex-col overflow-hidden animate-modal-content",style:{height:"78vh"},children:[o.jsxs("div",{className:"flex items-center justify-between px-4 pt-3 pb-1 shrink-0",children:[o.jsx("div",{className:"w-10 h-1 rounded-full bg-app-border mx-auto absolute left-1/2 -translate-x-1/2 top-3"}),o.jsx("div",{className:"flex-1"}),o.jsx("button",{onClick:()=>J(!1),className:"text-app-muted hover:text-white text-lg leading-none",children:"â"})]}),ne]})]})]})},BP={getPremiumLeft(){return v1.get("/store/premium_left/")}},_P="/webapp/assets/[email protected]",DP=e=>e>30?{text:"text-green-500",border:"border-green-500",bg:"bg-green-500"}:e>=16?{text:"text-yellow-500",border:"border-yellow-500",bg:"bg-yellow-500"}:{text:"text-red-500",border:"border-red-500",bg:"bg-red-500"},hE=e=>
33e.toLocaleString(),LP=()=>{const e=yr(),[t,r]=Y.useState(0),[n,l]=Y.useState(0),[c,f]=Y.useState(!0),x=Y.useRef(0);Y.useEffect(()=>{BP.getPremiumLeft().then(C=>{C?.days!=null&&r(C.days)}).catch(()=>{}).finally(()=>f(!1))},[]),Y.useEffect(()=>{const C=n,R=t;if(C===R)return;const O=500,M=performance.now(),P=_=>{const $=_-M,D=Math.min($/O,1);l(Math.round(C+(R-C)*D)),D<1&&(x.current=requestAnimationFrame(P))};return x.current=requestAnimationFrame(P),()=>cancelAnimationFrame(x.current)},[t]);const y=DP(t),b=t?t/365*100:0,S=Y.useCallback(()=>{window.open(hS.BUY_URL,"_blank")},[]);return o.jsx("div",{className:"flex items-center justify-center min-h-full overflow-auto",children:o.jsxs("div",{className:"p-4 max-w-5xl w-full space-y-6",children:[o.jsx("div",{className:"flex justify-center",children:c?o.jsx("div",{className:"w-[150px] h-[150px] rounded-full border-3 border-app-border animate-pulse bg-app-surface"}):o.jsxs("div",{className:`w-[150px] h-[150px] rounded-full border-3 ${y.border} flex flex-col items-center justify-center`,children:[o.jsx("span",{className:`text-4xl font-bold ${y.text}`,children:hE(n)}),o.jsx("span",{className:"text-xs text-app-secondary",children:"Day Remaining"})]})}),c?o.jsx("div",{className:"w-full h-2.5 rounded-full bg-app-border animate-pulse"}):o.jsx("div",{className:`w-full h-2.5 rounded-full border ${y.border} bg-app-surface overflow-hidden`,children:o.jsx("div",{className:`h-full rounded-full ${y.bg} transition-all duration-500`,style:{width:`${b}%`}})}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[c?o.jsx("div",{className:"h-[76px] rounded-xl bg-app-border animate-pulse"}):o.jsxs("div",{className:"flex items-center gap-4 bg-primary rounded-xl px-4 py-5 cursor-pointer",onClick:()=>e("/promotion"),children:[o.jsx("img",{src:UC,alt:"Promotion",className:"w-16 sm:w-12"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-base font-semibold text-white",children:"Promotion"}),o.jsx("p",{className:"text-sm text-white/80",children:"Please insert your Promo Code"})]})]}),c?o.jsx("div",{className:"h-[76px] rounded-xl bg-app-border animate-pulse"}):o.jsxs("div",{className:"flex items-center gap-4 bg-app-surface rounded-xl px-4 py-3",children:[o.jsx("img",{src:_P,alt:"Premium Yearly",className:"w-14 shrink-0"}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("p",{className:"text-base font-semibold text-white whitespace-nowrap",children:"StockRadars PREMIUM 1 Year"}),o.jsxs("p",{className:"text-sm text-app-secondary",children:[hE(hS.PRICE)," Baht"]})]}),o.jsx("button",{onClick:S,className:"bg-primary hover:bg-primary/80 text-white text-sm font-medium px-4 py-2 rounded-lg shrink-0",children:"Buy"})]})]})]})})};var Pg={exports:{}},IP=Pg.exports,fE;function PP(){return fE||(fE=1,(function(e,t){(function(r,n){r._Highcharts=n(),e.exports=r._Highcharts})("u"<typeof window?IP:window,()=>(()=>{let r,n,l,c,f,x;var y,b,S,C,R,O,M,P,_,$,D,F,J,te,le,se,L,W,z,H,Z,ae,ue,ie,X,oe,ne,fe,pe={};pe.d=(k,i)=>{for(var u in i)pe.o(i,u)&&!pe.o(k,u)&&Object.defineProperty(k,u,{enumerable:!0,get:i[u]})},pe.o=(k,i)=>Object.prototype.hasOwnProperty.call(k,i);var Q={};pe.d(Q,{default:()=>xu}),(y=D||(D={})).SVG_NS="http://www.w3.org/2000/svg",y.product="Highcharts",y.version="12.5.0",y.win="u">typeof window?window:{},y.doc=y.win.document,y.svg=!!y.doc?.createElementNS?.(y.SVG_NS,"svg")?.createSVGRect,y.pageLang=y.doc?.documentElement?.closest("[lang]")?.lang,y.userAgent=y.win.navigator?.userAgent||"",y.isChrome=y.win.chrome,y.isFirefox=y.userAgent.indexOf("Firefox")!==-1,y.isMS=/(edge|msie|trident)/i.test(y.userAgent)&&!y.win.opera,y.isSafari=!y.isChrome&&y.userAgent.indexOf("Safari")!==-1,y.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(y.userAgent),y.isWebKit=y.userAgent.indexOf("AppleWebKit")!==-1,y.deg2rad=2*Math.PI/360,y.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],y.noop=function(){},y.supportsPassiveEvents=(function(){let k=!1;if(!y.isMS){let i=Object.defineProperty({},"passive",{get:function(){k=!0}});y.win.addEventListener&&y.win.removeEventListener&&(y.win.addEventListener("testPassive",y.noop,i),y.win.removeEventListener("testPassive",y.noop,i))}return k})(),y.charts=[],y.composed=[],y.dateFormats={},y.seriesTypes={},y.symbolSizes={},y.chartCount=0;let re=D,{charts:ge,doc:ye,win:Te}=re;function _e(k,i,u,h){let m=i?"Highcharts error":"Highcharts warning";k===32&&(k=`${m}: Deprecated member`);let g=Nt(k),v=g?`${m} #${k}: www.highcharts.com/errors/${k}/`:k.toString();if(h!==void 0){let w="";g&&(v+="?"),he(h,function(A,N){w+=` 34 - ${N}: ${A}`,g&&(v+=encodeURI(N)+"="+encodeURI(A))}),v+=w}ze(re,"displayError",{chart:u,code:k,message:v,params:h},function(){if(i)throw Error(v);Te.console&&_e.messages.indexOf(v)===-1&&console.warn(v)}),_e.messages.push(v)}function Qe(k,i){return parseInt(k,i||10)}function Je(k){return typeof k=="string"}function it(k){let i=Object.prototype.toString.call(k);return i==="[object Array]"||i==="[object Array Iterator]"}function gt(k,i){return!!k&&typeof k=="object"&&(!i||!it(k))}function bt(k){return gt(k)&&typeof k.nodeType=="number"}function Xt(k){let i=k?.constructor;
vendor: 226,310 bytes, line 34
34return!!(gt(k,!0)&&!bt(k)&&i?.name&&i.name!=="Object")}function Nt(k){return typeof k=="number"&&!isNaN(k)&&k<1/0&&k>-1/0}function xt(k){return k!=null}function jt(k,i,u){let h,m=Je(i)&&!xt(u),g=(v,w)=>{xt(v)?k.setAttribute(w,v):m?(h=k.getAttribute(w))||w!=="class"||(h=k.getAttribute(w+"Name")):k.removeAttribute(w)};return Je(i)?g(u,i):he(i,g),h}function Le(k){return it(k)?k:[k]}function Ke(k,i){let u;for(u in k||(k={}),i)k[u]=i[u];return k}function tt(){let k=arguments,i=k.length;for(let u=0;u<i;u++){let h=k[u];if(h!=null)return h}}function Ze(k,i){Ke(k.style,i)}function dt(k){return Math.pow(10,Math.floor(Math.log(k)/Math.LN10))}function xe(k,i){return k>1e14?k:parseFloat(k.toPrecision(i||14))}(_e||(_e={})).messages=[],Math.easeInOutSine=function(k){return-.5*(Math.cos(Math.PI*k)-1)};let Se=Array.prototype.find?function(k,i){return k.find(i)}:function(k,i){let u,h=k.length;for(u=0;u<h;u++)if(i(k[u],u))return k[u]};function he(k,i,u){for(let h in k)Object.hasOwnProperty.call(k,h)&&i.call(u||k[h],k[h],h,k)}function Ne(k,i,u){function h(v,w){let A=k.removeEventListener;A&&A.call(k,v,w,!1)}function m(v){let w,A;k.nodeName&&(i?(w={})[i]=!0:w=v,he(w,function(N,B){if(v[B])for(A=v[B].length;A--;)h(B,v[B][A].fn)}))}let g=typeof k=="function"&&k.prototype||k;if(Object.hasOwnProperty.call(g,"hcEvents")){let v=g.hcEvents;if(i){let w=v[i]||[];u?(v[i]=w.filter(function(A){return u!==A.fn}),h(i,u)):(m(v),v[i]=[])}else m(v),delete g.hcEvents}}function ze(k,i,u,h){if(u=u||{},ye?.createEvent&&(k.dispatchEvent||k.fireEvent&&k!==re)){let m=ye.createEvent("Events");m.initEvent(i,!0,!0),u=Ke(m,u),k.dispatchEvent?k.dispatchEvent(u):k.fireEvent(i,u)}else if(k.hcEvents){u.target||Ke(u,{preventDefault:function(){u.defaultPrevented=!0},target:k,type:i});let m=[],g=k,v=!1;for(;g.hcEvents;)Object.hasOwnProperty.call(g,"hcEvents")&&g.hcEvents[i]&&(m.length&&(v=!0),m.unshift.apply(m,g.hcEvents[i])),g=Object.getPrototypeOf(g);v&&m.sort((w,A)=>w.order-A.order),m.forEach(w=>{w.fn.call(k,u)===!1&&u.preventDefault()})}h&&!u.defaultPrevented&&h.call(k,u)}let Ue=(l=Math.random().toString(36).substring(2,9)+"-",c=0,function(){return"highcharts-"+(r?"":l)+c++});Te.jQuery&&(Te.jQuery.fn.highcharts=function(){let k=[].slice.call(arguments);if(this[0])return k[0]?(new re[Je(k[0])?k.shift():"Chart"](this[0],k[0],k[1]),this):ge[jt(this[0],"data-highcharts-chart")]});let Me={addEvent:function(k,i,u,h={}){let m=typeof k=="function"&&k.prototype||k;Object.hasOwnProperty.call(m,"hcEvents")||(m.hcEvents={});let g=m.hcEvents;re.Point&&k instanceof re.Point&&k.series&&k.series.chart&&(k.series.chart.runTrackerClick=!0);let v=k.addEventListener;v&&v.call(k,i,u,!!re.supportsPassiveEvents&&{passive:h.passive===void 0?i.indexOf("touch")!==-1:h.passive,capture:!1}),g[i]||(g[i]=[]);let w={fn:u,order:typeof h.order=="number"?h.order:1/0};return g[i].push(w),g[i].sort((A,N)=>A.order-N.order),function(){Ne(k,i,u)}},arrayMax:function(k){let i=k.length,u=k[0];for(;i--;)k[i]>u&&(u=k[i]);return u},arrayMin:function(k){let i=k.length,u=k[0];for(;i--;)k[i]<u&&(u=k[i]);return u},attr:jt,clamp:function(k,i,u){return k>i?k<u?k:u:i},clearTimeout:function(k){xt(k)&&clearTimeout(k)},correctFloat:xe,createElement:function(k,i,u,h,m){let g=ye.createElement(k);return i&&Ke(g,i),m&&Ze(g,{padding:"0",border:"none",margin:"0"}),u&&Ze(g,u),h&&h.appendChild(g),g},crisp:function(k,i=0,u){let h=i%2/2,m=u?-1:1;return(Math.round(k*m-h)+h)*m},css:Ze,defined:xt,destroyObjectProperties:function(k,i,u){he(k,function(h,m){h!==i&&h?.destroy&&h.destroy(),(h?.destroy||!u)&&delete k[m]})},diffObjects:function(k,i,u,h){let m={};return(function g(v,w,A,N){let B=u?w:v;he(v,function(j,I){if(!N&&h&&h.indexOf(I)>-1&&w[I]){j=Le(j),A[I]=[];for(let U=0;U<Math.max(j.length,w[I].length);U++)w[I][U]&&(j[U]===void 0?A[I][U]=w[I][U]:(A[I][U]={},g(j[U],w[I][U],A[I][U],N+1)))}else gt(j,!0)&&!j.nodeType?(A[I]=it(j)?[]:{},g(j,w[I]||{},A[I],N+1),Object.keys(A[I]).length===0&&(I!=="colorAxis"||N!==0)&&delete A[I]):(v[I]!==w[I]||I in v&&!(I in w))&&I!=="__proto__"&&I!=="constructor"&&(A[I]=B[I])})})(k,i,m,0),m},discardElement:function(k){k?.parentElement?.removeChild(k)},erase:function(k,i){let u=k.length;for(;u--;)if(k[u]===i){k.splice(u,1);break}},error:_e,extend:Ke,extendClass:function(k,i){let u=function(){};return u.prototype=new k,Ke(u.prototype,i),u},find:Se,fireEvent:ze,getAlignFactor:(k="")=>({center:.5,right:1,middle:.5,bottom:1})[k]||0,getClosestDistance:function(k,i){let u,h,m,g=!i;return k.forEach(v=>{if(v.length>1)for(m=v.length-1;m>0;m--)(h=v[m]-v[m-1])<0&&!g?(i?.(),i=void 0):h&&(u===void 0||h<u)&&(u=h)}),u},getMagnitude:dt,getNestedProperty:function(k,i){let u=k.split(".");for(;u.length&&xt(i);){let h=u.shift();if(h===void 0||h==="__proto__")return;if(h==="this"){let g;return gt(i)&&(g=i["@this"]),g??i}let m=i[h.replace(/[\\'"]/g,"")];if(!xt(m)||typeof m=="function"||typeof m.nodeType=="number"||m===Te)return;i=m}return i},getStyle:function k(i,u,h){let m;if(u==="width"){let v=Math.min(i.offsetWidth,i.scrollWidth),w=i.getBoundingClientRect?.().width;return w<v&&w>=v-1&&(v=Math.floor(w)),Math.max(0,v-(k(i,"padding-left",!0)||0)-(k(i,"padding-right",!0)||0))}if(u==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(k(i,"padding-top",!0)||0)-(k(i,"padding-bottom",!0)||0));let g=Te.getComputedStyle(i,void 0);return g&&(m=g.getPropertyValue(u),tt(h,u!=="opacity")&&(m=Qe(m))),m},insertItem:function(k,i){let u,h=k.options.index,m=i.length;for(u=k.options.isInternal?m:0;u<m+1;u++)if(!i[u]||Nt(h)&&h<tt(i[u].options.index,i[u]._i)||i[u].options.isInternal){i.splice(u,0,k);break}return u},isArray:it,isClass:Xt,isDOMElement:bt,isFunction:function(k){return typeof k=="function"},isNumber:Nt,isObject:gt,isString:Je,merge:function(k,...i){let u,h=[k,...i],m={},g=function(w,A){return typeof w!="object"&&(w={}),he(A,function(N,B){B!=="__proto__"&&B!=="constructor"&&(!gt(N,!0)||Xt(N)||bt(N)?w[B]=A[B]:w[B]=g(w[B]||{},N))}),w};k===!0&&(m=h[1],h=Array.prototype.slice.call(h,2));let v=h.length;for(u=0;u<v;u++)m=g(m,h[u]);return m},normalizeTickInterval:function(k,i,u,h,m){let g,v=k;u=tt(u,dt(k));let w=k/u;for(!i&&(i=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],h===!1&&(u===1?i=i.filter(function(A){return A%1==0}):u<=.1&&(i=[1/u]))),g=0;g<i.length&&(v=i[g],(!m||!(v*u>=k))&&(m||!(w<=(i[g]+(i[g+1]||i[g]))/2)));g++);return xe(v*u,-Math.round(Math.log(.001)/Math.LN10))},objectEach:he,offset:function(k){let i=ye.documentElement,u=k.parentElement||k.parentNode?k.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:u.top+(Te.pageYOffset||i.scrollTop)-(i.clientTop||0),left:u.left+(Te.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:u.width,height:u.height}},pad:function(k,i,u){return Array((i||2)+1-String(k).replace("-","").length).join(u||"0")+k},pick:tt,pInt:Qe,pushUnique:function(k,i){return 0>k.indexOf(i)&&!!k.push(i)},relativeLength:function(k,i,u){return/%$/.test(k)?i*parseFloat(k)/100+(u||0):parseFloat(k)},removeEvent:Ne,replaceNested:function(k,...i){let u,h;do for(h of(u=k,i))k=k.replace(h[0],h[1]);while(k!==u);return k},splat:Le,stableSort:function(k,i){let u,h,m=k.length;for(h=0;h<m;h++)k[h].safeI=h;for(k.sort(function(g,v){return(u=i(g,v))===0?g.safeI-v.safeI:u}),h=0;h<m;h++)delete k[h].safeI},syncTimeout:function(k,i,u){return i>0?setTimeout(k,i,u):(k.call(0,u),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(k){return Je(k)?k.substring(0,1).toUpperCase()+k.substring(1):String(k)},uniqueKey:Ue,useSerialIds:function(k){return r=tt(k,r)},wrap:function(k,i,u){let h=k[i];k[i]=function(){let m=arguments,g=this;return u.apply(this,[function(){return h.apply(g,arguments.length?arguments:m)}].concat([].slice.call(arguments)))}}},{pageLang:ot,win:kt}=re,{defined:vr,error:ir,extend:qt,isNumber:qr,isObject:xr,isString:Fr,merge:Er,objectEach:qn,pad:gr,splat:hi,timeUnits:Ts,ucfirst:ya}=Me,Ri=re.isSafari&&kt.Intl&&!kt.Intl.DateTimeFormat.prototype.formatRange,En=class{constructor(k,i){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=kt.Date,this.update(k),this.lang=i}update(k={}){this.dTLCache={},this.options=k=Er(!0,this.options,k);let{timezoneOffset:i,useUTC:u,locale:h}=k;this.Date=k.Date||kt.Date||Date;let m=k.timezone;vr(u)&&(m=u?"UTC":void 0),i&&i%60==0&&(m="Etc/GMT"+(i>0?"+":"")+i/60),this.variableTimezone=m!=="UTC"&&m?.indexOf("Etc/GMT")!==0,this.timezone=m,this.lang&&h&&(this.lang.locale=h),["months","shortMonths","weekdays","shortWeekdays"].forEach(g=>{let v=/months/i.test(g),w=/short/.test(g),A={timeZone:"UTC"};A[v?"month":"weekday"]=w?"short":"long",this[g]=(v?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(N=>this.dateFormat(A,(v?31:1)*24*36e5*N))})}toParts(k){let[i,u,h,m,g,v,w]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},k,"es").split(/(?:, | |\/|:)/g);return[m,h-1,u,g,v,w,Math.floor(Number(k)||0)%1e3,"DLMXJVS".indexOf(i)].map(Number)}dateTimeFormat(k,i,u=this.options.locale||ot){let h=JSON.stringify(k)+u;Fr(k)&&(k=this.str2dtf(k));let m=this.dTLCache[h];if(!m){k.timeZone??(k.timeZone=this.timezone);try{m=new Intl.DateTimeFormat(u,k)}catch(g){/Invalid time zone/i.test(g.message)?(ir(34),k.timeZone="UTC",m=new Intl.DateTimeFormat(u,k)):ir(g.message,!1)}}return this.dTLCache[h]=m,m?.format(i)||""}str2dtf(k,i={}){let u={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(u).forEach(h=>{k.indexOf(h)!==-1&&qt(i,u[h])}),i}makeTime(k,i,u=1,h=0,m,g,v){let w=this.Date.UTC(k,i,u,h,m||0,g||0,v||0);if(this.timezone!=="UTC"){let A=this.getTimezoneOffset(w);if(w+=A,[2,3,8,9,10,11].indexOf(i)!==-1&&(h<5||h>20)){let N=this.getTimezoneOffset(w);A!==N?w+=N-A:A-36e5!==this.getTimezoneOffset(w-36e5)||Ri||(w-=36e5)}}return w}parse(k){if(!Fr(k))return k??void 0;let i=(k=k.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(k),u=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(k);i||u||(k+="Z");let h=Date.parse(k);if(qr(h))return h+(!i||u?this.getTimezoneOffset(h):0)}getTimezoneOffset(k){if(this.timezone!=="UTC"){let[i,u,h,m,g=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},k,"en").split(/(GMT|:)/).map(Number),v=-(60*(h+g/60)*6e4);if(qr(v))return v}return 0}dateFormat(k,i,u){let h=this.lang;if(!vr(i)||isNaN(i))return h?.invalidDate||"";if(Fr(k=k??"%Y-%m-%d %H:%M:%S")){let m,g=/%\[([a-zA-Z]+)\]/g;for(;m=g.exec(k);)k=k.replace(m[0],this.dateTimeFormat(m[1],i,h?.locale))}if(Fr(k)&&k.indexOf("%")!==-1){let m=this,[g,v,w,A,N,B,j,I]=this.toParts(i),U=h?.weekdays||this.weekdays,q=h?.shortWeekdays||this.shortWeekdays,ee=h?.months||this.months,G=h?.shortMonths||this.shortMonths;qn(qt({a:q?q[I]:U[I].substr(0,3),A:U[I],d:gr(w),e:gr(w,2," "),w:I,v:h?.weekFrom??"",b:G[v],B:ee[v],m:gr(v+1),o:v+1,y:g.toString().substr(2,2),Y:g,H:gr(A),k:A,I:gr(A%12||12),l:A%12||12,M:gr(N),p:A<12?"AM":"PM",P:A<12?"am":"pm",S:gr(B),L:gr(j,3)},re.dateFormats),function(K,de){if(Fr(k))for(;k.indexOf("%"+de)!==-1;)k=k.replace("%"+de,typeof K=="function"?K.call(m,i):K)})}else if(xr(k)){let m=(this.getTimezoneOffset(i)||0)/36e5,g=this.timezone||"Etc/GMT"+(m>=0?"+":"")+m,{prefix:v="",suffix:w=""}=k;k=v+this.dateTimeFormat(qt({timeZone:g},k),i)+w}return u?ya(k):k}resolveDTLFormat(k){return xr(k,!0)?xr(k,!0)&&k.main===void 0?{main:k}:k:{main:(k=hi(k))[0],from:k[1],to:k[2]}}getDateFormat(k,i,u,h){let m=this.dateFormat("%m-%d %H:%M:%S.%L",i),g="01-01 00:00:00.000",v={millisecond:15,second:12,minute:9,hour:6,day:3},w="millisecond",A=w;for(w in Ts){if(k&&k===Ts.week&&+this.dateFormat("%w",i)===u&&m.substr(6)===g.substr(6)){w="week";break}if(k&&Ts[w]>k){w=A;break}if(v[w]&&m.substr(v[w])!==g.substr(v[w]))break;w!=="week"&&(A=w)}return this.resolveDTLFormat(h[w]).main}},{defined:Wn,extend:on,timeUnits:Bt}=Me,Tr=class extends En{getTimeTicks(k,i,u,h){let m=this,g=[],v={},{count:w=1,unitRange:A}=k,[N,B,j,I,U,q]=m.toParts(i),ee=(i||0)%1e3,G;if(h??(h=1),Wn(i)){if(ee=A>=Bt.second?0:w*Math.floor(ee/w),A>=Bt.second&&(q=A>=Bt.minute?0:w*Math.floor(q/w)),A>=Bt.minute&&(U=A>=Bt.hour?0:w*Math.floor(U/w)),A>=Bt.hour&&(I=A>=Bt.day?0:w*Math.floor(I/w)),A>=Bt.day&&(j=A>=Bt.month?1:Math.max(1,w*Math.floor(j/w))),A>=Bt.month&&(B=A>=Bt.year?0:w*Math.floor(B/w)),A>=Bt.year&&(N-=N%w),A===Bt.week){w&&(i=m.makeTime(N,B,j,I,U,q,ee));let me=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},i,"es"),ve="DLMXJVS".indexOf(me);j+=-ve+h+(ve<h?-7:0)}i=m.makeTime(N,B,j,I,U,q,ee),m.variableTimezone&&Wn(u)&&(G=u-i>4*Bt.month||m.getTimezoneOffset(i)!==m.getTimezoneOffset(u));let K=i,de=1;for(;K<u;)g.push(K),A===Bt.year?K=m.makeTime(N+de*w,0):A===Bt.month?K=m.makeTime(N,B+de*w):G&&(A===Bt.day||A===Bt.week)?K=m.makeTime(N,B,j+de*w*(A===Bt.day?1:7)):G&&A===Bt.hour&&w>1?K=m.makeTime(N,B,j,I+de*w):K+=A*w,de++;g.push(K),A<=Bt.hour&&g.length<1e4&&g.forEach(me=>{me%18e5==0&&m.dateFormat("%H%M%S%L",me)==="000000000"&&(v[me]="day")})}return g.info=on(k,{higherRanks:v,totalRange:A*w}),g}},{isTouchDevice:us}=re,{fireEvent:Wr,merge:ds}=Me,ar={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:k=>Math.sqrt(1-Math.pow(k-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,position:{x:0,y:3},shared:!1,snap:us?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">â</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},br=new Tr(ar.time,ar.lang),tr={defaultOptions:ar,defaultTime:br,getOptions:function(){return ar},setOptions:function(k){return Wr(re,"setOptions",{options:k}),ds(!0,ar,k),k.time&&br.update(ar.time),k.lang&&"locale"in k.lang&&br.update({locale:k.lang.locale}),k.lang?.chartTitle&&(ar.title={...ar.title,text:k.lang.chartTitle}),ar}},{win:cn}=re,{isNumber:Oi,isString:l0,merge:o0,pInt:Qr,defined:ys}=Me,Vs=(k,i,u)=>`color-mix(in srgb,${k},${i} ${100*u}%)`,va=k=>l0(k)&&!!k&&k!=="none";class Nr{static parse(i){return i?new Nr(i):Nr.None}constructor(i){let u,h,m,g;this.rgba=[NaN,NaN,NaN,NaN],this.input=i;const v=re.Color;if(v&&v!==Nr)return new v(i);if(typeof i=="object"&&i.stops!==void 0)this.stops=i.stops.map(w=>new Nr(w[1]));else if(typeof i=="string")for(this.input=i=Nr.names[i.toLowerCase()]||i,m=Nr.parsers.length;m--&&!h;)(u=(g=Nr.parsers[m]).regex.exec(i))&&(h=g.parse(u));h&&(this.rgba=h)}get(i){let u=this.input,h=this.rgba;if(this.output)return this.output;if(typeof u=="object"&&this.stops!==void 0){let m=o0(u);return m.stops=[].slice.call(m.stops),this.stops.forEach((g,v)=>{m.stops[v]=[m.stops[v][0],g.get(i)]}),m}return h&&Oi(h[0])?i!=="rgb"&&(i||h[3]!==1)?i==="a"?`${h[3]}`:"rgba("+h.join(",")+")":"rgb("+h[0]+","+h[1]+","+h[2]+")":u}brighten(i){let u=this.rgba;if(this.stops)this.stops.forEach(function(h){h.brighten(i)});else if(Oi(i)&&i!==0)if(Oi(u[0]))for(let h=0;h<3;h++)u[h]+=Qr(255*i),u[h]<0&&(u[h]=0),u[h]>255&&(u[h]=255);else Nr.useColorMix&&va(this.input)&&(this.output=Vs(this.input,i>0?"white":"black",Math.abs(i)));return this}setOpacity(i){return this.rgba[3]=i,this}tweenTo(i,u){let h=this.rgba,m=i.rgba;if(!Oi(h[0])||!Oi(m[0]))return Nr.useColorMix&&va(this.input)&&va(i.input)&&u<.99?Vs(this.input,i.input,u):i.input||"none";let g=m[3]!==1||h[3]!==1,v=(A,N)=>A+(h[N]-A)*(1-u),w=m.slice(0,3).map(v).map(Math.round);return g&&w.push(v(m[3],3)),(g?"rgba(":"rgb(")+w.join(",")+")"}}Nr.names={white:"#ffffff",black:"#000000"},Nr.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(k){return[Qr(k[1]),Qr(k[2]),Qr(k[3]),parseFloat(k[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(k){return[Qr(k[1]),Qr(k[2]),Qr(k[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(k){return[Qr(k[1]+k[1],16),Qr(k[2]+k[2],16),Qr(k[3]+k[3],16),ys(k[4])?Qr(k[4]+k[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(k){return[Qr(k[1],16),Qr(k[2],16),Qr(k[3],16),ys(k[4])?Qr(k[4],16)/255:1]}}],Nr.useColorMix=cn.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),Nr.None=new Nr("");let{parse:c0}=Nr,{win:Iy}=re,{isNumber:Yu,objectEach:wc}=Me;class Ns{constructor(i,u,h){this.pos=NaN,this.options=u,this.elem=i,this.prop=h}dSetter(){let i=this.paths,u=i?.[0],h=i?.[1],m=this.now||0,g=[];if(m!==1&&u&&h)if(u.length===h.length&&m<1)for(let v=0;v<h.length;v++){let w=u[v],A=h[v],N=[];for(let B=0;B<A.length;B++){let j=w[B],I=A[B];Yu(j)&&Yu(I)&&(A[0]!=="A"||B!==4&&B!==5)?N[B]=j+m*(I-j):N[B]=I}g.push(N)}else g=h;else g=this.toD||[];this.elem.attr("d",g,void 0,!0)}update(){let i=this.elem,u=this.prop,h=this.now,m=this.options.step;this[u+"Setter"]?this[u+"Setter"]():i.attr?i.element&&i.attr(u,h,null,!0):i.style[u]=h+this.unit,m&&m.call(i,h,this)}run(i,u,h){let m=this,g=m.options,v=function(N){return!v.stopped&&m.step(N)},w=Iy.requestAnimationFrame||function(N){setTimeout(N,13)},A=function(){for(let N=0;N<Ns.timers.length;N++)Ns.timers[N]()||Ns.timers.splice(N--,1);Ns.timers.length&&w(A)};i!==u||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=i,this.end=u,this.unit=h,this.now=this.start,this.pos=0,v.elem=this.elem,v.prop=this.prop,v()&&Ns.timers.push(v)===1&&w(A)):(delete g.curAnim[this.prop],g.complete&&Object.keys(g.curAnim).length===0&&g.complete.call(this.elem))}step(i){let u,h,m=+new Date,g=this.options,v=this.elem,w=g.complete,A=g.duration,N=g.curAnim;return v.attr&&!v.element?u=!1:i||m>=A+this.startTime?(this.now=this.end,this.pos=1,this.update(),N[this.prop]=!0,h=!0,wc(N,function(B){B!==!0&&(h=!1)}),h&&w&&w.call(v),u=!1):(this.pos=g.easing((m-this.startTime)/A),this.now=this.start+(this.end-this.start)*this.pos,this.update(),u=!0),u}initPath(i,u,h){let m=i.startX,g=i.endX,v=h.slice(),w=i.isArea,A=w?2:1,N=u&&h.length>u.length&&h.hasStackedCliffs,B,j,I,U,q=u?.slice();if(!q||N)return[v,v];function ee(K,de){for(;K.length<j;){let me=K[0],ve=de[j-K.length];if(ve&&me[0]==="M"&&(ve[0]==="C"?K[0]=["C",me[1],me[2],me[1],me[2],me[1],me[2]]:K[0]=["L",me[1],me[2]]),K.unshift(me),w){let be=K.pop();K.push(K[K.length-1],be)}}}function G(K){for(;K.length<j;){let de=K[Math.floor(K.length/A)-1].slice();if(de[0]==="C"&&(de[1]=de[5],de[2]=de[6]),w){let me=K[Math.floor(K.length/A)].slice();K.splice(K.length/2,0,de,me)}else K.push(de)}}if(m&&g&&g.length){for(I=0;I<m.length;I++)if(m[I]===g[0]){B=I;break}else if(m[0]===g[g.length-m.length+I]){B=I,U=!0;break}else if(m[m.length-1]===g[g.length-m.length+I]){B=m.length-I;break}B===void 0&&(q=[])}return q.length&&Yu(B)&&(j=v.length+B*A,U?(ee(q,v),G(v)):(ee(v,q),G(q))),[q,v]}fillSetter(){Ns.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,c0(this.start).tweenTo(c0(this.end),this.pos),void 0,!0)}}Ns.timers=[];let{defined:so,getStyle:no,isArray:Sc,isNumber:io,isObject:as,merge:Ih,objectEach:u0,pick:al}=Me;function ba(k){return as(k)?Ih({duration:500,defer:0},k):{duration:500*!!k,defer:0}}function d0(k,i){let u=Ns.timers.length;for(;u--;)Ns.timers[u].elem!==k||i&&i!==Ns.timers[u].prop||(Ns.timers[u].stopped=!0)}let vs={animate:function(k,i,u){let h,m="",g,v,w;as(u)||(w=arguments,u={duration:w[2],easing:w[3],complete:w[4]}),io(u.duration)||(u.duration=400),u.easing=typeof u.easing=="function"?u.easing:Math[u.easing]||Math.easeInOutSine,u.curAnim=Ih(i),u0(i,function(A,N){d0(k,N),v=new Ns(k,u,N),g=void 0,N==="d"&&Sc(i.d)?(v.paths=v.initPath(k,k.pathArray,i.d),v.toD=i.d,h=0,g=1):k.attr?h=k.attr(N):(h=parseFloat(no(k,N))||0,N!=="opacity"&&(m="px")),g||(g=A),typeof g=="string"&&g.match("px")&&(g=g.replace(/px/g,"")),v.run(h,g,m)})},animObject:ba,getDeferredAnimation:function(k,i,u){let h=ba(i),m=u?[u]:k.series,g=0,v=0;return m.forEach(w=>{let A=ba(w.options.animation);g=as(i)&&so(i.defer)?h.defer:Math.max(g,A.duration+A.defer),v=Math.min(h.duration,A.duration)}),k.renderer.forExport&&(g=0),{defer:Math.max(0,g-v),duration:Math.min(g,v)}},setAnimation:function(k,i){i.renderer.globalAnimation=al(k,i.options.chart.animation,!0)},stop:d0},{SVG_NS:Ph,win:Py}=re,{attr:Gu,createElement:Xu,css:Bi,error:un,isFunction:h0,isString:f0,objectEach:qu,splat:p0}=Me,{trustedTypes:ao}=Py,Wu=ao&&h0(ao.createPolicy)&&ao.createPolicy("highcharts",{createHTML:k=>k}),Cn=Wu?Wu.createHTML(""):"";class Cr{static filterUserAttributes(i){return qu(i,(u,h)=>{let m=!0;Cr.allowedAttributes.indexOf(h)===-1&&(m=!1),["background","dynsrc","href","lowsrc","src"].indexOf(h)!==-1&&(m=f0(u)&&Cr.allowedReferences.some(g=>u.indexOf(g)===0)),m||(un(33,!1,void 0,{"Invalid attribute in config":`${h}`}),delete i[h]),f0(u)&&i[h]&&(i[h]=u.replace(/</g,"<"))}),i}static parseStyle(i){return i.split(";").reduce((u,h)=>{let m=h.split(":").map(v=>v.trim()),g=m.shift();return g&&m.length&&(u[g.replace(/-([a-z])/g,v=>v[1].toUpperCase())]=m.join(":")),u},{})}static setElementHTML(i,u){i.innerHTML=Cr.emptyHTML,u&&new Cr(u).addToDOM(i)}constructor(i){this.nodes=typeof i=="string"?this.parseMarkup(i):i}addToDOM(i){return(function u(h,m){let g;return p0(h).forEach(function(v){let w,A=v.tagName,N=v.textContent?re.doc.createTextNode(v.textContent):void 0,B=Cr.bypassHTMLFiltering;if(A)if(A==="#text")w=N;else if(Cr.allowedTags.indexOf(A)!==-1||B){let j=A==="svg"?Ph:m.namespaceURI||Ph,I=re.doc.createElementNS(j,A),U=v.attributes||{};qu(v,function(q,ee){ee!=="tagName"&&ee!=="attributes"&&ee!=="children"&&ee!=="style"&&ee!=="textContent"&&(U[ee]=q)}),Gu(I,B?U:Cr.filterUserAttributes(U)),v.style&&Bi(I,v.style),N&&I.appendChild(N),u(v.children||[],I),w=I}else un(33,!1,void 0,{"Invalid tagName in config":A});w&&m.appendChild(w),g=w}),g})(this.nodes,i)}parseMarkup(i){let u,h=[];i=i.trim().replace(/ style=(["'])/g," data-style=$1");try{u=new DOMParser().parseFromString(Wu?Wu.createHTML(i):i,"text/html")}catch{}if(!u){let g=Xu("div");g.innerHTML=i,u={body:g}}let m=(g,v)=>{let w=g.nodeName.toLowerCase(),A={tagName:w};w==="#text"&&(A.textContent=g.textContent||"");let N=g.attributes;if(N){let B={};[].forEach.call(N,j=>{j.name==="data-style"?A.style=Cr.parseStyle(j.value):B[j.name]=j.value}),A.attributes=B}if(g.childNodes.length){let B=[];[].forEach.call(g.childNodes,j=>{m(j,B)}),B.length&&(A.children=B)}v.push(A)};return[].forEach.call(u.body.childNodes,g=>m(g,h)),h}}Cr.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],Cr.allowedReferences=["https://","http://","mailto:","/","../","./","#"],Cr.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],Cr.emptyHTML=Cn,Cr.bypassHTMLFiltering=!1;let{defaultOptions:Fh,defaultTime:Qu}=tr,{pageLang:lo}=re,{extend:m0,getNestedProperty:x0,isArray:oo,isNumber:g0,isObject:y0,isString:v0,pick:zh,ucfirst:Fy}=Me,Ju={add:(k,i)=>k+i,divide:(k,i)=>i!==0?k/i:"",eq:(k,i)=>k==i,each:function(k){let i=arguments[arguments.length-1];return!!oo(k)&&k.map((u,h)=>kn(i.body,m0(y0(u)?u:{"@this":u},{"@index":h,"@first":h===0,"@last":h===k.length-1}))).join("")},ge:(k,i)=>k>=i,gt:(k,i)=>k>i,if:k=>!!k,le:(k,i)=>k<=i,lt:(k,i)=>k<i,multiply:(k,i)=>k*i,ne:(k,i)=>k!=i,subtract:(k,i)=>k-i,ucfirst:Fy,unless:k=>!k},Ac={};function kn(k="",i,u){let h=RegExp(`\\{([\\p{L}\\d:\\.,;\\-\\/<>\\[\\]%_@+"'â= #\\(\\)]+)\\}`,"gu"),m=RegExp(`\\(([\\p{L}\\d:\\.,;\\-\\/<>\\[\\]%_@+"'= ]+)\\)`,"gu"),g=[],v=/f$/,w=/\.(\d)/,A=u?.options?.lang||Fh.lang,N=u?.time||Qu,B=u?.numberFormatter||Ku.bind(u),j=(G="")=>{let K;return G==="true"||G!=="false"&&((K=Number(G)).toString()===G?K:/^["'].+["']$/.test(G)?G.slice(1,-1):x0(G,i))},I,U,q=0,ee;for(;(I=h.exec(k))!==null;){let G=I,K=m.exec(I[1]);K&&(I=K,ee=!0),U?.isBlock||(U={ctx:i,expression:I[1],find:I[0],isBlock:I[1].charAt(0)==="#",start:I.index,startInner:I.index+I[0].length,length:I[0].length});let de=(U.isBlock?G:I)[1].split(" ")[0].replace("#","");Ju[de]&&(U.isBlock&&de===U.fn&&q++,U.fn||(U.fn=de));let me=I[1]==="else";if(U.isBlock&&U.fn&&(I[1]===`/${U.fn}`||me))if(q)!me&&q--;else{let ve=U.startInner,be=k.substr(ve,I.index-ve);U.body===void 0?(U.body=be,U.startInner=I.index+I[0].length):U.elseBody=be,U.find+=be+I[0],me||(g.push(U),U=void 0)}else U.isBlock||g.push(U);if(K&&!U?.isBlock)break}return g.forEach(G=>{let K,de,{body:me,elseBody:ve,expression:be,fn:Ae}=G;if(Ae){let Ee=[G],Ce=[],Fe=be.length,$e=0,Pe;for(de=0;de<=Fe;de++){let et=be.charAt(de);Pe||et!=='"'&&et!=="'"?Pe===et&&(Pe=""):Pe=et,Pe||et!==" "&&de!==Fe||(Ce.push(be.substr($e,de-$e)),$e=de+1)}for(de=Ju[Ae].length;de--;)Ee.unshift(j(Ce[de+1]));K=Ju[Ae].apply(i,Ee),G.isBlock&&typeof K=="boolean"&&(K=kn(K?me:ve,i,u))}else{let Ee=/^["'].+["']$/.test(be)?[be]:be.split(":");if(K=j(Ee.shift()||""),Ee.length&&typeof K=="number"){let Ce=Ee.join(":");if(v.test(Ce)){let Fe=parseInt((Ce.match(w)||["","-1"])[1],10);K!==null&&(K=B(K,Fe,A.decimalPoint,Ce.indexOf(",")>-1?A.thousandsSep:""))}else K=N.dateFormat(Ce,K)}m.lastIndex=0,m.test(G.find)&&v0(K)&&(K=`"${K}"`)}k=k.replace(G.find,zh(K,""))}),ee?kn(k,i,u):k}function Ku(k,i,u,h){i*=1;let m,g,[v,w]=(k=+k||0).toString().split("e").map(Number),A=this?.options?.lang||Fh.lang,N=(k.toString().split(".")[1]||"").split("e")[0].length,B=i,j={};u??(u=A.decimalPoint),h??(h=A.thousandsSep),i===-1?i=Math.min(N,20):g0(i)?i&&w<0&&((g=i+w)>=0?(v=+v.toExponential(g).split("e")[0],i=g):(v=Math.floor(v),k=i<20?+(v*Math.pow(10,w)).toFixed(i):0,w=0)):i=2,w&&(i??(i=2),k=v),g0(i)&&i>=0&&(j.minimumFractionDigits=i,j.maximumFractionDigits=i),h===""&&(j.useGrouping=!1);let I=h||u,U=I?"en":this?.locale||A.locale||lo,q=JSON.stringify(j)+U;return m=(Ac[q]??(Ac[q]=new Intl.NumberFormat(U,j))).format(k),I&&(m=m.replace(/([,\.])/g,"_$1").replace(/_\,/g,h??",").replace("_.",u??".")),(i||+m!=0)&&(!(w<0)||B)||(m="0"),w&&+m!=0&&(m+="e"+(w<0?"":"+")+w),m}let Gs={dateFormat:function(k,i,u){return Qu.dateFormat(k,i,u)},format:kn,helpers:Ju,numberFormat:Ku};(b=F||(F={})).rendererTypes={},b.getRendererType=function(k=f){return b.rendererTypes[k]||b.rendererTypes[f]},b.registerRendererType=function(k,i,u){b.rendererTypes[k]=i,(!f||u)&&(f=k,re.Renderer=i)};let fi=F,{clamp:co,pick:b0,pushUnique:Uh,stableSort:Zu}=Me;(J||(J={})).distribute=function k(i,u,h){let m=i,g=m.reducedLen||u,v=(me,ve)=>me.target-ve.target,w=[],A=i.length,N=[],B=w.push,j,I,U,q=!0,ee,G,K=0,de;for(j=A;j--;)K+=i[j].size;if(K>g){for(Zu(i,(me,ve)=>(ve.rank||0)-(me.rank||0)),U=(de=i[0].rank===i[i.length-1].rank)?A/2:-1,I=de?U:A-1;U&&K>g;)ee=i[j=Math.floor(I)],Uh(N,j)&&(K-=ee.size),I+=U,de&&I>=i.length&&(U/=2,I=U);N.sort((me,ve)=>ve-me).forEach(me=>B.apply(w,i.splice(me,1)))}for(Zu(i,v),i=i.map(me=>({size:me.size,targets:[me.target],align:b0(me.align,.5)}));q;){for(j=i.length;j--;)ee=i[j],G=(Math.min.apply(0,ee.targets)+Math.max.apply(0,ee.targets))/2,ee.pos=co(G-ee.size*ee.align,0,u-ee.size);for(j=i.length,q=!1;j--;)j>0&&i[j-1].pos+i[j-1].size>i[j].pos&&(i[j-1].size+=i[j].size,i[j-1].targets=i[j-1].targets.concat(i[j].targets),i[j-1].align=.5,i[j-1].pos+i[j-1].size>u&&(i[j-1].pos=u-i[j-1].size),i.splice(j,1),q=!0)}return B.apply(m,w),j=0,i.some(me=>{let ve=0;return(me.targets||[]).some(()=>(m[j].pos=me.pos+ve,h!==void 0&&Math.abs(m[j].pos-m[j].target)>h?(m.slice(0,j+1).forEach(be=>delete be.pos),m.reducedLen=(m.reducedLen||u)-.1*u,m.reducedLen>.1*u&&k(m,u,h),!0):(ve+=m[j].size,j++,!1)))}),Zu(m,v),m};let wa=J,{animate:_i,animObject:$h,stop:uo}=vs,{deg2rad:Di,doc:Sa,svg:ed,SVG_NS:Ec,win:td,isFirefox:rd}=re,{addEvent:w0,attr:_s,createElement:ll,crisp:ol,css:ho,defined:pi,erase:Vh,extend:cl,fireEvent:ul,getAlignFactor:fo,isArray:Hh,isFunction:S0,isNumber:zy,isObject:Uy,isString:sd,merge:Yh,objectEach:po,pick:dl,pInt:nd,pushUnique:$y,replaceNested:A0,syncTimeout:Vy,uniqueKey:E0}=Me;class hs{_defaultGetter(i){let u=dl(this[i+"Value"],this[i],this.element?this.element.getAttribute(i):null,0);return/^-?[\d\.]+$/.test(u)&&(u=parseFloat(u)),u}_defaultSetter(i,u,h){h.setAttribute(u,i)}add(i){let u,h=this.renderer,m=this.element;return i&&(this.parentGroup=i),this.textStr!==void 0&&this.element.nodeName==="text"&&h.buildText(this),this.added=!0,(!i||i.handleZ||this.zIndex)&&(u=this.zIndexSetter()),u||(i?i.element:h.box).appendChild(m),this.onAdd&&this.onAdd(),this}addClass(i,u){let h=u?"":this.attr("class")||"";return(i=(i||"").split(/ /g).reduce(function(m,g){return h.indexOf(g)===-1&&m.push(g),m},h?[h]:[]).join(" "))!==h&&this.attr("class",i),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(i,u,h,m=!0){let g=this.renderer,v=g.alignedObjects,w=!!i;i?(this.alignOptions=i,this.alignByTranslate=u,this.alignTo=h):(i=this.alignOptions||{},u=this.alignByTranslate,h=this.alignTo);let A=!h||sd(h)?h||"renderer":void 0;A&&(w&&$y(v,this),h=void 0);let N=dl(h,g[A],g),B=(N.x||0)+(i.x||0)+((N.width||0)-(i.width||0))*fo(i.align),j=(N.y||0)+(i.y||0)+((N.height||0)-(i.height||0))*fo(i.verticalAlign),I={};return i.align&&(I["text-align"]=i.align),I[u?"translateX":"x"]=Math.round(B),I[u?"translateY":"y"]=Math.round(j),m&&(this[this.placed?"animate":"attr"](I),this.placed=!0),this.alignAttr=I,this}alignSetter(i){let u={left:"start",center:"middle",right:"end"};u[i]&&(this.alignValue=i,this.element.setAttribute("text-anchor",u[i]))}animate(i,u,h){let m=$h(dl(u,this.renderer.globalAnimation,!0)),g=m.defer;return Sa.hidden&&(m.duration=0),m.duration!==0?(h&&(m.complete=h),Vy(()=>{this.element&&_i(this,i,m)},g)):(this.attr(i,void 0,h||m.complete),po(i,function(v,w){m.step&&m.step.call(this,v,{prop:w,pos:1,elem:this})},this)),this}applyTextOutline(i){let u=this.element;i.indexOf("contrast")!==-1&&(i=i.replace(/contrast/g,this.renderer.getContrast(u.style.fill)));let h=i.indexOf(" "),m=i.substring(h+1),g=i.substring(0,h);if(g&&g!=="none"&&re.svg){this.fakeTS=!0,g=g.replace(/(^[\d\.]+)(.*?)$/g,function(B,j,I){return 2*Number(j)+I}),this.removeTextOutline();let v=Sa.createElementNS(Ec,"tspan");_s(v,{class:"highcharts-text-outline",fill:m,stroke:m,"stroke-width":g,"stroke-linejoin":"round"});let w=u.querySelector("textPath")||u;[].forEach.call(w.childNodes,B=>{let j=B.cloneNode(!0);j.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(I=>j.removeAttribute(I)),v.appendChild(j)});let A=0;[].forEach.call(w.querySelectorAll("text tspan"),B=>{A+=Number(B.getAttribute("dy"))});let N=Sa.createElementNS(Ec,"tspan");N.textContent="â",_s(N,{x:Number(u.getAttribute("x")),dy:-A}),v.appendChild(N),w.insertBefore(v,w.firstChild)}}attr(i,u,h,m){let{element:g}=this,v=hs.symbolCustomAttribs,w,A,N=this,B;return typeof i=="string"&&u!==void 0&&(w=i,(i={})[w]=u),typeof i=="string"?N=(this[i+"Getter"]||this._defaultGetter).call(this,i,g):(po(i,function(j,I){B=!1,m||uo(this,I),this.symbolName&&v.indexOf(I)!==-1&&(A||(this.symbolAttr(i),A=!0),B=!0),this.rotation&&(I==="x"||I==="y")&&(this.doTransform=!0),B||(this[I+"Setter"]||this._defaultSetter).call(this,j,I,g)},this),this.afterSetters()),h&&h.call(this),N}clip(i){if(i&&!i.clipPath){let u=E0()+"-",h=this.renderer.createElement("clipPath").attr({id:u}).add(this.renderer.defs);cl(i,{clipPath:h,id:u,count:0}),i.add(h)}return this.attr("clip-path",i?`url(${this.renderer.url}#${i.id})`:"none")}crisp(i,u){u=Math.round(u||i.strokeWidth||0);let h=i.x||this.x||0,m=i.y||this.y||0,g=(i.width||this.width||0)+h,v=(i.height||this.height||0)+m,w=ol(h,u),A=ol(m,u);return cl(i,{x:w,y:A,width:ol(g,u)-w,height:ol(v,u)-A}),pi(i.strokeWidth)&&(i.strokeWidth=u),i}complexColor(i,u,h){let m=this.renderer,g,v,w,A,N,B,j,I,U,q,ee=[],G;ul(this.renderer,"complexColor",{args:arguments},function(){if(i.radialGradient?v="radialGradient":i.linearGradient&&(v="linearGradient"),v){if(w=i[v],N=m.gradients,B=i.stops,U=h.radialReference,Hh(w)&&(i[v]=w={x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientUnits:"userSpaceOnUse"}),v==="radialGradient"&&U&&!pi(w.gradientUnits)&&(A=w,w=Yh(w,m.getRadialAttr(U,A),{gradientUnits:"userSpaceOnUse"})),po(w,function(K,de){de!=="id"&&ee.push(de,K)}),po(B,function(K){ee.push(K)}),N[ee=ee.join(",")])q=N[ee].attr("id");else{w.id=q=E0();let K=N[ee]=m.createElement(v).attr(w).add(m.defs);K.radAttr=A,K.stops=[],B.forEach(function(de){de[1].indexOf("rgba")===0?(j=(g=Nr.parse(de[1])).get("rgb"),I=g.get("a")):(j=de[1],I=1);let me=m.createElement("stop").attr({offset:de[0],"stop-color":j,"stop-opacity":I}).add(K);K.stops.push(me)})}G="url("+m.url+"#"+q+")",h.setAttribute(u,G),h.gradient=ee,i.toString=function(){return G}}})}css(i){let u=this.styles,h={},m=this.element,g,v=!u;if(u&&po(i,function(w,A){u&&u[A]!==w&&(h[A]=w,v=!0)}),v){u&&(i=cl(u,h)),i.width===null||i.width==="auto"?delete this.textWidth:m.nodeName.toLowerCase()==="text"&&i.width&&(g=this.textWidth=nd(i.width)),cl(this.styles,i),g&&!ed&&this.renderer.forExport&&delete i.width;let w=rd&&i.fontSize||null;w&&(zy(w)||/^\d+$/.test(w))&&(i.fontSize+="px");let A=Yh(i);m.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(N=>A&&delete A[N]),A.color&&(A.fill=A.color,delete A.color)),ho(m,A)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),i.textOutline&&this.applyTextOutline(i.textOutline)),this}dashstyleSetter(i){let u,h=this["stroke-width"];if(h==="inherit"&&(h=1),i){let m=(i=i.toLowerCase()).replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(u=m.length;u--;)m[u]=""+nd(m[u])*dl(h,NaN);i=m.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",i)}}destroy(){let i=this,{element:u={},renderer:h,stops:m}=i,g=u.ownerSVGElement,v=u.nodeName==="SPAN"&&i.parentGroup||void 0,w;if(u.onclick=u.onmouseout=u.onmouseover=u.onmousemove=u.point=null,uo(i),i.clipPath&&g){let A=i.clipPath;[].forEach.call(g.querySelectorAll("[clip-path],[CLIP-PATH]"),function(N){N.getAttribute("clip-path").indexOf(A.element.id)>-1&&N.removeAttribute("clip-path")}),i.clipPath=A.destroy()}if(m){for(let A of m)A.destroy();m.length=0}for(i.safeRemoveChild(u);v?.div&&v.div.childNodes.length===0;)w=v.parentGroup,i.safeRemoveChild(v.div),delete v.div,v=w;i.alignOptions&&Vh(h.alignedObjects,i),po(i,(A,N)=>{(i[N]?.parentGroup===i||["connector","foreignObject"].indexOf(N)!==-1)&&i[N]?.destroy?.(),delete i[N]})}dSetter(i,u,h){Hh(i)&&(typeof i[0]=="string"&&(i=this.renderer.pathToSegments(i)),this.pathArray=i,i=i.reduce((m,g,v)=>g?.join?(v?m+" ":"")+g.join(" "):(g||"").toString(),"")),/(NaN| {2}|^$)/.test(i)&&(i="M 0 0"),this[u]!==i&&(h.setAttribute(u,i),this[u]=i)}fillSetter(i,u,h){typeof i=="string"?h.setAttribute(u,i):i&&this.complexColor(i,u,h)}hrefSetter(i,u,h){h.setAttributeNS("http://www.w3.org/1999/xlink",u,i)}getBBox(i,u){let h,m,g,{element:v,renderer:w,styles:A,textStr:N}=this,{cache:B,cacheKeys:j}=w,I=v.namespaceURI===this.SVG_NS,U=dl(u,this.rotation,0),q=w.styledMode?v&&hs.prototype.getStyle.call(v,"font-size"):A.fontSize,ee=this.getBBoxCacheKey([w.rootFontSize,this.textWidth,this.alignValue,A.fontWeight,A.lineClamp,A.textOverflow,q,U]);if(ee&&!i&&(h=B[ee]),!h||h.polygon){if(I||w.forExport){try{g=this.fakeTS&&function(K){let de=v.querySelector(".highcharts-text-outline");de&&ho(de,{display:K})},S0(g)&&g("none"),h=v.getBBox?cl({},v.getBBox()):{width:v.offsetWidth,height:v.offsetHeight,x:0,y:0},S0(g)&&g("")}catch{}(!h||h.width<0)&&(h={x:0,y:0,width:0,height:0})}else h=this.htmlGetBBox();m=h.height,I&&(h.height=m={"11px,17":14,"13px,20":16}[`${q||""},${Math.round(m)}`]||m),U&&(h=this.getRotatedBox(h,U));let G={bBox:h};ul(this,"afterGetBBox",G),h=G.bBox}if(ee&&(N===""||h.height>0)){for(;j.length>250;)delete B[j.shift()];B[ee]||j.push(ee),B[ee]=h}return h}getBBoxCacheKey(i){if(pi(this.textStr)){let u=""+this.textStr;return u.indexOf("<")===-1&&(u=u.replace(/\d/g,"0")),[u,...i].join(",")}}getRotatedBox(i,u){let{x:h,y:m,width:g,height:v}=i,{alignValue:w,translateY:A,rotationOriginX:N=0,rotationOriginY:B=0}=this,j=fo(w),I=Number(this.element.getAttribute("y")||0)-(A?0:m),U=u*Di,q=(u-90)*Di,ee=Math.cos(U),G=Math.sin(U),K=g*ee,de=g*G,me=Math.cos(q),ve=Math.sin(q),[[be,Ae],[Ee,Ce]]=[N,B].map(yt=>[yt-yt*ee,yt*G]),Fe=h+j*(g-K)+be+Ce+I*me,$e=Fe+K,Pe=$e-v*me,et=Pe-K,rt=m+I-j*de-Ae+Ee+I*ve,nt=rt+de,ct=nt-v*ve,lt=ct-de,at=Math.min(Fe,$e,Pe,et),dr=Math.min(rt,nt,ct,lt),hr=Math.max(Fe,$e,Pe,et)-at,Mr=Math.max(rt,nt,ct,lt)-dr;return{x:at,y:dr,width:hr,height:Mr,polygon:[[Fe,rt],[$e,nt],[Pe,ct],[et,lt]]}}getStyle(i){return td.getComputedStyle(this.element||this,"").getPropertyValue(i)}hasClass(i){return(""+this.attr("class")).split(" ").indexOf(i)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(i,u){this.onEvents={},this.opacity=1,this.SVG_NS=Ec,this.element=u==="span"||u==="body"?ll(u):Sa.createElementNS(this.SVG_NS,u),this.renderer=i,this.styles={},ul(this,"afterInit")}on(i,u){let{onEvents:h}=this;return h[i]&&h[i](),h[i]=w0(this.element,i,u),this}opacitySetter(i,u,h){let m=Number(Number(i).toFixed(3));this.opacity=m,h.setAttribute(u,m)}reAlign(){this.alignOptions?.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(i){return this.attr("class",(""+this.attr("class")).replace(sd(i)?RegExp(`(^| )${i}( |$)`):i," ").replace(/ +/g," ").trim())}removeTextOutline(){let i=this.element.querySelector("tspan.highcharts-text-outline");i&&this.safeRemoveChild(i)}safeRemoveChild(i){let u=i.parentNode;u&&u.removeChild(i)}setRadialReference(i){let u=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=i,u?.radAttr&&u.animate(this.renderer.getRadialAttr(i,u.radAttr)),this}shadow(i){let{renderer:u}=this,h=Yh(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},Uy(i)?i:{}),m=u.shadowDefinition(h);return this.attr({filter:i?`url(${u.url}#${m})`:"none"})}show(i=!0){return this.attr({visibility:i?"inherit":"visible"})}"stroke-widthSetter"(i,u,h){this[u]=i,h.setAttribute(u,i)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let i=this.getStyle("stroke-width"),u=0,h;return/px$/.test(i)?u=nd(i):i!==""&&(_s(h=Sa.createElementNS(Ec,"rect"),{width:i,"stroke-width":0}),this.element.parentNode.appendChild(h),u=h.getBBox().width,h.parentNode.removeChild(h)),u}symbolAttr(i){let u=this;hs.symbolCustomAttribs.forEach(function(h){u[h]=dl(i[h],u[h])}),u.attr({d:u.renderer.symbols[u.symbolName](u.x,u.y,u.width,u.height,u)})}textSetter(i){i!==this.textStr&&(delete this.textPxLength,this.textStr=i,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(i){let u=this.element,h=u.getElementsByTagName("title")[0]||Sa.createElementNS(this.SVG_NS,"title");u.insertBefore?u.insertBefore(h,u.firstChild):u.appendChild(h),h.textContent=A0(dl(i,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let i=this.element;return i.parentNode.appendChild(i),this}translate(i,u){return this.attr({translateX:i,translateY:u})}updateTransform(i="transform"){let{element:u,foreignObject:h,matrix:m,padding:g,rotation:v=0,rotationOriginX:w,rotationOriginY:A,scaleX:N,scaleY:B,text:j,translateX:I=0,translateY:U=0}=this,q=[`translate(${I},${U})`];pi(m)&&q.push("matrix("+m.join(",")+")"),v&&(q.push("rotate("+v+" "+(w??u.getAttribute("x")??this.x??0)+" "+(A??u.getAttribute("y")??this.y??0)+")"),j?.element.tagName!=="SPAN"||j?.foreignObject||j.attr({rotation:v,rotationOriginX:(w||0)-g,rotationOriginY:(A||0)-g})),(pi(N)||pi(B))&&q.push(`scale(${N??1} ${B??1})`),q.length&&!(j||this).textPath&&(h?.element||u).setAttribute(i,q.join(" "))}visibilitySetter(i,u,h){i==="inherit"?h.removeAttribute(u):this[u]!==i&&h.setAttribute(u,i),this[u]=i}xGetter(i){return this.element.nodeName==="circle"&&(i==="x"?i="cx":i==="y"&&(i="cy")),this._defaultGetter(i)}zIndexSetter(i,u){let h=this.renderer,m=this.parentGroup,g=(m||h).element||h.box,v=this.element,w=g===h.box,A,N,B,j=!1,I,U=this.added,q;if(pi(i)?(v.setAttribute("data-z-index",i),i*=1,this[u]===i&&(U=!1)):pi(this[u])&&v.removeAttribute("data-z-index"),this[u]=i,U){for((i=this.zIndex)&&m&&(m.handleZ=!0),q=(A=g.childNodes).length-1;q>=0&&!j;q--)I=!pi(B=(N=A[q]).getAttribute("data-z-index")),N!==v&&(i<0&&I&&!w&&!q?(g.insertBefore(v,A[q]),j=!0):(nd(B)<=i||I&&(!pi(i)||i>=0))&&(g.insertBefore(v,A[q+1]),j=!0));j||(g.insertBefore(v,A[3*!!w]),j=!0)}return j}}hs.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],hs.prototype.strokeSetter=hs.prototype.fillSetter,hs.prototype.yGetter=hs.prototype.xGetter,hs.prototype.matrixSetter=hs.prototype.rotationOriginXSetter=hs.prototype.rotationOriginYSetter=hs.prototype.rotationSetter=hs.prototype.scaleXSetter=hs.prototype.scaleYSetter=hs.prototype.translateXSetter=hs.prototype.translateYSetter=hs.prototype.verticalAlignSetter=function(k,i){this[i]=k,this.doTransform=!0};let mi=hs,{defined:id,extend:Hy,getAlignFactor:C0,isNumber:Cc,merge:k0,pick:ad,removeEvent:T0}=Me;class hl extends mi{constructor(i,u,h,m,g,v,w,A,N,B){let j;super(i,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=u,this.x=h,this.y=m,this.anchorX=v,this.anchorY=w,this.baseline=N,this.className=B,this.addClass(B==="button"?"highcharts-no-tooltip":"highcharts-label"),B&&this.addClass("highcharts-"+B),this.text=i.text(void 0,0,0,A).attr({zIndex:1}),typeof g=="string"&&((j=/^url\((.*?)\)$/.test(g))||this.renderer.symbols[g])&&(this.symbolKey=g),this.bBox=hl.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=i.styledMode||j,this.deferredAttr={},this.alignFactor=0}alignSetter(i){let u=C0(i);this.textAlign=i,u!==this.alignFactor&&(this.alignFactor=u,this.bBox&&Cc(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())}anchorXSetter(i,u){this.anchorX=i,this.boxAttr(u,Math.round(i)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(i,u){this.anchorY=i,this.boxAttr(u,i-this.ySetting)}boxAttr(i,u){this.box?this.box.attr(i,u):this.deferredAttr[i]=u}css(i){if(i){let u={};i=k0(i),hl.textProps.forEach(h=>{i[h]!==void 0&&(u[h]=i[h],delete i[h])}),this.text.css(u),"fontSize"in u||"fontWeight"in u||"width"in u?this.updateTextPadding():"textOverflow"in u&&this.updateBoxSize()}return mi.prototype.css.call(this,i)}destroy(){T0(this.element,"mouseenter"),T0(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),mi.prototype.destroy.call(this)}fillSetter(i,u){i&&(this.needsBox=!0),this.fill=i,this.boxAttr(u,i)}getBBox(i,u){(this.textStr&&this.bBox.width===0&&this.bBox.height===0||this.rotation)&&this.updateBoxSize();let{padding:h,height:m=0,translateX:g=0,translateY:v=0,width:w=0}=this,A=ad(this.paddingLeft,h),N=u??(this.rotation||0),B={width:w,height:m,x:g+this.bBox.x-A,y:v+this.bBox.y-h+this.baselineOffset};return N&&(B=this.getRotatedBox(B,N)),B}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(i){this.heightSetting=i,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:ad(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&id(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(i,u){Cc(i)?i!==this[u]&&(this[u]=i,this.updateTextPadding()):this[u]=void 0}rSetter(i,u){this.boxAttr(u,i)}strokeSetter(i,u){this.stroke=i,this.boxAttr(u,i)}"stroke-widthSetter"(i,u){i&&(this.needsBox=!0),this["stroke-width"]=i,this.boxAttr(u,i)}"text-alignSetter"(i){this.textAlign=this["text-align"]=i,this.updateTextPadding()}textSetter(i){i!==void 0&&this.text.attr({text:i}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let i,u=this.text,h={},m=this.padding,g=this.bBox=(!Cc(this.widthSetting)||!Cc(this.heightSetting)||this.textAlign)&&id(u.textStr)?u.getBBox(void 0,0):hl.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||g.height||0)+2*m;let v=this.renderer.fontMetrics(u);if(this.baselineOffset=m+Math.min((this.text.firstLineMetrics||v).b,g.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-v.h)/2),this.needsBox&&!u.textPath){if(!this.box){let w=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();w.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),w.add(this)}h.x=i=this.getCrispAdjust(),h.y=(this.baseline?-this.baselineOffset:0)+i,h.width=Math.round(this.width),h.height=Math.round(this.height),this.box.attr(Hy(h,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let i=this.text,u=i.styles.textAlign||this.textAlign;if(!i.textPath){this.updateBoxSize();let h=this.baseline?0:this.baselineOffset,m=(this.paddingLeft??this.padding)+C0(u)*(this.widthSetting??this.bBox.width);(m!==i.x||h!==i.y)&&(i.attr({align:u,x:m}),h!==void 0&&i.attr("y",h)),i.x=m,i.y=h}}widthSetter(i){this.widthSetting=Cc(i)?i:void 0,this.doUpdate=!0}getPaddedWidth(){let i=this.padding,u=ad(this.paddingLeft,i),h=ad(this.paddingRight,i);return(this.widthSetting||this.bBox.width||0)+u+h}xSetter(i){this.x=i,this.alignFactor&&(i-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(i),this.attr("translateX",this.xSetting)}ySetter(i){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(i),this.attr("translateY",this.ySetting)}}hl.emptyBBox={width:0,height:0,x:0,y:0},hl.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let{defined:N0,isNumber:Yy,pick:kc}=Me;function j0(k,i,u,h,m){let g=[];if(m){let v=m.start||0,w=m.end||0,A=kc(m.r,u),N=kc(m.r,h||u),B=2e-4/(m.borderRadius?1:Math.max(A,1)),j=Math.abs(w-v-2*Math.PI)<B;j&&(v=Math.PI/2,w=2.5*Math.PI-B);let I=m.innerR,U=kc(m.open,j),q=Math.cos(v),ee=Math.sin(v),G=Math.cos(w),K=Math.sin(w),de=kc(m.longArc,w-v-Math.PI<B?0:1),me=["A",A,N,0,de,kc(m.clockwise,1),k+A*G,i+N*K];me.params={start:v,end:w,cx:k,cy:i},g.push(["M",k+A*q,i+N*ee],me),N0(I)&&((me=["A",I,I,0,de,N0(m.clockwise)?1-m.clockwise:0,k+I*q,i+I*ee]).params={start:w,end:v,cx:k,cy:i},g.push(U?["M",k+I*G,i+I*K]:["L",k+I*G,i+I*K],me)),U||g.push(["Z"])}return g}function M0(k,i,u,h,m){return m?.r?Gh(k,i,u,h,m):[["M",k,i],["L",k+u,i],["L",k+u,i+h],["L",k,i+h],["Z"]]}function Gh(k,i,u,h,m){let g=m?.r||0;return[["M",k+g,i],["L",k+u-g,i],["A",g,g,0,0,1,k+u,i+g],["L",k+u,i+h-g],["A",g,g,0,0,1,k+u-g,i+h],["L",k+g,i+h],["A",g,g,0,0,1,k,i+h-g],["L",k,i+g],["A",g,g,0,0,1,k+g,i],["Z"]]}let ld={arc:j0,callout:function(k,i,u,h,m){let g=Math.min(m?.r||0,u,h),v=g+6,w=m?.anchorX,A=m?.anchorY||0,N=Gh(k,i,u,h,{r:g});if(!Yy(w)||w<u&&w>0&&A<h&&A>0)return N;if(k+w>u-v)if(A>i+v&&A<i+h-v)N.splice(3,1,["L",k+u,A-6],["L",k+u+6,A],["L",k+u,A+6],["L",k+u,i+h-g]);else if(w<u){let B=A<i+v,j=B?i:i+h;N.splice(B?2:5,0,["L",w,A],["L",k+u-g,j])}else N.splice(3,1,["L",k+u,h/2],["L",w,A],["L",k+u,h/2],["L",k+u,i+h-g]);else if(k+w<v)if(A>i+v&&A<i+h-v)N.splice(7,1,["L",k,A+6],["L",k-6,A],["L",k,A-6],["L",k,i+g]);else if(w>0){let B=A<i+v,j=B?i:i+h;N.splice(B?1:6,0,["L",w,A],["L",k+g,j])}else N.splice(7,1,["L",k,h/2],["L",w,A],["L",k,h/2],["L",k,i+g]);else A>h&&w<u-v?N.splice(5,1,["L",w+6,i+h],["L",w,i+h+6],["L",w-6,i+h],["L",k+g,i+h]):A<0&&w>v&&N.splice(1,1,["L",w-6,i],["L",w,i-6],["L",w+6,i],["L",u-g,i]);return N},circle:function(k,i,u,h){return j0(k+u/2,i+h/2,u/2,h/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(k,i,u,h){return[["M",k+u/2,i],["L",k+u,i+h/2],["L",k+u/2,i+h],["L",k,i+h/2],["Z"]]},rect:M0,roundedRect:Gh,square:M0,triangle:function(k,i,u,h){return[["M",k+u/2,i],["L",k+u,i+h],["L",k,i+h],["Z"]]},"triangle-down":function(k,i,u,h){return[["M",k,i],["L",k+u,i],["L",k+u/2,i+h],["Z"]]}},{doc:fl,SVG_NS:Gy,win:Xh}=re,{attr:od,extend:R0,fireEvent:O0,isString:B0,objectEach:mo,pick:Xy}=Me,qh=(k,i)=>k.substring(0,i)+"â¦",qy=class{constructor(k){const i=k.styles;this.renderer=k.renderer,this.svgElement=k,this.width=k.textWidth,this.textLineHeight=i?.lineHeight,this.textOutline=i?.textOutline,this.ellipsis=i?.textOverflow==="ellipsis",this.lineClamp=i?.lineClamp,this.noWrap=i?.whiteSpace==="nowrap"}buildSVG(){let k=this.svgElement,i=k.element,u=k.renderer,h=Xy(k.textStr,"").toString(),m=h.indexOf("<")!==-1,g=i.childNodes,v=!k.added&&u.box,w=[h,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,k.getStyle("font-size"),k.styles.lineClamp,this.width].join(",");if(w!==k.textCache){k.textCache=w,delete k.actualWidth;for(let A=g.length;A--;)i.removeChild(g[A]);if(m||this.ellipsis||this.width||k.textPath||h.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(h))){if(h!==""){v&&v.appendChild(i);let A=new Cr(h);this.modifyTree(A.nodes),A.addToDOM(i),this.modifyDOM(),this.ellipsis&&(i.textContent||"").indexOf("â¦")!==-1&&k.attr("title",this.unescapeEntities(k.textStr||"",["<",">"])),v&&v.removeChild(i)}}else i.appendChild(fl.createTextNode(this.unescapeEntities(h)));B0(this.textOutline)&&k.applyTextOutline&&k.applyTextOutline(this.textOutline)}}modifyDOM(){let k,i=this.svgElement,u=od(i.element,"x");for(i.firstLineMetrics=void 0;(k=i.element.firstChild)&&/^[\s\u200B]*$/.test(k.textContent||" ");)i.element.removeChild(k);[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),(v,w)=>{v.nextSibling&&v.previousSibling&&(w===0&&v.previousSibling.nodeType===1&&(i.firstLineMetrics=i.renderer.fontMetrics(v.previousSibling)),od(v,{dy:this.getLineHeight(v.nextSibling),x:u}))});let h=this.width||0;if(!h)return;let m=(v,w)=>{let A=v.textContent||"",N=A.replace(/([^\^])-/g,"$1- ").split(" "),B=!this.noWrap&&(N.length>1||i.element.childNodes.length>1),j=this.getLineHeight(w),I=Math.max(0,h-.8*j),U=0,q=i.actualWidth;if(B){let ee=[],G=[];for(;w.firstChild&&w.firstChild!==v;)G.push(w.firstChild),w.removeChild(w.firstChild);for(;N.length;)if(N.length&&!this.noWrap&&U>0&&(ee.push(v.textContent||""),v.textContent=N.join(" ").replace(/- /g,"-")),this.truncate(v,void 0,N,U===0&&q||0,h,I,(K,de)=>N.slice(0,de).join(" ").replace(/- /g,"-")),q=i.actualWidth,U++,this.lineClamp&&U>=this.lineClamp){N.length&&(this.truncate(v,v.textContent||"",void 0,0,h,I,qh),v.textContent=v.textContent?.replace("â¦","")+"â¦");break}G.forEach(K=>{w.insertBefore(K,v)}),ee.forEach(K=>{w.insertBefore(fl.createTextNode(K),v);let de=fl.createElementNS(Gy,"tspan");de.textContent="â",od(de,{dy:j,x:u}),w.insertBefore(de,v)})}else this.ellipsis&&A&&this.truncate(v,A,void 0,0,h,I,qh)},g=v=>{[].slice.call(v.childNodes).forEach(w=>{w.nodeType===Xh.Node.TEXT_NODE?m(w,v):(w.className.baseVal.indexOf("highcharts-br")!==-1&&(i.actualWidth=0),g(w))})};g(i.element)}getLineHeight(k){let i=k.nodeType===Xh.Node.TEXT_NODE?k.parentElement:k;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(i||this.svgElement.element).h}modifyTree(k){let i=(u,h)=>{let{attributes:m={},children:g,style:v={},tagName:w}=u,A=this.renderer.styledMode;if(w==="b"||w==="strong"?A?m.class="highcharts-strong":v.fontWeight="bold":(w==="i"||w==="em")&&(A?m.class="highcharts-emphasized":v.fontStyle="italic"),v?.color&&(v.fill=v.color),w==="br"){m.class="highcharts-br",u.textContent="â";let N=k[h+1];N?.textContent&&(N.textContent=N.textContent.replace(/^ +/gm,""))}else w==="a"&&g&&g.some(N=>N.tagName==="#text")&&(u.children=[{children:g,tagName:"tspan"}]);w!=="#text"&&w!=="a"&&(u.tagName="tspan"),R0(u,{attributes:m,style:v}),g&&g.filter(N=>N.tagName!=="#text").forEach(i)};k.forEach(i),O0(this.svgElement,"afterModifyTree",{nodes:k})}truncate(k,i,u,h,m,g,v){let w,A,N=this.svgElement,{rotation:B}=N,j=[],I=u&&!h?1:0,U=(i||u||"").length,q=U;u||(m=g);let ee=function(G,K){let de=K||G,me=k.parentNode;if(me&&j[de]===void 0&&me.getSubStringLength)try{j[de]=h+me.getSubStringLength(0,u?de+1:de)}catch{}return j[de]};if(N.rotation=0,h+(A=ee(k.textContent.length))>m){for(;I<=U;)q=Math.ceil((I+U)/2),u&&(w=v(u,q)),A=ee(q,w&&w.length-1),I===U?I=U+1:A>m?U=q-1:I=q;U===0?k.textContent="":i&&U===i.length-1||(k.textContent=w||v(i||u,q)),this.ellipsis&&A>m&&this.truncate(k,k.textContent||"",void 0,0,m,g,qh)}u&&u.splice(0,q),N.actualWidth=A,N.rotation=B}unescapeEntities(k,i){return mo(this.renderer.escapes,function(u,h){i&&i.indexOf(u)!==-1||(k=k.toString().replace(RegExp(u,"g"),h))}),k}},{defaultOptions:_0}=tr,{charts:D0,deg2rad:xo,doc:xi,isFirefox:L0,isMS:Tc,isWebKit:I0,noop:P0,SVG_NS:Wh,symbolSizes:Nc,win:cd}=re,{addEvent:jc,attr:Mc,createElement:Wy,crisp:F0,css:ud,defined:pl,destroyObjectProperties:Qy,extend:fs,isArray:Rc,isNumber:Aa,isObject:go,isString:z0,merge:dd,pick:Oc,pInt:Jy,replaceNested:yo,uniqueKey:Qh}=Me;class Ea{constructor(i,u,h,m,g,v,w){let A,N;this.x=0,this.y=0;const B=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),j=B.element;w||B.css(this.getStyle(m||{})),i.appendChild(j),Mc(i,"dir","ltr"),i.innerHTML.indexOf("xmlns")===-1&&Mc(j,"xmlns",this.SVG_NS),this.box=j,this.boxWrapper=B,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(xi.createTextNode("Created with Highcharts 12.5.0")),this.defs=this.createElement("defs").add(),this.allowHTML=v,this.forExport=g,this.styledMode=w,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=B.getStyle("font-size"),this.setSize(u,h,!1),L0&&i.getBoundingClientRect&&((A=function(){ud(i,{left:0,top:0}),N=i.getBoundingClientRect(),ud(i,{left:Math.ceil(N.left)-N.left+"px",top:Math.ceil(N.top)-N.top+"px"})})(),this.unSubPixelFix=jc(cd,"resize",A))}definition(i){return new Cr([i]).addToDOM(this.defs.element)}getReferenceURL(){if((L0||I0)&&xi.getElementsByTagName("base").length){if(!pl(n)){let i=Qh(),u=new Cr([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:i},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${i})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(xi.body);ud(u,{position:"fixed",top:0,left:0,zIndex:9e5}),n=xi.elementFromPoint(6,6)?.id==="hitme",xi.body.removeChild(u)}if(n)return yo(cd.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(i){return this.style=fs({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},i),this.style}setStyle(i){this.boxWrapper.css(this.getStyle(i))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let i=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),Qy(this.gradients||{}),this.gradients=null,this.defs=i.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(i){return new this.Element(this,i)}getRadialAttr(i,u){return{cx:i[0]-i[2]/2+(u.cx||0)*i[2],cy:i[1]-i[2]/2+(u.cy||0)*i[2],r:(u.r||0)*i[2]}}shadowDefinition(i){let u=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(i).map(m=>`${m}-${i[m]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),h=dd({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},i);return this.defs.element.querySelector(`#${u}`)||this.definition({tagName:"filter",attributes:{id:u,filterUnits:h.filterUnits},children:this.getShadowFilterContent(h)}),u}getShadowFilterContent(i){return[{tagName:"feDropShadow",attributes:{dx:i.offsetX,dy:i.offsetY,"flood-color":i.color,"flood-opacity":Math.min(5*i.opacity,1),stdDeviation:i.width/2}}]}buildText(i){new qy(i).buildSVG()}getContrast(i){if(i==="transparent")return"#000000";let u=Nr.parse(i).rgba,h=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(Aa(u[0])||!Nr.useColorMix){let m=u.map(v=>{let w=v/255;return w<=.04?w/12.92:Math.pow((w+.055)/1.055,2.4)}),g=.2126*m[0]+.7152*m[1]+.0722*m[2];return 1.05/(g+.05)>(g+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+i+" srgb"+h+h+h+")"}button(i,u,h,m,g={},v,w,A,N,B){let j=this.label(i,u,h,N,void 0,void 0,B,void 0,"button"),I=this.styledMode,U=arguments,q=0;g=dd(_0.global.buttonTheme,g),I&&(delete g.fill,delete g.stroke,delete g["stroke-width"]);let ee=g.states||{},G=g.style||{};delete g.states,delete g.style;let K=[Cr.filterUserAttributes(g)],de=[G];return I||["hover","select","disabled"].forEach((me,ve)=>{K.push(dd(K[0],Cr.filterUserAttributes(U[ve+5]||ee[me]||{}))),de.push(K[ve+1].style),delete K[ve+1].style}),jc(j.element,Tc?"mouseover":"mouseenter",function(){q!==3&&j.setState(1)}),jc(j.element,Tc?"mouseout":"mouseleave",function(){q!==3&&j.setState(q)}),j.setState=(me=0)=>{if(me!==1&&(j.state=q=me),j.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][me]),!I){j.attr(K[me]);let ve=de[me];go(ve)&&j.css(ve)}},j.attr(K[0]),!I&&(j.css(fs({cursor:"default"},G)),B&&j.text.css({pointerEvents:"none"})),j.on("touchstart",me=>me.stopPropagation()).on("click",function(me){q!==3&&m?.call(j,me)})}crispLine(i,u){let[h,m]=i;return pl(h[1])&&h[1]===m[1]&&(h[1]=m[1]=F0(h[1],u)),pl(h[2])&&h[2]===m[2]&&(h[2]=m[2]=F0(h[2],u)),i}path(i){let u=this.styledMode?{}:{fill:"none"};return Rc(i)?u.d=i:go(i)&&fs(u,i),this.createElement("path").attr(u)}circle(i,u,h){let m=go(i)?i:i===void 0?{}:{x:i,y:u,r:h},g=this.createElement("circle");return g.xSetter=g.ySetter=function(v,w,A){A.setAttribute("c"+w,v)},g.attr(m)}arc(i,u,h,m,g,v){let w;go(i)?(u=(w=i).y,h=w.r,m=w.innerR,g=w.start,v=w.end,i=w.x):w={innerR:m,start:g,end:v};let A=this.symbol("arc",i,u,h,h,w);return A.r=h,A}rect(i,u,h,m,g,v){let w=go(i)?i:i===void 0?{}:{x:i,y:u,r:g,width:Math.max(h||0,0),height:Math.max(m||0,0)},A=this.createElement("rect");return this.styledMode||(v!==void 0&&(w["stroke-width"]=v,fs(w,A.crisp(w))),w.fill="none"),A.rSetter=function(N,B,j){A.r=N,Mc(j,{rx:N,ry:N})},A.rGetter=function(){return A.r||0},A.attr(w)}roundedRect(i){return this.symbol("roundedRect").attr(i)}setSize(i,u,h){this.width=i,this.height=u,this.boxWrapper.animate({width:i,height:u},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:Oc(h,!0)?void 0:0}),this.alignElements()}g(i){let u=this.createElement("g");return i?u.attr({class:"highcharts-"+i}):u}image(i,u,h,m,g,v){let w={preserveAspectRatio:"none"};Aa(u)&&(w.x=u),Aa(h)&&(w.y=h),Aa(m)&&(w.width=m),Aa(g)&&(w.height=g);let A=this.createElement("image").attr(w),N=function(B){A.attr({href:i}),v.call(A,B)};if(v){A.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let B=new cd.Image;jc(B,"load",N),B.src=i,B.complete&&N({})}else A.attr({href:i});return A}symbol(i,u,h,m,g,v){let w,A,N,B,j=this,I=/^url\((.*?)\)$/,U=I.test(i),q=!U&&(this.symbols[i]?i:"circle"),ee=q&&this.symbols[q];if(ee)typeof u=="number"&&(A=ee.call(this.symbols,u||0,h||0,m||0,g||0,v)),w=this.path(A),j.styledMode||w.attr("fill","none"),fs(w,{symbolName:q||void 0,x:u,y:h,width:m,height:g}),v&&fs(w,v);else if(U){N=i.match(I)[1];let G=w=this.image(N);G.imgwidth=Oc(v?.width,Nc[N]?.width),G.imgheight=Oc(v?.height,Nc[N]?.height),B=K=>K.attr({width:K.width,height:K.height}),["width","height"].forEach(K=>{G[`${K}Setter`]=function(de,me){this[me]=de;let{alignByTranslate:ve,element:be,width:Ae,height:Ee,imgwidth:Ce,imgheight:Fe}=this,$e=me==="width"?Ce:Fe,Pe=1;v&&v.backgroundSize==="within"&&Ae&&Ee&&Ce&&Fe?(Pe=Math.min(Ae/Ce,Ee/Fe),Mc(be,{width:Math.round(Ce*Pe),height:Math.round(Fe*Pe)})):be&&$e&&be.setAttribute(me,$e),!ve&&Ce&&Fe&&this.translate(((Ae||0)-Ce*Pe)/2,((Ee||0)-Fe*Pe)/2)}}),pl(u)&&G.attr({x:u,y:h}),G.isImg=!0,G.symbolUrl=i,pl(G.imgwidth)&&pl(G.imgheight)?B(G):(G.attr({width:0,height:0}),Wy("img",{onload:function(){let K=D0[j.chartIndex];this.width===0&&(ud(this,{position:"absolute",top:"-999em"}),xi.body.appendChild(this)),Nc[N]={width:this.width,height:this.height},G.imgwidth=this.width,G.imgheight=this.height,G.element&&B(G),this.parentNode&&this.parentNode.removeChild(this),j.imgCount--,j.imgCount||!K||K.hasLoaded||K.onload()},src:N}),this.imgCount++)}return w}clipRect(i,u,h,m){return this.rect(i,u,h,m,0)}text(i,u,h,m){let g={};if(m&&(this.allowHTML||!this.forExport))return this.html(i,u,h);g.x=Math.round(u||0),h&&(g.y=Math.round(h)),pl(i)&&(g.text=i);let v=this.createElement("text").attr(g);return m&&(!this.forExport||this.allowHTML)||(v.xSetter=function(w,A,N){let B=N.getElementsByTagName("tspan"),j=N.getAttribute(A);for(let I=0,U;I<B.length;I++)(U=B[I]).getAttribute(A)===j&&U.setAttribute(A,w);N.setAttribute(A,w)}),v}fontMetrics(i){let u=Aa(i)?i:Jy(mi.prototype.getStyle.call(i,"font-size")||0),h=u<24?u+3:Math.round(1.2*u),m=Math.round(.8*h);return{h,b:m,f:u}}rotCorr(i,u,h){let m=i;return u&&h&&(m=Math.max(m*Math.cos(u*xo),4)),{x:-i/3*Math.sin(u*xo),y:m}}pathToSegments(i){let u=[],h=[],m={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let g=0;g<i.length;g++)z0(h[0])&&Aa(i[g])&&h.length===m[h[0].toUpperCase()]&&i.splice(g,0,h[0].replace("M","L").replace("m","l")),typeof i[g]=="string"&&(h.length&&u.push(h.slice(0)),h.length=0),h.push(i[g]);return u.push(h.slice(0)),u}label(i,u,h,m,g,v,w,A,N){return new hl(this,i,u,h,m,g,v,w,A,N)}alignElements(){this.alignedObjects.forEach(i=>i.align())}}fs(Ea.prototype,{Element:mi,SVG_NS:Wh,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:ld,draw:P0}),fi.registerRendererType("svg",Ea,!0);let{composed:Jh,isFirefox:U0}=re,{attr:ml,css:dn,createElement:Kh,defined:Zh,extend:xl,getAlignFactor:$0,isNumber:Bc,pInt:V0,pushUnique:Ky}=Me;function H0(k,i,u){let h=this.div?.style;mi.prototype[`${i}Setter`].call(this,k,i,u),h&&(u.style[i]=h[i]=k)}let Zy=(k,i)=>{if(!k.div){let u=ml(k.element,"class"),h=k.css,m=Kh("div",u?{className:u}:void 0,{position:"absolute",left:`${k.translateX||0}px`,top:`${k.translateY||0}px`,...k.styles,display:k.display,opacity:k.opacity,visibility:k.visibility},k.parentGroup?.div||i);k.classSetter=(g,v,w)=>{w.setAttribute("class",g),m.className=g},k.translateXSetter=k.translateYSetter=(g,v)=>{k[v]=g,m.style[v==="translateX"?"left":"top"]=`${g}px`,k.doTransform=!0},k.scaleXSetter=k.scaleYSetter=(g,v)=>{k[v]=g,k.doTransform=!0},k.opacitySetter=k.visibilitySetter=H0,k.css=g=>(h.call(k,g),g.cursor&&(m.style.cursor=g.cursor),g.pointerEvents&&(m.style.pointerEvents=g.pointerEvents),k),k.on=function(){return mi.prototype.on.apply({element:m,onEvents:k.onEvents},arguments),k},k.div=m}return k.div};class gl extends mi{static compose(i){Ky(Jh,this.compose)&&(i.prototype.html=function(u,h,m){return new gl(this,"span").attr({text:u,x:Math.round(h),y:Math.round(m)})})}constructor(i,u){super(i,u),gl.useForeignObject?this.foreignObject=i.createElement("foreignObject").attr({zIndex:2}):this.css({position:"absolute",...i.styledMode?{}:{fontFamily:i.style.fontFamily,fontSize:i.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(i,u,h){this.xCorr=-i*h,this.yCorr=-u}css(i){let u,{element:h}=this,m=h.tagName==="SPAN"&&i&&"width"in i,g=m&&i.width;return m&&(delete i.width,this.textWidth=V0(g)||void 0,u=!0),i?.textOverflow==="ellipsis"&&(i.overflow="hidden",i.whiteSpace="nowrap"),i?.lineClamp&&(i.display="-webkit-box",i.WebkitLineClamp=i.lineClamp,i.WebkitBoxOrient="vertical",i.overflow="hidden"),Bc(Number(i?.fontSize))&&(i.fontSize+="px"),xl(this.styles,i),dn(h,i),u&&this.updateTransform(),this}htmlGetBBox(){let{element:i}=this;return{x:i.offsetLeft,y:i.offsetTop,width:i.offsetWidth,height:i.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}let{element:i,foreignObject:u,oldTextWidth:h,renderer:m,rotation:g,rotationOriginX:v,rotationOriginY:w,scaleX:A,scaleY:N,styles:{display:B="inline-block",whiteSpace:j},textAlign:I="left",textWidth:U,translateX:q=0,translateY:ee=0,x:G=0,y:K=0}=this,de=()=>this.textPxLength?this.textPxLength:(dn(i,{width:"",whiteSpace:j||"nowrap"}),i.offsetWidth);if(u||dn(i,{marginLeft:`${q}px`,marginTop:`${ee}px`}),i.tagName==="SPAN"){let me,ve=[g,I,i.innerHTML,U,this.textAlign].join(","),be=-(this.parentGroup?.padding*1)||0;if(U!==h){let Fe=de(),$e=U||0,Pe=!m.styledMode&&i.style.textOverflow===""&&i.style.webkitLineClamp;($e>h||Fe>$e||Pe)&&(/[\-\s\u00AD]/.test(i.textContent||i.innerText)||i.style.textOverflow==="ellipsis")&&(dn(i,{width:(g||A||Fe>$e||Pe)&&Bc(U)?U+"px":"auto",display:B,whiteSpace:j||"normal"}),this.oldTextWidth=U)}u&&(dn(i,{display:"inline-block",verticalAlign:"top"}),u.attr({width:m.width,height:m.height})),ve!==this.cTT&&(me=m.fontMetrics(i).b,Zh(g)&&!u&&(g!==(this.oldRotation||0)||I!==this.oldAlign)&&dn(i,{transform:`rotate(${g}deg)`,transformOrigin:`${be}% ${be}px`}),this.getSpanCorrection(!Zh(g)&&!this.textWidth&&this.textPxLength||i.offsetWidth,me,$0(I)));let{xCorr:Ae=0,yCorr:Ee=0}=this,Ce={left:`${G+Ae}px`,top:`${K+Ee}px`,textAlign:I,transformOrigin:`${(v??G)-Ae-G-be}px ${(w??K)-Ee-K-be}px`};(A||N)&&(Ce.transform=`scale(${A??1},${N??1})`),u?(super.updateTransform(),Bc(G)&&Bc(K)?(u.attr({x:G+Ae,y:K+Ee,width:i.offsetWidth+3,height:i.offsetHeight,"transform-origin":i.getAttribute("transform-origin")||"0 0"}),dn(i,{display:B,textAlign:I})):U0&&u.attr({width:0,height:0})):dn(i,Ce),this.cTT=ve,this.oldRotation=g,this.oldAlign=I}}add(i){let{foreignObject:u,renderer:h}=this,m=h.box.parentNode,g=[];if(u)u.add(i),super.add(h.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(u));else{let v;if(this.parentGroup=i,i&&!(v=i.div)){let w=i;for(;w;)g.push(w),w=w.parentGroup;for(let A of g.reverse())v=Zy(A,m)}(v||m).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(i){i!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,Cr.setElementHTML(this.element,i??""),this.textStr=i,this.doTransform=!0)}alignSetter(i){this.alignValue=this.textAlign=i,this.doTransform=!0}xSetter(i,u){this[u]=i,this.doTransform=!0}}let Ca=gl.prototype;Ca.visibilitySetter=Ca.opacitySetter=H0,Ca.ySetter=Ca.rotationSetter=Ca.rotationOriginXSetter=Ca.rotationOriginYSetter=Ca.xSetter,(S=te||(te={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},S.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:k}=this.axis.chart;return k(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};let ef=te,{addEvent:Qn,isFunction:hd,objectEach:Tn,removeEvent:vo}=Me;(le||(le={})).registerEventOptions=function(k,i){k.eventOptions=k.eventOptions||{},Tn(i.events,function(u,h){k.eventOptions[h]!==u&&(k.eventOptions[h]&&(vo(k,h,k.eventOptions[h]),delete k.eventOptions[h]),hd(u)&&(k.eventOptions[h]=u,Qn(k,h,u,{order:0})))})};let bo=le,{deg2rad:wo}=re,{clamp:fd,correctFloat:So,defined:Li,destroyObjectProperties:Y0,extend:_c,fireEvent:gi,getAlignFactor:ev,isNumber:Ds,merge:tf,objectEach:Ii,pick:Jn}=Me,Pi=class{constructor(k,i,u,h,m){this.isNew=!0,this.isNewLabel=!0,this.axis=k,this.pos=i,this.type=u||"",this.parameters=m||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,gi(this,"init"),u||h||this.addLabel()}addLabel(){let k=this,i=k.axis,u=i.options,h=i.chart,m=i.categories,g=i.logarithmic,v=i.names,w=k.pos,A=Jn(k.options?.labels,u.labels),N=i.tickPositions,B=w===N[0],j=w===N[N.length-1],I=(!A.step||A.step===1)&&i.tickInterval===1,U=N.info,q=k.label,ee,G,K,de=this.parameters.category||(m?Jn(m[w],v[w],w):w);g&&Ds(de)&&(de=So(g.lin2log(de))),i.dateTime&&(U?ee=(G=h.time.resolveDTLFormat(u.dateTimeLabelFormats[!u.grid?.enabled&&U.higherRanks[w]||U.unitName])).main:Ds(de)&&(ee=i.dateTime.getXDateFormat(de,u.dateTimeLabelFormats||{}))),k.isFirst=B,k.isLast=j;let me={axis:i,chart:h,dateTimeLabelFormat:ee,isFirst:B,isLast:j,pos:w,tick:k,tickPositionInfo:U,value:de};gi(this,"labelFormat",me);let ve=Ee=>A.formatter?A.formatter.call(Ee,Ee):A.format?(Ee.text=i.defaultLabelFormatter.call(Ee),Gs.format(A.format,Ee,h)):i.defaultLabelFormatter.call(Ee),be=ve.call(me,me),Ae=G?.list;Ae?k.shortenLabel=function(){for(K=0;K<Ae.length;K++)if(_c(me,{dateTimeLabelFormat:Ae[K]}),q.attr({text:ve.call(me,me)}),q.getBBox().width<i.getSlotWidth(k)-2*(A.padding||0))return;q.attr({text:""})}:k.shortenLabel=void 0,I&&i._addedPlotLB&&k.moveLabel(be,A),Li(q)||k.movedLabel?q&&q.textStr!==be&&!I&&(!q.textWidth||A.style.width||q.styles.width||q.css({width:null}),q.attr({text:be}),q.textPxLength=q.getBBox().width):(k.label=q=k.createLabel(be,A),k.rotation=0)}createLabel(k,i,u){let h=this.axis,{renderer:m,styledMode:g}=h.chart,v=i.style.whiteSpace,w=Li(k)&&i.enabled?m.text(k,u?.x,u?.y,i.useHTML).add(h.labelGroup):void 0;return w&&(g||w.css(tf(i.style)),w.textPxLength=w.getBBox().width,!g&&v&&w.css({whiteSpace:v})),w}destroy(){Y0(this,this.axis)}getPosition(k,i,u,h){let m=this.axis,g=m.chart,v=h&&g.oldChartHeight||g.chartHeight,w={x:k?So(m.translate(i+u,void 0,void 0,h)+m.transB):m.left+m.offset+(m.opposite?(h&&g.oldChartWidth||g.chartWidth)-m.right-m.left:0),y:k?v-m.bottom+m.offset-(m.opposite?m.height:0):So(v-m.translate(i+u,void 0,void 0,h)-m.transB)};return w.y=fd(w.y,-1e9,1e9),gi(this,"afterGetPosition",{pos:w}),w}getLabelPosition(k,i,u,h,m,g,v,w){let A,N,B=this.axis,j=B.transA,I=B.isLinked&&B.linkedParent?B.linkedParent.reversed:B.reversed,U=B.staggerLines,q=B.tickRotCorr||{x:0,y:0},ee=h||B.reserveSpaceDefault?0:-B.labelOffset*(B.labelAlign==="center"?.5:1),G=m.distance,K={};return A=B.side===0?u.rotation?-G:-u.getBBox().height:B.side===2?q.y+G:Math.cos(u.rotation*wo)*(q.y-u.getBBox(!1,0).height/2),Li(m.y)&&(A=B.side===0&&B.horiz?m.y+A:m.y),k=k+Jn(m.x,[0,1,0,-1][B.side]*G)+ee+q.x-(g&&h?g*j*(I?-1:1):0),i=i+A-(g&&!h?g*j*(I?1:-1):0),U&&(N=v/(w||1)%U,B.opposite&&(N=U-N-1),i+=N*(B.labelOffset/U)),K.x=k,K.y=Math.round(i),gi(this,"afterGetLabelPosition",{pos:K,tickmarkOffset:g,index:v}),K}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(k,i,u,h,m=!1,g){return g.crispLine([["M",k,i],["L",k+(m?0:-u),i+(m?u:0)]],h)}handleOverflow(k){let i=this.axis,u=i.options.labels,h=k.x,m=i.chart.chartWidth,g=i.chart.spacing,v=Jn(i.labelLeft,Math.min(i.pos,g[3])),w=Jn(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,m-g[1])),A=this.label,N=this.rotation,B=ev(i.labelAlign||A.attr("align")),j=A.getBBox().width,I=i.getSlotWidth(this),U=I,q=1,ee;N||u.overflow!=="justify"?N<0&&h-B*j<v?ee=Math.round(h/Math.cos(N*wo)-v):N>0&&h+B*j>w&&(ee=Math.round((m-h)/Math.cos(N*wo))):(h-B*j<v?U=k.x+U*(1-B)-v:h+(1-B)*j>w&&(U=w-k.x+U*B,q=-1),(U=Math.min(I,U))<I&&i.labelAlign==="center"&&(k.x+=q*(I-U-B*(I-Math.min(j,U)))),(j>U||i.autoRotation&&A?.styles?.width)&&(ee=U)),ee&&A&&(this.shortenLabel?this.shortenLabel():A.css(_c({},{width:Math.floor(ee)+"px",lineClamp:+!i.isRadial})))}moveLabel(k,i){let u=this,h=u.label,m=u.axis,g=!1,v;h&&h.textStr===k?(u.movedLabel=h,g=!0,delete u.label):Ii(m.ticks,function(w){g||w.isNew||w===u||!w.label||w.label.textStr!==k||(u.movedLabel=w.label,g=!0,w.labelPos=u.movedLabel.xy,delete w.label)}),!g&&(u.labelPos||h)&&(v=u.labelPos||h.xy,u.movedLabel=u.createLabel(k,i,v),u.movedLabel&&u.movedLabel.attr({opacity:0}))}render(k,i,u){let h=this.axis,m=h.horiz,g=this.pos,v=Jn(this.tickmarkOffset,h.tickmarkOffset),w=this.getPosition(m,g,v,i),A=w.x,N=w.y,B=h.pos,j=B+h.len,I=m?A:N,U=Jn(u,this.label?.newOpacity,1);!h.chart.polar&&(So(I)<B||I>j)&&(u=0),u??(u=1),this.isActive=!0,this.renderGridLine(i,u),this.renderMark(w,u),this.renderLabel(w,i,U,k),this.isNew=!1,gi(this,"afterRender")}renderGridLine(k,i){let u=this.axis,h=u.options,m={},g=this.pos,v=this.type,w=Jn(this.tickmarkOffset,u.tickmarkOffset),A=u.chart.renderer,N=this.gridLine,B,j=h.gridLineWidth,I=h.gridLineColor,U=h.gridLineDashStyle;this.type==="minor"&&(j=h.minorGridLineWidth,I=h.minorGridLineColor,U=h.minorGridLineDashStyle),N||(u.chart.styledMode||(m.stroke=I,m["stroke-width"]=j||0,m.dashstyle=U),v||(m.zIndex=1),k&&(i=0),this.gridLine=N=A.path().attr(m).addClass("highcharts-"+(v?v+"-":"")+"grid-line").add(u.gridGroup)),N&&(B=u.getPlotLinePath({value:g+w,lineWidth:N.strokeWidth(),force:"pass",old:k,acrossPanes:!1}))&&N[k||this.isNew?"attr":"animate"]({d:B,opacity:i})}renderMark(k,i){let u=this.axis,h=u.options,m=u.chart.renderer,g=this.type,v=u.tickSize(g?g+"Tick":"tick"),w=k.x,A=k.y,N=Jn(h[g!=="minor"?"tickWidth":"minorTickWidth"],!g&&u.isXAxis?1:0),B=h[g!=="minor"?"tickColor":"minorTickColor"],j=this.mark,I=!j;v&&(u.opposite&&(v[0]=-v[0]),!j&&(this.mark=j=m.path().addClass("highcharts-"+(g?g+"-":"")+"tick").add(u.axisGroup),u.chart.styledMode||j.attr({stroke:B,"stroke-width":N})),j[I?"attr":"animate"]({d:this.getMarkPath(w,A,v[0],j.strokeWidth(),u.horiz,m),opacity:i}))}renderLabel(k,i,u,h){let m=this.axis,g=m.horiz,v=m.options,w=this.label,A=v.labels,N=A.step,B=Jn(this.tickmarkOffset,m.tickmarkOffset),j=k.x,I=k.y,U=!0;w&&Ds(j)&&(w.xy=k=this.getLabelPosition(j,I,w,g,A,B,h,N),(!this.isFirst||this.isLast||v.showFirstLabel)&&(!this.isLast||this.isFirst||v.showLastLabel)?!g||A.step||A.rotation||i||u===0||this.handleOverflow(k):U=!1,N&&h%N&&(U=!1),U&&Ds(k.y)?(k.opacity=u,w[this.isNewLabel?"attr":"animate"](k).show(!0),this.isNewLabel=!1):(w.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let k=this.label,i=this.axis;k&&!this.isNew&&(k.animate({opacity:0},void 0,k.destroy),delete this.label),i.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:yl}=vs,{xAxis:pd,yAxis:G0}=ef,{defaultOptions:Dc}=tr,{registerEventOptions:X0}=bo,{deg2rad:Nn}=re,{arrayMax:vl,arrayMin:Ao,clamp:bl,correctFloat:js,defined:It,destroyObjectProperties:jn,erase:Fi,error:Mn,extend:hn,fireEvent:rr,getClosestDistance:rf,insertItem:sf,isArray:md,isNumber:mt,isString:bs,merge:wr,normalizeTickInterval:Yt,objectEach:Kn,pick:wt,relativeLength:Eo,removeEvent:ka,splat:q0,syncTimeout:W0}=Me,wl=(k,i)=>Yt(i,void 0,void 0,wt(k.options.allowDecimals,i<.5||k.tickAmount!==void 0),!!k.tickAmount);hn(Dc,{xAxis:pd,yAxis:wr(pd,G0)});class Rn{constructor(i,u,h){this.init(i,u,h)}init(i,u,h=this.coll){let m=h==="xAxis",g=this.isZAxis||(i.inverted?!m:m);this.chart=i,this.horiz=g,this.isXAxis=m,this.coll=h,rr(this,"init",{userOptions:u}),this.opposite=wt(u.opposite,this.opposite),this.side=wt(u.side,this.side,g?2*!this.opposite:this.opposite?1:3),this.setOptions(u);let v=this.options,w=v.labels;this.type??(this.type=v.type||"linear"),this.uniqueNames??(this.uniqueNames=v.uniqueNames??!0),rr(this,"afterSetType"),this.userOptions=u,this.minPixelPadding=0,this.reversed=wt(v.reversed,this.reversed),this.visible=v.visible,this.zoomEnabled=v.zoomEnabled,this.hasNames=this.type==="category"||v.categories===!0,this.categories=md(v.categories)&&v.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=It(v.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=v.minRange||v.maxZoom,this.range=v.range,this.offset=v.offset||0,this.max=void 0,this.min=void 0;let A=wt(v.crosshair,q0(i.options.tooltip.crosshairs)[+!m]);this.crosshair=A===!0?{}:A,i.axes.indexOf(this)===-1&&(m?i.axes.splice(i.xAxis.length,0,this):i.axes.push(this),sf(this,i[this.coll])),i.orderItems(this.coll),this.series=this.series||[],i.inverted&&!this.isZAxis&&m&&!It(this.reversed)&&(this.reversed=!0),this.labelRotation=mt(w.rotation)?w.rotation:void 0,X0(this,v),rr(this,"afterInit")}setOptions(i){let u=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=wr(u,this.coll==="yAxis"?{title:{text:this.chart.options.lang.yAxisTitle}}:{},Dc[this.coll],i),rr(this,"afterSetOptions",{userOptions:i})}defaultLabelFormatter(){let i=this.axis,{numberFormatter:u}=this.chart,h=mt(this.value)?this.value:NaN,m=i.chart.time,g=i.categories,v=this.dateTimeLabelFormat,w=Dc.lang,A=w.numericSymbols,N=w.numericSymbolMagnitude||1e3,B=i.logarithmic?Math.abs(h):i.tickInterval,j=A?.length,I,U;if(g)U=`${this.value}`;else if(v)U=m.dateFormat(v,h,!0);else if(j&&A&&B>=1e3)for(;j--&&U===void 0;)B>=(I=Math.pow(N,j+1))&&10*h%I==0&&A[j]!==null&&h!==0&&(U=u(h/I,-1)+A[j]);return U===void 0&&(U=Math.abs(h)>=1e4?u(h,-1):u(h,-1,void 0,"")),U}getSeriesExtremes(){let i,u=this;rr(this,"getSeriesExtremes",null,function(){u.hasVisibleSeries=!1,u.dataMin=u.dataMax=u.threshold=void 0,u.softThreshold=!u.isXAxis,u.series.forEach(h=>{if(h.reserveSpace()){let m=h.options,g,v=m.threshold,w,A;if(u.hasVisibleSeries=!0,u.positiveValuesOnly&&0>=(v||0)&&(v=void 0),u.isXAxis)(g=h.getColumn("x")).length&&(g=u.logarithmic?g.filter(N=>N>0):g,w=(i=h.getXExtremes(g)).min,A=i.max,mt(w)||w instanceof Date||(g=g.filter(mt),w=(i=h.getXExtremes(g)).min,A=i.max),g.length&&(u.dataMin=Math.min(wt(u.dataMin,w),w),u.dataMax=Math.max(wt(u.dataMax,A),A)));else{let N=h.applyExtremes();mt(N.dataMin)&&(w=N.dataMin,u.dataMin=Math.min(wt(u.dataMin,w),w)),mt(N.dataMax)&&(A=N.dataMax,u.dataMax=Math.max(wt(u.dataMax,A),A)),It(v)&&(u.threshold=v),(!m.softThreshold||u.positiveValuesOnly)&&(u.softThreshold=!1)}}})}),rr(this,"afterGetSeriesExtremes")}translate(i,u,h,m,g,v){let w=this.linkedParent||this,A=m&&w.old?w.old.min:w.min;if(!mt(A))return NaN;let N=w.minPixelPadding,B=(w.isOrdinal||w.brokenAxis?.hasBreaks||w.logarithmic&&g)&&!!w.lin2val,j=1,I=0,U=m&&w.old?w.old.transA:w.transA,q=0;return U||(U=w.transA),h&&(j*=-1,I=w.len),w.reversed&&(j*=-1,I-=j*(w.sector||w.len)),u?(q=(i=i*j+I-N)/U+A,B&&(q=w.lin2val(q))):(B&&(i=w.val2lin(i)),q=j*(i-A)*U+I+j*N+(mt(v)?U*v:0),w.isRadial||(q=js(q))),q}toPixels(i,u){return this.translate(this.chart?.time.parse(i)??NaN,!1,!this.horiz,void 0,!0)+(u?0:this.pos)}toValue(i,u){return this.translate(i-(u?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(i){let u=this,h=u.chart,m=u.left,g=u.top,v=i.old,w=i.value,A=i.lineWidth,N=v&&h.oldChartHeight||h.chartHeight,B=v&&h.oldChartWidth||h.chartWidth,j=u.transB,I=i.translatedValue,U=i.force,q,ee,G,K,de;function me(be,Ae,Ee){return U!=="pass"&&(be<Ae||be>Ee)&&(U?be=bl(be,Ae,Ee):de=!0),be}let ve={value:w,lineWidth:A,old:v,force:U,acrossPanes:i.acrossPanes,translatedValue:I};return rr(this,"getPlotLinePath",ve,function(be){q=G=(I=bl(I=wt(I,u.translate(w,void 0,void 0,v)),-1e9,1e9))+j,ee=K=N-I-j,mt(I)?u.horiz?(ee=g,K=N-u.bottom+(u.options.isInternal?0:h.scrollablePixelsY||0),q=G=me(q,m,m+u.width)):(q=m,G=B-u.right+(h.scrollablePixelsX||0),ee=K=me(ee,g,g+u.height)):(de=!0,U=!1),be.path=de&&!U?void 0:h.renderer.crispLine([["M",q,ee],["L",G,K]],A||1)}),ve.path}getLinearTickPositions(i,u,h){let m,g,v,w=js(Math.floor(u/i)*i),A=js(Math.ceil(h/i)*i),N=[];if(js(w+i)===w&&(v=20),this.single)return[u];for(m=w;m<=A&&(N.push(m),(m=js(m+i,v))!==g);)g=m;return N}getMinorTickInterval(){let{minorTicks:i,minorTickInterval:u}=this.options;return i===!0?wt(u,"auto"):i!==!1?u:void 0}getMinorTickPositions(){let i=this.options,u=this.tickPositions,h=this.minorTickInterval,m=this.pointRangePadding||0,g=(this.min||0)-m,v=(this.max||0)+m,w=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:v-g,A=[],N;if(w&&w/h<this.len/3){let B=this.logarithmic;if(B)this.paddedTicks.forEach(function(j,I,U){I&&A.push.apply(A,B.getLogTickPositions(h,U[I-1],U[I],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")A=A.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(h),g,v,i.startOfWeek));else for(N=g+(u[0]-g)%h;N<=v&&N!==A[0];N+=h)A.push(N)}return A.length!==0&&this.trimTicks(A),A}adjustForMinRange(){let i=this.options,u=this.logarithmic,h=this.chart.time,{max:m,min:g,minRange:v}=this,w,A,N,B;this.isXAxis&&v===void 0&&!u&&(v=It(i.min)||It(i.max)||It(i.floor)||It(i.ceiling)?null:Math.min(5*(rf(this.series.map(j=>{let I=j.getColumn("x");return j.xIncrement?I.slice(0,2):I}))||0),this.dataMax-this.dataMin)),mt(m)&&mt(g)&&mt(v)&&m-g<v&&(A=this.dataMax-this.dataMin>=v,w=(v-m+g)/2,N=[g-w,h.parse(i.min)??g-w],A&&(N[2]=u?u.log2lin(this.dataMin):this.dataMin),B=[(g=vl(N))+v,h.parse(i.max)??g+v],A&&(B[2]=u?u.log2lin(this.dataMax):this.dataMax),(m=Ao(B))-g<v&&(N[0]=m-v,N[1]=h.parse(i.min)??m-v,g=vl(N))),this.minRange=v,this.min=g,this.max=m}getClosest(){let i,u;if(this.categories)u=1;else{let h=[];this.series.forEach(function(m){let g=m.closestPointRange,v=m.getColumn("x");v.length===1?h.push(v[0]):m.sorted&&It(g)&&m.reserveSpace()&&(u=It(u)?Math.min(u,g):g)}),h.length&&(h.sort((m,g)=>m-g),i=rf([h]))}return i&&u?Math.min(i,u):i||u}nameToX(i){let u=md(this.options.categories),h=u?this.categories:this.names,m=i.options.x,g;return i.series.requireSorting=!1,It(m)||(m=this.uniqueNames&&h?u?h.indexOf(i.name):wt(h.keys[i.name],-1):i.series.autoIncrement()),m===-1?!u&&h&&(g=h.length):mt(m)&&(g=m),g!==void 0?(this.names[g]=i.name,this.names.keys[i.name]=g):i.x&&(g=i.x),g}updateNames(){let i=this,u=this.names;u.length>0&&(Object.keys(u.keys).forEach(function(h){delete u.keys[h]}),u.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(h=>{h.xIncrement=null,(!h.points||h.isDirtyData)&&(i.max=Math.max(i.max||0,h.dataTable.rowCount-1),h.processData(),h.generatePoints());let m=h.getColumn("x").slice();h.data.forEach((g,v)=>{let w=m[v];g?.options&&g.name!==void 0&&(w=i.nameToX(g))!==void 0&&w!==g.x&&(m[v]=g.x=w)}),h.dataTable.setColumn("x",m)}))}setAxisTranslation(){let i=this,u=i.max-i.min,h=i.linkedParent,m=!!i.categories,g=i.isXAxis,v=i.axisPointRange||0,w,A=0,N=0,B,j=i.transA;(g||m||v)&&(w=i.getClosest(),h?(A=h.minPointOffset,N=h.pointRangePadding):i.series.forEach(function(I){let U=m?1:g?wt(I.options.pointRange,w,0):i.axisPointRange||0,q=I.options.pointPlacement;if(v=Math.max(v,U),!i.single||m){let ee=I.is("xrange")?!g:g;A=Math.max(A,ee&&bs(q)?0:U/2),N=Math.max(N,ee&&q==="on"?0:U)}}),B=i.ordinal?.slope&&w?i.ordinal.slope/w:1,i.minPointOffset=A*=B,i.pointRangePadding=N*=B,i.pointRange=Math.min(v,i.single&&m?1:u),g&&(i.closestPointRange=w)),i.translationSlope=i.transA=j=i.staticScale||i.len/(u+N||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=j*A,rr(this,"afterSetAxisTranslation")}minFromRange(){let{max:i,min:u}=this;return mt(i)&&mt(u)&&i-u||void 0}setTickInterval(i){let{categories:u,chart:h,dataMax:m,dataMin:g,dateTime:v,isXAxis:w,logarithmic:A,options:N,softThreshold:B}=this,j=h.time,I=mt(this.threshold)?this.threshold:void 0,U=this.minRange||0,{ceiling:q,floor:ee,linkedTo:G,softMax:K,softMin:de}=N,me=mt(G)&&h[this.coll]?.[G],ve=N.tickPixelInterval,be=N.maxPadding,Ae=N.minPadding,Ee=0,Ce,Fe=mt(N.tickInterval)&&N.tickInterval>=0?N.tickInterval:void 0,$e,Pe,et,rt;if(v||u||me||this.getTickAmount(),et=wt(this.userMin,j.parse(N.min)),rt=wt(this.userMax,j.parse(N.max)),me?(this.linkedParent=me,Ce=me.getExtremes(),this.min=wt(Ce.min,Ce.dataMin),this.max=wt(Ce.max,Ce.dataMax),this.type!==me.type&&Mn(11,!0,h)):(B&&It(I)&&mt(m)&&mt(g)&&(g>=I?($e=I,Ae=0):m<=I&&(Pe=I,be=0)),this.min=wt(et,$e,g),this.max=wt(rt,Pe,m)),mt(this.max)&&mt(this.min)&&(A&&(this.positiveValuesOnly&&!i&&0>=Math.min(this.min,wt(g,this.min))&&Mn(10,!0,h),this.min=js(A.log2lin(this.min),16),this.max=js(A.log2lin(this.max),16)),this.range&&mt(g)&&(this.userMin=this.min=et=Math.max(g,this.minFromRange()||0),this.userMax=rt=this.max,this.range=void 0)),rr(this,"foundExtremes"),this.adjustForMinRange(),mt(this.min)&&mt(this.max)){if(!mt(this.userMin)&&mt(de)&&de<this.min&&(this.min=et=de),!mt(this.userMax)&&mt(K)&&K>this.max&&(this.max=rt=K),u||this.axisPointRange||this.stacking?.usePercentage||me||(Ee=this.max-this.min)&&(!It(et)&&Ae&&(this.min-=Ee*Ae),!It(rt)&&be&&(this.max+=Ee*be)),!mt(this.userMin)&&mt(ee)&&(this.min=Math.max(this.min,ee)),!mt(this.userMax)&&mt(q)&&(this.max=Math.min(this.max,q)),B&&mt(g)&&mt(m)){let ct=I||0;!It(et)&&this.min<ct&&g>=ct?this.min=N.minRange?Math.min(ct,this.max-U):ct:!It(rt)&&this.max>ct&&m<=ct&&(this.max=N.minRange?Math.max(ct,this.min+U):ct)}!h.polar&&this.min>this.max&&(It(N.min)?this.max=this.min:It(N.max)&&(this.min=this.max)),Ee=this.max-this.min}if(this.min!==this.max&&mt(this.min)&&mt(this.max)?me&&!Fe&&ve===me.options.tickPixelInterval?this.tickInterval=Fe=me.tickInterval:this.tickInterval=wt(Fe,this.tickAmount?Ee/Math.max(this.tickAmount-1,1):void 0,u?1:Ee*ve/Math.max(this.len,ve)):this.tickInterval=1,w&&!i){let ct=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(lt){lt.forceCrop=lt.forceCropping?.(),lt.processData(ct)}),rr(this,"postProcessData",{hasExtremesChanged:ct})}this.setAxisTranslation(),rr(this,"initialAxisTranslation"),this.pointRange&&!Fe&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let nt=wt(N.minTickInterval,v&&!this.series.some(ct=>!ct.sorted)?this.closestPointRange:0);!Fe&&nt&&this.tickInterval<nt&&(this.tickInterval=nt),v||A||Fe||(this.tickInterval=wl(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let i=this.options,u=i.tickPositions,h=i.tickPositioner,m=this.getMinorTickInterval(),g=!this.isPanning,v=g&&i.startOnTick,w=g&&i.endOnTick,A=[],N;if(this.tickmarkOffset=this.categories&&i.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&It(this.min)&&!this.tickAmount&&(this.min%1==0||i.allowDecimals!==!1),u)A=u.slice();else if(mt(this.min)&&mt(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))A=[this.min,this.max],Mn(19,!1,this.chart);else if(this.dateTime)A=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,i.units),this.min,this.max,i.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)A=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let B=this.tickInterval,j=B;for(;j<=2*B&&(A=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&A.length>this.tickAmount);)this.tickInterval=wl(this,j*=1.1)}A.length>this.len&&(A=[A[0],A[A.length-1]])[0]===A[1]&&(A.length=1),h&&(this.tickPositions=A,(N=h.apply(this,[this.min,this.max]))&&(A=N))}this.tickPositions=A,this.minorTickInterval=m==="auto"&&this.tickInterval?this.tickInterval/i.minorTicksPerMajor:m,this.paddedTicks=A.slice(0),this.trimTicks(A,v,w),!this.isLinked&&mt(this.min)&&mt(this.max)&&(this.single&&A.length<2&&!this.categories&&!this.series.some(B=>B.is("heatmap")&&B.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),u||N||this.adjustTickAmount()),rr(this,"afterSetTickPositions")}trimTicks(i,u,h){let m=i[0],g=i[i.length-1],v=!this.isOrdinal&&this.minPointOffset||0;if(rr(this,"trimTicks"),!this.isLinked||!this.grid){if(u&&m!==-1/0)this.min=m;else for(;this.min-v>i[0];)i.shift();if(h)this.max=g;else for(;this.max+v<i[i.length-1];)i.pop();i.length===0&&It(m)&&!this.options.tickPositions&&i.push((g+m)/2)}}alignToOthers(){let i,u=this,h=u.chart,m=[this],g=u.options,v=h.options.chart,w=this.coll==="yAxis"&&v.alignThresholds,A=[];if(u.thresholdAlignment=void 0,(v.alignTicks!==!1&&g.alignTicks||w)&&g.startOnTick!==!1&&g.endOnTick!==!1&&!u.logarithmic){let N=j=>{let{horiz:I,options:U}=j;return[I?U.left:U.top,U.width,U.height,U.pane].join(",")},B=N(this);h[this.coll].forEach(function(j){let{series:I}=j;I.length&&I.some(U=>U.visible)&&j!==u&&N(j)===B&&(i=!0,m.push(j))})}if(i&&w){m.forEach(B=>{let j=B.getThresholdAlignment(u);mt(j)&&A.push(j)});let N=A.length>1?A.reduce((B,j)=>B+=j,0)/A.length:void 0;m.forEach(B=>{B.thresholdAlignment=N})}return i}getThresholdAlignment(i){if((!mt(this.dataMin)||this!==i&&this.series.some(u=>u.isDirty||u.isDirtyData||u.xAxis?.isDirty))&&this.getSeriesExtremes(),mt(this.threshold)){let u=bl((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(u=1-u),u}}getTickAmount(){let i=this.options,u=i.tickPixelInterval,h=i.tickAmount;It(i.tickInterval)||h||!(this.len<u)||this.isRadial||this.logarithmic||!i.startOnTick||!i.endOnTick||(h=2),!h&&this.alignToOthers()&&(h=Math.ceil(this.len/u)+1),h<4&&(this.finalTickAmt=h,h=5),this.tickAmount=h}adjustTickAmount(){let i=this,{finalTickAmt:u,max:h,min:m,options:g,tickPositions:v,tickAmount:w,thresholdAlignment:A}=i,N=v?.length,B=wt(i.threshold,i.softThreshold?0:null),j,I,U=i.tickInterval,q,ee=()=>v.push(js(v[v.length-1]+U)),G=()=>v.unshift(js(v[0]-U));if(mt(A)&&(q=A===0?0:A===1?w-1:Math.round(bl(A*(w-1),1,w-2)),g.reversed&&(q=w-1-q)),i.hasData()&&mt(m)&&mt(h)){let K=()=>{i.transA*=(N-1)/(w-1),i.min=g.startOnTick?v[0]:Math.min(m,v[0]),i.max=g.endOnTick?v[v.length-1]:Math.max(h,v[v.length-1])};if(mt(q)&&mt(i.threshold)){for(;v[q]!==B||v.length!==w||v[0]>m||v[v.length-1]<h;){for(v.length=0,v.push(i.threshold);v.length<w;)v[q]===void 0||v[q]>i.threshold?G():ee();if(U>8*i.tickInterval)break;U*=2}K()}else if(N<w){for(;v.length<w;)v.length%2||m===B?ee():G();K()}if(It(u)){for(I=j=v.length;I--;)(u===3&&I%2==1||u<=2&&I>0&&I<j-1)&&v.splice(I,1);i.finalTickAmt=void 0}}}setScale(){let{coll:i,stacking:u}=this,h=!1,m=!1;this.series.forEach(v=>{h=h||v.isDirtyData||v.isDirty,m=m||v.xAxis?.isDirty||!1}),this.setAxisSize();let g=this.len!==this.old?.len;g||h||m||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(u&&i==="yAxis"&&u.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),u&&i==="xAxis"&&u.buildStacks(),this.isDirty||(this.isDirty=g||this.min!==this.old?.min||this.max!==this.old?.max)):u&&u.cleanStacks(),h&&delete this.allExtremes,rr(this,"afterSetScale")}setExtremes(i,u,h=!0,m,g){let v=this.chart;this.series.forEach(w=>{delete w.kdTree}),i=v.time.parse(i),u=v.time.parse(u),rr(this,"setExtremes",g=hn(g,{min:i,max:u}),w=>{this.userMin=w.min,this.userMax=w.max,this.eventArgs=w,h&&v.redraw(m)})}setAxisSize(){let i=this.chart,u=this.options,h=u.offsets||[0,0,0,0],m=this.horiz,g=this.width=Math.round(Eo(wt(u.width,i.plotWidth-h[3]+h[1]),i.plotWidth)),v=this.height=Math.round(Eo(wt(u.height,i.plotHeight-h[0]+h[2]),i.plotHeight)),w=this.top=Math.round(Eo(wt(u.top,i.plotTop+h[0]),i.plotHeight,i.plotTop)),A=this.left=Math.round(Eo(wt(u.left,i.plotLeft+h[3]),i.plotWidth,i.plotLeft));this.bottom=i.chartHeight-v-w,this.right=i.chartWidth-g-A,this.len=Math.max(m?g:v,0),this.pos=m?A:w}getExtremes(){let i=this.logarithmic;return{min:i?js(i.lin2log(this.min)):this.min,max:i?js(i.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(i){let u=this.logarithmic,h=u?u.lin2log(this.min):this.min,m=u?u.lin2log(this.max):this.max;return i===null||i===-1/0?i=h:i===1/0?i=m:h>i?i=h:m<i&&(i=m),this.translate(i,0,1,0,1)}autoLabelAlign(i){let u=((i-90*this.side)%360+360)%360,h={align:"center"};return rr(this,"autoLabelAlign",h,function(m){u>15&&u<165?m.align="right":u>195&&u<345&&(m.align="left")}),h.align}tickSize(i){let u=this.options,h=wt(u[i==="tick"?"tickWidth":"minorTickWidth"],i==="tick"&&this.isXAxis&&!this.categories?1:0),m=u[i==="tick"?"tickLength":"minorTickLength"],g;h&&m&&(u[i+"Position"]==="inside"&&(m=-m),g=[m,h]);let v={tickSize:g};return rr(this,"afterTickSize",v),v.tickSize}labelMetrics(){let i=this.chart.renderer,u=this.ticks,h=u[Object.keys(u)[0]]||{};return this.chart.renderer.fontMetrics(h.label||h.movedLabel||i.box)}unsquish(){let i=this.options.labels,u=i.padding||0,h=this.horiz,m=this.tickInterval,g=this.len/((+!!this.categories+this.max-this.min)/m),v=i.rotation,w=js(.8*this.labelMetrics().h),A=Math.max(this.max-this.min,0),N=function(q){let ee=(q+2*u)/(g||1);return(ee=ee>1?Math.ceil(ee):1)*m>A&&q!==1/0&&g!==1/0&&A&&(ee=Math.ceil(A/m)),js(ee*m)},B=m,j,I=Number.MAX_VALUE,U;if(h){if(!i.staggerLines&&(mt(v)?U=[v]:g<i.autoRotationLimit&&(U=i.autoRotation)),U){let q,ee;for(let G of U)(G===v||G&&G>=-90&&G<=90)&&(ee=(q=N(Math.abs(w/Math.sin(Nn*G))))+Math.abs(G/360))<I&&(I=ee,j=G,B=q)}}else B=N(.75*w);return this.autoRotation=U,this.labelRotation=wt(j,mt(v)?v:0),i.step?m:B}getSlotWidth(i){let u=this.chart,h=this.horiz,m=this.options.labels,g=Math.max(this.tickPositions.length-!this.categories,1),v=u.margin[3];if(i&&mt(i.slotWidth))return i.slotWidth;if(h&&m.step<2&&!this.isRadial)return m.rotation?0:(this.staggerLines||1)*this.len/g;if(!h){let w=m.style.width;if(w!==void 0)return parseInt(String(w),10);if(!this.opposite&&v)return v-u.spacing[3]}return .33*u.chartWidth}renderUnsquish(){let i=this.chart,u=i.renderer,h=this.tickPositions,m=this.ticks,g=this.options.labels,v=g.style,w=this.horiz,A=this.getSlotWidth(),N=Math.max(1,Math.round(A-(w?2*(g.padding||0):g.distance||0))),B={},j=this.labelMetrics(),I=v.lineClamp,U,q=I??(Math.floor(this.len/(h.length*j.h))||1),ee=0;bs(g.rotation)||(B.rotation=g.rotation||0),h.forEach(function(G){let K=m[G];K.movedLabel&&K.replaceMovedLabel();let de=K.label?.textPxLength||0;de>ee&&(ee=de)}),this.maxLabelLength=ee,this.autoRotation?ee>N&&ee>j.h?B.rotation=this.labelRotation:this.labelRotation=0:A&&(U=N),B.rotation&&(U=ee>.5*i.chartHeight?.33*i.chartHeight:ee,I||(q=1)),this.labelAlign=g.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(B.align=this.labelAlign),h.forEach(function(G){let K=m[G],de=K?.label,me=v.width,ve={};de&&(de.attr(B),K.shortenLabel?K.shortenLabel():U&&!me&&v.whiteSpace!=="nowrap"&&(U<(de.textPxLength||0)||de.element.tagName==="SPAN")?de.css(hn(ve,{width:`${U}px`,lineClamp:q})):!de.styles.width||ve.width||me||de.css({width:"auto"}),K.rotation=B.rotation)},this),this.tickRotCorr=u.rotCorr(j.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(i){return i.hasData()})||this.options.showEmpty&&It(this.min)&&It(this.max)}addTitle(i){let u,h=this.chart.renderer,m=this.horiz,g=this.opposite,v=this.options.title,w=this.chart.styledMode;this.axisTitle||((u=v.textAlign)||(u=(m?{low:"left",middle:"center",high:"right"}:{low:g?"right":"left",middle:"center",high:g?"left":"right"})[v.align]),this.axisTitle=h.text(v.text||"",0,0,v.useHTML).attr({zIndex:7,rotation:v.rotation||0,align:u}).addClass("highcharts-axis-title"),w||this.axisTitle.css(wr(v.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),w||v.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[i?"show":"hide"](i)}generateTick(i){let u=this.ticks;u[i]?u[i].addLabel():u[i]=new Pi(this,i)}createGroups(){let{axisParent:i,chart:u,coll:h,options:m}=this,g=u.renderer,v=(w,A,N)=>g.g(w).attr({zIndex:N}).addClass(`highcharts-${h.toLowerCase()}${A} `+(this.isRadial?`highcharts-radial-axis${A} `:"")+(m.className||"")).add(i);this.axisGroup||(this.gridGroup=v("grid","-grid",m.gridZIndex),this.axisGroup=v("axis","",m.zIndex),this.labelGroup=v("axis-labels","-labels",m.labels.zIndex))}getOffset(){let i=this,{chart:u,horiz:h,options:m,side:g,ticks:v,tickPositions:w,coll:A}=i,N=u.inverted&&!i.isZAxis?[1,0,3,2][g]:g,B=i.hasData(),j=m.title,I=m.labels,U=mt(m.crossing),q=u.axisOffset,ee=u.clipOffset,G=[-1,1,1,-1][g],K,de=0,me,ve=0,be=0,Ae,Ee;if(i.showAxis=K=B||m.showEmpty,i.staggerLines=i.horiz&&I.staggerLines||void 0,i.createGroups(),B||i.isLinked?(w.forEach(function(Ce){i.generateTick(Ce)}),i.renderUnsquish(),i.reserveSpaceDefault=g===0||g===2||{1:"left",3:"right"}[g]===i.labelAlign,wt(I.reserveSpace,!U&&null,i.labelAlign==="center"||null,i.reserveSpaceDefault)&&w.forEach(function(Ce){be=Math.max(v[Ce].getLabelSize(),be)}),i.staggerLines&&(be*=i.staggerLines),i.labelOffset=be*(i.opposite?-1:1)):Kn(v,function(Ce,Fe){Ce.destroy(),delete v[Fe]}),j?.text&&j.enabled!==!1&&(i.addTitle(K),K&&!U&&j.reserveSpace!==!1&&(i.titleOffset=de=i.axisTitle.getBBox()[h?"height":"width"],ve=It(me=j.offset)?0:wt(j.margin,h?5:10))),i.renderLine(),i.offset=G*wt(m.offset,q[g]?q[g]+(m.margin||0):0),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},Ee=g===0?-i.labelMetrics().h:g===2?i.tickRotCorr.y:0,Ae=Math.abs(be)+ve,be&&(Ae-=Ee,Ae+=G*(h?wt(I.y,i.tickRotCorr.y+G*I.distance):wt(I.x,G*I.distance))),i.axisTitleMargin=wt(me,Ae),i.getMaxLabelDimensions&&(i.maxLabelDimensions=i.getMaxLabelDimensions(v,w)),A!=="colorAxis"&&ee){let Ce=this.tickSize("tick");q[g]=Math.max(q[g],(i.axisTitleMargin||0)+de+G*i.offset,Ae,w?.length&&Ce?Ce[0]+G*i.offset:0);let Fe=!i.axisLine||m.offset?0:i.axisLine.strokeWidth()/2;ee[N]=Math.max(ee[N],Fe)}rr(this,"afterGetOffset")}getLinePath(i){let u=this.chart,h=this.opposite,m=this.offset,g=this.horiz,v=this.left+(h?this.width:0)+m,w=u.chartHeight-this.bottom-(h?this.height:0)+m;return h&&(i*=-1),u.renderer.crispLine([["M",g?this.left:v,g?w:this.top],["L",g?u.chartWidth-this.right:v,g?w:u.chartHeight-this.bottom]],i)}renderLine(){!this.axisLine&&(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(i){let u=this.horiz,h=this.left,m=this.top,g=this.len,v=this.options.title,w=u?h:m,A=this.opposite,N=this.offset,B=v.x,j=v.y,I=this.chart.renderer.fontMetrics(i),U=i?Math.max(i.getBBox(!1,0).height-I.h-1,0):0,q={low:w+(u?0:g),middle:w+g/2,high:w+(u?g:0)}[v.align],ee=(u?m+this.height:h)+(u?1:-1)*(A?-1:1)*(this.axisTitleMargin||0)+[-U,U,I.f,-U][this.side],G={x:u?q+B:ee+(A?this.width:0)+N+B,y:u?ee+j-(A?this.height:0)+N:q+j};return rr(this,"afterGetTitlePosition",{titlePosition:G}),G}renderMinorTick(i,u){let h=this.minorTicks;h[i]||(h[i]=new Pi(this,i,"minor")),u&&h[i].isNew&&h[i].render(null,!0),h[i].render(null,!1,1)}renderTick(i,u,h){let m=this.isLinked,g=this.ticks;(!m||i>=this.min&&i<=this.max||this.grid?.isColumn)&&(g[i]||(g[i]=new Pi(this,i)),h&&g[i].isNew&&g[i].render(u,!0,-1),g[i].render(u))}render(){let i,u,h=this,m=h.chart,g=h.logarithmic,v=m.renderer,w=h.options,A=h.isLinked,N=h.tickPositions,B=h.axisTitle,j=h.ticks,I=h.minorTicks,U=h.alternateBands,q=w.stackLabels,ee=w.alternateGridColor,G=w.crossing,K=h.tickmarkOffset,de=h.axisLine,me=h.showAxis,ve=yl(v.globalAnimation);if(h.labelEdge.length=0,h.overlap=!1,[j,I,U].forEach(function(be){Kn(be,function(Ae){Ae.isActive=!1})}),mt(G)){let be=this.isXAxis?m.yAxis[0]:m.xAxis[0],Ae=[1,-1,-1,1][this.side];if(be){let Ee=be.toPixels(G,!0);h.horiz&&(Ee=be.len-Ee),h.offset=Ae*Ee}}if(h.hasData()||A){let be=h.chart.hasRendered&&h.old&&mt(h.old.min);h.minorTickInterval&&!h.categories&&h.getMinorTickPositions().forEach(function(Ae){h.renderMinorTick(Ae,be)}),N.length&&(N.forEach(function(Ae,Ee){h.renderTick(Ae,Ee,be)}),K&&(h.min===0||h.single)&&(j[-1]||(j[-1]=new Pi(h,-1,null,!0)),j[-1].render(-1))),ee&&N.forEach(function(Ae,Ee){u=N[Ee+1]!==void 0?N[Ee+1]+K:h.max-K,Ee%2==0&&Ae<h.max&&u<=h.max+(m.polar?-K:K)&&(U[Ae]||(U[Ae]=new re.PlotLineOrBand(h,{})),i=Ae+K,U[Ae].options={from:g?g.lin2log(i):i,to:g?g.lin2log(u):u,color:ee,className:"highcharts-alternate-grid"},U[Ae].render(),U[Ae].isActive=!0)}),h._addedPlotLB||(h._addedPlotLB=!0,(w.plotLines||[]).concat(w.plotBands||[]).forEach(function(Ae){h.addPlotBandOrLine(Ae)}))}[j,I,U].forEach(function(be){let Ae=[],Ee=ve.duration;Kn(be,function(Ce,Fe){Ce.isActive||(Ce.render(Fe,!1,0),Ce.isActive=!1,Ae.push(Fe))}),W0(function(){let Ce=Ae.length;for(;Ce--;)be[Ae[Ce]]&&!be[Ae[Ce]].isActive&&(be[Ae[Ce]].destroy(),delete be[Ae[Ce]])},be!==U&&m.hasRendered&&Ee?Ee:0)}),de&&(de[de.isPlaced?"animate":"attr"]({d:this.getLinePath(de.strokeWidth())}),de.isPlaced=!0,de[me?"show":"hide"](me)),B&&me&&(B[B.isNew?"attr":"animate"](h.getTitlePosition(B)),B.isNew=!1),q?.enabled&&h.stacking&&h.stacking.renderStackTotals(),h.old={len:h.len,max:h.max,min:h.min,transA:h.transA,userMax:h.userMax,userMin:h.userMin},h.isDirty=!1,rr(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(i){i.render()})),this.series.forEach(function(i){i.isDirty=!0})}getKeepProps(){return this.keepProps||Rn.keepProps}destroy(i){let u=this,h=u.plotLinesAndBands,m=this.eventOptions;if(rr(this,"destroy",{keepEvents:i}),i||ka(u),[u.ticks,u.minorTicks,u.alternateBands].forEach(function(g){jn(g)}),h){let g=h.length;for(;g--;)h[g].destroy()}for(let g in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(v){u[v]&&(u[v]=u[v].destroy())}),u.plotLinesAndBandsGroups)u.plotLinesAndBandsGroups[g]=u.plotLinesAndBandsGroups[g].destroy();Kn(u,function(g,v){u.getKeepProps().indexOf(v)===-1&&delete u[v]}),this.eventOptions=m}drawCrosshair(i,u){let h=this.crosshair,m=h?.snap??!0,g=this.chart,v,w,A,N=this.cross,B;if(rr(this,"drawCrosshair",{e:i,point:u}),i||(i=this.cross?.e),h&&(It(u)||!m)!==!1){if(m?It(u)&&(w=wt(this.coll!=="colorAxis"?u.crosshairPos:null,this.isXAxis?u.plotX:this.len-u.plotY)):w=i&&(this.horiz?i.chartX-this.pos:this.len-i.chartY+this.pos),It(w)&&(B={value:u&&(this.isXAxis?u.x:wt(u.stackY,u.y)),translatedValue:w},g.polar&&hn(B,{isCrosshair:!0,chartX:i?.chartX,chartY:i?.chartY,point:u}),v=this.getPlotLinePath(B)||null),!It(v))return void this.hideCrosshair();A=this.categories&&!this.isRadial,N||(this.cross=N=g.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(A?"category ":"thin ")+(h.className||"")).attr({zIndex:wt(h.zIndex,2)}).add(),!g.styledMode&&(N.attr({stroke:h.color||(A?Nr.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":wt(h.width,1)}).css({"pointer-events":"none"}),h.dashStyle&&N.attr({dashstyle:h.dashStyle}))),N.show().attr({d:v}),A&&!h.width&&N.attr({"stroke-width":this.transA}),this.cross.e=i}else this.hideCrosshair();rr(this,"afterDrawCrosshair",{e:i,point:u})}hideCrosshair(){this.cross&&this.cross.hide(),rr(this,"afterHideCrosshair")}update(i,u){let h=this.chart;i=wr(this.userOptions,i),this.destroy(!0),this.init(h,i),h.isDirtyBox=!0,wt(u,!0)&&h.redraw()}remove(i){let u=this.chart,h=this.coll,m=this.series,g=m.length;for(;g--;)m[g]&&m[g].remove(!1);Fi(u.axes,this),Fi(u[h]||[],this),u.orderItems(h),this.destroy(),u.isDirtyBox=!0,wt(i,!0)&&u.redraw()}setTitle(i,u){this.update({title:i},u)}setCategories(i,u){this.update({categories:i},u)}}Rn.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"];let{addEvent:nf,getMagnitude:Lc,normalizeTickInterval:af,timeUnits:yi}=Me;(function(k){function i(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function u(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new h(this))}k.compose=function(m){return m.keepProps.includes("dateTime")||(m.keepProps.push("dateTime"),m.prototype.getTimeTicks=i,nf(m,"afterSetType",u)),m};class h{constructor(g){this.axis=g}normalizeTimeTickInterval(g,v){let w=v||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],A=w[w.length-1],N=yi[A[0]],B=A[1],j;for(j=0;j<w.length&&(N=yi[(A=w[j])[0]],B=A[1],!w[j+1]||!(g<=(N*B[B.length-1]+yi[w[j+1][0]])/2));j++);N===yi.year&&g<5*N&&(B=[1,2,5]);let I=af(g/N,B,A[0]==="year"?Math.max(Lc(g/N),1):1);return{unitRange:N,count:I,unitName:A[0]}}getXDateFormat(g,v){let{axis:w}=this,A=w.chart.time;return w.closestPointRange?A.getDateFormat(w.closestPointRange,g,w.options.startOfWeek,v)||A.resolveDTLFormat(v.year).main:A.resolveDTLFormat(v.day).main}}k.Additions=h})(se||(se={}));let zi=se,{addEvent:Ui,normalizeTickInterval:$i,pick:lf}=Me;(function(k){function i(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new h(this))}function u(){let m=this.logarithmic;m&&(this.lin2val=function(g){return m.lin2log(g)},this.val2lin=function(g){return m.log2lin(g)})}k.compose=function(m){return m.keepProps.includes("logarithmic")||(m.keepProps.push("logarithmic"),Ui(m,"afterSetType",i),Ui(m,"afterInit",u)),m};class h{constructor(g){this.axis=g}getLogTickPositions(g,v,w,A){let N=this.axis,B=N.len,j=N.options,I=[];if(A||(this.minorAutoInterval=void 0),g>=.5)g=Math.round(g),I=N.getLinearTickPositions(g,v,w);else if(g>=.08){let U,q,ee,G,K,de,me,ve=Math.floor(v);for(U=g>.3?[1,2,4]:g>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],q=ve;q<w+1&&!me;q++)for(ee=0,G=U.length;ee<G&&!me;ee++)(K=this.log2lin(this.lin2log(q)*U[ee]))>v&&(!A||de<=w)&&de!==void 0&&I.push(de),de>w&&(me=!0),de=K}else{let U=this.lin2log(v),q=this.lin2log(w),ee=A?N.getMinorTickInterval():j.tickInterval,G=j.tickPixelInterval/(A?5:1),K=A?B/N.tickPositions.length:B;g=$i(g=lf(ee==="auto"?null:ee,this.minorAutoInterval,(q-U)*G/(K||1))),I=N.getLinearTickPositions(g,U,q).map(this.log2lin),A||(this.minorAutoInterval=g/5)}return A||(N.tickInterval=g),I}lin2log(g){return Math.pow(10,g)}log2lin(g){return Math.log(g)/Math.LN10}}k.Additions=h})(L||(L={}));let of=L,{erase:Co,extend:xd,isNumber:Ta}=Me;(function(k){let i;function u(N){return this.addPlotBandOrLine(N,"plotBands")}function h(N,B){let j=this.userOptions,I=new i(this,N);if(this.visible&&(I=I.render()),I){if(this._addedPlotLB||(this._addedPlotLB=!0,(j.plotLines||[]).concat(j.plotBands||[]).forEach(U=>{this.addPlotBandOrLine(U)})),B){let U=j[B]||[];U.push(N),j[B]=U}this.plotLinesAndBands.push(I)}return I}function m(N){return this.addPlotBandOrLine(N,"plotLines")}function g(N,B,j){j=j||this.options;let I=this.getPlotLinePath({value:B,force:!0,acrossPanes:j.acrossPanes}),U=[],q=this.horiz,ee=!Ta(this.min)||!Ta(this.max)||N<this.min&&B<this.min||N>this.max&&B>this.max,G=this.getPlotLinePath({value:N,force:!0,acrossPanes:j.acrossPanes}),K,de=1,me;if(G&&I)for(ee&&(me=G.toString()===I.toString(),de=0),K=0;K<G.length;K+=2){let ve=G[K],be=G[K+1],Ae=I[K],Ee=I[K+1];(ve[0]==="M"||ve[0]==="L")&&(be[0]==="M"||be[0]==="L")&&(Ae[0]==="M"||Ae[0]==="L")&&(Ee[0]==="M"||Ee[0]==="L")&&(q&&Ae[1]===ve[1]?(Ae[1]+=de,Ee[1]+=de):q||Ae[2]!==ve[2]||(Ae[2]+=de,Ee[2]+=de),U.push(["M",ve[1],ve[2]],["L",be[1],be[2]],["L",Ee[1],Ee[2]],["L",Ae[1],Ae[2]],["Z"])),U.isFlat=me}return U}function v(N){this.removePlotBandOrLine(N)}function w(N){let B=this.plotLinesAndBands,j=this.options,I=this.userOptions;if(B){let U=B.length;for(;U--;)B[U].id===N&&B[U].destroy();[j.plotLines||[],I.plotLines||[],j.plotBands||[],I.plotBands||[]].forEach(function(q){for(U=q.length;U--;)q[U]?.id===N&&Co(q,q[U])})}}function A(N){this.removePlotBandOrLine(N)}k.compose=function(N,B){let j=B.prototype;return j.addPlotBand||(i=N,xd(j,{addPlotBand:u,addPlotLine:m,addPlotBandOrLine:h,getPlotBandPath:g,removePlotBand:v,removePlotLine:A,removePlotBandOrLine:w})),B}})(W||(W={}));let Ms=W,{addEvent:gd,arrayMax:cf,arrayMin:Q0,defined:vi,destroyObjectProperties:tv,erase:ls,fireEvent:uf,merge:ko,objectEach:Ic,pick:df}=Me;class Vi{static compose(i,u){return gd(i,"afterInit",function(){this.labelCollectors.push(()=>{let h=[];for(let m of this.axes)for(let{label:g,options:v}of m.plotLinesAndBands)g&&!v?.label?.allowOverlap&&h.push(g);return h})}),Ms.compose(Vi,u)}constructor(i,u){this.axis=i,this.options=u,this.id=u.id}render(){uf(this,"render");let{axis:i,options:u}=this,{horiz:h,logarithmic:m}=i,{color:g,events:v,zIndex:w=0}=u,{renderer:A,time:N}=i.chart,B={},j=N.parse(u.to),I=N.parse(u.from),U=N.parse(u.value),q=u.borderWidth,ee=u.label,{label:G,svgElem:K}=this,de=[],me,ve=vi(I)&&vi(j),be=vi(U),Ae=!K,Ee={class:"highcharts-plot-"+(ve?"band ":"line ")+(u.className||"")},Ce=ve?"bands":"lines";if(!i.chart.styledMode&&(be?(Ee.stroke=g||"#999999",Ee["stroke-width"]=df(u.width,1),u.dashStyle&&(Ee.dashstyle=u.dashStyle)):ve&&(Ee.fill=g||"#e6e9ff",q&&(Ee.stroke=u.borderColor,Ee["stroke-width"]=q))),B.zIndex=w,Ce+="-"+w,(me=i.plotLinesAndBandsGroups[Ce])||(i.plotLinesAndBandsGroups[Ce]=me=A.g("plot-"+Ce).attr(B).add()),K||(this.svgElem=K=A.path().attr(Ee).add(me)),vi(U))de=i.getPlotLinePath({value:m?.log2lin(U)??U,lineWidth:K.strokeWidth(),acrossPanes:u.acrossPanes});else{if(!(vi(I)&&vi(j)))return;de=i.getPlotBandPath(m?.log2lin(I)??I,m?.log2lin(j)??j,u)}return!this.eventsAdded&&v&&(Ic(v,(Fe,$e)=>{K?.on($e,Pe=>{v[$e].apply(this,[Pe])})}),this.eventsAdded=!0),(Ae||!K.d)&&de?.length?K.attr({d:de}):K&&(de?(K.show(),K.animate({d:de})):K.d&&(K.hide(),G&&(this.label=G=G.destroy()))),ee&&(vi(ee.text)||vi(ee.formatter))&&de?.length&&i.width>0&&i.height>0&&!de.isFlat?(ee=ko({align:h&&ve?"center":void 0,x:h?!ve&&4:10,verticalAlign:!h&&ve?"middle":void 0,y:h?ve?16:10:ve?6:-4,rotation:h&&!ve?90:0,...ve?{inside:!0}:{}},ee),this.renderLabel(ee,de,ve,w)):G&&G.hide(),this}renderLabel(i,u,h,m){let g=this.axis,v=g.chart.renderer,w=i.inside,A=this.label;A||(this.label=A=v.text(this.getLabelText(i),0,0,i.useHTML).attr({align:i.textAlign||i.align,rotation:i.rotation,class:"highcharts-plot-"+(h?"band":"line")+"-label "+(i.className||""),zIndex:m}),g.chart.styledMode||A.css(ko({color:g.chart.options.title?.style?.color,fontSize:"0.8em",textOverflow:h&&!w?"":"ellipsis"},i.style)),A.add());let N=u.xBounds||[u[0][1],u[1][1],h?u[2][1]:u[0][1]],B=u.yBounds||[u[0][2],u[1][2],h?u[2][2]:u[0][2]],j=Q0(N),I=Q0(B),U=cf(N)-j;A.align(i,!1,{x:j,y:I,width:U,height:cf(B)-I}),A.alignAttr.y-=v.fontMetrics(A).b,(!A.alignValue||A.alignValue==="left"||vi(w))&&A.css({width:(i.style?.width||(h&&w?U:A.rotation===90?g.height-(A.alignAttr.y-g.top):(i.clip?g.width:g.chart.chartWidth)-(A.alignAttr.x-g.left)))+"px"}),A.show(!0)}getLabelText(i){return vi(i.formatter)?i.formatter.call(this):i.text}destroy(){ls(this.axis.plotLinesAndBands,this),delete this.axis,tv(this)}}let{animObject:To}=vs,{format:J0}=Gs,{composed:K0,dateFormats:rv,doc:hf,isSafari:Sl}=re,{distribute:ff}=wa,{addEvent:Pc,clamp:Al,css:El,clearTimeout:No,discardElement:yd,extend:vd,fireEvent:bd,getAlignFactor:pf,isArray:Cl,isNumber:kl,isObject:Z0,isString:wd,merge:jo,pick:bi,pushUnique:Sd,splat:Tl,syncTimeout:Ad}=Me;class Ed{constructor(i,u,h){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=i,this.init(i,u),this.pointer=h}bodyFormatter(i){return i.map(u=>{let h=u.series.tooltipOptions,m=u.formatPrefix||"point";return(h[m+"Formatter"]||u.tooltipFormatter).call(u,h[m+"Format"]||"")})}cleanSplit(i){this.chart.series.forEach(function(u){let h=u?.tt;h&&(!h.isActive||i?u.tt=h.destroy():h.isActive=!1)})}defaultFormatter(i){let u,h=this.points||Tl(this);return(u=(u=[i.headerFooterFormatter(h[0])]).concat(i.bodyFormatter(h))).push(i.headerFooterFormatter(h[0],!0)),u}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),yd(this.container)),No(this.hideTimer)}getAnchor(i,u){let h,{chart:m,pointer:g}=this,v=m.inverted,w=m.plotTop,A=m.plotLeft;if(i=Tl(i),i[0].series?.yAxis&&!i[0].series.yAxis.options.reversedStacks&&(i=i.slice().reverse()),this.followPointer&&u)u.chartX===void 0&&(u=g.normalize(u)),h=[u.chartX-A,u.chartY-w];else if(i[0].tooltipPos)h=i[0].tooltipPos;else{let B=0,j=0;i.forEach(function(I){let U=I.pos(!0);U&&(B+=U[0],j+=U[1])}),B/=i.length,j/=i.length,this.shared&&i.length>1&&u&&(v?B=u.chartX:j=u.chartY),h=[B-A,j-w]}let N={point:i[0],ret:h};return bd(this,"getAnchor",N),N.ret.map(Math.round)}getClassName(i,u,h){let m=this.options,g=i.series,v=g.options;return[m.className,"highcharts-label",h&&"highcharts-tooltip-header",u?"highcharts-tooltip-box":"highcharts-tooltip",!h&&"highcharts-color-"+bi(i.colorIndex,g.colorIndex),v?.className].filter(wd).join(" ")}getLabel({anchorX:i,anchorY:u}={anchorX:0,anchorY:0}){let h=this,m=this.chart.styledMode,g=this.options,v=this.split&&this.allowShared,w=this.container,A=this.chart.renderer;if(this.label){let N=!this.label.hasClass("highcharts-label");(!v&&N||v&&!N)&&this.destroy()}if(!this.label){if(this.outside){let N=this.chart,B=N.options.chart.style,j=fi.getRendererType();this.container=w=re.doc.createElement("div"),w.className="highcharts-tooltip-container "+(N.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),El(w,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(B?.zIndex||0)+3)}),this.renderer=A=new j(w,0,0,B,void 0,void 0,A.styledMode)}if(v?this.label=A.g("tooltip"):(this.label=A.label("",i,u,g.shape||"callout",void 0,void 0,g.useHTML,void 0,"tooltip").attr({padding:g.padding,r:g.borderRadius}),m||this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth||0}).css(g.style).css({pointerEvents:g.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),h.outside){let N=this.label;[N.xSetter,N.ySetter].forEach((B,j)=>{N[j?"ySetter":"xSetter"]=I=>{B.call(N,h.distance),N[j?"y":"x"]=I,w&&(w.style[j?"top":"left"]=`${I}px`)}})}this.label.attr({zIndex:8}).shadow(g.shadow??!g.fixed).add()}return w&&!w.parentElement&&re.doc.body.appendChild(w),this.label}getPlayingField(){let{body:i,documentElement:u}=hf,{chart:h,distance:m,outside:g}=this;return{width:g?Math.max(i.scrollWidth,u.scrollWidth,i.offsetWidth,u.offsetWidth,u.clientWidth)-2*m-2:h.chartWidth,height:g?Math.max(i.scrollHeight,u.scrollHeight,i.offsetHeight,u.offsetHeight,u.clientHeight):h.chartHeight}}getPosition(i,u,h){let{distance:m,chart:g,outside:v,pointer:w}=this,{inverted:A,plotLeft:N,plotTop:B,polar:j}=g,{plotX:I=0,plotY:U=0}=h,q={},ee=A&&h.h||0,{height:G,width:K}=this.getPlayingField(),de=w.getChartPosition(),me=rt=>{let nt=rt==="x";return[rt,nt?K:G,nt?i:u].concat(v?[nt?i*de.scaleX:u*de.scaleY,nt?de.left-m+(I+N)*de.scaleX:de.top-m+(U+B)*de.scaleY,0,nt?K:G]:[nt?i:u,nt?I+N:U+B,nt?N:B,nt?N+g.plotWidth:B+g.plotHeight])},ve=me("y"),be=me("x"),Ae,Ee=!!h.negative;!j&&g.hoverSeries?.yAxis?.reversed&&(Ee=!Ee);let Ce=!this.followPointer&&bi(h.ttBelow,!j&&!A===Ee),Fe=function(rt,nt,ct,lt,at,dr,hr){let Mr=v?rt==="y"?m*de.scaleY:m*de.scaleX:m,yt=(ct-lt)/2,St=lt<at-m,Vt=at+m+lt<nt,Mt=at-Mr-ct+yt,Wt=at+Mr-yt;if(Ce&&Vt)q[rt]=Wt;else if(!Ce&&St)q[rt]=Mt;else if(St)q[rt]=Math.min(hr-lt,Mt-ee<0?Mt:Mt-ee);else{if(!Vt)return q[rt]=0,!1;q[rt]=Math.max(dr,Wt+ee+ct>nt?Wt:Wt+ee)}},$e=function(rt,nt,ct,lt,at){if(at<m||at>nt-m)return!1;at<ct/2?q[rt]=1:at>nt-lt/2?q[rt]=nt-lt-2:q[rt]=at-ct/2},Pe=function(rt){[ve,be]=[be,ve],Ae=rt},et=()=>{Fe.apply(0,ve)!==!1?$e.apply(0,be)!==!1||Ae||(Pe(!0),et()):Ae?q.x=q.y=0:(Pe(!0),et())};return(A&&!j||this.len>1)&&Pe(),et(),q}getFixedPosition(i,u,h){let m=h.series,{chart:g,options:v,split:w}=this,A=v.position,N=A.relativeTo,B=v.shared||m?.yAxis?.isRadial&&(N==="pane"||!N)?"plotBox":N,j=B==="chart"?g.renderer:g[B]||g.getClipBox(m,!0);return{x:j.x+(j.width-i)*pf(A.align)+A.x,y:j.y+(j.height-u)*pf(A.verticalAlign)+(!w&&A.y||0)}}hide(i){let u=this;No(this.hideTimer),i=bi(i,this.options.hideDelay),this.isHidden||(this.hideTimer=Ad(function(){let h=u.getLabel();u.getLabel().animate({opacity:0},{duration:i&&150,complete:()=>{h.hide(),u.container&&u.container.remove()}}),u.isHidden=!0},i))}init(i,u){this.chart=i,this.options=u,this.crosshairs=[],this.isHidden=!0,this.split=u.split&&!i.inverted&&!i.polar,this.shared=u.shared||this.split,this.outside=bi(u.outside,!!(i.scrollablePixelsX||i.scrollablePixelsY))}shouldStickOnContact(i){return!!(!this.followPointer&&this.options.stickOnContact&&(!i||this.pointer.inClass(i.target,"highcharts-tooltip")))}move(i,u,h,m){let{followPointer:g,options:v}=this,w=To(!g&&!this.isHidden&&!v.fixed&&v.animation),A=g||(this.len||0)>1,N={x:i,y:u};A?N.anchorX=N.anchorY=NaN:(N.anchorX=h,N.anchorY=m),w.step=()=>this.drawTracker(),this.getLabel().animate(N,w)}refresh(i,u){let{chart:h,options:m,pointer:g,shared:v}=this,w=Tl(i),A=w[0],N=m.format,B=m.formatter||this.defaultFormatter,j=h.styledMode,I=this.allowShared;if(!m.enabled||!A.series)return;No(this.hideTimer),this.allowShared=!(!Cl(i)&&i.series&&i.series.noSharedTooltip),I=I&&!this.allowShared,this.followPointer=!this.split&&A.series.tooltipOptions.followPointer;let U=this.getAnchor(i,u),q=U[0],ee=U[1];v&&this.allowShared&&(g.applyInactiveState(w),w.forEach(de=>de.setState("hover")),A.points=w),this.len=w.length;let G=wd(N)?J0(N,A,h):B.call(A,this);A.points=void 0;let K=A.series;if(this.distance=bi(K.tooltipOptions.distance,16),G===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(G,w);else{let de=q,me=ee;if(u&&g.isDirectTouch&&(de=u.chartX-h.plotLeft,me=u.chartY-h.plotTop),!(h.polar||K.options.clip===!1||w.some(ve=>g.isDirectTouch||ve.series.shouldShowTooltip(de,me))))return void this.hide();{let ve=this.getLabel(I&&this.tt||{});(!m.style.width||j)&&ve.css({width:(this.outside?this.getPlayingField():h.spacingBox).width+"px"}),ve.attr({class:this.getClassName(A),text:G&&G.join?G.join(""):G}),this.outside&&ve.attr({x:Al(ve.x||0,0,this.getPlayingField().width-(ve.width||0)-1)}),j||ve.attr({stroke:m.borderColor||A.color||K.color||"#666666"}),this.updatePosition({plotX:q,plotY:ee,negative:A.negative,ttBelow:A.ttBelow,series:K,h:U[2]||0})}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}bd(this,"refresh")}renderSplit(i,u){let h=this,{chart:m,chart:{chartWidth:g,chartHeight:v,plotHeight:w,plotLeft:A,plotTop:N,scrollablePixelsY:B=0,scrollablePixelsX:j,styledMode:I},distance:U,options:q,options:{fixed:ee,position:G,positioner:K},pointer:de}=h,{scrollLeft:me=0,scrollTop:ve=0}=m.scrollablePlotArea?.scrollingContainer||{},be=h.outside&&typeof j!="number"?hf.documentElement.getBoundingClientRect():{left:me,right:me+g},Ae=h.getLabel(),Ee=this.renderer||m.renderer,Ce=!!m.xAxis[0]?.opposite,{left:Fe,top:$e}=de.getChartPosition(),Pe=K||ee,et=N+ve,rt=0,nt=w-B,ct=function(yt,St,Vt,Mt=[0,0],Wt=!0){let Kt,or;if(Vt.isHeader)or=Ce?0:nt,Kt=Al(Mt[0]-yt/2,be.left,be.right-yt-(h.outside?Fe:0));else if(ee&&Vt){let Rr=h.getFixedPosition(yt,St,Vt);Kt=Rr.x,or=Rr.y-et}else or=Mt[1]-et,Kt=Al(Kt=Wt?Mt[0]-yt-U:Mt[0]+U,Wt?Kt:be.left,be.right);return{x:Kt,y:or}};wd(i)&&(i=[!1,i]);let lt=i.slice(0,u.length+1).reduce(function(yt,St,Vt){if(St!==!1&&St!==""){let Mt=u[Vt-1]||{isHeader:!0,plotX:u[0].plotX,plotY:w,series:{}},Wt=Mt.isHeader,Kt=Wt?h:Mt.series,or=Kt.tt=(function(Ps,As,ia){let xn=Ps,{isHeader:$l,series:gu}=As,ni=gu.tooltipOptions||q;if(!xn){let Zo={padding:ni.padding,r:ni.borderRadius};I||(Zo.fill=ni.backgroundColor,Zo["stroke-width"]=ni.borderWidth??(ee&&!$l?0:1)),xn=Ee.label("",0,0,ni[$l?"headerShape":"shape"]||(ee&&!$l?"rect":"callout"),void 0,void 0,ni.useHTML).addClass(h.getClassName(As,!0,$l)).attr(Zo).add(Ae)}return xn.isActive=!0,xn.attr({text:ia}),I||xn.css(ni.style).attr({stroke:ni.borderColor||As.color||gu.color||"#333333"}),xn})(Kt.tt,Mt,St.toString()),Rr=or.getBBox(),Xr=Rr.width+or.strokeWidth();Wt&&(rt=Rr.height,nt+=rt,Ce&&(et-=rt));let{anchorX:Hs,anchorY:Ko}=(function(Ps){let As,ia,{isHeader:xn,plotX:$l=0,plotY:gu=0,series:ni}=Ps;if(xn)As=Math.max(A+$l,A),ia=N+w/2;else{let{xAxis:Zo,yAxis:ax}=ni;As=Zo.pos+Al($l,-U,Zo.len+U),ni.shouldShowTooltip(0,ax.pos-N+gu,{ignoreX:!0})&&(ia=ax.pos+gu)}return{anchorX:As=Al(As,be.left-U,be.right+U),anchorY:ia}})(Mt);if(typeof Ko=="number"){let Ps=Rr.height+1,As=(K||ct).call(h,Xr,Ps,Mt,[Hs,Ko]);yt.push({align:Pe?0:void 0,anchorX:Hs,anchorY:Ko,boxWidth:Xr,point:Mt,rank:bi(As.rank,+!!Wt),size:Ps,target:As.y,tt:or,x:As.x})}else or.isActive=!1}return yt},[]);!Pe&<.some(yt=>{let{outside:St}=h,Vt=(St?Fe:0)+yt.anchorX;return Vt<be.left&&Vt+yt.boxWidth<be.right||Vt<Fe-be.left+yt.boxWidth&&be.right-Vt>Vt})&&(lt=lt.map(yt=>{let{x:St,y:Vt}=ct.call(this,yt.boxWidth,yt.size,yt.point,[yt.anchorX,yt.anchorY],!1);return vd(yt,{target:Vt,x:St})})),h.cleanSplit(),ff(lt,nt);let at={left:Fe,right:Fe};lt.forEach(function(yt){let{x:St,boxWidth:Vt,isHeader:Mt}=yt;!Mt&&(h.outside&&Fe+St<at.left&&(at.left=Fe+St),!Mt&&h.outside&&at.left+Vt>at.right&&(at.right=Fe+St))}),lt.forEach(function(yt){let{x:St,anchorX:Vt,anchorY:Mt,pos:Wt,point:{isHeader:Kt}}=yt,or={visibility:Wt===void 0?"hidden":"inherit",x:St,y:(Wt||0)+et+(ee&&G.y||0),anchorX:Vt,anchorY:Mt};if(h.outside&&St<Vt){let Rr=Fe-at.left;Rr>0&&(Kt||(or.x=St+Rr,or.anchorX=Vt+Rr),Kt&&(or.x=(at.right-at.left)/2,or.anchorX=Vt+Rr))}yt.tt.attr(or)});let{container:dr,outside:hr,renderer:Mr}=h;if(hr&&dr&&Mr){let{width:yt,height:St,x:Vt,y:Mt}=Ae.getBBox();Mr.setSize(yt+Vt,St+Mt,!1),dr.style.left=at.left+"px",dr.style.top=$e+"px"}Sl&&Ae.attr({opacity:Ae.opacity===1?.999:1})}drawTracker(){let i=this;if(!this.shouldStickOnContact()){i.tracker&&(i.tracker=i.tracker.destroy());return}let u=i.chart,h=i.label,m=i.shared?u.hoverPoints:u.hoverPoint;if(!h||!m)return;let g={x:0,y:0,width:0,height:0},v=this.getAnchor(m),w=h.getBBox();v[0]+=u.plotLeft-(h.translateX||0),v[1]+=u.plotTop-(h.translateY||0),g.x=Math.min(0,v[0]),g.y=Math.min(0,v[1]),g.width=v[0]<0?Math.max(Math.abs(v[0]),w.width-v[0]):Math.max(Math.abs(v[0]),w.width),g.height=v[1]<0?Math.max(Math.abs(v[1]),w.height-Math.abs(v[1])):Math.max(Math.abs(v[1]),w.height),i.tracker?i.tracker.attr(g):(i.tracker=h.renderer.rect(g).addClass("highcharts-tracker").add(h),Pc(i.tracker.element,"mouseenter",()=>{No(i.hideTimer)}),u.styledMode||i.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(i){return i.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(i,u){let h=i.series,m=h.tooltipOptions,g=h.xAxis,v=g?.dateTime,w={isFooter:u,point:i},A=m.xDateFormat||"",N=m[u?"footerFormat":"headerFormat"];return bd(this,"headerFormatter",w,function(B){if(v&&!A&&kl(i.key)&&(A=v.getXDateFormat(i.key,m.dateTimeLabelFormats)),v&&A){if(Z0(A)){let j=A;rv[0]=I=>h.chart.time.dateFormat(j,I),A="%0"}(i.tooltipDateKeys||["key"]).forEach(j=>{N=N.replace(RegExp("point\\."+j+"([ \\)}])"),`(point.${j}:${A})$1`)})}h.chart.styledMode&&(N=this.styledModeFormat(N)),B.text=J0(N,i,this.chart)}),w.text||""}update(i){this.destroy(),this.init(this.chart,jo(!0,this.options,i))}updatePosition(i){let{chart:u,container:h,distance:m,options:g,pointer:v,renderer:w}=this,{height:A=0,width:N=0}=this.getLabel(),{fixed:B,positioner:j}=g,{left:I,top:U,scaleX:q,scaleY:ee}=v.getChartPosition(),G=(j||B&&this.getFixedPosition||this.getPosition).call(this,N,A,i),K=re.doc,de=(i.plotX||0)+u.plotLeft,me=(i.plotY||0)+u.plotTop,ve;if(w&&h){if(j||B){let{scrollLeft:be=0,scrollTop:Ae=0}=u.scrollablePlotArea?.scrollingContainer||{};G.x+=be+I-m,G.y+=Ae+U-m}ve=(g.borderWidth||0)+2*m+2,w.setSize(Al(N+ve,0,K.documentElement.clientWidth)-1,A+ve,!1),(q!==1||ee!==1)&&(El(h,{transform:`scale(${q}, ${ee})`}),de*=q,me*=ee),de+=I-G.x,me+=U-G.y}this.move(Math.round(G.x),Math.round(G.y||0),de,me)}}(C=Ed||(Ed={})).compose=function(k){Sd(K0,"Core.Tooltip")&&Pc(k,"afterInit",function(){let i=this.chart;i.options.tooltip&&(i.tooltip=new C(i,i.options.tooltip,this))})};let Na=Ed,{animObject:em}=vs,{defaultOptions:ja}=tr,{format:mf}=Gs,{addEvent:xf,crisp:Ma,erase:Ra,extend:Oa,fireEvent:Fc,getNestedProperty:gf,isArray:zc,isFunction:Uc,isNumber:Hi,isObject:$c,merge:Nl,pick:Zn,syncTimeout:tm,removeEvent:Cd,uniqueKey:yf}=Me;class Rs{constructor(i,u,h){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=i,this.applyOptions(u,h),this.id??(this.id=yf()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=i.options.nullInteraction),i.chart.pointCount++,this.category=i.xAxis?.categories?.[this.x]??this.x,this.key=this.name??this.category,Fc(this,"afterInit")}animateBeforeDestroy(){let i=this,u={x:i.startXPos,opacity:0},h=i.getGraphicalProps();h.singular.forEach(function(m){i[m]=i[m].animate(m==="dataLabel"?{x:i[m].startXPos,y:i[m].startYPos,opacity:0}:u)}),h.plural.forEach(function(m){i[m].forEach(function(g){g.element&&g.animate(Oa({x:i.startXPos},g.startYPos?{x:g.startXPos,y:g.startYPos}:{}))})})}applyOptions(i,u){let h=this.series,m=h.options.pointValKey||h.pointValKey;return Oa(this,i=Rs.prototype.optionsToObject.call(this,i)),this.options=this.options?Oa(this.options,i):i,i.group&&delete this.group,i.dataLabels&&delete this.dataLabels,m&&(this.y=Rs.prototype.getNestedProperty.call(this,m)),this.selected&&(this.state="select"),"name"in this&&u===void 0&&h.xAxis&&h.xAxis.hasNames&&(this.x=h.xAxis.nameToX(this)),this.x===void 0&&h?this.x=u??h.autoIncrement():Hi(i.x)&&h.options.relativeXValue?this.x=h.autoIncrement(i.x):typeof this.x=="string"&&(u??(u=h.chart.time.parse(this.x)),Hi(u)&&(this.x=u)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let i=this,u=i.series,h=u.chart,m=u.options.dataSorting,g=h.hoverPoints,v=em(i.series.chart.renderer.globalAnimation),w=()=>{for(let A in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(Cd(i),i.destroyElements()),i)delete i[A]};i.legendItem&&h.legend.destroyItem(i),g&&(i.setState(),Ra(g,i),g.length||(h.hoverPoints=null)),i===h.hoverPoint&&i.onMouseOut(),m?.enabled?(this.animateBeforeDestroy(),tm(w,v.duration)):w(),h.pointCount--}this.destroyed=!0}destroyElements(i){let u=this,h=u.getGraphicalProps(i);h.singular.forEach(function(m){u[m]=u[m].destroy()}),h.plural.forEach(function(m){u[m].forEach(function(g){g?.element&&g.destroy()}),delete u[m]})}firePointEvent(i,u,h){let m=this,g=this.series.options;m.manageEvent(i),i==="click"&&g.allowPointSelect&&(h=function(v){!m.destroyed&&m.select&&m.select(null,v.ctrlKey||v.metaKey||v.shiftKey)}),Fc(m,i,u,h)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone?.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(i){let u,h,m=this,g=[],v={singular:[],plural:[]};for((i=i||{graphic:1,dataLabel:1}).graphic&&g.push("graphic","connector"),i.dataLabel&&g.push("dataLabel","dataLabelPath","dataLabelUpper"),h=g.length;h--;)m[u=g[h]]&&v.singular.push(u);return["graphic","dataLabel"].forEach(function(w){let A=w+"s";i[w]&&m[A]&&v.plural.push(A)}),v}getNestedProperty(i){if(i)return i.indexOf("custom.")===0?gf(i,this.options):this[i]}getZone(){let i=this.series,u=i.zones,h=i.zoneAxis||"y",m,g=0;for(m=u[0];this[h]>=m.value;)m=u[++g];return this.nonZonedColor||(this.nonZonedColor=this.color),m?.color&&!this.options.color?this.color=m.color:this.color=this.nonZonedColor,m}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}isValid(){return(Hi(this.x)||this.x instanceof Date)&&Hi(this.y)}optionsToObject(i){let u=this.series,h=u.options.keys,m=h||u.pointArrayMap||["y"],g=m.length,v={},w,A=0,N=0;if(Hi(i)||i===null)v[m[0]]=i;else if(zc(i))for(!h&&i.length>g&&((w=typeof i[0])=="string"?u.xAxis?.dateTime?v.x=u.chart.time.parse(i[0]):v.name=i[0]:w==="number"&&(v.x=i[0]),A++);N<g;)h&&i[A]===void 0||(m[N].indexOf(".")>0?Rs.prototype.setNestedProperty(v,i[A],m[N]):v[m[N]]=i[A]),A++,N++;else typeof i=="object"&&(v=i,i.dataLabels&&(u.hasDataLabels=()=>!0),i.marker&&(u._hasPointMarkers=!0));return v}pos(i,u=this.plotY){if(!this.destroyed){let{plotX:h,series:m}=this,{chart:g,xAxis:v,yAxis:w}=m,A=0,N=0;if(Hi(h)&&Hi(u))return i&&(A=v?v.pos:g.plotLeft,N=w?w.pos:g.plotTop),g.inverted&&v&&w?[w.len-u+N,v.len-h+A]:[h+A,u+N]}}resolveColor(){let i=this.series,u=i.chart.options.chart,h=i.chart.styledMode,m,g,v=u.colorCount,w;delete this.nonZonedColor,i.options.colorByPoint?(h||(m=(g=i.options.colors||i.chart.options.colors)[i.colorCounter],v=g.length),w=i.colorCounter,i.colorCounter++,i.colorCounter===v&&(i.colorCounter=0)):(h||(m=i.color),w=i.colorIndex),this.colorIndex=Zn(this.options.colorIndex,w),this.color=Zn(this.options.color,m)}setNestedProperty(i,u,h){return h.split(".").reduce(function(m,g,v,w){let A=w.length-1===v;return m[g]=A?u:$c(m[g],!0)?m[g]:{},m[g]},i),i}shouldDraw(){return!this.isNull}tooltipFormatter(i){let{chart:u,pointArrayMap:h=["y"],tooltipOptions:m}=this.series,{valueDecimals:g="",valuePrefix:v="",valueSuffix:w=""}=m;return u.styledMode&&(i=u.tooltip?.styledModeFormat(i)||i),h.forEach(A=>{A="{point."+A,(v||w)&&(i=i.replace(RegExp(A+"}","g"),v+A+"}"+w)),i=i.replace(RegExp(A+"}","g"),A+":,."+g+"f}")}),mf(i,this,u)}update(i,u,h,m){let g,v=this,w=v.series,A=v.graphic,N=w.chart,B=w.options;function j(){v.applyOptions(i);let I=A&&v.hasMockGraphic,U=v.y===null?!I:I;A&&U&&(v.graphic=A.destroy(),delete v.hasMockGraphic),$c(i,!0)&&(A?.element&&i&&i.marker&&i.marker.symbol!==void 0&&(v.graphic=A.destroy()),i?.dataLabels&&v.dataLabel&&(v.dataLabel=v.dataLabel.destroy())),g=v.index;let q={};for(let ee of w.dataColumnKeys())q[ee]=v[ee];w.dataTable.setRow(q,g),B.data[g]=$c(B.data[g],!0)||$c(i,!0)?v.options:Zn(i,B.data[g]),w.isDirty=w.isDirtyData=!0,!w.fixedBox&&w.hasCartesianSeries&&(N.isDirtyBox=!0),B.legendType==="point"&&(N.isDirtyLegend=!0),u&&N.redraw(h)}u=Zn(u,!0),m===!1?j():v.firePointEvent("update",{options:i},j)}remove(i,u){this.series.removePoint(this.series.data.indexOf(this),i,u)}select(i,u){let h=this,m=h.series,g=m.chart;i=Zn(i,!h.selected),this.selectedStaging=i,h.firePointEvent(i?"select":"unselect",{accumulate:u},function(){h.selected=h.options.selected=i,m.options.data[m.data.indexOf(h)]=h.options,h.setState(i&&"select"),u||g.getSelectedPoints().forEach(function(v){let w=v.series;v.selected&&v!==h&&(v.selected=v.options.selected=!1,w.options.data[w.data.indexOf(v)]=v.options,v.setState(g.hoverPoints&&w.options.inactiveOtherPoints?"inactive":""),v.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(i){let{inverted:u,pointer:h}=this.series.chart;h&&(i=i?h.normalize(i):h.getChartCoordinatesFromPoint(this,u),h.runPointActions(i,this))}onMouseOut(){let i=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(i.hoverPoints||[]).forEach(function(u){u.setState()}),i.hoverPoints=i.hoverPoint=null}manageEvent(i){let u=Nl(this.series.options.point,this.options),h=u.events?.[i];Uc(h)&&(!this.hcEvents?.[i]||this.hcEvents?.[i]?.map(m=>m.fn).indexOf(h)===-1)?(this.importedUserEvent?.(),this.importedUserEvent=xf(this,i,h),this.hcEvents&&(this.hcEvents[i].userEvent=!0)):this.importedUserEvent&&!h&&this.hcEvents?.[i]&&this.hcEvents?.[i].userEvent&&(Cd(this,i),delete this.hcEvents[i],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(i,u){let h=this.series,m=this.state,g=h.options.states[i||"normal"]||{},v=ja.plotOptions[h.type].marker&&h.options.marker,w=v&&v.enabled===!1,A=v?.states?.[i||"normal"]||{},N=A.enabled===!1,B=this.marker||{},j=h.chart,I=v&&h.markerAttribs,U=h.halo,q,ee,G,K=h.stateMarkerGraphic,de;if((i=i||"")===this.state&&!u||this.selected&&i!=="select"||g.enabled===!1||i&&(N||w&&A.enabled===!1)||i&&B.states&&B.states[i]&&B.states[i].enabled===!1)return;if(this.state=i,I&&(q=h.markerAttribs(this,i)),this.graphic&&!this.hasMockGraphic){if(m&&this.graphic.removeClass("highcharts-point-"+m),i&&this.graphic.addClass("highcharts-point-"+i),!j.styledMode){ee=h.pointAttribs(this,i),G=Zn(j.options.chart.animation,g.animation);let Ae=ee.opacity;h.options.inactiveOtherPoints&&Hi(Ae)&&(this.dataLabels||[]).forEach(function(Ee){Ee&&!Ee.hasClass("highcharts-data-label-hidden")&&(Ee.animate({opacity:Ae},G),Ee.connector&&Ee.connector.animate({opacity:Ae},G))}),this.graphic.animate(ee,G)}q&&this.graphic.animate(q,Zn(j.options.chart.animation,A.animation,v.animation)),K&&K.hide()}else i&&A&&(de=B.symbol||h.symbol,K&&K.currentSymbol!==de&&(K=K.destroy()),q&&(K?K[u?"animate":"attr"]({x:q.x,y:q.y}):de&&(h.stateMarkerGraphic=K=j.renderer.symbol(de,q.x,q.y,q.width,q.height,Nl(v,A)).add(h.markerGroup),K.currentSymbol=de)),!j.styledMode&&K&&this.state!=="inactive"&&K.attr(h.pointAttribs(this,i))),K&&(K[i&&this.isInside?"show":"hide"](),K.element.point=this,K.addClass(this.getClassName(),!0));let me=g.halo,ve=this.graphic||K,be=ve?.visibility||"inherit";me?.size&&ve&&be!=="hidden"&&!this.isCluster?(U||(h.halo=U=j.renderer.path().add(ve.parentGroup)),U.show()[u?"animate":"attr"]({d:this.haloPath(me.size)}),U.attr({class:"highcharts-halo highcharts-color-"+Zn(this.colorIndex,h.colorIndex)+(this.className?" "+this.className:""),visibility:be,zIndex:-1}),U.point=this,j.styledMode||U.attr(Oa({fill:this.color||h.color,"fill-opacity":me.opacity},Cr.filterUserAttributes(me.attributes||{})))):U?.point?.haloPath&&!U.point.destroyed&&U.animate({d:U.point.haloPath(0)},null,U.hide),Fc(this,"afterSetState",{state:i})}haloPath(i){let u=this.pos();return u?this.series.chart.renderer.symbols.circle(Ma(u[0],1)-i,u[1]-i,2*i,2*i):[]}}let ps=Rs,{parse:Ba}=Nr,{charts:Vc,composed:rm,isTouchDevice:_a}=re,{addEvent:zr,attr:ts,css:Mo,extend:ei,find:_t,fireEvent:Gt,isNumber:Hr,isObject:jl,objectEach:Ro,offset:Ml,pick:fn,pushUnique:Hc,splat:Rl}=Me;class ms{applyInactiveState(i=[]){let u=[];for(let h of(i.forEach(m=>{let g=m.series;u.push(g),g.linkedParent&&u.push(g.linkedParent),g.linkedSeries&&u.push.apply(u,g.linkedSeries),g.navigatorSeries&&u.push(g.navigatorSeries),g.boosted&&g.markerGroup&&u.push.apply(u,this.chart.series.filter(v=>v.markerGroup===g.markerGroup))}),this.chart.series)){let m=h.options;m.states?.inactive?.enabled!==!1&&(u.indexOf(h)===-1?h.setState("inactive",!0):m.inactiveOtherPoints&&h.setAllPointsToState("inactive"))}}destroy(){let i=this;this.eventsToUnbind.forEach(u=>u()),this.eventsToUnbind=[],!re.chartCount&&(ms.unbindDocumentMouseUp.forEach(u=>u.unbind()),ms.unbindDocumentMouseUp.length=0,ms.unbindDocumentTouchEnd&&(ms.unbindDocumentTouchEnd=ms.unbindDocumentTouchEnd())),Ro(i,function(u,h){i[h]=void 0})}getSelectionMarkerAttrs(i,u){let h={args:{chartX:i,chartY:u},attrs:{},shapeType:"rect"};return Gt(this,"getSelectionMarkerAttrs",h,m=>{let g,{chart:v,zoomHor:w,zoomVert:A}=this,{mouseDownX:N=0,mouseDownY:B=0}=v,j=m.attrs;j.x=v.plotLeft,j.y=v.plotTop,j.width=w?1:v.plotWidth,j.height=A?1:v.plotHeight,w&&(j.width=Math.max(1,Math.abs(g=i-N)),j.x=(g>0?0:g)+N),A&&(j.height=Math.max(1,Math.abs(g=u-B)),j.y=(g>0?0:g)+B)}),h}drag(i){let{chart:u}=this,{mouseDownX:h=0,mouseDownY:m=0}=u,{panning:g,panKey:v,selectionMarkerFill:w}=u.options.chart,A=u.plotLeft,N=u.plotTop,B=u.plotWidth,j=u.plotHeight,I=jl(g)?g.enabled:g,U=v&&i[`${v}Key`],q=i.chartX,ee=i.chartY,G,K=this.selectionMarker;if((!K||!K.touch)&&(q<A?q=A:q>A+B&&(q=A+B),ee<N?ee=N:ee>N+j&&(ee=N+j),this.hasDragged=Math.sqrt(Math.pow(h-q,2)+Math.pow(m-ee,2)),this.hasDragged>10)){G=u.isInsidePlot(h-A,m-N,{visiblePlotOnly:!0});let{shapeType:de,attrs:me}=this.getSelectionMarkerAttrs(q,ee);this.hasZoom&&G&&!U&&!K&&(this.selectionMarker=K=u.renderer[de](),K.attr({class:"highcharts-selection-marker",zIndex:7}).add(),u.styledMode||K.attr({fill:w||Ba("#334eff").setOpacity(.25).get()})),K&&K.attr(me),G&&!K&&I&&u.pan(i,g)}}dragStart(i){let u=this.chart;u.mouseIsDown=i.type,u.cancelClick=!1,u.mouseDownX=i.chartX,u.mouseDownY=i.chartY}getSelectionBox(i){let u={args:{marker:i},result:i.getBBox()};return Gt(this,"getSelectionBox",u),u.result}drop(i){let u,{chart:h,selectionMarker:m}=this;for(let g of h.axes)g.isPanning&&(g.isPanning=!1,(g.options.startOnTick||g.options.endOnTick||g.series.some(v=>v.boosted))&&(g.forceRedraw=!0,g.setExtremes(g.userMin,g.userMax,!1),u=!0));if(u&&h.redraw(),m&&i){if(this.hasDragged){let g=this.getSelectionBox(m);h.transform({axes:h.axes.filter(v=>v.zoomEnabled&&(v.coll==="xAxis"&&this.zoomX||v.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:i,xAxis:[],yAxis:[],...g},from:g})}Hr(h.index)&&(this.selectionMarker=m.destroy())}h&&Hr(h.index)&&(Mo(h.container,{cursor:h._cursor}),h.cancelClick=this.hasDragged>10,h.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(i,u,h){let m;return i.forEach(function(g){var v;let w,A,N,B=!(g.noSharedTooltip&&u)&&0>g.options.findNearestPointBy.indexOf("y"),j=g.searchPoint(h,B);jl(j,!0)&&j.series&&(!jl(m,!0)||(w=(v=m).distX-j.distX,A=v.dist-j.dist,N=j.series.group?.zIndex-v.series.group?.zIndex,(w!==0&&u?w:A!==0?A:N!==0?N:v.series.index>j.series.index?-1:1)>0))&&(m=j)}),m}getChartCoordinatesFromPoint(i,u){let{xAxis:h,yAxis:m}=i.series,g=i.shapeArgs;if(h&&m){let v=i.clientX??i.plotX??0,w=i.plotY||0;return i.isNode&&g&&Hr(g.x)&&Hr(g.y)&&(v=g.x,w=g.y),u?{chartX:m.len+m.pos-w,chartY:h.len+h.pos-v}:{chartX:v+h.pos,chartY:w+m.pos}}if(g?.x&&g.y)return{chartX:g.x,chartY:g.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:i}=this.chart,u=Ml(i);this.chartPosition={left:u.left,top:u.top,scaleX:1,scaleY:1};let{offsetHeight:h,offsetWidth:m}=i;return m>2&&h>2&&(this.chartPosition.scaleX=u.width/m,this.chartPosition.scaleY=u.height/h),this.chartPosition}getCoordinates(i){let u={xAxis:[],yAxis:[]};for(let h of this.chart.axes)u[h.isXAxis?"xAxis":"yAxis"].push({axis:h,value:h.toValue(i[h.horiz?"chartX":"chartY"])});return u}getHoverData(i,u,h,m,g,v){let w=[],A=function(U){return U.visible&&!(!g&&U.directTouch)&&fn(U.options.enableMouseTracking,!0)},N=u,B,j={chartX:v?v.chartX:void 0,chartY:v?v.chartY:void 0,shared:g};Gt(this,"beforeGetHoverData",j),B=N&&!N.stickyTracking?[N]:h.filter(U=>U.stickyTracking&&(j.filter||A)(U));let I=m&&i||!v?i:this.findNearestKDPoint(B,g,v);return N=I?.series,I&&(g&&!N.noSharedTooltip?(B=h.filter(function(U){return j.filter?j.filter(U):A(U)&&!U.noSharedTooltip})).forEach(function(U){let q=U.options?.nullInteraction,ee=_t(U.points,function(G){return G.x===I.x&&(!G.isNull||!!q)});jl(ee)&&(U.boosted&&U.boost&&(ee=U.boost.getPoint(ee)),w.push(ee))}):w.push(I)),Gt(this,"afterGetHoverData",j={hoverPoint:I}),{hoverPoint:j.hoverPoint,hoverSeries:N,hoverPoints:w}}getPointFromEvent(i){let u=i.target,h;for(;u&&!h;)h=u.point,u=u.parentNode;return h}onTrackerMouseOut(i){let u=this.chart,h=i.relatedTarget,m=u.hoverSeries;this.isDirectTouch=!1,!m||!h||m.stickyTracking||this.inClass(h,"highcharts-tooltip")||this.inClass(h,"highcharts-series-"+m.index)&&this.inClass(h,"highcharts-tracker")||m.onMouseOut()}inClass(i,u){let h=i,m;for(;h;){if(m=ts(h,"class")){if(m.indexOf(u)!==-1)return!0;if(m.indexOf("highcharts-container")!==-1)return!1}h=h.parentElement}}constructor(i,u){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=u,this.chart=i,this.runChartClick=!!u.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),Gt(this,"afterInit")}normalize(i,u){let h=i.touches,m=h?h.length?h.item(0):fn(h.changedTouches,i.changedTouches)[0]:i;u||(u=this.getChartPosition());let g=m.pageX-u.left,v=m.pageY-u.top;return ei(i,{chartX:Math.round(g/=u.scaleX),chartY:Math.round(v/=u.scaleY)})}onContainerClick(i){let u=this.chart,h=u.hoverPoint,m=this.normalize(i),g=u.plotLeft,v=u.plotTop;!u.cancelClick&&(h&&this.inClass(m.target,"highcharts-tracker")?(Gt(h.series,"click",ei(m,{point:h})),u.hoverPoint&&h.firePointEvent("click",m)):(ei(m,this.getCoordinates(m)),u.isInsidePlot(m.chartX-g,m.chartY-v,{visiblePlotOnly:!0})&&Gt(u,"click",m)))}onContainerMouseDown(i){let u=(1&(i.buttons||i.button))==1;i=this.normalize(i),re.isFirefox&&i.button!==0&&this.onContainerMouseMove(i),(i.button===void 0||u)&&(this.zoomOption(i),u&&i.preventDefault?.(),this.dragStart(i))}onContainerMouseLeave(i){let{pointer:u}=Vc[fn(ms.hoverChartIndex,-1)]||{};i=this.normalize(i),this.onContainerMouseMove(i),u&&!this.inClass(i.relatedTarget,"highcharts-tooltip")&&(u.reset(),u.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(i){let u=this.chart,h=u.tooltip,m=this.normalize(i);this.setHoverChartIndex(i),(u.mouseIsDown==="mousedown"||this.touchSelect(m))&&this.drag(m),!u.exporting?.openMenu&&(this.inClass(m.target,"highcharts-tracker")||u.isInsidePlot(m.chartX-u.plotLeft,m.chartY-u.plotTop,{visiblePlotOnly:!0}))&&!h?.shouldStickOnContact(m)&&(this.inClass(m.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(m))}onDocumentTouchEnd(i){this.onDocumentMouseUp(i)}onContainerTouchMove(i){this.touchSelect(i)?this.onContainerMouseMove(i):this.touch(i)}onContainerTouchStart(i){this.touchSelect(i)?this.onContainerMouseDown(i):(this.zoomOption(i),this.touch(i,!0))}onDocumentMouseMove(i){let u=this.chart,h=u.tooltip,m=this.chartPosition,g=this.normalize(i,m);!m||u.isInsidePlot(g.chartX-u.plotLeft,g.chartY-u.plotTop,{visiblePlotOnly:!0})||h?.shouldStickOnContact(g)||g.target!==u.container.ownerDocument&&this.inClass(g.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(i){i?.touches&&this.hasPinchMoved&&i?.preventDefault?.(),Vc[fn(ms.hoverChartIndex,-1)]?.pointer?.drop(i)}pinch(i){let u=this,{chart:h,hasZoom:m,lastTouches:g}=u,v=[].map.call(i.touches||[],j=>u.normalize(j)),w=v.length,A=w===1&&(u.inClass(i.target,"highcharts-tracker")&&h.runTrackerClick||u.runChartClick),N=h.tooltip,B=w===1&&fn(N?.options.followTouchMove,!0);w>1?u.initiated=!0:B&&(u.initiated=!1),m&&u.initiated&&!A&&i.cancelable!==!1&&i.preventDefault(),i.type==="touchstart"?(u.pinchDown=v,u.res=!0,h.mouseDownX=i.chartX):B?this.runPointActions(u.normalize(i)):g&&(Gt(h,"touchpan",{originalEvent:i,touches:v},()=>{let j=I=>{let U=I[0],q=I[1]||U;return{x:U.chartX,y:U.chartY,width:q.chartX-U.chartX,height:q.chartY-U.chartY}};h.transform({axes:h.axes.filter(I=>I.zoomEnabled&&(this.zoomHor&&I.horiz||this.zoomVert&&!I.horiz)),to:j(v),from:j(g),trigger:i.type})}),u.res&&(u.res=!1,this.reset(!1,0))),u.lastTouches=v}reset(i,u){let h=this.chart,m=h.hoverSeries,g=h.hoverPoint,v=h.hoverPoints,w=h.tooltip,A=w?.shared?v:g;i&&A&&Rl(A).forEach(function(N){N.series.isCartesian&&N.plotX===void 0&&(i=!1)}),i?w&&A&&Rl(A).length&&(w.refresh(A),w.shared&&v?v.forEach(function(N){N.setState(N.state,!0),N.series.isCartesian&&(N.series.xAxis.crosshair&&N.series.xAxis.drawCrosshair(null,N),N.series.yAxis.crosshair&&N.series.yAxis.drawCrosshair(null,N))}):g&&(g.setState(g.state,!0),h.axes.forEach(function(N){N.crosshair&&g.series[N.coll]===N&&N.drawCrosshair(null,g)}))):(g&&g.onMouseOut(),v&&v.forEach(function(N){N.setState()}),m&&m.onMouseOut(),w&&w.hide(u),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),h.axes.forEach(function(N){N.hideCrosshair()}),h.hoverPoints=h.hoverPoint=void 0)}runPointActions(i,u,h){let m=this.chart,g=m.series,v=m.tooltip?.options.enabled?m.tooltip:void 0,w=!!v&&v.shared,A=u||m.hoverPoint,N=A?.series||m.hoverSeries,B=(!i||i.type!=="touchmove")&&(!!u||N?.directTouch&&this.isDirectTouch),j=this.getHoverData(A,N,g,B,w,i);A=j.hoverPoint,N=j.hoverSeries;let I=j.hoverPoints,U=N?.tooltipOptions.followPointer&&!N.tooltipOptions.split,q=w&&N&&!N.noSharedTooltip;if(A&&(h||A!==m.hoverPoint||v?.isHidden)){if((m.hoverPoints||[]).forEach(function(ee){I.indexOf(ee)===-1&&ee.setState()}),m.hoverSeries!==N&&N.onMouseOver(),this.applyInactiveState(I),(I||[]).forEach(function(ee){ee.setState("hover")}),m.hoverPoint&&m.hoverPoint.firePointEvent("mouseOut"),!A.series)return;m.hoverPoints=I,m.hoverPoint=A,A.firePointEvent("mouseOver",void 0,()=>{v&&A&&v.refresh(q?I:A,i)})}else if(U&&v&&!v.isHidden){let ee=v.getAnchor([{}],i);m.isInsidePlot(ee[0],ee[1],{visiblePlotOnly:!0})&&v.updatePosition({plotX:ee[0],plotY:ee[1]})}this.unDocMouseMove||(this.unDocMouseMove=zr(m.container.ownerDocument,"mousemove",ee=>Vc[ms.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(ee)),this.eventsToUnbind.push(this.unDocMouseMove)),m.axes.forEach(function(ee){let G,K=ee.crosshair?.snap??!0;K&&((G=m.hoverPoint)&&G.series[ee.coll]===ee||(G=_t(I,de=>de.series?.[ee.coll]===ee))),G||!K?ee.drawCrosshair(i,G):ee.hideCrosshair()})}setDOMEvents(){let i=this.chart.container,u=i.ownerDocument,h=g=>g.parentElement||g.getRootNode()?.host?.parentElement;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(zr(i,"mouseenter",this.onContainerMouseEnter.bind(this)),zr(i,"mouseleave",this.onContainerMouseLeave.bind(this))),ms.unbindDocumentMouseUp.some(g=>g.doc===u)||ms.unbindDocumentMouseUp.push({doc:u,unbind:zr(u,"mouseup",this.onDocumentMouseUp.bind(this))});let m=h(this.chart.renderTo);for(;m&&m.tagName!=="BODY";)this.eventsToUnbind.push(zr(m,"scroll",()=>{delete this.chartPosition})),m=h(m);this.eventsToUnbind.push(zr(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),zr(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),ms.unbindDocumentTouchEnd||(ms.unbindDocumentTouchEnd=zr(u,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),zr(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!_a)return;let i=this.pointerCaptureEventsToUnbind,u=this.chart,h=u.container,m=fn(u.options.tooltip?.followTouchMove,!0)&&u.series.some(g=>g.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&m?(i.push(zr(h,"pointerdown",g=>{g.target?.hasPointerCapture(g.pointerId)&&g.target?.releasePointerCapture(g.pointerId)}),zr(h,"pointermove",g=>{u.pointer?.getPointFromEvent(g)?.onMouseOver(g)})),u.styledMode||Mo(h,{"touch-action":"none"}),h.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!m&&(i.forEach(g=>g()),i.length=0,u.styledMode||Mo(h,{"touch-action":fn(u.options.chart.style?.["touch-action"],"manipulation")}),h.className=h.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(i){let u=this.chart,h=re.charts[fn(ms.hoverChartIndex,-1)];if(h&&h!==u){let m={relatedTarget:u.container};i&&!i?.relatedTarget&&Object.assign({},i,m),h.pointer?.onContainerMouseLeave(i||m)}h?.mouseIsDown||(ms.hoverChartIndex=u.index)}touch(i,u){let h,{chart:m,pinchDown:g=[]}=this;this.setHoverChartIndex(),(i=this.normalize(i)).touches.length===1?m.isInsidePlot(i.chartX-m.plotLeft,i.chartY-m.plotTop,{visiblePlotOnly:!0})&&!m.exporting?.openMenu?(u&&this.runPointActions(i),i.type==="touchmove"&&(this.hasPinchMoved=h=!!g[0]&&Math.pow(g[0].chartX-i.chartX,2)+Math.pow(g[0].chartY-i.chartY,2)>=16),fn(h,!0)&&this.pinch(i)):u&&this.reset():i.touches.length===2&&this.pinch(i)}touchSelect(i){return!!(this.chart.zooming.singleTouch&&i.touches&&i.touches.length===1)}zoomOption(i){let u=this.chart,h=u.inverted,m=u.zooming.type||"",g,v;/touch/.test(i.type)&&(m=fn(u.zooming.pinchType,m)),this.zoomX=g=/x/.test(m),this.zoomY=v=/y/.test(m),this.zoomHor=g&&!h||v&&h,this.zoomVert=v&&!h||g&&h,this.hasZoom=g||v}}ms.unbindDocumentMouseUp=[],(R=ms||(ms={})).compose=function(k){Hc(rm,"Core.Pointer")&&zr(k,"beforeRender",function(){this.pointer=new R(this,this.options)})};let Yr=ms;(O=z||(z={})).setLength=function(k,i,u){return Array.isArray(k)?(k.length=i,k):k[u?"subarray":"slice"](0,i)},O.splice=function(k,i,u,h,m=[]){if(Array.isArray(k))return Array.isArray(m)||(m=Array.from(m)),{removed:k.splice(i,u,...m),array:k};let g=Object.getPrototypeOf(k).constructor,v=k[h?"subarray":"slice"](i,i+u),w=new g(k.length-u+m.length);return w.set(k.subarray(0,i),0),w.set(m,i),w.set(k.subarray(i+u),i+m.length),{removed:v,array:w}},O.convertToNumber=function(k,i){switch(typeof k){case"boolean":return+!!k;case"number":return isNaN(k)&&!i?null:k;default:return isNaN(k=parseFloat(`${k??""}`))&&!i?null:k}};let{setLength:vf,splice:kd}=z,{fireEvent:Td,objectEach:Oo,uniqueKey:Yc}=Me,Bo=class{constructor(k={}){this.autoId=!k.id,this.columns={},this.id=k.id||Yc(),this.rowCount=0,this.versionTag=Yc();let i=0;Oo(k.columns||{},(u,h)=>{this.columns[h]=u.slice(),i=Math.max(i,u.length)}),this.applyRowCount(i)}applyRowCount(k){this.rowCount=k,Oo(this.columns,(i,u)=>{i.length!==k&&(this.columns[u]=vf(i,k))})}deleteRows(k,i=1){if(i>0&&k<this.rowCount){let u=0;Oo(this.columns,(h,m)=>{this.columns[m]=kd(h,k,i).array,u=h.length}),this.rowCount=u}Td(this,"afterDeleteRows",{rowIndex:k,rowCount:i}),this.versionTag=Yc()}getColumn(k,i){return this.columns[k]}getColumns(k,i){return(k||Object.keys(this.columns)).reduce((u,h)=>(u[h]=this.columns[h],u),{})}getRow(k,i){return(i||Object.keys(this.columns)).map(u=>this.columns[u]?.[k])}setColumn(k,i=[],u=0,h){this.setColumns({[k]:i},u,h)}setColumns(k,i,u){let h=this.rowCount;Oo(k,(m,g)=>{this.columns[g]=m.slice(),h=m.length}),this.applyRowCount(h),u?.silent||(Td(this,"afterSetColumns"),this.versionTag=Yc())}setRow(k,i=this.rowCount,u,h){let{columns:m}=this,g=u?this.rowCount+1:i+1,v=Object.keys(k);if(h?.addColumns!==!1)for(let w=0,A=v.length;w<A;w++){let N=v[w];m[N]||(m[N]=[])}Oo(m,(w,A)=>{w||h?.addColumns===!1||(w=Array(g)),w&&(u?w=kd(w,i,0,!0,[k[A]??null]).array:w[i]=k[A]??null,m[A]=w)}),g>this.rowCount&&this.applyRowCount(g),h?.silent||(Td(this,"afterSetRows"),this.versionTag=Yc())}getModified(){return this.modified||this}},{extend:bf,merge:wf,pick:Ls}=Me;var Gr=H||(H={});function Gc(k,i,u){let h=this.legendItem=this.legendItem||{},{chart:m,options:g}=this,{baseline:v=0,symbolWidth:w,symbolHeight:A}=k,N=this.symbol||"circle",B=A/2,j=m.renderer,I=h.group,U=v-Math.round((k.fontMetrics?.b||A)*(u?.4:.3)),q={},ee,G=g.marker,K=0;if(m.styledMode||(q["stroke-width"]=Math.min(g.lineWidth||0,24),g.dashStyle?q.dashstyle=g.dashStyle:g.linecap!=="square"&&(q["stroke-linecap"]="round")),h.line=j.path().addClass("highcharts-graph").attr(q).add(I),u&&(h.area=j.path().addClass("highcharts-area").add(I)),q["stroke-linecap"]&&(K=Math.min(h.line.strokeWidth(),w)/2),w){let de=[["M",K,U],["L",w-K,U]];h.line.attr({d:de}),h.area?.attr({d:[...de,["L",w-K,v],["L",K,v]]})}if(G&&G.enabled!==!1&&w){let de=Math.min(Ls(G.radius,B),B);N.indexOf("url")===0&&(G=wf(G,{width:A,height:A}),de=0),h.symbol=ee=j.symbol(N,w/2-de,U-de,2*de,2*de,bf({context:"legend"},G)).addClass("highcharts-point").add(I),ee.isMarker=!0}}Gr.areaMarker=function(k,i){Gc.call(this,k,i,!0)},Gr.lineMarker=Gc,Gr.rectangle=function(k,i){let u=i.legendItem||{},h=k.options,m=k.symbolHeight,g=h.squareSymbol,v=g?m:k.symbolWidth;u.symbol=this.chart.renderer.rect(g?(k.symbolWidth-m)/2:0,k.baseline-m+1,v,m,Ls(k.options.symbolRadius,m/2)).addClass("highcharts-point").attr({zIndex:3}).add(u.group)};let _o=H,{defaultOptions:Xc}=tr,{extend:Sf,extendClass:Yi,merge:Nd}=Me;var On=Z||(Z={});function jd(k,i){let u=Xc.plotOptions||{},h=i.defaultOptions,m=i.prototype;return m.type=k,m.pointClass||(m.pointClass=ps),!On.seriesTypes[k]&&(h&&(u[k]=h),On.seriesTypes[k]=i,!0)}On.seriesTypes=re.seriesTypes,On.registerSeriesType=jd,On.seriesType=function(k,i,u,h,m){let g=Xc.plotOptions||{};if(i=i||"",g[k]=Nd(g[i],u),delete On.seriesTypes[k],jd(k,Yi(On.seriesTypes[i]||re.Series,h)),On.seriesTypes[k].prototype.type=k,m){class v extends ps{}Sf(v.prototype,m),On.seriesTypes[k].prototype.pointClass=v}return On.seriesTypes[k]};let Ur=Z,{animObject:Af,setAnimation:sm}=vs,{defaultOptions:qc}=tr,{registerEventOptions:nm}=bo,{svg:im,win:Ef}=re,{seriesTypes:Ol}=Ur,{format:sv}=Gs,{arrayMax:Md,arrayMin:Cf,clamp:kf,correctFloat:Rd,crisp:am,defined:rs,destroyObjectProperties:lm,diffObjects:om,erase:Tf,error:Od,extend:Bl,find:Do,fireEvent:jr,getClosestDistance:Bd,getNestedProperty:Wc,insertItem:Nf,isArray:_d,isNumber:xs,isString:cm,merge:Lo,objectEach:Dd,pick:Br,removeEvent:um,syncTimeout:Ld}=Me;class Bn{constructor(){this.zoneAxis="y"}init(i,u){let h;jr(this,"init",{options:u}),this.dataTable??(this.dataTable=new Bo);let m=i.series;this.eventsToUnbind=[],this.chart=i,this.options=this.setOptions(u);let g=this.options,v=g.visible!==!1;this.linkedSeries=[],this.bindAxes(),Bl(this,{name:g.name,state:"",visible:v,selected:g.selected===!0}),nm(this,g),(g.events?.click||g.point?.events?.click||g.allowPointSelect)&&(i.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(i.hasCartesianSeries=!0),m.length&&(h=m[m.length-1]),this._i=Br(h?._i,-1)+1,this.opacity=this.options.opacity,i.orderItems("series",Nf(this,m)),g.dataSorting?.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(g.data,!1),jr(this,"afterInit")}is(i){return Ol[i]&&this instanceof Ol[i]}bindAxes(){let i,u=this,h=u.options,m=u.chart;jr(this,"bindAxes",null,function(){(u.axisTypes||[]).forEach(function(g){(m[g]||[]).forEach(function(v){i=v.options,(Br(h[g],0)===v.index||h[g]!==void 0&&h[g]===i.id)&&(Nf(u,v.series),u[g]=v,v.isDirty=!0)}),u[g]||u.optionalAxis===g||Od(18,!0,m)})}),jr(this,"afterBindAxes")}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(i,u){let h=i.marker,m=u.marker||{};return h&&(m.enabled&&!h.enabled||m.symbol!==h.symbol||m.height!==h.height||m.width!==h.width)}autoIncrement(i){let u,h=this.options,{pointIntervalUnit:m,relativeXValue:g}=this.options,v=this.chart.time,w=this.xIncrement??v.parse(h.pointStart)??0;if(this.pointInterval=u=Br(this.pointInterval,h.pointInterval,1),g&&xs(i)&&(u*=i),m){let A=v.toParts(w);m==="day"?A[2]+=u:m==="month"?A[1]+=u:m==="year"&&(A[0]+=u),u=v.makeTime.apply(v,A)-w}return g&&xs(i)?w+u:(this.xIncrement=w+u,w)}setDataSortingOptions(){let i=this.options;Bl(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),rs(i.pointRange)||(i.pointRange=1)}setOptions(i){let u,h=this.chart,m=h.options.plotOptions,g=h.userOptions||{},v=Lo(i),w=h.styledMode,A={plotOptions:m,userOptions:v};jr(this,"setOptions",A);let N=A.plotOptions[this.type],B=g.plotOptions||{},j=B.series||{},I=qc.plotOptions[this.type]||{},U=B[this.type]||{};N.dataLabels=this.mergeArrays(I.dataLabels,N.dataLabels),this.userOptions=A.userOptions;let q=Lo(N,m.series,U,v);this.tooltipOptions=Lo(qc.tooltip,qc.plotOptions.series?.tooltip,I?.tooltip,h.userOptions.tooltip,B.series?.tooltip,U.tooltip,v.tooltip),this.stickyTracking=Br(v.stickyTracking,U.stickyTracking,j.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||q.stickyTracking),N.marker===null&&delete q.marker,this.zoneAxis=q.zoneAxis||"y";let ee=this.zones=(q.zones||[]).map(G=>({...G}));return(q.negativeColor||q.negativeFillColor)&&!q.zones&&(u={value:q[this.zoneAxis+"Threshold"]||q.threshold||0,className:"highcharts-negative"},w||(u.color=q.negativeColor,u.fillColor=q.negativeFillColor),ee.push(u)),ee.length&&rs(ee[ee.length-1].value)&&ee.push(w?{}:{color:this.color,fillColor:this.fillColor}),jr(this,"afterSetOptions",{options:q}),q}getName(){return this.options.name??sv(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(i,u,h){let m,g,v=this.chart,w=`${i}Index`,A=`${i}Counter`,N=h?.length||v.options.chart.colorCount;!u&&(rs(g=Br(i==="color"?this.options.colorIndex:void 0,this[w]))?m=g:(v.series.length||(v[A]=0),m=v[A]%N,v[A]+=1),h&&(u=h[m])),m!==void 0&&(this[w]=m),this[i]=u}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||qc.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let i=this.options.marker;this.getCyclic("symbol",i.symbol,this.chart.options.symbols)}getColumn(i,u){return(u?this.dataTable.getModified():this.dataTable).getColumn(i,!0)||[]}findPointIndex(i,u){let h,m,g,{id:v,x:w}=i,A=this.points,N=this.options.dataSorting,B=this.cropStart||0;if(v){let j=this.chart.get(v);j instanceof ps&&(h=j)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let j=I=>!I.touched&&I.index===i.index;if(N?.matchByName?j=I=>!I.touched&&I.name===i.name:this.options.relativeXValue&&(j=I=>!I.touched&&I.options.x===i.x),!(h=Do(A,j)))return}return h&&(g=h?.index)!==void 0&&(m=!0),g===void 0&&xs(w)&&(g=this.getColumn("x").indexOf(w,u)),g!==-1&&g!==void 0&&this.cropped&&(g=g>=B?g-B:g),!m&&xs(g)&&A[g]?.touched&&(g=void 0),g}updateData(i,u){let{options:h,requireSorting:m}=this,g=h.dataSorting,v=this.points,w=[],A=i.length===v.length,N=this.xIncrement,B,j,I,U,q=!0;if(this.xIncrement=null,i.forEach((G,K)=>{let de,me=rs(G)&&this.pointClass.prototype.optionsToObject.call({series:this},G)||{},{id:ve,x:be}=me;ve||xs(be)?((de=this.findPointIndex(me,U))===-1||de===void 0?w.push(G):v[de]&&G!==h.data?.[de]?(v[de].update(G,!1,void 0,!1),v[de].touched=!0,m&&(U=de+1)):v[de]&&(v[de].touched=!0),(!A||K!==de||g?.enabled||this.hasDerivedData)&&(B=!0)):w.push(G)},this),B)for(j=v.length;j--;)(I=v[j])&&!I.touched&&I.remove?.(!1,u);else A&&!g?.enabled?(i.forEach((G,K)=>{G===v[K].y||v[K].destroyed||v[K].update(G,!1,void 0,!1)}),w.length=0):q=!1;if(v.forEach(G=>{G&&(G.touched=!1)}),!q)return!1;w.forEach(G=>{this.addPoint(G,!1,void 0,void 0,!1)},this);let ee=this.getColumn("x");return N!==null&&this.xIncrement===null&&ee.length&&(this.xIncrement=Md(ee),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(i,u=!0,h,m){let g=this.points,v=g?.length||0,w=this.options,A=this.chart,N=w.dataSorting,B=this.xAxis,j=w.turboThreshold,I=this.dataTable,U=this.dataColumnKeys(),q=this.pointValKey||"y",ee=(this.pointArrayMap||[]).length,G=w.keys,K,de,me=0,ve=1,be;A.options.chart.allowMutatingData||(w.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,be=Lo(!0,i));let Ae=(i=be||i||[]).length;if(N?.enabled&&(i=this.sortData(i)),A.options.chart.allowMutatingData&&m!==!1&&Ae&&v&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(de=this.updateData(i,h)),!de){this.xIncrement=null,this.colorCounter=0;let Ee=j&&!w.relativeXValue&&Ae>j;if(Ee){let Ce=this.getFirstValidPoint(i),Fe=this.getFirstValidPoint(i,Ae-1,-1),$e=Pe=>!!(_d(Pe)&&(G||xs(Pe[0])));if(xs(Ce)&&xs(Fe)){let Pe=[],et=[];for(let rt of i)Pe.push(this.autoIncrement()),et.push(rt);I.setColumns({x:Pe,[q]:et})}else if($e(Ce)&&$e(Fe))if(ee){let Pe=+(Ce.length===ee),et=Array(U.length).fill(0).map(()=>[]);for(let rt of i){Pe&&et[0].push(this.autoIncrement());for(let nt=Pe;nt<=ee;nt++)et[nt]?.push(rt[nt-Pe])}I.setColumns(U.reduce((rt,nt,ct)=>(rt[nt]=et[ct],rt),{}))}else{G&&(me=G.indexOf("x"),ve=G.indexOf("y"),me=me>=0?me:0,ve=ve>=0?ve:1),Ce.length===1&&(ve=0);let Pe=[],et=[];if(me===ve)for(let rt of i)Pe.push(this.autoIncrement()),et.push(rt[ve]);else for(let rt of i)Pe.push(rt[me]),et.push(rt[ve]);I.setColumns({x:Pe,[q]:et})}else Ee=!1}if(!Ee){let Ce=U.reduce((Fe,$e)=>(Fe[$e]=[],Fe),{});for(K=0;K<Ae;K++){let Fe=this.pointClass.prototype.applyOptions.apply({series:this},[i[K]]);for(let $e of U)Ce[$e][K]=Fe[$e]}I.setColumns(Ce)}for(cm(this.getColumn("y")[0])&&Od(14,!0,A),this.data=[],this.options.data=this.userOptions.data=i,K=v;K--;)g[K]?.destroy();B&&(B.minRange=B.userMinRange),this.isDirty=A.isDirtyBox=!0,this.isDirtyData=!!g,h=!1}w.legendType==="point"&&(this.processData(),this.generatePoints()),u&&A.redraw(h)}sortData(i){let u=this,h=u.options.dataSorting.sortKey||"y",m=function(g,v){return rs(v)&&g.pointClass.prototype.optionsToObject.call({series:g},v)||{}};return i.forEach(function(g,v){i[v]=m(u,g),i[v].index=v},this),i.concat().sort((g,v)=>{let w=Wc(h,g),A=Wc(h,v);return A<w?-1:+(A>w)}).forEach(function(g,v){g.x=v},this),u.linkedSeries&&u.linkedSeries.forEach(function(g){let v=g.options,w=v.data;!v.dataSorting?.enabled&&w&&(w.forEach(function(A,N){w[N]=m(g,A),i[N]&&(w[N].x=i[N].x,w[N].index=N)}),g.setData(w,!1))}),i}getProcessedData(i){let u=this,{dataTable:h,isCartesian:m,options:g,xAxis:v}=u,w=g.cropThreshold,A=i||u.getExtremesFromAll,N=v?.logarithmic,B=h.rowCount,j,I,U=0,q,ee,G,K=u.getColumn("x"),de=h,me=!1;return v&&(ee=(q=v.getExtremes()).min,G=q.max,me=!!(v.categories&&!v.names.length),m&&u.sorted&&!A&&(!w||B>w||u.forceCrop)&&(K[B-1]<ee||K[0]>G?de=new Bo:u.getColumn(u.pointValKey||"y").length&&(K[0]<ee||K[B-1]>G)&&(de=(j=this.cropData(h,ee,G)).modified,U=j.start,I=!0))),K=de.getColumn("x")||[],{modified:de,cropped:I,cropStart:U,closestPointRange:Bd([N?K.map(N.log2lin):K],()=>u.requireSorting&&!me&&Od(15,!1,u.chart))}}processData(i){let u=this.xAxis,h=this.dataTable;if(this.isCartesian&&!this.isDirty&&!u.isDirty&&!this.yAxis.isDirty&&!i)return!1;let m=this.getProcessedData();h.modified=m.modified,this.cropped=m.cropped,this.cropStart=m.cropStart,this.closestPointRange=this.basePointRange=m.closestPointRange,jr(this,"afterProcessData")}cropData(i,u,h){let m=i.getColumn("x",!0)||[],g=m.length,v={},w,A,N=0,B=g;for(w=0;w<g;w++)if(m[w]>=u){N=Math.max(0,w-1);break}for(A=w;A<g;A++)if(m[A]>h){B=A+1;break}for(let j of this.dataColumnKeys()){let I=i.getColumn(j,!0);I&&(v[j]=I.slice(N,B))}return{modified:new Bo({columns:v}),start:N,end:B}}generatePoints(){let i=this.options,u=this.processedData||i.data,h=this.dataTable.getModified(),m=this.getColumn("x",!0),g=this.pointClass,v=h.rowCount,w=this.cropStart||0,A=this.hasGroupedData,N=i.keys,B=[],j=i.dataGrouping?.groupAll?w:0,I=this.pointArrayMap||["y"],U=this.dataColumnKeys(),q,ee,G,K,de=this.data,me;if(!de&&!A){let ve=[];ve.length=u?.length||0,de=this.data=ve}for(N&&A&&(this.options.keys=!1),K=0;K<v;K++)ee=w+K,A?((G=new g(this,h.getRow(K,U)||[])).dataGroup=this.groupMap?.[j+K],G.dataGroup?.options&&(G.options=G.dataGroup.options,Bl(G,G.dataGroup.options),delete G.dataLabels,G.key=G.name??G.category)):(G=de[ee],me=u?u[ee]:h.getRow(K,I),G||me===void 0?G&&(G.category=this.xAxis?.categories?.[G.x]??G.x,G.key=G.name??G.category):de[ee]=G=new g(this,me,m[K])),G&&(G.index=A?j+K:ee,B[K]=G);if(this.options.keys=N,de&&(v!==(q=de.length)||A))for(K=0;K<q;K++)K!==w||A||(K+=v),de[K]&&(de[K].destroyElements(),de[K].plotX=void 0);this.data=de,this.points=B,jr(this,"afterGeneratePoints")}getXExtremes(i){return{min:Cf(i),max:Md(i)}}getExtremes(i,u){let{xAxis:h,yAxis:m}=this,g=u||this.getExtremesFromAll||this.options.getExtremesFromAll,v=g&&this.cropped?this.dataTable:this.dataTable.getModified(),w=v.rowCount,A=i||this.stackedYData,N=A?[A]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(be=>v.getColumn(be,!0)||[])||[],B=this.getColumn("x",!0),j=[],I=this.requireSorting&&!this.is("column")?1:0,U=!!m&&m.positiveValuesOnly,q=g||this.cropped||!h,ee,G,K,de=0,me=0;for(h&&(de=(ee=h.getExtremes()).min,me=ee.max),K=0;K<w;K++)if(G=B[K],q||(B[K+I]||G)>=de&&(B[K-I]||G)<=me)for(let be of N){let Ae=be[K];xs(Ae)&&(Ae>0||!U)&&j.push(Ae)}let ve={activeYData:j,dataMin:Cf(j),dataMax:Md(j)};return jr(this,"afterGetExtremes",{dataExtremes:ve}),ve}applyExtremes(){let i=this.getExtremes();return this.dataMin=i.dataMin,this.dataMax=i.dataMax,i}getFirstValidPoint(i,u=0,h=1){let m=i.length,g=u;for(;g>=0&&g<m;){if(rs(i[g]))return i[g];g+=h}}translate(){this.generatePoints();let i=this.options,u=i.stacking,h=this.xAxis,m=this.enabledDataSorting,g=this.yAxis,v=this.points,w=v.length,A=this.pointPlacementToXValue(),N=!!A,B=i.threshold,j=i.startFromThreshold?B:0,I=i?.nullInteraction&&g.len,U,q,ee,G,K=Number.MAX_VALUE;function de(me){return kf(me,-1e9,1e9)}for(U=0;U<w;U++){let me,ve=v[U],be=ve.x,Ae,Ee,Ce=ve.y,Fe=ve.low,$e=u&&g.stacking?.stacks[(this.negStacks&&Ce<(j?0:B)?"-":"")+this.stackKey];ve.plotX=xs(q=h.translate(be,!1,!1,!1,!0,A))?Rd(de(q)):void 0,u&&this.visible&&$e&&$e[be]&&(G=this.getStackIndicator(G,be,this.index),!ve.isNull&&G.key&&(Ee=(Ae=$e[be]).points[G.key]),Ae&&_d(Ee)&&(Fe=Ee[0],Ce=Ee[1],Fe===j&&G.key===$e[be].base&&(Fe=Br(xs(B)?B:g.min)),g.positiveValuesOnly&&rs(Fe)&&Fe<=0&&(Fe=void 0),ve.total=ve.stackTotal=Br(Ae.total),ve.percentage=rs(ve.y)&&Ae.total?ve.y/Ae.total*100:void 0,ve.stackY=Ce,this.irregularWidths||Ae.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ve.yBottom=rs(Fe)?de(g.translate(Fe,!1,!0,!1,!0)):void 0,this.dataModify&&(Ce=this.dataModify.modifyValue(Ce,U)),xs(Ce)&&ve.plotX!==void 0?me=xs(me=g.translate(Ce,!1,!0,!1,!0))?de(me):void 0:!xs(Ce)&&I&&(me=I),ve.plotY=me,ve.isInside=this.isPointInside(ve),ve.clientX=N?Rd(h.translate(be,!1,!1,!1,!0,A)):q,ve.negative=(ve.y||0)<(B||0),ve.isNull||ve.visible===!1||(ee!==void 0&&(K=Math.min(K,Math.abs(q-ee))),ee=q),ve.zone=this.zones.length?ve.getZone():void 0,!ve.graphic&&this.group&&m&&(ve.isNew=!0)}this.closestPointRangePx=K,jr(this,"afterTranslate")}getValidPoints(i,u,h){let m=this.chart;return(i||this.points||[]).filter(function(g){let{plotX:v,plotY:w}=g;return(!!h||!g.isNull&&!!xs(w))&&(!u||!!m.isInsidePlot(v,w,{inverted:m.inverted}))&&g.visible!==!1})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:i,group:u,markerGroup:h}=this,m=i.sharedClips,g=i.renderer,v=i.getClipBox(this),w=this.getSharedClipKey(),A=m[w];jr(this,"setClip",{clipBox:v}),A?A.animate(v):m[w]=A=g.clipRect(v),u&&u.clip(this.options.clip===!1?void 0:A),h&&h.clip()}animate(i){let{chart:u,group:h,markerGroup:m}=this,g=u.inverted,v=Af(this.options.animation),w=[this.getSharedClipKey(),v.duration,v.easing,v.defer].join(","),A=u.sharedClips[w],N=u.sharedClips[w+"m"];if(i&&h){let B=u.getClipBox(this);if(A)A.attr("height",B.height);else{B.width=0,g&&(B.x=u.plotHeight),A=u.renderer.clipRect(B),u.sharedClips[w]=A;let j={x:-99,y:-99,width:g?u.plotWidth+199:99,height:g?99:u.plotHeight+199};N=u.renderer.clipRect(j),u.sharedClips[w+"m"]=N}h.clip(A),m?.clip(N)}else if(A&&!A.hasClass("highcharts-animating")){let B=u.getClipBox(this),j=v.step;(m?.element.childNodes.length||u.series.length>1)&&(v.step=function(I,U){j&&j.apply(U,arguments),U.prop==="width"&&N?.element&&N.attr(g?"height":"width",I+99)}),A.addClass("highcharts-animating").animate(B,v)}}afterAnimate(){this.setClip(),Dd(this.chart.sharedClips,(i,u,h)=>{i&&!this.chart.container.querySelector(`[clip-path="url(#${i.id})"]`)&&(i.destroy(),delete h[u])}),this.finishedAnimating=!0,jr(this,"afterAnimate")}drawPoints(i=this.points){let u,h,m,g,v,w,A,N=this.chart,B=N.styledMode,{colorAxis:j,options:I}=this,U=I.marker,q=I.nullInteraction,ee=this[this.specialGroup||"markerGroup"],G=this.xAxis,K=Br(U.enabled,!G||!!G.isRadial||null,this.closestPointRangePx>=U.enabledThreshold*U.radius);if(U.enabled!==!1||this._hasPointMarkers)for(u=0;u<i.length;u++){g=(m=(h=i[u]).graphic)?"animate":"attr",v=h.marker||{},w=!!h.marker;let de=h.isNull;if((K&&!rs(v.enabled)||v.enabled)&&(!de||q)&&h.visible!==!1){let me=Br(v.symbol,this.symbol,"rect");A=this.markerAttribs(h,h.selected&&"select"),this.enabledDataSorting&&(h.startXPos=G.reversed?-(A.width||0):G.width);let ve=h.isInside!==!1;if(!m&&ve&&((A.width||0)>0||h.hasImage)&&(h.graphic=m=N.renderer.symbol(me,A.x,A.y,A.width,A.height,w?v:U).add(ee),this.enabledDataSorting&&N.hasRendered&&(m.attr({x:h.startXPos}),g="animate")),m&&g==="animate"&&m[ve?"show":"hide"](ve).animate(A),m){let be=this.pointAttribs(h,B||!h.selected?void 0:"select");B?j&&m.css({fill:be.fill}):m[g](be)}m&&m.addClass(h.getClassName(),!0)}else m&&(h.graphic=m.destroy())}}markerAttribs(i,u){let h=this.options,m=h.marker,g=i.marker||{},v=g.symbol||m.symbol,w={},A,N,B=Br(g.radius,m?.radius);u&&(A=m.states[u],N=g.states&&g.states[u],B=Br(N?.radius,A?.radius,B&&B+(A?.radiusPlus||0))),i.hasImage=v&&v.indexOf("url")===0,i.hasImage&&(B=0);let j=i.pos();return xs(B)&&j&&(h.crisp&&(j[0]=am(j[0],i.hasImage?0:v==="rect"?m?.lineWidth||0:1)),w.x=j[0]-B,w.y=j[1]-B),B&&(w.width=w.height=2*B),w}pointAttribs(i,u){let h=this.options,m=h.marker,g=i?.options,v=g?.marker||{},w=g?.color,A=i?.color,N=i?.zone?.color,B,j,I=this.color,U,q,ee=Br(v.lineWidth,m.lineWidth),G=i?.isNull&&h.nullInteraction?0:1;return I=w||N||A||I,U=v.fillColor||m.fillColor||I,q=v.lineColor||m.lineColor||I,u=u||"normal",B=m.states[u]||{},ee=Br((j=v.states&&v.states[u]||{}).lineWidth,B.lineWidth,ee+Br(j.lineWidthPlus,B.lineWidthPlus,0)),U=j.fillColor||B.fillColor||U,q=j.lineColor||B.lineColor||q,{stroke:q,"stroke-width":ee,fill:U,opacity:G=Br(j.opacity,B.opacity,G)}}destroy(i){let u,h,m=this,g=m.chart,v=/AppleWebKit\/533/.test(Ef.navigator.userAgent),w=m.data||[];for(jr(m,"destroy",{keepEventsForUpdate:i}),this.removeEvents(i),(m.axisTypes||[]).forEach(function(A){h=m[A],h?.series&&(Tf(h.series,m),h.isDirty=h.forceRedraw=!0)}),m.legendItem&&m.chart.legend.destroyItem(m),u=w.length;u--;)w[u]?.destroy?.();for(let A of m.zones)lm(A,void 0,!0);Me.clearTimeout(m.animationTimeout),Dd(m,function(A,N){A instanceof mi&&!A.survive&&A[v&&N==="group"?"hide":"destroy"]()}),g.hoverSeries===m&&(g.hoverSeries=void 0),Tf(g.series,m),g.orderItems("series"),Dd(m,function(A,N){i&&N==="hcEvents"||delete m[N]})}applyZones(){let{area:i,chart:u,graph:h,zones:m,points:g,xAxis:v,yAxis:w,zoneAxis:A}=this,{inverted:N,renderer:B}=u,j=this[`${A}Axis`],{isXAxis:I,len:U=0,minPointOffset:q=0}=j||{},ee=(h?.strokeWidth()||0)/2+1,G=(K,de=0,me=0)=>{N&&(me=U-me);let{translated:ve=0,lineClip:be}=K,Ae=me-ve;be?.push(["L",de,Math.abs(Ae)<ee?me-ee*(Ae<=0?-1:1):ve])};if(m.length&&(h||i)&&j&&xs(j.min)){let K=j.getExtremes().max+q,de=be=>{be.forEach((Ae,Ee)=>{(Ae[0]==="M"||Ae[0]==="L")&&(be[Ee]=[Ae[0],I?U-Ae[1]:Ae[1],I?Ae[2]:U-Ae[2]])})};if(m.forEach(be=>{be.lineClip=[],be.translated=kf(j.toPixels(Br(be.value,K),!0)||0,0,U)}),h&&!this.showLine&&h.hide(),i&&i.hide(),A==="y"&&g.length<v.len)for(let be of g){let{plotX:Ae,plotY:Ee,zone:Ce}=be,Fe=Ce&&m[m.indexOf(Ce)-1];Ce&&G(Ce,Ae,Ee),Fe&&G(Fe,Ae,Ee)}let me=[],ve=j.toPixels(j.getExtremes().min-q,!0);m.forEach(be=>{let Ae=be.lineClip||[],Ee=Math.round(be.translated||0);v.reversed&&Ae.reverse();let{clip:Ce,simpleClip:Fe}=be,$e=0,Pe=0,et=v.len,rt=w.len;I?($e=Ee,et=ve):(Pe=Ee,rt=ve);let nt=[["M",$e,Pe],["L",et,Pe],["L",et,rt],["L",$e,rt],["Z"]],ct=[nt[0],...Ae,nt[1],nt[2],...me,nt[3],nt[4]];me=Ae.reverse(),ve=Ee,N&&(de(ct),i&&de(nt)),Ce?(Ce.animate({d:ct}),Fe?.animate({d:nt})):(Ce=be.clip=B.path(ct),i&&(Fe=be.simpleClip=B.path(nt))),h&&be.graph?.clip(Ce),i&&be.area?.clip(Fe)})}else this.visible&&(h&&h.show(),i&&i.show())}plotGroup(i,u,h,m,g){let v=this[i],w=!v,A={visibility:h,zIndex:m||.1};return rs(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(A.opacity=this.opacity),v||(this[i]=v=this.chart.renderer.g().add(g)),v.addClass("highcharts-"+u+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(rs(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(v.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),v.attr(A)[w?"attr":"animate"](this.getPlotBox(u)),v}getPlotBox(i){let u=this.xAxis,h=this.yAxis,m=this.chart,g=m.inverted&&!m.polar&&u&&this.invertible&&i==="series";m.inverted&&(u=h,h=this.xAxis);let v={scale:1,translateX:u?u.left:m.plotLeft,translateY:h?h.top:m.plotTop,name:i};jr(this,"getPlotBox",v);let{scale:w,translateX:A,translateY:N}=v;return{translateX:A,translateY:N,rotation:90*!!g,rotationOriginX:g?w*(u.len-h.len)/2:0,rotationOriginY:g?w*(u.len+h.len)/2:0,scaleX:g?-w:w,scaleY:w}}removeEvents(i){let{eventsToUnbind:u}=this;i||um(this),u.length&&(u.forEach(h=>{h()}),u.length=0)}render(){let i=this,{chart:u,options:h,hasRendered:m}=i,g=Af(h.animation),v=i.visible?"inherit":"hidden",w=h.zIndex,A=u.seriesGroup,N=i.finishedAnimating?0:g.duration;jr(this,"render"),i.plotGroup("group","series",v,w,A),i.markerGroup=i.plotGroup("markerGroup","markers",v,w,A),h.clip!==!1&&i.setClip(),N&&i.animate?.(!0),i.drawGraph&&(i.drawGraph(),i.applyZones()),i.visible&&i.drawPoints(),i.drawDataLabels?.(),i.redrawPoints?.(),h.enableMouseTracking&&i.drawTracker?.(),N&&i.animate?.(),m||(N&&g.defer&&(N+=g.defer),i.animationTimeout=Ld(()=>{i.afterAnimate()},N||0)),i.isDirty=!1,i.hasRendered=!0,jr(i,"afterRender")}redraw(){let i=this.isDirty||this.isDirtyData;this.translate(),this.render(),i&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(i,u){let{xAxis:h,yAxis:m}=this,g=this.chart.inverted;return this.searchKDTree({clientX:g?h.len-i.chartY+h.pos:i.chartX-h.pos,plotY:g?m.len-i.chartX+m.pos:i.chartY-m.pos},u,i)}buildKDTree(i){this.buildingKdTree=!0;let u=this,h=u.options,m=h.findNearestPointBy.indexOf("y")>-1?2:1;delete u.kdTree,Ld(function(){u.kdTree=(function g(v,w,A){let N,B,j=v?.length;if(j)return N=u.kdAxisArray[w%A],v.sort((I,U)=>(I[N]||0)-(U[N]||0)),{point:v[B=Math.floor(j/2)],left:g(v.slice(0,B),w+1,A),right:g(v.slice(B+1),w+1,A)}})(u.getValidPoints(void 0,!u.directTouch,h?.nullInteraction),m,m),u.buildingKdTree=!1},h.kdNow||i?.type==="touchstart"?0:1)}searchKDTree(i,u,h,m,g){let v=this,[w,A]=this.kdAxisArray,N=u?"distX":"dist",B=(v.options.findNearestPointBy||"").indexOf("y")>-1?2:1,j=!!v.isBubble,I=m||((q,ee,G)=>{let K=q[G]||0,de=ee[G]||0;return[K===de&&q.index>ee.index||K<de?q:ee,!1]}),U=g||((q,ee)=>q<ee);if(this.kdTree||this.buildingKdTree||this.buildKDTree(h),this.kdTree)return(function q(ee,G,K,de){let me,ve,be,Ae,Ee,Ce,Fe,$e=G.point,Pe=v.kdAxisArray[K%de],et=$e,rt=!1;me=ee[w],ve=$e[w],be=rs(me)&&rs(ve)?me-ve:null,Ae=ee[A],Ee=$e[A],Ce=rs(Ae)&&rs(Ee)?Ae-Ee:0,Fe=j&&$e.marker?.radius||0,$e.dist=Math.sqrt((be&&be*be||0)+Ce*Ce)-Fe,$e.distX=rs(be)?Math.abs(be)-Fe:Number.MAX_VALUE;let nt=(ee[Pe]||0)-($e[Pe]||0)+(j&&$e.marker?.radius||0),ct=nt<0?"left":"right",lt=nt<0?"right":"left";return G[ct]&&([et,rt]=I($e,q(ee,G[ct],K+1,de),N)),G[lt]&&U(Math.sqrt(nt*nt),et[N],rt)&&(et=I(et,q(ee,G[lt],K+1,de),N)[0]),et})(i,this.kdTree,B,B)}pointPlacementToXValue(){let{options:i,xAxis:u}=this,h=i.pointPlacement;return h==="between"&&(h=u.reversed?-.5:.5),xs(h)?h*(i.pointRange||u.pointRange):0}isPointInside(i){let{chart:u,xAxis:h,yAxis:m}=this,{plotX:g=-1,plotY:v=-1}=i;return v>=0&&v<=(m?m.len:u.plotHeight)&&g>=0&&g<=(h?h.len:u.plotWidth)}drawTracker(){let i=this,u=i.options,h=u.trackByArea,m=[].concat((h?i.areaPath:i.graphPath)||[]),g=i.chart,v=g.pointer,w=g.renderer,A=g.options.tooltip?.snap||0,N=()=>{u.enableMouseTracking&&g.hoverSeries!==i&&i.onMouseOver()},B="rgba(192,192,192,"+(im?1e-4:.002)+")",j=i.tracker;j?j.attr({d:m}):i.graph&&(i.tracker=j=w.path(m).attr({visibility:i.visible?"inherit":"hidden",zIndex:2}).addClass(h?"highcharts-tracker-area":"highcharts-tracker-line").add(i.group),g.styledMode||j.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:B,fill:h?B:"none","stroke-width":i.graph.strokeWidth()+(h?0:2*A)}),[i.tracker,i.markerGroup,...i.dataLabelsGroups||[]].forEach(I=>{I&&(I.addClass("highcharts-tracker").on("mouseover",N).on("mouseout",U=>{v?.onTrackerMouseOut(U)}),u.cursor&&!g.styledMode&&I.css({cursor:u.cursor}),I.on("touchstart",N))})),jr(this,"afterDrawTracker")}addPoint(i,u,h,m,g){let v,w,A=this.options,{chart:N,data:B,dataTable:j,xAxis:I}=this,U=I?.hasNames&&I.names,q=A.data,ee=this.getColumn("x");u=Br(u,!0);let G={series:this};this.pointClass.prototype.applyOptions.apply(G,[i]);let K=G.x;if(w=ee.length,this.requireSorting&&K<ee[w-1])for(v=!0;w&&ee[w-1]>K;)w--;j.setRow(G,w,!0,{addColumns:!1}),U&&G.name&&(U[K]=G.name),q?.splice(w,0,i),(v||this.processedData)&&(this.data.splice(w,0,null),this.processData()),A.legendType==="point"&&this.generatePoints(),h&&(B[0]&&B[0].remove?B[0].remove(!1):([B,q].filter(rs).forEach(de=>{de.shift()}),j.deleteRows(0))),g!==!1&&jr(this,"addPoint",{point:G}),this.isDirty=!0,this.isDirtyData=!0,u&&N.redraw(m)}removePoint(i,u,h){let m=this,{chart:g,data:v,points:w,dataTable:A}=m,N=v[i],B=function(){[w?.length===v.length?w:void 0,v,m.options.data].filter(rs).forEach(j=>{j.splice(i,1)}),A.deleteRows(i),N?.destroy(),m.isDirty=!0,m.isDirtyData=!0,u&&g.redraw()};sm(h,g),u=Br(u,!0),N?N.firePointEvent("remove",null,B):B()}remove(i,u,h,m){let g=this,v=g.chart;function w(){g.destroy(m),v.isDirtyLegend=v.isDirtyBox=!0,v.linkSeries(m),Br(i,!0)&&v.redraw(u)}h!==!1?jr(g,"remove",null,w):w()}update(i,u){jr(this,"update",{options:i=om(i,this.userOptions)});let h=this,m=h.chart,g=h.userOptions,v=h.initialType||h.type,w=m.options.plotOptions,A=Ol[v].prototype,N=h.finishedAnimating&&{animation:!1},B={},j,I,U=Bn.keepProps.slice(),q=i.type||g.type||m.options.chart.type,ee=!(this.hasDerivedData||q&&q!==this.type||i.keys!==void 0||i.pointStart!==void 0||i.pointInterval!==void 0||i.relativeXValue!==void 0||i.joinBy||i.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(K=>h.hasOptionChanged(K)));q=q||v,ee?(U.push.apply(U,Bn.keepPropsForPoints),i.visible!==!1&&U.push("area","graph"),h.parallelArrays.forEach(function(K){U.push(K+"Data")}),i.data&&(i.dataSorting&&Bl(h.options.dataSorting,i.dataSorting),this.setData(i.data,!1))):this.dataTable.modified=this.dataTable,i.dataLabels&&g.dataLabels&&(i.dataLabels=this.mergeArrays(g.dataLabels,i.dataLabels)),i=Lo(g,{index:g.index===void 0?h.index:g.index,pointStart:w?.series?.pointStart??g.pointStart??h.getColumn("x")[0]},!ee&&{data:h.options.data},i,N),ee&&i.data&&(i.data=h.options.data),(U=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","transformGroup"].concat(U)).forEach(function(K){U[K]=h[K],delete h[K]});let G=!1;if(Ol[q]){if(G=q!==h.type,h.remove(!1,!1,!1,!0),G)if(m.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(h,Ol[q].prototype);else{let K=Object.hasOwnProperty.call(h,"hcEvents")&&h.hcEvents;for(I in A)h[I]=void 0;Bl(h,Ol[q].prototype),K?h.hcEvents=K:delete h.hcEvents}}else Od(17,!0,m,{missingModuleFor:q});if(U.forEach(function(K){h[K]=U[K]}),h.init(m,i),ee&&this.points)for(let K of((j=h.options).visible===!1?(B.graphic=1,B.dataLabel=1):(this.hasMarkerChanged(j,g)&&(B.graphic=1),h.hasDataLabels?.()||(B.dataLabel=1)),this.points))K?.series&&(K.resolveColor(),Object.keys(B).length&&K.destroyElements(B),j.showInLegend===!1&&K.legendItem&&m.legend.destroyItem(K));h.initialType=v,m.linkSeries(),m.setSortedData(),G&&h.linkedSeries.length&&(h.isDirtyData=!0),jr(this,"afterUpdate"),Br(u,!0)&&m.redraw(!!ee&&void 0)}setName(i){this.name=this.options.name=this.userOptions.name=i,this.chart.isDirtyLegend=!0}hasOptionChanged(i){let u=this.chart,h=this.options[i],m=u.options.plotOptions,g=this.userOptions[i],v=Br(m?.[this.type]?.[i],m?.series?.[i]);return g&&!rs(v)?h!==g:h!==Br(v,h)}onMouseOver(){let i=this.chart,u=i.hoverSeries;i.pointer?.setHoverChartIndex(),u&&u!==this&&u.onMouseOut(),this.options.events.mouseOver&&jr(this,"mouseOver"),this.setState("hover"),i.hoverSeries=this}onMouseOut(){let i=this.options,u=this.chart,h=u.tooltip,m=u.hoverPoint;u.hoverSeries=null,m&&m.onMouseOut(),this&&i.events.mouseOut&&jr(this,"mouseOut"),h&&!this.stickyTracking&&(!h.shared||this.noSharedTooltip)&&h.hide(),u.series.forEach(function(g){g.setState("",!0)})}setState(i,u){let h=this,{graph:m,options:g}=h,{inactiveOtherPoints:v,states:w}=g,A=Br(w?.[i||"normal"]?.animation,h.chart.options.chart.animation),{lineWidth:N,opacity:B}=g;if(i=i||"",h.state!==i&&([h.group,h.markerGroup,...h.dataLabelsGroups||[]].forEach(function(j){j&&(h.state&&j.removeClass("highcharts-series-"+h.state),i&&j.addClass("highcharts-series-"+i))}),h.state=i,!h.chart.styledMode)){if(w[i]?.enabled===!1)return;if(i&&(N=w[i].lineWidth||N+(w[i].lineWidthPlus||0),B=Br(w[i].opacity,B)),m&&!m.dashstyle&&xs(N))for(let j of[m,...this.zones.map(I=>I.graph)])j?.animate({"stroke-width":N},A);v||[h.group,h.markerGroup,...h.dataLabelsGroups||[],h.labelBySeries].forEach(function(j){j?.animate({opacity:B},A)})}u&&v&&h.points&&h.setAllPointsToState(i||void 0)}setAllPointsToState(i){this.points.forEach(function(u){u.setState&&u.setState(i)})}setVisible(i,u){let h=this,m=h.chart,g=m.options.chart.ignoreHiddenSeries,v=h.visible;h.visible=i=h.options.visible=h.userOptions.visible=i===void 0?!v:i;let w=i?"show":"hide";["group","markerGroup","tracker","tt"].forEach(A=>{h[A]?.[w]()}),h.dataLabelsGroups?.forEach(A=>{A?.[w]()}),(m.hoverSeries===h||m.hoverPoint?.series===h)&&h.onMouseOut(),h.legendItem&&m.legend.colorizeItem(h,i),h.isDirty=!0,h.options.stacking&&m.series.forEach(A=>{A.options.stacking&&A.visible&&(A.isDirty=!0)}),h.linkedSeries.forEach(A=>{A.setVisible(i,!1)}),g&&(m.isDirtyBox=!0),jr(h,w),u!==!1&&m.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(i){this.selected=i=this.options.selected=i===void 0?!this.selected:i,this.checkbox&&(this.checkbox.checked=i),jr(this,i?"select":"unselect")}shouldShowTooltip(i,u,h={}){return h.series=this,h.visiblePlotOnly=!0,this.chart.isInsidePlot(i,u,h)}drawLegendSymbol(i,u){_o[this.options.legendSymbol||"rectangle"]?.call(this,i,u)}}Bn.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:k}=this.series.chart;return typeof this.y!="number"?"":k(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},Bn.types=Ur.seriesTypes,Bn.registerType=Ur.registerSeriesType,Bn.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],Bn.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],Bl(Bn.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:ps,requireSorting:!0,sorted:!0}),Ur.series=Bn;let Xs=Bn,{animObject:jf,setAnimation:dm}=vs,{registerEventOptions:Mf}=bo,{composed:nv,marginNames:Id}=re,{distribute:hm}=wa,{format:fm}=Gs,{addEvent:Io,createElement:pm,css:mm,defined:Rf,discardElement:iv,find:xm,fireEvent:pn,isNumber:Pd,merge:wi,pick:_n,pushUnique:gm,relativeLength:_l,stableSort:ym,syncTimeout:Of}=Me;class Fd{constructor(i,u){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=i,this.setOptions(u),u.enabled&&(this.render(),Mf(this,u),Io(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),Io(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(i){let u=_n(i.padding,8);this.options=i,this.chart.styledMode||(this.itemStyle=i.itemStyle,this.itemHiddenStyle=wi(this.itemStyle,i.itemHiddenStyle)),this.itemMarginTop=i.itemMarginTop,this.itemMarginBottom=i.itemMarginBottom,this.padding=u,this.initialItemY=u-5,this.symbolWidth=_n(i.symbolWidth,16),this.pages=[],this.proximate=i.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(i,u){let h=this.chart;this.setOptions(wi(!0,this.options,i)),"events"in this.options&&Mf(this,this.options),this.destroy(),h.isDirtyLegend=h.isDirtyBox=!0,_n(u,!0)&&h.redraw(),pn(this,"afterUpdate",{redraw:u})}colorizeItem(i,u){let h=i.color,{area:m,group:g,label:v,line:w,symbol:A}=i.legendItem||{};if((i instanceof Xs||i instanceof ps)&&(i.color=i.options?.legendSymbolColor||h),g?.[u?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:N={}}=this,B=N.color,{fillColor:j,fillOpacity:I,lineColor:U,marker:q}=i.options,ee=G=>(!u&&(G.fill&&(G.fill=B),G.stroke&&(G.stroke=B)),G);v?.css(wi(u?this.itemStyle:N)),w?.attr(ee({stroke:U||i.color})),A&&A.attr(ee(q&&A.isMarker?i.pointAttribs():{fill:i.color})),m?.attr(ee({fill:j||i.color,"fill-opacity":j?1:I??.75}))}i.color=h,pn(this,"afterColorizeItem",{item:i,visible:u})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(i){let{group:u,x:h=0,y:m=0}=i.legendItem||{},g=this.options,v=g.symbolPadding,w=!g.rtl,A=i.checkbox;if(u?.element){let N={translateX:w?h:this.legendWidth-h-2*v-4,translateY:m},B=()=>{pn(this,"afterPositionItem",{item:i})};u[Rf(u.translateY)?"animate":"attr"](N,void 0,B)}A&&(A.x=h,A.y=m)}destroyItem(i){let u=i.legendItem||{};for(let h of["group","label","line","symbol"])u[h]&&(u[h]=u[h].destroy());i.checkbox=iv(i.checkbox),i.legendItem=void 0}destroy(){for(let i of this.getAllItems())this.destroyItem(i);for(let i of["clipRect","up","down","pager","nav","box","title","group"])this[i]&&(this[i]=this[i].destroy());this.display=null}positionCheckboxes(){let i,u=this.group?.alignAttr,h=this.clipHeight||this.legendHeight,m=this.titleHeight;u&&(i=u.translateY,this.allItems.forEach(function(g){let v,w=g.checkbox;w&&(v=i+m+w.y+(this.scrollOffset||0)+3,mm(w,{left:u.translateX+g.checkboxOffset+w.x-20+"px",top:v+"px",display:this.proximate||v>i-6&&v<i+h-6?"":"none"}))},this))}renderTitle(){let i=this.options,u=this.padding,h=i.title,m,g=0;h.text&&(this.title||(this.title=this.chart.renderer.label(h.text,u-3,u-4,void 0,void 0,void 0,i.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(h.style),this.title.add(this.group)),h.width||this.title.css({width:this.maxLegendWidth+"px"}),g=(m=this.title.getBBox()).height,this.offsetWidth=m.width,this.contentGroup.attr({translateY:g})),this.titleHeight=g}setText(i){let u=this.options;i.legendItem.label.attr({text:u.labelFormat?fm(u.labelFormat,i,this.chart):u.labelFormatter.call(i)})}renderItem(i){let u=i.legendItem=i.legendItem||{},h=this.chart,m=h.renderer,g=this.options,v=g.layout==="horizontal",w=this.symbolWidth,A=g.symbolPadding||0,N=this.itemStyle,B=this.itemHiddenStyle,j=v?_n(g.itemDistance,20):0,I=!g.rtl,U=!i.series,q=!U&&i.series.drawLegendSymbol?i.series:i,ee=q.options,G=!!this.createCheckboxForItem&&ee&&ee.showCheckbox,K=g.useHTML,de=i.options.className,me=u.label,ve=w+A+j+20*!!G;!me&&(u.group=m.g("legend-item").addClass("highcharts-"+q.type+"-series highcharts-color-"+i.colorIndex+(de?" "+de:"")+(U?" highcharts-series-"+i.index:"")).attr({zIndex:1}).add(this.scrollGroup),u.label=me=m.text("",I?w+A:-A,this.baseline||0,K),h.styledMode||me.css(wi(i.visible?N:B)),me.attr({align:I?"left":"right",zIndex:2}).add(u.group),!this.baseline&&(this.fontMetrics=m.fontMetrics(me),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,me.attr("y",this.baseline),this.symbolHeight=_n(g.symbolHeight,this.fontMetrics.f),g.squareSymbol&&(this.symbolWidth=_n(g.symbolWidth,Math.max(this.symbolHeight,16)),ve=this.symbolWidth+A+j+20*!!G,I&&me.attr("x",this.symbolWidth+A))),q.drawLegendSymbol(this,i),this.setItemEvents&&this.setItemEvents(i,me,K)),G&&!i.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(i),this.colorizeItem(i,i.visible),(h.styledMode||!N.width)&&me.css({width:Math.min(g.itemWidth||this.widthOption||h.spacingBox.width,g.maxWidth?_l(g.maxWidth,h.chartWidth):1/0)-ve+"px"}),this.setText(i);let be=me.getBBox(),Ae=this.fontMetrics?.h||0;i.itemWidth=i.checkboxOffset=g.itemWidth||u.labelWidth||be.width+ve,this.maxItemWidth=Math.max(this.maxItemWidth,i.itemWidth),this.totalItemWidth+=i.itemWidth,this.itemHeight=i.itemHeight=Math.round(u.labelHeight||(be.height>1.5*Ae?be.height:Ae))}layoutItem(i){let u=this.options,h=this.padding,m=u.layout==="horizontal",g=i.itemHeight,v=this.itemMarginBottom,w=this.itemMarginTop,A=m?_n(u.itemDistance,20):0,N=this.maxLegendWidth,B=u.alignColumns&&this.totalItemWidth>N?this.maxItemWidth:i.itemWidth,j=i.legendItem||{};m&&this.itemX-h+B>N&&(this.itemX=h,this.lastLineHeight&&(this.itemY+=w+this.lastLineHeight+v),this.lastLineHeight=0),this.lastItemY=w+this.itemY+v,this.lastLineHeight=Math.max(g,this.lastLineHeight),j.x=this.itemX,j.y=this.itemY,m?this.itemX+=B:(this.itemY+=w+g+v,this.lastLineHeight=g),this.offsetWidth=this.widthOption||Math.max((m?this.itemX-h-(i.checkbox?0:A):B)+h,this.offsetWidth)}getAllItems(){let i=[];return this.chart.series.forEach(function(u){let h=u?.options;u&&_n(h.showInLegend,!Rf(h.linkedTo)&&void 0,!0)&&(i=i.concat(u.legendItem?.labels||(h.legendType==="point"?u.data:u)))}),pn(this,"afterGetAllItems",{allItems:i}),i}getAlignment(){let i=this.options;return this.proximate?i.align.charAt(0)+"tv":i.floating?"":i.align.charAt(0)+i.verticalAlign.charAt(0)+i.layout.charAt(0)}adjustMargins(i,u){let h=this.chart,m=this.options,g=this.getAlignment();g&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((v,w)=>{v.test(g)&&!Rf(i[w])&&(h[Id[w]]=Math.max(h[Id[w]],h.legend[(w+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][w]*m[w%2?"x":"y"]+(m.margin??12)+u[w]+(h.titleOffset[w]||0)))})}proximatePositions(){let i,u=this.chart,h=[],m=this.options.align==="left";for(let g of(this.allItems.forEach(function(v){let w,A,N=m,B,j;v.yAxis&&(v.xAxis.options.reversed&&(N=!N),v.points&&(w=xm(N?v.points:v.points.slice(0).reverse(),function(I){return Pd(I.plotY)})),A=this.itemMarginTop+v.legendItem.label.getBBox().height+this.itemMarginBottom,j=v.yAxis.top-u.plotTop,B=v.visible?(w?w.plotY:v.yAxis.height)+(j-.3*A):j+v.yAxis.height,h.push({target:B,size:A,item:v}))},this),hm(h,u.plotHeight)))i=g.item.legendItem||{},Pd(g.pos)&&(i.y=u.plotTop-u.spacing[0]+g.pos)}render(){let i=this.chart,u=i.spacingBox.width,h=i.renderer,m=this.options,g=this.padding,v=this.getAllItems(),w,A,N,B=this.group,j,I=this.box;this.itemX=g,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=_l(m.width,u-g),j=u-2*g-m.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(j/=2),this.maxLegendWidth=this.widthOption||j,B||(this.group=B=h.g("legend").addClass(m.className||"").attr({zIndex:7}).add(),this.contentGroup=h.g().attr({zIndex:1}).add(B),this.scrollGroup=h.g().add(this.contentGroup)),this.renderTitle(),ym(v,(U,q)=>(U.options?.legendIndex||0)-(q.options?.legendIndex||0)),m.reversed&&v.reverse(),this.allItems=v,this.display=w=!!v.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,v.forEach(this.renderItem,this),v.forEach(this.layoutItem,this),A=(m.maxWidth?Math.min(this.widthOption||this.offsetWidth,j,_l(m.maxWidth,i.chartWidth)||1/0):this.widthOption||this.offsetWidth)+g,N=this.lastItemY+this.lastLineHeight+this.titleHeight,N=this.handleOverflow(N)+g,I||(this.box=I=h.rect().addClass("highcharts-legend-box").attr({r:m.borderRadius}).add(B)),i.styledMode||I.attr({stroke:m.borderColor,"stroke-width":m.borderWidth||0,fill:m.backgroundColor||"none"}).shadow(m.shadow),A>0&&N>0&&I[I.placed?"animate":"attr"](I.crisp.call({},{x:0,y:0,width:A,height:N},I.strokeWidth())),B[w?"show":"hide"](),i.styledMode&&B.getStyle("display")==="none"&&(A=N=0),this.legendWidth=A,this.legendHeight=N,w&&this.align(),this.proximate||this.positionItems(),pn(this,"afterRender")}align(i=this.chart.spacingBox){let u=this.chart,h=this.options,m=i.y;/(lth|ct|rth)/.test(this.getAlignment())&&u.titleOffset[0]>0?m+=u.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&u.titleOffset[2]>0&&(m-=u.titleOffset[2]),m!==i.y&&(i=wi(i,{y:m})),u.hasRendered||(this.group.placed=!1),this.group.align(wi(h,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":h.verticalAlign}),!0,i)}handleOverflow(i){let u=this,h=this.chart,m=h.renderer,g=this.options,v=g.y,w=g.verticalAlign==="top",A=this.padding,N=g.maxHeight,B=g.navigation,j=_n(B.animation,!0),I=B.arrowSize||12,U=this.pages,q=this.allItems,ee=function(Ce){typeof Ce=="number"?Ee.attr({height:Ce}):Ee&&(u.clipRect=Ee.destroy(),u.contentGroup.clip()),u.contentGroup.div&&(u.contentGroup.div.style.clip=Ce?"rect("+A+"px,9999px,"+(A+Ce)+"px,0)":"auto")},G=function(Ce){return u[Ce]=m.circle(0,0,1.3*I).translate(I/2,I/2).add(Ae),h.styledMode||u[Ce].attr("fill","rgba(0,0,0,0.0001)"),u[Ce]},K,de,me,ve,be=h.spacingBox.height+(w?-v:v)-A,Ae=this.nav,Ee=this.clipRect;return g.layout!=="horizontal"||g.verticalAlign==="middle"||g.floating||(be/=2),N&&(be=Math.min(be,N)),U.length=0,i&&be>0&&i>be&&B.enabled!==!1?(this.clipHeight=K=Math.max(be-20-this.titleHeight-A,0),this.currentPage=_n(this.currentPage,1),this.fullHeight=i,q.forEach((Ce,Fe)=>{let $e=(me=Ce.legendItem||{}).y||0,Pe=Math.round(me.label.getBBox().height),et=U.length;(!et||$e-U[et-1]>K&&(de||$e)!==U[et-1])&&(U.push(de||$e),et++),me.pageIx=et-1,de&&ve&&(ve.pageIx=et-1),Fe===q.length-1&&$e+Pe-U[et-1]>K&&$e>U[et-1]&&(U.push($e),me.pageIx=et),$e!==de&&(de=$e),ve=me}),Ee||(Ee=u.clipRect=m.clipRect(0,A-2,9999,0),u.contentGroup.clip(Ee)),ee(K),Ae||(this.nav=Ae=m.g().attr({zIndex:1}).add(this.group),this.up=m.symbol("triangle",0,0,I,I).add(Ae),G("upTracker").on("click",function(){u.scroll(-1,j)}),this.pager=m.text("",15,10).addClass("highcharts-legend-navigation"),!h.styledMode&&B.style&&this.pager.css(B.style),this.pager.add(Ae),this.down=m.symbol("triangle-down",0,0,I,I).add(Ae),G("downTracker").on("click",function(){u.scroll(1,j)})),u.scroll(0),i=be):Ae&&(ee(),this.nav=Ae.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),i}scroll(i,u){let h=this.chart,m=this.pages,g=m.length,v=this.clipHeight,w=this.options.navigation,A=this.pager,N=this.padding,B=this.currentPage+i;B>g&&(B=g),B>0&&(u!==void 0&&dm(u,h),this.nav.attr({translateX:N,translateY:v+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(j){j.attr({class:B===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),A.attr({text:B+"/"+g}),[this.down,this.downTracker].forEach(function(j){j.attr({x:18+this.pager.getBBox().width,class:B===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),h.styledMode||(this.up.attr({fill:B===1?w.inactiveColor:w.activeColor}),this.upTracker.css({cursor:B===1?"default":"pointer"}),this.down.attr({fill:B===g?w.inactiveColor:w.activeColor}),this.downTracker.css({cursor:B===g?"default":"pointer"})),this.scrollOffset=-m[B-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=B,this.positionCheckboxes(),Of(()=>{pn(this,"afterScroll",{currentPage:B})},jf(_n(u,h.renderer.globalAnimation,!0)).duration))}setItemEvents(i,u,h){let m=this,g=i.legendItem||{},v=m.chart.renderer.boxWrapper,w=i instanceof ps,A=i instanceof Xs,N="highcharts-legend-"+(w?"point":"series")+"-active",B=m.chart.styledMode,j=h?[u,g.symbol]:[g.group],I=U=>{m.allItems.forEach(q=>{i!==q&&[q].concat(q.linkedSeries||[]).forEach(ee=>{ee.setState(U,!w)})})};for(let U of j)U&&U.on("mouseover",function(){i.visible&&I("inactive"),i.setState("hover"),i.visible&&v.addClass(N),B||u.css(m.options.itemHoverStyle)}).on("mouseout",function(){m.chart.styledMode||u.css(wi(i.visible?m.itemStyle:m.itemHiddenStyle)),I(""),v.removeClass(N),i.setState()}).on("click",function(q){let ee=function(){i.setVisible&&i.setVisible(),I(i.visible?"inactive":"")};v.removeClass(N),pn(m,"itemClick",{browserEvent:q,legendItem:i},ee),w?i.firePointEvent("legendItemClick",{browserEvent:q}):A&&pn(i,"legendItemClick",{browserEvent:q})})}createCheckboxForItem(i){i.checkbox=pm("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:i.selected,defaultChecked:i.selected},this.options.itemCheckboxStyle,this.chart.container),Io(i.checkbox,"click",function(u){let h=u.target;pn(i.series||i,"checkboxClick",{checked:h.checked,item:i},function(){i.select()})})}}(M=Fd||(Fd={})).compose=function(k){gm(nv,"Core.Legend")&&Io(k,"beforeMargins",function(){this.legend=new M(this,this.options.legend)})};let zd=Fd,{animate:Qc,animObject:vm,setAnimation:Ud}=vs,{defaultOptions:Gi}=tr,{numberFormat:bm}=Gs,{registerEventOptions:Bf}=bo,{charts:Da,doc:La,marginNames:_f,svg:Df,win:$d}=re,{seriesTypes:Vd}=Ur,{addEvent:Lf,attr:Hd,createElement:Jr,css:kr,defined:Xi,diffObjects:If,discardElement:wm,erase:Sm,error:Ia,extend:qi,find:Po,fireEvent:Ut,getAlignFactor:av,getStyle:Fo,isArray:Pf,isNumber:Dl,isObject:Am,isString:Jc,merge:Dn,objectEach:Kc,pick:Is,pInt:Em,relativeLength:Yd,removeEvent:Zc,splat:zo,syncTimeout:Cm,uniqueKey:Ff}=Me;class Wi{static chart(i,u,h){return new Wi(i,u,h)}constructor(i,u,h){this.sharedClips={};const m=[...arguments];(Jc(i)||i.nodeName)&&(this.renderTo=m.shift()),this.init(m[0],m[1])}setZoomOptions(){let i=this.options.chart,u=i.zooming;this.zooming={...u,type:Is(i.zoomType,u.type),key:Is(i.zoomKey,u.key),pinchType:Is(i.pinchType,u.pinchType),singleTouch:Is(i.zoomBySingleTouch,u.singleTouch,!1),resetButton:Dn(u.resetButton,i.resetZoomButton)}}init(i,u){Ut(this,"init",{args:arguments},function(){let h=Dn(Gi,i),m=h.chart,g=this.renderTo||m.renderTo;this.userOptions=qi({},i),(this.renderTo=Jc(g)?La.getElementById(g):g)||Ia(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=u,this.isResizing=0,this.options=h,this.axes=[],this.series=[],this.locale=h.lang.locale??this.renderTo.closest("[lang]")?.lang,this.time=new Tr(qi(h.time||{},{locale:this.locale}),h.lang),h.time=this.time.options,this.numberFormatter=(m.numberFormatter||bm).bind(this),this.styledMode=m.styledMode,this.hasCartesianSeries=m.showAxes,this.index=Da.length,Da.push(this),re.chartCount++,Bf(this,m),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Ut(this,"afterInit"),this.firstRender()})}initSeries(i){let u=this.options.chart,h=i.type||u.type,m=Vd[h];m||Ia(17,!0,this,{missingModuleFor:h});let g=new m;return typeof g.init=="function"&&g.init(this,i),g}setSortedData(){this.getSeriesOrderByLinks().forEach(function(i){i.points||i.data||!i.enabledDataSorting||i.setData(i.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(i,u){return i.linkedSeries.length||u.linkedSeries.length?u.linkedSeries.length-i.linkedSeries.length:0})}orderItems(i,u=0){let h=this[i],m=this.options[i]=zo(this.options[i]).slice(),g=this.userOptions[i]=this.userOptions[i]?zo(this.userOptions[i]).slice():[];if(this.hasRendered&&(m.splice(u),g.splice(u)),h)for(let v=u,w=h.length;v<w;++v){let A=h[v];A&&(A.index=v,A instanceof Xs&&(A.name=A.getName()),A.options.isInternal||(m[v]=A.options,g[v]=A.userOptions))}}getClipBox(i,u){let h=this.inverted,{xAxis:m,yAxis:g}=i||{},{x:v,y:w,width:A,height:N}=Dn(this.clipBox);return i&&(m&&m.len!==this.plotSizeX&&(A=m.len),g&&g.len!==this.plotSizeY&&(N=g.len),h&&!i.invertible&&([A,N]=[N,A])),u&&(v+=(h?g:m)?.pos??this.plotLeft,w+=(h?m:g)?.pos??this.plotTop),{x:v,y:w,width:A,height:N}}isInsidePlot(i,u,h={}){let{inverted:m,plotBox:g,plotLeft:v,plotTop:w,scrollablePlotBox:A}=this,{scrollLeft:N=0,scrollTop:B=0}=h.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},j=h.series,I=h.visiblePlotOnly&&A||g,U=h.inverted?u:i,q=h.inverted?i:u,ee={x:U,y:q,isInsidePlot:!0,options:h};if(!h.ignoreX){let G=j&&(m&&!this.polar?j.yAxis:j.xAxis)||{pos:v,len:1/0},K=h.paneCoordinates?G.pos+U:v+U;K>=Math.max(N+v,G.pos)&&K<=Math.min(N+v+I.width,G.pos+G.len)||(ee.isInsidePlot=!1)}if(!h.ignoreY&&ee.isInsidePlot){let G=!m&&h.axis&&!h.axis.isXAxis&&h.axis||j&&(m?j.xAxis:j.yAxis)||{pos:w,len:1/0},K=h.paneCoordinates?G.pos+q:w+q;K>=Math.max(B+w,G.pos)&&K<=Math.min(B+w+I.height,G.pos+G.len)||(ee.isInsidePlot=!1)}return Ut(this,"afterIsInsidePlot",ee),ee.isInsidePlot}redraw(i){Ut(this,"beforeRedraw");let u=this.hasCartesianSeries?this.axes:this.colorAxis||[],h=this.series,m=this.pointer,g=this.legend,v=this.userOptions.legend,w=this.renderer,A=w.isHidden(),N=[],B,j,I,U=this.isDirtyBox,q=this.isDirtyLegend,ee;for(w.rootFontSize=w.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),Ud(!!this.hasRendered&&i,this),A&&this.temporaryDisplay(),this.layOutTitles(!1),I=h.length;I--;)if(((ee=h[I]).options.stacking||ee.options.centerInCategory)&&(j=!0,ee.isDirty)){B=!0;break}if(B)for(I=h.length;I--;)(ee=h[I]).options.stacking&&(ee.isDirty=!0);h.forEach(function(G){G.isDirty&&(G.options.legendType==="point"?(typeof G.updateTotals=="function"&&G.updateTotals(),q=!0):v&&(v.labelFormatter||v.labelFormat)&&(q=!0)),G.isDirtyData&&Ut(G,"updatedData")}),q&&g&&g.options.enabled&&(g.render(),this.isDirtyLegend=!1),j&&this.getStacks(),u.forEach(function(G){G.updateNames(),G.setScale()}),this.getMargins(),u.forEach(function(G){G.isDirty&&(U=!0)}),u.forEach(function(G){let K=G.min+","+G.max;G.extKey!==K&&(G.extKey=K,N.push(function(){Ut(G,"afterSetExtremes",qi(G.eventArgs,G.getExtremes())),delete G.eventArgs})),(U||j)&&G.redraw()}),U&&this.drawChartBox(),Ut(this,"predraw"),h.forEach(function(G){(U||G.isDirty)&&G.visible&&G.redraw(),G.isDirtyData=!1}),m&&m.reset(!0),w.draw(),Ut(this,"redraw"),Ut(this,"render"),A&&this.temporaryDisplay(!0),N.forEach(function(G){G.call()})}get(i){let u=this.series;function h(g){return g.id===i||g.options&&g.options.id===i}let m=Po(this.axes,h)||Po(this.series,h);for(let g=0;!m&&g<u.length;g++)m=Po(u[g].points||[],h);return m}createAxes(){let i=this.userOptions;for(let u of(Ut(this,"createAxes"),["xAxis","yAxis"]))for(let h of i[u]=zo(i[u]||{}))new Rn(this,h,u);Ut(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((i,u)=>(u.getPointsCollection().forEach(h=>{Is(h.selectedStaging,h.selected)&&i.push(h)}),i),[])}getSelectedSeries(){return this.series.filter(i=>i.selected)}setTitle(i,u,h){this.applyDescription("title",i),this.applyDescription("subtitle",u),this.applyDescription("caption",void 0),this.layOutTitles(h)}applyDescription(i,u){let h=this,m=this.options[i]=Dn(this.options[i],u),g=this[i];g&&u&&(this[i]=g=g.destroy()),m&&!g&&((g=this.renderer.text(m.text,0,0,m.useHTML).attr({align:m.align,class:"highcharts-"+i,zIndex:m.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(v,w){h.applyDescription(i,v),h.layOutTitles(w)},this.styledMode||g.css(qi(i==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},m.style)),g.textPxLength=g.getBBox().width,g.css({whiteSpace:m.style?.whiteSpace}),this[i]=g)}layOutTitles(i=!0){let u=[0,0,0],{options:h,renderer:m,spacingBox:g}=this;["title","subtitle","caption"].forEach(w=>{let A=this[w],N=this.options[w],B=Dn(g),j=A?.textPxLength||0;if(A&&N){Ut(this,"layOutTitle",{alignTo:B,key:w,textPxLength:j});let I=m.fontMetrics(A),U=I.b,q=I.h,ee=N.verticalAlign||"top",G=ee==="top",K=G&&N.minScale||1,de=w==="title"?G?-3:0:G?u[0]+2:0,me=Math.min(B.width/j,1),ve=Math.max(K,me),be=Dn({y:ee==="bottom"?U:de+U},{align:w==="title"?me<K?"left":"center":this.title?.alignValue},N),Ae=(N.width||(me>K?this.chartWidth:B.width)/ve)+"px";A.alignValue!==be.align&&(A.placed=!1);let Ee=Math.round(A.css({width:Ae}).getBBox(N.useHTML).height);if(be.height=Ee,A.align(be,!1,B).attr({align:be.align,scaleX:ve,scaleY:ve,"transform-origin":`${B.x+j*ve*av(be.align)} ${q}`}),!N.floating){let Ce=Ee*(Ee<1.2*q?1:ve);ee==="top"?u[0]=Math.ceil(u[0]+Ce):ee==="bottom"&&(u[2]=Math.ceil(u[2]+Ce))}}},this),u[0]&&(h.title?.verticalAlign||"top")==="top"&&(u[0]+=h.title?.margin||0),u[2]&&h.caption?.verticalAlign==="bottom"&&(u[2]+=h.caption?.margin||0);let v=!this.titleOffset||this.titleOffset.join(",")!==u.join(",");this.titleOffset=u,Ut(this,"afterLayOutTitles"),!this.isDirtyBox&&v&&(this.isDirtyBox=this.isDirtyLegend=v,this.hasRendered&&i&&this.isDirtyBox&&this.redraw())}getContainerBox(){let i=[].map.call(this.renderTo.children,h=>{if(h!==this.container){let m=h.style.display;return h.style.display="none",[h,m]}}),u={width:Fo(this.renderTo,"width",!0)||0,height:Fo(this.renderTo,"height",!0)||0};return i.filter(Boolean).forEach(([h,m])=>{h.style.display=m}),u}getChartSize(){let i=this.options.chart,u=i.width,h=i.height,m=this.getContainerBox(),g=m.height<=1||!this.renderTo.parentElement?.style.height&&this.renderTo.style.height==="100%";this.chartWidth=Math.max(0,u||m.width||600),this.chartHeight=Math.max(0,Yd(h,this.chartWidth)||(g?400:m.height)),this.containerBox=m}temporaryDisplay(i){let u=this.renderTo,h;if(i)for(;u?.style;)u.hcOrigStyle&&(kr(u,u.hcOrigStyle),delete u.hcOrigStyle),u.hcOrigDetached&&(La.body.removeChild(u),u.hcOrigDetached=!1),u=u.parentNode;else for(;u?.style&&(La.body.contains(u)||u.parentNode||(u.hcOrigDetached=!0,La.body.appendChild(u)),(Fo(u,"display",!1)==="none"||u.hcOricDetached)&&(u.hcOrigStyle={display:u.style.display,height:u.style.height,overflow:u.style.overflow},h={display:"block",overflow:"hidden"},u!==this.renderTo&&(h.height=0),kr(u,h),u.offsetWidth||u.style.setProperty("display","block","important")),(u=u.parentNode)!==La.body););}setClassName(i){this.container.className="highcharts-container "+(i||"")}getContainer(){let i,u=this.options,h=u.chart,m="data-highcharts-chart",g=Ff(),v=this.renderTo,w=Em(Hd(v,m));Dl(w)&&Da[w]&&Da[w].hasRendered&&Da[w].destroy(),Hd(v,m,this.index),v.innerHTML=Cr.emptyHTML,h.skipClone||v.offsetWidth||this.temporaryDisplay(),this.getChartSize();let A=this.chartHeight,N=this.chartWidth;kr(v,{overflow:"hidden"}),this.styledMode||(i=qi({position:"relative",overflow:"hidden",width:N+"px",height:A+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},h.style||{}));let B=Jr("div",{id:g},i,v);this.container=B,this.getChartSize(),N!==this.chartWidth&&(N=this.chartWidth,this.styledMode||kr(B,{width:Is(h.style?.width,N+"px")})),this.containerBox=this.getContainerBox(),this._cursor=B.style.cursor;let j=h.renderer||!Df?fi.getRendererType(h.renderer):Ea;if(this.renderer=new j(B,N,A,void 0,h.forExport,u.exporting?.allowHTML,this.styledMode),Ud(void 0,this),this.setClassName(h.className),this.styledMode)for(let I in u.defs)this.renderer.definition(u.defs[I]);else this.renderer.setStyle(h.style);this.renderer.chartIndex=this.index,Ut(this,"afterGetContainer")}getMargins(i){let{spacing:u,margin:h,titleOffset:m}=this;this.resetMargins(),m[0]&&!Xi(h[0])&&(this.plotTop=Math.max(this.plotTop,m[0]+u[0])),m[2]&&!Xi(h[2])&&(this.marginBottom=Math.max(this.marginBottom,m[2]+u[2])),this.legend?.display&&this.legend.adjustMargins(h,u),Ut(this,"getMargins"),i||this.getAxisMargins()}getAxisMargins(){let i=this,u=i.axisOffset=[0,0,0,0],h=i.colorAxis,m=i.margin,g=v=>{v.forEach(w=>{w.visible&&w.getOffset()})};i.hasCartesianSeries?g(i.axes):h?.length&&g(h),_f.forEach((v,w)=>{Xi(m[w])||(i[v]+=u[w])}),i.setChartSize()}getOptions(){return If(this.userOptions,Gi)}reflow(i){let u=this,h=u.containerBox,m=u.getContainerBox();delete u.pointer?.chartPosition,!u.exporting?.isPrinting&&!u.isResizing&&h&&m.width&&((m.width!==h.width||m.height!==h.height)&&(Me.clearTimeout(u.reflowTimeout),u.reflowTimeout=Cm(function(){u.container&&u.setSize(void 0,void 0,!1)},100*!!i)),u.containerBox=m)}setReflow(){let i=this,u=h=>{i.options?.chart.reflow&&i.hasLoaded&&i.reflow(h)};if(typeof ResizeObserver=="function")new ResizeObserver(u).observe(i.renderTo);else{let h=Lf($d,"resize",u);Lf(this,"destroy",h)}}setSize(i,u,h){let m=this,g=m.renderer;m.isResizing+=1,Ud(h,m);let v=g.globalAnimation;m.oldChartHeight=m.chartHeight,m.oldChartWidth=m.chartWidth,i!==void 0&&(m.options.chart.width=i),u!==void 0&&(m.options.chart.height=u),m.getChartSize();let{chartWidth:w,chartHeight:A,scrollablePixelsX:N=0,scrollablePixelsY:B=0}=m;(m.isDirtyBox||w!==m.oldChartWidth||A!==m.oldChartHeight)&&(m.styledMode||(v?Qc:kr)(m.container,{width:`${w+N}px`,height:`${A+B}px`},v),m.setChartSize(!0),g.setSize(w,A,v),m.axes.forEach(function(j){j.isDirty=!0,j.setScale()}),m.isDirtyLegend=!0,m.isDirtyBox=!0,m.layOutTitles(),m.getMargins(),m.redraw(v),m.oldChartHeight=void 0,Ut(m,"resize"),setTimeout(()=>{m&&Ut(m,"endResize")},vm(v).duration)),m.isResizing-=1}setChartSize(i){let u,h,m,g,{chartHeight:v,chartWidth:w,inverted:A,spacing:N,renderer:B}=this,j=this.clipOffset,I=Math[A?"floor":"round"];this.plotLeft=u=Math.round(this.plotLeft),this.plotTop=h=Math.round(this.plotTop),this.plotWidth=m=Math.max(0,Math.round(w-u-(this.marginRight??0))),this.plotHeight=g=Math.max(0,Math.round(v-h-(this.marginBottom??0))),this.plotSizeX=A?g:m,this.plotSizeY=A?m:g,this.spacingBox=B.spacingBox={x:N[3],y:N[0],width:w-N[3]-N[1],height:v-N[0]-N[2]},this.plotBox=B.plotBox={x:u,y:h,width:m,height:g},j&&(this.clipBox={x:I(j[3]),y:I(j[0]),width:I(this.plotSizeX-j[1]-j[3]),height:I(this.plotSizeY-j[0]-j[2])}),i||(this.axes.forEach(function(U){U.setAxisSize(),U.setAxisTranslation()}),B.alignElements()),Ut(this,"afterSetChartSize",{skipAxes:i})}resetMargins(){Ut(this,"resetMargins");let i=this,u=i.options.chart,h=u.plotBorderWidth||0,m=Math.round(h)/2;["margin","spacing"].forEach(g=>{let v=u[g],w=Am(v)?v:[v,v,v,v];["Top","Right","Bottom","Left"].forEach((A,N)=>{i[g][N]=u[`${g}${A}`]??w[N]})}),_f.forEach((g,v)=>{i[g]=i.margin[v]??i.spacing[v]}),i.axisOffset=[0,0,0,0],i.clipOffset=[m,m,m,m],i.plotBorderWidth=h}drawChartBox(){let i=this.options.chart,u=this.renderer,h=this.chartWidth,m=this.chartHeight,g=this.styledMode,v=this.plotBGImage,w=i.backgroundColor,A=i.plotBackgroundColor,N=i.plotBackgroundImage,B=this.plotLeft,j=this.plotTop,I=this.plotWidth,U=this.plotHeight,q=this.plotBox,ee=this.clipRect,G=this.clipBox,K=this.chartBackground,de=this.plotBackground,me=this.plotBorder,ve,be,Ae,Ee="animate";K||(this.chartBackground=K=u.rect().addClass("highcharts-background").add(),Ee="attr"),g?ve=be=K.strokeWidth():(be=(ve=i.borderWidth||0)+8*!!i.shadow,Ae={fill:w||"none"},(ve||K["stroke-width"])&&(Ae.stroke=i.borderColor,Ae["stroke-width"]=ve),K.attr(Ae).shadow(i.shadow)),K[Ee]({x:be/2,y:be/2,width:h-be-ve%2,height:m-be-ve%2,r:i.borderRadius}),Ee="animate",de||(Ee="attr",this.plotBackground=de=u.rect().addClass("highcharts-plot-background").add()),de[Ee](q),!g&&(de.attr({fill:A||"none"}).shadow(i.plotShadow),N&&(v?(N!==v.attr("href")&&v.attr("href",N),v.animate(q)):this.plotBGImage=u.image(N,B,j,I,U).add())),ee?ee.animate({width:G.width,height:G.height}):this.clipRect=u.clipRect(G),Ee="animate",me||(Ee="attr",this.plotBorder=me=u.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),g||me.attr({stroke:i.plotBorderColor,"stroke-width":i.plotBorderWidth||0,fill:"none"}),me[Ee](me.crisp(q,-me.strokeWidth())),this.isDirtyBox=!1,Ut(this,"afterDrawChartBox")}propFromSeries(){let i,u,h,m=this,g=m.options.chart,v=m.options.series;["inverted","angular","polar"].forEach(function(w){for(u=Vd[g.type],h=g[w]||u&&u.prototype[w],i=v?.length;!h&&i--;)(u=Vd[v[i].type])&&u.prototype[w]&&(h=!0);m[w]=h})}linkSeries(i){let u=this,h=u.series;h.forEach(function(m){m.linkedSeries.length=0}),h.forEach(function(m){let{linkedTo:g}=m.options,v=Jc(g)&&(g===":previous"?h[m.index-1]:u.get(g));v&&v.linkedParent!==m&&(v.linkedSeries.push(m),m.linkedParent=v,v.enabledDataSorting&&m.setDataSortingOptions(),m.visible=m.options.visible??v.options.visible??m.visible)}),Ut(this,"afterLinkSeries",{isUpdating:i})}renderSeries(){this.series.forEach(function(i){i.translate(),i.render()})}render(){let i=this.axes,u=this.colorAxis,h=this.renderer,m=this.options.chart.axisLayoutRuns||2,g=B=>{B.forEach(j=>{j.visible&&j.render()})},v=0,w=!0,A,N=0;for(let B of(this.setTitle(),Ut(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),i)){let{options:j}=B,{labels:I}=j;if(this.hasCartesianSeries&&B.horiz&&B.visible&&I.enabled&&B.series.length&&B.coll!=="colorAxis"&&!this.polar){v=j.tickLength,B.createGroups();let U=new Pi(B,0,"",!0),q=U.createLabel("x",I);if(U.destroy(),q&&Is(I.reserveSpace,!Dl(j.crossing))&&(v=q.getBBox().height+I.distance+Math.max(j.offset||0,0)),v){q?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-v,0);(w||A||m>1)&&N<m;){let B=this.plotWidth,j=this.plotHeight;for(let I of i)N===0?I.setScale():(I.horiz&&w||!I.horiz&&A)&&I.setTickInterval(!0);N===0?this.getAxisMargins():this.getMargins(),w=B/this.plotWidth>(N?1:1.1),A=j/this.plotHeight>(N?1:1.05),N++}this.drawChartBox(),this.hasCartesianSeries?g(i):u?.length&&g(u),this.seriesGroup||(this.seriesGroup=h.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(i){let u=this,h=Dn(!0,this.options.credits,i);h.enabled&&!this.credits&&(this.credits=this.renderer.text(h.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){h.href&&($d.location.href=h.href)}).attr({align:h.position.align,zIndex:8}),u.styledMode||this.credits.css(h.style),this.credits.add().align(h.position),this.credits.update=function(m){u.credits=u.credits.destroy(),u.addCredits(m)})}destroy(){let i,u=this,h=u.axes,m=u.series,g=u.container,v=g?.parentNode;for(Ut(u,"destroy"),u.renderer.forExport?Sm(Da,u):Da[u.index]=void 0,re.chartCount--,u.renderTo.removeAttribute("data-highcharts-chart"),Zc(u),i=h.length;i--;)h[i]=h[i].destroy();for(this.scroller?.destroy?.(),i=m.length;i--;)m[i]=m[i].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(w=>{u[w]=u[w]?.destroy?.()}),g&&(g.innerHTML=Cr.emptyHTML,Zc(g),v&&wm(g)),Kc(u,function(w,A){delete u[A]})}firstRender(){let i=this,u=i.options;i.getContainer(),i.resetMargins(),i.setChartSize(),i.propFromSeries(),i.createAxes();let h=Pf(u.series)?u.series:[];u.series=[],h.forEach(function(m){i.initSeries(m)}),i.linkSeries(),i.setSortedData(),Ut(i,"beforeRender"),i.render(),i.pointer?.getChartPosition(),i.renderer.imgCount||i.hasLoaded||i.onload(),i.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(i){i&&this.index!==void 0&&i.apply(this,[this])},this),Ut(this,"load"),Ut(this,"render"),Xi(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:i,title:u}=this;i&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(u?.element.textContent||"").replace(/</g,"<")}),i.accessibility&&i.accessibility.enabled===!1||Ia('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}warnIfCSSNotLoaded(){this.styledMode&&$d.getComputedStyle(this.container).zIndex!=="0"&&Ia(35,!1,this)}addSeries(i,u,h){let m,g=this;return i&&(u=Is(u,!0),Ut(g,"addSeries",{options:i},function(){m=g.initSeries(i),g.isDirtyLegend=!0,g.linkSeries(),m.enabledDataSorting&&m.setData(i.data,!1),Ut(g,"afterAddSeries",{series:m}),u&&g.redraw(h)})),m}addAxis(i,u,h,m){return this.createAxis(u?"xAxis":"yAxis",{axis:i,redraw:h,animation:m})}addColorAxis(i,u,h){return this.createAxis("colorAxis",{axis:i,redraw:u,animation:h})}createAxis(i,u){let h=new Rn(this,u.axis,i);return Is(u.redraw,!0)&&this.redraw(u.animation),h}showLoading(i){let u=this,h=u.options,m=h.loading,g=function(){v&&kr(v,{left:u.plotLeft+"px",top:u.plotTop+"px",width:u.plotWidth+"px",height:u.plotHeight+"px"})},v=u.loadingDiv,w=u.loadingSpan;v||(u.loadingDiv=v=Jr("div",{className:"highcharts-loading highcharts-loading-hidden"},null,u.container)),w||(u.loadingSpan=w=Jr("span",{className:"highcharts-loading-inner"},null,v),Lf(u,"redraw",g)),v.className="highcharts-loading",Cr.setElementHTML(w,Is(i,h.lang.loading,"")),!u.styledMode&&(kr(v,qi(m.style,{zIndex:10})),kr(w,m.labelStyle),u.loadingShown||(kr(v,{opacity:0,display:""}),Qc(v,{opacity:m.style.opacity||.5},{duration:m.showDuration||0}))),u.loadingShown=!0,g()}hideLoading(){let i=this.options,u=this.loadingDiv;u&&(u.className="highcharts-loading highcharts-loading-hidden",this.styledMode||Qc(u,{opacity:0},{duration:i.loading.hideDuration||100,complete:function(){kr(u,{display:"none"})}})),this.loadingShown=!1}update(i,u,h,m){let g,v,w,A=this,N={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},B=i.isResponsiveOptions,j=[];Ut(A,"update",{options:i}),B||A.setResponsive(!1,!0),i=If(i,A.options),A.userOptions=Dn(A.userOptions,i);let I=i.chart;I&&(Dn(!0,A.options.chart,I),this.setZoomOptions(),"className"in I&&A.setClassName(I.className),("inverted"in I||"polar"in I||"type"in I)&&(A.propFromSeries(),g=!0),"alignTicks"in I&&(g=!0),"events"in I&&Bf(this,I),Kc(I,function(ee,G){A.propsRequireUpdateSeries.indexOf("chart."+G)!==-1&&(v=!0),A.propsRequireDirtyBox.indexOf(G)!==-1&&(A.isDirtyBox=!0),A.propsRequireReflow.indexOf(G)!==-1&&(A.isDirtyBox=!0,B||(w=!0))}),!A.styledMode&&I.style&&A.renderer.setStyle(A.options.chart.style||{})),!A.styledMode&&i.colors&&(this.options.colors=i.colors),Kc(i,function(ee,G){A[G]&&typeof A[G].update=="function"?A[G].update(ee,!1):typeof A[N[G]]=="function"?A[N[G]](ee):G!=="colors"&&A.collectionsWithUpdate.indexOf(G)===-1&&Dn(!0,A.options[G],i[G]),G!=="chart"&&A.propsRequireUpdateSeries.indexOf(G)!==-1&&(v=!0)}),this.collectionsWithUpdate.forEach(function(ee){i[ee]&&(zo(i[ee]).forEach(function(G,K){let de,me=Xi(G.id);me&&(de=A.get(G.id)),!de&&A[ee]&&(de=A[ee][Is(G.index,K)])&&(me&&Xi(de.options.id)||de.options.isInternal)&&(de=void 0),de&&de.coll===ee&&(de.update(G,!1),h&&(de.touched=!0)),!de&&h&&A.collectionsWithInit[ee]&&(A.collectionsWithInit[ee][0].apply(A,[G].concat(A.collectionsWithInit[ee][1]||[]).concat([!1])).touched=!0)}),h&&A[ee].forEach(function(G){G.touched||G.options.isInternal?delete G.touched:j.push(G)}))}),j.forEach(function(ee){ee.chart&&ee.remove&&ee.remove(!1)}),g&&A.axes.forEach(function(ee){ee.update({},!1)}),v&&A.getSeriesOrderByLinks().forEach(function(ee){ee.chart&&ee.update({},!1)},this);let U=I?.width,q=I&&(Jc(I.height)?Yd(I.height,U||A.chartWidth):I.height);w||Dl(U)&&U!==A.chartWidth||Dl(q)&&q!==A.chartHeight?A.setSize(U,q,m):Is(u,!0)&&A.redraw(m),Ut(A,"afterUpdate",{options:i,redraw:u,animation:m})}setSubtitle(i,u){this.applyDescription("subtitle",i),this.layOutTitles(u)}setCaption(i,u){this.applyDescription("caption",i),this.layOutTitles(u)}showResetZoom(){let i=this,u=Gi.lang,h=i.zooming.resetButton,m=h.theme,g=h.relativeTo==="chart"||h.relativeTo==="spacingBox"?null:"plotBox";function v(){i.zoomOut()}Ut(this,"beforeShowResetZoom",null,function(){i.resetZoomButton=i.renderer.button(u.resetZoom,null,null,v,m).attr({align:h.position.align,title:u.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(h.position,!1,g)}),Ut(this,"afterShowResetZoom")}zoomOut(){Ut(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(i,u){let h=this,m=typeof u=="object"?u:{enabled:u,type:"x"},g=m.type,v=g&&h[{x:"xAxis",xy:"axes",y:"yAxis"}[g]].filter(A=>A.options.panningEnabled&&!A.options.isInternal),w=h.options.chart;w?.panning&&(w.panning=m),Ut(this,"pan",{originalEvent:i},()=>{h.transform({axes:v,event:i,to:{x:i.chartX-(h.mouseDownX||0),y:i.chartY-(h.mouseDownY||0)},trigger:"pan"}),kr(h.container,{cursor:"move"})})}transform(i){let{axes:u=this.axes,event:h,from:m={},reset:g,selection:v,to:w={},trigger:A,allowResetButton:N=!0}=i,{inverted:B,time:j}=this;this.hoverPoints?.forEach(ee=>ee.setState()),Ut(this,"transform",i);let I=i.hasZoomed||!1,U,q;for(let ee of u){let{horiz:G,len:K,minPointOffset:de=0,options:me,reversed:ve}=ee,be=G?"width":"height",Ae=G?"x":"y",Ee=Is(w[be],ee.len),Ce=Is(m[be],ee.len),Fe=10>Math.abs(Ee)?1:Ee/Ce,$e=(m[Ae]||0)+Ce/2-ee.pos,Pe=$e-((w[Ae]??ee.pos)+Ee/2-ee.pos)/Fe,et=ve&&!B||!ve&&B?-1:1;if(!g&&($e<0||$e>ee.len))continue;let rt=ee.chart.polar||ee.isOrdinal?0:de*et||0,nt=ee.toValue(Pe,!0),ct=ee.toValue(Pe+K/Fe,!0),lt=nt+rt,at=ct-rt,dr=ee.allExtremes;if(v&&v[ee.coll].push({axis:ee,min:Math.min(nt,ct),max:Math.max(nt,ct)}),lt>at&&([lt,at]=[at,lt]),Fe===1&&!g&&ee.coll==="yAxis"&&!dr){for(let ia of ee.series){let xn=ia.getExtremes(ia.getProcessedData(!0).modified.getColumn(ia.pointValKey||"y")||[],!0);dr??(dr={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),Dl(xn.dataMin)&&Dl(xn.dataMax)&&(dr.dataMin=Math.min(xn.dataMin,dr.dataMin),dr.dataMax=Math.max(xn.dataMax,dr.dataMax))}ee.allExtremes=dr}let{dataMin:hr,dataMax:Mr,min:yt,max:St}=qi(ee.getExtremes(),dr||{}),Vt=j.parse(me.min),Mt=j.parse(me.max),Wt=hr??Vt,Kt=Mr??Mt,or=at-lt,Rr=ee.categories?0:Math.min(or,Kt-Wt),Xr=Wt-Rr*(Xi(Vt)?0:me.minPadding),Hs=Kt+Rr*(Xi(Mt)?0:me.maxPadding),Ko=ee.allowZoomOutside||Fe===1||A!=="zoom"&&Fe>1,Ps=Math.min(Vt??Xr,Xr,Ko?yt:Xr),As=Math.max(Mt??Hs,Hs,Ko?St:Hs);(!ee.isOrdinal||Fe!==1||g)&&(lt<Ps&&(lt=Ps,Fe>=1&&(at=lt+or)),at>As&&(at=As,Fe>=1&&(lt=at-or)),(g||ee.series.length&&(lt!==yt||at!==St)&<>=Ps&&at<=As)&&(v?v[ee.coll].push({axis:ee,min:lt,max:at}):(ee.isPanning=A!=="zoom",ee.isPanning&&A!=="mousewheel"&&(q=!0),ee.setExtremes(g?void 0:lt,g?void 0:at,!1,!1,{move:Pe,trigger:A,scale:Fe}),!g&&(lt>Ps||at<As)&&(U=N)),I=!0),this.hasCartesianSeries||g||(U=N),h&&(this[G?"mouseDownX":"mouseDownY"]=h[G?"chartX":"chartY"]))}return I&&(v?Ut(this,"selection",v,()=>{delete i.selection,i.trigger="zoom",this.transform(i)}):(!U||q||this.resetZoomButton?!U&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(A==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),I}}qi(Wi.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Wi.prototype.addAxis,[!0]],yAxis:[Wi.prototype.addAxis,[!1]],series:[Wi.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
34dColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});let{stop:Qi}=vs,{composed:zf}=re,{addEvent:Pa,createElement:eu,css:ti,defined:tu,erase:km,merge:ru,pushUnique:Uo}=Me;function _r(){let k=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!k&&(this.scrollablePlotArea=k=new su(this)),k?.applyFixed()}function Tm(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class su{static compose(i,u,h){Uo(zf,this.compose)&&(Pa(i,"afterInit",Tm),Pa(u,"afterSetChartSize",m=>this.afterSetSize(m.target,m)),Pa(u,"render",_r),Pa(h,"show",Tm))}static afterSetSize(i,u){let h,m,g,{minWidth:v,minHeight:w}=i.options.chart.scrollablePlotArea||{},{clipBox:A,plotBox:N,inverted:B,renderer:j}=i;if(!j.forExport)if(v?(i.scrollablePixelsX=h=Math.max(0,v-i.chartWidth),h&&(i.scrollablePlotBox=ru(i.plotBox),N.width=i.plotWidth+=h,A[B?"height":"width"]+=h,g=!0)):w&&(i.scrollablePixelsY=m=Math.max(0,w-i.chartHeight),tu(m)&&(i.scrollablePlotBox=ru(i.plotBox),N.height=i.plotHeight+=m,A[B?"width":"height"]+=m,g=!1)),tu(g)){if(!u.skipAxes)for(let I of i.axes)(I.horiz===g||i.hasParallelCoordinates&&I.coll==="yAxis")&&(I.setAxisSize(),I.setAxisTranslation())}else delete i.scrollablePlotBox}constructor(i){let u;const h=i.options.chart,m=fi.getRendererType(),g=h.scrollablePlotArea||{},v=this.moveFixedElements.bind(this),w={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};i.scrollablePixelsX&&(w.overflowX="auto"),i.scrollablePixelsY&&(w.overflowY="auto"),this.chart=i;const A=this.parentDiv=eu("div",{className:"highcharts-scrolling-parent"},{position:"relative"},i.renderTo),N=this.scrollingContainer=eu("div",{className:"highcharts-scrolling"},w,A),B=this.innerContainer=eu("div",{className:"highcharts-inner-container"},void 0,N),j=this.fixedDiv=eu("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(h.style?.zIndex||0)+2,top:0}
vendor: 47,823 bytes, line 34
34,void 0,!0),I=this.fixedRenderer=new m(j,i.chartWidth,i.chartHeight,h.style);this.mask=I.path().attr({fill:h.backgroundColor||"#fff","fill-opacity":g.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),N.parentNode.insertBefore(j,N),ti(i.renderTo,{overflow:"visible"}),Pa(i,"afterShowResetZoom",v),Pa(i,"afterApplyDrilldown",v),Pa(i,"afterLayOutTitles",v),Pa(N,"scroll",()=>{let{pointer:U,hoverPoint:q}=i;U&&(delete U.chartPosition,q&&(u=q),U.runPointActions(void 0,u,!0))}),B.appendChild(i.container)}applyFixed(){let{chart:i,fixedRenderer:u,isDirty:h,scrollingContainer:m}=this,{axisOffset:g,chartWidth:v,chartHeight:w,container:A,plotHeight:N,plotLeft:B,plotTop:j,plotWidth:I,scrollablePixelsX:U=0,scrollablePixelsY:q=0}=i,{scrollPositionX:ee=0,scrollPositionY:G=0}=i.options.chart.scrollablePlotArea||{},K=v+U,de=w+q;u.setSize(v,w),(h??!0)&&(this.isDirty=!1,this.moveFixedElements()),Qi(i.container),ti(A,{width:`${K}px`,height:`${de}px`}),i.renderer.boxWrapper.attr({width:K,height:de,viewBox:["0 0",K,de].join(" ")}),i.chartBackground?.attr({width:K,height:de}),ti(m,{width:`${v}px`,height:`${w}px`}),tu(h)||(m.scrollLeft=U*ee,m.scrollTop=q*G);let me=j-g[0]-1,ve=B-g[3]-1,be=j+N+g[2]+1,Ae=B+I+g[1]+1,Ee=B+I-U,Ce=j+N-q,Fe=[["M",0,0]];U?Fe=[["M",0,me],["L",B-1,me],["L",B-1,be],["L",0,be],["Z"],["M",Ee,me],["L",v,me],["L",v,be],["L",Ee,be],["Z"]]:q&&(Fe=[["M",ve,0],["L",ve,j-1],["L",Ae,j-1],["L",Ae,0],["Z"],["M",ve,Ce],["L",ve,w],["L",Ae,w],["L",Ae,Ce],["Z"]]),i.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:Fe})}moveFixedElements(){let i,{container:u,inverted:h,scrollablePixelsX:m,scrollablePixelsY:g}=this.chart,v=this.fixedRenderer,w=su.fixedSelectors;if(m&&!h?i=".highcharts-yaxis":m&&h||g&&!h?i=".highcharts-xaxis":g&&h&&(i=".highcharts-yaxis"),i&&!(this.chart.hasParallelCoordinates&&i===".highcharts-yaxis"))for(let A of[`${i}:not(.highcharts-radial-axis)`,`${i}-labels:not(.highcharts-radial-axis-labels)`])Uo(w,A);else for(let A of[".highcharts-xaxis",".highcharts-yaxis"])for(let N of[`${A}:not(.highcharts-radial-axis)`,`${A}-labels:not(.highcharts-radial-axis-labels)`])km(w,N);for(let A of w)[].forEach.call(u.querySelectorAll(A),N=>{(N.namespaceURI===v.SVG_NS?v.box:v.box.parentNode).appendChild(N),N.style.pointerEvents="auto"})}}su.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];let{format:Nm}=Gs,{series:nu}=Ur,{destroyObjectProperties:Fa,fireEvent:Uf,getAlignFactor:Gd,isNumber:Ll,pick:qs}=Me,$f=class{constructor(k,i,u,h,m){const g=k.chart.inverted,v=k.reversed;this.axis=k;const w=this.isNegative=!!u!=!!v;this.options=i=i||{},this.x=h,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=m,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:i.align||(g?w?"left":"right":"center"),verticalAlign:i.verticalAlign||(g?"middle":w?"bottom":"top"),y:i.y,x:i.x},this.textAlign=i.textAlign||(g?w?"right":"left":"center")}destroy(){Fa(this,this.axis)}render(k){let i=this.axis.chart,u=this.options,h=u.format,m=h?Nm(h,this,i):u.formatter.call(this);if(this.label)this.label.attr({text:m,visibility:"hidden"});else{this.label=i.renderer.label(m,null,void 0,u.shape,void 0,void 0,u.useHTML,!1,"stack-labels");let g={r:u.borderRadius||0,text:m,padding:qs(u.padding,5),visibility:"hidden"};i.styledMode||(g.fill=u.backgroundColor,g.stroke=u.borderColor,g["stroke-width"]=u.borderWidth,this.label.css(u.style||{})),this.label.attr(g),this.label.added||this.label.add(k)}this.label.labelrank=i.plotSizeY,Uf(this,"afterRender")}setOffset(k,i,u,h,m,g){let{alignOptions:v,axis:w,label:A,options:N,textAlign:B}=this,j=w.chart,I=this.getStackBox({xOffset:k,width:i,boxBottom:u,boxTop:h,defaultX:m,xAxis:g}),{verticalAlign:U}=v;if(A&&I){let q=A.getBBox(void 0,0),ee=A.padding,G=qs(N.overflow,"justify")==="justify",K;v.x=N.x||0,v.y=N.y||0;let{x:de,y:me}=this.adjustStackPosition({labelBox:q,verticalAlign:U,textAlign:B});I.x-=de,I.y-=me,A.align(v,!1,I),(K=j.isInsidePlot(A.alignAttr.x+v.x+de,A.alignAttr.y+v.y+me))||(G=!1),G&&nu.prototype.justifyDataLabel.call(w,A,v,A.alignAttr,q,I),A.attr({x:A.alignAttr.x,y:A.alignAttr.y,rotation:N.rotation,rotationOriginX:q.width*Gd(N.textAlign||"center"),rotationOriginY:q.height/2}),qs(!G&&N.crop,!0)&&(K=Ll(A.x)&&Ll(A.y)&&j.isInsidePlot(A.x-ee+(A.width||0),A.y)&&j.isInsidePlot(A.x+ee,A.y)),A[K?"show":"hide"]()}Uf(this,"afterSetOffset",{xOffset:k,width:i})}adjustStackPosition({labelBox:k,verticalAlign:i,textAlign:u}){return{x:k.width/2+k.width/2*(2*Gd(u)-1),y:k.height/2*2*(1-Gd(i))}}getStackBox(k){let i=this.axis,u=i.chart,{boxTop:h,defaultX:m,xOffset:g,width:v,boxBottom:w}=k,A=i.stacking.usePercentage?100:qs(h,this.total,0),N=i.toPixels(A),B=k.xAxis||u.xAxis[0],j=qs(m,B.translate(this.x))+g,I=Math.abs(N-i.toPixels(w||Ll(i.min)&&i.logarithmic&&i.logarithmic.lin2log(i.min)||0)),U=u.inverted,q=this.isNegative;return U?{x:(q?N:N-I)-u.plotLeft,y:B.height-j-v+B.top-u.plotTop,width:I,height:v}:{x:j+B.transB-u.plotLeft,y:(q?N-I:N)-u.plotTop,width:v,height:I}}},{getDeferredAnimation:Vf}=vs,{series:{prototype:jm}}=Ur,{addEvent:Xd,correctFloat:Il,defined:iu,destroyObjectProperties:Mm,fireEvent:Ji,isNumber:Kr,objectEach:Ki,pick:qd}=Me;function ws(){let k=this.inverted;this.axes.forEach(i=>{i.stacking?.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),this.series.forEach(i=>{let u=i.xAxis?.options||{};i.options.stacking&&i.reserveSpace()&&(i.stackKey=[i.type,qd(i.options.stack,""),k?u.top:u.left,k?u.height:u.width].join(","))})}function lv(){let k=this.stacking;if(k){let i=k.stacks;Ki(i,(u,h)=>{Mm(u),delete i[h]}),k.stackTotalGroup?.destroy()}}function Rm(){this.stacking||(this.stacking=new _m(this))}function Om(k,i,u,h){return!iu(k)||k.x!==i||h&&k.stackKey!==h?k={x:i,index:0,key:h,stackKey:h}:k.index++,k.key=[u,i,k.index].join(","),k}function $r(){let k,i=this,u=i.yAxis,h=i.stackKey||"",m=u.stacking.stacks,g=i.getColumn("x",!0),v=i.options.stacking,w=i[v+"Stacker"];w&&[h,"-"+h].forEach(A=>{let N=g.length,B,j,I;for(;N--;)B=g[N],k=i.getStackIndicator(k,B,i.index,A),j=m[A]?.[B],(I=j?.points[k.key||""])&&w.call(i,I,j,N)})}function Ws(k,i,u){let h=i.total?100/i.total:0;k[0]=Il(k[0]*h),k[1]=Il(k[1]*h),this.stackedYData[u]=k[1]}function Zi(k){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?jm.setStackedPoints.call(this,k,"group"):k.stacking.resetStacks())}function Bm(k,i){let u,h,m,g,v,w,A,N=i||this.options.stacking;if(!N||!this.reserveSpace()||({group:"xAxis"}[N]||"yAxis")!==k.coll)return;let B=this.getColumn("x",!0),j=this.getColumn(this.pointValKey||"y",!0),I=[],U=j.length,q=this.options,ee=q.threshold||0,G=q.startFromThreshold?ee:0,K=q.stack,de=i?`${this.type},${N}`:this.stackKey||"",me="-"+de,ve=this.negStacks,be=k.stacking,Ae=be.stacks,Ee=be.oldStacks;for(be.stacksTouched+=1,A=0;A<U;A++){let Ce=B[A]||0,Fe=j[A],$e=Kr(Fe)&&Fe||0;w=(u=this.getStackIndicator(u,Ce,this.index)).key||"",Ae[v=(h=ve&&$e<(G?0:ee))?me:de]||(Ae[v]={}),Ae[v][Ce]||(Ee[v]?.[Ce]?(Ae[v][Ce]=Ee[v][Ce],Ae[v][Ce].total=null):Ae[v][Ce]=new $f(k,k.options.stackLabels,!!h,Ce,K)),m=Ae[v][Ce],Fe!==null?(m.points[w]=m.points[this.index]=[qd(m.cumulative,G)],iu(m.cumulative)||(m.base=w),m.touched=be.stacksTouched,u.index>0&&this.singleStacks===!1&&(m.points[w][0]=m.points[this.index+","+Ce+",0"][0])):(delete m.points[w],delete m.points[this.index]);let Pe=m.total||0;N==="percent"?(g=h?de:me,Pe=ve&&Ae[g]?.[Ce]?(g=Ae[g][Ce]).total=Math.max(g.total||0,Pe)+Math.abs($e):Il(Pe+Math.abs($e))):N==="group"?Kr(Fe)&&Pe++:Pe=Il(Pe+$e),N==="group"?m.cumulative=(Pe||1)-1:m.cumulative=Il(qd(m.cumulative,G)+$e),m.total=Pe,Fe!==null&&(m.points[w].push(m.cumulative),I[A]=m.cumulative,m.hasValidPoints=!0)}N==="percent"&&(be.usePercentage=!0),N!=="group"&&(this.stackedYData=I),be.oldStacks={}}class _m{constructor(i){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=i}buildStacks(){let i,u,h=this.axis,m=h.series,g=h.coll==="xAxis",v=h.options.reversedStacks,w=m.length;for(this.resetStacks(),this.usePercentage=!1,u=w;u--;)i=m[v?u:w-u-1],g&&i.setGroupedPoints(h),i.setStackedPoints(h);if(!g)for(u=0;u<w;u++)m[u].modifyStacks();Ji(h,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,Ki(this.stacks,i=>{Ki(i,u=>{u.cumulative=u.total})}))}resetStacks(){Ki(this.stacks,i=>{Ki(i,(u,h)=>{Kr(u.touched)&&u.touched<this.stacksTouched?(u.destroy(),delete i[h]):(u.total=null,u.cumulative=null)})})}renderStackTotals(){let i=this.axis,u=i.chart,h=u.renderer,m=this.stacks,g=Vf(u,i.options.stackLabels?.animation||!1),v=this.stackTotalGroup=this.stackTotalGroup||h.g("stack-labels").attr({zIndex:6,opacity:0}).add();v.translate(u.plotLeft,u.plotTop),Ki(m,w=>{Ki(w,A=>{A.render(v)})}),v.animate({opacity:1},g)}}(ae||(ae={})).compose=function(k,i,u){let h=i.prototype,m=u.prototype;h.getStacks||(Xd(k,"init",Rm),Xd(k,"destroy",lv),h.getStacks=ws,m.getStackIndicator=Om,m.modifyStacks=$r,m.percentStacker=Ws,m.setGroupedPoints=Zi,m.setStackedPoints=Bm)};let Dm=ae,{defined:ov,merge:au,isObject:Qs}=Me;class Ln extends Xs{drawGraph(){let i=this.options,u=(this.gappedPath||this.getGraphPath).call(this),h=this.chart.styledMode;[this,...this.zones].forEach((m,g)=>{let v,w=m.graph,A=w?"animate":"attr",N=m.dashStyle||i.dashStyle;w?(w.endX=this.preventGraphAnimation?null:u.xMap,w.animate({d:u})):u.length&&(m.graph=w=this.chart.renderer.path(u).addClass("highcharts-graph"+(g?` highcharts-zone-graph-${g-1} `:" ")+(g&&m.className||"")).attr({zIndex:1}).add(this.group)),w&&!h&&(v={stroke:!g&&i.lineColor||m.color||this.color||"#cccccc","stroke-width":i.lineWidth||0,fill:this.fillGraph&&this.color||"none"},N?v.dashstyle=N:i.linecap!=="square"&&(v["stroke-linecap"]=v["stroke-linejoin"]="round"),w[A](v).shadow(i.shadow&&au({filterUnits:"userSpaceOnUse"},Qs(i.shadow)?i.shadow:{}))),w&&(w.startX=u.xMap,w.isArea=u.isArea)})}getGraphPath(i,u,h){let m=this,g=m.options,v=[],w=[],A,N=g.step,B=(i=i||m.points).reversed;return B&&i.reverse(),(N={right:1,center:2}[N]||N&&3)&&B&&(N=4-N),(i=this.getValidPoints(i,!1,g.nullInteraction||!(g.connectNulls&&!u&&!h))).forEach(function(j,I){let U,q=j.plotX,ee=j.plotY,G=i[I-1],K=j.isNull||typeof ee!="number";(j.leftCliff||G?.rightCliff)&&!h&&(A=!0),K&&!ov(u)&&I>0?A=!g.connectNulls:K&&!u?A=!0:(I===0||A?U=[["M",j.plotX,j.plotY]]:m.getPointSpline?U=[m.getPointSpline(i,j,I)]:N?(U=N===1?[["L",G.plotX,ee]]:N===2?[["L",(G.plotX+q)/2,G.plotY],["L",(G.plotX+q)/2,ee]]:[["L",q,G.plotY]]).push(["L",q,ee]):U=[["L",q,ee]],w.push(j.x),N&&(w.push(j.x),N===2&&w.push(j.x)),v.push.apply(v,U),A=!1)}),v.xMap=w,m.graphPath=v,v}}Ln.defaultOptions=au(Xs.defaultOptions,{legendSymbol:"lineMarker"}),Ur.registerSeriesType("line",Ln);let{seriesTypes:{line:Wd}}=Ur,{extend:Js,merge:Lm,objectEach:ea,pick:Si}=Me;class ri extends Wd{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:i,options:u}=this;[this,...this.zones].forEach((h,m)=>{let g={},v=h.fillColor||u.fillColor,w=h.area,A=w?"animate":"attr";w?(w.endX=this.preventGraphAnimation?null:i.xMap,w.animate({d:i})):(g.zIndex=0,(w=h.area=this.chart.renderer.path(i).addClass("highcharts-area"+(m?` highcharts-zone-area-${m-1} `:" ")+(m&&h.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(g.fill=v||h.color||this.color,g["fill-opacity"]=v?1:u.fillOpacity??.75,w.css({pointerEvents:this.stickyTracking?"none":"auto"})),w[A](g),w.startX=i.xMap,w.shiftUnit=u.step?2:1})}getGraphPath(i){let u,h,m,g=Wd.prototype.getGraphPath,v=this.options,w=v.stacking,A=this.yAxis,N=[],B=[],j=this.index,I=A.stacking.stacks[this.stackKey],U=v.threshold,q=Math.round(A.getThreshold(v.threshold)),ee=Si(v.connectNulls,w==="percent"),G=function(Ae,Ee,Ce){let Fe=i[Ae],$e=w&&I[Fe.x].points[j],Pe=Fe[Ce+"Null"]||0,et=Fe[Ce+"Cliff"]||0,rt,nt,ct=!0;et||Pe?(rt=(Pe?$e[0]:$e[1])+et,nt=$e[0]+et,ct=!!Pe):!w&&i[Ee]&&i[Ee].isNull&&(rt=nt=U),rt!==void 0&&(B.push({plotX:u,plotY:rt===null?q:A.getThreshold(rt),isNull:ct,isCliff:!0}),N.push({plotX:u,plotY:nt===null?q:A.getThreshold(nt),doCurve:!1}))};i=i||this.points,w&&(i=this.getStackPoints(i));for(let Ae=0,Ee=i.length;Ae<Ee;++Ae)w||(i[Ae].leftCliff=i[Ae].rightCliff=i[Ae].leftNull=i[Ae].rightNull=void 0),h=i[Ae].isNull,u=Si(i[Ae].rectPlotX,i[Ae].plotX),m=w?Si(i[Ae].yBottom,q):q,(!h||ee)&&(ee||G(Ae,Ae-1,"left"),h&&!w&&ee||(B.push(i[Ae]),N.push({x:Ae,plotX:u,plotY:m})),ee||G(Ae,Ae+1,"right"));let K=g.call(this,B,!0,!0);N.reversed=!0;let de=g.call(this,N,!0,!0),me=de[0];me&&me[0]==="M"&&(de[0]=["L",me[1],me[2]]);let ve=K.concat(de);ve.length&&ve.push(["Z"]);let be=g.call(this,B,!1,ee);return this.chart.series.length>1&&w&&B.some(Ae=>Ae.isCliff)&&(ve.hasStackedCliffs=be.hasStackedCliffs=!0),ve.xMap=K.xMap,this.areaPath=ve,be}getStackPoints(i){let u=this,h=[],m=[],g=this.xAxis,v=this.yAxis,w=v.stacking.stacks[this.stackKey],A={},N=v.series,B=N.length,j=v.options.reversedStacks?1:-1,I=N.indexOf(u);if(i=i||this.points,this.options.stacking){for(let q=0;q<i.length;q++)i[q].leftNull=i[q].rightNull=void 0,A[i[q].x]=i[q];ea(w,function(q,ee){q.total!==null&&m.push(ee)}),m.sort(function(q,ee){return q-ee});let U=N.map(q=>q.visible);m.forEach(function(q,ee){let G=0,K,de;if(A[q]&&!A[q].isNull)h.push(A[q]),[-1,1].forEach(function(me){let ve=me===1?"rightNull":"leftNull",be=w[m[ee+me]],Ae=0;if(be){let Ee=I;for(;Ee>=0&&Ee<B;){let Ce=N[Ee].index;!(K=be.points[Ce])&&(Ce===u.index?A[q][ve]=!0:U[Ee]&&(de=w[q].points[Ce])&&(Ae-=de[1]-de[0])),Ee+=j}}A[q][me===1?"rightCliff":"leftCliff"]=Ae});else{let me=I;for(;me>=0&&me<B;){let ve=N[me].index;if(K=w[q].points[ve]){G=K[1];break}me+=j}G=Si(G,0),G=v.translate(G,0,1,0,1),h.push({isNull:!0,plotX:g.translate(q,0,0,0,1),x:q,plotY:G,yBottom:G})}})}return h}}ri.defaultOptions=Lm(Wd.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),Js(ri.prototype,{singleStacks:!1}),Ur.registerSeriesType("area",ri);let{line:Qd}=Ur.seriesTypes,{merge:Hf,pick:Ks}=Me;class Jd extends Qd{getPointSpline(i,u,h){let m,g,v,w,A=u.plotX||0,N=u.plotY||0,B=i[h-1],j=i[h+1];function I(q){return q&&!q.isNull&&q.doCurve!==!1&&!u.isCliff}if(I(B)&&I(j)){let q=B.plotX||0,ee=B.plotY||0,G=j.plotX||0,K=j.plotY||0,de=0;m=(1.5*A+q)/2.5,g=(1.5*N+ee)/2.5,v=(1.5*A+G)/2.5,w=(1.5*N+K)/2.5,v!==m&&(de=(w-g)*(v-A)/(v-m)+N-w),g+=de,w+=de,g>ee&&g>N?(g=Math.max(ee,N),w=2*N-g):g<ee&&g<N&&(g=Math.min(ee,N),w=2*N-g),w>K&&w>N?(w=Math.max(K,N),g=2*N-w):w<K&&w<N&&(w=Math.min(K,N),g=2*N-w),u.rightContX=v,u.rightContY=w,u.controlPoints={low:[m,g],high:[v,w]}}let U=["C",Ks(B.rightContX,B.plotX,0),Ks(B.rightContY,B.plotY,0),Ks(m,A,0),Ks(g,N,0),A,N];return B.rightContX=B.rightContY=void 0,U}}Jd.defaultOptions=Hf(Qd.defaultOptions),Ur.registerSeriesType("spline",Jd);let Pl=Jd,{area:lu,area:{prototype:Fl}}=Ur.seriesTypes,{extend:$o,merge:Im}=Me;class Kd extends Pl{}Kd.defaultOptions=Im(Pl.defaultOptions,lu.defaultOptions),$o(Kd.prototype,{getGraphPath:Fl.getGraphPath,getStackPoints:Fl.getStackPoints,drawGraph:Fl.drawGraph}),Ur.registerSeriesType("areaspline",Kd);let{animObject:ou}=vs,{parse:Pm}=Nr,{noop:Zd}=re,{clamp:cu,crisp:eh,defined:Fm,extend:sr,fireEvent:Sr,isArray:zt,isNumber:Pt,merge:lr,pick:Os,objectEach:za}=Me;class ta extends Xs{animate(i){let u,h,m=this,g=this.yAxis,v=g.pos,w=g.reversed,A=m.options,{clipOffset:N,inverted:B}=this.chart,j={},I=B?"translateX":"translateY";i&&N?(j.scaleY=.001,h=cu(g.toPixels(A.threshold||0),v,v+g.len),B?j.translateX=(h+=w?-Math.floor(N[0]):Math.ceil(N[2]))-g.len:j.translateY=h+=w?Math.ceil(N[0]):-Math.floor(N[2]),m.clipBox&&m.setClip(),m.group.attr(j)):(u=Number(m.group.attr(I)),m.group.animate({scaleY:1},sr(ou(m.options.animation),{step:function(U,q){m.group&&(j[I]=u+q.pos*(v-u),m.group.attr(j))}})))}init(i,u){super.init.apply(this,arguments);let h=this;(i=h.chart).hasRendered&&i.series.forEach(function(m){m.type===h.type&&(m.isDirty=!0)})}getColumnMetrics(){let i=this,u=i.options,h=i.xAxis,m=i.yAxis,g=h.options.reversedStacks,v=h.reversed&&!g||!h.reversed&&g,w={},A,N=0;u.grouping===!1?N=1:i.chart.series.forEach(function(ee){let G,K=ee.yAxis,de=ee.options;ee.type===i.type&&ee.reserveSpace()&&m.len===K.len&&m.pos===K.pos&&(de.stacking&&de.stacking!=="group"?(w[A=ee.stackKey]===void 0&&(w[A]=N++),G=w[A]):de.grouping!==!1&&(G=N++),ee.columnIndex=G)});let B=Math.min(Math.abs(h.transA)*(!h.brokenAxis?.hasBreaks&&h.ordinal?.slope||u.pointRange||h.closestPointRange||h.tickInterval||1),h.len),j=B*u.groupPadding,I=(B-2*j)/(N||1),U=Math.min(u.maxPointWidth||h.len,Os(u.pointWidth,I*(1-2*u.pointPadding))),q=(i.columnIndex||0)+ +!!v;return i.columnMetrics={width:U,offset:(I-U)/2+(j+q*I-B/2)*(v?-1:1),paddedWidth:I,columnCount:N},i.columnMetrics}crispCol(i,u,h,m){let g=this.borderWidth,v=this.chart.inverted;return m=eh(u+m,g,v)-(u=eh(u,g,v)),this.options.crisp&&(h=eh(i+h,g)-(i=eh(i,g))),{x:i,y:u,width:h,height:m}}adjustForMissingColumns(i,u,h,m){if(!h.isNull&&m.columnCount>1){let g=this.xAxis.series.filter(N=>N.visible).map(N=>N.index),v=0,w=0;za(this.xAxis.stacking?.stacks,N=>{let B=typeof h.x=="number"?N[h.x.toString()]?.points:void 0,j=B?.[this.index],I={};if(B&&zt(j)){let U=this.index,q=Object.keys(B).filter(ee=>!ee.match(",")&&B[ee]&&B[ee].length>1).map(parseFloat).filter(ee=>g.indexOf(ee)!==-1).filter(ee=>{let G=this.chart.series[ee].options,K=G.stacking&&G.stack;if(Fm(K)){if(Pt(I[K]))return U===ee&&(U=I[K]),!1;I[K]=ee}return!0}).sort((ee,G)=>G-ee);v=q.indexOf(U),w=q.length}}),v=this.xAxis.reversed?w-1-v:v;let A=(w-1)*m.paddedWidth+u;i=(h.plotX||0)+A/2-u-v*m.paddedWidth}return i}translate(){let i=this,u=i.chart,h=i.options,m=i.dense=i.closestPointRange*i.xAxis.transA<2,g=i.borderWidth=Os(h.borderWidth,+!m),v=i.xAxis,w=i.yAxis,A=h.threshold,N=Os(h.minPointLength,5),B=i.getColumnMetrics(),j=B.width,I=i.pointXOffset=B.offset,U=i.dataMin,q=i.dataMax,ee=i.translatedThreshold=w.getThreshold(A),G=i.barW=Math.max(j,1+2*g);h.pointPadding&&h.crisp&&(G=Math.ceil(G)),Xs.prototype.translate.apply(i),i.points.forEach(function(K){let de=Os(K.yBottom,ee),me=999+Math.abs(de),ve=K.plotX||0,be=cu(K.plotY,-me,w.len+me),Ae,Ee=Math.min(be,de),Ce=Math.max(be,de)-Ee,Fe=j,$e=ve+I,Pe=G;N&&Math.abs(Ce)<N&&(Ce=N,Ae=!w.reversed&&!K.negative||w.reversed&&K.negative,Pt(A)&&Pt(q)&&K.y===A&&q<=A&&(w.min||0)<A&&(U!==q||(w.max||0)<=A)&&(Ae=!Ae,K.negative=!K.negative),Ee=Math.abs(Ee-ee)>N?de-N:ee-(Ae?N:0)),Fm(K.options.pointWidth)&&($e-=Math.round(((Fe=Pe=Math.ceil(K.options.pointWidth))-j)/2)),h.centerInCategory&&($e=i.adjustForMissingColumns($e,Fe,K,B)),K.barX=$e,K.pointWidth=Fe,K.tooltipPos=u.inverted?[cu(w.len+w.pos-u.plotLeft-be,w.pos-u.plotLeft,w.len+w.pos-u.plotLeft),v.len+v.pos-u.plotTop-$e-Pe/2,Ce]:[v.left-u.plotLeft+$e+Pe/2,cu(be+w.pos-u.plotTop,w.pos-u.plotTop,w.len+w.pos-u.plotTop),Ce],K.shapeType=i.pointClass.prototype.shapeType||"roundedRect",K.shapeArgs=i.crispCol($e,Ee,Pe,K.isNull?0:Ce)}),Sr(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(i,u){let h=this.options,m=this.pointAttrToOptions||{},g=m.stroke||"borderColor",v=m["stroke-width"]||"borderWidth",w,A,N,B=i&&i.color||this.color,j=i&&i[g]||h[g]||B,I=i&&i.options.dashStyle||h.dashStyle,U=i&&i[v]||h[v]||this[v]||0,q=i?.isNull&&h.nullInteraction?0:i?.opacity??h.opacity??1;i&&this.zones.length&&(A=i.getZone(),B=i.options.color||A&&(A.color||i.nonZonedColor)||this.color,A&&(j=A.borderColor||j,I=A.dashStyle||I,U=A.borderWidth||U)),u&&i&&(N=(w=lr(h.states[u],i.options.states?.[u]||{})).brightness,B=w.color||N!==void 0&&Pm(B).brighten(w.brightness).get()||B,j=w[g]||j,U=w[v]||U,I=w.dashStyle||I,q=Os(w.opacity,q));let ee={fill:B,stroke:j,"stroke-width":U,opacity:q};return I&&(ee.dashstyle=I),ee}drawPoints(i=this.points){let u,h=this,m=this.chart,g=h.options,v=g.nullInteraction,w=m.renderer,A=g.animationLimit||250;i.forEach(function(N){let B=N.plotY,j=N.graphic,I=!!j,U=j&&m.pointCount<A?"animate":"attr";Pt(B)&&(N.y!==null||v)?(u=N.shapeArgs,j&&N.hasNewShapeType()&&(j=j.destroy()),h.enabledDataSorting&&(N.startXPos=h.xAxis.reversed?-(u&&u.width||0):h.xAxis.width),!j&&(N.graphic=j=w[N.shapeType](u).add(N.group||h.group),j&&h.enabledDataSorting&&m.hasRendered&&m.pointCount<A&&(j.attr({x:N.startXPos}),I=!0,U="animate")),j&&I&&j[U](lr(u)),m.styledMode||j[U](h.pointAttribs(N,N.selected&&"select")).shadow(N.allowShadow!==!1&&g.shadow),j&&(j.addClass(N.getClassName(),!0),j.attr({visibility:N.visible?"inherit":"hidden"}))):j&&(N.graphic=j.destroy())})}drawTracker(i=this.points){let u,h=this,m=h.chart,g=m.pointer,v=function(w){g?.normalize(w);let A=g?.getPointFromEvent(w);g&&A&&h.options.enableMouseTracking&&(m.isInsidePlot(w.chartX-m.plotLeft,w.chartY-m.plotTop,{visiblePlotOnly:!0})||g?.inClass(w.target,"highcharts-data-label"))&&(g.isDirectTouch=!0,A.onMouseOver(w))};i.forEach(function(w){u=zt(w.dataLabels)?w.dataLabels:w.dataLabel?[w.dataLabel]:[],w.graphic&&(w.graphic.element.point=w),u.forEach(function(A){(A.div||A.element).point=w})}),h._hasTracking||(h.trackerGroups?.reduce((w,A)=>(A==="dataLabelsGroup"?w.push(...h.dataLabelsGroups||[]):w.push(h[A]),w),[]).forEach(w=>{w&&(w.addClass("highcharts-tracker").on("mouseover",v).on("mouseout",function(A){g?.onTrackerMouseOut(A)}).on("touchstart",v),!m.styledMode&&h.options.cursor&&w.css({cursor:h.options.cursor}))}),h._hasTracking=!0),Sr(this,"afterDrawTracker")}remove(){let i=this,u=i.chart;u.hasRendered&&u.series.forEach(function(h){h.type===i.type&&(h.isDirty=!0)}),Xs.prototype.remove.apply(i,arguments)}}ta.defaultOptions=lr(Xs.defaultOptions,{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),sr(ta.prototype,{directTouch:!0,getSymbol:Zd,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Ur.registerSeriesType("column",ta);let Vo=ta,{getDeferredAnimation:ra}=vs,{format:Zr}=Gs,{defined:Zs,extend:Ua,fireEvent:Ho,getAlignFactor:en,isArray:mn,isString:sa,merge:Ss,objectEach:Yf,pick:$a,pInt:zm,splat:uu}=Me;(function(k){function i(){return A(this).some(B=>B?.enabled)}function u(B,j,I,U,q){let{chart:ee,enabledDataSorting:G}=this,K=this.isCartesian&&ee.inverted,de=B.plotX,me=B.plotY,ve=I.rotation||0,be=Zs(de)&&Zs(me)&&ee.isInsidePlot(de,Math.round(me),{inverted:K,paneCoordinates:!0,series:this}),Ae=ve===0&&$a(I.overflow,G?"none":"justify")==="justify",Ee=this.visible&&B.visible!==!1&&Zs(de)&&(B.series.forceDL||G&&!Ae||be||$a(I.inside,!!this.options.stacking)&&U&&ee.isInsidePlot(de,K?U.x+1:U.y+U.height-1,{inverted:K,paneCoordinates:!0,series:this})),Ce=B.pos();if(Ee&&Ce){var Fe;let $e=j.getBBox(),Pe=j.getBBox(void 0,0);if(U=Ua({x:Ce[0],y:Math.round(Ce[1]),width:0,height:0},U||{}),I.alignTo==="plotEdges"&&this.isCartesian&&(U[K?"x":"y"]=0,U[K?"width":"height"]=this.yAxis?.len||0),Ua(I,{width:$e.width,height:$e.height}),Fe=U,G&&this.xAxis&&!Ae&&this.setDataLabelStartPos(B,j,q,be,Fe),j.align(Ss(I,{width:Pe.width,height:Pe.height}),!1,U,!1),j.alignAttr.x+=en(I.align)*(Pe.width-$e.width),j.alignAttr.y+=en(I.verticalAlign)*(Pe.height-$e.height),j[j.placed?"animate":"attr"]({"text-align":j.alignAttr["text-align"]||"center",x:j.alignAttr.x+($e.width-Pe.width)/2,y:j.alignAttr.y+($e.height-Pe.height)/2,rotationOriginX:(j.width||0)/2,rotationOriginY:(j.height||0)/2}),Ae&&U.height>=0)this.justifyDataLabel(j,I,j.alignAttr,$e,U,q);else if($a(I.crop,!0)){let{x:et,y:rt}=j.alignAttr;Ee=ee.isInsidePlot(et,rt,{paneCoordinates:!0,series:this})&&ee.isInsidePlot(et+$e.width-1,rt+$e.height-1,{paneCoordinates:!0,series:this})}I.shape&&!ve&&j[q?"attr":"animate"]({anchorX:Ce[0],anchorY:Ce[1]})}q&&G&&(j.placed=!1),Ee||G&&!Ae?(j.show(),j.placed=!0):(j.hide(),j.placed=!1)}function h(B,j){Ho(this,"initDataLabelsGroup",{index:B,zIndex:j?.zIndex??6}),this.dataLabelsGroup=this.dataLabelsGroups?.[B];let I=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",j?.zIndex??6,this.dataLabelsParentGroups?.[B]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[B]=I,this.dataLabelsGroup=this.dataLabelsGroups[0],I}function m(B,j,I){let U=!!this.hasRendered,q=this.initDataLabelsGroup(B,I).attr({opacity:+U});return!U&&q&&(this.visible&&q.show(),this.options.animation?q.animate({opacity:1},j):q.attr({opacity:1})),q}function g(B){let j;B=B||this.points;let I=this,U=I.chart,q=I.options,ee=U.renderer,{backgroundColor:G,plotBackgroundColor:K}=U.options.chart,de=ee.getContrast(sa(K)&&K||sa(G)&&G||"#000000"),me=A(I),{animation:ve,defer:be}=me[0],Ae=be?ra(U,ve,I):{defer:0,duration:0};Ho(this,"drawDataLabels"),I.hasDataLabels?.()&&B.forEach(Ee=>{let Ce=Ee.dataLabels||[],Fe=Ee.color||I.color;uu(w(me,Ee.dlOptions||Ee.options?.dataLabels)).forEach((Pe,et)=>{j=this.initDataLabels(et,Ae,Pe);let rt=Pe.enabled&&(Ee.visible||Ee.dataLabelOnHidden)&&(!Ee.isNull||Ee.dataLabelOnNull)&&(function(Wt,Kt){let or=Kt.filter;if(or){let Rr=or.operator,Xr=Wt[or.property],Hs=or.value;return Rr===">"&&Xr>Hs||Rr==="<"&&Xr<Hs||Rr===">="&&Xr>=Hs||Rr==="<="&&Xr<=Hs||Rr==="=="&&Xr==Hs||Rr==="==="&&Xr===Hs||Rr==="!="&&Xr!=Hs||Rr==="!=="&&Xr!==Hs||!1}return!0})(Ee,Pe),{backgroundColor:nt,borderColor:ct,distance:lt,style:at={}}=Pe,dr,hr,Mr,yt={},St=Ce[et],Vt=!St,Mt;rt&&(hr=Zs(dr=$a(Pe[Ee.formatPrefix+"Format"],Pe.format))?Zr(dr,Ee,U):(Pe[Ee.formatPrefix+"Formatter"]||Pe.formatter).call(Ee,Pe),Mr=Pe.rotation,!U.styledMode&&(at.color=$a(Pe.color,at.color,sa(I.color)?I.color:void 0,"#000000"),at.color==="contrast"?(nt!=="none"&&(Mt=nt),Ee.contrastColor=ee.getContrast(Mt!=="auto"&&sa(Mt)&&Mt||(sa(Fe)?Fe:"")),at.color=Mt||!Zs(lt)&&Pe.inside||0>zm(lt||0)||q.stacking?Ee.contrastColor:de):delete Ee.contrastColor,q.cursor&&(at.cursor=q.cursor)),yt={r:Pe.borderRadius||0,rotation:Mr,padding:Pe.padding,zIndex:1},U.styledMode||(yt.fill=nt==="auto"?Ee.color:nt,yt.stroke=ct==="auto"?Ee.color:ct,yt["stroke-width"]=Pe.borderWidth),Yf(yt,(Wt,Kt)=>{Wt===void 0&&delete yt[Kt]})),!St||rt&&Zs(hr)&&!!(St.div||St.text?.foreignObject)==!!Pe.useHTML&&(St.rotation&&Pe.rotation||St.rotation===Pe.rotation)||(St=void 0,Vt=!0),rt&&Zs(hr)&&hr!==""&&(St?yt.text=hr:(St=ee.label(hr,0,0,Pe.shape,void 0,void 0,Pe.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+Ee.colorIndex+" "+(Pe.className||"")+(Pe.useHTML?" highcharts-tracker":"")),St&&(St.options=Pe,St.attr(yt),U.styledMode?at.width&&St.css({width:at.width,textOverflow:at.textOverflow,whiteSpace:at.whiteSpace}):St.css(at).shadow(Pe.shadow),Ho(St,"beforeAddingDataLabel",{labelOptions:Pe,point:Ee}),St.added||St.add(j),I.alignDataLabel(Ee,St,Pe,void 0,Vt),St.isActive=!0,Ce[et]&&Ce[et]!==St&&Ce[et].destroy(),Ce[et]=St))});let $e=Ce.length;for(;$e--;)Ce[$e]?.isActive?Ce[$e].isActive=!1:(Ce[$e]?.destroy(),Ce.splice($e,1));Ee.dataLabel=Ce[0],Ee.dataLabels=Ce}),Ho(this,"afterDrawDataLabels")}function v(B,j,I,U,q,ee){let G=this.chart,K=j.align,de=j.verticalAlign,me=B.box?0:B.padding||0,ve=G.inverted?this.yAxis:this.xAxis,be=ve?ve.left-G.plotLeft:0,Ae=G.inverted?this.xAxis:this.yAxis,Ee=Ae?Ae.top-G.plotTop:0,{x:Ce=0,y:Fe=0}=j,$e,Pe;return($e=(I.x||0)+me+be)<0&&(K==="right"&&Ce>=0?(j.align="left",j.inside=!0):Ce-=$e,Pe=!0),($e=(I.x||0)+U.width-me+be)>G.plotWidth&&(K==="left"&&Ce<=0?(j.align="right",j.inside=!0):Ce+=G.plotWidth-$e,Pe=!0),($e=I.y+me+Ee)<0&&(de==="bottom"&&Fe>=0?(j.verticalAlign="top",j.inside=!0):Fe-=$e,Pe=!0),($e=(I.y||0)+U.height-me+Ee)>G.plotHeight&&(de==="top"&&Fe<=0?(j.verticalAlign="bottom",j.inside=!0):Fe+=G.plotHeight-$e,Pe=!0),Pe&&(j.x=Ce,j.y=Fe,B.placed=!ee,B.align(j,void 0,q)),Pe}function w(B,j){let I=[],U;if(mn(B)&&!mn(j))I=B.map(function(q){return Ss(q,j)});else if(mn(j)&&!mn(B))I=j.map(function(q){return Ss(B,q)});else if(mn(B)||mn(j)){if(mn(B)&&mn(j))for(U=Math.max(B.length,j.length);U--;)I[U]=Ss(B[U],j[U])}else I=Ss(B,j);return I}function A(B){let j=B.chart.options.plotOptions;return uu(w(w(j?.series?.dataLabels,j?.[B.type]?.dataLabels),B.options.dataLabels))}function N(B,j,I,U,q){let ee=this.chart,G=ee.inverted,K=this.xAxis,de=K.reversed,me=((G?j.height:j.width)||0)/2,ve=B.pointWidth,be=ve?ve/2:0;j.startXPos=G?q.x:de?-me-be:K.width-me+be,j.startYPos=G?de?this.yAxis.height-me+be:-me-be:q.y,U?j.visibility==="hidden"&&(j.show(),j.attr({opacity:0}).animate({opacity:1})):j.attr({opacity:1}).animate({opacity:0},void 0,j.hide),ee.hasRendered&&(I&&j.attr({x:j.startXPos,y:j.startYPos}),j.placed=!0)}k.compose=function(B){let j=B.prototype;j.initDataLabels||(j.initDataLabels=m,j.initDataLabelsGroup=h,j.alignDataLabel=u,j.drawDataLabels=g,j.justifyDataLabel=v,j.mergeArrays=w,j.setDataLabelStartPos=N,j.hasDataLabels=i)}})(ue||(ue={}));let zl=ue,{composed:Va}=re,{series:os}=Ur,{merge:Ha,pushUnique:Yo}=Me;function na(k,i,u,h,m){let{chart:g,options:v}=this,w=g.inverted,A=this.xAxis?.len||g.plotSizeX||0,N=this.yAxis?.len||g.plotSizeY||0,B=k.dlBox||k.shapeArgs,j=k.below??(k.plotY||0)>(this.translatedThreshold??N),I=u.inside??!!v.stacking;if(B){if(h=Ha(B),u.overflow!=="allow"||u.crop!==!1||v.clip!==!1){h.y<0&&(h.height+=h.y,h.y=0);let U=h.y+h.height-N;U>0&&U<h.height-1&&(h.height-=U)}w&&(h={x:N-h.y-h.height,y:A-h.x-h.width,width:h.height,height:h.width}),I||(w?(h.x+=j?0:h.width,h.width=0):(h.y+=j?h.height:0,h.height=0))}u.align??(u.align=!w||I?"center":j?"right":"left"),u.verticalAlign??(u.verticalAlign=w||I?"middle":j?"top":"bottom"),os.prototype.alignDataLabel.call(this,k,i,u,h,m),u.inside&&k.contrastColor&&i.css({color:k.contrastColor})}(ie||(ie={})).compose=function(k){zl.compose(os),Yo(Va,"ColumnDataLabel")&&(k.prototype.alignDataLabel=na)};let Gf=ie,{extend:Xf,merge:Um}=Me;class Ul extends Vo{}Ul.defaultOptions=Um(Vo.defaultOptions,{}),Xf(Ul.prototype,{inverted:!0}),Ur.registerSeriesType("bar",Ul);let{column:qf,line:tn}=Ur.seriesTypes,{addEvent:$m,extend:rn,merge:Vm}=Me;class du extends tn{applyJitter(){let i=this,u=this.options.jitter,h=this.points.length;u&&this.points.forEach(function(m,g){["x","y"].forEach(function(v,w){if(u[v]&&!m.isNull){let A=`plot${v.toUpperCase()}`,N=i[`${v}Axis`],B=u[v]*N.transA;if(N&&!N.logarithmic){let j,I=Math.max(0,(m[A]||0)-B),U=Math.min(N.len,(m[A]||0)+B);m[A]=I+(U-I)*((j=1e4*Math.sin(g+w*h))-Math.floor(j)),v==="x"&&(m.clientX=m.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}du.defaultOptions=Vm(tn.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">â</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),rn(du.prototype,{drawTracker:qf.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),$m(du,"afterTranslate",function(){this.applyJitter()}),Ur.registerSeriesType("scatter",du);let{deg2rad:Hm}=re,{fireEvent:Ya,isNumber:Go,pick:Xo,relativeLength:qo}=Me;(P=X||(X={})).getCenter=function(){let k=this.options,i=this.chart,u=2*(k.slicedOffset||0),h=i.plotWidth-2*u,m=i.plotHeight-2*u,g=k.center,v=Math.min(h,m),w=k.thickness,A,N=k.size,B=k.innerSize||0,j,I;typeof N=="string"&&(N=parseFloat(N)),typeof B=="string"&&(B=parseFloat(B));let U=[Xo(g?.[0],"50%"),Xo(g?.[1],"50%"),Xo(N&&N<0?void 0:k.size,"100%"),Xo(B&&B<0?void 0:k.innerSize||0,"0%")];for(!i.angular||this instanceof Xs||(U[3]=0),j=0;j<4;++j)I=U[j],A=j<2||j===2&&/%$/.test(I),U[j]=qo(I,[h,m,v,U[2]][j])+(A?u:0);return U[3]>U[2]&&(U[3]=U[2]),Go(w)&&2*w<U[2]&&w>0&&(U[3]=U[2]-2*w),Ya(this,"afterGetCenter",{positions:U}),U},P.getStartAndEndRadians=function(k,i){let u=Go(k)?k:0,h=Go(i)&&i>u&&i-u<360?i:u+360;return{start:Hm*(u+-90),end:Hm*(h+-90)}};let Wf=X,{setAnimation:Ym}=vs,{addEvent:Qf,defined:Gm,extend:th,isNumber:Jf,pick:cv,relativeLength:uv}=Me;class Xm extends ps{getConnectorPath(i){let u=i.dataLabelPosition,h=i.options||{},m=h.connectorShape,g=this.connectorShapes[m]||m;return u&&g.call(this,{...u.computed,alignment:u.alignment},u.connectorPosition,h)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(i){let u=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(u.x,u.y,u.r+i,u.r+i,{innerR:u.r-1,start:u.start,end:u.end,borderRadius:u.borderRadius})}constructor(i,u,h){super(i,u,h),this.half=0,this.name??(this.name=i.chart.options.lang.pieSliceName);const m=g=>{this.slice(g.type==="select")};Qf(this,"select",m),Qf(this,"unselect",m)}isValid(){return Jf(this.y)&&this.y>=0}setVisible(i,u=!0){i!==this.visible&&this.update({visible:i??!this.visible},u,void 0,!1)}slice(i,u,h){let m=this.series;Ym(h,m.chart),u=cv(u,!0),this.sliced=this.options.sliced=i=Gm(i)?i:!this.sliced,m.options.data[m.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}th(Xm.prototype,{connectorShapes:{fixedOffset:function(k,i,u){let h=i.breakAt,m=i.touchingSliceAt,g=u.softConnector?["C",k.x+(k.alignment==="left"?-5:5),k.y,2*h.x-m.x,2*h.y-m.y,h.x,h.y]:["L",h.x,h.y];return[["M",k.x,k.y],g,["L",m.x,m.y]]},straight:function(k,i){let u=i.touchingSliceAt;return[["M",k.x,k.y],["L",u.x,u.y]]},crookedLine:function(k,i,u){let{angle:h=this.angle||0,breakAt:m,touchingSliceAt:g}=i,{series:v}=this,[w,A,N]=v.center,B=N/2,{plotLeft:j,plotWidth:I}=v.chart,U=k.alignment==="left",{x:q,y:ee}=k,G=m.x;if(u.crookDistance){let de=uv(u.crookDistance,1);G=U?w+B+(I+j-w-B)*(1-de):j+(w-B)*de}else G=w+(A-ee)*Math.tan(h-Math.PI/2);let K=[["M",q,ee]];return(U?G<=q&&G>=m.x:G>=q&&G<=m.x)&&K.push(["L",G,ee]),K.push(["L",m.x,m.y],["L",g.x,g.y]),K}}});let{getStartAndEndRadians:qm}=Wf,{noop:Kf}=re,{clamp:Wo,extend:rh,fireEvent:Zf,merge:sh,pick:Wm}=Me;class nh extends Xs{animate(i){let u=this,h=u.points,m=u.startAngleRad;i||h.forEach(function(g){let v=g.graphic,w=g.shapeArgs;v&&w&&(v.attr({r:Wm(g.startR,u.center&&u.center[3]/2),start:m,end:m}),v.animate({r:w.r,start:w.start,end:w.end},u.options.animation))})}drawEmpty(){let i,u,h=this.startAngleRad,m=this.endAngleRad,g=this.options;this.total===0&&this.center?(i=this.center[0],u=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(i,u,this.center[1]/2,0,h,m).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:ld.arc(i,u,this.center[2]/2,0,{start:h,end:m,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":g.borderWidth,fill:g.fillColor||"none",stroke:g.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let i=this.chart.renderer;this.points.forEach(function(u){u.graphic&&u.hasNewShapeType()&&(u.graphic=u.graphic.destroy()),u.graphic||(u.graphic=i[u.shapeType](u.shapeArgs).add(u.series.group),u.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(i,u,h,m){let g=this.center,v=this.radii?this.radii[h.index]||0:g[2]/2,w=m.dataLabelPosition,A=w?.distance||0,N=Math.asin(Wo((i-g[1])/(v+A),-1,1));return g[0]+Math.cos(N)*(v+A)*(u?-1:1)+(A>0?(u?-1:1)*(m.padding||0):0)}hasData(){return this.points.some(i=>i.visible)}redrawPoints(){let i,u,h,m,g=this,v=g.chart;this.drawEmpty(),g.group&&!v.styledMode&&g.group.shadow(g.options.shadow),g.points.forEach(function(w){let A={};u=w.graphic,!w.isNull&&u?(m=w.shapeArgs,i=w.getTranslate(),v.styledMode||(h=g.pointAttribs(w,w.selected&&"select")),w.delayedRendering?(u.setRadialReference(g.center).attr(m).attr(i),v.styledMode||u.attr(h).attr({"stroke-linejoin":"round"}),w.delayedRendering=!1):(u.setRadialReference(g.center),v.styledMode||sh(!0,A,h),sh(!0,A,m,i),u.animate(A)),u.attr({visibility:w.visible?"inherit":"hidden"}),u.addClass(w.getClassName(),!0)):u&&(w.graphic=u.destroy())})}sortByAngle(i,u){i.sort(function(h,m){return h.angle!==void 0&&(m.angle-h.angle)*u})}translate(i){Zf(this,"translate"),this.generatePoints();let u=this.options,h=u.slicedOffset,m=qm(u.startAngle,u.endAngle),g=this.startAngleRad=m.start,v=(this.endAngleRad=m.end)-g,w=this.points,A=u.ignoreHiddenPoint,N=w.length,B,j,I,U,q,ee,G,K=0;for(i||(this.center=i=this.getCenter()),ee=0;ee<N;ee++){G=w[ee],B=g+K*v,G.isValid()&&(!A||G.visible)&&(K+=G.percentage/100),j=g+K*v;let de={x:i[0],y:i[1],r:i[2]/2,innerR:i[3]/2,start:Math.round(1e3*B)/1e3,end:Math.round(1e3*j)/1e3};G.shapeType="arc",G.shapeArgs=de,(I=(j+B)/2)>1.5*Math.PI?I-=2*Math.PI:I<-Math.PI/2&&(I+=2*Math.PI),G.slicedTranslation={translateX:Math.round(Math.cos(I)*h),translateY:Math.round(Math.sin(I)*h)},U=Math.cos(I)*i[2]/2,q=Math.sin(I)*i[2]/2,G.tooltipPos=[i[0]+.7*U,i[1]+.7*q],G.half=+(I<-Math.PI/2||I>Math.PI/2),G.angle=I}Zf(this,"afterTranslate")}updateTotals(){let i=this.points,u=i.length,h=this.options.ignoreHiddenPoint,m,g,v=0;for(m=0;m<u;m++)(g=i[m]).isValid()&&(!h||g.visible)&&(v+=g.y);for(m=0,this.total=v;m<u;m++)(g=i[m]).percentage=v>0&&(g.visible||!h)?g.y/v*100:0,g.total=v}}nh.defaultOptions=sh(Xs.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),rh(nh.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:Vo.prototype.drawTracker,getCenter:Wf.getCenter,getSymbol:Kf,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:Vo.prototype.pointAttribs,pointClass:Xm,requireSorting:!1,searchPoint:Kf,trackerGroups:["group","dataLabelsGroup"]}),Ur.registerSeriesType("pie",nh);let{composed:Qm,noop:Jm}=re,{distribute:ih}=wa,{series:ep}=Ur,{arrayMax:Km,clamp:ur,defined:ah,isNumber:dv,pick:Zm,pushUnique:hv,relativeLength:ex}=Me;(function(k){let i={radialDistributionY:function(v,w){return(w.dataLabelPosition?.top||0)+v.distributeBox.pos},radialDistributionX:function(v,w,A,N,B){let j=B.dataLabelPosition;return v.getX(A<(j?.top||0)+2||A>(j?.bottom||0)-2?N:A,w.half,w,B)},justify:function(v,w,A,N){return N[0]+(v.half?-1:1)*(A+(w.dataLabelPosition?.distance||0))},alignToPlotEdges:function(v,w,A,N){let B=v.getBBox().width;return w?B+N:A-B-N},alignToConnectors:function(v,w,A,N){let B=0,j;return v.forEach(function(I){(j=I.dataLabel.getBBox().width)>B&&(B=j)}),w?B+N:A-B-N}};function u(v,w){let A=Math.PI/2,{start:N=0,end:B=0}=v.shapeArgs||{},j=v.angle||0;w>0&&N<A&&B>A&&j>A/2&&j<1.5*A&&(j=j<=A?Math.max(A/2,(N+A)/2):Math.min(1.5*A,(A+B)/2));let{center:I,options:U}=this,q=I[2]/2,ee=Math.cos(j),G=Math.sin(j),K=I[0]+ee*q,de=I[1]+G*q,me=Math.min((U.slicedOffset||0)+(U.borderWidth||0),w/5);return{natural:{x:K+ee*w,y:de+G*w},computed:{},alignment:w<0?"center":v.half?"right":"left",connectorPosition:{angle:j,breakAt:{x:K+ee*me,y:de+G*me},touchingSliceAt:{x:K,y:de}},distance:w}}function h(){let v=this,w=v.points,A=v.chart,N=A.plotWidth,B=A.plotHeight,j=A.plotLeft,I=Math.round(A.chartWidth/3),U=v.center,q=U[2]/2,ee=U[1],G=[[],[]],K=[0,0,0,0],de=v.dataLabelPositioners,me,ve,be,Ae=0;v.visible&&v.hasDataLabels?.()&&(w.forEach(Ee=>{(Ee.dataLabels||[]).forEach(Ce=>{Ce.shortened&&(Ce.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),Ce.shortened=!1)})}),ep.prototype.drawDataLabels.apply(v),w.forEach(Ee=>{(Ee.dataLabels||[]).forEach((Ce,Fe)=>{let $e=U[2]/2,Pe=Ce.options,et=ex(Pe?.distance||0,$e);Fe===0&&G[Ee.half].push(Ee),!ah(Pe?.style?.width)&&Ce.getBBox().width>I&&(Ce.css({width:Math.round(.7*I)+"px"}),Ce.shortened=!0),Ce.dataLabelPosition=this.getDataLabelPosition(Ee,et),Ae=Math.max(Ae,et)})}),G.forEach((Ee,Ce)=>{let Fe=Ee.length,$e=[],Pe,et,rt=0,nt;Fe&&(v.sortByAngle(Ee,Ce-.5),Ae>0&&(Pe=Math.max(0,ee-q-Ae),et=Math.min(ee+q+Ae,A.plotHeight),Ee.forEach(ct=>{(ct.dataLabels||[]).forEach(lt=>{let at=lt.dataLabelPosition;at&&at.distance>0&&(at.top=Math.max(0,ee-q-at.distance),at.bottom=Math.min(ee+q+at.distance,A.plotHeight),rt=lt.getBBox().height||21,lt.lineHeight=A.renderer.fontMetrics(lt.text||lt).h+2*lt.padding,ct.distributeBox={target:(lt.dataLabelPosition?.natural.y||0)-at.top+lt.lineHeight/2,size:rt,rank:ct.y},$e.push(ct.distributeBox))})}),ih($e,nt=et+rt-Pe,nt/5)),Ee.forEach(ct=>{(ct.dataLabels||[]).forEach(lt=>{let at=lt.options||{},dr=ct.distributeBox,hr=lt.dataLabelPosition,Mr=hr?.natural.y||0,yt=at.connectorPadding||0,St=lt.lineHeight||21,Vt=(St-lt.getBBox().height)/2,Mt=0,Wt=Mr,Kt="inherit";if(hr){if($e&&ah(dr)&&hr.distance>0&&(dr.pos===void 0?Kt="hidden":(be=dr.size,Wt=de.radialDistributionY(ct,lt))),at.justify)Mt=de.justify(ct,lt,q,U);else switch(at.alignTo){case"connectors":Mt=de.alignToConnectors(Ee,Ce,N,j);break;case"plotEdges":Mt=de.alignToPlotEdges(lt,Ce,N,j);break;default:Mt=de.radialDistributionX(v,ct,Wt-Vt,Mr,lt)}if(hr.attribs={visibility:Kt,align:hr.alignment},hr.posAttribs={x:Mt+(at.x||0)+({left:yt,right:-yt}[hr.alignment]||0),y:Wt+(at.y||0)-St/2},hr.computed.x=Mt,hr.computed.y=Wt-Vt,Zm(at.crop,!0)){let or;Mt-(ve=lt.getBBox().width)<yt&&Ce===1?(or=Math.round(ve-Mt+yt),K[3]=Math.max(or,K[3])):Mt+ve>N-yt&&Ce===0&&(or=Math.round(Mt+ve-N+yt),K[1]=Math.max(or,K[1])),Wt-be/2<0?K[0]=Math.max(Math.round(-Wt+be/2),K[0]):Wt+be/2>B&&(K[2]=Math.max(Math.round(Wt+be/2-B),K[2])),hr.sideOverflow=or}}})}))}),(Km(K)===0||this.verifyDataLabelOverflow(K))&&(this.placeDataLabels(),this.points.forEach(Ee=>{Ee.dataLabels?.forEach((Ce,Fe)=>{let{connectorColor:$e,connectorWidth:Pe=1}=Ce.options||{},et=Ce.dataLabelPosition;if(dv(Pe)){let rt;me=Ce.connector,et&&et.distance>0?(rt=!me,me||(Ce.connector=me=A.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+Ee.colorIndex+(Ee.className?" "+Ee.className:"")).add(v.dataLabelsGroups?.[Fe])),A.styledMode||me.attr({"stroke-width":Pe,stroke:$e||Ee.color||"#666666"}),me[rt?"attr":"animate"]({d:Ee.getConnectorPath(Ce)}),me.attr({visibility:et.attribs?.visibility})):me&&(Ce.connector=me.destroy())}})})))}function m(){this.points.forEach(v=>{(v.dataLabels||[]).forEach(w=>{let A=w.dataLabelPosition;A?(A.sideOverflow&&(w.css({width:Math.max(w.getBBox().width-A.sideOverflow,0)+"px",textOverflow:w.options?.style?.textOverflow||"ellipsis"}),w.shortened=!0),w.attr(A.attribs),w[w.moved?"animate":"attr"](A.posAttribs),w.moved=!0):w&&w.attr({y:-9999})}),delete v.distributeBox},this)}function g(v){let w=this.center,A=this.options,N=A.center,B=A.minSize||80,j=B,I=A.size!==null;return!I&&(N[0]!==null?j=Math.max(w[2]-Math.max(v[1],v[3]),B):(j=Math.max(w[2]-v[1]-v[3],B),w[0]+=(v[3]-v[1])/2),N[1]!==null?j=ur(j,B,w[2]-Math.max(v[0],v[2])):(j=ur(j,B,w[2]-v[0]-v[2]),w[1]+=(v[0]-v[2])/2),j<w[2]?(w[2]=j,w[3]=Math.min(A.thickness?Math.max(0,j-2*A.thickness):Math.max(0,ex(A.innerSize||0,j)),j),this.translate(w),this.drawDataLabels&&this.drawDataLabels()):I=!0),I}k.compose=function(v){if(zl.compose(ep),hv(Qm,"PieDataLabel")){let w=v.prototype;w.dataLabelPositioners=i,w.alignDataLabel=Jm,w.drawDataLabels=h,w.getDataLabelPosition=u,w.placeDataLabels=m,w.verifyDataLabelOverflow=g}}})(oe||(oe={}));let fv=oe;(_=ne||(ne={})).getCenterOfPoints=function(k){let i=k.reduce((u,h)=>(u.x+=h.x,u.y+=h.y,u),{x:0,y:0});return{x:i.x/k.length,y:i.y/k.length}},_.getDistanceBetweenPoints=function(k,i){return Math.sqrt(Math.pow(i.x-k.x,2)+Math.pow(i.y-k.y,2))},_.getAngleBetweenPoints=function(k,i){return Math.atan2(i.x-k.x,i.y-k.y)},_.pointInPolygon=function({x:k,y:i},u){let h=u.length,m,g,v=!1;for(m=0,g=h-1;m<h;g=m++){let[w,A]=u[m],[N,B]=u[g];A>i!=B>i&&k<(N-w)*(i-A)/(B-A)+w&&(v=!v)}return v};let{pointInPolygon:lh}=ne,{addEvent:Qo,getAlignFactor:tp,fireEvent:hu,objectEach:oh,pick:Ga}=Me;function si(k,i){let u,h=!1;return k&&(u=k.newOpacity,k.oldOpacity!==u&&(k.hasClass("highcharts-data-label")?(k[u?"removeClass":"addClass"]("highcharts-data-label-hidden"),h=!0,k[k.isOld?"animate":"attr"]({opacity:u},void 0,function(){i.styledMode||k.css({pointerEvents:u?"auto":"none"})}),hu(i,"afterHideOverlappingLabel")):k.attr({opacity:u})),k.isOld=!0),h}let{defaultOptions:fu}=tr,{noop:tx}=re,{addEvent:rp,extend:rx,isObject:sp,merge:sx,relativeLength:np}=Me,ip={radius:0,scope:"stack",where:void 0},ap=tx,lp=tx;function pv(k,i,u,h,m={}){let g=ap(k,i,u,h,m),{brStart:v=!0,brEnd:w=!0,innerR:A=0,r:N=u,start:B=0,end:j=0}=m;if(m.open||!m.borderRadius)return g;let I=j-B,U=Math.sin(I/2),q=Math.max(Math.min(np(m.borderRadius||0,N-A),(N-A)/2,N*U/(1+U)),0),ee=Math.min(q,I/Math.PI*2*A),G=g.length-1;for(;G--;)(v||G!==0&&G!==3)&&(w||G!==1&&G!==2)&&(function(K,de,me){let ve,be,Ae,Ee=K[de],Ce=K[de+1];if(Ce[0]==="Z"&&(Ce=K[0]),(Ee[0]==="M"||Ee[0]==="L")&&Ce[0]==="A"?(ve=Ee,be=Ce,Ae=!0):Ee[0]==="A"&&(Ce[0]==="M"||Ce[0]==="L")&&(ve=Ce,be=Ee),ve&&be&&be.params){let Fe=be[1],$e=be[5],Pe=be.params,{start:et,end:rt,cx:nt,cy:ct}=Pe,lt=$e?Fe-me:Fe+me,at=lt?Math.asin(me/lt):0,dr=$e?at:-at,hr=Math.cos(at)*lt;Ae?(Pe.start=et+dr,ve[1]=nt+hr*Math.cos(et),ve[2]=ct+hr*Math.sin(et),K.splice(de+1,0,["A",me,me,0,0,1,nt+Fe*Math.cos(Pe.start),ct+Fe*Math.sin(Pe.start)])):(Pe.end=rt-dr,be[6]=nt+Fe*Math.cos(Pe.end),be[7]=ct+Fe*Math.sin(Pe.end),K.splice(de+1,0,["A",me,me,0,0,1,nt+hr*Math.cos(rt),ct+hr*Math.sin(rt)])),be[4]=Math.abs(Pe.end-Pe.start)<Math.PI?0:1}})(g,G,G>1?ee:q);return g}function op(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:k,yAxis:i}=this,u=k.stacking==="percent",h=fu.plotOptions?.[this.type]?.borderRadius,m=pu(k.borderRadius,sp(h)?h:{}),g=i.options.reversed;for(let v of this.points){let{shapeArgs:w}=v;if(v.shapeType==="roundedRect"&&w){let{width:A=0,height:N=0,y:B=0}=w,j=B,I=N;if(m.scope==="stack"&&v.stackTotal){let G=i.translate(u?100:v.stackTotal,!1,!0,!1,!0),K=i.translate(k.threshold||0,!1,!0,!1,!0),de=this.crispCol(0,Math.min(G,K),0,Math.abs(G-K));j=de.y,I=de.height}let U=(v.negative?-1:1)*(g?-1:1)==-1,q=m.where;!q&&this.is("waterfall")&&Math.abs((v.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(q="all"),q||(q="end");let ee=Math.min(np(m.radius,A),A/2,q==="all"?N/2:1/0)||0;q==="end"&&(U&&(j-=ee),I+=ee),rx(w,{brBoxHeight:I,brBoxY:j,r:ee})}}}}function pu(k,i){return sp(k)||(k={radius:k||0}),sx(ip,i,k)}function mv(){let k=pu(this.options.borderRadius);for(let i of this.points){let u=i.shapeArgs;u&&(u.borderRadius=np(k.radius,(u.r||0)-(u.innerR||0)))}}function xv(k,i,u,h,m={}){let g=lp(k,i,u,h,m),{r:v=0,brBoxHeight:w=h,brBoxY:A=i}=m,N=i-A,B=A+w-(i+h),j=N-v>-.1?0:v,I=B-v>-.1?0:v,U=Math.max(j&&N,0),q=Math.max(I&&B,0),ee=[k+j,i],G=[k+u-j,i],K=[k+u,i+j],de=[k+u,i+h-I],me=[k+u-I,i+h],ve=[k+I,i+h],be=[k,i+h-I],Ae=[k,i+j],Ee=(Ce,Fe)=>Math.sqrt(Math.pow(Ce,2)-Math.pow(Fe,2));if(U){let Ce=Ee(j,j-U);ee[0]-=Ce,G[0]+=Ce,K[1]=Ae[1]=i+j-U}if(h<j-U){let Ce=Ee(j,j-U-h);K[0]=de[0]=k+u-j+Ce,me[0]=Math.min(K[0],me[0]),ve[0]=Math.max(de[0],ve[0]),be[0]=Ae[0]=k+j-Ce,K[1]=Ae[1]=i+h}if(q){let Ce=Ee(I,I-q);me[0]+=Ce,ve[0]-=Ce,de[1]=be[1]=i+h-I+q}if(h<I-q){let Ce=Ee(I,I-q-h);K[0]=de[0]=k+u-I+Ce,G[0]=Math.min(K[0],G[0]),ee[0]=Math.max(de[0],ee[0]),be[0]=Ae[0]=k+I-Ce,de[1]=be[1]=i}return g.length=0,g.push(["M",...ee],["L",...G],["A",j,j,0,0,1,...K],["L",...de],["A",I,I,0,0,1,...me],["L",...ve],["A",I,I,0,0,1,...be],["L",...Ae],["A",j,j,0,0,1,...ee],["Z"]),g}let{diffObjects:mu,extend:gv,find:nx,merge:$t,pick:Jo,uniqueKey:ch}=Me;function cp(k,i){let u=k.condition;(u.callback||function(){return this.chartWidth<=Jo(u.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=Jo(u.maxHeight,Number.MAX_VALUE)&&this.chartWidth>
34=Jo(u.minWidth,0)&&this.chartHeight>=Jo(u.minHeight,0)}).call(this)&&i.push(k._id)}function ix(k,i){let u=this.options.responsive,h=this.currentResponsive,m=[],g;!i&&u&&u.rules&&u.rules.forEach(A=>{A._id===void 0&&(A._id=ch()),this.matchResponsiveRule(A,m)},this);let v=$t(...m.map(A=>nx(u?.rules||[],N=>N._id===A)).map(A=>A?.chartOptions));v.isResponsiveOptions=!0,m=m.toString()||void 0;let w=h?.ruleIds;m!==w&&(h&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(h.undoOptions,k,!0),this.updatingResponsive=!1),m?((g=mu(v,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:m,mergedOptions:v,undoOptions:g},this.updatingResponsive||this.update(v,k,!0)):this.currentResponsive=void 0)}(fe||(fe={})).compose=function(k){let i=k.prototype;return i.matchResponsiveRule||gv(i,{matchResponsiveRule:cp,setResponsive:ix}),k};let up=fe;re.AST=Cr,re.Axis=Rn,re.Chart=Wi,re.Color=Nr,re.DataLabel=zl,re.DataTableCore=Bo,re.Fx=Ns,re.HTMLElement=gl,re.Legend=zd,re.LegendSymbol=_o,re.PlotLineOrBand=Vi,re.Point=ps,re.Pointer=Yr,re.RendererRegistry=fi,re.Series=Xs,re.SeriesRegistry=Ur,re.StackItem=$f,re.SVGElement=mi,re.SVGRenderer=Ea,re.Templating=Gs,re.Tick=Pi,re.Time=Tr,re.Tooltip=Na,re.animate=vs.animate,re.animObject=vs.animObject,re.chart=Wi.chart,re.color=Nr.parse,re.dateFormat=Gs.dateFormat,re.defaultOptions=tr.defaultOptions,re.distribute=wa.distribute,re.format=Gs.format,re.getDeferredAnimation=vs.getDeferredAnimation,re.getOptions=tr.getOptions,re.numberFormat=Gs.numberFormat,re.seriesType=Ur.seriesType,re.setAnimation=vs.setAnimation,re.setOptions=tr.setOptions,re.stop=vs.stop,re.time=tr.defaultTime,re.timers=Ns.timers,{compose:function(k,i,u){let h=k.types.pie;if(!i.symbolCustomAttribs.includes("borderRadius")){let m=u.prototype.symbols;rp(k,"afterColumnTranslate",op,{order:9}),rp(h,"afterTranslate",mv),i.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),ap=m.arc,lp=m.roundedRect,m.arc=pv,m.roundedRect=xv}},optionsToObject:pu}.compose(re.Series,re.SVGElement,re.SVGRenderer),Gf.compose(re.Series.types.column),zl.compose(re.Series),zi.compose(re.Axis),gl.compose(re.SVGRenderer),zd.compose(re.Chart),of.compose(re.Axis),(x=($=re.Chart).prototype).hideOverlappingLabels||(x.hideOverlappingLabels=function(k){let i=k.length,u=(B,j)=>!(j.x>=B.x+B.width||j.x+j.width<=B.x||j.y>=B.y+B.height||j.y+j.height<=B.y),h=(B,j)=>{for(let I of B)if(lh({x:I[0],y:I[1]},j))return!0;return!1},m,g,v,w,A,N=!1;for(let B=0;B<i;B++)(m=k[B])&&(m.oldOpacity=m.opacity,m.newOpacity=1,m.absoluteBox=(function(j){if(j&&(!j.alignAttr||j.placed)){let I=j.box?0:j.padding||0,U=j.alignAttr||{x:j.attr("x"),y:j.attr("y")},{height:q,polygon:ee,width:G}=j.getBBox(),K=tp(j.alignValue)*G;return j.width=G,j.height=q,{x:U.x+(j.parentGroup?.translateX||0)+I-K,y:U.y+(j.parentGroup?.translateY||0)+I,width:G-2*I,height:q-2*I,polygon:ee}}})(m));k.sort((B,j)=>(j?.labelrank||0)-(B?.labelrank||0));for(let B=0;B<i;++B){w=(g=k[B])&&g.absoluteBox;let j=w?.polygon;for(let I=B+1;I<i;++I){A=(v=k[I])&&v.absoluteBox;let U=!1;if(w&&A&&g!==v&&g?.newOpacity!==0&&v?.newOpacity!==0&&g?.visibility!=="hidden"&&v?.visibility!=="hidden"){let q=A.polygon;if(j&&q&&j!==q?h(j,q)&&(U=!0):u(w,A)&&(U=!0),U){let ee=g?.labelrank<v?.labelrank?g:v,G=ee?.text;ee&&(ee.newOpacity=0),G?.element.querySelector("textPath")&&G.hide()}}}}for(let B of k)B&&si(B,this)&&(N=!0);N&&hu(this,"afterHideAllOverlappingLabels")},Qo($,"render",function(){let k=this,i=[];for(let u of k.labelCollectors||[])i=i.concat(u());for(let u of k.yAxis||[])u.stacking&&u.options.stackLabels&&!u.options.stackLabels.allowOverlap&&oh(u.stacking.stacks,h=>{oh(h,m=>{m.label&&i.push(m.label)})});for(let u of k.series||[])if(u.visible&&u.hasDataLabels?.()){let h=m=>{for(let g of m)g.visible&&(g.dataLabels||[]).forEach(v=>{let w=v.options||{};v.labelrank=Ga(w.labelrank,g.labelrank,g.shapeArgs?.height),w.allowOverlap??Number(w.distance)>0?(v.oldOpacity=v.opacity,v.newOpacity=1,si(v,k)):i.push(v)})};h(u.nodes||[]),h(u.points)}this.hideOverlappingLabels(i)})),fv.compose(re.Series.types.pie),Vi.compose(re.Chart,re.Axis),Yr.compose(re.Chart),up.compose(re.Chart),su.compose(re.Axis,re.Chart,re.Series),Dm.compose(re.Axis,re.Chart,re.Series),Na.compose(re.Pointer),Me.extend(re,Me);let xu=re;return Q.default})())})(Pg)),Pg.exports}var FP=PP();const Jb=gc(FP);var Fg={exports:{}},zP=Fg.exports,pE;function UP(){return pE||(pE=1,(function(e,t){(function(r,n){e.exports=n(Xp())})(typeof self<"u"?self:zP,function(r){return(function(n){function l(f){if(c[f])return c[f].exports;var x=c[f]={i:f,l:!1,exports:{}};return n[f].call(x.exports,x,x.exports,l),x.l=!0,x.exports}var c={};return l.m=n,l.c=c,l.d=function(f,x,y){l.o(f,x)||Object.defineProperty(f,x,{configurable:!1,enumerable:!0,get:y})},l.n=function(f){var x=f&&f.__esModule?function(){return f.default}:function(){return f};return l.d(x,"a",x),x},l.o=function(f,x){return Object.prototype.hasOwnProperty.call(f,x)},l.p="",l(l.s=0)})([function(n,l,c){function f(){return f=Object.assign?Object.assign.bind():function(D){for(var F=1;F<arguments.length;F++){var J=arguments[F];for(var te in J)Object.prototype.hasOwnProperty.call(J,te)&&(D[te]=J[te])}return D},f.apply(this,arguments)}function x(D){return C(D)||S(D)||b(D)||y()}function y(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 35In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}
35function b(D,F){if(D){if(typeof D=="string")return R(D,F);var J=Object.prototype.toString.call(D).slice(8,-1);return J==="Object"&&D.constructor&&(J=D.constructor.name),J==="Map"||J==="Set"?Array.from(D):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?R(D,F):void 0}}function S(D){if(typeof Symbol<"u"&&D[Symbol.iterator]!=null||D["@@iterator"]!=null)return Array.from(D)}function C(D){if(Array.isArray(D))return R(D)}function R(D,F){(F==null||F>D.length)&&(F=D.length);for(var J=0,te=new Array(F);J<F;J++)te[J]=D[J];return te}function O(D){"@babel/helpers - typeof";return(O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}Object.defineProperty(l,"__esModule",{value:!0}),c.d(l,"HighchartsReact",function(){return $});var M=c(1),P=c.n(M),_=typeof window<"u"?M.useLayoutEffect:M.useEffect,$=Object(M.memo)(Object(M.forwardRef)(function(D,F){var J=Object(M.useRef)(),te=Object(M.useRef)(),le=Object(M.useRef)(D.constructorType),se=Object(M.useRef)(D.highcharts);return _(function(){function L(){var z=D.highcharts||(typeof window>"u"?"undefined":O(window))==="object"&&window.Highcharts,H=D.constructorType||"chart";z?z[H]?D.options?te.current=z[H](J.current,D.options,D.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(te.current){if(D.allowChartUpdate!==!1)if(D.constructorType!==le.current||D.highcharts!==se.current)le.current=D.constructorType,se.current=D.highcharts,L();else if(!D.immutable&&te.current){var W;(W=te.current).update.apply(W,[D.options].concat(x(D.updateArgs||[!0,!0])))}else L()}else L()},[D.options,D.allowChartUpdate,D.updateArgs,D.containerProps,D.highcharts,D.constructorType]),_(function(){return function(){te.current&&(te.current.destroy(),te.current=null)}},[]),Object(M.useImperativeHandle)(F,function(){return{get chart(){return te.current},container:J}},[]),P.a.createElement("div",f({},D.containerProps,{ref:J}))}));l.default=$},function(n,l){n.exports=r}])})})(Fg)),Fg.exports}var $P=UP();const Fk=gc($P),VP=Y.memo(({data:e,stock:t})=>{const r=er(),n=Ye(uC),c=Ye(x=>x.auth.userType)==="delay"?3e5:6e4;Y.useEffect(()=>{r(Jg(n));const x=setInterval(()=>{r(Jg(n))},c);return()=>clearInterval(x)},[r,n,c]);const f=Y.useMemo(()=>{const x=Ny(t.change,t.percentChange),y=jO[x]||"#FFC42D",b=e.map(R=>R.time),S=e.map(R=>R.price||null),C=e.map(R=>R.volume);return{chart:{height:300,backgroundColor:"transparent"},title:{text:void 0},legend:{enabled:!1},credits:{enabled:!1},xAxis:{visible:!1,crosshair:{width:1,color:"#FFFFFF",dashStyle:"Dash"},categories:b},yAxis:[{height:"80%",title:{text:void 0},labels:{enabled:!1},gridLineWidth:0,plotLines:[{value:t.prior,width:1,color:"#7F8386",dashStyle:"Dash"}]},{top:"50%",height:"50%",title:{text:void 0},labels:{enabled:!1},gridLineWidth:0}],tooltip:{style:{color:"#FFFFFF",fontSize:"12px"},backgroundColor:"transparent",borderWidth:0,shared:!0,shadow:!1,formatter:function(){const R=this.points;return!R||R.length===0?"":`${Jb.numberFormat(R[0].y??0,2)} at ${this.key}`}},plotOptions:{area:{marker:{enabled:!1,states:{hover:{enabled:!0,fillColor:"#FFFFFF"}}},threshold:null},column:{enableMouseTracking:!1,borderWidth:0,borderRadius:0,dataLabels:{enabled:!1}},series:{states:{hover:{lineWidthPlus:0},inactive:{opacity:1}},marker:{enabled:!1}}},series:[{yAxis:0,name:"Price",color:y,data:S,type:"area",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,y],[1,"transparent"]]}},{yAxis:1,name:"Volume",color:"#7F8386",data:C,type:"column"}]}},[e,t.change,t.percentChange,t.prior]);return o.jsx("div",{children:o.jsx(Fk,{highcharts:Jb,options:f})})}),HP=Y.memo(({stock:e})=>{const t=Ct(e.totalValue),r=e.buyVolume||0,n=e.sellVolume||0,l=e.unknownVolume||0,c=r+n+l;if(c===0)return null;const f=r/c*100,x=n/c*100,y=l/c*100;return o.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[o.jsx("div",{className:"flex-1",children:o.jsxs("div",{className:"flex w-full h-[25px] text-xs",children:[o.jsx("div",{className:"relative bg-blue",style:{width:`${f}%`},children:o.jsxs("div",{className:"absolute left-1 top-1",children:["Buy ",qe(f,2),"%"]})}),o.jsx("div",{className:"bg-warning",style:{width:`${y}%`}}),o.jsx("div",{className:"relative bg-pink text-end",style:{width:`${x}%`},children:o.jsxs("div",{className:"absolute right-1 top-1",children:[qe(x,2),"% Sell"]})})]})}),o.jsxs("div",{className:"flex items-center justify-between gap-2 text-base sm:w-auto",children:[o.jsx("span",{className:"text-secondary",children:"Value: "}),o.jsx("span",{className:t,children:Yn(e.totalValue)})]})]})}),YP=Y.memo(({stock:e})=>{const t=Y.useMemo(()=>{const r=e.price||0,n=e.yearMin>r?r:e.yearMin,l=e.yearMax<r?r:e.yearMax,c=e.m1Min>r?r:e.m1Min,f=e.m1Max<r?r:e.m1Max,x=l-n;if(x<=0)return null;const y=(c-n)/x*100,b=(r-n)/x*100,S=(f-n)/x*100;return{yearMin:n,yearMax:l,m1Min:c,m1Max:f,price:r,m1MinPct:y,pricePct:b,m1MaxPct:S}},[e.price,e.yearMin,e.yearMax,e.m1Min,e.m1Max]);return t?o.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{height:"80px"},children:[o.jsxs("div",{className:"text-center",children:[o.jsx("p",{children:qe(t.yearMin,2)}),o.jsx("p",{className:"text-secondary text-[10px] text-start",children:"52wk."})]}),o.jsxs("div",{className:"flex-1 relative h-[4px] bg-app-border rounded mx-2 my-4",children:[o.jsx("div",{className:"absolute h-[4px] bg-primary rounded",style:{left:`${t.m1MinPct}%`,width:`${t.m1MaxPct-t.m1MinPct}%`}}),o.jsx("div",{className:"absolute w-[2px] h-[10px] bg-white",style:{left:`${t.m1MinPct}%`}}),o.jsx("div",{className:"absolute top-[18px] text-xs",style:{left:`${t.m1MinPct}%`,transform:"translateX(-50%)"},children:qe(t.m1Min,2)}),o.jsx("div",{className:"absolute top-[-2px] w-[8px] h-[8px] bg-white border-2 border-primary rounded-full",style:{left:`${t.pricePct}%`,transform:"translateX(-50%)"}}),o.jsx("div",{className:"absolute top-[-14px] text-[8px] text-secondary",style:{left:`${t.pricePct}%`,transform:"translateX(-50%)"},children:"30D"}),o.jsx("div",{className:"absolute top-[-4px] w-[2px] h-[8px] bg-white",style:{left:`${t.m1MaxPct}%`}}),o.jsx("div",{className:"absolute top-[-25px] text-[12px]",style:{left:`${t.m1MaxPct}%`,transform:"translateX(-50%)"},children:qe(t.m1Max,2)})]}),o.jsxs("div",{className:"text-center",children:[o.jsx("p",{children:qe(t.yearMax,2)}),o.jsx("p",{className:"text-secondary text-[10px] text-end",children:"52wk."})]})]}):null}),GP="https://stockradars-image.com",XP=Y.memo(({items:e})=>{const t=yr(),r=Ye(f=>f.auth.userType),[n,l]=Y.useState(!1),c=Y.useCallback(f=>{const x=f.split("//")[1];if(!x)return;if(zC(x,r)==="lock"){l(!0);return}t(`/${x}`)},[t,r]);return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex gap-0 bg-app-darkgray rounded justify-around",children:e.map(f=>o.jsxs("div",{className:"flex flex-col w-full items-center cursor-pointer px-3 py-2 min-w-20 text-center hover:bg-app-hover",onClick:()=>c(f.deepUrl),children:[o.jsx("div",{className:"text-center",children:o.jsx("img",{src:`${GP}/${f.imgUrl}`,width:40,height:40,alt:f.name})}),o.jsx("p",{className:"text-xs mt-2 whitespace-nowrap",children:f.name})]},f.name))}),o.jsx(O1,{isOpen:n,onClose:()=>l(!1)})]})}),qP=Y.memo(({topGainer:e,topLoser:t,onMoreClick:r})=>{const n=yr(),l=Y.useRef(null),[c,f]=Y.useState(!1),[x,y]=Y.useState(!1),b=()=>{const C=l.current;C&&(f(C.scrollLeft>1),y(C.scrollLeft+C.clientWidth<C.scrollWidth-1))};Y.useEffect(()=>{b();const C=l.current;if(!C)return;C.addEventListener("scroll",b,{passive:!0});const R=new ResizeObserver(b);return R.observe(C),()=>{C.removeEventListener("scroll",b),R.disconnect()}},[e,t]);const S=C=>{l.current?.scrollBy({left:C==="left"?-320:320,behavior:"smooth"})};return e.length===0&&t.length===0?null:o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsx("p",{children:"Top Gainer / Top Loser"}),o.jsx("p",{className:"cursor-pointer text-white",onClick:r,children:"More >"})]}),o.jsxs("div",{className:"relative",children:[c&&o.jsx("button",{onMouseDown:C=>C.preventDefault(),onClick:()=>S("left"),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 w-8 h-8 rounded-full bg-app-surface border border-app-border flex items-center justify-center text-white hover:bg-app-border transition-colors shadow-lg",children:o.jsx(DC,{size:18,strokeWidth:2.5})}),o.jsx("div",{ref:l,className:"overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",onScroll:b,children:o.jsxs("div",{className:"flex flex-col gap-x-1",children:[o.jsx("div",{className:"flex gap-1",children:e.map(C=>o.jsx("div",{className:"relative cursor-pointer min-w-[60px] w-[60px]",onClick:()=>n(`/realtime/${encodeURIComponent(C.symbol.replace(".",""))}`),children:o.jsxs("div",{className:"relative flex items-center justify-center border border-green1 h-[100px] rounded-sm",children:[o.jsx("div",{className:"absolute inset-x-0 bottom-0 bg-green1 transition-all duration-600",style:{height:`${Math.min(Math.abs(C.percentChange)*100/30,100)}%`}}),o.jsxs("div",{className:"relative z-10 text-center text-xs text-white",children:[o.jsx("p",{className:"truncate",children:C.symbol}),o.jsxs("p",{children:[cr(C.percentChange,2),"%"]})]})]})},C.name))}),o.jsx("div",{className:"flex gap-1",children:t.map(C=>o.jsx("div",{className:"relative cursor-pointer min-w-[60px] w-[60px]",onClick:()=>n(`/realtime/${encodeURIComponent(C.symbol.replace(".",""))}`),children:o.jsxs("div",{className:"relative flex items-center justify-center border border-red1 h-[100px] rounded-sm",children:[o.jsx("div",{className:"absolute inset-x-0 top-0 bg-red1 transition-all duration-600",style:{height:`${Math.min(Math.abs(C.percentChange)*100/30,100)}%`}}),o.jsxs("div",{className:"relative z-10 text-center text-xs text-white",children:[o.jsx("p",{className:"truncate",children:C.symbol}),o.jsxs("p",{children:[cr(C.percentChange,2),"%"]})]})]})},C.name))})]})}),x&&o.jsx("button",{onMouseDown:C=>C.preventDefault(),onClick:()=>S("right"),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 w-8 h-8 rounded-full bg-app-surface border border-app-border flex items-center justify-center text-white hover:bg-app-border transition-colors shadow-lg",children:o.jsx(LC,{size:18,strokeWidth:2.5})})]})]})}
35),il=({children:e,gap:t="gap-1",className:r=""})=>{const n=Y.useRef(null),[l,c]=Y.useState(!1),[f,x]=Y.useState(!1),y=()=>{const S=n.current;S&&(c(S.scrollLeft>1),x(S.scrollLeft+S.clientWidth<S.scrollWidth-1))};Y.useEffect(()=>{y();const S=n.current;if(!S)return;S.addEventListener("scroll",y,{passive:!0});const C=new ResizeObserver(y);return C.observe(S),()=>{S.removeEventListener("scroll",y),C.disconnect()}},[e]);const b=S=>{n.current?.scrollBy({left:S==="left"?-320:320,behavior:"smooth"})};return o.jsxs("div",{className:`relative ${r}`,children:[l&&o.jsx("button",{onMouseDown:S=>S.preventDefault(),onClick:()=>b("left"),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 w-8 h-8 rounded-full bg-app-surface border border-app-border flex items-center justify-center text-white hover:bg-app-border transition-colors shadow-lg","aria-label":"Scroll left",children:o.jsx(DC,{size:18,strokeWidth:2.5})}),o.jsx("div",{ref:n,className:`flex overflow-x-auto ${t} [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,onScroll:y,children:e}),f&&o.jsx("button",{onMouseDown:S=>S.preventDefault(),onClick:()=>b("right"),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 w-8 h-8 rounded-full bg-app-surface border border-app-border flex items-center justify-center text-white hover:bg-app-border transition-colors shadow-lg","aria-label":"Scroll right",children:o.jsx(LC,{size:18,strokeWidth:2.5})})]})},WP=Y.memo(({items:e})=>{const t=yr();return e.length===0?null:o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsx("p",{children:"Most Active Value"}),o.jsx("p",{className:"cursor-pointer text-white",onClick:()=>t("/market-mover"),children:"More >"})]}),o.jsx(il,{gap:"gap-1",children:e.map(r=>o.jsx("div",{children:o.jsx(Dy,{stock:r})},r.name))})]})}),mE="https://stockradars-image.com",QP=Y.memo(()=>{const e=yr(),[t,r]=Y.useState([]);return Y.useEffect(()=>{(async()=>{const l=await cB();l?.length&&r(l)})()},[]),t.length===0?null:o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsx("p",{children:"Radars"}),o.jsx("p",{className:"cursor-pointer text-white",onClick:()=>e("/radars"),children:"More >"})]}),o.jsx(il,{gap:"gap-1",children:t.map(n=>o.jsxs("div",{className:"relative cursor-pointer",onClick:()=>e(`/radars/${n.radarsId}`),children:[o.jsx("div",{className:"bg-card",style:{backgroundImage:`url(${mE}/images/sub_radars_bg/${n.radarsId}.png)`,height:"80px"}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center p-1",children:[o.jsx("img",{className:"mb-1",src:`${mE}/images/sub_radars/${n.radarsId}.png`,height:40,width:40,alt:n.name}),o.jsx("p",{className:"text-xs whitespace-nowrap truncate max-w-full",children:n.name})]})]},n.radarsId))})]})}),JP="https://stockradars-image.com",KP=Y.memo(()=>{const[e,t]=Y.useState([]),r=yr();return Y.useEffect(()=>{(async()=>{const l=await uB();l?.data?.length&&t(l.data)})()},[]),e.length===0?null:o.jsxs("div",{children:[o.jsx("p",{className:"mb-2",children:"Today Events"}),o.jsx(il,{gap:"gap-1",children:e.map((n,l)=>{const c=n.type==="flagEffect"?n.flag?.toLowerCase():n.type.toLowerCase();return o.jsxs("div",{className:"relative cursor-pointer",onClick:()=>r(`/realtime/${encodeURIComponent(n.symbol.replace(".",""))}`),children:[o.jsx("div",{className:"bg-card",style:{backgroundImage:`url(${JP}/images/market_overview_card_bg/${c}.png)`,height:"80px"}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col justify-between p-3",children:[o.jsxs("div",{className:"flex justify-between items-end",children:[o.jsx("div",{children:n.flag&&o.jsx("p",{className:"flex items-center justify-center rounded-full bg-white text-gray-900 w-[35px] h-[35px] text-xs font-bold",children:n.flag})}),o.jsxs("div",{className:"text-end",children:[n.type==="flagEffect"&&n.flag==="XD"&&o.jsxs("p",{className:"text-[12px]",children:[n.dividendPerShare," à¸à¸²à¸/หุà¹à¸"]}),n.type==="Earnings Call"&&o.jsx("p",{children:"Earnings Call"}),o.jsx("p",{className:"text-[10px] text-secondary",children:Pr(n.dataDate).format("DD MMM YYYY")})]})]}),o.jsx("p",{className:"text-end text-base font-semibold text-[20px]",children:n.symbol})]})]},`${n.symbol}-${l}`)})})]})}),ZP="https://stockradars-image.com",eF=Y.memo(()=>{const[e,t]=Y.useState([]),r=yr();return Y.useEffect(()=>{(async()=>{const l=await dB();l?.data?.length&&t(l.data)})()},[]),e.length===0?null:o.jsxs("div",{children:[o.jsx("p",{className:"mb-2",children:"This Week Events"}),o.jsx(il,{gap:"gap-1",children:e.map((n,l)=>{const c=n.type==="flagEffect"?n.flag?.toLowerCase():n.type.toLowerCase();return o.jsxs("div",{className:"relative cursor-pointer",onClick:()=>r(`/realtime/${encodeURIComponent(n.symbol.replace(".",""))}`),children:[o.jsx("div",{className:"bg-card",style:{backgroundImage:`url(${ZP}/images/market_overview_card_bg/${c}.png)`,height:"80px"}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col justify-between p-3",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsx("div",{children:n.flag&&o.jsx("p",{className:"flex items-center justify-center rounded-full bg-white text-gray-900 w-[35px] h-[35px] text-xs font-bold",children:n.flag})}),o.jsxs("div",{className:"text-end",children:[n.type==="flagEffect"&&n.flag==="XD"&&o.jsxs("p",{className:"text-[12px]",children:[n.dividendPerShare," à¸à¸²à¸/หุà¹à¸"]}),n.type==="Earnings Call"&&o.jsx("p",{className:"text-[14px]",children:"Earnings Call"}),o.jsx("p",{className:"text-[10px] text-secondary",children:Pr(n.dataDate).format("DD MMM YYYY")})]})]}),o.jsx("p",{className:"text-end text-base font-semibold text-[20px]",children:n.symbol})]})]},`${n.symbol}-${l}`)})})]})}),tF="https://stockradars-image.com",rF=Y.memo(({item:e})=>{const t=yr(),r=Ye(f=>{const x=e.name.replace(".","").replace("-m","-M");return f.securities.securities[x]||f.securities.securities[e.name]}),n=r?.price?r.percentChange:e.percentChange,l=Ct(n),c=tl(n);return o.jsxs("div",{className:"relative cursor-pointer",onClick:()=>t(`/realtime/${encodeURIComponent(e.symbol.replace(".",""))}`),children:[o.jsx("div",{className:"bg-card",style:{backgroundImage:`url(${tF}/images/sub_radars_bg/${e.radarsId}.png)`,height:"80px"}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center text-sm",children:[o.jsx("p",{className:"mb-1",children:e.symbol}),o.jsxs("p",{className:`${c} ${l}`,children:[cr(n,2),"%"]})]})]})}),sF=Y.memo(()=>{const[e,t]=Y.useState([]);return Y.useEffect(()=>{(async()=>{const n=await hB();if(!n?.length)return;const l=n.map(x=>x.code);await r0(l.join(","));const c=l.join(",").replaceAll("-m","-M").replaceAll(",","|").replaceAll(".","");await Dh(c);const f=n.map(x=>
35({radarsId:x.radarsId,name:x.code,symbol:x.code.replace("-m",""),sector:x.code,price:x.close,prior:x.prior,percentChange:x.percentChange}));f.sort((x,y)=>y.percentChange-x.percentChange),t(f)})()},[]),e.length===0?null:o.jsxs("div",{children:[o.jsx("p",{className:"mb-2",children:"Sector Overview"}),o.jsx(il,{gap:"gap-1",children:e.map(r=>o.jsx(rF,{item:r},r.name))})]})}),nF="https://stockradars-image.com",iF=Y.memo(({item:e})=>{const t=Ct(e.percent_change_d),r=tl(e.percent_change_d);return o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"bg-card",style:{backgroundImage:`url(${nF}/images/market_overview_card_bg/indices-${encodeURI(e.short_name_v.toLowerCase())}.png)`,height:"80px"}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center text-sm",children:[o.jsx("p",{className:"mb-1",children:e.short_name_v}),o.jsx("p",{className:"mb-1",children:qe(e.price_d,2)}),o.jsxs("p",{className:`${r} ${t}`,children:[cr(e.percent_change_d,2),"%"]})]})]})}),aF=Y.memo(()=>{const[e,t]=Y.useState(null);return Y.useEffect(()=>{(async()=>{const n=await fB();n?.data?.length&&t(n)})()},[]),!e||!e.data?.length?null:o.jsxs("div",{children:[o.jsxs("p",{className:"mb-2",children:["Indices ",e.last_update?`(${VC(e.last_update)})`:""]}),o.jsx(il,{gap:"gap-1",children:e.data.map(r=>o.jsx(iF,{item:r},r.short_name_v))})]})}),Rx=Y.memo(({label:e,labelColor:t,buy:r,sell:n,total:l})=>{const c=r-n,f=tl(c);return o.jsxs(o.Fragment,{children:[o.jsxs("tr",{className:`text-nowrap ${t}`,children:[o.jsx("td",{className:"p-1",children:e}),o.jsx("td",{}),o.jsx("td",{})]}),o.jsxs("tr",{children:[o.jsxs("td",{className:"p-1 w-1/4",children:[o.jsx("p",{children:Yn(r,2)}),o.jsxs("p",{className:"text-secondary text-xs",children:["(",qe(r/l*100,2),"%)"]})]}),o.jsxs("td",{className:"p-1 w-1/4",children:[o.jsx("p",{children:Yn(n,2)}),o.jsxs("p",{className:"text-secondary text-xs",children:["(",qe(n/l*100,2),"%)"]})]}),o.jsx("td",{className:`p-1 w-1/2 text-end text-sm ${f}`,children:Yn(c,2)})]})]})}),lF=Y.memo(()=>{const[e,t]=Y.useState(null);return Y.useEffect(()=>{(async()=>{const n=await pB();n&&t(n)})()},[]),e?o.jsxs("div",{children:[o.jsxs("p",{className:"mx-1 mb-2",children:["Investor Type (",Pr(e.date).format("DD MMM YYYY"),")"]}),o.jsx("table",{className:"w-full text-sm",children:o.jsxs("tbody",{children:[o.jsxs("tr",{children:[o.jsx("td",{className:"text-secondary py-1",children:"มูลà¸à¹à¸²à¸à¸²à¸£à¸à¸·à¹à¸à¸à¸²à¸¢"}),o.jsx("td",{}),o.jsx("td",{className:"text-end text-sm",children:Yn(e.totalVal,2)})]}),o.jsx(Rx,{label:"สà¸à¸²à¸à¸±à¸à¹à¸à¸à¸£à¸°à¹à¸à¸¨ (à¸à¸·à¹à¸/à¸à¸²à¸¢)",labelColor:"darkblue",buy:e.buyValInstitue,sell:e.sellValInstitue,total:e.totalVal}),o.jsx(Rx,{label:"à¸à¸±à¸à¸à¸µà¸à¸£à¸´à¸©à¸±à¸à¸«à¸¥à¸±à¸à¸à¸£à¸±à¸à¸¢à¹ (à¸à¸·à¹à¸/à¸à¸²à¸¢)",labelColor:"darkorange",buy:e.buyValProprietary,sell:e.sellValProprietary,total:e.totalVal}),o.jsx(Rx,{label:"à¸à¸±à¸à¸¥à¸à¸à¸¸à¸à¸à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨ (à¸à¸·à¹à¸/à¸à¸²à¸¢)",labelColor:"darkgreen",buy:e.buyValForeign,sell:e.sellValForeign,total:e.totalVal}),o.jsx(Rx,{label:"à¸à¸±à¸à¸¥à¸à¸à¸¸à¸à¸à¸±à¹à¸§à¹à¸à¹à¸à¸à¸£à¸°à¹à¸à¸¨ (à¸à¸·à¹à¸/à¸à¸²à¸¢)",labelColor:"darkgray",buy:e.buyValCustomer,sell:e.sellValCustomer,total:e.totalVal})]})})]}):null}),oF=Y.memo(({stock:e})=>{const t=Ct(e.price),r=Ct(e.change),n=e.price&&e.prior?tl(e.percentChange):"text-white";return o.jsxs("tr",{children:[o.jsx("td",{className:"py-1",children:e.symbol}),o.jsx("td",{className:`text-end ${n} ${t}`,children:qe(e.price,2)}),o.jsx("td",{className:`text-end ${n} ${r}`,children:cr(e.change,2)}),o.jsx("td",{className:"text-end",children:Yn(e.totalValue,2)})]})}),cF=Y.memo(({menuList:e})=>{const t=Ye(n=>n.securities.securities),r=e.map(n=>{const l=n.replace(".","");return t[l]}).filter(n=>!!n);return o.jsxs("div",{children:[o.jsx("p",{className:"mx-1 mb-2",children:"Market Overview"}),o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"text-secondary",children:[o.jsx("td",{className:"py-1 w-1/4",children:"Market"}),o.jsx("td",{className:"text-end w-1/4",children:"Index"}),o.jsx("td",{className:"text-end w-1/4",children:"Change"}),o.jsx("td",{className:"text-end w-1/4",children:"Value"})]})}),o.jsx("tbody",{children:r.length===0?Array.from({length:6}).map((n,l)=>o.jsxs("tr",{className:"h-8",children:[o.jsx("td",{className:"py-1",children:o.jsx("div",{className:"h-3 w-14 roun
35ded bg-app-border animate-pulse"})}),o.jsx("td",{className:"py-1",children:o.jsx("div",{className:"h-3 w-12 rounded bg-app-border animate-pulse ml-auto"})}),o.jsx("td",{className:"py-1",children:o.jsx("div",{className:"h-3 w-10 rounded bg-app-border animate-pulse ml-auto"})}),o.jsx("td",{className:"py-1",children:o.jsx("div",{className:"h-3 w-12 rounded bg-app-border animate-pulse ml-auto"})})]},l)):r.map(n=>o.jsx(oF,{stock:n},n.name))})]})]})}),xE="https://stockradars-image.com",uF=Y.memo(()=>{const[e,t]=Y.useState(null);if(Y.useEffect(()=>{(async()=>{const l=await mB();l?.data?.length&&t(l)})()},[]),!e?.data?.length)return null;const r=n=>n.split(" ")[0];return o.jsxs("div",{children:[o.jsxs("p",{className:"mb-2",children:["Exchange Rate ",e.lastUpdate?`(${$C(e.lastUpdate)})`:""]}),o.jsx(il,{gap:"gap-1",children:e.data.map(n=>o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"bg-card",style:{backgroundImage:`url('${xE}/images/market_overview_card_bg/${r(n.currency)}.png')`,height:"80px"}}),o.jsxs("div",{className:"absolute inset-0 flex items-center px-3",children:[o.jsx("div",{className:"w-1/4",children:o.jsx("img",{className:"rounded-full",src:`${xE}/images/flag/${encodeURIComponent(n.currency)}.png`,width:35,height:35,alt:n.currency})}),o.jsxs("div",{className:"w-3/4 text-end text-sm",children:[o.jsx("p",{children:n.currency}),o.jsx("p",{children:n.exchangeRate}),o.jsx("p",{className:tl(n.change),children:cr(n.change,4,4)})]})]})]},n.currency))})]})}),dF="https://stockradars-image.com",hF=Y.memo(({item:e})=>{const t=e.Type==="gold"?e.Change:e.PercentChange,r=Ct(t),n=tl(t||0);return o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"bg-card",style:{backgroundImage:`url(${dF}/images/market_overview_card_bg/${e.Image.toLowerCase()}.png)`,height:"80px"}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center text-sm px-3 gap-0.5",children:[o.jsx("p",{className:"whitespace-nowrap leading-none",children:e.Name}),o.jsx("p",{className:"leading-none",children:e.Type==="gold"?`${qe(e.Buy)}/${qe(e.Sell)}`:`$${qe(e.Price,2)}`}),o.jsx("p",{className:`${n} ${r} leading-none`,children:e.Type==="gold"?cr(e.Change,2):`${cr(e.PercentChange,2)}%`}),e.lastUpdate&&o.jsx("p",{className:"text-xs",children:VC(e.lastUpdate)})]})]})}),fF=Y.memo(()=>{const[e,t]=Y.useState([]);return Y.useEffect(()=>{(async()=>{const n=await vB();n&&t(Array.isArray(n)?n:[])})()},[]),e.length===0?null:o.jsxs("div",{children:[o.jsx("p",{className:"mb-2",children:"Commodities"}),o.jsx(il,{gap:"gap-1",children:e.map(r=>o.jsx(hF,{item:r},r.Name))})]})}),pF="https://stockradars-image.com",mF=Y.memo(({item:e})=>{const t=parseFloat(e.PercentChange)||0,r=Ct(t),n=tl(t);return o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"bg-card",style:{backgroundImage:`url(${pF}/images/market_overview_card_bg/${e.Image.toLowerCase()}.png)`,height:"80px"}}),o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center text-sm px-3 gap-0.5",children:[o.jsx("p",{className:"whitespace-pre-line",children:e.Name}),o.jsxs("p",{className:`${n} ${r}`,children:[qe(parseFloat(e.Price)||0,2)," ",e.Suffix]})]})]})}),xF=Y.memo(()=>{const[e,t]=Y.useState(null);return Y.useEffect(()=>{(async()=>{const n=await bB();n&&t(n)})()},[]),e?.data?.length?o.jsxs("div",{children:[o.jsxs("p",{className:"mb-2",children:["Interest Rate ",e.lastUpdate?`(${$C(e.lastUpdate)})`:""]}),o.jsx(il,{gap:"gap-1",children:e.data.map(r=>o.jsx(mF,{item:r},r.Name))})]}):null}),gF=Y.memo(()=>{const[e,t]=Y.useState([]);return Y.useEffect(()=>{(async()=>{const n=await xB(0,20);n?.data?.length&&t(n.data)})()},[]),e.length===0?null:o.jsxs("div",{children:[o.jsx("p",{className:"mb-2",children:"StockRadars News"}),o.jsx(il,{gap:"gap-2",children:e.map(r=>o.jsx("img",{className:"rounded cursor-pointer",src:r.image,width:335,alt:"news",onClick:()=>window.open(r.link)},r.id))})]})}),yF=[{name:"R",value:"R"},{name:"YTD",value:"YTD"},{name:"1M",value:"1M"},{name:"3M",value:"3M"},{name:"6M",value:"6M"},{name:"1Y",value:"1Y"},{name:"3Y",value:"3Y"},{name:"5Y",value:"5Y"},{name:"IPO",value:"IPO"}];function gE(e){return!e?.list||!Array.isArray(e.list)?[]:e.list.map(t=>({name:t.sym,percentChange:Un(We(t.prr),We(t.prc)||We(t.prr))}))}function yE(e){return Array.isArray(e)?e.map(t=>({name:t.symbol,percentChange:t.percentChange})):[]}const vF=({onClose:e})=>{const[t,r]=Y.useState("R"),[n,l]=Y.useState([]),[c,f]=Y.useState([]),x=Y.useCallback(async S=>{if(S==="R"){const[C,R]=await Promise.all([Hp("FG","ST","S","40"),Hp("FL","ST","S","40")]);l(gE(C)),f(gE(R))}else{const[C,R]=await Promise.all([gB(S),yB(S)]);l(yE(C)),f(yE(R))}},[]);Y.useEffect(()=>{x(t)},[t,x]);const y=Y.useMemo(()=>[...n].sort((S,C)=>C.percentChange-S.percentChange),[n]),b=Y.useMemo(()=>[...c].sort((S,C)=>S.percentChange-C.percentChange),[c]);return o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop"}),o.jsxs("div",{className:"relative bg-app-darkgray rounded-lg w-full max-w-3xl mx-4 max-h-[85vh] flex flex-col animate-modal-content",children:[o.jsxs("div",{className:"bg-header flex items-center justify-between p-4 border-b border-app-border rounded-t-lg",children:[o.jsx("div",{className:"flex-1 text-center",children:o.jsx("p",{className:"font-semibold",children:"Top Gainer / Top Loser"})}),o.jsx("button",{onClick:e,className:"text-white hover:text-white/70",children:o.jsx(M1,{size:24})})]}),o.jsx("div",{className:"flex items-center px-3 py-2",children:yF.map(S=>o.jsx("button",{className:`flex-1 py-1.5 rounded-full text-xs font-medium transition-colors text-center ${t===S.value?"bg-primary text-white":"text-app-muted hover:text-white"}`,onClick:()=>
35r(S.value),children:S.name},S.value))}),o.jsx("div",{className:"flex-1 overflow-auto p-4",style:{maxHeight:"70vh"},children:o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsx("div",{children:y.map(S=>o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx("span",{className:"w-16 text-xs truncate",children:S.name}),o.jsx("div",{className:"flex-1 relative h-[20px]",children:o.jsxs("div",{className:"absolute inset-0 flex items-center",children:[o.jsx("div",{className:"absolute w-full text-end z-10 pr-1",children:o.jsxs("span",{className:"text-xs",children:[cr(S.percentChange,2,2),"%"]})}),o.jsx("div",{className:"absolute right-0 h-full bg-green1",style:{width:`${Math.min(Math.abs(S.percentChange),100)}%`}})]})})]},S.name))}),o.jsx("div",{children:b.map(S=>o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx("div",{className:"flex-1 relative h-[20px]",children:o.jsxs("div",{className:"absolute inset-0 flex items-center",children:[o.jsx("div",{className:"absolute w-full text-start z-10 pl-1",children:o.jsxs("span",{className:"text-xs",children:[cr(S.percentChange,2,2),"%"]})}),o.jsx("div",{className:"absolute left-0 h-full bg-red1",style:{width:`${Math.min(Math.abs(S.percentChange),100)}%`}})]})}),o.jsx("span",{className:"w-16 text-xs text-end truncate",children:S.name})]},S.name))})]})})]})]})},bF=({onClose:e})=>{const[t,r]=Y.useState(!0),n=Ye(b=>b.auth.broker),l="https://stockradars.co/appmodule/insight_v4",c=He.getUserId()||"",f=He.getToken()||"",x=He.getState()||"",y=`${l}/biglot-history-list?userId=${c}&Token=${f}&broker=${n}&bundle=${n}&state=${x}`;return o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop"}),o.jsxs("div",{className:"relative bg-app-darkgray rounded-lg w-full max-w-2xl mx-4 flex flex-col animate-modal-content",children:[o.jsxs("div",{className:"bg-header flex items-center justify-between p-4 border-b border-app-border rounded-t-lg",children:[o.jsx("div",{className:"flex-1 text-center",children:o.jsx("p",{className:"font-semibold",children:"Big Lot Activity"})}),o.jsx("button",{onClick:e,className:"text-white",children:o.jsx(M1,{size:24})})]}),o.jsxs("div",{className:"p-0 relative",children:[t&&o.jsx("div",{className:"absolute inset-0 flex justify-center items-center bg-app-bg z-10",children:o.jsx("img",{src:Yp,alt:"loading",className:"w-16 h-16"})}),o.jsx("iframe",{className:"w-full",style:{height:"70vh",border:0},src:y,title:"Big Lot Activity",onLoad:()=>r(!1)})]})]})]})};function wF(e){return e>0?"text-green1":e<0?"text-red1":"text-yellow1"}const SF=()=>{const e=Ye(n=>n.auth.user),t=Ye(n=>n.auth.selectedAccount),r=Ye(N1);return o.jsxs("div",{className:"bg-app-darkgray rounded p-3 text-center",children:[o.jsxs("div",{className:"flex items-center justify-between text-sm",children:[o.jsxs("span",{children:["สวัสà¸à¸µ ",e?.first_name||""]}),o.jsx("span",{children:t})]}),o.jsx("p",{className:"text-2xl py-2",children:qe(r.marketValue,2)}),o.jsxs("p",{className:wF(r.unRealized),children:[cr(r.unRealized,2)," (",cr(r.percentUnRealized,2),"%)"]})]})},AF=()=>{const e=er(),t=Ye(uC),r=Ye(AB),n=Ye(EB),l=Ye(CB),c=Ye(kB),f=Ye(TB),x=Ye(NB),y=t.replace(".",""),b=Ye(ae=>ae.securities.securities[y]),[S,C]=Y.useState(!1),[R,O]=Y.useState(!1),[M,P]=Y.useState(!0),[_,$]=Y.useState(!0),D=Ye(ae=>ae.auth.broker),F="https://stockradars.co/appmodule/insight_v4",J=He.getUserId()||"",te=He.getToken()||"",le=He.getState()||"",se=`${F}/trade-value?userId=${J}&Token=${te}&broker=${D}&bundle=${D}&state=${le}`,L=`${F}/biglot-history-box?userId=${J}&Token=${te}&broker=${D}&bundle=${D}&state=${le}`,W=Y.useCallback(()=>{e(Ag(r)),e(Jg(t)),e(aC()),e(lC()),e(SB(r))},[e,t,r]),z=Y.useRef(!0);Y.useEffect(()=>{e(oC()),W()},[]),Y.useEffect(()=>{if(z.current){z.current=!1;return}W()},[t]);const H=Y.useCallback(ae=>{e(jB(ae))},[e]),Z=Y.useCallback(()=>C(!0),[]);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex flex-col flex-1 overflow-auto px-4 py-4 space-y-4",children:[o.jsx("div",{children:o.jsxs("div",{className:"relative",children:[o.jsx("select",{className:"appearance-none w-full bg-app-darkgray text-white border border-app-border rounded pl-3 pr-8 py-2",value:t,onChange:ae=>H(ae.target.value),children:r.map(ae=>o.jsx("option",{value:ae,children:ae.replace(".","")},ae))}),o.jsx(Zl,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-app-muted"})]})}),b&&o.jsx(Jl,{stock:b,menu:t}),b&&x.length>0&&o.jsx(VP,{data:x,stock:b}),b&&o.jsx(HP,{stock:b}),b&&o.jsx(YP,{stock:b}),f.length>0&&o.jsx(XP,{items:f}),o.jsx(Jt,{name:"portfolio",lockHeader:"Portfolio",children:o.jsx(SF,{})}),o.jsx(qP,{topGainer:n,topLoser:l,onMoreClick:Z}),o.jsx(WP,{items:c}),o.jsx(Ot,{height:"100px",children:o.jsx(QP,{})}),o.jsx(Ot,{height:"80px",children:o.jsx(KP,{})}),o.jsx(Ot,{height:"80px",children:o.jsx(eF,{})}),o.jsx(Ot,{height:"100px",children:o.jsx(sF,{})}),o.jsx(Ot,{height:"200px",children:o.jsx(aF,{})}),o.jsx(Ot,{height:"300px",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[o.jsx("div",{className:"overflow-auto",children:o.jsx(lF,{})}),o.jsxs("div",{children:[o.jsx("p",{className:"mx-2 mb-2",children:"Trade Value by Asset Type"}),o.jsxs("div",{className:"relative",children:[M&&o.jsx("div",{className:"absolute inset-0 flex justify-center items-center bg-app-bg z-10",children:o.jsx("img",{src:Yp,alt:"loading",className:"w-16 h-16"})}),o.jsx("iframe",{className:"w-full",src:se,style:{minHeight:"300px",border:0,overflow:"hidden"},scrolling:"no",title:"Trade Value",onLoad:()=>P(!1)})]})]})]})}),o.jsx(Ot,{height:"300px",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[o.jsx(cF,{menuList:r}),o.jsxs("div",{children:[o.jsxs("p",{className:"mx-2 mb-2 flex justify-between",children:[o.jsx("span",{children:"Big Lot Activity"}),!_&&o.jsx("span",{className:"cursor-pointer text-white",onClick:()=>O(!0),children:"More >"})]}),o.jsxs("div",{className:"relative",children:[_&&o.jsx("div",{className:"absolute inset-0 flex justify-center items-center bg-app-bg z-10",children:o.jsx("img",{src:Yp,alt:"loading",className:"w-16 h-16"})}),o.jsx("iframe",{className:"w-full",style:{minHeight:"300px",border:0},src:L,title:"Big Lot Activity",onLoad:()=>$(!1)})]})]})]})}),o.jsx(Ot,{height:"200px",children:o.jsx(uF,{})}),o.jsx(Ot,{height:"200px",children:o.jsx(fF,{})}),o.jsx(Ot,{height:"200px",children:o.jsx(xF,{})}),o.jsx(Ot,{height:"200px",children:o.jsx(gF,{})})]}),S&&o.jsx(vF,{onClose:()=>C(!1)}),R&&o.jsx(bF,{onClose:()=>O(!1)})]})},EF="https://stockradars-image.com",CF=({title:e="Add Symbol",onSelect:t,onClose:r})=>{const n=er(),l=Ye(R=>R.search.results),c=Ye(R=>R.search.loading),[f,x]=Y.useState(""),y=Y.useRef(null),b=Y.useCallback(R=>
35{if(x(R),y.current&&clearTimeout(y.current),!R.trim()){n(Tu());return}y.current=setTimeout(()=>{n(Op(R.trim()))},500)},[n]),S=Y.useCallback(()=>{n(Tu()),r()},[n,r]),C=Y.useCallback(R=>{n(Tu()),t(R)},[n,t]);return o.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col w-full",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop",onClick:S}),o.jsx("div",{className:"relative bg-app-surface flex flex-col overflow-hidden animate-modal-content w-full h-full mx-auto",children:o.jsxs("div",{className:"max-w-2xl mx-auto w-full flex-1 flex flex-col overflow-hidden",children:[o.jsxs("div",{className:"flex items-center justify-center px-4 pt-3 pb-2 shrink-0 relative",children:[o.jsx("h2",{className:"text-white font-bold text-lg",children:e}),o.jsx("button",{onClick:S,className:"absolute right-4 text-app-muted hover:text-white text-lg leading-none",children:"â"})]}),o.jsx("div",{className:"px-4 pb-3 shrink-0",children:o.jsx("input",{type:"text",value:f,onChange:R=>b(R.target.value),placeholder:"Search symbol",autoComplete:"off",autoFocus:!0,className:"w-full bg-app-surface uppercase border border-app-border rounded-lg px-4 py-2 text-sm text-white placeholder-app-muted focus:outline-none focus:border-primary"})}),o.jsxs("div",{className:"flex-1 overflow-y-auto px-4",children:[c&&o.jsx(Hu,{}),l.map((R,O)=>{const M=R._source,P=M.N_name??"",_=M.N_COMPANY_E??"";return o.jsxs("div",{onClick:()=>C(P||null),className:"flex items-center gap-3 py-3 border-b border-app-border cursor-pointer hover:bg-app-hover",children:[o.jsx("img",{src:`${EF}/images/company_logo/${P}.png`,onError:$=>{$.currentTarget.src=Mh},width:40,height:40,className:"rounded-full shrink-0",alt:P}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-white font-medium",children:P}),_&&o.jsx("p",{className:"text-app-muted text-xs truncate",children:_})]})]},O)})]})]})})]})},kF=["I","INDEX","SECTOR","SE","INDUSTRY","MK"],TF=["R","YTD","1M","3M","6M","1Y","3Y","5Y","IPO"],NF={YTD:"ytd","1M":"1m","3M":"3m","6M":"6m","1Y":"1y","3Y":"3y","5Y":"5y",IPO:"ipo"},jF=[{label:"Realtime",key:"realtime"},{label:"Insight",key:"insight"},{label:"Timeline",key:"timeline"}];function gb(e,t){return(e[t]?.data??[]).map(r=>r.symbol).filter(Boolean)}const MF=()=>{const e=er(),{list:t,loading:r}=Ye(Ry),n=Ye(pe=>pe.securities.securities),[l,c]=Y.useState(0),[f,x]=Y.useState("card"),[y,b]=Y.useState(null),[S,C]=Y.useState("realtime"),[R,O]=Y.useState(!1),[M,P]=Y.useState(!1),[_,$]=Y.useState(!1),[D,F]=Y.useState(!1),[J,te]=Y.useState(""),[le,se]=Y.useState("R"),L=y?n[y]??null:null,W=gb(t,l),z=Y.useCallback(pe=>{b(pe),e(Gn(pe)),e(ro(pe)),e(_u(pe)),e(jh(pe))},[e]),H=Y.useCallback(async pe=>{if(!pe)return;const Q=t.flatMap(re=>re.data).find(re=>re.symbol===pe);Q?.label_id&&(await e(Sh({favRows:Q.label_id,symbol:pe})),e(rl()))},[e,t]);Y.useEffect(()=>{e(rl())},[e]),Y.useEffect(()=>{const pe=gb(t,l);if(pe.length===0){b(null);return}const Q=[];for(let re=0;re<pe.length;re+=40)Q.push(pe.slice(re,re+40));Promise.all(Q.map(re=>e(Pu([re.join("|")])))),e(Fu(pe))},[e,t,l]),Y.useEffect(()=>{W.length===0||y||z(W[0])},[W.length]),Y.useEffect(()=>{const pe=gb(t,l);pe.length>0?z(pe[0]):b(null)},[l]);const Z=Y.useCallback(async pe=>{if(!pe){$(!1);return}const Q=t[l];if((Q?.data.map(ge=>ge.symbol)??[]).includes(pe)){$(!1);return}await e(Rp({favRows:Q.row,symbol:pe})),e(rl()),$(!1)},[e,t,l]),ae=Y.useCallback(()=>{te(t[l]?.name??""),F(!0)},[t,l]),ue=Y.useCallback(async()=>{const pe=J.trim();pe&&await e(Eg({favRows:t[l].row,favName:pe})),F(!1)},[e,J,t,l]),ie=Y.useCallback((pe,Q)=>{pe.stopPropagation(),Q&&H(Q)},[H]),X=Y.useCallback(pe=>{M||!pe.name||(z(pe.name),O(!0))},[z,M]),oe=W.map(pe=>n[pe]??n[pe.replace(/^\./,"")]).filter(pe=>!!pe),ne=Y.useMemo(()=>{if(le==="R")return oe;const pe=NF[le],Q=t[l]?.data??[],re=new Map(Q.map(ge=>[ge.symbol,ge.price_at_timeframe]));return oe.map(ge=>{const ye=re.get(ge.name??"")??re.get(`.${ge.name}`);if(!ye)return ge;const Te=ye[pe];return Te==null?{...ge,timeframeNA:!0}:{...ge,change:vn(Te,ge.price),percentChange:Un(Te,ge.price)}})},[oe,le,t,l]),fe=L?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex border-b border-app-border",children:jF.map(pe=>{const Q=pe.key==="insight"&&kF.includes(L.type??"")?"Stock":pe.label;return o.jsx("button",{onClick:()=>C(pe.key),className:`flex-1 py-2 text-sm font-medium transition-colors border-b-2 -mb-px ${S===pe.key?"border-primary bg-primary text-white":"border-transparent text-app-muted hover:text-white"}`,children:Q}
35,pe.key)})}),o.jsx(H1.Provider,{value:!0,children:o.jsxs("div",{className:"flex-1 overflow-y-auto",children:[S==="realtime"&&o.jsx(G1,{}),S==="insight"&&o.jsx(X1,{}),S==="timeline"&&o.jsx(q1,{})]})})]}):null;return o.jsxs("div",{className:"flex h-full overflow-hidden",children:[o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden",children:[o.jsxs("div",{className:"flex items-center justify-between px-4 pt-4 pb-3 shrink-0",children:[o.jsx("h1",{className:"text-white font-bold text-xl",children:"Favorite"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("button",{onClick:()=>$(!0),className:"border border-app-muted px-3 py-1 rounded text-xs transition-colors text-app-muted hover:text-white",children:"Add"}),o.jsx("button",{onClick:()=>P(pe=>!pe),className:"border border-app-muted px-3 py-1 rounded text-xs transition-colors text-app-muted hover:text-white",children:M?"Done":"Edit"})]})]}),o.jsx("div",{className:"px-4 pb-2 shrink-0",children:D?o.jsxs("div",{className:"flex gap-2",children:[o.jsx("input",{autoFocus:!0,value:J,onChange:pe=>te(pe.target.value),onKeyDown:pe=>{pe.key==="Enter"&&ue(),pe.key==="Escape"&&F(!1)},className:"flex-1 bg-app-surface border border-primary rounded px-3 py-1.5 text-sm text-white focus:outline-none"}),o.jsx("button",{onClick:ue,className:"border border-primary px-3 py-1.5 rounded text-xs text-primary hover:bg-primary hover:text-white transition-colors",children:"Save"}),o.jsx("button",{onClick:()=>F(!1),className:"border border-app-muted px-3 py-1.5 rounded text-xs text-app-muted hover:text-white transition-colors",children:"Cancel"})]}):o.jsxs("div",{className:"flex gap-2",children:[o.jsxs("div",{className:"relative flex-1",children:[o.jsx("select",{value:l,onChange:pe=>c(Number(pe.target.value)),className:"appearance-none w-full bg-primary border border-primary rounded pl-3 pr-8 py-1.5 text-sm text-white focus:outline-none focus:border-primary",children:t.map((pe,Q)=>o.jsx("option",{value:Q,children:pe.name},Q))}),o.jsx(Zl,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-white/70"})]}),o.jsx("button",{onClick:ae,className:"border border-app-muted px-3 py-1.5 rounded text-xs text-app-muted hover:text-white transition-colors",children:"â"})]})}),o.jsx("div",{className:"px-4 pb-2 shrink-0",children:o.jsx("div",{className:"flex items-center",children:TF.map(pe=>o.jsx("button",{onClick:()=>se(pe),className:`flex-1 py-1.5 rounded-full text-xs font-medium transition-colors text-center ${le===pe?"bg-primary text-white":"text-app-muted hover:text-white"}`,children:pe},pe))})}),o.jsxs("div",{className:"flex-1 overflow-auto px-4 py-3",children:[o.jsxs("div",{className:"flex items-center justify-between mb-3",children:[o.jsxs("span",{className:"text-white font-semibold text-sm",children:["Stocks (",r?"...":ne.length,")"]}),o.jsx("button",{onClick:()=>x(pe=>pe==="table"?"card":"table"),className:"shrink-0 flex items-center","aria-label":"Toggle view",children:o.jsx("img",{src:f==="table"?$1:V1,width:35,alt:f==="table"?"Switch to card view":"Switch to table view"})})]}),r?o.jsx(Hu,{}):ne.length===0?o.jsx("p",{className:"text-app-secondary text-center py-8 text-sm",children:"No favorites"}):f==="card"?o.jsx("div",{className:"grid grid-cols-2 gap-2",children:ne.map(pe=>o.jsxs("div",{className:"relative",children:[o.jsx(Dy,{stock:pe,onClick:()=>X(pe),hidePercentChange:M,timeframeNA:pe.timeframeNA}),M&&o.jsx("button",{onClick:Q=>ie(Q,pe.name),className:"absolute top-2.5 right-2.5 z-10 bg-black/60 rounded-full p-0.5",children:o.jsx("img",{src:oy,className:"w-5 h-5",alt:"delete"})})]},pe.name))}):o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"text-app-secondary",children:[o.jsx("th",{className:"text-left py-2 px-1",children:"Symbol"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Last"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Change"}),o.jsx("th",{className:"text-right py-2 px-1",children:"%Chg"}),M&&o.jsx("th",{className:"py-2 px-1 w-8"})]})}),o.jsx("tbody",{children:ne.map(pe=>{const Q=pe.timeframeNA,re=Q?"text-gray":(pe.change??0)>0?"text-green1":(pe.change??0)<0?"text-red1":"text-yellow";return o.jsxs("tr",{className:"border-b border-app-border cursor-pointer hover:bg-app-hover",onClick:()=>X(pe),children:[o.jsx("td",{className:"py-2 px-1",children:pe.symbol??pe.name}),o.jsx("td",{className:"text-right py-2 px-1",children:pe.price?.toFixed(2)}),o.jsx("td",{className:`text-right py-2 px-1 ${re}`,children:Q?"N/A":pe.change?.toFixed(2)}),o.jsx("td",{className:`text-right py-2 px-1 ${re}`,children:Q?"N/A":`${pe.percentChange?.toFixed(2)}%`}),M&&o.jsx("td",{className:"py-2 px-1 text-center",children:o.jsx("button",{onClick:ge=>ie(ge,pe.name),className:"text-red-400 hover:text-red-300",children:o.jsx("img",{src:oy,className:"w-5 h-5",alt:"delete"})})})]},pe.name)})})]})]})]}),o.jsx("div",{className:"hidden lg:flex flex-col w-2/3 shrink-0 border-l border-app-border overflow-hidden",children:L?fe:o.jsx("div",{className:"flex items-center justify-center h-full text-app-secondary text-sm",children:"Select a stock to view details"})}),R&&L&&o.jsxs("div",{className:"lg:hidden fixed inset-0 z-50 flex flex-col",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop",onClick:()=>O(!1)}),o.jsxs("div",{className:"relative bg-app-surface flex flex-col overflow-hidden animate-modal-content h-full",children:[o.jsxs("div",{className:"flex items-center justify-between px-4 pt-3 pb-1 shrink-0",children:[o.jsx("div",{className:"flex-1"}),o.jsx("button",{onClick:()=>O(!1),className:"text-app-muted hover:text-white text-lg leading-none",children:"â"})]}),fe]})]}),_&&o.jsx(CF,{onSelect:Z,onClose:()=>$(!1)})]})}
35,RF=({symbol:e,rows:t,isFavorite:r,onRemove:n,onSetPrice:l})=>{const c=Ye(f=>f.securities.securities[e]);return c?o.jsxs("div",{className:"app-box text-sm flex flex-col h-full",children:[o.jsxs("div",{className:"relative border-b border-app-border shrink-0",children:[o.jsx(Ch,{stock:c}),r&&n&&o.jsx("button",{onClick:()=>n(c.name),className:"absolute top-2 right-2 text-xs text-white/40 hover:text-red-400 transition-colors","aria-label":`Remove ${c.name}`,children:"â"})]}),o.jsx("div",{className:"flex-1 min-h-0",children:o.jsx(Y1,{symbol:e,rows:t,onSetPrice:l})})]}):null},vE="appearance-none bg-app-surface border border-app-border text-white text-sm rounded-lg pl-3 pr-8 py-1.5 focus:outline-none focus:ring-2 focus:ring-primary",OF=()=>{const e=er(),{selectedMenu:t,rowsBidOffer:r,symbols:n,loading:l}=Ye(WB),c=Ye(M=>M.auth.isAuthenticated),f=Ye(M=>M.auth.broker),{list:x}=Ye(Ry),y=!!f&&f!=="stockradars",b=Y.useMemo(()=>{const M=x.map(($,D)=>({name:$.name,value:`FAVORITE ${D+1}`})),P={name:"Portfolio",value:"PORTFOLIO"},_=q2.map($=>({name:$.name,value:$.value}));return c?y?[...M,..._,P]:[...M,..._]:_},[c,y,x]);Y.useEffect(()=>{const M=c?"FAVORITE 1":"MA";e(oA(M)),e(Ah(M))},[e,c]);const S=Y.useCallback(M=>{e(oA(M)),e(Ah(M))},[e]),C=Y.useCallback(M=>{e(qB(M))},[e]),R=Y.useCallback(M=>{e(Fb({symbol:M,selectedMenu:t}))},[e,t]),O=t.includes("FAVORITE");return o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden px-3 py-4 sm:px-4",children:[o.jsxs("div",{className:"flex gap-2 mb-4",children:[o.jsxs("div",{className:"relative flex-1",children:[o.jsx("select",{value:t,onChange:M=>S(M.target.value),className:`${vE} w-full`,children:b.map(M=>o.jsx("option",{value:M.value,children:M.name},M.value))}),o.jsx(Zl,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-app-muted"})]}),o.jsxs("div",{className:"relative",children:[o.jsx("select",{value:r,onChange:M=>C(Number(M.target.value)),className:vE,children:GB.map(M=>o.jsx("option",{value:M.value,children:M.name},M.value))}),o.jsx(Zl,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-app-muted"})]})]}),o.jsx("div",{className:"flex-1 overflow-auto",children:l?o.jsx(Hu,{}):o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:n.map(M=>o.jsx(RF,{symbol:M,rows:r,isFavorite:O,onRemove:O?R:void 0},M))})})]})},BF=15,Au=30,bE=({items:e})=>{const t=Array.from({length:BF},(r,n)=>e[n]??null);return o.jsxs("table",{className:"w-full table-fixed text-sm",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"text-app-secondary h-8",children:[o.jsx("th",{className:"text-left px-2 font-medium w-[25%]",children:"Symbol"}),o.jsx("th",{className:"text-center px-1 font-medium w-[12%]",children:"Side"}),o.jsx("th",{className:"text-right px-2 font-medium w-[22%]",children:"Last"}),o.jsx("th",{className:"text-right px-2 font-medium w-[22%]",children:"Volume"}),o.jsx("th",{className:"text-right px-2 font-medium w-[19%]",children:"Change"})]})}),o.jsx("tbody",{children:t.map((r,n)=>{if(!r)return o.jsx("tr",{className:"h-8",children:o.jsx("td",{colSpan:5})},n);const l=r.price-r.prior,c=r.prior?(r.price-r.prior)/r.prior*100:0;return o.jsxs("tr",{className:`h-8 ${r.lastIndex?"bg-white/5":""}`,children:[o.jsx("td",{className:`px-2 truncate ${tl(c)}`,children:r.sym}),o.jsx("td",{className:`px-1 text-center ${mc(r.sid)}`,children:r.sid||"-"}),o.jsx("td",{className:`px-2 text-right ${tl(c)}`,children:qe(r.price,2,2)}),o.jsx("td",{className:`px-2 text-right ${mc(r.sid)}`,children:qe(r.vol)}),o.jsx("td",{className:`px-2 text-right ${tl(c)}`,children:cr(l,2,2)})]},`${n}-${r.sym}`)})})]})},_F=()=>{const e=er(),t=Ye(tB),r=Ye(rB),n=Ye(se=>se.auth.broker),{list:l}=Ye(Ry),c=Ye(Oy),f=!!n&&n!=="stockradars",[x,y]=Y.useState("set"),[b,S]=Y.useState([]),[C,R]=Y.useState([]),O=Y.useRef(null),M=Y.useRef(!1),P=Y.useRef(0),_=Y.useRef(0);Y.useEffect(()=>(e(sB(!0)),e(Qv(!0)),wO().then(se=>{se?.list?.length>0?e(iB(se.list)):e(Qv(!1))}).catch(()=>{e(Qv(!1))}),()=>{e(aB())}),[e]);const $=Y.useMemo(()=>new Set(l.flatMap(se=>se.data).map(se=>se.symbol)),[l]),D=Y.useMemo(()=>new Set(c.map(se=>se.symbol)),[c]);Y.useEffect(()=>{if(t.length===0){M.current=!1,O.current=null,P.current=0,_.current=0,S([]),R([]);return}const se=t.find(H=>H.lastIndex);if(!M.current){const H=t.filter(ae=>$.has(ae.sym)).slice(-Au),Z=t.filter(ae=>D.has(ae.sym)).slice(-Au);S(H),R(Z),P.current=H.length%Au,_.current=Z.length%Au,M.current=!0,O.current=se??null;return}if(!se||se===O.current)return;O.current=se;const L=$.has(se.sym),W=D.has(se.sym);if(!L&&!W)return;const z=(H,Z)=>{const ae=H.map(ne=>ne.lastIndex?{...ne,lastIndex:!1}:ne),ue=(Z-1+Au)%Au,ie=ae[ue];if(ie&&ie.sym===se.sym&&ie.sid===se.sid&&ie.price===se.price){const ne=[...ae];return ne[ue]={...ie,vol:ie.vol+se.vol,tim:se.tim,lastIndex:!0},{next:ne,nextIndex:Z}}const X=Z>=Au?0:Z,oe=[...ae];return oe[X]={...se},{next:oe,nextIndex:X+1}
35};if(L){const{next:H,nextIndex:Z}=z(b,P.current);P.current=Z,S(H)}if(W){const{next:H,nextIndex:Z}=z(C,_.current);_.current=Z,R(H)}},[t,$,D]);const F=Y.useMemo(()=>x==="favorite"?b:x==="portfolio"?C:t,[x,t,b,C]);if(r)return o.jsx(Hu,{});const J=F.slice(0,15),te=F.slice(15,30),le=[{key:"set",label:"SET"},{key:"favorite",label:"Favorite"},...f?[{key:"portfolio",label:"Portfolio"}]:[]];return o.jsxs("div",{className:"p-4 h-full flex flex-col",children:[o.jsx("div",{className:"flex border border-primary rounded-md overflow-hidden mb-4",children:le.map(se=>{const L=x===se.key;return o.jsx("button",{onClick:()=>y(se.key),className:`flex-1 py-2 text-sm font-medium transition-colors ${L?"bg-primary text-white":"text-app-muted hover:text-white"}`,children:se.label},se.key)})}),F.length>0?o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 flex-1 overflow-auto",children:[o.jsx(bE,{items:J}),o.jsx(bE,{items:te})]}):o.jsx("div",{className:"flex items-center justify-center flex-1",children:o.jsx("p",{className:"text-app-secondary",children:"No ticker data"})})]})};function DF(e){return e?["O","PO","A"].includes(e.trim()):!1}function zk(e){return e?["X","C","XA","R"].includes(e.toUpperCase().trim()):!1}function Uk(e,t,r){return zk(e)?0:Math.max(t-r,0)}function $k(e,t,r){return zk(e)?Math.max(t-r,0):0}function W1(e){if(!e)return"";const t=e.toUpperCase().trim();return{A:"bg-red3",O:"bg-primary",C:"bg-red3",M:"bg-green1",MC:"bg-green1",R:"bg-red3",PO:"bg-primary",PX:"bg-red2",X:"bg-red1",XA:"bg-red3"}[t]||""}function Vk(e){if(!e)return"";const t=e.replace(/:/g,"");return t.length>=6?`${t.slice(0,2)}:${t.slice(2,4)}:${t.slice(4,6)}`:e}function Hk(e){if(!e)return"";const t=e.replace(/-/g,"");return t.length>=8?`${t.slice(6,8)}-${t.slice(4,6)}`:e}function Yk(e){return{B:"BUY",S:"SELL",C:"COVER",H:"SHORT"}[e]??e}function LF(e,t){return e==="_"?String(t):{A:"ATO",C:"ATC",K:"MKT",L:"MTL"}[e]??e}function IF(e){return{_:"DAY",F:"FOK",I:"IOC"}[e]??e}function PF(e){return{A:"Need Approve",O:"Open",M:"Matched",MC:"Matched Change",R:"Reject",PO:"Pending Open",PX:"Pending Cancel",X:"Cancel by Broker",XA:"Invalid Order",C:"Cancel by SET"}[e]??e}function FF(e){return{_:"LIMIT",A:"ATO",C:"ATC",K:"MKT",L:"MTL"}[e]??e}function zF(e){return{B:"bg-green1 text-black",S:"bg-red1 text-white",C:"bg-blue text-white",H:"bg-pink text-white"}[e]??"bg-app-border"}const UF=({isOpen:e,onClose:t,onConfirm:r,data:n,accountNo:l})=>{const c=Y.useRef(r);if(Y.useEffect(()=>{c.current=r}),Y.useEffect(()=>{if(!e)return;let x=null;const y=setTimeout(()=>{x=b=>{b.key==="Enter"&&c.current()},document.addEventListener("keydown",x)},200);return()=>{clearTimeout(y),x&&document.removeEventListener("keydown",x)}},[e]),!e||!n.stock)return null;const f=n.cPrice==="_"?Number(n.price)*Number(n.volume):null;return o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop",onClick:t}),o.jsxs("div",{className:"relative bg-app-bg border border-app-border rounded-lg w-full max-w-sm mx-4 animate-modal-content",children:[o.jsxs("div",{className:"flex items-center justify-center px-4 py-3 border-b border-app-border bg-primary rounded-t-lg relative",children:[o.jsx("p",{className:"font-medium",children:"Order Confirmation"}),o.jsx("button",{onClick:t,"aria-label":"Close",className:"absolute right-3",children:o.jsx("img",{src:oy,className:"w-8 h-8",alt:"close"})})]}),o.jsxs("div",{className:"text-center pt-4 pb-3",children:[o.jsx("img",{src:`https://stockradars-image.com/images/company_logo/${n.stock}.png`,width:80,height:80,className:"mb-3 mx-auto",alt:n.stock}),o.jsx("p",{className:"text-sm mb-3",children:n.stock}),o.jsx("span",{className:`block w-full py-4 text-center text-sm font-bold mb-1 ${zF(n.side)}`,children:Yk(n.side)})]}),o.jsx("div",{className:"px-5 pb-2 text-xs space-y-0",children:[["Account No.",l],["Symbol",n.stock],["Price",LF(n.cPrice,n.price)],["Volume",qe(Number(n.volume),0)],["Total (THB)",f!=null&&f>0?`${qe(f,2,2)} THB`:"N/A"],["Validity",IF(n.condition)],["NVDR",n.trustId?"NVDR":"-"]].map(([x,y])=>o.jsxs("div",{className:"flex justify-between items-center border-b border-app-border py-2",children:[o.jsx("span",{className:"text-app-muted",children:x}),o.jsx("span",{children:y})]},x))}),o.jsx("p",{className:"text-center text-xs text-app-muted py-3",children:"* Commission and VAT excluded"}),o.jsxs("div",{className:"flex gap-3 px-5 pb-5",children:[o.jsx("button",{onClick:t,className:"flex-1 py-2 rounded border border-app-border text-sm hover:bg-app-hover transition-colors",children:"CANCEL"}),o.jsx("button",{onClick:r,className:"flex-1 py-2 rounded bg-primary text-white text-sm font-semibold hover:opacity-90 transition-opacity",children:"CONFIRM"})]})]})]})};function $F(e){return{B:"bg-green1 text-black",S:"bg-red1 text-white",C:"bg-blue text-white",H:"bg-pink text-white"}[e]??"bg-app-border"}function VF(e){return $k(e.status,Number(e.volume??0),Number(e.matchedVolume??0))}function HF(e){return Uk(e.status,Number(e.volume??0),Number(e.matchedVolume??0))}const Gk=({isOpen:e,onClose:t,data:r})=>{if(!e||!r)return null;const n=r.price,l=Number(r.matchedVolume??0),c=Number(r.matchedPrice??0),f=Number(r.volume??0),x=typeof n=="number"||typeof n=="string"&&!isNaN(Number(n)),y=Number(n);let b="N/A",S="N/A";return x&&y>0?(b=qe(l*y,2,2),S=qe(f*y,2,2)):typeof n=="string"&&n==="MO"&&r.status!=="R"&&(b=qe(l*c,2,2),S=qe(f*c,2,2)),o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop",onClick:t}),o.jsxs("div",{className:"relative bg-app-bg border border-app-border rounded-lg w-full max-w-sm mx-4 animate-modal-content",children:[o.jsx("div",{className:"flex items-center justify-center px-4 py-3 border-b border-app-border bg-primary rounded-t-lg relative",children:o.jsx("p",{className:"font-medium",children:"Order Status"})}),o.jsxs("div",{className:"text-center pt-4 pb-3",children:[o.jsx("img",{src:`https://stockradars-image.com/images/company_logo/${r.stock}.png`,width:80,height:80,className:"mb-3 mx-auto",alt:r.stock}),o.jsx("p",{className:"text-sm mb-3",children:r.stock}),o.jsx("span",{className:`block w-full py-4 text-center text-sm font-bold mb-1 ${$F(r.side)}`,children:Yk(r.side)})]}),o.jsx("div",{className:"px-5 pb-2 text-xs space-y-0",children:[["Symbol",r.stock],["Status",o.jsx("span",{className:`px-2 py-0.5 rounded text-white text-xs ${W1(r.status)}`,children:PF(r.status)})],["Price",qe(Number(r.price),2,2)],["Volume",qe(f,0)],["Order No.",r.orderNo],["Time",`${Hk(r.orderDate)} ${Vk(r.orderTime)}`],["Matched",qe(l,0)],["Cancelled",qe(VF(r),0)],["Balance",qe(HF(r),
350)],["NVDR",r.trustId==2?"NVDR":"-"],["Est. Matched / Est. Order Amount",`${b} / ${S}`]].map(([C,R])=>o.jsxs("div",{className:"flex justify-between items-center border-b border-app-border py-2 gap-2",children:[o.jsx("span",{className:"text-app-muted shrink-0",children:C}),o.jsx("span",{className:"text-right",children:R})]},String(C)))}),o.jsx("div",{className:"flex justify-end px-5 pb-5 pt-3",children:o.jsx("button",{onClick:t,className:"px-6 py-2 rounded border border-app-border text-sm hover:bg-app-hover transition-colors",children:"Close"})})]})]})},Gp=()=>{const e=er(),t=Ye(B_),r=Ye(By),n=Ye(y=>y.auth.selectedAccount),l=Ye(y=>y.auth.accounts),f=Ye(y=>y.auth.broker)==="globlex"?He.getUsername()||"":He.getFullname()||"",x=y=>{e(mO(y)),e(uc()),e(xc()),e(dc())};return r?o.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-6 gap-3",children:Array.from({length:6}).map((y,b)=>o.jsxs("div",{children:[o.jsx("div",{className:"h-3 w-20 bg-app-border rounded animate-pulse mb-2"}),o.jsx("div",{className:"h-4 w-28 bg-app-border rounded animate-pulse"})]},b))}):o.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-6 gap-3",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-app-secondary text-sm",children:"Account Number"}),l.length>0?o.jsxs("div",{className:"relative",children:[o.jsx("select",{className:"appearance-none w-full bg-app-darkgray text-white border border-app-border rounded pl-2 pr-8 py-1 text-sm",value:n,onChange:y=>x(y.target.value),children:l.map(y=>o.jsx("option",{value:y.accountNo,children:y.accountNo},y.accountNo))}),o.jsx(Zl,{size:14,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-app-muted"})]}):o.jsx("p",{children:n||"-"})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-app-secondary text-sm",children:"Name"}),o.jsx("p",{className:"text-green1",children:f||"-"})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-app-secondary text-sm",children:"Buying Limit"}),o.jsx("p",{className:"text-green1",children:t?.buyLimit!=null?qe(t.buyLimit,2):"-"})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-app-secondary text-sm",children:"Credit Line"}),o.jsx("p",{className:"text-green1",children:t?.creditLimit!=null?qe(t.creditLimit,2):"-"})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-app-secondary text-sm",children:"Cash Amount"}),o.jsx("p",{className:"text-green1",children:t?.cashAmount!=null?qe(t.cashAmount,2):"-"})]}),o.jsx("div",{children:t?.excessEquity!=null?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-app-secondary text-sm",children:"Excess Equity"}),o.jsx("p",{className:"text-green1",children:qe(t.excessEquity,2)})]}):t?.purchasingPower!=null?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-app-secondary text-sm",children:"Purchasing Power"}),o.jsx("p",{className:"text-green1",children:qe(t.purchasingPower,2)})]}):null})]})};function yb(e){return e>0?"text-green1":e<0?"text-red1":"text-yellow1"}const Kb=()=>{const e=Ye(N1);return Ye(By)?o.jsxs("div",{className:"bg-app-darkgray rounded p-3 space-y-3",style:{height:"180px"},children:[o.jsx("div",{className:"h-3 w-20 bg-app-border rounded animate-pulse"}),o.jsx("div",{className:"h-3 w-28 bg-app-border rounded animate-pulse"}),o.jsx("div",{className:"h-3 w-24 bg-app-border rounded animate-pulse"}),o.jsx("div",{className:"h-3 w-20 bg-app-border rounded animate-pulse"})]}):o.jsx("div",{className:"bg-app-darkgray rounded p-3 overflow-auto",style:{height:"180px"},children:o.jsx("table",{className:"w-full text-sm",children:o.jsxs("tbody",{children:[o.jsxs("tr",{children:[o.jsx("td",{className:"py-1 text-app-muted",children:"Amount"}),o.jsx("td",{className:"text-right py-1",children:qe(e.amount,2)})]}),o.jsxs("tr",{children:[o.jsx("td",{className:"py-1 text-app-muted",children:"Mkt Val"}),o.jsx("td",{className:`text-right py-1 ${yb(e.unRealized)}`,children:qe(e.marketValue,2)})]}),o.jsxs("tr",{children:[o.jsx("td",{className:"py-1 text-app-muted",children:"Unrealized"}),o.jsxs("td",{className:`text-right py-1 ${yb(e.unRealized)}`,children:[o.jsx("span",{children:cr(e.unRealized,2)}),o.jsxs("span",{children:[" (",cr(e.percentUnRealized,2),"%)"]})]})]}),o.jsxs("tr",{children:[o.jsx("td",{className:"py-1 text-app-muted",children:"Realized"}),o.jsx("td",{className:`text-right py-1 ${yb(e.realized)}`,children:qe(e.realized,2)})]})]})})})},wE=()=>({cPrice:"_",condition:"_",stock:"",side:"",price:"",volume:"",pin:"",trustId:Cs.get("nvdr")==="true"});function SE(e){return{B:"border-green1",S:"border-red1",C:"border-blue",H:"border-pink"}[e]??"border-primary"}function AE(e,t){return e!==t?"text-app-muted hover:text-white":{B:"bg-green1 border-green1",S:"bg-red1 border-red1",C:"bg-blue border-blue",H:"bg-pink border-pink"}[e]??""}function EE(e){return{B:"bg-green1 text-white",S:"bg-red1 text-white",C:"bg-blue text-white",H:"bg-pink text-white"}[e]??"bg-primary text-white"}const YF=()=>{const e=er(),t=Ye(he=>he.securities.securities),r=Ye(CC),n=Ye(Oy),l=Y.useMemo(()=>n.map(he=>({...he,stock:t[he.symbol]??void 0})),[n,t]),c=Ye(he=>he.auth.selectedAccount),f=Ye(he=>he.auth.accounts),[x,y]=Y.useState(wE()),[b,S]=Y.useState(null),[C,R]=Y.useState(""),[O,M]=Y.useState([]),[P,_]=Y.useState(!1),[$,D]=Y.useState(!1),[F,J]=Y.useState(""),[te,le]=Y.useState(""),[se,L]=Y.useState(!1),[W,z]=Y.useState(!1),[H,Z]=Y.useState(null),[ae,ue]=Y.useState({open:!1,order:null}),[ie,X]=Y.useState(""),[oe,ne]=Y.useState(""),[fe,pe]=Y.useState(!1),[Q,re]=Y.useState(!1),ge=Y.useRef(null),ye=Y.useRef(null),Te=Y.useRef(null),_e=Y.useRef(null),Qe=Y.useRef(null),Je=f.find(he=>he.accountNo===c)?.sbl===!0,it=f.find(he=>he.accountNo===c)?.tradeable!==!1;Y.useEffect(()=>{D(!1),Promise.all([e(xc()),e(uc()),e(dc())]).finally(()=>D(!0))},[e,c]),Y.useEffect(()=>{if(n.length>0){const he=n.map(Ne=>
35Ne.symbol).filter(Boolean);e(Fu(he))}},[e,n]),Y.useEffect(()=>{if(!n.length)return;const he={};for(const Ne of n){const ze=t[Ne.symbol];ze&&(he[Ne.symbol]={price:ze.price??0})}e(kC(he))},[e,n.length,t]),Y.useEffect(()=>{const he=Ne=>{Ne.which===107&&y(ze=>({...ze,side:"B"})),Ne.which===109&&y(ze=>({...ze,side:"S"}))};return document.addEventListener("keydown",he),()=>document.removeEventListener("keydown",he)},[]),Y.useEffect(()=>{const he=Ne=>{ye.current&&!ye.current.contains(Ne.target)&&ge.current&&!ge.current.contains(Ne.target)&&_(!1)};return document.addEventListener("mousedown",he),()=>document.removeEventListener("mousedown",he)},[]),Y.useEffect(()=>{const he=x.cPrice;he==="_"||he==="L"?y(Ne=>({...Ne,price:"",condition:"_"})):he==="A"||he==="C"?y(Ne=>({...Ne,price:"",condition:"I"})):he==="K"&&y(Ne=>({...Ne,price:"",condition:"I"}))},[x.cPrice]);const gt=(()=>{const he=x.cPrice;return he==="A"||he==="C"?{DAY:!0,FOK:!0,IOC:!1}:he==="K"?{DAY:!0,FOK:!1,IOC:!1}:{DAY:!1,FOK:!1,IOC:!1}})(),bt=Y.useCallback((he,Ne)=>{const ze=Ne?2:0;return n.find(Me=>{const ot=Number(Me.trustId??0);return Me.symbol===he&&(isNaN(ot)?0:ot)===ze})?.onHand??0},[n]),Xt=x.stock?bt(x.stock,x.trustId):0,Nt=he=>{if(R(he),he.length===0){M([]),_(!1);return}const Ne=he.toUpperCase(),ze=Object.values(t).filter(Ue=>Ue.name&&Ue.name.startsWith(Ne)).slice(0,10);M(ze),_(ze.length>0)},xt=async he=>{_(!1),R(he.name??""),S(he),y(Ne=>({...Ne,stock:he.name??""})),await e(Pu([he.name??""])),await e(jh(he.name??"")),e(A1(he.name??""))},jt=he=>{y(he==="ATO"?Ne=>({...Ne,cPrice:"A"}):he==="ATC"?Ne=>({...Ne,cPrice:"C"}):Ne=>({...Ne,cPrice:"_",price:Number(he).toFixed(2)}))},Le=()=>{y(wE()),S(null),R(""),J(""),le("")},Ke=()=>{if(!x.side)return"Please choose an order side (Buy or Sell).";if(!x.stock.trim())return"Please enter symbol.";if(!x.volume||isNaN(Number(x.volume)))return"Volume is required and must be a number.";if(!x.pin)return"Please enter PIN.";if(x.cPrice==="_"){if(!x.price||isNaN(Number(x.price)))return"Price is required and must be a number.";const he=t[x.stock];if(he){const Ne=Number(x.price);if(Ne>Number(he.ceiling)||Ne<Number(he.floor))return"Price should be between Floor and Ceiling."}}return""},tt=()=>{const he=Ke();if(he){J(he);return}J(""),L(!0)},Ze=async()=>{L(!1),re(!0),J(""),le("");try{const he=await e(O_({...x,accountNo:c,trustId:x.trustId?2:0})).unwrap();he.Result?(Le(),le(he.Message||"Send Order Successful")):J(he.Message||"Please try again.")}catch(he){J(he?.message||"Please try again.")}finally{re(!1)}},dt=()=>{ue({open:!1,order:null}),X(""),ne("")},xe=async()=>{if(!ie){ne("Please enter PIN");return}if(ie.length<4||ie.length>6){ne("PIN must be 4-6 digits");return}if(!/^\d+$/.test(ie)){ne("PIN must be numeric");return}const he=ae.order;if(he){pe(!0);try{const Ne=await e(AC({accountNo:he.accountNo,orderNo:he.orderNo,orderDate:he.orderDate,pin:ie})).unwrap();Ne.Result?le(Ne.Message||"Cancel Order Successful"):J(Ne.Message||"Cancel failed.")}catch(Ne){J(Ne?.message||"Cancel failed.")}finally{pe(!1),dt()}}},Se=x.cPrice==="_"&&x.price&&x.volume?Number(x.price)*Number(x.volume):0;return o.jsxs("div",{className:"p-4 space-y-4 overflow-y-scroll",children:[o.jsx(Gp,{}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[o.jsx("div",{className:`border rounded-lg items-center flex flex-col overflow-hidden transition-colors ${SE(x.side)}`,style:{maxHeight:516},children:$?it?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:`w-full flex border-b ${SE(x.side).replace("border-","border-b-")}`,children:[["B","S"].map(he=>o.jsx("button",{onClick:()=>y(Ne=>({...Ne,side:he})),className:`flex-1 py-2.5 text-sm font-medium transition-colors border-r border-app-border last:border-r-0 ${AE(he,x.side)}`,children:he==="B"?"Buy":"Sell"},he)),Je&&["C","H"].map(he=>o.jsx("button",{onClick:()=>y(Ne=>({...Ne,side:he})),className:`flex-1 py-2.5 text-sm font-medium transition-colors border-r border-app-border last:border-r-0 ${AE(he,x.side)}`,children:he==="C"?"Cover":"Short"},he))]}),o.jsxs("div",{className:"px-3 py-5 space-y-4",children:[o.jsxs("div",{className:"relative",children:[o.jsx("input",{ref:ge,type:"text",value:C,onChange:he=>Nt(he.target.value.replace(/[à¸-à¹]/g,"")),onFocus:()=>C&&_(O.length>0),onKeyDown:async he=>{he.key==="Enter"&&O.length>0&&(await xt(O[0]),Te.current?.disabled?_e.current?.focus():Te.current?.focus())},placeholder:"SYMBOL",autoComplete:"off",lang:"en",className:"w-full bg-app-bg border border-app-border rounded px-3 py-2 text-sm uppercase placeholder:text-app-muted focus:outline-none focus:border-primary"}),P&&o.jsx("div",{ref:ye,className:"absolute z-20 w-full bg-app-bg border border-app-border rounded-b-lg shadow-lg max-h-40 overflow-y-auto",children:O.map(he=>o.jsx("button",{onMouseDown:()=>xt(he),className:"w-full text-left px-3 py-2 text-sm hover:bg-app-hover transition-colors",children:he.name},he.name))})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"text-xs text-app-muted w-10",children:"Price"}),o.jsx("input",{ref:Te,type:"text",inputMode:"decimal",value:x.price,onChange:he=>y(Ne=>({...Ne,price:he.target.value.replace(/[^0-9.]/g,"")})),onKeyDown:he=>{he.key==="Enter"&&_e.current?.focus()},placeholder:x.cPrice!=="_"?FF(x.cPrice):"Price",disabled:x.cPrice!=="_",className:"flex-1 bg-app-bg max-w-[100px] border border-app-border rounded px-2 py-1.5 text-sm focus:outline-none focus:border-primary disabled:opacity-50 disabled:cursor-not-allowed"}),o.jsxs("button",{onClick:()=>Xt>0&&y(he=>({...he,volume:String(Xt)})),className:`flex-1 flex justify-between rounded px-2 py-2 text-xs text-left hover:bg-app-hover transition-colors ${EE(x.side)}`,children:[o.jsx("div",{children:"Onhand"}),o.jsx("div",{children:qe(Xt,0)})]})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"text-xs text-app-muted w-10",children:"Vol"}),o.jsx("input",{ref:_e,type:"text",inputMode:"numeric",value:x.volume,onChange:he=>y(Ne=>({...Ne,volume:he.target.value.replace(/[^0-9]/g,"")})),onKeyDown:he=>{he.key==="Enter"&&Qe.current?.focus()},placeholder:"Volume",className:"flex-1 bg-app-bg border border-app-border rounded px-2 py-1.5 text-sm focus:outline-none focus:border-primary"})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"text-xs text-app-muted w-10",children:"NVDR"}),o.jsx("button",{type:"button",role:"switch","aria-checked":x.trustId,onClick:()=>{const he=!x.trustId;Cs.set("nvdr",String(he)),y(Ne=>({...Ne,trustId:he}))},className:`relative inline-flex h-5 w-9 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 focus:outline-none ${x.trustId?"bg-primary":"bg-app-border"}`,children:o.jsx("span",{className:`pointer-events-none inline-block h-4 w-4 roun
35ded-full bg-white shadow transition-transform duration-200 ${x.trustId?"translate-x-4":"translate-x-0"}`})}),o.jsx("span",{className:"text-xs text-app-muted ml-2 w-8",children:"PIN"}),o.jsx("input",{ref:Qe,type:"password",inputMode:"numeric",value:x.pin,onChange:he=>y(Ne=>({...Ne,pin:he.target.value.replace(/[^0-9]/g,"")})),onKeyDown:he=>{he.key==="Enter"&&tt()},placeholder:"PIN",minLength:4,maxLength:6,autoComplete:"off",className:"flex-1 bg-app-bg border border-app-border rounded px-2 py-1.5 text-sm focus:outline-none focus:border-primary"})]}),o.jsxs("div",{className:"flex gap-x-10",children:[o.jsx("span",{className:"text-xs text-app-muted text-nowrap",children:"Price Type"}),o.jsx("div",{className:"flex flex-wrap gap-x-5 gap-y-1",children:[{value:"_",label:"LIMIT"},{value:"A",label:"ATO"},{value:"C",label:"ATC"},{value:"K",label:"MKT"},{value:"L",label:"MTL"}].map(he=>o.jsxs("label",{className:"w-[50px] flex items-center gap-1 text-xs cursor-pointer",children:[o.jsx("input",{type:"radio",name:"cPrice",value:he.value,checked:x.cPrice===he.value,onChange:()=>y(Ne=>({...Ne,cPrice:he.value})),className:"accent-primary"}),he.label]},he.value))})]}),o.jsx("div",{className:"bg-black/40 px-2 py-3 text-xs -mx-3",children:"Condition"}),o.jsxs("div",{className:"flex gap-x-5",children:[o.jsx("span",{className:"text-xs text-app-muted text-nowrap",children:"Order Validity"}),o.jsx("div",{className:"flex gap-3",children:[{value:"_",label:"DAY",disabled:gt.DAY},{value:"F",label:"FOK",disabled:gt.FOK},{value:"I",label:"IOC",disabled:gt.IOC}].map(he=>o.jsxs("label",{className:`flex w-[50px] items-center gap-1 text-xs ${he.disabled?"opacity-40 cursor-not-allowed":"cursor-pointer"}`,children:[o.jsx("input",{type:"radio",name:"condition",value:he.value,checked:x.condition===he.value,disabled:he.disabled,onChange:()=>y(Ne=>({...Ne,condition:he.value})),className:"accent-primary"}),he.label]},he.value))})]}),o.jsxs("div",{className:"flex justify-between items-center text-xs",children:[o.jsx("span",{className:"text-app-muted",children:"Cost Estimate"}),o.jsx("span",{children:Se>0?qe(Se,2,2):"N/A"})]}),o.jsxs("div",{className:"flex gap-2 pt-1",children:[o.jsx("button",{onClick:Le,className:"flex-1 py-2 rounded border border-app-border text-sm hover:bg-app-hover transition-colors",children:"Clear"}),o.jsx("button",{onClick:tt,disabled:Q,className:`flex-[2] py-2 rounded text-sm font-semibold transition-opacity disabled:opacity-60 ${EE(x.side)}`,children:"Send"})]})]})]}):o.jsx("div",{className:"flex items-center justify-center h-64 text-app-muted text-sm",children:"Account is not tradeable"}):o.jsx("div",{className:"flex items-center justify-center h-64 text-app-muted text-sm",children:"Loading..."})}),o.jsx("div",{className:"space-y-3",children:o.jsx("div",{className:"app-box",children:o.jsx(Y1,{symbol:b?.name??"",rows:10,onSetPrice:jt,header:!0,height:516})})}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(Wb,{symbol:b?.name??"",rows:8,height:250}),o.jsx("div",{className:"border border-app-border rounded-lg overflow-y-auto",style:{height:250},children:o.jsx("div",{className:"overflow-y-auto",children:o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"px-2 py-2 text-left font-normal text-app-muted",children:"Symbol"}),o.jsx("th",{className:"px-1 py-2 font-normal text-app-muted"}),o.jsx("th",{className:"px-2 py-2 text-left font-normal text-app-muted",children:"Side"}),o.jsx("th",{className:"px-2 py-2 text-right font-normal text-app-muted",children:"Price"}),o.jsx("th",{className:"px-2 py-2 text-right font-normal text-app-muted",children:"Volume"}),o.jsx("th",{className:"px-2 py-2 text-center font-normal text-app-muted",children:"Status"}),o.jsx("th",{className:"px-2 py-2"})]})}),o.jsxs("tbody",{children:[r.map((he,Ne)=>o.jsxs("tr",{onClick:()=>{Z(he),z(!0)},className:"border-t border-app-border hover:bg-app-hover cursor-pointer",children:[o.jsx("td",{className:"px-2 py-1.5 align-middle",children:he.stock}),o.jsx("td",{className:"px-1 py-1.5 align-middle",children:o.jsx("span",{className:"text-app-muted",children:he.trustId==2?"NVDR":""})}),o.jsx("td",{className:`px-2 py-1.5 align-middle ${mc(he.side)}`,children:he.side}),o.jsx("td",{className:"px-2 py-1.5 align-middle text-right",children:qe(he.price,2,2)}),o.jsx("td",{className:"px-2 py-1.5 align-middle text-right",children:qe(he.volume,0)}),o.jsx("td",{className:"px-2 py-1.5 align-middle text-center",children:o.jsx("span",{className:`inline-block px-1 rounded text-white ${W1(he.status)} w-[25px]`,children:he.status})}),o.jsx("td",{className:"px-2 py-1.5 align-middle",children:DF(he.status)&&o.jsx("button",{onClick:ze=>{ze.stopPropagation(),ue({open:!0,order:he}),X(""),ne("")},className:"text-red-400 hover:text-red-300 text-base leading-none",title:"Cancel order",children:"â"})})]},Ne)),r.length===0&&o.jsx("tr",{children:o.jsx("td",{colSpan:7,className:"text-center align-middle",style:{height:200},children:"No Results"})})]})]})})})]})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[2fr_1fr] gap-4 items-start",children:[o.jsx("div",{className:"border border-app-border rounded-lg overflow-y-auto",style:{height:250},children:o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"text-app-muted",children:[o.jsx("th",{className:"px-3 py-2 text-left font-normal",children:"Symbol"}),o.jsx("th",{className:"px-3 py-2 text-right font-normal",children:"NVDR"}),o.jsx("th",{className:"px-3 py-2 text-right font-normal",children:"Onhand"}),o.jsx("th",{className:"px-3 py-2 text-right font-normal",children:"Sellable"}),o.jsx("th",{className:"px-3 py-2 text-right font-normal",children:"Avg"}),o.jsx("th",{className:"px-3 py-2 text-right font-normal",children:"Last"}),o.jsx("th",{className:"px-3 py-2 text-right font-normal",children:"Cost"})]})}),o.jsx("tbody",{children:l.map((he,Ne)=>o.jsxs("tr",{className:"hover:bg-app-hover",children:[o.jsx("td",{className:"px-3 py-1.5 align-middle",children:o.jsx("button",{onClick:()=>{he.stock&&xt({...he.stock,name:he.stock.name??he.symbol})},children:he.symbol})}),o.jsx("td",{className:"px-3 py-1.5 align-middle text-right text-app-muted",children:he.trustId==2?"NVDR":"-"}),o.jsx("td",{className:"px-3 py-1.5 align-middle text-right",children:o.jsx("span",{className:"inline-block px-1.5 rounded text-xs",children:qe(he.onHand,0)})}),o.jsx("td",{className:"px-3 py-1.5 align-middle text-right",children:qe(he.sellable,0)}),o.jsx("td",{className:"px-3 py-1.5 align-middle text-right",children:qe(he.averagePrice,2,2)}),o.jsx("td",{className:"px-3 py-1.5 align-middle text-right",children:qe(he?.stock?.price,2,2)}),o.jsx("td",{className:"px-3 py-1.5 align-middle text-right",children:qe(he.averageAmou
35nt,2,2)})]},Ne))})]})})}),o.jsxs("div",{className:"border border-app-border rounded-lg overflow-hidden",style:{height:250},children:[o.jsx("div",{className:"px-4 py-2 text-sm text-white border-b border-app-border",children:"Total (THB)"}),o.jsx(Kb,{})]})]}),o.jsx(UF,{isOpen:se,onClose:()=>L(!1),onConfirm:Ze,data:x,accountNo:c}),o.jsx(Gk,{isOpen:W,onClose:()=>z(!1),data:H}),o.jsx(Kg,{isOpen:!!F||!!te,onClose:()=>{J(""),le("")},title:"Order Status",message:F||te,type:F?"error":"success"}),ae.open&&o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"absolute inset-0 bg-black/60 animate-modal-backdrop",onClick:dt}),o.jsxs("div",{className:"relative bg-app-bg border border-app-border rounded-lg w-full max-w-xs mx-4 p-5 animate-modal-content",children:[o.jsx("h3",{className:"text-sm font-semibold mb-1",children:"Cancel Order"}),o.jsxs("p",{className:"text-xs text-app-muted mb-3",children:["Enter PIN to cancel order ",ae.order?.orderNo]}),o.jsx("input",{type:"password",value:ie,onChange:he=>{X(he.target.value),ne("")},onKeyDown:he=>{he.key==="Enter"&&xe()},placeholder:"PIN",minLength:4,maxLength:6,autoComplete:"off",className:"w-full bg-app-bg border border-app-border rounded px-3 py-2 text-sm focus:outline-none focus:border-primary mb-2"}),oe&&o.jsx("p",{className:"text-red-400 text-xs mb-2",children:oe}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("button",{onClick:dt,className:"flex-1 py-2 rounded border border-app-border text-sm hover:bg-app-hover transition-colors",children:"Close"}),o.jsx("button",{onClick:xe,disabled:fe,className:"flex-1 bg-primary text-white rounded py-2 text-sm disabled:opacity-50",children:fe?"Cancelling...":"Confirm"})]})]})]})]})},CE=["#E15500","#C8C8C8","#70A2AD","#007792","#225764","#01151A"],GF=()=>{const e=er(),t=yr(),r=Ye(Oy),n=Ye(N1),l=Ye(By),c=Ye(S=>S.securities.securities);Y.useEffect(()=>{e(uc()),e(xc())},[e]),Y.useEffect(()=>{if(r.length>0){const S=r.map(C=>C.symbol).filter(Boolean);e(Fu(S))}},[e,r]),Y.useEffect(()=>{if(r.length===0)return;const S={};for(const C of r){const R=c[C.symbol];R&&(S[C.symbol]={price:R.price??0})}e(kC(S))},[e,r.length,c]);const f=Y.useCallback(S=>S>0?"text-green1":S<0?"text-red1":"text-yellow1",[]),x=Y.useCallback(S=>S>0?"bg-green1":S<0?"bg-red1":"bg-yellow1",[]),y=Y.useMemo(()=>{if(r.length===0||n.marketValue===0)return null;const S=[...r].map(M=>({name:M.symbol,y:n.marketValue!==0?M.totalMarketValue/n.marketValue*100:0})).sort((M,P)=>P.y-M.y),C=S.slice(0,5),R=S.slice(5).reduce((M,P)=>M+P.y,0),O=[...C.map((M,P)=>({...M,color:CE[P]})),...R>0?[{name:"Other",y:R,color:CE[5]}]:[]];return{chart:{height:100,type:"pie",backgroundColor:"transparent"},title:{text:void 0},tooltip:{enabled:!1},credits:{enabled:!1},plotOptions:{pie:{allowPointSelect:!1,cursor:!1,enableMouseTracking:!1,borderWidth:0,borderRadius:0,size:80,innerSize:"60%",dataLabels:{enabled:!1}}},series:[{name:null,data:O}]}},[r,n.marketValue,e]),b=Y.useMemo(()=>[...r].filter(S=>S.sellable>0).sort((S,C)=>C.percentUnRealized-S.percentUnRealized),[r]);return l?o.jsxs("div",{className:"flex flex-col flex-1 overflow-auto px-4 py-4 space-y-5",children:[o.jsxs("div",{className:"flex gap-4",children:[o.jsx("span",{className:"text-white border-b-2 border-white pb-1",children:"Portfolio"}),o.jsx("span",{className:"text-app-secondary pb-1",children:"Order Status"})]}),o.jsx(Gp,{}),o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("table",{className:"w-full text-sm whitespace-nowrap",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"text-app-secondary",children:[o.jsx("th",{className:"text-left py-2 px-1",children:"Symbol"}),o.jsx("th",{className:"text-right py-2 px-1",children:"NVDR"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Onhand"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Sellable"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Avg"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Last"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Cost"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Market Value"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Unrealized P/L"}),o.jsx("th",{className:"text-right py-2 px-1",children:"%Unrealized P/L"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Realized P/L"})]})}),o.jsx("tbody",{children:Array.from({length:5}).map((S,C)=>o.jsxs("tr",{children:[o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-14 bg-app-border rounded animate-pulse"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-10 bg-app-border rounded animate-pulse ml-auto"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-12 bg-app-border rounded animate-pulse ml-auto"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-12 bg-app-border rounded animate-pulse ml-auto"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-14 bg-app-border rounded animate-pulse ml-auto"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-14 bg-app-border rounded animate-pulse ml-auto"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-16 bg-app-border rounded animate-pulse ml-auto"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-16 bg-app-border rounded animate-pulse ml-auto"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-16 bg-app-border rounded animate-pulse ml-auto"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-14 bg-app-border rounded animate-pulse ml-auto"})}),o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-16 bg-app-border rounded animate-pulse ml-auto"})})]},C))})]})}),o.jsx("div",{className:"bg-app-darkgray rounded px-3 py-2",children:o.jsx("p",{children:"Total (THB)"})}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[o.jsx(Kb,{}),Array.from({length:2}).map((S,C)=>o.jsxs("div",{className:"bg-app-darkgray rounded p-3 space-y-3",style:{height:"180px"},children:[o.jsx("div",{className:"h-3 w-20 bg-app-border rounded animate-pulse"}),o.jsx("div",{className:"h-3 w-28 bg-app-border rounded animate-pulse"}),o.jsx("div",{className:"h-3 w-24 bg-app-border rounded animate-pulse"}),o.jsx("div",{className:"h-3 w-20 bg-app-border rounded animate-pulse"})]},C))]})]}):o.jsxs("div",{className:"flex flex-col flex-1 overflow-auto px-4 py-4 space-y-5",children:[o.jsxs("div",{className:"flex gap-4",children:[o.jsx("span",{className:"text-white border-b-2 border-white pb-1 cursor-pointer",children:"Portfolio"}),o.jsx("span",{className:"text-app-secondary pb-1 cursor-pointer",onClick:()=>t("/order-status"),children:"Order Status"})]}),o.jsx(Gp,{}),o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("table",{className:"w-full text-sm whitespace-nowrap",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"text-app-secondary",children:[o.jsx("th",{className:"text-left py-2 px-1",children:"Symbol"}),o.jsx("th",{className:"text-right py-2 px-1",children:"NVDR"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Onhand"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Sellable"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Avg"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Last"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Cost"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Market Value"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Unrealized P/L"}),o.jsx("th",{className:"text-right py-2 px-1",children:"%Unrealized P/L"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Realized P/L"})]})}),o.jsx("tbody",{children:r.map(S=>{const R=c[S.symbol]?.price??0;return o.jsxs("tr",{className:"border-b border-app-border cursor-pointer",onClick:()=>t(`/realtime/${encodeURIComponent(S.symbol.replace(".",""))}`),children:[o.jsx("td",{className:"py-2 px-1",children:S.symbol}),o.jsx("td",{className:"text-right py-2 px-1",children:S.trustId===2?"NVDR":"-"}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(S.onHand,0,0)}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(S.sellable,0,0
35)}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(S.averagePrice,2)}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(R,2)}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(S.averageAmount,2)}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(R*S.sellable,2)}),o.jsx("td",{className:`text-right py-2 px-1 ${f(S.unRealized)}`,children:cr(S.unRealized,2)}),o.jsxs("td",{className:`text-right py-2 px-1 ${f(S.percentUnRealized)}`,children:[cr(S.percentUnRealized,2),"%"]}),o.jsx("td",{className:`text-right py-2 px-1 ${f(S.realized)}`,children:qe(S.realized,2)})]},S.symbol+S.trustId)})})]})}),o.jsx("div",{className:"bg-app-darkgray rounded px-3 py-2",children:o.jsx("p",{children:"Total (THB)"})}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[o.jsx(Kb,{}),o.jsx("div",{className:"bg-app-darkgray rounded p-3 overflow-auto",style:{height:"180px"},children:y&&o.jsxs("div",{className:"flex gap-4",children:[o.jsxs("div",{className:"text-center w-[250px]",children:[o.jsx(Fk,{highcharts:Jb,options:y}),o.jsx("div",{className:"text-xs text-app-secondary",children:"Mkt Val"}),o.jsx("div",{className:"text-xs",children:qe(n.marketValue,2,2)})]}),o.jsx("div",{className:"w-full",children:y.series[0].data.slice(0,6).map(S=>o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{style:{width:"15px",height:"15px",backgroundColor:S.color,flexShrink:0}}),o.jsx("span",{className:"text-sm",children:S.name})]},S.name))})]})}),o.jsx("div",{className:"bg-app-darkgray rounded p-3 overflow-auto",style:{height:"180px"},children:y&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"mb-2",children:[o.jsx("p",{className:"text-sm text-app-secondary",children:"Unrealized"}),o.jsxs("p",{className:`text-sm ${f(n.unRealized)}`,children:[o.jsx("span",{children:cr(n.unRealized,2)}),o.jsxs("span",{children:[" (",cr(n.percentUnRealized,2),"%)"]})]})]}),o.jsx("div",{className:"space-y-2",children:b.map(S=>o.jsxs("div",{className:"relative h-5 rounded-sm",style:{border:`1px solid ${NO(S.percentUnRealized)}`},children:[o.jsx("div",{className:`h-full rounded-sm ${x(S.percentUnRealized)}`,style:{width:`${Math.min(Math.abs(S.percentUnRealized),100)}%`}}),o.jsxs("span",{className:"absolute inset-0 flex justify-between items-center px-2 text-xs",children:[o.jsx("span",{className:"truncate max-w-[50%]",children:S.symbol}),o.jsxs("span",{children:[cr(S.percentUnRealized,2),"%"]})]})]},S.symbol+S.trustId))})]})})]})]})},XF=()=>{const e=er(),t=yr(),r=Ye(CC),n=Ye(__),[l,c]=Y.useState({open:!1,order:null}),[f,x]=Y.useState({open:!1,order:null}),[y,b]=Y.useState(""),[S,C]=Y.useState(""),[R,O]=Y.useState(!1);Y.useEffect(()=>{e(dc()),e(xc())},[e]);const M=Y.useCallback(async()=>{if(!y){C("Please enter PIN");return}if(y.length<4||y.length>6){C("PIN must be 4-6 digits");return}if(!/^\d+$/.test(y)){C("PIN must be numeric");return}const P=l.order;if(P){O(!0);try{const _=await e(AC({accountNo:P.accountNo,orderNo:P.orderNo,orderDate:P.orderDate,pin:y})).unwrap();_.Result?c({open:!1,order:null}):C(_.Message||"Cancel failed")}catch{C("Cancel failed")}finally{O(!1)}}},[e,y,l.order]);return n?o.jsxs("div",{className:"flex flex-col flex-1 overflow-auto px-4 py-4 space-y-5",children:[o.jsxs("div",{className:"flex gap-4",children:[o.jsx("span",{className:"text-app-secondary pb-1 cursor-pointer",onClick:()=>t("/portfolio"),children:"Portfolio"}),o.jsx("span",{className:"text-white border-b-2 border-white pb-1",children:"Order Status"})]}),o.jsx(Gp,{}),o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("table",{className:"w-full text-sm whitespace-nowrap",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"text-app-secondary",children:[o.jsx("th",{className:"text-left py-2 px-1",children:"Order"}),o.jsx("th",{className:"text-left py-2 px-1",children:"Time"}),o.jsx("th",{className:"text-left py-2 px-1",children:"Symbol"}),o.jsx("th",{className:"text-left py-2 px-1",children:"Side"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Price"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Volume"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Matched"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Balance"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Cancelled"}),o.jsx("th",{className:"text-center py-2 px-1",children:"Status"})]})}),o.jsx("tbody",{children:Array.from({length:5}).map((P,_)=>o.jsx("tr",{children:Array.from({length:10}).map(($,D)=>o.jsx("td",{className:"py-2 px-1",children:o.jsx("div",{className:"h-3 w-14 bg-app-border rounded animate-pulse ml-auto"})},D))},_))})]})})]}):o.jsxs("div",{className:"flex flex-col flex-1 overflow-auto px-4 py-4 space-y-5",children:[o.jsxs("div",{className:"flex gap-4",children:[o.jsx("span",{className:"text-app-secondary pb-1 cursor-pointer",onClick:()=>t("/portfolio"),children:"Portfolio"}),o.jsx("span",{className:"text-white border-b-2 border-white pb-1 cursor-pointer",children:"Order Status"})]}),o.jsx(Gp,{}),o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("table",{className:"w-full text-sm whitespace-nowrap",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"text-app-secondary",children:[o.jsx("th",{className:"text-left py-2 px-1",children:"Order"}),o.jsx("th",{className:"text-left py-2 px-1",children:"Time"}),o.jsx("th",{className:"text-left py-2 px-1",children:"Symbol"}),o.jsx("th",{className:"text-left py-2 px-1",children:"Side"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Price"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Volume"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Matched"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Balance"}),o.jsx("th",{className:"text-right py-2 px-1",children:"Cancelled"}),o.jsx("th",{className:"text-center py-2 px-1",children:"Status"})]})}),o.jsxs("tbody",{children:[r.map((P,_)=>{const $=P.volume||0,D=P.matchedVolume||0,F=Uk(P.status,$,D),J=$k(P.status,$,D);return o.jsxs("tr",{className:"border-b border-app-border cursor-pointer hover:bg-app-darkgray/50",onClick:()=>x({open:!0,order:P}),children:[o.jsx("td",{className:"py-2 px-1",children:P.orderNo}),o.jsxs("td",{className:"py-2 px-1",children:[o.jsx("span",{children:Hk(P.orderDate)})," ",o.jsx("span",{children:Vk(P.orderTime)})]}),o.jsx("td",{className:"py-2 px-1",children:P.stock}),o.jsx("td",{className:`py-2 px-1 ${mc(P.side)}`,children:P.side}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(P.price,2)}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(P.volume,0,0
35)}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(P.matchedVolume||0,0,0)}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(F,0,0)}),o.jsx("td",{className:"text-right py-2 px-1",children:qe(J,0,0)}),o.jsx("td",{className:"text-center py-2 px-1",children:o.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs text-white ${W1(P.status)}`,children:P.status})})]},P.orderNo+_)}),r.length===0&&o.jsx("tr",{children:o.jsx("td",{colSpan:12,className:"text-center py-8 text-app-secondary",children:"No orders"})})]})]})}),o.jsx(Gk,{isOpen:f.open,onClose:()=>x({open:!1,order:null}),data:f.order}),l.open&&o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[o.jsx("div",{className:"fixed inset-0 bg-black/50 animate-modal-backdrop",onClick:()=>c({open:!1,order:null})}),o.jsxs("div",{className:"relative bg-app-darkgray rounded-lg p-6 w-[320px] z-50 animate-modal-content",children:[o.jsx("h3",{className:"text-lg mb-4",children:"Cancel Order"}),o.jsxs("p",{className:"text-sm text-app-secondary mb-1",children:[l.order?.stock," - ",l.order?.side==="B"?"Buy":"Sell"," - ",qe(l.order?.volume||0,0,0)," @ ",qe(l.order?.price||0,2)]}),o.jsxs("p",{className:"text-sm text-app-secondary mb-4",children:["Order No: ",l.order?.orderNo]}),o.jsx("input",{type:"password",placeholder:"Enter PIN",className:"w-full bg-app-bg text-white border border-app-border rounded px-3 py-2 text-sm mb-2",value:y,onChange:P=>{b(P.target.value),C("")},maxLength:6,autoFocus:!0}),S&&o.jsx("p",{className:"text-red1 text-xs mb-2",children:S}),o.jsxs("div",{className:"flex gap-2 mt-4",children:[o.jsx("button",{className:"flex-1 bg-app-border text-white rounded py-2 text-sm",onClick:()=>c({open:!1,order:null}),children:"Close"}),o.jsx("button",{className:"flex-1 bg-primary text-white rounded py-2 text-sm disabled:opacity-50",onClick:M,disabled:R,children:R?"Cancelling...":"Confirm"})]})]})]})]})},qF=()=>o.jsx(bc,{}),WF=()=>o.jsx(bc,{}),QF="https://stockradars.co/radars-school/home/dictionary?value=ranking",JF=()=>{const e=Ye(y=>y.auth.broker)||"",t=He.getUserId()||"",r=He.getToken()||"",n=He.getState()||"",[l,c]=Y.useState(!1),f=`userId=${t}&Token=${r}&state=${n}&lang=en&broker=${e}&bundle=${e}&theme=dark`,x=`${an.IFRAME_URL}/ranking?${f}`;return o.jsxs("div",{className:"flex flex-col flex-1 overflow-hidden",children:[o.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-app-border shrink-0",children:[o.jsx("h1",{className:"text-sm font-semibold flex-1",children:"Ranking"}),o.jsx("button",{onClick:()=>c(!0),className:"text-app-muted hover:text-white transition-colors","aria-label":"Ranking info",children:o.jsx(_D,{className:"text-white",size:18})})]}),o.jsx("iframe",{src:x,className:"flex-1 w-full border-0",allow:"fullscreen"}),o.jsx(Lk,{isOpen:l,onClose:()=>c(!1),title:"Ranking",url:QF})]})},KF=()=>o.jsx(bc,{}),ZF=()=>o.jsx(bc,{}),ez=()=>o.jsx(bc,{}),tz=()=>o.jsx(bc,{}),rz=()=>o.jsx(bc,{}),sz={0:"Male",1:"Female",2:"Not Specified"},nz=e=>{if(!e)return"";const t=e.replace(/\D/g,"");return t?`068${t.padStart(7,"0")}`:""},kE=e=>{if(!e)return"-";const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"})},iz=()=>{const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?"iOS":/Android/.test(e)?"Android":/Macintosh|Mac OS X/.test(e)?"Mac":/Windows/.test(e)?"Windows":/Linux/.test(e)?"Linux":"Unknown"},az=()=>{const e=navigator.userAgent,t=[{name:"Edge",regex:/Edg\/(\S+)/},{name:"Chrome",regex:/Chrome\/(\S+)/},{name:"Firefox",regex:/Firefox\/(\S+)/},{name:"Safari",regex:/Version\/(\S+).*Safari/}];for(const r of t){const n=e.match(r.regex);if(n)return{name:r.name,version:n[1]}}return{name:"Unknown",version:"-"}},ki=({label:e,value:t})=>o.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center py-3.5 gap-0.5 sm:gap-0 border-b border-app-border last:border-b-0",children:[o.jsx("span",{className:"sm:w-44 text-app-secondary text-xs sm:text-sm sm:shrink-0",children:e}),o.jsx("span",{className:"text-white text-sm font-medium",children:t||"-"})]}),lz=()=>{const{userType:e,selectedAccount:t,profile:r,broker:n}=Ye($=>$.auth),l=He.getFullname()||(r?`${r.first_name??""} ${r.last_name??""}`.trim():""),c=r?.email||He.getUsername()||"-",f=r?.phone||"-",x=r?.gender?sz[r.gender]||r.gender:"-",y=kE(r?.birth_date),b=kE(r?.register_date),C=nz(He.getUserId())||t||He.getAccountNo()||"-",O=!!n&&n!=="stockradars"||e==="realtime"?"Premium":e==="delay"?"Free":e||"-",M=l?HC(l):c.substring(0,2).toUpperCase(),P=iz(),_=az();return o.jsx("div",{className:"flex-1 overflow-y-auto p-4 sm:p-6 lg:p-10",children:o.jsxs("div",{className:"max-w-2xl mx-auto
35space-y-4 sm:space-y-6",children:[o.jsxs("div",{className:"bg-app-surface rounded-2xl p-6 sm:p-8 flex flex-col items-center text-center shadow-md",children:[o.jsx("div",{className:"w-16 h-16 sm:w-20 sm:h-20 rounded-full bg-primary flex items-center justify-center text-white text-xl sm:text-2xl font-bold mb-3 sm:mb-4 shadow-lg",children:M}),o.jsx("h1",{className:"text-lg sm:text-xl font-bold text-white",children:l||"-"}),o.jsx("p",{className:"text-app-secondary text-xs sm:text-sm mt-1 break-all",children:c}),o.jsx("span",{className:"mt-3 inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-primary/20 text-primary border border-primary/30",children:O})]}),o.jsxs("div",{className:"bg-app-surface rounded-2xl shadow-md overflow-hidden",children:[o.jsx("div",{className:"px-4 sm:px-6 py-3.5 sm:py-4 border-b border-app-border",children:o.jsx("h2",{className:"text-sm sm:text-base font-semibold text-white",children:"User Information"})}),o.jsxs("div",{className:"px-4 sm:px-6",children:[o.jsx(ki,{label:"Full Name",value:l||"-"}),o.jsx(ki,{label:"Email",value:c}),o.jsx(ki,{label:"Phone",value:f}),o.jsx(ki,{label:"Gender",value:x}),o.jsx(ki,{label:"Birth Date",value:y}),o.jsx(ki,{label:"Register Date",value:b}),o.jsx(ki,{label:"Account Number",value:C}),o.jsx(ki,{label:"Account Type",value:O})]})]}),o.jsxs("div",{className:"bg-app-surface rounded-2xl shadow-md overflow-hidden",children:[o.jsx("div",{className:"px-4 sm:px-6 py-3.5 sm:py-4 border-b border-app-border",children:o.jsx("h2",{className:"text-sm sm:text-base font-semibold text-white",children:"Platform"})}),o.jsxs("div",{className:"px-4 sm:px-6",children:[o.jsx(ki,{label:"Device",value:P}),o.jsx(ki,{label:"Browser",value:_.name}),o.jsx(ki,{label:"Browser Version",value:_.version}),o.jsx(ki,{label:"Web Version",value:pc.VERSION})]})]})]})})},oz={mbket:"mbket",krungsri:"krungsri",ksone:"ksone",kstradeplus:"kstradeplus",yuanta:"yuanta",globlex:"globlex",dark_stockradarsnext:"dark_stockradarsnext",light_stockradarsnext:"light_stockradarsnext"},cz=e=>e&&oz[e]||"stockradars";function Vr(e,t){const r=t?o.jsx(sL,{feature:t,children:e}):e;return o.jsx(rL,{children:o.jsx(tL,{children:r})})}function uz({children:e}){const t=Sn(),r=er(),n=Ye(l=>l.auth.isAuthenticated);return Y.useEffect(()=>{n&&r(gO())},[t.pathname]),Y.useEffect(()=>{typeof gtag<"u"&>ag("event","page_view",{page_path:t.pathname+t.search,page_title:document.title})},[t.pathname,t.search]),o.jsx(o.Fragment,{children:e})}function dz(){const e=Ye(t=>t.auth.broker);return Y.useEffect(()=>{document.documentElement.setAttribute("theme",cz(e))},[e]),o.jsx(IN,{basename:"/webapp",children:o.jsx(uz,{children:o.jsxs(hN,{children:[o.jsx(mr,{path:"/login",element:o.jsx(W5,{})}),o.jsx(mr,{path:"/loginportal",element:o.jsx(J5,{})}),o.jsx(mr,{path:"/auth-message",element:o.jsx(rI,{})}),o.jsx(mr,{path:"/",element:o.jsx(Fp,{to:"/market-overview",replace:!0})}),o.jsx(mr,{path:"/market-mover",element:Vr(o.jsx(hI,{}))}),o.jsx(mr,{path:"/market-overview",element:Vr(o.jsx(AF,{}))}),o.jsx(mr,{path:"/radars",element:Vr(o.jsx(OI,{}))}),o.jsx(mr,{path:"/radars/:radarsId",element:Vr(o.jsx(OP,{}))}),o.jsx(mr,{path:"/favorite",element:Vr(o.jsx(MF,{}))}),o.jsx(mr,{path:"/bidoffer",element:Vr(o.jsx(OF,{}))}),o.jsx(mr,{path:"/realtime/:symbol?",element:Vr(o.jsx(G1,{}))}),o.jsx(mr,{path:"/insight/:symbol?",element:Vr(o.jsx(X1,{}))}),o.jsx(mr,{path:"/timeline/:symbol?",element:Vr(o.jsx(q1,{}))}),o.jsx(mr,{path:"/ticker",element:Vr(o.jsx(_F,{}))}),o.jsx(mr,{path:"/topshareholder",element:Vr(o.jsx(MI,{}))}),o.jsx(mr,{path:"/chart",element:Vr(o.jsx(fI,{}))}),o.jsx(mr,{path:"/account",element:Vr(o.jsx(ez,{}))}),o.jsx(mr,{path:"/profile",element:Vr(o.jsx(lz,{}))}),o.jsx(mr,{path:"/trade",element:Vr(o.jsx(YF,{}),"trade")}),o.jsx(mr,{path:"/portfolio",element:Vr(o.jsx(GF,{}),"portfolio")}),o.jsx(mr,{path:"/order-status",element:Vr(o.jsx(XF,{}),"portfolio")}),o.jsx(mr,{path:"/store",element:Vr(o.jsx(LP,{}),"store")}),o.jsx(mr,{path:"/top100",element:Vr(o.jsx(qF,{}),"top100")}),o.jsx(mr,{path:"/promotion",element:Vr(o.jsx(WF,{}))}),o.jsx(mr,{path:"/ranking",element:Vr(o.jsx(JF,{}),"ranking")}),o.jsx(mr,{path:"/stock-compare",element:Vr(o.jsx(RI,{}),"stock-compare")}),o.jsx(mr,{path:"/builder",element:Vr(o.jsx(KF,{}),"builder")}),o.jsx(mr,{path:"/alert",element:Vr(o.jsx(ZF,{}),"alert")}),o.jsx(mr,{path:"/radars-point",element:Vr(o.jsx(tz,{}))}),o.jsx(mr,{path:"/stockradars-plus",element:Vr(o.jsx(rz,{}))}),o.jsx(mr,{path:"*",element:o.jsx(Fp,{to:"/",replace:!0})})]})})})}function hz(){return o.jsx(cj,{store:Us,children:o.jsx(dz,{})})}He.migrateOldCookies();He.initBrokerTab();mT.createRoot(document.getElementById("root")).render(o.jsx(Y.StrictMode,{children:o.jsx(hz,{})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.