ezpm2gui 1.8.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +363 -330
  2. package/bin/ezpm2gui.js +8 -8
  3. package/bin/ezpm2gui.ts +51 -51
  4. package/bin/generate-ecosystem.js +35 -35
  5. package/bin/generate-ecosystem.ts +56 -56
  6. package/dist/server/config/project-configs.json +235 -235
  7. package/dist/server/index.js +4 -4
  8. package/dist/server/routes/deployApplication.js +4 -4
  9. package/dist/server/routes/logStreaming.js +35 -4
  10. package/dist/server/routes/remoteConnections.js +44 -12
  11. package/dist/server/utils/encryption.d.ts +22 -0
  12. package/dist/server/utils/encryption.js +53 -0
  13. package/dist/server/utils/remote-connection.js +3 -3
  14. package/dist/server/utils/remote-metrics-db.js +59 -59
  15. package/package.json +86 -86
  16. package/scripts/postinstall.js +36 -36
  17. package/src/client/build/asset-manifest.json +6 -6
  18. package/src/client/build/favicon.ico +2 -2
  19. package/src/client/build/index.html +1 -1
  20. package/src/client/build/logo192.svg +7 -7
  21. package/src/client/build/logo512.svg +7 -7
  22. package/src/client/build/manifest.json +24 -24
  23. package/src/client/build/static/css/main.8f39974b.css +5 -0
  24. package/src/client/build/static/css/main.8f39974b.css.map +1 -0
  25. package/src/client/build/static/js/main.71236659.js +3 -0
  26. package/src/client/build/static/js/main.71236659.js.map +1 -0
  27. package/dist/server/config/cron-jobs.json +0 -1
  28. package/dist/server/config/remote-connections.json +0 -3
  29. package/src/client/build/static/css/main.9decb204.css +0 -5
  30. package/src/client/build/static/css/main.9decb204.css.map +0 -1
  31. package/src/client/build/static/js/main.28a4a583.js +0 -3
  32. package/src/client/build/static/js/main.28a4a583.js.map +0 -1
  33. /package/src/client/build/static/js/{main.28a4a583.js.LICENSE.txt → main.71236659.js.LICENSE.txt} +0 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see main.71236659.js.LICENSE.txt */
2
+ (()=>{var e={39:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=n(4421)},191:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case a:case s:case d:case u:case f:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case i:return e;default:return t}}case o:return t}}}t.vM=c,t.lD=p},219:(e,t,n)=>{"use strict";var o=n(3763),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function l(e){return o.isMemo(e)?a:i[e.$$typeof]||r}i[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[o.Memo]=a;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,o){if("string"!==typeof n){if(f){var r=h(n);r&&r!==f&&e(t,r,o)}var a=d(n);u&&(a=a.concat(u(n)));for(var i=l(t),m=l(n),g=0;g<a.length;++g){var x=a[g];if(!s[x]&&(!o||!o[x])&&(!m||!m[x])&&(!i||!i[x])){var b=p(n,x);try{c(t,x,b)}catch(v){}}}}return t}},457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.A});var o=n(7868)},579:(e,t,n)=>{"use strict";e.exports=n(1153)},869:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(5043);var o=n(3290),r=n(579);function s(e){const{styles:t,defaultTheme:n={}}=e,s="function"===typeof t?e=>{return t(void 0===(o=e)||null===o||0===Object.keys(o).length?n:e);var o}:t;return(0,r.jsx)(o.mL,{styles:s})}},918:(e,t,n)=>{"use strict";function o(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>o})},950:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(3468).A},1132:(e,t,n)=>{"use strict";var o=n(4994);t.A=void 0;var r=o(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download")},1153:(e,t,n)=>{"use strict";var o=n(5043),r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,s={},c=null,d=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:d,props:s,_owner:i.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},1337:(e,t,n)=>{"use strict";var o=n(4994);t.A=void 0;var r=o(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},1475:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(7123);const r=e=>(0,o.A)(e)&&"classes"!==e},1668:(e,t,n)=>{"use strict";function o(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>o})},1722:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>o,SF:()=>r,sk:()=>s});function o(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")})),o}var r=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},s=function(e,t,n){r(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var s=t;do{e.insert(t===s?"."+o:"",s,e.sheet,!0),s=s.next}while(void 0!==s)}}},1782:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(5043),r=n(4440);const s=function(e){const t=o.useRef(e);return(0,r.A)((()=>{t.current=e})),o.useRef((function(){return(0,t.current)(...arguments)})).current}},1844:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},2372:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var o=n(9386);const r={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const s=r[t];return s?"".concat(n,"-").concat(s):"".concat(o.A.generate(e),"-").concat(t)}},2374:(e,t,n)=>{"use strict";t.A=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(5043)),r=n(3174);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=o.useContext(r.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},2427:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(1668).A},2456:(e,t,n)=>{"use strict";function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];e.apply(this,o),t.apply(this,o)}),(()=>{}))}n.d(t,{A:()=>o})},2532:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2372);function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r={};return t.forEach((t=>{r[t]=(0,o.Ay)(e,t,n)})),r}},2730:(e,t,n)=>{"use strict";var o=n(5043),r=n(8853);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,i={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(i[e]=t,e=0;e<t.length;e++)a.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),u=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},f={};function m(e,t,n,o,r,s,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var x=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,o){var r=g.hasOwnProperty(t)?g[t]:null;(null!==r?0!==r.type:o||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,o){if(null===t||"undefined"===typeof t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!u.call(f,e)||!u.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(x,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(x,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(x,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var y=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),N=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var T=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=T&&e[T]||e["@@iterator"])?e:null}var I,D=Object.assign;function z(e){if(void 0===I)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var o=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){o=c}e.call(t.prototype)}else{try{throw Error()}catch(c){o=c}e()}}catch(c){if(c&&o&&"string"===typeof c.stack){for(var r=c.stack.split("\n"),s=o.stack.split("\n"),a=r.length-1,i=s.length-1;1<=a&&0<=i&&r[a]!==s[i];)i--;for(;1<=a&&0<=i;a--,i--)if(r[a]!==s[i]){if(1!==a||1!==i)do{if(a--,0>--i||r[a]!==s[i]){var l="\n"+r[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=i);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function W(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case C:return"Profiler";case j:return"StrictMode";case _:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return U(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=K(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=V(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(te(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function se(e,t){var n=V(t.value),o=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de,ue=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return de(e,t)}))}:de);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=me(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var xe=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(xe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(s(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ye=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,je=null;function Ce(e){if(e=yr(e)){if("function"!==typeof ke)throw Error(s(280));var t=e.stateNode;t&&(t=kr(t),ke(e.stateNode,e.type,t))}}function Ae(e){Se?je?je.push(e):je=[e]:Se=e}function Ne(){if(Se){var e=Se,t=je;if(je=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ee(e,t){return e(t)}function _e(){}var Pe=!1;function Me(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Ee(e,t,n)}finally{Pe=!1,(null!==Se||null!==je)&&(_e(),Ne())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var o=kr(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(s(231,t,typeof n));return n}var Oe=!1;if(d)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch(de){Oe=!1}function Le(e,t,n,o,r,s,a,i,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Ie=!1,De=null,ze=!1,Fe=null,Be={onError:function(e){Ie=!0,De=e}};function We(e,t,n,o,r,s,a,i,l){Ie=!1,De=null,Le.apply(Be,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(Ue(e)!==e)throw Error(s(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var a=r.alternate;if(null===a){if(null!==(o=r.return)){n=o;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return Ve(r),e;if(a===o)return Ve(r),t;a=a.sibling}throw Error(s(188))}if(n.return!==o.return)n=r,o=a;else{for(var i=!1,l=r.child;l;){if(l===n){i=!0,n=r,o=a;break}if(l===o){i=!0,o=r,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,o=r;break}if(l===o){i=!0,o=a,n=r;break}l=l.sibling}if(!i)throw Error(s(189))}}if(n.alternate!==o)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var $e=r.unstable_scheduleCallback,Je=r.unstable_cancelCallback,Ye=r.unstable_shouldYield,Ge=r.unstable_requestPaint,Xe=r.unstable_now,Ze=r.unstable_getCurrentPriorityLevel,Qe=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,ot=r.unstable_IdlePriority,rt=null,st=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/lt|0)|0},it=Math.log,lt=Math.LN2;var ct=64,dt=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var o=0,r=e.suspendedLanes,s=e.pingedLanes,a=268435455&n;if(0!==a){var i=a&~r;0!==i?o=ut(i):0!==(s&=a)&&(o=ut(s))}else 0!==(a=n&~r)?o=ut(a):0!==s&&(o=ut(s));if(0===o)return 0;if(0!==t&&t!==o&&0===(t&r)&&((r=o&-o)>=(s=t&-t)||16===r&&0!==(4194240&s)))return t;if(0!==(4&o)&&(o|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)r=1<<(n=31-at(t)),o|=e[n],t&=~r;return o}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-at(n),r=1<<o;r&t|e[o]&t&&(e[o]|=t),n&=~r}}var vt=0;function yt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,kt,St,jt,Ct,At=!1,Nt=[],Et=null,_t=null,Pt=null,Mt=new Map,Rt=new Map,Ot=[],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 submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function It(e,t,n,o,r,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:s,targetContainers:[r]},null!==t&&(null!==(t=yr(t))&&kt(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Dt(e){var t=vr(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yr(n))&&kt(t),e.blockedOn=n,!1;var o=new(n=e.nativeEvent).constructor(n.type,n);ye=o,n.target.dispatchEvent(o),ye=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){At=!1,null!==Et&&zt(Et)&&(Et=null),null!==_t&&zt(_t)&&(_t=null),null!==Pt&&zt(Pt)&&(Pt=null),Mt.forEach(Ft),Rt.forEach(Ft)}function Wt(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Bt)))}function Ut(e){function t(t){return Wt(t,e)}if(0<Nt.length){Wt(Nt[0],e);for(var n=1;n<Nt.length;n++){var o=Nt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Et&&Wt(Et,e),null!==_t&&Wt(_t,e),null!==Pt&&Wt(Pt,e),Mt.forEach(t),Rt.forEach(t),n=0;n<Ot.length;n++)(o=Ot[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Dt(n),null===n.blockedOn&&Ot.shift()}var Ht=y.ReactCurrentBatchConfig,Vt=!0;function Kt(e,t,n,o){var r=vt,s=Ht.transition;Ht.transition=null;try{vt=1,$t(e,t,n,o)}finally{vt=r,Ht.transition=s}}function qt(e,t,n,o){var r=vt,s=Ht.transition;Ht.transition=null;try{vt=4,$t(e,t,n,o)}finally{vt=r,Ht.transition=s}}function $t(e,t,n,o){if(Vt){var r=Yt(e,t,n,o);if(null===r)Ko(e,t,o,Jt,n),Lt(e,o);else if(function(e,t,n,o,r){switch(t){case"focusin":return Et=It(Et,e,t,n,o,r),!0;case"dragenter":return _t=It(_t,e,t,n,o,r),!0;case"mouseover":return Pt=It(Pt,e,t,n,o,r),!0;case"pointerover":var s=r.pointerId;return Mt.set(s,It(Mt.get(s)||null,e,t,n,o,r)),!0;case"gotpointercapture":return s=r.pointerId,Rt.set(s,It(Rt.get(s)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o))o.stopPropagation();else if(Lt(e,o),4&t&&-1<Tt.indexOf(e)){for(;null!==r;){var s=yr(r);if(null!==s&&wt(s),null===(s=Yt(e,t,n,o))&&Ko(e,t,o,Jt,n),s===r)break;r=s}null!==r&&o.stopPropagation()}else Ko(e,t,o,null,n)}}var Jt=null;function Yt(e,t,n,o){if(Jt=null,null!==(e=vr(e=we(o))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Jt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Qe:return 1;case et:return 4;case tt:case nt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var Xt=null,Zt=null,Qt=null;function en(){if(Qt)return Qt;var e,t,n=Zt,o=n.length,r="value"in Xt?Xt.value:Xt.textContent,s=r.length;for(e=0;e<o&&n[e]===r[e];e++);var a=o-e;for(t=1;t<=a&&n[o-t]===r[s-t];t++);return Qt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function on(){return!1}function rn(e){function t(t,n,o,r,s){for(var a in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=r,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(r):r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:on,this.isPropagationStopped=on,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=rn(cn),un=D({},cn,{view:0,detail:0}),pn=rn(un),hn=D({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=rn(hn),mn=rn(D({},hn,{dataTransfer:0})),gn=rn(D({},un,{relatedTarget:0})),xn=rn(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=rn(bn),yn=rn(D({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return jn}var An=D({},un,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nn=rn(An),En=rn(D({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),_n=rn(D({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=rn(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=D({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=rn(Mn),On=[9,13,27,32],Tn=d&&"CompositionEvent"in window,Ln=null;d&&"documentMode"in document&&(Ln=document.documentMode);var In=d&&"TextEvent"in window&&!Ln,Dn=d&&(!Tn||Ln&&8<Ln&&11>=Ln),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Hn={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 Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Kn(e,t,n,o){Ae(o),0<(t=$o(t,"onChange")).length&&(n=new dn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Jn(e){Fo(e,0)}function Yn(e){if($(wr(e)))return e}function Gn(e,t){if("change"===e)return t}var Xn=!1;if(d){var Zn;if(d){var Qn="oninput"in document;if(!Qn){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),Qn="function"===typeof eo.oninput}Zn=Qn}else Zn=!1;Xn=Zn&&(!document.documentMode||9<document.documentMode)}function to(){qn&&(qn.detachEvent("onpropertychange",no),$n=qn=null)}function no(e){if("value"===e.propertyName&&Yn($n)){var t=[];Kn(t,$n,e,we(e)),Me(Jn,t)}}function oo(e,t,n){"focusin"===e?(to(),$n=n,(qn=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function ro(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn($n)}function so(e,t){if("click"===e)return Yn(t)}function ao(e,t){if("input"===e||"change"===e)return Yn(t)}var io="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lo(e,t){if(io(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var r=n[o];if(!u.call(t,r)||!io(e[r],t[r]))return!1}return!0}function co(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uo(e,t){var n,o=co(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=co(o)}}function po(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?po(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ho(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(o){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mo(e){var t=ho(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&po(n.ownerDocument.documentElement,n)){if(null!==o&&fo(n))if(t=o.start,void 0===(e=o.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,s=Math.min(o.start,r);o=void 0===o.end?s:Math.min(o.end,r),!e.extend&&s>o&&(r=o,o=s,s=r),r=uo(n,s);var a=uo(n,o);r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),s>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var go=d&&"documentMode"in document&&11>=document.documentMode,xo=null,bo=null,vo=null,yo=!1;function wo(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yo||null==xo||xo!==J(o)||("selectionStart"in(o=xo)&&fo(o)?o={start:o.selectionStart,end:o.selectionEnd}:o={anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},vo&&lo(vo,o)||(vo=o,0<(o=$o(bo,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=xo)))}function ko(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var So={animationend:ko("Animation","AnimationEnd"),animationiteration:ko("Animation","AnimationIteration"),animationstart:ko("Animation","AnimationStart"),transitionend:ko("Transition","TransitionEnd")},jo={},Co={};function Ao(e){if(jo[e])return jo[e];if(!So[e])return e;var t,n=So[e];for(t in n)if(n.hasOwnProperty(t)&&t in Co)return jo[e]=n[t];return e}d&&(Co=document.createElement("div").style,"AnimationEvent"in window||(delete So.animationend.animation,delete So.animationiteration.animation,delete So.animationstart.animation),"TransitionEvent"in window||delete So.transitionend.transition);var No=Ao("animationend"),Eo=Ao("animationiteration"),_o=Ao("animationstart"),Po=Ao("transitionend"),Mo=new Map,Ro="abort auxClick 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(" ");function Oo(e,t){Mo.set(e,t),l(t,[e])}for(var To=0;To<Ro.length;To++){var Lo=Ro[To];Oo(Lo.toLowerCase(),"on"+(Lo[0].toUpperCase()+Lo.slice(1)))}Oo(No,"onAnimationEnd"),Oo(Eo,"onAnimationIteration"),Oo(_o,"onAnimationStart"),Oo("dblclick","onDoubleClick"),Oo("focusin","onFocus"),Oo("focusout","onBlur"),Oo(Po,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Io="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(" "),Do=new Set("cancel close invalid load scroll toggle".split(" ").concat(Io));function zo(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,r,a,i,l,c){if(We.apply(this,arguments),Ie){if(!Ie)throw Error(s(198));var d=De;Ie=!1,De=null,ze||(ze=!0,Fe=d)}}(o,t,void 0,e),e.currentTarget=null}function Fo(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var o=e[n],r=o.event;o=o.listeners;e:{var s=void 0;if(t)for(var a=o.length-1;0<=a;a--){var i=o[a],l=i.instance,c=i.currentTarget;if(i=i.listener,l!==s&&r.isPropagationStopped())break e;zo(r,i,c),s=l}else for(a=0;a<o.length;a++){if(l=(i=o[a]).instance,c=i.currentTarget,i=i.listener,l!==s&&r.isPropagationStopped())break e;zo(r,i,c),s=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Bo(e,t){var n=t[gr];void 0===n&&(n=t[gr]=new Set);var o=e+"__bubble";n.has(o)||(Vo(t,e,2,!1),n.add(o))}function Wo(e,t,n){var o=0;t&&(o|=4),Vo(n,e,o,t)}var Uo="_reactListening"+Math.random().toString(36).slice(2);function Ho(e){if(!e[Uo]){e[Uo]=!0,a.forEach((function(t){"selectionchange"!==t&&(Do.has(t)||Wo(t,!1,e),Wo(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Uo]||(t[Uo]=!0,Wo("selectionchange",!1,t))}}function Vo(e,t,n,o){switch(Gt(t)){case 1:var r=Kt;break;case 4:r=qt;break;default:r=$t}n=r.bind(null,t,n,e),r=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),o?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Ko(e,t,n,o,r){var s=o;if(0===(1&t)&&0===(2&t)&&null!==o)e:for(;;){if(null===o)return;var a=o.tag;if(3===a||4===a){var i=o.stateNode.containerInfo;if(i===r||8===i.nodeType&&i.parentNode===r)break;if(4===a)for(a=o.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;a=a.return}for(;null!==i;){if(null===(a=vr(i)))return;if(5===(l=a.tag)||6===l){o=s=a;continue e}i=i.parentNode}}o=o.return}Me((function(){var o=s,r=we(n),a=[];e:{var i=Mo.get(e);if(void 0!==i){var l=dn,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Nn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=_n;break;case No:case Eo:case _o:l=xn;break;case Po:l=Pn;break;case"scroll":l=pn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var d=0!==(4&t),u=!d&&"scroll"===e,p=d?null!==i?i+"Capture":null:i;d=[];for(var h,f=o;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Re(f,p))&&d.push(qo(f,m,h)))),u)break;f=f.return}0<d.length&&(i=new l(i,c,null,n,r),a.push({event:i,listeners:d}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===ye||!(c=n.relatedTarget||n.fromElement)||!vr(c)&&!c[mr])&&(l||i)&&(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,l?(l=o,null!==(c=(c=n.relatedTarget||n.toElement)?vr(c):null)&&(c!==(u=Ue(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=o),l!==c)){if(d=fn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(d=En,m="onPointerLeave",p="onPointerEnter",f="pointer"),u=null==l?i:wr(l),h=null==c?i:wr(c),(i=new d(m,f+"leave",l,n,r)).target=u,i.relatedTarget=h,m=null,vr(r)===o&&((d=new d(p,f+"enter",c,n,r)).target=h,d.relatedTarget=u,m=d),u=m,l&&c)e:{for(p=c,f=0,h=d=l;h;h=Jo(h))f++;for(h=0,m=p;m;m=Jo(m))h++;for(;0<f-h;)d=Jo(d),f--;for(;0<h-f;)p=Jo(p),h--;for(;f--;){if(d===p||null!==p&&d===p.alternate)break e;d=Jo(d),p=Jo(p)}d=null}else d=null;null!==l&&Yo(a,i,l,d,!1),null!==c&&null!==u&&Yo(a,u,c,d,!0)}if("select"===(l=(i=o?wr(o):window).nodeName&&i.nodeName.toLowerCase())||"input"===l&&"file"===i.type)var g=Gn;else if(Vn(i))if(Xn)g=ao;else{g=ro;var x=oo}else(l=i.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=so);switch(g&&(g=g(e,o))?Kn(a,g,n,r):(x&&x(e,i,o),"focusout"===e&&(x=i._wrapperState)&&x.controlled&&"number"===i.type&&ee(i,"number",i.value)),x=o?wr(o):window,e){case"focusin":(Vn(x)||"true"===x.contentEditable)&&(xo=x,bo=o,vo=null);break;case"focusout":vo=bo=xo=null;break;case"mousedown":yo=!0;break;case"contextmenu":case"mouseup":case"dragend":yo=!1,wo(a,n,r);break;case"selectionchange":if(go)break;case"keydown":case"keyup":wo(a,n,r)}var b;if(Tn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Un?Bn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Dn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==v?"onCompositionEnd"===v&&Un&&(b=en()):(Zt="value"in(Xt=r)?Xt.value:Xt.textContent,Un=!0)),0<(x=$o(o,v)).length&&(v=new yn(v,e,null,n,r),a.push({event:v,listeners:x}),b?v.data=b:null!==(b=Wn(n))&&(v.data=b))),(b=In?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Tn&&Bn(e,t)?(e=en(),Qt=Zt=Xt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(o=$o(o,"onBeforeInput")).length&&(r=new yn("onBeforeInput","beforeinput",null,n,r),a.push({event:r,listeners:o}),r.data=b))}Fo(a,t)}))}function qo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $o(e,t){for(var n=t+"Capture",o=[];null!==e;){var r=e,s=r.stateNode;5===r.tag&&null!==s&&(r=s,null!=(s=Re(e,n))&&o.unshift(qo(e,s,r)),null!=(s=Re(e,t))&&o.push(qo(e,s,r))),e=e.return}return o}function Jo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yo(e,t,n,o,r){for(var s=t._reactName,a=[];null!==n&&n!==o;){var i=n,l=i.alternate,c=i.stateNode;if(null!==l&&l===o)break;5===i.tag&&null!==c&&(i=c,r?null!=(l=Re(n,s))&&a.unshift(qo(n,l,i)):r||null!=(l=Re(n,s))&&a.push(qo(n,l,i))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Go=/\r\n?/g,Xo=/\u0000|\uFFFD/g;function Zo(e){return("string"===typeof e?e:""+e).replace(Go,"\n").replace(Xo,"")}function Qo(e,t,n){if(t=Zo(t),Zo(e)!==t&&n)throw Error(s(425))}function er(){}var tr=null,nr=null;function or(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rr="function"===typeof setTimeout?setTimeout:void 0,sr="function"===typeof clearTimeout?clearTimeout:void 0,ar="function"===typeof Promise?Promise:void 0,ir="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ar?function(e){return ar.resolve(null).then(e).catch(lr)}:rr;function lr(e){setTimeout((function(){throw e}))}function cr(e,t){var n=t,o=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===o)return e.removeChild(r),void Ut(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++;n=r}while(n);Ut(t)}function dr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ur(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var pr=Math.random().toString(36).slice(2),hr="__reactFiber$"+pr,fr="__reactProps$"+pr,mr="__reactContainer$"+pr,gr="__reactEvents$"+pr,xr="__reactListeners$"+pr,br="__reactHandles$"+pr;function vr(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ur(e);null!==e;){if(n=e[hr])return n;e=ur(e)}return t}n=(e=n).parentNode}return null}function yr(e){return!(e=e[hr]||e[mr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function kr(e){return e[fr]||null}var Sr=[],jr=-1;function Cr(e){return{current:e}}function Ar(e){0>jr||(e.current=Sr[jr],Sr[jr]=null,jr--)}function Nr(e,t){jr++,Sr[jr]=e.current,e.current=t}var Er={},_r=Cr(Er),Pr=Cr(!1),Mr=Er;function Rr(e,t){var n=e.type.contextTypes;if(!n)return Er;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,s={};for(r in n)s[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Or(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Tr(){Ar(Pr),Ar(_r)}function Lr(e,t,n){if(_r.current!==Er)throw Error(s(168));Nr(_r,t),Nr(Pr,n)}function Ir(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,"function"!==typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in t))throw Error(s(108,H(e)||"Unknown",r));return D({},n,o)}function Dr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Mr=_r.current,Nr(_r,e),Nr(Pr,Pr.current),!0}function zr(e,t,n){var o=e.stateNode;if(!o)throw Error(s(169));n?(e=Ir(e,t,Mr),o.__reactInternalMemoizedMergedChildContext=e,Ar(Pr),Ar(_r),Nr(_r,e)):Ar(Pr),Nr(Pr,n)}var Fr=null,Br=!1,Wr=!1;function Ur(e){null===Fr?Fr=[e]:Fr.push(e)}function Hr(){if(!Wr&&null!==Fr){Wr=!0;var e=0,t=vt;try{var n=Fr;for(vt=1;e<n.length;e++){var o=n[e];do{o=o(!0)}while(null!==o)}Fr=null,Br=!1}catch(r){throw null!==Fr&&(Fr=Fr.slice(e+1)),$e(Qe,Hr),r}finally{vt=t,Wr=!1}}return null}var Vr=[],Kr=0,qr=null,$r=0,Jr=[],Yr=0,Gr=null,Xr=1,Zr="";function Qr(e,t){Vr[Kr++]=$r,Vr[Kr++]=qr,qr=e,$r=t}function es(e,t,n){Jr[Yr++]=Xr,Jr[Yr++]=Zr,Jr[Yr++]=Gr,Gr=e;var o=Xr;e=Zr;var r=32-at(o)-1;o&=~(1<<r),n+=1;var s=32-at(t)+r;if(30<s){var a=r-r%5;s=(o&(1<<a)-1).toString(32),o>>=a,r-=a,Xr=1<<32-at(t)+r|n<<r|o,Zr=s+e}else Xr=1<<s|n<<r|o,Zr=e}function ts(e){null!==e.return&&(Qr(e,1),es(e,1,0))}function ns(e){for(;e===qr;)qr=Vr[--Kr],Vr[Kr]=null,$r=Vr[--Kr],Vr[Kr]=null;for(;e===Gr;)Gr=Jr[--Yr],Jr[Yr]=null,Zr=Jr[--Yr],Jr[Yr]=null,Xr=Jr[--Yr],Jr[Yr]=null}var os=null,rs=null,ss=!1,as=null;function is(e,t){var n=Mc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ls(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,os=e,rs=dr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,os=e,rs=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gr?{id:Xr,overflow:Zr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,os=e,rs=null,!0);default:return!1}}function cs(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ds(e){if(ss){var t=rs;if(t){var n=t;if(!ls(e,t)){if(cs(e))throw Error(s(418));t=dr(n.nextSibling);var o=os;t&&ls(e,t)?is(o,n):(e.flags=-4097&e.flags|2,ss=!1,os=e)}}else{if(cs(e))throw Error(s(418));e.flags=-4097&e.flags|2,ss=!1,os=e}}}function us(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;os=e}function ps(e){if(e!==os)return!1;if(!ss)return us(e),ss=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!or(e.type,e.memoizedProps)),t&&(t=rs)){if(cs(e))throw hs(),Error(s(418));for(;t;)is(e,t),t=dr(t.nextSibling)}if(us(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){rs=dr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}rs=null}}else rs=os?dr(e.stateNode.nextSibling):null;return!0}function hs(){for(var e=rs;e;)e=dr(e.nextSibling)}function fs(){rs=os=null,ss=!1}function ms(e){null===as?as=[e]:as.push(e)}var gs=y.ReactCurrentBatchConfig;function xs(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var o=n.stateNode}if(!o)throw Error(s(147,e));var r=o,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function bs(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vs(e){return(0,e._init)(e._payload)}function ys(e){function t(t,n){if(e){var o=t.deletions;null===o?(t.deletions=[n],t.flags|=16):o.push(n)}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function a(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags|=2,n):o:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Dc(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function c(e,t,n,o){var s=n.type;return s===S?u(e,t,n.props.children,o,n.key):null!==t&&(t.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===R&&vs(s)===t.type)?((o=r(t,n.props)).ref=xs(e,t,n),o.return=e,o):((o=Tc(n.type,n.key,n.props,null,e.mode,o)).ref=xs(e,t,n),o.return=e,o)}function d(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function u(e,t,n,o,s){return null===t||7!==t.tag?((t=Lc(n,e.mode,o,s)).return=e,t):((t=r(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Dc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Tc(t.type,t.key,t.props,null,e.mode,n)).ref=xs(e,null,t),n.return=e,n;case k:return(t=zc(t,e.mode,n)).return=e,t;case R:return p(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lc(t,e.mode,n,null)).return=e,t;bs(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:l(e,t,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===r?c(e,t,n,o):null;case k:return n.key===r?d(e,t,n,o):null;case R:return h(e,t,(r=n._init)(n._payload),o)}if(te(n)||L(n))return null!==r?null:u(e,t,n,o,null);bs(e,n)}return null}function f(e,t,n,o,r){if("string"===typeof o&&""!==o||"number"===typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"===typeof o&&null!==o){switch(o.$$typeof){case w:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r);case k:return d(t,e=e.get(null===o.key?n:o.key)||null,o,r);case R:return f(e,t,n,(0,o._init)(o._payload),r)}if(te(o)||L(o))return u(t,e=e.get(n)||null,o,r,null);bs(t,o)}return null}function m(r,s,i,l){for(var c=null,d=null,u=s,m=s=0,g=null;null!==u&&m<i.length;m++){u.index>m?(g=u,u=null):g=u.sibling;var x=h(r,u,i[m],l);if(null===x){null===u&&(u=g);break}e&&u&&null===x.alternate&&t(r,u),s=a(x,s,m),null===d?c=x:d.sibling=x,d=x,u=g}if(m===i.length)return n(r,u),ss&&Qr(r,m),c;if(null===u){for(;m<i.length;m++)null!==(u=p(r,i[m],l))&&(s=a(u,s,m),null===d?c=u:d.sibling=u,d=u);return ss&&Qr(r,m),c}for(u=o(r,u);m<i.length;m++)null!==(g=f(u,r,m,i[m],l))&&(e&&null!==g.alternate&&u.delete(null===g.key?m:g.key),s=a(g,s,m),null===d?c=g:d.sibling=g,d=g);return e&&u.forEach((function(e){return t(r,e)})),ss&&Qr(r,m),c}function g(r,i,l,c){var d=L(l);if("function"!==typeof d)throw Error(s(150));if(null==(l=d.call(l)))throw Error(s(151));for(var u=d=null,m=i,g=i=0,x=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(x=m,m=null):x=m.sibling;var v=h(r,m,b.value,c);if(null===v){null===m&&(m=x);break}e&&m&&null===v.alternate&&t(r,m),i=a(v,i,g),null===u?d=v:u.sibling=v,u=v,m=x}if(b.done)return n(r,m),ss&&Qr(r,g),d;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=p(r,b.value,c))&&(i=a(b,i,g),null===u?d=b:u.sibling=b,u=b);return ss&&Qr(r,g),d}for(m=o(r,m);!b.done;g++,b=l.next())null!==(b=f(m,r,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),i=a(b,i,g),null===u?d=b:u.sibling=b,u=b);return e&&m.forEach((function(e){return t(r,e)})),ss&&Qr(r,g),d}return function e(o,s,a,l){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,d=s;null!==d;){if(d.key===c){if((c=a.type)===S){if(7===d.tag){n(o,d.sibling),(s=r(d,a.props.children)).return=o,o=s;break e}}else if(d.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===R&&vs(c)===d.type){n(o,d.sibling),(s=r(d,a.props)).ref=xs(o,d,a),s.return=o,o=s;break e}n(o,d);break}t(o,d),d=d.sibling}a.type===S?((s=Lc(a.props.children,o.mode,l,a.key)).return=o,o=s):((l=Tc(a.type,a.key,a.props,null,o.mode,l)).ref=xs(o,s,a),l.return=o,o=l)}return i(o);case k:e:{for(d=a.key;null!==s;){if(s.key===d){if(4===s.tag&&s.stateNode.containerInfo===a.containerInfo&&s.stateNode.implementation===a.implementation){n(o,s.sibling),(s=r(s,a.children||[])).return=o,o=s;break e}n(o,s);break}t(o,s),s=s.sibling}(s=zc(a,o.mode,l)).return=o,o=s}return i(o);case R:return e(o,s,(d=a._init)(a._payload),l)}if(te(a))return m(o,s,a,l);if(L(a))return g(o,s,a,l);bs(o,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==s&&6===s.tag?(n(o,s.sibling),(s=r(s,a)).return=o,o=s):(n(o,s),(s=Dc(a,o.mode,l)).return=o,o=s),i(o)):n(o,s)}}var ws=ys(!0),ks=ys(!1),Ss=Cr(null),js=null,Cs=null,As=null;function Ns(){As=Cs=js=null}function Es(e){var t=Ss.current;Ar(Ss),e._currentValue=t}function _s(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ps(e,t){js=e,As=Cs=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(vi=!0),e.firstContext=null)}function Ms(e){var t=e._currentValue;if(As!==e)if(e={context:e,memoizedValue:t,next:null},null===Cs){if(null===js)throw Error(s(308));Cs=e,js.dependencies={lanes:0,firstContext:e}}else Cs=Cs.next=e;return t}var Rs=null;function Os(e){null===Rs?Rs=[e]:Rs.push(e)}function Ts(e,t,n,o){var r=t.interleaved;return null===r?(n.next=n,Os(t)):(n.next=r.next,r.next=n),t.interleaved=n,Ls(e,o)}function Ls(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Is=!1;function Ds(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bs(e,t,n){var o=e.updateQueue;if(null===o)return null;if(o=o.shared,0!==(2&El)){var r=o.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Ls(e,n)}return null===(r=o.interleaved)?(t.next=t,Os(o)):(t.next=r.next,r.next=t),o.interleaved=t,Ls(e,n)}function Ws(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Us(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var r=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===s?r=s=a:s=s.next=a,n=n.next}while(null!==n);null===s?r=s=t:s=s.next=t}else r=s=t;return n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hs(e,t,n,o){var r=e.updateQueue;Is=!1;var s=r.firstBaseUpdate,a=r.lastBaseUpdate,i=r.shared.pending;if(null!==i){r.shared.pending=null;var l=i,c=l.next;l.next=null,null===a?s=c:a.next=c,a=l;var d=e.alternate;null!==d&&((i=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===i?d.firstBaseUpdate=c:i.next=c,d.lastBaseUpdate=l))}if(null!==s){var u=r.baseState;for(a=0,d=c=l=null,i=s;;){var p=i.lane,h=i.eventTime;if((o&p)===p){null!==d&&(d=d.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var f=e,m=i;switch(p=t,h=n,m.tag){case 1:if("function"===typeof(f=m.payload)){u=f.call(h,u,p);break e}u=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(p="function"===typeof(f=m.payload)?f.call(h,u,p):f)||void 0===p)break e;u=D({},u,p);break e;case 2:Is=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(p=r.effects)?r.effects=[i]:p.push(i))}else h={eventTime:h,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===d?(c=d=h,l=u):d=d.next=h,a|=p;if(null===(i=i.next)){if(null===(i=r.shared.pending))break;i=(p=i).next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}if(null===d&&(l=u),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=d,null!==(t=r.shared.interleaved)){r=t;do{a|=r.lane,r=r.next}while(r!==t)}else null===s&&(r.shared.lanes=0);Il|=a,e.lanes=a,e.memoizedState=u}}function Vs(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=n,"function"!==typeof r)throw Error(s(191,r));r.call(o)}}}var Ks={},qs=Cr(Ks),$s=Cr(Ks),Js=Cr(Ks);function Ys(e){if(e===Ks)throw Error(s(174));return e}function Gs(e,t){switch(Nr(Js,t),Nr($s,e),Nr(qs,Ks),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ar(qs),Nr(qs,t)}function Xs(){Ar(qs),Ar($s),Ar(Js)}function Zs(e){Ys(Js.current);var t=Ys(qs.current),n=le(t,e.type);t!==n&&(Nr($s,e),Nr(qs,n))}function Qs(e){$s.current===e&&(Ar(qs),Ar($s))}var ea=Cr(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function oa(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ra=y.ReactCurrentDispatcher,sa=y.ReactCurrentBatchConfig,aa=0,ia=null,la=null,ca=null,da=!1,ua=!1,pa=0,ha=0;function fa(){throw Error(s(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!io(e[n],t[n]))return!1;return!0}function ga(e,t,n,o,r,a){if(aa=a,ia=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ra.current=null===e||null===e.memoizedState?Qa:ei,e=n(o,r),ua){a=0;do{if(ua=!1,pa=0,25<=a)throw Error(s(301));a+=1,ca=la=null,t.updateQueue=null,ra.current=ti,e=n(o,r)}while(ua)}if(ra.current=Za,t=null!==la&&null!==la.next,aa=0,ca=la=ia=null,da=!1,t)throw Error(s(300));return e}function xa(){var e=0!==pa;return pa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?ia.memoizedState=ca=e:ca=ca.next=e,ca}function va(){if(null===la){var e=ia.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?ia.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(s(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?ia.memoizedState=ca=e:ca=ca.next=e}return ca}function ya(e,t){return"function"===typeof t?t(e):t}function wa(e){var t=va(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var o=la,r=o.baseQueue,a=n.pending;if(null!==a){if(null!==r){var i=r.next;r.next=a.next,a.next=i}o.baseQueue=r=a,n.pending=null}if(null!==r){a=r.next,o=o.baseState;var l=i=null,c=null,d=a;do{var u=d.lane;if((aa&u)===u)null!==c&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),o=d.hasEagerState?d.eagerState:e(o,d.action);else{var p={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};null===c?(l=c=p,i=o):c=c.next=p,ia.lanes|=u,Il|=u}d=d.next}while(null!==d&&d!==a);null===c?i=o:c.next=l,io(o,t.memoizedState)||(vi=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=c,n.lastRenderedState=o}if(null!==(e=n.interleaved)){r=e;do{a=r.lane,ia.lanes|=a,Il|=a,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ka(e){var t=va(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,a=t.memoizedState;if(null!==r){n.pending=null;var i=r=r.next;do{a=e(a,i.action),i=i.next}while(i!==r);io(a,t.memoizedState)||(vi=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function Sa(){}function ja(e,t){var n=ia,o=va(),r=t(),a=!io(o.memoizedState,r);if(a&&(o.memoizedState=r,vi=!0),o=o.queue,Ia(Na.bind(null,n,o,e),[e]),o.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ma(9,Aa.bind(null,n,o,r,t),void 0,null),null===_l)throw Error(s(349));0!==(30&aa)||Ca(n,t,r)}return r}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,o){t.value=n,t.getSnapshot=o,Ea(t)&&_a(e)}function Na(e,t,n){return n((function(){Ea(t)&&_a(e)}))}function Ea(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!io(e,n)}catch(o){return!0}}function _a(e){var t=Ls(e,1);null!==t&&nc(t,e,1,-1)}function Pa(e){var t=ba();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},t.queue=e,e=e.dispatch=Ja.bind(null,ia,e),[t.memoizedState,e]}function Ma(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function Ra(){return va().memoizedState}function Oa(e,t,n,o){var r=ba();ia.flags|=e,r.memoizedState=Ma(1|t,n,void 0,void 0===o?null:o)}function Ta(e,t,n,o){var r=va();o=void 0===o?null:o;var s=void 0;if(null!==la){var a=la.memoizedState;if(s=a.destroy,null!==o&&ma(o,a.deps))return void(r.memoizedState=Ma(t,n,s,o))}ia.flags|=e,r.memoizedState=Ma(1|t,n,s,o)}function La(e,t){return Oa(8390656,8,e,t)}function Ia(e,t){return Ta(2048,8,e,t)}function Da(e,t){return Ta(4,2,e,t)}function za(e,t){return Ta(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ta(4,4,Fa.bind(null,t,e),n)}function Wa(){}function Ua(e,t){var n=va();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ma(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=va();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ma(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Va(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,vi=!0),e.memoizedState=n):(io(n,t)||(n=mt(),ia.lanes|=n,Il|=n,e.baseState=!0),t)}function Ka(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var o=sa.transition;sa.transition={};try{e(!1),t()}finally{vt=n,sa.transition=o}}function qa(){return va().memoizedState}function $a(e,t,n){var o=tc(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Ga(t,n);else if(null!==(n=Ts(e,t,n,o))){nc(n,e,o,ec()),Xa(n,t,o)}}function Ja(e,t,n){var o=tc(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Ga(t,r);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,i=s(a,n);if(r.hasEagerState=!0,r.eagerState=i,io(i,a)){var l=t.interleaved;return null===l?(r.next=r,Os(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(c){}null!==(n=Ts(e,t,r,o))&&(nc(n,e,o,r=ec()),Xa(n,t,o))}}function Ya(e){var t=e.alternate;return e===ia||null!==t&&t===ia}function Ga(e,t){ua=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(0!==(4194240&n)){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Za={readContext:Ms,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},Qa={readContext:Ms,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ms,useEffect:La,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Oa(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ba();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=$a.bind(null,ia,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Pa,useDebugValue:Wa,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Ka.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=ia,r=ba();if(ss){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===_l)throw Error(s(349));0!==(30&aa)||Ca(o,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,La(Na.bind(null,o,a,e),[e]),o.flags|=2048,Ma(9,Aa.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=_l.identifierPrefix;if(ss){var n=Zr;t=":"+t+"R"+(n=(Xr&~(1<<32-at(Xr)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ei={readContext:Ms,useCallback:Ua,useContext:Ms,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:za,useMemo:Ha,useReducer:wa,useRef:Ra,useState:function(){return wa(ya)},useDebugValue:Wa,useDeferredValue:function(e){return Va(va(),la.memoizedState,e)},useTransition:function(){return[wa(ya)[0],va().memoizedState]},useMutableSource:Sa,useSyncExternalStore:ja,useId:qa,unstable_isNewReconciler:!1},ti={readContext:Ms,useCallback:Ua,useContext:Ms,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:za,useMemo:Ha,useReducer:ka,useRef:Ra,useState:function(){return ka(ya)},useDebugValue:Wa,useDeferredValue:function(e){var t=va();return null===la?t.memoizedState=e:Va(t,la.memoizedState,e)},useTransition:function(){return[ka(ya)[0],va().memoizedState]},useMutableSource:Sa,useSyncExternalStore:ja,useId:qa,unstable_isNewReconciler:!1};function ni(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function oi(e,t,n,o){n=null===(n=n(o,t=e.memoizedState))||void 0===n?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ri={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=ec(),r=tc(e),s=Fs(o,r);s.payload=t,void 0!==n&&null!==n&&(s.callback=n),null!==(t=Bs(e,s,r))&&(nc(t,e,r,o),Ws(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=ec(),r=tc(e),s=Fs(o,r);s.tag=1,s.payload=t,void 0!==n&&null!==n&&(s.callback=n),null!==(t=Bs(e,s,r))&&(nc(t,e,r,o),Ws(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),o=tc(e),r=Fs(n,o);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Bs(e,r,o))&&(nc(t,e,o,n),Ws(t,e,o))}};function si(e,t,n,o,r,s,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,s,a):!t.prototype||!t.prototype.isPureReactComponent||(!lo(n,o)||!lo(r,s))}function ai(e,t,n){var o=!1,r=Er,s=t.contextType;return"object"===typeof s&&null!==s?s=Ms(s):(r=Or(t)?Mr:_r.current,s=(o=null!==(o=t.contextTypes)&&void 0!==o)?Rr(e,r):Er),t=new t(n,s),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ri,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=s),t}function ii(e,t,n,o){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&ri.enqueueReplaceState(t,t.state,null)}function li(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},Ds(e);var s=t.contextType;"object"===typeof s&&null!==s?r.context=Ms(s):(s=Or(t)?Mr:_r.current,r.context=Rr(e,s)),r.state=e.memoizedState,"function"===typeof(s=t.getDerivedStateFromProps)&&(oi(e,t,s,n),r.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(t=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&ri.enqueueReplaceState(r,r.state,null),Hs(e,n,r,o),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function ci(e,t){try{var n="",o=t;do{n+=W(o),o=o.return}while(o);var r=n}catch(s){r="\nError generating stack: "+s.message+"\n"+s.stack}return{value:e,source:t,stack:r,digest:null}}function di(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ui(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pi="function"===typeof WeakMap?WeakMap:Map;function hi(e,t,n){(n=Fs(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Vl||(Vl=!0,Kl=o),ui(0,t)},n}function fi(e,t,n){(n=Fs(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"===typeof o){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){ui(0,t)}}var s=e.stateNode;return null!==s&&"function"===typeof s.componentDidCatch&&(n.callback=function(){ui(0,t),"function"!==typeof o&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mi(e,t,n){var o=e.pingCache;if(null===o){o=e.pingCache=new pi;var r=new Set;o.set(t,r)}else void 0===(r=o.get(t))&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function gi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function xi(e,t,n,o,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fs(-1,1)).tag=2,Bs(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var bi=y.ReactCurrentOwner,vi=!1;function yi(e,t,n,o){t.child=null===e?ks(t,null,n,o):ws(t,e.child,n,o)}function wi(e,t,n,o,r){n=n.render;var s=t.ref;return Ps(t,r),o=ga(e,t,n,o,s,r),n=xa(),null===e||vi?(ss&&n&&ts(t),t.flags|=1,yi(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Vi(e,t,r))}function ki(e,t,n,o,r){if(null===e){var s=n.type;return"function"!==typeof s||Rc(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tc(n.type,null,o,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Si(e,t,s,o,r))}if(s=e.child,0===(e.lanes&r)){var a=s.memoizedProps;if((n=null!==(n=n.compare)?n:lo)(a,o)&&e.ref===t.ref)return Vi(e,t,r)}return t.flags|=1,(e=Oc(s,o)).ref=t.ref,e.return=t,t.child=e}function Si(e,t,n,o,r){if(null!==e){var s=e.memoizedProps;if(lo(s,o)&&e.ref===t.ref){if(vi=!1,t.pendingProps=o=s,0===(e.lanes&r))return t.lanes=e.lanes,Vi(e,t,r);0!==(131072&e.flags)&&(vi=!0)}}return Ai(e,t,n,o,r)}function ji(e,t,n){var o=t.pendingProps,r=o.children,s=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Nr(Ol,Rl),Rl|=n;else{if(0===(1073741824&n))return e=null!==s?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Nr(Ol,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==s?s.baseLanes:n,Nr(Ol,Rl),Rl|=o}else null!==s?(o=s.baseLanes|n,t.memoizedState=null):o=n,Nr(Ol,Rl),Rl|=o;return yi(e,t,r,n),t.child}function Ci(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ai(e,t,n,o,r){var s=Or(n)?Mr:_r.current;return s=Rr(t,s),Ps(t,r),n=ga(e,t,n,o,s,r),o=xa(),null===e||vi?(ss&&o&&ts(t),t.flags|=1,yi(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Vi(e,t,r))}function Ni(e,t,n,o,r){if(Or(n)){var s=!0;Dr(t)}else s=!1;if(Ps(t,r),null===t.stateNode)Hi(e,t),ai(t,n,o),li(t,n,o,r),o=!0;else if(null===e){var a=t.stateNode,i=t.memoizedProps;a.props=i;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ms(c):c=Rr(t,c=Or(n)?Mr:_r.current);var d=n.getDerivedStateFromProps,u="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate;u||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(i!==o||l!==c)&&ii(t,a,o,c),Is=!1;var p=t.memoizedState;a.state=p,Hs(t,o,a,r),l=t.memoizedState,i!==o||p!==l||Pr.current||Is?("function"===typeof d&&(oi(t,n,d,o),l=t.memoizedState),(i=Is||si(t,n,i,o,p,l,c))?(u||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),a.props=o,a.state=l,a.context=c,o=i):("function"===typeof a.componentDidMount&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,zs(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:ni(t.type,i),a.props=c,u=t.pendingProps,p=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ms(l):l=Rr(t,l=Or(n)?Mr:_r.current);var h=n.getDerivedStateFromProps;(d="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(i!==u||p!==l)&&ii(t,a,o,l),Is=!1,p=t.memoizedState,a.state=p,Hs(t,o,a,r);var f=t.memoizedState;i!==u||p!==f||Pr.current||Is?("function"===typeof h&&(oi(t,n,h,o),f=t.memoizedState),(c=Is||si(t,n,c,o,p,f,l)||!1)?(d||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(o,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),a.props=o,a.state=f,a.context=l,o=c):("function"!==typeof a.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}return Ei(e,t,n,o,s,r)}function Ei(e,t,n,o,r,s){Ci(e,t);var a=0!==(128&t.flags);if(!o&&!a)return r&&zr(t,n,!1),Vi(e,t,s);o=t.stateNode,bi.current=t;var i=a&&"function"!==typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&a?(t.child=ws(t,e.child,null,s),t.child=ws(t,null,i,s)):yi(e,t,i,s),t.memoizedState=o.state,r&&zr(t,n,!0),t.child}function _i(e){var t=e.stateNode;t.pendingContext?Lr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lr(0,t.context,!1),Gs(e,t.containerInfo)}function Pi(e,t,n,o,r){return fs(),ms(r),t.flags|=256,yi(e,t,n,o),t.child}var Mi,Ri,Oi,Ti,Li={dehydrated:null,treeContext:null,retryLane:0};function Ii(e){return{baseLanes:e,cachePool:null,transitions:null}}function Di(e,t,n){var o,r=t.pendingProps,a=ea.current,i=!1,l=0!==(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&0!==(2&a)),o?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Nr(ea,1&a),null===e)return ds(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},0===(1&r)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Ic(l,r,0,null),e=Lc(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ii(n),t.memoizedState=Li,e):zi(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,n,o,r,a,i){if(n)return 256&t.flags?(t.flags&=-257,Fi(e,t,i,o=di(Error(s(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,r=t.mode,o=Ic({mode:"visible",children:o.children},r,0,null),(a=Lc(a,r,i,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,0!==(1&t.mode)&&ws(t,e.child,null,i),t.child.memoizedState=Ii(i),t.memoizedState=Li,a);if(0===(1&t.mode))return Fi(e,t,i,null);if("$!"===r.data){if(o=r.nextSibling&&r.nextSibling.dataset)var l=o.dgst;return o=l,Fi(e,t,i,o=di(a=Error(s(419)),o,void 0))}if(l=0!==(i&e.childLanes),vi||l){if(null!==(o=_l)){switch(i&-i){case 4:r=2;break;case 16:r=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(o.suspendedLanes|i))?0:r)&&r!==a.retryLane&&(a.retryLane=r,Ls(e,r),nc(o,e,r,-1))}return mc(),Fi(e,t,i,o=di(Error(s(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Nc.bind(null,e),r._reactRetry=t,null):(e=a.treeContext,rs=dr(r.nextSibling),os=t,ss=!0,as=null,null!==e&&(Jr[Yr++]=Xr,Jr[Yr++]=Zr,Jr[Yr++]=Gr,Xr=e.id,Zr=e.overflow,Gr=t),t=zi(t,o.children),t.flags|=4096,t)}(e,t,l,r,o,a,n);if(i){i=r.fallback,l=t.mode,o=(a=e.child).sibling;var c={mode:"hidden",children:r.children};return 0===(1&l)&&t.child!==a?((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null):(r=Oc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==o?i=Oc(o,i):(i=Lc(i,l,n,null)).flags|=2,i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=null===(l=e.child.memoizedState)?Ii(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Li,r}return e=(i=e.child).sibling,r=Oc(i,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function zi(e,t){return(t=Ic({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fi(e,t,n,o){return null!==o&&ms(o),ws(t,e.child,null,n),(e=zi(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bi(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),_s(e.return,t,n)}function Wi(e,t,n,o,r){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=n,s.tailMode=r)}function Ui(e,t,n){var o=t.pendingProps,r=o.revealOrder,s=o.tail;if(yi(e,t,o.children,n),0!==(2&(o=ea.current)))o=1&o|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bi(e,n,t);else if(19===e.tag)Bi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Nr(ea,o),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Wi(t,!1,r,n,s);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===ta(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Wi(t,!0,n,null,s);break;case"together":Wi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vi(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Oc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ki(e,t){if(!ss)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function qi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=14680064&r.subtreeFlags,o|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function $i(e,t,n){var o=t.pendingProps;switch(ns(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qi(t),null;case 1:case 17:return Or(t.type)&&Tr(),qi(t),null;case 3:return o=t.stateNode,Xs(),Ar(Pr),Ar(_r),oa(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(ps(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==as&&(ac(as),as=null))),Ri(e,t),qi(t),null;case 5:Qs(t);var r=Ys(Js.current);if(n=t.type,null!==e&&null!=t.stateNode)Oi(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(s(166));return qi(t),null}if(e=Ys(qs.current),ps(t)){o=t.stateNode,n=t.type;var a=t.memoizedProps;switch(o[hr]=t,o[fr]=a,e=0!==(1&t.mode),n){case"dialog":Bo("cancel",o),Bo("close",o);break;case"iframe":case"object":case"embed":Bo("load",o);break;case"video":case"audio":for(r=0;r<Io.length;r++)Bo(Io[r],o);break;case"source":Bo("error",o);break;case"img":case"image":case"link":Bo("error",o),Bo("load",o);break;case"details":Bo("toggle",o);break;case"input":G(o,a),Bo("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!a.multiple},Bo("invalid",o);break;case"textarea":re(o,a),Bo("invalid",o)}for(var l in be(n,a),r=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?o.textContent!==c&&(!0!==a.suppressHydrationWarning&&Qo(o.textContent,c,e),r=["children",c]):"number"===typeof c&&o.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Qo(o.textContent,c,e),r=["children",""+c]):i.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Bo("scroll",o)}switch(n){case"input":q(o),Q(o,a,!0);break;case"textarea":q(o),ae(o);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(o.onclick=er)}o=r,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof o.is?e=l.createElement(n,{is:o.is}):(e=l.createElement(n),"select"===n&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,n),e[hr]=t,e[fr]=o,Mi(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,o),n){case"dialog":Bo("cancel",e),Bo("close",e),r=o;break;case"iframe":case"object":case"embed":Bo("load",e),r=o;break;case"video":case"audio":for(r=0;r<Io.length;r++)Bo(Io[r],e);r=o;break;case"source":Bo("error",e),r=o;break;case"img":case"image":case"link":Bo("error",e),Bo("load",e),r=o;break;case"details":Bo("toggle",e),r=o;break;case"input":G(e,o),r=Y(e,o),Bo("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=D({},o,{value:void 0}),Bo("invalid",e);break;case"textarea":re(e,o),r=oe(e,o),Bo("invalid",e)}for(a in be(n,r),c=r)if(c.hasOwnProperty(a)){var d=c[a];"style"===a?ge(e,d):"dangerouslySetInnerHTML"===a?null!=(d=d?d.__html:void 0)&&ue(e,d):"children"===a?"string"===typeof d?("textarea"!==n||""!==d)&&pe(e,d):"number"===typeof d&&pe(e,""+d):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(i.hasOwnProperty(a)?null!=d&&"onScroll"===a&&Bo("scroll",e):null!=d&&v(e,a,d,l))}switch(n){case"input":q(e),Q(e,o,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=o.value&&e.setAttribute("value",""+V(o.value));break;case"select":e.multiple=!!o.multiple,null!=(a=o.value)?ne(e,!!o.multiple,a,!1):null!=o.defaultValue&&ne(e,!!o.multiple,o.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=er)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qi(t),null;case 6:if(e&&null!=t.stateNode)Ti(e,t,e.memoizedProps,o);else{if("string"!==typeof o&&null===t.stateNode)throw Error(s(166));if(n=Ys(Js.current),Ys(qs.current),ps(t)){if(o=t.stateNode,n=t.memoizedProps,o[hr]=t,(a=o.nodeValue!==n)&&null!==(e=os))switch(e.tag){case 3:Qo(o.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qo(o.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[hr]=t,t.stateNode=o}return qi(t),null;case 13:if(Ar(ea),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ss&&null!==rs&&0!==(1&t.mode)&&0===(128&t.flags))hs(),fs(),t.flags|=98560,a=!1;else if(a=ps(t),null!==o&&null!==o.dehydrated){if(null===e){if(!a)throw Error(s(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(s(317));a[hr]=t}else fs(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qi(t),a=!1}else null!==as&&(ac(as),as=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Tl&&(Tl=3):mc())),null!==t.updateQueue&&(t.flags|=4),qi(t),null);case 4:return Xs(),Ri(e,t),null===e&&Ho(t.stateNode.containerInfo),qi(t),null;case 10:return Es(t.type._context),qi(t),null;case 19:if(Ar(ea),null===(a=t.memoizedState))return qi(t),null;if(o=0!==(128&t.flags),null===(l=a.rendering))if(o)Ki(a,!1);else{if(0!==Tl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ki(a,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Nr(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Ul&&(t.flags|=128,o=!0,Ki(a,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=ta(l))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ki(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ss)return qi(t),null}else 2*Xe()-a.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,o=!0,Ki(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,Nr(ea,o?1&n|2:1&n),t):(qi(t),null);case 22:case 23:return uc(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!==(1&t.mode)?0!==(1073741824&Rl)&&(qi(t),6&t.subtreeFlags&&(t.flags|=8192)):qi(t),null;case 24:case 25:return null}throw Error(s(156,t.tag))}function Ji(e,t){switch(ns(t),t.tag){case 1:return Or(t.type)&&Tr(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xs(),Ar(Pr),Ar(_r),oa(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Qs(t),null;case 13:if(Ar(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));fs()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ar(ea),null;case 4:return Xs(),null;case 10:return Es(t.type._context),null;case 22:case 23:return uc(),null;default:return null}}Mi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ri=function(){},Oi=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,Ys(qs.current);var s,a=null;switch(n){case"input":r=Y(e,r),o=Y(e,o),a=[];break;case"select":r=D({},r,{value:void 0}),o=D({},o,{value:void 0}),a=[];break;case"textarea":r=oe(e,r),o=oe(e,o),a=[];break;default:"function"!==typeof r.onClick&&"function"===typeof o.onClick&&(e.onclick=er)}for(d in be(n,o),n=null,r)if(!o.hasOwnProperty(d)&&r.hasOwnProperty(d)&&null!=r[d])if("style"===d){var l=r[d];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(i.hasOwnProperty(d)?a||(a=[]):(a=a||[]).push(d,null));for(d in o){var c=o[d];if(l=null!=r?r[d]:void 0,o.hasOwnProperty(d)&&c!==l&&(null!=c||null!=l))if("style"===d)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(a||(a=[]),a.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(d,c)):"children"===d?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(i.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Bo("scroll",e),a||l===c||(a=[])):(a=a||[]).push(d,c))}n&&(a=a||[]).push("style",n);var d=a;(t.updateQueue=d)&&(t.flags|=4)}},Ti=function(e,t,n,o){n!==o&&(t.flags|=4)};var Yi=!1,Gi=!1,Xi="function"===typeof WeakSet?WeakSet:Set,Zi=null;function Qi(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(o){jc(e,t,o)}else n.current=null}function el(e,t,n){try{n()}catch(o){jc(e,t,o)}}var tl=!1;function nl(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var r=o=o.next;do{if((r.tag&e)===e){var s=r.destroy;r.destroy=void 0,void 0!==s&&el(t,n,s)}r=r.next}while(r!==o)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hr],delete t[fr],delete t[gr],delete t[xr],delete t[br])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function il(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=er));else if(4!==o&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,ul=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(st&&"function"===typeof st.onCommitFiberUnmount)try{st.onCommitFiberUnmount(rt,n)}catch(i){}switch(n.tag){case 5:Gi||Qi(n,t);case 6:var o=dl,r=ul;dl=null,pl(e,t,n),ul=r,null!==(dl=o)&&(ul?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(ul?(e=dl,n=n.stateNode,8===e.nodeType?cr(e.parentNode,n):1===e.nodeType&&cr(e,n),Ut(e)):cr(dl,n.stateNode));break;case 4:o=dl,r=ul,dl=n.stateNode.containerInfo,ul=!0,pl(e,t,n),dl=o,ul=r;break;case 0:case 11:case 14:case 15:if(!Gi&&(null!==(o=n.updateQueue)&&null!==(o=o.lastEffect))){r=o=o.next;do{var s=r,a=s.destroy;s=s.tag,void 0!==a&&(0!==(2&s)||0!==(4&s))&&el(n,t,a),r=r.next}while(r!==o)}pl(e,t,n);break;case 1:if(!Gi&&(Qi(n,t),"function"===typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(i){jc(n,t,i)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Gi=(o=Gi)||null!==n.memoizedState,pl(e,t,n),Gi=o):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xi),t.forEach((function(t){var o=Ec.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var r=n[o];try{var a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,ul=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,ul=!0;break e}l=l.return}if(null===dl)throw Error(s(160));hl(a,i,r),dl=null,ul=!1;var c=r.alternate;null!==c&&(c.return=null),r.return=null}catch(d){jc(r,t,d)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),xl(e),4&o){try{nl(3,e,e.return),ol(3,e)}catch(g){jc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){jc(e,e.return,g)}}break;case 1:ml(t,e),xl(e),512&o&&null!==n&&Qi(n,n.return);break;case 5:if(ml(t,e),xl(e),512&o&&null!==n&&Qi(n,n.return),32&e.flags){var r=e.stateNode;try{pe(r,"")}catch(g){jc(e,e.return,g)}}if(4&o&&null!=(r=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(r,a),ve(l,i);var d=ve(l,a);for(i=0;i<c.length;i+=2){var u=c[i],p=c[i+1];"style"===u?ge(r,p):"dangerouslySetInnerHTML"===u?ue(r,p):"children"===u?pe(r,p):v(r,u,p,d)}switch(l){case"input":Z(r,a);break;case"textarea":se(r,a);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?ne(r,!!a.multiple,f,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(r,!!a.multiple,a.defaultValue,!0):ne(r,!!a.multiple,a.multiple?[]:"",!1))}r[fr]=a}catch(g){jc(e,e.return,g)}}break;case 6:if(ml(t,e),xl(e),4&o){if(null===e.stateNode)throw Error(s(162));r=e.stateNode,a=e.memoizedProps;try{r.nodeValue=a}catch(g){jc(e,e.return,g)}}break;case 3:if(ml(t,e),xl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(g){jc(e,e.return,g)}break;case 4:default:ml(t,e),xl(e);break;case 13:ml(t,e),xl(e),8192&(r=e.child).flags&&(a=null!==r.memoizedState,r.stateNode.isHidden=a,!a||null!==r.alternate&&null!==r.alternate.memoizedState||(Wl=Xe())),4&o&&fl(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Gi=(d=Gi)||u,ml(t,e),Gi=d):ml(t,e),xl(e),8192&o){if(d=null!==e.memoizedState,(e.stateNode.isHidden=d)&&!u&&0!==(1&e.mode))for(Zi=e,u=e.child;null!==u;){for(p=Zi=u;null!==Zi;){switch(f=(h=Zi).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Qi(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){o=h,n=h.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){jc(o,n,g)}}break;case 5:Qi(h,h.return);break;case 22:if(null!==h.memoizedState){wl(p);continue}}null!==f?(f.return=h,Zi=f):wl(p)}u=u.sibling}e:for(u=null,p=e;;){if(5===p.tag){if(null===u){u=p;try{r=p.stateNode,d?"function"===typeof(a=r.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,i=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",i))}catch(g){jc(e,e.return,g)}}}else if(6===p.tag){if(null===u)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(g){jc(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),xl(e),4&o&&fl(e);case 21:}}function xl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var o=n;break e}n=n.return}throw Error(s(160))}switch(o.tag){case 5:var r=o.stateNode;32&o.flags&&(pe(r,""),o.flags&=-33),cl(e,il(e),r);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,il(e),a);break;default:throw Error(s(161))}}catch(i){jc(e,e.return,i)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zi=e,vl(e,t,n)}function vl(e,t,n){for(var o=0!==(1&e.mode);null!==Zi;){var r=Zi,s=r.child;if(22===r.tag&&o){var a=null!==r.memoizedState||Yi;if(!a){var i=r.alternate,l=null!==i&&null!==i.memoizedState||Gi;i=Yi;var c=Gi;if(Yi=a,(Gi=l)&&!c)for(Zi=r;null!==Zi;)l=(a=Zi).child,22===a.tag&&null!==a.memoizedState?kl(r):null!==l?(l.return=a,Zi=l):kl(r);for(;null!==s;)Zi=s,vl(s,t,n),s=s.sibling;Zi=r,Yi=i,Gi=c}yl(e)}else 0!==(8772&r.subtreeFlags)&&null!==s?(s.return=r,Zi=s):yl(e)}}function yl(e){for(;null!==Zi;){var t=Zi;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Gi||ol(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Gi)if(null===n)o.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:ni(t.type,n.memoizedProps);o.componentDidUpdate(r,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Vs(t,a,o);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Vs(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var d=t.alternate;if(null!==d){var u=d.memoizedState;if(null!==u){var p=u.dehydrated;null!==p&&Ut(p)}}}break;default:throw Error(s(163))}Gi||512&t.flags&&rl(t)}catch(h){jc(t,t.return,h)}}if(t===e){Zi=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zi=n;break}Zi=t.return}}function wl(e){for(;null!==Zi;){var t=Zi;if(t===e){Zi=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zi=n;break}Zi=t.return}}function kl(e){for(;null!==Zi;){var t=Zi;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(l){jc(t,n,l)}break;case 1:var o=t.stateNode;if("function"===typeof o.componentDidMount){var r=t.return;try{o.componentDidMount()}catch(l){jc(t,r,l)}}var s=t.return;try{rl(t)}catch(l){jc(t,s,l)}break;case 5:var a=t.return;try{rl(t)}catch(l){jc(t,a,l)}}}catch(l){jc(t,t.return,l)}if(t===e){Zi=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Zi=i;break}Zi=t.return}}var Sl,jl=Math.ceil,Cl=y.ReactCurrentDispatcher,Al=y.ReactCurrentOwner,Nl=y.ReactCurrentBatchConfig,El=0,_l=null,Pl=null,Ml=0,Rl=0,Ol=Cr(0),Tl=0,Ll=null,Il=0,Dl=0,zl=0,Fl=null,Bl=null,Wl=0,Ul=1/0,Hl=null,Vl=!1,Kl=null,ql=null,$l=!1,Jl=null,Yl=0,Gl=0,Xl=null,Zl=-1,Ql=0;function ec(){return 0!==(6&El)?Xe():-1!==Zl?Zl:Zl=Xe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&El)&&0!==Ml?Ml&-Ml:null!==gs.transition?(0===Ql&&(Ql=mt()),Ql):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function nc(e,t,n,o){if(50<Gl)throw Gl=0,Xl=null,Error(s(185));xt(e,n,o),0!==(2&El)&&e===_l||(e===_l&&(0===(2&El)&&(Dl|=n),4===Tl&&ic(e,Ml)),oc(e,o),1===n&&0===El&&0===(1&t.mode)&&(Ul=Xe()+500,Br&&Hr()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes;0<s;){var a=31-at(s),i=1<<a,l=r[a];-1===l?0!==(i&n)&&0===(i&o)||(r[a]=ht(i,t)):l<=t&&(e.expiredLanes|=i),s&=~i}}(e,t);var o=pt(e,e===_l?Ml:0);if(0===o)null!==n&&Je(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(null!=n&&Je(n),1===t)0===e.tag?function(e){Br=!0,Ur(e)}(lc.bind(null,e)):Ur(lc.bind(null,e)),ir((function(){0===(6&El)&&Hr()})),n=null;else{switch(yt(o)){case 1:n=Qe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=ot}n=_c(n,rc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rc(e,t){if(Zl=-1,Ql=0,0!==(6&El))throw Error(s(327));var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var o=pt(e,e===_l?Ml:0);if(0===o)return null;if(0!==(30&o)||0!==(o&e.expiredLanes)||t)t=gc(e,o);else{t=o;var r=El;El|=2;var a=fc();for(_l===e&&Ml===t||(Hl=null,Ul=Xe()+500,pc(e,t));;)try{bc();break}catch(l){hc(e,l)}Ns(),Cl.current=a,El=r,null!==Pl?t=0:(_l=null,Ml=0,t=Tl)}if(0!==t){if(2===t&&(0!==(r=ft(e))&&(o=r,t=sc(e,r))),1===t)throw n=Ll,pc(e,0),ic(e,o),oc(e,Xe()),n;if(6===t)ic(e,o);else{if(r=e.current.alternate,0===(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var r=n[o],s=r.getSnapshot;r=r.value;try{if(!io(s(),r))return!1}catch(i){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=gc(e,o))&&(0!==(a=ft(e))&&(o=a,t=sc(e,a))),1===t))throw n=Ll,pc(e,0),ic(e,o),oc(e,Xe()),n;switch(e.finishedWork=r,e.finishedLanes=o,t){case 0:case 1:throw Error(s(345));case 2:case 5:wc(e,Bl,Hl);break;case 3:if(ic(e,o),(130023424&o)===o&&10<(t=Wl+500-Xe())){if(0!==pt(e,0))break;if(((r=e.suspendedLanes)&o)!==o){ec(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=rr(wc.bind(null,e,Bl,Hl),t);break}wc(e,Bl,Hl);break;case 4:if(ic(e,o),(4194240&o)===o)break;for(t=e.eventTimes,r=-1;0<o;){var i=31-at(o);a=1<<i,(i=t[i])>r&&(r=i),o&=~a}if(o=r,10<(o=(120>(o=Xe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*jl(o/1960))-o)){e.timeoutHandle=rr(wc.bind(null,e,Bl,Hl),o);break}wc(e,Bl,Hl);break;default:throw Error(s(329))}}}return oc(e,Xe()),e.callbackNode===n?rc.bind(null,e):null}function sc(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function ic(e,t){for(t&=~zl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),o=1<<n;e[n]=-1,t&=~o}}function lc(e){if(0!==(6&El))throw Error(s(327));kc();var t=pt(e,0);if(0===(1&t))return oc(e,Xe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var o=ft(e);0!==o&&(t=o,n=sc(e,o))}if(1===n)throw n=Ll,pc(e,0),ic(e,t),oc(e,Xe()),n;if(6===n)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Bl,Hl),oc(e,Xe()),null}function cc(e,t){var n=El;El|=1;try{return e(t)}finally{0===(El=n)&&(Ul=Xe()+500,Br&&Hr())}}function dc(e){null!==Jl&&0===Jl.tag&&0===(6&El)&&kc();var t=El;El|=1;var n=Nl.transition,o=vt;try{if(Nl.transition=null,vt=1,e)return e()}finally{vt=o,Nl.transition=n,0===(6&(El=t))&&Hr()}}function uc(){Rl=Ol.current,Ar(Ol)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,sr(n)),null!==Pl)for(n=Pl.return;null!==n;){var o=n;switch(ns(o),o.tag){case 1:null!==(o=o.type.childContextTypes)&&void 0!==o&&Tr();break;case 3:Xs(),Ar(Pr),Ar(_r),oa();break;case 5:Qs(o);break;case 4:Xs();break;case 13:case 19:Ar(ea);break;case 10:Es(o.type._context);break;case 22:case 23:uc()}n=n.return}if(_l=e,Pl=e=Oc(e.current,null),Ml=Rl=t,Tl=0,Ll=null,zl=Dl=Il=0,Bl=Fl=null,null!==Rs){for(t=0;t<Rs.length;t++)if(null!==(o=(n=Rs[t]).interleaved)){n.interleaved=null;var r=o.next,s=n.pending;if(null!==s){var a=s.next;s.next=r,o.next=a}n.pending=o}Rs=null}return e}function hc(e,t){for(;;){var n=Pl;try{if(Ns(),ra.current=Za,da){for(var o=ia.memoizedState;null!==o;){var r=o.queue;null!==r&&(r.pending=null),o=o.next}da=!1}if(aa=0,ca=la=ia=null,ua=!1,pa=0,Al.current=null,null===n||null===n.return){Tl=1,Ll=t,Pl=null;break}e:{var a=e,i=n.return,l=n,c=t;if(t=Ml,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var d=c,u=l,p=u.tag;if(0===(1&u.mode)&&(0===p||11===p||15===p)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=gi(i);if(null!==f){f.flags&=-257,xi(f,i,l,0,t),1&f.mode&&mi(a,d,t),c=d;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){mi(a,d,t),mc();break e}c=Error(s(426))}else if(ss&&1&l.mode){var x=gi(i);if(null!==x){0===(65536&x.flags)&&(x.flags|=256),xi(x,i,l,0,t),ms(ci(c,l));break e}}a=c=ci(c,l),4!==Tl&&(Tl=2),null===Fl?Fl=[a]:Fl.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Us(a,hi(0,c,t));break e;case 1:l=c;var b=a.type,v=a.stateNode;if(0===(128&a.flags)&&("function"===typeof b.getDerivedStateFromError||null!==v&&"function"===typeof v.componentDidCatch&&(null===ql||!ql.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,Us(a,fi(a,l,t));break e}}a=a.return}while(null!==a)}yc(n)}catch(y){t=y,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function fc(){var e=Cl.current;return Cl.current=Za,null===e?Za:e}function mc(){0!==Tl&&3!==Tl&&2!==Tl||(Tl=4),null===_l||0===(268435455&Il)&&0===(268435455&Dl)||ic(_l,Ml)}function gc(e,t){var n=El;El|=2;var o=fc();for(_l===e&&Ml===t||(Hl=null,pc(e,t));;)try{xc();break}catch(r){hc(e,r)}if(Ns(),El=n,Cl.current=o,null!==Pl)throw Error(s(261));return _l=null,Ml=0,Tl}function xc(){for(;null!==Pl;)vc(Pl)}function bc(){for(;null!==Pl&&!Ye();)vc(Pl)}function vc(e){var t=Sl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?yc(e):Pl=t,Al.current=null}function yc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=$i(n,t,Rl)))return void(Pl=n)}else{if(null!==(n=Ji(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Tl=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Tl&&(Tl=5)}function wc(e,t,n){var o=vt,r=Nl.transition;try{Nl.transition=null,vt=1,function(e,t,n,o){do{kc()}while(null!==Jl);if(0!==(6&El))throw Error(s(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-at(n),s=1<<r;t[r]=0,o[r]=-1,e[r]=-1,n&=~s}}(e,a),e===_l&&(Pl=_l=null,Ml=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||$l||($l=!0,_c(tt,(function(){return kc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Nl.transition,Nl.transition=null;var i=vt;vt=1;var l=El;El|=4,Al.current=null,function(e,t){if(tr=Vt,fo(e=ho())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var r=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var i=0,l=-1,c=-1,d=0,u=0,p=e,h=null;t:for(;;){for(var f;p!==n||0!==r&&3!==p.nodeType||(l=i+r),p!==a||0!==o&&3!==p.nodeType||(c=i+o),3===p.nodeType&&(i+=p.nodeValue.length),null!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break t;if(h===n&&++d===r&&(l=i),h===a&&++u===o&&(c=i),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(nr={focusedElem:e,selectionRange:n},Vt=!1,Zi=t;null!==Zi;)if(e=(t=Zi).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zi=e;else for(;null!==Zi;){t=Zi;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,x=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:ni(t.type,g),x);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(s(163))}}catch(w){jc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zi=e;break}Zi=t.return}m=tl,tl=!1}(e,n),gl(n,e),mo(nr),Vt=!!tr,nr=tr=null,e.current=n,bl(n,e,r),Ge(),El=l,vt=i,Nl.transition=a}else e.current=n;if($l&&($l=!1,Jl=e,Yl=r),a=e.pendingLanes,0===a&&(ql=null),function(e){if(st&&"function"===typeof st.onCommitFiberRoot)try{st.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),oc(e,Xe()),null!==t)for(o=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],o(r.value,{componentStack:r.stack,digest:r.digest});if(Vl)throw Vl=!1,e=Kl,Kl=null,e;0!==(1&Yl)&&0!==e.tag&&kc(),a=e.pendingLanes,0!==(1&a)?e===Xl?Gl++:(Gl=0,Xl=e):Gl=0,Hr()}(e,t,n,o)}finally{Nl.transition=r,vt=o}return null}function kc(){if(null!==Jl){var e=yt(Yl),t=Nl.transition,n=vt;try{if(Nl.transition=null,vt=16>e?16:e,null===Jl)var o=!1;else{if(e=Jl,Jl=null,Yl=0,0!==(6&El))throw Error(s(331));var r=El;for(El|=4,Zi=e.current;null!==Zi;){var a=Zi,i=a.child;if(0!==(16&Zi.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var d=l[c];for(Zi=d;null!==Zi;){var u=Zi;switch(u.tag){case 0:case 11:case 15:nl(8,u,a)}var p=u.child;if(null!==p)p.return=u,Zi=p;else for(;null!==Zi;){var h=(u=Zi).sibling,f=u.return;if(sl(u),u===d){Zi=null;break}if(null!==h){h.return=f,Zi=h;break}Zi=f}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(null!==g)}}Zi=a}}if(0!==(2064&a.subtreeFlags)&&null!==i)i.return=a,Zi=i;else e:for(;null!==Zi;){if(0!==(2048&(a=Zi).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zi=b;break e}Zi=a.return}}var v=e.current;for(Zi=v;null!==Zi;){var y=(i=Zi).child;if(0!==(2064&i.subtreeFlags)&&null!==y)y.return=i,Zi=y;else e:for(i=v;null!==Zi;){if(0!==(2048&(l=Zi).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(k){jc(l,l.return,k)}if(l===i){Zi=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zi=w;break e}Zi=l.return}}if(El=r,Hr(),st&&"function"===typeof st.onPostCommitFiberRoot)try{st.onPostCommitFiberRoot(rt,e)}catch(k){}o=!0}return o}finally{vt=n,Nl.transition=t}}return!1}function Sc(e,t,n){e=Bs(e,t=hi(0,t=ci(n,t),1),1),t=ec(),null!==e&&(xt(e,1,t),oc(e,t))}function jc(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof o.componentDidCatch&&(null===ql||!ql.has(o))){t=Bs(t,e=fi(t,e=ci(n,e),1),1),e=ec(),null!==t&&(xt(t,1,e),oc(t,e));break}}t=t.return}}function Cc(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,_l===e&&(Ml&n)===n&&(4===Tl||3===Tl&&(130023424&Ml)===Ml&&500>Xe()-Wl?pc(e,0):zl|=n),oc(e,t)}function Ac(e,t){0===t&&(0===(1&e.mode)?t=1:(t=dt,0===(130023424&(dt<<=1))&&(dt=4194304)));var n=ec();null!==(e=Ls(e,t))&&(xt(e,t,n),oc(e,n))}function Nc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ac(e,n)}function Ec(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}null!==o&&o.delete(t),Ac(e,n)}function _c(e,t){return $e(e,t)}function Pc(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mc(e,t,n,o){return new Pc(e,t,n,o)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var n=e.alternate;return null===n?((n=Mc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tc(e,t,n,o,r,a){var i=2;if(o=e,"function"===typeof e)Rc(e)&&(i=1);else if("string"===typeof e)i=5;else e:switch(e){case S:return Lc(n.children,r,a,t);case j:i=8,r|=8;break;case C:return(e=Mc(12,n,t,2|r)).elementType=C,e.lanes=a,e;case _:return(e=Mc(13,n,t,r)).elementType=_,e.lanes=a,e;case P:return(e=Mc(19,n,t,r)).elementType=P,e.lanes=a,e;case O:return Ic(n,r,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:i=10;break e;case N:i=9;break e;case E:i=11;break e;case M:i=14;break e;case R:i=16,o=null;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Mc(i,n,t,r)).elementType=e,t.type=o,t.lanes=a,t}function Lc(e,t,n,o){return(e=Mc(7,e,o,t)).lanes=n,e}function Ic(e,t,n,o){return(e=Mc(22,e,o,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Mc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Mc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,o,r,s,a,i,l){return e=new Fc(e,t,n,i,l),1===t?(t=1,!0===s&&(t|=8)):t=0,s=Mc(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ds(s),e}function Wc(e){if(!e)return Er;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Or(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(s(171))}if(1===e.tag){var n=e.type;if(Or(n))return Ir(e,n,t)}return t}function Uc(e,t,n,o,r,s,a,i,l){return(e=Bc(n,o,!0,e,0,s,0,i,l)).context=Wc(null),n=e.current,(s=Fs(o=ec(),r=tc(n))).callback=void 0!==t&&null!==t?t:null,Bs(n,s,r),e.current.lanes=r,xt(e,r,o),oc(e,o),e}function Hc(e,t,n,o){var r=t.current,s=ec(),a=tc(r);return n=Wc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fs(s,a)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Bs(r,t,a))&&(nc(e,r,a,s),Ws(e,r,a)),a}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Kc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Kc(e,t),(e=e.alternate)&&Kc(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pr.current)vi=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return vi=!1,function(e,t,n){switch(t.tag){case 3:_i(t),fs();break;case 5:Zs(t);break;case 1:Or(t.type)&&Dr(t);break;case 4:Gs(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;Nr(Ss,o._currentValue),o._currentValue=r;break;case 13:if(null!==(o=t.memoizedState))return null!==o.dehydrated?(Nr(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Di(e,t,n):(Nr(ea,1&ea.current),null!==(e=Vi(e,t,n))?e.sibling:null);Nr(ea,1&ea.current);break;case 19:if(o=0!==(n&t.childLanes),0!==(128&e.flags)){if(o)return Ui(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Nr(ea,ea.current),o)break;return null;case 22:case 23:return t.lanes=0,ji(e,t,n)}return Vi(e,t,n)}(e,t,n);vi=0!==(131072&e.flags)}else vi=!1,ss&&0!==(1048576&t.flags)&&es(t,$r,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Hi(e,t),e=t.pendingProps;var r=Rr(t,_r.current);Ps(t,n),r=ga(null,t,o,e,r,n);var a=xa();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Or(o)?(a=!0,Dr(t)):a=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ds(t),r.updater=ri,t.stateNode=r,r._reactInternals=t,li(t,o,e,n),t=Ei(null,t,o,!0,a,n)):(t.tag=0,ss&&a&&ts(t),yi(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,o=(r=o._init)(o._payload),t.type=o,r=t.tag=function(e){if("function"===typeof e)return Rc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===E)return 11;if(e===M)return 14}return 2}(o),e=ni(o,e),r){case 0:t=Ai(null,t,o,e,n);break e;case 1:t=Ni(null,t,o,e,n);break e;case 11:t=wi(null,t,o,e,n);break e;case 14:t=ki(null,t,o,ni(o.type,e),n);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,Ai(e,t,o,r=t.elementType===o?r:ni(o,r),n);case 1:return o=t.type,r=t.pendingProps,Ni(e,t,o,r=t.elementType===o?r:ni(o,r),n);case 3:e:{if(_i(t),null===e)throw Error(s(387));o=t.pendingProps,r=(a=t.memoizedState).element,zs(e,t),Hs(t,o,null,n);var i=t.memoizedState;if(o=i.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Pi(e,t,o,n,r=ci(Error(s(423)),t));break e}if(o!==r){t=Pi(e,t,o,n,r=ci(Error(s(424)),t));break e}for(rs=dr(t.stateNode.containerInfo.firstChild),os=t,ss=!0,as=null,n=ks(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fs(),o===r){t=Vi(e,t,n);break e}yi(e,t,o,n)}t=t.child}return t;case 5:return Zs(t),null===e&&ds(t),o=t.type,r=t.pendingProps,a=null!==e?e.memoizedProps:null,i=r.children,or(o,r)?i=null:null!==a&&or(o,a)&&(t.flags|=32),Ci(e,t),yi(e,t,i,n),t.child;case 6:return null===e&&ds(t),null;case 13:return Di(e,t,n);case 4:return Gs(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=ws(t,null,o,n):yi(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,wi(e,t,o,r=t.elementType===o?r:ni(o,r),n);case 7:return yi(e,t,t.pendingProps,n),t.child;case 8:case 12:return yi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,a=t.memoizedProps,i=r.value,Nr(Ss,o._currentValue),o._currentValue=i,null!==a)if(io(a.value,i)){if(a.children===r.children&&!Pr.current){t=Vi(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var c=l.firstContext;null!==c;){if(c.context===o){if(1===a.tag){(c=Fs(-1,n&-n)).tag=2;var d=a.updateQueue;if(null!==d){var u=(d=d.shared).pending;null===u?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),_s(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(s(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),_s(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}yi(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Ps(t,n),o=o(r=Ms(r)),t.flags|=1,yi(e,t,o,n),t.child;case 14:return r=ni(o=t.type,t.pendingProps),ki(e,t,o,r=ni(o.type,r),n);case 15:return Si(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:ni(o,r),Hi(e,t),t.tag=1,Or(o)?(e=!0,Dr(t)):e=!1,Ps(t,n),ai(t,o,r),li(t,o,r,n),Ei(null,t,o,!0,e,n);case 19:return Ui(e,t,n);case 22:return ji(e,t,n)}throw Error(s(156,t.tag))};var $c="function"===typeof reportError?reportError:function(e){console.error(e)};function Jc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Gc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function Qc(e,t,n,o,r){var s=n._reactRootContainer;if(s){var a=s;if("function"===typeof r){var i=r;r=function(){var e=Vc(a);i.call(e)}}Hc(t,a,e,r)}else a=function(e,t,n,o,r){if(r){if("function"===typeof o){var s=o;o=function(){var e=Vc(a);s.call(e)}}var a=Uc(t,o,e,0,null,!1,0,"",Zc);return e._reactRootContainer=a,e[mr]=a.current,Ho(8===e.nodeType?e.parentNode:e),dc(),a}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof o){var i=o;o=function(){var e=Vc(l);i.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[mr]=l.current,Ho(8===e.nodeType?e.parentNode:e),dc((function(){Hc(t,l,n,o)})),l}(n,t,e,r,o);return Vc(a)}Yc.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));Hc(e,t,null,null)},Yc.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Hc(null,e,null,null)})),t[mr]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=jt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Dt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(bt(t,1|n),oc(t,Xe()),0===(6&El)&&(Ul=Xe()+500,Hr()))}break;case 13:dc((function(){var t=Ls(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),qc(e,1)}},kt=function(e){if(13===e.tag){var t=Ls(e,134217728);if(null!==t)nc(t,e,134217728,ec());qc(e,134217728)}},St=function(e){if(13===e.tag){var t=tc(e),n=Ls(e,t);if(null!==n)nc(n,e,t,ec());qc(e,t)}},jt=function(){return vt},Ct=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=kr(o);if(!r)throw Error(s(90));$(o),Z(o,r)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ee=cc,_e=dc;var ed={usingClientEntryPoint:!1,Events:[yr,wr,kr,Ae,Ne,cc]},td={findFiberByHostInstance:vr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nd={bundleType:td.bundleType,version:td.version,rendererPackageName:td.rendererPackageName,rendererConfig:td.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:td.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!od.isDisabled&&od.supportsFiber)try{rt=od.inject(nd),st=od}catch(de){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ed,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gc(t))throw Error(s(200));return function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gc(e))throw Error(s(299));var n=!1,o="",r=$c;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,o,r),e[mr]=t.current,Ho(8===e.nodeType?e.parentNode:e),new Jc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(s(200));return Qc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gc(e))throw Error(s(405));var o=null!=n&&n.hydratedSources||null,r=!1,a="",i=$c;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,r,0,a,i),e[mr]=t.current,Ho(e),o)for(e=0;e<o.length;e++)r=(r=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(s(200));return Qc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(s(40));return!!e._reactRootContainer&&(dc((function(){Qc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mr]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Xc(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return Qc(e,t,n,!1,o)},t.version="18.3.1-next-f1338f8080-20240426"},3030:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(8168);function r(e,t){const n=(0,o.A)({},t);return Object.keys(e).forEach((s=>{if(s.toString().match(/^(components|slots)$/))n[s]=(0,o.A)({},e[s],n[s]);else if(s.toString().match(/^(componentsProps|slotProps)$/)){const a=e[s]||{},i=t[s];n[s]={},i&&Object.keys(i)?a&&Object.keys(a)?(n[s]=(0,o.A)({},i),Object.keys(a).forEach((e=>{n[s][e]=r(a[e],i[e])}))):n[s]=i:n[s]=a}else void 0===n[s]&&(n[s]=e[s])})),n}},3174:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>k.A,StyledEngineProvider:()=>w,ThemeContext:()=>r.T,css:()=>x.AH,default:()=>S,internal_processStyles:()=>j,keyframes:()=>x.i7});var o=n(8168),r=n(9369),s=n(6598),a=n(9436),i=n(1722),l=n(5043),c=n(918),d=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=(0,c.A)((function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?u:p},f=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!==typeof o&&n&&(o=e.__emotion_forwardProp),o},m=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return(0,i.SF)(t,n,o),(0,a.s)((function(){return(0,i.sk)(t,n,o)})),null},g=function e(t,n){var a,c,d=t.__emotion_real===t,u=d&&t.__emotion_base||t;void 0!==n&&(a=n.label,c=n.target);var p=f(t,n,d),g=p||h(u),x=!g("as");return function(){var b=arguments,v=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&v.push("label:"+a+";"),null==b[0]||void 0===b[0].raw)v.push.apply(v,b);else{var y=b[0];v.push(y[0]);for(var w=b.length,k=1;k<w;k++)v.push(b[k],y[k])}var S=(0,r.w)((function(e,t,n){var o=x&&e.as||u,a="",d=[],f=e;if(null==e.theme){for(var b in f={},e)f[b]=e[b];f.theme=l.useContext(r.T)}"string"===typeof e.className?a=(0,i.Rk)(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var y=(0,s.J)(v.concat(d),t.registered,f);a+=t.key+"-"+y.name,void 0!==c&&(a+=" "+c);var w=x&&void 0===p?h(o):g,k={};for(var S in e)x&&"as"===S||w(S)&&(k[S]=e[S]);return k.className=a,n&&(k.ref=n),l.createElement(l.Fragment,null,l.createElement(m,{cache:t,serialized:y,isStringTag:"string"===typeof o}),l.createElement(o,k))}));return S.displayName=void 0!==a?a:"Styled("+("string"===typeof u?u:u.displayName||u.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=u,S.__emotion_styles=v,S.__emotion_forwardProp=p,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(t,r){return e(t,(0,o.A)({},n,r,{shouldForwardProp:f(S,r,!0)})).apply(void 0,v)},S}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){g[e]=g(e)}));var x=n(3290),b=n(3803),v=n(579);let y;function w(e){const{injectFirst:t,children:n}=e;return t&&y?(0,v.jsx)(r.C,{value:y,children:n}):n}"object"===typeof document&&(y=(0,b.A)({key:"css",prepend:!0}));var k=n(869);function S(e,t){return g(e,t)}const j=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},3234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.A,extendSxProp:()=>r.A,unstable_createStyleFunctionSx:()=>o.k,unstable_defaultSxConfig:()=>s.A});var o=n(8812),r=n(8698),s=n(7758)},3290:(e,t,n)=>{"use strict";n.d(t,{AH:()=>d,i7:()=>u,mL:()=>c});var o=n(9369),r=n(5043),s=n(1722),a=n(9436),i=n(6598),l=(n(3803),n(219),function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return r.createElement.apply(void 0,n);var s=n.length,a=new Array(s);a[0]=o.E,a[1]=(0,o.c)(e,t);for(var i=2;i<s;i++)a[i]=n[i];return r.createElement.apply(null,a)});!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var c=(0,o.w)((function(e,t){var n=e.styles,l=(0,i.J)([n],void 0,r.useContext(o.T)),c=r.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,r=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==r&&(o=!0,r.setAttribute("data-emotion",e),n.hydrate([r])),c.current=[n,o],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,s.sk)(t,l.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.J)(t)}function u(){var e=d.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},3319:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(1782).A},3375:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o="$$material"},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>s});var o=n(191);const r=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function s(e){const t="".concat(e).match(r);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||s(e)||t}function i(e,t,n){const o=a(t);return e.displayName||(""!==o?"".concat(n,"(").concat(o,")"):n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case o.vM:return i(e,e.render,"ForwardRef");case o.lD:return i(e,e.type,"memo");default:return}}}},3462:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(5043),r=n(6564);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,r.A)(t,e)}))}),t)}},3468:(e,t,n)=>{"use strict";function o(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function o(){for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];clearTimeout(t),t=setTimeout((()=>{e.apply(this,r)}),n)}return o.clear=()=>{clearTimeout(t)},o}n.d(t,{A:()=>o})},3574:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n(5043),r=n(9303);let s=!0,a=!1;const i=new r.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(s=!0)}function d(){s=!1}function u(){"hidden"===this.visibilityState&&a&&(s=!0)}function p(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return s||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const h=function(){const e=o.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",d,!0),t.addEventListener("pointerdown",d,!0),t.addEventListener("touchstart",d,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!p(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,i.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},3654:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,b:()=>i});var o=n(5043),r=n(3030),s=n(579);const a=o.createContext(void 0);function i(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?(0,r.A)(s.defaultProps,o):s.styleOverrides||s.variants?o:(0,r.A)(s,o)}({props:t,name:n,theme:{components:o.useContext(a)}})}const l=function(e){let{value:t,children:n}=e;return(0,s.jsx)(a.Provider,{value:t,children:n})}},3664:(e,t,n)=>{"use strict";var o=n(4994);t.A=void 0;var r=o(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen")},3763:(e,t,n)=>{"use strict";e.exports=n(4983)},3803:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var o=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(o){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),r=Math.abs,s=String.fromCharCode,a=Object.assign;function i(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function u(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,x=0,b=0,v=0,y="";function w(e,t,n,o,r,s,a){return{value:e,root:t,parent:n,type:o,props:r,children:s,line:m,column:g,length:a,return:""}}function k(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return v=b>0?d(y,--b):0,g--,10===v&&(g=1,m--),v}function j(){return v=b<x?d(y,b++):0,g++,10===v&&(g=1,m++),v}function C(){return d(y,b)}function A(){return b}function N(e,t){return u(y,e,t)}function E(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _(e){return m=g=1,x=p(y=e),b=0,[]}function P(e){return y="",e}function M(e){return i(N(b-1,T(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(v=C())&&v<33;)j();return E(e)>2||E(v)>3?"":" "}function O(e,t){for(;--t&&j()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return N(e,A()+(t<6&&32==C()&&32==j()))}function T(e){for(;j();)switch(v){case e:return b;case 34:case 39:34!==e&&39!==e&&T(v);break;case 40:41===e&&T(e);break;case 92:j()}return b}function L(e,t){for(;j()&&e+v!==57&&(e+v!==84||47!==C()););return"/*"+N(t,b-1)+"*"+s(47===e?e:j())}function I(e){for(;!E(C());)j();return N(e,b)}var D="-ms-",z="-moz-",F="-webkit-",B="comm",W="rule",U="decl",H="@keyframes";function V(e,t){for(var n="",o=h(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function K(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case U:return e.return=e.return||e.value;case B:return"";case H:return e.return=e.value+"{"+V(e.children,o)+"}";case W:e.value=e.props.join(",")}return p(n=V(e.children,o))?e.return=e.value+"{"+n+"}":""}function q(e){return P($("",null,null,null,[""],e=_(e),0,[0],e))}function $(e,t,n,o,r,a,i,u,h){for(var m=0,g=0,x=i,b=0,v=0,y=0,w=1,k=1,N=1,E=0,_="",P=r,T=a,D=o,z=_;k;)switch(y=E,E=j()){case 40:if(108!=y&&58==d(z,x-1)){-1!=c(z+=l(M(E),"&","&\f"),"&\f")&&(N=-1);break}case 34:case 39:case 91:z+=M(E);break;case 9:case 10:case 13:case 32:z+=R(y);break;case 92:z+=O(A()-1,7);continue;case 47:switch(C()){case 42:case 47:f(Y(L(j(),A()),t,n),h);break;default:z+="/"}break;case 123*w:u[m++]=p(z)*N;case 125*w:case 59:case 0:switch(E){case 0:case 125:k=0;case 59+g:-1==N&&(z=l(z,/\f/g,"")),v>0&&p(z)-x&&f(v>32?G(z+";",o,n,x-1):G(l(z," ","")+";",o,n,x-2),h);break;case 59:z+=";";default:if(f(D=J(z,t,n,m,g,r,u,_,P=[],T=[],x),a),123===E)if(0===g)$(z,t,D,D,P,a,x,u,T);else switch(99===b&&110===d(z,3)?100:b){case 100:case 108:case 109:case 115:$(e,D,D,o&&f(J(e,D,D,0,0,r,u,_,r,P=[],x),T),r,T,x,u,o?P:T);break;default:$(z,D,D,D,[""],T,0,u,T)}}m=g=v=0,w=N=1,_=z="",x=i;break;case 58:x=1+p(z),v=y;default:if(w<1)if(123==E)--w;else if(125==E&&0==w++&&125==S())continue;switch(z+=s(E),E*w){case 38:N=g>0?1:(z+="\f",-1);break;case 44:u[m++]=(p(z)-1)*N,N=1;break;case 64:45===C()&&(z+=M(j())),b=C(),g=x=p(_=z+=I(A())),E++;break;case 45:45===y&&2==p(z)&&(w=0)}}return a}function J(e,t,n,o,s,a,c,d,p,f,m){for(var g=s-1,x=0===s?a:[""],b=h(x),v=0,y=0,k=0;v<o;++v)for(var S=0,j=u(e,g+1,g=r(y=c[v])),C=e;S<b;++S)(C=i(y>0?x[S]+" "+j:l(j,/&\f/g,x[S])))&&(p[k++]=C);return w(e,t,n,0===s?W:d,p,f,m)}function Y(e,t,n){return w(e,t,n,B,s(v),u(e,2,-2),0)}function G(e,t,n,o){return w(e,t,n,U,u(e,0,o),u(e,o+1,-1),o)}var X=function(e,t,n){for(var o=0,r=0;o=r,r=C(),38===o&&12===r&&(t[n]=1),!E(r);)j();return N(e,b)},Z=function(e,t){return P(function(e,t){var n=-1,o=44;do{switch(E(o)){case 0:38===o&&12===C()&&(t[n]=1),e[n]+=X(b-1,t,n);break;case 2:e[n]+=M(o);break;case 4:if(44===o){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=s(o)}}while(o=j());return e}(_(e),t))},Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!o){Q.set(e,!0);for(var r=[],s=Z(t,r),a=n.props,i=0,l=0;i<s.length;i++)for(var c=0;c<a.length;c++,l++)e.props[l]=r[i]?s[i].replace(/&\f/g,a[c]):a[c]+" "+s[i]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+z+e+D+e+e;case 6828:case 4268:return F+e+D+e+e;case 6165:return F+e+D+"flex-"+e+e;case 5187:return F+e+l(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return F+e+D+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return F+e+D+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+D+l(e,"shrink","negative")+e;case 5292:return F+e+D+l(e,"basis","preferred-size")+e;case 6060:return F+"box-"+l(e,"-grow","")+F+e+D+l(e,"grow","positive")+e;case 4554:return F+l(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+z+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+F)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===d(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return F+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+D+e+e}return e}var oe=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=ne(e.value,e.length);break;case H:return V([k(e,{value:l(e.value,"@","@"+F)})],o);case W:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return V([k(e,{props:[l(t,/:(plac\w+)/,":"+F+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],o)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,s,a=e.stylisPlugins||oe,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)}));var c,d,u=[K,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=function(e){var t=h(e);return function(n,o,r,s){for(var a="",i=0;i<t;i++)a+=e[i](n,o,r,s)||"";return a}}([ee,te].concat(a,u));s=function(e,t,n,o){c=n,V(q(e?e+"{"+t.styles+"}":t.styles),p),o&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new o({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(l),f}},3815:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(9172);const r=function(e,t){return t?(0,o.A)(e,t,{clone:!1}):e}},3940:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(1668);function r(e){return(0,o.A)(e).defaultView||window}},4202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function x(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=x.prototype;var y=v.prototype=new b;y.constructor=v,m(y,x.prototype),y.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,o){var r,s={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,r)&&!j.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(1===l)s.children=o;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===s[r]&&(s[r]=l[r]);return{$$typeof:n,type:e,key:a,ref:i,props:s,_owner:S.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function _(e,t,r,s,a){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var l=!1;if(null===e)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case o:l=!0}}if(l)return a=a(l=e),e=""===s?"."+E(l,0):s,w(a)?(r="",null!=e&&(r=e.replace(N,"$&/")+"/"),_(a,t,r,"",(function(e){return e}))):null!=a&&(A(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(N,"$&/")+"/")+e)),t.push(a)),1;if(l=0,s=""===s?".":s+":",w(e))for(var c=0;c<e.length;c++){var d=s+E(i=e[c],c);l+=_(i,t,r,d,a)}else if(d=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof d)for(e=d.call(e),c=0;!(i=e.next()).done;)l+=_(i=i.value,t,r,d=s+E(i,c++),a);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var o=[],r=0;return _(e,o,"","",(function(e){return t.call(n,e,r++)})),o}function M(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},O={transition:null},T={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:O,ReactCurrentOwner:S};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=x,t.Fragment=r,t.Profiler=a,t.PureComponent=v,t.StrictMode=s,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.act=L,t.cloneElement=function(e,t,o){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=m({},e.props),s=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=S.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!j.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=o;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:n,type:e.type,key:s,ref:a,props:r,_owner:i}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},4318:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,p0:()=>i});var o=n(8587),r=n(8168);const s=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function d(e){const t=(0,r.A)({},a,e.easing),n=(0,r.A)({},i,e.duration);return(0,r.A)({getAutoHeightDuration:c,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=n.standard,easing:i=t.easeInOut,delay:c=0}=r;(0,o.A)(r,s);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof a?a:l(a)," ").concat(i," ").concat("string"===typeof c?c:l(c)))).join(",")}},e,{easing:t,duration:n})}},4358:(e,t)=>{"use strict";const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,o=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,i=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function l(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function c(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function d(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},4391:(e,t,n)=>{"use strict";var o=n(7950);t.createRoot=o.createRoot,t.hydrateRoot=o.hydrateRoot},4421:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.A,createChainedFunction:()=>s,createSvgIcon:()=>a.A,debounce:()=>i.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>d.A,ownerWindow:()=>u.A,requirePropFactory:()=>p,setRef:()=>h,unstable_ClassNameGenerator:()=>w,unstable_useEnhancedEffect:()=>f.A,unstable_useId:()=>m.A,unsupportedProp:()=>g,useControlled:()=>x.A,useEventCallback:()=>b.A,useForkRef:()=>v.A,useIsFocusVisible:()=>y.A});var o=n(9386),r=n(6803);const s=n(2456).A;var a=n(9662),i=n(950);const l=function(e,t){return()=>null};var c=n(7328),d=n(2427),u=n(6078);const p=function(e,t){return()=>null};const h=n(6564).A;var f=n(5013),m=n(5879);const g=function(e,t,n,o,r){return null};var x=n(5420),b=n(3319),v=n(5849),y=n(3574);const w={configure:e=>{o.A.configure(e)}}},4440:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(5043);const r="undefined"!==typeof window?o.useLayoutEffect:o.useEffect},4535:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i});var o=n(8052),r=n(5170),s=n(3375),a=n(1475);const i=(0,o.Ay)({themeId:s.A,defaultTheme:r.A,rootShouldForwardProp:a.A})},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4802:(e,t,n)=>{"use strict";var o=n(4994);t.A=void 0;var r=o(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},4853:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(8587),r=n(8168);const s=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.A)({},e,{[t.key]:t.val})),{})};function i(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,l=(0,o.A)(e,s),c=a(t),d=Object.keys(c);function u(e){const o="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(o).concat(n,")")}function p(e){const o="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(o-i/100).concat(n,")")}function h(e,o){const r=d.indexOf(o);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof t[d[r]]?t[d[r]]:o)-i/100).concat(n,")")}return(0,r.A)({keys:d,values:c,up:u,down:p,between:h,only:function(e){return d.indexOf(e)+1<d.length?h(e,d[d.indexOf(e)+1]):u(e)},not:function(e){const t=d.indexOf(e);return 0===t?u(d[1]):t===d.length-1?p(d[t]):h(e,d[d.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},4983:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,x=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case u:case s:case i:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case r:return t}}}function k(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=i,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||w(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===s},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===i},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===s||e===u||e===i||e===a||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===y||e.$$typeof===x)},t.typeOf=w},4989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.A,private_createBreakpoints:()=>r.A,unstable_applyStyles:()=>s.A});var o=n(8280),r=n(4853),s=n(9703)},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5013:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(4440).A},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},5170:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=(0,n(7344).A)()},5420:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(5043);const r=function(e){let{controlled:t,default:n,name:r,state:s="value"}=e;const{current:a}=o.useRef(void 0!==t),[i,l]=o.useState(n);return[a?t:i,o.useCallback((e=>{a||l(e)}),[])]}},5473:(e,t,n)=>{"use strict";var o=n(4994);t.A=void 0;var r=o(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess")},5844:(e,t,n)=>{"use strict";var o;n.d(t,{A:()=>i});var r=n(5043);let s=0;const a=(o||(o=n.t(r,2)))["useId".toString()];function i(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),o=e||t;return r.useEffect((()=>{null==t&&(s+=1,n("mui-".concat(s)))}),[t]),o}(e)}},5849:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(3462).A},5879:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(5844).A},6078:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(3940).A},6191:(e,t,n)=>{"use strict";var o=n(4994);t.A=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var i=r?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(o,s,i):o[s]=e[s]}o.default=e,n&&n.set(e,o)}(n(5043));var r=o(n(39)),s=n(579);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.A=(0,r.default)((0,s.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub")},6564:(e,t,n)=>{"use strict";function o(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>o})},6598:(e,t,n)=>{"use strict";n.d(t,{J:()=>g});var o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},r=n(918),s=!1,a=/[A-Z]|^ms/g,i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},d=(0,r.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(i,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===o[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return f={name:r.name,styles:r.styles,next:f},r.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)f={name:i.name,styles:i.styles,next:f},i=i.next;return a.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=h(e,t,n[r])+";";else for(var a in n){var i=n[a];if("object"!==typeof i){var l=i;null!=t&&void 0!==t[l]?o+=a+"{"+t[l]+"}":c(l)&&(o+=d(a)+":"+u(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&s)throw new Error(p);if(!Array.isArray(i)||"string"!==typeof i[0]||null!=t&&void 0!==t[i[0]]){var f=h(e,t,i);switch(a){case"animation":case"animationName":o+=d(a)+":"+f+";";break;default:o+=a+"{"+f+"}"}}else for(var m=0;m<i.length;m++)c(i[m])&&(o+=d(a)+":"+u(a,i[m])+";")}}return o}(e,t,n);case"function":if(void 0!==e){var l=f,m=n(e);return f=l,h(e,t,m)}}var g=n;if(null==t)return g;var x=t[g];return void 0!==x?x:g}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";f=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,r+=h(n,t,s)):r+=s[0];for(var a=1;a<e.length;a++){if(r+=h(n,t,e[a]),o)r+=s[a]}m.lastIndex=0;for(var i,l="";null!==(i=m.exec(r));)l+="-"+i[1];var c=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:c,styles:r,next:f}}},6803:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=n(7598).A},7123:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},7162:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i,BO:()=>a,Yn:()=>s});var o=n(7598),r=n(9751);function s(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let o,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return o="function"===typeof e?e(n):Array.isArray(e)?e[n]||r:s(e,n)||r,t&&(o=t(o,r,e)),o}const i=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],d=s(e.theme,i)||{};return(0,r.NI)(e,c,(e=>{let r=a(d,l,e);return e===r&&"string"===typeof e&&(r=a(d,l,"".concat(t).concat("default"===e?"":(0,o.A)(e)),e)),!1===n?r:{[n]:r}}))};return c.propTypes={},c.filterProps=[t],c}},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var o=n-1>>>1,r=e[o];if(!(0<s(r,t)))break e;e[o]=t,e[n]=r,n=o}}function o(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length,a=r>>>1;o<a;){var i=2*(o+1)-1,l=e[i],c=i+1,d=e[c];if(0>s(l,n))c<r&&0>s(d,l)?(e[o]=d,e[c]=n,o=c):(e[o]=l,e[i]=n,o=i);else{if(!(c<r&&0>s(d,n)))break e;e[o]=d,e[c]=n,o=c}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var c=[],d=[],u=1,p=null,h=3,f=!1,m=!1,g=!1,x="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function y(e){for(var t=o(d);null!==t;){if(null===t.callback)r(d);else{if(!(t.startTime<=e))break;r(d),t.sortIndex=t.expirationTime,n(c,t)}t=o(d)}}function w(e){if(g=!1,y(e),!m)if(null!==o(c))m=!0,O(k);else{var t=o(d);null!==t&&T(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(A),A=-1),f=!0;var s=h;try{for(y(n),p=o(c);null!==p&&(!(p.expirationTime>n)||e&&!_());){var a=p.callback;if("function"===typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof i?p.callback=i:p===o(c)&&r(c),y(n)}else r(c);p=o(c)}if(null!==p)var l=!0;else{var u=o(d);null!==u&&T(w,u.startTime-n),l=!1}return l}finally{p=null,h=s,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,j=!1,C=null,A=-1,N=5,E=-1;function _(){return!(t.unstable_now()-E<N)}function P(){if(null!==C){var e=t.unstable_now();E=e;var n=!0;try{n=C(!0,e)}finally{n?S():(j=!1,C=null)}}else j=!1}if("function"===typeof v)S=function(){v(P)};else if("undefined"!==typeof MessageChannel){var M=new MessageChannel,R=M.port2;M.port1.onmessage=P,S=function(){R.postMessage(null)}}else S=function(){x(P,0)};function O(e){C=e,j||(j=!0,S())}function T(e,n){A=x((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,O(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return o(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,r,s){var a=t.unstable_now();switch("object"===typeof s&&null!==s?s="number"===typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:u++,callback:r,priorityLevel:e,startTime:s,expirationTime:i=s+i,sortIndex:-1},s>a?(e.sortIndex=s,n(d,e),null===o(c)&&e===o(d)&&(g?(b(A),A=-1):g=!0,T(w,s-a))):(e.sortIndex=i,n(c,e),m||f||(m=!0,O(k))),e},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},7266:(e,t,n)=>{"use strict";var o=n(4994);t.X4=h,t.e$=f,t.eM=function(e,t){const n=p(e),o=p(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)},t.a=m;var r=o(n(457)),s=o(n(9214));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,s.default)(e,t,n)}function i(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(i(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.default)(9,e));let o,s=e.substring(t+1,e.length-1);if("color"===n){if(s=s.split(" "),o=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.default)(10,o))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:n,values:s,colorSpace:o}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?"".concat(e,"%"):e)).join(" ")};function d(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]="".concat(o[1],"%"),o[2]="".concat(o[2],"%")),o=-1!==t.indexOf("color")?"".concat(n," ").concat(o.join(" ")):"".concat(o.join(", ")),"".concat(t,"(").concat(o,")")}function u(e){e=l(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,s=o*Math.min(r,1-r),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return r-s*Math.max(Math.min(t-3,9-t,1),-1)};let i="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(i+="a",c.push(t[3])),d({type:i,values:c})}function p(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(u(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,d(e)}function f(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return d(e)}function m(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return d(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return p(e)>.5?f(e,t):m(e,t)}},7328:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(5043);const r=function(e,t){var n,r;return o.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}},7344:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var o=n(8168),r=n(8587),s=n(7868),a=n(9172),i=n(7758),l=n(8812),c=n(8280);var d=n(7266);const u={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},x={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},v=["mode","contrastThreshold","tonalOffset"],y={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:u.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,n,o){const r=o.light||o,s=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,d.a)(e.main,r):"dark"===t&&(e.dark=(0,d.e$)(e.main,s)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2}=e,l=(0,r.A)(e,v),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),S=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),j=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),C=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:x[400],light:x[300],dark:x[700]}:{main:x[700],light:x[500],dark:x[900]}}(t),A=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(t),N=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function E(e){return(0,d.eM)(e,w.text.primary)>=n?w.text.primary:y.text.primary}const _=e=>{let{color:t,name:n,mainShade:r=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,o.A)({},t),!t.main&&t[r]&&(t.main=t[r]),!t.hasOwnProperty("main"))throw new Error((0,s.A)(11,n?" (".concat(n,")"):"",r));if("string"!==typeof t.main)throw new Error((0,s.A)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return k(t,"light",a,i),k(t,"dark",l,i),t.contrastText||(t.contrastText=E(t.main)),t},P={dark:w,light:y};return(0,a.A)((0,o.A)({common:(0,o.A)({},u),mode:t,primary:_({color:c,name:"primary"}),secondary:_({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:j,name:"error"}),warning:_({color:N,name:"warning"}),info:_({color:C,name:"info"}),success:_({color:A,name:"success"}),grey:p,contrastThreshold:n,getContrastText:E,augmentColor:_,tonalOffset:i},P[t]),l)}const j=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const C={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function N(e,t){const n="function"===typeof t?t(e):t,{fontFamily:s=A,fontSize:i=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:d=500,fontWeightBold:u=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=n,m=(0,r.A)(n,j);const g=i/14,x=f||(e=>"".concat(e/p*g,"rem")),b=(e,t,n,r,a)=>{return(0,o.A)({fontFamily:s,fontWeight:e,fontSize:x(t),lineHeight:n},s===A?{letterSpacing:"".concat((i=r/t,Math.round(1e5*i)/1e5),"em")}:{},a,h);var i},v={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(d,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(d,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(d,14,1.75,.4,C),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,C),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,o.A)({htmlFontSize:p,pxToRem:x,fontFamily:s,fontSize:i,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:u},v),m,{clone:!1})}function E(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const _=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)];var P=n(4318);const M={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},R=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:d={},typography:u={}}=e,p=(0,r.A)(e,R);if(e.vars&&void 0===e.generateCssVars)throw new Error((0,s.A)(18));const h=S(n),f=(0,c.A)(e);let m=(0,a.A)(f,{mixins:(g=f.breakpoints,x=t,(0,o.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},x)),palette:h,shadows:_.slice(),typography:N(h,u),transitions:(0,P.Ay)(d),zIndex:(0,o.A)({},M)});var g,x;m=(0,a.A)(m,p);for(var b=arguments.length,v=new Array(b>1?b-1:0),y=1;y<b;y++)v[y-1]=arguments[y];return m=v.reduce(((e,t)=>(0,a.A)(e,t)),m),m.unstable_sxConfig=(0,o.A)({},i.A,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const T=O},7598:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(7868);function r(e){if("string"!==typeof e)throw new Error((0,o.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7758:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var o=n(8604),r=n(7162),s=n(3815);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),r=e=>Object.keys(e).reduce(((t,n)=>o[n]?(0,s.A)(t,o[n](e)):t),{});return r.propTypes={},r.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),r};var i=n(9751);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,r.Ay)({prop:e,themeKey:"borders",transform:t})}const d=c("border",l),u=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),x=c("borderRightColor"),b=c("borderBottomColor"),v=c("borderLeftColor"),y=c("outline",l),w=c("outlineColor"),k=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,o.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,o._W)(t,e)});return(0,i.NI)(e,e.borderRadius,n)}return null};k.propTypes={},k.filterProps=["borderRadius"];a(d,u,p,h,f,m,g,x,b,v,k,y,w);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,o.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,o._W)(t,e)});return(0,i.NI)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const j=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,o.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,o._W)(t,e)});return(0,i.NI)(e,e.columnGap,n)}return null};j.propTypes={},j.filterProps=["columnGap"];const C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,o.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,o._W)(t,e)});return(0,i.NI)(e,e.rowGap,n)}return null};C.propTypes={},C.filterProps=["rowGap"];a(S,j,C,(0,r.Ay)({prop:"gridColumn"}),(0,r.Ay)({prop:"gridRow"}),(0,r.Ay)({prop:"gridAutoFlow"}),(0,r.Ay)({prop:"gridAutoColumns"}),(0,r.Ay)({prop:"gridAutoRows"}),(0,r.Ay)({prop:"gridTemplateColumns"}),(0,r.Ay)({prop:"gridTemplateRows"}),(0,r.Ay)({prop:"gridTemplateAreas"}),(0,r.Ay)({prop:"gridArea"}));function A(e,t){return"grey"===t?t:e}a((0,r.Ay)({prop:"color",themeKey:"palette",transform:A}),(0,r.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:A}),(0,r.Ay)({prop:"backgroundColor",themeKey:"palette",transform:A}));function N(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const E=(0,r.Ay)({prop:"width",transform:N}),_=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,o;const r=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||i.zu[t];return r?"px"!==(null==(o=e.theme)||null==(o=o.breakpoints)?void 0:o.unit)?{maxWidth:"".concat(r).concat(e.theme.breakpoints.unit)}:{maxWidth:r}:{maxWidth:N(t)}};return(0,i.NI)(e,e.maxWidth,t)}return null};_.filterProps=["maxWidth"];const P=(0,r.Ay)({prop:"minWidth",transform:N}),M=(0,r.Ay)({prop:"height",transform:N}),R=(0,r.Ay)({prop:"maxHeight",transform:N}),O=(0,r.Ay)({prop:"minHeight",transform:N}),T=((0,r.Ay)({prop:"size",cssProperty:"width",transform:N}),(0,r.Ay)({prop:"size",cssProperty:"height",transform:N}),a(E,_,P,M,R,O,(0,r.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:k},color:{themeKey:"palette",transform:A},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:A},backgroundColor:{themeKey:"palette",transform:A},p:{style:o.Ms},pt:{style:o.Ms},pr:{style:o.Ms},pb:{style:o.Ms},pl:{style:o.Ms},px:{style:o.Ms},py:{style:o.Ms},padding:{style:o.Ms},paddingTop:{style:o.Ms},paddingRight:{style:o.Ms},paddingBottom:{style:o.Ms},paddingLeft:{style:o.Ms},paddingX:{style:o.Ms},paddingY:{style:o.Ms},paddingInline:{style:o.Ms},paddingInlineStart:{style:o.Ms},paddingInlineEnd:{style:o.Ms},paddingBlock:{style:o.Ms},paddingBlockStart:{style:o.Ms},paddingBlockEnd:{style:o.Ms},m:{style:o.Lc},mt:{style:o.Lc},mr:{style:o.Lc},mb:{style:o.Lc},ml:{style:o.Lc},mx:{style:o.Lc},my:{style:o.Lc},margin:{style:o.Lc},marginTop:{style:o.Lc},marginRight:{style:o.Lc},marginBottom:{style:o.Lc},marginLeft:{style:o.Lc},marginX:{style:o.Lc},marginY:{style:o.Lc},marginInline:{style:o.Lc},marginInlineStart:{style:o.Lc},marginInlineEnd:{style:o.Lc},marginBlock:{style:o.Lc},marginBlockStart:{style:o.Lc},marginBlockEnd:{style:o.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:C},columnGap:{style:j},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:N},maxWidth:{style:_},minWidth:{transform:N},height:{transform:N},maxHeight:{transform:N},minHeight:{transform:N},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},7868:(e,t,n)=>{"use strict";function o(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>o})},7918:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.A});var o=n(7598)},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},8052:(e,t,n)=>{"use strict";var o=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:o=f,slotShouldForwardProp:l=f}=e,d=e=>(0,c.default)((0,r.default)({},e,{theme:x((0,r.default)({},e,{defaultTheme:n,themeId:t}))}));return d.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:h,skipVariantsResolver:m,skipSx:y,overridesResolver:w=b(g(h))}=c,k=(0,s.default)(c,p),S=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,j=y||!1;let C=f;"Root"===h||"root"===h?C=o:h?C=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const A=(0,a.default)(e,(0,r.default)({shouldForwardProp:C,label:undefined},k)),N=e=>"function"===typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?o=>v(e,(0,r.default)({},o,{theme:x({theme:o.theme,defaultTheme:n,themeId:t})})):e,E=function(o){let s=N(o);for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l<a;l++)i[l-1]=arguments[l];const c=i?i.map(N):[];u&&w&&c.push((e=>{const o=x((0,r.default)({},e,{defaultTheme:n,themeId:t}));if(!o.components||!o.components[u]||!o.components[u].styleOverrides)return null;const s=o.components[u].styleOverrides,a={};return Object.entries(s).forEach((t=>{let[n,s]=t;a[n]=v(s,(0,r.default)({},e,{theme:o}))})),w(e,a)})),u&&!S&&c.push((e=>{var o;const s=x((0,r.default)({},e,{defaultTheme:n,themeId:t}));return v({variants:null==s||null==(o=s.components)||null==(o=o[u])?void 0:o.variants},(0,r.default)({},e,{theme:s}))})),j||c.push(d);const p=c.length-i.length;if(Array.isArray(o)&&p>0){const e=new Array(p).fill("");s=[...o,...e],s.raw=[...o.raw,...e]}const h=A(s,...c);return e.muiName&&(h.muiName=e.muiName),h};return A.withConfig&&(E.withConfig=A.withConfig),E}};var r=o(n(4634)),s=o(n(4893)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=r?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(o,s,a):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(3174)),i=n(9482),l=(o(n(7918)),o(n(3382)),o(n(4989))),c=o(n(3234));const d=["ownerState"],u=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function x(e){let{defaultTheme:t,theme:n,themeId:o}=e;return r=n,0===Object.keys(r).length?t:n[o]||n;var r}function b(e){return e?(t,n)=>n[e]:null}function v(e,t){let{ownerState:n}=t,o=(0,s.default)(t,d);const a="function"===typeof e?e((0,r.default)({ownerState:n},o)):e;if(Array.isArray(a))return a.flatMap((e=>v(e,(0,r.default)({ownerState:n},o))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,s.default)(a,u);return e.forEach((e=>{let s=!0;"function"===typeof e.props?s=e.props((0,r.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(s=!1)})),s&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,r.default)({ownerState:n},o,n)):e.style))})),t}return a}},8168:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(null,arguments)}n.d(t,{A:()=>o})},8206:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});n(5043);var o=n(3654);n(579);function r(e){return(0,o.b)(e)}},8280:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n(8168),r=n(8587),s=n(9172),a=n(4853);const i={borderRadius:4};var l=n(8604);var c=n(8812),d=n(7758),u=n(9703);const p=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:f={}}=e,m=(0,r.A)(e,p),g=(0,a.A)(t),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(h);let b=(0,s.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,o.A)({mode:"light"},n),spacing:x,shape:(0,o.A)({},i,f)},m);b.applyStyles=u.A;for(var v=arguments.length,y=new Array(v>1?v-1:0),w=1;w<v;w++)y[w-1]=arguments[w];return b=y.reduce(((e,t)=>(0,s.A)(e,t)),b),b.unstable_sxConfig=(0,o.A)({},d.A,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},b}},8387:(e,t,n)=>{"use strict";function o(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=o(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}n.d(t,{A:()=>r});const r=function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r}},8587:(e,t,n)=>{"use strict";function o(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}n.d(t,{A:()=>o})},8604:(e,t,n)=>{"use strict";n.d(t,{LX:()=>f,MA:()=>h,_W:()=>m,Lc:()=>b,Ms:()=>v});var o=n(9751),r=n(7162),s=n(3815);const a={m:"margin",p:"padding"},i={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),o=a[t],r=i[n]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],u=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...d,...u];function h(e,t,n,o){var s;const a=null!=(s=(0,r.Yn)(e,t,!1))?s:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function f(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,r){if(-1===t.indexOf(n))return null;const s=function(e,t){return n=>e.reduce(((e,o)=>(e[o]=m(t,n),e)),{})}(c(n),r),a=e[n];return(0,o.NI)(e,a,s)}function x(e,t){const n=f(e.theme);return Object.keys(e).map((o=>g(e,t,o,n))).reduce(s.A,{})}function b(e){return x(e,d)}function v(e){return x(e,u)}function y(e){return x(e,p)}b.propTypes={},b.filterProps=d,v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=p},8610:(e,t,n)=>{"use strict";function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const o={};return Object.keys(e).forEach((r=>{o[r]=e[r].reduce(((e,o)=>{if(o){const r=t(o);""!==r&&e.push(r),n&&n[o]&&e.push(n[o])}return e}),[]).join(" ")})),o}n.d(t,{A:()=>o})},8625:(e,t,n)=>{"use strict";var o=n(4994);t.A=void 0;var r=o(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},8698:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(8168),r=n(8587),s=n(9172),a=n(7758);const i=["sx"],l=e=>{var t,n;const o={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{r[t]?o.systemProps[t]=e[t]:o.otherProps[t]=e[t]})),o};function c(e){const{sx:t}=e,n=(0,r.A)(e,i),{systemProps:a,otherProps:c}=l(n);let d;return d=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,s.Q)(e)?(0,o.A)({},a,e):a}:(0,o.A)({},a,t),(0,o.A)({},c,{sx:d})}},8812:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,k:()=>l});var o=n(7598),r=n(3815),s=n(7162),a=n(9751),i=n(7758);function l(){function e(e,t,n,r){const i={[e]:t,theme:n},l=r[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:d,transform:u,style:p}=l;if(null==t)return null;if("typography"===d&&"inherit"===t)return{[e]:t};const h=(0,s.Yn)(n,d)||{};if(p)return p(i);return(0,a.NI)(i,t,(t=>{let n=(0,s.BO)(h,u,t);return t===n&&"string"===typeof t&&(n=(0,s.BO)(h,u,"".concat(e).concat("default"===t?"":(0,o.A)(t)),t)),!1===c?n:{[c]:n}}))}return function t(n){var o;const{sx:s,theme:l={}}=n||{};if(!s)return null;const c=null!=(o=l.unstable_sxConfig)?o:i.A;function d(n){let o=n;if("function"===typeof n)o=n(l);else if("object"!==typeof n)return n;if(!o)return null;const s=(0,a.EU)(l.breakpoints),i=Object.keys(s);let d=s;return Object.keys(o).forEach((n=>{const s=(i=o[n],u=l,"function"===typeof i?i(u):i);var i,u;if(null!==s&&void 0!==s)if("object"===typeof s)if(c[n])d=(0,r.A)(d,e(n,s,l,c));else{const e=(0,a.NI)({theme:l},s,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(o);return t.every((e=>r.size===Object.keys(e).length))}(e,s)?d=(0,r.A)(d,e):d[n]=t({sx:s,theme:l})}else d=(0,r.A)(d,e(n,s,l,c))})),(0,a.vf)(i,d)}return Array.isArray(s)?s.map(d):d(s)}}const c=l();c.filterProps=["sx"];const d=c},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},9172:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,Q:()=>s});var o=n(8168),r=n(5043);function s(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(r.isValidElement(e)||!s(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=a(e[n])})),t}function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const l=n.clone?(0,o.A)({},e):e;return s(e)&&s(t)&&Object.keys(t).forEach((o=>{r.isValidElement(t[o])?l[o]=t[o]:s(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&s(e[o])?l[o]=i(e[o],t[o],n):n.clone?l[o]=s(t[o])?a(t[o]):t[o]:l[o]=t[o]})),l}},9214:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},9303:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>i});var o=n(5043);const r={};const s=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function i(){const e=function(e,t){const n=o.useRef(r);return n.current===r&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,o.useEffect(t,s),e}},9369:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,E:()=>g,T:()=>u,c:()=>f,h:()=>p,w:()=>d});var o=n(5043),r=n(3803),s=n(1722),a=n(6598),i=n(9436),l=o.createContext("undefined"!==typeof HTMLElement?(0,r.A)({key:"css"}):null),c=l.Provider,d=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(l);return e(t,r,n)}))},u=o.createContext({});var p={}.hasOwnProperty,h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var n={};for(var o in t)p.call(t,o)&&(n[o]=t[o]);return n[h]=e,n},m=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return(0,s.SF)(t,n,o),(0,i.s)((function(){return(0,s.sk)(t,n,o)})),null},g=d((function(e,t,n){var r=e.css;"string"===typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[h],l=[r],c="";"string"===typeof e.className?c=(0,s.Rk)(t.registered,l,e.className):null!=e.className&&(c=e.className+" ");var d=(0,a.J)(l,void 0,o.useContext(u));c+=t.key+"-"+d.name;var f={};for(var g in e)p.call(e,g)&&"css"!==g&&g!==h&&(f[g]=e[g]);return f.className=c,n&&(f.ref=n),o.createElement(o.Fragment,null,o.createElement(m,{cache:t,serialized:d,isStringTag:"string"===typeof i}),o.createElement(i,f))}))},9386:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const o=e=>e,r=(()=>{let e=o;return{configure(t){e=t},generate:t=>e(t),reset(){e=o}}})()},9436:(e,t,n)=>{"use strict";var o;n.d(t,{i:()=>i,s:()=>a});var r=n(5043),s=!!(o||(o=n.t(r,2))).useInsertionEffect&&(o||(o=n.t(r,2))).useInsertionEffect,a=s||function(e){return e()},i=s||r.useLayoutEffect},9482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.A,isPlainObject:()=>o.Q});var o=n(9172)},9662:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var o=n(8168),r=n(5043),s=n(8587),a=n(8387),i=n(8610),l=n(6803),c=n(8206),d=n(4535),u=n(2532),p=n(2372);function h(e){return(0,p.Ay)("MuiSvgIcon",e)}(0,u.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(579);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,d.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.A)(n.color))],t["fontSize".concat((0,l.A)(n.fontSize))]]}})((e=>{let{theme:t,ownerState:n}=e;var o,r,s,a,i,l,c,d,u,p,h,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(o=t.transitions)||null==(r=o.create)?void 0:r.call(o,"fill",{duration:null==(s=t.transitions)||null==(s=s.duration)?void 0:s.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(d=t.typography)||null==(u=d.pxToRem)?void 0:u.call(d,35))||"2.1875rem"}[n.fontSize],color:null!=(p=null==(h=(t.vars||t).palette)||null==(h=h[n.color])?void 0:h.main)?p:{action:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}})),x=r.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiSvgIcon"}),{children:d,className:u,color:p="inherit",component:x="svg",fontSize:b="medium",htmlColor:v,inheritViewBox:y=!1,titleAccess:w,viewBox:k="0 0 24 24"}=n,S=(0,s.A)(n,m),j=r.isValidElement(d)&&"svg"===d.type,C=(0,o.A)({},n,{color:p,component:x,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:k,hasSvgAsChild:j}),A={};y||(A.viewBox=k);const N=(e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(n))]};return(0,i.A)(r,h,o)})(C);return(0,f.jsxs)(g,(0,o.A)({as:x,className:(0,a.A)(N.root,u),focusable:"false",color:v,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},A,S,j&&d.props,{ownerState:C,children:[j?d.props.children:d,w?(0,f.jsx)("title",{children:w}):null]}))}));x.muiName="SvgIcon";const b=x;function v(e,t){function n(n,r){return(0,f.jsx)(b,(0,o.A)({"data-testid":"".concat(t,"Icon"),ref:r},n,{children:e}))}return n.muiName=b.muiName,r.memo(r.forwardRef(n))}},9703:(e,t,n)=>{"use strict";function o(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const o=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[o]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>o})},9751:(e,t,n)=>{"use strict";n.d(t,{EU:()=>i,NI:()=>a,iZ:()=>c,kW:()=>d,vf:()=>l,zu:()=>r});var o=n(9172);const r={xs:0,sm:600,md:900,lg:1200,xl:1536},s={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(r[e],"px)")};function a(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||s;return t.reduce(((o,r,s)=>(o[e.up(e.keys[s])]=n(t[s]),o)),{})}if("object"===typeof t){const e=o.breakpoints||s;return Object.keys(t).reduce(((o,s)=>{if(-1!==Object.keys(e.values||r).indexOf(s)){o[e.up(s)]=n(t[s],s)}else{const e=s;o[e]=t[e]}return o}),{})}return n(t)}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=i(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];const a=[t,...r].reduce(((e,t)=>(0,o.A)(e,t)),{});return l(Object.keys(t),a)}function d(e){let{values:t,breakpoints:n,base:o}=e;const r=o||function(e,t){if("object"!==typeof e)return{};const n={},o=Object.keys(t);return Array.isArray(e)?o.forEach(((t,o)=>{o<e.length&&(n[t]=!0)})):o.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),s=Object.keys(r);if(0===s.length)return t;let a;return s.reduce(((e,n,o)=>(Array.isArray(t)?(e[n]=null!=t[o]?t[o]:t[a],a=o):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"===typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"===typeof o.then)return o}var s=Object.create(null);n.r(s);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>o[e]));return a.default=()=>o,n.d(s,a),s}})(),n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{Decoder:()=>Rt,Encoder:()=>Pt,PacketType:()=>_t,protocol:()=>Et});var t={};n.r(t),n.d(t,{hasBrowserEnv:()=>Kn,hasStandardBrowserEnv:()=>$n,hasStandardBrowserWebWorkerEnv:()=>Jn,navigator:()=>qn,origin:()=>Yn});var o=n(5043),r=n(4391);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function i(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d=e=>"string"===typeof e,u=()=>{let e,t;const n=new Promise(((n,o)=>{e=n,t=o}));return n.resolve=e,n.reject=t,n},p=e=>null==e?"":""+e,h=/###/g,f=e=>e&&e.indexOf("###")>-1?e.replace(h,"."):e,m=e=>!e||d(e),g=(e,t,n)=>{const o=d(t)?t.split("."):t;let r=0;for(;r<o.length-1;){if(m(e))return{};const t=f(o[r]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return m(e)?{}:{obj:e,k:f(o[r])}},x=(e,t,n)=>{const{obj:o,k:r}=g(e,t,Object);if(void 0!==o||1===t.length)return void(o[r]=n);let s=t[t.length-1],a=t.slice(0,t.length-1),i=g(e,a,Object);for(;void 0===i.obj&&a.length;)s="".concat(a[a.length-1],".").concat(s),a=a.slice(0,a.length-1),i=g(e,a,Object),i&&i.obj&&"undefined"!==typeof i.obj["".concat(i.k,".").concat(s)]&&(i.obj=void 0);i.obj["".concat(i.k,".").concat(s)]=n},b=(e,t)=>{const{obj:n,k:o}=g(e,t);if(n)return n[o]},v=(e,t,n)=>{for(const o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?d(e[o])||e[o]instanceof String||d(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):v(e[o],t[o],n):e[o]=t[o]);return e},y=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var w={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const k=e=>d(e)?e.replace(/[&<>"'\/]/g,(e=>w[e])):e;const S=[" ",",","?","!",";"],j=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),C=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const o=t.split(n);let r=e;for(let s=0;s<o.length;){if(!r||"object"!==typeof r)return;let e,t="";for(let a=s;a<o.length;++a)if(a!==s&&(t+=n),t+=o[a],e=r[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&a<o.length-1)continue;s+=a-s+1;break}r=e}return r},A=e=>e&&e.replace("_","-"),N={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||N,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,o){return o&&!this.debug?null:(d(e[0])&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}create(e){return new E(this.logger,c(c({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new E(this.logger,e)}}var _=new E;class P{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,o]=e;for(let r=0;r<o;r++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[o,r]=t;for(let s=0;s<r;s++)o.apply(o,[e,...n])}))}}}class M extends P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,s=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):d(n)&&r?a.push(...n.split(r)):a.push(n)));const i=b(this.data,a);return!i&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!i&&s&&d(n)?C(this.data&&this.data[e]&&this.data[e][t],n,r):i}addResource(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),x(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}addResources(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)(d(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);let i=b(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?v(i,n,r):i=c(c({},i),n),x(this.data,a,i),s.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?c(c({},{}),this.getResource(e,t)):this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var R={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,r){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,o,r))})),t}};const O={};class T extends P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach((e=>{t[e]&&(n[e]=t[e])}))})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=_.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const s=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";const o=S.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===o.length)return!0;const r=j.getRegExp("(".concat(o.map((e=>"?"===e?"\\?":e)).join("|"),")"));let s=!r.test(e);if(!s){const t=e.indexOf(n);t>0&&!r.test(e.substring(0,t))&&(s=!0)}return s})(e,n,o);if(s&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:d(r)?[r]:r};const s=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(o)}return{key:e,namespaces:d(r)?[r]:r}}translate(e,t,n){if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t=c({},t)),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);const o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],t),i=a[a.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(i).concat(e).concat(s),usedKey:s,exactUsedKey:s,usedLng:l,usedNS:i,usedParams:this.getUsedParamsDetails(t)}:"".concat(i).concat(e).concat(s)}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:i,usedParams:this.getUsedParamsDetails(t)}:s}const p=this.resolve(e,t);let h=p&&p.res;const f=p&&p.usedKey||s,m=p&&p.exactUsedKey||s,g=Object.prototype.toString.apply(h),x=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!d(h)&&"boolean"!==typeof h&&"number"!==typeof h;if(!(b&&h&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||d(x)&&Array.isArray(h))if(b&&d(x)&&Array.isArray(h))h=h.join(x),h&&(h=this.extendTranslation(h,e,t,n));else{let o=!1,a=!1;const u=void 0!==t.count&&!d(t.count),f=T.hasDefaultValue(t),m=u?this.pluralResolver.getSuffix(l,t.count,t):"",g=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",x=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),b=x&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(m)]||t["defaultValue".concat(g)]||t.defaultValue;!this.isValidLookup(h)&&f&&(o=!0,h=b),this.isValidLookup(h)||(a=!0,h=s);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,y=f&&b!==h&&this.options.updateMissing;if(a||o||y){if(this.logger.log(y?"updateKey":"missingKey",l,i,s,y?b:h),r){const e=this.resolve(s,c(c({},t),{},{keySeparator:!1}));e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const o=(e,n,o)=>{const r=f&&o!==h?o:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,i,n,r,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,i,n,r,y,t),this.emit("missingKey",e,i,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);x&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]&&n.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&n.push("".concat(this.options.pluralSeparator,"zero")),n.forEach((n=>{o([e],s+n,t["defaultValue".concat(n)]||b)}))})):o(e,s,b))}h=this.extendTranslation(h,e,t,p,n),a&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(i,":").concat(s)),(a||o)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(i,":").concat(s):s,o?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,h,c(c({},t),{},{ns:a})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return o?(p.res=e,p.usedParams=this.getUsedParamsDetails(t),p):e}if(r){const e=Array.isArray(h),n=e?[]:{},o=e?m:f;for(const s in h)if(Object.prototype.hasOwnProperty.call(h,s)){const e="".concat(o).concat(r).concat(s);n[s]=this.translate(e,c(c({},t),{joinArrays:!1,ns:a})),n[s]===e&&(n[s]=h[s])}h=n}}return o?(p.res=h,p.usedParams=this.getUsedParamsDetails(t),p):h}extendTranslation(e,t,n,o,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,c(c({},this.options.interpolation.defaultVariables),n),n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(c(c({},n),{interpolation:c(c({},this.options.interpolation),n.interpolation)}));const a=d(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let i;if(a){const t=e.match(this.interpolator.nestingRegexp);i=t&&t.length}let l=n.replace&&!d(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=c(c({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,n.lng||this.language||o.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);i<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];return r&&r[0]===o[0]&&!n.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):s.translate(...o,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,i=d(a)?[a]:a;return void 0!==e&&null!==e&&i&&i.length&&!1!==n.applyPostProcessor&&(e=R.handle(i,e,t,this.options&&this.options.postProcessPassResolved?c({i18nResolved:c(c({},o),{},{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}resolve(e){let t,n,o,r,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(e)&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const i=this.extractFromKey(e,a),l=i.key;n=l;let c=i.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&!d(a.count),p=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==a.context&&(d(a.context)||"number"===typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(s=e,!O["".concat(f[0],"-").concat(e)]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(O["".concat(f[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((n=>{if(this.isValidLookup(t))return;r=n;const s=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t="".concat(this.options.pluralSeparator,"zero"),o="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(u&&(s.push(l+e),a.ordinal&&0===e.indexOf(o)&&s.push(l+e.replace(o,this.options.pluralSeparator)),p&&s.push(l+t)),h){const n="".concat(l).concat(this.options.contextSeparator).concat(a.context);s.push(n),u&&(s.push(n+e),a.ordinal&&0===e.indexOf(o)&&s.push(n+e.replace(o,this.options.pluralSeparator)),p&&s.push(n+t))}}let i;for(;i=s.pop();)this.isValidLookup(t)||(o=i,t=this.getResource(n,e,i,a))})))}))})),{res:t,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:s}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!d(e.replace);let o=n?e.replace:e;if(n&&"undefined"!==typeof e.count&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o=c(c({},this.options.interpolation.defaultVariables),o)),!n){o=c({},o);for(const e of t)delete o[e]}return o}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}const L=e=>e.charAt(0).toUpperCase()+e.slice(1);class I{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_.create("languageUtils")}getScriptPartFromCode(e){if(!(e=A(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=A(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(d(e)&&e.indexOf("-")>-1){if("undefined"!==typeof Intl&&"undefined"!==typeof Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(t){}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let o=e.split("-");return this.options.lowerCaseLng?o=o.map((e=>e.toLowerCase())):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=L(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=L(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=L(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),d(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],r=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return d(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):d(e)&&r(this.formatLanguageCode(e)),n.forEach((e=>{o.indexOf(e)<0&&r(this.formatLanguageCode(e))})),o}}let D=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],z={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const F=["v1","v2","v3"],B=["v4"],W={zero:0,one:1,two:2,few:3,many:4,other:5};class U{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=_.create("pluralResolver"),this.options.compatibilityJSON&&!B.includes(this.options.compatibilityJSON)||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return D.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:z[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const o=A("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:o,type:r});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let a;try{a=new Intl.PluralRules(o,{type:r})}catch(n){if(!e.match(/-|_/))return;const o=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(o,t)}return this.pluralRulesCache[s]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>"".concat(t).concat(e)))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>W[e]-W[t])).map((e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e))):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(o.select(t)):this.getSuffixRetroCompatible(o,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let o=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));const r=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return"v1"===this.options.compatibilityJSON?1===o?"":"number"===typeof o?"_plural_".concat(o.toString()):r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!F.includes(this.options.compatibilityJSON)}}const H=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=((e,t,n)=>{const o=b(e,n);return void 0!==o?o:b(t,n)})(e,t,n);return!s&&r&&d(n)&&(s=C(e,n,o),void 0===s&&(s=C(t,n,o))),s},V=e=>e.replace(/\$/g,"$$$$");class K{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=_.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:o,prefix:r,prefixEscaped:s,suffix:a,suffixEscaped:i,formatSeparator:l,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:x}=e.interpolation;this.escape=void 0!==t?t:k,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=r?y(r):s||"{{",this.suffix=a?y(a):i||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=u?y(u):p||y("$t("),this.nestingSuffix=h?y(h):f||y(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==x&&x,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}interpolate(e,t,n,o){let r,s,a;const i=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const r=H(t,i,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,c(c(c({},o),t),{},{interpolationkey:e})):r}const r=e.split(this.formatSeparator),s=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(H(t,i,s,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,c(c(c({},o),t),{},{interpolationkey:s}))};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>V(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?V(this.escape(e)):V(e)}].forEach((t=>{for(a=0;r=t.regex.exec(e);){const n=r[1].trim();if(s=l(n),void 0===s)if("function"===typeof u){const t=u(e,r,o);s=d(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))s="";else{if(h){s=r[0];continue}this.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),s=""}else d(s)||this.useRawValueToEscape||(s=p(s));const i=t.safeValue(s);if(e=e.replace(r[0],i),h?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,o,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const o=e.split(new RegExp("".concat(n,"[ ]*{")));let s="{".concat(o[1]);e=o[0],s=this.interpolate(s,r);const a=s.match(/'/g),i=s.match(/"/g);(a&&a.length%2===0&&!i||i.length%2!==0)&&(s=s.replace(/'/g,'"'));try{r=JSON.parse(s),t&&(r=c(c({},t),r))}catch(l){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),l),"".concat(e).concat(n).concat(s)}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let i=[];r=c({},s),r=r.replace&&!d(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),i=e,l=!0}if(o=t(a.call(this,n[1].trim(),r),r),o&&n[0]===e&&!d(o))return o;d(o)||(o=p(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),l&&(o=i.reduce(((e,t)=>this.format(e,t,s.lng,c(c({},s),{},{interpolationkey:n[1].trim()}))),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}const q=e=>{const t={};return(n,o,r)=>{let s=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(s=c(c({},s),{},{[r.interpolationkey]:void 0}));const a=o+JSON.stringify(s);let i=t[a];return i||(i=e(A(o),r),t[a]=i),i(n)}};class ${constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=_.create("formatter"),this.options=e,this.formats={number:q(((e,t)=>{const n=new Intl.NumberFormat(e,c({},t));return e=>n.format(e)})),currency:q(((e,t)=>{const n=new Intl.NumberFormat(e,c(c({},t),{},{style:"currency"}));return e=>n.format(e)})),datetime:q(((e,t)=>{const n=new Intl.DateTimeFormat(e,c({},t));return e=>n.format(e)})),relativetime:q(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,c({},t));return e=>n.format(e,t.range||"day")})),list:q(((e,t)=>{const n=new Intl.ListFormat(e,c({},t));return e=>n.format(e)}))},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=q(t)}format(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find((e=>e.indexOf(")")>-1))){const e=r.findIndex((e=>e.indexOf(")")>-1));r[0]=[r[0],...r.splice(1,e)].join(this.formatSeparator)}return r.reduce(((e,t)=>{const{formatName:r,formatOptions:s}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const o=e.split("(");t=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);"currency"===t&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===t&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((e=>{if(e){const[t,...o]=e.split(":"),r=o.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();n[s]||(n[s]=r),"false"===r&&(n[s]=!1),"true"===r&&(n[s]=!0),isNaN(r)||(n[s]=parseInt(r,10))}}))}return{formatName:t,formatOptions:n}})(t);if(this.formats[r]){let t=e;try{const a=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},i=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[r](e,i,c(c(c({},s),o),a))}catch(a){this.logger.warn(a)}return t}return this.logger.warn("there was no format function for ".concat(r)),e}),e)}}class J extends P{constructor(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=_.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(e,t,n,o){const r={},s={},a={},i={};return e.forEach((e=>{let o=!0;t.forEach((t=>{const a="".concat(e,"|").concat(t);!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===s[a]&&(s[a]=!0):(this.state[a]=1,o=!1,void 0===s[a]&&(s[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===i[t]&&(i[t]=!0)))})),o||(a[e]=!0)})),(Object.keys(r).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(r),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(i)}}loaded(e,t,n){const o=e.split("|"),r=o[0],s=o[1];t&&this.emit("failedLoading",r,s,t),!t&&n&&this.store.addResourceBundle(r,s,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach((n=>{((e,t,n)=>{const{obj:o,k:r}=g(e,t,Object);o[r]=o[r]||[],o[r].push(n)})(n.loaded,[r],s),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:r,callback:s});this.readingCalls++;const a=(a,i)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&i&&o<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,o+1,2*r,s)}),r):s(a,i)},i=this.backend[n].bind(this.backend);if(2!==i.length)return i(e,t,a);try{const n=i(e,t);n&&"function"===typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(l){a(l)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();d(e)&&(e=this.languageUtils.toResolveHierarchy(e)),d(t)&&(t=[t]);const r=this.queueLoad(e,t,n,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),o=n[0],r=n[1];this.read(o,r,"read",void 0,void 0,((n,s)=>{n&&this.logger.warn("".concat(t,"loading namespace ").concat(r," for language ").concat(o," failed"),n),!n&&s&&this.logger.log("".concat(t,"loaded namespace ").concat(r," for language ").concat(o),s),this.loaded(e,n,s)}))}saveMissing(e,t,n,o,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(void 0!==n&&null!==n&&""!==n){if(this.backend&&this.backend.create){const l=c(c({},s),{},{isUpdate:r}),d=this.backend.create.bind(this.backend);if(d.length<6)try{let r;r=5===d.length?d(e,t,n,o,l):d(e,t,n,o),r&&"function"===typeof r.then?r.then((e=>a(null,e))).catch(a):a(null,r)}catch(i){a(i)}else d(e,t,n,o,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}const Y=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"===typeof e[1]&&(t=e[1]),d(e[1])&&(t.defaultValue=e[1]),d(e[2])&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),G=e=>(d(e.ns)&&(e.ns=[e.ns]),d(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),d(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),X=()=>{};class Z extends P{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=G(e),this.services={},this.logger=_,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"===typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(d(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const o=Y();this.options=c(c(c({},o),this.options),G(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=c(c({},o.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const r=e=>e?"function"===typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?_.init(r(this.modules.logger),this.options):_.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!==typeof Intl&&(t=$);const n=new I(this.options);this.store=new M(this.options.resources,this.options);const s=this.services;s.logger=_,s.resourceStore=this.store,s.languageUtils=n,s.pluralResolver=new U(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format||(s.formatter=r(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new K(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new J(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit(t,...o)})),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new T(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit(t,...o)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=X),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const s=u(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;const n=d(e)?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],o=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)o(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>o(e)))}this.options.preload&&this.options.preload.forEach((e=>o(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const o=u();return"function"===typeof e&&(n=e,e=void 0),"function"===typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=X),this.services.backendConnector.reload(e,t,(e=>{o.resolve(),n(e)})),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&R.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const o=u();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,s)=>{s?(r(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,o.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n=d(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{s(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}getFixedT(e,t,n){var o=this;const r=function(e,t){let s;if("object"!==typeof t){for(var a=arguments.length,i=new Array(a>2?a-2:0),l=2;l<a;l++)i[l-2]=arguments[l];s=o.options.overloadTranslationOptionHandler([e,t].concat(i))}else s=c({},t);s.lng=s.lng||r.lng,s.lngs=s.lngs||r.lngs,s.ns=s.ns||r.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||n||r.keyPrefix);const d=o.options.keySeparator||".";let u;return u=s.keyPrefix&&Array.isArray(e)?e.map((e=>"".concat(s.keyPrefix).concat(d).concat(e))):s.keyPrefix?"".concat(s.keyPrefix).concat(d).concat(e):e,o.t(u,s)};return d(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const s=(e,t)=>{const n=this.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,s);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!s(n,e)||o&&!s(r,e)))}loadNamespaces(e,t){const n=u();return this.options.ns?(d(e)&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=u();d(e)&&(e=[e]);const o=this.options.preload||[],r=e.filter((e=>o.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return r.length?(this.options.preload=o.concat(r),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new I(Y());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new Z(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const o=c(c(c({},this.options),e),{isClone:!0}),r=new Z(o);void 0===e.debug&&void 0===e.prefix||(r.logger=r.logger.clone(e));return["store","services","language"].forEach((e=>{r[e]=this[e]})),r.services=c({},this.services),r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new M(this.store.data,o),r.services.resourceStore=r.store),r.translator=new T(r.services,o),r.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r.emit(e,...n)})),r.init(o,t),r.translator.options=o,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Q=Z.createInstance();Q.createInstance=Z.createInstance;Q.createInstance,Q.dir,Q.init,Q.loadResources,Q.reloadResources,Q.use,Q.changeLanguage,Q.getFixedT,Q.t,Q.exists,Q.setDefaultNamespace,Q.hasLoadedNamespace,Q.loadNamespaces,Q.loadLanguages;n(1844);Object.create(null);const ee={};function te(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];se(t[0])&&ee[t[0]]||(se(t[0])&&(ee[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];se(t[0])&&(t[0]="react-i18next:: ".concat(t[0])),console.warn(...t)}}(...t))}const ne=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},oe=(e,t,n)=>{e.loadNamespaces(t,ne(e,n))},re=(e,t,n,o)=>{se(n)&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,ne(e,o))},se=e=>"string"===typeof e,ae=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ie={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},le=e=>ie[e];let ce={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(ae,le)};let de;const ue={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ce=c(c({},ce),e)}(e.options.react),(e=>{de=e})(e)}},pe=(0,o.createContext)();class he{constructor(){i(this,"getUsedNamespaces",(()=>Object.keys(this.usedNamespaces))),this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}}const fe=(e,t,n,o)=>e.getFixedT(t,n,o),me=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=(0,o.useContext)(pe)||{},a=n||r||de;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new he),!a){te("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return se(t)?t:"object"===typeof(n=t)&&null!==n&&se(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react&&void 0!==a.options.react.wait&&te("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i=c(c(c({},ce),a.options.react),t),{useSuspense:l,keyPrefix:d}=i;let u=e||s||a.options&&a.options.defaultNS;u=se(u)?[u]:u||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(u);const p=(a.isInitialized||a.initializedStoreOnce)&&u.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.languages[0],r=!!t.options&&t.options.fallbackLng,s=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;const a=(e,n)=>{const o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===o||2===o};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(o,e)||!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(o,e)||r&&!a(s,e)))}(e,t,n):(te("i18n.languages were undefined or empty",t.languages),!0)}(e,a,i))),h=((e,t,n,r)=>(0,o.useCallback)(fe(e,t,n,r),[e,t,n,r]))(a,t.lng||null,"fallback"===i.nsMode?u:u[0],d),f=()=>h,m=()=>fe(a,t.lng||null,"fallback"===i.nsMode?u:u[0],d),[g,x]=(0,o.useState)(f);let b=u.join();t.lng&&(b="".concat(t.lng).concat(b));const v=((e,t)=>{const n=(0,o.useRef)();return(0,o.useEffect)((()=>{n.current=t?n.current:e}),[e,t]),n.current})(b),y=(0,o.useRef)(!0);(0,o.useEffect)((()=>{const{bindI18n:e,bindI18nStore:n}=i;y.current=!0,p||l||(t.lng?re(a,t.lng,u,(()=>{y.current&&x(m)})):oe(a,u,(()=>{y.current&&x(m)}))),p&&v&&v!==b&&y.current&&x(m);const o=()=>{y.current&&x(m)};return e&&a&&a.on(e,o),n&&a&&a.store.on(n,o),()=>{y.current=!1,e&&a&&e.split(" ").forEach((e=>a.off(e,o))),n&&a&&n.split(" ").forEach((e=>a.store.off(e,o)))}}),[a,b]),(0,o.useEffect)((()=>{y.current&&p&&x(f)}),[a,d,p]);const w=[g,a,p];if(w.t=g,w.i18n=a,w.ready=p,p)return w;if(!p&&!l)return w;throw new Promise((e=>{t.lng?re(a,t.lng,u,(()=>e())):oe(a,u,(()=>e()))}))};const ge=JSON.parse('{"nav":{"processes":"Processes","remoteServers":"Remote Servers","metrics":"Metrics","deployApp":"Deploy App","pm2Modules":"PM2 Modules","ecosystemConfig":"Ecosystem Config","cluster":"Cluster","cronJobs":"Cron Jobs","loadBalancing":"Load Balancing","settings":"Settings","management":"Management","localServer":"Local Server"},"header":{"noPasswordSet":"No password set \u2014 go to Settings / Security to enable","enablePasswordProtection":"Enable password protection in Settings","updateAvailable":"A newer version of EZ PM2 GUI is available","switchToLocal":"Switch to Local","update":"Update","star":"Star","starTooltip":"Star EZ PM2 GUI on GitHub","viewOnGitHub":"View on GitHub","whatsNew":"What\'s New","about":"About","lightMode":"Switch to light mode","darkMode":"Switch to dark mode","lockApp":"Lock app","collapseSidebar":"Collapse sidebar","expandSidebar":"Expand sidebar","settings":"Settings"},"sidebar":{"processes":"Processes","notConnected":"Not connected","loading":"Loading...","noProcesses":"No processes"},"status":{"online":"Online","stopped":"Stopped","errored":"Errored","stopping":"Stopping","launching":"Launching","unknown":"Unknown"},"actions":{"start":"Start","stop":"Stop","restart":"Restart","delete":"Delete","reload":"Reload","viewLogs":"View Logs","save":"Save","cancel":"Cancel","confirm":"Confirm","close":"Close","refresh":"Refresh"},"settings":{"title":"Settings","subtitle":"Application preferences and configuration","autoSaved":"Auto-saved","sections":{"general":"General","appearance":"Appearance","pm2":"PM2","advanced":"Advanced","updates":"Updates","security":"Security"},"language":"Language","selectLanguage":"Select Language","theme":"Theme","darkMode":"Dark Mode","lightMode":"Light Mode","cards":{"dashboard":"Dashboard","logs":"Logs","theme":"Theme","pm2Executable":"PM2 Executable","reset":"Reset","data":"Data","version":"Version","installUpdate":"Install Update","installOutput":"Install Output","applyUpdate":"Apply Update","status":"Status","changePassword":"Change Password","setPassword":"Set Password","removePassword":"Remove Password","pinProtection":"PIN Protection","autoLock":"Auto-Lock"},"rows":{"autoRefresh":"Auto Refresh","autoRefreshDesc":"Automatically refresh process data at a set interval","refreshInterval":"Refresh Interval","refreshIntervalDesc":"How often to poll for updated process data","logLines":"Log Lines to Display","logLinesDesc":"Maximum number of log lines shown in the log viewer","showTimestamps":"Show Timestamps","showTimestampsDesc":"Display timestamps alongside each log line","compactMode":"Compact Mode","compactModeDesc":"Reduce padding and spacing for a denser layout","accentColor":"Accent Color","accentColorDesc":"Primary color used for highlights and active states","pm2Path":"PM2 Path","pm2PathDesc":"Absolute path or command name for the PM2 binary","resetToDefaults":"Reset to Defaults","resetToDefaultsDesc":"Restore all settings to their original default values","clearLocalStorage":"Clear Local Storage","clearLocalStorageDesc":"Wipe all locally stored data including preferences and cached values","currentVersion":"Current Version","currentVersionDesc":"The version of ezpm2gui currently running","latestOnNpm":"Latest on npm","latestOnNpmDesc":"The most recent published version from the npm registry","statusLabel":"Status","passwordProtection":"Password Protection","passwordProtectionDesc":"When enabled, a password is required to access EZ PM2 GUI","disabled":"Disabled","currentPassword":"Current Password","currentPasswordDesc":"Required to change the existing password","newPassword":"New Password","newPasswordDesc":"Minimum 4 characters","confirmPassword":"Confirm Password","confirmPasswordDesc":"Re-enter new password to confirm","disableProtection":"Disable Protection","disableProtectionDesc":"Enter your current password to remove password protection","pinStatus":"PIN Status","pinStatusDesc":"A 4-digit PIN can be used on the lock screen as an alternative to your password","changePin":"Change PIN","setPin":"Set PIN","pinDesc":"Enter a 4-digit numeric PIN","removePin":"Remove PIN","removePinDesc":"Enter your current password to remove PIN protection","lockAfterInactivity":"Lock after inactivity","lockAfterInactivityDesc":"Automatically lock the app after a period of inactivity. Set to 0 to disable.","reloadPage":"Reload Page","reloadPageDesc":"Refresh to load the updated frontend assets immediately","restartServer":"Restart Server","restartServerDesc":"Restarts the Node.js server process to apply backend changes. Requires a process manager (PM2, systemd, nodemon) to respawn the process."},"buttons":{"reset":"Reset","clearAll":"Clear All","checking":"Checking...","checkForUpdates":"Check for Updates","installing":"Installing...","installUpdate":"Install Update","reload":"Reload","restarting":"Restarting...","restartServer":"Restart Server","saving":"Saving...","change":"Change","enable":"Enable","removing":"Removing...","remove":"Remove","save":"Save"},"messages":{"resetToDefaults":"Reset to defaults","dataCleared":"All local data cleared","saved":"Saved","pinMustBe4Digits":"PIN must be exactly 4 digits","pinsDoNotMatch":"PINs do not match","pinChanged":"PIN changed successfully","pinEnabled":"PIN protection enabled","pinRemoved":"PIN protection removed","passwordChanged":"Password changed successfully","passwordEnabled":"Password protection enabled","passwordRemoved":"Password protection removed","enterPasswordToRemovePin":"Enter your current password to remove the PIN","enterPasswordToRemove":"Enter your current password to remove protection","failedSavePin":"Failed to save PIN","failedRemovePin":"Failed to remove PIN","failedSavePassword":"Failed to save password","failedRemovePassword":"Failed to remove password","networkError":"Network error \u2014 could not reach the server","failedCheckUpdates":"Failed to check for updates","networkErrorNpm":"Network error \u2014 could not reach npm registry","failedSaveAutolock":"Failed to save auto-lock setting","autoLockDisabled":"Auto-lock disabled","min":"min"},"notes":{"darkModeToggle":"Dark / light mode is toggled from the top-right sun/moon icon in the navigation bar.","clearDataNote":"Clearing local storage will remove all saved preferences. The page will revert to defaults on next load.","securityNote":"The password is hashed with PBKDF2 (SHA-512, 100,000 iterations) and stored server-side. It is never stored in plain text.","clickToFetch":"Click Check for Updates to fetch latest version info","latestPublishedPrefix":"Latest published:"},"intervals":{"every1s":"Every 1s","every2s":"Every 2s","every3s":"Every 3s","every5s":"Every 5s","every10s":"Every 10s","every30s":"Every 30s"},"colors":{"blue":"Blue","purple":"Purple","green":"Green","orange":"Orange"}},"dashboard":{"title":"Process Dashboard","search":"Search processes...","filterStatus":"Filter by status","all":"All","totalProcesses":"Total Processes","running":"Running","stopped":"Stopped","errored":"Errored","loadingData":"Loading PM2 data\u2026"},"process":{"id":"ID","name":"Name","status":"Status","cpu":"CPU","memory":"Memory","uptime":"Uptime","restarts":"Restarts","pid":"PID","namespace":"Namespace","version":"Version","mode":"Mode"},"about":{"title":"About EZ PM2 GUI","description":"A modern web-based GUI for PM2 process manager","version":"Version","github":"View on GitHub","license":"License"},"common":{"start":"Start","stop":"Stop","restart":"Restart","delete":"Delete","reload":"Reload","save":"Save","cancel":"Cancel","confirm":"Confirm","close":"Close","refresh":"Refresh","add":"Add","edit":"Edit","preview":"Preview","deploy":"Deploy","install":"Install","uninstall":"Uninstall","configure":"Configure","yes":"Yes","no":"No","na":"N/A","loading":"Loading...","all":"All","online":"Online","stopped":"Stopped","errored":"Errored","connected":"Connected","disconnected":"Disconnected","total":"Total","enabled":"Enabled","running":"Running","scheduled":"Scheduled","id":"ID","name":"Name","status":"Status","cpu":"CPU","memory":"Memory","uptime":"Uptime","restarts":"Restarts","mode":"Mode","pid":"PID","actions":"Actions","details":"Details","logs":"Logs","metrics":"Metrics","namespace":"Namespace","version":"Version","script":"Script","port":"Port","key":"Key","value":"Value","search":"Search","download":"Download","noData":"No data available"},"mainDashboard":{"title":"Process Dashboard","subtitle":"Monitor and manage your PM2 processes in real-time","searchPlaceholder":"Search processes by name or ID...","allNamespaces":"All Namespaces","allProcesses":"All Processes","onlineOnly":"Online Only","stoppedOnly":"Stopped Only","erroredOnly":"Errored Only"},"processList":{"noProcessesTitle":"No PM2 Processes Found","noProcessesDesc":"Make sure PM2 is running and has active processes to display them here.","appProcesses":"Application Processes","noAppProcesses":"No application processes running.","pm2Modules":"PM2 Modules","process":"process","processes":"processes"},"processDetail":{"loadingDetails":"Loading process details\u2026","backToList":"Back to Process List","information":"Information","environment":"Environment","processStatus":"Process Status","resourceUsage":"Resource Usage","cpuUsage":"CPU Usage","memoryUsage":"Memory Usage","processDetails":"Process Details","workingDirectory":"Working Directory","interpreter":"Interpreter","watching":"Watching","notRunning":"Not running","environmentVariables":"Environment Variables","noEnvVars":"No environment variables found.","scriptPath":"Script Path","execMode":"Exec Mode","instances":"Instances","createdAt":"Created At","startedAt":"Started At"},"metricsPage":{"title":"Metrics","live":"Live","history":"History","min":"Min","avg":"Avg","max":"Max","currentCpu":"Current CPU Usage","currentMemory":"Current Memory Usage","cpuOverTime":"CPU Usage Over Time","memoryOverTime":"Memory Usage Over Time","cpuDataset":"CPU Usage (%)","memoryDataset":"Memory Usage (MB)"},"remoteConnections":{"title":"Remote Connections","subtitle":"Manage SSH connections and remote PM2 processes","noConnections":"No remote connections configured. Click \\"Add Connection\\" to get started.","processes":"Processes","systemInfo":"System Info","connectionName":"Connection Name","host":"Host","port":"Port","username":"Username","password":"Password","passwordPlaceholder":"Leave blank to keep existing password","leaveBlankCurrent":"Leave blank to keep current password","privateKey":"Private Key (optional)","privateKeyPlaceholder":"-----BEGIN OPENSSH PRIVATE KEY-----","useSudo":"Use sudo for privileged commands (requires password)","addConnection":"Add Connection","addRemoteConnection":"Add Remote Connection","editConnection":"Edit Connection","editRemoteConnection":"Edit Remote Connection","updateConnection":"Update Connection","testConnection":"Test Connection","deleteConnection":"Delete Connection","installPm2":"Install PM2","notConnected":"Not Connected","connecting":"Connecting...","failedToConnect":"Failed to connect","connectionFailed":"Connection failed: {{message}}","disconnectFailed":"Disconnect failed","connectAll":"Connect All","disconnectAll":"Disconnect All","connect":"Connect","disconnect":"Disconnect","connected":"Connected","disconnected":"Disconnected","clickRefreshToLoad":"Click refresh to load processes.","noPm2Processes":"No PM2 processes running on this server.","colName":"Name","colStatus":"Status","colCpu":"CPU","colMemory":"Memory","colUptime":"Uptime","colActions":"Actions","systemInformation":"System Information","resources":"Resources","hostname":"Hostname","platform":"Platform","architecture":"Architecture","nodeJs":"Node.js","totalMemory":"Total Memory","freeMemory":"Free Memory","cpuCount":"CPU Count","loadAverage":"Load Average","noSystemInfo":"No system info available.","tabProcesses":"Processes","tabSystemInfo":"System Info","logStreamingError":"Log streaming error: {{error}}","failedToLoadConnections":"Failed to load connections","failedToConnectInvalidResponse":"Failed to connect (Invalid server response)","failedToLoadProcesses":"Failed to load processes: {{error}}","failedToLoadProcessesNetwork":"Failed to load processes: network error","failedToOpenLiveLogs":"Failed to open live logs","failedToProcessAction":"Failed to {{action}} process","processActionFailed":"Process {{action}} failed","failedToAddConnection":"Failed to add connection","failedToUpdateConnection":"Failed to update connection","failedToDeleteConnection":"Failed to delete connection"},"remoteEnhancedLogs":{"title":"Enhanced Logs","subtitle":"Unified log viewer across local and remote servers","tabLogViewer":"Log Viewer","tabStatistics":"Statistics","tabServerTree":"Server Tree","serversFilter":"Servers","applicationsFilter":"Applications","timeRange":"Time Range","lastHour":"Last Hour","last6Hours":"Last 6 Hours","last24Hours":"Last 24 Hours","allTime":"All Time","logTypes":"Log Types:","stdout":"Stdout","stderr":"Stderr","levels":"Levels:","logsCount":"Logs ({{count}})","streaming":"STREAMING","noLogsFound":"No logs found matching the current filters","server":"Server: {{name}}","totalLogs":"Total Logs: {{count}}","errors":"{{count}} Errors","warnings":"{{count}} Warnings","info":"{{count}} Info","lastLog":"Last log: {{time}}","serverAndAppTree":"Server and Application Tree","noApplicationsFound":"No applications found","checkRemoteConnection":"Check remote connection","noPm2Running":"No PM2 processes running"},"deploy":{"newProcess":"new process","deploying":"deploying\u2026","deployBtn":"deploy","sectionType":"type","sectionIdentity":"identity","sectionEntryPoint":"entry point","sectionRuntime":"runtime","sectionEnvironment":"environment","sectionLog":"log","fieldName":"name","fieldNamespace":"namespace","fieldDirectory":"directory","fieldInterpreter":"interpreter","fieldExecMode":"exec mode","fieldMaxMemory":"max memory","fieldPort":"port","scriptLabelNode":"entry file","scriptLabelPython":"python file","scriptLabelDotnet":"dll path","scriptLabelOther":"script/binary","workingDirectoryHelper":"leave empty to use script\'s directory","autoDetect":"Auto-detect project type","toggleAutorestart":"autorestart","toggleWatch":"watch","toggleAutoSetup":"auto_setup","instancesCluster":"{{count}} instances \xb7 cluster mode (shared port)","instancesFork":"{{count}} instances \xb7 consider cluster mode for load balancing","addEnvVar":"add","noEnvVarsHint":"# no environment variables \u2014 type above and press enter","unnamed":"unnamed","deployingStatus":"deploying","envCount":"{{count}} env","portError":"must be 1\u201365535","setWorkingDirectoryFirst":"set working directory or entry file first","detectedProject":"detected: {{name}}","couldNotDetect":"could not detect project type","detectionFailed":"detection failed","deploymentFailed":"deployment failed","deployedSuccessfully":"deployed successfully","portInUse":"port {{port}} is already in use","failedToDeploy":"failed to deploy"},"modules":{"title":"PM2 Modules","noModules":"No modules installed.","installModule":"Install Module","moduleName":"Module Name"},"ecosystem":{"title":"Ecosystem Generator","subtitle":"Generate an ecosystem.config.js from your current PM2 processes","generateFile":"Generate File","outputOptions":"Output Options","savePath":"Save Path (optional)","savePathPlaceholder":"/path/to/ecosystem.config.js","savePathHelper":"Leave empty to save in the current working directory","includeStopped":"Include stopped processes","previewTitle":"ecosystem.config.js \u2014 Preview","saveFile":"Save File"},"cluster":{"title":"Cluster Management","subtitle":"Scale processes and manage execution modes","selectProcess":"Select Process","choosePlaceholder":"\u2014 choose a process \u2014","selectHint":"Select a process above to view cluster options","currentStatus":"Current Status","scaleUp":"Scale Up","scaleDown":"Scale Down","reload":"Reload","instances":"Instances","scale":"Scale","scaleInstances":"Scale Instances","executionMode":"Execution Mode","execModeHeader":"Exec Mode","switchToFork":"Switch to Fork","switchToCluster":"Switch to Cluster","clusterModeDesc":"Run in cluster mode to distribute load across all CPU cores","zeroDowntimeReload":"Zero-Downtime Reload","reloadDesc":"Graceful reload restarts instances one by one to maintain availability","gracefulReload":"Graceful Reload"},"cronJobs":{"title":"Cron Jobs","subtitle":"Schedule and manage automated tasks using PM2\'s cron feature","createJob":"Create Job","total":"Total","enabled":"Enabled","running":"Running","scheduled":"Scheduled","cronSchedule":"Cron Schedule","usePreset":"Use Preset","custom":"Custom","everyMinute":"Every minute","every5Minutes":"Every 5 minutes","every15Minutes":"Every 15 minutes","every30Minutes":"Every 30 minutes","everyHour":"Every hour","every6Hours":"Every 6 hours","everydayMidnight":"Every day at midnight","everydayNoon":"Every day at noon","everyMondayAm":"Every Monday at 9 AM","everyWeekdayAm":"Every weekday at 9 AM","everyMonthFirst":"Every month on the 1st","jobName":"Job Name","expression":"Expression","nextRun":"Next Run","lastRun":"Last Run","noJobs":"No cron jobs configured.","deleteJob":"Delete Job","enableJob":"Enable","disableJob":"Disable","type":"Type","disabled":"Disabled","editJob":"Edit Cron Job","basicInfo":"Basic Information","scriptConfig":"Script Configuration","scriptType":"Script Type","scriptMode":"Script Mode","writeInline":"Write Script Inline","useFile":"Use Script File","scriptPath":"Script Path","workingDir":"Working Directory","scriptArgs":"Script Arguments (Optional)","addArgument":"Add argument","envVars":"Environment Variables (Optional)","saving":"Saving...","update":"Update","create":"Create","deleteCronJobTitle":"Delete Cron Job","deleteCronJobMessage":"Are you sure you want to delete this cron job?","buildVisually":"Build cron expression visually","minute":"Minute","hour":"Hour","dayOfMonth":"Day of Month","month":"Month","dayOfWeek":"Day of Week","nextRunLabel":"Next run:"},"loadBalancing":{"title":"Load Balancing Guide","subtitle":"How to set up PM2 cluster mode and distribute traffic across CPU cores","goToCluster":"Go to Cluster Management","whatIsTitle":"What is PM2 Load Balancing?","whatIsDesc":"PM2\'s built-in load balancer distributes incoming traffic across multiple instances of your application, automatically utilizing all CPU cores.","benefit1":"Utilise all CPU cores for maximum throughput","benefit2":"Distribute incoming requests across worker processes","benefit3":"Enable zero-downtime reloads during deployments","settingUpTitle":"Setting Up Load Balancing","settingUpDesc":"Two settings are required in your ecosystem.config.js:","multipleInstances":"Multiple Instances","clusterMode":"Cluster Mode","bestPractices":"Best Practices"},"logs":{"stdout":"Standard Output Logs","stderr":"Error Output Logs","startStreaming":"Start Streaming","stopStreaming":"Stop Streaming","allTypes":"All","stdoutType":"stdout","stderrType":"stderr","lines100":"100 lines","lines500":"500 lines","lines1000":"1,000 lines","linesAll":"All","autoRefresh":"Auto-refresh","autoScroll":"Auto-scroll","clearLogs":"Clear","noLogs":"No log entries.","searchLogs":"Search logs...","downloadLogs":"Download Logs","streaming":"Streaming","paused":"Paused","filterLogs":"Filter logs...","noLogsAvailable":"No logs available","noLogsInRange":"No logs found in the selected date range","liveStream":"Live Stream","stopStream":"Stop Stream","standardOut":"Standard out","standardErr":"Standard err","loadingLogs":"Loading logs...","applyingFilter":"Applying filter\u2026","filterActive":"Filter active","dateRange":"Date range","fromDate":"From","toDate":"To","selectProcessHint":"Select a process from the sidebar to view logs","refreshNow":"Refresh now","noEntriesFilter":"No log entries for this filter."},"passwordGate":{"title":"EZ PM2 GUI","enterPin":"Enter your PIN to continue","enterPassword":"Enter your password to continue","pinMode":"PIN","passwordMode":"Password","clear":"Clear","passwordPlaceholder":"Password","verifying":"Verifying\u2026","unlock":"Unlock","incorrectPin":"Incorrect PIN","incorrectPassword":"Incorrect password","serverError":"Could not reach the server."},"monitDashboard":{"title":"Process Monitor","subtitle":"Real-time CPU, memory and uptime by process","refresh":"Refresh","total":"Total","cpuPeak":"CPU Peak","memPeak":"Mem Peak","highestProcess":"highest process","noProcesses":"No processes running","online":"online","stopped":"stopped"},"processConfig":{"savedSuccess":"Configuration saved successfully","saveError":"Failed to save configuration","title":"Process Configuration","scriptPath":"Script Path","workingDir":"Current Working Directory","instances":"Instances","execMode":"Execution Mode","autoRestart":"Auto Restart","watchChanges":"Watch for Changes","maxMemory":"Max Memory Restart","envVars":"Environment Variables","remove":"Remove","newKey":"New Key","newValue":"New Value","saveConfig":"Save Configuration","loading":"Loading configuration...","notFound":"Configuration not found"},"statusBar":{"tip":"TIP","dismiss":"Dismiss","tip1":"Use pm2 save to persist your process list across reboots.","tip2":"Cluster mode spreads your app across all CPU cores for maximum throughput.","tip3":"PM2 automatically restarts crashed processes \u2014 no babysitting required.","tip4":"Use an Ecosystem Config file to manage all your apps in one place.","tip5":"Watch mode restarts your app automatically whenever a source file changes.","tip6":"Log rotation prevents log files from growing unbounded on long-running servers.","tip7":"You can assign a namespace to group related processes together in the dashboard.","tip8":"Remote Servers lets you monitor and control PM2 on other machines from here.","tip9":"The Deploy App wizard generates a pm2 start command from a visual form."},"systemMetrics":{"systemUptime":"System Uptime","loadAvg":"Load Avg","memory":"Memory","cpuCores":"CPU Cores","cpuUsage":"CPU Usage"},"whatsNew":{"title":"What\'s New","subtitle":"EZ PM2 GUI \xb7 April 2026","fullChangelog":"Full changelog","gotIt":"Got it","feature1Title":"Live Metrics Page","feature2Title":"Metrics History (SQLite)","feature3Title":"Inline Sparklines","feature4Title":"Background Metrics Poller","feature5Title":"30-Day Retention","feature1Desc":"Per-process rolling 1-hour CPU and memory sparklines, updated every 3s. Find it under Metrics in the sidebar.","feature2Desc":"Remote process metrics recorded every 30s to a local SQLite DB. View CPU and memory charts across 30 min to 7 days.","feature3Desc":"Every row in the Metrics table now shows a 1-hour CPU and memory micro-graph \u2014 no extra click required.","feature4Desc":"Server-side poller samples connected remote servers every 30s regardless of which page you are on.","feature5Desc":"Historical metrics auto-purge after 30 days to keep the database lean. Downsampling kicks in beyond 500 points.","pageSubtitle":"Latest updates and improvements to EZ PM2 GUI","configureSecurity":"Configure Security","configureSecurityDesc":"Set up PIN and password protection from Settings.","openSettings":"Open Settings"},"scriptEditor":{"title":"Inline Script","tip":"Tip: Use console.log/print/echo for output. Scripts should exit when complete."},"serverSwitcher":{"title":"Switch active server","local":"Local","localhost":"localhost","remoteServers":"Remote Servers"},"confirmDialog":{"confirm":"Confirm","cancel":"Cancel"},"advancedMonitoring":{"title":"Advanced Monitoring","healthScore":"Health Score","alerts":"Alerts","noAlerts":"No active alerts","timeRange":"Time Range","30min":"30 min","1hr":"1 hr","6hr":"6 hr","12hr":"12 hr","24hr":"24 hr","7days":"7 days","subtitle":"Real-time system and process performance trends","live":"Live","systemHealth":"System Health","activeProcesses":"Active Processes","ofTotal":"of {{count}} total","memoryUsage":"Memory Usage","cpuLoad":"CPU Load","coresAvailable":"{{count}} cores available","activeAlerts":"Active Alerts","allHealthy":"All systems healthy","processPerformance":"Process Performance","cpuDataset":"CPU Usage (%)","memDataset":"Memory Usage (GB)"},"metricsHistory":{"title":"Metrics History","subtitle":"CPU & memory history per process \u2014 last 3 minutes, refreshed every 3 s","live":"Live","paused":"Paused","loading":"Loading metrics history...","noHistory":"No history yet...","window":"Window","sparklineHint":"sparkline"},"remoteMetrics":{"title":"Remote Metrics","subtitle":"CPU and memory history for remote PM2 processes","connection":"Connection","process":"Process","range":"Range","autoRefresh":"Auto-refresh (30s)","on":"On","off":"Off","selectConnection":"Select a connection to view recorded metrics","metricsRecorded":"Metrics are recorded every 30 seconds while a remote server is connected","noData":"No data yet \u2014 connect a remote server and wait for the first poll cycle","noProcesses":"No processes recorded for this connection yet","cpuUsage":"CPU Usage","memoryUsage":"Memory Usage","recentSamples":"Recent Samples (last 20)","time":"Time","noDataRange":"No data for selected range","refresh":"Refresh"},"logPanel":{"pause":"Pause","resume":"Resume","clear":"Clear","close":"Close","expand":"Expand","collapse":"Collapse","closeSession":"Close session","waiting":"waiting for logs\u2026","paused":"paused","linesToLoad":"Lines to load","scanningDir":"Scanning log directory\u2026","downloadFullFile":"Download full file"},"errors":{"failedToConnect":"Failed to connect to the server. Is PM2 running?","pm2NotInstalled":"PM2 is not installed. Please install PM2 globally: npm install -g pm2","failedToFetchModules":"Failed to fetch modules","moduleNameRequired":"Module name is required","connectionLost":"Connection to server lost. Trying to reconnect...","failedFetchRemote":"Failed to fetch processes from remote server: {{error}}","failedProcessAction":"Failed to {{action}} process. {{error}}","failedConnectTo":"Failed to connect to {{name}}: {{error}}","failedRefreshProcessData":"Failed to refresh process data"}}'),xe=JSON.parse('{"nav":{"processes":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942","remoteServers":"\u0930\u093f\u092e\u094b\u091f \u0938\u0930\u094d\u092d\u0930\u0939\u0930\u0942","metrics":"\u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938","deployApp":"\u090f\u092a \u0921\u093f\u092a\u094d\u0932\u094b\u092f","pm2Modules":"PM2 \u092e\u094b\u0921\u094d\u092f\u0941\u0932\u0939\u0930\u0942","ecosystemConfig":"\u0907\u0915\u094b\u0938\u093f\u0938\u094d\u091f\u092e \u0915\u0928\u094d\u092b\u093f\u0917","cluster":"\u0915\u094d\u0932\u0938\u094d\u091f\u0930","cronJobs":"\u0915\u094d\u0930\u094b\u0928 \u091c\u092c\u0939\u0930\u0942","loadBalancing":"\u0932\u094b\u0921 \u092c\u094d\u092f\u093e\u0932\u0947\u0928\u094d\u0938\u093f\u0919","settings":"\u0938\u0947\u091f\u093f\u0919","management":"\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e\u092a\u0928","localServer":"\u0932\u094b\u0915\u0932 \u0938\u0930\u094d\u092d\u0930"},"header":{"noPasswordSet":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u0947\u091f \u091b\u0948\u0928 \u2014 \u0938\u0947\u091f\u093f\u0919 / \u0938\u0941\u0930\u0915\u094d\u0937\u093e\u092e\u093e \u091c\u093e\u0928\u0941\u0939\u094b\u0938\u094d \u0930 \u0938\u0915\u094d\u0937\u092e \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","enablePasswordProtection":"\u0938\u0947\u091f\u093f\u0919\u094d\u0938\u092e\u093e \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0938\u0915\u094d\u0937\u092e \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","updateAvailable":"EZ PM2 GUI \u0915\u094b \u0928\u092f\u093e\u0901 \u0938\u0902\u0938\u094d\u0915\u0930\u0923 \u0909\u092a\u0932\u092c\u094d\u0927 \u091b","switchToLocal":"\u0932\u094b\u0915\u0932\u092e\u093e \u0938\u094d\u0935\u093f\u091a \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","update":"\u0905\u092a\u0921\u0947\u091f","star":"\u0938\u094d\u091f\u093e\u0930","starTooltip":"GitHub \u092e\u093e EZ PM2 GUI \u0938\u094d\u091f\u093e\u0930 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","viewOnGitHub":"GitHub \u092e\u093e \u0939\u0947\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","whatsNew":"\u0928\u092f\u093e\u0901 \u0915\u0947 \u091b","about":"\u092c\u093e\u0930\u0947\u092e\u093e","lightMode":"\u0932\u093e\u0907\u091f \u092e\u094b\u0921\u092e\u093e \u0938\u094d\u0935\u093f\u091a \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","darkMode":"\u0921\u093e\u0930\u094d\u0915 \u092e\u094b\u0921\u092e\u093e \u0938\u094d\u0935\u093f\u091a \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","lockApp":"\u090f\u092a \u0932\u0915 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","collapseSidebar":"\u0938\u093e\u0907\u0921\u092c\u093e\u0930 \u0938\u0919\u094d\u0915\u0941\u091a\u093f\u0924 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","expandSidebar":"\u0938\u093e\u0907\u0921\u092c\u093e\u0930 \u0935\u093f\u0938\u094d\u0924\u093e\u0930 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","settings":"\u0938\u0947\u091f\u093f\u0919"},"sidebar":{"processes":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942","notConnected":"\u091c\u0921\u093e\u0928 \u091b\u0948\u0928","loading":"\u0932\u094b\u0921 \u0939\u0941\u0901\u0926\u0948\u091b...","noProcesses":"\u0915\u0941\u0928\u0948 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u091b\u0948\u0928"},"status":{"online":"\u0905\u0928\u0932\u093e\u0907\u0928","stopped":"\u0930\u094b\u0915\u093f\u090f\u0915\u094b","errored":"\u0924\u094d\u0930\u0941\u091f\u093f","stopping":"\u0930\u094b\u0915\u093f\u0901\u0926\u0948\u091b","launching":"\u0938\u0941\u0930\u0941 \u0939\u0941\u0901\u0926\u0948\u091b","unknown":"\u0905\u091c\u094d\u091e\u093e\u0924"},"actions":{"start":"\u0938\u0941\u0930\u0941 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","stop":"\u0930\u094b\u0915\u094d\u0928\u0941\u0939\u094b\u0938\u094d","restart":"\u092a\u0941\u0928\u0903 \u0938\u0941\u0930\u0941 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","delete":"\u092e\u0947\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","reload":"\u092a\u0941\u0928\u0903 \u0932\u094b\u0921","viewLogs":"\u0932\u0917\u0939\u0930\u0942 \u0939\u0947\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","save":"\u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","cancel":"\u0930\u0926\u094d\u0926 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","confirm":"\u092a\u0941\u0937\u094d\u091f\u093f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","close":"\u092c\u0928\u094d\u0926 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","refresh":"\u0930\u093f\u092b\u094d\u0930\u0947\u0938 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d"},"settings":{"title":"\u0938\u0947\u091f\u093f\u0919","subtitle":"\u090f\u092a\u094d\u0932\u093f\u0915\u0947\u0938\u0928 \u092a\u094d\u0930\u093e\u0925\u092e\u093f\u0915\u0924\u093e\u0939\u0930\u0942 \u0930 \u0915\u0928\u094d\u092b\u093f\u0917\u0930\u0947\u0938\u0928","autoSaved":"\u0938\u094d\u0935\u0924\u0903 \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924","sections":{"general":"\u0938\u093e\u092e\u093e\u0928\u094d\u092f","appearance":"\u0909\u092a\u0938\u094d\u0925\u093f\u0924\u093f","pm2":"PM2","advanced":"\u0909\u0928\u094d\u0928\u0924","updates":"\u0905\u092a\u0921\u0947\u091f\u0939\u0930\u0942","security":"\u0938\u0941\u0930\u0915\u094d\u0937\u093e"},"language":"\u092d\u093e\u0937\u093e","selectLanguage":"\u092d\u093e\u0937\u093e \u091a\u092f\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","theme":"\u0925\u093f\u092e","darkMode":"\u0921\u093e\u0930\u094d\u0915 \u092e\u094b\u0921","lightMode":"\u0932\u093e\u0907\u091f \u092e\u094b\u0921","cards":{"dashboard":"\u0921\u094d\u092f\u093e\u0938\u092c\u094b\u0930\u094d\u0921","logs":"\u0932\u0917\u0939\u0930\u0942","theme":"\u0925\u093f\u092e","pm2Executable":"PM2 \u0915\u093e\u0930\u094d\u092f\u093e\u0928\u094d\u0935\u092f\u0928\u092f\u094b\u0917\u094d\u092f","reset":"\u0930\u093f\u0938\u0947\u091f","data":"\u0921\u0947\u091f\u093e","version":"\u0938\u0902\u0938\u094d\u0915\u0930\u0923","installUpdate":"\u0905\u092a\u0921\u0947\u091f \u0938\u094d\u0925\u093e\u092a\u0928\u093e \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","installOutput":"\u0938\u094d\u0925\u093e\u092a\u0928\u093e \u0906\u0909\u091f\u092a\u0941\u091f","applyUpdate":"\u0905\u092a\u0921\u0947\u091f \u0932\u093e\u0917\u0942 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","status":"\u0905\u0935\u0938\u094d\u0925\u093e","changePassword":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","setPassword":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u0947\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","removePassword":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0939\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","pinProtection":"\u092a\u093f\u0928 \u0938\u0941\u0930\u0915\u094d\u0937\u093e","autoLock":"\u0938\u094d\u0935\u0924\u0903 \u0932\u0915"},"rows":{"autoRefresh":"\u0938\u094d\u0935\u0924\u0903 \u0930\u093f\u092b\u094d\u0930\u0947\u0938","autoRefreshDesc":"\u0928\u093f\u0930\u094d\u0927\u093e\u0930\u093f\u0924 \u0905\u0928\u094d\u0924\u0930\u093e\u0932\u092e\u093e \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0921\u0947\u091f\u093e \u0938\u094d\u0935\u0924\u0903 \u0930\u093f\u092b\u094d\u0930\u0947\u0938 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","refreshInterval":"\u0930\u093f\u092b\u094d\u0930\u0947\u0938 \u0905\u0928\u094d\u0924\u0930\u093e\u0932","refreshIntervalDesc":"\u0905\u092a\u0921\u0947\u091f \u0917\u0930\u093f\u090f\u0915\u094b \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0921\u0947\u091f\u093e\u0915\u094b \u0932\u093e\u0917\u093f \u092a\u094b\u0932 \u0917\u0930\u094d\u0928\u0947 \u0906\u0935\u0943\u0924\u094d\u0924\u093f","logLines":"\u092a\u094d\u0930\u0926\u0930\u094d\u0936\u0928 \u0917\u0930\u094d\u0928\u0947 \u0932\u0917 \u0932\u093e\u0907\u0928\u0939\u0930\u0942","logLinesDesc":"\u0932\u0917 \u0935\u094d\u092f\u0942\u0905\u0930\u092e\u093e \u0926\u0947\u0916\u093e\u0907\u0928\u0947 \u0905\u0927\u093f\u0915\u0924\u092e \u0932\u0917 \u0932\u093e\u0907\u0928 \u0938\u0902\u0916\u094d\u092f\u093e","showTimestamps":"\u091f\u093e\u0907\u092e\u0938\u094d\u091f\u094d\u092f\u093e\u092e\u094d\u092a \u0926\u0947\u0916\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","showTimestampsDesc":"\u092a\u094d\u0930\u0924\u094d\u092f\u0947\u0915 \u0932\u0917 \u0932\u093e\u0907\u0928\u0915\u094b \u0938\u093e\u0925\u092e\u093e \u091f\u093e\u0907\u092e\u0938\u094d\u091f\u094d\u092f\u093e\u092e\u094d\u092a \u092a\u094d\u0930\u0926\u0930\u094d\u0936\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","compactMode":"\u0915\u092e\u094d\u092a\u094d\u092f\u093e\u0915\u094d\u091f \u092e\u094b\u0921","compactModeDesc":"\u0918\u0928\u093e \u0932\u0947\u0906\u0909\u091f\u0915\u094b \u0932\u093e\u0917\u093f \u092a\u094d\u092f\u093e\u0921\u093f\u0919 \u0930 \u0938\u094d\u092a\u0947\u0938\u093f\u0919 \u0915\u092e \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","accentColor":"\u090f\u0915\u094d\u0938\u0947\u0928\u094d\u091f \u0930\u0919","accentColorDesc":"\u0939\u093e\u0907\u0932\u093e\u0907\u091f \u0930 \u0938\u0915\u094d\u0930\u093f\u092f \u0905\u0935\u0938\u094d\u0925\u093e\u0939\u0930\u0942\u0915\u094b \u0932\u093e\u0917\u093f \u092a\u094d\u0930\u093e\u0925\u092e\u093f\u0915 \u0930\u0919","pm2Path":"PM2 \u092a\u093e\u0925","pm2PathDesc":"PM2 \u092c\u093e\u0907\u0928\u0930\u0940\u0915\u094b \u0932\u093e\u0917\u093f \u092a\u0942\u0930\u094d\u0923 \u092a\u093e\u0925 \u0935\u093e \u0915\u092e\u093e\u0923\u094d\u0921 \u0928\u093e\u092e","resetToDefaults":"\u092a\u0942\u0930\u094d\u0935\u0928\u093f\u0930\u094d\u0927\u093e\u0930\u093f\u0924\u092e\u093e \u0930\u093f\u0938\u0947\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","resetToDefaultsDesc":"\u0938\u092c\u0948 \u0938\u0947\u091f\u093f\u0919\u0939\u0930\u0942 \u0909\u0928\u0940\u0939\u0930\u0942\u0915\u094b \u092e\u0942\u0932 \u092a\u0942\u0930\u094d\u0935\u0928\u093f\u0930\u094d\u0927\u093e\u0930\u093f\u0924 \u092e\u093e\u0928\u092e\u093e \u092a\u0941\u0928\u0930\u094d\u0938\u094d\u0925\u093e\u092a\u093f\u0924 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","clearLocalStorage":"\u0932\u094b\u0915\u0932 \u0938\u094d\u091f\u094b\u0930\u0947\u091c \u0916\u093e\u0932\u0940 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","clearLocalStorageDesc":"\u092a\u094d\u0930\u093e\u0925\u092e\u093f\u0915\u0924\u093e\u0939\u0930\u0942 \u0930 \u0915\u094d\u092f\u093e\u0938 \u0917\u0930\u093f\u090f\u0915\u093e \u092e\u093e\u0928\u0939\u0930\u0942 \u0938\u0939\u093f\u0924 \u0938\u092c\u0948 \u0938\u094d\u0925\u093e\u0928\u0940\u092f \u0930\u0942\u092a\u092e\u093e \u092d\u0923\u094d\u0921\u093e\u0930\u0923 \u0917\u0930\u093f\u090f\u0915\u094b \u0921\u0947\u091f\u093e \u092e\u0947\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","currentVersion":"\u0939\u093e\u0932\u0915\u094b \u0938\u0902\u0938\u094d\u0915\u0930\u0923","currentVersionDesc":"\u0939\u093e\u0932 \u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b ezpm2gui \u0915\u094b \u0938\u0902\u0938\u094d\u0915\u0930\u0923","latestOnNpm":"npm \u092e\u093e \u0928\u0935\u0940\u0928\u0924\u092e","latestOnNpmDesc":"npm \u0930\u0947\u091c\u093f\u0938\u094d\u091f\u094d\u0930\u0940\u092c\u093e\u091f \u0938\u092c\u0948\u092d\u0928\u094d\u0926\u093e \u0939\u093e\u0932\u0915\u094b \u092a\u094d\u0930\u0915\u093e\u0936\u093f\u0924 \u0938\u0902\u0938\u094d\u0915\u0930\u0923","statusLabel":"\u0905\u0935\u0938\u094d\u0925\u093e","passwordProtection":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u0941\u0930\u0915\u094d\u0937\u093e","passwordProtectionDesc":"\u0938\u0915\u094d\u0937\u092e \u0917\u0930\u094d\u0926\u093e EZ PM2 GUI \u092a\u0939\u0941\u0901\u091a \u0917\u0930\u094d\u0928 \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0906\u0935\u0936\u094d\u092f\u0915 \u0939\u0941\u0928\u094d\u091b","disabled":"\u0905\u0938\u0915\u094d\u0937\u092e","currentPassword":"\u0939\u093e\u0932\u0915\u094b \u092a\u093e\u0938\u0935\u0930\u094d\u0921","currentPasswordDesc":"\u0905\u0935\u0938\u094d\u0925\u093f\u0924 \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928 \u0917\u0930\u094d\u0928 \u0906\u0935\u0936\u094d\u092f\u0915","newPassword":"\u0928\u092f\u093e\u0901 \u092a\u093e\u0938\u0935\u0930\u094d\u0921","newPasswordDesc":"\u0928\u094d\u092f\u0942\u0928\u0924\u092e \u096a \u0905\u0915\u094d\u0937\u0930","confirmPassword":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u092a\u0941\u0937\u094d\u091f\u093f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","confirmPasswordDesc":"\u092a\u0941\u0937\u094d\u091f\u093f \u0917\u0930\u094d\u0928 \u0928\u092f\u093e\u0901 \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u092a\u0941\u0928\u0903 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","disableProtection":"\u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0905\u0938\u0915\u094d\u0937\u092e \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","disableProtectionDesc":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0939\u091f\u093e\u0909\u0928 \u0924\u092a\u093e\u0908\u0902\u0915\u094b \u0939\u093e\u0932\u0915\u094b \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","pinStatus":"\u092a\u093f\u0928 \u0905\u0935\u0938\u094d\u0925\u093e","pinStatusDesc":"\u096a-\u0905\u0919\u094d\u0915\u0915\u094b \u092a\u093f\u0928 \u0924\u092a\u093e\u0908\u0902\u0915\u094b \u092a\u093e\u0938\u0935\u0930\u094d\u0921\u0915\u094b \u0935\u093f\u0915\u0932\u094d\u092a\u0915\u094b \u0930\u0942\u092a\u092e\u093e \u0932\u0915 \u0938\u094d\u0915\u094d\u0930\u093f\u0928\u092e\u093e \u092a\u094d\u0930\u092f\u094b\u0917 \u0917\u0930\u094d\u0928 \u0938\u0915\u093f\u0928\u094d\u091b","changePin":"\u092a\u093f\u0928 \u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","setPin":"\u092a\u093f\u0928 \u0938\u0947\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","pinDesc":"\u096a-\u0905\u0919\u094d\u0915\u0915\u094b \u0938\u0902\u0916\u094d\u092f\u093e\u0924\u094d\u092e\u0915 \u092a\u093f\u0928 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","removePin":"\u092a\u093f\u0928 \u0939\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","removePinDesc":"\u092a\u093f\u0928 \u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0939\u091f\u093e\u0909\u0928 \u0924\u092a\u093e\u0908\u0902\u0915\u094b \u0939\u093e\u0932\u0915\u094b \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","lockAfterInactivity":"\u0928\u093f\u0937\u094d\u0915\u094d\u0930\u093f\u092f\u0924\u093e \u092a\u091b\u093f \u0932\u0915","lockAfterInactivityDesc":"\u0928\u093f\u0937\u094d\u0915\u094d\u0930\u093f\u092f\u0924\u093e\u0915\u094b \u0905\u0935\u0927\u093f \u092a\u091b\u093f \u090f\u092a \u0938\u094d\u0935\u0924\u0903 \u0932\u0915 \u0939\u0941\u0928\u094d\u091b\u0964 \u0905\u0938\u0915\u094d\u0937\u092e \u0917\u0930\u094d\u0928 \u0966 \u0938\u0947\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964","reloadPage":"\u092a\u0947\u091c \u092a\u0941\u0928\u0903 \u0932\u094b\u0921 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","reloadPageDesc":"\u0905\u092a\u0921\u0947\u091f \u0917\u0930\u093f\u090f\u0915\u094b \u092b\u094d\u0930\u0928\u094d\u091f\u090f\u0928\u094d\u0921 \u090f\u0938\u0947\u091f\u0939\u0930\u0942 \u0924\u0941\u0930\u0941\u0928\u094d\u0924\u0948 \u0932\u094b\u0921 \u0917\u0930\u094d\u0928 \u0930\u093f\u092b\u094d\u0930\u0947\u0938 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","restartServer":"\u0938\u0930\u094d\u092d\u0930 \u092a\u0941\u0928\u0903 \u0938\u0941\u0930\u0941 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","restartServerDesc":"\u092c\u094d\u092f\u093e\u0915\u090f\u0928\u094d\u0921 \u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928\u0939\u0930\u0942 \u0932\u093e\u0917\u0942 \u0917\u0930\u094d\u0928 Node.js \u0938\u0930\u094d\u092d\u0930 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u092a\u0941\u0928\u0903 \u0938\u0941\u0930\u0941 \u0917\u0930\u094d\u0926\u091b\u0964"},"buttons":{"reset":"\u0930\u093f\u0938\u0947\u091f","clearAll":"\u0938\u092c\u0948 \u0916\u093e\u0932\u0940 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","checking":"\u091c\u093e\u0901\u091a \u0939\u0941\u0901\u0926\u0948\u091b...","checkForUpdates":"\u0905\u092a\u0921\u0947\u091f\u0939\u0930\u0942 \u091c\u093e\u0901\u091a \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","installing":"\u0938\u094d\u0925\u093e\u092a\u0928\u093e \u0939\u0941\u0901\u0926\u0948\u091b...","installUpdate":"\u0905\u092a\u0921\u0947\u091f \u0938\u094d\u0925\u093e\u092a\u0928\u093e \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","reload":"\u092a\u0941\u0928\u0903 \u0932\u094b\u0921","restarting":"\u092a\u0941\u0928\u0903 \u0938\u0941\u0930\u0941 \u0939\u0941\u0901\u0926\u0948\u091b...","restartServer":"\u0938\u0930\u094d\u092d\u0930 \u092a\u0941\u0928\u0903 \u0938\u0941\u0930\u0941 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","saving":"\u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0939\u0941\u0901\u0926\u0948\u091b...","change":"\u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928","enable":"\u0938\u0915\u094d\u0937\u092e","removing":"\u0939\u091f\u093e\u0907\u0901\u0926\u0948\u091b...","remove":"\u0939\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","save":"\u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924"},"messages":{"resetToDefaults":"\u092a\u0942\u0930\u094d\u0935\u0928\u093f\u0930\u094d\u0927\u093e\u0930\u093f\u0924\u092e\u093e \u0930\u093f\u0938\u0947\u091f \u0917\u0930\u093f\u092f\u094b","dataCleared":"\u0938\u092c\u0948 \u0932\u094b\u0915\u0932 \u0921\u0947\u091f\u093e \u0916\u093e\u0932\u0940 \u0917\u0930\u093f\u092f\u094b","saved":"\u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u092d\u092f\u094b","pinMustBe4Digits":"\u092a\u093f\u0928 \u0920\u0940\u0915 \u096a \u0905\u0919\u094d\u0915\u0915\u094b \u0939\u0941\u0928\u0941\u092a\u0930\u094d\u091b","pinsDoNotMatch":"\u092a\u093f\u0928\u0939\u0930\u0942 \u092e\u0947\u0932 \u0916\u093e\u0901\u0926\u0948\u0928\u0928\u094d","pinChanged":"\u092a\u093f\u0928 \u0938\u092b\u0932\u0924\u093e\u092a\u0942\u0930\u094d\u0935\u0915 \u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928 \u092d\u092f\u094b","pinEnabled":"\u092a\u093f\u0928 \u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0938\u0915\u094d\u0937\u092e \u0917\u0930\u093f\u092f\u094b","pinRemoved":"\u092a\u093f\u0928 \u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0939\u091f\u093e\u0907\u092f\u094b","passwordChanged":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u092b\u0932\u0924\u093e\u092a\u0942\u0930\u094d\u0935\u0915 \u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928 \u092d\u092f\u094b","passwordEnabled":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0938\u0915\u094d\u0937\u092e \u0917\u0930\u093f\u092f\u094b","passwordRemoved":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0939\u091f\u093e\u0907\u092f\u094b","enterPasswordToRemovePin":"\u092a\u093f\u0928 \u0939\u091f\u093e\u0909\u0928 \u0924\u092a\u093e\u0908\u0902\u0915\u094b \u0939\u093e\u0932\u0915\u094b \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","enterPasswordToRemove":"\u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0939\u091f\u093e\u0909\u0928 \u0924\u092a\u093e\u0908\u0902\u0915\u094b \u0939\u093e\u0932\u0915\u094b \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","failedSavePin":"\u092a\u093f\u0928 \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932","failedRemovePin":"\u092a\u093f\u0928 \u0939\u091f\u093e\u0909\u0928 \u0905\u0938\u092b\u0932","failedSavePassword":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932","failedRemovePassword":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0939\u091f\u093e\u0909\u0928 \u0905\u0938\u092b\u0932","networkError":"\u0928\u0947\u091f\u0935\u0930\u094d\u0915 \u0924\u094d\u0930\u0941\u091f\u093f \u2014 \u0938\u0930\u094d\u092d\u0930 \u0938\u092e\u094d\u092a\u0930\u094d\u0915 \u0917\u0930\u094d\u0928 \u0938\u0915\u093f\u090f\u0928","failedCheckUpdates":"\u0905\u092a\u0921\u0947\u091f\u0939\u0930\u0942 \u091c\u093e\u0901\u091a \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932","networkErrorNpm":"\u0928\u0947\u091f\u0935\u0930\u094d\u0915 \u0924\u094d\u0930\u0941\u091f\u093f \u2014 npm \u0930\u0947\u091c\u093f\u0938\u094d\u091f\u094d\u0930\u0940 \u0938\u092e\u094d\u092a\u0930\u094d\u0915 \u0917\u0930\u094d\u0928 \u0938\u0915\u093f\u090f\u0928","failedSaveAutolock":"\u0905\u091f\u094b-\u0932\u0915 \u0938\u0947\u091f\u093f\u0919 \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932","autoLockDisabled":"\u0905\u091f\u094b-\u0932\u0915 \u0905\u0938\u0915\u094d\u0937\u092e","min":"\u092e\u093f\u0928\u0947\u091f"},"notes":{"darkModeToggle":"\u0928\u0947\u092d\u093f\u0917\u0947\u0938\u0928 \u092c\u093e\u0930\u092e\u093e \u092e\u093e\u0925\u093f-\u0926\u093e\u092f\u093e\u0901 \u0938\u0942\u0930\u094d\u092f/\u091a\u0928\u094d\u0926\u094d\u0930 \u0906\u0907\u0915\u0928\u092c\u093e\u091f \u0921\u093e\u0930\u094d\u0915/\u0932\u093e\u0907\u091f \u092e\u094b\u0921 \u091f\u0917\u0932 \u0917\u0930\u094d\u0928 \u0938\u0915\u093f\u0928\u094d\u091b\u0964","clearDataNote":"\u0932\u094b\u0915\u0932 \u0938\u094d\u091f\u094b\u0930\u0947\u091c \u0916\u093e\u0932\u0940 \u0917\u0930\u094d\u0926\u093e \u0938\u092c\u0948 \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u092a\u094d\u0930\u093e\u0925\u092e\u093f\u0915\u0924\u093e\u0939\u0930\u0942 \u0939\u091f\u093e\u0907\u0928\u0947\u091b\u0964","securityNote":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921 PBKDF2 (SHA-512, \u0967,\u0966\u0966,\u0966\u0966\u0966 \u092a\u0941\u0928\u0930\u093e\u0935\u0943\u0924\u094d\u0924\u093f) \u0938\u0901\u0917 \u0939\u094d\u092f\u093e\u0938 \u0917\u0930\u093f\u0928\u094d\u091b \u0930 \u0938\u0930\u094d\u092d\u0930-\u0938\u093e\u0907\u0921\u092e\u093e \u092d\u0923\u094d\u0921\u093e\u0930\u0923 \u0917\u0930\u093f\u0928\u094d\u091b\u0964","clickToFetch":"\u0928\u0935\u0940\u0928\u0924\u092e \u0938\u0902\u0938\u094d\u0915\u0930\u0923 \u091c\u093e\u0928\u0915\u093e\u0930\u0940 \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0917\u0930\u094d\u0928 \'\u0905\u092a\u0921\u0947\u091f\u0939\u0930\u0942 \u091c\u093e\u0901\u091a \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\' \u0915\u094d\u0932\u093f\u0915 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","latestPublishedPrefix":"\u0928\u0935\u0940\u0928\u0924\u092e \u092a\u094d\u0930\u0915\u093e\u0936\u093f\u0924:"},"intervals":{"every1s":"\u0939\u0930\u0947\u0915 \u0967 \u0938\u0947\u0915\u0947\u0928\u094d\u0921","every2s":"\u0939\u0930\u0947\u0915 \u0968 \u0938\u0947\u0915\u0947\u0928\u094d\u0921","every3s":"\u0939\u0930\u0947\u0915 \u0969 \u0938\u0947\u0915\u0947\u0928\u094d\u0921","every5s":"\u0939\u0930\u0947\u0915 \u096b \u0938\u0947\u0915\u0947\u0928\u094d\u0921","every10s":"\u0939\u0930\u0947\u0915 \u0967\u0966 \u0938\u0947\u0915\u0947\u0928\u094d\u0921","every30s":"\u0939\u0930\u0947\u0915 \u0969\u0966 \u0938\u0947\u0915\u0947\u0928\u094d\u0921"},"colors":{"blue":"\u0928\u0940\u0932\u094b","purple":"\u092c\u0948\u091c\u0928\u0940","green":"\u0939\u0930\u093f\u092f\u094b","orange":"\u0938\u0941\u0928\u094d\u0924\u0932\u093e"}},"dashboard":{"title":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0921\u094d\u092f\u093e\u0938\u092c\u094b\u0930\u094d\u0921","search":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0916\u094b\u091c\u094d\u0928\u0941\u0939\u094b\u0938\u094d...","filterStatus":"\u0905\u0935\u0938\u094d\u0925\u093e \u0905\u0928\u0941\u0938\u093e\u0930 \u092b\u093f\u0932\u094d\u091f\u0930","all":"\u0938\u092c\u0948","totalProcesses":"\u0915\u0941\u0932 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942","running":"\u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b","stopped":"\u0930\u094b\u0915\u093f\u090f\u0915\u094b","errored":"\u0924\u094d\u0930\u0941\u091f\u093f","loadingData":"PM2 \u0921\u0947\u091f\u093e \u0932\u094b\u0921 \u0939\u0941\u0901\u0926\u0948\u091b\u2026"},"process":{"id":"\u0906\u0908\u0921\u0940","name":"\u0928\u093e\u092e","status":"\u0905\u0935\u0938\u094d\u0925\u093e","cpu":"CPU","memory":"\u092e\u0947\u092e\u094b\u0930\u0940","uptime":"\u0905\u092a\u091f\u093e\u0907\u092e","restarts":"\u092a\u0941\u0928\u0903\u0938\u0941\u0930\u0941","pid":"PID","namespace":"\u0928\u0947\u092e\u0938\u094d\u092a\u0947\u0938","version":"\u0938\u0902\u0938\u094d\u0915\u0930\u0923","mode":"\u092e\u094b\u0921"},"about":{"title":"EZ PM2 GUI \u092c\u093e\u0930\u0947\u092e\u093e","description":"PM2 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u092a\u094d\u0930\u092c\u0928\u094d\u0927\u0915\u0915\u094b \u0932\u093e\u0917\u093f \u0906\u0927\u0941\u0928\u093f\u0915 \u0935\u0947\u092c-\u0906\u0927\u093e\u0930\u093f\u0924 GUI","version":"\u0938\u0902\u0938\u094d\u0915\u0930\u0923","github":"GitHub \u092e\u093e \u0939\u0947\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","license":"\u0932\u093e\u0907\u0938\u0947\u0928\u094d\u0938"},"common":{"start":"\u0938\u0941\u0930\u0941","stop":"\u0930\u094b\u0915\u094d\u0928\u0941\u0939\u094b\u0938\u094d","restart":"\u092a\u0941\u0928\u0903 \u0938\u0941\u0930\u0941","delete":"\u092e\u0947\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","reload":"\u092a\u0941\u0928\u0903 \u0932\u094b\u0921","save":"\u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924","cancel":"\u0930\u0926\u094d\u0926","confirm":"\u092a\u0941\u0937\u094d\u091f\u093f","close":"\u092c\u0928\u094d\u0926","refresh":"\u0930\u093f\u092b\u094d\u0930\u0947\u0938","add":"\u0925\u092a\u094d\u0928\u0941\u0939\u094b\u0938\u094d","edit":"\u0938\u092e\u094d\u092a\u093e\u0926\u0928","preview":"\u092a\u0942\u0930\u094d\u0935\u093e\u0935\u0932\u094b\u0915\u0928","deploy":"\u0921\u093f\u092a\u094d\u0932\u094b\u092f","install":"\u0938\u094d\u0925\u093e\u092a\u0928\u093e","uninstall":"\u0905\u0928\u0938\u094d\u0925\u093e\u092a\u0928\u093e","configure":"\u0915\u0928\u094d\u092b\u093f\u0917\u0930","yes":"\u0939\u094b","no":"\u0939\u094b\u0907\u0928","na":"\u0932\u093e\u0917\u0942 \u0939\u0941\u0901\u0926\u0948\u0928","loading":"\u0932\u094b\u0921 \u0939\u0941\u0901\u0926\u0948\u091b...","all":"\u0938\u092c\u0948","online":"\u0905\u0928\u0932\u093e\u0907\u0928","stopped":"\u0930\u094b\u0915\u093f\u090f\u0915\u094b","errored":"\u0924\u094d\u0930\u0941\u091f\u093f","connected":"\u091c\u0921\u093e\u0928 \u092d\u092f\u094b","disconnected":"\u0935\u093f\u091a\u094d\u091b\u0947\u0926 \u092d\u092f\u094b","total":"\u0915\u0941\u0932","enabled":"\u0938\u0915\u094d\u0937\u092e","running":"\u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b","scheduled":"\u0924\u093e\u0932\u093f\u0915\u093e\u092c\u0926\u094d\u0927","id":"\u0906\u0908\u0921\u0940","name":"\u0928\u093e\u092e","status":"\u0905\u0935\u0938\u094d\u0925\u093e","cpu":"CPU","memory":"\u092e\u0947\u092e\u094b\u0930\u0940","uptime":"\u0905\u092a\u091f\u093e\u0907\u092e","restarts":"\u092a\u0941\u0928\u0903\u0938\u0941\u0930\u0941","mode":"\u092e\u094b\u0921","pid":"PID","actions":"\u0915\u093e\u0930\u094d\u092f\u0939\u0930\u0942","details":"\u0935\u093f\u0935\u0930\u0923","logs":"\u0932\u0917\u0939\u0930\u0942","metrics":"\u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938","namespace":"\u0928\u0947\u092e\u0938\u094d\u092a\u0947\u0938","version":"\u0938\u0902\u0938\u094d\u0915\u0930\u0923","script":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f","port":"\u092a\u094b\u0930\u094d\u091f","key":"\u0915\u0941\u091e\u094d\u091c\u0940","value":"\u092e\u093e\u0928","search":"\u0916\u094b\u091c\u094d\u0928\u0941\u0939\u094b\u0938\u094d","download":"\u0921\u093e\u0909\u0928\u0932\u094b\u0921","noData":"\u0915\u0941\u0928\u0948 \u0921\u0947\u091f\u093e \u0909\u092a\u0932\u092c\u094d\u0927 \u091b\u0948\u0928"},"mainDashboard":{"title":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0921\u094d\u092f\u093e\u0938\u092c\u094b\u0930\u094d\u0921","subtitle":"\u0906\u092b\u094d\u0928\u094b PM2 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0935\u093e\u0938\u094d\u0924\u0935\u093f\u0915-\u0938\u092e\u092f\u092e\u093e \u0928\u093f\u0917\u0930\u093e\u0928\u0940 \u0930 \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e\u092a\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","searchPlaceholder":"\u0928\u093e\u092e \u0935\u093e \u0906\u0908\u0921\u0940 \u0905\u0928\u0941\u0938\u093e\u0930 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0916\u094b\u091c\u094d\u0928\u0941\u0939\u094b\u0938\u094d...","allNamespaces":"\u0938\u092c\u0948 \u0928\u0947\u092e\u0938\u094d\u092a\u0947\u0938\u0939\u0930\u0942","allProcesses":"\u0938\u092c\u0948 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942","onlineOnly":"\u0905\u0928\u0932\u093e\u0907\u0928 \u092e\u093e\u0924\u094d\u0930","stoppedOnly":"\u0930\u094b\u0915\u093f\u090f\u0915\u093e \u092e\u093e\u0924\u094d\u0930","erroredOnly":"\u0924\u094d\u0930\u0941\u091f\u093f \u092d\u090f\u0915\u093e \u092e\u093e\u0924\u094d\u0930"},"processList":{"noProcessesTitle":"\u0915\u0941\u0928\u0948 PM2 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u092b\u0947\u0932\u093e \u092a\u0930\u0947\u0928","noProcessesDesc":"PM2 \u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b \u091b \u0930 \u092f\u0939\u093e\u0901 \u092a\u094d\u0930\u0926\u0930\u094d\u0936\u0928 \u0917\u0930\u094d\u0928 \u0938\u0915\u094d\u0930\u093f\u092f \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u091b\u0928\u094d \u092d\u0928\u0940 \u0938\u0941\u0928\u093f\u0936\u094d\u091a\u093f\u0924 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964","appProcesses":"\u090f\u092a\u094d\u0932\u093f\u0915\u0947\u0938\u0928 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942","noAppProcesses":"\u0915\u0941\u0928\u0948 \u090f\u092a\u094d\u0932\u093f\u0915\u0947\u0938\u0928 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b \u091b\u0948\u0928\u0964","pm2Modules":"PM2 \u092e\u094b\u0921\u094d\u092f\u0941\u0932\u0939\u0930\u0942","process":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e","processes":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942"},"processDetail":{"loadingDetails":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0935\u093f\u0935\u0930\u0923 \u0932\u094b\u0921 \u0939\u0941\u0901\u0926\u0948\u091b\u2026","backToList":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0938\u0942\u091a\u0940\u092e\u093e \u092b\u0930\u094d\u0915\u0928\u0941\u0939\u094b\u0938\u094d","information":"\u091c\u093e\u0928\u0915\u093e\u0930\u0940","environment":"\u0935\u093e\u0924\u093e\u0935\u0930\u0923","processStatus":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0905\u0935\u0938\u094d\u0925\u093e","resourceUsage":"\u0938\u094d\u0930\u094b\u0924 \u0909\u092a\u092f\u094b\u0917","cpuUsage":"CPU \u0909\u092a\u092f\u094b\u0917","memoryUsage":"\u092e\u0947\u092e\u094b\u0930\u0940 \u0909\u092a\u092f\u094b\u0917","processDetails":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0935\u093f\u0935\u0930\u0923","workingDirectory":"\u0915\u093e\u0930\u094d\u092f\u0936\u0940\u0932 \u0921\u093e\u0907\u0930\u0947\u0915\u094d\u091f\u0930\u0940","interpreter":"\u0907\u0928\u094d\u091f\u0930\u094d\u092a\u094d\u0930\u093f\u091f\u0930","watching":"\u0928\u093f\u0917\u0930\u093e\u0928\u0940","notRunning":"\u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b \u091b\u0948\u0928","environmentVariables":"\u0935\u093e\u0924\u093e\u0935\u0930\u0923 \u091a\u0930\u0939\u0930\u0942","noEnvVars":"\u0915\u0941\u0928\u0948 \u0935\u093e\u0924\u093e\u0935\u0930\u0923 \u091a\u0930 \u092b\u0947\u0932\u093e \u092a\u0930\u0947\u0928\u0964","scriptPath":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u092a\u093e\u0925","execMode":"\u0915\u093e\u0930\u094d\u092f\u093e\u0928\u094d\u0935\u092f\u0928 \u092e\u094b\u0921","instances":"\u0907\u0928\u094d\u0938\u094d\u091f\u094d\u092f\u093e\u0928\u094d\u0938\u0939\u0930\u0942","createdAt":"\u0938\u093f\u0930\u094d\u091c\u0928\u093e \u092d\u090f\u0915\u094b","startedAt":"\u0938\u0941\u0930\u0941 \u092d\u090f\u0915\u094b"},"metricsPage":{"title":"\u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938","subtitle":"\u0924\u092a\u093e\u0908\u0902\u0915\u094b PM2 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942\u0915\u094b \u0935\u093e\u0938\u094d\u0924\u0935\u093f\u0915-\u0938\u092e\u092f \u092a\u094d\u0930\u0926\u0930\u094d\u0936\u0928 \u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938","live":"\u0932\u093e\u0907\u092d","history":"\u0907\u0924\u093f\u0939\u093e\u0938","min":"\u0928\u094d\u092f\u0942\u0928","avg":"\u0914\u0938\u0924","max":"\u0905\u0927\u093f\u0915\u0924\u092e","currentCpu":"\u0939\u093e\u0932\u0915\u094b CPU \u0909\u092a\u092f\u094b\u0917","currentMemory":"\u0939\u093e\u0932\u0915\u094b \u092e\u0947\u092e\u094b\u0930\u0940 \u0909\u092a\u092f\u094b\u0917","cpuOverTime":"\u0938\u092e\u092f \u0905\u0928\u0941\u0938\u093e\u0930 CPU \u0909\u092a\u092f\u094b\u0917","memoryOverTime":"\u0938\u092e\u092f \u0905\u0928\u0941\u0938\u093e\u0930 \u092e\u0947\u092e\u094b\u0930\u0940 \u0909\u092a\u092f\u094b\u0917","cpuDataset":"CPU \u0909\u092a\u092f\u094b\u0917 (%)","memoryDataset":"\u092e\u0947\u092e\u094b\u0930\u0940 \u0909\u092a\u092f\u094b\u0917 (MB)"},"remoteConnections":{"title":"\u0930\u093f\u092e\u094b\u091f \u091c\u0921\u093e\u0928\u0939\u0930\u0942","subtitle":"SSH \u091c\u0921\u093e\u0928 \u0930 \u0930\u093f\u092e\u094b\u091f PM2 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e\u092a\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","noConnections":"\u0915\u0941\u0928\u0948 \u0930\u093f\u092e\u094b\u091f \u091c\u0921\u093e\u0928 \u0915\u0928\u094d\u092b\u093f\u0917\u0930 \u0917\u0930\u093f\u090f\u0915\u094b \u091b\u0948\u0928\u0964 \u0938\u0941\u0930\u0941 \u0917\u0930\u094d\u0928 \\"\u091c\u0921\u093e\u0928 \u0925\u092a\u094d\u0928\u0941\u0939\u094b\u0938\u094d\\" \u0915\u094d\u0932\u093f\u0915 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964","processes":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942","systemInfo":"\u0938\u093f\u0938\u094d\u091f\u092e \u091c\u093e\u0928\u0915\u093e\u0930\u0940","connectionName":"\u091c\u0921\u093e\u0928 \u0928\u093e\u092e","host":"\u0939\u094b\u0938\u094d\u091f","port":"\u092a\u094b\u0930\u094d\u091f","username":"\u092a\u094d\u0930\u092f\u094b\u0917\u0915\u0930\u094d\u0924\u093e \u0928\u093e\u092e","password":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921","passwordPlaceholder":"\u0905\u0935\u0938\u094d\u0925\u093f\u0924 \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0930\u093e\u0916\u094d\u0928 \u0916\u093e\u0932\u0940 \u091b\u094b\u0921\u094d\u0928\u0941\u0939\u094b\u0938\u094d","leaveBlankCurrent":"\u0905\u0939\u093f\u0932\u0947\u0915\u094b \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0930\u093e\u0916\u094d\u0928 \u0916\u093e\u0932\u0940 \u091b\u094b\u0921\u094d\u0928\u0941\u0939\u094b\u0938\u094d","privateKey":"\u0928\u093f\u091c\u0940 \u0915\u0941\u091e\u094d\u091c\u0940 (\u0910\u091a\u094d\u091b\u093f\u0915)","privateKeyPlaceholder":"-----BEGIN OPENSSH PRIVATE KEY-----","useSudo":"\u0935\u093f\u0936\u0947\u0937\u093e\u0927\u093f\u0915\u093e\u0930 \u0906\u0926\u0947\u0936\u0939\u0930\u0942\u0915\u094b \u0932\u093e\u0917\u093f sudo \u092a\u094d\u0930\u092f\u094b\u0917 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d (\u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0906\u0935\u0936\u094d\u092f\u0915)","addConnection":"\u091c\u0921\u093e\u0928 \u0925\u092a\u094d\u0928\u0941\u0939\u094b\u0938\u094d","addRemoteConnection":"\u0930\u093f\u092e\u094b\u091f \u091c\u0921\u093e\u0928 \u0925\u092a\u094d\u0928\u0941\u0939\u094b\u0938\u094d","editConnection":"\u091c\u0921\u093e\u0928 \u0938\u092e\u094d\u092a\u093e\u0926\u0928","editRemoteConnection":"\u0930\u093f\u092e\u094b\u091f \u091c\u0921\u093e\u0928 \u0938\u092e\u094d\u092a\u093e\u0926\u0928","updateConnection":"\u091c\u0921\u093e\u0928 \u0905\u092a\u0921\u0947\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","testConnection":"\u091c\u0921\u093e\u0928 \u092a\u0930\u0940\u0915\u094d\u0937\u0923","deleteConnection":"\u091c\u0921\u093e\u0928 \u092e\u0947\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","installPm2":"PM2 \u0938\u094d\u0925\u093e\u092a\u0928\u093e","notConnected":"\u091c\u0921\u093e\u0928 \u091b\u0948\u0928","connecting":"\u091c\u0921\u093e\u0928 \u0939\u0941\u0901\u0926\u0948\u091b...","failedToConnect":"\u091c\u0921\u093e\u0928 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932","connectionFailed":"\u091c\u0921\u093e\u0928 \u0905\u0938\u092b\u0932: {{message}}","disconnectFailed":"\u0935\u093f\u091a\u094d\u091b\u0947\u0926 \u0905\u0938\u092b\u0932","connectAll":"\u0938\u092c\u0948 \u091c\u0921\u093e\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","disconnectAll":"\u0938\u092c\u0948 \u0935\u093f\u091a\u094d\u091b\u0947\u0926 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","connect":"\u091c\u0921\u093e\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","disconnect":"\u0935\u093f\u091a\u094d\u091b\u0947\u0926 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","connected":"\u091c\u0921\u093e\u0928 \u092d\u090f\u0915\u094b","disconnected":"\u0935\u093f\u091a\u094d\u091b\u0947\u0926 \u092d\u090f\u0915\u094b","clickRefreshToLoad":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0932\u094b\u0921 \u0917\u0930\u094d\u0928 \u0930\u093f\u092b\u094d\u0930\u0947\u0938 \u0915\u094d\u0932\u093f\u0915 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964","noPm2Processes":"\u092f\u0938 \u0938\u0930\u094d\u092d\u0930\u092e\u093e \u0915\u0941\u0928\u0948 PM2 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b \u091b\u0948\u0928\u0964","colName":"\u0928\u093e\u092e","colStatus":"\u0938\u094d\u0925\u093f\u0924\u093f","colCpu":"CPU","colMemory":"\u092e\u0947\u092e\u094b\u0930\u0940","colUptime":"\u0905\u092a\u091f\u093e\u0907\u092e","colActions":"\u0915\u093e\u0930\u094d\u092f\u0939\u0930\u0942","systemInformation":"\u0938\u093f\u0938\u094d\u091f\u092e \u091c\u093e\u0928\u0915\u093e\u0930\u0940","resources":"\u0938\u094d\u0930\u094b\u0924\u0939\u0930\u0942","hostname":"\u0939\u094b\u0938\u094d\u091f\u0928\u093e\u092e","platform":"\u092a\u094d\u0932\u0947\u091f\u092b\u0930\u094d\u092e","architecture":"\u0906\u0930\u094d\u0915\u093f\u091f\u0947\u0915\u094d\u091a\u0930","nodeJs":"Node.js","totalMemory":"\u0915\u0941\u0932 \u092e\u0947\u092e\u094b\u0930\u0940","freeMemory":"\u0916\u093e\u0932\u0940 \u092e\u0947\u092e\u094b\u0930\u0940","cpuCount":"CPU \u0938\u0902\u0916\u094d\u092f\u093e","loadAverage":"\u0932\u094b\u0921 \u0914\u0938\u0924","noSystemInfo":"\u0938\u093f\u0938\u094d\u091f\u092e \u091c\u093e\u0928\u0915\u093e\u0930\u0940 \u0909\u092a\u0932\u092c\u094d\u0927 \u091b\u0948\u0928\u0964","tabProcesses":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942","tabSystemInfo":"\u0938\u093f\u0938\u094d\u091f\u092e \u091c\u093e\u0928\u0915\u093e\u0930\u0940","logStreamingError":"\u0932\u0917 \u0938\u094d\u091f\u094d\u0930\u093f\u092e\u093f\u0919 \u0924\u094d\u0930\u0941\u091f\u093f: {{error}}","failedToLoadConnections":"\u091c\u0921\u093e\u0928\u0939\u0930\u0942 \u0932\u094b\u0921 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932","failedToConnectInvalidResponse":"\u091c\u0921\u093e\u0928 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932 (\u0905\u092e\u093e\u0928\u094d\u092f \u0938\u0930\u094d\u092d\u0930 \u092a\u094d\u0930\u0924\u093f\u0915\u094d\u0930\u093f\u092f\u093e)","failedToLoadProcesses":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0932\u094b\u0921 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932: {{error}}","failedToLoadProcessesNetwork":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0932\u094b\u0921 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932: \u0928\u0947\u091f\u0935\u0930\u094d\u0915 \u0924\u094d\u0930\u0941\u091f\u093f","failedToOpenLiveLogs":"\u0932\u093e\u0907\u092d \u0932\u0917\u0939\u0930\u0942 \u0916\u094b\u0932\u094d\u0928 \u0905\u0938\u092b\u0932","failedToProcessAction":"{{action}} \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0905\u0938\u092b\u0932","processActionFailed":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e {{action}} \u0905\u0938\u092b\u0932","failedToAddConnection":"\u091c\u0921\u093e\u0928 \u0925\u092a\u094d\u0928 \u0905\u0938\u092b\u0932","failedToUpdateConnection":"\u091c\u0921\u093e\u0928 \u0905\u092a\u0921\u0947\u091f \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932","failedToDeleteConnection":"\u091c\u0921\u093e\u0928 \u092e\u0947\u091f\u093e\u0909\u0928 \u0905\u0938\u092b\u0932"},"remoteEnhancedLogs":{"title":"\u0909\u0928\u094d\u0928\u0924 \u0932\u0917\u0939\u0930\u0942","subtitle":"\u0938\u094d\u0925\u093e\u0928\u0940\u092f \u0930 \u0930\u093f\u092e\u094b\u091f \u0938\u0930\u094d\u092d\u0930\u0939\u0930\u0942\u092e\u093e \u090f\u0915\u0940\u0915\u0943\u0924 \u0932\u0917 \u0926\u0930\u094d\u0936\u0915","tabLogViewer":"\u0932\u0917 \u0926\u0930\u094d\u0936\u0915","tabStatistics":"\u0924\u0925\u094d\u092f\u093e\u0919\u094d\u0915","tabServerTree":"\u0938\u0930\u094d\u092d\u0930 \u0930\u0942\u0916","serversFilter":"\u0938\u0930\u094d\u092d\u0930\u0939\u0930\u0942","applicationsFilter":"\u090f\u092a\u094d\u0932\u093f\u0915\u0947\u0938\u0928\u0939\u0930\u0942","timeRange":"\u0938\u092e\u092f \u0926\u093e\u092f\u0930\u093e","lastHour":"\u0905\u0928\u094d\u0924\u093f\u092e \u0918\u0923\u094d\u091f\u093e","last6Hours":"\u0905\u0928\u094d\u0924\u093f\u092e \u096c \u0918\u0923\u094d\u091f\u093e","last24Hours":"\u0905\u0928\u094d\u0924\u093f\u092e \u0968\u096a \u0918\u0923\u094d\u091f\u093e","allTime":"\u0938\u092c\u0948 \u0938\u092e\u092f","logTypes":"\u0932\u0917 \u092a\u094d\u0930\u0915\u093e\u0930\u0939\u0930\u0942:","stdout":"Stdout","stderr":"Stderr","levels":"\u0938\u094d\u0924\u0930\u0939\u0930\u0942:","logsCount":"\u0932\u0917\u0939\u0930\u0942 ({{count}})","streaming":"\u0938\u094d\u091f\u094d\u0930\u093f\u092e\u093f\u0919","noLogsFound":"\u0939\u093e\u0932\u0915\u094b \u092b\u093f\u0932\u094d\u091f\u0930\u0938\u0901\u0917 \u092e\u093f\u0932\u094d\u0928\u0947 \u0915\u0941\u0928\u0948 \u0932\u0917 \u092d\u0947\u091f\u093f\u090f\u0928","server":"\u0938\u0930\u094d\u092d\u0930: {{name}}","totalLogs":"\u0915\u0941\u0932 \u0932\u0917\u0939\u0930\u0942: {{count}}","errors":"{{count}} \u0924\u094d\u0930\u0941\u091f\u093f\u0939\u0930\u0942","warnings":"{{count}} \u091a\u0947\u0924\u093e\u0935\u0928\u0940\u0939\u0930\u0942","info":"{{count}} \u091c\u093e\u0928\u0915\u093e\u0930\u0940","lastLog":"\u0905\u0928\u094d\u0924\u093f\u092e \u0932\u0917: {{time}}","serverAndAppTree":"\u0938\u0930\u094d\u092d\u0930 \u0930 \u090f\u092a\u094d\u0932\u093f\u0915\u0947\u0938\u0928 \u0930\u0942\u0916","noApplicationsFound":"\u0915\u0941\u0928\u0948 \u090f\u092a\u094d\u0932\u093f\u0915\u0947\u0938\u0928 \u092d\u0947\u091f\u093f\u090f\u0928","checkRemoteConnection":"\u0930\u093f\u092e\u094b\u091f \u091c\u0921\u093e\u0928 \u091c\u093e\u0901\u091a \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","noPm2Running":"\u0915\u0941\u0928\u0948 PM2 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b \u091b\u0948\u0928"},"deploy":{"newProcess":"\u0928\u092f\u093e\u0901 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e","deploying":"\u0924\u0948\u0928\u093e\u0924\u0940 \u0939\u0941\u0901\u0926\u0948\u091b\u2026","deployBtn":"\u0924\u0948\u0928\u093e\u0924\u0940","sectionType":"\u092a\u094d\u0930\u0915\u093e\u0930","sectionIdentity":"\u092a\u0939\u093f\u091a\u093e\u0928","sectionEntryPoint":"\u092a\u094d\u0930\u0935\u0947\u0936 \u092c\u093f\u0928\u094d\u0926\u0941","sectionRuntime":"\u0930\u0928\u091f\u093e\u0907\u092e","sectionEnvironment":"\u0935\u093e\u0924\u093e\u0935\u0930\u0923","sectionLog":"\u0932\u0917","fieldName":"\u0928\u093e\u092e","fieldNamespace":"\u0928\u0947\u092e\u0938\u094d\u092a\u0947\u0938","fieldDirectory":"\u0921\u093e\u0907\u0930\u0947\u0915\u094d\u091f\u0930\u0940","fieldInterpreter":"\u0907\u0928\u094d\u091f\u0930\u092a\u094d\u0930\u0947\u091f\u0930","fieldExecMode":"\u0915\u093e\u0930\u094d\u092f\u093e\u0928\u094d\u0935\u092f\u0928 \u092e\u094b\u0921","fieldMaxMemory":"\u0905\u0927\u093f\u0915\u0924\u092e \u092e\u0947\u092e\u094b\u0930\u0940","fieldPort":"\u092a\u094b\u0930\u094d\u091f","scriptLabelNode":"\u092a\u094d\u0930\u0935\u0947\u0936 \u092b\u093e\u0907\u0932","scriptLabelPython":"\u092a\u093e\u0907\u0925\u0928 \u092b\u093e\u0907\u0932","scriptLabelDotnet":"DLL \u092a\u0925","scriptLabelOther":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f/\u092c\u093e\u0907\u0928\u0930\u0940","workingDirectoryHelper":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f\u0915\u094b \u0921\u093e\u0907\u0930\u0947\u0915\u094d\u091f\u0930\u0940 \u092a\u094d\u0930\u092f\u094b\u0917 \u0917\u0930\u094d\u0928 \u0916\u093e\u0932\u0940 \u091b\u093e\u0921\u094d\u0928\u0941\u0939\u094b\u0938\u094d","autoDetect":"\u092a\u0930\u093f\u092f\u094b\u091c\u0928\u093e \u092a\u094d\u0930\u0915\u093e\u0930 \u0938\u094d\u0935\u0924\u0903 \u092a\u0924\u094d\u0924\u093e \u0932\u0917\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","toggleAutorestart":"\u0938\u094d\u0935\u0924\u0903 \u092a\u0941\u0928\u0903\u0938\u0941\u0930\u0941","toggleWatch":"\u0928\u093f\u0917\u0930\u093e\u0928\u0940","toggleAutoSetup":"\u0938\u094d\u0935\u0924\u0903 \u0938\u0947\u091f\u0905\u092a","instancesCluster":"{{count}} \u0907\u0928\u094d\u0938\u094d\u091f\u094d\u092f\u093e\u0928\u094d\u0938\u0939\u0930\u0942 \xb7 \u0915\u094d\u0932\u0938\u094d\u091f\u0930 \u092e\u094b\u0921 (\u0938\u093e\u091d\u093e \u092a\u094b\u0930\u094d\u091f)","instancesFork":"{{count}} \u0907\u0928\u094d\u0938\u094d\u091f\u094d\u092f\u093e\u0928\u094d\u0938\u0939\u0930\u0942 \xb7 \u0932\u094b\u0921 \u092c\u094d\u092f\u093e\u0932\u0947\u0928\u094d\u0938\u093f\u0919\u0915\u094b \u0932\u093e\u0917\u093f \u0915\u094d\u0932\u0938\u094d\u091f\u0930 \u092e\u094b\u0921 \u0938\u094b\u091a\u094d\u0928\u0941\u0939\u094b\u0938\u094d","addEnvVar":"\u0925\u092a\u094d\u0928\u0941\u0939\u094b\u0938\u094d","noEnvVarsHint":"# \u0915\u0941\u0928\u0948 \u0935\u093e\u0924\u093e\u0935\u0930\u0923 \u091a\u0932\u0939\u0930\u0942 \u091b\u0948\u0928\u0928\u094d \u2014 \u092e\u093e\u0925\u093f \u091f\u093e\u0907\u092a \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d \u0930 \u0907\u0928\u094d\u091f\u0930 \u0925\u093f\u091a\u094d\u0928\u0941\u0939\u094b\u0938\u094d","unnamed":"\u0928\u093e\u092e\u0930\u0939\u093f\u0924","deployingStatus":"\u0924\u0948\u0928\u093e\u0924\u0940 \u0939\u0941\u0901\u0926\u0948\u091b","envCount":"{{count}} env","portError":"\u0967\u2013\u096c\u096b\u096b\u0969\u096b \u0939\u0941\u0928\u0941\u092a\u0930\u094d\u091b","setWorkingDirectoryFirst":"\u092a\u0939\u093f\u0932\u0947 \u0915\u093e\u0930\u094d\u092f\u0936\u0940\u0932 \u0921\u093e\u0907\u0930\u0947\u0915\u094d\u091f\u0930\u0940 \u0935\u093e \u092a\u094d\u0930\u0935\u0947\u0936 \u092b\u093e\u0907\u0932 \u0938\u0947\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","detectedProject":"\u092a\u0924\u094d\u0924\u093e \u0932\u093e\u0917\u094d\u092f\u094b: {{name}}","couldNotDetect":"\u092a\u0930\u093f\u092f\u094b\u091c\u0928\u093e \u092a\u094d\u0930\u0915\u093e\u0930 \u092a\u0924\u094d\u0924\u093e \u0932\u0917\u093e\u0909\u0928 \u0938\u0915\u093f\u090f\u0928","detectionFailed":"\u092a\u0924\u094d\u0924\u093e \u0932\u0917\u093e\u0909\u0928 \u0905\u0938\u092b\u0932","deploymentFailed":"\u0924\u0948\u0928\u093e\u0924\u0940 \u0905\u0938\u092b\u0932","deployedSuccessfully":"\u0938\u092b\u0932\u0924\u093e\u092a\u0942\u0930\u094d\u0935\u0915 \u0924\u0948\u0928\u093e\u0924\u0940 \u092d\u092f\u094b","portInUse":"\u092a\u094b\u0930\u094d\u091f {{port}} \u092a\u0939\u093f\u0932\u0947 \u0928\u0948 \u092a\u094d\u0930\u092f\u094b\u0917\u092e\u093e \u091b","failedToDeploy":"\u0924\u0948\u0928\u093e\u0924\u0940 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932"},"modules":{"title":"PM2 \u092e\u094b\u0921\u094d\u092f\u0941\u0932\u0939\u0930\u0942","subtitle":"PM2 \u092a\u094d\u0932\u0917\u0907\u0928 \u092e\u094b\u0921\u094d\u092f\u0941\u0932\u0939\u0930\u0942 \u0938\u094d\u0925\u093e\u092a\u0928\u093e, \u0915\u0928\u094d\u092b\u093f\u0917\u0930 \u0930 \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e\u092a\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","noModules":"\u0915\u0941\u0928\u0948 \u092e\u094b\u0921\u094d\u092f\u0941\u0932 \u0938\u094d\u0925\u093e\u092a\u0928\u093e \u091b\u0948\u0928\u0964","installModule":"\u092e\u094b\u0921\u094d\u092f\u0941\u0932 \u0938\u094d\u0925\u093e\u092a\u0928\u093e","moduleName":"\u092e\u094b\u0921\u094d\u092f\u0941\u0932 \u0928\u093e\u092e"},"ecosystem":{"title":"\u0907\u0915\u094b\u0938\u093f\u0938\u094d\u091f\u092e \u091c\u0947\u0928\u0947\u0930\u0947\u091f\u0930","subtitle":"\u0939\u093e\u0932\u0915\u094b PM2 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942\u092c\u093e\u091f ecosystem.config.js \u0909\u0924\u094d\u092a\u0928\u094d\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","generateFile":"\u092b\u093e\u0907\u0932 \u0909\u0924\u094d\u092a\u0928\u094d\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","outputOptions":"\u0906\u0909\u091f\u092a\u0941\u091f \u0935\u093f\u0915\u0932\u094d\u092a\u0939\u0930\u0942","savePath":"\u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u092a\u093e\u0925 (\u0910\u091a\u094d\u091b\u093f\u0915)","savePathPlaceholder":"/path/to/ecosystem.config.js","savePathHelper":"\u0939\u093e\u0932\u0915\u094b \u0915\u093e\u0930\u094d\u092f\u0936\u0940\u0932 \u0921\u093e\u0907\u0930\u0947\u0915\u094d\u091f\u0930\u0940\u092e\u093e \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0917\u0930\u094d\u0928 \u0916\u093e\u0932\u0940 \u091b\u094b\u0921\u094d\u0928\u0941\u0939\u094b\u0938\u094d","includeStopped":"\u0930\u094b\u0915\u093f\u090f\u0915\u093e \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0938\u092e\u093e\u0935\u0947\u0936 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","previewTitle":"ecosystem.config.js \u2014 \u092a\u0942\u0930\u094d\u0935\u093e\u0935\u0932\u094b\u0915\u0928","saveFile":"\u092b\u093e\u0907\u0932 \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d"},"cluster":{"title":"\u0915\u094d\u0932\u0938\u094d\u091f\u0930 \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e\u092a\u0928","subtitle":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0938\u094d\u0915\u0947\u0932 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d \u0930 \u0915\u093e\u0930\u094d\u092f\u093e\u0928\u094d\u0935\u092f\u0928 \u092e\u094b\u0921\u0939\u0930\u0942 \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e\u092a\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","selectProcess":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u091a\u092f\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","choosePlaceholder":"\u2014 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u091b\u093e\u0928\u094d\u0928\u0941\u0939\u094b\u0938\u094d \u2014","selectHint":"\u0915\u094d\u0932\u0938\u094d\u091f\u0930 \u0935\u093f\u0915\u0932\u094d\u092a\u0939\u0930\u0942 \u0939\u0947\u0930\u094d\u0928 \u092e\u093e\u0925\u093f \u090f\u0909\u091f\u093e \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u091a\u092f\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","currentStatus":"\u0939\u093e\u0932\u0915\u094b \u0905\u0935\u0938\u094d\u0925\u093e","scaleUp":"\u0938\u094d\u0915\u0947\u0932 \u0905\u092a","scaleDown":"\u0938\u094d\u0915\u0947\u0932 \u0921\u093e\u0909\u0928","reload":"\u092a\u0941\u0928\u0903 \u0932\u094b\u0921","instances":"\u0907\u0928\u094d\u0938\u094d\u091f\u094d\u092f\u093e\u0928\u094d\u0938\u0939\u0930\u0942","scale":"\u0938\u094d\u0915\u0947\u0932","scaleInstances":"\u0907\u0928\u094d\u0938\u094d\u091f\u094d\u092f\u093e\u0928\u094d\u0938\u0939\u0930\u0942 \u0938\u094d\u0915\u0947\u0932","executionMode":"\u0915\u093e\u0930\u094d\u092f\u093e\u0928\u094d\u0935\u092f\u0928 \u092e\u094b\u0921","execModeHeader":"\u0915\u093e\u0930\u094d\u092f\u093e\u0928\u094d\u0935\u092f\u0928 \u092e\u094b\u0921","switchToFork":"\u092b\u094b\u0930\u094d\u0915\u092e\u093e \u0938\u094d\u0935\u093f\u091a","switchToCluster":"\u0915\u094d\u0932\u0938\u094d\u091f\u0930\u092e\u093e \u0938\u094d\u0935\u093f\u091a","clusterModeDesc":"\u0938\u092c\u0948 CPU \u0915\u094b\u0930\u0939\u0930\u0942\u092e\u093e \u0932\u094b\u0921 \u0935\u093f\u0924\u0930\u0923 \u0917\u0930\u094d\u0928 \u0915\u094d\u0932\u0938\u094d\u091f\u0930 \u092e\u094b\u0921\u092e\u093e \u091a\u0932\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","zeroDowntimeReload":"\u0936\u0942\u0928\u094d\u092f-\u0921\u093e\u0909\u0928\u091f\u093e\u0907\u092e \u092a\u0941\u0928\u0903 \u0932\u094b\u0921","reloadDesc":"\u0909\u092a\u0932\u092c\u094d\u0927\u0924\u093e \u0915\u093e\u092f\u092e \u0930\u093e\u0916\u094d\u0928 \u090f\u0915-\u090f\u0915 \u0917\u0930\u0940 \u0907\u0928\u094d\u0938\u094d\u091f\u094d\u092f\u093e\u0928\u094d\u0938\u0939\u0930\u0942 \u092a\u0941\u0928\u0903\u0938\u0941\u0930\u0941 \u0917\u0930\u094d\u0928\u0947 \u0917\u094d\u0930\u0947\u0938\u092b\u0941\u0932 \u0930\u093f\u0932\u094b\u0921","gracefulReload":"\u0917\u094d\u0930\u0947\u0938\u092b\u0941\u0932 \u0930\u093f\u0932\u094b\u0921"},"cronJobs":{"title":"\u0915\u094d\u0930\u094b\u0928 \u091c\u092c\u0939\u0930\u0942","subtitle":"PM2 \u0915\u094b \u0915\u094d\u0930\u094b\u0928 \u0938\u0941\u0935\u093f\u0927\u093e \u092a\u094d\u0930\u092f\u094b\u0917 \u0917\u0930\u0947\u0930 \u0938\u094d\u0935\u091a\u093e\u0932\u093f\u0924 \u0915\u093e\u0930\u094d\u092f\u0939\u0930\u0942 \u0924\u093e\u0932\u093f\u0915\u093e\u092c\u0926\u094d\u0927 \u0930 \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e\u092a\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","createJob":"\u091c\u092c \u0938\u093f\u0930\u094d\u091c\u0928\u093e","total":"\u0915\u0941\u0932","enabled":"\u0938\u0915\u094d\u0937\u092e","running":"\u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b","scheduled":"\u0924\u093e\u0932\u093f\u0915\u093e\u092c\u0926\u094d\u0927","cronSchedule":"\u0915\u094d\u0930\u094b\u0928 \u0924\u093e\u0932\u093f\u0915\u093e","usePreset":"\u092a\u094d\u0930\u093f\u0938\u0947\u091f \u092a\u094d\u0930\u092f\u094b\u0917","custom":"\u0915\u0938\u094d\u091f\u092e","everyMinute":"\u0939\u0930\u0947\u0915 \u092e\u093f\u0928\u0947\u091f","every5Minutes":"\u0939\u0930\u0947\u0915 \u096b \u092e\u093f\u0928\u0947\u091f","every15Minutes":"\u0939\u0930\u0947\u0915 \u0967\u096b \u092e\u093f\u0928\u0947\u091f","every30Minutes":"\u0939\u0930\u0947\u0915 \u0969\u0966 \u092e\u093f\u0928\u0947\u091f","everyHour":"\u0939\u0930\u0947\u0915 \u0918\u0923\u094d\u091f\u093e","every6Hours":"\u0939\u0930\u0947\u0915 \u096c \u0918\u0923\u094d\u091f\u093e","everydayMidnight":"\u0939\u0930\u0947\u0915 \u0926\u093f\u0928 \u092e\u0927\u094d\u092f\u0930\u093e\u0924","everydayNoon":"\u0939\u0930\u0947\u0915 \u0926\u093f\u0928 \u0926\u093f\u0909\u0901\u0938\u094b","everyMondayAm":"\u0939\u0930\u0947\u0915 \u0938\u094b\u092e\u092c\u093e\u0930 \u092c\u093f\u0939\u093e\u0928 \u096f \u092c\u091c\u0947","everyWeekdayAm":"\u0939\u0930\u0947\u0915 \u0915\u093e\u0930\u094d\u092f\u0926\u093f\u0928 \u092c\u093f\u0939\u093e\u0928 \u096f \u092c\u091c\u0947","everyMonthFirst":"\u0939\u0930\u0947\u0915 \u092e\u0939\u093f\u0928\u093e\u0915\u094b \u092a\u0939\u093f\u0932\u094b","jobName":"\u091c\u092c \u0928\u093e\u092e","expression":"\u0905\u092d\u093f\u0935\u094d\u092f\u0915\u094d\u0924\u093f","nextRun":"\u0905\u0930\u094d\u0915\u094b \u091a\u0932\u093e\u0909\u0928\u0947","lastRun":"\u0905\u0928\u094d\u0924\u093f\u092e \u091a\u0932\u093e\u090f\u0915\u094b","noJobs":"\u0915\u0941\u0928\u0948 \u0915\u094d\u0930\u094b\u0928 \u091c\u092c \u0915\u0928\u094d\u092b\u093f\u0917\u0930 \u0917\u0930\u093f\u090f\u0915\u094b \u091b\u0948\u0928\u0964","deleteJob":"\u091c\u092c \u092e\u0947\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","enableJob":"\u0938\u0915\u094d\u0937\u092e","disableJob":"\u0905\u0938\u0915\u094d\u0937\u092e","type":"\u092a\u094d\u0930\u0915\u093e\u0930","disabled":"\u0905\u0938\u0915\u094d\u0937\u092e","editJob":"\u0915\u094d\u0930\u094b\u0928 \u091c\u092c \u0938\u092e\u094d\u092a\u093e\u0926\u0928","basicInfo":"\u0906\u0927\u093e\u0930\u092d\u0942\u0924 \u091c\u093e\u0928\u0915\u093e\u0930\u0940","scriptConfig":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u0915\u0928\u094d\u092b\u093f\u0917\u0930\u0947\u0938\u0928","scriptType":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u092a\u094d\u0930\u0915\u093e\u0930","scriptMode":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u092e\u094b\u0921","writeInline":"\u0907\u0928\u0932\u093e\u0907\u0928 \u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u0932\u0947\u0916\u094d\u0928\u0941\u0939\u094b\u0938\u094d","useFile":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u092b\u093e\u0907\u0932 \u092a\u094d\u0930\u092f\u094b\u0917","scriptPath":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u092a\u093e\u0925","workingDir":"\u0915\u093e\u0930\u094d\u092f\u0936\u0940\u0932 \u0921\u093e\u0907\u0930\u0947\u0915\u094d\u091f\u0930\u0940","scriptArgs":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u0924\u0930\u094d\u0915\u0939\u0930\u0942 (\u0910\u091a\u094d\u091b\u093f\u0915)","addArgument":"\u0924\u0930\u094d\u0915 \u0925\u092a\u094d\u0928\u0941\u0939\u094b\u0938\u094d","envVars":"\u0935\u093e\u0924\u093e\u0935\u0930\u0923 \u091a\u0930\u0939\u0930\u0942 (\u0910\u091a\u094d\u091b\u093f\u0915)","saving":"\u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0939\u0941\u0901\u0926\u0948\u091b...","update":"\u0905\u092a\u0921\u0947\u091f","create":"\u0938\u093f\u0930\u094d\u091c\u0928\u093e","deleteCronJobTitle":"\u0915\u094d\u0930\u094b\u0928 \u091c\u092c \u092e\u0947\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","deleteCronJobMessage":"\u0915\u0947 \u0924\u092a\u093e\u0908\u0902 \u092f\u094b \u0915\u094d\u0930\u094b\u0928 \u091c\u092c \u092e\u0947\u091f\u093e\u0909\u0928 \u0928\u093f\u0936\u094d\u091a\u093f\u0924 \u0939\u0941\u0928\u0941\u0939\u0941\u0928\u094d\u091b?","buildVisually":"\u0926\u0943\u0936\u094d\u092f \u0930\u0942\u092a\u092e\u093e \u0915\u094d\u0930\u094b\u0928 \u0905\u092d\u093f\u0935\u094d\u092f\u0915\u094d\u0924\u093f \u092c\u0928\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","minute":"\u092e\u093f\u0928\u0947\u091f","hour":"\u0918\u0923\u094d\u091f\u093e","dayOfMonth":"\u092e\u0939\u093f\u0928\u093e\u0915\u094b \u0926\u093f\u0928","month":"\u092e\u0939\u093f\u0928\u093e","dayOfWeek":"\u0939\u092a\u094d\u0924\u093e\u0915\u094b \u0926\u093f\u0928","nextRunLabel":"\u0905\u0930\u094d\u0915\u094b \u091a\u0932\u093e\u0909\u0928\u0947:"},"loadBalancing":{"title":"\u0932\u094b\u0921 \u092c\u094d\u092f\u093e\u0932\u0947\u0928\u094d\u0938\u093f\u0919 \u0917\u093e\u0907\u0921","subtitle":"PM2 \u0915\u094d\u0932\u0938\u094d\u091f\u0930 \u092e\u094b\u0921 \u0915\u0938\u0930\u0940 \u0938\u0947\u091f\u0905\u092a \u0917\u0930\u094d\u0928\u0947 \u0930 CPU \u0915\u094b\u0930\u0939\u0930\u0942\u092e\u093e \u091f\u094d\u0930\u093e\u092b\u093f\u0915 \u0915\u0938\u0930\u0940 \u0935\u093f\u0924\u0930\u0923 \u0917\u0930\u094d\u0928\u0947","goToCluster":"\u0915\u094d\u0932\u0938\u094d\u091f\u0930 \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e\u092a\u0928\u092e\u093e \u091c\u093e\u0928\u0941\u0939\u094b\u0938\u094d","whatIsTitle":"PM2 \u0932\u094b\u0921 \u092c\u094d\u092f\u093e\u0932\u0947\u0928\u094d\u0938\u093f\u0919 \u0915\u0947 \u0939\u094b?","whatIsDesc":"PM2 \u0915\u094b \u092c\u093f\u0932\u094d\u091f-\u0907\u0928 \u0932\u094b\u0921 \u092c\u094d\u092f\u093e\u0932\u0947\u0928\u094d\u0938\u0930\u0932\u0947 \u0924\u092a\u093e\u0908\u0902\u0915\u094b \u090f\u092a\u094d\u0932\u093f\u0915\u0947\u0938\u0928\u0915\u093e \u0927\u0947\u0930\u0948 \u0907\u0928\u094d\u0938\u094d\u091f\u094d\u092f\u093e\u0928\u094d\u0938\u0939\u0930\u0942\u092e\u093e \u0906\u0917\u0924 \u091f\u094d\u0930\u093e\u092b\u093f\u0915 \u0935\u093f\u0924\u0930\u0923 \u0917\u0930\u094d\u0926\u091b \u0930 \u0938\u094d\u0935\u0924\u0903 \u0938\u092c\u0948 CPU \u0915\u094b\u0930\u0939\u0930\u0942 \u0909\u092a\u092f\u094b\u0917 \u0917\u0930\u094d\u0926\u091b\u0964","benefit1":"\u0905\u0927\u093f\u0915\u0924\u092e \u0925\u094d\u0930\u0941\u092a\u0941\u091f\u0915\u094b \u0932\u093e\u0917\u093f \u0938\u092c\u0948 CPU \u0915\u094b\u0930\u0939\u0930\u0942 \u0909\u092a\u092f\u094b\u0917","benefit2":"\u0935\u0930\u094d\u0915\u0930 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942\u092e\u093e \u0906\u0917\u0924 \u0905\u0928\u0941\u0930\u094b\u0927\u0939\u0930\u0942 \u0935\u093f\u0924\u0930\u0923","benefit3":"\u0921\u093f\u092a\u094d\u0932\u094b\u092f\u092e\u0947\u0928\u094d\u091f\u0915\u094b \u0915\u094d\u0930\u092e\u092e\u093e \u0936\u0942\u0928\u094d\u092f-\u0921\u093e\u0909\u0928\u091f\u093e\u0907\u092e \u0930\u093f\u0932\u094b\u0921 \u0938\u0915\u094d\u0937\u092e","settingUpTitle":"\u0932\u094b\u0921 \u092c\u094d\u092f\u093e\u0932\u0947\u0928\u094d\u0938\u093f\u0919 \u0938\u0947\u091f\u0905\u092a","settingUpDesc":"\u0924\u092a\u093e\u0908\u0902\u0915\u094b ecosystem.config.js \u092e\u093e \u0926\u0941\u0908\u0935\u091f\u093e \u0938\u0947\u091f\u093f\u0919 \u0906\u0935\u0936\u094d\u092f\u0915 \u091b:","multipleInstances":"\u0927\u0947\u0930\u0948 \u0907\u0928\u094d\u0938\u094d\u091f\u094d\u092f\u093e\u0928\u094d\u0938\u0939\u0930\u0942","clusterMode":"\u0915\u094d\u0932\u0938\u094d\u091f\u0930 \u092e\u094b\u0921","bestPractices":"\u0909\u0924\u094d\u0924\u092e \u0905\u092d\u094d\u092f\u093e\u0938\u0939\u0930\u0942"},"logs":{"stdout":"\u092e\u093e\u0928\u0915 \u0906\u0909\u091f\u092a\u0941\u091f \u0932\u0917\u0939\u0930\u0942","stderr":"\u0924\u094d\u0930\u0941\u091f\u093f \u0906\u0909\u091f\u092a\u0941\u091f \u0932\u0917\u0939\u0930\u0942","startStreaming":"\u0938\u094d\u091f\u094d\u0930\u093f\u092e\u093f\u0919 \u0938\u0941\u0930\u0941","stopStreaming":"\u0938\u094d\u091f\u094d\u0930\u093f\u092e\u093f\u0919 \u0930\u094b\u0915\u094d\u0928\u0941\u0939\u094b\u0938\u094d","allTypes":"\u0938\u092c\u0948","stdoutType":"stdout","stderrType":"stderr","lines100":"\u0967\u0966\u0966 \u0932\u093e\u0907\u0928","lines500":"\u096b\u0966\u0966 \u0932\u093e\u0907\u0928","lines1000":"\u0967,\u0966\u0966\u0966 \u0932\u093e\u0907\u0928","linesAll":"\u0938\u092c\u0948","autoRefresh":"\u0938\u094d\u0935\u0924\u0903 \u0930\u093f\u092b\u094d\u0930\u0947\u0938","autoScroll":"\u0938\u094d\u0935\u0924\u0903 \u0938\u094d\u0915\u094d\u0930\u094b\u0932","clearLogs":"\u0916\u093e\u0932\u0940","noLogs":"\u0915\u0941\u0928\u0948 \u0932\u0917 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f\u093f \u091b\u0948\u0928\u0964","searchLogs":"\u0932\u0917\u0939\u0930\u0942 \u0916\u094b\u091c\u094d\u0928\u0941\u0939\u094b\u0938\u094d...","downloadLogs":"\u0932\u0917\u0939\u0930\u0942 \u0921\u093e\u0909\u0928\u0932\u094b\u0921","streaming":"\u0938\u094d\u091f\u094d\u0930\u093f\u092e\u093f\u0919","paused":"\u0930\u094b\u0915\u093f\u090f\u0915\u094b","filterLogs":"\u0932\u0917\u0939\u0930\u0942 \u092b\u093f\u0932\u094d\u091f\u0930...","noLogsAvailable":"\u0915\u0941\u0928\u0948 \u0932\u0917 \u0909\u092a\u0932\u092c\u094d\u0927 \u091b\u0948\u0928","noLogsInRange":"\u091a\u092f\u0928\u093f\u0924 \u092e\u093f\u0924\u093f \u0926\u093e\u092f\u0930\u093e\u092e\u093e \u0915\u0941\u0928\u0948 \u0932\u0917 \u092b\u0947\u0932\u093e \u092a\u0930\u0947\u0928","liveStream":"\u0932\u093e\u0907\u092d \u0938\u094d\u091f\u094d\u0930\u093f\u092e","stopStream":"\u0938\u094d\u091f\u094d\u0930\u093f\u092e \u0930\u094b\u0915\u094d\u0928\u0941\u0939\u094b\u0938\u094d","standardOut":"\u092e\u093e\u0928\u0915 \u0906\u0909\u091f","standardErr":"\u092e\u093e\u0928\u0915 \u0924\u094d\u0930\u0941\u091f\u093f","loadingLogs":"\u0932\u0917\u0939\u0930\u0942 \u0932\u094b\u0921 \u0939\u0941\u0901\u0926\u0948\u091b...","applyingFilter":"\u092b\u093f\u0932\u094d\u091f\u0930 \u0932\u093e\u0917\u0942 \u0939\u0941\u0901\u0926\u0948\u091b\u2026","filterActive":"\u092b\u093f\u0932\u094d\u091f\u0930 \u0938\u0915\u094d\u0930\u093f\u092f","dateRange":"\u092e\u093f\u0924\u093f \u0926\u093e\u092f\u0930\u093e","fromDate":"\u0926\u0947\u0916\u093f","toDate":"\u0938\u092e\u094d\u092e","selectProcessHint":"\u0932\u0917\u0939\u0930\u0942 \u0939\u0947\u0930\u094d\u0928 \u0938\u093e\u0907\u0921\u092c\u093e\u0930\u092c\u093e\u091f \u090f\u0909\u091f\u093e \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u091a\u092f\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","refreshNow":"\u0905\u0939\u093f\u0932\u0947 \u0930\u093f\u092b\u094d\u0930\u0947\u0938","noEntriesFilter":"\u092f\u0938 \u092b\u093f\u0932\u094d\u091f\u0930\u0915\u094b \u0932\u093e\u0917\u093f \u0915\u0941\u0928\u0948 \u0932\u0917 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f\u093f \u091b\u0948\u0928\u0964"},"passwordGate":{"title":"EZ PM2 GUI","enterPin":"\u091c\u093e\u0930\u0940 \u0930\u093e\u0916\u094d\u0928 \u0906\u092b\u094d\u0928\u094b \u092a\u093f\u0928 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","enterPassword":"\u091c\u093e\u0930\u0940 \u0930\u093e\u0916\u094d\u0928 \u0906\u092b\u094d\u0928\u094b \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","pinMode":"\u092a\u093f\u0928","passwordMode":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921","clear":"\u0916\u093e\u0932\u0940","passwordPlaceholder":"\u092a\u093e\u0938\u0935\u0930\u094d\u0921","verifying":"\u092a\u094d\u0930\u092e\u093e\u0923\u093f\u0924 \u0939\u0941\u0901\u0926\u0948\u091b\u2026","unlock":"\u0905\u0928\u0932\u0915","incorrectPin":"\u0917\u0932\u0924 \u092a\u093f\u0928","incorrectPassword":"\u0917\u0932\u0924 \u092a\u093e\u0938\u0935\u0930\u094d\u0921","serverError":"\u0938\u0930\u094d\u092d\u0930 \u0938\u092e\u094d\u092a\u0930\u094d\u0915 \u0917\u0930\u094d\u0928 \u0938\u0915\u093f\u090f\u0928\u0964"},"monitDashboard":{"title":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u092e\u0928\u093f\u091f\u0930","subtitle":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0905\u0928\u0941\u0938\u093e\u0930 \u0935\u093e\u0938\u094d\u0924\u0935\u093f\u0915-\u0938\u092e\u092f CPU, \u092e\u0947\u092e\u094b\u0930\u0940 \u0930 \u0905\u092a\u091f\u093e\u0907\u092e","refresh":"\u0930\u093f\u092b\u094d\u0930\u0947\u0938","total":"\u0915\u0941\u0932","cpuPeak":"CPU \u0909\u091a\u094d\u091a","memPeak":"\u092e\u0947\u092e\u094b\u0930\u0940 \u0909\u091a\u094d\u091a","highestProcess":"\u0909\u091a\u094d\u091a \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e","noProcesses":"\u0915\u0941\u0928\u0948 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b \u091b\u0948\u0928","online":"\u0905\u0928\u0932\u093e\u0907\u0928","stopped":"\u0930\u094b\u0915\u093f\u090f\u0915\u094b"},"processConfig":{"savedSuccess":"\u0915\u0928\u094d\u092b\u093f\u0917\u0930\u0947\u0938\u0928 \u0938\u092b\u0932\u0924\u093e\u092a\u0942\u0930\u094d\u0935\u0915 \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u092d\u092f\u094b","saveError":"\u0915\u0928\u094d\u092b\u093f\u0917\u0930\u0947\u0938\u0928 \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932","title":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0915\u0928\u094d\u092b\u093f\u0917\u0930\u0947\u0938\u0928","scriptPath":"\u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u092a\u093e\u0925","workingDir":"\u0939\u093e\u0932\u0915\u094b \u0915\u093e\u0930\u094d\u092f\u0936\u0940\u0932 \u0921\u093e\u0907\u0930\u0947\u0915\u094d\u091f\u0930\u0940","instances":"\u0907\u0928\u094d\u0938\u094d\u091f\u094d\u092f\u093e\u0928\u094d\u0938\u0939\u0930\u0942","execMode":"\u0915\u093e\u0930\u094d\u092f\u093e\u0928\u094d\u0935\u092f\u0928 \u092e\u094b\u0921","autoRestart":"\u0938\u094d\u0935\u0924\u0903 \u092a\u0941\u0928\u0903\u0938\u0941\u0930\u0941","watchChanges":"\u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928\u0939\u0930\u0942 \u0928\u093f\u0917\u0930\u093e\u0928\u0940","maxMemory":"\u0905\u0927\u093f\u0915\u0924\u092e \u092e\u0947\u092e\u094b\u0930\u0940 \u092a\u0941\u0928\u0903\u0938\u0941\u0930\u0941","envVars":"\u0935\u093e\u0924\u093e\u0935\u0930\u0923 \u091a\u0930\u0939\u0930\u0942","remove":"\u0939\u091f\u093e\u0909\u0928\u0941\u0939\u094b\u0938\u094d","newKey":"\u0928\u092f\u093e\u0901 \u0915\u0941\u091e\u094d\u091c\u0940","newValue":"\u0928\u092f\u093e\u0901 \u092e\u093e\u0928","saveConfig":"\u0915\u0928\u094d\u092b\u093f\u0917\u0930\u0947\u0938\u0928 \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924","loading":"\u0915\u0928\u094d\u092b\u093f\u0917\u0930\u0947\u0938\u0928 \u0932\u094b\u0921 \u0939\u0941\u0901\u0926\u0948\u091b...","notFound":"\u0915\u0928\u094d\u092b\u093f\u0917\u0930\u0947\u0938\u0928 \u092b\u0947\u0932\u093e \u092a\u0930\u0947\u0928"},"statusBar":{"tip":"\u0938\u0941\u091d\u093e\u0935","dismiss":"\u0916\u093e\u0930\u0947\u091c","tip1":"\u0930\u093f\u092c\u0941\u091f \u092a\u091b\u093f \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0938\u0942\u091a\u0940 \u0915\u093e\u092f\u092e \u0930\u093e\u0916\u094d\u0928 pm2 save \u092a\u094d\u0930\u092f\u094b\u0917 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964","tip2":"\u0915\u094d\u0932\u0938\u094d\u091f\u0930 \u092e\u094b\u0921\u0932\u0947 \u0905\u0927\u093f\u0915\u0924\u092e \u0925\u094d\u0930\u0941\u092a\u0941\u091f\u0915\u094b \u0932\u093e\u0917\u093f \u0924\u092a\u093e\u0908\u0902\u0915\u094b \u090f\u092a \u0938\u092c\u0948 CPU \u0915\u094b\u0930\u0939\u0930\u0942\u092e\u093e \u092b\u0948\u0932\u093e\u0909\u0901\u091b\u0964","tip3":"PM2 \u0932\u0947 \u0915\u094d\u0930\u094d\u092f\u093e\u0938 \u092d\u090f\u0915\u093e \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0938\u094d\u0935\u0924\u0903 \u092a\u0941\u0928\u0903\u0938\u0941\u0930\u0941 \u0917\u0930\u094d\u0926\u091b \u2014 \u0915\u0941\u0928\u0948 \u0928\u093f\u0917\u0930\u093e\u0928\u0940 \u0906\u0935\u0936\u094d\u092f\u0915 \u091b\u0948\u0928\u0964","tip4":"\u0938\u092c\u0948 \u090f\u092a\u0939\u0930\u0942 \u090f\u0915\u0948 \u0920\u093e\u0909\u0901\u092e\u093e \u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e\u092a\u0928 \u0917\u0930\u094d\u0928 \u0907\u0915\u094b\u0938\u093f\u0938\u094d\u091f\u092e \u0915\u0928\u094d\u092b\u093f\u0917 \u092b\u093e\u0907\u0932 \u092a\u094d\u0930\u092f\u094b\u0917 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964","tip5":"\u0935\u093e\u091a \u092e\u094b\u0921\u0932\u0947 \u0938\u094d\u0930\u094b\u0924 \u092b\u093e\u0907\u0932 \u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928 \u0939\u0941\u0901\u0926\u093e \u0938\u094d\u0935\u0924\u0903 \u0924\u092a\u093e\u0908\u0902\u0915\u094b \u090f\u092a \u092a\u0941\u0928\u0903\u0938\u0941\u0930\u0941 \u0917\u0930\u094d\u0926\u091b\u0964","tip6":"\u0932\u0917 \u0930\u094b\u091f\u0947\u0938\u0928\u0932\u0947 \u0926\u0940\u0930\u094d\u0918\u0915\u093e\u0932\u0940\u0928 \u0938\u0930\u094d\u092d\u0930\u0939\u0930\u0942\u092e\u093e \u0932\u0917 \u092b\u093e\u0907\u0932\u0939\u0930\u0942 \u0905\u0938\u0940\u092e\u093f\u0924 \u0930\u0942\u092a\u092e\u093e \u092c\u0922\u094d\u0928\u092c\u093e\u091f \u0930\u094b\u0915\u094d\u0926\u091b\u0964","tip7":"\u0921\u094d\u092f\u093e\u0938\u092c\u094b\u0930\u094d\u0921\u092e\u093e \u0938\u092e\u094d\u092c\u0928\u094d\u0927\u093f\u0924 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u0938\u092e\u0942\u0939\u092c\u0926\u094d\u0927 \u0917\u0930\u094d\u0928 \u0928\u0947\u092e\u0938\u094d\u092a\u0947\u0938 \u0924\u094b\u0915\u094d\u0928 \u0938\u0915\u093f\u0928\u094d\u091b\u0964","tip8":"\u0930\u093f\u092e\u094b\u091f \u0938\u0930\u094d\u092d\u0930\u0939\u0930\u0942\u0932\u0947 \u0924\u092a\u093e\u0908\u0902\u0932\u093e\u0908 \u092f\u0939\u093e\u0901\u092c\u093e\u091f \u0905\u0928\u094d\u092f \u092e\u0947\u0938\u093f\u0928\u0939\u0930\u0942\u092e\u093e PM2 \u0928\u093f\u0917\u0930\u093e\u0928\u0940 \u0930 \u0928\u093f\u092f\u0928\u094d\u0924\u094d\u0930\u0923 \u0917\u0930\u094d\u0928 \u0926\u093f\u0928\u094d\u091b\u0964","tip9":"\u090f\u092a \u0921\u093f\u092a\u094d\u0932\u094b\u092f \u0935\u093f\u091c\u093e\u0930\u094d\u0921\u0932\u0947 \u092d\u093f\u091c\u0941\u0905\u0932 \u092b\u0930\u094d\u092e\u092c\u093e\u091f pm2 start \u0915\u092e\u093e\u0923\u094d\u0921 \u0909\u0924\u094d\u092a\u0928\u094d\u0928 \u0917\u0930\u094d\u0926\u091b\u0964"},"systemMetrics":{"systemUptime":"\u0938\u093f\u0938\u094d\u091f\u092e \u0905\u092a\u091f\u093e\u0907\u092e","loadAvg":"\u0932\u094b\u0921 \u0914\u0938\u0924","memory":"\u092e\u0947\u092e\u094b\u0930\u0940","cpuCores":"CPU \u0915\u094b\u0930\u0939\u0930\u0942","cpuUsage":"CPU \u0909\u092a\u092f\u094b\u0917"},"whatsNew":{"title":"\u0928\u092f\u093e\u0901 \u0915\u0947 \u091b","subtitle":"EZ PM2 GUI \xb7 \u0905\u092a\u094d\u0930\u093f\u0932 \u0968\u0966\u0968\u096c","fullChangelog":"\u092a\u0942\u0930\u094d\u0923 \u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928 \u0932\u0917","gotIt":"\u092c\u0941\u091d\u093f\u092f\u094b","feature1Title":"\u0932\u093e\u0907\u092d \u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u092a\u0947\u091c","feature2Title":"\u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u0907\u0924\u093f\u0939\u093e\u0938 (SQLite)","feature3Title":"\u0907\u0928\u0932\u093e\u0907\u0928 \u0938\u094d\u092a\u093e\u0930\u094d\u0915\u0932\u093e\u0907\u0928","feature4Title":"\u092c\u094d\u092f\u093e\u0915\u0917\u094d\u0930\u093e\u0909\u0928\u094d\u0921 \u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u092a\u094b\u0932\u0930","feature5Title":"\u0969\u0966-\u0926\u093f\u0928 \u0905\u0935\u0927\u093e\u0930\u0923","feature1Desc":"\u092a\u094d\u0930\u0924\u093f-\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0930\u094b\u0932\u093f\u0919 \u0967-\u0918\u0923\u094d\u091f\u093e CPU \u0930 \u092e\u0947\u092e\u094b\u0930\u0940 \u0938\u094d\u092a\u093e\u0930\u094d\u0915\u0932\u093e\u0907\u0928, \u0939\u0930\u0947\u0915 \u0969 \u0938\u0947\u0915\u0947\u0928\u094d\u0921\u092e\u093e \u0905\u092a\u0921\u0947\u091f\u0964","feature2Desc":"\u0930\u093f\u092e\u094b\u091f \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u0939\u0930\u0947\u0915 \u0969\u0966 \u0938\u0947\u0915\u0947\u0928\u094d\u0921\u092e\u093e \u0938\u094d\u0925\u093e\u0928\u0940\u092f SQLite DB \u092e\u093e \u0930\u0947\u0915\u0930\u094d\u0921 \u0917\u0930\u093f\u0928\u094d\u091b\u0964","feature3Desc":"\u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u0924\u093e\u0932\u093f\u0915\u093e\u0915\u094b \u0939\u0930\u0947\u0915 \u092a\u0919\u094d\u0915\u094d\u0924\u093f\u092e\u093e \u0905\u092c \u0967-\u0918\u0923\u094d\u091f\u093e CPU \u0930 \u092e\u0947\u092e\u094b\u0930\u0940 \u092e\u093e\u0907\u0915\u094d\u0930\u094b-\u0917\u094d\u0930\u093e\u092b \u0926\u0947\u0916\u093e\u0907\u0928\u094d\u091b\u0964","feature4Desc":"\u0938\u0930\u094d\u092d\u0930-\u0938\u093e\u0907\u0921 \u092a\u094b\u0932\u0930\u0932\u0947 \u0939\u0930\u0947\u0915 \u0969\u0966 \u0938\u0947\u0915\u0947\u0928\u094d\u0921\u092e\u093e \u091c\u0921\u093e\u0928 \u092d\u090f\u0915\u093e \u0930\u093f\u092e\u094b\u091f \u0938\u0930\u094d\u092d\u0930\u0939\u0930\u0942 \u0928\u092e\u0941\u0928\u093e \u0932\u093f\u0928\u094d\u091b\u0964","feature5Desc":"\u0910\u0924\u093f\u0939\u093e\u0938\u093f\u0915 \u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u0969\u0966 \u0926\u093f\u0928 \u092a\u091b\u093f \u0938\u094d\u0935\u0924\u0903 \u0939\u091f\u093e\u0907\u0928\u094d\u091b\u0964","pageSubtitle":"EZ PM2 GUI \u092e\u093e \u0928\u0935\u0940\u0928\u0924\u092e \u0905\u092a\u0921\u0947\u091f\u0939\u0930\u0942 \u0930 \u0938\u0941\u0927\u093e\u0930\u0939\u0930\u0942","configureSecurity":"\u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0915\u0928\u094d\u092b\u093f\u0917\u0930","configureSecurityDesc":"\u0938\u0947\u091f\u093f\u0919\u092c\u093e\u091f \u092a\u093f\u0928 \u0930 \u092a\u093e\u0938\u0935\u0930\u094d\u0921 \u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0938\u0947\u091f\u0905\u092a \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964","openSettings":"\u0938\u0947\u091f\u093f\u0919 \u0916\u094b\u0932\u094d\u0928\u0941\u0939\u094b\u0938\u094d"},"scriptEditor":{"title":"\u0907\u0928\u0932\u093e\u0907\u0928 \u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f","tip":"\u0938\u0941\u091d\u093e\u0935: \u0906\u0909\u091f\u092a\u0941\u091f\u0915\u094b \u0932\u093e\u0917\u093f console.log/print/echo \u092a\u094d\u0930\u092f\u094b\u0917 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964 \u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f\u0939\u0930\u0942 \u092a\u0942\u0930\u093e \u0939\u0941\u0901\u0926\u093e \u092c\u093e\u0939\u093f\u0930 \u0928\u093f\u0938\u094d\u0915\u0928\u0941\u092a\u0930\u094d\u091b\u0964"},"serverSwitcher":{"title":"\u0938\u0915\u094d\u0930\u093f\u092f \u0938\u0930\u094d\u092d\u0930 \u0938\u094d\u0935\u093f\u091a","local":"\u0932\u094b\u0915\u0932","localhost":"localhost","remoteServers":"\u0930\u093f\u092e\u094b\u091f \u0938\u0930\u094d\u092d\u0930\u0939\u0930\u0942"},"confirmDialog":{"confirm":"\u092a\u0941\u0937\u094d\u091f\u093f","cancel":"\u0930\u0926\u094d\u0926"},"advancedMonitoring":{"title":"\u0909\u0928\u094d\u0928\u0924 \u0928\u093f\u0917\u0930\u093e\u0928\u0940","healthScore":"\u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f \u0938\u094d\u0915\u094b\u0930","alerts":"\u0905\u0932\u0930\u094d\u091f\u0939\u0930\u0942","noAlerts":"\u0915\u0941\u0928\u0948 \u0938\u0915\u094d\u0930\u093f\u092f \u0905\u0932\u0930\u094d\u091f \u091b\u0948\u0928","timeRange":"\u0938\u092e\u092f \u0926\u093e\u092f\u0930\u093e","30min":"\u0969\u0966 \u092e\u093f\u0928\u0947\u091f","1hr":"\u0967 \u0918\u0923\u094d\u091f\u093e","6hr":"\u096c \u0918\u0923\u094d\u091f\u093e","12hr":"\u0967\u0968 \u0918\u0923\u094d\u091f\u093e","24hr":"\u0968\u096a \u0918\u0923\u094d\u091f\u093e","7days":"\u096d \u0926\u093f\u0928","subtitle":"\u0935\u093e\u0938\u094d\u0924\u0935\u093f\u0915-\u0938\u092e\u092f \u0938\u093f\u0938\u094d\u091f\u092e \u0930 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u092a\u094d\u0930\u0926\u0930\u094d\u0936\u0928 \u092a\u094d\u0930\u0935\u0943\u0924\u094d\u0924\u093f\u0939\u0930\u0942","live":"\u0932\u093e\u0907\u092d","systemHealth":"\u0938\u093f\u0938\u094d\u091f\u092e \u0938\u094d\u0935\u093e\u0938\u094d\u0925\u094d\u092f","activeProcesses":"\u0938\u0915\u094d\u0930\u093f\u092f \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942","ofTotal":"{{count}} \u0915\u0941\u0932 \u092e\u0927\u094d\u092f\u0947","memoryUsage":"\u092e\u0947\u092e\u094b\u0930\u0940 \u0909\u092a\u092f\u094b\u0917","cpuLoad":"CPU \u0932\u094b\u0921","coresAvailable":"{{count}} \u0915\u094b\u0930\u0939\u0930\u0942 \u0909\u092a\u0932\u092c\u094d\u0927","activeAlerts":"\u0938\u0915\u094d\u0930\u093f\u092f \u0905\u0932\u0930\u094d\u091f\u0939\u0930\u0942","allHealthy":"\u0938\u092c\u0948 \u0938\u093f\u0938\u094d\u091f\u092e \u0938\u094d\u0935\u0938\u094d\u0925","processPerformance":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u092a\u094d\u0930\u0926\u0930\u094d\u0936\u0928","cpuDataset":"CPU \u0909\u092a\u092f\u094b\u0917 (%)","memDataset":"\u092e\u0947\u092e\u094b\u0930\u0940 \u0909\u092a\u092f\u094b\u0917 (GB)"},"metricsHistory":{"title":"\u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u0907\u0924\u093f\u0939\u093e\u0938","subtitle":"\u092a\u094d\u0930\u0924\u093f-\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e CPU \u0930 \u092e\u0947\u092e\u094b\u0930\u0940 \u0907\u0924\u093f\u0939\u093e\u0938 \u2014 \u0905\u0928\u094d\u0924\u093f\u092e \u0969 \u092e\u093f\u0928\u0947\u091f, \u0939\u0930\u0947\u0915 \u0969 \u0938\u0947\u0915\u0947\u0928\u094d\u0921\u092e\u093e \u0930\u093f\u092b\u094d\u0930\u0947\u0938","live":"\u0932\u093e\u0907\u092d","paused":"\u0930\u094b\u0915\u093f\u090f\u0915\u094b","loading":"\u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u0907\u0924\u093f\u0939\u093e\u0938 \u0932\u094b\u0921 \u0939\u0941\u0901\u0926\u0948\u091b...","noHistory":"\u0905\u091d\u0948 \u0915\u0941\u0928\u0948 \u0907\u0924\u093f\u0939\u093e\u0938 \u091b\u0948\u0928...","window":"\u0935\u093f\u0928\u094d\u0921\u094b","sparklineHint":"\u0938\u094d\u092a\u093e\u0930\u094d\u0915\u0932\u093e\u0907\u0928"},"remoteMetrics":{"title":"\u0930\u093f\u092e\u094b\u091f \u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938","subtitle":"\u0930\u093f\u092e\u094b\u091f PM2 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942\u0915\u094b CPU \u0930 \u092e\u0947\u092e\u094b\u0930\u0940 \u0907\u0924\u093f\u0939\u093e\u0938","connection":"\u091c\u0921\u093e\u0928","process":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e","range":"\u0926\u093e\u092f\u0930\u093e","autoRefresh":"\u0938\u094d\u0935\u0924\u0903 \u0930\u093f\u092b\u094d\u0930\u0947\u0938 (\u0969\u0966s)","on":"\u091a\u093e\u0932\u0941","off":"\u092c\u0928\u094d\u0926","selectConnection":"\u0930\u0947\u0915\u0930\u094d\u0921 \u0917\u0930\u093f\u090f\u0915\u093e \u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u0939\u0947\u0930\u094d\u0928 \u091c\u0921\u093e\u0928 \u091a\u092f\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","metricsRecorded":"\u0930\u093f\u092e\u094b\u091f \u0938\u0930\u094d\u092d\u0930 \u091c\u0921\u093e\u0928 \u0939\u0941\u0901\u0926\u093e \u092e\u0947\u091f\u094d\u0930\u093f\u0915\u094d\u0938 \u0939\u0930\u0947\u0915 \u0969\u0966 \u0938\u0947\u0915\u0947\u0928\u094d\u0921\u092e\u093e \u0930\u0947\u0915\u0930\u094d\u0921 \u0917\u0930\u093f\u0928\u094d\u091b","noData":"\u0905\u091d\u0948 \u0915\u0941\u0928\u0948 \u0921\u0947\u091f\u093e \u091b\u0948\u0928 \u2014 \u0930\u093f\u092e\u094b\u091f \u0938\u0930\u094d\u092d\u0930 \u091c\u0921\u093e\u0928 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d \u0930 \u092a\u0939\u093f\u0932\u094b \u092a\u094b\u0932 \u091a\u0915\u094d\u0930\u0915\u094b \u092a\u094d\u0930\u0924\u0940\u0915\u094d\u0937\u093e \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d","noProcesses":"\u092f\u0938 \u091c\u0921\u093e\u0928\u0915\u094b \u0932\u093e\u0917\u093f \u0905\u091d\u0948 \u0915\u0941\u0928\u0948 \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0930\u0947\u0915\u0930\u094d\u0921 \u0917\u0930\u093f\u090f\u0915\u094b \u091b\u0948\u0928","cpuUsage":"CPU \u0909\u092a\u092f\u094b\u0917","memoryUsage":"\u092e\u0947\u092e\u094b\u0930\u0940 \u0909\u092a\u092f\u094b\u0917","recentSamples":"\u0939\u093e\u0932\u0948\u0915\u093e \u0928\u092e\u0941\u0928\u093e\u0939\u0930\u0942 (\u0905\u0928\u094d\u0924\u093f\u092e \u0968\u0966)","time":"\u0938\u092e\u092f","noDataRange":"\u091a\u092f\u0928\u093f\u0924 \u0926\u093e\u092f\u0930\u093e\u0915\u094b \u0932\u093e\u0917\u093f \u0915\u0941\u0928\u0948 \u0921\u0947\u091f\u093e \u091b\u0948\u0928","refresh":"\u0930\u093f\u092b\u094d\u0930\u0947\u0938"},"logPanel":{"pause":"\u0930\u094b\u0915\u094d\u0928\u0941\u0939\u094b\u0938\u094d","resume":"\u091c\u093e\u0930\u0940 \u0930\u093e\u0916\u094d\u0928\u0941\u0939\u094b\u0938\u094d","clear":"\u0916\u093e\u0932\u0940","close":"\u092c\u0928\u094d\u0926","expand":"\u0935\u093f\u0938\u094d\u0924\u093e\u0930","collapse":"\u0938\u0919\u094d\u0915\u0941\u091a\u093f\u0924","closeSession":"\u0938\u0924\u094d\u0930 \u092c\u0928\u094d\u0926","waiting":"\u0932\u0917\u0939\u0930\u0942\u0915\u094b \u092a\u094d\u0930\u0924\u0940\u0915\u094d\u0937\u093e\u2026","paused":"\u0930\u094b\u0915\u093f\u090f\u0915\u094b","linesToLoad":"\u0932\u094b\u0921 \u0917\u0930\u094d\u0928\u0947 \u0932\u093e\u0907\u0928\u0939\u0930\u0942","scanningDir":"\u0932\u0917 \u0921\u093e\u0907\u0930\u0947\u0915\u094d\u091f\u0930\u0940 \u0938\u094d\u0915\u094d\u092f\u093e\u0928 \u0939\u0941\u0901\u0926\u0948\u091b\u2026","downloadFullFile":"\u092a\u0942\u0930\u094d\u0923 \u092b\u093e\u0907\u0932 \u0921\u093e\u0909\u0928\u0932\u094b\u0921"},"errors":{"failedToConnect":"\u0938\u0930\u094d\u092d\u0930\u092e\u093e \u091c\u094b\u0921\u094d\u0928 \u0905\u0938\u092b\u0932\u0964 \u0915\u0947 PM2 \u091a\u0932\u093f\u0930\u0939\u0947\u0915\u094b \u091b?","pm2NotInstalled":"PM2 \u0938\u094d\u0925\u093e\u092a\u093f\u0924 \u091b\u0948\u0928\u0964 \u0915\u0943\u092a\u092f\u093e \u0935\u093f\u0936\u094d\u0935\u0935\u094d\u092f\u093e\u092a\u0940 \u0930\u0942\u092a\u092e\u093e PM2 \u0938\u094d\u0925\u093e\u092a\u0928\u093e \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d: npm install -g pm2","failedToFetchModules":"\u092e\u094b\u0921\u094d\u092f\u0941\u0932\u0939\u0930\u0942 \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932","moduleNameRequired":"\u092e\u094b\u0921\u094d\u092f\u0941\u0932\u0915\u094b \u0928\u093e\u092e \u0906\u0935\u0936\u094d\u092f\u0915 \u091b","connectionLost":"\u0938\u0930\u094d\u092d\u0930\u0938\u0901\u0917 \u091c\u0921\u093e\u0928 \u0939\u0930\u093e\u090f\u0915\u094b \u091b\u0964 \u092a\u0941\u0928\u0903 \u091c\u0921\u093e\u0928 \u0917\u0930\u094d\u0928\u0947 \u092a\u094d\u0930\u092f\u093e\u0938 \u0917\u0930\u094d\u0926\u0948\u091b...","failedFetchRemote":"\u0930\u093f\u092e\u094b\u091f \u0938\u0930\u094d\u092d\u0930\u092c\u093e\u091f \u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e\u0939\u0930\u0942 \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932: {{error}}","failedProcessAction":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e {{action}} \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932\u0964 {{error}}","failedConnectTo":"{{name}} \u092e\u093e \u091c\u0921\u093e\u0928 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932: {{error}}","failedRefreshProcessData":"\u092a\u094d\u0930\u0915\u094d\u0930\u093f\u092f\u093e \u0921\u0947\u091f\u093e \u0930\u093f\u092b\u094d\u0930\u0947\u0938 \u0917\u0930\u094d\u0928 \u0905\u0938\u092b\u0932"}}'),be=localStorage.getItem("ezpm2gui-language")||"en";Q.use(ue).init({resources:{en:{translation:ge},ne:{translation:xe}},lng:be,fallbackLng:"en",interpolation:{escapeValue:!1}});const ve=Object.create(null);ve.open="0",ve.close="1",ve.ping="2",ve.pong="3",ve.message="4",ve.upgrade="5",ve.noop="6";const ye=Object.create(null);Object.keys(ve).forEach((e=>{ye[ve[e]]=e}));const we={type:"error",data:"parser error"},ke="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Se="function"===typeof ArrayBuffer,je=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ce=(e,t,n)=>{let{type:o,data:r}=e;return ke&&r instanceof Blob?t?n(r):Ae(r,n):Se&&(r instanceof ArrayBuffer||je(r))?t?n(r):Ae(new Blob([r]),n):n(ve[o]+(r||""))},Ae=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Ne(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Ee;const _e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pe="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let n=0;n<64;n++)Pe[_e.charCodeAt(n)]=n;const Me="function"===typeof ArrayBuffer,Re=(e,t)=>{if("string"!==typeof e)return{type:"message",data:Te(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:Oe(e.substring(1),t)};return ye[n]?e.length>1?{type:ye[n],data:e.substring(1)}:{type:ye[n]}:we},Oe=(e,t)=>{if(Me){const n=(e=>{let t,n,o,r,s,a=.75*e.length,i=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),d=new Uint8Array(c);for(t=0;t<i;t+=4)n=Pe[e.charCodeAt(t)],o=Pe[e.charCodeAt(t+1)],r=Pe[e.charCodeAt(t+2)],s=Pe[e.charCodeAt(t+3)],d[l++]=n<<2|o>>4,d[l++]=(15&o)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return c})(e);return Te(n,t)}return{base64:!0,data:e}},Te=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Le=String.fromCharCode(30);function Ie(){return new TransformStream({transform(e,t){!function(e,t){ke&&e.data instanceof Blob?e.data.arrayBuffer().then(Ne).then(t):Se&&(e.data instanceof ArrayBuffer||je(e.data))?t(Ne(e.data)):Ce(e,!1,(e=>{Ee||(Ee=new TextEncoder),t(Ee.encode(e))}))}(e,(n=>{const o=n.length;let r;if(o<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,o);else if(o<65536){r=new Uint8Array(3);const e=new DataView(r.buffer);e.setUint8(0,126),e.setUint16(1,o)}else{r=new Uint8Array(9);const e=new DataView(r.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(o))}e.data&&"string"!==typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)}))}})}let De;function ze(e){return e.reduce(((e,t)=>e+t.length),0)}function Fe(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let o=0;for(let r=0;r<t;r++)n[r]=e[0][o++],o===e[0].length&&(e.shift(),o=0);return e.length&&o<e[0].length&&(e[0]=e[0].slice(o)),n}function Be(e){if(e)return function(e){for(var t in Be.prototype)e[t]=Be.prototype[t];return e}(e)}Be.prototype.on=Be.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Be.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Be.prototype.off=Be.prototype.removeListener=Be.prototype.removeAllListeners=Be.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,o=this._callbacks["$"+e];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<o.length;r++)if((n=o[r])===t||n.fn===t){o.splice(r,1);break}return 0===o.length&&delete this._callbacks["$"+e],this},Be.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(n){o=0;for(var r=(n=n.slice(0)).length;o<r;++o)n[o].apply(this,t)}return this},Be.prototype.emitReserved=Be.prototype.emit,Be.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Be.prototype.hasListeners=function(e){return!!this.listeners(e).length};const We="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Ue="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")();function He(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const Ve=Ue.setTimeout,Ke=Ue.clearTimeout;function qe(e,t){t.useNativeTimers?(e.setTimeoutFn=Ve.bind(Ue),e.clearTimeoutFn=Ke.bind(Ue)):(e.setTimeoutFn=Ue.setTimeout.bind(Ue),e.clearTimeoutFn=Ue.clearTimeout.bind(Ue))}function $e(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class Je extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class Ye extends Be{constructor(e){super(),this.writable=!1,qe(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new Je(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Re(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class Ge extends Ye{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(Le),o=[];for(let r=0;r<n.length;r++){const e=Re(n[r],t);if(o.push(e),"error"===e.type)break}return o})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,o=new Array(n);let r=0;e.forEach(((e,s)=>{Ce(e,!1,(e=>{o[s]=e,++r===n&&t(o.join(Le))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=$e()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let Xe=!1;try{Xe="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(vM){}const Ze=Xe;function Qe(){}class et extends Ge{constructor(e){if(super(e),"undefined"!==typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}class tt extends Be{constructor(e,t,n){super(),this.createRequest=e,qe(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=He(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(o){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(o){}try{n.setRequestHeader("Accept","*/*")}catch(o){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"===typeof n.status?n.status:0)}),0))},n.send(this._data)}catch(o){return void this.setTimeoutFn((()=>{this._onError(o)}),0)}"undefined"!==typeof document&&(this._index=tt.requestsCount++,tt.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if("undefined"!==typeof this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=Qe,e)try{this._xhr.abort()}catch(t){}"undefined"!==typeof document&&delete tt.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(tt.requestsCount=0,tt.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",nt);else if("function"===typeof addEventListener){addEventListener("onpagehide"in Ue?"pagehide":"unload",nt,!1)}function nt(){for(let e in tt.requests)tt.requests.hasOwnProperty(e)&&tt.requests[e].abort()}const ot=function(){const e=rt({xdomain:!1});return e&&null!==e.responseType}();function rt(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||Ze))return new XMLHttpRequest}catch(n){}if(!t)try{return new(Ue[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}const st="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class at extends Ye{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=st?{}:He(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(vM){return this.emitReserved("error",vM)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],o=t===e.length-1;Ce(n,this.supportsBinary,(e=>{try{this.doWrite(n,e)}catch(t){}o&&We((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=$e()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const it=Ue.WebSocket||Ue.MozWebSocket;const lt={websocket:class extends at{createSocket(e,t,n){return st?new it(e,t,n):t?new it(e,t):new it(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends Ye{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(vM){return this.emitReserved("error",vM)}this._transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=function(e,t){De||(De=new TextDecoder);const n=[];let o=0,r=-1,s=!1;return new TransformStream({transform(a,i){for(n.push(a);;){if(0===o){if(ze(n)<1)break;const e=Fe(n,1);s=128===(128&e[0]),r=127&e[0],o=r<126?3:126===r?1:2}else if(1===o){if(ze(n)<2)break;const e=Fe(n,2);r=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),o=3}else if(2===o){if(ze(n)<8)break;const e=Fe(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),s=t.getUint32(0);if(s>Math.pow(2,21)-1){i.enqueue(we);break}r=s*Math.pow(2,32)+t.getUint32(4),o=3}else{if(ze(n)<r)break;const e=Fe(n,r);i.enqueue(Re(s?e:De.decode(e),t)),o=0}if(0===r||r>e){i.enqueue(we);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),o=Ie();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();const r=()=>{n.read().then((e=>{let{done:t,value:n}=e;t||(this.onPacket(n),r())})).catch((e=>{}))};r();const s={type:"open"};this.query.sid&&(s.data='{"sid":"'.concat(this.query.sid,'"}')),this._writer.write(s).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],o=t===e.length-1;this._writer.write(n).then((()=>{o&&We((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends et{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=ot&&!t}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd},this.opts),new tt(rt,this.uri(),e)}}},ct=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,dt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ut(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));let r=ct.exec(e||""),s={},a=14;for(;a--;)s[dt[a]]=r[a]||"";return-1!=n&&-1!=o&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function(e,t){const n=/\/{2,9}/g,o=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||o.splice(0,1);"/"==t.slice(-1)&&o.splice(o.length-1,1);return o}(0,s.path),s.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}(0,s.query),s}const pt="function"===typeof addEventListener&&"function"===typeof removeEventListener,ht=[];pt&&addEventListener("offline",(()=>{ht.forEach((e=>e()))}),!1);class ft extends Be{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"===typeof e&&(t=e,e=null),e){const n=ut(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=ut(t.host).host);qe(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let o=0,r=n.length;o<r;o++){let e=n[o].split("=");t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),pt&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ht.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&ft.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){this.readyState="open",ft.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const o=this.writeBuffer[n].data;if(o&&(e+="string"===typeof(t=o)?function(e){let t=0,n=0;for(let o=0,r=e.length;o<r;o++)t=e.charCodeAt(o),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(o++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,We((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,o){if("function"===typeof t&&(o=t,t=void 0),"function"===typeof n&&(o=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const r={type:e,data:t,options:n};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}_onError(e){if(ft.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),pt&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=ht.indexOf(this._offlineEventListener);-1!==e&&ht.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}ft.protocol=4;class mt extends ft{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;ft.priorWebsocketSuccess=!1;const o=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ft.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function r(){n||(n=!0,c(),t.close(),t=null)}const s=e=>{const n=new Error("probe error: "+e);n.transport=t.name,r(),this.emitReserved("upgradeError",n)};function a(){s("transport closed")}function i(){s("socket closed")}function l(e){t&&e.name!==t.name&&r()}const c=()=>{t.removeListener("open",o),t.removeListener("error",s),t.removeListener("close",a),this.off("close",i),this.off("upgrading",l)};t.once("open",o),t.once("error",s),t.once("close",a),this.once("close",i),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class gt extends mt{constructor(e){const t="object"===typeof e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t.transports||t.transports&&"string"===typeof t.transports[0])&&(t.transports=(t.transports||["polling","websocket","webtransport"]).map((e=>lt[e])).filter((e=>!!e))),super(e,t)}}const xt="function"===typeof ArrayBuffer,bt=Object.prototype.toString,vt="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===bt.call(Blob),yt="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===bt.call(File);function wt(e){return xt&&(e instanceof ArrayBuffer||(e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||vt&&e instanceof Blob||yt&&e instanceof File}function kt(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(kt(e[t]))return!0;return!1}if(wt(e))return!0;if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return kt(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&kt(e[n]))return!0;return!1}function St(e){const t=[],n=e.data,o=e;return o.data=jt(n,t),o.attachments=t.length,{packet:o,buffers:t}}function jt(e,t){if(!e)return e;if(wt(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let o=0;o<e.length;o++)n[o]=jt(e[o],t);return n}if("object"===typeof e&&!(e instanceof Date)){const n={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=jt(e[o],t));return n}return e}function Ct(e,t){return e.data=At(e.data,t),delete e.attachments,e}function At(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=At(e[n],t);else if("object"===typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=At(e[n],t));return e}const Nt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Et=5;var _t;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(_t||(_t={}));class Pt{constructor(e){this.replacer=e}encode(e){return e.type!==_t.EVENT&&e.type!==_t.ACK||!kt(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===_t.EVENT?_t.BINARY_EVENT:_t.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==_t.BINARY_EVENT&&e.type!==_t.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=St(e),n=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(n),o}}function Mt(e){return"[object Object]"===Object.prototype.toString.call(e)}class Rt extends Be{constructor(e){super(),this.reviver=e}add(e){let t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===_t.BINARY_EVENT;n||t.type===_t.BINARY_ACK?(t.type=n?_t.EVENT:_t.ACK,this.reconstructor=new Ot(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!wt(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===_t[n.type])throw new Error("unknown packet type "+n.type);if(n.type===_t.BINARY_EVENT||n.type===_t.BINARY_ACK){const o=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const r=e.substring(o,t);if(r!=Number(r)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(r)}if("/"===e.charAt(t+1)){const o=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(o,t)}else n.nsp="/";const o=e.charAt(t+1);if(""!==o&&Number(o)==o){const o=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=this.tryParse(e.substr(t));if(!Rt.isPayloadValid(n.type,o))throw new Error("invalid payload");n.data=o}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case _t.CONNECT:return Mt(t);case _t.DISCONNECT:return void 0===t;case _t.CONNECT_ERROR:return"string"===typeof t||Mt(t);case _t.EVENT:case _t.BINARY_EVENT:return Array.isArray(t)&&("number"===typeof t[0]||"string"===typeof t[0]&&-1===Nt.indexOf(t[0]));case _t.ACK:case _t.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Ot{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=Ct(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Tt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Lt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class It extends Be{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Tt(e,"open",this.onopen.bind(this)),Tt(e,"packet",this.onpacket.bind(this)),Tt(e,"error",this.onerror.bind(this)),Tt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.unshift("message"),this.emit.apply(this,t),this}emit(e){var t,n,o;if(Lt.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');for(var r=arguments.length,s=new Array(r>1?r-1:0),a=1;a<r;a++)s[a-1]=arguments[a];if(s.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(s),this;const i={type:_t.EVENT,data:s,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"===typeof s[s.length-1]){const e=this.ids++,t=s.pop();this._registerAckCallback(e,t),i.id=e}const l=null===(n=null===(t=this.io.engine)||void 0===t?void 0:t.transport)||void 0===n?void 0:n.writable,c=this.connected&&!(null===(o=this.io.engine)||void 0===o?void 0:o._hasPingExpired());return this.flags.volatile&&!l||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var n,o=this;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const s=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),r),a=function(){o.io.clearTimeoutFn(s);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(o,n)};a.withError=!0,this.acks[e]=a}emitWithAck(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new Promise(((t,o)=>{const r=(e,n)=>e?o(e):t(n);r.withError=!0,n.push(r),this.emit(e,...n)}))}_addToQueue(e){var t=this;let n;"function"===typeof e[e.length-1]&&(n=e.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((function(e){if(o!==t._queue[0])return;if(null!==e)o.tryCount>t._opts.retries&&(t._queue.shift(),n&&n(e));else if(t._queue.shift(),n){for(var r=arguments.length,s=new Array(r>1?r-1:0),a=1;a<r;a++)s[a-1]=arguments[a];n(null,...s)}return o.pending=!1,t._drainQueue()})),this._queue.push(o),this._drainQueue()}_drainQueue(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:_t.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case _t.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case _t.EVENT:case _t.BINARY_EVENT:this.onevent(e);break;case _t.ACK:case _t.BINARY_ACK:this.onack(e);break;case _t.DISCONNECT:this.ondisconnect();break;case _t.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(){if(!n){n=!0;for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];t.packet({type:_t.ACK,id:e,data:r})}}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:_t.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function Dt(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Dt.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Dt.prototype.reset=function(){this.attempts=0},Dt.prototype.setMin=function(e){this.ms=e},Dt.prototype.setMax=function(e){this.max=e},Dt.prototype.setJitter=function(e){this.jitter=e};class zt extends Be{constructor(t,n){var o;super(),this.nsps={},this.subs=[],t&&"object"===typeof t&&(n=t,t=void 0),(n=n||{}).path=n.path||"/socket.io",this.opts=n,qe(this,n),this.reconnection(!1!==n.reconnection),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(o=n.randomizationFactor)&&void 0!==o?o:.5),this.backoff=new Dt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==n.timeout?2e4:n.timeout),this._readyState="closed",this.uri=t;const r=n.parser||e;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==n.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new gt(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=Tt(t,"open",(function(){n.onopen(),e&&e()})),r=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},s=Tt(t,"error",r);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{o(),r(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(o),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Tt(e,"ping",this.onping.bind(this)),Tt(e,"data",this.ondata.bind(this)),Tt(e,"error",this.onerror.bind(this)),Tt(e,"close",this.onclose.bind(this)),Tt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){We((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new It(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t){if(this.nsps[n].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Ft={};function Bt(e,t){"object"===typeof e&&(t=e,e=void 0);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,o=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),o=ut(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const r=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+r+":"+o.port+t,o.href=o.protocol+"://"+r+(n&&n.port===o.port?"":":"+o.port),o}(e,(t=t||{}).path||"/socket.io"),o=n.source,r=n.id,s=n.path,a=Ft[r]&&s in Ft[r].nsps;let i;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?i=new zt(o,t):(Ft[r]||(Ft[r]=new zt(o,t)),i=Ft[r]),n.query&&!t.query&&(t.query=n.queryKey),i.socket(n.path,t)}function Wt(e,t){return function(){return e.apply(t,arguments)}}Object.assign(Bt,{Manager:zt,Socket:It,io:Bt,connect:Bt});const{toString:Ut}=Object.prototype,{getPrototypeOf:Ht}=Object,{iterator:Vt,toStringTag:Kt}=Symbol,qt=(e=>t=>{const n=Ut.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$t=e=>(e=e.toLowerCase(),t=>qt(t)===e),Jt=e=>t=>typeof t===e,{isArray:Yt}=Array,Gt=Jt("undefined");const Xt=$t("ArrayBuffer");const Zt=Jt("string"),Qt=Jt("function"),en=Jt("number"),tn=e=>null!==e&&"object"===typeof e,nn=e=>{if("object"!==qt(e))return!1;const t=Ht(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Kt in e)&&!(Vt in e)},on=$t("Date"),rn=$t("File"),sn=$t("Blob"),an=$t("FileList"),ln=$t("URLSearchParams"),[cn,dn,un,pn]=["ReadableStream","Request","Response","Headers"].map($t);function hn(e,t){let n,o,{allOwnKeys:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),Yt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function fn(e,t){t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const mn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,gn=e=>!Gt(e)&&e!==mn;const xn=(bn="undefined"!==typeof Uint8Array&&Ht(Uint8Array),e=>bn&&e instanceof bn);var bn;const vn=$t("HTMLFormElement"),yn=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),wn=$t("RegExp"),kn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};hn(n,((n,r)=>{let s;!1!==(s=t(n,r,e))&&(o[r]=s||n)})),Object.defineProperties(e,o)};const Sn=$t("AsyncFunction"),jn=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),o=[],mn.addEventListener("message",(e=>{let{source:t,data:r}=e;t===mn&&r===n&&o.length&&o.shift()()}),!1),e=>{o.push(e),mn.postMessage(n,"*")}):e=>setTimeout(e);var n,o})("function"===typeof setImmediate,Qt(mn.postMessage)),Cn="undefined"!==typeof queueMicrotask?queueMicrotask.bind(mn):"undefined"!==typeof process&&process.nextTick||jn,An={isArray:Yt,isArrayBuffer:Xt,isBuffer:function(e){return null!==e&&!Gt(e)&&null!==e.constructor&&!Gt(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||Qt(e.append)&&("formdata"===(t=qt(e))||"object"===t&&Qt(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Xt(e.buffer),t},isString:Zt,isNumber:en,isBoolean:e=>!0===e||!1===e,isObject:tn,isPlainObject:nn,isReadableStream:cn,isRequest:dn,isResponse:un,isHeaders:pn,isUndefined:Gt,isDate:on,isFile:rn,isBlob:sn,isRegExp:wn,isFunction:Qt,isStream:e=>tn(e)&&Qt(e.pipe),isURLSearchParams:ln,isTypedArray:xn,isFileList:an,forEach:hn,merge:function e(){const{caseless:t}=gn(this)&&this||{},n={},o=(o,r)=>{const s=t&&fn(n,r)||r;nn(n[s])&&nn(o)?n[s]=e(n[s],o):nn(o)?n[s]=e({},o):Yt(o)?n[s]=o.slice():n[s]=o};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&hn(arguments[r],o);return n},extend:function(e,t,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return hn(t,((t,o)=>{n&&Qt(t)?e[o]=Wt(t,n):e[o]=t}),{allOwnKeys:o}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,s,a;const i={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],o&&!o(a,e,t)||i[a]||(t[a]=e[a],i[a]=!0);e=!1!==n&&Ht(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:qt,kindOfTest:$t,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(Yt(e))return e;let t=e.length;if(!en(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Vt]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:vn,hasOwnProperty:yn,hasOwnProp:yn,reduceDescriptors:kn,freezeMethods:e=>{kn(e,((t,n)=>{if(Qt(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];Qt(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach((e=>{n[e]=!0}))};return Yt(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:fn,global:mn,isContextDefined:gn,isSpecCompliantForm:function(e){return!!(e&&Qt(e.append)&&"FormData"===e[Kt]&&e[Vt])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(tn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const r=Yt(e)?[]:{};return hn(e,((e,t)=>{const s=n(e,o+1);!Gt(s)&&(r[t]=s)})),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:Sn,isThenable:e=>e&&(tn(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),setImmediate:jn,asap:Cn,isIterable:e=>null!=e&&Qt(e[Vt])};function Nn(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}An.inherits(Nn,Error,{toJSON:function(){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:An.toJSONObject(this.config),code:this.code,status:this.status}}});const En=Nn.prototype,_n={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{_n[e]={value:e}})),Object.defineProperties(Nn,_n),Object.defineProperty(En,"isAxiosError",{value:!0}),Nn.from=(e,t,n,o,r,s)=>{const a=Object.create(En);return An.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Nn.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const Pn=Nn;function Mn(e){return An.isPlainObject(e)||An.isArray(e)}function Rn(e){return An.endsWith(e,"[]")?e.slice(0,-2):e}function On(e,t,n){return e?e.concat(t).map((function(e,t){return e=Rn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Tn=An.toFlatObject(An,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Ln=function(e,t,n){if(!An.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=An.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!An.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,s=n.dots,a=n.indexes,i=(n.Blob||"undefined"!==typeof Blob&&Blob)&&An.isSpecCompliantForm(t);if(!An.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(An.isDate(e))return e.toISOString();if(!i&&An.isBlob(e))throw new Pn("Blob is not supported. Use a Buffer instead.");return An.isArrayBuffer(e)||An.isTypedArray(e)?i&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let i=e;if(e&&!r&&"object"===typeof e)if(An.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(An.isArray(e)&&function(e){return An.isArray(e)&&!e.some(Mn)}(e)||(An.isFileList(e)||An.endsWith(n,"[]"))&&(i=An.toArray(e)))return n=Rn(n),i.forEach((function(e,o){!An.isUndefined(e)&&null!==e&&t.append(!0===a?On([n],o,s):null===a?n:n+"[]",l(e))})),!1;return!!Mn(e)||(t.append(On(r,n,s),l(e)),!1)}const d=[],u=Object.assign(Tn,{defaultVisitor:c,convertValue:l,isVisitable:Mn});if(!An.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!An.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+o.join("."));d.push(n),An.forEach(n,(function(n,s){!0===(!(An.isUndefined(n)||null===n)&&r.call(t,n,An.isString(s)?s.trim():s,o,u))&&e(n,o?o.concat(s):[s])})),d.pop()}}(e),t};function In(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Dn(e,t){this._pairs=[],e&&Ln(e,this,t)}const zn=Dn.prototype;zn.append=function(e,t){this._pairs.push([e,t])},zn.toString=function(e){const t=e?function(t){return e.call(this,t,In)}:In;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Fn=Dn;function Bn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wn(e,t,n){if(!t)return e;const o=n&&n.encode||Bn;An.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let s;if(s=r?r(t,n):An.isURLSearchParams(t)?t.toString():new Fn(t,n).toString(o),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Un=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){An.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Hn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vn={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Fn,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Kn="undefined"!==typeof window&&"undefined"!==typeof document,qn="object"===typeof navigator&&navigator||void 0,$n=Kn&&(!qn||["ReactNative","NativeScript","NS"].indexOf(qn.product)<0),Jn="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Yn=Kn&&window.location.href||"http://localhost",Gn=c(c({},t),Vn);const Xn=function(e){function t(e,n,o,r){let s=e[r++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),i=r>=e.length;if(s=!s&&An.isArray(o)?o.length:s,i)return An.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a;o[s]&&An.isObject(o[s])||(o[s]=[]);return t(e,n,o[s],r)&&An.isArray(o[s])&&(o[s]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}(o[s])),!a}if(An.isFormData(e)&&An.isFunction(e.entries)){const n={};return An.forEachEntry(e,((e,o)=>{t(function(e){return An.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null};const Zn={transitional:Hn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=An.isObject(e);r&&An.isHTMLForm(e)&&(e=new FormData(e));if(An.isFormData(e))return o?JSON.stringify(Xn(e)):e;if(An.isArrayBuffer(e)||An.isBuffer(e)||An.isStream(e)||An.isFile(e)||An.isBlob(e)||An.isReadableStream(e))return e;if(An.isArrayBufferView(e))return e.buffer;if(An.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ln(e,new Gn.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return Gn.isNode&&An.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=An.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ln(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(An.isString(e))try{return(t||JSON.parse)(e),An.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Zn.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(An.isResponse(e)||An.isReadableStream(e))return e;if(e&&An.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(r){if(n){if("SyntaxError"===r.name)throw Pn.from(r,Pn.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gn.classes.FormData,Blob:Gn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};An.forEach(["delete","get","head","post","put","patch"],(e=>{Zn.headers[e]={}}));const Qn=Zn,eo=An.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"]),to=Symbol("internals");function no(e){return e&&String(e).trim().toLowerCase()}function oo(e){return!1===e||null==e?e:An.isArray(e)?e.map(oo):String(e)}function ro(e,t,n,o,r){return An.isFunction(o)?o.call(this,t,n):(r&&(t=n),An.isString(t)?An.isString(o)?-1!==t.indexOf(o):An.isRegExp(o)?o.test(t):void 0:void 0)}class so{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=no(t);if(!r)throw new Error("header name must be a non-empty string");const s=An.findKey(o,r);(!s||void 0===o[s]||!0===n||void 0===n&&!1!==o[s])&&(o[s||t]=oo(e))}const s=(e,t)=>An.forEach(e,((e,n)=>r(e,n,t)));if(An.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(An.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&eo[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t);else if(An.isObject(e)&&An.isIterable(e)){let n,o,r={};for(const t of e){if(!An.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?An.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=no(e)){const n=An.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(An.isFunction(t))return t.call(this,e,n);if(An.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=no(e)){const n=An.findKey(this,e);return!(!n||void 0===this[n]||t&&!ro(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=no(e)){const r=An.findKey(n,e);!r||t&&!ro(0,n[r],r,t)||(delete n[r],o=!0)}}return An.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!ro(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return An.forEach(this,((o,r)=>{const s=An.findKey(n,r);if(s)return t[s]=oo(o),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();a!==r&&delete t[r],t[a]=oo(o),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return An.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&An.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[to]=this[to]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=no(e);t[o]||(!function(e,t){const n=An.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[o]=!0)}return An.isArray(e)?e.forEach(o):o(e),this}}so.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),An.reduceDescriptors(so.prototype,((e,t)=>{let{value:n}=e,o=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[o]=e}}})),An.freezeMethods(so);const ao=so;function io(e,t){const n=this||Qn,o=t||n,r=ao.from(o.headers);let s=o.data;return An.forEach(e,(function(e){s=e.call(n,s,r.normalize(),t?t.status:void 0)})),r.normalize(),s}function lo(e){return!(!e||!e.__CANCEL__)}function co(e,t,n){Pn.call(this,null==e?"canceled":e,Pn.ERR_CANCELED,t,n),this.name="CanceledError"}An.inherits(co,Pn,{__CANCEL__:!0});const uo=co;function po(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Pn("Request failed with status code "+n.status,[Pn.ERR_BAD_REQUEST,Pn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const ho=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,s=0,a=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=o[a];r||(r=l),n[s]=i,o[s]=l;let d=a,u=0;for(;d!==s;)u+=n[d++],d%=e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),l-r<t)return;const p=c&&l-c;return p?Math.round(1e3*u/p):void 0}};const fo=function(e,t){let n,o,r=0,s=1e3/t;const a=function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();r=s,n=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-r;for(var i=arguments.length,l=new Array(i),c=0;c<i;c++)l[c]=arguments[c];t>=s?a(l,e):(n=l,o||(o=setTimeout((()=>{o=null,a(n)}),s-t)))},()=>n&&a(n)]},mo=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,o=0;const r=ho(50,250);return fo((n=>{const s=n.loaded,a=n.lengthComputable?n.total:void 0,i=s-o,l=r(i);o=s;e({loaded:s,total:a,progress:a?s/a:void 0,bytes:i,rate:l||void 0,estimated:l&&a&&s<=a?(a-s)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},go=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},xo=e=>function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return An.asap((()=>e(...n)))},bo=Gn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Gn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Gn.origin),Gn.navigator&&/(msie|trident)/i.test(Gn.navigator.userAgent)):()=>!0,vo=Gn.hasStandardBrowserEnv?{write(e,t,n,o,r,s){const a=[e+"="+encodeURIComponent(t)];An.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),An.isString(o)&&a.push("path="+o),An.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function yo(e,t,n){let o=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const wo=e=>e instanceof ao?c({},e):e;function ko(e,t){t=t||{};const n={};function o(e,t,n,o){return An.isPlainObject(e)&&An.isPlainObject(t)?An.merge.call({caseless:o},e,t):An.isPlainObject(t)?An.merge({},t):An.isArray(t)?t.slice():t}function r(e,t,n,r){return An.isUndefined(t)?An.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function s(e,t){if(!An.isUndefined(t))return o(void 0,t)}function a(e,t){return An.isUndefined(t)?An.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function i(n,r,s){return s in t?o(n,r):s in e?o(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(e,t,n)=>r(wo(e),wo(t),0,!0)};return An.forEach(Object.keys(Object.assign({},e,t)),(function(o){const s=l[o]||r,a=s(e[o],t[o],o);An.isUndefined(a)&&s!==i||(n[o]=a)})),n}const So=e=>{const t=ko({},e);let n,{data:o,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:l}=t;if(t.headers=i=ao.from(i),t.url=Wn(yo(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),An.isFormData(o))if(Gn.hasStandardBrowserEnv||Gn.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(n=i.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(Gn.hasStandardBrowserEnv&&(r&&An.isFunction(r)&&(r=r(t)),r||!1!==r&&bo(t.url))){const e=s&&a&&vo.read(a);e&&i.set(s,e)}return t},jo="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=So(e);let r=o.data;const s=ao.from(o.headers).normalize();let a,i,l,c,d,{responseType:u,onUploadProgress:p,onDownloadProgress:h}=o;function f(){c&&c(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const o=ao.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());po((function(e){t(e),f()}),(function(e){n(e),f()}),{data:u&&"text"!==u&&"json"!==u?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Pn("Request aborted",Pn.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Pn("Network Error",Pn.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||Hn;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Pn(t,r.clarifyTimeoutError?Pn.ETIMEDOUT:Pn.ECONNABORTED,e,m)),m=null},void 0===r&&s.setContentType(null),"setRequestHeader"in m&&An.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),An.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),u&&"json"!==u&&(m.responseType=o.responseType),h&&([l,d]=mo(h,!0),m.addEventListener("progress",l)),p&&m.upload&&([i,c]=mo(p),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(a=t=>{m&&(n(!t||t.type?new uo(null,e,m):t),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(a),o.signal&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)));const x=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);x&&-1===Gn.protocols.indexOf(x)?n(new Pn("Unsupported protocol "+x+":",Pn.ERR_BAD_REQUEST,e)):m.send(r||null)}))},Co=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const r=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;o.abort(t instanceof Pn?t:new uo(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,r(new Pn("timeout ".concat(t," of ms exceeded"),Pn.ETIMEDOUT))}),t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)})),e=null)};e.forEach((e=>e.addEventListener("abort",r)));const{signal:i}=o;return i.unsubscribe=()=>An.asap(a),i}};function Ao(e,t){this.v=e,this.k=t}function No(e){return function(){return new Eo(e.apply(this,arguments))}}function Eo(e){var t,n;function o(t,n){try{var s=e[t](n),a=s.value,i=a instanceof Ao;Promise.resolve(i?a.v:a).then((function(n){if(i){var l="return"===t?"return":"next";if(!a.k||n.done)return o(l,n);n=e[l](n).value}r(s.done?"return":"normal",n)}),(function(e){o("throw",e)}))}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?o(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(s,a){var i={key:e,arg:r,resolve:s,reject:a,next:null};n?n=n.next=i:(t=n=i,o(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}function _o(e){return new Ao(e,0)}function Po(e){var t={},n=!1;function o(t,o){return n=!0,o=new Promise((function(n){n(e[t](o))})),{done:!1,value:new Ao(o,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):o("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return o("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):o("return",e)}),t}function Mo(e){var t,n,o,r=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,o=Symbol.iterator);r--;){if(n&&null!=(t=e[n]))return t.call(e);if(o&&null!=(t=e[o]))return new Ro(t.call(e));n="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function Ro(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return Ro=function(e){this.s=e,this.n=e.next},Ro.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Ro(e)}Eo.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Eo.prototype.next=function(e){return this._invoke("next",e)},Eo.prototype.throw=function(e){return this._invoke("throw",e)},Eo.prototype.return=function(e){return this._invoke("return",e)};const Oo=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},To=function(){var e=No((function*(e,t){var n,o=!1,r=!1;try{for(var s,a=Mo(Lo(e));o=!(s=yield _o(a.next())).done;o=!1){const e=s.value;yield*Po(Mo(Oo(e,t)))}}catch(vM){r=!0,n=vM}finally{try{o&&null!=a.return&&(yield _o(a.return()))}finally{if(r)throw n}}}));return function(t,n){return e.apply(this,arguments)}}(),Lo=function(){var e=No((function*(e){if(e[Symbol.asyncIterator])return void(yield*Po(Mo(e)));const t=e.getReader();try{for(;;){const{done:e,value:n}=yield _o(t.read());if(e)break;yield n}}finally{yield _o(t.cancel())}}));return function(t){return e.apply(this,arguments)}}(),Io=(e,t,n,o)=>{const r=To(e,t);let s,a=0,i=e=>{s||(s=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return i(),void e.close();let s=o.byteLength;if(n){let e=a+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(vM){throw i(vM),vM}},cancel:e=>(i(e),r.return())},{highWaterMark:2})},Do="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,zo=Do&&"function"===typeof ReadableStream,Fo=Do&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Bo=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return!!e(...n)}catch(r){return!1}},Wo=zo&&Bo((()=>{let e=!1;const t=new Request(Gn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Uo=zo&&Bo((()=>An.isReadableStream(new Response("").body))),Ho={stream:Uo&&(e=>e.body)};var Vo;Do&&(Vo=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ho[e]&&(Ho[e]=An.isFunction(Vo[e])?t=>t[e]():(t,n)=>{throw new Pn("Response type '".concat(e,"' is not supported"),Pn.ERR_NOT_SUPPORT,n)})})));const Ko=async(e,t)=>{const n=An.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(An.isBlob(e))return e.size;if(An.isSpecCompliantForm(e)){const t=new Request(Gn.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return An.isArrayBufferView(e)||An.isArrayBuffer(e)?e.byteLength:(An.isURLSearchParams(e)&&(e+=""),An.isString(e)?(await Fo(e)).byteLength:void 0)})(t):n},qo=Do&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:i,onUploadProgress:l,responseType:d,headers:u,withCredentials:p="same-origin",fetchOptions:h}=So(e);d=d?(d+"").toLowerCase():"text";let f,m=Co([r,s&&s.toAbortSignal()],a);const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let x;try{if(l&&Wo&&"get"!==n&&"head"!==n&&0!==(x=await Ko(u,o))){let e,n=new Request(t,{method:"POST",body:o,duplex:"half"});if(An.isFormData(o)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=go(x,mo(xo(l)));o=Io(n.body,65536,e,t)}}An.isString(p)||(p=p?"include":"omit");const r="credentials"in Request.prototype;f=new Request(t,c(c({},h),{},{signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:r?p:void 0}));let s=await fetch(f);const a=Uo&&("stream"===d||"response"===d);if(Uo&&(i||a&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=An.toFiniteNumber(s.headers.get("content-length")),[n,o]=i&&go(t,mo(xo(i),!0))||[];s=new Response(Io(s.body,65536,n,(()=>{o&&o(),g&&g()})),e)}d=d||"text";let b=await Ho[An.findKey(Ho,d)||"text"](s,e);return!a&&g&&g(),await new Promise(((t,n)=>{po(t,n,{data:b,headers:ao.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:f})}))}catch(vM){if(g&&g(),vM&&"TypeError"===vM.name&&/Load failed|fetch/i.test(vM.message))throw Object.assign(new Pn("Network Error",Pn.ERR_NETWORK,e,f),{cause:vM.cause||vM});throw Pn.from(vM,vM&&vM.code,e,f)}}),$o={http:null,xhr:jo,fetch:qo};An.forEach($o,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Jo=e=>"- ".concat(e),Yo=e=>An.isFunction(e)||null===e||!1===e,Go=e=>{e=An.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let s=0;s<t;s++){let t;if(n=e[s],o=n,!Yo(n)&&(o=$o[(t=String(n)).toLowerCase()],void 0===o))throw new Pn("Unknown adapter '".concat(t,"'"));if(o)break;r[t||"#"+s]=o}if(!o){const e=Object.entries(r).map((e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(Jo).join("\n"):" "+Jo(e[0]):"as no adapter specified";throw new Pn("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return o};function Xo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uo(null,e)}function Zo(e){Xo(e),e.headers=ao.from(e.headers),e.data=io.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Go(e.adapter||Qn.adapter)(e).then((function(t){return Xo(e),t.data=io.call(e,e.transformResponse,t),t.headers=ao.from(t.headers),t}),(function(t){return lo(t)||(Xo(e),t&&t.response&&(t.response.data=io.call(e,e.transformResponse,t.response),t.response.headers=ao.from(t.response.headers))),Promise.reject(t)}))}const Qo="1.9.0",er={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{er[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const tr={};er.transitional=function(e,t,n){function o(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new Pn(o(r," has been removed"+(t?" in "+t:"")),Pn.ERR_DEPRECATED);return t&&!tr[r]&&(tr[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},er.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const nr={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Pn("options must be an object",Pn.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const s=o[r],a=t[s];if(a){const t=e[s],n=void 0===t||a(t,s,e);if(!0!==n)throw new Pn("option "+s+" must be "+n,Pn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Pn("Unknown option "+s,Pn.ERR_BAD_OPTION)}},validators:er},or=nr.validators;class rr{constructor(e){this.defaults=e||{},this.interceptors={request:new Un,response:new Un}}async request(e,t){try{return await this._request(e,t)}catch(vM){if(vM instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const o=t.stack?t.stack.replace(/^.+\n/,""):"";try{vM.stack?o&&!String(vM.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(vM.stack+="\n"+o):vM.stack=o}catch(n){}}throw vM}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=ko(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&nr.assertOptions(n,{silentJSONParsing:or.transitional(or.boolean),forcedJSONParsing:or.transitional(or.boolean),clarifyTimeoutError:or.transitional(or.boolean)},!1),null!=o&&(An.isFunction(o)?t.paramsSerializer={serialize:o}:nr.assertOptions(o,{encode:or.function,serialize:or.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nr.assertOptions(t,{baseUrl:or.spelling("baseURL"),withXsrfToken:or.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=r&&An.merge(r.common,r[t.method]);r&&An.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=ao.concat(s,r);const a=[];let i=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!i){const e=[Zo.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=a.length;let p=t;for(u=0;u<d;){const e=a[u++],t=a[u++];try{p=e(p)}catch(h){t.call(this,h);break}}try{c=Zo.call(this,p)}catch(h){return Promise.reject(h)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return Wn(yo((e=ko(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}An.forEach(["delete","get","head","options"],(function(e){rr.prototype[e]=function(t,n){return this.request(ko(n||{},{method:e,url:t,data:(n||{}).data}))}})),An.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,r){return this.request(ko(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}rr.prototype[e]=t(),rr.prototype[e+"Form"]=t(!0)}));const sr=rr;class ar{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,r){n.reason||(n.reason=new uo(e,o,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new ar((function(t){e=t}));return{token:t,cancel:e}}}const ir=ar;const lr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent: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};Object.entries(lr).forEach((e=>{let[t,n]=e;lr[n]=t}));const cr=lr;const dr=function e(t){const n=new sr(t),o=Wt(sr.prototype.request,n);return An.extend(o,sr.prototype,n,{allOwnKeys:!0}),An.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(ko(t,n))},o}(Qn);dr.Axios=sr,dr.CanceledError=uo,dr.CancelToken=ir,dr.isCancel=lo,dr.VERSION=Qo,dr.toFormData=Ln,dr.AxiosError=Pn,dr.Cancel=dr.CanceledError,dr.all=function(e){return Promise.all(e)},dr.spread=function(e){return function(t){return e.apply(null,t)}},dr.isAxiosError=function(e){return An.isObject(e)&&!0===e.isAxiosError},dr.mergeConfig=ko,dr.AxiosHeaders=ao,dr.formToJSON=e=>Xn(An.isHTMLForm(e)?new FormData(e):e),dr.getAdapter=Go,dr.HttpStatusCode=cr,dr.default=dr;const ur=dr;var pr=n(8587);function hr(e,t){if(null==e)return{};var n,o,r=(0,pr.A)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n(4358);const fr=["sri"],mr=["page"],gr=["page","matches"],xr=["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],br=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],vr=["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];var yr="popstate";function wr(){return Er((function(e,t){let{pathname:n,search:o,hash:r}=e.location;return Cr("",{pathname:n,search:o,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:Ar(t)}),null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function kr(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function Sr(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function jr(e,t){return{usr:e.state,key:e.key,idx:t}}function Cr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return c(c({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?Nr(t):t),{},{state:n,key:t&&t.key||o||Math.random().toString(36).substring(2,10)})}function Ar(e){let{pathname:t="/",search:n="",hash:o=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(t+="#"===o.charAt(0)?o:"#"+o),t}function Nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function Er(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{window:r=document.defaultView,v5Compat:s=!1}=o,a=r.history,i="POP",l=null,d=u();function u(){return(a.state||{idx:null}).idx}function p(){i="POP";let e=u(),t=null==e?null:e-d;d=e,l&&l({action:i,location:f.location,delta:t})}function h(e){return _r(e)}null==d&&(d=0,a.replaceState(c(c({},a.state),{},{idx:d}),""));let f={get action(){return i},get location(){return e(r,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(yr,p),l=e,()=>{r.removeEventListener(yr,p),l=null}},createHref:e=>t(r,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){i="PUSH";let o=Cr(f.location,e,t);n&&n(o,e),d=u()+1;let c=jr(o,d),p=f.createHref(o);try{a.pushState(c,"",p)}catch(h){if(h instanceof DOMException&&"DataCloneError"===h.name)throw h;r.location.assign(p)}s&&l&&l({action:i,location:f.location,delta:1})},replace:function(e,t){i="REPLACE";let o=Cr(f.location,e,t);n&&n(o,e),d=u();let r=jr(o,d),c=f.createHref(o);a.replaceState(r,"",c),s&&l&&l({action:i,location:f.location,delta:0})},go:e=>a.go(e)};return f}function _r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="http://localhost";"undefined"!==typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),kr(n,"No window.location.(origin|href) available to create URL");let o="string"===typeof e?e:Ar(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=n+o),new URL(o,n)}new WeakMap;function Pr(e,t){return Mr(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function Mr(e,t,n,o){let r=qr(("string"===typeof t?Nr(t):t).pathname||"/",n);if(null==r)return null;let s=Rr(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(s);let a=null;for(let i=0;null==a&&i<s.length;++i){let e=Kr(r);a=Ur(s[i],e,o)}return a}function Rr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=(e,r,s)=>{let a={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};a.relativePath.startsWith("/")&&(kr(a.relativePath.startsWith(o),'Absolute route path "'.concat(a.relativePath,'" nested under path "').concat(o,'" is not valid. An absolute child route path must start with the combined path of all its parent routes.')),a.relativePath=a.relativePath.slice(o.length));let i=Xr([o,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(kr(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(i,'".')),Rr(e.children,t,l,i)),(null!=e.path||e.index)&&t.push({path:i,score:Wr(i,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let o of Or(e.path))r(e,t,o);else r(e,t)})),t}function Or(e){let t=e.split("/");if(0===t.length)return[];let[n,...o]=t,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(0===o.length)return r?[s,""]:[s];let a=Or(o.join("/")),i=[];return i.push(...a.map((e=>""===e?s:[s,e].join("/")))),r&&i.push(...a),i.map((t=>e.startsWith("/")&&""===t?"/":t))}var Tr=/^:[\w-]+$/,Lr=3,Ir=2,Dr=1,zr=10,Fr=-2,Br=e=>"*"===e;function Wr(e,t){let n=e.split("/"),o=n.length;return n.some(Br)&&(o+=Fr),t&&(o+=Ir),n.filter((e=>!Br(e))).reduce(((e,t)=>e+(Tr.test(t)?Lr:""===t?Dr:zr)),o)}function Ur(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{routesMeta:o}=e,r={},s="/",a=[];for(let i=0;i<o.length;++i){let e=o[i],l=i===o.length-1,c="/"===s?t:t.slice(s.length)||"/",d=Hr({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),u=e.route;if(!d&&l&&n&&!o[o.length-1].route.index&&(d=Hr({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!d)return null;Object.assign(r,d.params),a.push({params:r,pathname:Xr([s,d.pathname]),pathnameBase:Zr(Xr([s,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(s=Xr([s,d.pathnameBase]))}return a}function Hr(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=Vr(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let s=r[0],a=s.replace(/(.)\/+$/,"$1"),i=r.slice(1),l=o.reduce(((e,t,n)=>{let{paramName:o,isOptional:r}=t;if("*"===o){let e=i[n]||"";a=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[n];return e[o]=r&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:s,pathnameBase:a,pattern:e}}function Vr(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Sr("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(o.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(o.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),o]}function Kr(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return Sr(!1,'The URL path "'.concat(e,'" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function qr(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&"/"!==o?null:e.slice(n)||"/"}function $r(e,t,n,o){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(o),"]. Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function Jr(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function Yr(e){let t=Jr(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function Gr(e,t,n){let o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?o=Nr(e):(o=c({},e),kr(!o.pathname||!o.pathname.includes("?"),$r("?","pathname","search",o)),kr(!o.pathname||!o.pathname.includes("#"),$r("#","pathname","hash",o)),kr(!o.search||!o.search.includes("#"),$r("#","search","hash",o)));let s,a=""===e||""===o.pathname,i=a?"/":o.pathname;if(null==i)s=n;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",{pathname:n,search:o="",hash:r=""}="string"===typeof e?Nr(e):e,s=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:s,search:Qr(o),hash:es(r)}}(o,s),d=i&&"/"!==i&&i.endsWith("/"),u=(a||"."===i)&&n.endsWith("/");return l.pathname.endsWith("/")||!d&&!u||(l.pathname+="/"),l}var Xr=e=>e.join("/").replace(/\/\/+/g,"/"),Zr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Qr=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",es=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function ts(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var ns=["POST","PUT","PATCH","DELETE"],os=(new Set(ns),["GET",...ns]);new Set(os),Symbol("ResetLoaderData");var rs=o.createContext(null);rs.displayName="DataRouter";var ss=o.createContext(null);ss.displayName="DataRouterState";var as=o.createContext({isTransitioning:!1});as.displayName="ViewTransition";var is=o.createContext(new Map);is.displayName="Fetchers";var ls=o.createContext(null);ls.displayName="Await";var cs=o.createContext(null);cs.displayName="Navigation";var ds=o.createContext(null);ds.displayName="Location";var us=o.createContext({outlet:null,matches:[],isDataRoute:!1});us.displayName="Route";var ps=o.createContext(null);ps.displayName="RouteError";function hs(){return null!=o.useContext(ds)}function fs(){return kr(hs(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(ds).location}var ms="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gs(e){o.useContext(cs).static||o.useLayoutEffect(e)}function xs(){let{isDataRoute:e}=o.useContext(us);return e?function(){let{router:e}=Ns("useNavigate"),t=_s("useNavigate"),n=o.useRef(!1);gs((()=>{n.current=!0}));let r=o.useCallback((async function(o){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sr(n.current,ms),n.current&&("number"===typeof o?e.navigate(o):await e.navigate(o,c({fromRouteId:t},r)))}),[e,t]);return r}():function(){kr(hs(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(rs),{basename:t,navigator:n}=o.useContext(cs),{matches:r}=o.useContext(us),{pathname:s}=fs(),a=JSON.stringify(Yr(r)),i=o.useRef(!1);gs((()=>{i.current=!0}));let l=o.useCallback((function(o){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Sr(i.current,ms),!i.current)return;if("number"===typeof o)return void n.go(o);let l=Gr(o,JSON.parse(a),s,"path"===r.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Xr([t,l.pathname])),(r.replace?n.replace:n.push)(l,r.state,r)}),[t,n,a,s,e]);return l}()}o.createContext(null);function bs(){let{matches:e}=o.useContext(us),t=e[e.length-1];return t?t.params:{}}function vs(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{matches:n}=o.useContext(us),{pathname:r}=fs(),s=JSON.stringify(Yr(n));return o.useMemo((()=>Gr(e,JSON.parse(s),r,"path"===t)),[e,s,r,t])}function ys(e,t,n,r){kr(hs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s,static:a}=o.useContext(cs),{matches:i}=o.useContext(us),l=i[i.length-1],d=l?l.params:{},u=l?l.pathname:"/",p=l?l.pathnameBase:"/",h=l&&l.route;{let e=h&&h.path||"";Rs(u,!h||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(u,'" (under <Route path="').concat(e,'">) 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.\n\nPlease change the parent <Route path="').concat(e,'"> to <Route path="').concat("/"===e?"*":"".concat(e,"/*"),'">.'))}let f,m=fs();if(t){var g;let e="string"===typeof t?Nr(t):t;kr("/"===p||(null===(g=e.pathname)||void 0===g?void 0:g.startsWith(p)),'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 "'.concat(p,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),f=e}else f=m;let x=f.pathname||"/",b=x;if("/"!==p){let e=p.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=!a&&n&&n.matches&&n.matches.length>0?n.matches:Pr(e,{pathname:b});Sr(h||null!=v,'No routes matched location "'.concat(f.pathname).concat(f.search).concat(f.hash,'" ')),Sr(null==v||void 0!==v[v.length-1].route.element||void 0!==v[v.length-1].route.Component||void 0!==v[v.length-1].route.lazy,'Matched leaf route at location "'.concat(f.pathname).concat(f.search).concat(f.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 y=Cs(v&&v.map((e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:Xr([p,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:Xr([p,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&y?o.createElement(ds.Provider,{value:{location:c({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:"POP"}},y):y}function ws(){let e=Ps(),t=ts(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=o.createElement(o.Fragment,null,o.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route.")),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:s},n):null,i)}var ks=o.createElement(ws,null),Ss=class extends o.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||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(us.Provider,{value:this.props.routeContext},o.createElement(ps.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function js(e){let{routeContext:t,match:n,children:r}=e,s=o.useContext(rs);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(us.Provider,{value:t},r)}function Cs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let r=e,s=null===n||void 0===n?void 0:n.errors;if(null!=s){let e=r.findIndex((e=>e.route.id&&void 0!==(null===s||void 0===s?void 0:s[e.route.id])));kr(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(s).join(","))),r=r.slice(0,Math.min(r.length,e+1))}let a=!1,i=-1;if(n)for(let o=0;o<r.length;o++){let e=r[o];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(i=o),e.route.id){let{loaderData:t,errors:o}=n,s=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!o||void 0===o[e.route.id]);if(e.route.lazy||s){a=!0,r=i>=0?r.slice(0,i+1):[r[0]];break}}}return r.reduceRight(((e,l,c)=>{let d,u=!1,p=null,h=null;n&&(d=s&&l.route.id?s[l.route.id]:void 0,p=l.route.errorElement||ks,a&&(i<0&&0===c?(Rs("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,h=null):i===c&&(u=!0,h=l.route.hydrateFallbackElement||null)));let f=t.concat(r.slice(0,c+1)),m=()=>{let t;return t=d?p:u?h:l.route.Component?o.createElement(l.route.Component,null):l.route.element?l.route.element:e,o.createElement(js,{match:l,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(l.route.ErrorBoundary||l.route.errorElement||0===c)?o.createElement(Ss,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):m()}),null)}function As(e){return"".concat(e," must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.")}function Ns(e){let t=o.useContext(rs);return kr(t,As(e)),t}function Es(e){let t=o.useContext(ss);return kr(t,As(e)),t}function _s(e){let t=function(e){let t=o.useContext(us);return kr(t,As(e)),t}(e),n=t.matches[t.matches.length-1];return kr(n.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),n.route.id}function Ps(){var e;let t=o.useContext(ps),n=Es("useRouteError"),r=_s("useRouteError");return void 0!==t?t:null===(e=n.errors)||void 0===e?void 0:e[r]}var Ms={};function Rs(e,t,n){t||Ms[e]||(Ms[e]=!0,Sr(!1,n))}o.memo((function(e){let{routes:t,future:n,state:o}=e;return ys(t,void 0,o,n)}));function Os(e){kr(!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 Ts(e){let{basename:t="/",children:n=null,location:r,navigationType:s="POP",navigator:a,static:i=!1}=e;kr(!hs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=t.replace(/^\/*/,"/"),c=o.useMemo((()=>({basename:l,navigator:a,static:i,future:{}})),[l,a,i]);"string"===typeof r&&(r=Nr(r));let{pathname:d="/",search:u="",hash:p="",state:h=null,key:f="default"}=r,m=o.useMemo((()=>{let e=qr(d,l);return null==e?null:{location:{pathname:e,search:u,hash:p,state:h,key:f},navigationType:s}}),[l,d,u,p,h,f,s]);return Sr(null!=m,'<Router basename="'.concat(l,'"> is not able to match the URL "').concat(d).concat(u).concat(p,"\" because it does not start with the basename, so the <Router> won't render anything.")),null==m?null:o.createElement(cs.Provider,{value:c},o.createElement(ds.Provider,{children:n,value:m}))}function Ls(e){let{children:t,location:n}=e;return ys(Is(t),n)}o.Component;function Is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let s=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Is(e.props.children,s));kr(e.type===Os,"[".concat("string"===typeof e.type?e.type:e.type.name,"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>")),kr(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Is(e.props.children,s)),n.push(a)})),n}var Ds="get",zs="application/x-www-form-urlencoded";function Fs(e){return null!=e&&"string"===typeof e.tagName}var Bs=null;var Ws=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Us(e){return null==e||Ws.has(e)?e:(Sr(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(zs,'"')),null)}function Hs(e,t){let n,o,r,s,a;if(Fs(i=e)&&"form"===i.tagName.toLowerCase()){let a=e.getAttribute("action");o=a?qr(a,t):null,n=e.getAttribute("method")||Ds,r=Us(e.getAttribute("enctype"))||zs,s=new FormData(e)}else if(function(e){return Fs(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Fs(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||a.getAttribute("action");if(o=i?qr(i,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Ds,r=Us(e.getAttribute("formenctype"))||Us(a.getAttribute("enctype"))||zs,s=new FormData(a,e),!function(){if(null===Bs)try{new FormData(document.createElement("form"),0),Bs=!1}catch(e){Bs=!0}return Bs}()){let{name:t,type:n,value:o}=e;if("image"===n){let e=t?"".concat(t,"."):"";s.append("".concat(e,"x"),"0"),s.append("".concat(e,"y"),"0")}else t&&s.append(t,o)}}else{if(Fs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ds,o=null,r=zs,a=e}var i;return s&&"text/plain"===r&&(a=s,s=void 0),{action:o,method:n.toLowerCase(),encType:r,formData:s,body:a}}function Vs(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}async function Ks(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function qs(e){return null!=e&&"string"===typeof e.page}function $s(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function Js(e,t,n,o,r,s){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,i=(e,t)=>{var o;return n[t].pathname!==e.pathname||(null===(o=n[t].route.path)||void 0===o?void 0:o.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===s?t.filter(((e,t)=>a(e,t)||i(e,t))):"data"===s?t.filter(((t,s)=>{let l=o.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,s)||i(t,s))return!0;if(t.route.shouldRevalidate){var c;let o=t.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:(null===(c=n[0])||void 0===c?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof o)return o}return!0})):[]}function Ys(e,t){let{includeHydrateFallback:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o=e.map((e=>{let o=t.routes[e.route.id];if(!o)return[];let r=[o.module];return o.clientActionModule&&(r=r.concat(o.clientActionModule)),o.clientLoaderModule&&(r=r.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(r=r.concat(o.hydrateFallbackModule)),o.imports&&(r=r.concat(o.imports)),r})).flat(1),[...new Set(o)];var o}function Gs(e,t){let n=new Set,o=new Set(t);return e.reduce(((e,r)=>{if(t&&!qs(r)&&"script"===r.as&&r.href&&o.has(r.href))return e;let s=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let o of n)t[o]=e[o];return t}(r));return n.has(s)||(n.add(s),e.push({key:s,link:r})),e}),[])}function Xs(e){return{__html:e}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!==typeof window?window:"undefined"!==typeof globalThis&&globalThis;Symbol("SingleFetchRedirect");var Zs=new Set([100,101,204,205]);function Qs(e,t){let n="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===qr(n.pathname,t)?n.pathname="".concat(t.replace(/\/$/,""),"/_root.data"):n.pathname="".concat(n.pathname.replace(/\/$/,""),".data"),n}o.Component;function ea(e){let{error:t,isOutsideRemixApp:n}=e;console.error(t);let r,s=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(ts(t))return o.createElement(ta,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),s);if(t instanceof Error)0;else{let e=null==t?"Unknown Error":"object"===typeof t&&"toString"in t?t.toString():JSON.stringify(t);new Error(e)}return o.createElement(ta,{title:"Application Error!",isOutsideRemixApp:n},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),s)}function ta(e){var t;let{title:n,renderScripts:r,isOutsideRemixApp:s,children:a}=e,{routeModules:i}=aa();return null!==i.root&&void 0!==t&&t.Layout&&!s?a:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,n)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},a,r?o.createElement(ha,null):null)))}function na(e,t){return"lazy"===e.mode&&!0===t}function oa(){let e=o.useContext(rs);return Vs(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ra(){let e=o.useContext(ss);return Vs(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var sa=o.createContext(void 0);function aa(){let e=o.useContext(sa);return Vs(e,"You must render this element inside a <HydratedRouter> element"),e}function ia(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function la(e,t,n){if(n&&!pa)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function ca(e){let{page:t}=e,n=hr(e,mr),{router:r}=oa(),s=o.useMemo((()=>Pr(r.routes,t,r.basename)),[r.routes,t,r.basename]);return s?o.createElement(ua,c({page:t,matches:s},n)):null}function da(e){let{manifest:t,routeModules:n}=aa(),[r,s]=o.useState([]);return o.useEffect((()=>{let o=!1;return async function(e,t,n){return Gs((await Promise.all(e.map((async e=>{let o=t.routes[e.route.id];if(o){let e=await Ks(o,n);return e.links?e.links():[]}return[]})))).flat(1).filter($s).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?c(c({},e),{},{rel:"prefetch",as:"style"}):c(c({},e),{},{rel:"prefetch"}))))}(e,t,n).then((e=>{o||s(e)})),()=>{o=!0}}),[e,t,n]),r}function ua(e){let{page:t,matches:n}=e,r=hr(e,gr),s=fs(),{manifest:a,routeModules:i}=aa(),{basename:l}=oa(),{loaderData:d,matches:u}=ra(),p=o.useMemo((()=>Js(t,n,u,a,s,"data")),[t,n,u,a,s]),h=o.useMemo((()=>Js(t,n,u,a,s,"assets")),[t,n,u,a,s]),f=o.useMemo((()=>{if(t===s.pathname+s.search+s.hash)return[];let e=new Set,o=!1;if(n.forEach((t=>{var n;let r=a.routes[t.route.id];r&&r.hasLoader&&(!p.some((e=>e.route.id===t.route.id))&&t.route.id in d&&null!==(n=i[t.route.id])&&void 0!==n&&n.shouldRevalidate||r.hasClientLoader?o=!0:e.add(t.route.id))})),0===e.size)return[];let r=Qs(t,l);return o&&e.size>0&&r.searchParams.set("_routes",n.filter((t=>e.has(t.route.id))).map((e=>e.route.id)).join(",")),[r.pathname+r.search]}),[l,d,s,a,p,n,t,i]),m=o.useMemo((()=>Ys(h,a)),[h,a]),g=da(h);return o.createElement(o.Fragment,null,f.map((e=>o.createElement("link",c({key:e,rel:"prefetch",as:"fetch",href:e},r)))),m.map((e=>o.createElement("link",c({key:e,rel:"modulepreload",href:e},r)))),g.map((e=>{let{key:t,link:n}=e;return o.createElement("link",c({key:t},n))})))}sa.displayName="FrameworkContext";var pa=!1;function ha(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:s,routeDiscovery:a,ssr:i}=aa(),{router:l,static:d,staticContext:u}=oa(),{matches:p}=ra(),h=na(a,i);s&&(s.didRenderScripts=!0);let f=la(p,null,r);o.useEffect((()=>{0}),[]);let m=o.useMemo((()=>{var r;let s=u?"window.__reactRouterContext = ".concat(n,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());"):" ",a=d?"".concat(null!==t.hmr&&void 0!==r&&r.runtime?"import ".concat(JSON.stringify(t.hmr.runtime),";"):"").concat(h?"":"import ".concat(JSON.stringify(t.url)),";\n").concat(f.map(((e,n)=>{let o="route".concat(n),r=t.routes[e.route.id];Vs(r,"Route ".concat(e.route.id," not found in manifest"));let{clientActionModule:s,clientLoaderModule:a,clientMiddlewareModule:i,hydrateFallbackModule:l,module:c}=r,d=[...s?[{module:s,varName:"".concat(o,"_clientAction")}]:[],...a?[{module:a,varName:"".concat(o,"_clientLoader")}]:[],...i?[{module:i,varName:"".concat(o,"_clientMiddleware")}]:[],...l?[{module:l,varName:"".concat(o,"_HydrateFallback")}]:[],{module:c,varName:"".concat(o,"_main")}];return 1===d.length?"import * as ".concat(o," from ").concat(JSON.stringify(c),";"):[d.map((e=>"import * as ".concat(e.varName,' from "').concat(e.module,'";'))).join("\n"),"const ".concat(o," = {").concat(d.map((e=>"...".concat(e.varName))).join(","),"};")].join("\n")})).join("\n"),"\n ").concat(h?"window.__reactRouterManifest = ".concat(JSON.stringify(function(e,t){let{sri:n}=e,o=hr(e,fr),r=new Set(t.state.matches.map((e=>e.route.id))),s=t.state.location.pathname.split("/").filter(Boolean),a=["/"];for(s.pop();s.length>0;)a.push("/".concat(s.join("/"))),s.pop();a.forEach((e=>{let n=Pr(t.routes,e,t.basename);n&&n.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,t)=>Object.assign(e,{[t]:o.routes[t]})),{});return c(c({},o),{},{routes:i,sri:!!n||void 0})}(t,l),null,2),";"):"","\n window.__reactRouterRouteModules = {").concat(f.map(((e,t)=>"".concat(JSON.stringify(e.route.id),":route").concat(t))).join(","),"};\n\nimport(").concat(JSON.stringify(t.entry.module),");"):" ";return o.createElement(o.Fragment,null,o.createElement("script",c(c({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:Xs(s),type:void 0})),o.createElement("script",c(c({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:Xs(a),type:"module",async:!0})))}),[]),g=pa?[]:(t.entry.imports.concat(Ys(f,t,{includeHydrateFallback:!0})),[...new Set(x)]);var x;let b="object"===typeof t.sri?t.sri:{};return pa?null:o.createElement(o.Fragment,null,"object"===typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:b})}}):null,h?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:b[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:b[t.entry.module],suppressHydrationWarning:!0}),g.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:b[t],suppressHydrationWarning:!0}))),m)}function fa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)}))}}var ma="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{ma&&(window.__reactRouterVersion="7.6.0")}catch(yM){}function ga(e){let{basename:t,children:n,window:r}=e,s=o.useRef();null==s.current&&(s.current=wr({window:r,v5Compat:!0}));let a=s.current,[i,l]=o.useState({action:a.action,location:a.location}),c=o.useCallback((e=>{o.startTransition((()=>l(e)))}),[l]);return o.useLayoutEffect((()=>a.listen(c)),[a,c]),o.createElement(Ts,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:a})}var xa=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ba=o.forwardRef((function(e,t){let n,{onClick:r,discover:s="render",prefetch:a="none",relative:i,reloadDocument:l,replace:d,state:u,target:p,to:h,preventScrollReset:f,viewTransition:m}=e,g=hr(e,xr),{basename:x}=o.useContext(cs),b="string"===typeof h&&xa.test(h),v=!1;if("string"===typeof h&&b&&(n=h,ma))try{let e=new URL(window.location.href),t=h.startsWith("//")?new URL(e.protocol+h):new URL(h),n=qr(t.pathname,x);t.origin===e.origin&&null!=n?h=n+t.search+t.hash:v=!0}catch(yM){Sr(!1,'<Link to="'.concat(h,'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}let y=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kr(hs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(cs),{hash:s,pathname:a,search:i}=vs(e,{relative:t}),l=a;return"/"!==n&&(l="/"===a?n:Xr([n,a])),r.createHref({pathname:l,search:i,hash:s})}(h,{relative:i}),[w,k,S]=function(e,t){let n=o.useContext(sa),[r,s]=o.useState(!1),[a,i]=o.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:d,onMouseLeave:u,onTouchStart:p}=t,h=o.useRef(null);o.useEffect((()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{i(e.isIntersecting)}))}),{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{i(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let f=()=>{s(!0)},m=()=>{s(!1),i(!1)};return n?"intent"!==e?[a,h,{}]:[a,h,{onFocus:ia(l,f),onBlur:ia(c,m),onMouseEnter:ia(d,f),onMouseLeave:ia(u,m),onTouchStart:ia(p,f)}]:[!1,h,{}]}(a,g),j=function(e){let{target:t,replace:n,state:r,preventScrollReset:s,relative:a,viewTransition:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=xs(),c=fs(),d=vs(e,{relative:a});return o.useCallback((o=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(o,t)){o.preventDefault();let t=void 0!==n?n:Ar(c)===Ar(d);l(e,{replace:t,state:r,preventScrollReset:s,relative:a,viewTransition:i})}}),[c,l,d,n,r,t,e,s,a,i])}(h,{replace:d,state:u,target:p,preventScrollReset:f,relative:i,viewTransition:m});let C=o.createElement("a",c(c(c({},g),S),{},{href:n||y,onClick:v||l?r:function(e){r&&r(e),e.defaultPrevented||j(e)},ref:fa(t,k),target:p,"data-discover":b||"render"!==s?void 0:"true"}));return w&&!b?o.createElement(o.Fragment,null,C,o.createElement(ca,{page:y})):C}));ba.displayName="Link";var va=o.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:s="",end:a=!1,style:i,to:l,viewTransition:d,children:u}=e,p=hr(e,br),h=vs(l,{relative:p.relative}),f=fs(),m=o.useContext(ss),{navigator:g,basename:x}=o.useContext(cs),b=null!=m&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.useContext(as);kr(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ka("useViewTransitionState"),s=vs(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=qr(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=qr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=Hr(s.pathname,i)||null!=Hr(s.pathname,a)}(h)&&!0===d,v=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,y=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;r||(y=y.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&x&&(w=qr(w,x)||w);const k="/"!==v&&v.endsWith("/")?v.length-1:v.length;let S,j=y===v||!a&&y.startsWith(v)&&"/"===y.charAt(k),C=null!=w&&(w===v||!a&&w.startsWith(v)&&"/"===w.charAt(v.length)),A={isActive:j,isPending:C,isTransitioning:b},N=j?n:void 0;S="function"===typeof s?s(A):[s,j?"active":null,C?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let E="function"===typeof i?i(A):i;return o.createElement(ba,c(c({},p),{},{"aria-current":N,className:S,ref:t,style:E,to:l,viewTransition:d}),"function"===typeof u?u(A):u)}));va.displayName="NavLink";var ya=o.forwardRef(((e,t)=>{let{discover:n="render",fetcherKey:r,navigate:s,reloadDocument:a,replace:i,state:l,method:d=Ds,action:u,onSubmit:p,relative:h,preventScrollReset:f,viewTransition:m}=e,g=hr(e,vr),x=Ca(),b=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{basename:n}=o.useContext(cs),r=o.useContext(us);kr(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),a=c({},vs(e||".",{relative:t})),i=fs();if(null==e){a.search=i.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();a.search=n?"?".concat(n):""}}e&&"."!==e||!s.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(a.pathname="/"===a.pathname?n:Xr([n,a.pathname]));return Ar(a)}(u,{relative:h}),v="get"===d.toLowerCase()?"get":"post",y="string"===typeof u&&xa.test(u);return o.createElement("form",c(c({ref:t,method:v,action:b,onSubmit:a?p:e=>{if(p&&p(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null===t||void 0===t?void 0:t.getAttribute("formmethod"))||d;x(t||e.currentTarget,{fetcherKey:r,method:n,navigate:s,replace:i,state:l,relative:h,preventScrollReset:f,viewTransition:m})}},g),{},{"data-discover":y||"render"!==n?void 0:"true"}))}));function wa(e){return"".concat(e," must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.")}function ka(e){let t=o.useContext(rs);return kr(t,wa(e)),t}ya.displayName="Form";var Sa=0,ja=()=>"__".concat(String(++Sa),"__");function Ca(){let{router:e}=ka("useSubmit"),{basename:t}=o.useContext(cs),n=_s("useRouteId");return o.useCallback((async function(o){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{action:s,method:a,encType:i,formData:l,body:c}=Hs(o,t);if(!1===r.navigate){let t=r.fetcherKey||ja();await e.fetch(t,n,r.action||s,{preventScrollReset:r.preventScrollReset,formData:l,body:c,formMethod:r.method||a,formEncType:r.encType||i,flushSync:r.flushSync})}else await e.navigate(r.action||s,{preventScrollReset:r.preventScrollReset,formData:l,body:c,formMethod:r.method||a,formEncType:r.encType||i,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})}),[e,t,n])}var Aa=n(7344),Na=n(8168);const Ea=o.createContext(null);function _a(){return o.useContext(Ea)}const Pa="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Ma=n(579);const Ra=function(e){const{children:t,theme:n}=e,r=_a(),s=o.useMemo((()=>{const e=null===r?n:function(e,t){if("function"===typeof t)return t(e);return(0,Na.A)({},e,t)}(r,n);return null!=e&&(e[Pa]=null!==r),e}),[n,r]);return(0,Ma.jsx)(Ea.Provider,{value:s,children:t})};var Oa=n(9369);const Ta=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=o.useContext(Oa.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},La=["value"],Ia=o.createContext();const Da=()=>{const e=o.useContext(Ia);return null!=e&&e},za=function(e){let{value:t}=e,n=(0,pr.A)(e,La);return(0,Ma.jsx)(Ia.Provider,(0,Na.A)({value:null==t||t},n))};var Fa=n(3654);const Ba={};function Wa(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo((()=>{const o=e&&t[e]||t;if("function"===typeof n){const s=n(o),a=e?(0,Na.A)({},t,{[e]:s}):s;return r?()=>a:a}return e?(0,Na.A)({},t,{[e]:n}):(0,Na.A)({},t,n)}),[e,t,n,r])}const Ua=function(e){const{children:t,theme:n,themeId:o}=e,r=Ta(Ba),s=_a()||Ba,a=Wa(o,r,n),i=Wa(o,s,n,!0),l="rtl"===a.direction;return(0,Ma.jsx)(Ra,{theme:i,children:(0,Ma.jsx)(Oa.T.Provider,{value:a,children:(0,Ma.jsx)(za,{value:l,children:(0,Ma.jsx)(Fa.A,{value:null==a?void 0:a.components,children:t})})})})};var Ha=n(3375);const Va=["theme"];function Ka(e){let{theme:t}=e,n=(0,pr.A)(e,Va);const o=t[Ha.A];let r=o||t;return"function"!==typeof t&&(o&&!o.vars?r=(0,Na.A)({},o,{vars:null}):t&&!t.vars&&(r=(0,Na.A)({},t,{vars:null}))),(0,Ma.jsx)(Ua,(0,Na.A)({},n,{themeId:o?Ha.A:void 0,theme:r}))}var qa=n(8387),$a=n(3174),Ja=n(8812),Ya=n(8698),Ga=n(8280);const Xa=(0,Ga.A)();const Za=function(){return Ta(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xa)},Qa=["className","component"];var ei=n(9386),ti=n(2532);const ni=(0,ti.A)("MuiBox",["root"]),oi=(0,Aa.A)(),ri=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:s}=e,a=(0,$a.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ja.A);return o.forwardRef((function(e,o){const i=Za(n),l=(0,Ya.A)(e),{className:c,component:d="div"}=l,u=(0,pr.A)(l,Qa);return(0,Ma.jsx)(a,(0,Na.A)({as:d,ref:o,className:(0,qa.A)(c,s?s(r):r),theme:t&&i[t]||i},u))}))}({themeId:Ha.A,defaultTheme:oi,defaultClassName:ni.root,generateClassName:ei.A.generate}),si=ri;var ai=n(8610),ii=n(7266),li=n(4535);const ci=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var di=n(8206),ui=n(2372);function pi(e){return(0,ui.Ay)("MuiPaper",e)}(0,ti.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const hi=["className","component","elevation","square","variant"],fi=(0,li.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((e=>{let{theme:t,ownerState:n}=e;var o;return(0,Na.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.divider)},"elevation"===n.variant&&(0,Na.A)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,ii.X4)("#fff",ci(n.elevation)),", ").concat((0,ii.X4)("#fff",ci(n.elevation)),")")},t.vars&&{backgroundImage:null==(o=t.vars.overlays)?void 0:o[n.elevation]}))})),mi=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiPaper"}),{className:o,component:r="div",elevation:s=1,square:a=!1,variant:i="elevation"}=n,l=(0,pr.A)(n,hi),c=(0,Na.A)({},n,{component:r,elevation:s,square:a,variant:i}),d=(e=>{const{square:t,elevation:n,variant:o,classes:r}=e,s={root:["root",o,!t&&"rounded","elevation"===o&&"elevation".concat(n)]};return(0,ai.A)(s,pi,r)})(c);return(0,Ma.jsx)(fi,(0,Na.A)({as:r,ownerState:c,className:(0,qa.A)(d.root,o),ref:t},l))}));var gi=n(6803);function xi(e){return(0,ui.Ay)("MuiButtonGroup",e)}const bi=(0,ti.A)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]);const vi=o.createContext({});const yi=o.createContext(void 0),wi=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],ki=(0,li.Ay)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(bi.grouped)]:t.grouped},{["& .".concat(bi.grouped)]:t["grouped".concat((0,gi.A)(n.orientation))]},{["& .".concat(bi.grouped)]:t["grouped".concat((0,gi.A)(n.variant))]},{["& .".concat(bi.grouped)]:t["grouped".concat((0,gi.A)(n.variant)).concat((0,gi.A)(n.orientation))]},{["& .".concat(bi.grouped)]:t["grouped".concat((0,gi.A)(n.variant)).concat((0,gi.A)(n.color))]},{["& .".concat(bi.firstButton)]:t.firstButton},{["& .".concat(bi.lastButton)]:t.lastButton},{["& .".concat(bi.middleButton)]:t.middleButton},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[2]},n.disableElevation&&{boxShadow:"none"},n.fullWidth&&{width:"100%"},"vertical"===n.orientation&&{flexDirection:"column"},{["& .".concat(bi.grouped)]:(0,Na.A)({minWidth:40,"&:hover":(0,Na.A)({},"contained"===n.variant&&{boxShadow:"none"})},"contained"===n.variant&&{boxShadow:"none"}),["& .".concat(bi.firstButton,",& .").concat(bi.middleButton)]:(0,Na.A)({},"horizontal"===n.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===n.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===n.variant&&"horizontal"===n.orientation&&{borderRight:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(bi.disabled)]:{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"text"===n.variant&&"vertical"===n.orientation&&{borderBottom:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(bi.disabled)]:{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"text"===n.variant&&"inherit"!==n.color&&{borderColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):(0,ii.X4)(t.palette[n.color].main,.5)},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"transparent"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"transparent"},"contained"===n.variant&&"horizontal"===n.orientation&&{borderRight:"1px solid ".concat((t.vars||t).palette.grey[400]),["&.".concat(bi.disabled)]:{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"contained"===n.variant&&"vertical"===n.orientation&&{borderBottom:"1px solid ".concat((t.vars||t).palette.grey[400]),["&.".concat(bi.disabled)]:{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"contained"===n.variant&&"inherit"!==n.color&&{borderColor:(t.vars||t).palette[n.color].dark},{"&:hover":(0,Na.A)({},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"currentColor"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"currentColor"})}),["& .".concat(bi.lastButton,",& .").concat(bi.middleButton)]:(0,Na.A)({},"horizontal"===n.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===n.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===n.variant&&"horizontal"===n.orientation&&{marginLeft:-1},"outlined"===n.variant&&"vertical"===n.orientation&&{marginTop:-1})})})),Si=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiButtonGroup"}),{children:r,className:s,color:a="primary",component:i="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:d=!1,disableRipple:u=!1,fullWidth:p=!1,orientation:h="horizontal",size:f="medium",variant:m="outlined"}=n,g=(0,pr.A)(n,wi),x=(0,Na.A)({},n,{color:a,component:i,disabled:l,disableElevation:c,disableFocusRipple:d,disableRipple:u,fullWidth:p,orientation:h,size:f,variant:m}),b=(e=>{const{classes:t,color:n,disabled:o,disableElevation:r,fullWidth:s,orientation:a,variant:i}=e,l={root:["root",i,"vertical"===a&&"vertical",s&&"fullWidth",r&&"disableElevation"],grouped:["grouped","grouped".concat((0,gi.A)(a)),"grouped".concat((0,gi.A)(i)),"grouped".concat((0,gi.A)(i)).concat((0,gi.A)(a)),"grouped".concat((0,gi.A)(i)).concat((0,gi.A)(n)),o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,ai.A)(l,xi,t)})(x),v=o.useMemo((()=>({className:b.grouped,color:a,disabled:l,disableElevation:c,disableFocusRipple:d,disableRipple:u,fullWidth:p,size:f,variant:m})),[a,l,c,d,u,p,f,m,b.grouped]),y=function(e){return o.Children.toArray(e).filter((e=>o.isValidElement(e)))}(r),w=y.length,k=e=>{const t=0===e,n=e===w-1;return t&&n?"":t?b.firstButton:n?b.lastButton:b.middleButton};return(0,Ma.jsx)(ki,(0,Na.A)({as:i,role:"group",className:(0,qa.A)(b.root,s),ref:t,ownerState:x},g,{children:(0,Ma.jsx)(vi.Provider,{value:v,children:y.map(((e,t)=>(0,Ma.jsx)(yi.Provider,{value:k(t),children:e},t)))})}))})),ji=Si;var Ci=n(3030),Ai=n(1475),Ni=n(5849),Ei=n(3319),_i=n(3574);function Pi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Mi(e,t){return Mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mi(e,t)}function Ri(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mi(e,t)}const Oi=o.createContext(null);function Ti(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function Li(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ii(e,t,n){var r=Ti(e.children),s=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),s=[];for(var a in e)a in t?s.length&&(r[a]=s,s=[]):s.push(a);var i={};for(var l in t){if(r[l])for(o=0;o<r[l].length;o++){var c=r[l][o];i[r[l][o]]=n(c)}i[l]=n(l)}for(o=0;o<s.length;o++)i[s[o]]=n(s[o]);return i}(t,r);return Object.keys(s).forEach((function(a){var i=s[a];if((0,o.isValidElement)(i)){var l=a in t,c=a in r,d=t[a],u=(0,o.isValidElement)(d)&&!d.props.in;!c||l&&!u?c||!l||u?c&&l&&(0,o.isValidElement)(d)&&(s[a]=(0,o.cloneElement)(i,{onExited:n.bind(null,i),in:d.props.in,exit:Li(i,"exit",e),enter:Li(i,"enter",e)})):s[a]=(0,o.cloneElement)(i,{in:!1}):s[a]=(0,o.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:Li(i,"exit",e),enter:Li(i,"enter",e)})}})),s}var Di=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},zi=function(e){function t(t,n){var o,r=(o=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}Ri(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,s=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Ti(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Li(e,"appear",n),enter:Li(e,"enter",n),exit:Li(e,"exit",n)})}))):Ii(e,s,a),firstRender:!1}},n.handleExited=function(e,t){var n=Ti(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,Na.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,pr.A)(e,["component","childFactory"]),s=this.state.contextValue,a=Di(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(Oi.Provider,{value:s},a):o.createElement(Oi.Provider,{value:s},o.createElement(t,r,a))},t}(o.Component);zi.propTypes={},zi.defaultProps={component:"div",childFactory:function(e){return e}};const Fi=zi;var Bi=n(3290),Wi=n(9303);const Ui=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:s,rippleY:a,rippleSize:i,in:l,onExited:c,timeout:d}=e,[u,p]=o.useState(!1),h=(0,qa.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:i,height:i,top:-i/2+a,left:-i/2+s},m=(0,qa.A)(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||p(!0),o.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,l,d]),(0,Ma.jsx)("span",{className:h,style:f,children:(0,Ma.jsx)("span",{className:m})})};const Hi=(0,ti.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var Vi,Ki,qi,$i;const Ji=["center","classes","className"];let Yi,Gi,Xi,Zi;const Qi=(0,Bi.i7)(Yi||(Yi=Vi||(Vi=Pi(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),el=(0,Bi.i7)(Gi||(Gi=Ki||(Ki=Pi(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),tl=(0,Bi.i7)(Xi||(Xi=qi||(qi=Pi(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),nl=(0,li.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ol=(0,li.Ay)(Ui,{name:"MuiTouchRipple",slot:"Ripple"})(Zi||(Zi=$i||($i=Pi(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),Hi.rippleVisible,Qi,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Hi.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Hi.child,Hi.childLeaving,el,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Hi.childPulsate,tl,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),rl=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:a}=n,i=(0,pr.A)(n,Ji),[l,c]=o.useState([]),d=o.useRef(0),u=o.useRef(null);o.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const p=o.useRef(!1),h=(0,Wi.A)(),f=o.useRef(null),m=o.useRef(null),g=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:o,rippleSize:r,cb:a}=e;c((e=>[...e,(0,Ma.jsx)(ol,{classes:{ripple:(0,qa.A)(s.ripple,Hi.ripple),rippleVisible:(0,qa.A)(s.rippleVisible,Hi.rippleVisible),ripplePulsate:(0,qa.A)(s.ripplePulsate,Hi.ripplePulsate),child:(0,qa.A)(s.child,Hi.child),childLeaving:(0,qa.A)(s.childLeaving,Hi.childLeaving),childPulsate:(0,qa.A)(s.childPulsate,Hi.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:r},d.current)])),d.current+=1,u.current=a}),[s]),x=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:s=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const i=a?null:m.current,l=i?i.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,u;if(s||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-l.top)}if(s)u=Math.sqrt((2*l.width**2+l.height**2)/3),u%2===0&&(u+=1);else{const e=2*Math.max(Math.abs((i?i.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((i?i.clientHeight:0)-d),d)+2;u=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:o,rippleX:c,rippleY:d,rippleSize:u,cb:n})},h.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):g({pulsate:o,rippleX:c,rippleY:d,rippleSize:u,cb:n})}),[r,g,h]),b=o.useCallback((()=>{x({},{pulsate:!0})}),[x]),v=o.useCallback(((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void h.start(0,(()=>{v(e,t)}));f.current=null,c((e=>e.length>0?e.slice(1):e)),u.current=t}),[h]);return o.useImperativeHandle(t,(()=>({pulsate:b,start:x,stop:v})),[b,x,v]),(0,Ma.jsx)(nl,(0,Na.A)({className:(0,qa.A)(Hi.root,s.root,a),ref:m},i,{children:(0,Ma.jsx)(Fi,{component:null,exit:!0,children:l})}))})),sl=rl;function al(e){return(0,ui.Ay)("MuiButtonBase",e)}const il=(0,ti.A)("MuiButtonBase",["root","disabled","focusVisible"]),ll=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],cl=(0,li.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(il.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dl=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:a,className:i,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:x,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:w,onMouseDown:k,onMouseLeave:S,onMouseUp:j,onTouchEnd:C,onTouchMove:A,onTouchStart:N,tabIndex:E=0,TouchRippleProps:_,touchRippleRef:P,type:M}=n,R=(0,pr.A)(n,ll),O=o.useRef(null),T=o.useRef(null),L=(0,Ni.A)(T,P),{isFocusVisibleRef:I,onFocus:D,onBlur:z,ref:F}=(0,_i.A)(),[B,W]=o.useState(!1);c&&B&&W(!1),o.useImperativeHandle(r,(()=>({focusVisible:()=>{W(!0),O.current.focus()}})),[]);const[U,H]=o.useState(!1);o.useEffect((()=>{H(!0)}),[]);const V=U&&!d&&!c;function K(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;return(0,Ei.A)((o=>{t&&t(o);return!n&&T.current&&T.current[e](o),!0}))}o.useEffect((()=>{B&&p&&!d&&U&&T.current.pulsate()}),[d,p,B,U]);const q=K("start",k),$=K("stop",g),J=K("stop",x),Y=K("stop",j),G=K("stop",(e=>{B&&e.preventDefault(),S&&S(e)})),X=K("start",N),Z=K("stop",C),Q=K("stop",A),ee=K("stop",(e=>{z(e),!1===I.current&&W(!1),f&&f(e)}),!1),te=(0,Ei.A)((e=>{O.current||(O.current=e.currentTarget),D(e),!0===I.current&&(W(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},oe=o.useRef(!1),re=(0,Ei.A)((e=>{p&&!oe.current&&B&&T.current&&" "===e.key&&(oe.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),se=(0,Ei.A)((e=>{p&&" "===e.key&&T.current&&B&&!e.defaultPrevented&&(oe.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(R.href||R.to)&&(ae=h);const ie={};"button"===ae?(ie.type=void 0===M?"button":M,ie.disabled=c):(R.href||R.to||(ie.role="button"),c&&(ie["aria-disabled"]=c));const le=(0,Ni.A)(t,F,O);const ce=(0,Na.A)({},n,{centerRipple:s,component:l,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:p,tabIndex:E,focusVisible:B}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,s={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,ai.A)(s,al,r);return n&&o&&(a.root+=" ".concat(o)),a})(ce);return(0,Ma.jsxs)(cl,(0,Na.A)({as:ae,className:(0,qa.A)(de.root,i),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:$,onFocus:te,onKeyDown:re,onKeyUp:se,onMouseDown:q,onMouseLeave:G,onMouseUp:Y,onDragLeave:J,onTouchEnd:Z,onTouchMove:Q,onTouchStart:X,ref:le,tabIndex:c?-1:E,type:M},ie,R,{children:[a,V?(0,Ma.jsx)(sl,(0,Na.A)({ref:L,center:s},_)):null]}))}));function ul(e){return(0,ui.Ay)("MuiButton",e)}const pl=(0,ti.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),hl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fl=e=>(0,Na.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ml=(0,li.Ay)(dl,{shouldForwardProp:e=>(0,Ai.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,gi.A)(n.color))],t["size".concat((0,gi.A)(n.size))],t["".concat(n.variant,"Size").concat((0,gi.A)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var o,r;const s="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],a="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,Na.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,Na.A)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ii.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ii.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:"1px solid ".concat((t.vars||t).palette[n.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ii.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,Na.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(pl.focusVisible)]:(0,Na.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(pl.disabled)]:(0,Na.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):"1px solid ".concat((0,ii.X4)(t.palette[n.color].main,.5))},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(o=(r=t.palette).getContrastText)?void 0:o.call(r,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:s,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(pl.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(pl.disabled)]:{boxShadow:"none"}}})),gl=(0,li.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t["iconSize".concat((0,gi.A)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},fl(t))})),xl=(0,li.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t["iconSize".concat((0,gi.A)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},fl(t))})),bl=o.forwardRef((function(e,t){const n=o.useContext(vi),r=o.useContext(yi),s=(0,Ci.A)(n,e),a=(0,di.b)({props:s,name:"MuiButton"}),{children:i,color:l="primary",component:c="button",className:d,disabled:u=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:f,focusVisibleClassName:m,fullWidth:g=!1,size:x="medium",startIcon:b,type:v,variant:y="text"}=a,w=(0,pr.A)(a,hl),k=(0,Na.A)({},a,{color:l,component:c,disabled:u,disableElevation:p,disableFocusRipple:h,fullWidth:g,size:x,type:v,variant:y}),S=(e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:s,classes:a}=e,i={root:["root",s,"".concat(s).concat((0,gi.A)(t)),"size".concat((0,gi.A)(r)),"".concat(s,"Size").concat((0,gi.A)(r)),"color".concat((0,gi.A)(t)),n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon","iconSize".concat((0,gi.A)(r))],endIcon:["icon","endIcon","iconSize".concat((0,gi.A)(r))]},l=(0,ai.A)(i,ul,a);return(0,Na.A)({},a,l)})(k),j=b&&(0,Ma.jsx)(gl,{className:S.startIcon,ownerState:k,children:b}),C=f&&(0,Ma.jsx)(xl,{className:S.endIcon,ownerState:k,children:f}),A=r||"";return(0,Ma.jsxs)(ml,(0,Na.A)({ownerState:k,className:(0,qa.A)(n.className,S.root,d,A),component:c,disabled:u,focusRipple:!h,focusVisibleClassName:(0,qa.A)(S.focusVisible,m),ref:t,type:v},w,{classes:S,children:[j,i,C]}))})),vl=bl;function yl(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function wl(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(yl(e.value)&&""!==e.value||t&&yl(e.defaultValue)&&""!==e.defaultValue)}var kl=n(7328);const Sl=o.createContext(void 0);function jl(e){return(0,ui.Ay)("MuiFormControl",e)}(0,ti.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Cl=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Al=(0,li.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,Na.A)({},t.root,t["margin".concat((0,gi.A)(n.margin))],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,Na.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),Nl=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiFormControl"}),{children:r,className:s,color:a="primary",component:i="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:p=!1,margin:h="none",required:f=!1,size:m="medium",variant:g="outlined"}=n,x=(0,pr.A)(n,Cl),b=(0,Na.A)({},n,{color:a,component:i,disabled:l,error:c,fullWidth:u,hiddenLabel:p,margin:h,required:f,size:m,variant:g}),v=(e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root","none"!==n&&"margin".concat((0,gi.A)(n)),o&&"fullWidth"]};return(0,ai.A)(r,jl,t)})(b),[y,w]=o.useState((()=>{let e=!1;return r&&o.Children.forEach(r,(t=>{if(!(0,kl.A)(t,["Input","Select"]))return;const n=(0,kl.A)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[k,S]=o.useState((()=>{let e=!1;return r&&o.Children.forEach(r,(t=>{(0,kl.A)(t,["Input","Select"])&&(wl(t.props,!0)||wl(t.props.inputProps,!0))&&(e=!0)})),e})),[j,C]=o.useState(!1);l&&j&&C(!1);const A=void 0===d||l?j:d;let N;const E=o.useMemo((()=>({adornedStart:y,setAdornedStart:w,color:a,disabled:l,error:c,filled:k,focused:A,fullWidth:u,hiddenLabel:p,size:m,onBlur:()=>{C(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{C(!0)},registerEffect:N,required:f,variant:g})),[y,a,l,c,k,A,u,p,N,f,m,g]);return(0,Ma.jsx)(Sl.Provider,{value:E,children:(0,Ma.jsx)(Al,(0,Na.A)({as:i,ownerState:b,className:(0,qa.A)(v.root,s),ref:t},x,{children:r}))})})),El=Nl;function _l(e){let{props:t,states:n,muiFormControl:o}=e;return n.reduce(((e,n)=>(e[n]=t[n],o&&"undefined"===typeof t[n]&&(e[n]=o[n]),e)),{})}function Pl(){return o.useContext(Sl)}function Ml(e){return(0,ui.Ay)("MuiFormLabel",e)}const Rl=(0,ti.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ol=["children","className","color","component","disabled","error","filled","focused","required"],Tl=(0,li.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,Na.A)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(Rl.focused)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(Rl.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(Rl.error)]:{color:(t.vars||t).palette.error.main}})})),Ll=(0,li.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(Rl.error)]:{color:(t.vars||t).palette.error.main}}})),Il=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiFormLabel"}),{children:o,className:r,component:s="label"}=n,a=(0,pr.A)(n,Ol),i=_l({props:n,muiFormControl:Pl(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Na.A)({},n,{color:i.color||"primary",component:s,disabled:i.disabled,error:i.error,filled:i.filled,focused:i.focused,required:i.required}),c=(e=>{const{classes:t,color:n,focused:o,disabled:r,error:s,filled:a,required:i}=e,l={root:["root","color".concat((0,gi.A)(n)),r&&"disabled",s&&"error",a&&"filled",o&&"focused",i&&"required"],asterisk:["asterisk",s&&"error"]};return(0,ai.A)(l,Ml,t)})(l);return(0,Ma.jsxs)(Tl,(0,Na.A)({as:s,ownerState:l,className:(0,qa.A)(c.root,r),ref:t},a,{children:[o,i.required&&(0,Ma.jsxs)(Ll,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))})),Dl=Il;function zl(e){return(0,ui.Ay)("MuiInputLabel",e)}(0,ti.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fl=["disableAnimation","margin","shrink","variant","className"],Bl=(0,li.Ay)(Dl,{shouldForwardProp:e=>(0,Ai.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(Rl.asterisk)]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,Na.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,Na.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,Na.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),Wl=o.forwardRef((function(e,t){const n=(0,di.b)({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:r,className:s}=n,a=(0,pr.A)(n,Fl),i=Pl();let l=r;"undefined"===typeof l&&i&&(l=i.filled||i.focused||i.adornedStart);const c=_l({props:n,muiFormControl:i,states:["size","variant","required","focused"]}),d=(0,Na.A)({},n,{disableAnimation:o,formControl:i,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),u=(e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:s,variant:a,required:i}=e,l={root:["root",n&&"formControl",!s&&"animated",r&&"shrink",o&&"normal"!==o&&"size".concat((0,gi.A)(o)),a],asterisk:[i&&"asterisk"]},c=(0,ai.A)(l,zl,t);return(0,Na.A)({},t,c)})(d);return(0,Ma.jsx)(Bl,(0,Na.A)({"data-shrink":l,ownerState:d,ref:t,className:(0,qa.A)(u.root,s)},a,{classes:u}))}));var Ul=n(9172);function Hl(e){var t;return parseInt(o.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}var Vl=n(7868),Kl=n(5844),ql=n(2427),$l=n(3462);const Jl=function(e){return"string"===typeof e};const Yl=function(e,t,n){return void 0===e||Jl(e)?t:(0,Na.A)({},t,{ownerState:(0,Na.A)({},t.ownerState,n)})};const Gl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n};const Xl=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};const Zl=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const e=(0,qa.A)(null==n?void 0:n.className,s,null==r?void 0:r.className,null==o?void 0:o.className),t=(0,Na.A)({},null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),a=(0,Na.A)({},n,r,o);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Gl((0,Na.A)({},r,o)),i=Xl(o),l=Xl(r),c=t(a),d=(0,qa.A)(null==c?void 0:c.className,null==n?void 0:n.className,s,null==r?void 0:r.className,null==o?void 0:o.className),u=(0,Na.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),p=(0,Na.A)({},c,n,l,i);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}};const Ql=function(e,t,n){return"function"===typeof e?e(t,n):e},ec=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];const tc=function(e){var t;const{elementType:n,externalSlotProps:o,ownerState:r,skipResolvingSlotProps:s=!1}=e,a=(0,pr.A)(e,ec),i=s?{}:Ql(o,r),{props:l,internalRef:c}=Zl((0,Na.A)({},a,{externalSlotProps:i})),d=(0,$l.A)(c,null==i?void 0:i.ref,null==(t=e.additionalProps)?void 0:t.ref);return Yl(n,(0,Na.A)({},l,{ref:d}),r)};const nc=o.createContext({});function oc(e){return(0,ui.Ay)("MuiList",e)}(0,ti.A)("MuiList",["root","padding","dense","subheader"]);const rc=["children","className","component","dense","disablePadding","subheader"],sc=(0,li.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),ac=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiList"}),{children:r,className:s,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:c}=n,d=(0,pr.A)(n,rc),u=o.useMemo((()=>({dense:i})),[i]),p=(0,Na.A)({},n,{component:a,dense:i,disablePadding:l}),h=(e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e,s={root:["root",!n&&"padding",o&&"dense",r&&"subheader"]};return(0,ai.A)(s,oc,t)})(p);return(0,Ma.jsx)(nc.Provider,{value:u,children:(0,Ma.jsxs)(sc,(0,Na.A)({as:a,className:(0,qa.A)(h.root,s),ref:t,ownerState:p},d,{children:[c,r]}))})}));function ic(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const lc=ic;var cc=n(5013);const dc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function uc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function pc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hc(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function fc(e,t,n,o,r,s){let a=!1,i=r(e,t,!!t&&n);for(;i;){if(i===e.firstChild){if(a)return!1;a=!0}const t=!o&&(i.disabled||"true"===i.getAttribute("aria-disabled"));if(i.hasAttribute("tabindex")&&hc(i,s)&&!t)return i.focus(),!0;i=r(e,i,n)}return!1}const mc=o.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:s=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,p=(0,pr.A)(e,dc),h=o.useRef(null),f=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,cc.A)((()=>{r&&h.current.focus()}),[r]),o.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:n}=t;const o=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&o){const t="".concat(lc((0,ql.A)(e)),"px");h.current.style["rtl"===n?"paddingLeft":"paddingRight"]=t,h.current.style.width="calc(100% + ".concat(t,")")}return h.current}})),[]);const m=(0,Ni.A)(h,t);let g=-1;o.Children.forEach(a,((e,t)=>{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const x=o.Children.map(a,((e,t)=>{if(t===g){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,Ma.jsx)(ac,(0,Na.A)({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=h.current,n=e.key,o=(0,ql.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),fc(t,o,c,l,uc);else if("ArrowUp"===n)e.preventDefault(),fc(t,o,c,l,pc);else if("Home"===n)e.preventDefault(),fc(t,null,c,l,uc);else if("End"===n)e.preventDefault(),fc(t,null,c,l,pc);else if(1===n.length){const r=f.current,s=n.toLowerCase(),a=performance.now();r.keys.length>0&&(a-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&s!==r.keys[0]&&(r.repeating=!1)),r.lastTime=a,r.keys.push(s);const i=o&&!r.repeating&&hc(o,r);r.previousKeyMatched&&(i||fc(t,o,!1,l,uc,r))?e.preventDefault():r.previousKeyMatched=!1}d&&d(e)},tabIndex:r?0:-1},p,{children:x}))})),gc=mc;var xc=n(950),bc=n(6078),vc=n(7950);const yc=!1;var wc="unmounted",kc="exited",Sc="entering",jc="entered",Cc="exiting",Ac=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var r,s=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?s?(r=kc,o.appearStatus=Sc):r=jc:r=t.unmountOnExit||t.mountOnEnter?wc:kc,o.state={status:r},o.nextCallback=null,o}Ri(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===wc?{status:kc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Sc&&n!==jc&&(t=Sc):n!==Sc&&n!==jc||(t=Cc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!==typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Sc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:vc.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kc&&this.setState({status:wc})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[vc.findDOMNode(this),o],s=r[0],a=r[1],i=this.getTimeouts(),l=o?i.appear:i.enter;!e&&!n||yc?this.safeSetState({status:jc},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,a),this.safeSetState({status:Sc},(function(){t.props.onEntering(s,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:jc},(function(){t.props.onEntered(s,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:vc.findDOMNode(this);t&&!yc?(this.props.onExit(o),this.safeSetState({status:Cc},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:kc},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:kc},(function(){e.props.onExited(o)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:vc.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=r[0],a=r[1];this.props.addEndListener(s,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===wc)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,pr.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(Oi.Provider,{value:null},"function"===typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function Nc(){}Ac.contextType=Oi,Ac.propTypes={},Ac.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nc,onEntering:Nc,onEntered:Nc,onExit:Nc,onExiting:Nc,onExited:Nc},Ac.UNMOUNTED=wc,Ac.EXITED=kc,Ac.ENTERING=Sc,Ac.ENTERED=jc,Ac.EXITING=Cc;const Ec=Ac;var _c=n(5170);function Pc(){const e=Za(_c.A);return e[Ha.A]||e}const Mc=e=>e.scrollTop;function Rc(e,t){var n,o;const{timeout:r,easing:s,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof r?r:r[t.mode]||0,easing:null!=(o=a.transitionTimingFunction)?o:"object"===typeof s?s[t.mode]:s,delay:a.transitionDelay}}const Oc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tc(e){return"scale(".concat(e,", ").concat(e**2,")")}const Lc={entering:{opacity:1,transform:Tc(1)},entered:{opacity:1,transform:"none"}},Ic="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Dc=o.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:s,easing:a,in:i,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:p,onExiting:h,style:f,timeout:m="auto",TransitionComponent:g=Ec}=e,x=(0,pr.A)(e,Oc),b=(0,Wi.A)(),v=o.useRef(),y=Pc(),w=o.useRef(null),k=(0,Ni.A)(w,Hl(s),t),S=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},j=S(d),C=S(((e,t)=>{Mc(e);const{duration:n,delay:o,easing:r}=Rc({style:f,timeout:m,easing:a},{mode:"enter"});let s;"auto"===m?(s=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=s):s=n,e.style.transition=[y.transitions.create("opacity",{duration:s,delay:o}),y.transitions.create("transform",{duration:Ic?s:.666*s,delay:o,easing:r})].join(","),l&&l(e,t)})),A=S(c),N=S(h),E=S((e=>{const{duration:t,delay:n,easing:o}=Rc({style:f,timeout:m,easing:a},{mode:"exit"});let r;"auto"===m?(r=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=r):r=t,e.style.transition=[y.transitions.create("opacity",{duration:r,delay:n}),y.transitions.create("transform",{duration:Ic?r:.666*r,delay:Ic?n:n||.333*r,easing:o})].join(","),e.style.opacity=0,e.style.transform=Tc(.75),u&&u(e)})),_=S(p);return(0,Ma.jsx)(g,(0,Na.A)({appear:r,in:i,nodeRef:w,onEnter:C,onEntered:A,onEntering:j,onExit:E,onExited:_,onExiting:N,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),n&&n(w.current,e)},timeout:"auto"===m?null:m},x,{children:(e,t)=>o.cloneElement(s,(0,Na.A)({style:(0,Na.A)({opacity:0,transform:Tc(.75),visibility:"exited"!==e||i?void 0:"hidden"},Lc[e],f,s.props.style),ref:k},t))}))}));Dc.muiSupportAuto=!0;const zc=Dc;var Fc=n(1668);const Bc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Wc(e){const t=[],n=[];return Array.from(e.querySelectorAll(Bc)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==r&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t));let n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Uc(){return!0}const Hc=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:s=!1,getTabbable:a=Wc,isEnabled:i=Uc,open:l}=e,c=o.useRef(!1),d=o.useRef(null),u=o.useRef(null),p=o.useRef(null),h=o.useRef(null),f=o.useRef(!1),m=o.useRef(null),g=(0,$l.A)(Hl(t),m),x=o.useRef(null);o.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),o.useEffect((()=>{if(!l||!m.current)return;const e=(0,Fc.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{s||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),o.useEffect((()=>{if(!l||!m.current)return;const e=(0,Fc.A)(m.current),t=t=>{x.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!i()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==d.current&&e.activeElement!==u.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!f.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(n=a(m.current)),n.length>0){var o,s;const e=Boolean((null==(o=x.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=x.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!==typeof t&&"string"!==typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,s,i,l,a]);const b=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return(0,Ma.jsxs)(o.Fragment,{children:[(0,Ma.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Ma.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})};var Vc=n(4440),Kc=n(6564);const qc=o.forwardRef((function(e,t){const{children:n,container:r,disablePortal:s=!1}=e,[a,i]=o.useState(null),l=(0,$l.A)(o.isValidElement(n)?Hl(n):null,t);if((0,Vc.A)((()=>{s||i(function(e){return"function"===typeof e?e():e}(r)||document.body)}),[r,s]),(0,Vc.A)((()=>{if(a&&!s)return(0,Kc.A)(t,a),()=>{(0,Kc.A)(t,null)}}),[t,a,s]),s){if(o.isValidElement(n)){const e={ref:l};return o.cloneElement(n,e)}return(0,Ma.jsx)(o.Fragment,{children:n})}return(0,Ma.jsx)(o.Fragment,{children:a?vc.createPortal(n,a):a})})),$c=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Jc={entering:{opacity:1},entered:{opacity:1}},Yc=o.forwardRef((function(e,t){const n=Pc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:i,easing:l,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:h,onExited:f,onExiting:m,style:g,timeout:x=r,TransitionComponent:b=Ec}=e,v=(0,pr.A)(e,$c),y=o.useRef(null),w=(0,Ni.A)(y,Hl(i),t),k=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},S=k(p),j=k(((e,t)=>{Mc(e);const o=Rc({style:g,timeout:x,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",o),e.style.transition=n.transitions.create("opacity",o),d&&d(e,t)})),C=k(u),A=k(m),N=k((e=>{const t=Rc({style:g,timeout:x,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)})),E=k(f);return(0,Ma.jsx)(b,(0,Na.A)({appear:a,in:c,nodeRef:y,onEnter:j,onEntered:C,onEntering:S,onExit:N,onExited:E,onExiting:A,addEndListener:e=>{s&&s(y.current,e)},timeout:x},v,{children:(e,t)=>o.cloneElement(i,(0,Na.A)({style:(0,Na.A)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Jc[e],g,i.props.style),ref:w},t))}))})),Gc=Yc;function Xc(e){return(0,ui.Ay)("MuiBackdrop",e)}(0,ti.A)("MuiBackdrop",["root","invisible"]);const Zc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qc=(0,li.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),ed=o.forwardRef((function(e,t){var n,o,r;const s=(0,di.b)({props:e,name:"MuiBackdrop"}),{children:a,className:i,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=Gc,transitionDuration:g}=s,x=(0,pr.A)(s,Zc),b=(0,Na.A)({},s,{component:l,invisible:u}),v=(e=>{const{classes:t,invisible:n}=e,o={root:["root",n&&"invisible"]};return(0,ai.A)(o,Xc,t)})(b),y=null!=(n=h.root)?n:d.root;return(0,Ma.jsx)(m,(0,Na.A)({in:p,timeout:g},x,{children:(0,Ma.jsx)(Qc,(0,Na.A)({"aria-hidden":!0},y,{as:null!=(o=null!=(r=f.root)?r:c.Root)?o:l,className:(0,qa.A)(v.root,i,null==y?void 0:y.className),ownerState:(0,Na.A)({},b,null==y?void 0:y.ownerState),classes:v,ref:t,children:a}))}))}));var td=n(1782),nd=n(2456),od=n(3940);function rd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sd(e){return parseInt((0,od.A)(e).getComputedStyle(e).paddingRight,10)||0}function ad(e,t,n,o,r){const s=[t,n,...o];[].forEach.call(e.children,(e=>{const t=-1===s.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&rd(e,r)}))}function id(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function ld(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Fc.A)(e);return t.body===e?(0,od.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=ic((0,Fc.A)(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight="".concat(sd(o)+e,"px");const t=(0,Fc.A)(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(sd(t)+e,"px")}))}let e;if(o.parentNode instanceof DocumentFragment)e=(0,Fc.A)(o).body;else{const t=o.parentElement,n=(0,od.A)(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:o}=e;t?n.style.setProperty(o,t):n.style.removeProperty(o)}))}}const cd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&rd(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ad(t,e.mount,e.modalRef,o,!0);const r=id(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=id(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];o.restore||(o.restore=ld(o,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const o=id(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&rd(e.modalRef,t),ad(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&rd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const dd=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:s=cd,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:c,onClose:d,open:u,rootRef:p}=e,h=o.useRef({}),f=o.useRef(null),m=o.useRef(null),g=(0,$l.A)(m,p),[x,b]=o.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const w=()=>(h.current.modalRef=m.current,h.current.mount=f.current,h.current),k=()=>{s.mount(w(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},S=(0,td.A)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,Fc.A)(f.current).body;s.add(w(),e),m.current&&k()})),j=o.useCallback((()=>s.isTopModal(w())),[s]),C=(0,td.A)((e=>{f.current=e,e&&(u&&j()?k():m.current&&rd(m.current,y))})),A=o.useCallback((()=>{s.remove(w(),y)}),[y,s]);o.useEffect((()=>()=>{A()}),[A]),o.useEffect((()=>{u?S():v&&a||A()}),[u,A,v,a,S]);const N=e=>t=>{var o;null==(o=e.onKeyDown)||o.call(e,t),"Escape"===t.key&&229!==t.which&&j()&&(n||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},E=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Gl(e);delete n.onTransitionEnter,delete n.onTransitionExited;const o=(0,Na.A)({},n,t);return(0,Na.A)({role:"presentation"},o,{onKeyDown:N(o),ref:g})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Na.A)({"aria-hidden":!0},e,{onClick:E(e),open:u})},getTransitionProps:()=>({onEnter:(0,nd.A)((()=>{b(!1),i&&i()}),null==c?void 0:c.props.onEnter),onExited:(0,nd.A)((()=>{b(!0),l&&l(),a&&A()}),null==c?void 0:c.props.onExited)}),rootRef:g,portalRef:C,isTopModal:j,exited:x,hasTransition:v}};function ud(e){return(0,ui.Ay)("MuiModal",e)}(0,ti.A)("MuiModal",["root","hidden","backdrop"]);const pd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],hd=(0,li.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),fd=(0,li.Ay)(ed,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),md=o.forwardRef((function(e,t){var n,r,s,a,i,l;const c=(0,di.b)({name:"MuiModal",props:e}),{BackdropComponent:d=fd,BackdropProps:u,className:p,closeAfterTransition:h=!1,children:f,container:m,component:g,components:x={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:w=!1,disablePortal:k=!1,disableRestoreFocus:S=!1,disableScrollLock:j=!1,hideBackdrop:C=!1,keepMounted:A=!1,onBackdropClick:N,open:E,slotProps:_,slots:P}=c,M=(0,pr.A)(c,pd),R=(0,Na.A)({},c,{closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:w,disablePortal:k,disableRestoreFocus:S,disableScrollLock:j,hideBackdrop:C,keepMounted:A}),{getRootProps:O,getBackdropProps:T,getTransitionProps:L,portalRef:I,isTopModal:D,exited:z,hasTransition:F}=dd((0,Na.A)({},R,{rootRef:t})),B=(0,Na.A)({},R,{exited:z}),W=(e=>{const{open:t,exited:n,classes:o}=e,r={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,ai.A)(r,ud,o)})(B),U={};if(void 0===f.props.tabIndex&&(U.tabIndex="-1"),F){const{onEnter:e,onExited:t}=L();U.onEnter=e,U.onExited=t}const H=null!=(n=null!=(r=null==P?void 0:P.root)?r:x.Root)?n:hd,V=null!=(s=null!=(a=null==P?void 0:P.backdrop)?a:x.Backdrop)?s:d,K=null!=(i=null==_?void 0:_.root)?i:b.root,q=null!=(l=null==_?void 0:_.backdrop)?l:b.backdrop,$=tc({elementType:H,externalSlotProps:K,externalForwardedProps:M,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:B,className:(0,qa.A)(p,null==K?void 0:K.className,null==W?void 0:W.root,!B.open&&B.exited&&(null==W?void 0:W.hidden))}),J=tc({elementType:V,externalSlotProps:q,additionalProps:u,getSlotProps:e=>T((0,Na.A)({},e,{onClick:t=>{N&&N(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,qa.A)(null==q?void 0:q.className,null==u?void 0:u.className,null==W?void 0:W.backdrop),ownerState:B});return A||E||F&&!z?(0,Ma.jsx)(qc,{ref:I,container:m,disablePortal:k,children:(0,Ma.jsxs)(H,(0,Na.A)({},$,{children:[!C&&d?(0,Ma.jsx)(V,(0,Na.A)({},J)):null,(0,Ma.jsx)(Hc,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:S,isEnabled:D,open:E,children:o.cloneElement(f,U)})]}))}):null})),gd=md;function xd(e){return(0,ui.Ay)("MuiPopover",e)}(0,ti.A)("MuiPopover",["root","paper"]);const bd=["onEntering"],vd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],yd=["slotProps"];function wd(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function kd(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Sd(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function jd(e){return"function"===typeof e?e():e}const Cd=(0,li.Ay)(gd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ad=(0,li.Ay)(mi,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nd=o.forwardRef((function(e,t){var n,r,s;const a=(0,di.b)({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:u="anchorEl",children:p,className:h,container:f,elevation:m=8,marginThreshold:g=16,open:x,PaperProps:b={},slots:v,slotProps:y,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:k=zc,transitionDuration:S="auto",TransitionProps:{onEntering:j}={},disableScrollLock:C=!1}=a,A=(0,pr.A)(a.TransitionProps,bd),N=(0,pr.A)(a,vd),E=null!=(n=null==y?void 0:y.paper)?n:b,_=o.useRef(),P=(0,Ni.A)(_,E.ref),M=(0,Na.A)({},a,{anchorOrigin:c,anchorReference:u,elevation:m,marginThreshold:g,externalPaperSlotProps:E,transformOrigin:w,TransitionComponent:k,transitionDuration:S,TransitionProps:A}),R=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"],paper:["paper"]},xd,t)})(M),O=o.useCallback((()=>{if("anchorPosition"===u)return d;const e=jd(l),t=(e&&1===e.nodeType?e:(0,ql.A)(_.current).body).getBoundingClientRect();return{top:t.top+wd(t,c.vertical),left:t.left+kd(t,c.horizontal)}}),[l,c.horizontal,c.vertical,d,u]),T=o.useCallback((e=>({vertical:wd(e,w.vertical),horizontal:kd(e,w.horizontal)})),[w.horizontal,w.vertical]),L=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===u)return{top:null,left:null,transformOrigin:Sd(n)};const o=O();let r=o.top-n.vertical,s=o.left-n.horizontal;const a=r+t.height,i=s+t.width,c=(0,bc.A)(jd(l)),d=c.innerHeight-g,p=c.innerWidth-g;if(null!==g&&r<g){const e=r-g;r-=e,n.vertical+=e}else if(null!==g&&a>d){const e=a-d;r-=e,n.vertical+=e}if(null!==g&&s<g){const e=s-g;s-=e,n.horizontal+=e}else if(i>p){const e=i-p;s-=e,n.horizontal+=e}return{top:"".concat(Math.round(r),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Sd(n)}}),[l,u,O,T,g]),[I,D]=o.useState(x),z=o.useCallback((()=>{const e=_.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,D(!0)}),[L]);o.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,C,z]);o.useEffect((()=>{x&&z()})),o.useImperativeHandle(i,(()=>x?{updatePosition:()=>{z()}}:null),[x,z]),o.useEffect((()=>{if(!x)return;const e=(0,xc.A)((()=>{z()})),t=(0,bc.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,x,z]);let F=S;"auto"!==S||k.muiSupportAuto||(F=void 0);const B=f||(l?(0,ql.A)(jd(l)).body:void 0),W=null!=(r=null==v?void 0:v.root)?r:Cd,U=null!=(s=null==v?void 0:v.paper)?s:Ad,H=tc({elementType:U,externalSlotProps:(0,Na.A)({},E,{style:I?E.style:(0,Na.A)({},E.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:M,className:(0,qa.A)(R.paper,null==E?void 0:E.className)}),V=tc({elementType:W,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:N,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:x},ownerState:M,className:(0,qa.A)(R.root,h)}),{slotProps:K}=V,q=(0,pr.A)(V,yd);return(0,Ma.jsx)(W,(0,Na.A)({},q,!Jl(W)&&{slotProps:K,disableScrollLock:C},{children:(0,Ma.jsx)(k,(0,Na.A)({appear:!0,in:x,onEntering:(e,t)=>{j&&j(e,t),z()},onExited:()=>{D(!1)},timeout:F},A,{children:(0,Ma.jsx)(U,(0,Na.A)({},H,{children:p}))}))}))})),Ed=Nd;function _d(e){return(0,ui.Ay)("MuiMenu",e)}(0,ti.A)("MuiMenu",["root","paper","list"]);const Pd=["onEntering"],Md=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Rd={vertical:"top",horizontal:"right"},Od={vertical:"top",horizontal:"left"},Td=(0,li.Ay)(Ed,{shouldForwardProp:e=>(0,Ai.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ld=(0,li.Ay)(Ad,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Id=(0,li.Ay)(gc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Dd=o.forwardRef((function(e,t){var n,r;const s=(0,di.b)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:u,open:p,PaperProps:h={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:x="selectedMenu",slots:b={},slotProps:v={}}=s,y=(0,pr.A)(s.TransitionProps,Pd),w=(0,pr.A)(s,Md),k=Da(),S=(0,Na.A)({},s,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:d,onEntering:g,PaperProps:h,transitionDuration:m,TransitionProps:y,variant:x}),j=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"],paper:["paper"],list:["list"]},_d,t)})(S),C=a&&!c&&p,A=o.useRef(null);let N=-1;o.Children.map(i,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===x&&e.props.selected||-1===N)&&(N=t))}));const E=null!=(n=b.paper)?n:Ld,_=null!=(r=v.paper)?r:h,P=tc({elementType:b.root,externalSlotProps:v.root,ownerState:S,className:[j.root,l]}),M=tc({elementType:E,externalSlotProps:_,ownerState:S,className:j.paper});return(0,Ma.jsx)(Td,(0,Na.A)({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Rd:Od,slots:{paper:E,root:b.root},slotProps:{root:P,paper:M},open:p,ref:t,transitionDuration:m,TransitionProps:(0,Na.A)({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:k?"rtl":"ltr"}),g&&g(e,t)}},y),ownerState:S},w,{classes:f,children:(0,Ma.jsx)(Id,(0,Na.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:A,autoFocus:a&&(-1===N||c),autoFocusItem:C,variant:x},d,{className:(0,qa.A)(j.list,d.className),children:i}))}))})),zd=Dd;function Fd(e){return(0,ui.Ay)("MuiNativeSelect",e)}const Bd=(0,ti.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Wd=["className","disabled","error","IconComponent","inputRef","variant"],Ud=e=>{let{ownerState:t,theme:n}=e;return(0,Na.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Na.A)({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(Bd.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},Hd=(0,li.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ai.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{["&.".concat(Bd.multiple)]:t.multiple}]}})(Ud),Vd=e=>{let{ownerState:t,theme:n}=e;return(0,Na.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,["&.".concat(Bd.disabled)]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Kd=(0,li.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,gi.A)(n.variant))],n.open&&t.iconOpen]}})(Vd),qd=o.forwardRef((function(e,t){const{className:n,disabled:r,error:s,IconComponent:a,inputRef:i,variant:l="standard"}=e,c=(0,pr.A)(e,Wd),d=(0,Na.A)({},e,{disabled:r,variant:l,error:s}),u=(e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:s,error:a}=e,i={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon","icon".concat((0,gi.A)(n)),s&&"iconOpen",o&&"disabled"]};return(0,ai.A)(i,Fd,t)})(d);return(0,Ma.jsxs)(o.Fragment,{children:[(0,Ma.jsx)(Hd,(0,Na.A)({ownerState:d,className:(0,qa.A)(u.select,n),disabled:r,ref:i||t},c)),e.multiple?null:(0,Ma.jsx)(Kd,{as:a,ownerState:d,className:u.icon})]})}));var $d=n(7123),Jd=n(5420);function Yd(e){return(0,ui.Ay)("MuiSelect",e)}const Gd=(0,ti.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Xd;const Zd=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Qd=(0,li.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["&.".concat(Gd.select)]:t.select},{["&.".concat(Gd.select)]:t[n.variant]},{["&.".concat(Gd.error)]:t.error},{["&.".concat(Gd.multiple)]:t.multiple}]}})(Ud,{["&.".concat(Gd.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),eu=(0,li.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,gi.A)(n.variant))],n.open&&t.iconOpen]}})(Vd),tu=(0,li.Ay)("input",{shouldForwardProp:e=>(0,$d.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function nu(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function ou(e){return null==e||"string"===typeof e&&!e.trim()}const ru=o.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":s,autoFocus:a,autoWidth:i,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:p,displayEmpty:h,error:f=!1,IconComponent:m,inputRef:g,labelId:x,MenuProps:b={},multiple:v,name:y,onBlur:w,onChange:k,onClose:S,onFocus:j,onOpen:C,open:A,readOnly:N,renderValue:E,SelectDisplayProps:_={},tabIndex:P,value:M,variant:R="standard"}=e,O=(0,pr.A)(e,Zd),[T,L]=(0,Jd.A)({controlled:M,default:u,name:"Select"}),[I,D]=(0,Jd.A)({controlled:A,default:d,name:"Select"}),z=o.useRef(null),F=o.useRef(null),[B,W]=o.useState(null),{current:U}=o.useRef(null!=A),[H,V]=o.useState(),K=(0,Ni.A)(t,g),q=o.useCallback((e=>{F.current=e,e&&W(e)}),[]),$=null==B?void 0:B.parentNode;o.useImperativeHandle(K,(()=>({focus:()=>{F.current.focus()},node:z.current,value:T})),[T]),o.useEffect((()=>{d&&I&&B&&!U&&(V(i?null:$.clientWidth),F.current.focus())}),[B,i]),o.useEffect((()=>{a&&F.current.focus()}),[a]),o.useEffect((()=>{if(!x)return;const e=(0,ql.A)(F.current).getElementById(x);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[x]);const J=(e,t)=>{e?C&&C(t):S&&S(t),U||(V(i?null:$.clientWidth),D(e))},Y=o.Children.toArray(l),G=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(L(n),k)){const o=t.nativeEvent||t,r=new o.constructor(o.type,o);Object.defineProperty(r,"target",{writable:!0,value:{value:n,name:y}}),k(r,e)}v||J(!1,t)}},X=null!==B&&I;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1,ne=!1;(wl({value:T})||h)&&(E?Z=E(T):te=!0);const oe=Y.map((e=>{if(!o.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error((0,Vl.A)(2));t=T.some((t=>nu(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=nu(T,e.props.value),t&&te&&(Q=e.props.children);return t&&(ne=!0),o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:G(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,se=H;!i&&U&&B&&(se=$.clientWidth),re="undefined"!==typeof P?P:p?null:0;const ae=_.id||(y?"mui-component-select-".concat(y):void 0),ie=(0,Na.A)({},e,{variant:R,value:T,open:X,error:f}),le=(e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:s,error:a}=e,i={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon","icon".concat((0,gi.A)(n)),s&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return(0,ai.A)(i,Yd,t)})(ie),ce=(0,Na.A)({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),de=(0,Kl.A)();return(0,Ma.jsxs)(o.Fragment,{children:[(0,Ma.jsx)(Qd,(0,Na.A)({ref:q,tabIndex:re,role:"combobox","aria-controls":de,"aria-disabled":p?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[x,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!N){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onMouseDown:p||N?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),J(!0,e))},onBlur:e=>{!X&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:y}}),w(e))},onFocus:j},_,{ownerState:ie,className:(0,qa.A)(_.className,le.select,c),id:ae,children:ou(Z)?Xd||(Xd=(0,Ma.jsx)("span",{className:"notranslate",children:"\u200b"})):Z})),(0,Ma.jsx)(tu,(0,Na.A)({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:z,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(L(t.props.value),k&&k(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:ie},O)),(0,Ma.jsx)(eu,{as:m,className:le.icon,ownerState:ie}),(0,Ma.jsx)(zd,(0,Na.A)({id:"menu-".concat(y||""),anchorEl:$,open:X,onClose:e=>{J(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:(0,Na.A)({"aria-labelledby":x,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:de},b.MenuListProps),slotProps:(0,Na.A)({},b.slotProps,{paper:(0,Na.A)({},ce,{style:(0,Na.A)({minWidth:se},null!=ce?ce.style:null)})}),children:oe}))]})})),su=ru;var au=n(9662);const iu=(0,au.A)((0,Ma.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var lu=n(3468);const cu=["onChange","maxRows","minRows","style","value"];function du(e){return parseInt(e,10)||0}const uu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function pu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const hu=o.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:s=1,style:a,value:i}=e,l=(0,pr.A)(e,cu),{current:c}=o.useRef(null!=i),d=o.useRef(null),u=(0,$l.A)(t,d),p=o.useRef(null),h=o.useRef(null),f=o.useCallback((()=>{const t=d.current,n=h.current;if(!t||!n)return;const o=(0,od.A)(t).getComputedStyle(t);if("0px"===o.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=o.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=o.boxSizing,i=du(o.paddingBottom)+du(o.paddingTop),l=du(o.borderBottomWidth)+du(o.borderTopWidth),c=n.scrollHeight;n.value="x";const u=n.scrollHeight;let p=c;s&&(p=Math.max(Number(s)*u,p)),r&&(p=Math.min(Number(r)*u,p)),p=Math.max(p,u);return{outerHeightStyle:p+("border-box"===a?i+l:0),overflowing:Math.abs(p-c)<=1}}),[r,s,e.placeholder]),m=(0,td.A)((()=>{const e=d.current,t=f();if(!e||!t||pu(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n})),g=o.useCallback((()=>{const e=d.current,t=f();if(!e||!t||pu(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height="".concat(n,"px")),e.style.overflow=t.overflowing?"hidden":""}),[f]),x=o.useRef(-1);(0,Vc.A)((()=>{const e=(0,lu.A)(g),t=null==d?void 0:d.current;if(!t)return;const n=(0,od.A)(t);let o;return n.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(o=new ResizeObserver((()=>{m()&&(o.unobserve(t),cancelAnimationFrame(x.current),g(),x.current=requestAnimationFrame((()=>{o.observe(t)})))})),o.observe(t)),()=>{e.clear(),cancelAnimationFrame(x.current),n.removeEventListener("resize",e),o&&o.disconnect()}}),[f,g,m]),(0,Vc.A)((()=>{g()}));return(0,Ma.jsxs)(o.Fragment,{children:[(0,Ma.jsx)("textarea",(0,Na.A)({value:i,onChange:e=>{c||g(),n&&n(e)},ref:u,rows:s,style:a},l)),(0,Ma.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,Na.A)({},uu,a,{paddingTop:0,paddingBottom:0})})]})})),fu=hu;var mu=n(869);const gu=function(e){let{styles:t,themeId:n,defaultTheme:o={}}=e;const r=Za(o),s="function"===typeof t?t(n&&r[n]||r):t;return(0,Ma.jsx)(mu.A,{styles:s})};const xu=function(e){return(0,Ma.jsx)(gu,(0,Na.A)({},e,{defaultTheme:_c.A,themeId:Ha.A}))};function bu(e){return(0,ui.Ay)("MuiInputBase",e)}const vu=(0,ti.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),yu=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],wu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,gi.A)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ku=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Su=(0,li.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:wu})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(vu.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,Na.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),ju=(0,li.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ku})((e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode,r=(0,Na.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),s={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,Na.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(vu.formControl," &")]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},["&.".concat(vu.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),Cu=(0,Ma.jsx)(xu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Au=o.forwardRef((function(e,t){var n;const r=(0,di.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:i,className:l,components:c={},componentsProps:d={},defaultValue:u,disabled:p,disableInjectingGlobalStyles:h,endAdornment:f,fullWidth:m=!1,id:g,inputComponent:x="input",inputProps:b={},inputRef:v,maxRows:y,minRows:w,multiline:k=!1,name:S,onBlur:j,onChange:C,onClick:A,onFocus:N,onKeyDown:E,onKeyUp:_,placeholder:P,readOnly:M,renderSuffix:R,rows:O,slotProps:T={},slots:L={},startAdornment:I,type:D="text",value:z}=r,F=(0,pr.A)(r,yu),B=null!=b.value?b.value:z,{current:W}=o.useRef(null!=B),U=o.useRef(),H=o.useCallback((e=>{0}),[]),V=(0,Ni.A)(U,v,b.ref,H),[K,q]=o.useState(!1),$=Pl();const J=_l({props:r,muiFormControl:$,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=$?$.focused:K,o.useEffect((()=>{!$&&p&&K&&(q(!1),j&&j())}),[$,p,K,j]);const Y=$&&$.onFilled,G=$&&$.onEmpty,X=o.useCallback((e=>{wl(e)?Y&&Y():G&&G()}),[Y,G]);(0,cc.A)((()=>{W&&X({value:B})}),[B,X,W]);o.useEffect((()=>{X(U.current)}),[]);let Z=x,Q=b;k&&"input"===Z&&(Q=O?(0,Na.A)({type:void 0,minRows:O,maxRows:O},Q):(0,Na.A)({type:void 0,maxRows:y,minRows:w},Q),Z=fu);o.useEffect((()=>{$&&$.setAdornedStart(Boolean(I))}),[$,I]);const ee=(0,Na.A)({},r,{color:J.color||"primary",disabled:J.disabled,endAdornment:f,error:J.error,focused:J.focused,formControl:$,fullWidth:m,hiddenLabel:J.hiddenLabel,multiline:k,size:J.size,startAdornment:I,type:D}),te=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:s,focused:a,formControl:i,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e,m={root:["root","color".concat((0,gi.A)(n)),o&&"disabled",r&&"error",l&&"fullWidth",a&&"focused",i&&"formControl",p&&"medium"!==p&&"size".concat((0,gi.A)(p)),d&&"multiline",h&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",o&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",s&&"inputAdornedEnd",u&&"readOnly"]};return(0,ai.A)(m,bu,t)})(ee),ne=L.root||c.Root||Su,oe=T.root||d.root||{},re=L.input||c.Input||ju;return Q=(0,Na.A)({},Q,null!=(n=T.input)?n:d.input),(0,Ma.jsxs)(o.Fragment,{children:[!h&&Cu,(0,Ma.jsxs)(ne,(0,Na.A)({},oe,!Jl(ne)&&{ownerState:(0,Na.A)({},ee,oe.ownerState)},{ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),A&&A(e)}},F,{className:(0,qa.A)(te.root,oe.className,l,M&&"MuiInputBase-readOnly"),children:[I,(0,Ma.jsx)(Sl.Provider,{value:null,children:(0,Ma.jsx)(re,(0,Na.A)({ownerState:ee,"aria-invalid":J.error,"aria-describedby":s,autoComplete:a,autoFocus:i,defaultValue:u,disabled:J.disabled,id:g,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:S,placeholder:P,readOnly:M,required:J.required,rows:O,value:B,onKeyDown:E,onKeyUp:_,type:D},Q,!Jl(re)&&{as:Z,ownerState:(0,Na.A)({},ee,Q.ownerState)},{ref:V,className:(0,qa.A)(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{j&&j(e),b.onBlur&&b.onBlur(e),$&&$.onBlur?$.onBlur(e):q(!1)},onChange:function(e){if(!W){const t=e.target||U.current;if(null==t)throw new Error((0,Vl.A)(1));X({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];b.onChange&&b.onChange(e,...n),C&&C(e,...n)},onFocus:e=>{J.disabled?e.stopPropagation():(N&&N(e),b.onFocus&&b.onFocus(e),$&&$.onFocus?$.onFocus(e):q(!0))}}))}),f,R?R((0,Na.A)({},J,{startAdornment:I})):null]}))]})})),Nu=Au;function Eu(e){return(0,ui.Ay)("MuiInput",e)}const _u=(0,Na.A)({},vu,(0,ti.A)("MuiInput",["root","underline","input"])),Pu=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Mu=(0,li.Ay)(Su,{shouldForwardProp:e=>(0,Ai.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wu(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let o="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(o="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,Na.A)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(_u.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(_u.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(_u.disabled,", .").concat(_u.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(o)}},["&.".concat(_u.disabled,":before")]:{borderBottomStyle:"dotted"}})})),Ru=(0,li.Ay)(ju,{name:"MuiInput",slot:"Input",overridesResolver:ku})({}),Ou=o.forwardRef((function(e,t){var n,o,r,s;const a=(0,di.b)({props:e,name:"MuiInput"}),{disableUnderline:i,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:u="input",multiline:p=!1,slotProps:h,slots:f={},type:m="text"}=a,g=(0,pr.A)(a,Pu),x=(e=>{const{classes:t,disableUnderline:n}=e,o={root:["root",!n&&"underline"],input:["input"]},r=(0,ai.A)(o,Eu,t);return(0,Na.A)({},t,r)})(a),b={root:{ownerState:{disableUnderline:i}}},v=(null!=h?h:c)?(0,Ul.A)(null!=h?h:c,b):b,y=null!=(n=null!=(o=f.root)?o:l.Root)?n:Mu,w=null!=(r=null!=(s=f.input)?s:l.Input)?r:Ru;return(0,Ma.jsx)(Nu,(0,Na.A)({slots:{root:y,input:w},slotProps:v,fullWidth:d,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:x}))}));Ou.muiName="Input";const Tu=Ou;function Lu(e){return(0,ui.Ay)("MuiFilledInput",e)}const Iu=(0,Na.A)({},vu,(0,ti.A)("MuiFilledInput",["root","underline","input"])),Du=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],zu=(0,li.Ay)(Su,{shouldForwardProp:e=>(0,Ai.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wu(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var o;const r="light"===t.palette.mode,s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Na.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a}},["&.".concat(Iu.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a},["&.".concat(Iu.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(o=(t.vars||t).palette[n.color||"primary"])?void 0:o.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(Iu.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(Iu.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):s),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(Iu.disabled,", .").concat(Iu.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(Iu.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,Na.A)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),Fu=(0,li.Ay)(ju,{name:"MuiFilledInput",slot:"Input",overridesResolver:ku})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),Bu=o.forwardRef((function(e,t){var n,o,r,s;const a=(0,di.b)({props:e,name:"MuiFilledInput"}),{components:i={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:p,slots:h={},type:f="text"}=a,m=(0,pr.A)(a,Du),g=(0,Na.A)({},a,{fullWidth:c,inputComponent:d,multiline:u,type:f}),x=(e=>{const{classes:t,disableUnderline:n}=e,o={root:["root",!n&&"underline"],input:["input"]},r=(0,ai.A)(o,Lu,t);return(0,Na.A)({},t,r)})(a),b={root:{ownerState:g},input:{ownerState:g}},v=(null!=p?p:l)?(0,Ul.A)(b,null!=p?p:l):b,y=null!=(n=null!=(o=h.root)?o:i.Root)?n:zu,w=null!=(r=null!=(s=h.input)?s:i.Input)?r:Fu;return(0,Ma.jsx)(Nu,(0,Na.A)({slots:{root:y,input:w},componentsProps:v,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:f},m,{classes:x}))}));Bu.muiName="Input";const Wu=Bu;var Uu;const Hu=["children","classes","className","label","notched"],Vu=(0,li.Ay)("fieldset",{shouldForwardProp:Ai.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ku=(0,li.Ay)("legend",{shouldForwardProp:Ai.A})((e=>{let{ownerState:t,theme:n}=e;return(0,Na.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,Na.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));function qu(e){return(0,ui.Ay)("MuiOutlinedInput",e)}const $u=(0,Na.A)({},vu,(0,ti.A)("MuiOutlinedInput",["root","notchedOutline","input"])),Ju=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Yu=(0,li.Ay)(Su,{shouldForwardProp:e=>(0,Ai.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:wu})((e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Na.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat($u.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat($u.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):o}},["&.".concat($u.focused," .").concat($u.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat($u.error," .").concat($u.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat($u.disabled," .").concat($u.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,Na.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),Gu=(0,li.Ay)((function(e){const{className:t,label:n,notched:o}=e,r=(0,pr.A)(e,Hu),s=null!=n&&""!==n,a=(0,Na.A)({},e,{notched:o,withLabel:s});return(0,Ma.jsx)(Vu,(0,Na.A)({"aria-hidden":!0,className:t,ownerState:a},r,{children:(0,Ma.jsx)(Ku,{ownerState:a,children:s?(0,Ma.jsx)("span",{children:n}):Uu||(Uu=(0,Ma.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),Xu=(0,li.Ay)(ju,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ku})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),Zu=o.forwardRef((function(e,t){var n,r,s,a,i;const l=(0,di.b)({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:u="input",label:p,multiline:h=!1,notched:f,slots:m={},type:g="text"}=l,x=(0,pr.A)(l,Ju),b=(e=>{const{classes:t}=e,n=(0,ai.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qu,t);return(0,Na.A)({},t,n)})(l),v=Pl(),y=_l({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=(0,Na.A)({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:d,hiddenLabel:y.hiddenLabel,multiline:h,size:y.size,type:g}),k=null!=(n=null!=(r=m.root)?r:c.Root)?n:Yu,S=null!=(s=null!=(a=m.input)?a:c.Input)?s:Xu;return(0,Ma.jsx)(Nu,(0,Na.A)({slots:{root:k,input:S},renderSuffix:e=>(0,Ma.jsx)(Gu,{ownerState:w,className:b.notchedOutline,label:null!=p&&""!==p&&y.required?i||(i=(0,Ma.jsxs)(o.Fragment,{children:[p,"\u2009","*"]})):p,notched:"undefined"!==typeof f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:d,inputComponent:u,multiline:h,ref:t,type:g},x,{classes:(0,Na.A)({},b,{notchedOutline:null})}))}));Zu.muiName="Input";const Qu=Zu,ep=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],tp=["root"],np={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,Ai.A)(e)&&"variant"!==e,slot:"Root"},op=(0,li.Ay)(Tu,np)(""),rp=(0,li.Ay)(Qu,np)(""),sp=(0,li.Ay)(Wu,np)(""),ap=o.forwardRef((function(e,t){const n=(0,di.b)({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:s,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=iu,id:u,input:p,inputProps:h,label:f,labelId:m,MenuProps:g,multiple:x=!1,native:b=!1,onClose:v,onOpen:y,open:w,renderValue:k,SelectDisplayProps:S,variant:j="outlined"}=n,C=(0,pr.A)(n,ep),A=b?qd:su,N=_l({props:n,muiFormControl:Pl(),states:["variant","error"]}),E=N.variant||j,_=(0,Na.A)({},n,{variant:E,classes:a}),P=(e=>{const{classes:t}=e;return t})(_),M=(0,pr.A)(P,tp),R=p||{standard:(0,Ma.jsx)(op,{ownerState:_}),outlined:(0,Ma.jsx)(rp,{label:f,ownerState:_}),filled:(0,Ma.jsx)(sp,{ownerState:_})}[E],O=(0,Ni.A)(t,Hl(R));return(0,Ma.jsx)(o.Fragment,{children:o.cloneElement(R,(0,Na.A)({inputComponent:A,inputProps:(0,Na.A)({children:s,error:N.error,IconComponent:d,variant:E,type:void 0,multiple:x},b?{id:u}:{autoWidth:r,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:v,onOpen:y,open:w,renderValue:k,SelectDisplayProps:(0,Na.A)({id:u},S)},h,{classes:h?(0,Ul.A)(M,h.classes):M},p?p.props.inputProps:{})},(x&&b||c)&&"outlined"===E?{notched:!0}:{},{ref:O,className:(0,qa.A)(R.props.className,i,P.root)},!p&&{variant:E},C))})}));ap.muiName="Select";const ip=ap;function lp(e){return(0,ui.Ay)("MuiDivider",e)}const cp=(0,ti.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const dp=(0,ti.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);const up=(0,ti.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function pp(e){return(0,ui.Ay)("MuiMenuItem",e)}const hp=(0,ti.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),fp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mp=(0,li.Ay)(dl,{shouldForwardProp:e=>(0,Ai.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(hp.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,ii.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(hp.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,ii.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(hp.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,ii.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,ii.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(hp.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(hp.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(cp.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(cp.inset)]:{marginLeft:52},["& .".concat(up.root)]:{marginTop:0,marginBottom:0},["& .".concat(up.inset)]:{paddingLeft:36},["& .".concat(dp.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,Na.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(dp.root," svg")]:{fontSize:"1.25rem"}}))})),gp=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:s="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u,className:p}=n,h=(0,pr.A)(n,fp),f=o.useContext(nc),m=o.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),g=o.useRef(null);(0,cc.A)((()=>{r&&g.current&&g.current.focus()}),[r]);const x=(0,Na.A)({},n,{dense:m.dense,divider:i,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:s,classes:a}=e,i={root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",s&&"selected"]},l=(0,ai.A)(i,pp,a);return(0,Na.A)({},a,l)})(n),v=(0,Ni.A)(g,t);let y;return n.disabled||(y=void 0!==u?u:-1),(0,Ma.jsx)(nc.Provider,{value:m,children:(0,Ma.jsx)(mp,(0,Na.A)({ref:v,role:d,tabIndex:y,component:s,focusVisibleClassName:(0,qa.A)(b.focusVisible,c),className:(0,qa.A)(b.root,p)},h,{ownerState:x,classes:b}))})}));var xp=n(2374);function bp(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vp(e){return e instanceof bp(e).Element||e instanceof Element}function yp(e){return e instanceof bp(e).HTMLElement||e instanceof HTMLElement}function wp(e){return"undefined"!==typeof ShadowRoot&&(e instanceof bp(e).ShadowRoot||e instanceof ShadowRoot)}var kp=Math.max,Sp=Math.min,jp=Math.round;function Cp(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ap(){return!/^((?!chrome|android).)*safari/i.test(Cp())}function Np(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,s=1;t&&yp(e)&&(r=e.offsetWidth>0&&jp(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&jp(o.height)/e.offsetHeight||1);var a=(vp(e)?bp(e):window).visualViewport,i=!Ap()&&n,l=(o.left+(i&&a?a.offsetLeft:0))/r,c=(o.top+(i&&a?a.offsetTop:0))/s,d=o.width/r,u=o.height/s;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Ep(e){var t=bp(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _p(e){return e?(e.nodeName||"").toLowerCase():null}function Pp(e){return((vp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mp(e){return Np(Pp(e)).left+Ep(e).scrollLeft}function Rp(e){return bp(e).getComputedStyle(e)}function Op(e){var t=Rp(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Tp(e,t,n){void 0===n&&(n=!1);var o=yp(t),r=yp(t)&&function(e){var t=e.getBoundingClientRect(),n=jp(t.width)/e.offsetWidth||1,o=jp(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=Pp(t),a=Np(e,r,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==_p(t)||Op(s))&&(i=function(e){return e!==bp(e)&&yp(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ep(e);var t}(t)),yp(t)?((l=Np(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Mp(s))),{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function Lp(e){var t=Np(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Ip(e){return"html"===_p(e)?e:e.assignedSlot||e.parentNode||(wp(e)?e.host:null)||Pp(e)}function Dp(e){return["html","body","#document"].indexOf(_p(e))>=0?e.ownerDocument.body:yp(e)&&Op(e)?e:Dp(Ip(e))}function zp(e,t){var n;void 0===t&&(t=[]);var o=Dp(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),s=bp(o),a=r?[s].concat(s.visualViewport||[],Op(o)?o:[]):o,i=t.concat(a);return r?i:i.concat(zp(Ip(a)))}function Fp(e){return["table","td","th"].indexOf(_p(e))>=0}function Bp(e){return yp(e)&&"fixed"!==Rp(e).position?e.offsetParent:null}function Wp(e){for(var t=bp(e),n=Bp(e);n&&Fp(n)&&"static"===Rp(n).position;)n=Bp(n);return n&&("html"===_p(n)||"body"===_p(n)&&"static"===Rp(n).position)?t:n||function(e){var t=/firefox/i.test(Cp());if(/Trident/i.test(Cp())&&yp(e)&&"fixed"===Rp(e).position)return null;var n=Ip(e);for(wp(n)&&(n=n.host);yp(n)&&["html","body"].indexOf(_p(n))<0;){var o=Rp(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var Up="top",Hp="bottom",Vp="right",Kp="left",qp="auto",$p=[Up,Hp,Vp,Kp],Jp="start",Yp="end",Gp="viewport",Xp="popper",Zp=$p.reduce((function(e,t){return e.concat([t+"-"+Jp,t+"-"+Yp])}),[]),Qp=[].concat($p,[qp]).reduce((function(e,t){return e.concat([t,t+"-"+Jp,t+"-"+Yp])}),[]),eh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function th(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function nh(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var oh={placement:"bottom",modifiers:[],strategy:"absolute"};function rh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function sh(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,s=void 0===r?oh:r;return function(e,t,n){void 0===n&&(n=s);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},oh,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],i=!1,l={state:r,setOptions:function(n){var i="function"===typeof n?n(r.options):n;c(),r.options=Object.assign({},s,r.options,i),r.scrollParents={reference:vp(e)?zp(e):e.contextElement?zp(e.contextElement):[],popper:zp(t)};var d=function(e){var t=th(e);return eh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(o,r.options.modifiers)));return r.orderedModifiers=d.filter((function(e){return e.enabled})),r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,s=e.effect;if("function"===typeof s){var i=s({state:r,name:t,instance:l,options:o}),c=function(){};a.push(i||c)}})),l.update()},forceUpdate:function(){if(!i){var e=r.elements,t=e.reference,n=e.popper;if(rh(t,n)){r.rects={reference:Tp(t,Wp(n),"fixed"===r.options.strategy),popper:Lp(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<r.orderedModifiers.length;o++)if(!0!==r.reset){var s=r.orderedModifiers[o],a=s.fn,c=s.options,d=void 0===c?{}:c,u=s.name;"function"===typeof a&&(r=a({state:r,options:d,name:u,instance:l})||r)}else r.reset=!1,o=-1}}},update:nh((function(){return new Promise((function(e){l.forceUpdate(),e(r)}))})),destroy:function(){c(),i=!0}};if(!rh(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!i&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var ah={passive:!0};const ih={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,s=void 0===r||r,a=o.resize,i=void 0===a||a,l=bp(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",n.update,ah)})),i&&l.addEventListener("resize",n.update,ah),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ah)})),i&&l.removeEventListener("resize",n.update,ah)}},data:{}};function lh(e){return e.split("-")[0]}function ch(e){return e.split("-")[1]}function dh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uh(e){var t,n=e.reference,o=e.element,r=e.placement,s=r?lh(r):null,a=r?ch(r):null,i=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(s){case Up:t={x:i,y:n.y-o.height};break;case Hp:t={x:i,y:n.y+n.height};break;case Vp:t={x:n.x+n.width,y:l};break;case Kp:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?dh(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case Jp:t[c]=t[c]-(n[d]/2-o[d]/2);break;case Yp:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}var ph={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hh(e){var t,n=e.popper,o=e.popperRect,r=e.placement,s=e.variation,a=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=a.x,h=void 0===p?0:p,f=a.y,m=void 0===f?0:f,g="function"===typeof d?d({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var x=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),v=Kp,y=Up,w=window;if(c){var k=Wp(n),S="clientHeight",j="clientWidth";if(k===bp(n)&&"static"!==Rp(k=Pp(n)).position&&"absolute"===i&&(S="scrollHeight",j="scrollWidth"),r===Up||(r===Kp||r===Vp)&&s===Yp)y=Hp,m-=(u&&k===w&&w.visualViewport?w.visualViewport.height:k[S])-o.height,m*=l?1:-1;if(r===Kp||(r===Up||r===Hp)&&s===Yp)v=Vp,h-=(u&&k===w&&w.visualViewport?w.visualViewport.width:k[j])-o.width,h*=l?1:-1}var C,A=Object.assign({position:i},c&&ph),N=!0===d?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:jp(n*r)/r||0,y:jp(o*r)/r||0}}({x:h,y:m},bp(n)):{x:h,y:m};return h=N.x,m=N.y,l?Object.assign({},A,((C={})[y]=b?"0":"",C[v]=x?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",C)):Object.assign({},A,((t={})[y]=b?m+"px":"",t[v]=x?h+"px":"",t.transform="",t))}const fh={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];yp(r)&&_p(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});yp(o)&&_p(o)&&(Object.assign(o.style,s),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};const mh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,s=void 0===r?[0,0]:r,a=Qp.reduce((function(e,n){return e[n]=function(e,t,n){var o=lh(e),r=[Kp,Up].indexOf(o)>=0?-1:1,s="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],i=s[1];return a=a||0,i=(i||0)*r,[Kp,Vp].indexOf(o)>=0?{x:i,y:a}:{x:a,y:i}}(n,t.rects,s),e}),{}),i=a[t.placement],l=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var gh={left:"right",right:"left",bottom:"top",top:"bottom"};function xh(e){return e.replace(/left|right|bottom|top/g,(function(e){return gh[e]}))}var bh={start:"end",end:"start"};function vh(e){return e.replace(/start|end/g,(function(e){return bh[e]}))}function yh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wp(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function wh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kh(e,t,n){return t===Gp?wh(function(e,t){var n=bp(e),o=Pp(e),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,i=0,l=0;if(r){s=r.width,a=r.height;var c=Ap();(c||!c&&"fixed"===t)&&(i=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:i+Mp(e),y:l}}(e,n)):vp(t)?function(e,t){var n=Np(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):wh(function(e){var t,n=Pp(e),o=Ep(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=kp(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=kp(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-o.scrollLeft+Mp(e),l=-o.scrollTop;return"rtl"===Rp(r||n).direction&&(i+=kp(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:i,y:l}}(Pp(e)))}function Sh(e,t,n,o){var r="clippingParents"===t?function(e){var t=zp(Ip(e)),n=["absolute","fixed"].indexOf(Rp(e).position)>=0&&yp(e)?Wp(e):e;return vp(n)?t.filter((function(e){return vp(e)&&yh(e,n)&&"body"!==_p(e)})):[]}(e):[].concat(t),s=[].concat(r,[n]),a=s[0],i=s.reduce((function(t,n){var r=kh(e,n,o);return t.top=kp(r.top,t.top),t.right=Sp(r.right,t.right),t.bottom=Sp(r.bottom,t.bottom),t.left=kp(r.left,t.left),t}),kh(e,a,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function jh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ch(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ah(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,s=n.strategy,a=void 0===s?e.strategy:s,i=n.boundary,l=void 0===i?"clippingParents":i,c=n.rootBoundary,d=void 0===c?Gp:c,u=n.elementContext,p=void 0===u?Xp:u,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,x=jh("number"!==typeof g?g:Ch(g,$p)),b=p===Xp?"reference":Xp,v=e.rects.popper,y=e.elements[f?b:p],w=Sh(vp(y)?y:y.contextElement||Pp(e.elements.popper),l,d,a),k=Np(e.elements.reference),S=uh({reference:k,element:v,strategy:"absolute",placement:r}),j=wh(Object.assign({},v,S)),C=p===Xp?j:k,A={top:w.top-C.top+x.top,bottom:C.bottom-w.bottom+x.bottom,left:w.left-C.left+x.left,right:C.right-w.right+x.right},N=e.modifiersData.offset;if(p===Xp&&N){var E=N[r];Object.keys(A).forEach((function(e){var t=[Vp,Hp].indexOf(e)>=0?1:-1,n=[Up,Hp].indexOf(e)>=0?"y":"x";A[e]+=E[n]*t}))}return A}const Nh={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,s=void 0===r||r,a=n.altAxis,i=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,x=lh(g),b=l||(x===g||!f?[xh(g)]:function(e){if(lh(e)===qp)return[];var t=xh(e);return[vh(e),t,vh(t)]}(g)),v=[g].concat(b).reduce((function(e,n){return e.concat(lh(n)===qp?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Qp:l,d=ch(o),u=d?i?Zp:Zp.filter((function(e){return ch(e)===d})):$p,p=u.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=u);var h=p.reduce((function(t,n){return t[n]=Ah(e,{placement:n,boundary:r,rootBoundary:s,padding:a})[lh(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),y=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,j=v[0],C=0;C<v.length;C++){var A=v[C],N=lh(A),E=ch(A)===Jp,_=[Up,Hp].indexOf(N)>=0,P=_?"width":"height",M=Ah(t,{placement:A,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),R=_?E?Vp:Kp:E?Hp:Up;y[P]>w[P]&&(R=xh(R));var O=xh(R),T=[];if(s&&T.push(M[N]<=0),i&&T.push(M[R]<=0,M[O]<=0),T.every((function(e){return e}))){j=A,S=!1;break}k.set(A,T)}if(S)for(var L=function(e){var t=v.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},I=f?3:1;I>0;I--){if("break"===L(I))break}t.placement!==j&&(t.modifiersData[o]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Eh(e,t,n){return kp(e,Sp(t,n))}const _h={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,s=void 0===r||r,a=n.altAxis,i=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=Ah(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),x=lh(t.placement),b=ch(t.placement),v=!b,y=dh(x),w="x"===y?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,j=t.rects.popper,C="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(k){if(s){var _,P="y"===y?Up:Kp,M="y"===y?Hp:Vp,R="y"===y?"height":"width",O=k[y],T=O+g[P],L=O-g[M],I=h?-j[R]/2:0,D=b===Jp?S[R]:j[R],z=b===Jp?-j[R]:-S[R],F=t.elements.arrow,B=h&&F?Lp(F):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=W[P],H=W[M],V=Eh(0,S[R],B[R]),K=v?S[R]/2-I-V-U-A.mainAxis:D-V-U-A.mainAxis,q=v?-S[R]/2+I+V+H+A.mainAxis:z+V+H+A.mainAxis,$=t.elements.arrow&&Wp(t.elements.arrow),J=$?"y"===y?$.clientTop||0:$.clientLeft||0:0,Y=null!=(_=null==N?void 0:N[y])?_:0,G=O+q-Y,X=Eh(h?Sp(T,O+K-Y-J):T,O,h?kp(L,G):L);k[y]=X,E[y]=X-O}if(i){var Z,Q="x"===y?Up:Kp,ee="x"===y?Hp:Vp,te=k[w],ne="y"===w?"height":"width",oe=te+g[Q],re=te-g[ee],se=-1!==[Up,Kp].indexOf(x),ae=null!=(Z=null==N?void 0:N[w])?Z:0,ie=se?oe:te-S[ne]-j[ne]-ae+A.altAxis,le=se?te+S[ne]+j[ne]-ae-A.altAxis:re,ce=h&&se?function(e,t,n){var o=Eh(e,t,n);return o>n?n:o}(ie,te,le):Eh(h?ie:oe,te,h?le:re);k[w]=ce,E[w]=ce-te}t.modifiersData[o]=E}},requiresIfExists:["offset"]};const Ph={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,i=lh(n.placement),l=dh(i),c=[Kp,Vp].indexOf(i)>=0?"height":"width";if(s&&a){var d=function(e,t){return jh("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ch(e,$p))}(r.padding,n),u=Lp(s),p="y"===l?Up:Kp,h="y"===l?Hp:Vp,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=Wp(s),x=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=f/2-m/2,v=d[p],y=x-u[c]-d[h],w=x/2-u[c]/2+b,k=Eh(v,w,y),S=l;n.modifiersData[o]=((t={})[S]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!==typeof o||(o=t.elements.popper.querySelector(o)))&&yh(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mh(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rh(e){return[Up,Vp,Hp,Kp].some((function(t){return e[t]>=0}))}var Oh=sh({defaultModifiers:[ih,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=uh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,s=n.adaptive,a=void 0===s||s,i=n.roundOffsets,l=void 0===i||i,c={placement:lh(t.placement),variation:ch(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,hh(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,hh(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},fh,mh,Nh,_h,Ph,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,a=Ah(t,{elementContext:"reference"}),i=Ah(t,{altBoundary:!0}),l=Mh(a,o),c=Mh(i,r,s),d=Rh(l),u=Rh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});function Th(e){return(0,ui.Ay)("MuiPopper",e)}(0,ti.A)("MuiPopper",["root"]);const Lh=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ih=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Dh(e){return"function"===typeof e?e():e}function zh(e){return void 0!==e.nodeType}const Fh={},Bh=o.forwardRef((function(e,t){var n;const{anchorEl:r,children:s,direction:a,disablePortal:i,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:p,slotProps:h={},slots:f={},TransitionProps:m}=e,g=(0,pr.A)(e,Lh),x=o.useRef(null),b=(0,$l.A)(x,t),v=o.useRef(null),y=(0,$l.A)(v,p),w=o.useRef(y);(0,Vc.A)((()=>{w.current=y}),[y]),o.useImperativeHandle(p,(()=>v.current),[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,a),[S,j]=o.useState(k),[C,A]=o.useState(Dh(r));o.useEffect((()=>{v.current&&v.current.forceUpdate()})),o.useEffect((()=>{r&&A(Dh(r))}),[r]),(0,Vc.A)((()=>{if(!C||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;(e=>{j(e.placement)})(t)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Oh(C,x.current,(0,Na.A)({placement:k},u,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[C,i,l,c,u,k]);const N={placement:S};null!==m&&(N.TransitionProps=m);const E=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"]},Th,t)})(e),_=null!=(n=f.root)?n:"div",P=tc({elementType:_,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:E.root});return(0,Ma.jsx)(_,(0,Na.A)({},P,{children:"function"===typeof s?s(N):s}))})),Wh=o.forwardRef((function(e,t){const{anchorEl:n,children:r,container:s,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:p=Fh,popperRef:h,style:f,transition:m=!1,slotProps:g={},slots:x={}}=e,b=(0,pr.A)(e,Ih),[v,y]=o.useState(!0);if(!l&&!d&&(!m||v))return null;let w;if(s)w=s;else if(n){const e=Dh(n);w=e&&zh(e)?(0,Fc.A)(e).body:(0,Fc.A)(null).body}const k=d||!l||m&&!v?void 0:"none",S=m?{in:d,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return(0,Ma.jsx)(qc,{disablePortal:i,container:w,children:(0,Ma.jsx)(Bh,(0,Na.A)({anchorEl:n,direction:a,disablePortal:i,modifiers:c,ref:t,open:m?!v:d,placement:u,popperOptions:p,popperRef:h,slotProps:g,slots:x},b,{style:(0,Na.A)({position:"fixed",top:0,left:0,display:k},f),TransitionProps:S,children:r}))})})),Uh=Wh,Hh=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Vh=(0,li.Ay)(Uh,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kh=o.forwardRef((function(e,t){var n;const o=(0,xp.A)(),r=(0,di.b)({props:e,name:"MuiPopper"}),{anchorEl:s,component:a,components:i,componentsProps:l,container:c,disablePortal:d,keepMounted:u,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:x,slots:b,slotProps:v}=r,y=(0,pr.A)(r,Hh),w=null!=(n=null==b?void 0:b.root)?n:null==i?void 0:i.Root,k=(0,Na.A)({anchorEl:s,container:c,disablePortal:d,keepMounted:u,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:x},y);return(0,Ma.jsx)(Vh,(0,Na.A)({as:a,direction:null==o?void 0:o.direction,slots:{root:w},slotProps:null!=v?v:l},k,{ref:t}))}));var qh=n(5879);function $h(e){return(0,ui.Ay)("MuiTooltip",e)}const Jh=(0,ti.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Yh=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Gh(e){return Math.round(1e5*e)/1e5}const Xh=(0,li.Ay)(Kh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:n,open:o}=e;return(0,Na.A)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!o&&{pointerEvents:"none"},n.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(Jh.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(Jh.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(Jh.arrow)]:(0,Na.A)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(Jh.arrow)]:(0,Na.A)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),Zh=(0,li.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,gi.A)(n.placement.split("-")[0]))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,ii.X4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(Gh(16/14),"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(Jh.popper,'[data-popper-placement*="left"] &')]:(0,Na.A)({transformOrigin:"right center"},n.isRtl?(0,Na.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,Na.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[".".concat(Jh.popper,'[data-popper-placement*="right"] &')]:(0,Na.A)({transformOrigin:"left center"},n.isRtl?(0,Na.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,Na.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[".".concat(Jh.popper,'[data-popper-placement*="top"] &')]:(0,Na.A)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[".".concat(Jh.popper,'[data-popper-placement*="bottom"] &')]:(0,Na.A)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})})})),Qh=(0,li.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,ii.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let ef=!1;const tf=new Wi.E;let nf={x:0,y:0};function of(e,t){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];t&&t(n,...r),e(n,...r)}}const rf=o.forwardRef((function(e,t){var n,r,s,a,i,l,c,d,u,p,h,f,m,g,x,b,v,y,w;const k=(0,di.b)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:j,components:C={},componentsProps:A={},describeChild:N=!1,disableFocusListener:E=!1,disableHoverListener:_=!1,disableInteractive:P=!1,disableTouchListener:M=!1,enterDelay:R=100,enterNextDelay:O=0,enterTouchDelay:T=700,followCursor:L=!1,id:I,leaveDelay:D=0,leaveTouchDelay:z=1500,onClose:F,onOpen:B,open:W,placement:U="bottom",PopperComponent:H,PopperProps:V={},slotProps:K={},slots:q={},title:$,TransitionComponent:J=zc,TransitionProps:Y}=k,G=(0,pr.A)(k,Yh),X=o.isValidElement(j)?j:(0,Ma.jsx)("span",{children:j}),Z=Pc(),Q=Da(),[ee,te]=o.useState(),[ne,oe]=o.useState(null),re=o.useRef(!1),se=P||L,ae=(0,Wi.A)(),ie=(0,Wi.A)(),le=(0,Wi.A)(),ce=(0,Wi.A)(),[de,ue]=(0,Jd.A)({controlled:W,default:!1,name:"Tooltip",state:"open"});let pe=de;const he=(0,qh.A)(I),fe=o.useRef(),me=(0,Ei.A)((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),ce.clear()}));o.useEffect((()=>me),[me]);const ge=e=>{tf.clear(),ef=!0,ue(!0),B&&!pe&&B(e)},xe=(0,Ei.A)((e=>{tf.start(800+D,(()=>{ef=!1})),ue(!1),F&&pe&&F(e),ae.start(Z.transitions.duration.shortest,(()=>{re.current=!1}))})),be=e=>{re.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),ie.clear(),le.clear(),R||ef&&O?ie.start(ef?O:R,(()=>{ge(e)})):ge(e))},ve=e=>{ie.clear(),le.start(D,(()=>{xe(e)}))},{isFocusVisibleRef:ye,onBlur:we,onFocus:ke,ref:Se}=(0,_i.A)(),[,je]=o.useState(!1),Ce=e=>{we(e),!1===ye.current&&(je(!1),ve(e))},Ae=e=>{ee||te(e.currentTarget),ke(e),!0===ye.current&&(je(!0),be(e))},Ne=e=>{re.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Ee=e=>{Ne(e),le.clear(),ae.clear(),me(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(T,(()=>{document.body.style.WebkitUserSelect=fe.current,be(e)}))},_e=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),le.start(z,(()=>{xe(e)}))};o.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||xe(e)}}),[xe,pe]);const Pe=(0,Ni.A)(Hl(X),Se,te,t);$||0===$||(pe=!1);const Me=o.useRef(),Re={},Oe="string"===typeof $;N?(Re.title=pe||!Oe||_?null:$,Re["aria-describedby"]=pe?he:null):(Re["aria-label"]=Oe?$:null,Re["aria-labelledby"]=pe&&!Oe?he:null);const Te=(0,Na.A)({},Re,G,X.props,{className:(0,qa.A)(G.className,X.props.className),onTouchStart:Ne,ref:Pe},L?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),nf={x:e.clientX,y:e.clientY},Me.current&&Me.current.update()}}:{});const Le={};M||(Te.onTouchStart=Ee,Te.onTouchEnd=_e),_||(Te.onMouseOver=of(be,Te.onMouseOver),Te.onMouseLeave=of(ve,Te.onMouseLeave),se||(Le.onMouseOver=be,Le.onMouseLeave=ve)),E||(Te.onFocus=of(Ae,Te.onFocus),Te.onBlur=of(Ce,Te.onBlur),se||(Le.onFocus=Ae,Le.onBlur=Ce));const Ie=o.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=V.popperOptions)&&e.modifiers&&(t=t.concat(V.popperOptions.modifiers)),(0,Na.A)({},V.popperOptions,{modifiers:t})}),[ne,V]),De=(0,Na.A)({},k,{isRtl:Q,arrow:S,disableInteractive:se,placement:U,PopperComponentProp:H,touch:re.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch","tooltipPlacement".concat((0,gi.A)(s.split("-")[0]))],arrow:["arrow"]};return(0,ai.A)(a,$h,t)})(De),Fe=null!=(n=null!=(r=q.popper)?r:C.Popper)?n:Xh,Be=null!=(s=null!=(a=null!=(i=q.transition)?i:C.Transition)?a:J)?s:zc,We=null!=(l=null!=(c=q.tooltip)?c:C.Tooltip)?l:Zh,Ue=null!=(d=null!=(u=q.arrow)?u:C.Arrow)?d:Qh,He=Yl(Fe,(0,Na.A)({},V,null!=(p=K.popper)?p:A.popper,{className:(0,qa.A)(ze.popper,null==V?void 0:V.className,null==(h=null!=(f=K.popper)?f:A.popper)?void 0:h.className)}),De),Ve=Yl(Be,(0,Na.A)({},Y,null!=(m=K.transition)?m:A.transition),De),Ke=Yl(We,(0,Na.A)({},null!=(g=K.tooltip)?g:A.tooltip,{className:(0,qa.A)(ze.tooltip,null==(x=null!=(b=K.tooltip)?b:A.tooltip)?void 0:x.className)}),De),qe=Yl(Ue,(0,Na.A)({},null!=(v=K.arrow)?v:A.arrow,{className:(0,qa.A)(ze.arrow,null==(y=null!=(w=K.arrow)?w:A.arrow)?void 0:y.className)}),De);return(0,Ma.jsxs)(o.Fragment,{children:[o.cloneElement(X,Te),(0,Ma.jsx)(Fe,(0,Na.A)({as:null!=H?H:Kh,placement:U,anchorEl:L?{getBoundingClientRect:()=>({top:nf.y,left:nf.x,right:nf.x,bottom:nf.y,width:0,height:0})}:ee,popperRef:Me,open:!!ee&&pe,id:he,transition:!0},Le,He,{popperOptions:Ie,children:e=>{let{TransitionProps:t}=e;return(0,Ma.jsx)(Be,(0,Na.A)({timeout:Z.transitions.duration.shorter},t,Ve,{children:(0,Ma.jsxs)(We,(0,Na.A)({},Ke,{children:[$,S?(0,Ma.jsx)(Ue,(0,Na.A)({},qe,{ref:oe})):null]}))}))}}))]})})),sf=rf,af=(0,au.A)((0,Ma.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function lf(e){return(0,ui.Ay)("MuiChip",e)}const cf=(0,ti.A)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),df=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],uf=(0,li.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:s,onDelete:a,size:i,variant:l}=n;return[{["& .".concat(cf.avatar)]:t.avatar},{["& .".concat(cf.avatar)]:t["avatar".concat((0,gi.A)(i))]},{["& .".concat(cf.avatar)]:t["avatarColor".concat((0,gi.A)(o))]},{["& .".concat(cf.icon)]:t.icon},{["& .".concat(cf.icon)]:t["icon".concat((0,gi.A)(i))]},{["& .".concat(cf.icon)]:t["iconColor".concat((0,gi.A)(r))]},{["& .".concat(cf.deleteIcon)]:t.deleteIcon},{["& .".concat(cf.deleteIcon)]:t["deleteIcon".concat((0,gi.A)(i))]},{["& .".concat(cf.deleteIcon)]:t["deleteIconColor".concat((0,gi.A)(o))]},{["& .".concat(cf.deleteIcon)]:t["deleteIcon".concat((0,gi.A)(l),"Color").concat((0,gi.A)(o))]},t.root,t["size".concat((0,gi.A)(i))],t["color".concat((0,gi.A)(o))],s&&t.clickable,s&&"default"!==o&&t["clickableColor".concat((0,gi.A)(o),")")],a&&t.deletable,a&&"default"!==o&&t["deletableColor".concat((0,gi.A)(o))],t[l],t["".concat(l).concat((0,gi.A)(o))]]}})((e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,Na.A)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(cf.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(cf.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:o,fontSize:t.typography.pxToRem(12)},["& .".concat(cf.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(cf.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(cf.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(cf.icon)]:(0,Na.A)({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&(0,Na.A)({color:t.vars?t.vars.palette.Chip.defaultIconColor:o},"default"!==n.color&&{color:"inherit"})),["& .".concat(cf.deleteIcon)]:(0,Na.A)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,ii.X4)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,ii.X4)(t.palette.text.primary,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:t.vars?"rgba(".concat(t.vars.palette[n.color].contrastTextChannel," / 0.7)"):(0,ii.X4)(t.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].contrastText}})},"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},n.onDelete&&{["&.".concat(cf.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,ii.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},n.onDelete&&"default"!==n.color&&{["&.".concat(cf.focusVisible)]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({},n.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,ii.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(cf.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,ii.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},n.clickable&&"default"!==n.color&&{["&:hover, &.".concat(cf.focusVisible)]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({},"outlined"===n.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(cf.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(cf.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(cf.avatar)]:{marginLeft:4},["& .".concat(cf.avatarSmall)]:{marginLeft:2},["& .".concat(cf.icon)]:{marginLeft:4},["& .".concat(cf.iconSmall)]:{marginLeft:2},["& .".concat(cf.deleteIcon)]:{marginRight:5},["& .".concat(cf.deleteIconSmall)]:{marginRight:3}},"outlined"===n.variant&&"default"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):(0,ii.X4)(t.palette[n.color].main,.7)),["&.".concat(cf.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ii.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity)},["&.".concat(cf.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,ii.X4)(t.palette[n.color].main,t.palette.action.focusOpacity)},["& .".concat(cf.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):(0,ii.X4)(t.palette[n.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].main}}})})),pf=(0,li.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t["label".concat((0,gi.A)(o))]]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})}));function hf(e){return"Backspace"===e.key||"Delete"===e.key}const ff=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiChip"}),{avatar:r,className:s,clickable:a,color:i="default",component:l,deleteIcon:c,disabled:d=!1,icon:u,label:p,onClick:h,onDelete:f,onKeyDown:m,onKeyUp:g,size:x="medium",variant:b="filled",tabIndex:v,skipFocusWhenDisabled:y=!1}=n,w=(0,pr.A)(n,df),k=o.useRef(null),S=(0,Ni.A)(k,t),j=e=>{e.stopPropagation(),f&&f(e)},C=!(!1===a||!h)||a,A=C||f?dl:l||"div",N=(0,Na.A)({},n,{component:A,disabled:d,size:x,color:i,iconColor:o.isValidElement(u)&&u.props.color||i,onDelete:!!f,clickable:C,variant:b}),E=(e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:s,onDelete:a,clickable:i,variant:l}=e,c={root:["root",l,n&&"disabled","size".concat((0,gi.A)(o)),"color".concat((0,gi.A)(r)),i&&"clickable",i&&"clickableColor".concat((0,gi.A)(r)),a&&"deletable",a&&"deletableColor".concat((0,gi.A)(r)),"".concat(l).concat((0,gi.A)(r))],label:["label","label".concat((0,gi.A)(o))],avatar:["avatar","avatar".concat((0,gi.A)(o)),"avatarColor".concat((0,gi.A)(r))],icon:["icon","icon".concat((0,gi.A)(o)),"iconColor".concat((0,gi.A)(s))],deleteIcon:["deleteIcon","deleteIcon".concat((0,gi.A)(o)),"deleteIconColor".concat((0,gi.A)(r)),"deleteIcon".concat((0,gi.A)(l),"Color").concat((0,gi.A)(r))]};return(0,ai.A)(c,lf,t)})(N),_=A===dl?(0,Na.A)({component:l||"div",focusVisibleClassName:E.focusVisible},f&&{disableRipple:!0}):{};let P=null;f&&(P=c&&o.isValidElement(c)?o.cloneElement(c,{className:(0,qa.A)(c.props.className,E.deleteIcon),onClick:j}):(0,Ma.jsx)(af,{className:(0,qa.A)(E.deleteIcon),onClick:j}));let M=null;r&&o.isValidElement(r)&&(M=o.cloneElement(r,{className:(0,qa.A)(E.avatar,r.props.className)}));let R=null;return u&&o.isValidElement(u)&&(R=o.cloneElement(u,{className:(0,qa.A)(E.icon,u.props.className)})),(0,Ma.jsxs)(uf,(0,Na.A)({as:A,className:(0,qa.A)(E.root,s),disabled:!(!C||!d)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&hf(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&hf(e)?f(e):"Escape"===e.key&&k.current&&k.current.blur()),g&&g(e)},ref:S,tabIndex:y&&d?-1:v,ownerState:N},_,w,{children:[M||R,(0,Ma.jsx)(pf,{className:(0,qa.A)(E.label),ownerState:N,children:p}),P]}))})),mf=ff,gf=["ownerState"],xf=["variants"],bf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vf(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const yf=(0,Ga.A)(),wf=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function kf(e){let{defaultTheme:t,theme:n,themeId:o}=e;return r=n,0===Object.keys(r).length?t:n[o]||n;var r}function Sf(e){return e?(t,n)=>n[e]:null}function jf(e,t){let{ownerState:n}=t,o=(0,pr.A)(t,gf);const r="function"===typeof e?e((0,Na.A)({ownerState:n},o)):e;if(Array.isArray(r))return r.flatMap((e=>jf(e,(0,Na.A)({ownerState:n},o))));if(r&&"object"===typeof r&&Array.isArray(r.variants)){const{variants:e=[]}=r;let t=(0,pr.A)(r,xf);return e.forEach((e=>{let r=!0;"function"===typeof e.props?r=e.props((0,Na.A)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,Na.A)({ownerState:n},o,n)):e.style))})),t}return r}const Cf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=yf,rootShouldForwardProp:o=vf,slotShouldForwardProp:r=vf}=e,s=e=>(0,Ja.A)((0,Na.A)({},e,{theme:kf((0,Na.A)({},e,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,$a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:i,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:u=Sf(wf(l))}=a,p=(0,pr.A)(a,bf),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=d||!1;let m=vf;"Root"===l||"root"===l?m=o:l?m=r:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,$a.default)(e,(0,Na.A)({shouldForwardProp:m,label:undefined},p)),x=e=>"function"===typeof e&&e.__emotion_real!==e||(0,Ul.Q)(e)?o=>jf(e,(0,Na.A)({},o,{theme:kf({theme:o.theme,defaultTheme:n,themeId:t})})):e,b=function(o){let r=x(o);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];const d=l?l.map(x):[];i&&u&&d.push((e=>{const o=kf((0,Na.A)({},e,{defaultTheme:n,themeId:t}));if(!o.components||!o.components[i]||!o.components[i].styleOverrides)return null;const r=o.components[i].styleOverrides,s={};return Object.entries(r).forEach((t=>{let[n,r]=t;s[n]=jf(r,(0,Na.A)({},e,{theme:o}))})),u(e,s)})),i&&!h&&d.push((e=>{var o;const r=kf((0,Na.A)({},e,{defaultTheme:n,themeId:t}));return jf({variants:null==r||null==(o=r.components)||null==(o=o[i])?void 0:o.variants},(0,Na.A)({},e,{theme:r}))})),f||d.push(s);const p=d.length-l.length;if(Array.isArray(o)&&p>0){const e=new Array(p).fill("");r=[...o,...e],r.raw=[...o.raw,...e]}const m=g(r,...d);return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(b.withConfig=g.withConfig),b}}(),Af=Cf;function Nf(e){let{props:t,name:n,defaultTheme:o,themeId:r}=e,s=Za(o);r&&(s=s[r]||s);const a=function(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,Ci.A)(t.components[n].defaultProps,o):o}({theme:s,name:n,props:t});return a}var Ef=n(9751),_f=n(8604);const Pf=["component","direction","spacing","divider","children","className","useFlexGap"],Mf=(0,Ga.A)(),Rf=Af("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Of(e){return Nf({props:e,name:"MuiStack",defaultTheme:Mf})}function Tf(e,t){const n=o.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,s)=>(e.push(r),s<n.length-1&&e.push(o.cloneElement(t,{key:"separator-".concat(s)})),e)),[])}const Lf=e=>{let{ownerState:t,theme:n}=e,o=(0,Na.A)({display:"flex",flexDirection:"column"},(0,Ef.NI)({theme:n},(0,Ef.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,_f.LX)(n),r=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),s=(0,Ef.kW)({values:t.direction,base:r}),a=(0,Ef.kW)({values:t.spacing,base:r});"object"===typeof s&&Object.keys(s).forEach(((e,t,n)=>{if(!s[e]){const o=t>0?s[n[t-1]]:"column";s[e]=o}}));const i=(n,o)=>{return t.useFlexGap?{gap:(0,_f._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((r=o?s[o]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r]))]:(0,_f._W)(e,n)}};var r};o=(0,Ul.A)(o,(0,Ef.NI)({theme:n},a,i))}return o=(0,Ef.iZ)(n.breakpoints,o),o};const If=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Rf,useThemeProps:n=Of,componentName:r="MuiStack"}=e,s=t(Lf),a=o.forwardRef((function(e,t){const o=n(e),a=(0,Ya.A)(o),{component:i="div",direction:l="column",spacing:c=0,divider:d,children:u,className:p,useFlexGap:h=!1}=a,f=(0,pr.A)(a,Pf),m={direction:l,spacing:c,useFlexGap:h},g=(0,ai.A)({root:["root"]},(e=>(0,ui.Ay)(r,e)),{});return(0,Ma.jsx)(s,(0,Na.A)({as:i,ownerState:m,ref:t,className:(0,qa.A)(g.root,p)},f,{children:d?Tf(u,d):u}))}));return a}({createStyledComponent:(0,li.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,di.b)({props:e,name:"MuiStack"})}),Df=If;function zf(e){return(0,ui.Ay)("MuiTypography",e)}(0,ti.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ff=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Bf=(0,li.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,gi.A)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),Wf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Uf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Hf=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTypography"}),o=(e=>Uf[e]||e)(n.color),r=(0,Ya.A)((0,Na.A)({},n,{color:o})),{align:s="inherit",className:a,component:i,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=Wf}=r,h=(0,pr.A)(r,Ff),f=(0,Na.A)({},r,{align:s,color:o,className:a,component:i,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=i||(d?"p":p[u]||Wf[u])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:s,classes:a}=e,i={root:["root",s,"inherit"!==e.align&&"align".concat((0,gi.A)(t)),n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return(0,ai.A)(i,zf,a)})(f);return(0,Ma.jsx)(Bf,(0,Na.A)({as:m,ref:t,ownerState:f,className:(0,qa.A)(g.root,a)},h))})),Vf=Hf;function Kf(e){return(0,ui.Ay)("MuiFormControlLabel",e)}const qf=(0,ti.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),$f=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Jf=(0,li.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(qf.label)]:t.label},t.root,t["labelPlacement".concat((0,gi.A)(n.labelPlacement))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(qf.disabled)]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(qf.label)]:{["&.".concat(qf.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),Yf=(0,li.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(qf.error)]:{color:(t.vars||t).palette.error.main}}})),Gf=o.forwardRef((function(e,t){var n,r;const s=(0,di.b)({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:c,disableTypography:d,label:u,labelPlacement:p="end",required:h,slotProps:f={}}=s,m=(0,pr.A)(s,$f),g=Pl(),x=null!=(n=null!=c?c:l.props.disabled)?n:null==g?void 0:g.disabled,b=null!=h?h:l.props.required,v={disabled:x,required:b};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof l.props[e]&&"undefined"!==typeof s[e]&&(v[e]=s[e])}));const y=_l({props:s,muiFormControl:g,states:["error"]}),w=(0,Na.A)({},s,{disabled:x,labelPlacement:p,required:b,error:y.error}),k=(e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:s}=e,a={root:["root",n&&"disabled","labelPlacement".concat((0,gi.A)(o)),r&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return(0,ai.A)(a,Kf,t)})(w),S=null!=(r=f.typography)?r:i.typography;let j=u;return null==j||j.type===Vf||d||(j=(0,Ma.jsx)(Vf,(0,Na.A)({component:"span"},S,{className:(0,qa.A)(k.label,null==S?void 0:S.className),children:j}))),(0,Ma.jsxs)(Jf,(0,Na.A)({className:(0,qa.A)(k.root,a),ownerState:w,ref:t},m,{children:[o.cloneElement(l,v),b?(0,Ma.jsxs)(Df,{display:"block",children:[j,(0,Ma.jsxs)(Yf,{ownerState:w,"aria-hidden":!0,className:k.asterisk,children:["\u2009","*"]})]}):j]}))}));function Xf(e){return(0,ui.Ay)("PrivateSwitchBase",e)}(0,ti.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Zf=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Qf=(0,li.Ay)(dl)((e=>{let{ownerState:t}=e;return(0,Na.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),em=(0,li.Ay)("input",{shouldForwardProp:Ai.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),tm=o.forwardRef((function(e,t){const{autoFocus:n,checked:o,checkedIcon:r,className:s,defaultChecked:a,disabled:i,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:u,inputProps:p,inputRef:h,name:f,onBlur:m,onChange:g,onFocus:x,readOnly:b,required:v=!1,tabIndex:y,type:w,value:k}=e,S=(0,pr.A)(e,Zf),[j,C]=(0,Jd.A)({controlled:o,default:Boolean(a),name:"SwitchBase",state:"checked"}),A=Pl();let N=i;A&&"undefined"===typeof N&&(N=A.disabled);const E="checkbox"===w||"radio"===w,_=(0,Na.A)({},e,{checked:j,disabled:N,disableFocusRipple:l,edge:c}),P=(e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,s={root:["root",n&&"checked",o&&"disabled",r&&"edge".concat((0,gi.A)(r))],input:["input"]};return(0,ai.A)(s,Xf,t)})(_);return(0,Ma.jsxs)(Qf,(0,Na.A)({component:"span",className:(0,qa.A)(P.root,s),centerRipple:!0,focusRipple:!l,disabled:N,tabIndex:null,role:void 0,onFocus:e=>{x&&x(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{m&&m(e),A&&A.onBlur&&A.onBlur(e)},ownerState:_,ref:t},S,{children:[(0,Ma.jsx)(em,(0,Na.A)({autoFocus:n,checked:o,defaultChecked:a,className:P.input,disabled:N,id:E?u:void 0,name:f,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;C(t),g&&g(e,t)},readOnly:b,ref:h,required:v,ownerState:_,tabIndex:y,type:w},"checkbox"===w&&void 0===k?{}:{value:k},p)),j?r:d]}))})),nm=tm,om=(0,au.A)((0,Ma.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),rm=(0,au.A)((0,Ma.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),sm=(0,au.A)((0,Ma.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function am(e){return(0,ui.Ay)("MuiCheckbox",e)}const im=(0,ti.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),lm=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],cm=(0,li.Ay)(nm,{shouldForwardProp:e=>(0,Ai.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size".concat((0,gi.A)(n.size))],"default"!==n.color&&t["color".concat((0,gi.A)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ii.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(im.checked,", &.").concat(im.indeterminate)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(im.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),dm=(0,Ma.jsx)(rm,{}),um=(0,Ma.jsx)(om,{}),pm=(0,Ma.jsx)(sm,{}),hm=o.forwardRef((function(e,t){var n,r;const s=(0,di.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=dm,color:i="primary",icon:l=um,indeterminate:c=!1,indeterminateIcon:d=pm,inputProps:u,size:p="medium",className:h}=s,f=(0,pr.A)(s,lm),m=c?d:l,g=c?d:a,x=(0,Na.A)({},s,{color:i,indeterminate:c,size:p}),b=(e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,s={root:["root",n&&"indeterminate","color".concat((0,gi.A)(o)),"size".concat((0,gi.A)(r))]},a=(0,ai.A)(s,am,t);return(0,Na.A)({},t,a)})(x);return(0,Ma.jsx)(cm,(0,Na.A)({type:"checkbox",inputProps:(0,Na.A)({"data-indeterminate":c},u),icon:o.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:o.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:x,ref:t,className:(0,qa.A)(b.root,h)},f,{classes:b}))})),fm=hm,mm=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],gm=["component","slots","slotProps"],xm=["component"];function bm(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:s,getSlotOwnerState:a,internalForwardedProps:i}=t,l=(0,pr.A)(t,mm),{component:c,slots:d={[e]:void 0},slotProps:u={[e]:void 0}}=s,p=(0,pr.A)(s,gm),h=d[e]||o,f=Ql(u[e],r),m=Zl((0,Na.A)({className:n},l,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f})),{props:{component:g},internalRef:x}=m,b=(0,pr.A)(m.props,xm),v=(0,$l.A)(x,null==f?void 0:f.ref,t.ref),y=a?a(b):{},w=(0,Na.A)({},r,y),k="root"===e?g||c:g,S=Yl(h,(0,Na.A)({},"root"===e&&!c&&!d[e]&&i,"root"!==e&&!d[e]&&i,b,k&&{as:k},{ref:v}),w);return Object.keys(y).forEach((e=>{delete S[e]})),[h,S]}function vm(e){return(0,ui.Ay)("MuiAlert",e)}const ym=(0,ti.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function wm(e){return(0,ui.Ay)("MuiIconButton",e)}const km=(0,ti.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Sm=["edge","children","className","color","disabled","disableFocusRipple","size"],jm=(0,li.Ay)(dl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,gi.A)(n.color))],n.edge&&t["edge".concat((0,gi.A)(n.edge))],t["size".concat((0,gi.A)(n.size))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ii.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var o;const r=null==(o=(t.vars||t).palette)?void 0:o[n.color];return(0,Na.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,Na.A)({color:null==r?void 0:r.main},!n.disableRipple&&{"&:hover":(0,Na.A)({},r&&{backgroundColor:t.vars?"rgba(".concat(r.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ii.X4)(r.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(km.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),Cm=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:r,className:s,color:a="default",disabled:i=!1,disableFocusRipple:l=!1,size:c="medium"}=n,d=(0,pr.A)(n,Sm),u=(0,Na.A)({},n,{edge:o,color:a,disabled:i,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:o,edge:r,size:s}=e,a={root:["root",n&&"disabled","default"!==o&&"color".concat((0,gi.A)(o)),r&&"edge".concat((0,gi.A)(r)),"size".concat((0,gi.A)(s))]};return(0,ai.A)(a,wm,t)})(u);return(0,Ma.jsx)(jm,(0,Na.A)({className:(0,qa.A)(p.root,s),centerRipple:!0,focusRipple:!l,disabled:i,ref:t},d,{ownerState:u,children:r}))})),Am=Cm,Nm=(0,au.A)((0,Ma.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Em=(0,au.A)((0,Ma.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),_m=(0,au.A)((0,Ma.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Pm=(0,au.A)((0,Ma.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Mm=(0,au.A)((0,Ma.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Rm=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Om=(0,li.Ay)(mi,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,gi.A)(n.color||n.severity))]]}})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?ii.e$:ii.a,o="light"===t.palette.mode?ii.a:ii.e$;return(0,Na.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert["".concat(r,"Color")]:n(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(r,"StandardBg")]:o(t.palette[r].light,.9),["& .".concat(ym.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(r,"IconColor")]}:{color:t.palette[r].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[o]=e;return{props:{colorSeverity:o,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:n(t.palette[o].light,.6),border:"1px solid ".concat((t.vars||t).palette[o].light),["& .".concat(ym.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.dark})).map((e=>{let[n]=e;return{props:{colorSeverity:n,variant:"filled"},style:(0,Na.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(n,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(n,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)})}}))]})})),Tm=(0,li.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Lm=(0,li.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Im=(0,li.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Dm={success:(0,Ma.jsx)(Nm,{fontSize:"inherit"}),warning:(0,Ma.jsx)(Em,{fontSize:"inherit"}),error:(0,Ma.jsx)(_m,{fontSize:"inherit"}),info:(0,Ma.jsx)(Pm,{fontSize:"inherit"})},zm=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiAlert"}),{action:o,children:r,className:s,closeText:a="Close",color:i,components:l={},componentsProps:c={},icon:d,iconMapping:u=Dm,onClose:p,role:h="alert",severity:f="success",slotProps:m={},slots:g={},variant:x="standard"}=n,b=(0,pr.A)(n,Rm),v=(0,Na.A)({},n,{color:i,severity:f,variant:x,colorSeverity:i||f}),y=(e=>{const{variant:t,color:n,severity:o,classes:r}=e,s={root:["root","color".concat((0,gi.A)(n||o)),"".concat(t).concat((0,gi.A)(n||o)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,ai.A)(s,vm,r)})(v),w={slots:(0,Na.A)({closeButton:l.CloseButton,closeIcon:l.CloseIcon},g),slotProps:(0,Na.A)({},c,m)},[k,S]=bm("closeButton",{elementType:Am,externalForwardedProps:w,ownerState:v}),[j,C]=bm("closeIcon",{elementType:Mm,externalForwardedProps:w,ownerState:v});return(0,Ma.jsxs)(Om,(0,Na.A)({role:h,elevation:0,ownerState:v,className:(0,qa.A)(y.root,s),ref:t},b,{children:[!1!==d?(0,Ma.jsx)(Tm,{ownerState:v,className:y.icon,children:d||u[f]||Dm[f]}):null,(0,Ma.jsx)(Lm,{ownerState:v,className:y.message,children:r}),null!=o?(0,Ma.jsx)(Im,{ownerState:v,className:y.action,children:o}):null,null==o&&p?(0,Ma.jsx)(Im,{ownerState:v,className:y.action,children:(0,Ma.jsx)(k,(0,Na.A)({size:"small","aria-label":a,title:a,color:"inherit",onClick:p},S,{children:(0,Ma.jsx)(j,(0,Na.A)({fontSize:"small"},C))}))}):null]}))})),Fm=zm;function Bm(e){return(0,ui.Ay)("MuiCircularProgress",e)}(0,ti.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var Wm,Um,Hm,Vm;const Km=["className","color","disableShrink","size","style","thickness","value","variant"];let qm,$m,Jm,Ym;const Gm=44,Xm=(0,Bi.i7)(qm||(qm=Wm||(Wm=Pi(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),Zm=(0,Bi.i7)($m||($m=Um||(Um=Pi(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),Qm=(0,li.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,gi.A)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Na.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,Bi.AH)(Jm||(Jm=Hm||(Hm=Pi(["\n animation: "," 1.4s linear infinite;\n "]))),Xm)})),eg=(0,li.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),tg=(0,li.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,gi.A)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Na.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,Bi.AH)(Ym||(Ym=Vm||(Vm=Pi(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),Zm)})),ng=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiCircularProgress"}),{className:o,color:r="primary",disableShrink:s=!1,size:a=40,style:i,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,u=(0,pr.A)(n,Km),p=(0,Na.A)({},n,{color:r,disableShrink:s,size:a,thickness:l,value:c,variant:d}),h=(e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,s={root:["root",n,"color".concat((0,gi.A)(o))],svg:["svg"],circle:["circle","circle".concat((0,gi.A)(n)),r&&"circleDisableShrink"]};return(0,ai.A)(s,Bm,t)})(p),f={},m={},g={};if("determinate"===d){const e=2*Math.PI*((Gm-l)/2);f.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),f.strokeDashoffset="".concat(((100-c)/100*e).toFixed(3),"px"),m.transform="rotate(-90deg)"}return(0,Ma.jsx)(Qm,(0,Na.A)({className:(0,qa.A)(h.root,o),style:(0,Na.A)({width:a,height:a},m,i),ownerState:p,ref:t,role:"progressbar"},g,u,{children:(0,Ma.jsx)(eg,{className:h.svg,ownerState:p,viewBox:"".concat(22," ").concat(22," ").concat(Gm," ").concat(Gm),children:(0,Ma.jsx)(tg,{className:h.circle,style:f,ownerState:p,cx:Gm,cy:Gm,r:(Gm-l)/2,fill:"none",strokeWidth:l})})}))})),og=ng;var rg=n(1132),sg=n(8625);const ag=[{label:"100 lines",value:100},{label:"500 lines",value:500},{label:"1 000 lines",value:1e3},{label:"All",value:0}],ig=e=>{let{processId:t,processName:n,connectionId:r}=e;const{t:s}=me(),[a,i]=(0,o.useState)([]),[l,c]=(0,o.useState)(!0),[d,u]=(0,o.useState)(""),[p,h]=(0,o.useState)(!0),[f,m]=(0,o.useState)("all"),[g,x]=(0,o.useState)(!0),[b,v]=(0,o.useState)(200),[y,w]=(0,o.useState)({out:0,err:0}),[k,S]=(0,o.useState)({out:"",err:""}),j=(0,o.useRef)(null),C=(0,o.useCallback)((function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r){const o="/api/remote/".concat(r,"/logs/").concat(t,"/").concat(e);return n?"".concat(o,"/download"):"".concat(o,"?lines=").concat(b)}const o="/api/logs/".concat(t,"/").concat(e);return n?"".concat(o,"/download"):"".concat(o,"?lines=").concat(b)}),[r,t,b]),A=(0,o.useCallback)((async()=>{try{c(!0);const[e,t]=await Promise.all([ur.get(C("out")),ur.get(C("err"))]),n=e.data,o=t.data,r=(n.logs||[]).map((e=>({type:"out",content:e,timestamp:""}))),s=(o.logs||[]).map((e=>({type:"err",content:e,timestamp:""})));i([...r,...s]),w({out:n.totalLines||0,err:o.totalLines||0}),S({out:n.logPath||"",err:o.logPath||""}),u("")}catch(vM){console.error("Error fetching logs:",vM),u("Failed to fetch logs: ".concat(vM instanceof Error?vM.message:"Unknown error"))}finally{c(!1)}}),[C]);(0,o.useEffect)((()=>{if(A(),!p)return;const e=setInterval(A,5e3);return()=>clearInterval(e)}),[A,p]),(0,o.useEffect)((()=>{g&&j.current&&(j.current.scrollTop=j.current.scrollHeight)}),[a,g]);const N=async e=>{try{const t=C(e,!0),o=await ur.get(t,{responseType:"blob"}),r=new Blob([o.data],{type:"text/plain; charset=utf-8"}),s=URL.createObjectURL(r),a=document.createElement("a");a.href=s,a.download="".concat(n,"-").concat(e,".log"),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(s)}catch(vM){console.error("Download failed:",vM)}},E=a.filter((e=>"all"===f||e.type===f)),_="err"===f?k.err:k.out;return(0,Ma.jsxs)(si,{sx:{width:"100%"},children:[(0,Ma.jsxs)(mi,{elevation:0,variant:"outlined",sx:{p:1.5,mb:1.5,display:"flex",flexWrap:"wrap",gap:1.5,alignItems:"center"},children:[(0,Ma.jsxs)(ji,{size:"small",variant:"outlined",children:[(0,Ma.jsx)(vl,{variant:"all"===f?"contained":"outlined",onClick:()=>m("all"),children:"All"}),(0,Ma.jsx)(vl,{variant:"out"===f?"contained":"outlined",onClick:()=>m("out"),children:"stdout"}),(0,Ma.jsx)(vl,{variant:"err"===f?"contained":"outlined",color:"error",onClick:()=>m("err"),children:"stderr"})]}),(0,Ma.jsxs)(El,{size:"small",sx:{minWidth:130},children:[(0,Ma.jsx)(Wl,{children:s("logPanel.linesToLoad")}),(0,Ma.jsx)(ip,{label:s("logPanel.linesToLoad"),value:b,onChange:e=>v(Number(e.target.value)),children:ag.map((e=>(0,Ma.jsx)(gp,{value:e.value,children:e.label},e.value)))})]}),y.out>0&&(0,Ma.jsx)(sf,{title:"Total lines in stdout log file",children:(0,Ma.jsx)(mf,{label:"stdout: ".concat(y.out.toLocaleString()," lines"),size:"small",variant:"outlined"})}),y.err>0&&(0,Ma.jsx)(sf,{title:"Total lines in stderr log file",children:(0,Ma.jsx)(mf,{label:"stderr: ".concat(y.err.toLocaleString()," lines"),size:"small",variant:"outlined",color:"error"})}),(0,Ma.jsx)(si,{sx:{flex:1}}),(0,Ma.jsxs)(Df,{direction:"row",spacing:.5,alignItems:"center",children:[(0,Ma.jsx)(Gf,{control:(0,Ma.jsx)(fm,{checked:g,onChange:()=>x((e=>!e)),size:"small"}),label:(0,Ma.jsx)(Vf,{variant:"caption",children:s("logs.autoScroll")}),sx:{m:0}}),(0,Ma.jsx)(Gf,{control:(0,Ma.jsx)(fm,{checked:p,onChange:()=>h((e=>!e)),size:"small"}),label:(0,Ma.jsx)(Vf,{variant:"caption",children:s("logs.autoRefresh")}),sx:{m:0}}),(0,Ma.jsx)(sf,{title:s("logs.refreshNow"),children:(0,Ma.jsx)("span",{children:(0,Ma.jsx)(vl,{size:"small",variant:"outlined",onClick:A,sx:{minWidth:32,px:.5},children:(0,Ma.jsx)(sg.A,{fontSize:"small"})})})})]})]}),(0,Ma.jsxs)(mi,{elevation:0,variant:"outlined",sx:{px:1.5,py:1,mb:1.5,display:"flex",flexWrap:"wrap",gap:1,alignItems:"center"},children:[_&&(0,Ma.jsx)(Vf,{variant:"caption",sx:{fontFamily:"monospace",opacity:.65,flex:1,wordBreak:"break-all"},children:_}),(0,Ma.jsxs)(Df,{direction:"row",spacing:1,children:[(0,Ma.jsx)(sf,{title:"Download full stdout log",children:(0,Ma.jsx)(vl,{size:"small",variant:"outlined",startIcon:(0,Ma.jsx)(rg.A,{fontSize:"small"}),onClick:()=>N("out"),children:"stdout"})}),(0,Ma.jsx)(sf,{title:"Download full stderr log",children:(0,Ma.jsx)(vl,{size:"small",variant:"outlined",color:"error",startIcon:(0,Ma.jsx)(rg.A,{fontSize:"small"}),onClick:()=>N("err"),children:"stderr"})})]})]}),d&&(0,Ma.jsx)(Fm,{severity:"error",sx:{mb:1.5},children:d}),l&&0===a.length?(0,Ma.jsxs)(si,{sx:{display:"flex",justifyContent:"center",alignItems:"center",py:8},children:[(0,Ma.jsx)(og,{size:24,sx:{mr:1.5}}),(0,Ma.jsx)(Vf,{variant:"body2",children:s("logs.loadingLogs")})]}):0===E.length?(0,Ma.jsx)(si,{sx:{textAlign:"center",py:8,bgcolor:"background.paper",borderRadius:1,border:"1px solid",borderColor:"divider"},children:(0,Ma.jsx)(Vf,{variant:"body2",color:"text.secondary",children:s("logs.noEntriesFilter")})}):(0,Ma.jsx)(mi,{variant:"outlined",ref:j,sx:{height:400,overflow:"auto",p:1.5,bgcolor:e=>"dark"===e.palette.mode?"#0d1117":"#f6f8fa",fontFamily:"monospace",fontSize:"0.8rem",lineHeight:1.6},children:E.map(((e,t)=>(0,Ma.jsx)(si,{sx:{color:"err"===e.type?"error.main":"text.primary",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content},t)))}),E.length>0&&(0,Ma.jsxs)(Vf,{variant:"caption",color:"text.secondary",sx:{mt:.5,display:"block",textAlign:"right"},children:["Showing ",E.length.toLocaleString()," ",0===b?"":"of last ".concat(b.toLocaleString()," requested")," lines","err"!==f&&y.out>0&&"out"!==f?" \xb7 stdout total: ".concat(y.out.toLocaleString()):"","out"!==f&&y.err>0&&"err"!==f?" \xb7 stderr total: ".concat(y.err.toLocaleString()):""]})]})};function lg(e){return(0,ui.Ay)("MuiTableContainer",e)}(0,ti.A)("MuiTableContainer",["root"]);const cg=["className","component"],dg=(0,li.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),ug=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTableContainer"}),{className:o,component:r="div"}=n,s=(0,pr.A)(n,cg),a=(0,Na.A)({},n,{component:r}),i=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"]},lg,t)})(a);return(0,Ma.jsx)(dg,(0,Na.A)({ref:t,as:r,className:(0,qa.A)(i.root,o),ownerState:a},s))}));const pg=o.createContext();function hg(e){return(0,ui.Ay)("MuiTable",e)}(0,ti.A)("MuiTable",["root","stickyHeader"]);const fg=["className","component","padding","size","stickyHeader"],mg=(0,li.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,Na.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),gg="table",xg=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTable"}),{className:r,component:s=gg,padding:a="normal",size:i="medium",stickyHeader:l=!1}=n,c=(0,pr.A)(n,fg),d=(0,Na.A)({},n,{component:s,padding:a,size:i,stickyHeader:l}),u=(e=>{const{classes:t,stickyHeader:n}=e,o={root:["root",n&&"stickyHeader"]};return(0,ai.A)(o,hg,t)})(d),p=o.useMemo((()=>({padding:a,size:i,stickyHeader:l})),[a,i,l]);return(0,Ma.jsx)(pg.Provider,{value:p,children:(0,Ma.jsx)(mg,(0,Na.A)({as:s,role:s===gg?null:"table",ref:t,className:(0,qa.A)(u.root,r),ownerState:d},c))})}));const bg=o.createContext();function vg(e){return(0,ui.Ay)("MuiTableHead",e)}(0,ti.A)("MuiTableHead",["root"]);const yg=["className","component"],wg=(0,li.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),kg={variant:"head"},Sg="thead",jg=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTableHead"}),{className:o,component:r=Sg}=n,s=(0,pr.A)(n,yg),a=(0,Na.A)({},n,{component:r}),i=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"]},vg,t)})(a);return(0,Ma.jsx)(bg.Provider,{value:kg,children:(0,Ma.jsx)(wg,(0,Na.A)({as:r,className:(0,qa.A)(i.root,o),ref:t,role:r===Sg?null:"rowgroup",ownerState:a},s))})}));function Cg(e){return(0,ui.Ay)("MuiTableRow",e)}const Ag=(0,ti.A)("MuiTableRow",["root","selected","hover","head","footer"]),Ng=["className","component","hover","selected"],Eg=(0,li.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(Ag.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(Ag.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,ii.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,ii.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),_g="tr",Pg=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTableRow"}),{className:r,component:s=_g,hover:a=!1,selected:i=!1}=n,l=(0,pr.A)(n,Ng),c=o.useContext(bg),d=(0,Na.A)({},n,{component:s,hover:a,selected:i,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant}),u=(e=>{const{classes:t,selected:n,hover:o,head:r,footer:s}=e,a={root:["root",n&&"selected",o&&"hover",r&&"head",s&&"footer"]};return(0,ai.A)(a,Cg,t)})(d);return(0,Ma.jsx)(Eg,(0,Na.A)({as:s,ref:t,className:(0,qa.A)(u.root,r),role:s===_g?null:"row",ownerState:d},l))})),Mg=Pg;function Rg(e){return(0,ui.Ay)("MuiTableCell",e)}const Og=(0,ti.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Tg=["align","className","component","padding","scope","size","sortDirection","variant"],Lg=(0,li.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["size".concat((0,gi.A)(n.size))],"normal"!==n.padding&&t["padding".concat((0,gi.A)(n.padding))],"inherit"!==n.align&&t["align".concat((0,gi.A)(n.align))],n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,ii.a)((0,ii.X4)(t.palette.divider,1),.88):(0,ii.e$)((0,ii.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",["&.".concat(Og.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),Ig=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTableCell"}),{align:r="inherit",className:s,component:a,padding:i,scope:l,size:c,sortDirection:d,variant:u}=n,p=(0,pr.A)(n,Tg),h=o.useContext(pg),f=o.useContext(bg),m=f&&"head"===f.variant;let g;g=a||(m?"th":"td");let x=l;"td"===g?x=void 0:!x&&m&&(x="col");const b=u||f&&f.variant,v=(0,Na.A)({},n,{align:r,component:g,padding:i||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:"head"===b&&h&&h.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:n,align:o,padding:r,size:s,stickyHeader:a}=e,i={root:["root",n,a&&"stickyHeader","inherit"!==o&&"align".concat((0,gi.A)(o)),"normal"!==r&&"padding".concat((0,gi.A)(r)),"size".concat((0,gi.A)(s))]};return(0,ai.A)(i,Rg,t)})(v);let w=null;return d&&(w="asc"===d?"ascending":"descending"),(0,Ma.jsx)(Lg,(0,Na.A)({as:g,ref:t,className:(0,qa.A)(y.root,s),"aria-sort":w,scope:x,ownerState:v},p))})),Dg=Ig;function zg(e){return(0,ui.Ay)("MuiTableBody",e)}(0,ti.A)("MuiTableBody",["root"]);const Fg=["className","component"],Bg=(0,li.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Wg={variant:"body"},Ug="tbody",Hg=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTableBody"}),{className:o,component:r=Ug}=n,s=(0,pr.A)(n,Fg),a=(0,Na.A)({},n,{component:r}),i=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"]},zg,t)})(a);return(0,Ma.jsx)(bg.Provider,{value:Wg,children:(0,Ma.jsx)(Bg,(0,Na.A)({className:(0,qa.A)(i.root,o),as:r,ref:t,role:r===Ug?null:"rowgroup",ownerState:a},s))})}));var Vg=n(4318);function Kg(e){return(0,ui.Ay)("MuiCollapse",e)}(0,ti.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const qg=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],$g=(0,li.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,Na.A)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),Jg=(0,li.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((e=>{let{ownerState:t}=e;return(0,Na.A)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),Yg=(0,li.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((e=>{let{ownerState:t}=e;return(0,Na.A)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),Gg=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiCollapse"}),{addEndListener:r,children:s,className:a,collapsedSize:i="0px",component:l,easing:c,in:d,onEnter:u,onEntered:p,onEntering:h,onExit:f,onExited:m,onExiting:g,orientation:x="vertical",style:b,timeout:v=Vg.p0.standard,TransitionComponent:y=Ec}=n,w=(0,pr.A)(n,qg),k=(0,Na.A)({},n,{orientation:x,collapsedSize:i}),S=(e=>{const{orientation:t,classes:n}=e,o={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,ai.A)(o,Kg,n)})(k),j=Pc(),C=(0,Wi.A)(),A=o.useRef(null),N=o.useRef(),E="number"===typeof i?"".concat(i,"px"):i,_="horizontal"===x,P=_?"width":"height",M=o.useRef(null),R=(0,Ni.A)(t,M),O=e=>t=>{if(e){const n=M.current;void 0===t?e(n):e(n,t)}},T=()=>A.current?A.current[_?"clientWidth":"clientHeight"]:0,L=O(((e,t)=>{A.current&&_&&(A.current.style.position="absolute"),e.style[P]=E,u&&u(e,t)})),I=O(((e,t)=>{const n=T();A.current&&_&&(A.current.style.position="");const{duration:o,easing:r}=Rc({style:b,timeout:v,easing:c},{mode:"enter"});if("auto"===v){const t=j.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(t,"ms"),N.current=t}else e.style.transitionDuration="string"===typeof o?o:"".concat(o,"ms");e.style[P]="".concat(n,"px"),e.style.transitionTimingFunction=r,h&&h(e,t)})),D=O(((e,t)=>{e.style[P]="auto",p&&p(e,t)})),z=O((e=>{e.style[P]="".concat(T(),"px"),f&&f(e)})),F=O(m),B=O((e=>{const t=T(),{duration:n,easing:o}=Rc({style:b,timeout:v,easing:c},{mode:"exit"});if("auto"===v){const n=j.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),N.current=n}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style[P]=E,e.style.transitionTimingFunction=o,g&&g(e)}));return(0,Ma.jsx)(y,(0,Na.A)({in:d,onEnter:L,onEntered:D,onEntering:I,onExit:z,onExited:F,onExiting:B,addEndListener:e=>{"auto"===v&&C.start(N.current||0,e),r&&r(M.current,e)},nodeRef:M,timeout:"auto"===v?null:v},w,{children:(e,t)=>(0,Ma.jsx)($g,(0,Na.A)({as:l,className:(0,qa.A)(S.root,a,{entered:S.entered,exited:!d&&"0px"===E&&S.hidden}[e]),style:(0,Na.A)({[_?"minWidth":"minHeight"]:E},b),ref:R},t,{ownerState:(0,Na.A)({},k,{state:e}),children:(0,Ma.jsx)(Jg,{ownerState:(0,Na.A)({},k,{state:e}),className:S.wrapper,ref:A,children:(0,Ma.jsx)(Yg,{ownerState:(0,Na.A)({},k,{state:e}),className:S.wrapperInner,children:s})})}))}))}));Gg.muiSupportAuto=!0;const Xg=Gg;var Zg=n(1337),Qg=n(5473),ex=n(3664);const tx=[{label:"100 lines",value:100},{label:"500 lines",value:500},{label:"1 000 lines",value:1e3},{label:"All",value:0}],nx=e=>{if(0===e)return"\u2014";const t=["B","KB","MB","GB"],n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return"".concat((e/Math.pow(1024,n)).toFixed(1)," ").concat(t[n])},ox=e=>{const t=e.match(/__(\d{4}-\d{2}-\d{2}[_-]\d{2}[:-]\d{2}[:-]\d{2})/);return t?t[1]:"current"},rx=e=>{if("current"===e)return"Current";const t=e.replace(/_(\d{2})-(\d{2})-(\d{2})$/,"T$1:$2:$3"),n=new Date(t);return isNaN(n.getTime())?e:n.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},sx=e=>{const t=new Map;for(const n of e){const e=ox(n.name);t.has(e)||t.set(e,{dateKey:e,displayDate:rx(e)});const o=t.get(e);"out"===n.type?o.stdout=n:"err"===n.type||o.stdout?o.stderr=n:o.stdout=n}return Array.from(t.values()).sort(((e,t)=>"current"===e.dateKey?-1:"current"===t.dateKey?1:t.dateKey.localeCompare(e.dateKey)))},ax=e=>{let{processId:t,processName:n,connectionId:r}=e;const{t:s}=me(),[a,i]=(0,o.useState)([]),[l,d]=(0,o.useState)(!0),[u,p]=(0,o.useState)(""),[h,f]=(0,o.useState)(null),[m,g]=(0,o.useState)("out"),[x,b]=(0,o.useState)({}),[v,y]=(0,o.useState)({}),[w,k]=(0,o.useState)({}),[S,j]=(0,o.useState)({}),[C,A]=(0,o.useState)(200),[N,E]=(0,o.useState)(""),_=r?"/api/remote/".concat(r,"/log-files/").concat(t):"/api/log-files/".concat(t),P=(0,o.useCallback)((e=>{const t=encodeURIComponent(e);return r?"/api/remote/".concat(r,"/log-file?path=").concat(t,"&lines=").concat(C):"/api/log-file?path=".concat(t,"&lines=").concat(C)}),[r,C]),M=(0,o.useCallback)((async()=>{d(!0),p("");try{const e=await ur.get(_);i(e.data.files||[])}catch(vM){var e,t;p((null===(e=vM.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||vM.message||"Failed to list log files")}finally{d(!1)}}),[_]);(0,o.useEffect)((()=>{M()}),[M]);const R=(0,o.useCallback)((async e=>{if(!w[e]){k((t=>c(c({},t),{},{[e]:!0}))),j((t=>c(c({},t),{},{[e]:""})));try{const t=await ur.get(P(e));b((n=>c(c({},n),{},{[e]:t.data.logs||[]}))),y((n=>c(c({},n),{},{[e]:t.data.totalLines||0})))}catch(vM){j((n=>{var o,r;return c(c({},n),{},{[e]:(null===(o=vM.response)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.error)||vM.message||"Failed to read file"})}))}finally{k((t=>c(c({},t),{},{[e]:!1})))}}}),[P]);(0,o.useEffect)((()=>{if(!h)return;const e=sx(a).find((e=>e.dateKey===h));if(!e)return;const t="out"===m?e.stdout:e.stderr;t&&R(t.path)}),[C]);const O=(e,t)=>{g(t);const n="out"===t?e.stdout:e.stderr;n&&!x[n.path]&&R(n.path)},T=(0,o.useCallback)((async e=>{E("");try{const t=encodeURIComponent(e.path),n=r?"/api/remote/".concat(r,"/log-file/download?path=").concat(t):"/api/log-file/download?path=".concat(t),o=await ur.get(n,{responseType:"blob"}),s=new Blob([o.data],{type:"text/plain; charset=utf-8"}),a=URL.createObjectURL(s),i=document.createElement("a");i.href=a,i.download=e.name.replace(/\.gz$/,""),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)}catch(vM){var t,n;const r=(null===(t=vM.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error)||vM.message||"Download failed";E("".concat(e.name,": ").concat(r))}}),[r]),L=(0,o.useCallback)((async e=>{e.stdout&&await T(e.stdout),e.stderr&&await T(e.stderr)}),[T]),I=sx(a);return l?(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center",gap:1.5,py:6,justifyContent:"center"},children:[(0,Ma.jsx)(og,{size:20}),(0,Ma.jsx)(Vf,{variant:"body2",color:"text.secondary",children:s("logPanel.scanningDir")})]}):u?(0,Ma.jsx)(Fm,{severity:"error",sx:{mt:1},children:u}):0===I.length?(0,Ma.jsxs)(si,{sx:{textAlign:"center",py:6,border:"1px solid",borderColor:"divider",borderRadius:1},children:[(0,Ma.jsx)(ex.A,{sx:{fontSize:40,opacity:.3,mb:1}}),(0,Ma.jsxs)(Vf,{variant:"body2",color:"text.secondary",children:["No log files found for ",(0,Ma.jsx)("strong",{children:n}),"."]}),(0,Ma.jsxs)(Vf,{variant:"caption",color:"text.secondary",display:"block",sx:{mt:.5},children:["Log rotation may not be enabled. Run ",(0,Ma.jsx)("code",{children:"pm2 install pm2-logrotate"})," to get daily archives."]})]}):(0,Ma.jsxs)(si,{children:[N&&(0,Ma.jsx)(Fm,{severity:"error",sx:{mb:1.5},onClose:()=>E(""),children:N}),(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center",gap:1.5,mb:1.5,flexWrap:"wrap"},children:[(0,Ma.jsxs)(Vf,{variant:"body2",color:"text.secondary",sx:{flex:1},children:[I.length," date",1!==I.length?"s":""," \xb7 ",a.length," file",1!==a.length?"s":""]}),(0,Ma.jsxs)(El,{size:"small",sx:{minWidth:130},children:[(0,Ma.jsx)(Wl,{children:s("logPanel.linesToLoad")}),(0,Ma.jsx)(ip,{label:s("logPanel.linesToLoad"),value:C,onChange:e=>A(Number(e.target.value)),children:tx.map((e=>(0,Ma.jsx)(gp,{value:e.value,children:e.label},e.value)))})]}),(0,Ma.jsx)(sf,{title:s("common.refresh"),children:(0,Ma.jsx)(Am,{size:"small",onClick:M,children:(0,Ma.jsx)(sg.A,{fontSize:"small"})})})]}),(0,Ma.jsx)(ug,{component:mi,variant:"outlined",children:(0,Ma.jsxs)(xg,{size:"small",children:[(0,Ma.jsx)(jg,{children:(0,Ma.jsxs)(Mg,{children:[(0,Ma.jsx)(Dg,{sx:{width:36}}),(0,Ma.jsx)(Dg,{children:"Date"}),(0,Ma.jsx)(Dg,{align:"right",children:"stdout"}),(0,Ma.jsx)(Dg,{align:"right",children:"stderr"}),(0,Ma.jsx)(Dg,{align:"right",children:"Download"})]})}),(0,Ma.jsx)(Hg,{children:I.map((e=>{const t=h===e.dateKey,n="out"===m?e.stdout:e.stderr;return(0,Ma.jsxs)(o.Fragment,{children:[(0,Ma.jsxs)(Mg,{hover:!0,sx:{cursor:"pointer","& td":{borderBottom:t?0:void 0}},onClick:()=>(e=>{if(h===e.dateKey)return void f(null);f(e.dateKey);const t=e.stdout?"out":"err";g(t);const n="out"===t?e.stdout:e.stderr;n&&!x[n.path]&&R(n.path)})(e),children:[(0,Ma.jsx)(Dg,{padding:"checkbox",children:(0,Ma.jsx)(Am,{size:"small",children:t?(0,Ma.jsx)(Qg.A,{fontSize:"small"}):(0,Ma.jsx)(Zg.A,{fontSize:"small"})})}),(0,Ma.jsx)(Dg,{children:(0,Ma.jsx)(Vf,{variant:"body2",fontWeight:"current"===e.dateKey?600:400,children:e.displayDate})}),(0,Ma.jsx)(Dg,{align:"right",children:e.stdout?(0,Ma.jsx)(Vf,{variant:"caption",color:"text.secondary",children:nx(e.stdout.size)}):(0,Ma.jsx)(Vf,{variant:"caption",sx:{opacity:.3},children:"\u2014"})}),(0,Ma.jsx)(Dg,{align:"right",children:e.stderr?(0,Ma.jsx)(Vf,{variant:"caption",color:"error.main",children:nx(e.stderr.size)}):(0,Ma.jsx)(Vf,{variant:"caption",sx:{opacity:.3},children:"\u2014"})}),(0,Ma.jsx)(Dg,{align:"right",onClick:e=>e.stopPropagation(),children:(0,Ma.jsxs)(si,{sx:{display:"flex",gap:.5,justifyContent:"flex-end",alignItems:"center"},children:[e.stdout&&(0,Ma.jsx)(sf,{title:"Download stdout",children:(0,Ma.jsxs)(vl,{size:"small",variant:"outlined",sx:{minWidth:0,px:1,fontSize:"0.7rem"},onClick:()=>T(e.stdout),children:[(0,Ma.jsx)(rg.A,{sx:{fontSize:13,mr:.4}}),"out"]})}),e.stderr&&(0,Ma.jsx)(sf,{title:"Download stderr",children:(0,Ma.jsxs)(vl,{size:"small",variant:"outlined",color:"error",sx:{minWidth:0,px:1,fontSize:"0.7rem"},onClick:()=>T(e.stderr),children:[(0,Ma.jsx)(rg.A,{sx:{fontSize:13,mr:.4}}),"err"]})}),e.stdout&&e.stderr&&(0,Ma.jsx)(sf,{title:"Download both files",children:(0,Ma.jsxs)(vl,{size:"small",variant:"contained",disableElevation:!0,sx:{minWidth:0,px:1,fontSize:"0.7rem"},onClick:()=>L(e),children:[(0,Ma.jsx)(rg.A,{sx:{fontSize:13,mr:.4}}),"both"]})})]})})]}),(0,Ma.jsx)(Mg,{children:(0,Ma.jsx)(Dg,{colSpan:5,sx:{p:0,border:0},children:(0,Ma.jsx)(Xg,{in:t,timeout:"auto",unmountOnExit:!0,children:(0,Ma.jsxs)(si,{sx:{p:1.5,borderBottom:"1px solid",borderColor:"divider"},children:[(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center",gap:1,mb:1.5},children:[(0,Ma.jsxs)(ji,{size:"small",variant:"outlined",children:[e.stdout&&(0,Ma.jsxs)(vl,{variant:"out"===m?"contained":"outlined",disableElevation:!0,onClick:()=>O(e,"out"),children:["stdout \xb7 ",nx(e.stdout.size)]}),e.stderr&&(0,Ma.jsxs)(vl,{variant:"err"===m?"contained":"outlined",color:"error",disableElevation:!0,onClick:()=>O(e,"err"),children:["stderr \xb7 ",nx(e.stderr.size)]})]}),(0,Ma.jsx)(si,{sx:{flex:1}}),n&&(0,Ma.jsx)(vl,{size:"small",variant:"outlined",startIcon:(0,Ma.jsx)(rg.A,{fontSize:"small"}),onClick:()=>T(n),children:s("logPanel.downloadFullFile")})]}),n&&(0,Ma.jsxs)(Ma.Fragment,{children:[w[n.path]&&(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center",gap:1,py:2},children:[(0,Ma.jsx)(og,{size:16}),(0,Ma.jsx)(Vf,{variant:"caption",children:"Loading\u2026"})]}),S[n.path]&&(0,Ma.jsx)(Fm,{severity:"error",children:S[n.path]}),!w[n.path]&&!S[n.path]&&x[n.path]&&(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)(Vf,{variant:"caption",color:"text.secondary",display:"block",sx:{mb:.5},children:[x[n.path].length.toLocaleString(),C>0?" of last ".concat(C.toLocaleString()):""," lines shown",v[n.path]?" \xb7 ".concat(v[n.path].toLocaleString()," total"):"",(0,Ma.jsx)(si,{component:"span",sx:{fontFamily:"monospace",opacity:.5,ml:1},children:n.path})]}),(0,Ma.jsx)(mi,{variant:"outlined",sx:{maxHeight:380,overflow:"auto",p:1.5,bgcolor:e=>"dark"===e.palette.mode?"#0d1117":"#f6f8fa",fontFamily:"monospace",fontSize:"0.78rem",lineHeight:1.6},children:0===x[n.path].length?(0,Ma.jsx)(Vf,{variant:"caption",color:"text.secondary",children:"File is empty."}):x[n.path].map(((e,t)=>(0,Ma.jsx)(si,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e},t)))})]})]})]})})})})]},e.dateKey)}))})]})})]})};function ix(e){return e+.5|0}const lx=(e,t,n)=>Math.max(Math.min(e,n),t);function cx(e){return lx(ix(2.55*e),0,255)}function dx(e){return lx(ix(255*e),0,255)}function ux(e){return lx(ix(e/2.55)/100,0,1)}function px(e){return lx(ix(100*e),0,100)}const hx={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},fx=[..."0123456789ABCDEF"],mx=e=>fx[15&e],gx=e=>fx[(240&e)>>4]+fx[15&e],xx=e=>(240&e)>>4===(15&e);function bx(e){var t=(e=>xx(e.r)&&xx(e.g)&&xx(e.b)&&xx(e.a))(e)?mx:gx;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const vx=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function yx(e,t,n){const o=t*Math.min(n,1-n),r=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-o*Math.max(Math.min(r-3,9-r,1),-1)};return[r(0),r(8),r(4)]}function wx(e,t,n){const o=function(o){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(o+e/60)%6;return n-n*t*Math.max(Math.min(r,4-r,1),0)};return[o(5),o(3),o(1)]}function kx(e,t,n){const o=yx(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function Sx(e){const t=e.r/255,n=e.g/255,o=e.b/255,r=Math.max(t,n,o),s=Math.min(t,n,o),a=(r+s)/2;let i,l,c;return r!==s&&(c=r-s,l=a>.5?c/(2-r-s):c/(r+s),i=function(e,t,n,o,r){return e===r?(t-n)/o+(t<n?6:0):t===r?(n-e)/o+2:(e-t)/o+4}(t,n,o,c,r),i=60*i+.5),[0|i,l||0,a]}function jx(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(dx)}function Cx(e,t,n){return jx(yx,e,t,n)}function Ax(e){return(e%360+360)%360}function Nx(e){const t=vx.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?cx(+t[5]):dx(+t[5]));const r=Ax(+t[2]),s=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return jx(kx,e,t,n)}(r,s,a):"hsv"===t[1]?function(e,t,n){return jx(wx,e,t,n)}(r,s,a):Cx(r,s,a),{r:n[0],g:n[1],b:n[2],a:o}}const Ex={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},_x={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Px;function Mx(e){Px||(Px=function(){const e={},t=Object.keys(_x),n=Object.keys(Ex);let o,r,s,a,i;for(o=0;o<t.length;o++){for(a=i=t[o],r=0;r<n.length;r++)s=n[r],i=i.replace(s,Ex[s]);s=parseInt(_x[a],16),e[i]=[s>>16&255,s>>8&255,255&s]}return e}(),Px.transparent=[0,0,0,0]);const t=Px[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const Rx=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ox=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Tx=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Lx(e,t,n){if(e){let o=Sx(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=Cx(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function Ix(e,t){return e?Object.assign(t||{},e):e}function Dx(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=dx(e[3]))):(t=Ix(e,{r:0,g:0,b:0,a:1})).a=dx(t.a),t}function zx(e){return"r"===e.charAt(0)?function(e){const t=Rx.exec(e);let n,o,r,s=255;if(t){if(t[7]!==n){const e=+t[7];s=t[8]?cx(e):lx(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?cx(n):lx(n,0,255)),o=255&(t[4]?cx(o):lx(o,0,255)),r=255&(t[6]?cx(r):lx(r,0,255)),{r:n,g:o,b:r,a:s}}}(e):Nx(e)}class Fx{constructor(e){if(e instanceof Fx)return e;const t=typeof e;let n;"object"===t?n=Dx(e):"string"===t&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*hx[e[1]],g:255&17*hx[e[2]],b:255&17*hx[e[3]],a:5===n?17*hx[e[4]]:255}:7!==n&&9!==n||(t={r:hx[e[1]]<<4|hx[e[2]],g:hx[e[3]]<<4|hx[e[4]],b:hx[e[5]]<<4|hx[e[6]],a:9===n?hx[e[7]]<<4|hx[e[8]]:255})),t}(e)||Mx(e)||zx(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Ix(this._rgb);return e&&(e.a=ux(e.a)),e}set rgb(e){this._rgb=Dx(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(ux(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):void 0;var e}hexString(){return this._valid?bx(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=Sx(e),n=t[0],o=px(t[1]),r=px(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(ux(e.a),")"):"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)")}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,o=e.rgb;let r;const s=t===r?.5:t,a=2*s-1,i=n.a-o.a,l=((a*i===-1?a:(a+i)/(1+a*i))+1)/2;r=1-l,n.r=255&l*n.r+r*o.r+.5,n.g=255&l*n.g+r*o.g+.5,n.b=255&l*n.b+r*o.b+.5,n.a=s*n.a+(1-s)*o.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const o=Tx(ux(e.r)),r=Tx(ux(e.g)),s=Tx(ux(e.b));return{r:dx(Ox(o+n*(Tx(ux(t.r))-o))),g:dx(Ox(r+n*(Tx(ux(t.g))-r))),b:dx(Ox(s+n*(Tx(ux(t.b))-s))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Fx(this.rgb)}alpha(e){return this._rgb.a=dx(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=ix(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Lx(this._rgb,2,e),this}darken(e){return Lx(this._rgb,2,-e),this}saturate(e){return Lx(this._rgb,1,e),this}desaturate(e){return Lx(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=Sx(e);n[0]=Ax(n[0]+t),n=Cx(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function Bx(){}const Wx=(()=>{let e=0;return()=>e++})();function Ux(e){return null===e||void 0===e}function Hx(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function Vx(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function Kx(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)}function qx(e,t){return Kx(e)?e:t}function $x(e,t){return"undefined"===typeof e?t:e}const Jx=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Yx(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function Gx(e,t,n,o){let r,s,a;if(Hx(e))if(s=e.length,o)for(r=s-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<s;r++)t.call(n,e[r],r);else if(Vx(e))for(a=Object.keys(e),s=a.length,r=0;r<s;r++)t.call(n,e[a[r]],a[r])}function Xx(e,t){let n,o,r,s;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],s=t[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function Zx(e){if(Hx(e))return e.map(Zx);if(Vx(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=Zx(e[n[r]]);return t}return e}function Qx(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function eb(e,t,n,o){if(!Qx(e))return;const r=t[e],s=n[e];Vx(r)&&Vx(s)?tb(r,s,o):t[e]=Zx(s)}function tb(e,t,n){const o=Hx(t)?t:[t],r=o.length;if(!Vx(e))return e;const s=(n=n||{}).merger||eb;let a;for(let i=0;i<r;++i){if(a=o[i],!Vx(a))continue;const t=Object.keys(a);for(let o=0,r=t.length;o<r;++o)s(t[o],e,a,n)}return e}function nb(e,t){return tb(e,t,{merger:ob})}function ob(e,t,n){if(!Qx(e))return;const o=t[e],r=n[e];Vx(o)&&Vx(r)?nb(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Zx(r))}const rb={"":e=>e,x:e=>e.x,y:e=>e.y};function sb(e,t){const n=rb[t]||(rb[t]=function(e){const t=function(e){const t=e.split("."),n=[];let o="";for(const r of t)o+=r,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function ab(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ib=e=>"undefined"!==typeof e,lb=e=>"function"===typeof e,cb=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const db=Math.PI,ub=2*db,pb=ub+db,hb=Number.POSITIVE_INFINITY,fb=db/180,mb=db/2,gb=db/4,xb=2*db/3,bb=Math.log10,vb=Math.sign;function yb(e,t,n){return Math.abs(e-t)<n}function wb(e){const t=Math.round(e);e=yb(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(bb(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function kb(e){return!function(e){return"symbol"===typeof e||"object"===typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Sb(e,t,n){let o,r,s;for(o=0,r=e.length;o<r;o++)s=e[o][n],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function jb(e){return e*(db/180)}function Cb(e){return e*(180/db)}function Ab(e){if(!Kx(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Nb(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let s=Math.atan2(o,n);return s<-.5*db&&(s+=ub),{angle:s,distance:r}}function Eb(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _b(e,t){return(e-t+pb)%ub-db}function Pb(e){return(e%ub+ub)%ub}function Mb(e,t,n,o){const r=Pb(e),s=Pb(t),a=Pb(n),i=Pb(s-r),l=Pb(a-r),c=Pb(r-s),d=Pb(r-a);return r===s||r===a||o&&s===a||i>l&&c<d}function Rb(e,t,n){return Math.max(t,Math.min(n,e))}function Ob(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function Tb(e,t,n){n=n||(n=>e[n]<t);let o,r=e.length-1,s=0;for(;r-s>1;)o=s+r>>1,n(o)?s=o:r=o;return{lo:s,hi:r}}const Lb=(e,t,n,o)=>Tb(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),Ib=(e,t,n)=>Tb(e,n,(o=>e[o][t]>=n));const Db=["push","pop","shift","splice","unshift"];function zb(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);-1!==r&&o.splice(r,1),o.length>0||(Db.forEach((t=>{delete e[t]})),delete e._chartjs)}function Fb(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Bb="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function Wb(e,t){let n=[],o=!1;return function(){for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];n=s,o||(o=!0,Bb.call(window,(()=>{o=!1,e.apply(t,n)})))}}const Ub=e=>"start"===e?"left":"end"===e?"right":"center",Hb=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function Vb(e,t,n){const o=t.length;let r=0,s=o;if(e._sorted){const{iScale:a,vScale:i,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,d=a.axis,{min:u,max:p,minDefined:h,maxDefined:f}=a.getUserBounds();if(h){if(r=Math.min(Lb(l,d,u).lo,n?o:Lb(t,d,a.getPixelForValue(u)).lo),c){const e=l.slice(0,r+1).reverse().findIndex((e=>!Ux(e[i.axis])));r-=Math.max(0,e)}r=Rb(r,0,o-1)}if(f){let e=Math.max(Lb(l,a.axis,p,!0).hi+1,n?0:Lb(t,d,a.getPixelForValue(p),!0).hi+1);if(c){const t=l.slice(e-1).findIndex((e=>!Ux(e[i.axis])));e+=Math.max(0,t)}s=Rb(e,r,o)-r}else s=o-r}return{start:r,count:s}}function Kb(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const s=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),s}const qb=e=>0===e||1===e,$b=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*ub/n),Jb=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ub/n)+1,Yb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*mb),easeOutSine:e=>Math.sin(e*mb),easeInOutSine:e=>-.5*(Math.cos(db*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>qb(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>qb(e)?e:$b(e,.075,.3),easeOutElastic:e=>qb(e)?e:Jb(e,.075,.3),easeInOutElastic(e){const t=.1125;return qb(e)?e:e<.5?.5*$b(2*e,t,.45):.5+.5*Jb(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Yb.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*Yb.easeInBounce(2*e):.5*Yb.easeOutBounce(2*e-1)+.5};function Gb(e){if(e&&"object"===typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Xb(e){return Gb(e)?e:new Fx(e)}function Zb(e){return Gb(e)?e:new Fx(e).saturate(.5).darken(.1).hexString()}const Qb=["x","y","borderWidth","radius","tension"],ev=["color","borderColor","backgroundColor"];const tv=new Map;function nv(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=tv.get(n);return o||(o=new Intl.NumberFormat(e,t),tv.set(n,o)),o}(t,n).format(e)}const ov={values:e=>Hx(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const o=this.chart.options.locale;let r,s=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),s=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=bb(Math.abs(s)),i=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:i,maximumFractionDigits:i};return Object.assign(l,this.options.ticks.format),nv(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(bb(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?ov.numeric.call(this,e,t,n):""}};var rv={formatters:ov};const sv=Object.create(null),av=Object.create(null);function iv(e,t){if(!t)return e;const n=t.split(".");for(let o=0,r=n.length;o<r;++o){const t=n[o];e=e[t]||(e[t]=Object.create(null))}return e}function lv(e,t,n){return"string"===typeof t?tb(iv(e,t),n):tb(iv(e,""),t)}class cv{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Zb(t.backgroundColor),this.hoverBorderColor=(e,t)=>Zb(t.borderColor),this.hoverColor=(e,t)=>Zb(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return lv(this,e,t)}get(e){return iv(this,e)}describe(e,t){return lv(av,e,t)}override(e,t){return lv(sv,e,t)}route(e,t,n,o){const r=iv(this,e),s=iv(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=s[o];return Vx(e)?Object.assign({},t,e):$x(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var dv=new cv({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:ev},numbers:{type:"number",properties:Qb}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:rv.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function uv(e,t,n,o,r){let s=t[r];return s||(s=t[r]=e.measureText(r).width,n.push(r)),s>o&&(o=s),o}function pv(e,t,n,o){let r=(o=o||{}).data=o.data||{},s=o.garbageCollect=o.garbageCollect||[];o.font!==t&&(r=o.data={},s=o.garbageCollect=[],o.font=t),e.save(),e.font=t;let a=0;const i=n.length;let l,c,d,u,p;for(l=0;l<i;l++)if(u=n[l],void 0===u||null===u||Hx(u)){if(Hx(u))for(c=0,d=u.length;c<d;c++)p=u[c],void 0===p||null===p||Hx(p)||(a=uv(e,r,s,a,p))}else a=uv(e,r,s,a,u);e.restore();const h=s.length/2;if(h>n.length){for(l=0;l<h;l++)delete r[s[l]];s.splice(0,h)}return a}function hv(e,t,n){const o=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function fv(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function mv(e,t,n,o){gv(e,t,n,o,null)}function gv(e,t,n,o,r){let s,a,i,l,c,d,u,p;const h=t.pointStyle,f=t.rotation,m=t.radius;let g=(f||0)*fb;if(h&&"object"===typeof h&&(s=h.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return e.save(),e.translate(n,o),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:r?e.ellipse(n,o,r/2,m,0,0,ub):e.arc(n,o,m,0,ub),e.closePath();break;case"triangle":d=r?r/2:m,e.moveTo(n+Math.sin(g)*d,o-Math.cos(g)*m),g+=xb,e.lineTo(n+Math.sin(g)*d,o-Math.cos(g)*m),g+=xb,e.lineTo(n+Math.sin(g)*d,o-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+gb)*l,u=Math.cos(g+gb)*(r?r/2-c:l),i=Math.sin(g+gb)*l,p=Math.sin(g+gb)*(r?r/2-c:l),e.arc(n-u,o-i,c,g-db,g-mb),e.arc(n+p,o-a,c,g-mb,g),e.arc(n+u,o+i,c,g,g+mb),e.arc(n-p,o+a,c,g+mb,g+db),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,d=r?r/2:l,e.rect(n-d,o-l,2*d,2*l);break}g+=gb;case"rectRot":u=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,i=Math.sin(g)*m,p=Math.sin(g)*(r?r/2:m),e.moveTo(n-u,o-i),e.lineTo(n+p,o-a),e.lineTo(n+u,o+i),e.lineTo(n-p,o+a),e.closePath();break;case"crossRot":g+=gb;case"cross":u=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,i=Math.sin(g)*m,p=Math.sin(g)*(r?r/2:m),e.moveTo(n-u,o-i),e.lineTo(n+u,o+i),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a);break;case"star":u=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,i=Math.sin(g)*m,p=Math.sin(g)*(r?r/2:m),e.moveTo(n-u,o-i),e.lineTo(n+u,o+i),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a),g+=gb,u=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,i=Math.sin(g)*m,p=Math.sin(g)*(r?r/2:m),e.moveTo(n-u,o-i),e.lineTo(n+u,o+i),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a);break;case"line":a=r?r/2:Math.cos(g)*m,i=Math.sin(g)*m,e.moveTo(n-a,o-i),e.lineTo(n+a,o+i);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(g)*(r?r/2:m),o+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function xv(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function bv(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function vv(e){e.restore()}function yv(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===r!==!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function wv(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function kv(e,t,n,o,r){if(r.strikethrough||r.underline){const s=e.measureText(o),a=t-s.actualBoundingBoxLeft,i=t+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,d=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(a,d),e.lineTo(i,d),e.stroke()}}function Sv(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function jv(e,t,n,o,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=Hx(t)?t:[t],i=s.strokeWidth>0&&""!==s.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Ux(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,s),l=0;l<a.length;++l)c=a[l],s.backdrop&&Sv(e,s.backdrop),i&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),Ux(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(c,n,o,s.maxWidth)),e.fillText(c,n,o,s.maxWidth),kv(e,n,o,c,s),o+=Number(r.lineHeight);e.restore()}function Cv(e,t){const{x:n,y:o,w:r,h:s,radius:a}=t;e.arc(n+a.topLeft,o+a.topLeft,a.topLeft,1.5*db,db,!0),e.lineTo(n,o+s-a.bottomLeft),e.arc(n+a.bottomLeft,o+s-a.bottomLeft,a.bottomLeft,db,mb,!0),e.lineTo(n+r-a.bottomRight,o+s),e.arc(n+r-a.bottomRight,o+s-a.bottomRight,a.bottomRight,mb,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-mb,!0),e.lineTo(n+a.topLeft,o)}const Av=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Nv=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ev(e,t){const n=(""+e).match(Av);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}function _v(e,t){const n={},o=Vx(t),r=o?Object.keys(t):t,s=Vx(e)?o?n=>$x(e[n],e[t[n]]):t=>e[t]:()=>e;for(const a of r)n[a]=+s(a)||0;return n}function Pv(e){return _v(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Mv(e){return _v(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Rv(e){const t=Pv(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ov(e,t){e=e||{},t=t||dv.font;let n=$x(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));let o=$x(e.style,t.style);o&&!(""+o).match(Nv)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:$x(e.family,t.family),lineHeight:Ev($x(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:$x(e.weight,t.weight),string:""};return r.string=function(e){return!e||Ux(e.size)||Ux(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function Tv(e,t,n,o){let r,s,a,i=!0;for(r=0,s=e.length;r<s;++r)if(a=e[r],void 0!==a&&(void 0!==t&&"function"===typeof a&&(a=a(t),i=!1),void 0!==n&&Hx(a)&&(a=a[n%a.length],i=!1),void 0!==a))return o&&!i&&(o.cacheable=!1),a}function Lv(e,t){return Object.assign(Object.create(e),t)}function Iv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>e[0];const r=(arguments.length>2?arguments[2]:void 0)||e;"undefined"===typeof n&&(n=$v("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:n,_getTarget:o,override:o=>Iv([o,...e],t,r,n)};return new Proxy(s,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,o)=>Wv(n,o,(()=>function(e,t,n,o){let r;for(const s of t)if(r=$v(Fv(s,e),n),"undefined"!==typeof r)return Bv(e,r)?Kv(n,o,e,r):r}(o,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Jv(e).includes(t),ownKeys:e=>Jv(e),set(e,t,n){const r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function Dv(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:zv(e,o),setContext:t=>Dv(e,t,n,o),override:r=>Dv(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Wv(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:s,_descriptors:a}=e;let i=o[t];lb(i)&&a.isScriptable(t)&&(i=function(e,t,n,o){const{_proxy:r,_context:s,_subProxy:a,_stack:i}=n;if(i.has(e))throw new Error("Recursion detected: "+Array.from(i).join("->")+"->"+e);i.add(e);let l=t(s,a||o);i.delete(e),Bv(e,l)&&(l=Kv(r._scopes,r,e,l));return l}(t,i,e,n));Hx(i)&&i.length&&(i=function(e,t,n,o){const{_proxy:r,_context:s,_subProxy:a,_descriptors:i}=n;if("undefined"!==typeof s.index&&o(e))return t[s.index%t.length];if(Vx(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=Kv(o,r,e,l);t.push(Dv(n,s,a&&a[e],i))}}return t}(t,i,e,a.isIndexable));Bv(t,i)&&(i=Dv(i,r,s&&s[t],a));return i}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,o)=>(e[n]=o,delete t[n],!0)})}function zv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0};const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:lb(n)?n:()=>n,isIndexable:lb(o)?o:()=>o}}const Fv=(e,t)=>e?e+ab(t):t,Bv=(e,t)=>Vx(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Wv(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const o=n();return e[t]=o,o}function Uv(e,t,n){return lb(e)?e(t,n):e}const Hv=(e,t)=>!0===e?t:"string"===typeof e?sb(t,e):void 0;function Vv(e,t,n,o,r){for(const s of t){const t=Hv(n,s);if(t){e.add(t);const s=Uv(t._fallback,n,r);if("undefined"!==typeof s&&s!==n&&s!==o)return s}else if(!1===t&&"undefined"!==typeof o&&n!==o)return null}return!1}function Kv(e,t,n,o){const r=t._rootScopes,s=Uv(t._fallback,n,o),a=[...e,...r],i=new Set;i.add(o);let l=qv(i,a,n,s||n,o);return null!==l&&(("undefined"===typeof s||s===n||(l=qv(i,a,s,l,o),null!==l))&&Iv(Array.from(i),[""],r,s,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(Hx(r)&&Vx(n))return n;return r||{}}(t,n,o))))}function qv(e,t,n,o,r){for(;n;)n=Vv(e,t,n,o,r);return n}function $v(e,t){for(const n of t){if(!n)continue;const t=n[e];if("undefined"!==typeof t)return t}}function Jv(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function Yv(e,t,n,o){const{iScale:r}=e,{key:s="r"}=this._parsing,a=new Array(o);let i,l,c,d;for(i=0,l=o;i<l;++i)c=i+n,d=t[c],a[i]={r:r.parse(sb(d,s),c)};return a}const Gv=Number.EPSILON||1e-14,Xv=(e,t)=>t<e.length&&!e[t].skip&&e[t],Zv=e=>"x"===e?"y":"x";function Qv(e,t,n,o){const r=e.skip?t:e,s=t,a=n.skip?t:n,i=Eb(s,r),l=Eb(a,s);let c=i/(i+l),d=l/(i+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const u=o*c,p=o*d;return{previous:{x:s.x-u*(a.x-r.x),y:s.y-u*(a.y-r.y)},next:{x:s.x+p*(a.x-r.x),y:s.y+p*(a.y-r.y)}}}function ey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";const n=Zv(t),o=e.length,r=Array(o).fill(0),s=Array(o);let a,i,l,c=Xv(e,0);for(a=0;a<o;++a)if(i=l,l=c,c=Xv(e,a+1),l){if(c){const e=c[t]-l[t];r[a]=0!==e?(c[n]-l[n])/e:0}s[a]=i?c?vb(r[a-1])!==vb(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(e,t,n){const o=e.length;let r,s,a,i,l,c=Xv(e,0);for(let d=0;d<o-1;++d)l=c,c=Xv(e,d+1),l&&c&&(yb(t[d],0,Gv)?n[d]=n[d+1]=0:(r=n[d]/t[d],s=n[d+1]/t[d],i=Math.pow(r,2)+Math.pow(s,2),i<=9||(a=3/Math.sqrt(i),n[d]=r*a*t[d],n[d+1]=s*a*t[d])))}(e,r,s),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";const o=Zv(n),r=e.length;let s,a,i,l=Xv(e,0);for(let c=0;c<r;++c){if(a=i,i=l,l=Xv(e,c+1),!i)continue;const r=i[n],d=i[o];a&&(s=(r-a[n])/3,i["cp1".concat(n)]=r-s,i["cp1".concat(o)]=d-s*t[c]),l&&(s=(l[n]-r)/3,i["cp2".concat(n)]=r+s,i["cp2".concat(o)]=d+s*t[c])}}(e,s,t)}function ty(e,t,n){return Math.max(Math.min(e,n),t)}function ny(e,t,n,o,r){let s,a,i,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)ey(e,r);else{let n=o?e[e.length-1]:e[0];for(s=0,a=e.length;s<a;++s)i=e[s],l=Qv(n,i,e[Math.min(s+1,a-(o?0:1))%a],t.tension),i.cp1x=l.previous.x,i.cp1y=l.previous.y,i.cp2x=l.next.x,i.cp2y=l.next.y,n=i}t.capBezierPoints&&function(e,t){let n,o,r,s,a,i=xv(e[0],t);for(n=0,o=e.length;n<o;++n)a=s,s=i,i=n<o-1&&xv(e[n+1],t),s&&(r=e[n],a&&(r.cp1x=ty(r.cp1x,t.left,t.right),r.cp1y=ty(r.cp1y,t.top,t.bottom)),i&&(r.cp2x=ty(r.cp2x,t.left,t.right),r.cp2y=ty(r.cp2y,t.top,t.bottom)))}(e,n)}function oy(){return"undefined"!==typeof window&&"undefined"!==typeof document}function ry(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function sy(e,t,n){let o;return"string"===typeof e?(o=parseInt(e,10),-1!==e.indexOf("%")&&(o=o/100*t.parentNode[n])):o=e,o}const ay=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const iy=["top","right","bottom","left"];function ly(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=iy[r];o[s]=parseFloat(e[t+"-"+s+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}function cy(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=ay(n),s="border-box"===r.boxSizing,a=ly(r,"padding"),i=ly(r,"border","width"),{x:l,y:c,box:d}=function(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:s}=o;let a,i,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(r,s,e.target))a=r,i=s;else{const e=t.getBoundingClientRect();a=o.clientX-e.left,i=o.clientY-e.top,l=!0}return{x:a,y:i,box:l}}(e,n),u=a.left+(d&&i.left),p=a.top+(d&&i.top);let{width:h,height:f}=t;return s&&(h-=a.width+i.width,f-=a.height+i.height),{x:Math.round((l-u)/h*n.width/o),y:Math.round((c-p)/f*n.height/o)}}const dy=e=>Math.round(10*e)/10;function uy(e,t,n,o){const r=ay(e),s=ly(r,"margin"),a=sy(r.maxWidth,e,"clientWidth")||hb,i=sy(r.maxHeight,e,"clientHeight")||hb,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const s=e&&ry(e);if(s){const e=s.getBoundingClientRect(),a=ay(s),i=ly(a,"border","width"),l=ly(a,"padding");t=e.width-l.width-i.width,n=e.height-l.height-i.height,o=sy(a.maxWidth,s,"clientWidth"),r=sy(a.maxHeight,s,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||hb,maxHeight:r||hb}}(e,t,n);let{width:c,height:d}=l;if("content-box"===r.boxSizing){const e=ly(r,"border","width"),t=ly(r,"padding");c-=t.width+e.width,d-=t.height+e.height}c=Math.max(0,c-s.width),d=Math.max(0,o?c/o:d-s.height),c=dy(Math.min(c,a,l.maxWidth)),d=dy(Math.min(d,i,l.maxHeight)),c&&!d&&(d=dy(c/2));return(void 0!==t||void 0!==n)&&o&&l.height&&d>l.height&&(d=l.height,c=dy(Math.floor(d*o))),{width:c,height:d}}function py(e,t,n){const o=t||1,r=Math.floor(e.height*o),s=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height="".concat(e.height,"px"),a.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==o||a.height!==r||a.width!==s)&&(e.currentDevicePixelRatio=o,a.height=r,a.width=s,e.ctx.setTransform(o,0,0,o,0,0),!0)}const hy=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};oy()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(yM){}return e}();function fy(e,t){const n=function(e,t){return ay(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function my(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function gy(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:"middle"===o?n<.5?e.y:t.y:"after"===o?n<1?e.y:t.y:n>0?t.y:e.y}}function xy(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},a=my(e,r,n),i=my(r,s,n),l=my(s,t,n),c=my(a,i,n),d=my(i,l,n);return my(c,d,n)}function by(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function vy(e,t){let n,o;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function yy(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function wy(e){return"angle"===e?{between:Mb,compare:_b,normalize:Pb}:{between:Ob,compare:(e,t)=>e-t,normalize:e=>e}}function ky(e){let{start:t,end:n,count:o,loop:r,style:s}=e;return{start:t%o,end:n%o,loop:r&&(n-t+1)%o===0,style:s}}function Sy(e,t,n){if(!n)return[e];const{property:o,start:r,end:s}=n,a=t.length,{compare:i,between:l,normalize:c}=wy(o),{start:d,end:u,loop:p,style:h}=function(e,t,n){const{property:o,start:r,end:s}=n,{between:a,normalize:i}=wy(o),l=t.length;let c,d,{start:u,end:p,loop:h}=e;if(h){for(u+=l,p+=l,c=0,d=l;c<d&&a(i(t[u%l][o]),r,s);++c)u--,p--;u%=l,p%=l}return p<u&&(p+=l),{start:u,end:p,loop:h,style:e.style}}(e,t,n),f=[];let m,g,x,b=!1,v=null;const y=()=>b||l(r,x,m)&&0!==i(r,x),w=()=>!b||0===i(s,m)||l(s,x,m);for(let k=d,S=d;k<=u;++k)g=t[k%a],g.skip||(m=c(g[o]),m!==x&&(b=l(m,r,s),null===v&&y()&&(v=0===i(m,r)?k:S),null!==v&&w()&&(f.push(ky({start:v,end:k,loop:p,count:a,style:h})),v=null),S=k,x=m));return null!==v&&f.push(ky({start:v,end:u,loop:p,count:a,style:h})),f}function jy(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const s=Sy(o[r],e.points,t);s.length&&n.push(...s)}return n}function Cy(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),s=Ay(e.options),{_datasetIndex:a,options:{spanGaps:i}}=e,l=n.length,c=[];let d=s,u=t[0].start,p=u;function h(e,t,o,r){const s=i?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=s;for(;n[t%l].skip;)t+=s;e%l!==t%l&&(c.push({start:e%l,end:t%l,loop:o,style:r}),d=r,u=t%l)}}for(const f of t){u=i?u:f.start;let e,t=n[u%l];for(p=u+1;p<=f.end;p++){const s=n[p%l];e=Ay(o.setContext(Lv(r,{type:"segment",p0:t,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),Ny(e,d)&&h(u,p-1,f.loop,d),t=s,d=e}u<p-1&&h(u,p-1,f.loop,d)}return c}(e,t,n,o):t}function Ay(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Ny(e,t){if(!t)return!1;const n=[],o=function(e,t){return Gb(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}function Ey(e,t,n){return e.options.clip?e[n]:t[n]}function _y(e,t){const n=t._clip;if(n.disabled)return!1;const o=function(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:Ey(n,t,"left"),right:Ey(n,t,"right"),top:Ey(o,t,"top"),bottom:Ey(o,t,"bottom")}:t}(t,e.chartArea);return{left:!1===n.left?0:o.left-(!0===n.left?0:n.left),right:!1===n.right?e.width:o.right+(!0===n.right?0:n.right),top:!1===n.top?0:o.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?e.height:o.bottom+(!0===n.bottom?0:n.bottom)}}class Py{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,o){const r=t.listeners[o],s=t.duration;r.forEach((o=>o({chart:e,initial:t.initial,numSteps:s,currentStep:Math.min(n-t.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=Bb.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=0;this._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const r=n.items;let s,a=r.length-1,i=!1;for(;a>=0;--a)s=r[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),i=!0):(r[a]=r[r.length-1],r.pop());i&&(o.draw(),this._notify(o,n,e,"progress")),r.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var My=new Py;const Ry="transparent",Oy={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=Xb(e||Ry),r=o.valid&&Xb(t||Ry);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class Ty{constructor(e,t,n,o){const r=t[n];o=Tv([e.to,o,r,e.from]);const s=Tv([e.from,r,o]);this._active=!0,this._fn=e.fn||Oy[e.type||typeof s],this._easing=Yb[e.easing]||Yb.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const o=this._target[this._prop],r=n-this._start,s=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Tv([e.to,t,o,e.from]),this._from=Tv([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,o=this._prop,r=this._from,s=this._loop,a=this._to;let i;if(this._active=r!==a&&(s||t<n),!this._active)return this._target[o]=a,void this._notify(!0);t<0?this._target[o]=r:(i=t/n%2,i=s&&i>1?2-i:i,i=this._easing(Math.min(1,Math.max(0,i))),this._target[o]=this._fn(r,a,i))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let o=0;o<n.length;o++)n[o][t]()}}class Ly{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!Vx(e))return;const t=Object.keys(dv.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!Vx(r))return;const s={};for(const e of t)s[e]=r[e];(Hx(r.properties)&&r.properties||[o]).forEach((e=>{e!==o&&n.has(e)||n.set(e,s)}))}))}_animateOptions(e,t){const n=t.options,o=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!o)return[];const r=this._createAnimations(o,n);return n.$shared&&function(e,t){const n=[],o=Object.keys(t);for(let r=0;r<o.length;r++){const t=e[o[r]];t&&t.active()&&n.push(t.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,o=[],r=e.$animations||(e.$animations={}),s=Object.keys(t),a=Date.now();let i;for(i=s.length-1;i>=0;--i){const l=s[i];if("$"===l.charAt(0))continue;if("options"===l){o.push(...this._animateOptions(e,t));continue}const c=t[l];let d=r[l];const u=n.get(l);if(d){if(u&&d.active()){d.update(u,c,a);continue}d.cancel()}u&&u.duration?(r[l]=d=new Ty(u,e,l,c),o.push(d)):e[l]=c}return o}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(My.add(this._chart,n),!0):void 0}}function Iy(e,t){const n=e&&e.options||{},o=n.reverse,r=void 0===n.min?t:0,s=void 0===n.max?t:0;return{start:o?s:r,end:o?r:s}}function Dy(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,s;for(r=0,s=o.length;r<s;++r)n.push(o[r].index);return n}function zy(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.keys,s="single"===o.mode;let a,i,l,c;if(null===t)return;let d=!1;for(a=0,i=r.length;a<i;++a){if(l=+r[a],l===n){if(d=!0,o.all)continue;break}c=e.values[l],Kx(c)&&(s||0===t||vb(t)===vb(c))&&(t+=c)}return d||o.all?t:0}function Fy(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function By(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function Wy(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function Uy(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:s,vScale:a,index:i}=o,l=s.axis,c=a.axis,d=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(s,a,o),u=t.length;let p;for(let h=0;h<u;++h){const e=t[h],{[l]:n,[c]:s}=e;p=(e._stacks||(e._stacks={}))[c]=By(r,d,n),p[i]=s,p._top=Wy(p,a,!0,o.type),p._bottom=Wy(p,a,!1,o.type);(p._visualValues||(p._visualValues={}))[i]=s}}function Hy(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function Vy(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[o]||void 0===t[o][n])return;delete t[o][n],void 0!==t[o]._visualValues&&void 0!==t[o]._visualValues[n]&&delete t[o]._visualValues[n]}}}const Ky=e=>"reset"===e||"none"===e,qy=(e,t)=>t?e:Object.assign({},e);class $y{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Fy(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Vy(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),o=(e,t,n,o)=>"x"===e?t:"r"===e?o:n,r=t.xAxisID=$x(n.xAxisID,Hy(e,"x")),s=t.yAxisID=$x(n.yAxisID,Hy(e,"y")),a=t.rAxisID=$x(n.rAxisID,Hy(e,"r")),i=t.indexAxis,l=t.iAxisID=o(i,r,s,a),c=t.vAxisID=o(i,s,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(s),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&zb(this._data,this),e._stacked&&Vy(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(Vx(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:o}=t,r="x"===n.axis?"x":"y",s="x"===o.axis?"x":"y",a=Object.keys(e),i=new Array(a.length);let l,c,d;for(l=0,c=a.length;l<c;++l)d=a[l],i[l]={[r]:d,[s]:e[d]};return i}(t,e)}else if(n!==t){if(n){zb(n,this);const e=this._cachedMeta;Vy(e),e._parsed=[]}t&&Object.isExtensible(t)&&(r=this,(o=t)._chartjs?o._chartjs.listeners.push(r):(Object.defineProperty(o,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),Db.forEach((e=>{const t="_onData"+ab(e),n=o[e];Object.defineProperty(o,e,{configurable:!0,enumerable:!1,value(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];const a=n.apply(this,r);return o._chartjs.listeners.forEach((e=>{"function"===typeof e[t]&&e[t](...r)})),a}})})))),this._syncList=[],this._data=t}var o,r}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const r=t._stacked;t._stacked=Fy(t.vScale,t),t.stack!==n.stack&&(o=!0,Vy(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&(Uy(this,t._parsed),t._stacked=Fy(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:s}=n,a=r.axis;let i,l,c,d=0===e&&t===o.length||n._sorted,u=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,c=o;else{c=Hx(o[e])?this.parseArrayData(n,o,e,t):Vx(o[e])?this.parseObjectData(n,o,e,t):this.parsePrimitiveData(n,o,e,t);const r=()=>null===l[a]||u&&l[a]<u[a];for(i=0;i<t;++i)n._parsed[i+e]=l=c[i],d&&(r()&&(d=!1),u=l);n._sorted=d}s&&Uy(this,c)}parsePrimitiveData(e,t,n,o){const{iScale:r,vScale:s}=e,a=r.axis,i=s.axis,l=r.getLabels(),c=r===s,d=new Array(o);let u,p,h;for(u=0,p=o;u<p;++u)h=u+n,d[u]={[a]:c||r.parse(l[h],h),[i]:s.parse(t[h],h)};return d}parseArrayData(e,t,n,o){const{xScale:r,yScale:s}=e,a=new Array(o);let i,l,c,d;for(i=0,l=o;i<l;++i)c=i+n,d=t[c],a[i]={x:r.parse(d[0],c),y:s.parse(d[1],c)};return a}parseObjectData(e,t,n,o){const{xScale:r,yScale:s}=e,{xAxisKey:a="x",yAxisKey:i="y"}=this._parsing,l=new Array(o);let c,d,u,p;for(c=0,d=o;c<d;++c)u=c+n,p=t[u],l[c]={x:r.parse(sb(p,a),u),y:s.parse(sb(p,i),u)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const o=this.chart,r=this._cachedMeta,s=t[e.axis];return zy({keys:Dy(o,!0),values:t._stacks[e.axis]._visualValues},s,r.index,{mode:n})}updateRangeFromParsed(e,t,n,o){const r=n[t.axis];let s=null===r?NaN:r;const a=o&&n._stacks[t.axis];o&&a&&(o.values=a,s=zy(o,r,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,t){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&e===n.iScale,s=o.length,a=this._getOtherScale(e),i=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Dy(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let u,p;function h(){p=o[u];const t=p[a.axis];return!Kx(p[e.axis])||c>t||d<t}for(u=0;u<s&&(h()||(this.updateRangeFromParsed(l,e,p,i),!r));++u);if(r)for(u=s-1;u>=0;--u)if(!h()){this.updateRangeFromParsed(l,e,p,i);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let o,r,s;for(o=0,r=t.length;o<r;++o)s=t[o][e.axis],Kx(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,o=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:o?""+o.getLabelForValue(r[o.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,o,r;return Vx(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:!1===e}}($x(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=Iy(e,n),r=Iy(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,o=n.data||[],r=t.chartArea,s=[],a=this._drawStart||0,i=this._drawCount||o.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,a,i),c=a;c<a+i;++c){const t=o[c];t.hidden||(t.active&&l?s.push(t):t.draw(e,r))}for(c=0;c<s.length;++c)s[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const o=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return Lv(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=o.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return Lv(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=o,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;const o="active"===t,r=this._cachedDataOpts,s=e+"-"+t,a=r[s],i=this.enableOptionSharing&&ib(n);if(a)return qy(a,i);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),d=o?["".concat(e,"Hover"),"hover",e,""]:[e,""],u=l.getOptionScopes(this.getDataset(),c),p=Object.keys(dv.elements[e]),h=l.resolveNamedOptions(u,p,(()=>this.getContext(n,o,t)),d);return h.$shared&&(h.$shared=i,r[s]=Object.freeze(qy(h,i))),h}_resolveAnimations(e,t,n){const o=this.chart,r=this._cachedDataOpts,s="animation-".concat(t),a=r[s];if(a)return a;let i;if(!1!==o.options.animation){const o=this.chart.config,r=o.datasetAnimationScopeKeys(this._type,t),s=o.getOptionScopes(this.getDataset(),r);i=o.createResolver(s,this.getContext(e,n,t))}const l=new Ly(o,i&&i.animations);return i&&i._cacheable&&(r[s]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||Ky(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),o=this._sharedOptions,r=this.getSharedOptions(n),s=this.includeOptions(t,r)||r!==o;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:s}}updateElement(e,t,n,o){Ky(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!Ky(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,o){e.active=o;const r=this.getStyle(t,o);this._resolveAnimations(t,n,o).update(e,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[a,i,l]of this._syncList)this[a](i,l);this._syncList=[];const o=n.length,r=t.length,s=Math.min(r,o);s&&this.parse(0,s),r>o?this._insertElements(o,r-o,e):r<o&&this._removeElements(r,o-r)}_insertElements(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=this._cachedMeta,r=o.data,s=e+t;let a;const i=e=>{for(e.length+=t,a=e.length-1;a>=s;a--)e[a]=e[a-t]};for(i(r),a=e;a<s;++a)r[a]=new this.dataElementType;this._parsing&&i(o._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,o){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,t);n._stacked&&Vy(n,o)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,o]=e;this[t](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Jy(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let t=0,r=n.length;t<r;t++)o=o.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=Fb(o.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let o,r,s,a,i=t._length;const l=()=>{32767!==s&&-32768!==s&&(ib(a)&&(i=Math.min(i,Math.abs(s-a)||i)),a=s)};for(o=0,r=n.length;o<r;++o)s=t.getPixelForValue(n[o]),l();for(a=void 0,o=0,r=t.ticks.length;o<r;++o)s=t.getPixelForTick(o),l();return i}function Yy(e,t,n,o){return Hx(e)?function(e,t,n,o){const r=n.parse(e[0],o),s=n.parse(e[1],o),a=Math.min(r,s),i=Math.max(r,s);let l=a,c=i;Math.abs(a)>Math.abs(i)&&(l=i,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:s,min:a,max:i}}(e,t,n,o):t[n.axis]=n.parse(e,o),t}function Gy(e,t,n,o){const r=e.iScale,s=e.vScale,a=r.getLabels(),i=r===s,l=[];let c,d,u,p;for(c=n,d=n+o;c<d;++c)p=t[c],u={},u[r.axis]=i||r.parse(a[c],c),l.push(Yy(p,u,s,c));return l}function Xy(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function Zy(e,t,n,o){let r=t.borderSkipped;const s={};if(!r)return void(e.borderSkipped=s);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:i,reverse:l,top:c,bottom:d}=function(e){let t,n,o,r,s;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",s="start"):(r="start",s="end"),{start:n,end:o,reverse:t,top:r,bottom:s}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=c:(n._bottom||0)===o?r=d:(s[Qy(d,a,i,l)]=!0,r=c)),s[Qy(r,a,i,l)]=!0,e.borderSkipped=s}function Qy(e,t,n,o){var r,s,a;return o?(a=n,e=ew(e=(r=e)===(s=t)?a:r===a?s:r,n,t)):e=ew(e,t,n),e}function ew(e,t,n){return"start"===e?t:"end"===e?n:e}function tw(e,t,n){let{inflateAmount:o}=t;e.inflateAmount="auto"===o?1===n?.33:0:o}i($y,"defaults",{}),i($y,"datasetElementType",null),i($y,"dataElementType",null);class nw extends $y{parsePrimitiveData(e,t,n,o){return Gy(e,t,n,o)}parseArrayData(e,t,n,o){return Gy(e,t,n,o)}parseObjectData(e,t,n,o){const{iScale:r,vScale:s}=e,{xAxisKey:a="x",yAxisKey:i="y"}=this._parsing,l="x"===r.axis?a:i,c="x"===s.axis?a:i,d=[];let u,p,h,f;for(u=n,p=n+o;u<p;++u)f=t[u],h={},h[r.axis]=r.parse(sb(f,l),u),d.push(Yy(sb(f,c),h,s,u));return d}updateRangeFromParsed(e,t,n,o){super.updateRangeFromParsed(e,t,n,o);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:o}=t,r=this.getParsed(e),s=r._custom,a=Xy(s)?"["+s.start+", "+s.end+"]":""+o.getLabelForValue(r[o.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,o){const r="reset"===o,{index:s,_cachedMeta:{vScale:a}}=this,i=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(t,o);for(let p=t;p<t+n;p++){const t=this.getParsed(p),n=r||Ux(t[a.axis])?{base:i,head:i}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),f=(t._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||Xy(t._custom)||s===f._top||s===f._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};u&&(m.options=d||this.resolveDataElementOptions(p,e[p].active?"active":o));const g=m.options||e[p].options;Zy(m,g,f,s),tw(m,g,c.ratio),this.updateElement(e[p],p,m,o)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,s=[],a=this._cachedMeta.controller.getParsed(t),i=a&&a[n.axis],l=e=>{const t=e._parsed.find((e=>e[n.axis]===i)),o=t&&t[e.vScale.axis];if(Ux(o)||isNaN(o))return!0};for(const c of o)if((void 0===t||!l(c))&&((!1===r||-1===s.indexOf(c.stack)||void 0===r&&void 0===c.stack)&&s.push(c.stack),c.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const o=this._getStacks(e,n),r=void 0!==t?o.indexOf(t):-1;return-1===r?o.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,o=[];let r,s;for(r=0,s=t.data.length;r<s;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||Jy(t),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:o},options:{base:r,minBarLength:s}}=this,a=r||0,i=this.getParsed(e),l=i._custom,c=Xy(l);let d,u,p=i[t.axis],h=0,f=n?this.applyStack(t,i,n):p;f!==p&&(h=f-p,f=p),c&&(p=l.barStart,f=l.barEnd-l.barStart,0!==p&&vb(p)!==vb(l.barEnd)&&(h=0),h+=p);const m=Ux(r)||c?h:r;let g=t.getPixelForValue(m);if(d=this.chart.getDataVisibility(e)?t.getPixelForValue(h+f):g,u=d-g,Math.abs(u)<s){u=function(e,t,n){return 0!==e?vb(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(u,t,a)*s,p===a&&(g-=u/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),h=Math.max(e,r);g=Math.max(Math.min(g,h),l),d=g+u,n&&!c&&(i._stacks[t.axis]._visualValues[o]=t.getValueForPixel(d)-t.getValueForPixel(g))}if(g===t.getPixelForValue(a)){const e=vb(u)*t.getLineWidthForValue(a)/2;g+=e,u-=e}return{size:u,base:g,head:d,center:d+u/2}}_calculateBarIndexPixels(e,t){const n=t.scale,o=this.options,r=o.skipNull,s=$x(o.maxBarThickness,1/0);let a,i;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===o.barThickness?function(e,t,n,o){const r=t.pixels,s=r[e];let a=e>0?r[e-1]:null,i=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===a&&(a=s-(null===i?t.end-t.start:i-s)),null===i&&(i=s+s-a);const c=s-(s-Math.min(a,i))/2*l;return{chunk:Math.abs(i-a)/2*l/o,ratio:n.barPercentage,start:c}}(e,t,o,n):function(e,t,n,o){const r=n.barThickness;let s,a;return Ux(r)?(s=t.min*n.categoryPercentage,a=n.barPercentage):(s=r*o,a=1),{chunk:s/o,ratio:a,start:t.pixels[e]-s/2}}(e,t,o,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);a=l.start+l.chunk*c+l.chunk/2,i=Math.min(s,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),i=Math.min(s,t.min*t.ratio);return{base:a-i/2,head:a+i/2,center:a,size:i}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,o=n.length;let r=0;for(;r<o;++r)null===this.getParsed(r)[t.axis]||n[r].hidden||n[r].draw(this._ctx)}}i(nw,"id","bar"),i(nw,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),i(nw,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class ow extends $y{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,o){const r=super.parsePrimitiveData(e,t,n,o);for(let s=0;s<r.length;s++)r[s]._custom=this.resolveDataElementOptions(s+n).radius;return r}parseArrayData(e,t,n,o){const r=super.parseArrayData(e,t,n,o);for(let s=0;s<r.length;s++){const e=t[n+s];r[s]._custom=$x(e[2],this.resolveDataElementOptions(s+n).radius)}return r}parseObjectData(e,t,n,o){const r=super.parseObjectData(e,t,n,o);for(let s=0;s<r.length;s++){const e=t[n+s];r[s]._custom=$x(e&&e.r&&+e.r,this.resolveDataElementOptions(s+n).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=t,s=this.getParsed(e),a=o.getLabelForValue(s.x),i=r.getLabelForValue(s.y),l=s._custom;return{label:n[e]||"",value:"("+a+", "+i+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:i,includeOptions:l}=this._getSharedOptions(t,o),c=s.axis,d=a.axis;for(let u=t;u<t+n;u++){const t=e[u],n=!r&&this.getParsed(u),p={},h=p[c]=r?s.getPixelForDecimal(.5):s.getPixelForValue(n[c]),f=p[d]=r?a.getBasePixel():a.getPixelForValue(n[d]);p.skip=isNaN(h)||isNaN(f),l&&(p.options=i||this.resolveDataElementOptions(u,t.active?"active":o),r&&(p.options.radius=0)),this.updateElement(t,u,p,o)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let o=super.resolveDataElementOptions(e,t);o.$shared&&(o=Object.assign({},o,{$shared:!1}));const r=o.radius;return"active"!==t&&(o.radius=0),o.radius+=$x(n&&n._custom,r),o}}i(ow,"id","bubble"),i(ow,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),i(ow,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});class rw extends $y{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=n;else{let r,s,a=e=>+n[e];if(Vx(n[e])){const{key:e="value"}=this._parsing;a=t=>+sb(n[t],e)}for(r=e,s=e+t;r<s;++r)o._parsed[r]=a(r)}}_getRotation(){return jb(this.options.rotation-90)}_getCircumference(){return jb(this.options.circumference)}_getRotationExtents(){let e=ub,t=-ub;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,r=o._getRotation(),s=o._getCircumference();e=Math.min(e,r),t=Math.max(t,r+s)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,o=this._cachedMeta,r=o.data,s=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-s)/2,0),i=Math.min(((e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t)(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:u,ratioY:p,offsetX:h,offsetY:f}=function(e,t,n){let o=1,r=1,s=0,a=0;if(t<ub){const i=e,l=i+t,c=Math.cos(i),d=Math.sin(i),u=Math.cos(l),p=Math.sin(l),h=(e,t,o)=>Mb(e,i,l,!0)?1:Math.max(t,t*n,o,o*n),f=(e,t,o)=>Mb(e,i,l,!0)?-1:Math.min(t,t*n,o,o*n),m=h(0,c,u),g=h(mb,d,p),x=f(db,c,u),b=f(db+mb,d,p);o=(m-x)/2,r=(g-b)/2,s=-(m+x)/2,a=-(g+b)/2}return{ratioX:o,ratioY:r,offsetX:s,offsetY:a}}(d,c,i),m=(n.width-s)/u,g=(n.height-s)/p,x=Math.max(Math.min(m,g)/2,0),b=Jx(this.options.radius,x),v=(b-Math.max(b*i,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*b,this.offsetY=f*b,o.total=this.calculateTotal(),this.outerRadius=b-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*l,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,o=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*r/ub)}updateElements(e,t,n,o){const r="reset"===o,s=this.chart,a=s.chartArea,i=s.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,d=r&&i.animateScale,u=d?0:this.innerRadius,p=d?0:this.outerRadius,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(t,o);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,r);for(m=t;m<t+n;++m){const t=this._circumference(m,r),n=e[m],s={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:p,innerRadius:u};f&&(s.options=h||this.resolveDataElementOptions(m,n.active?"active":o)),g+=t,this.updateElement(n,m,s,o)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,o=0;for(n=0;n<t.length;n++){const r=e._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||t[n].hidden||(o+=Math.abs(r))}return o}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?ub*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=nv(t._parsed[e],n.options.locale);return{label:o[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let o,r,s,a,i;if(!e)for(o=0,r=n.data.datasets.length;o<r;++o)if(n.isDatasetVisible(o)){s=n.getDatasetMeta(o),e=s.data,a=s.controller;break}if(!e)return 0;for(o=0,r=e.length;o<r;++o)i=a.resolveDataElementOptions(o),"inner"!==i.borderAlign&&(t=Math.max(t,i.borderWidth||0,i.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,o=e.length;n<o;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max($x(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}i(rw,"id","doughnut"),i(rw,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),i(rw,"descriptors",{_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),i(rw,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return t.labels.map(((t,r)=>{const s=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:o,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class sw extends $y{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=t,s=this.chart._animationsDisabled;let{start:a,count:i}=Vb(t,o,s);this._drawStart=a,this._drawCount=i,Kb(t)&&(a=0,i=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:l},e),this.updateElements(o,a,i,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:s,vScale:a,_stacked:i,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(t,o),u=s.axis,p=a.axis,{spanGaps:h,segment:f}=this.options,m=kb(h)?h:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||r||"none"===o,x=t+n,b=e.length;let v=t>0&&this.getParsed(t-1);for(let y=0;y<b;++y){const n=e[y],h=g?n:{};if(y<t||y>=x){h.skip=!0;continue}const b=this.getParsed(y),w=Ux(b[p]),k=h[u]=s.getPixelForValue(b[u],y),S=h[p]=r||w?a.getBasePixel():a.getPixelForValue(i?this.applyStack(a,b,i):b[p],y);h.skip=isNaN(k)||isNaN(S)||w,h.stop=y>0&&Math.abs(b[u]-v[u])>m,f&&(h.parsed=b,h.raw=l.data[y]),d&&(h.options=c||this.resolveDataElementOptions(y,n.active?"active":o)),g||this.updateElement(n,y,h,o),v=b}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const r=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}i(sw,"id","line"),i(sw,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),i(sw,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class aw extends $y{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=nv(t._parsed[e].r,n.options.locale);return{label:o[e]||"",value:r}}parseObjectData(e,t,n,o){return Yv.bind(this)(e,t,n,o)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const o=this.getParsed(n).r;!isNaN(o)&&this.chart.getDataVisibility(n)&&(o<t.min&&(t.min=o),o>t.max&&(t.max=o))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,o=Math.min(t.right-t.left,t.bottom-t.top),r=Math.max(o/2,0),s=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(e,t,n,o){const r="reset"===o,s=this.chart,a=s.options.animation,i=this._cachedMeta.rScale,l=i.xCenter,c=i.yCenter,d=i.getIndexAngle(0)-.5*db;let u,p=d;const h=360/this.countVisibleElements();for(u=0;u<t;++u)p+=this._computeAngle(u,o,h);for(u=t;u<t+n;u++){const t=e[u];let n=p,f=p+this._computeAngle(u,o,h),m=s.getDataVisibility(u)?i.getDistanceFromCenterForValue(this.getParsed(u).r):0;p=f,r&&(a.animateScale&&(m=0),a.animateRotate&&(n=f=d));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(u,t.active?"active":o)};this.updateElement(t,u,g,o)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?jb(this.resolveDataElementOptions(e,t).angle||n):0}}i(aw,"id","polarArea"),i(aw,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),i(aw,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return t.labels.map(((t,r)=>{const s=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:o,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class iw extends rw{}i(iw,"id","pie"),i(iw,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class lw extends $y{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,o){return Yv.bind(this)(e,t,n,o)}update(e){const t=this._cachedMeta,n=t.dataset,o=t.data||[],r=t.iScale.getLabels();if(n.points=o,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const s={_loop:!0,_fullLoop:r.length===o.length,options:t};this.updateElement(n,void 0,s,e)}this.updateElements(o,0,o.length,e)}updateElements(e,t,n,o){const r=this._cachedMeta.rScale,s="reset"===o;for(let a=t;a<t+n;a++){const t=e[a],n=this.resolveDataElementOptions(a,t.active?"active":o),i=r.getPointPositionForValue(a,this.getParsed(a).r),l=s?r.xCenter:i.x,c=s?r.yCenter:i.y,d={x:l,y:c,angle:i.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,a,d,o)}}}i(lw,"id","radar"),i(lw,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),i(lw,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class cw extends $y{getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=t,s=this.getParsed(e),a=o.getLabelForValue(s.x),i=r.getLabelForValue(s.y);return{label:n[e]||"",value:"("+a+", "+i+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,o=this.chart._animationsDisabled;let{start:r,count:s}=Vb(t,n,o);if(this._drawStart=r,this._drawCount=s,Kb(t)&&(r=0,s=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:s}=t;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=n;const a=this.resolveDatasetElementOptions(e);a.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:a},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(n,r,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,o){const r="reset"===o,{iScale:s,vScale:a,_stacked:i,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,o),d=this.getSharedOptions(c),u=this.includeOptions(o,d),p=s.axis,h=a.axis,{spanGaps:f,segment:m}=this.options,g=kb(f)?f:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||r||"none"===o;let b=t>0&&this.getParsed(t-1);for(let v=t;v<t+n;++v){const t=e[v],n=this.getParsed(v),c=x?t:{},f=Ux(n[h]),y=c[p]=s.getPixelForValue(n[p],v),w=c[h]=r||f?a.getBasePixel():a.getPixelForValue(i?this.applyStack(a,n,i):n[h],v);c.skip=isNaN(y)||isNaN(w)||f,c.stop=v>0&&Math.abs(n[p]-b[p])>g,m&&(c.parsed=n,c.raw=l.data[v]),u&&(c.options=d||this.resolveDataElementOptions(v,t.active?"active":o)),x||this.updateElement(t,v,c,o),b=n}this.updateSharedOptions(d,o,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,o=n.options&&n.options.borderWidth||0;if(!t.length)return o;const r=t[0].size(this.resolveDataElementOptions(0)),s=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(o,r,s)/2}}i(cw,"id","scatter"),i(cw,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),i(cw,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function dw(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class uw{static override(e){Object.assign(uw.prototype,e)}constructor(e){i(this,"options",void 0),this.options=e||{}}init(){}formats(){return dw()}parse(){return dw()}format(){return dw()}add(){return dw()}diff(){return dw()}startOf(){return dw()}endOf(){return dw()}}var pw=uw;function hw(e,t,n,o){const{controller:r,data:s,_sorted:a}=e,i=r._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(i&&t===i.axis&&"r"!==t&&a&&s.length){const a=i._reversePixels?Ib:Lb;if(!o){const o=a(s,t,n);if(l){const{vScale:t}=r._cachedMeta,{_parsed:n}=e,s=n.slice(0,o.lo+1).reverse().findIndex((e=>!Ux(e[t.axis])));o.lo-=Math.max(0,s);const a=n.slice(o.hi).findIndex((e=>!Ux(e[t.axis])));o.hi+=Math.max(0,a)}return o}if(r._sharedOptions){const e=s[0],o="function"===typeof e.getRange&&e.getRange(t);if(o){const e=a(s,t,n-o),r=a(s,t,n+o);return{lo:e.lo,hi:r.hi}}}}return{lo:0,hi:s.length-1}}function fw(e,t,n,o,r){const s=e.getSortedVisibleDatasetMetas(),a=n[t];for(let i=0,l=s.length;i<l;++i){const{index:e,data:n}=s[i],{lo:l,hi:c}=hw(s[i],t,a,r);for(let t=l;t<=c;++t){const r=n[t];r.skip||o(r,e,t)}}}function mw(e,t,n,o,r){const s=[];if(!r&&!e.isPointInArea(t))return s;return fw(e,n,t,(function(n,a,i){(r||xv(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&s.push({element:n,datasetIndex:a,index:i})}),!0),s}function gw(e,t,n,o,r,s){let a=[];const i=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,o){const r=t?Math.abs(e.x-o.x):0,s=n?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}(n);let l=Number.POSITIVE_INFINITY;return fw(e,n,t,(function(n,c,d){const u=n.inRange(t.x,t.y,r);if(o&&!u)return;const p=n.getCenterPoint(r);if(!(!!s||e.isPointInArea(p))&&!u)return;const h=i(t,p);h<l?(a=[{element:n,datasetIndex:c,index:d}],l=h):h===l&&a.push({element:n,datasetIndex:c,index:d})})),a}function xw(e,t,n,o,r,s){return s||e.isPointInArea(t)?"r"!==n||o?gw(e,t,n,o,r,s):function(e,t,n,o){let r=[];return fw(e,n,t,(function(e,n,s){const{startAngle:a,endAngle:i}=e.getProps(["startAngle","endAngle"],o),{angle:l}=Nb(e,{x:t.x,y:t.y});Mb(l,a,i)&&r.push({element:e,datasetIndex:n,index:s})})),r}(e,t,n,r):[]}function bw(e,t,n,o,r){const s=[],a="x"===n?"inXRange":"inYRange";let i=!1;return fw(e,n,t,((e,o,l)=>{e[a]&&e[a](t[n],r)&&(s.push({element:e,datasetIndex:o,index:l}),i=i||e.inRange(t.x,t.y,r))})),o&&!i?[]:s}var vw={evaluateInteractionItems:fw,modes:{index(e,t,n,o){const r=cy(t,e),s=n.axis||"x",a=n.includeInvisible||!1,i=n.intersect?mw(e,r,s,o,a):xw(e,r,s,!1,o,a),l=[];return i.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=i[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,o){const r=cy(t,e),s=n.axis||"xy",a=n.includeInvisible||!1;let i=n.intersect?mw(e,r,s,o,a):xw(e,r,s,!1,o,a);if(i.length>0){const t=i[0].datasetIndex,n=e.getDatasetMeta(t).data;i=[];for(let e=0;e<n.length;++e)i.push({element:n[e],datasetIndex:t,index:e})}return i},point:(e,t,n,o)=>mw(e,cy(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=cy(t,e),s=n.axis||"xy",a=n.includeInvisible||!1;return xw(e,r,s,n.intersect,o,a)},x:(e,t,n,o)=>bw(e,cy(t,e),"x",n.intersect,o),y:(e,t,n,o)=>bw(e,cy(t,e),"y",n.intersect,o)}};const yw=["left","top","right","bottom"];function ww(e,t){return e.filter((e=>e.pos===t))}function kw(e,t){return e.filter((e=>-1===yw.indexOf(e.pos)&&e.box.axis===t))}function Sw(e,t){return e.sort(((e,n)=>{const o=t?n:e,r=t?e:n;return o.weight===r.weight?o.index-r.index:o.weight-r.weight}))}function jw(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!yw.includes(o))continue;const s=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=r}return t}(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let s,a,i;for(s=0,a=e.length;s<a;++s){i=e[s];const{fullSize:a}=i.box,l=n[i.stack],c=l&&i.stackWeight/l.weight;i.horizontal?(i.width=c?c*o:a&&t.availableWidth,i.height=r):(i.width=o,i.height=c?c*r:a&&t.availableHeight)}return n}function Cw(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function Aw(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Nw(e,t,n,o){const{pos:r,box:s}=n,a=e.maxPadding;if(!Vx(r)){n.size&&(e[r]-=n.size);const t=o[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?s.height:s.width),n.size=t.size/t.count,e[r]+=n.size}s.getPadding&&Aw(a,s.getPadding());const i=Math.max(0,t.outerWidth-Cw(a,e,"left","right")),l=Math.max(0,t.outerHeight-Cw(a,e,"top","bottom")),c=i!==e.w,d=l!==e.h;return e.w=i,e.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Ew(e,t){const n=t.maxPadding;function o(e){const o={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{o[e]=Math.max(t[e],n[e])})),o}return o(e?["left","right"]:["top","bottom"])}function _w(e,t,n,o){const r=[];let s,a,i,l,c,d;for(s=0,a=e.length,c=0;s<a;++s){i=e[s],l=i.box,l.update(i.width||t.w,i.height||t.h,Ew(i.horizontal,t));const{same:a,other:u}=Nw(t,n,i,o);c|=a&&r.length,d=d||u,l.fullSize||r.push(i)}return c&&_w(r,t,n,o)||d}function Pw(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function Mw(e,t,n,o){const r=n.padding;let{x:s,y:a}=t;for(const i of e){const e=i.box,l=o[i.stack]||{count:1,placed:0,weight:1},c=i.stackWeight/l.weight||1;if(i.horizontal){const o=t.w*c,s=l.size||e.height;ib(l.start)&&(a=l.start),e.fullSize?Pw(e,r.left,a,n.outerWidth-r.right-r.left,s):Pw(e,t.left+l.placed,a,o,s),l.start=a,l.placed+=o,a=e.bottom}else{const o=t.h*c,a=l.size||e.width;ib(l.start)&&(s=l.start),e.fullSize?Pw(e,s,r.top,a,n.outerHeight-r.bottom-r.top):Pw(e,s,t.top+l.placed,a,o),l.start=s,l.placed+=o,s=e.right}}t.x=s,t.y=a}var Rw={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=Rv(e.options.layout.padding),s=Math.max(t-r.width,0),a=Math.max(n-r.height,0),i=function(e){const t=function(e){const t=[];let n,o,r,s,a,i;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],({position:s,options:{stack:a,stackWeight:i=1}}=r),t.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&s+a,stackWeight:i});return t}(e),n=Sw(t.filter((e=>e.box.fullSize)),!0),o=Sw(ww(t,"left"),!0),r=Sw(ww(t,"right")),s=Sw(ww(t,"top"),!0),a=Sw(ww(t,"bottom")),i=kw(t,"x"),l=kw(t,"y");return{fullSize:n,leftAndTop:o.concat(s),rightAndBottom:r.concat(l).concat(a).concat(i),chartArea:ww(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:s.concat(a).concat(i)}}(e.boxes),l=i.vertical,c=i.horizontal;Gx(e.boxes,(e=>{"function"===typeof e.beforeLayout&&e.beforeLayout()}));const d=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,u=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/d,hBoxMaxHeight:a/2}),p=Object.assign({},r);Aw(p,Rv(o));const h=Object.assign({maxPadding:p,w:s,h:a,x:r.left,y:r.top},r),f=jw(l.concat(c),u);_w(i.fullSize,h,u,f),_w(l,h,u,f),_w(c,h,u,f)&&_w(l,h,u,f),function(e){const t=e.maxPadding;function n(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),Mw(i.leftAndTop,h,u,f),h.x+=h.w,h.y+=h.h,Mw(i.rightAndBottom,h,u,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Gx(i.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class Ow{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,o){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,o?Math.floor(t/o):n)}}isAttached(e){return!0}updateConfig(e){}}class Tw extends Ow{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Lw="$chartjs",Iw={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Dw=e=>null===e||""===e;const zw=!!hy&&{passive:!0};function Fw(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,zw)}function Bw(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Ww(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Bw(n.addedNodes,o),t=t&&!Bw(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Uw(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Bw(n.removedNodes,o),t=t&&!Bw(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Hw=new Map;let Vw=0;function Kw(){const e=window.devicePixelRatio;e!==Vw&&(Vw=e,Hw.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function qw(e,t,n){const o=e.canvas,r=o&&ry(o);if(!r)return;const s=Wb(((e,t)=>{const o=r.clientWidth;n(e,t),o<r.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,o=t.contentRect.height;0===n&&0===o||s(n,o)}));return a.observe(r),function(e,t){Hw.size||window.addEventListener("resize",Kw),Hw.set(e,t)}(e,s),a}function $w(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Hw.delete(e),Hw.size||window.removeEventListener("resize",Kw)}(e)}function Jw(e,t,n){const o=e.canvas,r=Wb((t=>{null!==e.ctx&&n(function(e,t){const n=Iw[e.type]||e.type,{x:o,y:r}=cy(e,t);return{type:n,chart:t,native:e,x:void 0!==o?o:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,zw)}(o,t,r),r}class Yw extends Ow{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[Lw]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Dw(r)){const t=fy(e,"width");void 0!==t&&(e.width=t)}if(Dw(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=fy(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[Lw])return!1;const n=t[Lw].initial;["height","width"].forEach((e=>{const o=n[e];Ux(o)?t.removeAttribute(e):t.setAttribute(e,o)}));const o=n.style||{};return Object.keys(o).forEach((e=>{t.style[e]=o[e]})),t.width=t.width,delete t[Lw],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:Ww,detach:Uw,resize:qw}[t]||Jw;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:$w,detach:$w,resize:$w}[t]||Fw)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return uy(e,t,n,o)}isAttached(e){const t=e&&ry(e);return!(!t||!t.isConnected)}}class Gw{constructor(){i(this,"x",void 0),i(this,"y",void 0),i(this,"active",!1),i(this,"options",void 0),i(this,"$animations",void 0)}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return kb(this.x)&&kb(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const o={};return e.forEach((e=>{o[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),o}}function Xw(e,t){const n=e.options.ticks,o=function(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}(e),r=Math.min(n.maxTicksLimit||o,o),s=n.major.enabled?function(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}(t):[],a=s.length,i=s[0],l=s[a-1],c=[];if(a>r)return function(e,t,n,o){let r,s=0,a=n[0];for(o=Math.ceil(o),r=0;r<e.length;r++)r===a&&(t.push(e[r]),s++,a=n[s*o])}(t,c,s,a/r),c;const d=function(e,t,n){const o=function(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}(e),r=t.length/n;if(!o)return Math.max(r,1);const s=function(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o===0&&(t.push(o),t.push(e/o));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(o);for(let a=0,i=s.length-1;a<i;a++){const e=s[a];if(e>r)return e}return Math.max(r,1)}(s,t,r);if(a>0){let e,n;const o=a>1?Math.round((l-i)/(a-1)):null;for(Zw(t,c,d,Ux(o)?0:i-o,i),e=0,n=a-1;e<n;e++)Zw(t,c,d,s[e],s[e+1]);return Zw(t,c,d,l,Ux(o)?t.length:l+o),c}return Zw(t,c,d),c}function Zw(e,t,n,o,r){const s=$x(o,0),a=Math.min($x(r,e.length),e.length);let i,l,c,d=0;for(n=Math.ceil(n),r&&(i=r-o,n=i/Math.floor(i/n)),c=s;c<0;)d++,c=Math.round(s+d*n);for(l=Math.max(s,0);l<a;l++)l===c&&(t.push(e[l]),d++,c=Math.round(s+d*n))}i(Gw,"defaults",{}),i(Gw,"defaultRoutes",void 0);const Qw=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,ek=(e,t)=>Math.min(t||e,e);function tk(e,t){const n=[],o=e.length/t,r=e.length;let s=0;for(;s<r;s+=o)n.push(e[Math.floor(s)]);return n}function nk(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),s=e._startPixel,a=e._endPixel,i=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===o?Math.max(c-s,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<s-i||c>a+i)))return c}function ok(e){return e.drawTicks?e.tickLength:0}function rk(e,t){if(!e.display)return 0;const n=Ov(e.font,t),o=Rv(e.padding);return(Hx(e.text)?e.text.length:1)*n.lineHeight+o.height}function sk(e,t,n){let o=Ub(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class ak extends Gw{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:o}=this;return e=qx(e,Number.POSITIVE_INFINITY),t=qx(t,Number.NEGATIVE_INFINITY),n=qx(n,Number.POSITIVE_INFINITY),o=qx(o,Number.NEGATIVE_INFINITY),{min:qx(e,n),max:qx(t,o),minDefined:Kx(e),maxDefined:Kx(t)}}getMinMax(e){let t,{min:n,max:o,minDefined:r,maxDefined:s}=this.getUserBounds();if(r&&s)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let i=0,l=a.length;i<l;++i)t=a[i].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),s||(o=Math.max(o,t.max));return n=s&&n>o?o:n,o=r&&n>o?n:o,{min:qx(n,qx(o,n)),max:qx(o,qx(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.chartArea;return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Yx(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:o,grace:r,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:o,max:r}=e,s=Jx(t,(r-o)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(o,-Math.abs(s)),max:a(r,s)}}(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const i=a<this.ticks.length;this._convertTicksToLabels(i?tk(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=Xw(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),i&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Yx(this.options.afterUpdate,[this])}beforeSetDimensions(){Yx(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Yx(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Yx(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Yx(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,o,r;for(n=0,o=e.length;n<o;n++)r=e[n],r.label=Yx(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){Yx(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Yx(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=ek(this.ticks.length,e.ticks.maxTicksLimit),o=t.minRotation||0,r=t.maxRotation;let s,a,i,l=o;if(!this._isVisible()||!t.display||o>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,p=Rb(this.chart.width-d,0,this.maxWidth);s=e.offset?this.maxWidth/n:p/(n-1),d+6>s&&(s=p/(n-(e.offset?.5:1)),a=this.maxHeight-ok(e.grid)-t.padding-rk(e.title,this.chart.options.font),i=Math.sqrt(d*d+u*u),l=Cb(Math.min(Math.asin(Rb((c.highest.height+6)/s,-1,1)),Math.asin(Rb(a/i,-1,1))-Math.asin(Rb(u/i,-1,1)))),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Yx(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Yx(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:o,grid:r}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const s=rk(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=ok(r)+s):(e.height=this.maxHeight,e.width=ok(r)+s),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:s}=this._getLabelSizes(),i=2*n.padding,l=jb(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(a){const t=n.mirror?0:d*r.width+c*s.height;e.height=Math.min(this.maxHeight,e.height+t+i)}else{const t=n.mirror?0:c*r.width+d*s.height;e.width=Math.min(this.maxWidth,e.width+t+i)}this._calculatePadding(t,o,d,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,o){const{ticks:{align:r,padding:s},position:a}=this.options,i=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,u=0;i?l?(d=o*e.width,u=n*t.height):(d=n*e.height,u=o*t.width):"start"===r?u=t.width:"end"===r?d=e.width:"inner"!==r&&(d=e.width/2,u=t.width/2),this.paddingLeft=Math.max((d-a+s)*this.width/(this.width-a),0),this.paddingRight=Math.max((u-c+s)*this.width/(this.width-c),0)}else{let n=t.height/2,o=e.height/2;"start"===r?(n=0,o=e.height):"end"===r&&(n=t.height,o=0),this.paddingTop=n+s,this.paddingBottom=o+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Yx(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)Ux(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=tk(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:o,_longestTextCache:r}=this,s=[],a=[],i=Math.floor(t/ek(t,n));let l,c,d,u,p,h,f,m,g,x,b,v=0,y=0;for(l=0;l<t;l+=i){if(u=e[l].label,p=this._resolveTickFontOptions(l),o.font=h=p.string,f=r[h]=r[h]||{data:{},gc:[]},m=p.lineHeight,g=x=0,Ux(u)||Hx(u)){if(Hx(u))for(c=0,d=u.length;c<d;++c)b=u[c],Ux(b)||Hx(b)||(g=uv(o,f.data,f.gc,g,b),x+=m)}else g=uv(o,f.data,f.gc,g,u),x=m;s.push(g),a.push(x),v=Math.max(g,v),y=Math.max(x,y)}!function(e,t){Gx(e,(e=>{const n=e.gc,o=n.length/2;let r;if(o>t){for(r=0;r<o;++r)delete e.data[n[r]];n.splice(0,o)}}))}(r,t);const w=s.indexOf(v),k=a.indexOf(y),S=e=>({width:s[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(w),highest:S(k),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return function(e){return Rb(e,-32768,32767)}(this._alignToPixels?hv(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return Lv(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=Lv(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=jb(this.labelRotation),n=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),r=this._getLabelSizes(),s=e.autoSkipPadding||0,a=r?r.widest.width+s:0,i=r?r.highest.height+s:0;return this.isHorizontal()?i*n>a*o?a/n:i/o:i*o<a*n?i/n:a/o}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,o=this.options,{grid:r,position:s,border:a}=o,i=r.offset,l=this.isHorizontal(),c=this.ticks.length+(i?1:0),d=ok(r),u=[],p=a.setContext(this.getContext()),h=p.display?p.width:0,f=h/2,m=function(e){return hv(n,e,h)};let g,x,b,v,y,w,k,S,j,C,A,N;if("top"===s)g=m(this.bottom),w=this.bottom-d,S=g-f,C=m(e.top)+f,N=e.bottom;else if("bottom"===s)g=m(this.top),C=e.top,N=m(e.bottom)-f,w=g+f,S=this.top+d;else if("left"===s)g=m(this.right),y=this.right-d,k=g-f,j=m(e.left)+f,A=e.right;else if("right"===s)g=m(this.left),j=e.left,A=m(e.right)-f,y=g+f,k=this.left+d;else if("x"===t){if("center"===s)g=m((e.top+e.bottom)/2+.5);else if(Vx(s)){const e=Object.keys(s)[0],t=s[e];g=m(this.chart.scales[e].getPixelForValue(t))}C=e.top,N=e.bottom,w=g+f,S=w+d}else if("y"===t){if("center"===s)g=m((e.left+e.right)/2);else if(Vx(s)){const e=Object.keys(s)[0],t=s[e];g=m(this.chart.scales[e].getPixelForValue(t))}y=g-f,k=y-d,j=e.left,A=e.right}const E=$x(o.ticks.maxTicksLimit,c),_=Math.max(1,Math.ceil(c/E));for(x=0;x<c;x+=_){const e=this.getContext(x),t=r.setContext(e),o=a.setContext(e),s=t.lineWidth,c=t.color,d=o.dash||[],p=o.dashOffset,h=t.tickWidth,f=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;b=nk(this,x,i),void 0!==b&&(v=hv(n,b,s),l?y=k=j=A=v:w=S=C=N=v,u.push({tx1:y,ty1:w,tx2:k,ty2:S,x1:j,y1:C,x2:A,y2:N,width:s,color:c,borderDash:d,borderDashOffset:p,tickWidth:h,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,u}_computeLabelItems(e){const t=this.axis,n=this.options,{position:o,ticks:r}=n,s=this.isHorizontal(),a=this.ticks,{align:i,crossAlign:l,padding:c,mirror:d}=r,u=ok(n.grid),p=u+c,h=d?-c:p,f=-jb(this.labelRotation),m=[];let g,x,b,v,y,w,k,S,j,C,A,N,E="middle";if("top"===o)w=this.bottom-h,k=this._getXAxisLabelAlignment();else if("bottom"===o)w=this.top+h,k=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(u);k=e.textAlign,y=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(u);k=e.textAlign,y=e.x}else if("x"===t){if("center"===o)w=(e.top+e.bottom)/2+p;else if(Vx(o)){const e=Object.keys(o)[0],t=o[e];w=this.chart.scales[e].getPixelForValue(t)+p}k=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)y=(e.left+e.right)/2-p;else if(Vx(o)){const e=Object.keys(o)[0],t=o[e];y=this.chart.scales[e].getPixelForValue(t)}k=this._getYAxisLabelAlignment(u).textAlign}"y"===t&&("start"===i?E="top":"end"===i&&(E="bottom"));const _=this._getLabelSizes();for(g=0,x=a.length;g<x;++g){b=a[g],v=b.label;const e=r.setContext(this.getContext(g));S=this.getPixelForTick(g)+r.labelOffset,j=this._resolveTickFontOptions(g),C=j.lineHeight,A=Hx(v)?v.length:1;const t=A/2,n=e.color,i=e.textStrokeColor,c=e.textStrokeWidth;let u,p=k;if(s?(y=S,"inner"===k&&(p=g===x-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),N="top"===o?"near"===l||0!==f?-A*C+C/2:"center"===l?-_.highest.height/2-t*C+C:-_.highest.height+C/2:"near"===l||0!==f?C/2:"center"===l?_.highest.height/2-t*C:_.highest.height-A*C,d&&(N*=-1),0===f||e.showLabelBackdrop||(y+=C/2*Math.sin(f))):(w=S,N=(1-A)*C/2),e.showLabelBackdrop){const t=Rv(e.backdropPadding),n=_.heights[g],o=_.widths[g];let r=N-t.top,s=0-t.left;switch(E){case"middle":r-=n/2;break;case"bottom":r-=n}switch(k){case"center":s-=o/2;break;case"right":s-=o;break;case"inner":g===x-1?s-=o:g>0&&(s-=o/2)}u={left:s,top:r,width:o+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:v,font:j,textOffset:N,options:{rotation:f,color:n,strokeColor:i,strokeWidth:c,textAlign:p,textBaseline:E,translation:[y,w],backdrop:u}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-jb(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:o,padding:r}}=this.options,s=e+r,a=this._getLabelSizes().widest.width;let i,l;return"left"===t?o?(l=this.right+r,"near"===n?i="left":"center"===n?(i="center",l+=a/2):(i="right",l+=a)):(l=this.right-s,"near"===n?i="right":"center"===n?(i="center",l-=a/2):(i="left",l=this.left)):"right"===t?o?(l=this.left+r,"near"===n?i="right":"center"===n?(i="center",l-=a/2):(i="left",l-=a)):(l=this.left+s,"near"===n?i="left":"center"===n?(i="center",l+=a/2):(i="right",l=this.right)):i="right",{textAlign:i,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:o,width:r,height:s}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,o,r,s),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,s;const a=(e,t,o)=>{o.width&&o.color&&(n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.setLineDash(o.borderDash||[]),n.lineDashOffset=o.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,s=o.length;r<s;++r){const e=o[r];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:o}}=this,r=n.setContext(this.getContext()),s=n.display?r.width:0;if(!s)return;const a=o.setContext(this.getContext(0)).lineWidth,i=this._borderValue;let l,c,d,u;this.isHorizontal()?(l=hv(e,this.left,s)-s/2,c=hv(e,this.right,a)+a/2,d=u=i):(d=hv(e,this.top,s)-s/2,u=hv(e,this.bottom,a)+a/2,l=c=i),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,d),t.lineTo(c,u),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&bv(t,n);const o=this.getLabelItems(e);for(const r of o){const e=r.options,n=r.font;jv(t,r.label,0,r.textOffset,n,e)}n&&vv(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=Ov(n.font),s=Rv(n.padding),a=n.align;let i=r.lineHeight/2;"bottom"===t||"center"===t||Vx(t)?(i+=s.bottom,Hx(n.text)&&(i+=r.lineHeight*(n.text.length-1))):i+=s.top;const{titleX:l,titleY:c,maxWidth:d,rotation:u}=function(e,t,n,o){const{top:r,left:s,bottom:a,right:i,chart:l}=e,{chartArea:c,scales:d}=l;let u,p,h,f=0;const m=a-r,g=i-s;if(e.isHorizontal()){if(p=Hb(o,s,i),Vx(n)){const e=Object.keys(n)[0],o=n[e];h=d[e].getPixelForValue(o)+m-t}else h="center"===n?(c.bottom+c.top)/2+m-t:Qw(e,n,t);u=i-s}else{if(Vx(n)){const e=Object.keys(n)[0],o=n[e];p=d[e].getPixelForValue(o)-g+t}else p="center"===n?(c.left+c.right)/2-g+t:Qw(e,n,t);h=Hb(o,a,r),f="left"===n?-mb:mb}return{titleX:p,titleY:h,maxWidth:u,rotation:f}}(this,i,t,a);jv(e,n.text,0,0,r,{color:n.color,maxWidth:d,rotation:u,textAlign:sk(a,t,o),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=$x(e.grid&&e.grid.z,-1),o=$x(e.border&&e.border.z,0);return this._isVisible()&&this.draw===ak.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let r,s;for(r=0,s=t.length;r<s;++r){const s=t[r];s[n]!==this.id||e&&s.type!==e||o.push(s)}return o}_resolveTickFontOptions(e){return Ov(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class ik{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const o=this.items,r=e.id,s=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in o||(o[r]=e,function(e,t,n){const o=tb(Object.create(null),[n?dv.get(n):{},dv.get(t),e.defaults]);dv.set(t,o),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const o=n.split("."),r=o.pop(),s=[e].concat(o).join("."),a=t[n].split("."),i=a.pop(),l=a.join(".");dv.route(s,r,l,i)}))}(t,e.defaultRoutes);e.descriptors&&dv.describe(t,e.descriptors)}(e,s,n),this.override&&dv.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,o=this.scope;n in t&&delete t[n],o&&n in dv[o]&&(delete dv[o][n],this.override&&delete sv[n])}}class lk{constructor(){this.controllers=new ik($y,"datasets",!0),this.elements=new ik(Gw,"elements"),this.plugins=new ik(Object,"plugins"),this.scales=new ik(ak,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}remove(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}addControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}addElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}addPlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}addScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}removeElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}removePlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}removeScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}_each(e,t,n){[...t].forEach((t=>{const o=n||this._getRegistryForType(t);n||o.isForType(t)||o===this.plugins&&t.id?this._exec(e,o,t):Gx(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=ab(e);Yx(n["before"+o],[],n),t[e](n),Yx(n["after"+o],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const o=t.get(e);if(void 0===o)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var ck=new lk;class dk{constructor(){this._init=[]}notify(e,t,n,o){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=o?this._descriptors(e).filter(o):this._descriptors(e),s=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,t,n,o){o=o||{};for(const r of e){const e=r.plugin;if(!1===Yx(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){Ux(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,o=$x(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(ck.plugins.items);for(let s=0;s<o.length;s++)n.push(ck.getPlugin(o[s]));const r=e.plugins||[];for(let s=0;s<r.length;s++){const e=r[s];-1===n.indexOf(e)&&(n.push(e),t[e.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==o||t?function(e,t,n,o){let{plugins:r,localIds:s}=t;const a=[],i=e.getContext();for(const l of r){const t=l.id,r=uk(n[t],o);null!==r&&a.push({plugin:l,options:pk(e.config,{plugin:l,local:s[t]},r,i)})}return a}(e,r,o,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,o=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(o(t,n),e,"stop"),this._notify(o(n,t),e,"start")}}function uk(e,t){return t||!1!==e?!0===e?{}:e:null}function pk(e,t,n,o){let{plugin:r,local:s}=t;const a=e.pluginScopeKeys(r),i=e.getOptionScopes(n,a);return s&&r.defaults&&i.push(r.defaults),e.createResolver(i,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hk(e,t){const n=dv.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function fk(e){if("x"===e||"y"===e||"r"===e)return e}function mk(e){if(fk(e))return e;for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(const s of n){const t=s.axis||("top"===(r=s.position)||"bottom"===r?"x":"left"===r||"right"===r?"y":void 0)||e.length>1&&fk(e[0].toLowerCase());if(t)return t}var r;throw new Error("Cannot determine type of '".concat(e,"' axis. Please provide 'axis' or 'position' option."))}function gk(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function xk(e,t){const n=sv[e.type]||{scales:{}},o=t.scales||{},r=hk(e.type,t),s=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!Vx(a))return console.error("Invalid scale configuration for scale: ".concat(t));if(a._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(t));const i=mk(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return gk(e,"x",n[0])||gk(e,"y",n[0])}return{}}(t,e),dv.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(i,r),c=n.scales||{};s[t]=nb(Object.create(null),[{axis:i},a,c[i],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||hk(r,t),i=(sv[r]||{}).scales||{};Object.keys(i).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),r=n[t+"AxisID"]||t;s[r]=s[r]||Object.create(null),nb(s[r],[{axis:t},o[r],i[e]])}))})),Object.keys(s).forEach((e=>{const t=s[e];nb(t,[dv.scales[t.type],dv.scale])})),s}function bk(e){const t=e.options||(e.options={});t.plugins=$x(t.plugins,{}),t.scales=xk(e,t)}function vk(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const yk=new Map,wk=new Set;function kk(e,t){let n=yk.get(e);return n||(n=t(),yk.set(e,n),wk.add(n)),n}const Sk=(e,t,n)=>{const o=sb(t,n);void 0!==o&&e.add(o)};class jk{constructor(e){this._config=function(e){return(e=e||{}).data=vk(e.data),bk(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=vk(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),bk(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return kk(e,(()=>[["datasets.".concat(e),""]]))}datasetAnimationScopeKeys(e,t){return kk("".concat(e,".transition.").concat(t),(()=>[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]))}datasetElementScopeKeys(e,t){return kk("".concat(e,"-").concat(t),(()=>[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]))}pluginScopeKeys(e){const t=e.id,n=this.type;return kk("".concat(n,"-plugin-").concat(t),(()=>[["plugins.".concat(t),...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let o=n.get(e);return o&&!t||(o=new Map,n.set(e,o)),o}getOptionScopes(e,t,n){const{options:o,type:r}=this,s=this._cachedScopes(e,n),a=s.get(t);if(a)return a;const i=new Set;t.forEach((t=>{e&&(i.add(e),t.forEach((t=>Sk(i,e,t)))),t.forEach((e=>Sk(i,o,e))),t.forEach((e=>Sk(i,sv[r]||{},e))),t.forEach((e=>Sk(i,dv,e))),t.forEach((e=>Sk(i,av,e)))}));const l=Array.from(i);return 0===l.length&&l.push(Object.create(null)),wk.has(t)&&s.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,sv[t]||{},dv.datasets[t]||{},{type:t},dv,av]}resolveNamedOptions(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""];const r={$shared:!0},{resolver:s,subPrefixes:a}=Ck(this._resolverCache,e,o);let i=s;if(function(e,t){const{isScriptable:n,isIndexable:o}=zv(e);for(const r of t){const t=n(r),s=o(r),a=(s||t)&&e[r];if(t&&(lb(a)||Ak(a))||s&&Hx(a))return!0}return!1}(s,t)){r.$shared=!1;i=Dv(s,n=lb(n)?n():n,this.createResolver(e,n,a))}for(const l of t)r[l]=i[l];return r}createResolver(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],o=arguments.length>3?arguments[3]:void 0;const{resolver:r}=Ck(this._resolverCache,e,n);return Vx(t)?Dv(r,t,void 0,o):r}}function Ck(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let s=o.get(r);if(!s){s={resolver:Iv(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,s)}return s}const Ak=e=>Vx(e)&&Object.getOwnPropertyNames(e).some((t=>lb(e[t])));const Nk=["top","bottom","left","right","chartArea"];function Ek(e,t){return"top"===e||"bottom"===e||-1===Nk.indexOf(e)&&"x"===t}function _k(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function Pk(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Yx(n&&n.onComplete,[e],t)}function Mk(e){const t=e.chart,n=t.options.animation;Yx(n&&n.onProgress,[e],t)}function Rk(e){return oy()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Ok={},Tk=e=>{const t=Rk(e);return Object.values(Ok).filter((e=>e.canvas===t)).pop()};function Lk(e,t,n){const o=Object.keys(e);for(const r of o){const o=+r;if(o>=t){const s=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=s)}}}class Ik{static register(){ck.add(...arguments),Dk()}static unregister(){ck.remove(...arguments),Dk()}constructor(e,t){const n=this.config=new jk(t),o=Rk(e),r=Tk(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!oy()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Tw:Yw}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,s.aspectRatio),i=a&&a.canvas,l=i&&i.height,c=i&&i.width;this.id=Wx(),this.ctx=a,this.canvas=i,this.width=c,this.height=l,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dk,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(){for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}((e=>this.update(e)),s.resizeDelay||0),this._dataChanges=[],Ok[this.id]=this,a&&i?(My.listen(this,"complete",Pk),My.listen(this,"progress",Mk),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:o,_aspectRatio:r}=this;return Ux(e)?t&&r?r:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return ck}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():py(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return fv(this.canvas,this.ctx),this}stop(){return My.stop(this),this}resize(e,t){My.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),i=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,py(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Yx(n.onResize,[this,s],this),this.attached&&this._doResize(i)&&this.render())}ensureScalesHaveIDs(){Gx(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,o=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],o=mk(e,n),r="r"===o,s="x"===o;return{options:n,dposition:r?"chartArea":s?"bottom":"left",dtype:r?"radialLinear":s?"category":"linear"}})))),Gx(r,(t=>{const r=t.options,s=r.id,a=mk(s,r),i=$x(r.type,t.dtype);void 0!==r.position&&Ek(r.position,a)===Ek(t.dposition)||(r.position=t.dposition),o[s]=!0;let l=null;if(s in n&&n[s].type===i)l=n[s];else{l=new(ck.getScale(i))({id:s,type:i,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),Gx(o,((e,t)=>{e||delete n[t]})),Gx(n,(e=>{Rw.configure(this,e,e.options),Rw.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(_k("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=t.length;n<o;n++){const o=t[n];let r=this.getDatasetMeta(n);const s=o.type||this.config.type;if(r.type&&r.type!==s&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=s,r.indexAxis=o.indexAxis||hk(s,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=ck.getController(s),{datasetElementType:o,dataElementType:a}=dv.datasets[s];Object.assign(t,{dataElementType:ck.getElement(a),datasetElementType:o&&ck.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){Gx(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:e}=this.getDatasetMeta(l),t=!o&&-1===r.indexOf(e);e.buildOrUpdateElements(t),s=Math.max(+e.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),o||Gx(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(_k("z","_idx"));const{_active:a,_lastEvent:i}=this;i?this._eventHandler(i,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Gx(this.scales,(e=>{Rw.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);cb(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:r}of t){Lk(e,o,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),o=n(0);for(let r=1;r<t;r++)if(!cb(o,n(r)))return;return Array.from(o).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Rw.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Gx(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,lb(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(t),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(My.has(this)?this.attached&&!My.running(this)&&My.start(this):(this.draw(),Pk({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let o,r;for(o=0,r=t.length;o<r;++o){const r=t[o];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n={meta:e,index:e.index,cancelable:!0},o=_y(this,e);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(o&&bv(t,o),e.controller.draw(),o&&vv(t),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(e){return xv(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=vw.modes[t];return"function"===typeof r?r(this,e,n,o):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let o=n.filter((e=>e&&e._dataset===t)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Lv(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const o=n?"show":"hide",r=this.getDatasetMeta(e),s=r.controller._resolveAnimations(void 0,o);ib(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),My.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),fv(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Ok[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(){return this.canvas.toDataURL(...arguments)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Gx(this.options.events,(e=>n(e,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(n,o)=>{e[n]&&(t.removeEventListener(this,n,o),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let s;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",s)};s=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():s()}unbindEvents(){Gx(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Gx(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const o=n?"set":"remove";let r,s,a,i;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),a=0,i=e.length;a<i;++a){s=e[a];const t=s&&this.getDatasetMeta(s.datasetIndex).controller;t&&t[o+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((e=>{let{datasetIndex:t,index:n}=e;const o=this.getDatasetMeta(t);if(!o)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:o.data[n],index:n}}));!Xx(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const o=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),s=r(t,e),a=n?e:r(e,t);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},o=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:o=[],options:r}=this,s=t,a=this._getActiveElements(e,o,n,s),i=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,o){return n&&"mouseout"!==e.type?o?t:e:null}(e,this._lastEvent,n,i);n&&(this._lastEvent=null,Yx(r.onHover,[e,a,this],this),i&&Yx(r.onClick,[e,a,this],this));const c=!Xx(a,o);return(c||t)&&(this._active=a,this._updateHoverStyles(a,o,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,o){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,o)}}function Dk(){return Gx(Ik.instances,(e=>e._plugins.invalidate()))}function zk(e,t,n,o){const r=function(e){return _v(e,["outerStart","outerEnd","innerStart","innerEnd"])}(e.options.borderRadius),s=(n-t)/2,a=Math.min(s,o*t/2),i=e=>{const t=(n-Math.min(s,e))*o/2;return Rb(e,0,Math.min(s,t))};return{outerStart:i(r.outerStart),outerEnd:i(r.outerEnd),innerStart:Rb(r.innerStart,0,a),innerEnd:Rb(r.innerEnd,0,a)}}function Fk(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function Bk(e,t,n,o,r,s){const{x:a,y:i,startAngle:l,pixelMargin:c,innerRadius:d}=t,u=Math.max(t.outerRadius+o+n-c,0),p=d>0?d+o+n+c:0;let h=0;const f=r-l;if(o){const e=((d>0?d-o:0)+(u>0?u-o:0))/2;h=(f-(0!==e?f*e/(e+o):f))/2}const m=(f-Math.max(.001,f*u-n/db)/u)/2,g=l+m+h,x=r-m-h,{outerStart:b,outerEnd:v,innerStart:y,innerEnd:w}=zk(t,p,u,x-g),k=u-b,S=u-v,j=g+b/k,C=x-v/S,A=p+y,N=p+w,E=g+y/A,_=x-w/N;if(e.beginPath(),s){const t=(j+C)/2;if(e.arc(a,i,u,j,t),e.arc(a,i,u,t,C),v>0){const t=Fk(S,C,a,i);e.arc(t.x,t.y,v,C,x+mb)}const n=Fk(N,x,a,i);if(e.lineTo(n.x,n.y),w>0){const t=Fk(N,_,a,i);e.arc(t.x,t.y,w,x+mb,_+Math.PI)}const o=(x-w/p+(g+y/p))/2;if(e.arc(a,i,p,x-w/p,o,!0),e.arc(a,i,p,o,g+y/p,!0),y>0){const t=Fk(A,E,a,i);e.arc(t.x,t.y,y,E+Math.PI,g-mb)}const r=Fk(k,g,a,i);if(e.lineTo(r.x,r.y),b>0){const t=Fk(k,j,a,i);e.arc(t.x,t.y,b,g-mb,j)}}else{e.moveTo(a,i);const t=Math.cos(j)*u+a,n=Math.sin(j)*u+i;e.lineTo(t,n);const o=Math.cos(C)*u+a,r=Math.sin(C)*u+i;e.lineTo(o,r)}e.closePath()}function Wk(e,t,n,o,r){const{fullCircles:s,startAngle:a,circumference:i,options:l}=t,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:p}=l,h="inner"===l.borderAlign;if(!c)return;e.setLineDash(u||[]),e.lineDashOffset=p,h?(e.lineWidth=2*c,e.lineJoin=d||"round"):(e.lineWidth=c,e.lineJoin=d||"bevel");let f=t.endAngle;if(s){Bk(e,t,n,o,f,r);for(let t=0;t<s;++t)e.stroke();isNaN(i)||(f=a+(i%ub||ub))}h&&function(e,t,n){const{startAngle:o,pixelMargin:r,x:s,y:a,outerRadius:i,innerRadius:l}=t;let c=r/i;e.beginPath(),e.arc(s,a,i,o-c,n+c),l>r?(c=r/l,e.arc(s,a,l,n+c,o-c,!0)):e.arc(s,a,r,n+mb,o-mb),e.closePath(),e.clip()}(e,t,f),s||(Bk(e,t,n,o,f,r),e.stroke())}i(Ik,"defaults",dv),i(Ik,"instances",Ok),i(Ik,"overrides",sv),i(Ik,"registry",ck),i(Ik,"version","4.4.9"),i(Ik,"getChart",Tk);class Uk extends Gw{constructor(e){super(),i(this,"circumference",void 0),i(this,"endAngle",void 0),i(this,"fullCircles",void 0),i(this,"innerRadius",void 0),i(this,"outerRadius",void 0),i(this,"pixelMargin",void 0),i(this,"startAngle",void 0),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.getProps(["x","y"],n),{angle:r,distance:s}=Nb(o,{x:e,y:t}),{startAngle:a,endAngle:i,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),u=(this.options.spacing+this.options.borderWidth)/2,p=$x(d,i-a),h=Mb(r,a,i)&&a!==i,f=p>=ub||h,m=Ob(s,l+u,c+u);return f&&m}getCenterPoint(e){const{x:t,y:n,startAngle:o,endAngle:r,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:i,spacing:l}=this.options,c=(o+r)/2,d=(s+a+l+i)/2;return{x:t+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,o=(t.offset||0)/4,r=(t.spacing||0)/2,s=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>ub?Math.floor(n/ub):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*o,Math.sin(a)*o);const i=o*(1-Math.sin(Math.min(db,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,o,r){const{fullCircles:s,startAngle:a,circumference:i}=t;let l=t.endAngle;if(s){Bk(e,t,n,o,l,r);for(let t=0;t<s;++t)e.fill();isNaN(i)||(l=a+(i%ub||ub))}Bk(e,t,n,o,l,r),e.fill()}(e,this,i,r,s),Wk(e,this,i,r,s),e.restore()}}function Hk(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=$x(n.borderCapStyle,t.borderCapStyle),e.setLineDash($x(n.borderDash,t.borderDash)),e.lineDashOffset=$x(n.borderDashOffset,t.borderDashOffset),e.lineJoin=$x(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=$x(n.borderWidth,t.borderWidth),e.strokeStyle=$x(n.borderColor,t.borderColor)}function Vk(e,t,n){e.lineTo(n.x,n.y)}function Kk(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=e.length,{start:r=0,end:s=o-1}=n,{start:a,end:i}=t,l=Math.max(r,a),c=Math.min(s,i),d=r<a&&s<a||r>i&&s>i;return{count:o,start:l,loop:t.loop,ilen:c<l&&!d?o+c-l:c-l}}function qk(e,t,n,o){const{points:r,options:s}=t,{count:a,start:i,loop:l,ilen:c}=Kk(r,n,o),d=function(e){return e.stepped?yv:e.tension||"monotone"===e.cubicInterpolationMode?wv:Vk}(s);let u,p,h,{move:f=!0,reverse:m}=o||{};for(u=0;u<=c;++u)p=r[(i+(m?c-u:u))%a],p.skip||(f?(e.moveTo(p.x,p.y),f=!1):d(e,h,p,m,s.stepped),h=p);return l&&(p=r[(i+(m?c:0))%a],d(e,h,p,m,s.stepped)),!!l}function $k(e,t,n,o){const r=t.points,{count:s,start:a,ilen:i}=Kk(r,n,o),{move:l=!0,reverse:c}=o||{};let d,u,p,h,f,m,g=0,x=0;const b=e=>(a+(c?i-e:e))%s,v=()=>{h!==f&&(e.lineTo(g,f),e.lineTo(g,h),e.lineTo(g,m))};for(l&&(u=r[b(0)],e.moveTo(u.x,u.y)),d=0;d<=i;++d){if(u=r[b(d)],u.skip)continue;const t=u.x,n=u.y,o=0|t;o===p?(n<h?h=n:n>f&&(f=n),g=(x*g+t)/++x):(v(),e.lineTo(t,n),p=o,x=0,h=f=n),m=n}v()}function Jk(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?$k:qk}i(Uk,"id","arc"),i(Uk,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),i(Uk,"defaultRoutes",{backgroundColor:"backgroundColor"}),i(Uk,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e});const Yk="function"===typeof Path2D;function Gk(e,t,n,o){Yk&&!t.options.segment?function(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),Hk(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:s}=t,a=Jk(t);for(const i of r)Hk(e,s,i.style),e.beginPath(),a(e,t,i,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}(e,t,n,o)}class Xk extends Gw{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;ny(this._points,n,e,o,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const s=!!e._loop,{start:a,end:i}=function(e,t,n,o){let r=0,s=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(s+=r);s>r&&e[s%t].skip;)s--;return s%=t,{start:r,end:s}}(n,r,s,o);return Cy(e,!0===o?[{start:a,end:i,loop:s}]:function(e,t,n,o){const r=e.length,s=[];let a,i=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?l.skip||(o=!1,s.push({start:t%r,end:(a-1)%r,loop:o}),t=i=n.stop?a:null):(i=a,l.skip&&(t=a)),l=n}return null!==i&&s.push({start:t%r,end:i%r,loop:o}),s}(n,a,i<a?i+r:i,!!e._fullLoop&&0===a&&i===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,o=e[t],r=this.points,s=jy(this,{property:t,start:o,end:o});if(!s.length)return;const a=[],i=function(e){return e.stepped?gy:e.tension||"monotone"===e.cubicInterpolationMode?xy:my}(n);let l,c;for(l=0,c=s.length;l<c;++l){const{start:c,end:d}=s[l],u=r[c],p=r[d];if(u===p){a.push(u);continue}const h=i(u,p,Math.abs((o-u[t])/(p[t]-u[t])),n.stepped);h[t]=e[t],a.push(h)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return Jk(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=Jk(this);let s=this._loop;t=t||0,n=n||this.points.length-t;for(const a of o)s&=r(e,this,a,{start:t,end:t+n-1});return!!s}draw(e,t,n,o){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),Gk(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Zk(e,t,n,o){const r=e.options,{[n]:s}=e.getProps([n],o);return Math.abs(t-s)<r.radius+r.hitRadius}i(Xk,"id","line"),i(Xk,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),i(Xk,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),i(Xk,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e});class Qk extends Gw{constructor(e){super(),i(this,"parsed",void 0),i(this,"skip",void 0),i(this,"stop",void 0),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.options,{x:r,y:s}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-s,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,t){return Zk(this,e,"x",t)}inYRange(e,t){return Zk(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!xv(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,mv(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function eS(e,t){const{x:n,y:o,base:r,width:s,height:a}=e.getProps(["x","y","base","width","height"],t);let i,l,c,d,u;return e.horizontal?(u=a/2,i=Math.min(n,r),l=Math.max(n,r),c=o-u,d=o+u):(u=s/2,i=n-u,l=n+u,c=Math.min(o,r),d=Math.max(o,r)),{left:i,top:c,right:l,bottom:d}}function tS(e,t,n,o){return e?0:Rb(t,n,o)}function nS(e){const t=eS(e),n=t.right-t.left,o=t.bottom-t.top,r=function(e,t,n){const o=e.options.borderWidth,r=e.borderSkipped,s=Pv(o);return{t:tS(r.top,s.top,0,n),r:tS(r.right,s.right,0,t),b:tS(r.bottom,s.bottom,0,n),l:tS(r.left,s.left,0,t)}}(e,n/2,o/2),s=function(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,s=Mv(r),a=Math.min(t,n),i=e.borderSkipped,l=o||Vx(r);return{topLeft:tS(!l||i.top||i.left,s.topLeft,0,a),topRight:tS(!l||i.top||i.right,s.topRight,0,a),bottomLeft:tS(!l||i.bottom||i.left,s.bottomLeft,0,a),bottomRight:tS(!l||i.bottom||i.right,s.bottomRight,0,a)}}(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:s},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function oS(e,t,n,o){const r=null===t,s=null===n,a=e&&!(r&&s)&&eS(e,o);return a&&(r||Ob(t,a.left,a.right))&&(s||Ob(n,a.top,a.bottom))}function rS(e,t){e.rect(t.x,t.y,t.w,t.h)}function sS(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,s=(e.x+e.w!==n.x+n.w?t:0)-o,a=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+o,y:e.y+r,w:e.w+s,h:e.h+a,radius:e.radius}}i(Qk,"id","point"),i(Qk,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),i(Qk,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class aS extends Gw{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:o}}=this,{inner:r,outer:s}=nS(this),a=(i=s.radius).topLeft||i.topRight||i.bottomLeft||i.bottomRight?Cv:rS;var i;e.save(),s.w===r.w&&s.h===r.h||(e.beginPath(),a(e,sS(s,t,r)),e.clip(),a(e,sS(r,-t,s)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,sS(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return oS(this,e,t,n)}inXRange(e,t){return oS(this,e,null,t)}inYRange(e,t){return oS(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:o,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+o)/2:t,y:r?n:(n+o)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}i(aS,"id","bar"),i(aS,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),i(aS,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function iS(e,t,n,o){if(o)return;let r=t[e],s=n[e];return"angle"===e&&(r=Pb(r),s=Pb(s)),{property:e,start:r,end:s}}function lS(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function cS(e,t,n,o){return e&&t?o(e[n],t[n]):e?e[n]:t?t[n]:0}function dS(e,t){let n=[],o=!1;return Hx(e)?(o=!0,n=e):n=function(e,t){const{x:n=null,y:o=null}=e||{},r=t.points,s=[];return t.segments.forEach((e=>{let{start:t,end:a}=e;a=lS(t,a,r);const i=r[t],l=r[a];null!==o?(s.push({x:i.x,y:o}),s.push({x:l.x,y:o})):null!==n&&(s.push({x:n,y:i.y}),s.push({x:n,y:l.y}))})),s}(e,t),n.length?new Xk({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function uS(e){return e&&!1!==e.fill}function pS(e,t,n){let o=e[t].fill;const r=[t];let s;if(!n)return o;for(;!1!==o&&-1===r.indexOf(o);){if(!Kx(o))return o;if(s=e[o],!s)return!1;if(s.visible)return o;r.push(o),o=s.fill}return!1}function hS(e,t,n){const o=function(e){const t=e.options,n=t.fill;let o=$x(n&&n.target,n);void 0===o&&(o=!!t.backgroundColor);if(!1===o||null===o)return!1;if(!0===o)return"origin";return o}(e);if(Vx(o))return!isNaN(o.value)&&o;let r=parseFloat(o);return Kx(r)&&Math.floor(r)===r?function(e,t,n,o){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=o)return!1;return n}(o[0],t,r,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function fS(e,t,n){const o=[];for(let r=0;r<n.length;r++){const s=n[r],{first:a,last:i,point:l}=mS(s,t,"x");if(!(!l||a&&i))if(a)o.unshift(l);else if(e.push(l),!i)break}e.push(...o)}function mS(e,t,n){const o=e.interpolate(t,n);if(!o)return{};const r=o[n],s=e.segments,a=e.points;let i=!1,l=!1;for(let c=0;c<s.length;c++){const e=s[c],t=a[e.start][n],o=a[e.end][n];if(Ob(r,t,o)){i=r===t,l=r===o;break}}return{first:i,last:l,point:o}}class gS{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:o,y:r,radius:s}=this;return t=t||{start:0,end:ub},e.arc(o,r,s,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:o}=this,r=e.angle;return{x:t+Math.cos(r)*o,y:n+Math.sin(r)*o,angle:r}}}function xS(e){const{chart:t,fill:n,line:o}=e;if(Kx(n))return function(e,t){const n=e.getDatasetMeta(t),o=n&&e.isDatasetVisible(t);return o?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:o}=e,r=[],s=o.segments,a=o.points,i=function(e,t){const n=[],o=e.getMatchingVisibleMetas("line");for(let r=0;r<o.length;r++){const e=o[r];if(e.index===t)break;e.hidden||n.unshift(e.dataset)}return n}(t,n);i.push(dS({x:null,y:t.bottom},o));for(let l=0;l<s.length;l++){const e=s[l];for(let t=e.start;t<=e.end;t++)fS(r,a[t],i)}return new Xk({points:r,options:{}})}(e);if("shape"===n)return!0;const r=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:n}=e,o=t.options,r=t.getLabels().length,s=o.reverse?t.max:t.min,a=function(e,t,n){let o;return o="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:Vx(e)?e.value:t.getBaseValue(),o}(n,t,s),i=[];if(o.grid.circular){const e=t.getPointPositionForValue(0,s);return new gS({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(a)})}for(let l=0;l<r;++l)i.push(t.getPointPositionForValue(l,a));return i}(e);return function(e){const{scale:t={},fill:n}=e,o=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:Vx(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if(Kx(o)){const e=t.isHorizontal();return{x:e?o:null,y:e?null:o}}return null}(e)}(e);return r instanceof gS?r:dS(r,o)}function bS(e,t,n){const o=xS(t),{chart:r,index:s,line:a,scale:i,axis:l}=t,c=a.options,d=c.fill,u=c.backgroundColor,{above:p=u,below:h=u}=d||{},f=r.getDatasetMeta(s),m=_y(r,f);o&&a.points.length&&(bv(e,n),function(e,t){const{line:n,target:o,above:r,below:s,area:a,scale:i,clip:l}=t,c=n._loop?"angle":t.axis;e.save(),"x"===c&&s!==r&&(vS(e,o,a.top),yS(e,{line:n,target:o,color:r,scale:i,property:c,clip:l}),e.restore(),e.save(),vS(e,o,a.bottom));yS(e,{line:n,target:o,color:s,scale:i,property:c,clip:l}),e.restore()}(e,{line:a,target:o,above:p,below:h,area:n,scale:i,axis:l,clip:m}),vv(e))}function vS(e,t,n){const{segments:o,points:r}=t;let s=!0,a=!1;e.beginPath();for(const i of o){const{start:o,end:l}=i,c=r[o],d=r[lS(o,l,r)];s?(e.moveTo(c.x,c.y),s=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,i,{move:a}),a?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function yS(e,t){const{line:n,target:o,property:r,color:s,scale:a,clip:i}=t,l=function(e,t,n){const o=e.segments,r=e.points,s=t.points,a=[];for(const i of o){let{start:e,end:o}=i;o=lS(e,o,r);const l=iS(n,r[e],r[o],i.loop);if(!t.segments){a.push({source:i,target:l,start:r[e],end:r[o]});continue}const c=jy(t,l);for(const t of c){const e=iS(n,s[t.start],s[t.end],t.loop),o=Sy(i,r,e);for(const r of o)a.push({source:r,target:t,start:{[n]:cS(l,e,"start",Math.max)},end:{[n]:cS(l,e,"end",Math.min)}})}}return a}(n,o,r);for(const{source:c,target:d,start:u,end:p}of l){const{style:{backgroundColor:t=s}={}}=c,l=!0!==o;e.save(),e.fillStyle=t,wS(e,a,i,l&&iS(r,u,p)),e.beginPath();const h=!!n.pathSegment(e,c);let f;if(l){h?e.closePath():kS(e,o,p,r);const t=!!o.pathSegment(e,d,{move:h,reverse:!0});f=h&&t,f||kS(e,o,u,r)}e.closePath(),e.fill(f?"evenodd":"nonzero"),e.restore()}}function wS(e,t,n,o){const r=t.chart.chartArea,{property:s,start:a,end:i}=o||{};if("x"===s||"y"===s){let t,o,l,c;"x"===s?(t=a,o=r.top,l=i,c=r.bottom):(t=r.left,o=a,l=r.right,c=i),e.beginPath(),n&&(t=Math.max(t,n.left),l=Math.min(l,n.right),o=Math.max(o,n.top),c=Math.min(c,n.bottom)),e.rect(t,o,l-t,c-o),e.clip()}}function kS(e,t,n,o){const r=t.interpolate(n,o);r&&e.lineTo(r.x,r.y)}var SS={id:"filler",afterDatasetsUpdate(e,t,n){const o=(e.data.datasets||[]).length,r=[];let s,a,i,l;for(a=0;a<o;++a)s=e.getDatasetMeta(a),i=s.dataset,l=null,i&&i.options&&i instanceof Xk&&(l={visible:e.isDatasetVisible(a),index:a,fill:hS(i,a,o),chart:e,axis:s.controller.options.indexAxis,scale:s.vScale,line:i}),s.$filler=l,r.push(l);for(a=0;a<o;++a)l=r[a],l&&!1!==l.fill&&(l.fill=pS(r,a,n.propagate))},beforeDraw(e,t,n){const o="beforeDraw"===n.drawTime,r=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let a=r.length-1;a>=0;--a){const t=r[a].$filler;t&&(t.line.updateControlPoints(s,t.axis),o&&t.fill&&bS(e.ctx,t,s))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const o=e.getSortedVisibleDatasetMetas();for(let r=o.length-1;r>=0;--r){const t=o[r].$filler;uS(t)&&bS(e.ctx,t,e.chartArea)}},beforeDatasetDraw(e,t,n){const o=t.meta.$filler;uS(o)&&"beforeDatasetDraw"===n.drawTime&&bS(e.ctx,o,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const jS=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}};class CS extends Gw{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=Yx(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,o=Ov(n.font),r=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:i}=jS(n,r);let l,c;t.font=o.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(s,r,a,i)+10):(c=this.maxHeight,l=this._fitCols(s,o,a,i)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,o){const{ctx:r,maxWidth:s,options:{labels:{padding:a}}}=this,i=this.legendHitBoxes=[],l=this.lineWidths=[0],c=o+a;let d=e;r.textAlign="left",r.textBaseline="middle";let u=-1,p=-c;return this.legendItems.forEach(((e,h)=>{const f=n+t/2+r.measureText(e.text).width;(0===h||l[l.length-1]+f+2*a>s)&&(d+=c,l[l.length-(h>0?0:1)]=0,p+=c,u++),i[h]={left:0,top:p,row:u,width:f,height:o},l[l.length-1]+=f+a})),d}_fitCols(e,t,n,o){const{ctx:r,maxHeight:s,options:{labels:{padding:a}}}=this,i=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-e;let d=a,u=0,p=0,h=0,f=0;return this.legendItems.forEach(((e,s)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,o,r){const s=function(e,t,n,o){let r=e.text;r&&"string"!==typeof r&&(r=r.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+o.measureText(r).width}(o,e,t,n),a=function(e,t,n){let o=e;"string"!==typeof t.text&&(o=AS(t,n));return o}(r,o,t.lineHeight);return{itemWidth:s,itemHeight:a}}(n,t,r,e,o);s>0&&p+g+2*a>c&&(d+=u+a,l.push({width:u,height:p}),h+=u+a,f++,u=p=0),i[s]={left:h,top:p,col:f,width:m,height:g},u=Math.max(u,m),p+=g+a})),d+=u,l.push({width:u,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:o},rtl:r}}=this,s=by(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=Hb(n,this.left+o,this.right-this.lineWidths[r]);for(const i of t)r!==i.row&&(r=i.row,a=Hb(n,this.left+o,this.right-this.lineWidths[r])),i.top+=this.top+e+o,i.left=s.leftForLtr(s.x(a),i.width),a+=i.width+o}else{let r=0,a=Hb(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const i of t)i.col!==r&&(r=i.col,a=Hb(n,this.top+e+o,this.bottom-this.columnSizes[r].height)),i.top=a,i.left+=this.left+o,i.left=s.leftForLtr(s.x(i.left),i.width),a+=i.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;bv(e,this),this._draw(),vv(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:s}=e,a=dv.color,i=by(e.rtl,this.left,this.width),l=Ov(s.font),{padding:c}=s,d=l.size,u=d/2;let p;this.drawTitle(),o.textAlign=i.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=l.string;const{boxWidth:h,boxHeight:f,itemHeight:m}=jS(s,d),g=this.isHorizontal(),x=this._computeTitleHeight();p=g?{x:Hb(r,this.left+c,this.right-n[0]),y:this.top+c+x,line:0}:{x:this.left+c,y:Hb(r,this.top+x+c,this.bottom-t[0].height),line:0},vy(this.ctx,e.textDirection);const b=m+c;this.legendItems.forEach(((v,y)=>{o.strokeStyle=v.fontColor,o.fillStyle=v.fontColor;const w=o.measureText(v.text).width,k=i.textAlign(v.textAlign||(v.textAlign=s.textAlign)),S=h+u+w;let j=p.x,C=p.y;i.setWidth(this.width),g?y>0&&j+S+c>this.right&&(C=p.y+=b,p.line++,j=p.x=Hb(r,this.left+c,this.right-n[p.line])):y>0&&C+b>this.bottom&&(j=p.x=j+t[p.line].width+c,p.line++,C=p.y=Hb(r,this.top+x+c,this.bottom-t[p.line].height));if(function(e,t,n){if(isNaN(h)||h<=0||isNaN(f)||f<0)return;o.save();const r=$x(n.lineWidth,1);if(o.fillStyle=$x(n.fillStyle,a),o.lineCap=$x(n.lineCap,"butt"),o.lineDashOffset=$x(n.lineDashOffset,0),o.lineJoin=$x(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=$x(n.strokeStyle,a),o.setLineDash($x(n.lineDash,[])),s.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=i.xPlus(e,h/2);gv(o,a,l,t+u,s.pointStyleWidth&&h)}else{const s=t+Math.max((d-f)/2,0),a=i.leftForLtr(e,h),l=Mv(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?Cv(o,{x:a,y:s,w:h,h:f,radius:l}):o.rect(a,s,h,f),o.fill(),0!==r&&o.stroke()}o.restore()}(i.x(j),C,v),j=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(k,j+h+u,g?j+S:this.right,e.rtl),function(e,t,n){jv(o,n.text,e,t+m/2,l,{strikethrough:n.hidden,textAlign:i.textAlign(n.textAlign)})}(i.x(j),C,v),g)p.x+=S+c;else if("string"!==typeof v.text){const e=l.lineHeight;p.y+=AS(v,e)+c}else p.y+=b})),yy(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Ov(t.font),o=Rv(t.padding);if(!t.display)return;const r=by(e.rtl,this.left,this.width),s=this.ctx,a=t.position,i=n.size/2,l=o.top+i;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=Hb(e.align,d,this.right-u);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+Hb(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=Hb(a,d,d+u);s.textAlign=r.textAlign(Ub(a)),s.textBaseline="middle",s.strokeStyle=t.color,s.fillStyle=t.color,s.font=n.string,jv(s,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=Ov(e.font),n=Rv(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if(Ob(e,this.left,this.right)&&Ob(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],Ob(e,o.left,o.left+o.width)&&Ob(t,o.top,o.top+o.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const o=this._hoveredItem,r=((e,t)=>null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index)(o,n);o&&!r&&Yx(t.onLeave,[e,o,this],this),this._hoveredItem=n,n&&!r&&Yx(t.onHover,[e,n,this],this)}else n&&Yx(t.onClick,[e,n,this],this)}}function AS(e,t){return t*(e.text?e.text.length:0)}var NS={id:"legend",_element:CS,start(e,t,n){const o=e.legend=new CS({ctx:e.ctx,options:n,chart:e});Rw.configure(e,o,n),Rw.addBox(e,o)},stop(e){Rw.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;Rw.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),t.hidden=!0):(r.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:s,useBorderRadius:a,borderRadius:i}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=Rv(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:s,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:o||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:a&&(i||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ES extends Gw{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const o=Hx(n.text)?n.text.length:1;this._padding=Rv(n.padding);const r=o*Ov(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:o,right:r,options:s}=this,a=s.align;let i,l,c,d=0;return this.isHorizontal()?(l=Hb(a,n,r),c=t+e,i=r-n):("left"===s.position?(l=n+e,c=Hb(a,o,t),d=-.5*db):(l=r-e,c=Hb(a,t,o),d=.5*db),i=o-t),{titleX:l,titleY:c,maxWidth:i,rotation:d}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Ov(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:s,maxWidth:a,rotation:i}=this._drawArgs(o);jv(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:i,textAlign:Ub(t.align),textBaseline:"middle",translation:[r,s]})}}var _S={id:"title",_element:ES,start(e,t,n){!function(e,t){const n=new ES({ctx:e.ctx,options:t,chart:e});Rw.configure(e,n,t),Rw.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;Rw.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;Rw.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const PS={average(e){if(!e.length)return!1;let t,n,o=new Set,r=0,s=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();o.add(e.x),r+=e.y,++s}}if(0===s||0===o.size)return!1;const a=[...o].reduce(((e,t)=>e+t))/o.size;return{x:a,y:r/s}},nearest(e,t){if(!e.length)return!1;let n,o,r,s=t.x,a=t.y,i=Number.POSITIVE_INFINITY;for(n=0,o=e.length;n<o;++n){const o=e[n].element;if(o&&o.hasValue()){const e=Eb(t,o.getCenterPoint());e<i&&(i=e,r=o)}}if(r){const e=r.tooltipPosition();s=e.x,a=e.y}return{x:s,y:a}}};function MS(e,t){return t&&(Hx(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function RS(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function OS(e,t){const{element:n,datasetIndex:o,index:r}=t,s=e.getDatasetMeta(o).controller,{label:a,value:i}=s.getLabelAndValue(r);return{chart:e,label:a,parsed:s.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:i,dataset:s.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function TS(e,t){const n=e.chart.ctx,{body:o,footer:r,title:s}=e,{boxWidth:a,boxHeight:i}=t,l=Ov(t.bodyFont),c=Ov(t.titleFont),d=Ov(t.footerFont),u=s.length,p=r.length,h=o.length,f=Rv(t.padding);let m=f.height,g=0,x=o.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(x+=e.beforeBody.length+e.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),x){m+=h*(t.displayColors?Math.max(i,l.lineHeight):l.lineHeight)+(x-h)*l.lineHeight+(x-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let b=0;const v=function(e){g=Math.max(g,n.measureText(e).width+b)};return n.save(),n.font=c.string,Gx(e.title,v),n.font=l.string,Gx(e.beforeBody.concat(e.afterBody),v),b=t.displayColors?a+2+t.boxPadding:0,Gx(o,(e=>{Gx(e.before,v),Gx(e.lines,v),Gx(e.after,v)})),b=0,n.font=d.string,Gx(e.footer,v),n.restore(),g+=f.width,{width:g,height:m}}function LS(e,t,n,o){const{x:r,width:s}=n,{width:a,chartArea:{left:i,right:l}}=e;let c="center";return"center"===o?c=r<=(i+l)/2?"left":"right":r<=s/2?c="left":r>=a-s/2&&(c="right"),function(e,t,n,o){const{x:r,width:s}=o,a=n.caretSize+n.caretPadding;return"left"===e&&r+s+a>t.width||"right"===e&&r-s-a<0||void 0}(c,e,t,n)&&(c="center"),c}function IS(e,t,n){const o=n.yAlign||t.yAlign||function(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||LS(e,t,n,o),yAlign:o}}function DS(e,t,n,o){const{caretSize:r,caretPadding:s,cornerRadius:a}=e,{xAlign:i,yAlign:l}=n,c=r+s,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:h}=Mv(a);let f=function(e,t){let{x:n,width:o}=e;return"right"===t?n-=o:"center"===t&&(n-=o/2),n}(t,i);const m=function(e,t,n){let{y:o,height:r}=e;return"top"===t?o+=n:o-="bottom"===t?r+n:r/2,o}(t,l,c);return"center"===l?"left"===i?f+=c:"right"===i&&(f-=c):"left"===i?f-=Math.max(d,p)+r:"right"===i&&(f+=Math.max(u,h)+r),{x:Rb(f,0,o.width-t.width),y:Rb(m,0,o.height-t.height)}}function zS(e,t,n){const o=Rv(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function FS(e){return MS([],RS(e))}function BS(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const WS={beforeTitle:Bx,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:Bx,beforeBody:Bx,beforeLabel:Bx,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Ux(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Bx,afterBody:Bx,beforeFooter:Bx,footer:Bx,afterFooter:Bx};function US(e,t,n,o){const r=e[t].call(n,o);return"undefined"===typeof r?WS[t].call(n,o):r}class HS extends Gw{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&t.options.animation&&n.animations,r=new Ly(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,Lv(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=US(n,"beforeTitle",this,e),r=US(n,"title",this,e),s=US(n,"afterTitle",this,e);let a=[];return a=MS(a,RS(o)),a=MS(a,RS(r)),a=MS(a,RS(s)),a}getBeforeBody(e,t){return FS(US(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return Gx(e,(e=>{const t={before:[],lines:[],after:[]},r=BS(n,e);MS(t.before,RS(US(r,"beforeLabel",this,e))),MS(t.lines,US(r,"label",this,e)),MS(t.after,RS(US(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return FS(US(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=US(n,"beforeFooter",this,e),r=US(n,"footer",this,e),s=US(n,"afterFooter",this,e);let a=[];return a=MS(a,RS(o)),a=MS(a,RS(r)),a=MS(a,RS(s)),a}_createItems(e){const t=this._active,n=this.chart.data,o=[],r=[],s=[];let a,i,l=[];for(a=0,i=t.length;a<i;++a)l.push(OS(this.chart,t[a]));return e.filter&&(l=l.filter(((t,o,r)=>e.filter(t,o,r,n)))),e.itemSort&&(l=l.sort(((t,o)=>e.itemSort(t,o,n)))),Gx(l,(t=>{const n=BS(e.callbacks,t);o.push(US(n,"labelColor",this,t)),r.push(US(n,"labelPointStyle",this,t)),s.push(US(n,"labelTextColor",this,t))})),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=s,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),o=this._active;let r,s=[];if(o.length){const e=PS[n.position].call(this,o,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const t=this._size=TS(this,n),a=Object.assign({},e,t),i=IS(this.chart,n,a),l=DS(n,a,i,this.chart);this.xAlign=i.xAlign,this.yAlign=i.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=s,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,o){const r=this.getCaretPosition(e,n,o);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:o,yAlign:r}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:i,topRight:l,bottomLeft:c,bottomRight:d}=Mv(a),{x:u,y:p}=e,{width:h,height:f}=t;let m,g,x,b,v,y;return"center"===r?(v=p+f/2,"left"===o?(m=u,g=m-s,b=v+s,y=v-s):(m=u+h,g=m+s,b=v-s,y=v+s),x=m):(g="left"===o?u+Math.max(i,c)+s:"right"===o?u+h-Math.max(l,d)-s:this.caretX,"top"===r?(b=p,v=b-s,m=g-s,x=g+s):(b=p+f,v=b+s,m=g+s,x=g-s),y=b),{x1:m,x2:g,x3:x,y1:b,y2:v,y3:y}}drawTitle(e,t,n){const o=this.title,r=o.length;let s,a,i;if(r){const l=by(n.rtl,this.x,this.width);for(e.x=zS(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",s=Ov(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=s.string,i=0;i<r;++i)t.fillText(o[i],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,i+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,o,r){const s=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:i,boxWidth:l}=r,c=Ov(r.bodyFont),d=zS(this,"left",r),u=o.x(d),p=i<c.lineHeight?(c.lineHeight-i)/2:0,h=t.y+p;if(r.usePointStyle){const t={radius:Math.min(l,i)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=o.leftForLtr(u,l)+l/2,c=h+i/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,mv(e,t,n,c),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,mv(e,t,n,c)}else{e.lineWidth=Vx(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const t=o.leftForLtr(u,l),n=o.leftForLtr(o.xPlus(u,1),l-2),a=Mv(s.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Cv(e,{x:t,y:h,w:l,h:i,radius:a}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Cv(e,{x:n,y:h+1,w:l-2,h:i-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,h,l,i),e.strokeRect(t,h,l,i),e.fillStyle=s.backgroundColor,e.fillRect(n,h+1,l-2,i-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:o}=this,{bodySpacing:r,bodyAlign:s,displayColors:a,boxHeight:i,boxWidth:l,boxPadding:c}=n,d=Ov(n.bodyFont);let u=d.lineHeight,p=0;const h=by(n.rtl,this.x,this.width),f=function(n){t.fillText(n,h.x(e.x+p),e.y+u/2),e.y+=u+r},m=h.textAlign(s);let g,x,b,v,y,w,k;for(t.textAlign=s,t.textBaseline="middle",t.font=d.string,e.x=zS(this,m,n),t.fillStyle=n.bodyColor,Gx(this.beforeBody,f),p=a&&"right"!==m?"center"===s?l/2+c:l+2+c:0,v=0,w=o.length;v<w;++v){for(g=o[v],x=this.labelTextColors[v],t.fillStyle=x,Gx(g.before,f),b=g.lines,a&&b.length&&(this._drawColorBox(t,e,v,h,n),u=Math.max(d.lineHeight,i)),y=0,k=b.length;y<k;++y)f(b[y]),u=d.lineHeight;Gx(g.after,f)}p=0,u=d.lineHeight,Gx(this.afterBody,f),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let s,a;if(r){const i=by(n.rtl,this.x,this.width);for(e.x=zS(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=i.textAlign(n.footerAlign),t.textBaseline="middle",s=Ov(n.footerFont),t.fillStyle=n.footerColor,t.font=s.string,a=0;a<r;++a)t.fillText(o[a],i.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+n.footerSpacing}}drawBackground(e,t,n,o){const{xAlign:r,yAlign:s}=this,{x:a,y:i}=e,{width:l,height:c}=n,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:h}=Mv(o.cornerRadius);t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.beginPath(),t.moveTo(a+d,i),"top"===s&&this.drawCaret(e,t,n,o),t.lineTo(a+l-u,i),t.quadraticCurveTo(a+l,i,a+l,i+u),"center"===s&&"right"===r&&this.drawCaret(e,t,n,o),t.lineTo(a+l,i+c-h),t.quadraticCurveTo(a+l,i+c,a+l-h,i+c),"bottom"===s&&this.drawCaret(e,t,n,o),t.lineTo(a+p,i+c),t.quadraticCurveTo(a,i+c,a,i+c-p),"center"===s&&"left"===r&&this.drawCaret(e,t,n,o),t.lineTo(a,i+d),t.quadraticCurveTo(a,i,a+d,i),t.closePath(),t.fill(),o.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){const n=PS[e.position].call(this,this._active,this._eventPosition);if(!n)return;const s=this._size=TS(this,e),a=Object.assign({},n,this._size),i=IS(t,e,a),l=DS(e,a,i,t);o._to===l.x&&r._to===l.y||(this.xAlign=i.xAlign,this.yAlign=i.yAlign,this.width=s.width,this.height=s.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=Rv(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,o,t),vy(e,t.textDirection),r.y+=s.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),yy(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,o=e.map((e=>{let{datasetIndex:t,index:n}=e;const o=this.chart.getDatasetMeta(t);if(!o)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:o.data[n],index:n}})),r=!Xx(n,o),s=this._positionChanged(o,t);(r||s)&&(this._active=o,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,r=this._active||[],s=this._getActiveElements(e,r,t,n),a=this._positionChanged(s,e),i=t||!Xx(s,r)||a;return i&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),i}_getActiveElements(e,t,n,o){const r=this.options;if("mouseout"===e.type)return[];if(!o)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const s=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&s.reverse(),s}_positionChanged(e,t){const{caretX:n,caretY:o,options:r}=this,s=PS[r.position].call(this,e,t);return!1!==s&&(n!==s.x||o!==s.y)}}i(HS,"positioners",PS);var VS={id:"tooltip",_element:HS,positioners:PS,afterInit(e,t,n){n&&(e.tooltip=new HS({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",c(c({},n),{},{cancelable:!0})))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:WS},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function KS(e,t,n,o){const r=e.indexOf(t);if(-1===r)return((e,t,n,o)=>("string"===typeof t?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,o);return r!==e.lastIndexOf(t)?n:r}function qS(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class $S extends ak{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:o}of t)e[n]===o&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(Ux(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Rb(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:KS(n,e,$x(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,o=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let s=e;s<=t;s++)o.push({value:s});return o}getLabelForValue(e){return qS.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function JS(e,t){const n=[],{bounds:o,step:r,min:s,max:a,precision:i,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=e,p=r||1,h=c-1,{min:f,max:m}=t,g=!Ux(s),x=!Ux(a),b=!Ux(l),v=(m-f)/(d+1);let y,w,k,S,j=wb((m-f)/h/p)*p;if(j<1e-14&&!g&&!x)return[{value:f},{value:m}];S=Math.ceil(m/j)-Math.floor(f/j),S>h&&(j=wb(S*j/h/p)*p),Ux(i)||(y=Math.pow(10,i),j=Math.ceil(j*y)/y),"ticks"===o?(w=Math.floor(f/j)*j,k=Math.ceil(m/j)*j):(w=f,k=m),g&&x&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-s)/r,j/1e3)?(S=Math.round(Math.min((a-s)/j,c)),j=(a-s)/S,w=s,k=a):b?(w=g?s:w,k=x?a:k,S=l-1,j=(k-w)/S):(S=(k-w)/j,S=yb(S,Math.round(S),j/1e3)?Math.round(S):Math.ceil(S));const C=Math.max(Ab(j),Ab(w));y=Math.pow(10,Ux(i)?C:i),w=Math.round(w*y)/y,k=Math.round(k*y)/y;let A=0;for(g&&(u&&w!==s?(n.push({value:s}),w<s&&A++,yb(Math.round((w+A*j)*y)/y,s,YS(s,v,e))&&A++):w<s&&A++);A<S;++A){const e=Math.round((w+A*j)*y)/y;if(x&&e>a)break;n.push({value:e})}return x&&u&&k!==a?n.length&&yb(n[n.length-1].value,a,YS(a,v,e))?n[n.length-1].value=a:n.push({value:a}):x&&k!==a||n.push({value:k}),n}function YS(e,t,n){let{horizontal:o,minRotation:r}=n;const s=jb(r),a=(o?Math.sin(s):Math.cos(s))||.001,i=.75*t*(""+e).length;return Math.min(t/a,i)}i($S,"id","category"),i($S,"defaults",{ticks:{callback:qS}});class GS extends ak{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Ux(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this;const s=e=>o=t?o:e,a=e=>r=n?r:e;if(e){const e=vb(o),t=vb(r);e<0&&t<0?a(0):e>0&&t>0&&s(0)}if(o===r){let t=0===r?1:Math.abs(.05*r);a(r+t),e||s(o-t)}this.min=o,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:o}=e;return o?(t=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,t>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(o," would result generating up to ").concat(t," ticks. Limiting to 1000.")),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o=JS({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Sb(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const o=(n-t)/Math.max(e.length-1,1)/2;t-=o,n+=o}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return nv(e,this.chart.options.locale,this.options.ticks.format)}}class XS extends GS{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Kx(e)?e:0,this.max=Kx(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=jb(this.options.ticks.minRotation),o=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/o))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}i(XS,"id","linear"),i(XS,"defaults",{ticks:{callback:rv.formatters.numeric}});const ZS=e=>Math.floor(bb(e)),QS=(e,t)=>Math.pow(10,ZS(e)+t);function ej(e){return 1===e/Math.pow(10,ZS(e))}function tj(e,t,n){const o=Math.pow(10,n),r=Math.floor(e/o);return Math.ceil(t/o)-r}function nj(e,t){let{min:n,max:o}=t;n=qx(e.min,n);const r=[],s=ZS(n);let a=function(e,t){let n=ZS(t-e);for(;tj(e,t,n)>10;)n++;for(;tj(e,t,n)<10;)n--;return Math.min(n,ZS(e))}(n,o),i=a<0?Math.pow(10,Math.abs(a)):1;const l=Math.pow(10,a),c=s>a?Math.pow(10,s):0,d=Math.round((n-c)*i)/i,u=Math.floor((n-c)/l/10)*l*10;let p=Math.floor((d-u)/Math.pow(10,a)),h=qx(e.min,Math.round((c+u+p*Math.pow(10,a))*i)/i);for(;h<o;)r.push({value:h,major:ej(h),significand:p}),p>=10?p=p<15?15:20:p++,p>=20&&(a++,p=2,i=a>=0?1:i),h=Math.round((c+u+p*Math.pow(10,a))*i)/i;const f=qx(e.max,h);return r.push({value:f,major:ej(f),significand:p}),r}class oj extends ak{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=GS.prototype.parse.apply(this,[e,t]);if(0!==n)return Kx(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Kx(e)?Math.max(0,e):null,this.max=Kx(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Kx(this._userMin)&&(this.min=e===QS(this.min,0)?QS(this.min,-1):QS(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,o=this.max;const r=t=>n=e?n:t,s=e=>o=t?o:e;n===o&&(n<=0?(r(1),s(10)):(r(QS(n,-1)),s(QS(o,1)))),n<=0&&r(QS(o,-1)),o<=0&&s(QS(n,1)),this.min=n,this.max=o}buildTicks(){const e=this.options,t=nj({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&Sb(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":nv(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=bb(e),this._valueRange=bb(this.max)-bb(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(bb(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function rj(e){const t=e.ticks;if(t.display&&e.display){const e=Rv(t.backdropPadding);return $x(t.font&&t.font.size,dv.font.size)+e.height}return 0}function sj(e,t,n,o,r){return e===o||e===r?{start:t-n/2,end:t+n/2}:e<o||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function aj(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),o=[],r=[],s=e._pointLabels.length,a=e.options.pointLabels,i=a.centerPointLabels?db/s:0;for(let u=0;u<s;u++){const s=a.setContext(e.getPointLabelContext(u));r[u]=s.padding;const p=e.getPointPosition(u,e.drawingArea+r[u],i),h=Ov(s.font),f=(l=e.ctx,c=h,d=Hx(d=e._pointLabels[u])?d:[d],{w:pv(l,c.string,d),h:d.length*c.lineHeight});o[u]=f;const m=Pb(e.getIndexAngle(u)+i),g=Math.round(Cb(m));ij(n,t,m,sj(g,p.x,f.w,0,180),sj(g,p.y,f.h,90,270))}var l,c,d;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const o=[],r=e._pointLabels.length,s=e.options,{centerPointLabels:a,display:i}=s.pointLabels,l={extra:rj(s)/2,additionalAngle:a?db/r:0};let c;for(let d=0;d<r;d++){l.padding=n[d],l.size=t[d];const r=lj(e,d,l);o.push(r),"auto"===i&&(r.visible=cj(r,c),r.visible&&(c=r))}return o}(e,o,r)}function ij(e,t,n,o,r){const s=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let i=0,l=0;o.start<t.l?(i=(t.l-o.start)/s,e.l=Math.min(e.l,t.l-i)):o.end>t.r&&(i=(o.end-t.r)/s,e.r=Math.max(e.r,t.r+i)),r.start<t.t?(l=(t.t-r.start)/a,e.t=Math.min(e.t,t.t-l)):r.end>t.b&&(l=(r.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function lj(e,t,n){const o=e.drawingArea,{extra:r,additionalAngle:s,padding:a,size:i}=n,l=e.getPointPosition(t,o+r+a,s),c=Math.round(Cb(Pb(l.angle+mb))),d=function(e,t,n){90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t);return e}(l.y,i.h,c),u=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(c),p=function(e,t,n){"right"===n?e-=t:"center"===n&&(e-=t/2);return e}(l.x,i.w,u);return{visible:!0,x:l.x,y:d,textAlign:u,left:p,top:d,right:p+i.w,bottom:d+i.h}}function cj(e,t){if(!t)return!0;const{left:n,top:o,right:r,bottom:s}=e;return!(xv({x:n,y:o},t)||xv({x:n,y:s},t)||xv({x:r,y:o},t)||xv({x:r,y:s},t))}function dj(e,t,n){const{left:o,top:r,right:s,bottom:a}=n,{backdropColor:i}=t;if(!Ux(i)){const n=Mv(t.borderRadius),l=Rv(t.backdropPadding);e.fillStyle=i;const c=o-l.left,d=r-l.top,u=s-o+l.width,p=a-r+l.height;Object.values(n).some((e=>0!==e))?(e.beginPath(),Cv(e,{x:c,y:d,w:u,h:p,radius:n}),e.fill()):e.fillRect(c,d,u,p)}}function uj(e,t,n,o){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,ub);else{let n=e.getPointPosition(0,t);r.moveTo(n.x,n.y);for(let s=1;s<o;s++)n=e.getPointPosition(s,t),r.lineTo(n.x,n.y)}}i(oj,"id","logarithmic"),i(oj,"defaults",{ticks:{callback:rv.formatters.logarithmic,major:{enabled:!0}}});class pj extends GS{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Rv(rj(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=Kx(e)&&!isNaN(e)?e:0,this.max=Kx(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/rj(this.options))}generateTickLabels(e){GS.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=Yx(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?aj(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,o){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,o))}getIndexAngle(e){return Pb(e*(ub/(this._pointLabels.length||1))+jb(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(Ux(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(Ux(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return Lv(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=this.getIndexAngle(e)-mb+n;return{x:Math.cos(o)*t+this.xCenter,y:Math.sin(o)*t+this.yCenter,angle:o}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:o,bottom:r}=this._pointLabelItems[e];return{left:t,top:n,right:o,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),uj(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:o,border:r}=t,s=this._pointLabels.length;let a,i,l;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:o}}=e;for(let r=t-1;r>=0;r--){const t=e._pointLabelItems[r];if(!t.visible)continue;const s=o.setContext(e.getPointLabelContext(r));dj(n,s,t);const a=Ov(s.font),{x:i,y:l,textAlign:c}=t;jv(n,e._pointLabels[r],i,l+a.lineHeight/2,a,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),o.display&&this.ticks.forEach(((e,t)=>{if(0!==t||0===t&&this.min<0){i=this.getDistanceFromCenterForValue(e.value);const n=this.getContext(t),a=o.setContext(n),l=r.setContext(n);!function(e,t,n,o,r){const s=e.ctx,a=t.circular,{color:i,lineWidth:l}=t;!a&&!o||!i||!l||n<0||(s.save(),s.strokeStyle=i,s.lineWidth=l,s.setLineDash(r.dash||[]),s.lineDashOffset=r.dashOffset,s.beginPath(),uj(e,n,a,o),s.closePath(),s.stroke(),s.restore())}(this,a,i,s,l)}})),n.display){for(e.save(),a=s-1;a>=0;a--){const o=n.setContext(this.getPointLabelContext(a)),{color:r,lineWidth:s}=o;s&&r&&(e.lineWidth=s,e.strokeStyle=r,e.setLineDash(o.borderDash),e.lineDashOffset=o.borderDashOffset,i=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),l=this.getPointPosition(a,i),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let r,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((o,a)=>{if(0===a&&this.min>=0&&!t.reverse)return;const i=n.setContext(this.getContext(a)),l=Ov(i.font);if(r=this.getDistanceFromCenterForValue(this.ticks[a].value),i.showLabelBackdrop){e.font=l.string,s=e.measureText(o.label).width,e.fillStyle=i.backdropColor;const t=Rv(i.backdropPadding);e.fillRect(-s/2-t.left,-r-l.size/2-t.top,s+t.width,l.size+t.height)}jv(e,o.label,0,-r,l,{color:i.color,strokeColor:i.textStrokeColor,strokeWidth:i.textStrokeWidth})})),e.restore()}drawTitle(){}}i(pj,"id","radialLinear"),i(pj,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:rv.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}}),i(pj,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),i(pj,"descriptors",{angleLines:{_fallback:"grid"}});const hj={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},fj=Object.keys(hj);function mj(e,t){return e-t}function gj(e,t){if(Ux(t))return null;const n=e._adapter,{parser:o,round:r,isoWeekday:s}=e._parseOpts;let a=t;return"function"===typeof o&&(a=o(a)),Kx(a)||(a="string"===typeof o?n.parse(a,o):n.parse(a)),null===a?null:(r&&(a="week"!==r||!kb(s)&&!0!==s?n.startOf(a,r):n.startOf(a,"isoWeek",s)),+a)}function xj(e,t,n,o){const r=fj.length;for(let s=fj.indexOf(e);s<r-1;++s){const e=hj[fj[s]],r=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(r*e.size))<=o)return fj[s]}return fj[r-1]}function bj(e,t,n){if(n){if(n.length){const{lo:o,hi:r}=Tb(n,t);e[n[o]>=t?n[o]:n[r]]=!0}}else e[t]=!0}function vj(e,t,n){const o=[],r={},s=t.length;let a,i;for(a=0;a<s;++a)i=t[a],r[i]=a,o.push({value:i,major:!1});return 0!==s&&n?function(e,t,n,o){const r=e._adapter,s=+r.startOf(t[0].value,o),a=t[t.length-1].value;let i,l;for(i=s;i<=a;i=+r.add(i,1,o))l=n[i],l>=0&&(t[l].major=!0);return t}(e,o,r,n):o}class yj extends ak{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.time||(e.time={}),o=this._adapter=new pw(e.adapters.date);o.init(t),nb(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:gj(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:o,max:r,minDefined:s,maxDefined:a}=this.getUserBounds();function i(e){s||isNaN(e.min)||(o=Math.min(o,e.min)),a||isNaN(e.max)||(r=Math.max(r,e.max))}s&&a||(i(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||i(this.getMinMax(!1))),o=Kx(o)&&!isNaN(o)?o:+t.startOf(Date.now(),n),r=Kx(r)&&!isNaN(r)?r:+t.endOf(Date.now(),n)+1,this.min=Math.min(o,r-1),this.max=Math.max(o+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,o="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const r=this.min,s=function(e,t,n){let o=0,r=e.length;for(;o<r&&e[o]<t;)o++;for(;r>o&&e[r-1]>n;)r--;return o>0||r<e.length?e.slice(o,r):e}(o,r,this.max);return this._unit=t.unit||(n.autoSkip?xj(t.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(e,t,n,o,r){for(let s=fj.length-1;s>=fj.indexOf(n);s--){const n=fj[s];if(hj[n].common&&e._adapter.diff(r,o,n)>=t-1)return n}return fj[n?fj.indexOf(n):0]}(this,s.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=fj.indexOf(e)+1,n=fj.length;t<n;++t)if(hj[fj[t]].common)return fj[t]}(this._unit):void 0,this.initOffsets(o),e.reverse&&s.reverse(),vj(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=0,r=0;this.options.offset&&n.length&&(e=this.getDecimalForValue(n[0]),o=1===n.length?1-e:(this.getDecimalForValue(n[1])-e)/2,t=this.getDecimalForValue(n[n.length-1]),r=1===n.length?t:(t-this.getDecimalForValue(n[n.length-2]))/2);const s=n.length<3?.5:.25;o=Rb(o,0,s),r=Rb(r,0,s),this._offsets={start:o,end:r,factor:1/(o+1+r)}}_generate(){const e=this._adapter,t=this.min,n=this.max,o=this.options,r=o.time,s=r.unit||xj(r.minUnit,t,n,this._getLabelCapacity(t)),a=$x(o.ticks.stepSize,1),i="week"===s&&r.isoWeekday,l=kb(i)||!0===i,c={};let d,u,p=t;if(l&&(p=+e.startOf(p,"isoWeek",i)),p=+e.startOf(p,l?"day":s),e.diff(n,t,s)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+s);const h="data"===o.ticks.source&&this.getDataTimestamps();for(d=p,u=0;d<n;d=+e.add(d,a,s),u++)bj(c,d,h);return d!==n&&"ticks"!==o.bounds&&1!==u||bj(c,d,h),Object.keys(c).sort(mj).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,o=this._unit,r=t||n[o];return this._adapter.format(e,r)}_tickFormatFunction(e,t,n,o){const r=this.options,s=r.ticks.callback;if(s)return Yx(s,[e,t,n],this);const a=r.time.displayFormats,i=this._unit,l=this._majorUnit,c=i&&a[i],d=l&&a[l],u=n[t],p=l&&d&&u&&u.major;return this._adapter.format(e,o||(p?d:c))}generateTickLabels(e){let t,n,o;for(t=0,n=e.length;t<n;++t)o=e[t],o.label=this._tickFormatFunction(o.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,o=jb(this.isHorizontal()?t.maxRotation:t.minRotation),r=Math.cos(o),s=Math.sin(o),a=this._resolveTickFontOptions(0).size;return{w:n*r+a*s,h:n*s+a*r}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,o=n[t.unit]||n.millisecond,r=this._tickFormatFunction(e,0,vj(this,[e],this._majorUnit),o),s=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(e=0,t=o.length;e<t;++e)n=n.concat(o[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const o=this.getLabels();for(t=0,n=o.length;t<n;++t)e.push(gj(this,o[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Fb(e.sort(mj))}}function wj(e,t,n){let o,r,s,a,i=0,l=e.length-1;n?(t>=e[i].pos&&t<=e[l].pos&&({lo:i,hi:l}=Lb(e,"pos",t)),({pos:o,time:s}=e[i]),({pos:r,time:a}=e[l])):(t>=e[i].time&&t<=e[l].time&&({lo:i,hi:l}=Lb(e,"time",t)),({time:o,pos:s}=e[i]),({time:r,pos:a}=e[l]));const c=r-o;return c?s+(a-s)*(t-o)/c:s}i(yj,"id","time"),i(yj,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});class kj extends yj{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=wj(t,this.min),this._tableRange=wj(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,o=[],r=[];let s,a,i,l,c;for(s=0,a=e.length;s<a;++s)l=e[s],l>=t&&l<=n&&o.push(l);if(o.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(s=0,a=o.length;s<a;++s)c=o[s+1],i=o[s-1],l=o[s],Math.round((c+i)/2)!==l&&r.push({time:l,pos:s/(a-1)});return r}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return n.includes(e)&&n.length||n.splice(0,0,e),n.includes(t)&&1!==n.length||n.push(t),n.sort(((e,t)=>e-t))}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(wj(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return wj(this._table,n*this._tableRange+this._minPos,!0)}}i(kj,"id","timeseries"),i(kj,"defaults",yj.defaults);const Sj=["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent","updateMode"],jj="label";function Cj(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function Aj(e,t){e.labels=t}function Nj(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jj;const o=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[n]===t[n]));return r&&t.data&&!o.includes(r)?(o.push(r),Object.assign(r,t),r):c({},t)}))}function Ej(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jj;const n={labels:[],datasets:[]};return Aj(n,e.labels),Nj(n,e.datasets,t),n}function _j(e,t){const{height:n=150,width:r=300,redraw:s=!1,datasetIdKey:a,type:i,data:l,options:d,plugins:u=[],fallbackContent:p,updateMode:h}=e,f=hr(e,Sj),m=(0,o.useRef)(null),g=(0,o.useRef)(null),x=()=>{m.current&&(g.current=new Ik(m.current,{type:i,data:Ej(l,a),options:d&&c({},d),plugins:u}),Cj(t,g.current))},b=()=>{Cj(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,o.useEffect)((()=>{!s&&g.current&&d&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(g.current,d)}),[s,d]),(0,o.useEffect)((()=>{!s&&g.current&&Aj(g.current.config.data,l.labels)}),[s,l.labels]),(0,o.useEffect)((()=>{!s&&g.current&&l.datasets&&Nj(g.current.config.data,l.datasets,a)}),[s,l.datasets]),(0,o.useEffect)((()=>{g.current&&(s?(b(),setTimeout(x)):g.current.update(h))}),[s,d,l.labels,l.datasets,h]),(0,o.useEffect)((()=>{g.current&&(b(),setTimeout(x))}),[i]),(0,o.useEffect)((()=>(x(),()=>b())),[]),o.createElement("canvas",c({ref:m,role:"img",height:n,width:r},f),p)}const Pj=(0,o.forwardRef)(_j);function Mj(e,t){return Ik.register(t),(0,o.forwardRef)(((t,n)=>o.createElement(Pj,c(c({},t),{},{ref:n,type:e}))))}const Rj=Mj("line",sw);const Oj=o.createContext();function Tj(e){return(0,ui.Ay)("MuiGrid",e)}const Lj=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ij=(0,ti.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>"spacing-xs-".concat(e))),...["column-reverse","column","row-reverse","row"].map((e=>"direction-xs-".concat(e))),...["nowrap","wrap-reverse","wrap"].map((e=>"wrap-xs-".concat(e))),...Lj.map((e=>"grid-xs-".concat(e))),...Lj.map((e=>"grid-sm-".concat(e))),...Lj.map((e=>"grid-md-".concat(e))),...Lj.map((e=>"grid-lg-".concat(e))),...Lj.map((e=>"grid-xl-".concat(e)))]),Dj=Ij,zj=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Fj(e){const t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function Bj(e){let{breakpoints:t,values:n}=e,o="";Object.keys(n).forEach((e=>{""===o&&0!==n[e]&&(o=e)}));const r=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return r.slice(0,r.indexOf(o))}const Wj=(0,li.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:o,direction:r,item:s,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:c}=n;let d=[];o&&(d=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];const o=[];return t.forEach((t=>{const r=e[t];Number(r)>0&&o.push(n["spacing-".concat(t,"-").concat(String(r))])})),o}(a,c,t));const u=[];return c.forEach((e=>{const o=n[e];o&&u.push(t["grid-".concat(e,"-").concat(String(o))])})),[t.root,o&&t.container,s&&t.item,l&&t.zeroMinWidth,...d,"row"!==r&&t["direction-xs-".concat(String(r))],"wrap"!==i&&t["wrap-xs-".concat(String(i))],...u]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const o=(0,Ef.kW)({values:n.direction,breakpoints:t.breakpoints.values});return(0,Ef.NI)({theme:t},o,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(Dj.item)]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:o,rowSpacing:r}=n;let s={};if(o&&0!==r){const e=(0,Ef.kW)({values:r,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=Bj({breakpoints:t.breakpoints.values,values:e})),s=(0,Ef.NI)({theme:t},e,((e,o)=>{var r;const s=t.spacing(e);return"0px"!==s?{marginTop:"-".concat(Fj(s)),["& > .".concat(Dj.item)]:{paddingTop:Fj(s)}}:null!=(r=n)&&r.includes(o)?{}:{marginTop:0,["& > .".concat(Dj.item)]:{paddingTop:0}}}))}return s}),(function(e){let{theme:t,ownerState:n}=e;const{container:o,columnSpacing:r}=n;let s={};if(o&&0!==r){const e=(0,Ef.kW)({values:r,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=Bj({breakpoints:t.breakpoints.values,values:e})),s=(0,Ef.NI)({theme:t},e,((e,o)=>{var r;const s=t.spacing(e);return"0px"!==s?{width:"calc(100% + ".concat(Fj(s),")"),marginLeft:"-".concat(Fj(s)),["& > .".concat(Dj.item)]:{paddingLeft:Fj(s)}}:null!=(r=n)&&r.includes(o)?{}:{width:"100%",marginLeft:0,["& > .".concat(Dj.item)]:{paddingLeft:0}}}))}return s}),(function(e){let t,{theme:n,ownerState:o}=e;return n.breakpoints.keys.reduce(((e,r)=>{let s={};if(o[r]&&(t=o[r]),!t)return e;if(!0===t)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=(0,Ef.kW)({values:o.columns,breakpoints:n.breakpoints.values}),i="object"===typeof a?a[r]:a;if(void 0===i||null===i)return e;const l="".concat(Math.round(t/i*1e8)/1e6,"%");let c={};if(o.container&&o.item&&0!==o.columnSpacing){const e=n.spacing(o.columnSpacing);if("0px"!==e){const t="calc(".concat(l," + ").concat(Fj(e),")");c={flexBasis:t,maxWidth:t}}}s=(0,Na.A)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===n.breakpoints.values[r]?Object.assign(e,s):e[n.breakpoints.up(r)]=s,e}),{})}));const Uj=e=>{const{classes:t,container:n,direction:o,item:r,spacing:s,wrap:a,zeroMinWidth:i,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];const n=[];return t.forEach((t=>{const o=e[t];if(Number(o)>0){const e="spacing-".concat(t,"-").concat(String(o));n.push(e)}})),n}(s,l));const d=[];l.forEach((t=>{const n=e[t];n&&d.push("grid-".concat(t,"-").concat(String(n)))}));const u={root:["root",n&&"container",r&&"item",i&&"zeroMinWidth",...c,"row"!==o&&"direction-xs-".concat(String(o)),"wrap"!==a&&"wrap-xs-".concat(String(a)),...d]};return(0,ai.A)(u,Tj,t)},Hj=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiGrid"}),{breakpoints:r}=Pc(),s=(0,Ya.A)(n),{className:a,columns:i,columnSpacing:l,component:c="div",container:d=!1,direction:u="row",item:p=!1,rowSpacing:h,spacing:f=0,wrap:m="wrap",zeroMinWidth:g=!1}=s,x=(0,pr.A)(s,zj),b=h||f,v=l||f,y=o.useContext(Oj),w=d?i||12:y,k={},S=(0,Na.A)({},x);r.keys.forEach((e=>{null!=x[e]&&(k[e]=x[e],delete S[e])}));const j=(0,Na.A)({},s,{columns:w,container:d,direction:u,item:p,rowSpacing:b,columnSpacing:v,wrap:m,zeroMinWidth:g,spacing:f},k,{breakpoints:r.keys}),C=Uj(j);return(0,Ma.jsx)(Oj.Provider,{value:w,children:(0,Ma.jsx)(Wj,(0,Na.A)({ownerState:j,className:(0,qa.A)(C.root,a),as:c,ref:t},S))})}));const Vj=Hj;function Kj(e){return(0,ui.Ay)("MuiCard",e)}(0,ti.A)("MuiCard",["root"]);const qj=["className","raised"],$j=(0,li.Ay)(mi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),Jj=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiCard"}),{className:o,raised:r=!1}=n,s=(0,pr.A)(n,qj),a=(0,Na.A)({},n,{raised:r}),i=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"]},Kj,t)})(a);return(0,Ma.jsx)($j,(0,Na.A)({className:(0,qa.A)(i.root,o),elevation:r?8:void 0,ref:t,ownerState:a},s))}));function Yj(e){return(0,ui.Ay)("MuiCardContent",e)}(0,ti.A)("MuiCardContent",["root"]);const Gj=["className","component"],Xj=(0,li.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),Zj=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiCardContent"}),{className:o,component:r="div"}=n,s=(0,pr.A)(n,Gj),a=(0,Na.A)({},n,{component:r}),i=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"]},Yj,t)})(a);return(0,Ma.jsx)(Xj,(0,Na.A)({as:r,className:(0,qa.A)(i.root,o),ownerState:a,ref:t},s))}));Ik.register($S,XS,Qk,Xk,_S,VS,NS,yj);const Qj=e=>{let{processId:t,initialData:n}=e;const[r,s]=(0,o.useState)([]),{t:a}=me();(0,o.useEffect)((()=>{n&&n.monit&&s([{timestamp:Date.now(),cpu:n.monit.cpu,memory:n.monit.memory}]);const e=setInterval((async()=>{try{const e=await ur.get("/api/process/".concat(t,"/stats"));e.data&&e.data.monit&&s((t=>{const n=[...t,{timestamp:Date.now(),cpu:e.data.monit.cpu,memory:e.data.monit.memory}];return n.length>20?n.slice(n.length-20):n}))}catch(vM){console.error("Error fetching metrics:",vM)}}),2e3);return()=>{clearInterval(e)}}),[t,n]);const i=r.length>0?r[r.length-1].cpu:n.monit?n.monit.cpu:0,l=r.length>0?r[r.length-1].memory:n.monit?n.monit.memory:0,c={labels:r.map((e=>new Date(e.timestamp).toLocaleTimeString())),datasets:[{label:a("metricsPage.cpuDataset"),data:r.map((e=>e.cpu)),fill:!1,borderColor:"rgb(75, 192, 192)",tension:.1}]},d={labels:r.map((e=>new Date(e.timestamp).toLocaleTimeString())),datasets:[{label:a("metricsPage.memoryDataset"),data:r.map((e=>e.memory/1048576)),fill:!1,borderColor:"rgb(255, 99, 132)",tension:.1}]};return(0,Ma.jsxs)(si,{children:[(0,Ma.jsxs)(Vj,{container:!0,spacing:2,sx:{mb:3},children:[(0,Ma.jsx)(Vj,{item:!0,xs:12,sm:6,children:(0,Ma.jsx)(Jj,{variant:"outlined",children:(0,Ma.jsxs)(Zj,{children:[(0,Ma.jsx)(Vf,{variant:"subtitle2",color:"text.secondary",children:a("metricsPage.currentCpu")}),(0,Ma.jsxs)(Vf,{variant:"h4",color:"primary",children:[i.toFixed(1),"%"]})]})})}),(0,Ma.jsx)(Vj,{item:!0,xs:12,sm:6,children:(0,Ma.jsx)(Jj,{variant:"outlined",children:(0,Ma.jsxs)(Zj,{children:[(0,Ma.jsx)(Vf,{variant:"subtitle2",color:"text.secondary",children:a("metricsPage.currentMemory")}),(0,Ma.jsx)(Vf,{variant:"h4",color:"primary",children:(e=>{if(0===e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])})(l)})]})})})]}),(0,Ma.jsxs)(Vj,{container:!0,spacing:3,children:[(0,Ma.jsx)(Vj,{item:!0,xs:12,md:6,children:(0,Ma.jsxs)(mi,{variant:"outlined",sx:{p:2},children:[(0,Ma.jsx)(Vf,{variant:"subtitle2",gutterBottom:!0,color:"text.secondary",children:a("metricsPage.cpuOverTime")}),(0,Ma.jsx)(si,{sx:{height:250},children:(0,Ma.jsx)(Rj,{data:c,options:{responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,suggestedMax:100}}}})})]})}),(0,Ma.jsx)(Vj,{item:!0,xs:12,md:6,children:(0,Ma.jsxs)(mi,{variant:"outlined",sx:{p:2},children:[(0,Ma.jsx)(Vf,{variant:"subtitle2",gutterBottom:!0,color:"text.secondary",children:a("metricsPage.memoryOverTime")}),(0,Ma.jsx)(si,{sx:{height:250},children:(0,Ma.jsx)(Rj,{data:d,options:{responsive:!0,maintainAspectRatio:!1}})})]})})]})]})},eC=e=>{let{title:t,subtitle:n,actions:o}=e;return(0,Ma.jsxs)("div",{className:"flex items-center justify-between mb-4 pb-3 border-b border-[#1e1e1e]",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsxs)("h1",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.1em] leading-tight",children:["\u25b8 ",t]}),n&&(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] mt-0.5",children:n})]}),o&&(0,Ma.jsx)("div",{className:"flex items-center gap-2 shrink-0",children:o})]})},tC=e=>{let{children:t,active:n}=e;return n?(0,Ma.jsx)("div",{className:"p-4",children:t}):null},nC=e=>{let{onAction:t,connectionId:n}=e;const{id:r}=bs(),{t:s}=me(),[a,i]=(0,o.useState)(null),[l,c]=(0,o.useState)(!0),[d,u]=(0,o.useState)(""),[p,h]=(0,o.useState)(0),f=xs();(0,o.useEffect)((()=>{const e=async()=>{try{const e=n?"/api/remote/".concat(n,"/processes"):"/api/processes",t=(await ur.get(e)).data.find((e=>e.pm_id===Number(r)));t?i(t):u("Process with ID ".concat(r," not found"))}catch(vM){console.error("Error fetching process:",vM),u("Failed to fetch process details")}finally{c(!1)}};r&&e();const t=setInterval((()=>{r&&e()}),3e3);return()=>clearInterval(t)}),[r,n]);const m=e=>e?new Date(e).toLocaleString():"N/A",g=async e=>{if(a)try{if(t){if(t(a.pm_id,e),"delete"===e)return void f("/")}else await ur.post("/api/process/".concat(a.pm_id,"/").concat(e));const n=(await ur.get("/api/processes")).data.find((e=>e.pm_id===Number(r)));n&&i(n)}catch(vM){console.error("Error performing ".concat(e,":"),vM),u("Failed to ".concat(e," process. ").concat(vM instanceof Error?vM.message:"Unknown error"))}};if(l)return(0,Ma.jsxs)("div",{className:"flex items-center justify-center py-16 gap-2",children:[(0,Ma.jsxs)("svg",{className:"h-4 w-4 animate-spin text-[#22c55e]",viewBox:"0 0 24 24",fill:"none",children:[(0,Ma.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Ma.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555]",children:s("processDetail.loadingDetails")})]});if(d||!a)return(0,Ma.jsxs)("div",{className:"flex flex-col gap-3 p-4",children:[d&&(0,Ma.jsxs)("div",{className:"text-[10px] font-mono text-[#ef4444] border border-[#ef4444]/20 bg-[#ef4444]/5 rounded-sm px-3 py-2",children:[(0,Ma.jsx)("span",{className:"text-[#555]",children:"err:"})," ",d]}),(0,Ma.jsxs)("button",{onClick:()=>f("/"),className:"w-fit h-7 px-3 text-[10px] font-mono rounded-sm border border-[#1e1e1e] text-[#555] hover:text-[#888] transition-colors",children:["\u2190 ",s("processDetail.backToList")]})]});const x=[s("common.details"),s("common.logs"),"Log Files",s("common.metrics")],b=[{label:s("processDetail.cpuUsage"),value:a.monit?"".concat(a.monit.cpu,"%"):s("common.na")},{label:s("common.memory"),value:a.monit?(e=>{if(0===e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])})(a.monit.memory):s("common.na")},{label:s("common.restarts"),value:String(a.pm2_env.restart_time)},{label:s("processDetail.startedAt"),value:m(a.pm2_env.pm_uptime)}];return(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)(eC,{title:a.name,subtitle:"PID ".concat(a.pm_id," \xb7 ").concat(a.pm2_env.exec_mode||"fork"," mode \xb7 ns: ").concat(a.pm2_env.namespace||"default"),actions:(0,Ma.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono border rounded-sm px-2 py-0.5 ".concat((v=a.pm2_env.status,"online"===v?"bg-[#22c55e]/15 text-[#22c55e] border-[#22c55e]/30":"stopped"===v?"bg-[#ef4444]/15 text-[#ef4444] border-[#ef4444]/30":"bg-[#f59e0b]/15 text-[#f59e0b] border-[#f59e0b]/30")),children:a.pm2_env.status}),(0,Ma.jsx)("button",{onClick:()=>f("/"),className:"h-7 px-2.5 text-[10px] font-mono rounded-sm border border-[#1e1e1e] text-[#555] hover:text-[#888] transition-colors",title:"Back to process list",children:"\u2190 back"}),(0,Ma.jsx)("button",{onClick:()=>g("start"),disabled:"online"===a.pm2_env.status,className:"h-7 px-3 text-[10px] font-mono rounded-sm border border-[#22c55e]/50 text-[#22c55e] hover:bg-[#22c55e]/10 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:s("common.start")}),(0,Ma.jsx)("button",{onClick:()=>g("stop"),disabled:"stopped"===a.pm2_env.status,className:"h-7 px-3 text-[10px] font-mono rounded-sm border border-[#ef4444]/50 text-[#ef4444] hover:bg-[#ef4444]/10 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:s("common.stop")}),(0,Ma.jsx)("button",{onClick:()=>g("restart"),className:"h-7 px-3 text-[10px] font-mono rounded-sm border border-[#f59e0b]/50 text-[#f59e0b] hover:bg-[#f59e0b]/10 transition-colors",children:s("common.restart")}),(0,Ma.jsx)("button",{onClick:()=>g("delete"),className:"h-7 px-3 text-[10px] font-mono rounded-sm border border-[#ef4444]/30 text-[#ef4444]/70 hover:border-[#ef4444]/60 hover:text-[#ef4444] transition-colors",children:s("common.delete")})]})}),(0,Ma.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-px bg-[#1e1e1e] border border-[#1e1e1e] rounded-sm mb-3 overflow-hidden",children:b.map((e=>{let{label:t,value:n}=e;return(0,Ma.jsxs)("div",{className:"bg-[#111] px-3 py-2.5",children:[(0,Ma.jsx)("div",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em] mb-0.5",children:t}),(0,Ma.jsx)("div",{className:"text-[10px] font-mono text-[#e8e8e8] font-bold",children:n})]},t)}))}),(0,Ma.jsxs)("div",{className:"border border-[#1e1e1e] rounded-sm bg-[#111] overflow-hidden",children:[(0,Ma.jsx)("div",{className:"flex border-b border-[#1e1e1e] bg-[#0d0d0d]",children:x.map(((e,t)=>(0,Ma.jsx)("button",{onClick:()=>h(t),className:"px-4 py-2 text-[10px] font-mono transition-colors border-b-2\n ".concat(p===t?"text-[#e8e8e8] border-[#22c55e] bg-[#111]":"text-[#555] border-transparent hover:text-[#888]"),children:e},e)))}),(0,Ma.jsx)(tC,{active:0===p,children:(0,Ma.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("div",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em] mb-3",children:s("processDetail.processDetails")}),(0,Ma.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[[{label:s("common.namespace"),value:a.pm2_env.namespace||"default"},{label:s("processDetail.execMode"),value:a.pm2_env.exec_mode||s("common.na")},{label:s("processDetail.instances"),value:String(a.pm2_env.instances||1)},{label:s("processDetail.createdAt"),value:m(a.pm2_env.created_at)},{label:s("common.restarts"),value:String(a.pm2_env.restart_time)}].map((e=>{let{label:t,value:n}=e;return(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("div",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em] mb-0.5",children:t}),(0,Ma.jsx)("div",{className:"text-[10px] font-mono text-[#e8e8e8]",children:n})]},t)})),(0,Ma.jsxs)("div",{className:"col-span-2",children:[(0,Ma.jsx)("div",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em] mb-0.5",children:s("processDetail.scriptPath")}),(0,Ma.jsx)("div",{className:"text-[10px] font-mono text-[#e8e8e8] break-all",children:a.pm2_env.pm_exec_path})]})]})]}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("div",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em] mb-3",children:s("processDetail.environmentVariables")}),(0,Ma.jsx)("div",{className:"bg-[#0a0a0a] border border-[#1e1e1e] rounded-sm p-3 max-h-60 overflow-auto",children:a.pm2_env.env&&Object.keys(a.pm2_env.env).length>0?(0,Ma.jsx)("pre",{className:"m-0 text-[10px] font-mono text-[#e8e8e8] leading-relaxed whitespace-pre-wrap break-all",children:JSON.stringify(a.pm2_env.env,null,2)}):(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555]",children:s("processDetail.noEnvVars")})})]})]})}),(0,Ma.jsx)(tC,{active:1===p,children:(0,Ma.jsx)(ig,{processId:a.pm_id,processName:a.name,connectionId:n})}),(0,Ma.jsx)(tC,{active:2===p,children:(0,Ma.jsx)(ax,{processId:a.pm_id,processName:a.name,connectionId:n})}),(0,Ma.jsx)(tC,{active:3===p,children:(0,Ma.jsx)(Qj,{processId:a.pm_id,initialData:a})})]})]});var v},oC=["title","titleId"];function rC(e,t){let{title:n,titleId:r}=e,s=hr(e,oC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const sC=o.forwardRef(rC),aC=["title","titleId"];function iC(e,t){let{title:n,titleId:r}=e,s=hr(e,aC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"}))}const lC=o.forwardRef(iC),cC=["title","titleId"];function dC(e,t){let{title:n,titleId:r}=e,s=hr(e,cC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))}const uC=o.forwardRef(dC),pC=["title","titleId"];function hC(e,t){let{title:n,titleId:r}=e,s=hr(e,pC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 0 1-3-3m3 3a3 3 0 1 0 0 6h13.5a3 3 0 1 0 0-6m-16.5-3a3 3 0 0 1 3-3h13.5a3 3 0 0 1 3 3m-19.5 0a4.5 4.5 0 0 1 .9-2.7L5.737 5.1a3.375 3.375 0 0 1 2.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 0 1 .9 2.7m0 0a3 3 0 0 1-3 3m0 3h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Zm-3 6h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Z"}))}const fC=o.forwardRef(hC),mC=e=>{if(0===e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(1)," ").concat(["B","KB","MB","GB"][t])},gC=e=>{const t=Math.floor(e/86400),n=Math.floor(e%86400/3600),o=Math.floor(e%3600/60);return t>0?"".concat(t,"d ").concat(n,"h"):n>0?"".concat(n,"h ").concat(o,"m"):"".concat(o,"m")},xC=e=>{let{icon:t,iconColor:n,label:o,value:r,sub:s}=e;return(0,Ma.jsxs)("div",{className:"flex items-center gap-2.5 bg-[#111] border border-[#1e1e1e] rounded-sm px-3 py-2 min-w-0",children:[(0,Ma.jsx)(t,{className:"shrink-0 h-3.5 w-3.5 ".concat(n)}),(0,Ma.jsxs)("div",{className:"min-w-0",children:[(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em] leading-none mb-0.5",children:o}),(0,Ma.jsx)("p",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] leading-tight truncate",children:r}),s&&(0,Ma.jsx)("div",{className:"mt-0.5",children:s})]})]})},bC=e=>{let{metrics:t}=e;const{t:n}=me(),o=Math.round(t.memory.used/t.memory.total*100);return(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)(xC,{icon:sC,iconColor:"text-[#22d3ee]",label:n("systemMetrics.systemUptime"),value:gC(t.uptime)}),(0,Ma.jsx)(xC,{icon:lC,iconColor:"text-[#a78bfa]",label:n("systemMetrics.loadAvg"),value:t.loadAvg[0].toFixed(2),sub:(0,Ma.jsxs)("p",{className:"text-[10px] font-mono text-[#555] leading-none",children:[t.loadAvg[1].toFixed(2)," \xb7 ",t.loadAvg[2].toFixed(2)]})}),(0,Ma.jsx)(xC,{icon:uC,iconColor:o>=80?"text-[#ef4444]":o>=50?"text-[#f59e0b]":"text-[#22c55e]",label:n("systemMetrics.memory"),value:"".concat(mC(t.memory.used)," / ").concat(mC(t.memory.total)),sub:(0,Ma.jsx)("div",{className:"w-full bg-[#1a1a1a] rounded-sm h-1 mt-1",children:(0,Ma.jsx)("div",{className:"h-1 rounded-sm transition-all duration-300 ".concat((r=o,r>=80?"bg-[#ef4444]":r>=50?"bg-[#f59e0b]":"bg-[#22c55e]")),style:{width:"".concat(o,"%")}})})}),(0,Ma.jsx)(xC,{icon:fC,iconColor:"text-[#888]",label:n("systemMetrics.cpuCores"),value:String(t.cpus)})]});var r},vC=["title","titleId"];function yC(e,t){let{title:n,titleId:r}=e,s=hr(e,vC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const wC=o.forwardRef(yC),kC=["title","titleId"];function SC(e,t){let{title:n,titleId:r}=e,s=hr(e,kC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const jC=o.forwardRef(SC),CC=["title","titleId"];function AC(e,t){let{title:n,titleId:r}=e,s=hr(e,CC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h9a2.25 2.25 0 0 1 2.25 2.25v9a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-9Z"}))}const NC=o.forwardRef(AC),EC=["title","titleId"];function _C(e,t){let{title:n,titleId:r}=e,s=hr(e,EC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"}))}const PC=o.forwardRef(_C),MC=["title","titleId"];function RC(e,t){let{title:n,titleId:r}=e,s=hr(e,MC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const OC=o.forwardRef(RC),TC=["title","titleId"];function LC(e,t){let{title:n,titleId:r}=e,s=hr(e,TC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const IC=o.forwardRef(LC),DC=e=>{if(!e||"default"===e)return"border-[#222] text-[#555]";let t=0;for(let o=0;o<e.length;o++)t=31*t+e.charCodeAt(o)>>>0;const n=["border-[#4c1d95]/50 text-[#a78bfa]","border-[#075985]/50 text-[#38bdf8]","border-[#065f46]/50 text-[#34d399]","border-[#78350f]/50 text-[#fbbf24]","border-[#881337]/50 text-[#fb7185]","border-[#164e63]/50 text-[#22d3ee]"];return n[t%n.length]},zC=e=>{if(0===e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(1)," ").concat(["B","KB","MB","GB"][t])},FC=e=>{if(!e)return"\u2014";const t=Math.max(0,Math.floor((Date.now()-e)/1e3)),n=Math.floor(t/86400),o=Math.floor(t%86400/3600),r=Math.floor(t%3600/60);return n>0?"".concat(n,"d ").concat(o,"h"):o>0?"".concat(o,"h ").concat(r,"m"):"".concat(r,"m")},BC=e=>e.name.startsWith("pm2-"),WC=e=>{let{processes:t,onAction:n}=e;const{t:r}=me(),s=t.reduce(((e,t)=>{var n;const o=(null===(n=t.pm2_env)||void 0===n?void 0:n.namespace)||"default";return e[o]||(e[o]=[]),e[o].push(t),e}),{}),a=Object.keys(s).sort(((e,t)=>"default"===e?-1:"default"===t?1:e.localeCompare(t))),i=a.length>1;return(0,Ma.jsx)("div",{className:"overflow-x-auto",children:(0,Ma.jsxs)("table",{className:"min-w-full",children:[(0,Ma.jsx)("thead",{className:"bg-[#0d0d0d]",children:(0,Ma.jsxs)("tr",{children:[(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-left text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em] w-8",children:"#"}),(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-left text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em]",children:r("common.name")}),(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-left text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em] w-24",children:r("common.status")}),(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-left text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em] w-16",children:r("common.pid")}),(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-left text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em] w-32",children:r("common.cpu")}),(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-left text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em] w-24",children:r("common.memory")}),(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-left text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em] w-20",children:r("common.uptime")}),(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-left text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em] w-16",children:r("common.restarts")}),(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-left text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em] w-16",children:r("common.mode")}),(0,Ma.jsx)("th",{className:"px-3 py-1.5 text-right text-[9px] font-mono font-bold text-[#444] uppercase tracking-[0.15em] w-32",children:r("common.actions")})]})}),(0,Ma.jsx)("tbody",{className:"divide-y divide-[#111]",children:a.map((e=>(0,Ma.jsxs)(o.Fragment,{children:[i&&(0,Ma.jsx)("tr",{className:"bg-[#0d0d0d]",children:(0,Ma.jsx)("td",{colSpan:10,className:"px-3 py-1",children:(0,Ma.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 text-[9px] font-mono border rounded-sm ".concat(DC(e)),children:[(0,Ma.jsx)("span",{className:"opacity-50",children:"#"}),e,(0,Ma.jsx)("span",{className:"opacity-40 font-normal ml-1",children:"".concat(s[e].length," ").concat(r(1!==s[e].length?"processList.processes":"processList.process"))})]})})}),s[e].map((t=>{var o,s,a,l,c,d;const u="online"===t.pm2_env.status,p="stopped"===t.pm2_env.status,h=null!==(o=null===(s=t.monit)||void 0===s?void 0:s.cpu)&&void 0!==o?o:0,f=null!==(a=null===(l=t.pm2_env.exec_mode)||void 0===l?void 0:l.replace("_mode",""))&&void 0!==a?a:"fork",m=h>80?"bg-[#ef4444]":h>50?"bg-[#f59e0b]":"bg-[#22c55e]";return(0,Ma.jsxs)("tr",{className:"hover:bg-[#111] transition-colors",children:[(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555]",children:t.pm_id})}),(0,Ma.jsxs)("td",{className:"px-3 py-2",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("span",{className:"text-[11px] font-mono font-semibold text-[#e8e8e8]",children:t.name}),!i&&"default"!==e&&(0,Ma.jsx)("span",{className:"inline-flex items-center px-1.5 py-0 text-[9px] font-mono border rounded-sm ".concat(DC(e)),children:e})]}),(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#444] truncate max-w-xs mt-0.5",children:null===(c=t.pm2_env.pm_exec_path)||void 0===c?void 0:c.split(/[\\/]/).slice(-2).join("/")})]}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 text-[9px] font-mono font-bold border rounded-sm ".concat(u?"text-[#22c55e] border-[#22c55e]/30 bg-[#022c00]":p?"text-[#ef4444] border-[#ef4444]/30 bg-[#1a0000]":"text-[#f59e0b] border-[#f59e0b]/30 bg-[#1a0e00]"),children:[(0,Ma.jsx)("span",{className:"w-1.5 h-1.5 rounded-full inline-block ".concat(u?"bg-[#22c55e] animate-pulse":p?"bg-[#ef4444]":"bg-[#f59e0b]")}),t.pm2_env.status]})}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555]",children:t.pid>0?t.pid:"\u2014"})}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("div",{className:"w-12 h-1.5 bg-[#1a1a1a] overflow-hidden",children:(0,Ma.jsx)("div",{className:"h-full transition-all duration-300 ".concat(m),style:{width:"".concat(Math.min(h,100),"%")}})}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#888] tabular-nums w-7",children:t.monit?"".concat(h,"%"):"\u2014"})]})}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#888]",children:t.monit?zC(t.monit.memory):"\u2014"})}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555]",children:u?FC(t.pm2_env.pm_uptime):"\u2014"})}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsx)("span",{className:"text-[10px] font-mono tabular-nums ".concat(t.pm2_env.restart_time>10?"text-[#ef4444]":t.pm2_env.restart_time>3?"text-[#f59e0b]":"text-[#555]"),children:null!==(d=t.pm2_env.restart_time)&&void 0!==d?d:0})}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsx)("span",{className:"inline-flex items-center px-1.5 py-0 text-[9px] font-mono border rounded-sm ".concat("cluster"===f?"text-[#a78bfa] border-[#a78bfa]/30 bg-[#16003a]":"text-[#555] border-[#222]"),children:f})}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsxs)("div",{className:"flex items-center justify-end gap-0.5",children:[(0,Ma.jsx)(ba,{to:"/process/".concat(t.pm_id),className:"w-5 h-5 rounded-sm flex items-center justify-center text-[#22d3ee] hover:text-[#67e8f9] hover:bg-[#1a1a1a] transition-colors",title:r("common.details"),children:(0,Ma.jsx)(wC,{className:"h-3 w-3"})}),u?(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)("button",{onClick:()=>n(t.pm_id,"restart"),className:"w-5 h-5 rounded-sm flex items-center justify-center text-[#f59e0b] hover:text-[#fbbf24] hover:bg-[#1a1a1a] transition-colors",title:r("common.restart"),children:(0,Ma.jsx)(jC,{className:"h-3 w-3"})}),(0,Ma.jsx)("button",{onClick:()=>n(t.pm_id,"stop"),className:"w-5 h-5 rounded-sm flex items-center justify-center text-[#ef4444] hover:text-[#f87171] hover:bg-[#1a1a1a] transition-colors",title:r("common.stop"),children:(0,Ma.jsx)(NC,{className:"h-3 w-3"})})]}):(0,Ma.jsx)("button",{onClick:()=>n(t.pm_id,"start"),className:"w-5 h-5 rounded-sm flex items-center justify-center text-[#22c55e] hover:text-[#4ade80] hover:bg-[#1a1a1a] transition-colors",title:r("common.start"),children:(0,Ma.jsx)(PC,{className:"h-3 w-3"})}),(0,Ma.jsx)("button",{onClick:()=>n(t.pm_id,"delete"),className:"w-5 h-5 rounded-sm flex items-center justify-center text-[#ef4444] hover:text-[#f87171] hover:bg-[#1a1a1a] transition-colors",title:r("common.delete"),children:(0,Ma.jsx)(OC,{className:"h-3 w-3"})}),(0,Ma.jsx)(ba,{to:"/logs/".concat(t.pm_id),className:"w-5 h-5 rounded-sm flex items-center justify-center text-[#555] hover:text-[#888] hover:bg-[#1a1a1a] transition-colors",title:r("common.logs"),children:(0,Ma.jsx)(IC,{className:"h-3 w-3"})})]})})]},t.pm_id)}))]},e)))})]})})},UC=e=>{let{processes:t,onAction:n}=e;const{t:o}=me(),r=t.filter((e=>!BC(e))),s=t.filter((e=>BC(e)));return 0===t.length?(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-16 text-center",children:[(0,Ma.jsx)("div",{className:"mx-auto flex items-center justify-center h-16 w-16 mb-6",children:(0,Ma.jsx)(wC,{className:"h-8 w-8 text-[#333]"})}),(0,Ma.jsx)("h3",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.1em] mb-2",children:o("processList.noProcessesTitle")}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] max-w-sm mx-auto",children:o("processList.noProcessesDesc")})]}):(0,Ma.jsxs)("div",{className:"space-y-3",children:[(0,Ma.jsxs)("div",{className:"bg-[#0d0d0d] border border-[#1e1e1e] rounded-sm",children:[(0,Ma.jsxs)("div",{className:"px-4 py-2 border-b border-[#1e1e1e] flex items-center justify-between",children:[(0,Ma.jsx)("h2",{className:"text-[9px] font-mono font-bold text-[#555] uppercase tracking-[0.15em]",children:o("processList.appProcesses")}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555] bg-[#111] border border-[#1e1e1e] px-2 py-0.5 rounded-sm",children:r.length})]}),0===r.length?(0,Ma.jsx)("div",{className:"px-4 py-8 text-center text-[10px] font-mono text-[#444]",children:o("processList.noAppProcesses")}):(0,Ma.jsx)(WC,{processes:r,onAction:n})]}),s.length>0&&(0,Ma.jsxs)("div",{className:"bg-[#0d0d0d] border border-[#1e1e1e] rounded-sm",children:[(0,Ma.jsxs)("div",{className:"px-4 py-2 border-b border-[#1e1e1e] flex items-center justify-between",children:[(0,Ma.jsx)("h2",{className:"text-[9px] font-mono font-bold text-[#555] uppercase tracking-[0.15em]",children:"PM2 Modules"}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#a78bfa] bg-[#16003a] border border-[#a78bfa]/30 px-2 py-0.5 rounded-sm",children:s.length})]}),(0,Ma.jsx)(WC,{processes:s,onAction:n})]})]})},HC=["title","titleId"];function VC(e,t){let{title:n,titleId:r}=e,s=hr(e,HC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const KC=o.forwardRef(VC),qC=["title","titleId"];function $C(e,t){let{title:n,titleId:r}=e,s=hr(e,qC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const JC=o.forwardRef($C),YC=["title","titleId"];function GC(e,t){let{title:n,titleId:r}=e,s=hr(e,YC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const XC=o.forwardRef(GC),ZC=["title","titleId"];function QC(e,t){let{title:n,titleId:r}=e,s=hr(e,ZC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const eA=o.forwardRef(QC),tA=["title","titleId"];function nA(e,t){let{title:n,titleId:r}=e,s=hr(e,tA);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const oA=o.forwardRef(nA),rA=["title","titleId"];function sA(e,t){let{title:n,titleId:r}=e,s=hr(e,rA);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122"}))}const aA=o.forwardRef(sA),iA=["title","titleId"];function lA(e,t){let{title:n,titleId:r}=e,s=hr(e,iA);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const cA=o.forwardRef(lA),dA=e=>{let{icon:t,iconColor:n,iconBg:o,label:r,value:s,total:a}=e;return(0,Ma.jsxs)("div",{className:"flex items-center gap-2.5 bg-[#111] border border-[#1e1e1e] rounded-sm px-3 py-2 min-w-0",children:[(0,Ma.jsx)("div",{className:"shrink-0 w-7 h-7 flex items-center justify-center ".concat(o),children:(0,Ma.jsx)(t,{className:"h-3.5 w-3.5 ".concat(n)})}),(0,Ma.jsxs)("div",{className:"min-w-0",children:[(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em] leading-none mb-0.5",children:r}),(0,Ma.jsxs)("p",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] leading-tight",children:[s,void 0!==a&&(0,Ma.jsxs)("span",{className:"text-[10px] font-mono font-normal text-[#444] ml-1",children:["/ ",a]})]})]})]})},uA=e=>{let{processes:t,metrics:n,searchTerm:o,statusFilter:r,namespaceFilter:s,onSearchChange:a,onStatusFilterChange:i,onNamespaceFilterChange:l,onProcessAction:c}=e;const{t:d}=me(),u=t.filter((e=>{var t;return"online"===(null===(t=e.pm2_env)||void 0===t?void 0:t.status)})).length,p=t.filter((e=>{var t;return"stopped"===(null===(t=e.pm2_env)||void 0===t?void 0:t.status)})).length,h=t.filter((e=>{var t;return!["online","stopped"].includes(null===(t=e.pm2_env)||void 0===t?void 0:t.status)})).length,f=Array.from(new Set(t.map((e=>{var t;return(null===(t=e.pm2_env)||void 0===t?void 0:t.namespace)||"default"})))).sort(((e,t)=>"default"===e?-1:"default"===t?1:e.localeCompare(t)));return(0,Ma.jsxs)("div",{className:"space-y-3",children:[(0,Ma.jsx)("div",{className:"flex items-center justify-between",children:(0,Ma.jsxs)("div",{children:[(0,Ma.jsxs)("h1",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.1em]",children:["\u25b8 ",d("mainDashboard.title")]}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] mt-0.5",children:d("mainDashboard.subtitle")})]})}),(0,Ma.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-2",children:[(0,Ma.jsx)(dA,{icon:KC,iconColor:"text-[#22c55e]",iconBg:"bg-green-950",label:d("common.online"),value:u,total:t.length}),(0,Ma.jsx)(dA,{icon:JC,iconColor:"text-[#ef4444]",iconBg:"bg-red-950",label:d("common.stopped"),value:p}),(0,Ma.jsx)(dA,{icon:XC,iconColor:"text-[#f59e0b]",iconBg:"bg-amber-950",label:d("common.errored"),value:h}),(0,Ma.jsx)(dA,{icon:eA,iconColor:"text-[#888]",iconBg:"bg-[#1a1a1a]",label:d("common.total"),value:t.length}),(0,Ma.jsx)(bC,{metrics:n})]}),(0,Ma.jsx)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-2",children:(0,Ma.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,Ma.jsxs)("div",{className:"flex-1 relative",children:[(0,Ma.jsx)(oA,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-[#444] pointer-events-none"}),(0,Ma.jsx)("input",{type:"text",placeholder:d("mainDashboard.searchPlaceholder"),value:o,onChange:a,className:"bg-[#0d0d0d] border border-[#1e1e1e] rounded-sm text-xs font-mono text-[#e8e8e8] placeholder-[#333] focus:border-[#555] focus:outline-none pl-8 pr-3 py-1.5 w-full"})]}),f.length>1&&(0,Ma.jsxs)("div",{className:"sm:w-40 relative",children:[(0,Ma.jsx)(aA,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-[#444] pointer-events-none"}),(0,Ma.jsxs)("select",{value:s,onChange:l,className:"w-full pl-8 pr-6 py-1.5 bg-[#0d0d0d] border border-[#1e1e1e] rounded-sm text-xs font-mono text-[#888] focus:border-[#555] focus:outline-none cursor-pointer",children:[(0,Ma.jsx)("option",{value:"all",children:d("mainDashboard.allNamespaces")}),f.map((e=>(0,Ma.jsx)("option",{value:e,children:e},e)))]})]}),(0,Ma.jsxs)("div",{className:"sm:w-40 relative",children:[(0,Ma.jsx)(cA,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-[#444] pointer-events-none"}),(0,Ma.jsxs)("select",{value:r,onChange:i,className:"w-full pl-8 pr-6 py-1.5 bg-[#0d0d0d] border border-[#1e1e1e] rounded-sm text-xs font-mono text-[#888] focus:border-[#555] focus:outline-none cursor-pointer",children:[(0,Ma.jsx)("option",{value:"all",children:d("mainDashboard.allProcesses")}),(0,Ma.jsx)("option",{value:"online",children:d("mainDashboard.onlineOnly")}),(0,Ma.jsx)("option",{value:"stopped",children:d("mainDashboard.stoppedOnly")}),(0,Ma.jsx)("option",{value:"errored",children:d("mainDashboard.erroredOnly")})]})]})]})}),(0,Ma.jsx)(UC,{processes:t,onAction:c})]})},pA=e=>"warning"===e?"bg-[#1a0e00] border border-[#f59e0b]/30 text-[#f59e0b] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#261500] transition-colors":"info"===e?"bg-[#0d1a0d] border border-[#22c55e]/30 text-[#22c55e] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#0f220f] transition-colors":"bg-[#7f1d1d] border border-[#ef4444]/30 text-[#ef4444] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#991b1b] transition-colors",hA=e=>"danger"===e?"text-[#ef4444]":"warning"===e?"text-[#f59e0b]":"text-[#e8e8e8]",fA=e=>{let{isOpen:t,title:n,message:o,confirmLabel:r="Confirm",cancelLabel:s="Cancel",onConfirm:a,onCancel:i,type:l="danger"}=e;return t?(0,Ma.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70",onClick:i,children:(0,Ma.jsxs)("div",{className:"w-full max-w-sm mx-4 bg-[#111] border border-[#1e1e1e] rounded-sm overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,Ma.jsx)("div",{className:"px-4 pt-4 pb-2 border-l-2 ".concat("danger"===l?"border-[#ef4444]":"warning"===l?"border-[#f59e0b]":"border-[#22c55e]"),children:(0,Ma.jsx)("p",{className:"text-[11px] font-mono font-bold uppercase tracking-[0.1em] ".concat(hA(l)),children:n})}),(0,Ma.jsx)("div",{className:"px-4 py-3",children:(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888] leading-relaxed",children:o})}),(0,Ma.jsxs)("div",{className:"flex items-center justify-end gap-2 px-4 pb-4",children:[(0,Ma.jsx)("button",{onClick:i,className:"border border-[#333] text-[#888] font-mono text-xs px-4 py-1.5 rounded-sm hover:border-[#555] hover:text-[#aaa] transition-colors",children:s}),(0,Ma.jsx)("button",{onClick:a,className:pA(l),autoFocus:!0,children:r})]})]})}):null},mA=["title","titleId"];function gA(e,t){let{title:n,titleId:r}=e,s=hr(e,mA);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const xA=o.forwardRef(gA),bA=["title","titleId"];function vA(e,t){let{title:n,titleId:r}=e,s=hr(e,bA);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const yA=o.forwardRef(vA),wA=["hasError","className"],kA=["className"],SA={node:{label:"node.js",scriptLabel:"entry file",scriptHelp:"dist/index.js",defaultExecMode:"fork",supportsCluster:!0},python:{label:"python",scriptLabel:"python file",scriptHelp:"app.py",defaultExecMode:"fork",supportsCluster:!1,requiresInterpreter:!0,interpreterHelp:"/path/to/venv/bin/python"},dotnet:{label:".net",scriptLabel:"dll path",scriptHelp:"bin/Release/net8.0/app.dll",defaultExecMode:"fork",supportsCluster:!1,interpreterEnvVar:"DOTNET_COMMAND"},other:{label:"other",scriptLabel:"script/binary",scriptHelp:"/path/to/executable",defaultExecMode:"fork",supportsCluster:!1}},jA=e=>{let{active:t,onClick:n,children:o}=e;return(0,Ma.jsx)("button",{type:"button",onClick:n,className:"px-2.5 py-0.5 rounded text-xs font-mono transition-all ".concat(t?"bg-[#e8e8e8] text-[#0a0a0a] font-semibold":"text-[#555] hover:text-[#999] hover:bg-[#1a1a1a]"),children:o})},CA=e=>{let{label:t,children:n,hint:o,error:r}=e;return(0,Ma.jsxs)("div",{className:"flex items-start gap-0 group",children:[(0,Ma.jsx)("span",{className:"font-mono text-xs text-[#444] w-28 shrink-0 pt-1.5 select-none",children:t}),(0,Ma.jsxs)("div",{className:"flex-1 min-w-0",children:[n,o&&(0,Ma.jsx)("p",{className:"text-xs font-mono text-[#333] mt-0.5",children:o}),r&&(0,Ma.jsx)("p",{className:"text-xs font-mono text-red-400 mt-0.5",children:r})]})]})},AA=e=>{let{hasError:t,className:n=""}=e,o=hr(e,wA);return(0,Ma.jsx)("input",c(c({},o),{},{className:"w-full bg-transparent font-mono text-xs text-[#e8e8e8] placeholder-[#2e2e2e]\n border-b border-[#222] focus:border-[#444] outline-none py-1 transition-colors\n ".concat(t?"border-red-800 focus:border-red-600":"","\n ").concat(n)}))},NA=e=>{let{className:t=""}=e,n=hr(e,kA);return(0,Ma.jsx)("select",c(c({},n),{},{className:"bg-transparent font-mono text-xs text-[#e8e8e8] border-b border-[#222]\n focus:border-[#444] outline-none py-1 transition-colors cursor-pointer ".concat(t)}))},EA=e=>{let{children:t}=e;return(0,Ma.jsxs)("div",{className:"flex items-center gap-2 mt-5 mb-3",children:[(0,Ma.jsx)("span",{className:"text-[#444] font-mono text-xs select-none",children:"\u25b8"}),(0,Ma.jsx)("span",{className:"font-mono text-xs text-[#666] uppercase tracking-widest",children:t}),(0,Ma.jsx)("div",{className:"flex-1 border-t border-[#1a1a1a]"})]})},_A=e=>{let{checked:t,onChange:n,label:o}=e;return(0,Ma.jsxs)("button",{type:"button",onClick:()=>n(!t),className:"flex items-center gap-1.5 font-mono text-xs transition-colors ".concat(t?"text-[#e8e8e8]":"text-[#333] line-through"),children:[(0,Ma.jsx)("span",{className:"w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-all ".concat(t?"border-[#555] bg-[#555]":"border-[#2a2a2a]"),children:t&&(0,Ma.jsx)("svg",{className:"w-2.5 h-2.5 text-[#0a0a0a]",viewBox:"0 0 10 10",fill:"currentColor",children:(0,Ma.jsx)("path",{d:"M2 5l2.5 2.5L8 3",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})})}),o]})},PA=()=>{const e=xs(),{t:t}=me(),[n,r]=(0,o.useState)("node"),[s,a]=(0,o.useState)(!0),[i,l]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),[p,h]=(0,o.useState)(""),[f,m]=(0,o.useState)(""),[g,x]=(0,o.useState)(""),[b,v]=(0,o.useState)([]),[y,w]=(0,o.useState)({key:"",value:""}),[k,S]=(0,o.useState)([]),j=(0,o.useRef)(null),[C,A]=(0,o.useState)({name:"",script:"",cwd:"",namespace:"default",instances:1,exec_mode:"fork",autorestart:!0,watch:!1,max_memory_restart:"150M",port:"",interpreter:""});(0,o.useEffect)((()=>{var e;null===(e=j.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),[k]),(0,o.useEffect)((()=>{if(p){const e=setTimeout((()=>h("")),3e3);return()=>clearTimeout(e)}}),[p]),(0,o.useEffect)((()=>{if(f){const e=setTimeout((()=>m("")),5e3);return()=>clearTimeout(e)}}),[f]);const N=e=>{const{name:n,value:o,type:r}=e.target,s=e.target.checked;"port"===n&&x(o&&(!/^\d+$/.test(o)||+o<1||+o>65535)?t("deploy.portError"):""),A((e=>c(c({},e),{},{[n]:"checkbox"===r?s:o})))},E=e=>{r(e),A((t=>c(c({},t),{},{exec_mode:SA[e].defaultExecMode})))},_=()=>{y.key.trim()&&(v((e=>[...e,c({},y)])),w({key:"",value:""}))},P=(e,t,n)=>v((o=>o.map(((o,r)=>r===e?c(c({},o),{},{[t]:n}):o)))),M=SA[n];return(0,Ma.jsxs)("form",{onSubmit:async o=>{if(o.preventDefault(),g)return;const r={};b.forEach((e=>{let{key:t,value:n}=e;t.trim()&&(r[t]=n)})),C.interpreter&&SA[n].interpreterEnvVar&&(r[SA[n].interpreterEnvVar]=C.interpreter),l(!0),S([]);try{var a;const o=await fetch("/api/deploy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c(c({},C),{},{env:r,appType:n,autoSetup:s}))});if(!o.ok&&null!==(a=o.headers.get("content-type"))&&void 0!==a&&a.includes("application/json")){const e=await o.json();return m(e.error||t("deploy.deploymentFailed")),void l(!1)}const u=o.body.getReader(),p=new TextDecoder;let f="";for(;;){var i;const{done:n,value:o}=await u.read();if(n)break;f+=p.decode(o,{stream:!0});const r=f.split("\n\n");f=null!==(i=r.pop())&&void 0!==i?i:"";for(const s of r){const n=s.split("\n").find((e=>e.startsWith("data: ")));if(n)try{const o=JSON.parse(n.slice(6));if("log"===o.type)S((e=>[...e,o.message]));else if("done"===o.type)if(o.success)h(t("deploy.deployedSuccessfully")),setTimeout((()=>e("/processes")),2e3);else{const e=o.error||t("deploy.deploymentFailed");m(e.includes("port")&&e.includes("use")?t("deploy.portInUse",{port:C.port}):e)}}catch(d){}}}}catch(vM){m(vM.message||t("deploy.failedToDeploy"))}finally{l(!1)}},className:"min-h-screen",children:[(0,Ma.jsxs)("div",{className:"rounded-xl border border-[#1e1e1e] bg-[#0a0a0a] overflow-hidden shadow-2xl",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between px-4 py-2.5 border-b border-[#1a1a1a] bg-[#0d0d0d]",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("span",{className:"font-mono text-xs text-[#444]",children:"$"}),(0,Ma.jsx)("span",{className:"font-mono text-xs text-[#666]",children:"pm2 deploy"}),(0,Ma.jsxs)("span",{className:"font-mono text-xs text-[#e8e8e8]",children:["\u2014",t("deploy.newProcess")]})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Ma.jsx)("button",{type:"button",onClick:()=>e("/processes"),className:"font-mono text-xs text-[#444] hover:text-[#888] transition-colors px-2 py-1",children:"esc"}),(0,Ma.jsx)("button",{type:"submit",disabled:i||!!g,className:"flex items-center gap-1.5 font-mono text-xs px-3 py-1 rounded bg-[#e8e8e8] text-[#0a0a0a] font-semibold hover:bg-white disabled:opacity-30 disabled:cursor-not-allowed transition-all",children:i?(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)(jC,{className:"h-3 w-3 animate-spin"}),t("deploy.deploying")]}):(0,Ma.jsxs)(Ma.Fragment,{children:["\u23ce ",t("deploy.deployBtn")]})})]})]}),(0,Ma.jsxs)("div",{className:"px-6 py-4 pb-6",children:[(0,Ma.jsx)(EA,{children:t("deploy.sectionType")}),(0,Ma.jsx)("div",{className:"flex items-center gap-1 ml-6",children:Object.keys(SA).map((e=>(0,Ma.jsx)(jA,{active:n===e,onClick:()=>E(e),children:SA[e].label},e)))}),(0,Ma.jsx)(EA,{children:t("deploy.sectionIdentity")}),(0,Ma.jsxs)("div",{className:"ml-6 space-y-3",children:[(0,Ma.jsx)(CA,{label:t("deploy.fieldName"),children:(0,Ma.jsx)(AA,{required:!0,name:"name",value:C.name,onChange:N,placeholder:"my-app",autoComplete:"off"})}),(0,Ma.jsx)(CA,{label:t("deploy.fieldNamespace"),children:(0,Ma.jsx)(AA,{name:"namespace",value:C.namespace,onChange:N,placeholder:"default"})})]}),(0,Ma.jsx)(EA,{children:t("deploy.sectionEntryPoint")}),(0,Ma.jsxs)("div",{className:"ml-6 space-y-3",children:[(0,Ma.jsx)(CA,{label:t("deploy.scriptLabel".concat(n.charAt(0).toUpperCase()+n.slice(1))),hint:M.scriptHelp,children:(0,Ma.jsx)(AA,{required:!0,name:"script",value:C.script,onChange:N,placeholder:M.scriptHelp})}),(0,Ma.jsx)(CA,{label:t("deploy.fieldDirectory"),hint:t("deploy.workingDirectoryHelper"),children:(0,Ma.jsxs)("div",{className:"relative",children:[(0,Ma.jsx)(AA,{name:"cwd",value:C.cwd,onChange:N,placeholder:"/path/to/project",style:{paddingRight:"1.5rem"}}),(0,Ma.jsx)("button",{type:"button",onClick:async()=>{const e=C.cwd||(()=>{const e=C.script,t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return t>0?e.substring(0,t):"."})();if(e&&"."!==e)try{u(!0);const{data:o}=await ur.post("/api/deploy/detect-project",{projectPath:e});var n;if(o.success&&o.projectType)E(o.projectType),h(t("deploy.detectedProject",{name:(null===(n=o.config)||void 0===n?void 0:n.name)||o.projectType}));else m(t("deploy.couldNotDetect"))}catch(vM){var o,r;m((null===(o=vM.response)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.error)||t("deploy.detectionFailed"))}finally{u(!1)}else m(t("deploy.setWorkingDirectoryFirst"))},disabled:d,title:t("deploy.autoDetect"),className:"absolute right-0 top-1/2 -translate-y-1/2 text-[#333] hover:text-[#888] transition-colors disabled:opacity-30",children:d?(0,Ma.jsx)(jC,{className:"h-3 w-3 animate-spin"}):(0,Ma.jsx)(oA,{className:"h-3 w-3"})})]})}),M.requiresInterpreter&&(0,Ma.jsx)(CA,{label:t("deploy.fieldInterpreter"),hint:M.interpreterHelp,children:(0,Ma.jsx)(AA,{name:"interpreter",value:C.interpreter,onChange:N,placeholder:M.interpreterHelp})})]}),(0,Ma.jsx)(EA,{children:t("deploy.sectionRuntime")}),(0,Ma.jsxs)("div",{className:"ml-6 space-y-3",children:[(0,Ma.jsxs)("div",{className:"flex items-start gap-8",children:[(0,Ma.jsx)(CA,{label:t("deploy.instances"),children:(0,Ma.jsx)(AA,{type:"number",name:"instances",value:C.instances,onChange:N,min:1,className:"w-16"})}),(0,Ma.jsx)(CA,{label:t("deploy.fieldExecMode"),children:(0,Ma.jsxs)(NA,{name:"exec_mode",value:C.exec_mode,disabled:!M.supportsCluster,onChange:N,children:[(0,Ma.jsx)("option",{value:"fork",children:"fork"}),M.supportsCluster&&(0,Ma.jsx)("option",{value:"cluster",children:"cluster"})]})}),(0,Ma.jsx)(CA,{label:t("deploy.fieldMaxMemory"),children:(0,Ma.jsx)(AA,{name:"max_memory_restart",value:C.max_memory_restart,onChange:N,placeholder:"150M",className:"w-20"})}),(0,Ma.jsx)(CA,{label:t("deploy.fieldPort"),error:g,children:(0,Ma.jsx)(AA,{name:"port",value:C.port,onChange:N,placeholder:"optional",hasError:!!g,className:"w-24"})})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-5 pt-1",children:[(0,Ma.jsx)(_A,{checked:C.autorestart,onChange:e=>A((t=>c(c({},t),{},{autorestart:e}))),label:t("deploy.toggleAutorestart")}),(0,Ma.jsx)(_A,{checked:C.watch,onChange:e=>A((t=>c(c({},t),{},{watch:e}))),label:t("deploy.toggleWatch")}),(0,Ma.jsx)(_A,{checked:s,onChange:a,label:t("deploy.toggleAutoSetup")})]}),+C.instances>1&&(0,Ma.jsxs)("p",{className:"font-mono text-xs text-[#444] mt-1",children:[(0,Ma.jsx)("span",{className:"text-[#888]",children:"\u2192"})," ","cluster"===C.exec_mode?t("deploy.instancesCluster",{count:C.instances}):t("deploy.instancesFork",{count:C.instances})]})]}),(0,Ma.jsx)(EA,{children:t("deploy.sectionEnvironment")}),(0,Ma.jsxs)("div",{className:"ml-6",children:[b.length>0&&(0,Ma.jsx)("div",{className:"mb-3 space-y-0.5",children:b.map(((e,t)=>(0,Ma.jsxs)("div",{className:"flex items-center gap-2 group/row py-0.5",children:[(0,Ma.jsx)("input",{value:e.key,onChange:e=>P(t,"key",e.target.value),className:"w-36 bg-transparent font-mono text-xs text-[#e8e8e8] outline-none border-b border-transparent focus:border-[#333] placeholder-[#333] transition-colors",placeholder:"KEY"}),(0,Ma.jsx)("span",{className:"text-[#333] font-mono text-xs shrink-0",children:"="}),(0,Ma.jsx)("input",{value:e.value,onChange:e=>P(t,"value",e.target.value),className:"flex-1 bg-transparent font-mono text-xs text-[#888] outline-none border-b border-transparent focus:border-[#333] placeholder-[#333] transition-colors",placeholder:"value"}),(0,Ma.jsx)("button",{type:"button",onClick:()=>(e=>v((t=>t.filter(((t,n)=>n!==e)))))(t),className:"opacity-0 group-hover/row:opacity-100 text-[#333] hover:text-red-500 transition-all",children:(0,Ma.jsx)(xA,{className:"h-3 w-3"})})]},t)))}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("input",{value:y.key,onChange:e=>w((t=>c(c({},t),{},{key:e.target.value}))),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),_())},className:"w-36 bg-transparent font-mono text-xs text-[#e8e8e8] outline-none border-b border-[#1e1e1e] focus:border-[#444] placeholder-[#2a2a2a] transition-colors py-1",placeholder:"KEY"}),(0,Ma.jsx)("span",{className:"text-[#2a2a2a] font-mono text-xs shrink-0",children:"="}),(0,Ma.jsx)("input",{value:y.value,onChange:e=>w((t=>c(c({},t),{},{value:e.target.value}))),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),_())},className:"flex-1 bg-transparent font-mono text-xs text-[#888] outline-none border-b border-[#1e1e1e] focus:border-[#444] placeholder-[#2a2a2a] transition-colors py-1",placeholder:"value"}),(0,Ma.jsxs)("button",{type:"button",onClick:_,disabled:!y.key.trim(),className:"font-mono text-xs text-[#333] hover:text-[#888] disabled:opacity-20 transition-colors flex items-center gap-1",children:[(0,Ma.jsx)(yA,{className:"h-3 w-3"}),t("deploy.addEnvVar")]})]}),0===b.length&&(0,Ma.jsx)("p",{className:"font-mono text-xs text-[#2a2a2a] mt-2",children:t("deploy.noEnvVarsHint")})]}),k.length>0&&(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)(EA,{children:t("deploy.sectionLog")}),(0,Ma.jsxs)("div",{className:"ml-6 max-h-52 overflow-y-auto space-y-px",children:[k.map(((e,t)=>{const n=e.startsWith("[ERROR]")?"#f87171":e.startsWith("[WARN]")?"#fbbf24":e.startsWith("[OK]")?"#4ade80":e.startsWith("[STEP]")?"#60a5fa":e.startsWith("[SKIP]")?"#374151":"#4b5563";return(0,Ma.jsx)("p",{className:"font-mono text-xs",style:{color:n,whiteSpace:"pre-wrap"},children:e},t)})),(0,Ma.jsx)("div",{ref:j})]})]})]}),(0,Ma.jsxs)("div",{className:"flex items-center justify-between px-6 py-2 border-t border-[#1a1a1a] bg-[#0d0d0d]",children:[(0,Ma.jsx)("div",{className:"flex items-center gap-3",children:(0,Ma.jsxs)("span",{className:"font-mono text-xs text-[#2a2a2a]",children:[C.name?(0,Ma.jsx)("span",{className:"text-[#555]",children:C.name}):t("deploy.unnamed"),(0,Ma.jsx)("span",{className:"text-[#222]",children:" \xb7 "}),(0,Ma.jsx)("span",{className:"text-[#333]",children:SA[n].label}),C.script&&(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)("span",{className:"text-[#222]",children:" \xb7 "}),(0,Ma.jsx)("span",{className:"text-[#2a2a2a]",children:C.script})]})]})}),(0,Ma.jsxs)("div",{className:"flex items-center gap-3",children:[i&&(0,Ma.jsxs)("span",{className:"font-mono text-xs text-[#444] flex items-center gap-1.5",children:[(0,Ma.jsx)(jC,{className:"h-2.5 w-2.5 animate-spin"}),t("deploy.deployingStatus")]}),(0,Ma.jsx)("span",{className:"font-mono text-xs text-[#2a2a2a]",children:b.length>0&&t("deploy.envCount",{count:b.length})})]})]})]}),(f||p)&&(0,Ma.jsxs)("div",{className:"fixed bottom-4 left-1/2 -translate-x-1/2 z-50 flex flex-col gap-2 items-center pointer-events-none",children:[f&&(0,Ma.jsxs)("div",{className:"pointer-events-auto flex items-center gap-2 px-3 py-2 rounded-lg bg-[#0a0a0a] border border-[#2a1a1a] shadow-xl text-xs font-mono text-red-400",children:[(0,Ma.jsx)(XC,{className:"h-3.5 w-3.5 shrink-0"}),(0,Ma.jsx)("span",{children:f}),(0,Ma.jsx)("button",{type:"button",onClick:()=>m(""),className:"ml-1 text-[#444] hover:text-red-400",children:(0,Ma.jsx)(xA,{className:"h-3 w-3"})})]}),p&&(0,Ma.jsxs)("div",{className:"pointer-events-auto flex items-center gap-2 px-3 py-2 rounded-lg bg-[#0a0a0a] border border-[#1a2a1a] shadow-xl text-xs font-mono text-green-400",children:[(0,Ma.jsx)(KC,{className:"h-3.5 w-3.5 shrink-0"}),(0,Ma.jsx)("span",{children:p})]})]})]})},MA=["title","titleId"];function RA(e,t){let{title:n,titleId:r}=e,s=hr(e,MA);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z"}))}const OA=o.forwardRef(RA),TA=["title","titleId"];function LA(e,t){let{title:n,titleId:r}=e,s=hr(e,TA);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const IA=o.forwardRef(LA),DA=["title","titleId"];function zA(e,t){let{title:n,titleId:r}=e,s=hr(e,DA);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const FA=o.forwardRef(zA),BA=[{name:"pm2-logrotate",description:"Automatically rotate PM2 log files to prevent unbounded disk growth.",category:"Logging"},{name:"pm2-server-monit",description:"Monitor CPU, memory, network and disk usage of your server in PM2.",category:"Monitoring"},{name:"pm2-auto-pull",description:"Auto pull & restart from a git remote whenever a new commit is pushed.",category:"Deployment"},{name:"pm2-slack",description:"Send process event notifications (restart, stop, error) to Slack channels.",category:"Notifications"},{name:"pm2-telegram",description:"Receive PM2 process event alerts directly in a Telegram chat.",category:"Notifications"},{name:"pm2-githook",description:"Listen for GitHub webhook pushes and auto-deploy on new commits.",category:"Deployment"},{name:"pm2-metrics",description:"Expose aggregated PM2 process metrics for Prometheus / Grafana scraping.",category:"Monitoring"},{name:"pm2-notify",description:"Cross-platform desktop/email notifications for PM2 process state changes.",category:"Notifications"},{name:"pm2-keymetrics-agent",description:"Connect to the Keymetrics SaaS dashboard for remote monitoring.",category:"Monitoring"},{name:"pm2-intercom",description:"Expose a simple RPC bridge between PM2 processes via pm2 trigger.",category:"Utilities"}],WA={"pm2-logrotate":[{key:"max_size",label:"Max Log Size",description:"Size before rotation, e.g. 10M or 1G",type:"text",default:"10M"},{key:"retain",label:"Retained Rotations",description:"How many rotated files to keep",type:"number",default:"30"},{key:"compress",label:"Compress Rotated Logs",description:"Gzip rotated log files",type:"boolean",default:"false"},{key:"dateFormat",label:"Date Format",description:"Timestamp appended to rotated file names",type:"text",default:"YYYY-MM-DD_HH-mm-ss"},{key:"rotateModule",label:"Rotate PM2 Module Logs",description:"Include PM2 internal module logs in rotation",type:"boolean",default:"true"},{key:"workerInterval",label:"Worker Interval (s)",description:"How often to check log sizes",type:"number",default:"30"},{key:"rotateInterval",label:"Cron Rotate Schedule",description:"Cron expression for time-based rotation",type:"text",default:"0 0 * * *"},{key:"TZ",label:"Timezone",description:"e.g. America/New_York (blank = system default)",type:"text",default:""},{key:"su",label:"Run as su",description:"Use sudo for log rotation (Unix only)",type:"boolean",default:"false"}],"pm2-server-monit":[{key:"port",label:"HTTP Port",description:"Port the monitoring dashboard listens on",type:"number",default:"4357"},{key:"refresh",label:"Refresh Interval (ms)",description:"Polling interval for system metrics",type:"number",default:"2000"}],"pm2-auto-pull":[{key:"service_name",label:"Service Name",description:"Systemd service name for auto-pull",type:"text",default:"pm2-auto-pull"},{key:"port",label:"Webhook Port",description:"Port that receives GitHub webhook payloads",type:"number",default:"8888"},{key:"secret",label:"Webhook Secret",description:"HMAC secret to verify payload signatures",type:"text",default:""}],"pm2-slack":[{key:"slack_url",label:"Slack Webhook URL",description:"Incoming webhook URL from your Slack app",type:"text",default:""},{key:"servername",label:"Server Name",description:"Label displayed in Slack notifications",type:"text",default:""},{key:"events",label:"Events to Notify",description:"Comma-separated: start,stop,restart,error",type:"text",default:"start,stop,restart,error,kill,exception"}],"pm2-telegram":[{key:"telegram_token",label:"Bot Token",description:"Telegram bot token from @BotFather",type:"text",default:""},{key:"telegram_chat_id",label:"Chat ID",description:"Target chat or group ID for alerts",type:"text",default:""},{key:"servername",label:"Server Name",description:"Label shown in Telegram notifications",type:"text",default:""}]},UA=e=>{const t=e.toLowerCase();return t.includes("online")||t.includes("enabled")?"text-[9px] font-mono text-[#22c55e] border border-[#22c55e]/30 bg-[#022c00] px-1.5 py-0.5 rounded-sm":t.includes("error")||t.includes("disabled")?"text-[9px] font-mono text-[#ef4444] border border-[#ef4444]/30 bg-[#1a0000] px-1.5 py-0.5 rounded-sm":"text-[9px] font-mono text-[#f59e0b] border border-[#f59e0b]/30 bg-[#1a0e00] px-1.5 py-0.5 rounded-sm"},HA={Logging:"text-[#22d3ee] border border-[#22d3ee]/20 bg-[#001a1f]",Monitoring:"text-[#22c55e] border border-[#22c55e]/20 bg-[#022c00]",Deployment:"text-[#a78bfa] border border-[#a78bfa]/20 bg-[#16003a]",Notifications:"text-[#f59e0b] border border-[#f59e0b]/20 bg-[#1a0e00]",Utilities:"text-[#888] border border-[#333] bg-[#1a1a1a]"},VA=e=>{var t;let{moduleName:n,onClose:r,onNotify:s}=e;const a=null!==(t=WA[n])&&void 0!==t?t:[],[i,l]=(0,o.useState)({}),[d,u]=(0,o.useState)(!0),[p,h]=(0,o.useState)(!1),[f,m]=(0,o.useState)([]);(0,o.useEffect)((()=>{(async()=>{try{var e;const t=null!==(e=(await ur.get("/api/modules/".concat(encodeURIComponent(n),"/config"))).data.config)&&void 0!==e?e:{};l(t);const o=new Set(a.map((e=>e.key))),r=Object.entries(t).filter((e=>{let[t]=e;return!o.has(t)})).map((e=>{let[t,n]=e;return{key:t,value:String(n)}}));m(r)}catch(t){s("Failed to load module configuration","error")}finally{u(!1)}})()}),[n]);const g=(e,t)=>l((n=>c(c({},n),{},{[e]:t}))),x=(e,t,n)=>m((o=>o.map(((o,r)=>r===e?c(c({},o),{},{[t]:n}):o))));return(0,Ma.jsxs)("div",{className:"fixed inset-0 z-50 flex justify-end",children:[(0,Ma.jsx)("div",{className:"absolute inset-0 bg-black/60",onClick:r}),(0,Ma.jsxs)("div",{className:"relative z-10 flex flex-col w-full max-w-md h-full bg-[#111] border-l border-[#1e1e1e] shadow-2xl overflow-hidden",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[#1e1e1e] shrink-0",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[9px] uppercase tracking-[0.2em] text-[#555] mb-0.5",children:"\u25b8 CONFIGURE MODULE"}),(0,Ma.jsx)("p",{className:"text-[11px] font-mono font-bold text-[#e8e8e8]",children:n})]}),(0,Ma.jsx)("button",{onClick:r,className:"text-[#444] hover:text-[#888] p-1 rounded-sm hover:bg-[#1a1a1a] transition-colors",children:(0,Ma.jsx)(xA,{className:"h-4 w-4"})})]}),(0,Ma.jsx)("div",{className:"flex-1 overflow-y-auto px-4 py-4 space-y-4",children:d?(0,Ma.jsxs)("div",{className:"flex items-center justify-center h-24 gap-2 text-xs font-mono text-[#555]",children:[(0,Ma.jsxs)("svg",{className:"h-4 w-4 animate-spin text-[#888]",viewBox:"0 0 24 24",fill:"none",children:[(0,Ma.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Ma.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),"loading\u2026"]}):(0,Ma.jsxs)(Ma.Fragment,{children:[a.length>0&&(0,Ma.jsxs)("div",{className:"space-y-3",children:[(0,Ma.jsx)("p",{className:"text-[9px] uppercase tracking-[0.2em] text-[#555]",children:"\u25b8 SETTINGS"}),a.map((e=>{var t;const n=null!==(t=i[e.key])&&void 0!==t?t:e.default;return(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("label",{className:"block text-[10px] font-mono text-[#888] mb-1",children:e.label}),"boolean"===e.type?(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("button",{onClick:()=>g(e.key,"true"===n?"false":"true"),className:"relative inline-flex h-5 w-9 shrink-0 rounded-sm border-2 border-transparent\n transition-colors duration-200 focus:outline-none cursor-pointer\n ".concat("true"===n?"bg-[#22c55e]":"bg-[#2a2a2a]"),children:(0,Ma.jsx)("span",{className:"pointer-events-none inline-block h-4 w-4 rounded-sm bg-[#0a0a0a] shadow\n transform transition-transform duration-200\n ".concat("true"===n?"translate-x-4":"translate-x-0")})}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555]",children:"true"===n?"enabled":"disabled"})]}):(0,Ma.jsx)("input",{type:"number"===e.type?"number":"text",value:n,onChange:t=>g(e.key,t.target.value),placeholder:e.default,className:"w-full h-8 px-3 bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm placeholder-[#333] focus:outline-none focus:border-[#333]"}),e.description&&(0,Ma.jsx)("p",{className:"mt-0.5 text-[10px] font-mono text-[#444]",children:e.description})]},e.key)}))]}),(0,Ma.jsxs)("div",{className:"space-y-2",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ma.jsxs)("p",{className:"text-[9px] uppercase tracking-[0.2em] text-[#555]",children:["\u25b8 ",a.length>0?"ADDITIONAL KEYS":"CONFIGURATION KEYS"]}),(0,Ma.jsx)("button",{onClick:()=>m((e=>[...e,{key:"",value:""}])),className:"text-[10px] font-mono text-[#888] hover:text-[#e8e8e8] transition-colors",children:"+ add key"})]}),0===f.length&&a.length>0?(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#444] italic",children:"no additional keys"}):f.map(((e,t)=>(0,Ma.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Ma.jsx)("input",{type:"text",value:e.key,onChange:e=>x(t,"key",e.target.value),placeholder:"key",className:"w-32 h-7 px-2 bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm placeholder-[#333] focus:outline-none focus:border-[#333]"}),(0,Ma.jsx)("input",{type:"text",value:e.value,onChange:e=>x(t,"value",e.target.value),placeholder:"value",className:"flex-1 h-7 px-2 bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm placeholder-[#333] focus:outline-none focus:border-[#333]"}),(0,Ma.jsx)("button",{onClick:()=>m((e=>e.filter(((e,n)=>n!==t)))),className:"shrink-0 text-[#444] hover:text-[#ef4444] transition-colors",children:(0,Ma.jsx)(xA,{className:"h-3.5 w-3.5"})})]},t)))]}),0===a.length&&0===f.length&&(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#444] italic text-center py-4",children:'no configuration found \u2014 use "+ add key" to add custom settings'})]})}),(0,Ma.jsxs)("div",{className:"flex justify-end gap-2 px-4 py-3 border-t border-[#1e1e1e] shrink-0",children:[(0,Ma.jsx)("button",{onClick:r,className:"h-7 px-3 text-xs font-mono border border-[#1e1e1e] text-[#555] hover:text-[#888] hover:border-[#333] rounded-sm transition-colors",children:"cancel"}),(0,Ma.jsx)("button",{onClick:async()=>{const e=c({},i);f.forEach((t=>{let{key:n,value:o}=t;n.trim()&&(e[n.trim()]=o)}));try{h(!0),await ur.put("/api/modules/".concat(encodeURIComponent(n),"/config"),{config:e}),s("Configuration saved for ".concat(n),"success"),r()}catch(vM){var t,o;s((null===(t=vM.response)||void 0===t||null===(o=t.data)||void 0===o?void 0:o.error)||"Failed to save configuration","error")}finally{h(!1)}},disabled:p||d,className:"h-7 px-3 bg-[#e8e8e8] text-[#0a0a0a] text-xs font-mono font-semibold rounded-sm disabled:opacity-40 transition-colors flex items-center gap-1.5 hover:bg-[#ccc]",children:p?(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)("svg",{className:"h-3.5 w-3.5 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,Ma.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Ma.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),"saving\u2026"]}):"save"})]})]})]})},KA=e=>{let{onNotify:t}=e;const{t:n}=me(),[r,s]=(0,o.useState)([]),[a,i]=(0,o.useState)(!0),[l,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)(""),[p,h]=(0,o.useState)(!1),[f,m]=(0,o.useState)(null),g=(0,o.useCallback)((async()=>{try{i(!0);const e=await ur.get("/api/modules");s(e.data)}catch(vM){var e,o;t((null===(e=vM.response)||void 0===e||null===(o=e.data)||void 0===o?void 0:o.error)||n("errors.failedToFetchModules"),"error")}finally{i(!1)}}),[t]);(0,o.useEffect)((()=>{g()}),[g]);const x=async()=>{if(d.trim())try{h(!0),await ur.post("/api/modules/install",{moduleName:d.trim()}),t("Installed: ".concat(d.trim()),"success"),u(""),c(!1),g()}catch(vM){var e,o;t((null===(e=vM.response)||void 0===e||null===(o=e.data)||void 0===o?void 0:o.error)||"Failed to install module","error")}finally{h(!1)}else t(n("errors.moduleNameRequired"),"warn")},b=new Set(r.map((e=>e.name)));return(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)(eC,{title:n("modules.title"),subtitle:n("modules.subtitle"),actions:(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsxs)("button",{onClick:g,disabled:a,className:"h-7 px-3 text-xs font-mono border border-[#1e1e1e] text-[#555] hover:text-[#888] hover:border-[#333] rounded-sm disabled:opacity-40 transition-colors flex items-center gap-1.5",children:[(0,Ma.jsx)(jC,{className:"h-3.5 w-3.5 ".concat(a?"animate-spin":"")}),n("common.refresh")]}),(0,Ma.jsxs)("button",{onClick:()=>c(!0),className:"h-7 px-3 bg-[#e8e8e8] text-[#0a0a0a] text-xs font-mono font-semibold rounded-sm hover:bg-[#ccc] transition-colors flex items-center gap-1.5",children:[(0,Ma.jsx)(yA,{className:"h-3.5 w-3.5"}),"install module"]})]})}),(0,Ma.jsxs)("section",{className:"mb-6",children:[(0,Ma.jsx)("p",{className:"text-[9px] uppercase tracking-[0.2em] text-[#555] mb-2",children:"\u25b8 INSTALLED"}),(0,Ma.jsx)("div",{className:"border border-[#1e1e1e] rounded-sm overflow-hidden bg-[#111]",children:a?(0,Ma.jsxs)("div",{className:"flex items-center justify-center h-24 gap-2 text-xs font-mono text-[#555]",children:[(0,Ma.jsxs)("svg",{className:"h-4 w-4 animate-spin text-[#888]",viewBox:"0 0 24 24",fill:"none",children:[(0,Ma.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Ma.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),"loading modules\u2026"]}):0===r.length?(0,Ma.jsxs)("div",{className:"flex flex-col items-center justify-center h-24 gap-1 text-[#555]",children:[(0,Ma.jsx)(OA,{className:"h-5 w-5 opacity-40"}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono",children:"no PM2 modules installed"})]}):(0,Ma.jsxs)("table",{className:"w-full text-xs",children:[(0,Ma.jsx)("thead",{children:(0,Ma.jsxs)("tr",{className:"border-b border-[#1e1e1e] bg-[#0d0d0d] text-[#555]",children:[(0,Ma.jsx)("th",{className:"px-3 py-2 text-left text-[9px] font-mono uppercase tracking-[0.15em]",children:"Name"}),(0,Ma.jsx)("th",{className:"px-3 py-2 text-left text-[9px] font-mono uppercase tracking-[0.15em]",children:"Version"}),(0,Ma.jsx)("th",{className:"px-3 py-2 text-left text-[9px] font-mono uppercase tracking-[0.15em]",children:"Status"}),(0,Ma.jsx)("th",{className:"px-3 py-2 text-right text-[9px] font-mono uppercase tracking-[0.15em]",children:"Actions"})]})}),(0,Ma.jsx)("tbody",{children:r.map(((e,n)=>(0,Ma.jsxs)("tr",{className:"border-b last:border-0 border-[#1a1a1a] ".concat(n%2===0?"":"bg-[#0d0d0d]/50"),children:[(0,Ma.jsx)("td",{className:"px-3 py-2 font-mono font-bold text-[11px] text-[#e8e8e8]",children:e.name}),(0,Ma.jsx)("td",{className:"px-3 py-2 font-mono text-[10px] text-[#555]",children:e.version}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsx)("span",{className:"inline-block ".concat(UA(e.status)),children:e.status})}),(0,Ma.jsx)("td",{className:"px-3 py-2",children:(0,Ma.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,Ma.jsx)("button",{onClick:()=>m(e.name),title:"Configure",className:"inline-flex items-center justify-center h-6 w-6 rounded-sm text-[#444] hover:text-[#888] hover:bg-[#1a1a1a] transition-colors",children:(0,Ma.jsx)(IA,{className:"h-3.5 w-3.5"})}),(0,Ma.jsx)("button",{onClick:()=>(async e=>{try{await ur.delete("/api/modules/".concat(e)),t("Uninstalled: ".concat(e),"success"),g()}catch(vM){var n,o;t((null===(n=vM.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.error)||"Failed to uninstall module","error")}})(e.name),title:"Uninstall",className:"inline-flex items-center justify-center h-6 w-6 rounded-sm text-[#444] hover:text-[#ef4444] hover:bg-[#1a0000] transition-colors",children:(0,Ma.jsx)(OC,{className:"h-3.5 w-3.5"})})]})})]},e.name)))})]})})]}),(0,Ma.jsxs)("section",{children:[(0,Ma.jsx)("p",{className:"text-[9px] uppercase tracking-[0.2em] text-[#555] mb-2",children:"\u25b8 AVAILABLE MODULES"}),(0,Ma.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:BA.map((e=>{var n;const o=b.has(e.name);return(0,Ma.jsxs)("div",{className:"flex items-start gap-3 bg-[#0d0d0d] border border-[#1e1e1e] rounded-sm p-3 hover:border-[#333] transition-colors",children:[(0,Ma.jsx)("div",{className:"shrink-0 mt-0.5 h-7 w-7 rounded-sm flex items-center justify-center bg-[#1a1a1a]",children:(0,Ma.jsx)(OA,{className:"h-4 w-4 text-[#444]"})}),(0,Ma.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,Ma.jsx)("span",{className:"text-[11px] font-mono font-bold text-[#e8e8e8]",children:e.name}),(0,Ma.jsx)("span",{className:"text-[9px] font-mono px-1.5 py-0.5 rounded-sm ".concat(null!==(n=HA[e.category])&&void 0!==n?n:HA.Utilities),children:e.category}),o&&(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#22c55e] border border-[#22c55e]/30 bg-[#022c00] px-1.5 py-0.5 rounded-sm",children:"installed"})]}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] mt-0.5 leading-relaxed",children:e.description})]}),(0,Ma.jsx)("div",{className:"flex flex-col gap-1 shrink-0 mt-0.5",children:o?(0,Ma.jsx)("button",{onClick:()=>m(e.name),title:"Configure",className:"h-7 w-7 flex items-center justify-center rounded-sm border border-[#1e1e1e] text-[#555] hover:text-[#888] hover:border-[#333] transition-colors",children:(0,Ma.jsx)(IA,{className:"h-3.5 w-3.5"})}):(0,Ma.jsx)("button",{onClick:()=>(async e=>{try{await ur.post("/api/modules/install",{moduleName:e}),t("Installed: ".concat(e),"success"),g()}catch(vM){var n,o;t((null===(n=vM.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.error)||"Failed to install ".concat(e),"error")}})(e.name),title:"Install",className:"h-7 w-7 flex items-center justify-center rounded-sm border border-[#1e1e1e] text-[#555] hover:text-[#888] hover:border-[#333] transition-colors",children:(0,Ma.jsx)(FA,{className:"h-3.5 w-3.5"})})})]},e.name)}))})]}),l&&(0,Ma.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/70",children:(0,Ma.jsxs)("div",{className:"w-full max-w-sm bg-[#111] border border-[#1e1e1e] rounded-sm shadow-2xl",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[#1e1e1e]",children:[(0,Ma.jsx)("p",{className:"font-mono text-xs text-[#e8e8e8] font-semibold",children:"\u25b8 INSTALL PM2 MODULE"}),(0,Ma.jsx)("button",{onClick:()=>c(!1),className:"text-[#444] hover:text-[#888] p-1 rounded-sm hover:bg-[#1a1a1a] transition-colors",children:(0,Ma.jsx)(xA,{className:"h-4 w-4"})})]}),(0,Ma.jsxs)("div",{className:"px-4 py-4",children:[(0,Ma.jsx)("label",{className:"block text-[10px] font-mono text-[#555] mb-1",children:"Module Name"}),(0,Ma.jsx)("input",{autoFocus:!0,type:"text",value:d,onChange:e=>u(e.target.value),onKeyDown:e=>"Enter"===e.key&&x(),placeholder:"e.g. pm2-logrotate",className:"w-full h-8 px-3 bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm placeholder-[#333] focus:outline-none focus:border-[#333]"}),(0,Ma.jsx)("p",{className:"mt-1.5 text-[10px] font-mono text-[#444]",children:"enter any npm-published PM2 module name"})]}),(0,Ma.jsxs)("div",{className:"flex justify-end gap-2 px-4 py-3 border-t border-[#1e1e1e]",children:[(0,Ma.jsx)("button",{onClick:()=>c(!1),className:"h-7 px-3 text-xs font-mono border border-[#1e1e1e] text-[#555] hover:text-[#888] hover:border-[#333] rounded-sm transition-colors",children:"cancel"}),(0,Ma.jsx)("button",{onClick:x,disabled:p,className:"h-7 px-3 bg-[#e8e8e8] text-[#0a0a0a] text-xs font-mono font-semibold rounded-sm disabled:opacity-40 transition-colors flex items-center gap-1.5 hover:bg-[#ccc]",children:p?(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)("svg",{className:"h-3.5 w-3.5 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,Ma.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Ma.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),"installing\u2026"]}):(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)(FA,{className:"h-3.5 w-3.5"}),"install"]})})]})]})}),f&&(0,Ma.jsx)(VA,{moduleName:f,onClose:()=>m(null),onNotify:t})]})},qA=()=>{const{t:e}=me(),[t,n]=(0,o.useState)(!1),[r,s]=(0,o.useState)(""),[a,i]=(0,o.useState)(""),[l,c]=(0,o.useState)(""),[d,u]=(0,o.useState)(""),[p,h]=(0,o.useState)(!1),[f,m]=(0,o.useState)(!0),[g,x]=(0,o.useState)(!1),b=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{if(n(!0),c(""),e){const e=await ur.get("/api/deploy/generate-ecosystem-preview");u(e.data.content),h(!0)}else{const e=await ur.post("/api/deploy/generate-ecosystem",{path:r.trim()||void 0,includeAllProcesses:f});i("Ecosystem file saved to: ".concat(e.data.path))}}catch(vM){var t,o;c((null===(t=vM.response)||void 0===t||null===(o=t.data)||void 0===o?void 0:o.error)||"Failed to generate ecosystem file")}finally{n(!1)}};return(0,Ma.jsxs)("div",{className:"space-y-3",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[9px] font-mono uppercase tracking-[0.2em] text-[#555] mb-1",children:"pm2 / tools"}),(0,Ma.jsx)("h1",{className:"text-sm font-mono font-bold text-[#e8e8e8]",children:"\u25b8 ECOSYSTEM GENERATOR"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] mt-0.5",children:e("ecosystem.subtitle")})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("button",{onClick:()=>b(!0),disabled:t,className:"border border-[#333] text-[#888] font-mono text-xs px-3 py-1 rounded-sm hover:border-[#555] hover:text-[#aaa] disabled:opacity-40 disabled:cursor-not-allowed",children:e("common.preview")}),(0,Ma.jsx)("button",{onClick:()=>b(!1),disabled:t,className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#ccc] disabled:opacity-40 disabled:cursor-not-allowed",children:t?"...":e("ecosystem.generateFile")})]})]}),l&&(0,Ma.jsxs)("div",{className:"flex items-center gap-2 border border-[#ef4444]/30 bg-[#1a0000] px-3 py-2 rounded-sm",children:[(0,Ma.jsx)("span",{className:"flex-1 text-[10px] font-mono text-[#ef4444]",children:l}),(0,Ma.jsx)("button",{onClick:()=>c(""),className:"text-[#ef4444] hover:text-[#f87171] text-xs",children:"\u2715"})]}),a&&(0,Ma.jsxs)("div",{className:"flex items-center gap-2 border border-[#22c55e]/30 bg-[#001a00] px-3 py-2 rounded-sm",children:[(0,Ma.jsx)("span",{className:"flex-1 text-[10px] font-mono text-[#22c55e]",children:a}),(0,Ma.jsx)("button",{onClick:()=>i(""),className:"text-[#22c55e] hover:text-[#4ade80] text-xs",children:"\u2715"})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-4",children:[(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.2em] mb-3 block",children:e("ecosystem.outputOptions")}),(0,Ma.jsxs)("form",{onSubmit:e=>{e.preventDefault(),b(!1)},className:"space-y-3",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("label",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.2em] mb-1.5 block",children:e("ecosystem.savePath")}),(0,Ma.jsx)("input",{type:"text",placeholder:"/path/to/ecosystem.config.js",value:r,onChange:e=>s(e.target.value),className:"bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm px-2.5 py-1.5 focus:border-[#555] focus:outline-none w-full"}),(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] mt-1",children:e("ecosystem.savePathHelper")})]}),(0,Ma.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,Ma.jsx)("input",{type:"checkbox",checked:f,onChange:e=>m(e.target.checked),className:"accent-[#22c55e] w-3 h-3"}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#888]",children:e("ecosystem.includeStopped")})]})]}),(0,Ma.jsxs)("p",{className:"text-[9px] font-mono text-[#555] mt-4 leading-relaxed border-t border-[#1e1e1e] pt-3",children:["The generated file can be used to redeploy and manage your processes across environments with"," ",(0,Ma.jsx)("span",{className:"text-[#22d3ee]",children:"pm2 start ecosystem.config.js"}),"."]})]}),p&&(0,Ma.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80",children:(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm w-full max-w-2xl mx-4 flex flex-col max-h-[80vh]",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[#1e1e1e]",children:[(0,Ma.jsx)("span",{className:"text-[10px] font-mono font-bold text-[#e8e8e8]",children:"ecosystem.config.js \u2014 Preview"}),(0,Ma.jsx)("button",{onClick:()=>h(!1),className:"text-[#555] hover:text-[#888] font-mono text-xs",children:"\u2715"})]}),(0,Ma.jsx)("div",{className:"overflow-auto flex-1 p-3",children:(0,Ma.jsx)("pre",{className:"bg-[#0a0a0a] border border-[#1e1e1e] font-mono text-[10px] text-[#e8e8e8] p-3 rounded-sm whitespace-pre-wrap break-all",children:d})}),(0,Ma.jsxs)("div",{className:"flex items-center justify-end gap-2 px-4 py-3 border-t border-[#1e1e1e]",children:[(0,Ma.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(d).then((()=>{x(!0),setTimeout((()=>x(!1)),1500)}))},className:"border border-[#333] text-[#888] font-mono text-xs px-3 py-1 rounded-sm hover:border-[#555]",children:g?"copied":"copy"}),(0,Ma.jsx)("button",{onClick:()=>h(!1),className:"border border-[#1e1e1e] text-[#555] font-mono text-xs px-3 py-1 rounded-sm hover:border-[#333] hover:text-[#888]",children:e("common.close")}),(0,Ma.jsx)("button",{onClick:()=>{h(!1),b(!1)},className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#ccc]",children:e("ecosystem.saveFile")})]})]})})]})},$A="bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm px-2.5 py-1.5 focus:border-[#555] focus:outline-none w-full",JA="text-[10px] font-mono text-[#888] mb-1 block",YA="bg-[#111] border border-[#1e1e1e] rounded-sm p-4",GA=e=>{let{procId:t}=e;const{t:n}=me(),r=bs(),s=t||Number(r.id),a=xs(),[i,l]=(0,o.useState)(null),[d,u]=(0,o.useState)(!0),[p,h]=(0,o.useState)(""),[f,m]=(0,o.useState)(""),[g,x]=(0,o.useState)([]),[b,v]=(0,o.useState)(""),[y,w]=(0,o.useState)("");(0,o.useEffect)((()=>{(async()=>{try{u(!0);const e=await ur.get("/api/config/".concat(s));l(e.data),x(Object.keys(e.data.env||{})),u(!1)}catch(e){h("Failed to fetch configuration for process ".concat(s)),u(!1)}})()}),[s]);const k=e=>{const{name:t,value:n,type:o}=e.target,r=e.target.checked;l((e=>e?c(c({},e),{},{[t]:"checkbox"===o?r:n}):e))};return d?(0,Ma.jsx)("div",{className:"font-mono text-xs text-[#555] p-4",children:n("processConfig.loading")}):i?(0,Ma.jsxs)("div",{className:"space-y-4",children:[(0,Ma.jsx)("div",{className:"flex items-center justify-between",children:(0,Ma.jsxs)("div",{children:[(0,Ma.jsxs)("h1",{className:"font-mono text-xs font-semibold text-[#e8e8e8] tracking-[0.15em] uppercase",children:["\u25b8 ",n("processConfig.title")]}),(0,Ma.jsxs)("p",{className:"font-mono text-[10px] text-[#555] mt-0.5",children:["process id: ",s]})]})}),p&&(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#ef4444]/40 rounded-sm px-3 py-2 font-mono text-[10px] text-[#ef4444] flex items-center justify-between",children:[(0,Ma.jsx)("span",{children:p}),(0,Ma.jsx)("button",{onClick:()=>h(""),className:"text-[#555] hover:text-[#888] ml-4",children:"\u2715"})]}),f&&(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#22c55e]/40 rounded-sm px-3 py-2 font-mono text-[10px] text-[#22c55e] flex items-center justify-between",children:[(0,Ma.jsx)("span",{children:f}),(0,Ma.jsx)("button",{onClick:()=>m(""),className:"text-[#555] hover:text-[#888] ml-4",children:"\u2715"})]}),(0,Ma.jsxs)("div",{className:YA,children:[(0,Ma.jsx)("p",{className:"font-mono text-[9px] text-[#555] uppercase tracking-[0.15em] mb-3",children:"general"}),(0,Ma.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("label",{className:JA,children:"name"}),(0,Ma.jsx)("input",{className:$A,name:"name",value:i.name,onChange:k})]}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("label",{className:JA,children:n("processConfig.scriptPath")}),(0,Ma.jsx)("input",{className:$A,name:"script",value:i.script,onChange:k})]}),(0,Ma.jsxs)("div",{className:"sm:col-span-2",children:[(0,Ma.jsx)("label",{className:JA,children:n("processConfig.workingDir")}),(0,Ma.jsx)("input",{className:$A,name:"cwd",value:i.cwd,onChange:k})]}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("label",{className:JA,children:n("processConfig.instances")}),(0,Ma.jsx)("input",{className:$A,name:"instances",type:"number",value:i.instances,onChange:k})]}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("label",{className:JA,children:n("processConfig.execMode")}),(0,Ma.jsxs)("select",{className:$A,name:"exec_mode",value:i.exec_mode,onChange:k,children:[(0,Ma.jsx)("option",{value:"fork",children:"fork"}),(0,Ma.jsx)("option",{value:"cluster",children:"cluster"})]})]}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("label",{className:JA,children:n("processConfig.maxMemory")}),(0,Ma.jsx)("input",{className:$A,name:"max_memory_restart",value:i.max_memory_restart,onChange:k}),(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] mt-0.5",children:"e.g. 150M, 1G"})]})]}),(0,Ma.jsxs)("div",{className:"flex gap-6 mt-3",children:[(0,Ma.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,Ma.jsx)("input",{type:"checkbox",name:"autorestart",checked:i.autorestart,onChange:k,className:"accent-[#22c55e]"}),(0,Ma.jsx)("span",{className:"font-mono text-[10px] text-[#888]",children:n("processConfig.autoRestart")})]}),(0,Ma.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,Ma.jsx)("input",{type:"checkbox",name:"watch",checked:i.watch,onChange:k,className:"accent-[#22c55e]"}),(0,Ma.jsx)("span",{className:"font-mono text-[10px] text-[#888]",children:n("processConfig.watchChanges")})]})]})]}),(0,Ma.jsxs)("div",{className:YA,children:[(0,Ma.jsx)("p",{className:"font-mono text-[9px] text-[#555] uppercase tracking-[0.15em] mb-3",children:n("processConfig.envVars")}),(0,Ma.jsx)("div",{className:"space-y-2",children:g.map((e=>(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("input",{className:"".concat($A," w-1/3 opacity-50"),value:e,readOnly:!0}),(0,Ma.jsx)("input",{className:"".concat($A," flex-1"),value:i.env[e],onChange:t=>((e,t)=>{l((n=>n?c(c({},n),{},{env:c(c({},n.env),{},{[e]:t})}):n))})(e,t.target.value)}),(0,Ma.jsx)("button",{onClick:()=>(e=>{l((t=>{if(!t)return t;const n=c({},t.env);return delete n[e],c(c({},t),{},{env:n})})),x(g.filter((t=>t!==e)))})(e),className:"font-mono text-[10px] text-[#555] hover:text-[#ef4444] px-2 py-1.5 border border-[#1e1e1e] rounded-sm transition-colors shrink-0",children:n("processConfig.remove")})]},e)))}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2 mt-3 pt-3 border-t border-[#1e1e1e]",children:[(0,Ma.jsx)("input",{className:"".concat($A," w-1/3"),placeholder:n("processConfig.newKey"),value:b,onChange:e=>v(e.target.value)}),(0,Ma.jsx)("input",{className:"".concat($A," flex-1"),placeholder:n("processConfig.newValue"),value:y,onChange:e=>w(e.target.value)}),(0,Ma.jsx)("button",{onClick:()=>{b.trim()&&(l((e=>e?c(c({},e),{},{env:c(c({},e.env),{},{[b]:y})}):e)),x((e=>[...e,b])),v(""),w(""))},className:"font-mono text-[10px] text-[#888] hover:text-[#e8e8e8] px-3 py-1.5 border border-[#1e1e1e] hover:border-[#333] rounded-sm transition-colors shrink-0",children:"+ add"})]})]}),(0,Ma.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,Ma.jsx)("button",{onClick:()=>a("/processes"),className:"font-mono text-xs text-[#555] hover:text-[#888] px-4 py-1.5 border border-[#1e1e1e] hover:border-[#333] rounded-sm transition-colors",children:n("common.cancel")}),(0,Ma.jsx)("button",{onClick:async()=>{try{await ur.post("/api/config/".concat(s),i),m("Configuration saved successfully")}catch(e){h("Failed to save configuration")}},className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-white transition-colors",children:n("processConfig.saveConfig")})]})]}):(0,Ma.jsx)("div",{className:"font-mono text-xs text-[#ef4444] p-4",children:n("processConfig.notFound")})},XA=["title","titleId"];function ZA(e,t){let{title:n,titleId:r}=e,s=hr(e,XA);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"}))}const QA=o.forwardRef(ZA),eN=["title","titleId"];function tN(e,t){let{title:n,titleId:r}=e,s=hr(e,eN);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const nN=o.forwardRef(tN),oN=e=>{let{processes:t,onRefresh:n}=e;const{t:r}=me(),[s,a]=(0,o.useState)(""),[i,l]=(0,o.useState)([]),[c,d]=(0,o.useState)(1),[u,p]=(0,o.useState)(!1),[h,f]=(0,o.useState)(""),[m,g]=(0,o.useState)("");(0,o.useEffect)((()=>{s&&x(s)}),[s]);const x=async e=>{try{p(!0);const t=await ur.get("/api/cluster/".concat(e));l([t.data]),d(t.data.instances||1)}catch(t){g("Failed to fetch cluster information")}finally{p(!1)}},b=async e=>{if(s)try{p(!0),await ur.post("/api/cluster/".concat(s,"/exec-mode"),{mode:e}),await x(s),f("Execution mode changed to ".concat(e)),n()}catch(t){g("Failed to change execution mode")}finally{p(!1)}},v=i[0];return(0,Ma.jsxs)("div",{className:"space-y-3",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[9px] font-mono uppercase tracking-[0.2em] text-[#555] mb-1",children:"pm2 / cluster"}),(0,Ma.jsx)("h1",{className:"text-sm font-mono font-bold text-[#e8e8e8]",children:"\u25b8 CLUSTER MANAGEMENT"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] mt-0.5",children:r("cluster.subtitle")})]}),m&&(0,Ma.jsxs)("div",{className:"flex items-center gap-2 border border-[#ef4444]/30 bg-[#1a0000] px-3 py-2 rounded-sm",children:[(0,Ma.jsx)("span",{className:"flex-1 text-[10px] font-mono text-[#ef4444]",children:m}),(0,Ma.jsx)("button",{onClick:()=>g(""),className:"text-[#ef4444] hover:text-[#f87171] text-xs font-mono",children:"\u2715"})]}),h&&(0,Ma.jsxs)("div",{className:"flex items-center gap-2 border border-[#22c55e]/30 bg-[#001a00] px-3 py-2 rounded-sm",children:[(0,Ma.jsx)("span",{className:"flex-1 text-[10px] font-mono text-[#22c55e]",children:h}),(0,Ma.jsx)("button",{onClick:()=>f(""),className:"text-[#22c55e] hover:text-[#4ade80] text-xs font-mono",children:"\u2715"})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:[(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.2em] mb-2 block",children:r("cluster.selectProcess")}),(0,Ma.jsxs)("select",{value:s,onChange:e=>a(e.target.value),className:"bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm px-2.5 py-1.5 focus:border-[#555] focus:outline-none w-full sm:w-72",children:[(0,Ma.jsx)("option",{value:"",children:r("cluster.choosePlaceholder")}),t.map((e=>(0,Ma.jsxs)("option",{value:e.pm_id,children:[e.name," (ID: ",e.pm_id,")"]},e.pm_id)))]})]}),u?(0,Ma.jsx)("div",{className:"flex justify-center py-10",children:(0,Ma.jsx)(jC,{className:"h-4 w-4 animate-spin text-[#555]"})}):s?v?(0,Ma.jsxs)("div",{className:"space-y-3",children:[(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm overflow-hidden",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-[#1e1e1e]",children:[(0,Ma.jsx)(lC,{className:"h-3.5 w-3.5 text-[#555]"}),(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.2em]",children:r("cluster.currentStatus")})]}),(0,Ma.jsxs)("table",{className:"w-full",children:[(0,Ma.jsx)("thead",{children:(0,Ma.jsx)("tr",{className:"border-b border-[#1e1e1e]",children:[r("common.id"),r("common.name"),r("cluster.instances"),r("cluster.execModeHeader"),r("common.mode")].map((e=>(0,Ma.jsx)("th",{className:"px-3 py-2 text-left text-[9px] font-mono text-[#555] uppercase tracking-[0.15em]",children:e},e)))})}),(0,Ma.jsx)("tbody",{children:i.map((e=>(0,Ma.jsxs)("tr",{children:[(0,Ma.jsx)("td",{className:"px-3 py-2.5 text-[10px] font-mono text-[#888]",children:e.pm_id}),(0,Ma.jsx)("td",{className:"px-3 py-2.5 text-[11px] font-mono font-bold text-[#e8e8e8]",children:e.name}),(0,Ma.jsx)("td",{className:"px-3 py-2.5 text-[10px] font-mono text-[#22d3ee]",children:e.instances}),(0,Ma.jsx)("td",{className:"px-3 py-2.5 text-[10px] font-mono text-[#888]",children:e.exec_mode}),(0,Ma.jsx)("td",{className:"px-3 py-2.5",children:(0,Ma.jsx)("span",{className:"inline-flex px-1.5 py-0.5 rounded-sm border text-[9px] font-mono ".concat(e.isCluster?"text-[#a78bfa] border-[#a78bfa]/30 bg-[#16003a]":"text-[#888] border-[#1e1e1e] bg-[#0d0d0d]"),children:e.isCluster?"cluster":"fork"})})]},e.pm_id)))})]})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Ma.jsx)(QA,{className:"h-3.5 w-3.5 text-[#555]"}),(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.2em]",children:r("cluster.scaleInstances")})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("button",{onClick:()=>d((e=>Math.max(0,e-1))),className:"border border-[#1e1e1e] text-[#888] font-mono text-xs px-2 py-0.5 rounded-sm hover:border-[#333]",children:"\u2212"}),(0,Ma.jsx)("input",{type:"number",min:0,value:c,onChange:e=>d(Number(e.target.value)),className:"bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm px-2.5 py-1.5 focus:border-[#555] focus:outline-none w-20 text-center"}),(0,Ma.jsx)("button",{onClick:()=>d((e=>e+1)),className:"border border-[#1e1e1e] text-[#888] font-mono text-xs px-2 py-0.5 rounded-sm hover:border-[#333]",children:"+"}),(0,Ma.jsxs)("button",{onClick:async()=>{if(s&&!(c<0))try{p(!0),await ur.post("/api/cluster/".concat(s,"/scale"),{instances:c}),await x(s),f("Scaled to ".concat(c," instances")),n()}catch(e){g("Failed to scale process")}finally{p(!1)}},disabled:u,className:"flex items-center gap-1.5 border border-[#1e1e1e] text-[#888] font-mono text-xs px-3 py-1.5 rounded-sm hover:border-[#333] hover:text-[#e8e8e8] disabled:opacity-40 disabled:cursor-not-allowed ml-1",children:[(0,Ma.jsx)(QA,{className:"h-3 w-3"}),r("cluster.scale")]})]})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Ma.jsx)(fC,{className:"h-3.5 w-3.5 text-[#555]"}),(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.2em]",children:r("cluster.executionMode")})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Ma.jsx)("button",{onClick:()=>b("fork"),disabled:!v.isCluster||u,className:"border border-[#1e1e1e] text-[#888] font-mono text-xs px-3 py-1.5 rounded-sm hover:border-[#333] hover:text-[#e8e8e8] disabled:opacity-40 disabled:cursor-not-allowed",children:r("cluster.switchToFork")}),(0,Ma.jsx)("button",{onClick:()=>b("cluster"),disabled:v.isCluster||u,className:"border border-[#1e1e1e] text-[#888] font-mono text-xs px-3 py-1.5 rounded-sm hover:border-[#333] hover:text-[#e8e8e8] disabled:opacity-40 disabled:cursor-not-allowed",children:r("cluster.switchToCluster")})]}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555]",children:r("cluster.clusterModeDesc")})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,Ma.jsx)(nN,{className:"h-3.5 w-3.5 text-[#f59e0b]"}),(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.2em]",children:r("cluster.zeroDowntimeReload")})]}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] mb-3",children:r("cluster.reloadDesc")}),(0,Ma.jsxs)("button",{onClick:async()=>{if(s)try{p(!0),await ur.post("/api/cluster/".concat(s,"/reload")),f("Process reloaded with zero downtime"),n()}catch(e){g("Failed to reload process")}finally{p(!1)}},disabled:u,className:"flex items-center gap-1.5 border border-[#f59e0b]/30 text-[#f59e0b] font-mono text-xs px-3 py-1.5 rounded-sm hover:border-[#f59e0b]/60 hover:bg-[#1a0e00] disabled:opacity-40 disabled:cursor-not-allowed",children:[(0,Ma.jsx)(nN,{className:"h-3 w-3"}),r("cluster.gracefulReload")]})]})]}):null:(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-8 text-center",children:[(0,Ma.jsx)(fC,{className:"mx-auto h-7 w-7 text-[#333] mb-2"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555]",children:r("cluster.selectHint")})]})]})},rN={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_API_URL||"http://localhost:3101",sN=(e,t)=>{if("err"===e)return"text-red-400";const n=t.toLowerCase();return n.includes("error")||n.includes("err ")||n.includes("exception")?"text-red-400":n.includes("warn")?"text-amber-400":"text-neutral-300"},aN=e=>{let{processId:t,logType:n="out"}=e;const{t:r}=me(),s=bs(),a=Boolean(s.serverId),i=a?s.serverId:"local",l=a?s.processId?Number(s.processId):null:s.id?Number(s.id):void 0!==t?Number(t):null,c=(0,o.useRef)(null),d=(0,o.useRef)(null),u=(0,o.useRef)(!1),[p,h]=(0,o.useState)([]),[f,m]=(0,o.useState)(!1),[g,x]=(0,o.useState)(""),[b,v]=(0,o.useState)(!0),[y,w]=(0,o.useState)(""),[k,S]=(0,o.useState)(!1),[j,C]=(0,o.useState)(n),[A,N]=(0,o.useState)(""),[E,_]=(0,o.useState)(""),[P,M]=(0,o.useState)(""),[R,O]=(0,o.useState)(""),[T,L]=(0,o.useState)(""),[I,D]=(0,o.useState)(!1),z=E!==R||P!==T;(0,o.useEffect)((()=>{if(null===l)return;(async()=>{try{if("local"===i){const e=(await ur.get("/api/processes")).data.find((e=>e.pm_id===l));e&&N(e.name)}else{const e=(await ur.get("/api/remote/".concat(i,"/processes"))).data.find((e=>e.pm_id===l));e&&N(e.name)}}catch(e){}})()}),[l,i]),(0,o.useEffect)((()=>{if(null===l)return;d.current&&(d.current.disconnect(),d.current=null),S(!1),h([]);if((async()=>{try{m(!0),x("");let e=[];if("local"===i){e=(await ur.get("/api/logs/".concat(l,"/").concat(j))).data.logs||[]}else{e=(await ur.get("/api/remote/".concat(i,"/logs/").concat(l,"/").concat(j))).data.logs||[]}h(e),m(!1)}catch(vM){var e,t;x((null===(e=vM.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Failed to fetch logs"),m(!1)}})(),"local"===i){const e=Bt(rN,{transports:["websocket","polling"],reconnection:!0});return d.current=e,e.on("connect",(()=>{e.emit("subscribe-logs",{processId:l,logType:j}),S(!0)})),e.on("log-line",(e=>{u.current||e.processId===l&&e.logType===j&&h((t=>[...t,e.line]))})),()=>{e.emit("unsubscribe-logs",{processId:l,logType:j}),e.disconnect()}}{S(!0);const e=setInterval((async()=>{if(!u.current)try{const e=(await ur.get("/api/remote/".concat(i,"/logs/").concat(l,"/").concat(j))).data.logs||[];h((t=>e.length!==t.length||e.length>0&&e[e.length-1]!==t[t.length-1]?e:t))}catch(e){}}),5e3);return()=>{clearInterval(e),S(!1)}}}),[l,i,j]),(0,o.useEffect)((()=>{b&&c.current&&(c.current.scrollTop=c.current.scrollHeight)}),[p,b]);const F=(()=>{const e=e=>!y||e.toLowerCase().includes(y.toLowerCase());if(!R&&!T)return y?p.filter(e):p;const t=R?new Date(R):null,n=T?new Date(new Date(T).getTime()+59e3):null;let o=null;return p.filter((r=>{const s=(e=>{const t=e.replace(/\x1B\[[0-9;]*[mGKHFABCDsuJK]/g,"").match(/(\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2})/);if(t){const e=new Date(t[1].replace(" ","T"));if(!isNaN(e.getTime()))return e}return null})(r);s&&(o=s);const a=null!==s&&void 0!==s?s:o;if(a){if(t&&a<t)return!1;if(n&&a>n)return!1}return e(r)}))})(),B=e=>{if(!y)return e;const t=y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=e.split(new RegExp("(".concat(t,")"),"gi"));return(0,Ma.jsx)(Ma.Fragment,{children:n.map(((e,t)=>e.toLowerCase()===y.toLowerCase()?(0,Ma.jsx)("mark",{style:{backgroundColor:"#fef08a",color:"#1a1a1a",borderRadius:2,padding:"0 1px"},children:e},t):e))})};return(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)(eC,{title:"Log Streaming",subtitle:A?"".concat(a?"Remote \xb7 ".concat(i):"Local"," \u2014 ").concat(A):"Select a process from the sidebar",actions:(0,Ma.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,Ma.jsxs)("select",{value:j,onChange:e=>C(e.target.value),className:"h-7 px-2 pr-7 text-xs font-mono rounded-sm border bg-[#111] border-[#1e1e1e] text-[#e8e8e8] focus:outline-none focus:border-[#22c55e]",children:[(0,Ma.jsx)("option",{value:"out",children:r("logs.standardOut")}),(0,Ma.jsx)("option",{value:"err",children:r("logs.standardErr")})]}),"local"===i&&(0,Ma.jsx)("button",{onClick:()=>{var e;if(null===l||"local"!==i)return;const t=k?"unsubscribe-logs":"subscribe-logs";null===(e=d.current)||void 0===e||e.emit(t,{processId:l,logType:j}),S((e=>!e))},disabled:null===l,className:"h-7 px-3 text-[10px] font-mono rounded-sm border transition-colors\n disabled:opacity-40\n ".concat(k?"border-[#ef4444] text-[#ef4444] hover:bg-[#ef4444]/10":"border-[#22c55e] text-[#22c55e] hover:bg-[#22c55e]/10"),children:r(k?"logs.stopStream":"logs.liveStream")})]})}),(0,Ma.jsxs)("div",{className:"flex flex-col gap-2 mb-3",children:[(0,Ma.jsxs)("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,Ma.jsxs)("div",{className:"relative flex-1",children:[(0,Ma.jsx)(oA,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3 w-3 text-[#555] pointer-events-none"}),(0,Ma.jsx)("input",{type:"text",placeholder:r("logs.filterLogs"),value:y,onChange:e=>w(e.target.value),className:"w-full h-7 pl-7 pr-3 text-xs font-mono rounded-sm border bg-[#111] border-[#1e1e1e] text-[#e8e8e8] placeholder-[#555] focus:outline-none focus:border-[#22c55e]"})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,Ma.jsx)("button",{onClick:()=>v((e=>!e)),className:"h-7 px-2.5 text-[10px] font-mono rounded-sm border transition-colors\n ".concat(b?"bg-[#22c55e]/20 border-[#22c55e] text-[#22c55e]":"border-[#1e1e1e] text-[#555] hover:text-[#888]"),children:r("logs.autoScroll")}),k&&(0,Ma.jsxs)("span",{className:"flex items-center gap-1 px-2 text-[10px] font-mono text-[#22c55e]",children:[(0,Ma.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-[#22c55e] animate-pulse"}),"live"]}),(0,Ma.jsx)("button",{onClick:async()=>{if(null!==l)try{m(!0),x("");let e=[];if("local"===i){e=(await ur.get("/api/logs/".concat(l,"/").concat(j))).data.logs||[]}else{e=(await ur.get("/api/remote/".concat(i,"/logs/").concat(l,"/").concat(j))).data.logs||[]}h(e),m(!1)}catch(vM){var e,t;x((null===(e=vM.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Failed to fetch logs"),m(!1)}},title:"Refresh",className:"h-7 w-7 flex items-center justify-center rounded-sm border border-[#1e1e1e] text-[#555] hover:text-[#888] transition-colors",children:(0,Ma.jsx)(jC,{className:"h-3 w-3"})}),(0,Ma.jsx)("button",{onClick:()=>h([]),title:r("logs.clearLogs"),className:"h-7 w-7 flex items-center justify-center rounded-sm border border-[#1e1e1e] text-[#555] hover:text-[#888] transition-colors",children:(0,Ma.jsx)(xA,{className:"h-3 w-3"})}),(0,Ma.jsx)("button",{onClick:()=>{if(null===l)return;const e=new Blob([p.join("\n")],{type:"text/plain;charset=utf-8"}),t=URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download="".concat(A||l,"-").concat(j,".log"),document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(t)},disabled:null===l||0===p.length,title:"Download",className:"h-7 w-7 flex items-center justify-center rounded-sm border border-[#1e1e1e] text-[#555] hover:text-[#888] transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:(0,Ma.jsx)(FA,{className:"h-3 w-3"})})]})]}),(0,Ma.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em] shrink-0",children:"Date range"}),(0,Ma.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ma.jsx)("label",{className:"text-[9px] font-mono text-[#555] shrink-0",children:"from"}),(0,Ma.jsx)("input",{type:"datetime-local",value:E,onChange:e=>_(e.target.value),className:"h-7 px-2 text-[10px] font-mono rounded-sm border bg-[#111] border-[#1e1e1e] text-[#e8e8e8] focus:outline-none focus:border-[#22c55e]"})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ma.jsx)("label",{className:"text-[9px] font-mono text-[#555] shrink-0",children:"to"}),(0,Ma.jsx)("input",{type:"datetime-local",value:P,onChange:e=>M(e.target.value),className:"h-7 px-2 text-[10px] font-mono rounded-sm border bg-[#111] border-[#1e1e1e] text-[#e8e8e8] focus:outline-none focus:border-[#22c55e]"})]}),(0,Ma.jsx)("button",{onClick:async()=>{if(null!==l){u.current=!0,D(!0),x("");try{let e=[];if("local"===i){e=(await ur.get("/api/logs/".concat(l,"/").concat(j))).data.logs||[]}else{e=(await ur.get("/api/remote/".concat(i,"/logs/").concat(l,"/").concat(j))).data.logs||[]}h(e),O(E),L(P)}catch(vM){var e,t;x((null===(e=vM.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Failed to fetch logs")}finally{D(!1)}}},disabled:!E&&!P||I,className:"h-7 px-3 text-[10px] font-mono rounded-sm border transition-colors\n disabled:opacity-40 disabled:cursor-not-allowed\n flex items-center gap-1.5\n ".concat(z?"bg-[#22c55e]/20 border-[#22c55e] text-[#22c55e] hover:bg-[#22c55e]/30":"border-[#1e1e1e] text-[#555] hover:text-[#888]"),children:I?(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)("svg",{className:"h-3 w-3 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,Ma.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Ma.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),"loading..."]}):z?"apply *":"apply"}),(R||T)&&(0,Ma.jsx)("button",{onClick:()=>{u.current=!1,_(""),M(""),O(""),L("")},className:"h-7 px-2 text-[10px] font-mono rounded-sm border border-[#1e1e1e] text-[#555] hover:text-[#888] transition-colors",children:"clear"}),(R||T)&&!z&&(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#22c55e] border border-[#22c55e]/30 rounded-sm px-1.5 py-0.5",children:"filter active"})]})]}),(0,Ma.jsx)("div",{className:"rounded-sm border border-[#1e1e1e] overflow-hidden",children:f||I?(0,Ma.jsx)("div",{className:"flex items-center justify-center h-64 bg-[#0a0a0a]",children:(0,Ma.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-mono text-[#555]",children:[(0,Ma.jsxs)("svg",{className:"h-3.5 w-3.5 animate-spin text-[#22c55e]",viewBox:"0 0 24 24",fill:"none",children:[(0,Ma.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Ma.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),r(I?"logs.applyingFilter":"logs.loadingLogs")]})}):g?(0,Ma.jsxs)("div",{className:"flex items-center gap-2 p-4 text-[10px] font-mono text-[#ef4444] bg-[#ef4444]/5 border-b border-[#1e1e1e]",children:[(0,Ma.jsx)("span",{className:"text-[#555]",children:"err:"})," ",g]}):null===l?(0,Ma.jsx)("div",{className:"flex items-center justify-center h-64 bg-[#0a0a0a] text-[10px] font-mono text-[#555]",children:r("logs.selectProcessHint")}):(0,Ma.jsx)("div",{ref:c,className:"h-[calc(100vh-16rem)] overflow-y-auto bg-[#0a0a0a] p-3 font-mono text-[10px] leading-relaxed",children:0===F.length?(0,Ma.jsx)("span",{className:"text-[#555] italic",children:r(R||T?"logs.noLogsInRange":"logs.noLogsAvailable")}):F.map(((e,t)=>(0,Ma.jsx)("div",{className:"whitespace-pre-wrap break-all ".concat(sN(j,e)),children:B(e)},t)))})})]})},iN=["title","titleId"];function lN(e,t){let{title:n,titleId:r}=e,s=hr(e,iN);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const cN=o.forwardRef(lN),dN=["title","titleId"];function uN(e,t){let{title:n,titleId:r}=e,s=hr(e,dN);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const pN=o.forwardRef(uN),hN=["title","titleId"];function fN(e,t){let{title:n,titleId:r}=e,s=hr(e,hN);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v17.25m0 0c-1.472 0-2.882.265-4.185.75M12 20.25c1.472 0 2.882.265 4.185.75M18.75 4.97A48.416 48.416 0 0 0 12 4.5c-2.291 0-4.545.16-6.75.47m13.5 0c1.01.143 2.01.317 3 .52m-3-.52 2.62 10.726c.122.499-.106 1.028-.589 1.202a5.988 5.988 0 0 1-2.031.352 5.988 5.988 0 0 1-2.031-.352c-.483-.174-.711-.703-.59-1.202L18.75 4.971Zm-16.5.52c.99-.203 1.99-.377 3-.52m0 0 2.62 10.726c.122.499-.106 1.028-.589 1.202a5.989 5.989 0 0 1-2.031.352 5.989 5.989 0 0 1-2.031-.352c-.483-.174-.711-.703-.59-1.202L5.25 4.971Z"}))}const mN=o.forwardRef(fN),gN=["title","titleId"];function xN(e,t){let{title:n,titleId:r}=e,s=hr(e,gN);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const bN=o.forwardRef(xN),vN=["title","titleId"];function yN(e,t){let{title:n,titleId:r}=e,s=hr(e,vN);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const wN=o.forwardRef(yN),kN=["title","titleId"];function SN(e,t){let{title:n,titleId:r}=e,s=hr(e,kN);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"}))}const jN=o.forwardRef(SN),CN=e=>{let{onItemClick:t,collapsed:n=!1}=e;const r=fs(),{t:s}=me(),a=xs(),i=r.pathname,l=()=>null===t||void 0===t?void 0:t(),[d,u]=(0,o.useState)([]),[p,h]=(0,o.useState)(new Set(["local"])),[f,m]=(0,o.useState)(!1),[g,x]=(0,o.useState)({});(0,o.useEffect)((()=>{let e=!1;return(async()=>{m(!0);try{const[t,n]=await Promise.all([ur.get("/api/processes"),ur.get("/api/remote/connections").catch((()=>({data:[]})))]),o=t.data.map((e=>{var t,n,o;return{id:e.pm_id,name:e.name,status:null!==(t=null!==(n=null===(o=e.pm2_env)||void 0===o?void 0:o.status)&&void 0!==n?n:e.status)&&void 0!==t?t:"unknown"}})),r=[{serverId:"local",serverName:s("nav.localServer"),isRemote:!1,connected:!0,processes:o,loading:!1}],a=n.data;for(const e of a)r.push({serverId:e.id,serverName:e.name,isRemote:!0,connected:e.connected,processes:[],loading:e.connected});e||u(r);const i=a.filter((e=>e.connected));if(i.length>0){const t=await Promise.allSettled(i.map((e=>ur.get("/api/remote/".concat(e.id,"/processes")).then((t=>({id:e.id,data:t.data}))))));e||u((e=>e.map((e=>{const n=t.find((t=>"fulfilled"===t.status&&t.value.id===e.serverId));if(!n||"fulfilled"!==n.status)return c(c({},e),{},{loading:!1});const o=n.value.data.map((e=>{var t,n,o;return{id:e.pm_id,name:e.name,status:null!==(t=null!==(n=null===(o=e.pm2_env)||void 0===o?void 0:o.status)&&void 0!==n?n:e.status)&&void 0!==t?t:"unknown"}}));return c(c({},e),{},{processes:o,loading:!1})}))))}}catch(t){}finally{e||m(!1)}})(),()=>{e=!0}}),[]);const b=async(e,t,n,o)=>{e.stopPropagation();const r="".concat(t,"-").concat(n.id);x((e=>c(c({},e),{},{[r]:!0})));try{"local"===t?await ur.post("/api/process/".concat(n.id,"/").concat(o)):await ur.post("/api/remote/".concat(t,"/processes/").concat(n.name,"/").concat(o)),u((e=>e.map((e=>e.serverId!==t?e:c(c({},e),{},{processes:e.processes.map((e=>e.id===n.id?c(c({},e),{},{status:"start"===o||"restart"===o?"online":"stopped"}):e))})))))}catch(vM){console.error("Failed to ".concat(o," process:"),vM)}finally{x((e=>c(c({},e),{},{[r]:!1})))}},v=(e,t)=>{l(),a("local"===e?"/logs/".concat(t.id):"/logs/remote/".concat(e,"/").concat(t.id))},y=[{label:s("nav.processes"),path:"/processes",icon:cN},{label:s("nav.remoteServers"),path:"/remote",icon:pN},{label:s("nav.metrics"),path:"/metrics",icon:lC},{label:s("nav.deployApp"),path:"/deploy",icon:yA},{label:s("nav.pm2Modules"),path:"/modules",icon:OA},{label:s("nav.ecosystemConfig"),path:"/ecosystem",icon:IC},{label:s("nav.cluster"),path:"/cluster",icon:fC},{label:s("nav.cronJobs"),path:"/cron-jobs",icon:sC},{label:s("nav.loadBalancing"),path:"/load-balancing-guide",icon:mN}];return(0,Ma.jsxs)("div",{className:"h-full flex flex-col bg-[#0d0d0d] overflow-hidden",children:[(0,Ma.jsxs)("nav",{className:"px-1.5 py-2 overflow-x-hidden shrink-0",children:[!n&&(0,Ma.jsx)("p",{className:"px-2 mb-1 font-mono font-bold text-[9px] text-[#333] uppercase tracking-[0.2em] whitespace-nowrap",children:s("nav.management")}),(0,Ma.jsx)("div",{className:"space-y-0.5",children:y.map((e=>{const t=e.icon,o="/"===(r=e.path)&&("/"===i||"/processes"===i)||i===r||i.startsWith(r+"/");var r;return(0,Ma.jsxs)(ba,{to:e.path,onClick:l,title:n?e.label:void 0,className:"\n flex items-center gap-2 font-mono text-[11px]\n transition-colors duration-100\n ".concat(n?"px-0 py-1.5 justify-center w-full":"px-2 py-1.5","\n ").concat(o?"text-[#e8e8e8] bg-[#1a1a1a] border-l-2 border-[#22c55e]":"text-[#555] hover:text-[#888] hover:bg-[#111]","\n "),children:[(0,Ma.jsx)(t,{className:"h-3.5 w-3.5 shrink-0 ".concat(o?"text-[#e8e8e8]":"text-[#444]")}),!n&&(0,Ma.jsx)("span",{className:"truncate",children:e.label})]},e.path)}))})]}),!n&&(0,Ma.jsx)("div",{className:"border-t border-[#111] shrink-0"}),!n&&(0,Ma.jsxs)("div",{className:"flex-1 min-h-0 flex flex-col",children:[(0,Ma.jsx)("p",{className:"px-3 pt-2 pb-1 font-mono text-[9px] text-[#333] uppercase tracking-[0.2em] shrink-0",children:s("sidebar.processes")}),(0,Ma.jsx)("div",{className:"flex-1 overflow-y-auto",children:f&&0===d.length?(0,Ma.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,Ma.jsxs)("svg",{className:"h-3.5 w-3.5 animate-spin text-[#333]",viewBox:"0 0 24 24",fill:"none",children:[(0,Ma.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Ma.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]})}):d.map((e=>{const t=p.has(e.serverId);return(0,Ma.jsxs)("div",{children:[(0,Ma.jsxs)("button",{onClick:()=>{return t=e.serverId,void h((e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}));var t},className:"w-full flex items-center gap-1.5 px-2 py-1.5 text-left text-[#555] hover:text-[#888] hover:bg-[#111] transition-colors",children:[t?(0,Ma.jsx)(bN,{className:"h-3 w-3 shrink-0"}):(0,Ma.jsx)(wN,{className:"h-3 w-3 shrink-0"}),e.isRemote?(0,Ma.jsx)(pN,{className:"h-3.5 w-3.5 text-[#22d3ee] shrink-0"}):(0,Ma.jsx)(jN,{className:"h-3.5 w-3.5 text-[#22c55e] shrink-0"}),(0,Ma.jsx)("span",{className:"flex-1 font-mono text-[11px] text-[#888] truncate",children:e.serverName}),e.isRemote&&(0,Ma.jsx)("span",{className:"h-1.5 w-1.5 rounded-full shrink-0 ".concat(e.connected?"bg-[#22c55e]":"bg-[#555]")})]}),t&&(0,Ma.jsx)("div",{className:"pb-0.5",children:e.connected?e.loading?(0,Ma.jsx)("p",{className:"pl-8 pr-2 py-1 font-mono text-[10px] text-[#444] animate-pulse",children:s("sidebar.loading")}):0===e.processes.length?(0,Ma.jsx)("p",{className:"pl-8 pr-2 py-1 font-mono text-[10px] text-[#444] italic",children:s("sidebar.noProcesses")}):e.processes.map((t=>{const n=i.startsWith("/logs/remote/"),o=!n&&i.startsWith("/logs/"),r="local"===e.serverId&&o&&i==="/logs/".concat(t.id)||"local"!==e.serverId&&n&&i==="/logs/remote/".concat(e.serverId,"/").concat(t.id),a="".concat(e.serverId,"-").concat(t.id);return(0,Ma.jsxs)("div",{className:"group/proc w-full flex items-center gap-1.5 pl-7 pr-1.5 py-1 transition-colors\n ".concat(r?"bg-[#111]":"hover:bg-[#111]"),children:[(0,Ma.jsxs)("button",{onClick:()=>v(e.serverId,t),className:"flex-1 flex items-center gap-1.5 text-left min-w-0\n ".concat(r?"text-[#e8e8e8]":"text-[#666]"),children:[(0,Ma.jsx)("span",{className:"h-1.5 w-1.5 rounded-full shrink-0 ".concat("online"===t.status?"bg-[#22c55e]":"stopping"===t.status||"launching"===t.status?"bg-[#f59e0b]":"bg-[#555]")}),(0,Ma.jsx)(lC,{className:"h-3 w-3 shrink-0 opacity-40"}),(0,Ma.jsx)("span",{className:"font-mono text-[10px] truncate ".concat(r?"text-[#e8e8e8]":"text-[#666]"),children:t.name})]}),(0,Ma.jsxs)("div",{className:"shrink-0 opacity-0 group-hover/proc:opacity-100 transition-opacity flex items-center gap-0.5",children:[g[a]?(0,Ma.jsxs)("svg",{className:"h-3 w-3 animate-spin text-[#444]",viewBox:"0 0 24 24",fill:"none",children:[(0,Ma.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Ma.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}):"online"===t.status?(0,Ma.jsx)("button",{onClick:n=>b(n,e.serverId,t,"restart"),title:s("actions.restart"),className:"h-4 w-4 flex items-center justify-center text-[#444] hover:text-[#888] transition-colors",children:(0,Ma.jsx)(jC,{className:"h-2.5 w-2.5"})}):(0,Ma.jsx)("button",{onClick:n=>b(n,e.serverId,t,"start"),title:s("actions.start"),className:"h-4 w-4 flex items-center justify-center text-[#444] hover:text-[#888] transition-colors",children:(0,Ma.jsx)(PC,{className:"h-2.5 w-2.5"})}),(0,Ma.jsx)("button",{onClick:n=>{n.stopPropagation(),v(e.serverId,t)},title:s("actions.viewLogs"),className:"h-4 w-4 flex items-center justify-center text-[#444] hover:text-[#888] transition-colors",children:(0,Ma.jsx)(IC,{className:"h-2.5 w-2.5"})})]})]},t.id)})):(0,Ma.jsx)("p",{className:"pl-8 pr-2 py-1 font-mono text-[10px] text-[#444] italic",children:s("sidebar.notConnected")})})]},e.serverId)}))})]})]})},AN=(e,t)=>{var n;return null!==(n=localStorage.getItem(e))&&void 0!==n?n:t},NN=e=>{let{label:t,description:n,control:o,last:r}=e;return(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between py-3 gap-6",children:[(0,Ma.jsxs)("div",{className:"min-w-0",children:[(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#e8e8e8] block",children:t}),n&&(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] block mt-0.5",children:n})]}),(0,Ma.jsx)("div",{className:"shrink-0",children:o})]}),!r&&(0,Ma.jsx)("div",{className:"border-t border-[#111]"})]})},EN=e=>{let{title:t,children:n}=e;return(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm mb-3",children:[(0,Ma.jsx)("div",{className:"px-4 py-2.5 border-b border-[#1a1a1a] flex items-center gap-2",children:(0,Ma.jsx)("span",{className:"text-[9px] font-mono font-bold text-[#555] uppercase tracking-[0.15em]",children:t})}),(0,Ma.jsx)("div",{className:"px-4",children:n})]})},_N=e=>{let{checked:t,onChange:n}=e;return(0,Ma.jsx)("button",{type:"button",role:"switch","aria-checked":t,onClick:()=>n(!t),className:["relative inline-flex h-4 w-7 shrink-0 cursor-pointer rounded-sm transition-colors duration-150",t?"bg-[#22c55e]":"bg-[#1a1a1a] border border-[#333]"].join(" "),children:(0,Ma.jsx)("span",{className:["pointer-events-none inline-block h-3 w-3 rounded-sm bg-[#0a0a0a] shadow transition-transform duration-150 mt-0.5",t?"translate-x-3.5":"translate-x-0.5"].join(" ")})})},PN=e=>{let{active:t,labelOn:n,labelOff:o}=e;return(0,Ma.jsx)("span",{className:["inline-flex items-center gap-1 px-2 py-0.5 rounded-sm font-mono text-[9px] border",t?"border-[#22c55e]/40 text-[#22c55e] bg-[#22c55e]/5":"border-[#333] text-[#555] bg-transparent"].join(" "),children:t?n:o})},MN=()=>{var e;const{t:t}=me(),n=[{id:"general",label:t("settings.sections.general"),icon:"\u2699"},{id:"appearance",label:t("settings.sections.appearance"),icon:"\u25c8"},{id:"pm2",label:t("settings.sections.pm2"),icon:"\u25b6"},{id:"advanced",label:t("settings.sections.advanced"),icon:"\u26a0"},{id:"updates",label:t("settings.sections.updates"),icon:"\u2191"},{id:"security",label:t("settings.sections.security"),icon:"\u2299"}],[r,s]=(0,o.useState)((()=>{const e=new URLSearchParams(window.location.search).get("section");return["general","appearance","pm2","advanced","updates","security"].includes(e)?e:"general"})),[a,i]=(0,o.useState)(null),[l,c]=(0,o.useState)(""),[d,u]=(0,o.useState)(""),[p,h]=(0,o.useState)(""),[f,m]=(0,o.useState)(""),[g,x]=(0,o.useState)(!1),[b,v]=(0,o.useState)(!1),[y,w]=(0,o.useState)(null),[k,S]=(0,o.useState)(null),[j,C]=(0,o.useState)(0),[A,N]=(0,o.useState)(!1),[E,_]=(0,o.useState)(null),[P,M]=(0,o.useState)(""),[R,O]=(0,o.useState)(""),[T,L]=(0,o.useState)(""),[I,D]=(0,o.useState)(!1),[z,F]=(0,o.useState)(!1);o.useEffect((()=>{"security"===r&&null===a&&fetch("/api/auth/status").then((e=>e.json())).then((e=>{var t,n,o;i(null!==(t=e.passwordSet)&&void 0!==t&&t),_(null!==(n=e.pinSet)&&void 0!==n&&n),C(null!==(o=e.autoLockMinutes)&&void 0!==o?o:0)})).catch((()=>i(!1)))}),[r,a]);const B=async()=>{if(w(null),S(null),/^\d{4}$/.test(P))if(P===R){D(!0);try{const e=await fetch("/api/auth/pin/set",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pin:P})}),n=await e.json();n.success?(_(!0),M(""),O(""),S(t(E?"settings.messages.pinChanged":"settings.messages.pinEnabled"))):w(n.error||t("settings.messages.failedSavePin"))}catch(e){w(t("settings.messages.networkError"))}finally{D(!1)}}else w(t("settings.messages.pinsDoNotMatch"));else w(t("settings.messages.pinMustBe4Digits"))},W=async()=>{if(w(null),S(null),T){F(!0);try{const e=await fetch("/api/auth/pin/remove",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:T})}),n=await e.json();n.success?(_(!1),L(""),S(t("settings.messages.pinRemoved"))):w(n.error||t("settings.messages.failedRemovePin"))}catch(e){w(t("settings.messages.networkError"))}finally{F(!1)}}else w(t("settings.messages.enterPasswordToRemovePin"))},U=async()=>{if(w(null),S(null),l.length<4)w("Password must be at least 4 characters");else if(l===d){x(!0);try{const e={password:l};a&&(e.currentPassword=p);const n=await fetch("/api/auth/set",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),o=await n.json();o.success?(i(!0),c(""),u(""),h(""),S(t(a?"settings.messages.passwordChanged":"settings.messages.passwordEnabled"))):w(o.error||t("settings.messages.failedSavePassword"))}catch(e){w(t("settings.messages.networkError"))}finally{x(!1)}}else w("Passwords do not match")},H=async()=>{if(w(null),S(null),f){v(!0);try{const e=await fetch("/api/auth/remove",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:f})}),n=await e.json();n.success?(i(!1),m(""),S(t("settings.messages.passwordRemoved"))):w(n.error||t("settings.messages.failedRemovePassword"))}catch(e){w(t("settings.messages.networkError"))}finally{v(!1)}}else w(t("settings.messages.enterPasswordToRemove"))},[V,K]=(0,o.useState)(null),[q,$]=(0,o.useState)(!1),[J,Y]=(0,o.useState)(null),[G,X]=(0,o.useState)([]),[Z,Q]=(0,o.useState)(!1),[ee,te]=(0,o.useState)(!1),ne=(0,o.useRef)(null);(0,o.useEffect)((()=>{var e;null===(e=ne.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),[G]);const[oe,re]=(0,o.useState)("true"===AN("autoRefresh","true")),[se,ae]=(0,o.useState)(AN("refreshInterval","3000")),[ie,le]=(0,o.useState)(AN("logLines","100")),[ce,de]=(0,o.useState)(AN("pm2Path","pm2")),[ue,pe]=(0,o.useState)(AN("theme","blue")),[he,fe]=(0,o.useState)("true"===AN("compactMode","false")),[ge,xe]=(0,o.useState)("true"===AN("showTimestamps","true")),[be,ve]=(0,o.useState)(!1),[ye,we]=(0,o.useState)(""),ke=(0,o.useCallback)(((e,n,o)=>{localStorage.setItem(e,n),we(null!==o&&void 0!==o?o:t("settings.messages.saved")),ve(!0)}),[t]),Se=e=>{pe(e.target.value),ke("theme",e.target.value)},je=()=>{Object.entries({autoRefresh:"true",refreshInterval:"3000",logLines:"100",pm2Path:"pm2",theme:"blue",compactMode:"false",showTimestamps:"true"}).forEach((e=>{let[t,n]=e;return localStorage.setItem(t,n)})),re(!0),ae("3000"),le("100"),de("pm2"),pe("blue"),fe(!1),xe(!0),we(t("settings.messages.resetToDefaults")),ve(!0)},Ce=()=>{localStorage.clear(),we(t("settings.messages.dataCleared")),ve(!0)},Ae=async()=>{$(!0),Y(null),K(null);try{const e=await fetch("/api/update/check"),n=await e.json();n.success?K(n.data):Y(n.error||t("settings.messages.failedCheckUpdates"))}catch(e){Y(t("settings.messages.networkErrorNpm"))}finally{$(!1)}},Ne=async()=>{Q(!0),X([]);try{const n=await fetch("/api/update/install",{method:"POST"});if(!n.body)throw new Error("No response body");const o=n.body.getReader(),r=new TextDecoder;let s="";for(;;){var e;const{done:n,value:a}=await o.read();if(n)break;s+=r.decode(a,{stream:!0});const i=s.split("\n");s=null!==(e=i.pop())&&void 0!==e?e:"";for(const e of i){const n=e.trim();if(n)try{const e=JSON.parse(n);X((t=>[...t,e]))}catch(t){}}}}catch(vM){X((t=>[...t,{type:"fail",message:"Stream error: ".concat(vM.message)}]))}finally{Q(!1),Ae()}},Ee=async()=>{te(!0);try{await fetch("/api/update/restart",{method:"POST"})}catch(t){}const e=setInterval((async()=>{try{await fetch("/api/update/check"),clearInterval(e),te(!1),window.location.reload()}catch(t){}}),1500)},_e="bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm px-2.5 py-1.5 focus:border-[#555] focus:outline-none",Pe=_e;return(0,Ma.jsxs)("div",{className:"max-w-3xl mx-auto space-y-4",children:[(0,Ma.jsx)(eC,{title:t("settings.title"),subtitle:t("settings.subtitle")}),(0,Ma.jsxs)("div",{className:"flex gap-4 items-start",children:[(0,Ma.jsx)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm w-40 shrink-0 overflow-hidden",children:n.map((e=>(0,Ma.jsxs)("button",{type:"button",onClick:()=>s(e.id),className:["w-full flex items-center gap-2 px-3 py-2.5 text-left font-mono text-[10px] border-l-2 transition-colors",r===e.id?"border-[#22c55e] text-[#e8e8e8] bg-[#141414]":"border-transparent text-[#555] hover:text-[#888] hover:bg-[#141414]"].join(" "),children:[(0,Ma.jsx)("span",{className:"text-[9px] shrink-0",children:e.icon}),(0,Ma.jsx)("span",{children:e.label})]},e.id)))}),(0,Ma.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Ma.jsxs)("span",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.1em]",children:["\u25b8 ",null===(e=n.find((e=>e.id===r)))||void 0===e?void 0:e.label]}),(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#333] border border-[#222] rounded-sm px-1.5 py-0.5",children:t("settings.autoSaved")})]}),(()=>{switch(r){case"general":return(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)(EN,{title:t("settings.cards.dashboard"),children:[(0,Ma.jsx)(NN,{label:t("settings.rows.autoRefresh"),description:t("settings.rows.autoRefreshDesc"),control:(0,Ma.jsx)(_N,{checked:oe,onChange:e=>{re(e),ke("autoRefresh",String(e))}})}),(0,Ma.jsx)(NN,{label:t("settings.rows.refreshInterval"),description:t("settings.rows.refreshIntervalDesc"),last:!0,control:(0,Ma.jsxs)("select",{className:Pe,value:se,disabled:!oe,onChange:e=>{ae(e.target.value),ke("refreshInterval",e.target.value)},children:[(0,Ma.jsx)("option",{value:"1000",children:t("settings.intervals.every1s")}),(0,Ma.jsx)("option",{value:"2000",children:t("settings.intervals.every2s")}),(0,Ma.jsx)("option",{value:"3000",children:t("settings.intervals.every3s")}),(0,Ma.jsx)("option",{value:"5000",children:t("settings.intervals.every5s")}),(0,Ma.jsx)("option",{value:"10000",children:t("settings.intervals.every10s")}),(0,Ma.jsx)("option",{value:"30000",children:t("settings.intervals.every30s")})]})})]}),(0,Ma.jsxs)(EN,{title:t("settings.cards.logs"),children:[(0,Ma.jsx)(NN,{label:t("settings.rows.logLines"),description:t("settings.rows.logLinesDesc"),control:(0,Ma.jsxs)("select",{className:Pe,value:ie,onChange:e=>{le(e.target.value),ke("logLines",e.target.value)},children:[(0,Ma.jsx)("option",{value:"50",children:"50"}),(0,Ma.jsx)("option",{value:"100",children:"100"}),(0,Ma.jsx)("option",{value:"200",children:"200"}),(0,Ma.jsx)("option",{value:"500",children:"500"}),(0,Ma.jsx)("option",{value:"1000",children:"1000"})]})}),(0,Ma.jsx)(NN,{label:t("settings.rows.showTimestamps"),description:t("settings.rows.showTimestampsDesc"),last:!0,control:(0,Ma.jsx)(_N,{checked:ge,onChange:e=>{xe(e),ke("showTimestamps",String(e))}})})]})]});case"appearance":return(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)(EN,{title:t("settings.cards.theme"),children:[(0,Ma.jsx)(NN,{label:t("settings.rows.compactMode"),description:t("settings.rows.compactModeDesc"),control:(0,Ma.jsx)(_N,{checked:he,onChange:e=>{fe(e),ke("compactMode",String(e))}})}),(0,Ma.jsx)(NN,{label:t("settings.rows.accentColor"),description:t("settings.rows.accentColorDesc"),last:!0,control:(0,Ma.jsxs)("select",{className:Pe,value:ue,onChange:Se,children:[(0,Ma.jsx)("option",{value:"blue",children:t("settings.colors.blue")}),(0,Ma.jsx)("option",{value:"purple",children:t("settings.colors.purple")}),(0,Ma.jsx)("option",{value:"green",children:t("settings.colors.green")}),(0,Ma.jsx)("option",{value:"orange",children:t("settings.colors.orange")})]})})]}),(0,Ma.jsx)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] block",children:t("settings.notes.darkModeToggle")})})]});case"pm2":return(0,Ma.jsx)(EN,{title:t("settings.cards.pm2Executable"),children:(0,Ma.jsx)(NN,{label:t("settings.rows.pm2Path"),description:t("settings.rows.pm2PathDesc"),last:!0,control:(0,Ma.jsx)("input",{className:"".concat(_e," w-48"),value:ce,onChange:e=>de(e.target.value),onBlur:e=>ke("pm2Path",e.target.value),placeholder:"pm2"})})});case"advanced":return(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)(EN,{title:t("settings.cards.reset"),children:(0,Ma.jsx)(NN,{label:t("settings.rows.resetToDefaults"),description:t("settings.rows.resetToDefaultsDesc"),last:!0,control:(0,Ma.jsx)("button",{className:"border border-[#1e1e1e] text-[#888] font-mono text-xs px-4 py-1.5 rounded-sm hover:text-[#e8e8e8] hover:border-[#555] transition-colors",onClick:je,children:t("settings.buttons.reset")})})}),(0,Ma.jsx)(EN,{title:t("settings.cards.data"),children:(0,Ma.jsx)(NN,{label:t("settings.rows.clearLocalStorage"),description:t("settings.rows.clearLocalStorageDesc"),last:!0,control:(0,Ma.jsx)("button",{className:"border border-[#ef4444]/40 text-[#ef4444] font-mono text-xs px-4 py-1.5 rounded-sm hover:bg-[#1a0000] transition-colors",onClick:Ce,children:t("settings.buttons.clearAll")})})}),(0,Ma.jsx)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] block",children:t("settings.notes.clearDataNote")})})]});case"updates":{const e=G[G.length-1],n="done"===(null===e||void 0===e?void 0:e.type),o="fail"===(null===e||void 0===e?void 0:e.type);return(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)(EN,{title:t("settings.cards.version"),children:[(0,Ma.jsx)(NN,{label:t("settings.rows.currentVersion"),description:t("settings.rows.currentVersionDesc"),control:(0,Ma.jsx)("span",{className:"bg-[#0a0a0a] border border-[#1e1e1e] font-mono text-[10px] text-[#22d3ee] px-2 py-1 rounded-sm",children:V?"v".concat(V.currentVersion):"unknown"})}),(0,Ma.jsx)(NN,{label:t("settings.rows.latestOnNpm"),description:t("settings.rows.latestOnNpmDesc"),control:V?(0,Ma.jsxs)("span",{className:["bg-[#0a0a0a] border font-mono text-[10px] px-2 py-1 rounded-sm",V.updateAvailable?"border-[#f59e0b]/40 text-[#f59e0b]":"border-[#22c55e]/40 text-[#22c55e]"].join(" "),children:["v",V.latestVersion]}):(0,Ma.jsx)("span",{className:"bg-[#0a0a0a] border border-[#1e1e1e] font-mono text-[10px] text-[#555] px-2 py-1 rounded-sm",children:"\u2014"})}),(0,Ma.jsx)(NN,{label:t("settings.rows.statusLabel"),description:null!==V&&void 0!==V&&V.publishedAt?"".concat(t("settings.notes.latestPublishedPrefix")," ").concat(new Date(V.publishedAt).toLocaleDateString()):t("settings.notes.clickToFetch"),last:!0,control:(0,Ma.jsx)("button",{className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#ccc] disabled:opacity-40 transition-colors",onClick:Ae,disabled:q||Z,children:t(q?"settings.buttons.checking":"settings.buttons.checkForUpdates")})})]}),J&&(0,Ma.jsx)("div",{className:"bg-[#1a0000] border border-[#ef4444]/30 rounded-sm px-3 py-2 mb-3",children:(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#ef4444]",children:J})}),V&&(0,Ma.jsx)("div",{className:["rounded-sm px-3 py-2 mb-3 border",V.updateAvailable?"bg-[#1a1200] border-[#f59e0b]/30":"bg-[#001a08] border-[#22c55e]/30"].join(" "),children:(0,Ma.jsx)("span",{className:["text-[10px] font-mono",V.updateAvailable?"text-[#f59e0b]":"text-[#22c55e]"].join(" "),children:V.updateAvailable?"v".concat(V.latestVersion," is available. Install it below."):"You are on the latest version (v".concat(V.currentVersion,").")})}),(null===V||void 0===V?void 0:V.updateAvailable)&&!n&&(0,Ma.jsx)(EN,{title:t("settings.cards.installUpdate"),children:(0,Ma.jsx)(NN,{label:"Install v".concat(V.latestVersion),description:"Runs npm install -g ezpm2gui@latest. Frontend assets update immediately; restart the server to apply backend changes.",last:!0,control:(0,Ma.jsx)("button",{className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#ccc] disabled:opacity-40 transition-colors",onClick:Ne,disabled:Z,children:t(Z?"settings.buttons.installing":"settings.buttons.installUpdate")})})}),G.length>0&&(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm mb-3",children:[(0,Ma.jsxs)("div",{className:"px-4 py-2.5 border-b border-[#1a1a1a] flex items-center justify-between",children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono font-bold text-[#555] uppercase tracking-[0.15em]",children:t("settings.cards.installOutput")}),Z&&(0,Ma.jsxs)("div",{className:"flex gap-0.5 items-center",children:[(0,Ma.jsx)("span",{className:"w-1 h-1 bg-[#22c55e] rounded-full animate-pulse"}),(0,Ma.jsx)("span",{className:"w-1 h-1 bg-[#22c55e] rounded-full animate-pulse delay-75"}),(0,Ma.jsx)("span",{className:"w-1 h-1 bg-[#22c55e] rounded-full animate-pulse delay-150"})]})]}),(0,Ma.jsxs)("div",{className:"p-3 max-h-64 overflow-y-auto bg-[#0a0a0a]",children:[G.map(((e,t)=>(0,Ma.jsx)("div",{className:["font-mono text-[10px] leading-relaxed whitespace-pre-wrap break-all","error"===e.type||"fail"===e.type?"text-[#ef4444]":"done"===e.type?"text-[#22c55e]":"text-[#555]"].join(" "),children:e.message},t))),(0,Ma.jsx)("div",{ref:ne})]})]}),n&&(0,Ma.jsxs)(EN,{title:t("settings.cards.applyUpdate"),children:[(0,Ma.jsx)(NN,{label:t("settings.rows.reloadPage"),description:t("settings.rows.reloadPageDesc"),control:(0,Ma.jsx)("button",{className:"border border-[#1e1e1e] text-[#888] font-mono text-xs px-4 py-1.5 rounded-sm hover:text-[#e8e8e8] hover:border-[#555] transition-colors",onClick:()=>window.location.reload(),children:t("settings.buttons.reload")})}),(0,Ma.jsx)(NN,{label:t("settings.rows.restartServer"),description:t("settings.rows.restartServerDesc"),last:!0,control:(0,Ma.jsx)("button",{className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#ccc] disabled:opacity-40 transition-colors",onClick:Ee,disabled:ee,children:t(ee?"settings.buttons.restarting":"settings.buttons.restartServer")})})]}),o&&(0,Ma.jsx)("div",{className:"bg-[#1a0000] border border-[#ef4444]/30 rounded-sm px-3 py-2",children:(0,Ma.jsxs)("span",{className:"text-[10px] font-mono text-[#ef4444]",children:["Update failed. Check the output above. You can also run"," ",(0,Ma.jsx)("code",{className:"bg-[#0a0a0a] border border-[#1e1e1e] font-mono text-[10px] text-[#22d3ee] px-1 rounded-sm",children:"npm install -g ezpm2gui@latest"})," ","manually."]})})]})}case"security":{const e=null===a;return(0,Ma.jsxs)(Ma.Fragment,{children:[y&&(0,Ma.jsxs)("div",{className:"bg-[#1a0000] border border-[#ef4444]/30 rounded-sm px-3 py-2 mb-3 flex items-start justify-between gap-2",children:[(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#ef4444]",children:y}),(0,Ma.jsx)("button",{onClick:()=>w(null),className:"text-[#ef4444] text-[10px] font-mono shrink-0 hover:text-[#ff6666]",children:"\u2715"})]}),k&&(0,Ma.jsxs)("div",{className:"bg-[#001a08] border border-[#22c55e]/30 rounded-sm px-3 py-2 mb-3 flex items-start justify-between gap-2",children:[(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#22c55e]",children:k}),(0,Ma.jsx)("button",{onClick:()=>S(null),className:"text-[#22c55e] text-[10px] font-mono shrink-0 hover:text-[#66ff99]",children:"\u2715"})]}),e?(0,Ma.jsx)("div",{className:"flex justify-center py-8",children:(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555] animate-pulse",children:"loading..."})}):(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)(EN,{title:t("settings.cards.status"),children:(0,Ma.jsx)(NN,{label:t("settings.rows.passwordProtection"),description:t("settings.rows.passwordProtectionDesc"),last:!0,control:(0,Ma.jsx)(PN,{active:!!a,labelOn:t("common.enabled"),labelOff:t("settings.rows.disabled")})})}),(0,Ma.jsxs)(EN,{title:t(a?"settings.cards.changePassword":"settings.cards.setPassword"),children:[a&&(0,Ma.jsx)(NN,{label:t("settings.rows.currentPassword"),description:t("settings.rows.currentPasswordDesc"),control:(0,Ma.jsx)("input",{type:"password",className:"".concat(_e," w-48"),value:p,onChange:e=>h(e.target.value),placeholder:"Current password"})}),(0,Ma.jsx)(NN,{label:t("settings.rows.newPassword"),description:t("settings.rows.newPasswordDesc"),control:(0,Ma.jsx)("input",{type:"password",className:"".concat(_e," w-48"),value:l,onChange:e=>c(e.target.value),placeholder:"New password"})}),(0,Ma.jsx)(NN,{label:t("settings.rows.confirmPassword"),description:t("settings.rows.confirmPasswordDesc"),last:!0,control:(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("input",{type:"password",className:"".concat(_e," w-48"),value:d,onChange:e=>u(e.target.value),placeholder:"Confirm password"}),(0,Ma.jsx)("button",{className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#ccc] disabled:opacity-40 transition-colors",onClick:U,disabled:g||!l||!d,children:t(g?"settings.buttons.saving":a?"settings.buttons.change":"settings.buttons.enable")})]})})]}),a&&(0,Ma.jsx)(EN,{title:t("settings.cards.removePassword"),children:(0,Ma.jsx)(NN,{label:t("settings.rows.disableProtection"),description:t("settings.rows.disableProtectionDesc"),last:!0,control:(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("input",{type:"password",className:"".concat(_e," w-40"),value:f,onChange:e=>m(e.target.value),placeholder:"Current password"}),(0,Ma.jsx)("button",{className:"border border-[#ef4444]/40 text-[#ef4444] font-mono text-xs px-4 py-1.5 rounded-sm hover:bg-[#1a0000] disabled:opacity-40 transition-colors",onClick:H,disabled:b||!f,children:t(b?"settings.buttons.removing":"settings.buttons.remove")})]})})}),a&&(0,Ma.jsxs)(EN,{title:t("settings.cards.pinProtection"),children:[(0,Ma.jsx)(NN,{label:t("settings.rows.pinStatus"),description:t("settings.rows.pinStatusDesc"),control:(0,Ma.jsx)(PN,{active:!!E,labelOn:t("common.enabled"),labelOff:t("settings.rows.disabled")})}),(0,Ma.jsx)(NN,{label:t(E?"settings.rows.changePin":"settings.rows.setPin"),description:t("settings.rows.pinDesc"),control:(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("input",{className:"".concat(_e," w-24"),value:P,onChange:e=>M(e.target.value.replace(/\D/g,"").slice(0,4)),placeholder:"New PIN",inputMode:"numeric",pattern:"[0-9]*",maxLength:4}),(0,Ma.jsx)("input",{className:"".concat(_e," w-24"),value:R,onChange:e=>O(e.target.value.replace(/\D/g,"").slice(0,4)),placeholder:"Confirm",inputMode:"numeric",pattern:"[0-9]*",maxLength:4}),(0,Ma.jsx)("button",{className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#ccc] disabled:opacity-40 transition-colors",onClick:B,disabled:I||4!==P.length||4!==R.length,children:t(I?"settings.buttons.saving":E?"settings.buttons.change":"settings.buttons.enable")})]})}),E&&(0,Ma.jsx)(NN,{label:t("settings.rows.removePin"),description:t("settings.rows.removePinDesc"),last:!0,control:(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("input",{type:"password",className:"".concat(_e," w-40"),value:T,onChange:e=>L(e.target.value),placeholder:"Current password"}),(0,Ma.jsx)("button",{className:"border border-[#ef4444]/40 text-[#ef4444] font-mono text-xs px-4 py-1.5 rounded-sm hover:bg-[#1a0000] disabled:opacity-40 transition-colors",onClick:W,disabled:z||!T,children:t(z?"settings.buttons.removing":"settings.buttons.remove")})]})}),!E&&(0,Ma.jsx)("div",{})]}),a&&(0,Ma.jsx)(EN,{title:t("settings.cards.autoLock"),children:(0,Ma.jsx)(NN,{label:t("settings.rows.lockAfterInactivity"),description:t("settings.rows.lockAfterInactivityDesc"),last:!0,control:(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("input",{type:"number",className:"".concat(_e," w-20"),value:j,onChange:e=>C(Math.max(0,parseInt(e.target.value,10)||0)),min:0,max:480,step:1}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555]",children:t("settings.messages.min")}),(0,Ma.jsx)("button",{className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#ccc] disabled:opacity-40 transition-colors",onClick:()=>(async e=>{N(!0),w(null),S(null);try{const n=await fetch("/api/auth/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({autoLockMinutes:e})}),o=await n.json();o.success?(C(o.autoLockMinutes),S(0===o.autoLockMinutes?t("settings.messages.autoLockDisabled"):"Auto-lock set to ".concat(o.autoLockMinutes," minute").concat(1!==o.autoLockMinutes?"s":"")),window.dispatchEvent(new CustomEvent("ezpm2_autolock_changed",{detail:{autoLockMinutes:o.autoLockMinutes}}))):w(o.error||t("settings.messages.failedSaveAutolock"))}catch(n){w(t("settings.messages.networkError"))}finally{N(!1)}})(j),disabled:A,children:t(A?"settings.buttons.saving":"settings.buttons.save")})]})})}),(0,Ma.jsx)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] block",children:t("settings.notes.securityNote")})})]})]})}}})()]})]}),be&&(0,Ma.jsx)("div",{className:"fixed bottom-4 left-1/2 -translate-x-1/2 z-50",children:(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#22c55e]/40 rounded-sm px-4 py-2 flex items-center gap-2 shadow-lg",children:[(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#22c55e]",children:"\u2713"}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#e8e8e8]",children:ye}),(0,Ma.jsx)("button",{onClick:()=>ve(!1),className:"text-[#555] text-[10px] font-mono ml-2 hover:text-[#888]",children:"\u2715"})]})})]})},RN=()=>{const e=xs(),{t:t}=me(),[n,r]=(0,o.useState)("panel1"),s=e=>r((t=>t!==e&&e));return(0,Ma.jsxs)("div",{className:"space-y-3",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[9px] font-mono uppercase tracking-[0.2em] text-[#555] mb-1",children:"pm2 / docs"}),(0,Ma.jsx)("h1",{className:"text-sm font-mono font-bold text-[#e8e8e8]",children:"\u25b8 LOAD BALANCING GUIDE"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] mt-0.5",children:t("loadBalancing.subtitle")})]}),(0,Ma.jsx)("button",{onClick:()=>e("/cluster"),className:"border border-[#1e1e1e] text-[#555] font-mono text-xs px-3 py-1 rounded-sm hover:border-[#333] hover:text-[#888]",children:t("loadBalancing.goToCluster")})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm overflow-hidden",children:[(0,Ma.jsxs)("button",{onClick:()=>s("panel1"),className:"w-full flex items-center justify-between px-4 py-3 text-left",children:[(0,Ma.jsx)("span",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.05em]",children:t("loadBalancing.whatIsTitle")}),(0,Ma.jsx)("span",{className:"text-[#555] font-mono text-xs",children:"panel1"===n?"\u25be":"\u25b8"})]}),"panel1"===n&&(0,Ma.jsxs)("div",{className:"px-4 pb-4 border-t border-[#1e1e1e]",children:[(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888] leading-relaxed mt-3 mb-3",children:t("loadBalancing.whatIsDesc")}),(0,Ma.jsx)("ul",{className:"space-y-1.5",children:[{symbol:"\u25b8",text:t("loadBalancing.benefit1"),color:"text-[#22c55e]"},{symbol:"\u25b8",text:t("loadBalancing.benefit2"),color:"text-[#22d3ee]"},{symbol:"\u25b8",text:t("loadBalancing.benefit3"),color:"text-[#a78bfa]"}].map((e=>{let{symbol:t,text:n,color:o}=e;return(0,Ma.jsxs)("li",{className:"flex items-start gap-2",children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono mt-0.5 ".concat(o),children:t}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#888] leading-relaxed",children:n})]},n)}))})]})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm overflow-hidden",children:[(0,Ma.jsxs)("button",{onClick:()=>s("panel2"),className:"w-full flex items-center justify-between px-4 py-3 text-left",children:[(0,Ma.jsx)("span",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.05em]",children:t("loadBalancing.settingUpTitle")}),(0,Ma.jsx)("span",{className:"text-[#555] font-mono text-xs",children:"panel2"===n?"\u25be":"\u25b8"})]}),"panel2"===n&&(0,Ma.jsxs)("div",{className:"px-4 pb-4 border-t border-[#1e1e1e]",children:[(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888] leading-relaxed mt-3 mb-3",children:t("loadBalancing.settingUpDesc")}),(0,Ma.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[{title:t("loadBalancing.multipleInstances"),desc:"Set instances > 1 to create workers. Use -1 to match CPU core count.",code:'"instances": 4 // or -1 for max'},{title:t("loadBalancing.clusterMode"),desc:"Allow all instances to share the same server port.",code:'"exec_mode": "cluster"'}].map((e=>{let{title:t,desc:n,code:o}=e;return(0,Ma.jsxs)("div",{className:"bg-[#141414] border border-[#1e1e1e] rounded-sm p-3",children:[(0,Ma.jsx)("p",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.05em] mb-1",children:t}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888] leading-relaxed mb-2",children:n}),(0,Ma.jsx)("pre",{className:"bg-[#0a0a0a] border border-[#1e1e1e] font-mono text-[10px] text-[#22d3ee] p-3 rounded-sm whitespace-pre-wrap",children:o})]},t)}))})]})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm overflow-hidden",children:[(0,Ma.jsxs)("button",{onClick:()=>s("panel3"),className:"w-full flex items-center justify-between px-4 py-3 text-left",children:[(0,Ma.jsx)("span",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.05em]",children:t("loadBalancing.bestPractices")}),(0,Ma.jsx)("span",{className:"text-[#555] font-mono text-xs",children:"panel3"===n?"\u25be":"\u25b8"})]}),"panel3"===n&&(0,Ma.jsxs)("div",{className:"px-4 pb-4 border-t border-[#1e1e1e]",children:[(0,Ma.jsx)("ul",{className:"space-y-3 mt-3",children:[{primary:"Instances",secondary:"Match CPU cores for CPU-bound apps. I/O-bound apps can use more."},{primary:"Stateless Design",secondary:"Keep app stateless or use Redis for shared session storage."},{primary:"Memory Limits",secondary:"Set max_memory_restart to automatically cycle processes with leaks."},{primary:"Zero-downtime",secondary:"Use pm2 reload (not restart) to update without dropping connections."}].map((e=>{let{primary:t,secondary:n}=e;return(0,Ma.jsxs)("li",{className:"flex items-start gap-3",children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#f59e0b] mt-0.5",children:"\u25b8"}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[10px] font-mono font-bold text-[#e8e8e8]",children:t}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888] leading-relaxed",children:n})]})]},t)}))}),(0,Ma.jsx)("div",{className:"bg-[#1a0e00] border border-[#f59e0b]/20 rounded-sm p-3 mt-4",children:(0,Ma.jsxs)("p",{className:"text-[10px] font-mono text-[#f59e0b] leading-relaxed",children:["Tip: Use ",(0,Ma.jsx)("span",{className:"text-[#e8e8e8]",children:"pm2 reload"})," for zero-downtime deployments in cluster mode. This gracefully cycles workers one at a time, keeping your service online."]})})]})]})]})};let ON;function TN(){if(ON)return ON;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ON="reverse",e.scrollLeft>0?ON="default":(e.scrollLeft=1,0===e.scrollLeft&&(ON="negative")),document.body.removeChild(e),ON}function LN(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(TN()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function IN(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const DN=["onChange"],zN={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const FN=(0,au.A)((0,Ma.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),BN=(0,au.A)((0,Ma.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function WN(e){return(0,ui.Ay)("MuiTabScrollButton",e)}const UN=(0,ti.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),HN=["className","slots","slotProps","direction","orientation","disabled"],VN=(0,li.Ay)(dl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({width:40,flexShrink:0,opacity:.8,["&.".concat(UN.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),KN=o.forwardRef((function(e,t){var n,o;const r=(0,di.b)({props:e,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:i={},direction:l}=r,c=(0,pr.A)(r,HN),d=Da(),u=(0,Na.A)({isRtl:d},r),p=(e=>{const{classes:t,orientation:n,disabled:o}=e,r={root:["root",n,o&&"disabled"]};return(0,ai.A)(r,WN,t)})(u),h=null!=(n=a.StartScrollButtonIcon)?n:FN,f=null!=(o=a.EndScrollButtonIcon)?o:BN,m=tc({elementType:h,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u}),g=tc({elementType:f,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u});return(0,Ma.jsx)(VN,(0,Na.A)({component:"div",className:(0,qa.A)(p.root,s),ref:t,role:null,ownerState:u,tabIndex:null},c,{children:"left"===l?(0,Ma.jsx)(h,(0,Na.A)({},m)):(0,Ma.jsx)(f,(0,Na.A)({},g))}))}));function qN(e){return(0,ui.Ay)("MuiTabs",e)}const $N=(0,ti.A)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),JN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],YN=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,GN=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,XN=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const t=r.disabled||"true"===r.getAttribute("aria-disabled");if(r.hasAttribute("tabindex")&&!t)return void r.focus();r=n(e,r)}},ZN=(0,li.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat($N.scrollButtons)]:t.scrollButtons},{["& .".concat($N.scrollButtons)]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Na.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat($N.scrollButtons)]:{[n.breakpoints.down("sm")]:{display:"none"}}})})),QN=(0,li.Ay)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),eE=(0,li.Ay)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),tE=(0,li.Ay)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:n}=e;return(0,Na.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),nE=(0,li.Ay)((function(e){const{onChange:t}=e,n=(0,pr.A)(e,DN),r=o.useRef(),s=o.useRef(null),a=()=>{r.current=s.current.offsetHeight-s.current.clientHeight};return(0,cc.A)((()=>{const e=(0,xc.A)((()=>{const e=r.current;a(),e!==r.current&&t(r.current)})),n=(0,bc.A)(s.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),o.useEffect((()=>{a(),t(r.current)}),[t]),(0,Ma.jsx)("div",(0,Na.A)({style:zN},n,{ref:s}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),oE={};const rE=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTabs"}),r=Pc(),s=Da(),{"aria-label":a,"aria-labelledby":i,action:l,centered:c=!1,children:d,className:u,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:f="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:x=KN,scrollButtons:b="auto",selectionFollowsFocus:v,slots:y={},slotProps:w={},TabIndicatorProps:k={},TabScrollButtonProps:S={},textColor:j="primary",value:C,variant:A="standard",visibleScrollbar:N=!1}=n,E=(0,pr.A)(n,JN),_="scrollable"===A,P="vertical"===g,M=P?"scrollTop":"scrollLeft",R=P?"top":"left",O=P?"bottom":"right",T=P?"clientHeight":"clientWidth",L=P?"height":"width",I=(0,Na.A)({},n,{component:p,allowScrollButtonsMobile:h,indicatorColor:f,orientation:g,vertical:P,scrollButtons:b,textColor:j,variant:A,visibleScrollbar:N,fixed:!_,hideScrollbar:_&&!N,scrollableX:_&&!P,scrollableY:_&&P,centered:c&&!_,scrollButtonsHideMobile:!h}),D=(e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:r,scrollableY:s,centered:a,scrollButtonsHideMobile:i,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",r&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]};return(0,ai.A)(c,qN,l)})(I),z=tc({elementType:y.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:I}),F=tc({elementType:y.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:I});const[B,W]=o.useState(!1),[U,H]=o.useState(oE),[V,K]=o.useState(!1),[q,$]=o.useState(!1),[J,Y]=o.useState(!1),[G,X]=o.useState({overflow:"hidden",scrollbarWidth:0}),Z=new Map,Q=o.useRef(null),ee=o.useRef(null),te=()=>{const e=Q.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:LN(e,s?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==C){const e=ee.current.children;if(e.length>0){const t=e[Z.get(C)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ne=(0,Ei.A)((()=>{const{tabsMeta:e,tabMeta:t}=te();let n,o=0;if(P)n="top",t&&e&&(o=t.top-e.top+e.scrollTop);else if(n=s?"right":"left",t&&e){const r=s?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;o=(s?-1:1)*(t[n]-e[n]+r)}const r={[n]:o,[L]:t?t[L]:0};if(isNaN(U[n])||isNaN(U[L]))H(r);else{const e=Math.abs(U[n]-r[n]),t=Math.abs(U[L]-r[L]);(e>=1||t>=1)&&H(r)}})),oe=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:s=IN,duration:a=300}=o;let i=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=o=>{if(c)return void r(new Error("Animation cancelled"));null===i&&(i=o);const d=Math.min(1,(o-i)/a);t[e]=s(d)*(n-l)+l,d>=1?requestAnimationFrame((()=>{r(null)})):requestAnimationFrame(u)};l===n?r(new Error("Element already at target position")):requestAnimationFrame(u)}(M,Q.current,e,{duration:r.transitions.duration.standard}):Q.current[M]=e},re=e=>{let t=Q.current[M];P?t+=e:(t+=e*(s?-1:1),t*=s&&"reverse"===TN()?-1:1),oe(t)},se=()=>{const e=Q.current[T];let t=0;const n=Array.from(ee.current.children);for(let o=0;o<n.length;o+=1){const r=n[o];if(t+r[T]>e){0===o&&(t=e);break}t+=r[T]}return t},ae=()=>{re(-1*se())},ie=()=>{re(se())},le=o.useCallback((e=>{X({overflow:null,scrollbarWidth:e})}),[]),ce=(0,Ei.A)((e=>{const{tabsMeta:t,tabMeta:n}=te();if(n&&t)if(n[R]<t[R]){const o=t[M]+(n[R]-t[R]);oe(o,{animation:e})}else if(n[O]>t[O]){const o=t[M]+(n[O]-t[O]);oe(o,{animation:e})}})),de=(0,Ei.A)((()=>{_&&!1!==b&&Y(!J)}));o.useEffect((()=>{const e=(0,xc.A)((()=>{Q.current&&ne()}));let t;const n=n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),de()},o=(0,bc.A)(Q.current);let r;return o.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach((e=>{t.observe(e)}))),"undefined"!==typeof MutationObserver&&(r=new MutationObserver(n),r.observe(ee.current,{childList:!0})),()=>{var n,s;e.clear(),o.removeEventListener("resize",e),null==(n=r)||n.disconnect(),null==(s=t)||s.disconnect()}}),[ne,de]),o.useEffect((()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&_&&!1!==b){const n=e[0],o=e[t-1],r={root:Q.current,threshold:.99},s=new IntersectionObserver((e=>{K(!e[0].isIntersecting)}),r);s.observe(n);const a=new IntersectionObserver((e=>{$(!e[0].isIntersecting)}),r);return a.observe(o),()=>{s.disconnect(),a.disconnect()}}}),[_,b,J,null==d?void 0:d.length]),o.useEffect((()=>{W(!0)}),[]),o.useEffect((()=>{ne()})),o.useEffect((()=>{ce(oE!==U)}),[ce,U]),o.useImperativeHandle(l,(()=>({updateIndicator:ne,updateScrollButtons:de})),[ne,de]);const ue=(0,Ma.jsx)(tE,(0,Na.A)({},k,{className:(0,qa.A)(D.indicator,k.className),ownerState:I,style:(0,Na.A)({},U,k.style)}));let pe=0;const he=o.Children.map(d,(e=>{if(!o.isValidElement(e))return null;const t=void 0===e.props.value?pe:e.props.value;Z.set(t,pe);const n=t===C;return pe+=1,o.cloneElement(e,(0,Na.A)({fullWidth:"fullWidth"===A,indicator:n&&!B&&ue,selected:n,selectionFollowsFocus:v,onChange:m,textColor:j,value:t},1!==pe||!1!==C||e.props.tabIndex?{}:{tabIndex:0}))})),fe=(()=>{const e={};e.scrollbarSizeListener=_?(0,Ma.jsx)(nE,{onChange:le,className:(0,qa.A)(D.scrollableX,D.hideScrollbar)}):null;const t=_&&("auto"===b&&(V||q)||!0===b);return e.scrollButtonStart=t?(0,Ma.jsx)(x,(0,Na.A)({slots:{StartScrollButtonIcon:y.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:g,direction:s?"right":"left",onClick:ae,disabled:!V},S,{className:(0,qa.A)(D.scrollButtons,S.className)})):null,e.scrollButtonEnd=t?(0,Ma.jsx)(x,(0,Na.A)({slots:{EndScrollButtonIcon:y.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:g,direction:s?"left":"right",onClick:ie,disabled:!q},S,{className:(0,qa.A)(D.scrollButtons,S.className)})):null,e})();return(0,Ma.jsxs)(ZN,(0,Na.A)({className:(0,qa.A)(D.root,u),ownerState:I,ref:t,as:p},E,{children:[fe.scrollButtonStart,fe.scrollbarSizeListener,(0,Ma.jsxs)(QN,{className:D.scroller,ownerState:I,style:{overflow:G.overflow,[P?"margin".concat(s?"Left":"Right"):"marginBottom"]:N?void 0:-G.scrollbarWidth},ref:Q,children:[(0,Ma.jsx)(eE,{"aria-label":a,"aria-labelledby":i,"aria-orientation":"vertical"===g?"vertical":null,className:D.flexContainer,ownerState:I,onKeyDown:e=>{const t=ee.current,n=(0,ql.A)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let o="horizontal"===g?"ArrowLeft":"ArrowUp",r="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&s&&(o="ArrowRight",r="ArrowLeft"),e.key){case o:e.preventDefault(),XN(t,n,GN);break;case r:e.preventDefault(),XN(t,n,YN);break;case"Home":e.preventDefault(),XN(t,null,YN);break;case"End":e.preventDefault(),XN(t,null,GN)}},ref:ee,role:"tablist",children:he}),B&&ue]}),fe.scrollButtonEnd]}))})),sE=rE;function aE(e){return(0,ui.Ay)("MuiTab",e)}const iE=(0,ti.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),lE=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],cE=(0,li.Ay)(dl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat((0,gi.A)(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{["& .".concat(iE.iconWrapper)]:t.iconWrapper}]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(iE.iconWrapper)]:(0,Na.A)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,["&.".concat(iE.selected)]:{opacity:1},["&.".concat(iE.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(iE.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(iE.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(iE.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(iE.disabled)]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})})),dE=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTab"}),{className:r,disabled:s=!1,disableFocusRipple:a=!1,fullWidth:i,icon:l,iconPosition:c="top",indicator:d,label:u,onChange:p,onClick:h,onFocus:f,selected:m,selectionFollowsFocus:g,textColor:x="inherit",value:b,wrapped:v=!1}=n,y=(0,pr.A)(n,lE),w=(0,Na.A)({},n,{disabled:s,disableFocusRipple:a,selected:m,icon:!!l,iconPosition:c,label:!!u,fullWidth:i,textColor:x,wrapped:v}),k=(e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:r,icon:s,label:a,selected:i,disabled:l}=e,c={root:["root",s&&a&&"labelIcon","textColor".concat((0,gi.A)(n)),o&&"fullWidth",r&&"wrapped",i&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,ai.A)(c,aE,t)})(w),S=l&&u&&o.isValidElement(l)?o.cloneElement(l,{className:(0,qa.A)(k.iconWrapper,l.props.className)}):l;return(0,Ma.jsxs)(cE,(0,Na.A)({focusRipple:!a,className:(0,qa.A)(k.root,r),ref:t,role:"tab","aria-selected":m,disabled:s,onClick:e=>{!m&&p&&p(e,b),h&&h(e)},onFocus:e=>{g&&!m&&p&&p(e,b),f&&f(e)},ownerState:w,tabIndex:m?0:-1},y,{children:["top"===c||"start"===c?(0,Ma.jsxs)(o.Fragment,{children:[S,u]}):(0,Ma.jsxs)(o.Fragment,{children:[u,S]}),d]}))})),uE=dE;function pE(e){return(0,ui.Ay)("MuiDialog",e)}const hE=(0,ti.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const fE=o.createContext({}),mE=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],gE=(0,li.Ay)(ed,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),xE=(0,li.Ay)(gd,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),bE=(0,li.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll".concat((0,gi.A)(n.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),vE=(0,li.Ay)(mi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper".concat((0,gi.A)(n.scroll))],t["paperWidth".concat((0,gi.A)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(hE.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit),["&.".concat(hE.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(hE.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),yE=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiDialog"}),r=Pc(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":i,BackdropComponent:l,BackdropProps:c,children:d,className:u,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:g,onClick:x,onClose:b,open:v,PaperComponent:y=mi,PaperProps:w={},scroll:k="paper",TransitionComponent:S=Gc,transitionDuration:j=s,TransitionProps:C}=n,A=(0,pr.A)(n,mE),N=(0,Na.A)({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:f,maxWidth:m,scroll:k}),E=(e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:s}=e,a={root:["root"],container:["container","scroll".concat((0,gi.A)(n))],paper:["paper","paperScroll".concat((0,gi.A)(n)),"paperWidth".concat((0,gi.A)(String(o))),r&&"paperFullWidth",s&&"paperFullScreen"]};return(0,ai.A)(a,pE,t)})(N),_=o.useRef(),P=(0,Kl.A)(i),M=o.useMemo((()=>({titleId:P})),[P]);return(0,Ma.jsx)(xE,(0,Na.A)({className:(0,qa.A)(E.root,u),closeAfterTransition:!0,components:{Backdrop:gE},componentsProps:{backdrop:(0,Na.A)({transitionDuration:j,as:l},c)},disableEscapeKeyDown:p,onClose:b,open:v,ref:t,onClick:e=>{x&&x(e),_.current&&(_.current=null,g&&g(e),b&&b(e,"backdropClick"))},ownerState:N},A,{children:(0,Ma.jsx)(S,(0,Na.A)({appear:!0,in:v,timeout:j,role:"presentation"},C,{children:(0,Ma.jsx)(bE,{className:(0,qa.A)(E.container),onMouseDown:e=>{_.current=e.target===e.currentTarget},ownerState:N,children:(0,Ma.jsx)(vE,(0,Na.A)({as:y,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":P},w,{className:(0,qa.A)(E.paper,w.className),ownerState:N,children:(0,Ma.jsx)(fE.Provider,{value:M,children:d})}))})}))}))}));function wE(e){return(0,ui.Ay)("MuiDialogTitle",e)}const kE=(0,ti.A)("MuiDialogTitle",["root"]),SE=["className","id"],jE=(0,li.Ay)(Vf,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),CE=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiDialogTitle"}),{className:r,id:s}=n,a=(0,pr.A)(n,SE),i=n,l=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"]},wE,t)})(i),{titleId:c=s}=o.useContext(fE);return(0,Ma.jsx)(jE,(0,Na.A)({component:"h2",className:(0,qa.A)(l.root,r),ownerState:i,ref:t,variant:"h6",id:null!=s?s:c},a))}));function AE(e){return(0,ui.Ay)("MuiDialogContent",e)}(0,ti.A)("MuiDialogContent",["root","dividers"]);const NE=["className","dividers"],EE=(0,li.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(kE.root," + &")]:{paddingTop:0}})})),_E=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiDialogContent"}),{className:o,dividers:r=!1}=n,s=(0,pr.A)(n,NE),a=(0,Na.A)({},n,{dividers:r}),i=(e=>{const{classes:t,dividers:n}=e,o={root:["root",n&&"dividers"]};return(0,ai.A)(o,AE,t)})(a);return(0,Ma.jsx)(EE,(0,Na.A)({className:(0,qa.A)(i.root,o),ownerState:a,ref:t},s))}));function PE(e){return(0,ui.Ay)("MuiFormHelperText",e)}const ME=(0,ti.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var RE;const OE=["children","className","component","disabled","error","filled","focused","margin","required","variant"],TE=(0,li.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t["size".concat((0,gi.A)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(ME.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(ME.error)]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),LE=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiFormHelperText"}),{children:o,className:r,component:s="p"}=n,a=(0,pr.A)(n,OE),i=_l({props:n,muiFormControl:Pl(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Na.A)({},n,{component:s,contained:"filled"===i.variant||"outlined"===i.variant,variant:i.variant,size:i.size,disabled:i.disabled,error:i.error,filled:i.filled,focused:i.focused,required:i.required}),c=(e=>{const{classes:t,contained:n,size:o,disabled:r,error:s,filled:a,focused:i,required:l}=e,c={root:["root",r&&"disabled",s&&"error",o&&"size".concat((0,gi.A)(o)),n&&"contained",i&&"focused",a&&"filled",l&&"required"]};return(0,ai.A)(c,PE,t)})(l);return(0,Ma.jsx)(TE,(0,Na.A)({as:s,ownerState:l,className:(0,qa.A)(c.root,r),ref:t},a,{children:" "===o?RE||(RE=(0,Ma.jsx)("span",{className:"notranslate",children:"\u200b"})):o}))}));function IE(e){return(0,ui.Ay)("MuiTextField",e)}(0,ti.A)("MuiTextField",["root"]);const DE=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],zE={standard:Tu,filled:Wu,outlined:Qu},FE=(0,li.Ay)(El,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BE=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:r=!1,children:s,className:a,color:i="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:p=!1,helperText:h,id:f,InputLabelProps:m,inputProps:g,InputProps:x,inputRef:b,label:v,maxRows:y,minRows:w,multiline:k=!1,name:S,onBlur:j,onChange:C,onFocus:A,placeholder:N,required:E=!1,rows:_,select:P=!1,SelectProps:M,type:R,value:O,variant:T="outlined"}=n,L=(0,pr.A)(n,DE),I=(0,Na.A)({},n,{autoFocus:r,color:i,disabled:c,error:d,fullWidth:p,multiline:k,required:E,select:P,variant:T}),D=(e=>{const{classes:t}=e;return(0,ai.A)({root:["root"]},IE,t)})(I);const z={};"outlined"===T&&(m&&"undefined"!==typeof m.shrink&&(z.notched=m.shrink),z.label=v),P&&(M&&M.native||(z.id=void 0),z["aria-describedby"]=void 0);const F=(0,Kl.A)(f),B=h&&F?"".concat(F,"-helper-text"):void 0,W=v&&F?"".concat(F,"-label"):void 0,U=zE[T],H=(0,Ma.jsx)(U,(0,Na.A)({"aria-describedby":B,autoComplete:o,autoFocus:r,defaultValue:l,fullWidth:p,multiline:k,name:S,rows:_,maxRows:y,minRows:w,type:R,value:O,id:F,inputRef:b,onBlur:j,onChange:C,onFocus:A,placeholder:N,inputProps:g},z,x));return(0,Ma.jsxs)(FE,(0,Na.A)({className:(0,qa.A)(D.root,a),disabled:c,error:d,fullWidth:p,ref:t,required:E,color:i,variant:T,ownerState:I},L,{children:[null!=v&&""!==v&&(0,Ma.jsx)(Wl,(0,Na.A)({htmlFor:F,id:W},m,{children:v})),P?(0,Ma.jsx)(ip,(0,Na.A)({"aria-describedby":B,id:F,labelId:W,value:O,input:H},M,{children:s})):H,h&&(0,Ma.jsx)(LE,(0,Na.A)({id:B},u,{children:h}))]}))})),WE=BE;function UE(e){return(0,ui.Ay)("MuiDialogActions",e)}(0,ti.A)("MuiDialogActions",["root","spacing"]);const HE=["className","disableSpacing"],VE=(0,li.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,Na.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),KE=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:r=!1}=n,s=(0,pr.A)(n,HE),a=(0,Na.A)({},n,{disableSpacing:r}),i=(e=>{const{classes:t,disableSpacing:n}=e,o={root:["root",!n&&"spacing"]};return(0,ai.A)(o,UE,t)})(a);return(0,Ma.jsx)(VE,(0,Na.A)({className:(0,qa.A)(i.root,o),ownerState:a,ref:t},s))})),qE=(0,au.A)((0,Ma.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),$E=(0,au.A)((0,Ma.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop"),JE=(0,au.A)((0,Ma.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),YE=(0,au.A)((0,Ma.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),GE=(0,au.A)((0,Ma.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),XE=(0,au.A)((0,Ma.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),ZE=(0,au.A)((0,Ma.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),QE=(0,au.A)((0,Ma.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),e_=(0,au.A)((0,Ma.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),t_=(0,au.A)((0,Ma.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),n_=(0,au.A)((0,Ma.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),o_=(0,au.A)((0,Ma.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),r_=(0,au.A)((0,Ma.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),s_=(0,au.A)((0,Ma.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),a_=(0,au.A)((0,Ma.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),i_=e=>{const t=[];return e.forEach(((e,n)=>{const o=e.startsWith("[STDERR]"),r=e.replace(/^\[(STDOUT|STDERR)\]\s*/,"").trim();r&&t.push({id:String(n),type:o?"stderr":"stdout",message:r,timestamp:new Date})})),t},l_=e=>{var t;let{logWindows:n,onClose:r,onClear:s}=e;const{t:a}=me(),[i,l]=(0,o.useState)(null),[c,d]=(0,o.useState)(!1),[u,p]=(0,o.useState)({}),h=(0,o.useRef)(null),f=(0,o.useRef)([]),m=(0,o.useRef)(null),[g,x]=(0,o.useState)(!1),[b,v]=(0,o.useState)(!1);(0,o.useEffect)((()=>{const e=Object.keys(n),t=f.current,o=e.filter((e=>!t.includes(e)));o.length>0?l(o[o.length-1]):0===e.length?l(null):l((e=>e&&n[e]?e:null)),f.current=e}),[n]);const y=(0,o.useMemo)((()=>{if(c)return u;const e={};return Object.entries(n).forEach((t=>{let[n,o]=t;e[n]=i_(o.logs)})),e}),[n,c,u]);(0,o.useEffect)((()=>{var e;i&&!c&&(null===(e=h.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}))}),[y,i,c]);const w=()=>{const e=m.current;e&&(x(e.scrollLeft>0),v(e.scrollLeft+e.clientWidth<e.scrollWidth-1))};(0,o.useEffect)((()=>{w()}),[n]);const k=e=>{const t=m.current;t&&(t.scrollBy({left:"left"===e?-160:160,behavior:"smooth"}),setTimeout(w,200))};if(0===Object.keys(n).length)return null;const S=i&&null!==(t=y[i])&&void 0!==t?t:[],j=i?n[i]:null,C=(e,t)=>{var n;return(null!==(n=y[e])&&void 0!==n?n:[]).filter((e=>e.type===t)).length};return(0,Ma.jsxs)(si,{sx:{position:"fixed",bottom:0,left:{xs:0,sm:"200px"},right:0,zIndex:1200,display:"flex",flexDirection:"column"},children:[i&&(0,Ma.jsxs)(si,{sx:{height:320,display:"flex",flexDirection:"column",bgcolor:"#0a0a0a",borderTop:"1px solid #1e1e1e",borderLeft:"1px solid #1e1e1e",borderRight:"1px solid #1e1e1e"},children:[(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:1.5,flexShrink:0,height:30,bgcolor:"#0d0d0d",borderBottom:"1px solid #1e1e1e"},children:[(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[(0,Ma.jsx)(si,{sx:{width:6,height:6,borderRadius:"50%",bgcolor:c?"#555":"#22c55e",boxShadow:c?"none":"0 0 5px rgba(34,197,94,0.5)"}}),(0,Ma.jsxs)(Vf,{sx:{fontFamily:"monospace",fontSize:"0.68rem",color:"#888"},children:[null===j||void 0===j?void 0:j.processName,(0,Ma.jsx)(si,{component:"span",sx:{color:"#333",mx:.5},children:"\xb7"}),null===j||void 0===j?void 0:j.connectionName]}),(0,Ma.jsxs)(si,{sx:{display:"flex",gap:.75},children:[C(i,"stdout")>0&&(0,Ma.jsx)(si,{sx:{px:.6,py:0,borderRadius:"2px",bgcolor:"rgba(34,197,94,0.12)",border:"1px solid rgba(34,197,94,0.25)"},children:(0,Ma.jsxs)(Vf,{sx:{fontSize:"0.6rem",color:"#22c55e",fontFamily:"monospace",lineHeight:"16px"},children:["OUT ",C(i,"stdout")]})}),C(i,"stderr")>0&&(0,Ma.jsx)(si,{sx:{px:.6,py:0,borderRadius:"2px",bgcolor:"rgba(239,68,68,0.12)",border:"1px solid rgba(239,68,68,0.25)"},children:(0,Ma.jsxs)(Vf,{sx:{fontSize:"0.6rem",color:"#ef4444",fontFamily:"monospace",lineHeight:"16px"},children:["ERR ",C(i,"stderr")]})})]})]}),(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center"},children:[(0,Ma.jsx)(sf,{title:a(c?"logPanel.resume":"logPanel.pause"),children:(0,Ma.jsx)(Am,{size:"small",onClick:()=>{if(!c){const e={};Object.entries(n).forEach((t=>{let[n,o]=t;e[n]=i_(o.logs)})),p(e)}d((e=>!e))},sx:{color:"#555","&:hover":{color:"#888"}},children:c?(0,Ma.jsx)(qE,{sx:{fontSize:13}}):(0,Ma.jsx)(t_,{sx:{fontSize:13}})})}),(0,Ma.jsx)(sf,{title:a("logPanel.clear"),children:(0,Ma.jsx)(Am,{size:"small",onClick:()=>s(i),sx:{color:"#555","&:hover":{color:"#888"}},children:(0,Ma.jsx)(QE,{sx:{fontSize:13}})})}),(0,Ma.jsx)(sf,{title:a("logPanel.collapse"),children:(0,Ma.jsx)(Am,{size:"small",onClick:()=>l(null),sx:{color:"#555","&:hover":{color:"#888"}},children:(0,Ma.jsx)(n_,{sx:{fontSize:14}})})}),(0,Ma.jsx)(sf,{title:a("logPanel.closeSession"),children:(0,Ma.jsx)(Am,{size:"small",onClick:()=>r(i),sx:{color:"#555","&:hover":{color:"#ef4444"}},children:(0,Ma.jsx)(o_,{sx:{fontSize:13}})})})]})]}),(0,Ma.jsxs)(si,{sx:{flex:1,overflowY:"auto",py:.5,"&::-webkit-scrollbar":{width:4},"&::-webkit-scrollbar-track":{bgcolor:"transparent"},"&::-webkit-scrollbar-thumb":{bgcolor:"#1e1e1e",borderRadius:2}},children:[0===S.length?(0,Ma.jsx)(si,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,Ma.jsx)(Vf,{sx:{color:"#555",fontSize:"0.72rem",fontFamily:"monospace"},children:a(c?"logPanel.paused":"logPanel.waiting")})}):S.map((e=>{return(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"flex-start",gap:1,px:1.5,py:"1px","&:hover":{bgcolor:"rgba(255,255,255,0.02)"}},children:[(0,Ma.jsx)(Vf,{component:"span",sx:{color:"#333",fontSize:"0.65rem",flexShrink:0,fontFamily:"monospace",pt:"1px"},children:(t=e.timestamp,t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}))}),(0,Ma.jsx)(Vf,{component:"span",sx:{color:"stderr"===e.type?"#ef4444":"#22c55e",fontSize:"0.62rem",flexShrink:0,fontFamily:"monospace",pt:"1px",minWidth:22},children:"stderr"===e.type?"ERR":"OUT"}),(0,Ma.jsx)(Vf,{component:"span",sx:{color:"stderr"===e.type?"#fca5a5":"#e8e8e8",fontSize:"0.72rem",fontFamily:"monospace",wordBreak:"break-word",flex:1,lineHeight:1.5},children:e.message})]},e.id);var t})),(0,Ma.jsx)("div",{ref:h})]})]}),(0,Ma.jsxs)(si,{sx:{height:28,bgcolor:"#0d0d0d",borderTop:"1px solid #1e1e1e",display:"flex",alignItems:"center",flexShrink:0,position:"relative"},children:[(0,Ma.jsx)(Vf,{sx:{fontSize:"0.58rem",color:"#555",fontFamily:"monospace",textTransform:"uppercase",letterSpacing:"0.1em",px:1,whiteSpace:"nowrap",flexShrink:0,borderRight:"1px solid #1a1a1a",alignSelf:"stretch",display:"flex",alignItems:"center"},children:"LOGS"}),(0,Ma.jsx)(si,{onClick:()=>k("left"),sx:{display:g?"flex":"none",alignItems:"center",px:.25,height:"100%",cursor:"pointer",color:"#555",flexShrink:0,"&:hover":{color:"#888",bgcolor:"rgba(255,255,255,0.03)"}},children:(0,Ma.jsx)(r_,{sx:{fontSize:16}})}),(0,Ma.jsx)(si,{ref:m,onScroll:w,sx:{display:"flex",alignItems:"center",gap:.5,flex:1,overflowX:"auto",overflowY:"hidden",px:.5,height:"100%","&::-webkit-scrollbar":{height:3},"&::-webkit-scrollbar-track":{bgcolor:"transparent"},"&::-webkit-scrollbar-thumb":{bgcolor:"#1e1e1e",borderRadius:2}},children:Object.entries(n).map((e=>{let[t,n]=e;const o=t===i,s=C(t,"stdout"),a=C(t,"stderr");return(0,Ma.jsxs)(si,{onClick:()=>l(o?null:t),sx:{display:"flex",alignItems:"center",gap:.6,px:1,height:20,borderRadius:"2px",cursor:"pointer",flexShrink:0,bgcolor:o?"#111":"transparent",border:o?"1px solid #1e1e1e":"1px solid transparent",transition:"background 0.1s","&:hover":{bgcolor:o?"#141414":"rgba(255,255,255,0.03)"}},children:[(0,Ma.jsx)(si,{sx:{width:5,height:5,borderRadius:"50%",flexShrink:0,bgcolor:"#22c55e",boxShadow:"0 0 4px rgba(34,197,94,0.5)"}}),(0,Ma.jsx)(Vf,{sx:{fontSize:"0.65rem",fontFamily:"monospace",color:o?"#e8e8e8":"#888",fontWeight:o?600:400,whiteSpace:"nowrap"},children:n.processName}),(0,Ma.jsx)(Vf,{sx:{fontSize:"0.6rem",color:"#333",fontFamily:"monospace",whiteSpace:"nowrap"},children:n.connectionName}),s>0&&(0,Ma.jsx)(Vf,{sx:{fontSize:"0.6rem",color:"#22c55e",fontFamily:"monospace",whiteSpace:"nowrap"},children:s}),a>0&&(0,Ma.jsx)(Vf,{sx:{fontSize:"0.6rem",color:"#ef4444",fontFamily:"monospace",whiteSpace:"nowrap"},children:a}),o?(0,Ma.jsx)(n_,{sx:{fontSize:11,color:"#555",ml:.25}}):(0,Ma.jsx)(s_,{sx:{fontSize:11,color:"#333",ml:.25}}),(0,Ma.jsx)(si,{component:"span",onClick:e=>{e.stopPropagation(),r(t)},sx:{fontSize:"13px",lineHeight:1,color:"#555",cursor:"pointer",ml:.25,display:"flex",alignItems:"center","&:hover":{color:"#ef4444"}},children:"\xd7"})]},t)}))}),(0,Ma.jsx)(si,{onClick:()=>k("right"),sx:{display:b?"flex":"none",alignItems:"center",px:.25,height:"100%",cursor:"pointer",color:"#555",flexShrink:0,"&:hover":{color:"#888",bgcolor:"rgba(255,255,255,0.03)"}},children:(0,Ma.jsx)(a_,{sx:{fontSize:16}})})]})]})},c_=["children","value","index"];function d_(e){const{children:t,value:n,index:o}=e,r=hr(e,c_);return(0,Ma.jsx)("div",c(c({role:"tabpanel",hidden:n!==o,id:"simple-tabpanel-".concat(o),"aria-labelledby":"simple-tab-".concat(o)},r),{},{children:n===o&&(0,Ma.jsx)(si,{sx:{p:1.5},children:t})}))}const u_=e=>btoa(String.fromCharCode(...new Uint8Array(e)));async function p_(e,t){const n=await window.crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt"]),o=await window.crypto.subtle.exportKey("raw",n),r=await window.crypto.subtle.encrypt({name:"RSA-OAEP"},e,o),s=window.crypto.getRandomValues(new Uint8Array(12)),a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:s},n,(new TextEncoder).encode(t));return{encryptedKey:u_(r),iv:u_(s.buffer),data:u_(a)}}async function h_(e){const t=await async function(){const e=await fetch("/api/remote/public-key");if(!e.ok)throw new Error("Could not fetch server public key");const{publicKey:t}=await e.json(),n=t.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").replace(/\s/g,""),o=Uint8Array.from(atob(n),(e=>e.charCodeAt(0)));return window.crypto.subtle.importKey("spki",o.buffer,{name:"RSA-OAEP",hash:"SHA-256"},!1,["encrypt"])}();return{password:e.password?await p_(t,e.password):void 0,privateKey:e.privateKey?await p_(t,e.privateKey):void 0}}const f_="JetBrains Mono, monospace",m_={"& .MuiInputBase-root":{fontFamily:f_,fontSize:"0.625rem",backgroundColor:"#0d0d0d",borderRadius:"2px"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1e1e1e"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#333"},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#555"},"& input":{color:"#e8e8e8",fontFamily:f_},"& textarea":{color:"#e8e8e8",fontFamily:f_},"& .MuiInputLabel-root":{fontFamily:f_,fontSize:"0.625rem",color:"#555"},"& .MuiFormHelperText-root":{fontFamily:f_,fontSize:"0.5625rem",color:"#555"}},g_={fontFamily:"inherit",fontSize:"0.625rem",textTransform:"none",backgroundColor:"#e8e8e8",color:"#0a0a0a",borderRadius:"2px","&:hover":{backgroundColor:"#ccc"},boxShadow:"none","&:active":{boxShadow:"none"},py:.5,px:2},x_={fontFamily:"inherit",fontSize:"0.625rem",textTransform:"none",color:"#888",borderColor:"#333",borderRadius:"2px","&:hover":{borderColor:"#555",backgroundColor:"transparent"},py:.5,px:2},b_={fontFamily:"inherit",fontSize:"0.625rem",textTransform:"none",color:"#ef4444",borderColor:"#ef4444",borderRadius:"2px",borderWidth:1,borderStyle:"solid",backgroundColor:"transparent","&:hover":{backgroundColor:"#1a0000"},py:.5,px:2},v_={fontFamily:"inherit",fontSize:"0.625rem",textTransform:"none",color:"#22c55e",borderColor:"#22c55e",borderRadius:"2px",borderWidth:1,borderStyle:"solid",backgroundColor:"transparent","&:hover":{backgroundColor:"#001a0a"},py:.5,px:2},y_={fontFamily:f_,fontSize:"0.5625rem",color:"#444",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.15em",borderBottom:"1px solid #1e1e1e",py:1,px:2},w_={fontFamily:f_,fontSize:"0.625rem",color:"#888",borderBottom:"1px solid #111",py:1,px:2},k_=e=>{const t={fontFamily:f_,fontSize:"0.5625rem",height:16,borderRadius:"2px",border:"1px solid"};switch(e){case"online":return c(c({},t),{},{backgroundColor:"#0a1f0a",color:"#22c55e",borderColor:"#22c55e"});case"stopped":return c(c({},t),{},{backgroundColor:"#1a0000",color:"#ef4444",borderColor:"#ef4444"});case"stopping":return c(c({},t),{},{backgroundColor:"#1a1000",color:"#f59e0b",borderColor:"#f59e0b"});case"waiting restart":case"launching":return c(c({},t),{},{backgroundColor:"#0a0f1a",color:"#22d3ee",borderColor:"#22d3ee"});default:return c(c({},t),{},{backgroundColor:"#1a1a1a",color:"#888",borderColor:"#333"})}},S_=()=>{const{t:e}=me(),[t,n]=(0,o.useState)([]),[r,s]=(0,o.useState)(!1),[a,i]=(0,o.useState)(null),[l,d]=(0,o.useState)({}),[u,p]=(0,o.useState)({}),[h,f]=(0,o.useState)(new Set),[m,g]=(0,o.useState)({}),[x,b]=(0,o.useState)(null),[v,y]=(0,o.useState)(0),[w,k]=(0,o.useState)({}),[S,j]=(0,o.useState)(null),[C,A]=(0,o.useState)({name:"",host:"",port:22,username:"",password:"",privateKey:"",useSudo:!1});(0,o.useEffect)((()=>{N();const t=Bt();return j(t),t.on("remote-log-line",(e=>{console.log("Received remote-log-line:",e);const t="".concat(e.connectionId,"-").concat(e.processId);console.log("Looking for window key:",t),k((n=>(console.log("Current log windows:",Object.keys(n)),n[t]?(console.log("Updating logs for window:",t),c(c({},n),{},{[t]:c(c({},n[t]),{},{logs:[...n[t].logs,"[".concat(e.logType.toUpperCase(),"] ").concat(e.line)]})})):(console.log("Window not found for key:",t),n))))})),t.on("remote-log-error",(t=>{console.error("Remote log error:",t),b(e("remoteConnections.logStreamingError",{error:t.error}))})),()=>{t&&t.disconnect()}}),[]);const N=async()=>{try{const e=await fetch("/api/remote/connections");if(e.ok){const t=await e.json();n(t)}}catch(x){console.error("Failed to load connections:",x),b(e("remoteConnections.failedToLoadConnections"))}},E=async t=>{g((e=>c(c({},e),{},{[t]:!0})));try{const r=await fetch("/api/remote/".concat(t,"/connect"),{method:"POST"});if(r.ok)await P(t),await M(t),n((e=>e.map((e=>e.id===t?c(c({},e),{},{connected:!0}):e)))),f((e=>new Set([...e,t])));else try{const t=await r.json();b(t.error||e("remoteConnections.failedToConnect"))}catch(o){const t=await r.text();b(t||e("remoteConnections.failedToConnectInvalidResponse"))}}catch(x){console.error("Connection failed:",x),b(e("remoteConnections.connectionFailed",{message:x instanceof Error?x.message:"Unknown error"}))}finally{g((e=>c(c({},e),{},{[t]:!1})))}},_=async t=>{try{(await fetch("/api/remote/".concat(t,"/disconnect"),{method:"POST"})).ok&&(n((e=>e.map((e=>e.id===t?c(c({},e),{},{connected:!1}):e)))),d((e=>{const n=c({},e);return delete n[t],n})))}catch(x){console.error("Disconnect failed:",x),b(e("remoteConnections.disconnectFailed"))}},P=async t=>{g((e=>c(c({},e),{},{["".concat(t,"-processes")]:!0})));try{const n=await fetch("/api/remote/".concat(t,"/processes"));if(n.ok){const e=await n.json();d((n=>c(c({},n),{},{[t]:e})))}else{const o=await n.json().catch((()=>({error:"Unknown error"})));b(e("remoteConnections.failedToLoadProcesses",{error:o.error||n.statusText})),d((e=>c(c({},e),{},{[t]:[]})))}}catch(x){console.error("Failed to load processes:",x),b(e("remoteConnections.failedToLoadProcessesNetwork")),d((e=>c(c({},e),{},{[t]:[]})))}finally{g((e=>c(c({},e),{},{["".concat(t,"-processes")]:!1})))}},M=async e=>{try{const t=await fetch("/api/remote/".concat(e,"/system-info"));if(t.ok){const n=await t.json();p((t=>c(c({},t),{},{[e]:n})))}}catch(x){console.error("Failed to load system info:",x)}},R=async(t,n,o)=>{try{const r=await fetch("/api/remote/".concat(t,"/processes/").concat(n,"/").concat(o),{method:"POST"});if(r.ok)await P(t);else{const t=await r.json();b(t.error||e("remoteConnections.failedToProcessAction",{action:o}))}}catch(x){console.error("Process ".concat(o," failed:"),x),b(e("remoteConnections.processActionFailed",{action:o}))}},O=()=>{s(!1),i(null),A({name:"",host:"",port:22,username:"",password:"",privateKey:"",useSudo:!1})};return(0,Ma.jsxs)(si,{sx:{backgroundColor:"#0a0a0a",minHeight:"100%"},children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between mb-4 pb-3 border-b border-[#1e1e1e]",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsxs)("h1",{className:"font-mono text-xs font-semibold text-[#e8e8e8] leading-tight tracking-wide",children:["\u25b8 ",e("remoteConnections.title").toUpperCase()]}),(0,Ma.jsx)("p",{className:"font-mono text-[0.625rem] text-[#555] mt-0.5",children:e("remoteConnections.subtitle")})]}),(0,Ma.jsxs)(si,{sx:{display:"flex",gap:1},children:[t.some((e=>!e.connected))&&(0,Ma.jsx)(vl,{variant:"outlined",size:"small",startIcon:(0,Ma.jsx)(qE,{sx:{fontSize:"0.75rem !important"}}),onClick:async()=>{const e=t.filter((e=>!e.connected));for(const t of e)await E(t.id)},disabled:Object.values(m).some((e=>e)),sx:v_,children:e("remoteConnections.connectAll")}),t.some((e=>e.connected))&&(0,Ma.jsx)(vl,{variant:"outlined",size:"small",startIcon:(0,Ma.jsx)($E,{sx:{fontSize:"0.75rem !important"}}),onClick:async()=>{const e=t.filter((e=>e.connected));for(const t of e)await _(t.id)},disabled:Object.values(m).some((e=>e)),sx:b_,children:e("remoteConnections.disconnectAll")}),(0,Ma.jsx)(vl,{variant:"contained",size:"small",startIcon:(0,Ma.jsx)(JE,{sx:{fontSize:"0.75rem !important"}}),onClick:()=>s(!0),sx:g_,children:e("remoteConnections.addConnection")})]})]}),x&&(0,Ma.jsx)(Fm,{severity:"error",onClose:()=>b(null),sx:{mb:2,backgroundColor:"#1a0000",color:"#ef4444",border:"1px solid #3a0000",borderRadius:"2px",fontFamily:f_,fontSize:"0.625rem","& .MuiAlert-icon":{color:"#ef4444"}},children:x}),(0,Ma.jsx)(Vj,{container:!0,spacing:1,children:0===t.length?(0,Ma.jsx)(Vj,{item:!0,xs:12,children:(0,Ma.jsx)(mi,{variant:"outlined",sx:{p:3,textAlign:"center",backgroundColor:"#111",border:"1px solid #1e1e1e",borderRadius:"2px"},children:(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.625rem",color:"#555"},children:e("remoteConnections.noConnections")})})}):t.map((n=>{var o,r;return(0,Ma.jsx)(Vj,{item:!0,xs:12,children:(0,Ma.jsxs)(mi,{variant:"outlined",sx:{p:0,overflow:"hidden",backgroundColor:"#111",border:"1px solid #1e1e1e",borderRadius:"2px"},children:[(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:1,borderBottom:h.has(n.id)?"1px solid #1e1e1e":"none",backgroundColor:"#141414"},children:[(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center",gap:1.5,minWidth:0},children:[(0,Ma.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",backgroundColor:n.connected?"#22c55e":"#555",flexShrink:0,display:"inline-block"}}),(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.6875rem",color:"#e8e8e8",fontWeight:600,whiteSpace:"nowrap"},children:n.name}),(0,Ma.jsx)(mf,{label:n.connected?e("remoteConnections.connected"):e("remoteConnections.disconnected"),size:"small",sx:(r=n.connected,{fontFamily:f_,fontSize:"0.5625rem",height:16,borderRadius:"2px",backgroundColor:r?"#0a1f0a":"#1a1a1a",color:r?"#22c55e":"#555",border:"1px solid ".concat(r?"#22c55e":"#333")})}),(0,Ma.jsxs)(Vf,{sx:{fontFamily:f_,fontSize:"0.5625rem",color:"#555",whiteSpace:"nowrap"},children:[n.username,"@",n.host,":",n.port]})]}),(0,Ma.jsxs)(si,{sx:{display:"flex",alignItems:"center",gap:.5,flexShrink:0},children:[n.connected?(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)(Am,{size:"small",onClick:()=>{P(n.id),M(n.id)},disabled:m[n.id],sx:{color:"#555","&:hover":{color:"#888",backgroundColor:"transparent"}},children:(0,Ma.jsx)(YE,{sx:{fontSize:"0.875rem"}})}),(0,Ma.jsx)(Am,{size:"small",onClick:()=>{return e=n.id,void f((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}));var e},sx:{color:"#555","&:hover":{color:"#888",backgroundColor:"transparent"}},children:h.has(n.id)?(0,Ma.jsx)(GE,{sx:{fontSize:"0.875rem"}}):(0,Ma.jsx)(XE,{sx:{fontSize:"0.875rem"}})}),(0,Ma.jsx)(vl,{variant:"outlined",size:"small",onClick:()=>_(n.id),disabled:m[n.id],sx:x_,children:e("remoteConnections.disconnect")})]}):(0,Ma.jsx)(vl,{variant:"contained",size:"small",onClick:()=>E(n.id),disabled:m[n.id],startIcon:m[n.id]?(0,Ma.jsx)(og,{size:10,sx:{color:"#0a0a0a"}}):void 0,sx:g_,children:e("remoteConnections.connect")}),(0,Ma.jsx)(Am,{size:"small",onClick:()=>(e=>{i(e),A({name:e.name,host:e.host,port:e.port,username:e.username,password:"",privateKey:e.privateKey||"",useSudo:e.useSudo||!1}),s(!0)})(n),sx:{color:"#555","&:hover":{color:"#888",backgroundColor:"transparent"}},children:(0,Ma.jsx)(ZE,{sx:{fontSize:"0.875rem"}})}),(0,Ma.jsx)(Am,{size:"small",onClick:()=>(async t=>{try{(await fetch("/api/remote/connections/".concat(t),{method:"DELETE"})).ok&&await N()}catch(x){console.error("Failed to delete connection:",x),b(e("remoteConnections.failedToDeleteConnection"))}})(n.id),sx:{color:"#555","&:hover":{color:"#ef4444",backgroundColor:"transparent"}},children:(0,Ma.jsx)(QE,{sx:{fontSize:"0.875rem"}})})]})]}),(0,Ma.jsx)(Xg,{in:h.has(n.id)&&n.connected,children:(0,Ma.jsxs)(si,{sx:{backgroundColor:"#111"},children:[(0,Ma.jsxs)(sE,{value:v,onChange:(e,t)=>y(t),TabIndicatorProps:{style:{backgroundColor:"#22c55e",height:1}},sx:{minHeight:28,borderBottom:"1px solid #1e1e1e",backgroundColor:"#0d0d0d"},children:[(0,Ma.jsx)(uE,{label:e("remoteConnections.tabProcesses"),sx:{minHeight:28,fontSize:"0.625rem",textTransform:"none",fontFamily:f_,color:"#555",py:0,px:2,"&.Mui-selected":{color:"#e8e8e8"}}}),(0,Ma.jsx)(uE,{label:e("remoteConnections.tabSystemInfo"),sx:{minHeight:28,fontSize:"0.625rem",textTransform:"none",fontFamily:f_,color:"#555",py:0,px:2,"&.Mui-selected":{color:"#e8e8e8"}}})]}),(0,Ma.jsx)(d_,{value:v,index:0,children:m["".concat(n.id,"-processes")]?(0,Ma.jsx)(si,{sx:{display:"flex",justifyContent:"center",py:3},children:(0,Ma.jsx)(og,{size:16,sx:{color:"#22c55e"}})}):void 0===l[n.id]?(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.625rem",color:"#555"},children:e("remoteConnections.clickRefreshToLoad")}):0===l[n.id].length?(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.625rem",color:"#555"},children:e("remoteConnections.noPm2Processes")}):(0,Ma.jsxs)(xg,{size:"small",sx:{backgroundColor:"#111"},children:[(0,Ma.jsx)(jg,{sx:{backgroundColor:"#0d0d0d"},children:(0,Ma.jsxs)(Mg,{children:[(0,Ma.jsx)(Dg,{sx:y_,children:e("remoteConnections.colName")}),(0,Ma.jsx)(Dg,{sx:y_,children:e("remoteConnections.colStatus")}),(0,Ma.jsx)(Dg,{sx:y_,children:e("remoteConnections.colCpu")}),(0,Ma.jsx)(Dg,{sx:y_,children:e("remoteConnections.colMemory")}),(0,Ma.jsx)(Dg,{sx:y_,children:e("remoteConnections.colUptime")}),(0,Ma.jsx)(Dg,{sx:y_,children:e("remoteConnections.colActions")})]})}),(0,Ma.jsx)(Hg,{children:l[n.id].map((o=>(0,Ma.jsxs)(Mg,{sx:{"&:hover":{backgroundColor:"#141414"}},children:[(0,Ma.jsx)(Dg,{sx:w_,children:(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.625rem",color:"#e8e8e8",fontWeight:500},children:o.name})}),(0,Ma.jsx)(Dg,{sx:w_,children:(0,Ma.jsx)(mf,{label:o.status,size:"small",sx:k_(o.status)})}),(0,Ma.jsxs)(Dg,{sx:w_,children:[o.cpu,"%"]}),(0,Ma.jsx)(Dg,{sx:w_,children:o.memory}),(0,Ma.jsx)(Dg,{sx:w_,children:o.uptime}),(0,Ma.jsxs)(Dg,{sx:c(c({},w_),{},{whiteSpace:"nowrap"}),children:["online"===o.status?(0,Ma.jsx)(vl,{size:"small",startIcon:(0,Ma.jsx)($E,{sx:{fontSize:"0.75rem !important"}}),onClick:()=>R(n.id,o.name,"stop"),sx:c(c({},b_),{},{mr:.5}),children:e("actions.stop")}):(0,Ma.jsx)(vl,{size:"small",startIcon:(0,Ma.jsx)(qE,{sx:{fontSize:"0.75rem !important"}}),onClick:()=>R(n.id,o.name,"start"),sx:c(c({},v_),{},{mr:.5}),children:e("actions.start")}),(0,Ma.jsx)(Am,{size:"small",onClick:()=>R(n.id,o.name,"restart"),sx:{color:"#555","&:hover":{color:"#f59e0b",backgroundColor:"transparent"}},children:(0,Ma.jsx)(YE,{sx:{fontSize:"0.875rem"}})}),(0,Ma.jsx)(Am,{size:"small",onClick:()=>R(n.id,o.name,"delete"),sx:{color:"#555","&:hover":{color:"#ef4444",backgroundColor:"transparent"}},children:(0,Ma.jsx)(QE,{sx:{fontSize:"0.875rem"}})}),(0,Ma.jsx)(Am,{size:"small",onClick:()=>(async(n,o,r)=>{try{const e=void 0!==r?r.toString():o,s="".concat(n,"-").concat(e);if(w[s])return void console.log("Log window already open for:",s);const a=t.find((e=>e.id===n)),i=(null===a||void 0===a?void 0:a.name)||"Unknown";k((t=>c(c({},t),{},{[s]:{connectionId:n,processName:o,processId:e,connectionName:i,logs:[]}})));const l=await fetch("/api/remote/".concat(n,"/logs/").concat(e));if(l.ok){const e=await l.json(),t=[];e.stdout&&e.stdout.length>0&&t.push(...e.stdout.map((e=>"[STDOUT] ".concat(e)))),e.stderr&&e.stderr.length>0&&t.push(...e.stderr.map((e=>"[STDERR] ".concat(e)))),k((e=>c(c({},e),{},{[s]:c(c({},e[s]),{},{logs:t})})))}S?(console.log("Emitting subscribe-remote-logs with:",{connectionId:n,processId:e}),S.emit("subscribe-remote-logs",{connectionId:n,processId:e}),console.log("Socket subscription sent, current log windows:",Object.keys(w))):console.error("Socket not available for subscription")}catch(x){console.error("Failed to open live logs:",x),b(e("remoteConnections.failedToOpenLiveLogs"))}})(n.id,o.name,o.pm_id),sx:{color:"#555","&:hover":{color:"#22d3ee",backgroundColor:"transparent"}},children:(0,Ma.jsx)(e_,{sx:{fontSize:"0.875rem"}})})]})]},o.name)))})]})}),(0,Ma.jsx)(d_,{value:v,index:1,children:u[n.id]?(0,Ma.jsxs)(Vj,{container:!0,spacing:2,children:[(0,Ma.jsxs)(Vj,{item:!0,xs:12,md:6,children:[(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.5625rem",color:"#444",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.15em",mb:1,display:"block"},children:e("remoteConnections.systemInformation")}),[[e("remoteConnections.hostname"),u[n.id].hostname],[e("remoteConnections.platform"),u[n.id].platform],[e("remoteConnections.architecture"),u[n.id].arch],[e("remoteConnections.nodeJs"),u[n.id].nodeVersion]].map((e=>{let[t,n]=e;return(0,Ma.jsxs)(si,{sx:{display:"flex",gap:1.5,mb:.5},children:[(0,Ma.jsxs)(Vf,{sx:{fontFamily:f_,fontSize:"0.5625rem",color:"#555",minWidth:90},children:[t,":"]}),(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.5625rem",color:"#888"},children:n})]},t)}))]}),(0,Ma.jsxs)(Vj,{item:!0,xs:12,md:6,children:[(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.5625rem",color:"#444",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.15em",mb:1,display:"block"},children:e("remoteConnections.resources")}),[[e("remoteConnections.totalMemory"),u[n.id].totalMemory],[e("remoteConnections.freeMemory"),u[n.id].freeMemory],[e("remoteConnections.cpuCount"),u[n.id].cpuCount],[e("remoteConnections.loadAverage"),null===(o=u[n.id].loadAverage)||void 0===o?void 0:o.join(", ")]].map((e=>{let[t,n]=e;return(0,Ma.jsxs)(si,{sx:{display:"flex",gap:1.5,mb:.5},children:[(0,Ma.jsxs)(Vf,{sx:{fontFamily:f_,fontSize:"0.5625rem",color:"#555",minWidth:90},children:[t,":"]}),(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.5625rem",color:"#888"},children:n})]},t)}))]})]}):(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.625rem",color:"#555"},children:e("remoteConnections.noSystemInfo")})})]})})]})},n.id)}))}),(0,Ma.jsxs)(yE,{open:r,onClose:O,maxWidth:"md",fullWidth:!0,PaperProps:{sx:{backgroundColor:"#111",border:"1px solid #1e1e1e",borderRadius:"2px",backgroundImage:"none"}},children:[(0,Ma.jsx)(CE,{sx:{fontFamily:f_,fontSize:"0.75rem",color:"#e8e8e8",fontWeight:600,borderBottom:"1px solid #1e1e1e",py:1.5},children:e(a?"remoteConnections.editRemoteConnection":"remoteConnections.addRemoteConnection")}),(0,Ma.jsx)(_E,{sx:{backgroundColor:"#111",pt:"16px !important"},children:(0,Ma.jsxs)(Vj,{container:!0,spacing:2,children:[(0,Ma.jsx)(Vj,{item:!0,xs:12,children:(0,Ma.jsx)(WE,{fullWidth:!0,label:e("remoteConnections.connectionName"),value:C.name,onChange:e=>A((t=>c(c({},t),{},{name:e.target.value}))),size:"small",sx:m_})}),(0,Ma.jsx)(Vj,{item:!0,xs:12,md:8,children:(0,Ma.jsx)(WE,{fullWidth:!0,label:e("remoteConnections.host"),value:C.host,onChange:e=>A((t=>c(c({},t),{},{host:e.target.value}))),size:"small",sx:m_})}),(0,Ma.jsx)(Vj,{item:!0,xs:12,md:4,children:(0,Ma.jsx)(WE,{fullWidth:!0,label:e("remoteConnections.port"),type:"number",value:C.port,onChange:e=>A((t=>c(c({},t),{},{port:parseInt(e.target.value)}))),size:"small",sx:m_})}),(0,Ma.jsx)(Vj,{item:!0,xs:12,children:(0,Ma.jsx)(WE,{fullWidth:!0,label:e("remoteConnections.username"),value:C.username,onChange:e=>A((t=>c(c({},t),{},{username:e.target.value}))),size:"small",sx:m_})}),(0,Ma.jsx)(Vj,{item:!0,xs:12,children:(0,Ma.jsx)(WE,{fullWidth:!0,label:e("remoteConnections.password"),type:"password",value:C.password,onChange:e=>A((t=>c(c({},t),{},{password:e.target.value}))),placeholder:a?e("remoteConnections.passwordPlaceholder"):"",helperText:a?e("remoteConnections.leaveBlankCurrent"):"",size:"small",sx:m_})}),(0,Ma.jsx)(Vj,{item:!0,xs:12,children:(0,Ma.jsx)(WE,{fullWidth:!0,label:e("remoteConnections.privateKey"),multiline:!0,rows:4,value:C.privateKey,onChange:e=>A((t=>c(c({},t),{},{privateKey:e.target.value}))),placeholder:"-----BEGIN OPENSSH PRIVATE KEY-----",sx:m_})}),(0,Ma.jsx)(Vj,{item:!0,xs:12,children:(0,Ma.jsx)(Gf,{control:(0,Ma.jsx)(fm,{checked:C.useSudo,onChange:e=>A((t=>c(c({},t),{},{useSudo:e.target.checked}))),size:"small",sx:{color:"#333","&.Mui-checked":{color:"#22c55e"},"& .MuiSvgIcon-root":{fontSize:"0.875rem"}}}),label:(0,Ma.jsx)(Vf,{sx:{fontFamily:f_,fontSize:"0.625rem",color:"#888"},children:e("remoteConnections.useSudo")})})})]})}),(0,Ma.jsxs)(KE,{sx:{borderTop:"1px solid #1e1e1e",px:2,py:1.5,backgroundColor:"#111",gap:1},children:[(0,Ma.jsx)(vl,{onClick:O,size:"small",sx:x_,children:e("common.cancel")}),(0,Ma.jsx)(vl,{onClick:()=>{a?(async()=>{if(a)try{const t=await h_(C),n=c(c({},C),{},{password:t.password,privateKey:t.privateKey}),o=await fetch("/api/remote/connections/".concat(a.id),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(o.ok)await N(),s(!1),i(null),A({name:"",host:"",port:22,username:"",password:"",privateKey:"",useSudo:!1});else{const t=await o.json();b(t.error||e("remoteConnections.failedToUpdateConnection"))}}catch(x){console.error("Failed to update connection:",x),b(e("remoteConnections.failedToUpdateConnection"))}})():(async()=>{try{const t=await h_(C),n=c(c({},C),{},{password:t.password,privateKey:t.privateKey}),o=await fetch("/api/remote/connections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(o.ok)await N(),s(!1),A({name:"",host:"",port:22,username:"",password:"",privateKey:"",useSudo:!1});else{const t=await o.json();b(t.error||e("remoteConnections.failedToAddConnection"))}}catch(x){console.error("Failed to add connection:",x),b(e("remoteConnections.failedToAddConnection"))}})()},size:"small",sx:g_,children:e(a?"remoteConnections.updateConnection":"remoteConnections.addConnection")})]})]}),(0,Ma.jsx)(l_,{logWindows:w,onClose:e=>{const t=w[e];S&&t&&S.emit("unsubscribe-remote-logs",{connectionId:t.connectionId,processId:t.processId}),k((t=>{const n=c({},t);return delete n[e],n}))},onClear:e=>{k((t=>c(c({},t),{},{[e]:c(c({},t[e]),{},{logs:[]})})))}})]})},j_=["title","titleId"];function C_(e,t){let{title:n,titleId:r}=e,s=hr(e,j_);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"}))}const A_=o.forwardRef(C_),N_=["title","titleId"];function E_(e,t){let{title:n,titleId:r}=e,s=hr(e,N_);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))}const __=o.forwardRef(E_),P_={"Every minute":"* * * * *","Every 5 minutes":"*/5 * * * *","Every 15 minutes":"*/15 * * * *","Every 30 minutes":"*/30 * * * *","Every hour":"0 * * * *","Every 6 hours":"0 */6 * * *","Every day at midnight":"0 0 * * *","Every day at noon":"0 12 * * *","Every Monday at 9 AM":"0 9 * * 1","Every weekday at 9 AM":"0 9 * * 1-5","Every month on the 1st":"0 0 1 * *"},M_={"Every minute":"cronJobs.everyMinute","Every 5 minutes":"cronJobs.every5Minutes","Every 15 minutes":"cronJobs.every15Minutes","Every 30 minutes":"cronJobs.every30Minutes","Every hour":"cronJobs.everyHour","Every 6 hours":"cronJobs.every6Hours","Every day at midnight":"cronJobs.everydayMidnight","Every day at noon":"cronJobs.everydayNoon","Every Monday at 9 AM":"cronJobs.everyMondayAm","Every weekday at 9 AM":"cronJobs.everyWeekdayAm","Every month on the 1st":"cronJobs.everyMonthFirst"},R_=[{key:"minute",labelKey:"cronJobs.minute",placeholder:"*",hint:"0-59 or *"},{key:"hour",labelKey:"cronJobs.hour",placeholder:"*",hint:"0-23 or *"},{key:"dayOfMonth",labelKey:"cronJobs.dayOfMonth",placeholder:"*",hint:"1-31 or *"},{key:"month",labelKey:"cronJobs.month",placeholder:"*",hint:"1-12 or *"},{key:"dayOfWeek",labelKey:"cronJobs.dayOfWeek",placeholder:"*",hint:"0-6 or *"}],O_=e=>{const t=e.split(" ");return 5===t.length?{minute:t[0],hour:t[1],dayOfMonth:t[2],month:t[3],dayOfWeek:t[4]}:{minute:"*",hour:"*",dayOfMonth:"*",month:"*",dayOfWeek:"*"}},T_=e=>{let{value:t,onChange:n,onValidationChange:r}=e;const{t:s}=me(),[a,i]=(0,o.useState)(O_(t)),[l,d]=(0,o.useState)({valid:!0,description:""}),[u,p]=(0,o.useState)(null);(0,o.useEffect)((()=>{if(!t)return;(async()=>{try{const e=await ur.post("/api/cron-jobs/validate",{expression:t});if(e.data.success){const t=e.data.data;d(t),null===r||void 0===r||r(t)}}catch(e){const t={valid:!1,error:"Invalid cron expression"};d(t),null===r||void 0===r||r(t)}})()}),[t,r]),(0,o.useEffect)((()=>{const e="".concat(a.minute," ").concat(a.hour," ").concat(a.dayOfMonth," ").concat(a.month," ").concat(a.dayOfWeek);e!==t&&n(e)}),[a]);return(0,Ma.jsxs)("div",{className:"space-y-3",children:[(0,Ma.jsx)("p",{className:"text-[10px] font-mono font-bold text-[#888] uppercase tracking-[0.1em]",children:s("cronJobs.cronSchedule")}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.1em] mb-1.5 block",children:s("cronJobs.usePreset")}),(0,Ma.jsx)("div",{className:"flex flex-wrap gap-1",children:Object.entries(P_).map((e=>{let[t,o]=e;const r=u===t;return(0,Ma.jsx)("button",{type:"button",onClick:()=>((e,t)=>{n(e),i(O_(e)),p(t)})(o,t),className:["text-[9px] font-mono border px-2 py-0.5 rounded-sm transition-colors",r?"border-[#22c55e]/40 text-[#22c55e] bg-[#022c00]":"border-[#1e1e1e] text-[#555] hover:border-[#333] hover:text-[#888]"].join(" "),children:s(M_[t]||t)},o)}))})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3 space-y-2",children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.1em] block",children:"Cron Expression"}),(0,Ma.jsx)("input",{type:"text",value:t,onChange:e=>{n(e.target.value),i(O_(e.target.value)),p(null)},placeholder:"* * * * *",className:["bg-[#0a0a0a] border font-mono text-[10px] text-[#22d3ee] px-2.5 py-1.5 rounded-sm focus:outline-none w-full",l.valid?"border-[#1e1e1e] focus:border-[#555]":"border-[#ef4444]/50"].join(" ")}),l.valid&&l.description&&(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888]",children:l.description}),!l.valid&&l.error&&(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#ef4444]",children:l.error})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.1em] mb-2 block",children:s("cronJobs.buildVisually")}),(0,Ma.jsx)("div",{className:"grid grid-cols-5 gap-2",children:R_.map((e=>{let{key:t,labelKey:n,placeholder:o,hint:r}=e;return(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("label",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.1em] mb-1 block",children:s(n)}),(0,Ma.jsx)("input",{type:"text",className:"bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm px-2 py-1 focus:border-[#555] focus:outline-none w-full",value:a[t],onChange:e=>{return n=t,o=e.target.value,i((e=>c(c({},e),{},{[n]:o}))),void p(null);var n,o},placeholder:o}),(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] mt-0.5",children:r})]},t)}))})]}),l.valid&&l.nextRun&&(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#555]",children:s("cronJobs.nextRunLabel")}),(0,Ma.jsx)("span",{className:"font-mono text-[10px] text-[#22c55e] bg-[#022c00] border border-[#22c55e]/20 px-2 py-0.5 rounded-sm",children:new Date(l.nextRun).toLocaleString()})]}),(0,Ma.jsxs)("div",{className:"bg-[#0a0a0a] border border-[#1e1e1e] rounded-sm px-3 py-2 space-y-1",children:[(0,Ma.jsxs)("p",{className:"text-[9px] font-mono text-[#555]",children:[(0,Ma.jsx)("span",{className:"text-[#888]",children:"format:"})," minute hour day-of-month month day-of-week"]}),(0,Ma.jsxs)("p",{className:"text-[9px] font-mono text-[#555]",children:[(0,Ma.jsx)("span",{className:"text-[#888]",children:"syntax:"})," * = any \xa0 */5 = every 5 \xa0 1-5 = range \xa0 1,3,5 = list"]})]})]})},L_=e=>{let{value:t,onChange:n,scriptType:o,placeholder:r}=e;const{t:s}=me(),a=null!==r&&void 0!==r?r:(e=>{switch(e){case"node":return"// Node.js script\nconsole.log('Hello from cron job!');\nconsole.log('Current time:', new Date().toISOString());\n\n// Access environment variables\nconsole.log('Environment:', process.env.NODE_ENV);\n\n// Exit with success code\nprocess.exit(0);";case"python":return"# Python script\nimport sys\nfrom datetime import datetime\n\nprint('Hello from cron job!')\nprint(f'Current time: {datetime.now().isoformat()}')\n\n# Access command line arguments\nprint(f'Arguments: {sys.argv[1:]}')\n\n# Exit with success code\nsys.exit(0)";case"shell":return'#!/bin/bash\n# Shell script\n\necho "Hello from cron job!"\necho "Current time: $(date -Iseconds)"\necho "Current user: $(whoami)"\necho "Working directory: $(pwd)"\n\n# Exit with success code\nexit 0';case"dotnet":return'// C# script\nusing System;\n\nclass Program\n{\n static void Main(string[] args)\n {\n Console.WriteLine("Hello from cron job!");\n Console.WriteLine($"Current time: {DateTime.Now}");\n\n // Access command line arguments\n Console.WriteLine($"Arguments: {string.Join(", ", args)}");\n\n Environment.Exit(0);\n }\n}';default:return"Write your script here..."}})(o);return(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("div",{className:"mb-1 font-mono text-[10px] font-semibold text-[#888] uppercase tracking-widest",children:s("scriptEditor.title")}),(0,Ma.jsx)("div",{className:"bg-[#0a0a0a] border border-[#1e1e1e] rounded-sm overflow-hidden",children:(0,Ma.jsx)("textarea",{value:t,onChange:e=>n(e.target.value),placeholder:a,spellCheck:!1,className:"w-full font-mono text-[10px] leading-relaxed text-[#e8e8e8] bg-[#0a0a0a] placeholder-[#333] border-none outline-none resize-y p-3 min-h-[300px] whitespace-pre overflow-x-auto",style:{overflowWrap:"normal"}})}),(0,Ma.jsx)("div",{className:"mt-1 font-mono text-[10px] text-[#555]",children:s("scriptEditor.tip")})]})},I_={name:"",description:"",scriptType:"node",scriptMode:"inline",scriptPath:"",inlineScript:"",cronExpression:"0 * * * *",args:[],env:{},cwd:"",enabled:!0},D_="bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-xs rounded-sm px-2.5 py-1.5 focus:border-[#555] focus:outline-none w-full",z_="text-[10px] font-mono text-[#888] mb-1 block",F_="text-[9px] font-mono text-[#555] mt-0.5",B_="text-[10px] font-mono font-bold text-[#888] uppercase tracking-[0.1em] mb-3",W_=e=>{let{open:t,onClose:n,onSave:r,editJob:s}=e;const{t:a}=me(),[i,l]=(0,o.useState)(!1),[d,u]=(0,o.useState)({valid:!0}),[p,h]=(0,o.useState)(I_),[f,m]=(0,o.useState)(""),[g,x]=(0,o.useState)(""),[b,v]=(0,o.useState)("");(0,o.useEffect)((()=>{h(s?{name:s.name,description:s.description||"",scriptType:s.scriptType,scriptMode:s.scriptMode||"file",scriptPath:s.scriptPath,inlineScript:s.inlineScript||"",cronExpression:s.cronExpression,args:s.args||[],env:s.env||{},cwd:s.cwd||"",enabled:s.enabled}:c({},I_))}),[s,t]);const y=(e,t)=>{h((n=>c(c({},n),{},{[e]:t})))},w=()=>{f.trim()&&(y("args",[...p.args,f.trim()]),m(""))},k=()=>{g.trim()&&(y("env",c(c({},p.env),{},{[g.trim()]:b.trim()})),x(""),v(""))};return t?(0,Ma.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70",children:(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm w-full max-w-2xl max-h-[90vh] flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,Ma.jsxs)("div",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.1em] border-b border-[#1a1a1a] px-4 py-3 flex items-center justify-between shrink-0",children:[(0,Ma.jsx)("span",{children:a(s?"cronJobs.editJob":"cronJobs.createJob")}),(0,Ma.jsx)("button",{onClick:n,className:"text-[#555] hover:text-[#888] font-mono text-xs leading-none","aria-label":"Close",children:"\u2715"})]}),(0,Ma.jsxs)("div",{className:"overflow-y-auto flex-1 px-4 py-4 space-y-5",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:B_,children:a("cronJobs.basicInfo")}),(0,Ma.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[(0,Ma.jsxs)("div",{className:"sm:col-span-2",children:[(0,Ma.jsxs)("label",{className:z_,children:[a("cronJobs.jobName")," *"]}),(0,Ma.jsx)("input",{type:"text",className:D_,value:p.name,onChange:e=>y("name",e.target.value),placeholder:"My Scheduled Task"})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2 pt-4",children:[(0,Ma.jsx)("button",{type:"button",role:"switch","aria-checked":p.enabled,onClick:()=>y("enabled",!p.enabled),className:["relative inline-flex h-4 w-8 shrink-0 rounded-sm border transition-colors focus:outline-none",p.enabled?"bg-[#22c55e]/20 border-[#22c55e]/40":"bg-[#0d0d0d] border-[#333]"].join(" "),children:(0,Ma.jsx)("span",{className:["inline-block h-3 w-3 rounded-sm bg-current transition-transform mt-0.5",p.enabled?"translate-x-4 text-[#22c55e]":"translate-x-0.5 text-[#555]"].join(" ")})}),(0,Ma.jsx)("span",{className:"text-[10px] font-mono text-[#888]",children:p.enabled?"Enabled":"Disabled"})]}),(0,Ma.jsxs)("div",{className:"sm:col-span-3",children:[(0,Ma.jsx)("label",{className:z_,children:"Description"}),(0,Ma.jsx)("textarea",{className:D_+" resize-none",rows:2,value:p.description,onChange:e=>y("description",e.target.value),placeholder:"Optional description of this job"})]})]})]}),(0,Ma.jsx)("div",{className:"border-t border-[#1a1a1a]"}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:B_,children:a("cronJobs.scriptConfig")}),(0,Ma.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsxs)("label",{className:z_,children:[a("cronJobs.scriptType")," *"]}),(0,Ma.jsxs)("select",{className:D_,value:p.scriptType,onChange:e=>y("scriptType",e.target.value),children:[(0,Ma.jsx)("option",{value:"node",children:"Node.js"}),(0,Ma.jsx)("option",{value:"python",children:"Python"}),(0,Ma.jsx)("option",{value:"shell",children:"Shell Script"}),(0,Ma.jsx)("option",{value:"dotnet",children:".NET"})]})]}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsxs)("label",{className:z_,children:[a("cronJobs.scriptMode")," *"]}),(0,Ma.jsxs)("select",{className:D_,value:p.scriptMode,onChange:e=>y("scriptMode",e.target.value),children:[(0,Ma.jsx)("option",{value:"inline",children:a("cronJobs.writeInline")}),(0,Ma.jsx)("option",{value:"file",children:a("cronJobs.useFile")})]})]}),"file"===p.scriptMode?(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)("div",{className:"sm:col-span-2",children:[(0,Ma.jsxs)("label",{className:z_,children:[a("cronJobs.scriptPath")," *"]}),(0,Ma.jsx)("input",{type:"text",className:D_,value:p.scriptPath,onChange:e=>y("scriptPath",e.target.value),placeholder:"/path/to/script.js"}),(0,Ma.jsx)("p",{className:F_,children:"Absolute or relative path to your script"})]}),(0,Ma.jsxs)("div",{className:"sm:col-span-2",children:[(0,Ma.jsx)("label",{className:z_,children:a("cronJobs.workingDir")}),(0,Ma.jsx)("input",{type:"text",className:D_,value:p.cwd,onChange:e=>y("cwd",e.target.value),placeholder:"/path/to/working/directory"}),(0,Ma.jsx)("p",{className:F_,children:"Optional: Directory to run the script from"})]})]}):(0,Ma.jsx)("div",{className:"sm:col-span-2",children:(0,Ma.jsx)(L_,{value:p.inlineScript,onChange:e=>y("inlineScript",e),scriptType:p.scriptType})})]})]}),(0,Ma.jsx)("div",{className:"border-t border-[#1a1a1a]"}),(0,Ma.jsx)(T_,{value:p.cronExpression,onChange:e=>y("cronExpression",e),onValidationChange:u}),(0,Ma.jsx)("div",{className:"border-t border-[#1a1a1a]"}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:B_,children:a("cronJobs.scriptArgs")}),(0,Ma.jsxs)("div",{className:"flex gap-2 mb-2",children:[(0,Ma.jsx)("input",{type:"text",className:D_,placeholder:a("cronJobs.addArgument"),value:f,onChange:e=>m(e.target.value),onKeyDown:e=>"Enter"===e.key&&w()}),(0,Ma.jsx)("button",{type:"button",onClick:w,className:"border border-[#333] text-[#888] font-mono text-xs px-3 py-1.5 rounded-sm hover:border-[#555] shrink-0",children:"+"})]}),p.args.length>0&&(0,Ma.jsx)("div",{className:"flex flex-wrap gap-1",children:p.args.map(((e,t)=>(0,Ma.jsxs)("span",{className:"inline-flex items-center gap-1 bg-[#0d0d0d] border border-[#1e1e1e] text-[#e8e8e8] font-mono text-[10px] px-2 py-0.5 rounded-sm",children:[e,(0,Ma.jsx)("button",{type:"button",onClick:()=>(e=>{y("args",p.args.filter(((t,n)=>n!==e)))})(t),className:"text-[#555] hover:text-[#ef4444] leading-none",children:"\xd7"})]},t)))})]}),(0,Ma.jsx)("div",{className:"border-t border-[#1a1a1a]"}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:B_,children:a("cronJobs.envVars")}),(0,Ma.jsxs)("div",{className:"flex gap-2 mb-2",children:[(0,Ma.jsx)("input",{type:"text",className:D_,placeholder:a("common.key"),value:g,onChange:e=>x(e.target.value)}),(0,Ma.jsx)("input",{type:"text",className:D_,placeholder:a("common.value"),value:b,onChange:e=>v(e.target.value),onKeyDown:e=>"Enter"===e.key&&k()}),(0,Ma.jsx)("button",{type:"button",onClick:k,className:"border border-[#333] text-[#888] font-mono text-xs px-3 py-1.5 rounded-sm hover:border-[#555] shrink-0",children:"+"})]}),Object.entries(p.env).length>0&&(0,Ma.jsx)("div",{className:"space-y-1",children:Object.entries(p.env).map((e=>{let[t,n]=e;return(0,Ma.jsxs)("div",{className:"flex items-center gap-2 bg-[#0d0d0d] border border-[#1e1e1e] px-2.5 py-1.5 rounded-sm",children:[(0,Ma.jsx)("span",{className:"font-mono text-[10px] text-[#22d3ee] min-w-[100px]",children:t}),(0,Ma.jsx)("span",{className:"font-mono text-[10px] text-[#888] flex-1 truncate",children:n}),(0,Ma.jsx)("button",{type:"button",onClick:()=>(e=>{const t=c({},p.env);delete t[e],y("env",t)})(t),className:"text-[#555] hover:text-[#ef4444] font-mono text-xs leading-none shrink-0",children:"\xd7"})]},t)}))})]})]}),(0,Ma.jsxs)("div",{className:"border-t border-[#1a1a1a] px-4 py-3 flex justify-end gap-2 shrink-0",children:[(0,Ma.jsx)("button",{type:"button",onClick:n,disabled:i,className:"border border-[#333] text-[#888] font-mono text-xs px-4 py-1.5 rounded-sm hover:border-[#555] disabled:opacity-40",children:a("common.cancel")}),(0,Ma.jsx)("button",{type:"button",onClick:async()=>{if(d.valid)if(p.name&&p.cronExpression)if("file"!==p.scriptMode||p.scriptPath)if("inline"!==p.scriptMode||p.inlineScript){l(!0);try{await r(p),n()}catch(e){console.error("Error saving cron job:",e),alert("Failed to save cron job")}finally{l(!1)}}else alert("Please write your script");else alert("Please provide a script path");else alert("Please fill in all required fields")},disabled:i||!d.valid,className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-1.5 rounded-sm hover:bg-[#ccc] disabled:opacity-40",children:a(i?"cronJobs.saving":s?"cronJobs.update":"cronJobs.create")})]})]})}):null},U_=()=>{const{t:e}=me(),[t,n]=(0,o.useState)([]),[r,s]=(0,o.useState)(!0),[a,i]=(0,o.useState)(!1),[l,c]=(0,o.useState)(),[d,u]=(0,o.useState)(!1),[p,h]=(0,o.useState)(null),f=async()=>{try{s(!0);const e=await ur.get("/api/cron-jobs/status");e.data.success&&n(e.data.data)}catch(e){console.error("Error fetching cron jobs:",e)}finally{s(!1)}};(0,o.useEffect)((()=>{f()}),[]);const m=()=>{c(void 0),i(!0)},g=e=>{var t;return null!==(t={node:"bg-[#22c55e]/10 text-[#22c55e] border-[#22c55e]/20",python:"bg-[#22d3ee]/10 text-[#22d3ee] border-[#22d3ee]/20",shell:"bg-[#f59e0b]/10 text-[#f59e0b] border-[#f59e0b]/20",dotnet:"bg-[#a78bfa]/10 text-[#a78bfa] border-[#a78bfa]/20"}[e])&&void 0!==t?t:"bg-[#1e1e1e] text-[#888] border-[#333]"};return(0,Ma.jsxs)("div",{className:"space-y-3",children:[(0,Ma.jsx)(eC,{title:e("cronJobs.title"),subtitle:e("cronJobs.subtitle"),actions:(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)("button",{onClick:f,disabled:r,className:"flex items-center gap-1.5 border border-[#333] text-[#888] text-xs font-mono px-3 py-1 rounded-sm hover:border-[#555] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[(0,Ma.jsx)(jC,{className:"h-3.5 w-3.5 ".concat(r?"animate-spin":"")}),e("common.refresh")]}),(0,Ma.jsxs)("button",{onClick:m,className:"flex items-center gap-1.5 bg-[#e8e8e8] text-[#0a0a0a] text-xs font-mono font-semibold px-3 py-1 rounded-sm transition-colors hover:bg-white",children:[(0,Ma.jsx)(yA,{className:"h-3.5 w-3.5"}),e("cronJobs.createJob")]})]})}),(0,Ma.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:[{id:"total",label:e("cronJobs.total"),value:t.length,color:"text-[#e8e8e8]"},{id:"enabled",label:e("cronJobs.enabled"),value:t.filter((e=>e.config.enabled)).length,color:"text-[#22c55e]"},{id:"running",label:e("cronJobs.running"),value:t.filter((e=>e.isRunning)).length,color:"text-[#22d3ee]"},{id:"scheduled",label:e("cronJobs.scheduled"),value:t.filter((e=>e.config.enabled&&!e.isRunning)).length,color:"text-[#f59e0b]"}].map((e=>{let{id:t,label:n,value:o,color:r}=e;return(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm px-3 py-2",children:[(0,Ma.jsx)("p",{className:"text-[11px] font-mono font-bold leading-none ".concat(r),children:o}),(0,Ma.jsx)("p",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em] mt-1",children:n})]},t)}))}),0===t.length?(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-10 text-center",children:[(0,Ma.jsx)(sC,{className:"mx-auto h-8 w-8 text-[#333] mb-3"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555]",children:e("cronJobs.noJobs")}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#444] mt-1 mb-4",children:"Create your first scheduled task to automate your workflows"}),(0,Ma.jsxs)("button",{onClick:m,className:"inline-flex items-center gap-1.5 bg-[#e8e8e8] text-[#0a0a0a] text-xs font-mono font-semibold px-3 py-1 rounded-sm transition-colors hover:bg-white",children:[(0,Ma.jsx)(yA,{className:"h-3.5 w-3.5"}),"Create First Job"]})]}):(0,Ma.jsx)("div",{className:"border border-[#1e1e1e] rounded-sm overflow-hidden",children:(0,Ma.jsxs)("table",{className:"w-full text-xs",children:[(0,Ma.jsx)("thead",{children:(0,Ma.jsx)("tr",{className:"bg-[#0d0d0d] border-b border-[#1e1e1e]",children:[{id:"name",label:e("common.name")},{id:"type",label:e("cronJobs.type")},{id:"sched",label:e("cronJobs.cronSchedule")},{id:"next",label:e("cronJobs.nextRun")},{id:"status",label:e("common.status")},{id:"enabled",label:e("cronJobs.enabled")},{id:"actions",label:""}].map((e=>{let{id:t,label:n}=e;return(0,Ma.jsx)("th",{className:"px-3 py-2.5 text-left text-[9px] font-mono text-[#444] uppercase tracking-[0.15em] whitespace-nowrap",children:n},t)}))})}),(0,Ma.jsx)("tbody",{className:"divide-y divide-[#1a1a1a]",children:t.map((t=>(0,Ma.jsxs)("tr",{className:"bg-[#0a0a0a] hover:bg-[#111] transition-colors",children:[(0,Ma.jsxs)("td",{className:"px-3 py-2.5",children:[(0,Ma.jsx)("p",{className:"text-[10px] font-mono font-semibold text-[#e8e8e8]",children:t.config.name}),t.config.description&&(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] mt-0.5",children:t.config.description})]}),(0,Ma.jsx)("td",{className:"px-3 py-2.5",children:(0,Ma.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded-sm border text-[10px] font-mono font-medium ".concat(g(t.config.scriptType)),children:[(0,Ma.jsx)(A_,{className:"h-3 w-3 shrink-0"}),t.config.scriptType.toUpperCase()]})}),(0,Ma.jsx)("td",{className:"px-3 py-2.5",children:(0,Ma.jsx)("code",{className:"font-mono text-[10px] text-[#888]",children:t.config.cronExpression})}),(0,Ma.jsx)("td",{className:"px-3 py-2.5 text-[10px] font-mono text-[#888] whitespace-nowrap",children:t.nextExecution?new Date(t.nextExecution).toLocaleString():"\u2014"}),(0,Ma.jsx)("td",{className:"px-3 py-2.5",children:t.isRunning?(0,Ma.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded-sm border text-[10px] font-mono font-medium bg-[#22c55e]/10 text-[#22c55e] border-[#22c55e]/20",children:[(0,Ma.jsx)(KC,{className:"h-3 w-3"})," ",e("common.running")]}):t.config.enabled?(0,Ma.jsx)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded-sm border text-[10px] font-mono font-medium bg-[#1e1e1e] text-[#888] border-[#333]",children:e("common.scheduled")}):(0,Ma.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded-sm border text-[10px] font-mono font-medium bg-[#ef4444]/10 text-[#ef4444] border-[#ef4444]/20",children:[(0,Ma.jsx)(JC,{className:"h-3 w-3"})," ",e("cronJobs.disabled")]})}),(0,Ma.jsx)("td",{className:"px-3 py-2.5",children:(0,Ma.jsx)("button",{onClick:()=>(async e=>{try{await ur.post("/api/cron-jobs/".concat(e,"/toggle")),f()}catch(t){console.error("Error toggling cron job:",t)}})(t.config.id),className:"relative inline-flex h-5 w-9 shrink-0 rounded-full border-2 border-transparent\n transition-colors duration-200 cursor-pointer\n ".concat(t.config.enabled?"bg-[#22c55e]":"bg-[#333]"),children:(0,Ma.jsx)("span",{className:"pointer-events-none inline-block h-4 w-4 rounded-full bg-[#e8e8e8] shadow\n transform transition-transform duration-200\n ".concat(t.config.enabled?"translate-x-4":"translate-x-0")})})}),(0,Ma.jsx)("td",{className:"px-3 py-2.5",children:(0,Ma.jsxs)("div",{className:"flex items-center gap-0.5 justify-end",children:[t.isRunning?(0,Ma.jsx)("button",{onClick:()=>(async e=>{try{await ur.post("/api/cron-jobs/".concat(e,"/stop")),f()}catch(t){console.error("Error stopping cron job:",t)}})(t.config.id),title:"Stop",className:"p-1 rounded-sm text-[#ef4444] hover:bg-[#ef4444]/10 transition-colors",children:(0,Ma.jsx)(NC,{className:"h-4 w-4"})}):(0,Ma.jsx)("button",{onClick:()=>(async e=>{try{await ur.post("/api/cron-jobs/".concat(e,"/start")),f()}catch(t){console.error("Error starting cron job:",t)}})(t.config.id),title:"Start",className:"p-1 rounded-sm text-[#22c55e] hover:bg-[#22c55e]/10 transition-colors",children:(0,Ma.jsx)(PC,{className:"h-4 w-4"})}),(0,Ma.jsx)("button",{onClick:()=>(e=>{c(e),i(!0)})(t.config),title:e("common.edit"),className:"p-1 rounded-sm text-[#555] hover:bg-[#1e1e1e] hover:text-[#888] transition-colors",children:(0,Ma.jsx)(__,{className:"h-4 w-4"})}),(0,Ma.jsx)("button",{onClick:()=>{h(t.config.id),u(!0)},title:e("common.delete"),className:"p-1 rounded-sm text-[#555] hover:bg-[#ef4444]/10 hover:text-[#ef4444] transition-colors",children:(0,Ma.jsx)(OC,{className:"h-4 w-4"})})]})})]},t.config.id)))})]})}),(0,Ma.jsx)(W_,{open:a,onClose:()=>{i(!1),c(void 0)},onSave:async e=>{try{l?await ur.put("/api/cron-jobs/".concat(l.id),e):await ur.post("/api/cron-jobs",e),f(),i(!1)}catch(t){throw console.error("Error saving cron job:",t),t}},editJob:l}),(0,Ma.jsx)(fA,{isOpen:d,title:e("cronJobs.deleteCronJobTitle"),message:e("cronJobs.deleteCronJobMessage"),onConfirm:async()=>{if(p)try{await ur.delete("/api/cron-jobs/".concat(p)),f(),u(!1),h(null)}catch(e){console.error("Error deleting cron job:",e)}},onCancel:()=>{u(!1),h(null)},type:"danger"})]})},H_=["title","titleId"];function V_(e,t){let{title:n,titleId:r}=e,s=hr(e,H_);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.348 14.652a3.75 3.75 0 0 1 0-5.304m5.304 0a3.75 3.75 0 0 1 0 5.304m-7.425 2.121a6.75 6.75 0 0 1 0-9.546m9.546 0a6.75 6.75 0 0 1 0 9.546M5.106 18.894c-3.808-3.807-3.808-9.98 0-13.788m13.788 0c3.808 3.807 3.808 9.98 0 13.788M12 12h.008v.008H12V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const K_=o.forwardRef(V_);Ik.register(Xk,Qk,XS,$S,VS,NS,SS);const q_=[{label:"30 min",ms:18e5},{label:"1 hr",ms:36e5},{label:"6 hr",ms:216e5},{label:"12 hr",ms:432e5},{label:"24 hr",ms:864e5},{label:"7 days",ms:6048e5}];function $_(e){if(0===e.length)return{min:0,max:0,avg:0};let t=e[0],n=e[0],o=0;for(const r of e)r<t&&(t=r),r>n&&(n=r),o+=r;return{min:t,max:n,avg:o/e.length}}const J_=e=>{let{values:t,color:n,width:o=120,height:r=30,max:s,fluid:a=!1}=e;const i=r;if(t.length<2){const e=a?{display:"block",width:"100%",height:r}:{display:"inline-block",width:o,height:r,lineHeight:"".concat(r,"px")};return(0,Ma.jsx)("span",{style:e,className:"text-center text-[#555] text-[9px] font-mono",children:"\u2014"})}const l=i-4,d=null!==s&&void 0!==s?s:Math.max(...t,.01),u=e=>2+l-e/d*l,p=t.map(((e,n)=>"".concat(2+n/(t.length-1)*196,",").concat(u(e)))).join(" "),h=["".concat(2,",").concat(u(t[0])),...t.slice(1).map(((e,n)=>"".concat(2+(n+1)/(t.length-1)*196,",").concat(u(e)))),"".concat(198,",").concat(2+l),"".concat(2,",").concat(2+l)].join(" "),f=a?{width:"100%",height:r,viewBox:"0 0 ".concat(200," ").concat(i),preserveAspectRatio:"none",style:{display:"block"}}:{width:o,height:r,style:{display:"inline-block",verticalAlign:"middle"}};return(0,Ma.jsxs)("svg",c(c({},f),{},{children:[(0,Ma.jsx)("polygon",{points:h,fill:n,fillOpacity:.12,stroke:"none"}),(0,Ma.jsx)("polyline",{points:p,fill:"none",stroke:n,strokeWidth:1.3,strokeLinejoin:"round",strokeLinecap:"round"})]}))};function Y_(e){if(0===e)return"0 B";const t=e/1048576;return t>=1?"".concat(t.toFixed(1)," MB"):"".concat((e/1024).toFixed(1)," KB")}const G_=e=>{var t;let{processes:n}=e;const{t:r}=me(),[s,a]=(0,o.useState)("live"),[i,l]=(0,o.useState)(""),d=(0,o.useRef)(new Map),[,u]=(0,o.useState)(0),[p,h]=(0,o.useState)({}),f=(0,o.useCallback)((async(e,t,n)=>{e.stopPropagation(),h((e=>c(c({},e),{},{[t.pm_id]:!0})));try{await ur.post("/api/process/".concat(t.pm_id,"/").concat(n))}catch(vM){console.error("Failed to ".concat(n," process:"),vM)}finally{h((e=>c(c({},e),{},{[t.pm_id]:!1})))}}),[]),[m,g]=(0,o.useState)([]),[x,b]=(0,o.useState)(""),[v,y]=(0,o.useState)([]),[w,k]=(0,o.useState)(""),[S,j]=(0,o.useState)(1),[C,A]=(0,o.useState)([]),[N,E]=(0,o.useState)(!1),[_,P]=(0,o.useState)(!1),M=(0,o.useRef)(null);(0,o.useEffect)((()=>{const e=Date.now(),t=d.current;for(const r of n){var o;const n=r.name,s=null!==(o=t.get(n))&&void 0!==o?o:[];s.push({ts:e,cpu:r.monit.cpu,memMb:r.monit.memory/1048576}),s.length>1200&&s.shift(),t.set(n,s)}for(const r of t.keys())n.find((e=>e.name===r))||t.delete(r);u((e=>e+1))}),[n]),(0,o.useEffect)((()=>{!i&&n.length>0&&l(n[0].name)}),[n,i]);const R=(0,o.useCallback)((async()=>{try{const e=await ur.get("/api/remote-metrics/connections");e.data.success&&g(e.data.connections)}catch(e){}}),[]);(0,o.useEffect)((()=>{"history"===s&&R()}),[s,R]),(0,o.useEffect)((()=>{x&&(y([]),k(""),A([]),ur.get("/api/remote-metrics/".concat(encodeURIComponent(x),"/processes")).then((e=>{e.data.success&&(y(e.data.processes),e.data.processes.length>0&&k(e.data.processes[0]))})).catch((()=>{})))}),[x]);const O=(0,o.useCallback)((async()=>{if(x&&w){E(!0);try{const e=q_[S].ms,t=Date.now(),n=await ur.get("/api/remote-metrics/".concat(encodeURIComponent(x),"/").concat(encodeURIComponent(w)),{params:{from:t-e,to:t}});n.data.success&&A(n.data.metrics)}catch(e){}finally{E(!1)}}}),[x,w,S]);(0,o.useEffect)((()=>{O()}),[O]),(0,o.useEffect)((()=>(_?M.current=setInterval(O,3e4):M.current&&clearInterval(M.current),()=>{M.current&&clearInterval(M.current)})),[_,O]);const T=(e,t)=>({responsive:!0,maintainAspectRatio:!1,animation:{duration:0},plugins:{legend:{display:!1},tooltip:{mode:"index",intersect:!1,callbacks:{label:t=>" ".concat(t.parsed.y.toFixed(2)," ").concat(e)}}},scales:{x:{ticks:{font:{size:10,family:"monospace"},maxTicksLimit:8,maxRotation:0,color:"#555"},grid:{color:"#1e1e1e"}},y:c(c({min:0},void 0!==t?{max:t}:{}),{},{ticks:{font:{size:10,family:"monospace"},color:"#555"},grid:{color:"#1e1e1e"},title:{display:!0,text:e,font:{size:10,family:"monospace"},color:"#555"}})}}),L=null!==(t=d.current.get(i))&&void 0!==t?t:[],I=L.map((e=>new Date(e.ts).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}))),D=L.map((e=>e.cpu)),z=L.map((e=>e.memMb)),F=$_(D),B=$_(z),W={labels:I,datasets:[{data:D,borderColor:"#22c55e",backgroundColor:"rgba(34,197,94,0.08)",borderWidth:1.5,pointRadius:L.length>60?0:2,tension:.3,fill:!0}]},U={labels:I,datasets:[{data:z,borderColor:"#22d3ee",backgroundColor:"rgba(34,211,238,0.08)",borderWidth:1.5,pointRadius:L.length>60?0:2,tension:.3,fill:!0}]},H=q_[S].ms,V=C.map((e=>function(e,t){const n=new Date(e);return t<=36e5?n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}):t<=864e5?n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):n.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}(e.timestamp,H))),K=C.map((e=>e.cpu)),q=C.map((e=>e.memory_mb)),$=$_(K),J=$_(q),Y={labels:V,datasets:[{data:K,borderColor:"#22c55e",backgroundColor:"rgba(34,197,94,0.08)",borderWidth:1.5,pointRadius:C.length>60?0:2,tension:.3,fill:!0}]},G={labels:V,datasets:[{data:q,borderColor:"#22d3ee",backgroundColor:"rgba(34,211,238,0.08)",borderWidth:1.5,pointRadius:C.length>60?0:2,tension:.3,fill:!0}]},X=e=>{let{label:t,value:n,unit:o,color:r}=e;return(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm px-2.5 py-1.5 flex flex-col gap-0.5",children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.15em]",children:t}),(0,Ma.jsxs)("span",{className:"text-[11px] font-mono font-bold ".concat(r),children:[n.toFixed(2),(0,Ma.jsx)("span",{className:"text-[9px] font-normal text-[#555] ml-0.5",children:o})]})]})},Z=e=>{let{id:t,label:n,icon:o}=e;return(0,Ma.jsxs)("button",{onClick:()=>a(t),className:"flex items-center gap-1.5 px-3 py-1.5 font-mono text-[10px] border-b-2 transition-colors ".concat(s===t?"border-[#22c55e] text-[#e8e8e8]":"border-transparent text-[#555] hover:text-[#888]"),children:[(0,Ma.jsx)(o,{className:"h-3.5 w-3.5"}),n]})},Q="font-mono text-[10px] px-2 py-1.5 rounded-sm border border-[#1e1e1e]\n bg-[#111] text-[#e8e8e8]\n focus:outline-none focus:ring-1 focus:ring-[#22c55e] disabled:opacity-40",ee=n.find((e=>e.name===i)),[te,ne]=(0,o.useState)(60),oe=(0,o.useRef)(null),re=(0,o.useRef)(!1);return(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)(eC,{title:r("metricsPage.title"),subtitle:r("metricsPage.subtitle"),actions:"history"===s?(0,Ma.jsxs)("button",{onClick:O,disabled:N,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-sm font-mono text-[10px] bg-[#111] border border-[#1e1e1e] text-[#888] hover:text-[#e8e8e8] hover:border-[#333] disabled:opacity-40 transition-colors",children:[(0,Ma.jsx)(jC,{className:"h-3.5 w-3.5 ".concat(N?"animate-spin":"")}),r("common.refresh")]}):void 0}),(0,Ma.jsxs)("div",{className:"flex gap-0 bg-[#111] border border-[#1e1e1e] rounded-sm mb-4 w-fit",children:[(0,Ma.jsx)(Z,{id:"live",label:r("metricsPage.live"),icon:K_}),(0,Ma.jsx)(Z,{id:"history",label:r("metricsPage.history"),icon:sC})]}),"live"===s&&(0===n.length?(0,Ma.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,Ma.jsx)(cN,{className:"h-10 w-10 text-[#333] mb-3"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555]",children:"No processes found"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#444] mt-1",children:"Make sure PM2 is running and connected"})]}):(0,Ma.jsxs)("div",{ref:oe,className:"flex min-h-0",onPointerMove:e=>{if(!re.current||!oe.current)return;const t=oe.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*100;ne(Math.min(75,Math.max(25,n)))},onPointerUp:()=>{re.current=!1},children:[(0,Ma.jsxs)("div",{className:"shrink-0 border border-[#1e1e1e] bg-[#0d0d0d] border-r border-r-[#1e1e1e] overflow-hidden flex flex-col rounded-sm",style:{width:"".concat(te,"%")},children:[(0,Ma.jsx)("div",{className:"px-3 py-2 border-b border-[#1e1e1e] shrink-0",children:(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] uppercase tracking-[0.15em]",children:"Processes"})}),(0,Ma.jsx)("div",{className:"overflow-y-auto flex-1",children:n.map((e=>{var t;const n=null!==(t=d.current.get(e.name))&&void 0!==t?t:[],o=e.name===i;return(0,Ma.jsxs)("div",{onClick:()=>l(e.name),className:"cursor-pointer px-3 py-2 flex flex-col gap-1.5 border-b border-[#1e1e1e] transition-colors ".concat(o?"bg-[#111] border-l-2 border-l-[#22c55e]":"hover:bg-[#111]"),children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,Ma.jsx)("span",{className:"h-1.5 w-1.5 rounded-full shrink-0 ".concat("online"===e.pm2_env.status?"bg-[#22c55e]":"errored"===e.pm2_env.status?"bg-[#ef4444]":"bg-[#444]")}),(0,Ma.jsx)("span",{className:"text-[11px] font-mono text-[#e8e8e8] truncate flex-1 min-w-0",children:e.name}),(0,Ma.jsxs)("div",{className:"shrink-0 flex items-center gap-0.5",children:[p[e.pm_id]?(0,Ma.jsx)(jC,{className:"h-3 w-3 animate-spin text-[#555]"}):"online"===e.pm2_env.status?(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)("button",{onClick:t=>f(t,e,"restart"),title:"Restart",className:"h-5 w-5 flex items-center justify-center text-[#444] hover:text-[#f59e0b] transition-colors",children:(0,Ma.jsx)(jC,{className:"h-3 w-3"})}),(0,Ma.jsx)("button",{onClick:t=>f(t,e,"stop"),title:"Stop",className:"h-5 w-5 flex items-center justify-center text-[#444] hover:text-[#ef4444] transition-colors",children:(0,Ma.jsx)(NC,{className:"h-3 w-3"})})]}):(0,Ma.jsx)("button",{onClick:t=>f(t,e,"start"),title:"Start",className:"h-5 w-5 flex items-center justify-center text-[#444] hover:text-[#22c55e] transition-colors",children:(0,Ma.jsx)(PC,{className:"h-3 w-3"})}),(0,Ma.jsx)("button",{onClick:t=>f(t,e,"delete"),title:"Delete",className:"h-5 w-5 flex items-center justify-center text-[#444] hover:text-[#888] transition-colors",children:(0,Ma.jsx)(OC,{className:"h-3 w-3"})})]})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2 pointer-events-none",children:[(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] shrink-0",children:"CPU"}),(0,Ma.jsxs)("span",{className:"text-[9px] font-mono tabular-nums shrink-0 ".concat(e.monit.cpu>=80?"text-[#ef4444]":e.monit.cpu>=50?"text-[#f59e0b]":"text-[#22c55e]"),children:[e.monit.cpu.toFixed(1),"%"]}),(0,Ma.jsx)("div",{className:"flex-1 min-w-0",children:(0,Ma.jsx)(J_,{values:n.map((e=>e.cpu)),color:o?"#22c55e":"#333",max:100,height:20,fluid:!0})}),(0,Ma.jsx)("span",{className:"text-[9px] font-mono text-[#555] shrink-0",children:"MEM"}),(0,Ma.jsx)("span",{className:"text-[9px] font-mono tabular-nums shrink-0 text-[#22d3ee]",children:Y_(e.monit.memory)}),(0,Ma.jsx)("div",{className:"flex-1 min-w-0",children:(0,Ma.jsx)(J_,{values:n.map((e=>e.memMb)),color:o?"#22d3ee":"#333",height:20,fluid:!0})})]})]},e.pm_id)}))})]}),(0,Ma.jsx)("div",{onPointerDown:e=>{e.preventDefault(),re.current=!0,e.target.setPointerCapture(e.pointerId)},className:"w-1 shrink-0 bg-[#1a1a1a] hover:bg-[#333] cursor-col-resize transition-colors select-none"}),(0,Ma.jsxs)("div",{className:"flex flex-col gap-3 min-w-0 flex-1 bg-[#0a0a0a] pl-3",children:[ee&&(0,Ma.jsxs)("div",{className:"flex items-center gap-3 font-mono text-[10px] px-1",children:[(0,Ma.jsx)("span",{className:"text-[#e8e8e8]",children:ee.name}),(0,Ma.jsx)("span",{className:"px-1.5 py-0.5 rounded-sm font-mono text-[9px] ".concat("online"===ee.pm2_env.status?"bg-[#0d1f0d] text-[#22c55e] border border-[#22c55e]/30":"bg-[#111] text-[#555] border border-[#1e1e1e]"),children:ee.pm2_env.status}),(0,Ma.jsxs)("span",{className:"text-[#555]",children:["CPU: ",(0,Ma.jsxs)("span",{className:"font-mono ".concat(ee.monit.cpu>=80?"text-[#ef4444]":ee.monit.cpu>=50?"text-[#f59e0b]":"text-[#22c55e]"),children:[ee.monit.cpu.toFixed(1),"%"]})]}),(0,Ma.jsxs)("span",{className:"text-[#555]",children:["Mem: ",(0,Ma.jsx)("span",{className:"font-mono text-[#22d3ee]",children:Y_(ee.monit.memory)})]}),(0,Ma.jsxs)("span",{className:"text-[#444] ml-auto font-mono",children:[L.length," pts \xb7 updates every 3s"]})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3 flex-1",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888]",children:"CPU Usage"}),(0,Ma.jsxs)("p",{className:"text-[9px] font-mono text-[#444]",children:["rolling ",L.length," pts"]})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)(X,{label:"Min",value:F.min,unit:"%",color:"text-[#22c55e]"}),(0,Ma.jsx)(X,{label:"Avg",value:F.avg,unit:"%",color:"text-[#e8e8e8]"}),(0,Ma.jsx)(X,{label:"Max",value:F.max,unit:"%",color:"text-[#ef4444]"})]})]}),(0,Ma.jsx)("div",{className:"h-36",children:L.length>0?(0,Ma.jsx)(Rj,{data:W,options:T("%",100)}):(0,Ma.jsx)("div",{className:"h-full flex items-center justify-center text-[10px] font-mono text-[#555]",children:"Waiting for data..."})})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3 flex-1",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888]",children:"Memory Usage"}),(0,Ma.jsxs)("p",{className:"text-[9px] font-mono text-[#444]",children:["rolling ",L.length," pts"]})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)(X,{label:"Min",value:B.min,unit:"MB",color:"text-[#22c55e]"}),(0,Ma.jsx)(X,{label:"Avg",value:B.avg,unit:"MB",color:"text-[#22d3ee]"}),(0,Ma.jsx)(X,{label:"Max",value:B.max,unit:"MB",color:"text-[#ef4444]"})]})]}),(0,Ma.jsx)("div",{className:"h-36",children:L.length>0?(0,Ma.jsx)(Rj,{data:U,options:T("MB")}):(0,Ma.jsx)("div",{className:"h-full flex items-center justify-center text-[10px] font-mono text-[#555]",children:"Waiting for data..."})})]})]})]})),"history"===s&&(0,Ma.jsxs)("div",{className:"space-y-4",children:[(0,Ma.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,Ma.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,Ma.jsx)("label",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.12em]",children:"Connection"}),(0,Ma.jsxs)("select",{value:x,onChange:e=>b(e.target.value),className:Q,children:[(0,Ma.jsx)("option",{value:"",children:"-- select connection --"}),m.map((e=>(0,Ma.jsx)("option",{value:e.id,children:e.name},e.id)))]})]}),(0,Ma.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,Ma.jsx)("label",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.12em]",children:"Process"}),(0,Ma.jsx)("select",{value:w,onChange:e=>k(e.target.value),disabled:0===v.length,className:Q,children:0===v.length?(0,Ma.jsx)("option",{value:"",children:"-- select connection first --"}):v.map((e=>(0,Ma.jsx)("option",{value:e,children:e},e)))})]}),(0,Ma.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,Ma.jsx)("label",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.12em]",children:"Range"}),(0,Ma.jsx)("div",{className:"flex gap-1",children:q_.map(((e,t)=>(0,Ma.jsx)("button",{onClick:()=>j(t),className:"font-mono text-[10px] px-2 py-1 rounded-sm transition-colors ".concat(S===t?"bg-[#1a2e1a] border border-[#22c55e]/40 text-[#22c55e]":"bg-[#111] border border-[#1e1e1e] text-[#555] hover:text-[#888] hover:border-[#333]"),children:e.label},e.label)))})]}),(0,Ma.jsxs)("div",{className:"flex flex-col gap-0.5 ml-auto",children:[(0,Ma.jsx)("label",{className:"text-[9px] font-mono text-[#555] uppercase tracking-[0.12em]",children:"Auto-refresh (30s)"}),(0,Ma.jsx)("button",{onClick:()=>P((e=>!e)),className:"self-start font-mono text-[10px] px-3 py-1.5 rounded-sm border transition-colors ".concat(_?"bg-[#0d1f0d] border-[#22c55e]/40 text-[#22c55e]":"border-[#1e1e1e] text-[#555] hover:text-[#888] hover:border-[#333]"),children:_?"On":"Off"})]})]}),!x&&(0,Ma.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,Ma.jsx)(cN,{className:"h-10 w-10 text-[#333] mb-3"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555]",children:"Select a connection to view recorded history"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#444] mt-1",children:"Metrics are recorded every 30 seconds while a remote server is connected"}),0===m.length&&(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#f59e0b] mt-3",children:"No data yet \u2014 connect a remote server and wait for the first poll cycle"})]}),x&&!w&&(0,Ma.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555]",children:"No processes recorded for this connection yet"})}),x&&w&&(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888]",children:"CPU Usage"}),(0,Ma.jsxs)("p",{className:"text-[9px] font-mono text-[#444]",children:[C.length," data points"]})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)(X,{label:"Min",value:$.min,unit:"%",color:"text-[#22c55e]"}),(0,Ma.jsx)(X,{label:"Avg",value:$.avg,unit:"%",color:"text-[#e8e8e8]"}),(0,Ma.jsx)(X,{label:"Max",value:$.max,unit:"%",color:"text-[#ef4444]"})]})]}),(0,Ma.jsx)("div",{className:"h-40",children:C.length>0?(0,Ma.jsx)(Rj,{data:Y,options:T("%",100)}):(0,Ma.jsx)("div",{className:"h-full flex items-center justify-center text-[10px] font-mono text-[#555]",children:"No data for selected range"})})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm p-3",children:[(0,Ma.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888]",children:"Memory Usage"}),(0,Ma.jsxs)("p",{className:"text-[9px] font-mono text-[#444]",children:[C.length," data points"]})]}),(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)(X,{label:"Min",value:J.min,unit:"MB",color:"text-[#22c55e]"}),(0,Ma.jsx)(X,{label:"Avg",value:J.avg,unit:"MB",color:"text-[#22d3ee]"}),(0,Ma.jsx)(X,{label:"Max",value:J.max,unit:"MB",color:"text-[#ef4444]"})]})]}),(0,Ma.jsx)("div",{className:"h-40",children:C.length>0?(0,Ma.jsx)(Rj,{data:G,options:T("MB")}):(0,Ma.jsx)("div",{className:"h-full flex items-center justify-center text-[10px] font-mono text-[#555]",children:"No data for selected range"})})]}),(0,Ma.jsxs)("div",{className:"bg-[#111] border border-[#1e1e1e] rounded-sm overflow-hidden",children:[(0,Ma.jsx)("div",{className:"px-3 py-2 border-b border-[#1e1e1e]",children:(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#888]",children:"Recent Samples (last 20)"})}),(0,Ma.jsx)("div",{className:"overflow-x-auto",children:(0,Ma.jsxs)("table",{className:"w-full",children:[(0,Ma.jsx)("thead",{children:(0,Ma.jsxs)("tr",{className:"text-left border-b border-[#1e1e1e]",children:[(0,Ma.jsx)("th",{className:"px-3 py-2 font-mono text-[9px] text-[#555] uppercase tracking-[0.12em] font-normal",children:"Time"}),(0,Ma.jsx)("th",{className:"px-3 py-2 font-mono text-[9px] text-[#555] uppercase tracking-[0.12em] font-normal",children:"CPU"}),(0,Ma.jsx)("th",{className:"px-3 py-2 font-mono text-[9px] text-[#555] uppercase tracking-[0.12em] font-normal",children:"Memory"}),(0,Ma.jsx)("th",{className:"px-3 py-2 font-mono text-[9px] text-[#555] uppercase tracking-[0.12em] font-normal",children:"Memory (bytes)"})]})}),(0,Ma.jsx)("tbody",{className:"divide-y divide-[#1a1a1a]",children:[...C].reverse().slice(0,20).map((e=>(0,Ma.jsxs)("tr",{className:"hover:bg-[#141414] transition-colors",children:[(0,Ma.jsx)("td",{className:"px-3 py-1.5 font-mono text-[10px] text-[#555] tabular-nums",children:new Date(e.timestamp).toLocaleString()}),(0,Ma.jsx)("td",{className:"px-3 py-1.5 font-mono text-[10px] tabular-nums",children:(0,Ma.jsxs)("span",{className:e.cpu>=80?"text-[#ef4444]":e.cpu>=50?"text-[#f59e0b]":"text-[#22c55e]",children:[e.cpu.toFixed(2),"%"]})}),(0,Ma.jsxs)("td",{className:"px-3 py-1.5 font-mono text-[10px] text-[#22d3ee] tabular-nums",children:[e.memory_mb.toFixed(2)," MB"]}),(0,Ma.jsx)("td",{className:"px-3 py-1.5 font-mono text-[10px] text-[#444] tabular-nums",children:e.memory_bytes.toLocaleString()})]},e.id)))})]})})]})]})]})]})},X_=["title","titleId"];function Z_(e,t){let{title:n,titleId:r}=e,s=hr(e,X_);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Q_=o.forwardRef(Z_),eP=["title","titleId"];function tP(e,t){let{title:n,titleId:r}=e,s=hr(e,eP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3 3 8.735 8.735m0 0a.374.374 0 1 1 .53.53m-.53-.53.53.53m0 0L21 21M14.652 9.348a3.75 3.75 0 0 1 0 5.304m2.121-7.425a6.75 6.75 0 0 1 0 9.546m2.121-11.667c3.808 3.807 3.808 9.98 0 13.788m-9.546-4.242a3.733 3.733 0 0 1-1.06-2.122m-1.061 4.243a6.75 6.75 0 0 1-1.625-6.929m-.496 9.05c-3.068-3.067-3.664-7.67-1.79-11.334M12 12h.008v.008H12V12Z"}))}const nP=o.forwardRef(tP),oP=e=>{var t;let{activeServerId:n,connections:r,onSwitch:s}=e;const[a,i]=(0,o.useState)(!1),l=(0,o.useRef)(null),{t:c}=me();(0,o.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&i(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);const d=r.find((e=>e.id===n)),u="local"===n?"Local":(null===d||void 0===d?void 0:d.name)||"Remote",p="local"===n||null!==(t=null===d||void 0===d?void 0:d.connected)&&void 0!==t&&t;return(0,Ma.jsxs)("div",{ref:l,className:"relative",children:[(0,Ma.jsxs)("button",{onClick:()=>i((e=>!e)),className:"flex items-center gap-1.5 px-2 py-0.5 rounded-sm text-[10px] font-mono border border-[#1e1e1e] bg-[#111] text-[#888] hover:border-[#333] transition-colors",title:c("serverSwitcher.title"),children:[(0,Ma.jsx)("div",{className:"w-1.5 h-1.5 rounded-full shrink-0 ".concat(p?"bg-[#22c55e]":"bg-[#333]")}),(0,Ma.jsx)(fC,{className:"h-3 w-3 shrink-0"}),(0,Ma.jsx)("span",{className:"max-w-[100px] truncate",children:u}),(0,Ma.jsx)(bN,{className:"h-3 w-3 shrink-0 transition-transform ".concat(a?"rotate-180":"")})]}),a&&(0,Ma.jsxs)("div",{className:"absolute top-full mt-1.5 right-0 w-60 bg-[#111] border border-[#1e1e1e] rounded-sm shadow-2xl z-50 py-1",children:[(0,Ma.jsxs)("button",{onClick:()=>{s("local"),i(!1)},className:"w-full flex items-center gap-2.5 px-3 py-1.5 text-left transition-colors hover:bg-[#1a1a1a] font-mono text-[10px]\n ".concat("local"===n?"text-[#e8e8e8] bg-[#1a1a1a]":"text-[#888] hover:text-[#e8e8e8]"),children:[(0,Ma.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-[#22c55e] shrink-0"}),(0,Ma.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ma.jsx)("div",{children:c("serverSwitcher.local")}),(0,Ma.jsx)("div",{className:"text-[9px] text-[#555] mt-0.5",children:c("serverSwitcher.localhost")})]}),"local"===n&&(0,Ma.jsx)(Q_,{className:"h-3 w-3 shrink-0 text-[#555]"})]}),r.length>0&&(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)("div",{className:"my-1 border-t border-[#1e1e1e]"}),(0,Ma.jsx)("p",{className:"px-3 py-1 text-[9px] font-mono text-[#444] uppercase tracking-[0.15em]",children:c("serverSwitcher.remoteServers")}),r.map((e=>(0,Ma.jsxs)("button",{onClick:()=>{s(e.id),i(!1)},className:"w-full flex items-center gap-2.5 px-3 py-1.5 text-left transition-colors hover:bg-[#1a1a1a] font-mono text-[10px]\n ".concat(n===e.id?"text-[#e8e8e8] bg-[#1a1a1a]":"text-[#888] hover:text-[#e8e8e8]"),children:[e.connected?(0,Ma.jsx)(K_,{className:"h-3.5 w-3.5 shrink-0 text-[#22c55e]"}):(0,Ma.jsx)(nP,{className:"h-3.5 w-3.5 shrink-0 text-[#555]"}),(0,Ma.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ma.jsx)("div",{className:"truncate",children:e.name}),(0,Ma.jsxs)("div",{className:"text-[9px] text-[#555] truncate mt-0.5",children:[e.username,"@",e.host]})]}),n===e.id&&(0,Ma.jsx)(Q_,{className:"h-3 w-3 shrink-0 text-[#555]"})]},e.id)))]})]})]})},rP=["title","titleId"];function sP(e,t){let{title:n,titleId:r}=e,s=hr(e,rP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))}const aP=o.forwardRef(sP),iP=["title","titleId"];function lP(e,t){let{title:n,titleId:r}=e,s=hr(e,iP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9.75 14.25 12m0 0 2.25 2.25M14.25 12l2.25-2.25M14.25 12 12 14.25m-2.58 4.92-6.374-6.375a1.125 1.125 0 0 1 0-1.59L9.42 4.83c.21-.211.497-.33.795-.33H19.5a2.25 2.25 0 0 1 2.25 2.25v10.5a2.25 2.25 0 0 1-2.25 2.25h-9.284c-.298 0-.585-.119-.795-.33Z"}))}const cP=o.forwardRef(lP),dP=e=>{let{onUnlock:t,pinSet:n,passwordSet:r}=e;const{t:s}=me(),[a,i]=(0,o.useState)(n?"pin":"password"),[l,c]=(0,o.useState)(""),[d,u]=(0,o.useState)(""),[p,h]=(0,o.useState)(""),[f,m]=(0,o.useState)(!1),g=e=>{i(e),h(""),c(""),u("")},x=e=>{if(f||l.length>=4)return;const n=l+e;c(n),h(""),4===n.length&&(async e=>{m(!0),h("");try{const n=await fetch("/api/auth/pin/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pin:e})}),o=await n.json();o.success?t():(h(o.error||s("passwordGate.incorrectPin")),c(""))}catch(n){h(s("passwordGate.serverError")),c("")}finally{m(!1)}})(n)};(0,o.useEffect)((()=>{if("pin"!==a)return;const e=e=>{e.key>="0"&&e.key<="9"?x(e.key):"Backspace"===e.key?c((e=>e.slice(0,-1))):"Escape"===e.key&&(c(""),h(""))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[a,l,f]);return(0,Ma.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-[#0a0a0a]",children:(0,Ma.jsxs)("div",{className:"w-full max-w-xs mx-4 bg-[#111] border border-[#1e1e1e] rounded-sm overflow-hidden",children:[(0,Ma.jsxs)("div",{className:"px-6 pt-7 pb-3 text-center",children:[(0,Ma.jsx)("div",{className:"inline-flex items-center justify-center w-10 h-10 rounded-sm bg-[#1a1a1a] border border-[#1e1e1e] mb-4",children:(0,Ma.jsx)(aP,{className:"h-4 w-4 text-[#888]"})}),(0,Ma.jsx)("h1",{className:"font-mono text-[11px] font-bold text-[#e8e8e8] uppercase tracking-[0.1em] mb-1",children:"EZ PM2 GUI"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555]",children:s("pin"===a?"passwordGate.enterPin":"passwordGate.enterPassword")})]}),n&&r&&(0,Ma.jsxs)("div",{className:"flex mx-5 mb-3 rounded-sm overflow-hidden border border-[#1e1e1e] text-[10px] font-mono",children:[(0,Ma.jsx)("button",{onClick:()=>g("pin"),className:"flex-1 py-1.5 transition-colors ".concat("pin"===a?"bg-[#1a1a1a] text-[#e8e8e8]":"text-[#555] hover:text-[#888]"),children:s("passwordGate.pinMode")}),(0,Ma.jsx)("button",{onClick:()=>g("password"),className:"flex-1 py-1.5 transition-colors border-l border-[#1e1e1e] ".concat("password"===a?"bg-[#1a1a1a] text-[#e8e8e8]":"text-[#555] hover:text-[#888]"),children:s("passwordGate.passwordMode")})]}),"pin"===a&&(0,Ma.jsxs)("div",{className:"px-6 pb-7",children:[(0,Ma.jsx)("div",{className:"flex justify-center gap-4 mb-5 mt-1",children:Array.from({length:4}).map(((e,t)=>(0,Ma.jsx)("div",{className:"w-2.5 h-2.5 rounded-full border transition-all duration-100 ".concat(t<l.length?"bg-[#22c55e] border-[#22c55e]":"bg-[#1a1a1a] border-[#333]")},t)))}),p&&(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#ef4444] text-center mb-3 -mt-1",children:p}),(0,Ma.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[["1","2","3","4","5","6","7","8","9"].map((e=>(0,Ma.jsx)("button",{onClick:()=>x(e),disabled:f,className:"py-3.5 bg-[#141414] border border-[#1e1e1e] rounded-sm font-mono text-[#e8e8e8] text-sm font-semibold hover:bg-[#1a1a1a] transition-colors select-none disabled:opacity-40",children:e},e))),(0,Ma.jsx)("button",{onClick:()=>{c(""),h("")},disabled:f,className:"py-3.5 rounded-sm font-mono text-[10px] text-[#555] hover:text-[#888] transition-colors select-none disabled:opacity-40",children:s("passwordGate.clear")}),(0,Ma.jsx)("button",{onClick:()=>x("0"),disabled:f,className:"py-3.5 bg-[#141414] border border-[#1e1e1e] rounded-sm font-mono text-[#e8e8e8] text-sm font-semibold hover:bg-[#1a1a1a] transition-colors select-none disabled:opacity-40",children:"0"}),(0,Ma.jsx)("button",{onClick:()=>{c((e=>e.slice(0,-1))),h("")},disabled:f||0===l.length,className:"py-3.5 rounded-sm flex items-center justify-center text-[#555] hover:text-[#888] transition-colors select-none disabled:opacity-30",children:(0,Ma.jsx)(cP,{className:"h-4 w-4"})})]}),f&&(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] text-center mt-3",children:s("passwordGate.verifying")})]}),"password"===a&&(0,Ma.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),d){m(!0),h("");try{const e=await fetch("/api/auth/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:d})}),n=await e.json();n.success?t():(h(n.error||s("passwordGate.incorrectPassword")),u(""))}catch(n){h(s("passwordGate.serverError"))}finally{m(!1)}}},className:"px-6 pb-7 space-y-3",children:[(0,Ma.jsx)("input",{type:"password",value:d,onChange:e=>u(e.target.value),placeholder:s("passwordGate.passwordPlaceholder"),autoFocus:!0,className:"w-full bg-[#0d0d0d] border text-[#e8e8e8] font-mono text-xs rounded-sm px-3 py-2 outline-none transition-colors placeholder:text-[#555] focus:border-[#555] ".concat(p?"border-[#ef4444]":"border-[#1e1e1e]")}),p&&(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#ef4444]",children:p}),(0,Ma.jsx)("button",{type:"submit",disabled:f||!d,className:"bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-4 py-2 rounded-sm w-full hover:bg-[#d0d0d0] disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:s(f?"passwordGate.verifying":"passwordGate.unlock")})]})]})})},uP=["title","titleId"];function pP(e,t){let{title:n,titleId:r}=e,s=hr(e,uP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))}const hP=o.forwardRef(pP),fP=["title","titleId"];function mP(e,t){let{title:n,titleId:r}=e,s=hr(e,fP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"}))}const gP=o.forwardRef(mP),xP=["title","titleId"];function bP(e,t){let{title:n,titleId:r}=e,s=hr(e,xP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 1 1 9 0v3.75M3.75 21.75h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H3.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))}const vP=o.forwardRef(bP),yP=["title","titleId"];function wP(e,t){let{title:n,titleId:r}=e,s=hr(e,yP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const kP=o.forwardRef(wP),SP=["title","titleId"];function jP(e,t){let{title:n,titleId:r}=e,s=hr(e,SP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const CP=o.forwardRef(jP),AP=[{version:"1.6.0",date:"April 2026",headline:"App Security & Lock Screen",changes:[{title:"PIN Lock Screen",description:"Protect the app with a 4-digit PIN. The lock screen shows a numeric keypad that auto-submits on the 4th digit. Keyboard entry is also supported.",icon:hP,color:"text-[#a78bfa]",tag:"New"},{title:"Password Protection",description:"Optionally require a password before the app is accessible. Set, change, or remove password protection from the Security section in Settings.",icon:gP,color:"text-[#22d3ee]",tag:"New"},{title:"Lock / Unlock Toggle",description:"A lock button in the top navbar lets you manually lock the app at any time. Reopening the tab restores your unlocked session automatically.",icon:aP,color:"text-[#e8e8e8]",tag:"New"},{title:"Session Persistence",description:"Once unlocked, the session stays unlocked through page refreshes within the same browser tab \u2014 no need to re-enter credentials on every reload.",icon:vP,color:"text-[#22c55e]",tag:"New"},{title:"Auto-Lock on Inactivity",description:"Configure an inactivity timeout (in minutes) from Settings > Security. The app automatically locks after the specified idle period. Set to 0 to disable.",icon:sC,color:"text-[#f59e0b]",tag:"New"},{title:"PIN + Password Dual Mode",description:"When both PIN and password are configured, the lock screen shows a toggle so you can choose which method to use. Defaults to PIN for convenience.",icon:kP,color:"text-[#a78bfa]",tag:"Improved"}]}],NP={New:"text-[9px] font-mono text-[#22c55e] border border-[#22c55e]/30 bg-[#022c00] px-1.5 py-0.5 rounded-sm",Improved:"text-[9px] font-mono text-[#22d3ee] border border-[#22d3ee]/30 bg-[#001a1f] px-1.5 py-0.5 rounded-sm",Fix:"text-[9px] font-mono text-[#f59e0b] border border-[#f59e0b]/30 bg-[#1a0e00] px-1.5 py-0.5 rounded-sm"},EP=()=>{const{t:e}=me();return(0,Ma.jsxs)("div",{className:"max-w-3xl mx-auto px-4 py-6",children:[(0,Ma.jsxs)("div",{className:"mb-8",children:[(0,Ma.jsx)("p",{className:"text-[9px] uppercase tracking-[0.2em] text-[#555] mb-1",children:"\u25b8 WHAT'S NEW"}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555]",children:e("whatsNew.pageSubtitle")})]}),AP.map((e=>(0,Ma.jsxs)("div",{className:"mb-10",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,Ma.jsxs)("span",{className:"font-mono text-[9px] font-bold px-2 py-0.5 border border-[#a78bfa]/30 text-[#a78bfa] bg-[#16003a] rounded-sm",children:["v",e.version]}),(0,Ma.jsx)("span",{className:"text-[11px] font-mono font-bold text-[#888] uppercase tracking-[0.1em]",children:e.headline}),(0,Ma.jsx)("span",{className:"ml-auto text-[10px] font-mono text-[#444]",children:e.date})]}),(0,Ma.jsx)("div",{className:"h-px bg-[#1e1e1e] mb-4"}),(0,Ma.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:e.changes.map((e=>{const t=e.icon;return(0,Ma.jsx)("div",{className:"border border-[#1e1e1e] bg-[#111] rounded-sm p-3 hover:border-[#333] transition-colors",children:(0,Ma.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ma.jsx)("div",{className:"mt-0.5 shrink-0 w-7 h-7 flex items-center justify-center bg-[#1a1a1a] rounded-sm",children:(0,Ma.jsx)(t,{className:"h-3.5 w-3.5 ".concat(e.color)})}),(0,Ma.jsxs)("div",{className:"min-w-0",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ma.jsx)("span",{className:"text-[11px] font-mono font-semibold text-[#e8e8e8]",children:e.title}),(0,Ma.jsx)("span",{className:"shrink-0 ".concat(NP[e.tag]),children:e.tag})]}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] leading-relaxed mt-0.5",children:e.description})]})]})},e.title)}))})]},e.version))),(0,Ma.jsxs)("div",{className:"mt-6 border border-[#1e1e1e] bg-[#0d0d0d] rounded-sm p-4 flex items-center justify-between",children:[(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] mb-0.5",children:e("whatsNew.configureSecurity")}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555]",children:e("whatsNew.configureSecurityDesc")})]}),(0,Ma.jsxs)(ba,{to:"/settings",className:"flex items-center gap-1.5 bg-[#e8e8e8] text-[#0a0a0a] font-mono text-xs font-semibold px-3 py-1.5 rounded-sm hover:bg-[#ccc] transition-colors",children:[e("whatsNew.openSettings"),(0,Ma.jsx)(CP,{className:"h-3.5 w-3.5"})]})]})]})},_P=["title","titleId"];function PP(e,t){let{title:n,titleId:r}=e,s=hr(e,_P);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))}const MP=o.forwardRef(PP),RP="1.7.0",OP="ezpm2_whats_new_seen_v".concat(RP),TP=[{icon:K_,iconColor:"text-[#a78bfa]",titleKey:"whatsNew.feature1Title",descKey:"whatsNew.feature1Desc"},{icon:cN,iconColor:"text-[#22d3ee]",titleKey:"whatsNew.feature2Title",descKey:"whatsNew.feature2Desc"},{icon:lC,iconColor:"text-[#22c55e]",titleKey:"whatsNew.feature3Title",descKey:"whatsNew.feature3Desc"},{icon:uC,iconColor:"text-[#a78bfa]",titleKey:"whatsNew.feature4Title",descKey:"whatsNew.feature4Desc"},{icon:sC,iconColor:"text-[#f59e0b]",titleKey:"whatsNew.feature5Title",descKey:"whatsNew.feature5Desc"}];const LP=e=>{let{open:t,onClose:n}=e;const r=(0,o.useRef)(null),{t:s}=me();return(0,o.useEffect)((()=>{if(!t)return;const e=e=>{"Escape"===e.key&&n()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[t,n]),(0,o.useEffect)((()=>(document.body.style.overflow=t?"hidden":"",()=>{document.body.style.overflow=""})),[t]),t?(0,Ma.jsx)("div",{ref:r,className:"fixed inset-0 z-[9998] flex items-center justify-center p-4 bg-black/70",onClick:e=>{e.target===r.current&&n()},children:(0,Ma.jsxs)("div",{className:"relative w-full max-w-md border rounded-sm overflow-hidden bg-[#111] border-[#1e1e1e]",children:[(0,Ma.jsx)("div",{className:"px-4 pt-4 pb-3 border-b border-[#1a1a1a]",children:(0,Ma.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ma.jsx)("div",{className:"w-8 h-8 bg-[#1a1a1a] border border-[#2a1a4a] rounded-sm flex items-center justify-center shrink-0",children:(0,Ma.jsx)(kP,{className:"h-4 w-4 text-[#a78bfa]"})}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ma.jsx)("h2",{className:"text-[11px] font-mono font-bold text-[#e8e8e8] uppercase tracking-[0.1em]",children:s("whatsNew.title")}),(0,Ma.jsxs)("span",{className:"text-[9px] font-mono font-bold px-1.5 py-0.5 rounded-sm bg-[#16003a] text-[#a78bfa] border border-[#a78bfa]/25",children:["v",RP]})]}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] mt-0.5",children:"EZ PM2 GUI \xb7 April 2026"})]})]}),(0,Ma.jsx)("button",{onClick:n,className:"text-[#444] hover:text-[#888] p-1 rounded-sm hover:bg-[#1a1a1a] transition-colors",children:(0,Ma.jsx)(xA,{className:"h-4 w-4"})})]})}),(0,Ma.jsx)("div",{className:"px-4 py-3 space-y-2.5 max-h-72 overflow-y-auto",children:TP.map((e=>{const t=e.icon;return(0,Ma.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ma.jsx)("div",{className:"shrink-0 w-6 h-6 rounded-sm bg-[#1a1a1a] flex items-center justify-center",children:(0,Ma.jsx)(t,{className:"h-3.5 w-3.5 ".concat(e.iconColor)})}),(0,Ma.jsxs)("div",{children:[(0,Ma.jsx)("p",{className:"text-[11px] font-mono font-semibold text-[#e8e8e8] leading-tight",children:s(e.titleKey)}),(0,Ma.jsx)("p",{className:"text-[10px] font-mono text-[#555] leading-relaxed mt-0.5",children:s(e.descKey)})]})]},e.titleKey)}))}),(0,Ma.jsxs)("div",{className:"px-4 py-3 border-t border-[#1a1a1a] flex items-center justify-between gap-3",children:[(0,Ma.jsxs)(ba,{to:"/whats-new",onClick:n,className:"text-[10px] font-mono text-[#555] hover:text-[#888] flex items-center gap-1 transition-colors",children:[s("whatsNew.fullChangelog"),(0,Ma.jsx)(MP,{className:"h-3 w-3"})]}),(0,Ma.jsx)("button",{onClick:n,className:"px-4 py-1.5 rounded-sm bg-[#e8e8e8] text-[#0a0a0a] text-xs font-mono font-semibold hover:bg-[#ccc] transition-colors",children:s("whatsNew.gotIt")})]})]})}):null},IP=["title","titleId"];function DP(e,t){let{title:n,titleId:r}=e,s=hr(e,IP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const zP={error:{label:"ERR",labelClass:"bg-red-700 text-[#e8e8e8]",icon:XC,textClass:"text-red-400"},warn:{label:"WARN",labelClass:"bg-amber-700 text-[#e8e8e8]",icon:o.forwardRef(DP),textClass:"text-amber-400"},success:{label:"OK",labelClass:"bg-emerald-800 text-[#22c55e]",icon:KC,textClass:"text-[#22c55e]"},info:{label:"INFO",labelClass:"bg-[#0d1a2a] text-[#22d3ee]",icon:wC,textClass:"text-[#22d3ee]"}},FP=e=>{let{notifications:t,onDismiss:n,status:r}=e;const{t:s}=me(),a=[s("statusBar.tip1"),s("statusBar.tip2"),s("statusBar.tip3"),s("statusBar.tip4"),s("statusBar.tip5"),s("statusBar.tip6"),s("statusBar.tip7"),s("statusBar.tip8"),s("statusBar.tip9")],i=t[0],[l,c]=(0,o.useState)((()=>Math.floor(Math.random()*a.length))),[d,u]=(0,o.useState)(!0),p=(0,o.useRef)(null);(0,o.useEffect)((()=>(p.current=setInterval((()=>{u(!1),setTimeout((()=>{c((e=>(e+1)%a.length)),u(!0)}),400)}),8e3),()=>{p.current&&clearInterval(p.current)})),[]);const[h,f]=(0,o.useState)(!1);(0,o.useEffect)((()=>{if(!i)return void f(!1);const e=setTimeout((()=>f(!0)),10),t=setTimeout((()=>f(!1)),9e3),o=setTimeout((()=>n(i.id)),1e4);return()=>{clearTimeout(e),clearTimeout(t),clearTimeout(o)}}),[null===i||void 0===i?void 0:i.id]);const m=t.length-1;return(0,Ma.jsxs)("div",{className:"fixed bottom-0 left-0 right-0 z-[60] flex items-center h-[22px] bg-[#0a0a0a] border-t border-[#1a1a1a] font-mono text-[10px] select-none",children:[(0,Ma.jsxs)("div",{className:"flex items-center shrink-0 h-full",children:[(0,Ma.jsxs)("div",{className:"flex items-center gap-1 px-2.5 h-full border-r border-[#1a1a1a] transition-colors cursor-default ".concat(r.connected?"text-[#22c55e] hover:bg-[#22c55e]/5":"text-[#ef4444] hover:bg-[#ef4444]/5"),children:[r.connected?(0,Ma.jsx)(K_,{className:"h-3 w-3 shrink-0"}):(0,Ma.jsx)(nP,{className:"h-3 w-3 shrink-0 animate-pulse"}),(0,Ma.jsx)("span",{className:"font-mono",children:r.connected?s("common.connected"):s("common.disconnected")})]}),(0,Ma.jsx)("div",{className:"flex items-center px-2.5 h-full border-r border-[#1a1a1a] text-[#888] font-mono hover:bg-white/[0.02] transition-colors cursor-default",children:"local"===r.activeServer?s("serverSwitcher.local"):r.activeServer}),(0,Ma.jsxs)("div",{className:"flex items-center gap-1 px-2.5 h-full border-r border-[#1a1a1a] text-[#888] font-mono hover:bg-white/[0.02] transition-colors cursor-default",children:[(0,Ma.jsx)("span",{className:"font-bold text-[#22c55e]",children:r.onlineCount}),(0,Ma.jsx)("span",{className:"text-[#333]",children:"/"}),(0,Ma.jsx)("span",{children:r.processCount}),(0,Ma.jsx)("span",{className:"text-[#555] ml-0.5",children:s("monitDashboard.online")})]})]}),(0,Ma.jsx)("div",{className:"flex-1 flex items-center gap-2 px-3 min-w-0 overflow-hidden",children:i?(0,Ma.jsx)("div",{className:"flex items-center gap-2 min-w-0 transition-opacity duration-300 ".concat(h?"opacity-100":"opacity-0"),children:(e=>{const t=null!==(e=zP[i.type])&&void 0!==e?e:zP.info;return(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)("span",{className:"shrink-0 text-[9px] font-mono font-bold px-1.5 py-px rounded-sm ".concat(t.labelClass),children:t.label}),(0,Ma.jsx)("span",{className:"truncate font-mono ".concat(t.textClass),children:i.message}),m>0&&(0,Ma.jsxs)("span",{className:"shrink-0 text-[9px] font-mono font-semibold bg-[#1a1a1a] text-[#888] rounded-sm px-1.5 py-px",children:["+",m]}),(0,Ma.jsx)("button",{onClick:()=>n(i.id),className:"shrink-0 text-[#555] hover:text-[#888] transition-colors ml-0.5","aria-label":s("statusBar.dismiss"),children:(0,Ma.jsx)(xA,{className:"h-3 w-3"})})]})})()}):(0,Ma.jsxs)("div",{className:"flex items-center gap-2 min-w-0 transition-opacity duration-[400ms] ".concat(d?"opacity-100":"opacity-0"),children:[(0,Ma.jsx)("span",{className:"shrink-0 text-[9px] font-mono px-1.5 py-px rounded-sm bg-[#1a0a3a] text-[#a78bfa]",children:s("statusBar.tip")}),(0,Ma.jsx)("span",{className:"truncate font-mono text-[#555]",children:a[l]})]})}),(0,Ma.jsx)("div",{className:"shrink-0 px-3 font-mono text-[#555] hover:text-[#888] transition-colors cursor-default",children:"v1.6.0"})]})},BP=["title","titleId"];function WP(e,t){let{title:n,titleId:r}=e,s=hr(e,BP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const UP=o.forwardRef(WP),HP=[{code:"en",label:"English"},{code:"ne",label:"\u0928\u0947\u092a\u093e\u0932\u0940"}],VP=()=>{const{i18n:e}=me(),[t,n]=(0,o.useState)(!1),r=(0,o.useRef)(null),s=HP.find((t=>t.code===e.language))||HP[0];return(0,o.useEffect)((()=>{const e=e=>{r.current&&!r.current.contains(e.target)&&n(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]),(0,Ma.jsxs)("div",{ref:r,className:"relative",children:[(0,Ma.jsxs)("button",{onClick:()=>n((e=>!e)),title:s.label,className:"flex items-center gap-1 p-1 rounded-sm transition-colors font-mono text-[10px] text-[#555] hover:text-[#888]",children:[(0,Ma.jsx)(UP,{className:"h-3.5 w-3.5"}),(0,Ma.jsx)("span",{className:"hidden sm:inline",children:s.code.toUpperCase()})]}),t&&(0,Ma.jsx)("div",{className:"absolute right-0 top-full mt-1 w-32 bg-[#111] border border-[#1e1e1e] rounded-sm z-[200] overflow-hidden",children:HP.map((t=>(0,Ma.jsx)("button",{onClick:()=>{return o=t.code,e.changeLanguage(o),localStorage.setItem("ezpm2gui-language",o),void n(!1);var o},className:"w-full text-left px-3 py-1.5 font-mono text-[10px] transition-colors hover:bg-[#1a1a1a]\n ".concat(t.code===e.language?"text-[#e8e8e8]":"text-[#888] hover:text-[#e8e8e8]"),children:t.label},t.code)))})]})},KP=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],qP=(0,li.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,ii.X4)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,Na.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}})}),(e=>{let{ownerState:t}=e;return(0,Na.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),$P=(0,li.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Na.A)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),JP=o.forwardRef((function(e,t){const n=(0,di.b)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:r,className:s,component:a=(r?"div":"hr"),flexItem:i=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=n,h=(0,pr.A)(n,KP),f=(0,Na.A)({},n,{absolute:o,component:a,flexItem:i,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:s,orientation:a,textAlign:i,variant:l}=e,c={root:["root",t&&"absolute",l,s&&"light","vertical"===a&&"vertical",r&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===i&&"vertical"!==a&&"textAlignRight","left"===i&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,ai.A)(c,lp,o)})(f);return(0,Ma.jsx)(qP,(0,Na.A)({as:a,className:(0,qa.A)(m.root,s),role:d,ref:t,ownerState:f},h,{children:r?(0,Ma.jsx)($P,{className:m.wrapper,ownerState:f,children:r}):null}))}));JP.muiSkipListHighlight=!0;const YP=JP;var GP=n(4802),XP=n(6191);const ZP=["title","titleId"];function QP(e,t){let{title:n,titleId:r}=e,s=hr(e,ZP);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const eM=o.forwardRef(QP),tM=["title","titleId"];function nM(e,t){let{title:n,titleId:r}=e,s=hr(e,tM);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m0-10.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.75c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.57-.598-3.75h-.152c-3.196 0-6.1-1.25-8.25-3.286Zm0 13.036h.008v.008H12v-.008Z"}))}const oM=o.forwardRef(nM),rM=["title","titleId"];function sM(e,t){let{title:n,titleId:r}=e,s=hr(e,rM);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const aM=o.forwardRef(sM),iM=["title","titleId"];function lM(e,t){let{title:n,titleId:r}=e,s=hr(e,iM);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"}))}const cM=o.forwardRef(lM),dM=["title","titleId"];function uM(e,t){let{title:n,titleId:r}=e,s=hr(e,dM);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const pM=o.forwardRef(uM),hM=["title","titleId"];function fM(e,t){let{title:n,titleId:r}=e,s=hr(e,hM);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const mM=o.forwardRef(fM),gM=Bt({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_API_URL||"http://localhost:3101",{reconnection:!0,reconnectionDelay:1e3,reconnectionDelayMax:5e3,reconnectionAttempts:1/0,timeout:2e4,transports:["websocket","polling"],upgrade:!0,forceNew:!1}),xM=()=>{const{t:e}=me(),[t,n]=(0,o.useState)([]),[r,s]=(0,o.useState)([]),[a,i]=(0,o.useState)({loadAvg:[0,0,0],memory:{total:0,free:0,used:0},uptime:0,cpus:0}),[l,d]=(0,o.useState)([]),u=(0,o.useRef)(0),[p,h]=(0,o.useState)(gM.connected),f=(0,o.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";const n="notif-".concat(++u.current);d((o=>[...o,{id:n,message:e,type:t}]))}),[]),m=(0,o.useCallback)((e=>{d((t=>t.filter((t=>t.id!==e))))}),[]),[g,x]=(0,o.useState)(!0),[b,v]=(0,o.useState)(""),[y,w]=(0,o.useState)("all"),[k,S]=(0,o.useState)("all"),[j,C]=(0,o.useState)(!1),[A,N]=(0,o.useState)(!1),[E,_]=(0,o.useState)((()=>"1"===localStorage.getItem("ezpm2_sidebar_collapsed"))),[P,M]=(0,o.useState)(!1),[R,O]=(0,o.useState)(null),[T,L]=(0,o.useState)(null),[I,D]=(0,o.useState)((()=>"1"===localStorage.getItem("ezpm2_unlocked"))),z=(0,o.useRef)(null),[F,B]=(0,o.useState)(!1),[W,U]=(0,o.useState)(!0);(0,o.useEffect)((()=>{W?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}),[W]);const[H,V]=(0,o.useState)((()=>localStorage.getItem("ezpm2gui-active-server")||"local")),K=(0,o.useRef)(localStorage.getItem("ezpm2gui-active-server")||"local"),[q,$]=(0,o.useState)([]),[J,Y]=(0,o.useState)({isOpen:!1,title:"",message:"",action:"",processId:null});(0,o.useEffect)((()=>{let t=Date.now(),o=null,r=gM.connected;return(async()=>{try{const[e,o,r]=await Promise.all([ur.get("/api/processes"),ur.get("/api/metrics"),ur.get("/api/remote/connections").catch((()=>({data:[]})))]);n(e.data),i(o.data),$(r.data),x(!1),t=Date.now()}catch(vM){var o,r;console.error("Error fetching initial data:",vM),null!==(o=vM.response)&&void 0!==o&&null!==(r=o.data)&&void 0!==r&&r.pmNotInstalled?f(vM.response.data.error||e("errors.pm2NotInstalled")):f(e("errors.failedToConnect")),x(!1)}})(),gM.on("processes",(e=>{"local"===K.current&&(n(e),t=Date.now())})),gM.on("metrics",(e=>{i(e),t=Date.now()})),gM.on("connect_error",(()=>{console.warn("Socket connect_error event detected");Date.now()-t>5e3&&(o&&clearTimeout(o),o=setTimeout((()=>{Date.now()-t>5e3&&!r&&f(e("errors.connectionLost"),"warn")}),3e3))})),gM.on("connect",(()=>{console.log("Socket connected successfully"),r=!0,h(!0),t=Date.now(),o&&(clearTimeout(o),o=null)})),gM.on("disconnect",(n=>{console.log("Socket disconnected:",n),r=!1,h(!1),"io server disconnect"!==n&&"transport close"!==n||(o&&clearTimeout(o),o=setTimeout((()=>{!r&&Date.now()-t>5e3&&f(e("errors.connectionLost"),"warn")}),5e3))})),()=>{o&&clearTimeout(o),gM.off("processes"),gM.off("metrics"),gM.off("connect_error"),gM.off("connect"),gM.off("disconnect")}}),[f]),(0,o.useEffect)((()=>{let e=[...t];if("all"!==k&&(e=e.filter((e=>{var t;return((null===(t=e.pm2_env)||void 0===t?void 0:t.namespace)||"default")===k}))),"all"!==y&&(e=e.filter((e=>e.pm2_env.status===y))),b.trim()){const t=b.toLowerCase();e=e.filter((e=>e.name.toLowerCase().includes(t)||String(e.pm_id).includes(t)))}s(e)}),[t,b,y,k]),(0,o.useEffect)((()=>{if("local"===H)return;const t=async()=>{try{const e=await ur.get("/api/remote/".concat(H,"/processes"));n(e.data)}catch(vM){var t,o;console.error("Error fetching remote processes:",vM),f(e("errors.failedFetchRemote",{error:(null===(t=vM.response)||void 0===t||null===(o=t.data)||void 0===o?void 0:o.error)||vM.message}))}};t();const o=setInterval(t,3e3);return()=>clearInterval(o)}),[H,f]),(0,o.useEffect)((()=>{const e=setInterval((async()=>{try{const e=await ur.get("/api/remote/connections");$(e.data)}catch(e){}}),5e3);return()=>clearInterval(e)}),[]),(0,o.useEffect)((()=>{W?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}),[W]),(0,o.useEffect)((()=>{const e=setTimeout((async()=>{try{var e;const t=await fetch("/api/update/check"),n=await t.json();n.success&&null!==(e=n.data)&&void 0!==e&&e.updateAvailable&&M(!0)}catch(t){}}),4e3);return()=>clearTimeout(e)}),[]);const[G,X]=(0,o.useState)(0);(0,o.useEffect)((()=>{fetch("/api/auth/status").then((e=>e.json())).then((e=>{var t,n,o;O(null!==(t=e.passwordSet)&&void 0!==t&&t),L(null!==(n=e.pinSet)&&void 0!==n&&n),X(null!==(o=e.autoLockMinutes)&&void 0!==o?o:0)})).catch((()=>{O(!1),L(!1)}))}),[]),(0,o.useEffect)((()=>{I?localStorage.setItem("ezpm2_unlocked","1"):localStorage.removeItem("ezpm2_unlocked")}),[I]),(0,o.useEffect)((()=>{if(!I||G<=0)return;const e=60*G*1e3,t=()=>{z.current&&clearTimeout(z.current),z.current=setTimeout((()=>{D(!1)}),e)},n=["mousemove","mousedown","keydown","touchstart","scroll"];return n.forEach((e=>window.addEventListener(e,t,{passive:!0}))),t(),()=>{n.forEach((e=>window.removeEventListener(e,t))),z.current&&clearTimeout(z.current)}}),[I,G]),(0,o.useEffect)((()=>{const e=e=>{const t=e.detail;X(t.autoLockMinutes)};return window.addEventListener("ezpm2_autolock_changed",e),()=>window.removeEventListener("ezpm2_autolock_changed",e)}),[]);const Z=(e,n)=>{if(["stop","delete","restart"].includes(n)){var o;const r=(null===(o=t.find((t=>t.pm_id===e)))||void 0===o?void 0:o.name)||"Process ".concat(e);let s,a;switch(n){case"stop":s="Stop Process?",a="Are you sure you want to stop ".concat(r,"?");break;case"delete":s="Delete Process?",a="Are you sure you want to delete ".concat(r," from PM2?");break;case"restart":s="Restart Process?",a="Are you sure you want to restart ".concat(r,"?");break;default:s="Confirm Action",a="Are you sure you want to ".concat(n," ").concat(r,"?")}Y({isOpen:!0,title:s,message:a,action:n,processId:e})}else Q(e,n)},Q=async(n,o)=>{try{if("local"!==K.current){const e=t.find((e=>e.pm_id===n)),r=(null===e||void 0===e?void 0:e.name)||String(n);await ur.post("/api/remote/".concat(K.current,"/processes/").concat(r,"/").concat(o))}else await ur.post("/api/process/".concat(n,"/").concat(o))}catch(vM){console.error("Error performing ".concat(o,":"),vM),f(e("errors.failedProcessAction",{action:o,error:vM instanceof Error?vM.message:"Unknown error"}))}},ee=()=>{C(!j)};(0,o.useEffect)((()=>{if("1"!==localStorage.getItem(OP)){const e=setTimeout((()=>{B(!0),localStorage.setItem(OP,"1")}),800);return()=>clearTimeout(e)}}),[]);const te=()=>{N(!A)},ne=async t=>{if(t!==H)if(n([]),K.current=t,V(t),localStorage.setItem("ezpm2gui-active-server",t),"local"!==t){const n=q.find((e=>e.id===t));if(n&&!n.connected)try{await ur.post("/api/remote/".concat(t,"/connect"));const e=await ur.get("/api/remote/connections");$(e.data)}catch(vM){var o,r;f(e("errors.failedConnectTo",{name:n.name||n.host,error:(null===(o=vM.response)||void 0===o||null===(r=o.data)||void 0===r?void 0:r.error)||vM.message}))}}else try{const[e,t]=await Promise.all([ur.get("/api/processes"),ur.get("/api/metrics")]);n(e.data),i(t.data)}catch(vM){console.error("Error restoring local processes:",vM)}},oe=e=>{v(e.target.value)},re=e=>{w(e.target.value)},se=e=>{S(e.target.value)};if(g)return(0,Ma.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[#0a0a0a]",children:(0,Ma.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,Ma.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-[#22c55e] border-t-transparent"}),(0,Ma.jsx)("span",{className:"text-[#888] font-mono text-xs",children:"Loading PM2 data\u2026"})]})});const ae=(0,Aa.A)({palette:{mode:"dark",background:{default:"#0a0a0a",paper:"#111111"}},typography:{fontFamily:"inherit",h4:{fontSize:"1.0625rem",fontWeight:600,lineHeight:1.3},h5:{fontSize:"0.9375rem",fontWeight:600,lineHeight:1.3},h6:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.3},subtitle1:{fontSize:"0.8125rem",lineHeight:1.4},subtitle2:{fontSize:"0.75rem",fontWeight:600,lineHeight:1.4},body1:{fontSize:"0.875rem",lineHeight:1.5},body2:{fontSize:"0.8125rem",lineHeight:1.5},caption:{fontSize:"0.75rem",lineHeight:1.4},overline:{fontSize:"0.6875rem",lineHeight:1.4}},shape:{borderRadius:6},components:{MuiButton:{defaultProps:{size:"small",disableElevation:!0},styleOverrides:{root:{textTransform:"none",fontWeight:500}}},MuiIconButton:{defaultProps:{size:"small"}},MuiTextField:{defaultProps:{size:"small"}},MuiSelect:{defaultProps:{size:"small"}},MuiFormControl:{defaultProps:{size:"small"}},MuiInputLabel:{defaultProps:{size:"small"},styleOverrides:{outlined:e=>{let{theme:t}=e;return{"&.MuiInputLabel-shrink":{backgroundColor:t.palette.background.paper,paddingLeft:"4px",paddingRight:"4px",borderRadius:"2px"}}}}},MuiOutlinedInput:{styleOverrides:{root:{"&:focus":{outline:"none",boxShadow:"none"},"&:focus-visible":{outline:"none",boxShadow:"none"},"&:focus-within":{outline:"none",boxShadow:"none"},"& input:focus":{outline:"none",boxShadow:"none"},"& input:focus-visible":{outline:"none",boxShadow:"none"},"& textarea:focus":{outline:"none",boxShadow:"none"},"& textarea:focus-visible":{outline:"none",boxShadow:"none"}}}},MuiChip:{defaultProps:{size:"small"}},MuiCard:{defaultProps:{variant:"outlined"}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiTableCell:{styleOverrides:{head:{fontWeight:600,fontSize:"0.75rem"},body:{fontSize:"0.8125rem"}}},MuiTab:{styleOverrides:{root:{textTransform:"none",minHeight:36,fontSize:"0.8125rem",fontWeight:500}}},MuiTabs:{styleOverrides:{root:{minHeight:36}}},MuiAccordionSummary:{styleOverrides:{root:{minHeight:40,"&.Mui-expanded":{minHeight:40}}}},MuiAlert:{styleOverrides:{root:{fontSize:"0.8125rem",padding:"6px 12px"}}},MuiDialog:{styleOverrides:{paper:{borderRadius:8}}}}});return(0,Ma.jsx)(Ka,{theme:ae,children:(0,Ma.jsxs)(ga,{children:[(!0===R||!0===T)&&!I&&(0,Ma.jsx)(dP,{darkMode:W,onUnlock:()=>D(!0),pinSet:null!==T&&void 0!==T&&T,passwordSet:null!==R&&void 0!==R&&R}),(0,Ma.jsxs)("div",{className:"min-h-screen bg-[#0a0a0a]",children:[(0,Ma.jsxs)("div",{className:"flex",children:[(0,Ma.jsx)("nav",{className:"fixed w-full z-50 h-9 flex items-center border-b bg-[#0a0a0a] border-[#1e1e1e]",children:(0,Ma.jsxs)("div",{className:"flex items-center w-full px-3 gap-2",children:[(0,Ma.jsx)("button",{onClick:te,className:"sm:hidden p-1 rounded text-[#555] hover:text-[#e8e8e8] hover:bg-[#1a1a1a] transition-colors",children:(0,Ma.jsx)(eM,{className:"h-4 w-4"})}),(0,Ma.jsx)("button",{onClick:()=>{_((e=>{const t=!e;return localStorage.setItem("ezpm2_sidebar_collapsed",t?"1":"0"),t}))},title:e(E?"header.expandSidebar":"header.collapseSidebar"),className:"hidden sm:flex items-center justify-center p-1 rounded transition-colors text-[#555] hover:text-[#e8e8e8] hover:bg-[#1a1a1a]",children:(0,Ma.jsx)(eM,{className:"h-4 w-4"})}),(0,Ma.jsx)(ba,{to:"/",className:"font-mono text-xs font-bold text-[#e8e8e8] tracking-tight no-underline",children:"EZ PM2 GUI"}),!1===R&&(0,Ma.jsxs)(ba,{to:"/settings?section=security",title:e("header.enablePasswordProtection"),className:"hidden sm:flex items-center gap-1 px-2 py-0.5 rounded-full no-underline border transition-colors bg-[#2d1500] border-[#f59e0b]/30 text-[#f59e0b] font-mono text-[10px] hover:bg-[#3d1e00]",children:[(0,Ma.jsx)(oM,{className:"h-3.5 w-3.5"}),(0,Ma.jsx)("span",{children:e("header.noPasswordSet")})]}),(0,Ma.jsx)("div",{className:"flex-1"}),"local"!==H&&(()=>{const t=q.find((e=>e.id===H));return(0,Ma.jsxs)("div",{className:"hidden sm:flex items-center gap-1.5 font-mono text-xs",children:[(0,Ma.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-[#22d3ee] animate-pulse shrink-0"}),(0,Ma.jsxs)("span",{className:"text-[#22d3ee] font-medium",children:[(0,Ma.jsx)("strong",{children:(null===t||void 0===t?void 0:t.name)||"Remote Server"}),t&&(0,Ma.jsxs)("span",{className:"text-[#555] font-normal",children:[" \xb7 ",t.username,"@",t.host]})]}),(0,Ma.jsx)("button",{onClick:()=>ne("local"),className:"ml-1 text-xs underline opacity-70 hover:opacity-100 transition-opacity text-[#888]",children:e("header.switchToLocal")})]})})(),(0,Ma.jsxs)("div",{className:"flex items-center gap-1.5",children:[P&&(0,Ma.jsxs)(ba,{to:"/settings",title:e("header.updateAvailable"),className:"relative flex items-center gap-1 px-2 py-0.5 rounded no-underline border transition-colors bg-[#1a1200] border-[#f59e0b]/30 text-[#f59e0b] font-mono text-[10px] hover:bg-[#251900]",children:[(0,Ma.jsx)(aM,{className:"h-3.5 w-3.5"}),(0,Ma.jsx)("span",{children:e("header.update")}),(0,Ma.jsxs)("span",{className:"flex h-1.5 w-1.5 ml-0.5",children:[(0,Ma.jsx)("span",{className:"animate-ping absolute inline-flex h-1.5 w-1.5 rounded-full bg-[#f59e0b] opacity-75"}),(0,Ma.jsx)("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 bg-[#f59e0b]"})]})]}),!0===R&&I&&(0,Ma.jsx)("button",{onClick:()=>D(!1),title:e("header.lockApp"),className:"p-1 rounded transition-colors text-[#22c55e] hover:text-[#ef4444]",children:(0,Ma.jsx)(aP,{className:"h-3.5 w-3.5"})}),(0,Ma.jsx)("span",{className:"h-4 w-px mx-0.5 bg-[#1e1e1e]"}),(0,Ma.jsxs)("a",{href:"https://github.com/thechandanbhagat/ezpm2gui",target:"_blank",rel:"noopener noreferrer",title:e("header.starTooltip"),className:"flex items-center gap-1 px-2 py-0.5 rounded no-underline border transition-colors bg-[#111] border-[#1e1e1e] text-[#888] hover:border-[#f59e0b]/60 hover:text-[#f59e0b] font-mono text-[10px]",children:[(0,Ma.jsx)(cM,{className:"h-3.5 w-3.5"}),(0,Ma.jsx)("span",{className:"hidden sm:inline",children:e("header.star")})]}),(0,Ma.jsx)("a",{href:"https://github.com/thechandanbhagat/ezpm2gui",target:"_blank",rel:"noopener noreferrer",title:e("header.viewOnGitHub"),className:"p-1 rounded transition-colors text-[#555] hover:text-[#e8e8e8]",children:(0,Ma.jsx)("svg",{viewBox:"0 0 24 24",className:"h-4 w-4",fill:"currentColor","aria-hidden":"true",children:(0,Ma.jsx)("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"})})}),(0,Ma.jsx)("span",{className:"h-4 w-px mx-0.5 bg-[#1e1e1e]"}),(0,Ma.jsx)(oP,{activeServerId:H,connections:q,darkMode:W,onSwitch:ne}),(0,Ma.jsx)("span",{className:"h-4 w-px mx-0.5 bg-[#1e1e1e]"}),(0,Ma.jsx)("button",{onClick:()=>B(!0),title:e("header.whatsNew"),className:"p-1 rounded transition-colors text-[#a78bfa] hover:text-[#c4b5fd]",children:(0,Ma.jsx)(kP,{className:"h-4 w-4"})}),(0,Ma.jsx)("button",{onClick:ee,title:e("header.about"),className:"p-1 rounded transition-colors text-[#555] hover:text-[#e8e8e8]",children:(0,Ma.jsx)(wC,{className:"h-4 w-4"})}),(0,Ma.jsx)(ba,{to:"/settings",title:e("header.settings"),className:"p-1 rounded transition-colors text-[#555] hover:text-[#e8e8e8]",children:(0,Ma.jsx)(IA,{className:"h-4 w-4"})}),(0,Ma.jsx)("button",{onClick:()=>{const e=!W;localStorage.setItem("ezpm2gui-theme",e?"dark":"light"),U(e)},className:"p-1 rounded transition-colors text-[#555] hover:text-[#e8e8e8]",title:e(W?"header.lightMode":"header.darkMode"),children:W?(0,Ma.jsx)(pM,{className:"h-4 w-4"}):(0,Ma.jsx)(mM,{className:"h-4 w-4"})}),(0,Ma.jsx)(VP,{darkMode:W})]})]})}),A&&(0,Ma.jsxs)("div",{className:"fixed inset-0 z-40 sm:hidden",children:[(0,Ma.jsx)("div",{className:"fixed inset-0 bg-black/50",onClick:te}),(0,Ma.jsx)("div",{className:"fixed left-0 top-0 h-full w-[200px] border-r shadow-xl bg-[#0d0d0d] border-[#1e1e1e]",children:(0,Ma.jsx)("div",{className:"pt-9 h-full overflow-y-auto",children:(0,Ma.jsx)(CN,{onItemClick:te})})})]}),(0,Ma.jsx)("div",{className:"hidden sm:flex flex-col fixed left-0 top-9 z-[40] h-[calc(100vh-2.25rem-22px)] border-r overflow-y-auto transition-[width] duration-200 bg-[#0d0d0d] border-[#1e1e1e] ".concat(E?"w-[44px]":"w-[200px]"),children:(0,Ma.jsx)(CN,{collapsed:E})}),(0,Ma.jsx)("main",{className:"flex-1 pt-9 min-h-screen transition-[margin] duration-200 bg-[#0a0a0a] ".concat(E?"sm:ml-[44px]":"sm:ml-[200px]"),children:(0,Ma.jsx)("div",{className:"px-3 py-3 pb-8",children:(0,Ma.jsxs)(Ls,{children:[(0,Ma.jsx)(Os,{path:"/",element:(0,Ma.jsx)(uA,{processes:r,metrics:a,searchTerm:b,statusFilter:y,onSearchChange:oe,onStatusFilterChange:re,onNamespaceFilterChange:se,namespaceFilter:k,onProcessAction:Z})}),(0,Ma.jsx)(Os,{path:"/processes",element:(0,Ma.jsx)(uA,{processes:r,metrics:a,searchTerm:b,statusFilter:y,onSearchChange:oe,onStatusFilterChange:re,onNamespaceFilterChange:se,namespaceFilter:k,onProcessAction:Z})}),(0,Ma.jsx)(Os,{path:"/process/:id",element:(0,Ma.jsx)(nC,{onAction:Z,connectionId:"local"!==H?H:void 0})}),(0,Ma.jsx)(Os,{path:"/remote",element:(0,Ma.jsx)(S_,{})}),(0,Ma.jsx)(Os,{path:"/deploy",element:(0,Ma.jsx)(PA,{})}),(0,Ma.jsx)(Os,{path:"/modules",element:(0,Ma.jsx)(KA,{onNotify:f})}),(0,Ma.jsx)(Os,{path:"/ecosystem",element:(0,Ma.jsx)(qA,{})}),(0,Ma.jsx)(Os,{path:"/configure/:id",element:(0,Ma.jsx)(GA,{procId:0})}),(0,Ma.jsx)(Os,{path:"/cluster",element:(0,Ma.jsx)(oN,{processes:t,onRefresh:()=>{(async()=>{try{const e=await ur.get("/api/processes");n(e.data)}catch(vM){console.error("Error refreshing processes:",vM),f(e("errors.failedRefreshProcessData"))}})()}})})," ",(0,Ma.jsx)(Os,{path:"/logs",element:(0,Ma.jsx)(aN,{})}),(0,Ma.jsx)(Os,{path:"/logs/remote/:serverId/:processId",element:(0,Ma.jsx)(aN,{})}),(0,Ma.jsx)(Os,{path:"/logs/:id",element:(0,Ma.jsx)(aN,{})}),(0,Ma.jsx)(Os,{path:"/cron-jobs",element:(0,Ma.jsx)(U_,{})}),(0,Ma.jsx)(Os,{path:"/metrics",element:(0,Ma.jsx)(G_,{processes:t,metrics:a})}),(0,Ma.jsx)(Os,{path:"/settings",element:(0,Ma.jsx)(MN,{})}),(0,Ma.jsx)(Os,{path:"/load-balancing-guide",element:(0,Ma.jsx)(RN,{})}),(0,Ma.jsx)(Os,{path:"/whats-new",element:(0,Ma.jsx)(EP,{})})]})})})]}),(0,Ma.jsx)(FP,{notifications:l,onDismiss:m,status:{connected:p,processCount:t.length,onlineCount:t.filter((e=>"online"===e.pm2_env.status)).length,activeServer:H}}),(0,Ma.jsx)(fA,{isOpen:J.isOpen,title:J.title,message:J.message,onConfirm:()=>{null!==J.processId&&Q(J.processId,J.action),Y((e=>c(c({},e),{},{isOpen:!1})))},onCancel:()=>{Y((e=>c(c({},e),{},{isOpen:!1})))},type:"delete"===J.action?"danger":"warning"}),(0,Ma.jsx)(LP,{open:F,onClose:()=>B(!1),darkMode:W}),(0,Ma.jsxs)(yE,{open:j,onClose:ee,maxWidth:"xs",fullWidth:!0,children:[(0,Ma.jsxs)(CE,{sx:{display:"flex",alignItems:"center",gap:1.5,pb:1},children:[(0,Ma.jsx)("div",{style:{width:32,height:32,borderRadius:8,flexShrink:0,background:"linear-gradient(135deg, #6366f1, #8b5cf6)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,Ma.jsx)("span",{style:{color:"#fff",fontWeight:700,fontSize:11},children:"EZ"})}),(0,Ma.jsxs)("div",{style:{flex:1},children:[(0,Ma.jsx)("div",{style:{fontWeight:600,fontSize:"0.9375rem",lineHeight:1.3},children:"EZ PM2 GUI"}),(0,Ma.jsx)("div",{style:{fontSize:"0.75rem",opacity:.5,fontWeight:400},children:"v1.7.0 \xb7 Chandan Bhagat"})]}),(0,Ma.jsx)(Am,{size:"small",onClick:ee,sx:{ml:"auto"},children:(0,Ma.jsx)(GP.A,{fontSize:"small"})})]}),(0,Ma.jsx)(YP,{}),(0,Ma.jsxs)(_E,{sx:{pt:2,pb:2.5},children:[(0,Ma.jsxs)("ul",{style:{margin:0,paddingLeft:18,fontSize:"0.8125rem",lineHeight:1.8},children:[(0,Ma.jsx)("li",{children:"Monitor and manage PM2 processes in real-time"}),(0,Ma.jsx)("li",{children:"Deploy new apps, configure ecosystems, manage clusters"}),(0,Ma.jsx)("li",{children:"Remote server SSH connections with live logs"}),(0,Ma.jsx)("li",{children:"Cron job scheduling and dark-mode support"})]}),(0,Ma.jsx)(YP,{sx:{my:2}}),(0,Ma.jsxs)("a",{href:"https://github.com/thechandanbhagat/ezpm2gui",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:"0.8125rem",color:"#6366f1",textDecoration:"none"},children:[(0,Ma.jsx)(XP.A,{sx:{fontSize:15}}),"GitHub Repository \u2197"]})]})]})]})]})})},bM=document.getElementById("root");if(!bM)throw new Error("Failed to find the root element");r.createRoot(bM).render((0,Ma.jsx)(o.StrictMode,{children:(0,Ma.jsx)(xM,{})}))})()})();
3
+ //# sourceMappingURL=main.71236659.js.map