D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
htdocs
/
modules
/
monitoring
/
js
/
Filename :
app.bundle.js
back
Copy
/*! For license information please see app.bundle.js.LICENSE.txt */ define(["plesk-ui-library"],(e=>(()=>{var t={6246:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,n,r=e.replace(/^v/,"").replace(/\+.*$/,""),o=(n="-",-1===(t=r).indexOf(n)?t.length:t.indexOf(n)),i=r.substring(0,o).split(".");return i.push(r.substring(o+1)),i}function n(e){return isNaN(Number(e))?e:Number(e)}function r(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function o(e,o){[e,o].forEach(r);for(var i=t(e),s=t(o),a=0;a<Math.max(i.length-1,s.length-1);a++){var c=parseInt(i[a]||0,10),l=parseInt(s[a]||0,10);if(c>l)return 1;if(l>c)return-1}var u=i[i.length-1],p=s[s.length-1];if(u&&p){var d=u.split(".").map(n),f=p.split(".").map(n);for(a=0;a<Math.max(d.length,f.length);a++){if(void 0===d[a]||"string"==typeof f[a]&&"number"==typeof d[a])return-1;if(void 0===f[a]||"string"==typeof d[a]&&"number"==typeof f[a])return 1;if(d[a]>f[a])return 1;if(f[a]>d[a])return-1}}else if(u||p)return u?-1:1;return 0}var i=[">",">=","=","<","<="],s={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return o.validate=function(t){return"string"==typeof t&&e.test(t)},o.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===i.indexOf(e))throw new TypeError("Invalid operator, expected one of "+i.join("|"))}(n);var r=o(e,t);return s[n].indexOf(r)>-1},o})?n.apply(t,[]):n)||(e.exports=r)},1966:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(7592),s=p(i),a=p(n(5556)),c=n(5758),l=n(8851),u=n(2747);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.getIn,n=e.toJS,r=function(e){function r(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));i.inTimeTravelling=!1,i.unsubscribe=o.store.subscribe((function(){var r=n(t(o.store.getState(),["router","location"])),s=r.pathname,a=r.search,c=r.hash,l=e.history.location,u=l.pathname,p=l.search,d=l.hash;u===s&&p===a&&d===c||(i.inTimeTravelling=!0,e.history.push({pathname:s,search:a,hash:c}))}));var s=function(t,n){i.inTimeTravelling?i.inTimeTravelling=!1:e.onLocationChanged(t,n)};return i.unlisten=e.history.listen(s),s(e.history.location,e.history.action),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),o(r,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.history,n=e.children;return E("React").createElement(E("Router"),{history:t},n)}}]),r}(E("Component"));return r.contextTypes={store:E("PropTypes").shape({getState:E("PropTypes").func.isRequired,subscribe:E("PropTypes").func.isRequired}).isRequired},r.propTypes={history:E("PropTypes").shape({action:E("PropTypes").string.isRequired,listen:E("PropTypes").func.isRequired,location:E("PropTypes").object.isRequired,push:E("PropTypes").func.isRequired}).isRequired,location:E("PropTypes").oneOfType([E("PropTypes").object,E("PropTypes").string]).isRequired,action:E("PropTypes").string.isRequired,basename:E("PropTypes").string,children:E("PropTypes").oneOfType([E("PropTypes").func,E("PropTypes").node]),onLocationChanged:E("PropTypes").func.isRequired},E("connect")((function(e){return{action:t(e,["router","action"]),location:t(e,["router","location"])}}),(function(e){return{onLocationChanged:function(t,n){return e(E("onLocationChanged")(t,n))}}}))(r)};function f(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=E("createConnectedRouter");var h,_=null;function m(){if(null===_){var e=f();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),_=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return _}function y(){var e=f();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function b(){var e=m(),t=y(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(h=f()).__rewire_reset_all__||(h.__rewire_reset_all__=function(){h.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var g="__INTENTIONAL_UNDEFINED__",v={};function E(e){var t=b();if(void 0===t[e])return function(e){switch(e){case"Component":return i.Component;case"PropTypes":return a.default;case"onLocationChanged":return u.onLocationChanged;case"connect":return c.connect;case"createConnectedRouter":return d;case"React":return s.default;case"Router":return l.Router}}(e);var n=t[e];return n===g?void 0:n}function x(e,t){var n=b();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?g:t,function(){T(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function T(e){var t=b();delete t[e],0==Object.keys(t).length&&delete y()[m]}function S(e){var t=b(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(v,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",E),e("__GetDependency__",E),e("__Rewire__",x),e("__set__",x),e("__reset__",T),e("__ResetDependency__",T),e("__with__",S)}();var I=void 0===d?"undefined":r(d);function O(e,t){Object.defineProperty(d,e,{value:t,enumerable:!1,configurable:!0})}"object"!==I&&"function"!==I||!Object.isExtensible(d)||(O("__get__",E),O("__GetDependency__",E),O("__Rewire__",x),O("__set__",x),O("__reset__",T),O("__ResetDependency__",T),O("__with__",S),O("__RewireAPI__",v)),t.__get__=E,t.__GetDependency__=E,t.__Rewire__=x,t.__set__=x,t.__ResetDependency__=T,t.__RewireAPI__=v},2747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=t.LOCATION_CHANGE="@@router/LOCATION_CHANGE",i=(t.onLocationChanged=function(e,t){return{type:v("LOCATION_CHANGE"),payload:{location:e,action:t}}},t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD"),s=function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return{type:v("CALL_HISTORY_METHOD"),payload:{method:e,args:n}}}},a=t.push=v("updateLocation")("push"),c=t.replace=v("updateLocation")("replace"),l=t.go=v("updateLocation")("go"),u=t.goBack=v("updateLocation")("goBack"),p=t.goForward=v("updateLocation")("goForward");function d(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.routerActions={push:v("push"),replace:v("replace"),go:v("go"),goBack:v("goBack"),goForward:v("goForward")};var f,h=null;function _(){if(null===h){var e=d();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),h=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return h}function m(){var e=d();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function y(){var e=_(),t=m(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(f=d()).__rewire_reset_all__||(f.__rewire_reset_all__=function(){f.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var b="__INTENTIONAL_UNDEFINED__",g={};function v(e){var t=y();if(void 0===t[e])return function(e){switch(e){case"LOCATION_CHANGE":return o;case"CALL_HISTORY_METHOD":return i;case"updateLocation":return s;case"push":return a;case"replace":return c;case"go":return l;case"goBack":return u;case"goForward":return p}}(e);var n=t[e];return n===b?void 0:n}function E(e,t){var n=y();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?b:t,function(){x(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function x(e){var t=y();delete t[e],0==Object.keys(t).length&&delete m()[_]}function T(e){var t=y(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(g,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",v),e("__GetDependency__",v),e("__Rewire__",E),e("__set__",E),e("__reset__",x),e("__ResetDependency__",x),e("__with__",T)}(),t.__get__=v,t.__GetDependency__=v,t.__Rewire__=E,t.__set__=E,t.__ResetDependency__=x,t.__RewireAPI__=g,t.default=g},5315:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="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},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2747)),s=u(n(1966)),a=u(n(1620)),c=u(n(5342)),l=u(n(4222));function u(e){return e&&e.__esModule?e:{default:e}}var p=function(e){return o({},v("actions"),v("createSelectors")(e),{ConnectedRouter:v("createConnectedRouter")(e),connectRouter:v("createConnectRouter")(e),routerMiddleware:v("routerMiddleware")})};function d(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=v("createAll");var f,h=null;function _(){if(null===h){var e=d();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),h=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return h}function m(){var e=d();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function y(){var e=_(),t=m(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(f=d()).__rewire_reset_all__||(f.__rewire_reset_all__=function(){f.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var b="__INTENTIONAL_UNDEFINED__",g={};function v(e){var t=y();if(void 0===t[e])return function(e){switch(e){case"actions":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(e){return"__get__"!==e&&"__set__"!==e&&"__reset__"!==e&&"__with__"!==e&&"__GetDependency__"!==e&&"__Rewire__"!==e&&"__ResetDependency__"!==e&&"__RewireAPI__"!==e})).reduce((function(t,n){return t[n]=e[n],t}),{})}(i);case"createSelectors":return l.default;case"createConnectedRouter":return s.default;case"createConnectRouter":return a.default;case"routerMiddleware":return c.default;case"createAll":return p}}(e);var n=t[e];return n===b?void 0:n}function E(e,t){var n=y();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?b:t,function(){x(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function x(e){var t=y();delete t[e],0==Object.keys(t).length&&delete m()[_]}function T(e){var t=y(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(g,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",v),e("__GetDependency__",v),e("__Rewire__",E),e("__set__",E),e("__reset__",x),e("__ResetDependency__",x),e("__with__",T)}();var S=void 0===p?"undefined":r(p);function I(e,t){Object.defineProperty(p,e,{value:t,enumerable:!1,configurable:!0})}"object"!==S&&"function"!==S||!Object.isExtensible(p)||(I("__get__",v),I("__GetDependency__",v),I("__Rewire__",E),I("__set__",E),I("__reset__",x),I("__ResetDependency__",x),I("__with__",T),I("__RewireAPI__",g)),t.__get__=v,t.__GetDependency__=v,t.__Rewire__=E,t.__set__=E,t.__ResetDependency__=x,t.__RewireAPI__=g},8560:(e,t,n)=>{"use strict";t.wf=t.S6=t.Ny=t.VC=void 0;var r="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},o=s(n(5315)),i=s(n(9893));function s(e){return e&&e.__esModule?e:{default:e}}var a=v("createAll")(v("plainStructure")),c=(a.LOCATION_CHANGE,a.CALL_HISTORY_METHOD,a.push),l=(a.replace,a.go,a.goBack,a.goForward,a.routerActions,a.ConnectedRouter),u=a.connectRouter,p=a.routerMiddleware;a.getLocation,a.getAction,a.createMatchSelector;function d(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.VC=c,t.Ny=l,t.S6=u,t.wf=p;var f,h=null;function _(){if(null===h){var e=d();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),h=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return h}function m(){var e=d();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function y(){var e=_(),t=m(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(f=d()).__rewire_reset_all__||(f.__rewire_reset_all__=function(){f.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var b="__INTENTIONAL_UNDEFINED__",g={};function v(e){var t=y();if(void 0===t[e])return function(e){switch(e){case"createAll":return o.default;case"plainStructure":return i.default}}(e);var n=t[e];return n===b?void 0:n}function E(e,t){var n=y();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?b:t,function(){x(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function x(e){var t=y();delete t[e],0==Object.keys(t).length&&delete m()[_]}function T(e){var t=y(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(g,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",v),e("__GetDependency__",v),e("__Rewire__",E),e("__set__",E),e("__reset__",x),e("__ResetDependency__",x),e("__with__",T)}()},5342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="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},o=n(2747),i=function(e){return function(t){return function(t){return function(n){if(n.type!==h("CALL_HISTORY_METHOD"))return t(n);var r=n.payload,o=r.method,i=r.args;e[o].apply(e,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(i))}}}};function s(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=h("routerMiddleware");var a,c=null;function l(){if(null===c){var e=s();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),c=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return c}function u(){var e=s();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function p(){var e=l(),t=u(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(a=s()).__rewire_reset_all__||(a.__rewire_reset_all__=function(){a.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var d="__INTENTIONAL_UNDEFINED__",f={};function h(e){var t=p();if(void 0===t[e])return function(e){switch(e){case"CALL_HISTORY_METHOD":return o.CALL_HISTORY_METHOD;case"routerMiddleware":return i}}(e);var n=t[e];return n===d?void 0:n}function _(e,t){var n=p();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?d:t,function(){m(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function m(e){var t=p();delete t[e],0==Object.keys(t).length&&delete u()[l]}function y(e){var t=p(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(f,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",h),e("__GetDependency__",h),e("__Rewire__",_),e("__set__",_),e("__reset__",m),e("__ResetDependency__",m),e("__with__",y)}();var b=void 0===i?"undefined":r(i);function g(e,t){Object.defineProperty(i,e,{value:t,enumerable:!1,configurable:!0})}"object"!==b&&"function"!==b||!Object.isExtensible(i)||(g("__get__",h),g("__GetDependency__",h),g("__Rewire__",_),g("__set__",_),g("__reset__",m),g("__ResetDependency__",m),g("__with__",y),g("__RewireAPI__",f)),t.__get__=h,t.__GetDependency__=h,t.__Rewire__=_,t.__set__=_,t.__ResetDependency__=m,t.__RewireAPI__=f},1620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="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},o=n(2747),i=function(e){var t=e.fromJS,n=e.merge;return function(e){var r=t({location:e.location,action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.type,i=t.payload;return o===h("LOCATION_CHANGE")?n(e,i):e}}};function s(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=h("createConnectRouter");var a,c=null;function l(){if(null===c){var e=s();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),c=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return c}function u(){var e=s();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function p(){var e=l(),t=u(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(a=s()).__rewire_reset_all__||(a.__rewire_reset_all__=function(){a.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var d="__INTENTIONAL_UNDEFINED__",f={};function h(e){var t=p();if(void 0===t[e])return function(e){switch(e){case"LOCATION_CHANGE":return o.LOCATION_CHANGE;case"createConnectRouter":return i}}(e);var n=t[e];return n===d?void 0:n}function _(e,t){var n=p();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?d:t,function(){m(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function m(e){var t=p();delete t[e],0==Object.keys(t).length&&delete u()[l]}function y(e){var t=p(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(f,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",h),e("__GetDependency__",h),e("__Rewire__",_),e("__set__",_),e("__reset__",m),e("__ResetDependency__",m),e("__with__",y)}();var b=void 0===i?"undefined":r(i);function g(e,t){Object.defineProperty(i,e,{value:t,enumerable:!1,configurable:!0})}"object"!==b&&"function"!==b||!Object.isExtensible(i)||(g("__get__",h),g("__GetDependency__",h),g("__Rewire__",_),g("__set__",_),g("__reset__",m),g("__ResetDependency__",m),g("__with__",y),g("__RewireAPI__",f)),t.__get__=h,t.__GetDependency__=h,t.__Rewire__=_,t.__set__=_,t.__ResetDependency__=m,t.__RewireAPI__=f},4222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r="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},o=n(8851),i=function(e){var t=e.getIn,n=e.toJS,r=function(e){return n(t(e,["router","location"]))};return{getLocation:r,getAction:function(e){return n(t(e,["router","action"]))},createMatchSelector:function(e){var t=null,n=null;return function(o){var i=(r(o)||{}).pathname;if(i===t)return n;t=i;var s=h("matchPath")(i,e);return s&&n&&s.url===n.url||(n=s),n}}}};function s(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=h("createSelectors");var a,c=null;function l(){if(null===c){var e=s();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),c=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return c}function u(){var e=s();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function p(){var e=l(),t=u(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(a=s()).__rewire_reset_all__||(a.__rewire_reset_all__=function(){a.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var d="__INTENTIONAL_UNDEFINED__",f={};function h(e){var t=p();if(void 0===t[e])return function(e){switch(e){case"matchPath":return o.matchPath;case"createSelectors":return i}}(e);var n=t[e];return n===d?void 0:n}function _(e,t){var n=p();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?d:t,function(){m(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function m(e){var t=p();delete t[e],0==Object.keys(t).length&&delete u()[l]}function y(e){var t=p(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(f,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",h),e("__GetDependency__",h),e("__Rewire__",_),e("__set__",_),e("__reset__",m),e("__ResetDependency__",m),e("__with__",y)}();var b=void 0===i?"undefined":r(i);function g(e,t){Object.defineProperty(i,e,{value:t,enumerable:!1,configurable:!0})}"object"!==b&&"function"!==b||!Object.isExtensible(i)||(g("__get__",h),g("__GetDependency__",h),g("__Rewire__",_),g("__set__",_),g("__reset__",m),g("__ResetDependency__",m),g("__with__",y),g("__RewireAPI__",f)),t.__get__=h,t.__GetDependency__=h,t.__Rewire__=_,t.__set__=_,t.__ResetDependency__=m,t.__RewireAPI__=f},9518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,o=0;o<n&&r;++o)r=r[t[o]];return r}};function i(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=f("getIn");var s,a=null;function c(){if(null===a){var e=i();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),a=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return a}function l(){var e=i();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function u(){var e=c(),t=l(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(s=i()).__rewire_reset_all__||(s.__rewire_reset_all__=function(){s.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var p="__INTENTIONAL_UNDEFINED__",d={};function f(e){var t=u();if(void 0===t[e])return function(e){if("getIn"===e)return o}(e);var n=t[e];return n===p?void 0:n}function h(e,t){var n=u();if("object"!==(void 0===e?"undefined":r(e)))return n[e]=void 0===t?p:t,function(){_(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function _(e){var t=u();delete t[e],0==Object.keys(t).length&&delete l()[c]}function m(e){var t=u(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(d,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",f),e("__GetDependency__",f),e("__Rewire__",h),e("__set__",h),e("__reset__",_),e("__ResetDependency__",_),e("__with__",m)}();var y=void 0===o?"undefined":r(o);function b(e,t){Object.defineProperty(o,e,{value:t,enumerable:!1,configurable:!0})}"object"!==y&&"function"!==y||!Object.isExtensible(o)||(b("__get__",f),b("__GetDependency__",f),b("__Rewire__",h),b("__set__",h),b("__reset__",_),b("__ResetDependency__",_),b("__with__",m),b("__RewireAPI__",d)),t.__get__=f,t.__GetDependency__=f,t.__Rewire__=h,t.__set__=h,t.__ResetDependency__=_,t.__RewireAPI__=d},9893:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__RewireAPI__=t.__ResetDependency__=t.__set__=t.__Rewire__=t.__GetDependency__=t.__get__=void 0;var r,o="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},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=(r=n(9518))&&r.__esModule?r:{default:r},a={fromJS:function(e){return e},getIn:m("getIn"),merge:function(e,t){return i({},e,t)},toJS:function(e){return e}};function c(){try{if(n.g)return n.g}catch(e){try{if(window)return window}catch(e){return this}}}t.default=m("structure");var l,u=null;function p(){if(null===u){var e=c();e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__||(e.__$$GLOBAL_REWIRE_NEXT_MODULE_ID__=0),u=__$$GLOBAL_REWIRE_NEXT_MODULE_ID__++}return u}function d(){var e=c();return e.__$$GLOBAL_REWIRE_REGISTRY__||(e.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)),__$$GLOBAL_REWIRE_REGISTRY__}function f(){var e=p(),t=d(),n=t[e];return n||(t[e]=Object.create(null),n=t[e]),n}(l=c()).__rewire_reset_all__||(l.__rewire_reset_all__=function(){l.__$$GLOBAL_REWIRE_REGISTRY__=Object.create(null)});var h="__INTENTIONAL_UNDEFINED__",_={};function m(e){var t=f();if(void 0===t[e])return function(e){switch(e){case"getIn":return s.default;case"structure":return a}}(e);var n=t[e];return n===h?void 0:n}function y(e,t){var n=f();if("object"!==(void 0===e?"undefined":o(e)))return n[e]=void 0===t?h:t,function(){b(e)};Object.keys(e).forEach((function(t){n[t]=e[t]}))}function b(e){var t=f();delete t[e],0==Object.keys(t).length&&delete d()[p]}function g(e){var t=f(),n=Object.keys(e),r={};function o(){n.forEach((function(e){t[e]=r[e]}))}return function(i){n.forEach((function(n){r[n]=t[n],t[n]=e[n]}));var s=i();return s&&"function"==typeof s.then?s.then(o).catch(o):o(),s}}!function(){function e(e,t){Object.defineProperty(_,e,{value:t,enumerable:!1,configurable:!0})}e("__get__",m),e("__GetDependency__",m),e("__Rewire__",y),e("__set__",y),e("__reset__",b),e("__ResetDependency__",b),e("__with__",g)}();var v=void 0===a?"undefined":o(a);function E(e,t){Object.defineProperty(a,e,{value:t,enumerable:!1,configurable:!0})}"object"!==v&&"function"!==v||!Object.isExtensible(a)||(E("__get__",m),E("__GetDependency__",m),E("__Rewire__",y),E("__set__",y),E("__reset__",b),E("__ResetDependency__",b),E("__with__",g),E("__RewireAPI__",_)),t.__get__=m,t.__GetDependency__=m,t.__Rewire__=y,t.__set__=y,t.__ResetDependency__=b,t.__RewireAPI__=_},5254:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1601),o=n.n(r),i=n(6314),s=n.n(i)()(o());s.push([e.id,".monitoring__notification-bar{z-index:1052 !important}.monitoring__page-heading__title{font-weight:400}.monitoring__page-heading__group:not(:last-child){margin-right:25px}.monitoring__link-ghost:hover{text-decoration:none}.monitoring__frame{display:block;width:100%;height:2000px}.monitoring__frame-wrapper{height:0;overflow:hidden}.monitoring__frame-wrapper--opened{height:2000px}.monitoring__switch-wrapper{margin:0 0 15px}.monitoring__switch-inputs{margin:0 0 0 22px}.monitoring__switch-inputs .monitoring__input{float:left;margin:4px 10px 0 0;padding:4px 0}.monitoring__switch-inputs .monitoring__input-radio-group{float:left;margin-right:10px}.monitoring__switch-inputs .monitoring__input-radio-group label{line-height:34px}.monitoring__switch-inputs .monitoring__input-type .pul-select--size-sm{width:80px}.monitoring__switch-inputs:after{display:block;content:' ';clear:both}.monitoring__switch-inputs .pul-input--size-sm{width:70px;min-width:auto}.monitoring__switch-inputs .pul-select--size-sm{width:50px;min-width:auto}.monitoring__switch-inputs .pul-input--size-md{width:130px;min-width:auto}.monitoring__switch-inputs .pul-select--size-md{width:230px;min-width:auto}.monitoring__threshold-inputs{margin:0}.monitoring__form-disclaimer{margin-bottom:30px}.monitoring__media .pul-media__figure{margin-right:15px}.monitoring__customization__drawer .pul-form__additional-button{float:right}.monitoring__thresholds-drawer .pul-form__additional-button{float:right}.monitoring__thresholds-drawer-section{padding-left:32px}.monitoring__thresholds-drawer-section .pul-section__header{margin-left:-32px}.monitoring__btn--highlighted{animation-name:blink-shadow;animation-duration:1s;animation-iteration-count:3}.monitoring__cloud-connection-promo-banner-v2 .monitoring__media > *{padding-right:15px}.monitoring__spot,.monitoring__spot-popup{z-index:1051 !important}.pul-form-field-number__addon{color:#969696;margin-left:10px}.pul-radio__input{margin-top:13px}.pul-grid__col{z-index:1051}.pul-grid .pul-grid__col{z-index:auto}input[readonly].pul-select-control__input{height:auto;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:none}.pul-form-field-checkbox .pul-form-field__description .pul-form-field__error{margin-left:0}@-moz-keyframes blink-shadow{50%{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.18),0 0 0 6px rgba(0,149,255,0.24);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.18),0 0 0 6px rgba(0,149,255,0.24)}}@-webkit-keyframes blink-shadow{50%{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.18),0 0 0 6px rgba(0,149,255,0.24);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.18),0 0 0 6px rgba(0,149,255,0.24)}}@-o-keyframes blink-shadow{50%{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.18),0 0 0 6px rgba(0,149,255,0.24);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.18),0 0 0 6px rgba(0,149,255,0.24)}}@keyframes blink-shadow{50%{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.18),0 0 0 6px rgba(0,149,255,0.24);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.18),0 0 0 6px rgba(0,149,255,0.24)}}",""]);const a=s},3104:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1601),o=n.n(r),i=n(6314),s=n.n(i)()(o());s.push([e.id,".monitoring__customization__section--locked{-webkit-filter:blur(2px);filter:blur(2px)}.monitoring__customization__section--locked:after{display:block;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(255,255,255,0.5);content:'';box-shadow:0 0 0 10px rgba(255,255,255,0.5)}",""]);const a=s},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&s[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},4039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},2043:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),s=Math.max(0,r.length-i.length),a=[],c=0;c<s;c++)a.push("$"+c);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}},261:(e,t,n)=>{"use strict";var r=n(2043);e.exports=Function.prototype.bind||r},9030:(e,t,n)=>{"use strict";var r=n(261);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},7774:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}n.d(t,{zR:()=>g,yJ:()=>p,sC:()=>E,AO:()=>u,Fu:()=>d});const s=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],s=t&&t.split("/")||[],a=e&&o(e),c=t&&o(t),l=a||c;if(e&&o(e)?s=r:r.length&&(s.pop(),s=s.concat(r)),!s.length)return"/";if(s.length){var u=s[s.length-1];n="."===u||".."===u||""===u}else n=!1;for(var p=0,d=s.length;d>=0;d--){var f=s[d];"."===f?i(s,d):".."===f?(i(s,d),p++):p&&(i(s,d),p--)}if(!l)for(;p--;p)s.unshift("..");!l||""===s[0]||s[0]&&o(s[0])||s.unshift("");var h=s.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function a(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const c=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=a(t),o=a(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};const l=function(e,t){if(!e)throw new Error("Invariant failed")};function u(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function p(e,t,n,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=r({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=s(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function d(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function f(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var h=!("undefined"==typeof window||!window.document||!window.document.createElement);function _(e,t){t(window.confirm(e))}var m="popstate",y="hashchange";function b(){try{return window.history.state||{}}catch(e){return{}}}function g(e){void 0===e&&(e={}),h||l(!1);var t,n,o=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,s=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,c=a.forceRefresh,d=void 0!==c&&c,g=a.getUserConfirmation,v=void 0===g?_:g,E=a.keyLength,x=void 0===E?6:E,T=e.basename?function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}("/"===(n=e.basename).charAt(0)?n:"/"+n):"";function S(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return T&&(i=function(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}(i,T)),p(i,r,n)}function I(){return Math.random().toString(36).substr(2,x)}var O=f();function w(e){r(U,e),U.length=o.length,O.notifyListeners(U.location,U.action)}function R(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(S(e.state))}function j(){P(S(b()))}var C=!1;function P(e){C?(C=!1,w()):O.confirmTransitionTo(e,"POP",v,(function(t){t?w({action:"POP",location:e}):function(e){var t=U.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(C=!0,k(o))}(e)}))}var A=S(b()),N=[A.key];function L(e){return T+u(e)}function k(e){o.go(e)}var D=0;function M(e){1===(D+=e)&&1===e?(window.addEventListener(m,R),s&&window.addEventListener(y,j)):0===D&&(window.removeEventListener(m,R),s&&window.removeEventListener(y,j))}var B=!1,U={length:o.length,action:"POP",location:A,createHref:L,push:function(e,t){var n="PUSH",r=p(e,t,I(),U.location);O.confirmTransitionTo(r,n,v,(function(e){if(e){var t=L(r),s=r.key,a=r.state;if(i)if(o.pushState({key:s,state:a},null,t),d)window.location.href=t;else{var c=N.indexOf(U.location.key),l=N.slice(0,c+1);l.push(r.key),N=l,w({action:n,location:r})}else window.location.href=t}}))},replace:function(e,t){var n="REPLACE",r=p(e,t,I(),U.location);O.confirmTransitionTo(r,n,v,(function(e){if(e){var t=L(r),s=r.key,a=r.state;if(i)if(o.replaceState({key:s,state:a},null,t),d)window.location.replace(t);else{var c=N.indexOf(U.location.key);-1!==c&&(N[c]=r.key),w({action:n,location:r})}else window.location.replace(t)}}))},go:k,goBack:function(){k(-1)},goForward:function(){k(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return B||(M(1),B=!0),function(){return B&&(B=!1,M(-1)),t()}},listen:function(e){var t=O.appendListener(e);return M(1),function(){M(-1),t()}}};return U}function v(e,t,n){return Math.min(Math.max(e,t),n)}function E(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,s=t.initialIndex,a=void 0===s?0:s,c=t.keyLength,l=void 0===c?6:c,d=f();function h(e){r(E,e),E.length=E.entries.length,d.notifyListeners(E.location,E.action)}function _(){return Math.random().toString(36).substr(2,l)}var m=v(a,0,i.length-1),y=i.map((function(e){return p(e,void 0,"string"==typeof e?_():e.key||_())})),b=u;function g(e){var t=v(E.index+e,0,E.entries.length-1),r=E.entries[t];d.confirmTransitionTo(r,"POP",n,(function(e){e?h({action:"POP",location:r,index:t}):h()}))}var E={length:y.length,action:"POP",location:y[m],index:m,entries:y,createHref:b,push:function(e,t){var r="PUSH",o=p(e,t,_(),E.location);d.confirmTransitionTo(o,r,n,(function(e){if(e){var t=E.index+1,n=E.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),h({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=p(e,t,_(),E.location);d.confirmTransitionTo(o,r,n,(function(e){e&&(E.entries[E.index]=o,h({action:r,location:o}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=E.index+e;return t>=0&&t<E.entries.length},block:function(e){return void 0===e&&(e=!1),d.setPrompt(e)},listen:function(e){return d.appendListener(e)}};return E}},4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var s=u(n);p&&(s=s.concat(p(n)));for(var a=c(t),_=c(n),m=0;m<s.length;++m){var y=s[m];if(!(i[y]||r&&r[y]||_&&_[y]||a&&a[y])){var b=d(n,y);try{l(t,y,b)}catch(e){}}}return t}return t}},3072:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,_=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case c:return e;default:return t}}case m:case _:case o:return t}}}function v(e){return g(e)===p}t.typeOf=g,t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=_,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===_||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b)},t.isAsyncMode=function(e){return v(e)||g(e)===u},t.isConcurrentMode=v,t.isContextConsumer=function(e){return g(e)===l},t.isContextProvider=function(e){return g(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===d},t.isFragment=function(e){return g(e)===i},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===_},t.isPortal=function(e){return g(e)===o},t.isProfiler=function(e){return g(e)===a},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===f}},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},311:e=>{"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,s,a],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},8859:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,_=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,g=String.prototype.replace,v=String.prototype.toUpperCase,E=String.prototype.toLowerCase,x=RegExp.prototype.test,T=Array.prototype.concat,S=Array.prototype.join,I=Array.prototype.slice,O=Math.floor,w="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var o=String(r),i=b.call(t,o.length+1);return g.call(o,n,"$&_")+"."+g.call(g.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(t,n,"$&_")}var k=n(2634),D=k.custom,M=G(D)?D:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return g.call(String(e),/"/g,""")}function F(e){return!("[object Array]"!==H(e)||P&&"object"==typeof e&&P in e)}function $(e){return!("[object RegExp]"!==H(e)||P&&"object"==typeof e&&P in e)}function G(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,o){var a=n||{};if(W(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!W(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return z(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var v=String(t);return _?L(t,v):v}if("bigint"==typeof t){var x=String(t)+"n";return _?L(t,x):x}var O=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=O&&O>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var R,D=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(a,r);if(void 0===o)o=[];else if(V(o,t)>=0)return"[Circular]";function q(t,n,i){if(n&&(o=I.call(o)).push(n),i){var s={depth:a.depth};return W(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,r+1,o)}return e(t,a,r+1,o)}if("function"==typeof t&&!$(t)){var Y=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ee=Z(t,q);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ee.length>0?" { "+S.call(ee,", ")+" }":"")}if(G(t)){var te=C?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!=typeof t||C?te:J(te)}if((R=t)&&"object"==typeof R&&("undefined"!=typeof HTMLElement&&R instanceof HTMLElement||"string"==typeof R.nodeName&&"function"==typeof R.getAttribute)){for(var ne="<"+E.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+B(U(re[oe].value),"double",a);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+E.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var ie=Z(t,q);return D&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Q(ie,D)+"]":"[ "+S.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||P&&"object"==typeof e&&P in e)}(t)){var se=Z(t,q);return"cause"in Error.prototype||!("cause"in t)||A.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(T.call("[cause]: "+q(t.cause),se),", ")+" }"}if("object"==typeof t&&c){if(M&&"function"==typeof t[M]&&k)return k(t,{depth:O-r});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return s.call(t,(function(e,n){ae.push(q(n,t,!0)+" => "+q(e,t))})),K("Map",i.call(t),ae,D)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u.call(t,(function(e){ce.push(q(e,t))})),K("Set",l.call(t),ce,D)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if(function(e){return!("[object Number]"!==H(e)||P&&"object"==typeof e&&P in e)}(t))return J(q(Number(t)));if(function(e){if(!e||"object"!=typeof e||!w)return!1;try{return w.call(e),!0}catch(e){}return!1}(t))return J(q(w.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||P&&"object"==typeof e&&P in e)}(t))return J(h.call(t));if(function(e){return!("[object String]"!==H(e)||P&&"object"==typeof e&&P in e)}(t))return J(q(String(t)));if(!function(e){return!("[object Date]"!==H(e)||P&&"object"==typeof e&&P in e)}(t)&&!$(t)){var le=Z(t,q),ue=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",de=!ue&&P&&Object(t)===t&&P in t?b.call(H(t),8,-1):pe?"Object":"",fe=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||pe?"["+S.call(T.call([],de||[],pe||[]),": ")+"] ":"");return 0===le.length?fe+"{}":D?fe+"{"+Q(le,D)+"}":fe+"{ "+S.call(le,", ")+" }"}return String(t)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return q.call(e,t)}function H(e){return _.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function z(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return z(b.call(e,0,t.maxStringLength),t)+r}return B(g.call(g.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function J(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function K(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):S.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=F(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=W(e,o)?t(e[o],e):""}var i,s="function"==typeof R?R(e):[];if(C){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var c in e)W(e,c)&&(n&&String(Number(c))===c&&c<e.length||C&&i["$"+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof R)for(var l=0;l<s.length;l++)A.call(e,s[l])&&r.push("["+t(s[l])+"]: "+t(e[s[l]],e));return r}},5302:(e,t,n)=>{var r=n(7291);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],i=0;i<t.length;i++)o.push(e(t[i],n,r).source);return u(new RegExp("(?:"+o.join("|")+")",p(r)),n)}(t,n,o):function(e,t,n){return d(i(e,n),t,n)}(t,n,o)},e.exports.parse=i,e.exports.compile=function(e,t){return a(i(e,t))},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,s=0,a="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var p=n[0],d=n[1],f=n.index;if(a+=e.slice(s,f),s=f+p.length,d)a+=d[1];else{var h=e[s],_=n[2],m=n[3],y=n[4],b=n[5],g=n[6],v=n[7];a&&(r.push(a),a="");var E=null!=_&&null!=h&&h!==_,x="+"===g||"*"===g,T="?"===g||"*"===g,S=n[2]||u,I=y||b;r.push({name:m||i++,prefix:_||"",delimiter:S,optional:T,repeat:x,partial:E,asterisk:!!v,pattern:I?l(I):v?".*":"[^"+c(S)+"]+?"})}}return s<e.length&&(a+=e.substr(s)),a&&r.push(a),r}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function a(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,o){for(var i="",a=n||{},c=(o||{}).pretty?s:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var p,d=a[u.name];if(null==d){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<d.length;f++){if(p=c(d[f]),!t[l].test(p))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(p)+"`");i+=(0===f?u.prefix:u.delimiter)+p}}else{if(p=u.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(d),!t[l].test(p))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+p+'"');i+=u.prefix+p}}else i+=u}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,s="",a=0;a<e.length;a++){var l=e[a];if("string"==typeof l)s+=c(l);else{var d=c(l.prefix),f="(?:"+l.pattern+")";t.push(l),l.repeat&&(f+="(?:"+d+f+")*"),s+=f=l.optional?l.partial?d+"("+f+")?":"(?:"+d+"("+f+"))?":d+"("+f+")"}}var h=c(n.delimiter||"/"),_=s.slice(-h.length)===h;return o||(s=(_?s.slice(0,-h.length):s)+"(?:"+h+"(?=$))?"),s+=i?"$":o&&_?"":"(?="+h+"|$)",u(new RegExp("^"+s,p(n)),t)}},7291:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},5373:(e,t,n)=>{"use strict";var r=n(8636),o=n(2642),i=n(4765);e.exports={formats:i,parse:o,stringify:r}},2642:(e,t,n)=>{"use strict";var r=n(7720),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=a?i.slice(0,a.index):i,u=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var p=0;n.depth>0&&null!==(a=s.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+i.slice(a.index)+"]"),function(e,t,n,r){for(var o=r?t:c(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[])[u]=o:"__proto__"!==l&&(s[l]=o):s={0:o}}o=s}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var _,m,y=d[n],b=y.indexOf("]="),g=-1===b?y.indexOf("="):b+1;-1===g?(_=t.decoder(y,s.decoder,h,"key"),m=t.strictNullHandling?null:""):(_=t.decoder(y.slice(0,g),s.decoder,h,"key"),m=r.maybeMap(c(y.slice(g+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=a(m)),y.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(l,_)?l[_]=r.combine(l[_],m):l[_]=m}return l}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f<d.length;++f){var h=d[f],_=l(h,u[h],n,"string"==typeof e);p=r.merge(p,_,n)}return!0===n.allowSparse?p:r.compact(p)}},8636:(e,t,n)=>{"use strict";var r=n(920),o=n(7720),i=n(4765),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=String.prototype.split,u=Array.prototype.push,p=function(e,t){u.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},_={},m=function e(t,n,i,s,a,u,d,f,m,y,b,g,v,E,x,T){for(var S,I=t,O=T,w=0,R=!1;void 0!==(O=O.get(_))&&!R;){var j=O.get(t);if(w+=1,void 0!==j){if(j===w)throw new RangeError("Cyclic object value");R=!0}void 0===O.get(_)&&(w=0)}if("function"==typeof f?I=f(n,I):I instanceof Date?I=b(I):"comma"===i&&c(I)&&(I=o.maybeMap(I,(function(e){return e instanceof Date?b(e):e}))),null===I){if(a)return d&&!E?d(n,h.encoder,x,"key",g):n;I=""}if("string"==typeof(S=I)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(I)){if(d){var C=E?n:d(n,h.encoder,x,"key",g);if("comma"===i&&E){for(var P=l.call(String(I),","),A="",N=0;N<P.length;++N)A+=(0===N?"":",")+v(d(P[N],h.encoder,x,"value",g));return[v(C)+(s&&c(I)&&1===P.length?"[]":"")+"="+A]}return[v(C)+"="+v(d(I,h.encoder,x,"value",g))]}return[v(n)+"="+v(String(I))]}var L,k=[];if(void 0===I)return k;if("comma"===i&&c(I))L=[{value:I.length>0?I.join(",")||null:void 0}];else if(c(f))L=f;else{var D=Object.keys(I);L=m?D.sort(m):D}for(var M=s&&c(I)&&1===I.length?n+"[]":n,B=0;B<L.length;++B){var U=L[B],F="object"==typeof U&&void 0!==U.value?U.value:I[U];if(!u||null!==F){var $=c(I)?"function"==typeof i?i(M,U):M:M+(y?"."+U:"["+U+"]");T.set(t,w);var G=r();G.set(_,T),p(k,e(F,$,i,s,a,u,d,f,m,y,b,g,v,E,x,G))}}return k};e.exports=function(e,t){var n,o=e,l=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!s.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=h.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):c(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof o||null===o)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=a[u];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var _="comma"===f&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),l.sort&&n.sort(l.sort);for(var y=r(),b=0;b<n.length;++b){var g=n[b];l.skipNulls&&null===o[g]||p(d,m(o[g],g,f,_,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,y))}var v=d.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),v.length>0?E+v:""}},7720:(e,t,n)=>{"use strict";var r=n(4765),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],a=Object.keys(s),c=0;c<a.length;++c){var l=a[c],u=s[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:s,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=s[u]:u<2048?c+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?c+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return o.call(t,i)?t[i]=e(t[i],s,r):t[i]=s,t}),s)}}},5758:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r(t),n.d(t,{Provider:()=>u,connect:()=>F,connectAdvanced:()=>O,createProvider:()=>l});var o=n(7592),i=n(7778),s=n.n(i),a=s().shape({trySubscribe:s().func.isRequired,tryUnsubscribe:s().func.isRequired,notifyNestedSubs:s().func.isRequired,isSubscribed:s().func.isRequired}),c=s().shape({subscribe:s().func.isRequired,dispatch:s().func.isRequired,getState:s().func.isRequired});function l(e){var t;void 0===e&&(e="store");var n=e+"Subscription",i=function(t){r(s,t);var i=s.prototype;function s(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return i.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},i.render=function(){return o.Children.only(this.props.children)},s}(o.Component);return i.propTypes={store:c.isRequired,children:s().element.isRequired},i.childContextTypes=((t={})[e]=c.isRequired,t[n]=a,t),i}o.default.forwardRef;const u=l();function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var h=n(4146),_=n.n(h),m=n(311),y=n.n(m),b=n(4737),g=null,v={notify:function(){}},E=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=v}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=g,e=g},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==g&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=v)},e}(),x=void 0!==o.default.forwardRef,T=0,S={};function I(){}function O(e,t){var n,i;void 0===t&&(t={});var s=t,l=s.getDisplayName,u=void 0===l?function(e){return"ConnectAdvanced("+e+")"}:l,h=s.methodName,m=void 0===h?"connectAdvanced":h,g=s.renderCountProp,v=void 0===g?void 0:g,O=s.shouldHandleStateChanges,w=void 0===O||O,R=s.storeKey,j=void 0===R?"store":R,C=s.withRef,P=void 0!==C&&C,A=f(s,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),N=j+"Subscription",L=T++,k=((n={})[j]=c,n[N]=a,n),D=((i={})[N]=a,i);return function(t){y()((0,b.isValidElementType)(t),"You must pass a component to the function returned by "+m+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=u(n),s=d({},A,{getDisplayName:u,methodName:m,renderCountProp:v,shouldHandleStateChanges:w,storeKey:j,withRef:P,displayName:i,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){var r;return(r=n.call(this,e,t)||this).version=L,r.state={},r.renderCount=0,r.store=e[j]||t[j],r.propsMode=Boolean(e[j]),r.setWrappedInstance=r.setWrappedInstance.bind(p(p(r))),y()(r.store,'Could not find "'+j+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+j+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}r(a,n);var c=a.prototype;return c.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[N]=t||this.context[N],e},c.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.componentWillReceiveProps=function(e){this.selector.run(e)},c.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=I,this.store=null,this.selector.run=I,this.selector.shouldComponentUpdate=!1},c.getWrappedInstance=function(){return y()(P,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+m+"() call."),this.wrappedInstance},c.setWrappedInstance=function(e){this.wrappedInstance=e},c.initSelector=function(){var t=e(this.store.dispatch,s);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},c.initSubscription=function(){if(w){var e=(this.propsMode?this.props:this.context)[N];this.subscription=new E(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(S)):this.notifyNestedSubs()},c.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.addExtraProps=function(e){if(!(P||v||this.propsMode&&this.subscription))return e;var t=d({},e);return P&&(t.ref=this.setWrappedInstance),v&&(t[v]=this.renderCount++),this.propsMode&&this.subscription&&(t[N]=this.subscription),t},c.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,o.createElement)(t,this.addExtraProps(e.props))},a}(o.Component);return x&&(a.prototype.UNSAFE_componentWillReceiveProps=a.prototype.componentWillReceiveProps,delete a.prototype.componentWillReceiveProps),a.WrappedComponent=t,a.displayName=i,a.childContextTypes=D,a.contextTypes=k,a.propTypes=k,_()(a,t)}}var w=Object.prototype.hasOwnProperty;function R(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function j(e,t){if(R(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!w.call(t,n[o])||!R(e[n[o]],t[n[o]]))return!1;return!0}var C=n(5081);function P(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function A(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function N(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=A(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=A(o),o=r(t,n)),o},r}}function L(e,t,n){return d({},n,e,t)}const k=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,s=!1;return function(t,n,a){var c=e(t,n,a);return s?o&&i(c,r)||(r=c):(s=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return L}}];function D(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function M(e,t,n,r,o){var i,s,a,c,l,u=o.areStatesEqual,p=o.areOwnPropsEqual,d=o.areStatePropsEqual,f=!1;return function(o,h){return f?function(o,f){var h,_,m=!p(f,s),y=!u(o,i);return i=o,s=f,m&&y?(a=e(i,s),t.dependsOnOwnProps&&(c=t(r,s)),l=n(a,c,s)):m?(e.dependsOnOwnProps&&(a=e(i,s)),t.dependsOnOwnProps&&(c=t(r,s)),l=n(a,c,s)):y?(h=e(i,s),_=!d(h,a),a=h,_&&(l=n(a,c,s)),l):l}(o,h):(a=e(i=o,s=h),c=t(r,s),l=n(a,c,s),f=!0,l)}}function B(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function U(e,t){return e===t}const F=(G=($={}).connectHOC,q=void 0===G?O:G,H=void 0===(W=$.mapStateToPropsFactories)?[function(e){return"function"==typeof e?N(e):void 0},function(e){return e?void 0:P((function(){return{}}))}]:W,z=void 0===(V=$.mapDispatchToPropsFactories)?[function(e){return"function"==typeof e?N(e):void 0},function(e){return e?void 0:P((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?P((function(t){return(0,C.zH)(e,t)})):void 0}]:V,J=void 0===(Y=$.mergePropsFactories)?k:Y,K=void 0===(X=$.selectorFactory)?function(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=f(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),s=n(e,i),a=r(e,i),c=o(e,i);return(i.pure?M:D)(s,a,c,e,i)}:X,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,s=void 0===i||i,a=o.areStatesEqual,c=void 0===a?U:a,l=o.areOwnPropsEqual,u=void 0===l?j:l,p=o.areStatePropsEqual,h=void 0===p?j:p,_=o.areMergedPropsEqual,m=void 0===_?j:_,y=f(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),b=B(e,H,"mapStateToProps"),g=B(t,z,"mapDispatchToProps"),v=B(n,J,"mergeProps");return q(K,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:b,initMapDispatchToProps:g,initMergeProps:v,pure:s,areStatesEqual:c,areOwnPropsEqual:u,areStatePropsEqual:h,areMergedPropsEqual:m},y))});var $,G,q,W,H,V,z,Y,J,X,K},7972:(e,t,n)=>{"use strict";var r=n(1811);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},7778:(e,t,n)=>{e.exports=n(7972)()},1811:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8989:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=(n&&Symbol.for("react.element"),n&&Symbol.for("react.portal"),n?Symbol.for("react.fragment"):60107),o=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,a=n?Symbol.for("react.context"):60110,c=(n&&Symbol.for("react.async_mode"),n?Symbol.for("react.concurrent_mode"):60111),l=n?Symbol.for("react.forward_ref"):60112,u=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,d=n?Symbol.for("react.memo"):60115,f=n?Symbol.for("react.lazy"):60116,h=n?Symbol.for("react.block"):60121,_=n?Symbol.for("react.fundamental"):60117,m=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===a||e.$$typeof===l||e.$$typeof===_||e.$$typeof===m||e.$$typeof===y||e.$$typeof===h)}},4737:(e,t,n)=>{"use strict";e.exports=n(8989)},2298:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(9771),o=n.n(r),i=n(311),s=n.n(i),a=n(7592),c=n(6523),l=n.n(c),u=n(3401),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){return 0===a.default.Children.count(e)},h=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=d(this,e.call.apply(e,[this].concat(i))),r.state={match:r.computeMatch(r.props,r.context.router)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:p({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,i=e.strict,a=e.exact,c=e.sensitive;if(n)return n;s()(t,"You should not use <Route> or withRouter() outside a <Router>");var l=t.route,p=(r||l.location).pathname;return(0,u.A)(p,{path:o,strict:i,exact:a,sensitive:c},l.match)},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),o()(!(this.props.component&&this.props.children&&!f(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),o()(!(this.props.render&&this.props.children&&!f(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,s=i.history,c=i.route,l=i.staticContext,u={match:e,location:this.props.location||c.location,history:s,staticContext:l};return r?e?a.default.createElement(r,u):null:o?e?o(u):null:"function"==typeof n?n(u):n&&!f(n)?a.default.Children.only(n):null},t}(a.default.Component);h.propTypes={computedMatch:l().object,path:l().string,exact:l().bool,strict:l().bool,sensitive:l().bool,component:l().func,render:l().func,children:l().oneOfType([l().func,l().node]),location:l().object},h.contextTypes={router:l().shape({history:l().object.isRequired,route:l().object.isRequired,staticContext:l().object})},h.childContextTypes={router:l().object.isRequired};const _=h},6575:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(7592),o=n(6523),i=n.n(o),s=n(9771),a=n.n(s),c=n(311),l=n.n(c),u=n(3401),p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){l()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){a()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),a()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,o=void 0,i=void 0;return r.default.Children.forEach(t,(function(t){if(null==o&&r.default.isValidElement(t)){var s=t.props,a=s.path,c=s.exact,l=s.strict,p=s.sensitive,d=s.from,f=a||d;i=t,o=(0,u.A)(n.pathname,{path:f,exact:c,strict:l,sensitive:p},e.match)}})),o?r.default.cloneElement(i,{location:n,computedMatch:o}):null},t}(r.default.Component);p.contextTypes={router:i().shape({route:i().object.isRequired}).isRequired},p.propTypes={children:i().node,location:i().object};const d=p},8851:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MemoryRouter:()=>y,Prompt:()=>g,Redirect:()=>w,Route:()=>R.A,Router:()=>h,StaticRouter:()=>B,Switch:()=>U.A,generatePath:()=>S,matchPath:()=>F.A,withRouter:()=>$.A});var r=n(9771),o=n.n(r),i=n(7592),s=n(6523),a=n.n(s),c=n(7774),l=n(311),u=n.n(l),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=d(this,e.call.apply(e,[this].concat(i))),r.state={match:r.computeMatch(r.props.history.location.pathname)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:p({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;u()(null==n||1===i.default.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen((function(){e.setState({match:e.computeMatch(r.location.pathname)})}))},t.prototype.componentWillReceiveProps=function(e){o()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?i.default.Children.only(e):null},t}(i.default.Component);f.propTypes={history:a().object.isRequired,children:a().node},f.contextTypes={router:a().object},f.childContextTypes={router:a().object.isRequired};const h=f;function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=_(this,e.call.apply(e,[this].concat(i))),r.history=(0,c.sC)(r.props),_(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){o()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return i.default.createElement(h,{history:this.history,children:this.props.children})},t}(i.default.Component);m.propTypes={initialEntries:a().array,initialIndex:a().number,getUserConfirmation:a().func,keyLength:a().number,children:a().node};const y=m;var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){u()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(i.default.Component);b.propTypes={when:a().bool,message:a().oneOfType([a().func,a().string]).isRequired},b.defaultProps={when:!0},b.contextTypes={router:a().shape({history:a().shape({block:a().func.isRequired}).isRequired}).isRequired};const g=b;var v=n(5302),E=n.n(v),x={},T=0;const S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("/"===e)return e;var n=function(e){var t=e,n=x[t]||(x[t]={});if(n[e])return n[e];var r=E().compile(e);return T<1e4&&(n[e]=r,T++),r}(e);return n(t,{pretty:!0})};var I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){u()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=(0,c.yJ)(e.to),n=(0,c.yJ)(this.props.to);(0,c.Fu)(t,n)?o()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?S(n,t.params):I({},n,{pathname:S(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(i.default.Component);O.propTypes={computedMatch:a().object,push:a().bool,from:a().string,to:a().oneOfType([a().string,a().object]).isRequired},O.defaultProps={push:!1},O.contextTypes={router:a().shape({history:a().shape({push:a().func.isRequired,replace:a().func.isRequired}).isRequired,staticContext:a().object}).isRequired};const w=O;var R=n(2298),j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function C(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var P=function(e){return"/"===e.charAt(0)?e:"/"+e},A=function(e,t){return e?j({},t,{pathname:P(e)+t.pathname}):t},N=function(e,t){if(!e)return t;var n=P(e);return 0!==t.pathname.indexOf(n)?t:j({},t,{pathname:t.pathname.substr(n.length)})},L=function(e){return"string"==typeof e?e:(0,c.AO)(e)},k=function(e){return function(){u()(!1,"You cannot %s with <StaticRouter>",e)}},D=function(){},M=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=C(this,e.call.apply(e,[this].concat(i))),r.createHref=function(e){return P(r.props.basename+L(e))},r.handlePush=function(e){var t=r.props,n=t.basename,o=t.context;o.action="PUSH",o.location=A(n,(0,c.yJ)(e)),o.url=L(o.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,o=t.context;o.action="REPLACE",o.location=A(n,(0,c.yJ)(e)),o.url=L(o.location)},r.handleListen=function(){return D},r.handleBlock=function(){return D},C(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){o()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:N(t,(0,c.yJ)(n)),push:this.handlePush,replace:this.handleReplace,go:k("go"),goBack:k("goBack"),goForward:k("goForward"),listen:this.handleListen,block:this.handleBlock};return i.default.createElement(h,j({},r,{history:o}))},t}(i.default.Component);M.propTypes={basename:a().string,context:a().object.isRequired,location:a().oneOfType([a().string,a().object])},M.defaultProps={basename:"",location:"/"},M.childContextTypes={router:a().object.isRequired};const B=M;var U=n(6575),F=n(3401),$=n(1410)},3401:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5302),o=n.n(r),i={},s=0;const a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,a=r.path,c=r.exact,l=void 0!==c&&c,u=r.strict,p=void 0!==u&&u,d=r.sensitive;if(null==a)return n;var f=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var a=[],c={re:o()(e,a,t),keys:a};return s<1e4&&(r[e]=c,s++),c}(a,{end:l,strict:p,sensitive:void 0!==d&&d}),h=f.re,_=f.keys,m=h.exec(e);if(!m)return null;var y=m[0],b=m.slice(1),g=e===y;return l&&!g?null:{path:a,url:"/"===a&&""===y?"/":y,isExact:g,params:_.reduce((function(e,t,n){return e[t.name]=b[n],e}),{})}}},1410:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(7592),o=n(6523),i=n.n(o),s=n(1201),a=n.n(s),c=n(2298),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};const u=function(e){var t=function(t){var n=t.wrappedComponentRef,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return r.default.createElement(c.A,{children:function(t){return r.default.createElement(e,l({},o,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i().func},a()(t,e)}},1201:e=>{"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,s=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,c=a&&a(Object);e.exports=function e(l,u,p){if("string"!=typeof u){if(c){var d=a(u);d&&d!==c&&e(l,d,p)}var f=o(u);i&&(f=f.concat(i(u)));for(var h=0;h<f.length;++h){var _=f[h];if(!(t[_]||n[_]||p&&p[_])){var m=s(u,_);try{r(l,_,m)}catch(e){}}}return l}return l}},2263:(e,t,n)=>{"use strict";var r=n(2752);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},6523:(e,t,n)=>{e.exports=n(2263)()},2752:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5081:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.d(t,{Tw:()=>_,zH:()=>f,HY:()=>p,Zz:()=>h,y$:()=>u});var a="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(u)(e,t)}if("function"!=typeof e)throw new Error(s(2));var o=e,i=t,c=[],p=c,d=!1;function f(){p===c&&(p=c.slice())}function h(){if(d)throw new Error(s(3));return i}function _(e){if("function"!=typeof e)throw new Error(s(4));if(d)throw new Error(s(5));var t=!0;return f(),p.push(e),function(){if(t){if(d)throw new Error(s(6));t=!1,f();var n=p.indexOf(e);p.splice(n,1),c=null}}}function m(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(d)throw new Error(s(9));try{d=!0,i=o(i,e)}finally{d=!1}for(var t=c=p,n=0;n<t.length;n++)(0,t[n])();return e}return m({type:l.INIT}),(r={dispatch:m,subscribe:_,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,m({type:l.REPLACE})}})[a]=function(){var e,t=_;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[a]=function(){return this},e},r}function p(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:l.INIT}))throw new Error(s(12));if(void 0===n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(s(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},c=0;c<a.length;c++){var l=a[c],u=n[l],p=e[l],d=u(p,t);if(void 0===d)throw t&&t.type,new Error(s(14));o[l]=d,r=r||d!==p}return(r=r||a.length!==Object.keys(e).length)?o:e}}function d(e,t){return function(){return t(e.apply(this,arguments))}}function f(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(s(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=d(o,t))}return n}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(s(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=h.apply(void 0,a)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},920:(e,t,n)=>{"use strict";var r=n(9750),o=n(8648),i=n(8859),s=r("%TypeError%"),a=r("%WeakMap%",!0),c=r("%Map%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),_=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(c){if(t)return d(t,r)}else if(n)return function(e,t){var n=_(e,t);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(c){if(t)return h(t,r)}else if(n)return function(e,t){return!!_(e,t)}(n,r);return!1},set:function(r,o){a&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new a),u(e,r,o)):c?(t||(t=new c),f(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=_(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},8648:(e,t,n)=>{"use strict";var r=n(9750),o=n(6420),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},6420:(e,t,n)=>{"use strict";var r=n(6316),o=n(9750),i=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),a=o("%Reflect.apply%",!0)||r.call(s,i),c=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(r,s,arguments);return c&&l&&c(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var p=function(){return a(r,i,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},1968:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),s=Math.max(0,r.length-i.length),a=[],c=0;c<s;c++)a.push("$"+c);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}},6316:(e,t,n)=>{"use strict";var r=n(1968);e.exports=Function.prototype.bind||r},9750:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,s=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new s},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,p=n(4039)(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},h="undefined"==typeof Uint8Array?r:d(Uint8Array),_={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?d(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return _[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(6316),g=n(9030),v=b.call(Function.call,Array.prototype.concat),E=b.call(Function.apply,Array.prototype.splice),x=b.call(Function.call,String.prototype.replace),T=b.call(Function.call,String.prototype.slice),S=b.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,w=function(e,t){var n,r=e;if(g(y,r)&&(r="%"+(n=y[r])[0]+"%"),g(_,r)){var i=_[r];if(i===f&&(i=m(r)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=T(e,0,1),n=T(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,I,(function(e,t,n,o){r[r.length]=n?x(o,O,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=w("%"+r+"%",t),a=i.name,l=i.value,u=!1,p=i.alias;p&&(r=p[0],E(n,v([0,1],p)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=T(h,0,1),y=T(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&f||(u=!0),g(_,a="%"+(r+="."+h)+"%"))l=_[a];else if(null!=l){if(!(h in l)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&d+1>=n.length){var b=c(l,h);l=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:l[h]}else f=g(l,h),l=l[h];f&&!u&&(_[a]=l)}}return l}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},s=[],a=0;a<e.length;a++){var c=e[a],l=r.base?c[0]+r.base:c[0],u=i[l]||0,p="".concat(l," ").concat(u);i[l]=u+1;var d=n(p),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var h=o(f,r);r.byIndex=a,t.splice(a,0,{identifier:p,updater:h,references:1})}s.push(p)}return s}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=n(i[s]);t[a].references--}for(var c=r(e,o),l=0;l<i.length;l++){var u=n(i[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=c}}},7659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},183:(e,t,n)=>{"use strict";n.d(t,{Bx:()=>i,Jo:()=>r,Kf:()=>s,LE:()=>d,Oz:()=>o,a6:()=>a,f:()=>l,i2:()=>p,kh:()=>u,pU:()=>c});const r="/modules/monitoring",o="/index.php",i=`${r}${o}`,s=`${r}/images`,a="https://docs.plesk.com/en-US/obsidian/administrator-guide/statistics-and-monitoring/monitoring.68886/#differences-between-built-in-monitoring-and-360-monitoring",c="/auth/signup",l={INITIAL:"initial",REQUESTED:"requested",LOADED:"loaded",SUBMITTED:"submitted",ERROR:"error"},u="monitoring",p={ADD_WEBSITE_MONITOR:"ADD_WEBSITE_MONITOR",REMOVE_WEBSITE_MONITOR:"REMOVE_WEBSITE_MONITOR",SWITCH_TO_360_MENU:"SWITCH_TO_360_MENU",TRY_360_PROMO:"TRY_360_PROMO",HIDE_360_PROMO:"HIDE_360_PROMO",SWITCH_TO_BUILT_IN:"SWITCH_TO_BUILT_IN",OPEN_MONITORING_URL:"OPEN_MONITORING_URL",OPEN_MONITORING_FEEDBACK_URL:"OPEN_MONITORING_FEEDBACK_URL",OPEN_MONITORING_SWITCH_TO_BUILT_IN:"OPEN_MONITORING_SWITCH_TO_BUILT_IN",SWITCH_TO_BUILT_IN_DIALOG:"SWITCH_TO_BUILT_IN_DIALOG",OPEN_LICENSE_ADJUST_URL:"OPEN_LICENSE_ADJUST_URL",TRIAL_EXPIRED_BUY_PRO:"TRIAL_EXPIRED_BUY_PRO",TRIAL_EXPIRED_KEEP_LITE:"TRIAL_EXPIRED_KEEP_LITE",TRIAL_EXPIRED_BACK_TO_BUILT_IN:"TRIAL_EXPIRED_BACK_TO_BUILT_IN",OPEN_WEBSITES_DRAWER:"OPEN_WEBSITES_DRAWER",SWITCH_TO_BUILT_IN_REMOVE_CLOUD_AGENT:"SWITCH_TO_BUILT_IN_REMOVE_CLOUD_AGENT",SERVER_DETACHED_TRY_360:"SERVER_DETACHED_TRY_360",SERVER_DETACHED_CONNECT_TO_360:"SERVER_DETACHED_CONNECT_TO_360",SERVER_DETACHED_SWITCH_TO_360:"SERVER_DETACHED_SWITCH_TO_360",SERVER_DETACHED_SWITCH_TO_BUILT_IN:"SERVER_DETACHED_SWITCH_TO_BUILT_IN",LICENSE_LIMIT_REACHED_BUY_PRO:"LICENSE_LIMIT_REACHED_BUY_PRO",LICENSE_WIDGET_BUY_PRO:"LICENSE_WIDGET_BUY_PRO",LICENSE_WIDGET_COMPARE:"LICENSE_WIDGET_COMPARE",LICENSE_WIDGET_SWITCH_TO_BUILT_IN:"LICENSE_WIDGET_SWITCH_TO_BUILT_IN",WEBSITES_TAB_OPEN_WEBSITES_DRAWER:"WEBSITES_TAB_OPEN_WEBSITES_DRAWER",SITE_MONITORING_IS_NOT_NEEDED_ENABLE:"SITE_MONITORING_IS_NOT_NEEDED_ENABLE",SITE_MONITORING_IS_NOT_NEEDED_DISABLE:"SITE_MONITORING_IS_NOT_NEEDED_DISABLE",SITE_MONITORING_PROMO_CLOSE:"SITE_MONITORING_PROMO_CLOSE",SITE_MONITORING_PROMO_LEARN_MORE:"SITE_MONITORING_PROMO_LEARN_MORE"},d={MONITORING_BANNER:"monitoring_banner",DOMAINCARD_BANNER:"domaincard_banner",PROMO_NOTIFICATION:"promo_notification",EXT_MONITORING:"ext-monitoring",SIGN_UP:"sign_up",CONNECT:"connect",ACTIVATE:"activate",OPEN_360_MONITORING:"open_360_monitoring"}},5775:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(7592),o=n(2280),i=n(183);const s=`${i.Kf}/subscription-statistics-button.png`,a=`${i.Kf}/subscriptions-comparison-tab.png`;class c extends o.Component{constructor(e){super(e),this.state={step:e.step}}componentDidUpdate(e){const{step:t}=this.props;e.step!==t&&this.setState({step:t})}handleNext=()=>{this.setState({step:this.state.step+1})};handlePrev=()=>{this.setState({step:this.state.step-1})};handleClose=()=>{this.setState({step:void 0})};handleFinish=()=>{this.handleClose(),this.props.onFinish()};renderSkipButton(){return(0,r.jsx)(o.Button,{onClick:this.handleFinish,ghost:!0,children:(0,r.jsx)(o.Translate,{content:"button.tour-skip"})},"finish")}renderNextButton(){return(0,r.jsx)(o.Button,{onClick:this.handleNext,intent:"primary",arrow:"forward",children:(0,r.jsx)(o.Translate,{content:"button.tour-next"})},"next")}renderPrevButton(){return(0,r.jsx)(o.Button,{onClick:this.handlePrev,ghost:!0,children:(0,r.jsx)(o.Translate,{content:"button.tour-previous"})},"prev")}renderFinishButton(){return(0,r.jsx)(o.Button,{onClick:this.handleFinish,intent:"primary",children:(0,r.jsx)(o.Translate,{content:"button.tour-finish"})},"finish")}render(){const{step:e}=this.state;return(0,r.jsxs)(o.Tour,{current:e,onClose:this.handleClose,children:[(0,r.jsx)(o.Spot,{className:`${i.kh}__spot`,selector:`.${i.kh}__settings-button`,placement:"left",popup:{children:(0,r.jsx)(o.Translate,{content:"subscriptions-tour.new-settings-option"}),className:`${i.kh}__spot-popup`,placement:"left",size:"sm",buttons:[this.renderSkipButton(),this.renderNextButton()]}}),(0,r.jsx)(o.Spot,{className:`${i.kh}__spot`,selector:`.${i.kh}__settings-subscriptions`}),(0,r.jsx)(o.Spot,{className:`${i.kh}__spot`,selector:`.${i.kh}__subscriptions-drawer__integration-switch`,placement:"left",popup:{children:(0,r.jsx)(o.Translate,{content:"subscriptions-tour.integration-switch"}),className:`${i.kh}__spot-popup`,placement:"left",size:"sm",buttons:[this.renderSkipButton(),this.renderNextButton()]}}),(0,r.jsx)(o.Spot,{className:`${i.kh}__spot`,selector:`.${i.kh}__subscriptions-drawer__subscriptions-switch`,placement:"left",popup:{children:(0,r.jsx)(o.Translate,{content:"subscriptions-tour.subscriptions-switch"}),className:`${i.kh}__spot-popup`,placement:"left",image:s,buttons:[this.renderPrevButton(),this.renderNextButton()]}}),(0,r.jsx)(o.Spot,{className:`${i.kh}__spot`,selector:`.${i.kh}__subscriptions-drawer__comparison-switch`,placement:"left",popup:{children:(0,r.jsx)(o.Translate,{content:"subscriptions-tour.comparison-switch"}),className:`${i.kh}__spot-popup`,placement:"left",image:a,buttons:[this.renderPrevButton(),this.renderFinishButton()]}})]})}}c.propTypes={step:o.PropTypes.number,onFinish:o.PropTypes.fn},c.defaultProps={step:void 0,onFinish:()=>{}};const l=c},7592:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2280),o={};for(const e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o);const i=r},9771:e=>{"use strict";e.exports=function(){}},2280:t=>{"use strict";t.exports=e},2634:()=>{}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var o={};return(()=>{"use strict";r.r(o),r.d(o,{default:()=>Tr});var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>Qe,hasStandardBrowserEnv:()=>Ze,hasStandardBrowserWebWorkerEnv:()=>tt});var t=r(7592),n=r(2280),i=r(5758),s=r(8560),a=r(5081);function c(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var l=c();l.withExtraArgument=c;const u=l,p="cloud_connection_promo_is_hidden",d="cloud_connection_promo_is_displayed",f="add_notification",h="installation_check_requested",_="installation_checked",m="installation_fix_requested",y="installation_fixed";var b=r(183);const g=e=>({notifications:[],installationError:null,installationErrorIsCritical:null,installationErrorIsGrafana:null,loadingStatus:b.f.INITIAL,installationFixStatus:b.f.LOADED}),v=e=>{const t=Object.assign({},g(),{resctrlIsSupported:e.resctrlIsSupported,savingNoticeIsHidden:e.savingNoticeIsHidden,subscriptionsTourIsHidden:e.subscriptionsTourIsHidden,cloudIsSupported:e.cloudIsSupported,cloudConnectionPromoIsHidden:e.cloudConnectionPromoIsHidden,cloudConnectionPromoIsV2:e.cloudConnectionPromoIsV2,cloudIntegrationBannerIsEnabled:e.cloudIntegrationBannerIsEnabled,cloudServerIsAttached:e.cloudServerIsAttached,cloudPlatformUrl:e.cloudPlatformUrl});return(e=t,n)=>{switch(e=((e,t,n)=>{switch(n||(n=g()),t.type){case f:{const{message:e,key:r,intent:o,timeout:i}=t;return{...n,notifications:[...n.notifications,{message:e,key:r,intent:o,timeout:i}]}}case h:return{...n,loadingStatus:b.f.REQUESTED,installationError:null};case _:return{...n,loadingStatus:b.f.LOADED,installationError:t.error,installationErrorIsCritical:t.isCriticalError,installationErrorIsGrafana:t.isGrafanaError,installationFixStatus:t.error?b.f.INITIAL:n.installationFixStatus};case m:return{...n,installationFixStatus:b.f.REQUESTED};case y:return{...n,installationError:t.error,installationErrorIsCritical:t.isCriticalError,installationErrorIsGrafana:!1,installationFixStatus:t.error?b.f.INITIAL:b.f.LOADED}}return n})(0,n,e),n.type){case p:return{...e,cloudConnectionPromoIsHidden:!0};case d:return{...e,cloudConnectionPromoIsHidden:!1}}return e}},E="statistics_requested",x="statistics_loaded",T="service_fix_requested",S="service_fix_failed",I="service_fixed",O="grafana_fix_requested",w="grafana_fix_failed",R="grafana_fixed",j="hardware_changes_detecting",C="hardware_checked",P=()=>{const e={dashboards:null,panelsMap:null,loadingStatus:b.f.INITIAL,serviceIsRunning:null,serviceFixStatus:b.f.INITIAL,grafanaIsRunning:null,grafanaFixStatus:b.f.INITIAL,hardwareChangesDetecting:!1,hardwareConfigUpdated:null};return(t=e,n)=>{switch(n.type){case E:return{...t,loadingStatus:b.f.REQUESTED};case x:return{...t,loadingStatus:b.f.LOADED,dashboards:n.dashboards,panelsMap:n.panelsMap,serviceIsRunning:!!n.serviceIsRunning,grafanaIsRunning:!!n.grafanaIsRunning,hardwareConfigUpdated:n.hardwareConfigUpdated?1e3*n.hardwareConfigUpdated:null};case T:return{...t,serviceFixStatus:b.f.REQUESTED};case I:return{...t,serviceIsRunning:!0,serviceFixStatus:b.f.LOADED};case S:return{...t,serviceFixStatus:b.f.INITIAL};case O:return{...t,grafanaFixStatus:b.f.REQUESTED};case R:return{...t,grafanaIsRunning:!0,grafanaFixStatus:b.f.LOADED};case w:return{...t,grafanaFixStatus:b.f.INITIAL};case j:return{...t,hardwareChangesDetecting:!0};case C:return{...t,hardwareChangesDetecting:!1,hardwareConfigUpdated:Date.now()}}return t}},A="thresholds_requested",N="thresholds_loaded",L="thresholds_are_updated",k="thresholds_updated",D=()=>{const e={values:null,defaults:null,loadingStatus:b.f.INITIAL};return(t=e,n)=>{switch(n.type){case A:return{...t,loadingStatus:b.f.REQUESTED};case N:return{...t,loadingStatus:b.f.LOADED,values:n.values,defaults:n.defaults};case L:return{...t,loadingStatus:b.f.SUBMITTED};case k:return{...t,loadingStatus:b.f.LOADED,values:n.values||t.values}}return t}},M="customization_requested",B="customization_loaded",U="customization_are_updated",F="customization_updated",$=()=>{const e={placement:null,defaults:null,loadingStatus:b.f.INITIAL};return(t=e,n)=>{switch(n.type){case M:return{...t,loadingStatus:b.f.REQUESTED};case B:return{...t,loadingStatus:b.f.LOADED,placement:n.placement,defaults:n.defaults};case U:return{...t,loadingStatus:b.f.SUBMITTED};case F:return{...t,loadingStatus:b.f.LOADED,placement:n.placement||t.placement}}return t}},G="subscriptions_requested",q="subscriptions_loaded",W="subscriptions_are_updated",H="subscriptions_updated",V=()=>{const e={resctrlIsInstalled:null,resctrlIsLicensed:null,resctrlIsEnabled:null,csAreIntegrated:null,csComparisonIsEnabled:null,csComparisonList:null,csComparisonFullList:null,loadingStatus:b.f.INITIAL};return(t=e,n)=>{switch(n.type){case G:return{...t,loadingStatus:b.f.REQUESTED};case q:return{...t,loadingStatus:b.f.LOADED,resctrlIsInstalled:n.resctrlIsInstalled,resctrlIsLicensed:n.resctrlIsLicensed,resctrlIsEnabled:n.resctrlIsEnabled,csAreIntegrated:n.csAreIntegrated,csComparisonIsEnabled:n.csComparisonIsEnabled,csComparisonList:n.csComparisonList,csComparisonFullList:n.csComparisonFullList};case W:return{...t,loadingStatus:b.f.SUBMITTED};case H:return{...t,loadingStatus:b.f.LOADED,resctrlIsEnabled:null===n.resctrlIsEnabled?t.resctrlIsEnabled:n.resctrlIsEnabled,csAreIntegrated:null===n.csAreIntegrated?t.csAreIntegrated:n.csAreIntegrated,csComparisonIsEnabled:null===n.csComparisonIsEnabled?t.csComparisonIsEnabled:n.csComparisonIsEnabled,csComparisonList:null===n.csComparisonList?t.csComparisonList:n.csComparisonList}}return t}},z="parameters_requested",Y="parameters_loaded",J="parameters_are_updated",X="parameters_updated",K=()=>{const e={dashboardInterval:null,loadingStatus:b.f.INITIAL};return(t=e,n)=>{switch(n.type){case z:return{...t,loadingStatus:b.f.REQUESTED};case Y:return{...t,loadingStatus:b.f.LOADED,dashboardInterval:n.dashboardInterval};case J:return{...t,loadingStatus:b.f.SUBMITTED};case X:return{...t,loadingStatus:b.f.LOADED,dashboardInterval:n.dashboardInterval||t.dashboardInterval}}return t}};var Q=r(7774);function Z(e,t){return function(){return e.apply(t,arguments)}}const{toString:ee}=Object.prototype,{getPrototypeOf:te}=Object,ne=(re=Object.create(null),e=>{const t=ee.call(e);return re[t]||(re[t]=t.slice(8,-1).toLowerCase())});var re;const oe=e=>(e=e.toLowerCase(),t=>ne(t)===e),ie=e=>t=>typeof t===e,{isArray:se}=Array,ae=ie("undefined"),ce=oe("ArrayBuffer"),le=ie("string"),ue=ie("function"),pe=ie("number"),de=e=>null!==e&&"object"==typeof e,fe=e=>{if("object"!==ne(e))return!1;const t=te(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},he=oe("Date"),_e=oe("File"),me=oe("Blob"),ye=oe("FileList"),be=oe("URLSearchParams");function ge(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),se(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function ve(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xe=e=>!ae(e)&&e!==Ee,Te=(Se="undefined"!=typeof Uint8Array&&te(Uint8Array),e=>Se&&e instanceof Se);var Se;const Ie=oe("HTMLFormElement"),Oe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),we=oe("RegExp"),Re=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ge(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},je="abcdefghijklmnopqrstuvwxyz",Ce="0123456789",Pe={DIGIT:Ce,ALPHA:je,ALPHA_DIGIT:je+je.toUpperCase()+Ce},Ae=oe("AsyncFunction"),Ne={isArray:se,isArrayBuffer:ce,isBuffer:function(e){return null!==e&&!ae(e)&&null!==e.constructor&&!ae(e.constructor)&&ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ue(e.append)&&("formdata"===(t=ne(e))||"object"===t&&ue(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ce(e.buffer),t},isString:le,isNumber:pe,isBoolean:e=>!0===e||!1===e,isObject:de,isPlainObject:fe,isUndefined:ae,isDate:he,isFile:_e,isBlob:me,isRegExp:we,isFunction:ue,isStream:e=>de(e)&&ue(e.pipe),isURLSearchParams:be,isTypedArray:Te,isFileList:ye,forEach:ge,merge:function e(){const{caseless:t}=xe(this)&&this||{},n={},r=(r,o)=>{const i=t&&ve(n,o)||o;fe(n[i])&&fe(r)?n[i]=e(n[i],r):fe(r)?n[i]=e({},r):se(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ge(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(ge(t,((t,r)=>{n&&ue(t)?e[r]=Z(t,n):e[r]=t}),{allOwnKeys:r}),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,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&te(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ne,kindOfTest:oe,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(se(e))return e;let t=e.length;if(!pe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ie,hasOwnProperty:Oe,hasOwnProp:Oe,reduceDescriptors:Re,freezeMethods:e=>{Re(e,((t,n)=>{if(ue(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ue(r)&&(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={},r=e=>{e.forEach((e=>{n[e]=!0}))};return se(e)?r(e):r(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)=>(e=+e,Number.isFinite(e)?e:t),findKey:ve,global:Ee,isContextDefined:xe,ALPHABET:Pe,generateString:(e=16,t=Pe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&ue(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(de(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=se(e)?[]:{};return ge(e,((e,t)=>{const i=n(e,r+1);!ae(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Ae,isThenable:e=>e&&(de(e)||ue(e))&&ue(e.then)&&ue(e.catch)};function Le(e,t,n,r,o){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),r&&(this.request=r),o&&(this.response=o)}Ne.inherits(Le,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:Ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ke=Le.prototype,De={};["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=>{De[e]={value:e}})),Object.defineProperties(Le,De),Object.defineProperty(ke,"isAxiosError",{value:!0}),Le.from=(e,t,n,r,o,i)=>{const s=Object.create(ke);return Ne.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Le.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Me=Le;function Be(e){return Ne.isPlainObject(e)||Ne.isArray(e)}function Ue(e){return Ne.endsWith(e,"[]")?e.slice(0,-2):e}function Fe(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ue(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const $e=Ne.toFlatObject(Ne,{},null,(function(e){return/^is[A-Z]/.test(e)})),Ge=function(e,t,n){if(!Ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ne.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ne.isSpecCompliantForm(t);if(!Ne.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ne.isDate(e))return e.toISOString();if(!a&&Ne.isBlob(e))throw new Me("Blob is not supported. Use a Buffer instead.");return Ne.isArrayBuffer(e)||Ne.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Ne.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ne.isArray(e)&&function(e){return Ne.isArray(e)&&!e.some(Be)}(e)||(Ne.isFileList(e)||Ne.endsWith(n,"[]"))&&(a=Ne.toArray(e)))return n=Ue(n),a.forEach((function(e,r){!Ne.isUndefined(e)&&null!==e&&t.append(!0===s?Fe([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!Be(e)||(t.append(Fe(o,n,i),c(e)),!1)}const u=[],p=Object.assign($e,{defaultVisitor:l,convertValue:c,isVisitable:Be});if(!Ne.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ne.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ne.forEach(n,(function(n,i){!0===(!(Ne.isUndefined(n)||null===n)&&o.call(t,n,Ne.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function We(e,t){this._pairs=[],e&&Ge(e,this,t)}const He=We.prototype;He.append=function(e,t){this._pairs.push([e,t])},He.toString=function(e){const t=e?function(t){return e.call(this,t,qe)}:qe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Ve=We;function ze(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ye(e,t,n){if(!t)return e;const r=n&&n.encode||ze,o=n&&n.serialize;let i;if(i=o?o(t,n):Ne.isURLSearchParams(t)?t.toString():new Ve(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Je=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){Ne.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ke={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ve,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Qe="undefined"!=typeof window&&"undefined"!=typeof document,Ze=(et="undefined"!=typeof navigator&&navigator.product,Qe&&["ReactNative","NativeScript","NS"].indexOf(et)<0);var et;const tt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,nt={...e,...Ke},rt=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&Ne.isArray(r)?r.length:i,a?(Ne.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&Ne.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Ne.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s)}if(Ne.isFormData(e)&&Ne.isFunction(e.entries)){const n={};return Ne.forEachEntry(e,((e,r)=>{t(function(e){return Ne.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ot={transitional:Xe,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ne.isObject(e);if(o&&Ne.isHTMLForm(e)&&(e=new FormData(e)),Ne.isFormData(e))return r?JSON.stringify(rt(e)):e;if(Ne.isArrayBuffer(e)||Ne.isBuffer(e)||Ne.isStream(e)||Ne.isFile(e)||Ne.isBlob(e))return e;if(Ne.isArrayBufferView(e))return e.buffer;if(Ne.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ge(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return nt.isNode&&Ne.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ne.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ge(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ne.isString(e))try{return(0,JSON.parse)(e),Ne.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ot.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Ne.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Me.from(e,Me.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ne.forEach(["delete","get","head","post","put","patch"],(e=>{ot.headers[e]={}}));const it=ot,st=Ne.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"]),at=Symbol("internals");function ct(e){return e&&String(e).trim().toLowerCase()}function lt(e){return!1===e||null==e?e:Ne.isArray(e)?e.map(lt):String(e)}function ut(e,t,n,r,o){return Ne.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ne.isString(t)?Ne.isString(r)?-1!==t.indexOf(r):Ne.isRegExp(r)?r.test(t):void 0:void 0)}class pt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ct(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ne.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=lt(e))}const i=(e,t)=>Ne.forEach(e,((e,n)=>o(e,n,t)));return Ne.isPlainObject(e)||e instanceof this.constructor?i(e,t):Ne.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&st[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=ct(e)){const n=Ne.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 r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ne.isFunction(t))return t.call(this,e,n);if(Ne.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ct(e)){const n=Ne.findKey(this,e);return!(!n||void 0===this[n]||t&&!ut(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ct(e)){const o=Ne.findKey(n,e);!o||t&&!ut(0,n[o],o,t)||(delete n[o],r=!0)}}return Ne.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ut(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ne.forEach(this,((r,o)=>{const i=Ne.findKey(n,o);if(i)return t[i]=lt(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=lt(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ne.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ne.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[at]=this[at]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ct(e);t[r]||(function(e,t){const n=Ne.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Ne.isArray(e)?e.forEach(r):r(e),this}}pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ne.reduceDescriptors(pt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ne.freezeMethods(pt);const dt=pt;function ft(e,t){const n=this||it,r=t||n,o=dt.from(r.headers);let i=r.data;return Ne.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ht(e){return!(!e||!e.__CANCEL__)}function _t(e,t,n){Me.call(this,null==e?"canceled":e,Me.ERR_CANCELED,t,n),this.name="CanceledError"}Ne.inherits(_t,Me,{__CANCEL__:!0});const mt=_t,yt=nt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];Ne.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Ne.isString(r)&&s.push("path="+r),Ne.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.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 bt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const gt=nt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Ne.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function vt(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];o||(o=c),n[i]=a,r[i]=c;let u=s,p=0;for(;u!==i;)p+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*p/d):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,c=r(a);n=i;const l={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const Et={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=dt.from(e.headers).normalize();let i,s,{responseType:a,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(Ne.isFormData(r))if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const p=bt(e.baseURL,e.url);function d(){if(!u)return;const r=dt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Ye(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new Me("Request aborted",Me.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Me("Network Error",Me.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Xe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Me(t,r.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,e,u)),u=null},nt.hasStandardBrowserEnv&&(c&&Ne.isFunction(c)&&(c=c(e)),c||!1!==c&>(p))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&yt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&Ne.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Ne.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",vt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",vt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new mt(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(p);f&&-1===nt.protocols.indexOf(f)?n(new Me("Unsupported protocol "+f+":",Me.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Ne.forEach(Et,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const xt=e=>`- ${e}`,Tt=e=>Ne.isFunction(e)||null===e||!1===e,St=e=>{e=Ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Tt(n)&&(r=Et[(t=String(n)).toLowerCase()],void 0===r))throw new Me(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(xt).join("\n"):" "+xt(e[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function It(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mt(null,e)}function Ot(e){return It(e),e.headers=dt.from(e.headers),e.data=ft.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),St(e.adapter||it.adapter)(e).then((function(t){return It(e),t.data=ft.call(e,e.transformResponse,t),t.headers=dt.from(t.headers),t}),(function(t){return ht(t)||(It(e),t&&t.response&&(t.response.data=ft.call(e,e.transformResponse,t.response),t.response.headers=dt.from(t.response.headers))),Promise.reject(t)}))}const wt=e=>e instanceof dt?{...e}:e;function Rt(e,t){t=t||{};const n={};function r(e,t,n){return Ne.isPlainObject(e)&&Ne.isPlainObject(t)?Ne.merge.call({caseless:n},e,t):Ne.isPlainObject(t)?Ne.merge({},t):Ne.isArray(t)?t.slice():t}function o(e,t,n){return Ne.isUndefined(t)?Ne.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Ne.isUndefined(t))return r(void 0,t)}function s(e,t){return Ne.isUndefined(t)?Ne.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(wt(e),wt(t),!0)};return Ne.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);Ne.isUndefined(s)&&i!==a||(n[r]=s)})),n}const jt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{jt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ct={};jt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Me(r(o," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!Ct[o]&&(Ct[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Pt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new Me("option "+i+" must be "+n,Me.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Me("Unknown option "+i,Me.ERR_BAD_OPTION)}},validators:jt},At=Pt.validators;class Nt{constructor(e){this.defaults=e,this.interceptors={request:new Je,response:new Je}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Rt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Pt.assertOptions(n,{silentJSONParsing:At.transitional(At.boolean),forcedJSONParsing:At.transitional(At.boolean),clarifyTimeoutError:At.transitional(At.boolean)},!1),null!=r&&(Ne.isFunction(r)?t.paramsSerializer={serialize:r}:Pt.assertOptions(r,{encode:At.function,serialize:At.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ne.merge(o.common,o[t.method]);o&&Ne.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=dt.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,p=0;if(!a){const e=[Ot.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);p<u;)l=l.then(e[p++],e[p++]);return l}u=s.length;let d=t;for(p=0;p<u;){const e=s[p++],t=s[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=Ot.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=c.length;p<u;)l=l.then(c[p++],c[p++]);return l}getUri(e){return Ye(bt((e=Rt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Ne.forEach(["delete","get","head","options"],(function(e){Nt.prototype[e]=function(t,n){return this.request(Rt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ne.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Rt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Nt.prototype[e]=t(),Nt.prototype[e+"Form"]=t(!0)}));const Lt=Nt;class kt{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 r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new mt(e,r,o),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)}static source(){let e;return{token:new kt((function(t){e=t})),cancel:e}}}const Dt=kt,Mt={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(Mt).forEach((([e,t])=>{Mt[t]=e}));const Bt=Mt,Ut=function e(t){const n=new Lt(t),r=Z(Lt.prototype.request,n);return Ne.extend(r,Lt.prototype,n,{allOwnKeys:!0}),Ne.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Rt(t,n))},r}(it);Ut.Axios=Lt,Ut.CanceledError=mt,Ut.CancelToken=Dt,Ut.isCancel=ht,Ut.VERSION="1.6.8",Ut.toFormData=Ge,Ut.AxiosError=Me,Ut.Cancel=Ut.CanceledError,Ut.all=function(e){return Promise.all(e)},Ut.spread=function(e){return function(t){return e.apply(null,t)}},Ut.isAxiosError=function(e){return Ne.isObject(e)&&!0===e.isAxiosError},Ut.mergeConfig=Rt,Ut.AxiosHeaders=dt,Ut.formToJSON=e=>rt(Ne.isHTMLForm(e)?new FormData(e):e),Ut.getAdapter=St,Ut.HttpStatusCode=Bt,Ut.default=Ut;const Ft=Ut;var $t=r(5373),Gt=r.n($t);const qt=e=>((e.headers.hasOwnProperty("location")&&(e.headers.location.indexOf("login_up.php")||e.headers.location.indexOf("login.php"))||"string"==typeof e.data&&(e.data.indexOf("login_up.php")||e.data.indexOf("login.php")))&&location.reload(),e),Wt=e=>(e.response&&400===e.response.status&&!e.response.data&&location.reload(),Promise.reject(e)),Ht=(()=>{const e=Ft.create({baseURL:b.Bx,headers:{"Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"},responseType:"json",paramsSerializer:e=>Gt().stringify(e,{arrayFormat:"brackets",skipNulls:!0})});return e.interceptors.response.use(qt,Wt),e})(),Vt=e=>b.Oz+e,zt=e=>b.Bx+e,Yt={statistics:Vt("/index/main"),statisticsFull:zt("/index/main"),thresholds:Vt("/index/thresholds"),customization:Vt("/index/customization"),subscriptions:Vt("/index/subscriptions"),subscription:Vt("/index/subscription"),parameters:Vt("/index/parameters"),componentsInstallation:"/admin/update/add-components",cgroupsManagerLicense:"https://www.plesk.com/editions/",cloud:Vt("/cloud/main"),cloudConnectFull:zt("/cloud/connect"),cloudMonitors:Vt("/cloud/monitors"),cloudMonitorsManagement:Vt("/cloud/monitors-management"),cloudMonitorsManagement2:Vt("/cloud/monitors-management2"),cloudMonitorsManagementFull:zt("/cloud/monitors-management"),cloudMonitorsManagementFull2:zt("/cloud/monitors-management2")},Jt="/cloud-statistics/toggle-connection-promo",Xt=(e,t="info",n=3e3)=>r=>r({type:f,key:e,intent:t,timeout:n}),Kt=e=>t=>t(((e,t="info",n=3e3)=>r=>r({type:f,message:e,intent:t,timeout:n}))("string"==typeof e?e:e.response&&e.response.data?e.response.data.message:e.message,"danger",null)),Qt=e=>t=>t(Xt(e,"danger",null)),Zt=(e=null,t=!1,n=!1)=>r=>r({type:_,error:e,isCriticalError:t,isGrafanaError:n}),en=()=>e=>(e({type:m}),Ht.post("/installation/fix").then((t=>{if(t.data){const{success:n,error:r,isCriticalError:o}=t.data;let i=null;n||(i=r),e(tn(i,!!o))}else e(Qt("text.installation-fix-failed"))})).catch((t=>{e(Kt(t))}))),tn=(e=null,t=!1)=>n=>n({type:y,error:e,isCriticalError:t}),nn=e=>()=>{Jsw&&Jsw.UAT&&Jsw.UAT.dispatchAction(e)};class rn extends n.Component{fixInstallationHandler=()=>{this.props.installationErrorIsCritical&&!this.props.forceFixAllIssues?this.props.fixCriticalInstallationIssues():this.props.fixInstallation()};render(){const{isInitial:e,isRequested:r,isLoaded:o,installationError:i,installationErrorIsGrafana:s,installationFixIsRequested:a}=this.props;return e?null:(0,t.jsxs)("div",{className:`${b.kh}__status`,children:[r?(0,t.jsx)(n.Status,{progress:!0,children:(0,t.jsx)(n.Translate,{content:"text.loading"})}):null,o?s?(0,t.jsx)(n.Panel,{children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Icon,{name:"rocket",size:"64"}),children:[(0,t.jsx)(n.MediaSection,{children:i}),(0,t.jsx)("br",{}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Button,{intent:"primary",onClick:this.fixInstallationHandler,state:a?"loading":"",children:(0,t.jsx)(n.Translate,{content:"button.install-grafana"})})})]})}):(0,t.jsxs)(n.Alert,{intent:"danger",children:[(0,t.jsx)(n.Icon,{name:"triangle-exclamation-mark"})," ",i," ",(0,t.jsx)(n.Button,{intent:"default",icon:"circle-check-mark",onClick:this.fixInstallationHandler,state:a?"loading":"",children:(0,t.jsx)(n.Translate,{content:"button.fix-installation"})})]}):null]})}}rn.propTypes={isInitial:n.PropTypes.bool.isRequired,isRequested:n.PropTypes.bool.isRequired,isLoaded:n.PropTypes.bool.isRequired,installationError:n.PropTypes.string.isRequired,installationErrorIsCritical:n.PropTypes.bool.isRequired,installationErrorIsGrafana:n.PropTypes.bool.isRequired,installationFixIsRequested:n.PropTypes.bool.isRequired,fixInstallation:n.PropTypes.func.isRequired,fixCriticalInstallationIssues:n.PropTypes.func.isRequired,forceFixAllIssues:n.PropTypes.bool},rn.defaultProps={forceFixAllIssues:!1};const on=(0,i.connect)((e=>{const{app:t}=e;return{isInitial:t.loadingStatus===b.f.INITIAL,isRequested:t.loadingStatus===b.f.REQUESTED,isLoaded:t.loadingStatus===b.f.LOADED,installationError:t.installationError,installationErrorIsCritical:t.installationErrorIsCritical,installationErrorIsGrafana:t.installationErrorIsGrafana,installationFixIsRequested:t.installationFixStatus===b.f.REQUESTED}}),(e=>({fixInstallation:()=>e(en()),fixCriticalInstallationIssues:()=>e((e=>(e({type:m}),Ht.post("/installation/fix-critical-issues").then((t=>{if(t.data){const{success:n,error:r,isCriticalError:o}=t.data;e(tn(n?null:r,!!o))}else e(Qt("text.installation-fix-failed"))})).catch((t=>{e(Kt(t))})))))})))(rn);class sn extends n.Component{componentDidUpdate(e){const{notifications:r}=this.props;if(r.length<=e.notifications.length)return;const o=r.pop();if(!o)return;const{message:i,key:s,intent:a,timeout:c}=o;this.toaster.add({message:i||(0,t.jsx)(n.Translate,{content:s}),intent:a,onClose:()=>{},autoCloseTimeout:void 0!==c?c:3e3})}render(){return(0,t.jsx)(n.Toaster,{ref:e=>this.toaster=e,maxToastsNumber:5,onToastClose:()=>{},className:`${b.kh}__notification-bar`})}}sn.propTypes={notifications:n.PropTypes.arrayOf(n.PropTypes.shape({message:n.PropTypes.string,key:n.PropTypes.string,intent:n.PropTypes.string,timeout:n.PropTypes.number})).isRequired};const an=(0,i.connect)((e=>{const{app:t}=e;return{notifications:t.notifications}}))(sn),cn=e=>{const r=(0,n.classNames)(e.baseClassName,e.className);return(0,t.jsxs)(n.Toolbar,{className:r,children:[(0,t.jsx)(n.ToolbarGroup,{className:`${e.baseClassName}__group`,children:(0,t.jsx)(n.Heading,{level:2,className:`${e.baseClassName}__title`,children:(0,t.jsx)(n.Translate,{content:"text.page-title"})})}),e.toolbar?(0,t.jsx)(n.ToolbarGroup,{className:`${e.baseClassName}__group`,children:e.toolbar}):null,e.addonMenu?(0,t.jsx)(n.ToolbarGroup,{className:`${e.baseClassName}__group`,children:(0,t.jsx)(n.Dropdown,{menu:e.addonMenu,className:`${e.baseClassName}__menu`,children:(0,t.jsx)(n.Button,{icon:"three-dots-horizontal",ghost:!0})})}):null]})};cn.propTypes={toolbar:n.PropTypes.node,addonMenu:n.PropTypes.node,className:n.PropTypes.string,baseClassName:n.PropTypes.string},cn.defaultProps={toolbar:null,addonMenu:null,className:void 0,baseClassName:`${b.kh}__page-heading`};const ln=cn,un={NUMBER:"number",PERCENT:"percent",BYTE:"bytes",KIB:"kib",MIB:"mib",GIB:"gib",USEC:"µs",MSEC:"ms",SEC:"s",MIN:"min",HOUR:"hour",DAY:"day"},pn=(e,t)=>Object.keys(e).filter((e=>t.includes(e))).reduce(((t,n)=>({...t,[n]:e[n]})),{});top.owop=pn;const dn=(e,t)=>JSON.stringify(e.sort())===JSON.stringify(t.sort()),fn=(e,t,n)=>`${e}${e.includes("?")?"&":"?"}\nutm_campaign=in-plesk-360m-promo&utm_source=plesk&utm_medium=${t}&utm_content=${n}`,hn=`${b.Kf}/try-monitoring.svg`;class _n extends n.Component{constructor(e){super(e),this.state={cloudConnectionIsInProgress:!1,builtInActivationIsInProgress:!1}}handleCloudServerConnect=()=>{this.setState({cloudConnectionIsInProgress:!0}),this.props.onCloudServerConnect&&this.props.onCloudServerConnect();const e=fn(Yt.cloudConnectFull,b.LE.MONITORING_BANNER,b.LE.CONNECT);window.open(e,"_self")};handleCloudMonitoringActivate=()=>{this.setState({cloudConnectionIsInProgress:!0}),this.props.onCloudMonitoringActivate&&this.props.onCloudMonitoringActivate();const e=fn(Yt.cloudConnectFull,b.LE.MONITORING_BANNER,b.LE.ACTIVATE);window.open(e,"_self")};handleBuiltInMonitoringActivate=()=>{this.setState({builtInActivationIsInProgress:!0}),this.props.onBuiltInMonitoringActivate()};renderCloudConnectionPromoBanner(){const{cloudServerIsAttached:e,onClose:r,cloudPlatformUrl:o}=this.props,{cloudConnectionIsInProgress:i,builtInActivationIsInProgress:s}=this.state,a=fn(o+b.pU,b.LE.MONITORING_BANNER,b.LE.SIGN_UP);return(0,t.jsx)(n.Panel,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-title"}),extra:r?(0,t.jsx)(n.Button,{icon:"cross-mark",ghost:!0,onClick:()=>r()}):null,className:`${b.kh}__cloud-connection-promo-banner`,children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Icon,{src:hn,size:"192"}),className:`${b.kh}__media`,children:[(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Grid,{children:(0,t.jsx)(n.GridCol,{lg:8,children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo",params:{link:(0,t.jsx)(n.Link,{href:o,target:"_blank",children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-link"})})}})})})}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Link,{href:b.a6,target:"_blank",children:(0,t.jsx)(n.Translate,{content:"button.how-360-monitoring-is-better"})})}),(0,t.jsx)("br",{}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Heading,{level:4,children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-steps-title"})})}),(0,t.jsxs)(n.MediaSection,{children:[e?(0,t.jsx)(n.Text,{fontSize:"sm",intent:"muted",children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Text,{children:"1."}),children:[(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-one-done"})," ",(0,t.jsx)(n.Icon,{name:"check-mark",intent:"success"})]})}):(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsxs)(n.Media,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-one"}),image:(0,t.jsx)(n.Text,{children:"1."}),children:[(0,t.jsx)(n.Button,{intent:"primary",icon:"cloud",onClick:this.handleCloudServerConnect,state:i?"loading":void 0,disabled:s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-connect"})})," ",(0,t.jsx)(n.Button,{icon:"user",component:"a",href:a,target:"_blank",disabled:i||s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-sign-up"})})]})}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsx)(n.Media,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-two"}),image:(0,t.jsx)(n.Text,{children:"2."}),children:e?(0,t.jsx)(n.Button,{intent:"primary",icon:"monitoring",onClick:this.handleCloudMonitoringActivate,state:i?"loading":void 0,disabled:s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-activate"})}):null})})]}),(0,t.jsx)("br",{})]})})}renderBuiltInMonitoringBanner(){const{onBuiltInMonitoringActivate:e}=this.props,{builtInActivationIsInProgress:r,cloudConnectionIsInProgress:o}=this.state;return e?(0,t.jsx)(n.Panel,{className:`${b.kh}__built-in-monitoring-banner`,children:(0,t.jsxs)(n.Media,{className:`${b.kh}__media`,children:[(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Button,{onClick:this.handleBuiltInMonitoringActivate,state:r?"loading":void 0,disabled:o,children:(0,t.jsx)(n.Translate,{content:"button.install-monitoring"})})}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Grid,{children:(0,t.jsx)(n.GridCol,{lg:7,children:(0,t.jsx)(n.Hint,{children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-monitoring-hint"})})})})})]})}):null}render(){const{isLoaded:e}=this.props;return e?[this.renderCloudConnectionPromoBanner(),this.renderBuiltInMonitoringBanner()]:null}}_n.propTypes={isLoaded:n.PropTypes.bool.isRequired,cloudServerIsAttached:n.PropTypes.bool.isRequired,cloudPlatformUrl:n.PropTypes.string.isRequired,onCloudServerConnect:n.PropTypes.func,onCloudMonitoringActivate:n.PropTypes.func,onBuiltInMonitoringActivate:n.PropTypes.func,onClose:n.PropTypes.func},_n.defaultProps={onCloudServerConnect:null,onCloudMonitoringActivate:null,onBuiltInMonitoringActivate:null,onClose:null};const mn=(0,i.connect)((e=>{const{loadingStatus:t,cloudServerIsAttached:n,cloudPlatformUrl:r}=e.app;return{isLoaded:t===b.f.LOADED,cloudServerIsAttached:n,cloudPlatformUrl:r}}))(_n),yn=`${b.Kf}/360monitoring-logo.svg`,bn=`${b.Kf}/360monitoring-promo-preview.gif`;class gn extends n.Component{constructor(e){super(e),this.state={cloudConnectionIsInProgress:!1,builtInMonitoringPopupIsVisible:!1,builtInActivationIsInProgress:!1}}handleCloudServerConnect=()=>{this.setState({cloudConnectionIsInProgress:!0}),this.props.onCloudServerConnect&&this.props.onCloudServerConnect();const e=fn(Yt.cloudConnectFull,b.LE.MONITORING_BANNER,b.LE.CONNECT);window.open(e,"_self")};handleCloudMonitoringActivate=()=>{this.setState({cloudConnectionIsInProgress:!0}),this.props.onCloudMonitoringActivate&&this.props.onCloudMonitoringActivate();const e=fn(Yt.cloudConnectFull,b.LE.MONITORING_BANNER,b.LE.ACTIVATE);window.open(e,"_self")};toggleBuiltInMonitoringPopup=(e=!0)=>{this.setState({builtInMonitoringPopupIsVisible:!!e})};handleBuiltInMonitoringActivate=()=>{this.setState({builtInActivationIsInProgress:!0,builtInMonitoringPopupIsVisible:!1}),this.props.onBuiltInMonitoringActivate()};renderCloudConnectionPromoBanner(){const{cloudServerIsAttached:e,onClose:r,cloudPlatformUrl:o}=this.props,{cloudConnectionIsInProgress:i,builtInActivationIsInProgress:s}=this.state,a=fn(o+b.pU,b.LE.MONITORING_BANNER,b.LE.SIGN_UP);return(0,t.jsx)(n.Panel,{title:(0,t.jsx)(n.Heading,{level:4,icon:{name:"monitoring",intent:"info"},children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-title"})}),extra:r?(0,t.jsx)(n.Button,{icon:"cross-mark",ghost:!0,onClick:()=>r()}):null,className:`${b.kh}__cloud-connection-promo-banner-v2`,children:(0,t.jsxs)(n.Media,{image:[(0,t.jsx)("img",{src:yn,width:"192"},"img1"),(0,t.jsx)("br",{},"sep1"),(0,t.jsx)("br",{},"sep2"),(0,t.jsx)("img",{src:bn,width:"192"},"img2")],className:`${b.kh}__media`,children:[(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Grid,{children:(0,t.jsx)(n.GridCol,{lg:8,children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-v2-line1"})})})}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Grid,{children:(0,t.jsx)(n.GridCol,{lg:8,children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-v2-line2"})})})}),(0,t.jsx)("br",{}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Heading,{level:4,children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-steps-title"})})}),(0,t.jsxs)(n.MediaSection,{children:[e?(0,t.jsx)(n.Text,{fontSize:"sm",intent:"muted",children:(0,t.jsxs)(n.Media,{image:(0,t.jsx)(n.Text,{children:"1."}),children:[(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-one-done"})," ",(0,t.jsx)(n.Icon,{name:"check-mark",intent:"success"})]})}):(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsxs)(n.Media,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-one"}),image:(0,t.jsx)(n.Text,{children:"1."}),children:[(0,t.jsx)(n.Button,{intent:"primary",icon:"cloud",onClick:this.handleCloudServerConnect,state:i?"loading":void 0,disabled:s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-connect"})})," ",(0,t.jsx)(n.Button,{icon:"user",component:"a",href:a,target:"_blank",disabled:i||s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-sign-up"})})]})}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Text,{fontSize:"sm",children:(0,t.jsx)(n.Media,{title:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-step-two"}),image:(0,t.jsx)(n.Text,{children:"2."}),children:e?(0,t.jsx)(n.Button,{intent:"primary",icon:"monitoring",onClick:this.handleCloudMonitoringActivate,state:i?"loading":void 0,disabled:s,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-promo-activate"})}):null})})]}),(0,t.jsx)("br",{})]})})}renderBuiltInMonitoringBanner(){const{onBuiltInMonitoringActivate:e}=this.props,{builtInMonitoringPopupIsVisible:r,cloudConnectionIsInProgress:o,builtInActivationIsInProgress:i}=this.state;return e?(0,t.jsx)(n.Panel,{className:`${b.kh}__built-in-monitoring-banner`,children:(0,t.jsxs)(n.Media,{className:`${b.kh}__media`,children:[(0,t.jsx)(n.MediaSection,{children:(0,t.jsxs)(n.Popover,{target:(0,t.jsx)(n.Text,{fontSize:"sm",bold:!0,children:(0,t.jsx)(n.Status,{progress:i,children:(0,t.jsx)(n.Link,{onClick:()=>this.toggleBuiltInMonitoringPopup(),disabled:o||i,children:(0,t.jsx)(n.Translate,{content:"button.install-monitoring"})})})}),placement:"top-right",visible:r,onClose:()=>this.toggleBuiltInMonitoringPopup(!1),children:[(0,t.jsx)(n.Paragraph,{children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-built-in-monitoring-popup"})}),(0,t.jsx)(n.Button,{onClick:this.handleBuiltInMonitoringActivate,children:(0,t.jsx)(n.Translate,{content:"button.install-monitoring-popup-proceed"})})," ",(0,t.jsx)(n.Button,{onClick:()=>this.toggleBuiltInMonitoringPopup(!1),children:(0,t.jsx)(n.Translate,{content:"button.install-monitoring-popup-cancel"})})]})}),(0,t.jsx)(n.MediaSection,{children:(0,t.jsx)(n.Grid,{children:(0,t.jsx)(n.GridCol,{lg:7,children:(0,t.jsx)(n.Hint,{children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-monitoring-hint"})})})})})]})}):null}render(){const{isLoaded:e}=this.props;return e?[this.renderCloudConnectionPromoBanner(),this.renderBuiltInMonitoringBanner()]:null}}gn.propTypes={isLoaded:n.PropTypes.bool.isRequired,cloudServerIsAttached:n.PropTypes.bool.isRequired,cloudPlatformUrl:n.PropTypes.string.isRequired,onCloudServerConnect:n.PropTypes.func,onCloudMonitoringActivate:n.PropTypes.func,onBuiltInMonitoringActivate:n.PropTypes.func,onClose:n.PropTypes.func},gn.defaultProps={onCloudServerConnect:null,onCloudMonitoringActivate:null,onBuiltInMonitoringActivate:null,onClose:null};const vn=(0,i.connect)((e=>{const{loadingStatus:t,cloudServerIsAttached:n,cloudPlatformUrl:r}=e.app;return{isLoaded:t===b.f.LOADED,cloudServerIsAttached:n,cloudPlatformUrl:r}}))(gn);var En=r(5072),xn=r.n(En),Tn=r(7825),Sn=r.n(Tn),In=r(7659),On=r.n(In),wn=r(5056),Rn=r.n(wn),jn=r(540),Cn=r.n(jn),Pn=r(1113),An=r.n(Pn),Nn=r(5254),Ln={};Ln.styleTagTransform=An(),Ln.setAttributes=Rn(),Ln.insert=On().bind(null,"head"),Ln.domAPI=Sn(),Ln.insertStyleElement=Cn(),xn()(Nn.A,Ln),Nn.A&&Nn.A.locals&&Nn.A.locals;const kn=()=>e=>(e({type:A}),Ht.get("/thresholds/get").then((t=>{t.data?e(Dn(t.data)):e(Qt("text.thresholds-loading-failed"))})).catch((t=>{e(Kt(t))}))),Dn=({values:e,defaults:t})=>n=>n({type:N,values:e,defaults:t}),Mn=(e=null)=>t=>t({type:k,values:e}),Bn=()=>e=>(e({type:M}),Ht.get("/customization/get").then((t=>{t.data?e(Un(t.data)):e(Qt("text.placement-loading-failed"))})).catch((t=>{e(Kt(t))}))),Un=({placement:e,defaults:t})=>n=>n({type:B,placement:e,defaults:t}),Fn=(e=null)=>t=>t({type:F,placement:e}),$n=()=>e=>(e({type:E}),Ht.get("/statistics/get").then((t=>{t.data?e(Gn(t.data)):e(Qt("text.statistics-loading-failed"))})).catch((t=>{e(Kt(t))}))),Gn=e=>t=>t({type:x,dashboards:e.dashboards,panelsMap:e.map,serviceIsRunning:e.service_is_running,grafanaIsRunning:e.grafana_is_running,hardwareConfigUpdated:e.hw_config_updated}),qn=()=>e=>e({type:S}),Wn=()=>e=>e({type:w}),Hn="number",Vn="percent",zn="greater_than";const Yn=e=>{const{size:r,disabled:o,placeholder:i,autoFocus:s,max:a,min:c,step:l,addon:u,className:p,baseClassName:d}=e,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["placeholder","autoFocus","max","min","step","addon","className","baseClassName"]);return f.className=(0,n.classNames)(d,p),(0,t.jsx)(n.FormField,{...f,children:({getId:e,getName:p,getValue:f,setValue:h})=>(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Input,{type:"number",id:e(),name:p(),value:f(""),onChange:e=>h(e.target.value),disabled:o,placeholder:i,autoFocus:s,className:`${d}__input`,size:r,max:a,min:c,step:l}),u?(0,t.jsx)(n.Text,{fontSize:"sm",className:`${d}__addon`,children:u}):null]})})};Yn.propTypes={size:n.PropTypes.oneOf(["sm","md","lg","xl","fill"]),disabled:n.PropTypes.bool,placeholder:n.PropTypes.string,autoFocus:n.PropTypes.bool,max:n.PropTypes.number,min:n.PropTypes.number,step:n.PropTypes.number,addon:n.PropTypes.oneOfType([n.PropTypes.node,n.PropTypes.string]),className:n.PropTypes.string,baseClassName:n.PropTypes.string},Yn.defaultProps={size:void 0,disabled:!1,placeholder:void 0,autoFocus:void 0,max:void 0,min:void 0,step:void 0,addon:null,className:void 0,baseClassName:"pul-form-field-number"};const Jn=Yn;class Xn extends n.Component{constructor(e){super(e),this.state={openedSections:e.isLoaded?this.getOpenedSections():[],enabledPanels:e.isLoaded?this.getEnabledPanels():{},formValues:e.isLoaded?this.parseValues():{},formErrors:{},applyingSettings:!1,applyBtnIsHighlighted:!1},this.formCurrentThresholds=this.filterThresholdsByState(),this.state.defaultsWasApplied=!this.isFormValuesDifferFromDefaults()}componentDidMount(){this.props.loadThresholdsIfFirstOpen()}componentDidUpdate(e){if(!e.isLoaded&&this.props.isLoaded||!e.isOpen&&this.props.isOpen){if(this.state.applyingSettings)return this.setState({applyingSettings:!1}),void this.handleFormClose();this.setState({openedSections:this.getOpenedSections(),enabledPanels:this.getEnabledPanels(),formValues:this.parseValues(),formErrors:{},applyingSettings:!1},(()=>{this.formCurrentThresholds=this.filterThresholdsByState(),this.checkDefaultsWasApplied()}))}}componentWillUnmount(){this.defaultsTO&&clearTimeout(this.defaultsTO)}getOpenedSections=(e=null)=>{const{sections:t,values:n}=this.props;return e=e||n,t.reduce(((t,n)=>n.panels.find((t=>e.hasOwnProperty(t.key)))?t.concat(n.id):t),[])};getEnabledPanels=(e=null)=>{const{sections:t,values:n}=this.props;let r={};return e=e||n,t.forEach((t=>{t.panels.forEach((t=>{r[t.key]=!!e[t.key]}))})),r};parseThreshold(e,t){let{type:n,value:r,target:o,operator:i}=t||{};if(!n||n===Hn)switch(e.format){case un.BYTE:if(n=un.BYTE,r){const e=((e,t)=>{let n=un.BYTE;return t===un.BYTE||e<1024||(e%1024==0&&(e/=1024,n=un.KIB),t===un.KIB||(e%1024==0&&(e/=1024,n=un.MIB),t===un.MIB||e%1024==0&&(e/=1024,n=un.GIB))),{value:e,format:n}})(r);r=e.value,n=e.format}break;case un.USEC:if(n=un.USEC,r){const e=((e,t)=>{let n=un.USEC;return t===un.USEC||e<1e3||(e%1e3==0&&(e/=1e3,n=un.MSEC),t===un.MSEC||e%1e3==0&&(e/=1e3,n=un.SEC)),{value:e,format:n}})(r,un.MSEC);r=e.value,n=e.format}}return{target:o||(e.targets.length>1?"any":e.targets[0]),type:n||Hn,value:r||0,operator:i||zn}}parseValues=(e=null)=>{const{sections:t,values:n}=this.props;let r={};return e=e||n,t.forEach((t=>{t.panels.forEach((t=>{r[t.key]=this.parseThreshold(t,e[t.key])}))})),{thresholds:r}};filterThresholdsByState=(e=null)=>{e||(e=this.state.formValues.thresholds);const{enabledPanels:t}=this.state;let n={};return Object.keys(t).forEach((r=>{if(!e[r]||!t[r])return;const{target:o,operator:i,type:s,value:a}=e[r];n[r]={target:o,operator:i,type:s||Hn,value:a}})),n};applyDefaultValues=()=>{this.setState({openedSections:this.getOpenedSections(this.props.defaults),enabledPanels:this.getEnabledPanels(this.props.defaults),formValues:this.parseValues(this.props.defaults),formErrors:{},defaultsWasApplied:!0},(()=>{this.formCurrentThresholds=this.filterThresholdsByState()}))};isFormValuesDifferFromDefaults=()=>{const{defaults:e}=this.props,t=Object.keys(this.formCurrentThresholds);return t.length!==Object.keys(e).length||!!t.find((t=>{const n=this.prepareThreshold(this.formCurrentThresholds[t]),r=e[t];if(!r||r.target!==n.target||r.operator!==n.operator||r.type!==n.type||r.value!=n.value)return!0}))};prepareThreshold(e){let t={...e};return[un.BYTE,un.KIB,un.MIB,un.GIB].includes(t.type)?(t.value=((e,t)=>{switch(t){case un.KIB:e*=1024;break;case un.MIB:e*=1048576;break;case un.GIB:e*=1073741824}return e})(t.value,t.type),t.type=Hn):[un.USEC,un.MSEC].includes(t.type)&&(t.value=((e,t)=>{switch(t){case un.MSEC:e*=1e3;break;case un.SEC:e*=1e6}return e})(t.value,t.type),t.type=Hn),t}prepareThresholds(e){let t={};return Object.keys(e).forEach((n=>{t[n]=this.prepareThreshold(e[n])})),t}handleFormSubmit=e=>{const{enabledPanels:r}=this.state;let o={},i={};if(r&&e.thresholds){o=this.filterThresholdsByState(e.thresholds);const r=["target","operator","type","value"];Object.keys(o).forEach((e=>{for(let s=0;s<4;++s){const a=r[s],c=o[e];c.hasOwnProperty(a)&&null!=c[a]&&""!==c[a].toString().trim()||(i[e]||(i[e]={}),i[e][a]={isEmpty:(0,t.jsx)(n.Translate,{content:"text.field-is-required"})})}}))}Object.keys(i).length?this.setState({formErrors:{thresholds:i}}):(this.setState({applyingSettings:!0}),this.props.updateThresholds({thresholds:this.prepareThresholds(o)}))};handleRestoreDefaults=()=>{this.state.defaultsWasApplied||(this.applyDefaultValues(),this.setState({applyBtnIsHighlighted:!0},(()=>{this.defaultsTO=setTimeout((()=>{this.setState({applyBtnIsHighlighted:!1}),delete this.defaultsTO}),3e3)})))};checkDefaultsWasApplied=()=>{const{defaultsWasApplied:e}=this.state,t=this.isFormValuesDifferFromDefaults();(t&&e||!t&&!e)&&this.setState({defaultsWasApplied:!e})};handleFormSectionChange=(e,t)=>{t?this.formCurrentThresholds[e]=this.state.formValues.thresholds[e]:delete this.formCurrentThresholds[e],this.checkDefaultsWasApplied()};handleFormFieldChange=(e,t,n)=>{this.formCurrentThresholds[e][t]=n,this.checkDefaultsWasApplied()};handleFormClose=()=>{this.props.pushUrl(Yt.statistics)};renderThresholdInputs=e=>{const r=!!this.state.enabledPanels[e.key];return(0,t.jsxs)("div",{className:`${b.kh}__switch-wrapper`,children:[(0,t.jsx)(n.Checkbox,{checked:r,onChange:t=>{this.state.enabledPanels[e.key]=t,this.handleFormSectionChange(e.key,t),this.setState({enabledPanels:{...this.state.enabledPanels}})},className:`${b.kh}__switch--${e.key}`,children:e.title}),r?(0,t.jsxs)("div",{className:`${b.kh}__switch-inputs`,children:[(0,t.jsxs)(n.FormFieldSelect,{label:null,name:`thresholds[${e.key}][target]`,size:"md",onChange:t=>this.handleFormFieldChange(e.key,"target",t),className:`${b.kh}__input`,required:!0,children:[e.targets.length>1?(0,t.jsx)("option",{value:"any",label:"any",children:(0,t.jsx)(n.Translate,{content:"label.target-any"})}):null,e.targets.map((e=>(0,t.jsx)("option",{label:e,children:e},e)))]}),(0,t.jsxs)(n.FormFieldSelect,{label:null,name:`thresholds[${e.key}][operator]`,size:"sm",onChange:t=>this.handleFormFieldChange(e.key,"operator",t),className:`${b.kh}__input`,children:[(0,t.jsx)("option",{value:"less_than",label:"less than",children:(0,t.jsx)(n.Translate,{content:"label.operator-lt",component:"strong"})}),(0,t.jsx)("option",{value:zn,label:"more than",children:(0,t.jsx)(n.Translate,{content:"label.operator-gt",component:"strong"})})]}),this.renderThresholdValueInput(e)]}):null]},`section-switcher__${e.key}`)};renderThresholdValueInput(e){if(e.format===Vn||0===e.maxValue&&![un.BYTE,un.USEC].includes(e.format)){let r="";return e.formatLabel?r=e.formatLabel:"short"!==e.format&&(r=(0,t.jsx)(n.Translate,{content:"format."+e.format.toLowerCase()})),(0,t.jsx)(Jn,{label:null,name:`thresholds[${e.key}][value]`,addon:r,min:"0",max:e.maxValue||void 0,onChange:t=>this.handleFormFieldChange(e.key,"value",t),className:`${b.kh}__input`,required:!0})}let r=[];if(e.format===un.BYTE)r=[un.BYTE,un.KIB,un.MIB,un.GIB].map((e=>(0,t.jsx)("option",{value:e,label:e,children:(0,t.jsx)(n.Translate,{content:"format."+e.toLowerCase()})})));else if(e.format===un.USEC)r=[un.USEC,un.MSEC].map((e=>(0,t.jsx)("option",{value:e,label:e,children:(0,t.jsx)(n.Translate,{content:"format."+e.toLowerCase()})})));else{let o="";o=e.formatLabel?e.formatLabel:"short"!==e.format?(0,t.jsx)(n.Translate,{content:"format."+e.format.toLowerCase()}):(0,t.jsx)(n.Translate,{content:"format."+Hn}),r.push((0,t.jsx)("option",{value:Hn,label:"number",children:o}))}return e.maxValue>0&&r.push((0,t.jsx)("option",{value:Vn,label:"percent",children:(0,t.jsx)(n.Translate,{content:"format.percent"})})),(0,t.jsxs)("span",{children:[(0,t.jsx)(Jn,{label:null,name:`thresholds[${e.key}][value]`,min:"0",onChange:t=>this.handleFormFieldChange(e.key,"value",t),className:`${b.kh}__input`,size:"sm",required:!0}),(0,t.jsx)(n.FormFieldSelect,{label:null,name:`thresholds[${e.key}][type]`,size:"sm",onChange:t=>this.handleFormFieldChange(e.key,"type",t),className:`${b.kh}__input ${b.kh}__input-type`,children:r})]})}renderFormContent(){const{sections:e,pushUrl:r,baseClassName:o}=this.props,{openedSections:i}=this.state;return e.map((e=>(0,t.jsx)(n.Section,{title:(0,t.jsx)(n.Translate,{content:`panel.${e.id}Title`}),collapsible:!0,collapsed:!i.includes(e.id),className:`${o}__section ${o}__section_${e.id}`,children:e.panels.length?e.panels.map((e=>this.renderThresholdInputs(e))):(0,t.jsxs)(n.Text,{intent:"muted",component:"center",children:[(0,t.jsx)(n.Translate,{content:"text.panels-are-deactivated"}),(0,t.jsx)("br",{}),(0,t.jsx)(n.Translate,{content:"text.panels-are-deactivated-hint",params:{link:(0,t.jsx)(n.Link,{onClick:()=>r(Yt.customization),children:(0,t.jsx)(n.Translate,{content:"button.no-panels-link"})})}})]})},`section__${e.id}`)))}render(){const{baseClassName:e,className:r,isOpen:o,isRequested:i,isApplied:s}=this.props,{formValues:a,formErrors:c,applyingSettings:l,defaultsWasApplied:u,applyBtnIsHighlighted:p}=this.state;return(0,t.jsxs)(n.Drawer,{title:(0,t.jsx)("div",{className:`${e}__title`,children:(0,t.jsx)(n.Translate,{content:"settings.title"})}),subtitle:(0,t.jsx)("div",{className:`${e}__subtitle`,children:(0,t.jsx)(n.Translate,{content:"settings.thresholdsTitle"})}),isOpen:o,onClose:this.handleFormClose,placement:"right",size:"sm",className:(0,n.classNames)(e,r),form:{submitButton:!1,applyButton:{disabled:i,className:p?`${b.kh}__btn--highlighted`:null,children:(0,t.jsx)(n.Translate,{content:"button.apply"})},cancelButton:{disabled:i||l,children:(0,t.jsx)(n.Translate,{content:"button.cancel"})},values:a,errors:c,onSubmit:this.handleFormSubmit,state:s?"apply":null,className:`${e}__form`,hideRequiredLegend:!0,additionalButtons:[(0,t.jsx)(n.Button,{tooltip:(0,t.jsx)(n.Translate,{content:"text.restore-defaults-hint"}),disabled:i||l||u,onClick:this.handleRestoreDefaults,children:(0,t.jsx)(n.Translate,{content:"button.restore-defaults"})})]},children:[(0,t.jsx)("div",{className:`${b.kh}__form-disclaimer`,children:(0,t.jsx)(n.Translate,{content:"text.thresholds-disclamer"})}),i?(0,t.jsx)(n.ContentLoader,{}):this.renderFormContent()]})}}Xn.propTypes={isRequested:n.PropTypes.bool.isRequired,isLoaded:n.PropTypes.bool.isRequired,isApplied:n.PropTypes.bool.isRequired,pushUrl:n.PropTypes.func.isRequired,baseClassName:n.PropTypes.string,className:n.PropTypes.string,isOpen:n.PropTypes.bool,sections:n.PropTypes.array,values:n.PropTypes.object,defaults:n.PropTypes.object},Xn.defaultProps={baseClassName:`${b.kh}__thresholds-drawer`,className:null,isOpen:!1,sections:[],values:{},defaults:{}};const Kn=(0,i.connect)((e=>{const{loadingStatus:t,values:n,defaults:r}=e.thresholds,{statistics:o,customization:i}=e;return{isRequested:o.loadingStatus===b.f.REQUESTED||i.loadingStatus===b.f.REQUESTED||t===b.f.REQUESTED,isLoaded:o.loadingStatus===b.f.LOADED&&i.loadingStatus===b.f.LOADED&&t===b.f.LOADED,isApplied:t===b.f.SUBMITTED,sections:i.placement&&o.panelsMap?(()=>{let e=[];return Object.keys(i.placement).forEach((t=>{"overview"!==t&&e.push({id:t,panels:Object.values(o.panelsMap[t]).filter((e=>i.placement[t].includes(e.key)))})})),e})():[],values:n||{},defaults:i.placement&&r?(()=>{const e=Object.keys(i.placement).reduce(((e,t)=>e.concat(i.placement[t])));return pn(r,e)})():{}}}),(e=>({loadThresholdsIfFirstOpen:()=>e(((e,t)=>{t().thresholds.loadingStatus===b.f.INITIAL&&e(kn())})),updateThresholds:t=>e((e=>t=>(t({type:L,data:e}),Ht.post("/thresholds/update",Gt().stringify(e)).then((()=>{t(Mn(e.thresholds)),t(Xt("text.thresholds-have-been-updated","success")),t($n())})).catch((e=>{t(Kt(e)),t(Mn())}))))(t)),pushUrl:t=>e((0,s.VC)(t))})))(Xn);var Qn=r(3104),Zn={};Zn.styleTagTransform=An(),Zn.setAttributes=Rn(),Zn.insert=On().bind(null,"head"),Zn.domAPI=Sn(),Zn.insertStyleElement=Cn(),xn()(Qn.A,Zn),Qn.A&&Qn.A.locals&&Qn.A.locals;class er extends n.Component{constructor(e){super(e),this.state={params:e.isLoaded?this.parseParams():[],inactivePanels:e.isLoaded?this.parseInactivePanels():[],savingSettings:!1,submitBtnIsHighlighted:!1,reordering:!1},this.state.defaultsWasApplied=!this.isFormValuesDifferFromDefaults()}componentDidMount(){this.props.loadCustomizationIfFirstOpen()}componentDidUpdate(e){if(!e.isLoaded&&this.props.isLoaded||!e.isOpen&&this.props.isOpen){if(this.state.savingSettings)return this.setState({savingSettings:!1}),void this.handleFormClose();this.setState({params:this.parseParams(),inactivePanels:this.parseInactivePanels(),savingSettings:!1,reordering:!1},(()=>{this.checkDefaultsWasApplied()}))}}componentWillUnmount(){this.defaultsTO&&clearTimeout(this.defaultsTO)}parseParams=(e=null)=>{const{placement:t,panels:n}=this.props,r=(e=e||t).overview||[];return Object.keys(e).map((t=>({id:t,panels:e[t].map((e=>({key:e,title:n[e].title,starred:r.indexOf(e)>=0}))),reorderable:!1})))};parseInactivePanels=(e=null)=>{const{placement:t,panels:n}=this.props;e=e||t;const r=Object.keys(e).reduce(((t,n)=>t.concat(e[n])),[]);let o=[];return Object.keys(n).forEach((e=>{r.indexOf(e)<0&&o.push({...n[e]})})),o};applyDefaultValues(){this.setState({params:this.parseParams(this.props.defaultPlacement),inactivePanels:this.parseInactivePanels(this.props.defaultPlacement),defaultsWasApplied:!0})}isFormValuesDifferFromDefaults(){const{defaultPlacement:e}=this.props,{params:t}=this.state;return Object.keys(e).length!==t.length||!!Object.keys(e).find((n=>{const r=t.find((e=>e.id===n));return e[n].length!==r.panels.length||!!e[n].find(((e,t)=>!r.panels[t]||e!==r.panels[t].key))}))}handleFormSubmit=()=>{const{params:e}=this.state;let t={};e.forEach((e=>{t[e.id]=e.panels.map((e=>e.key))})),this.setState({savingSettings:!0}),this.props.updateCustomization({placement:t})};handleRestoreDefaults=()=>{this.state.defaultsWasApplied||(this.applyDefaultValues(),this.setState({submitBtnIsHighlighted:!0},(()=>{this.defaultsTO=setTimeout((()=>{this.setState({submitBtnIsHighlighted:!1}),delete this.defaultsTO}),3e3)})))};checkDefaultsWasApplied(){const{defaultsWasApplied:e}=this.state,t=this.isFormValuesDifferFromDefaults();(t&&e||!t&&!e)&&this.setState({defaultsWasApplied:!e})}handleFormClose=()=>{this.props.pushUrl(Yt.statistics)};handleSectionReorder=e=>{const{params:t}=this.state,n=t.find((t=>t.id===e));n.reorderable=!n.reorderable,this.setState({params:[...t],reordering:n.reorderable})};handleSectionReorderEnd=({oldIndex:e,newIndex:t},n)=>{const{params:r}=this.state,o=r.find((e=>e.id===n)),i=o.panels.splice(e,1)[0];o.panels.splice(t,0,i),this.setState({params:[...r]},(()=>{this.checkDefaultsWasApplied()}))};handlePanelStarred=e=>{let{params:t}=this.state;t.forEach((n=>{const r=n.panels.findIndex((t=>t.key===e));if(r<0)return;let o=n.panels[r];const i=!o.starred;"overview"!==n.id||i?(o.starred=i,i&&t.find((e=>"overview"===e.id)).panels.push({...o})):n.panels.splice(r,1)})),this.setState({params:[...t]},(()=>{this.checkDefaultsWasApplied()}))};handlePanelDeactivated=(e,t)=>{const{params:n,inactivePanels:r}=this.state;let o=n.find((t=>t.id===e));const i=o.panels.findIndex((e=>e.key===t)),s=o.panels.splice(i,1)[0];this.setState({params:[...n],inactivePanels:[...r,{...s,sectionId:e}]},(()=>{this.checkDefaultsWasApplied()}))};handlePanelActivated=e=>{const{params:t,inactivePanels:n}=this.state,r=n.findIndex((t=>t.key===e)),o=n.splice(r,1)[0],i=o.sectionId;delete o.sectionId,t.find((e=>e.id===i)).panels.push({...o}),this.setState({params:[...t],inactivePanels:[...n]},(()=>{this.checkDefaultsWasApplied()}))};renderSectionContent(e){return(0,t.jsx)(n.ItemList,{gap:"xs",minColumnWidth:220,maxColumnsNumber:2,reorderable:e.reorderable,onReorderEnd:t=>this.handleSectionReorderEnd(t,e.id),children:e.panels.map((r=>(0,t.jsx)(n.Item,{view:"card",children:e.reorderable?r.title:(0,t.jsxs)(n.Toolbar,{children:[(0,t.jsx)(n.Text,{fontSize:"md",children:r.title}),(0,t.jsx)(n.ToolbarExpander,{}),(0,t.jsx)(n.Button,{ghost:!0,tooltip:r.starred?(0,t.jsx)(n.Translate,{content:"text.panels-management-overview-remove-from-hint"}):(0,t.jsx)(n.Translate,{content:"text.panels-management-overview-add-to-hint"}),onClick:()=>this.handlePanelStarred(r.key),children:(0,t.jsx)(n.Icon,{name:r.starred?"star-filled":"star",intent:r.starred?"warning":"inactive"})}),"overview"!==e.id?(0,t.jsx)(n.Button,{ghost:!0,tooltip:(0,t.jsx)(n.Translate,{content:"text.panels-management-deactivate"}),onClick:()=>this.handlePanelDeactivated(e.id,r.key),disabled:r.starred,children:(0,t.jsx)(n.Icon,{name:"circle-diagonal",intent:"inactive"})}):null]})},r.key)))},`list__${e.id}${e.reorderable?"_r":""}`)}renderInactiveSectionContent(){return(0,t.jsx)(n.ItemList,{gap:"xs",minColumnWidth:220,maxColumnsNumber:2,children:this.state.inactivePanels.map((e=>(0,t.jsx)(n.Item,{view:"card",children:(0,t.jsxs)(n.Toolbar,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Text,{component:"div",fontSize:"md",children:e.title}),(0,t.jsx)(n.Text,{component:"div",intent:"muted",fontSize:"sm",children:(0,t.jsx)(n.Translate,{content:`panel.${e.sectionId}Title`})})]}),(0,t.jsx)(n.ToolbarExpander,{}),(0,t.jsx)(n.Button,{ghost:!0,tooltip:(0,t.jsx)(n.Translate,{content:"text.panels-management-activate"}),onClick:()=>this.handlePanelActivated(e.key),children:(0,t.jsx)(n.Icon,{name:"deploy",intent:"inactive"})})]})},e.key)))},"list__inactive")}renderSections(){const{baseClassName:e}=this.props;return this.state.params.map((r=>(0,t.jsx)(n.Section,{title:(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Translate,{content:`panel.${r.id}Title`})," ",r.panels.length?(0,t.jsx)(n.Button,{ghost:!0,onClick:()=>this.handleSectionReorder(r.id),children:r.reorderable?(0,t.jsxs)(n.Text,{intent:"success",children:[(0,t.jsx)(n.Icon,{name:"check-mark",size:"12"})," ",(0,t.jsx)(n.Translate,{content:"button.complete-the-arrangement"})]}):(0,t.jsxs)(n.Text,{intent:"muted",children:[(0,t.jsx)(n.Icon,{name:"arrows-four-directions",size:"12"})," ",(0,t.jsx)(n.Translate,{content:"button.rearrange"})]})}):null]}),intent:"overview"===r.id?"warning":"",className:(0,n.classNames)(`${e}__${r.id}-section`,{[`${e}__section--locked`]:this.state.reordering&&!r.reorderable}),children:r.panels.length?this.renderSectionContent(r):(0,t.jsx)(n.Text,{intent:"muted",component:"center",children:(0,t.jsx)(n.Translate,{content:"text.panels-are-deactivated"})})},`section__${r.id}`)))}renderInactiveSection(){const{baseClassName:e}=this.props;return(0,t.jsx)(n.Section,{title:(0,t.jsx)(n.Translate,{content:"text.inactive-panels"}),intent:"inactive",className:(0,n.classNames)(`${e}__inactive-section`,{[`${e}__section--locked`]:this.state.reordering}),children:this.state.inactivePanels.length?this.renderInactiveSectionContent():(0,t.jsx)(n.Text,{intent:"muted",component:"center",children:(0,t.jsx)(n.Translate,{content:"text.no-contents"})})},"section__inactive")}render(){const{isOpen:e,isRequested:r,isSaved:o,baseClassName:i}=this.props,{savingSettings:s,defaultsWasApplied:a,submitBtnIsHighlighted:c,reordering:l}=this.state;return(0,t.jsxs)(n.Drawer,{title:(0,t.jsx)(n.Translate,{content:"settings.title"}),subtitle:(0,t.jsx)(n.Translate,{content:"settings.panelsManagementTitle"}),isOpen:e,onClose:this.handleFormClose,placement:"right",size:"sm",className:`${i}__drawer`,form:{submitButton:{disabled:r||l,className:c?`${b.kh}__btn--highlighted`:null,children:(0,t.jsx)(n.Translate,{content:"button.submit"})},applyButton:!1,cancelButton:{disabled:r||s,children:(0,t.jsx)(n.Translate,{content:"button.cancel"})},onSubmit:this.handleFormSubmit,state:o?"submit":null,className:`${i}__form`,hideRequiredLegend:!0,additionalButtons:[(0,t.jsx)(n.Button,{tooltip:(0,t.jsx)(n.Translate,{content:"text.restore-panels-default-placement-hint"}),disabled:r||s||a||l,onClick:this.handleRestoreDefaults,children:(0,t.jsx)(n.Translate,{content:"button.restore-defaults"})})]},children:[(0,t.jsx)("div",{className:`${b.kh}__form-disclaimer`,children:(0,t.jsx)(n.Translate,{content:"text.panels-management-hint"})}),r?(0,t.jsx)(n.ContentLoader,{}):this.renderSections(),r?null:this.renderInactiveSection()]})}}er.propTypes={isRequested:n.PropTypes.bool.isRequired,isLoaded:n.PropTypes.bool.isRequired,isSaved:n.PropTypes.bool.isRequired,pushUrl:n.PropTypes.func.isRequired,isOpen:n.PropTypes.bool,panels:n.PropTypes.object,placement:n.PropTypes.object,defaultPlacement:n.PropTypes.object,baseClassName:n.PropTypes.string},er.defaultProps={isOpen:!1,panels:{},placement:{},defaultPlacement:{},baseClassName:`${b.kh}__customization`};const tr=(0,i.connect)((e=>{const{loadingStatus:t,placement:n,defaults:r}=e.customization,{statistics:o}=e,i=o.panelsMap?Object.keys(o.panelsMap).reduce(((e,t)=>(Object.keys(o.panelsMap[t]).forEach((n=>{e[n]={...o.panelsMap[t][n],sectionId:t}})),e)),{}):{},s=e=>{let t={};return Object.keys(e).forEach((n=>{t[n]=e[n].filter((e=>!!i[e]))})),t};return{isRequested:o.loadingStatus===b.f.REQUESTED||t===b.f.REQUESTED,isLoaded:o.loadingStatus===b.f.LOADED&&t===b.f.LOADED,isSaved:t===b.f.SUBMITTED,panels:i,placement:n?s(n):{},defaultPlacement:r?s(r):{}}}),(e=>({loadCustomizationIfFirstOpen:()=>e(((e,t)=>{t().customization.loadingStatus===b.f.INITIAL&&e(Bn())})),updateCustomization:t=>e((e=>t=>(t({type:U,data:e}),Ht.post("/customization/update",Gt().stringify(e)).then((()=>{t(Fn(e.placement)),t(Xt("text.panels-placement-has-been-updated","success")),t($n()),t(kn())})).catch((e=>{t(Kt(e)),t(Fn())}))))(t)),pushUrl:t=>e((0,s.VC)(t))})))(er),nr=({resctrl_is_installed:e,resctrl_is_licensed:t,resctrl_is_enabled:n,cs_are_integrated:r,cs_comparison_is_enabled:o,cs_comparison_list:i,cs_comparison_full_list:s})=>a=>a({type:q,resctrlIsInstalled:e,resctrlIsLicensed:t,resctrlIsEnabled:n,csAreIntegrated:r,csComparisonIsEnabled:o,csComparisonList:i,csComparisonFullList:s}),rr=(e=null,t=null,n=null,r=null)=>o=>o({type:H,resctrlIsEnabled:e,csAreIntegrated:t,csComparisonIsEnabled:n,csComparisonList:r});class or extends n.Component{constructor(e){super(e),this.state={formValues:e.isLoaded?this.parseValues():{},formErrors:{},savingSettings:!1,resctrlCheckboxIsChecked:e.isLoaded&&e.resctrlIsEnabled,csIntegrationCheckboxIsChecked:e.isLoaded&&e.csAreIntegrated,csComparisonCheckboxIsChecked:e.isLoaded&&e.csComparisonIsEnabled}}handleFormClose=()=>{this.props.pushUrl(Yt.statistics)};componentDidMount(){this.props.loadSubscriptionsIfFirstOpen()}componentDidUpdate(e){if(!e.isLoaded&&this.props.isLoaded||!e.isOpen&&this.props.isOpen){if(this.state.savingSettings&&(e.resctrlIsEnabled!==this.props.resctrlIsEnabled||e.csAreIntegrated!==this.props.csAreIntegrated||e.csComparisonIsEnabled!==this.props.csComparisonIsEnabled||!dn(e.csComparisonList,this.props.csComparisonList)))return void this.handleFormClose();this.setState({formValues:this.parseValues(),savingSettings:!1,resctrlCheckboxIsChecked:this.props.resctrlIsEnabled,csIntegrationCheckboxIsChecked:this.props.csAreIntegrated,csComparisonCheckboxIsChecked:this.props.csComparisonIsEnabled})}}parseValues=()=>({resctrl_is_enabled:this.props.resctrlIsEnabled,cs_are_integrated:this.props.csAreIntegrated,cs_comparison_is_enabled:this.props.csComparisonIsEnabled,cs_comparison_list:this.props.csComparisonList.map((e=>e.toString()))});fixFormValues=e=>{const t=Object.assign({},e);return t.resctrl_is_enabled||(t.cs_are_integrated=!1,t.cs_comparison_is_enabled=!1),t.cs_comparison_list=t.cs_comparison_is_enabled?t.cs_comparison_list.map((e=>parseInt(e))):[],t};validateFormValues=e=>{let r=!0,o={};return e.cs_comparison_is_enabled&&(e.cs_comparison_list.length?e.cs_comparison_list.length>10&&(o.cs_comparison_list={tooBig:(0,t.jsx)(n.Translate,{content:"text.field-too-many-values"})},r=!1):(o.cs_comparison_list={isEmpty:(0,t.jsx)(n.Translate,{content:"text.field-is-required"})},r=!1)),r||this.setState({formErrors:o}),r};isSomethingChanged=e=>{const{resctrlIsEnabled:t,csAreIntegrated:n,csComparisonIsEnabled:r,csComparisonList:o}=this.props;return e.resctrl_is_enabled!==t||e.cs_are_integrated!==n||e.cs_comparison_is_enabled!==r||!dn(e.cs_comparison_list,o)};handleResctrlCheckboxChange=e=>{this.setState({resctrlCheckboxIsChecked:e,formErrors:{}})};handleCsIntegrationCheckboxChange=e=>{this.setState({csIntegrationCheckboxIsChecked:e,formErrors:{}})};handleCsComparisonCheckboxChange=e=>{this.setState({csComparisonCheckboxIsChecked:e,formErrors:{}})};handleCsComparisonListChange=e=>{let{formErrors:r}=this.state,o=!1;e.length>10?r.cs_comparison_list&&r.cs_comparison_list.tooBig||(r.cs_comparison_list={tooBig:(0,t.jsx)(n.Translate,{content:"text.field-too-many-values"})},o=!0):r.cs_comparison_list&&(delete r.cs_comparison_list,o=!0),o&&this.setState({formErrors:{...r}})};handleFormSubmit=e=>{const t=this.fixFormValues(e);if(!this.validateFormValues(t))return!1;this.isSomethingChanged(t)?(this.setState({savingSettings:!0,formErrors:{}}),this.props.updateSubscriptions(t)):(this.setState({formErrors:{}}),this.handleFormClose())};renderFormContent(){const{resctrlIsInstalled:e,resctrlIsLicensed:r,csComparisonFullList:o,baseClassName:i}=this.props,{resctrlCheckboxIsChecked:s,csComparisonCheckboxIsChecked:a}=this.state,c=!e||!r,l=0===Object.keys(o).length;return(0,t.jsxs)(n.Section,{children:[(0,t.jsx)(n.FormFieldCheckbox,{name:"resctrl_is_enabled",disabled:c,label:(0,t.jsx)(n.Translate,{content:"label.cgroups-manager-integration-switch"}),description:(0,t.jsx)(n.Translate,{content:"text.cgroups-manager-integration-hint"}),onChange:this.handleResctrlCheckboxChange,className:`${i}__integration-switch`}),(0,t.jsx)(n.FormFieldCheckbox,{name:"cs_are_integrated",disabled:c||!s,label:(0,t.jsx)(n.Translate,{content:"label.customers-subscriptions-switch"}),description:(0,t.jsx)(n.Translate,{content:"text.customers-subscriptions-hint"}),onChange:this.handleCsIntegrationCheckboxChange,className:`${i}__subscriptions-switch`}),(0,t.jsx)(n.FormFieldCheckbox,{name:"cs_comparison_is_enabled",disabled:c||!s||l,label:(0,t.jsx)(n.Translate,{content:"label.subscriptions-comparison-switch"}),onChange:this.handleCsComparisonCheckboxChange,description:[(0,t.jsx)(n.Translate,{content:"text.subscriptions-comparison-hint"}),(0,t.jsx)(n.FormFieldSelect,{name:"cs_comparison_list",disabled:c||!s||!a,label:null,multiple:!0,searchable:!0,required:!0,size:"fill",placeholder:(0,t.jsx)(n.Translate,{content:"text.subscriptions-comparison-list-placeholder"}),onChange:this.handleCsComparisonListChange,className:`${i}__comparison-list`,children:Object.keys(o).map((e=>(0,t.jsx)("option",{value:e,children:o[e]})))}),l?(0,t.jsxs)(n.Text,{intent:"warning",children:[(0,t.jsx)(n.Icon,{name:"triangle-exclamation-mark-filled"})," ",(0,t.jsx)(n.Translate,{content:"text.subscriptions-comparison-list-alert"})]}):null],className:`${i}__comparison-switch`})]})}render(){const{isOpen:e,isRequested:r,isSaved:o,resctrlIsInstalled:i,resctrlIsLicensed:s,baseClassName:a}=this.props,{formValues:c,formErrors:l,savingSettings:u}=this.state;return(0,t.jsxs)(n.Drawer,{title:(0,t.jsx)("div",{className:`${a}__title`,children:(0,t.jsx)(n.Translate,{content:"settings.title"})}),subtitle:(0,t.jsx)("div",{className:`${a}__subtitle`,children:(0,t.jsx)(n.Translate,{content:"settings.subscriptionsMonitoringTitle"})}),isOpen:e,onClose:this.handleFormClose,placement:"right",size:"sm",className:a,form:{submitButton:{disabled:r||u,children:(0,t.jsx)(n.Translate,{content:"button.submit"})},applyButton:!1,cancelButton:{disabled:r,children:(0,t.jsx)(n.Translate,{content:"button.cancel"})},values:c,errors:l,onSubmit:this.handleFormSubmit,state:o?"submit":null,className:`${a}__form`,hideRequiredLegend:!0},children:[(0,t.jsx)("div",{className:`${b.kh}__form-disclaimer`,children:(0,t.jsx)(n.Translate,{content:"text.subscriptions-monitoring-hint"})}),r?(0,t.jsx)(n.ContentLoader,{}):[i?null:(0,t.jsx)(n.Alert,{intent:"warning",children:(0,t.jsx)(n.Translate,{content:"text.cgroups-manager-component-warning",params:{link:(0,t.jsx)(n.Link,{href:Yt.componentsInstallation,target:"_blank",children:(0,t.jsx)(n.Translate,{content:"button.components-installation-link"})})}})}),s?null:(0,t.jsx)(n.Alert,{intent:"warning",children:(0,t.jsx)(n.Translate,{content:"text.cgroups-manager-license-warning",params:{link:(0,t.jsx)(n.Link,{href:Yt.cgroupsManagerLicense,target:"_blank",children:(0,t.jsx)(n.Translate,{content:"button.cgroups-manager-license-link"})})}})}),this.renderFormContent()]]})}}or.propTypes={isRequested:n.PropTypes.bool.isRequired,isLoaded:n.PropTypes.bool.isRequired,isSaved:n.PropTypes.bool.isRequired,resctrlIsInstalled:n.PropTypes.bool.isRequired,resctrlIsLicensed:n.PropTypes.bool.isRequired,resctrlIsEnabled:n.PropTypes.bool.isRequired,csAreIntegrated:n.PropTypes.bool.isRequired,csComparisonIsEnabled:n.PropTypes.bool.isRequired,csComparisonList:n.PropTypes.arrayOf(n.PropTypes.string),csComparisonFullList:n.PropTypes.object,pushUrl:n.PropTypes.func.isRequired,isOpen:n.PropTypes.bool,baseClassName:n.PropTypes.string},or.defaultProps={isOpen:!1,baseClassName:`${b.kh}__subscriptions-drawer`,csComparisonList:[],csComparisonFullList:{}};const ir=(0,i.connect)((e=>{const{loadingStatus:t,resctrlIsInstalled:n,resctrlIsLicensed:r,resctrlIsEnabled:o,csAreIntegrated:i,csComparisonIsEnabled:s,csComparisonList:a,csComparisonFullList:c}=e.subscriptions;return{isRequested:t===b.f.REQUESTED,isLoaded:t===b.f.LOADED,isSaved:t===b.f.SUBMITTED,resctrlIsInstalled:!!n,resctrlIsLicensed:!!r,resctrlIsEnabled:!!o,csAreIntegrated:!!i,csComparisonIsEnabled:!!s,csComparisonList:a||[],csComparisonFullList:c||{}}}),(e=>({loadSubscriptionsIfFirstOpen:()=>e(((e,t)=>{t().subscriptions.loadingStatus===b.f.INITIAL&&e((e=>(e({type:G}),Ht.get("/subscriptions/get").then((t=>{t.data?e(nr(t.data)):e(Qt("text.subscriptions-loading-failed"))})).catch((t=>{e(Kt(t))})))))})),updateSubscriptions:t=>e((e=>(t,n)=>(t({type:W,data:e}),Ht.post("/subscriptions/update",Gt().stringify(e)).then((r=>{r.data.resctrl_was_updated?t(Xt("text.subscriptions-have-been-updated","success")):t(Xt("text.subscriptions-have-not-been-updated","warning",7e3));const{subscriptions:o}=n();t(rr(r.data.resctrl_was_updated?e.resctrl_is_enabled:null,e.cs_are_integrated,e.cs_comparison_is_enabled,e.cs_comparison_list||[])),o.csComparisonIsEnabled===e.cs_comparison_is_enabled&&dn(o.csComparisonList,e.cs_comparison_list||[])||t($n())})).catch((e=>{t(Kt(e)),t(rr())}))))(t)),pushUrl:t=>e((0,s.VC)(t))})))(or),sr=({dashboard_interval:e})=>t=>t({type:Y,dashboardInterval:e}),ar=(e=null)=>t=>t({type:X,dashboardInterval:e});class cr extends n.Component{constructor(e){super(e),this.state={formValues:e.isLoaded?this.parseValues():{},formErrors:{},savingSettings:!1}}handleFormClose=()=>{this.props.pushUrl(Yt.statistics)};componentDidMount(){this.props.loadParametersIfFirstOpen()}componentDidUpdate(e){if(!e.isLoaded&&this.props.isLoaded||!e.isOpen&&this.props.isOpen){if(this.state.savingSettings&&e.dashboardInterval!==this.props.dashboardInterval)return void this.handleFormClose();this.setState({formValues:this.parseValues(),savingSettings:!1})}}parseValues=()=>{const{dashboardInterval:e}=this.props,t=e?(e=>{let t=un.MIN;return e<60||e%60==0&&(e/=60,t=un.HOUR,e%24==0&&(e/=24,t=un.DAY)),{value:e,format:t}})(e):{};return{dashboard_interval_pair:[t.value,t.format]}};fixFormValues=e=>{let t=Object.assign({},e);return t.dashboard_interval_pair[0]&&t.dashboard_interval_pair[1]&&(t.dashboard_interval=((e,t)=>{switch(t){case un.HOUR:e*=60;break;case un.DAY:e*=1440}return e})(t.dashboard_interval_pair[0],t.dashboard_interval_pair[1]),delete t.dashboard_interval_pair),t};validateFormValues=e=>{let r=!0,o={};return e.dashboard_interval||(o.dashboard_interval_pair={isEmpty:(0,t.jsx)(n.Translate,{content:"text.field-is-required"})},r=!1),r||this.setState({formErrors:o}),r};isSomethingChanged=e=>{const{dashboardInterval:t}=this.props;return e.dashboard_interval!==t};handleFormSubmit=e=>{const t=this.fixFormValues(e);if(!this.validateFormValues(t))return!1;this.isSomethingChanged(t)?(this.setState({savingSettings:!0,formErrors:{}}),this.props.updateParameters(t)):(this.setState({formErrors:{}}),this.handleFormClose())};renderFormContent(){return(0,t.jsx)(n.Section,{children:(0,t.jsx)(n.FormField,{name:"dashboard_interval_pair",label:(0,t.jsx)(n.Translate,{content:"label.dashboard-default-interval"}),description:(0,t.jsx)(n.Translate,{content:"label.dashboard-default-interval-hint"}),children:({getValue:e,setValue:r})=>[(0,t.jsx)(n.InputNumber,{value:e()?e()[0]:void 0,onChange:t=>r([t,e()[1]]),min:1})," ",(0,t.jsx)(n.Select,{value:e()?e()[1]:void 0,onChange:t=>r([e()[0],t]),size:"sm",children:[un.MIN,un.HOUR,un.DAY].map((e=>(0,t.jsx)(n.SelectOption,{value:e,label:e,children:(0,t.jsx)(n.Translate,{content:"format."+e.toLowerCase()})})))})]})})}render(){const{isOpen:e,isRequested:r,isSaved:o,baseClassName:i}=this.props,{formValues:s,formErrors:a,savingSettings:c}=this.state;return(0,t.jsxs)(n.Drawer,{title:(0,t.jsx)(n.Translate,{content:"settings.title"}),subtitle:(0,t.jsx)(n.Translate,{content:"settings.parametersMonitoringTitle"}),isOpen:e,onClose:this.handleFormClose,placement:"right",size:"sm",className:`${i}__drawer`,form:{submitButton:{disabled:r||c,children:(0,t.jsx)(n.Translate,{content:"button.submit"})},applyButton:!1,cancelButton:{disabled:r,children:(0,t.jsx)(n.Translate,{content:"button.cancel"})},values:s,errors:a,onSubmit:this.handleFormSubmit,state:o?"submit":null,className:`${i}__form`,hideRequiredLegend:!0},children:[(0,t.jsx)("div",{className:`${b.kh}__form-disclaimer`,children:(0,t.jsx)(n.Translate,{content:"text.monitoring-parameters-hint"})}),r?(0,t.jsx)(n.ContentLoader,{}):this.renderFormContent()]})}}cr.propTypes={isRequested:n.PropTypes.bool.isRequired,isLoaded:n.PropTypes.bool.isRequired,isSaved:n.PropTypes.bool.isRequired,dashboardInterval:n.PropTypes.number.isRequired,pushUrl:n.PropTypes.func.isRequired,isOpen:n.PropTypes.bool,baseClassName:n.PropTypes.string},cr.defaultProps={isOpen:!1,baseClassName:`${b.kh}__parameters`};const lr=(0,i.connect)((e=>{const{loadingStatus:t,dashboardInterval:n}=e.parameters;return{isRequested:t===b.f.REQUESTED,isLoaded:t===b.f.LOADED,isSaved:t===b.f.SUBMITTED,dashboardInterval:n}}),(e=>({loadParametersIfFirstOpen:()=>e(((e,t)=>{t().parameters.loadingStatus===b.f.INITIAL&&e((e=>(e({type:z}),Ht.get("/parameters/get").then((t=>{t.data?e(sr(t.data)):e(Qt("text.parameters-loading-failed"))})).catch((t=>{e(Kt(t))})))))})),updateParameters:t=>e((e=>t=>(t({type:J,data:e}),Ht.post("/parameters/update",Gt().stringify(e)).then((()=>{t(ar(e.dashboard_interval)),t(Xt("text.parameters-have-been-updated","success")),t($n())})).catch((e=>{t(Kt(e)),t(ar())}))))(t)),pushUrl:t=>e((0,s.VC)(t))})))(cr),ur=e=>{e/=1e3;const r=Math.floor(e/86400);if(r>0)return(0,t.jsxs)("span",{children:[r," ",(0,t.jsx)(n.Translate,{content:"text.days-short"})]});const o=Math.floor(e/3600);if(o>0)return(0,t.jsxs)("span",{children:[o," ",(0,t.jsx)(n.Translate,{content:"text.hours-short"})]});const i=Math.floor(e/60);if(i>0)return(0,t.jsxs)("span",{children:[i," ",(0,t.jsx)(n.Translate,{content:"text.minutes-short"})]});const s=Math.floor(e);return(0,t.jsxs)("span",{children:[s," ",(0,t.jsx)(n.Translate,{content:"text.seconds-short"})]})},pr=e=>{const{interval:r}=e;return null===r?(0,t.jsx)(n.Translate,{content:"text.never"}):r<1e3?(0,t.jsx)(n.Translate,{content:"text.just-now"}):r>2592e6?(0,t.jsx)(n.Translate,{content:"text.long-ago"}):(0,t.jsx)(n.Translate,{content:"text.interval-ago",params:{interval:ur(r)}})};pr.defaultProps={interval:null};const dr=pr;var fr=r(6246),hr=r.n(fr);const _r=`${b.Kf}/nothing-to-display.png`;class mr extends n.Component{constructor(e){super(e),this.state={isInitiated:e.isLoaded,openedSection:null,sections:null!==e.dashboards?this.generateSections():[],savingNoticeIsVisible:!e.savingNoticeIsHidden,subscriptionsTourIsVisible:!e.subscriptionsTourIsHidden,subscriptionsTourStep:e.subscriptionsTourIsHidden?void 0:e.showSubscriptionsMonitoring?2:0},this.markedOpenedTabs={},this.subscriptionsTour=e.resctrlIsSupported&&!e.subscriptionsTourIsHidden&&hr().compare(n.version,"2.7.0",">=")?r(5775).A:null}componentDidMount(){this.props.isLoaded?this.reloginAccount():this.props.loadStatisticsIfFirstOpen()}componentDidUpdate(e){if(!e.isLoaded&&this.props.isLoaded){const e=this.generateSections(),t=e.map((e=>e.name));this.setState({isInitiated:!0,openedSection:this.calculateOpenedSection(t),sections:e},(()=>{this.props.grafanaIsRunning&&this.reloginAccount()}))}else!e.grafanaIsRunning&&this.props.grafanaIsRunning&&this.reloginAccount();!e.showSubscriptionsMonitoring&&this.props.showSubscriptionsMonitoring&&this.state.subscriptionsTourIsVisible&&this.setState({subscriptionsTourStep:2})}generateSections(){const{dashboards:e}=this.props;return Object.keys(e).map((t=>{const{url:n,meta:r}=e[t],o=r.panels&&r.panels.total>0;return{name:t,url:o?n:null,pollAttempts:0,height:o?70+40*r.height:null,checked:!o,ready:!o,loaded:!o}}))}reloginAccount=()=>{Ft.request({url:"/modules/grafana/relogin",maxRedirects:0}).finally((()=>{this.state.sections.forEach(((e,t)=>{this.pollUrlOfTheSection(t)}))}))};pollUrlOfTheSection(e){let{sections:t}=this.state;if(!t[e])return;let n=t[e];n.pollAttempts++,Ft.request({url:n.url,maxRedirects:0,timeout:5e3}).then((t=>{this.setSectionChecked(e)})).catch((t=>{n.pollAttempts<5?setTimeout((()=>{this.pollUrlOfTheSection(e)}),2e3):this.setSectionChecked(e)})),this.setState({sections:[...t]})}setSectionChecked(e){let{sections:t}=this.state;if(t[e].checked=!0,!t.find((e=>e.ready&&!e.loaded))){let e=t.find((e=>e.checked&&!e.ready));e&&(e.ready=!0)}this.setState({sections:[...t]})}sectionLoadHandler=e=>{let{sections:t}=this.state;t.find((t=>t.name===e)).loaded=!0;let n=t.find((e=>e.checked&&!e.ready));n&&(n.ready=!0),this.setState({sections:[...t]}),this.state.openedSection===e&&this.markTabIsOpened(e)};sectionActivateHandler=e=>{this.setState({openedSection:e}),window.location.hash=e,this.state.sections.find((t=>t.name===e)).loaded&&this.markTabIsOpened(e)};savingNoticeCloseHandler=()=>{this.setState({savingNoticeIsVisible:!1}),this.props.hideSavingNotice()};handleTryCloudMonitoringClick=()=>{this.props.showCloudConnectionPromo(),this.props.trackClickUAT(b.i2.SWITCH_TO_360_MENU)};markTabIsOpened=e=>{this.markedOpenedTabs[e]||(this.markedOpenedTabs[e]=!0,this.props.noticeTabIsOpened(e))};calculateOpenedSection=e=>{const{openedSection:t}=this.state;if(t&&e.includes(t))return t;const n=window.location.hash.substring(1);return e.includes(n)?n:e[0]};renderFixServiceButton(){const{serviceFixIsRequested:e,startService:r}=this.props;return(0,t.jsxs)(n.Alert,{intent:"danger",children:[(0,t.jsx)(n.Icon,{name:"triangle-exclamation-mark"})," ",(0,t.jsx)(n.Translate,{content:"text.service-is-not-running-warning"})," ",(0,t.jsx)(n.Button,{intent:"default",icon:"circle-check-mark",onClick:r,state:e?"loading":"",children:(0,t.jsx)(n.Translate,{content:"button.start-service"})})]})}renderFixGrafanaButton(){const{grafanaFixIsRequested:e,startGrafana:r}=this.props;return(0,t.jsxs)(n.Alert,{intent:"danger",children:[(0,t.jsx)(n.Icon,{name:"triangle-exclamation-mark"})," ",(0,t.jsx)(n.Translate,{content:"text.grafana-is-not-running-error"})," ",(0,t.jsx)(n.Button,{intent:"default",icon:"circle-check-mark",onClick:r,state:e?"loading":"",children:(0,t.jsx)(n.Translate,{content:"button.start-grafana"})})]})}renderSavingNotice(){return(0,t.jsxs)(n.Alert,{intent:"info",onClose:()=>this.savingNoticeCloseHandler(),className:`${b.kh}__alert-saving`,children:[(0,t.jsx)(n.Icon,{name:"circle-exclamation-mark"})," ",(0,t.jsx)(n.Translate,{content:"text.notice-about-saving"})]})}handleOpenSettings=()=>{this.props.onSettingsOpen(),this.state.subscriptionsTourIsVisible&&this.setState({subscriptionsTourStep:0===this.state.subscriptionsTourStep?1:void 0})};handleFinishSubscriptionsTour=()=>{this.props.hideSubscriptionsTour(),this.setState({subscriptionsTourIsVisible:!1,subscriptionsTourStep:void 0})};renderSettingsButton(){const{pushUrl:e,detectHardwareChanges:r,hardwareChangesDetecting:o,hardwareConfigUpdated:i,resctrlIsSupported:s,cloudIsSupported:a,cloudIntegrationBannerIsEnabled:c,cloudConnectionPromoIsHidden:l}=this.props,u=i?Date.now()-i:null;return(0,t.jsx)(n.Dropdown,{onClick:this.handleOpenSettings,className:`${b.kh}__settings-button`,menu:(0,t.jsxs)(n.Menu,{children:[(0,t.jsx)(n.MenuItem,{icon:"signal-light",tooltip:(0,t.jsx)(n.Translate,{content:"text.open-thresholds-button-hint"}),onClick:()=>e(Yt.thresholds),className:`${b.kh}__settings-thresholds`,children:(0,t.jsx)(n.Translate,{content:"button.open-thresholds"})}),(0,t.jsx)(n.MenuItem,{icon:"arrows-four-directions",tooltip:(0,t.jsx)(n.Translate,{content:"text.panels-management-button-hint"}),onClick:()=>e(Yt.customization),className:`${b.kh}__settings-customization`,children:(0,t.jsx)(n.Translate,{content:"button.panels-management"})}),(0,t.jsx)(n.MenuItem,{icon:"sliders",tooltip:(0,t.jsx)(n.Translate,{content:"text.parameters-button-hint"}),onClick:()=>e(Yt.parameters),className:`${b.kh}__settings-parameters`,children:(0,t.jsx)(n.Translate,{content:"button.parameters"})}),s?(0,t.jsx)(n.MenuItem,{icon:"panels",tooltip:(0,t.jsx)(n.Translate,{content:"text.subscriptions-monitoring-button-hint"}),onClick:()=>e(Yt.subscriptions),className:`${b.kh}__settings-subscriptions`,children:(0,t.jsx)(n.Translate,{content:"button.subscriptions-monitoring"})}):null,(0,t.jsx)(n.MenuDivider,{}),(0,t.jsxs)(n.MenuItem,{icon:(0,t.jsx)(n.Icon,{name:o?"refresh":"reload",animation:o?"spin":null}),tooltip:(0,t.jsx)(n.Translate,{content:"text.detect-hardware-changes-button-hint"}),disabled:o,onClick:r,className:`${b.kh}__settings-hardware-changes`,children:[(0,t.jsx)(n.Translate,{content:"button.detect-hardware-changes"}),(0,t.jsx)(n.Text,{intent:"muted",fontSize:"sm",component:"div",children:(0,t.jsx)(n.Translate,{content:"text.hardware-changes-hint",params:{when:(0,t.jsx)(dr,{interval:u})}})})]}),a&&l&&c?[(0,t.jsx)(n.MenuDivider,{},"cloud-divider"),(0,t.jsx)(n.MenuItem,{icon:"cloud",tooltip:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-proceed-button-hint"}),onClick:this.handleTryCloudMonitoringClick,className:`${b.kh}__settings-cloud-connection`,children:(0,t.jsx)(n.Translate,{content:"button.cloud-connection-proceed"})},"cloud-menu-item")]:null]}),children:(0,t.jsx)(n.Translate,{content:"button.open-settings"})})}render(){const{isInitiated:e,sections:r,openedSection:o,savingNoticeIsVisible:i,subscriptionsTourIsVisible:s,subscriptionsTourStep:a}=this.state,{isLoaded:c,serviceIsRunning:l,grafanaIsRunning:u,resctrlIsSupported:p,showThresholdSettings:d,showDashboardsCustomization:f,showSubscriptionsMonitoring:h,showParameters:_,pushUrl:m}=this.props,y=`${b.kh}__frame`,g=`${y}-wrapper`,v=`${g}--opened`,E=c&&r.length&&u;return(0,t.jsxs)("div",{children:[e?(0,t.jsx)(n.Tabs,{addon:this.renderSettingsButton(),active:r.findIndex((e=>e.name===o))+1,children:r.map((e=>{let r=null;switch(e.name){case"overview":r="star";break;case"comparison":r="bar-chart-vertical"}return(0,t.jsx)(n.Tab,{title:(0,t.jsx)(n.Translate,{content:`panel.${e.name}Title`}),icon:r,onActivate:()=>this.sectionActivateHandler(e.name)},`tab-${e.name}`)}))}):null,E&&i?this.renderSavingNotice():null,E&&!l?this.renderFixServiceButton():null,r.length&&!u?this.renderFixGrafanaButton():null,E?r.map((e=>(0,t.jsx)("div",{className:(0,n.classNames)(g,{[`${v}`]:e.name===o}),style:{height:e.name===o?e.height:null},children:e.ready?e.url?(0,t.jsx)("iframe",{src:window.location.origin+e.url,onLoad:()=>this.sectionLoadHandler(e.name),className:y,style:{height:e.height},sandbox:"allow-scripts allow-forms allow-same-origin allow-pointer-lock allow-downloads"},`frame-${e.name}`):(0,t.jsx)(n.ListEmptyView,{title:(0,t.jsx)(n.Translate,{content:"text.no-panels-title"}),description:(0,t.jsx)(n.Translate,{content:"text.no-panels-description"}),image:(0,t.jsx)("img",{src:_r,alt:""}),actions:(0,t.jsx)(n.Button,{intent:"primary",onClick:()=>m(Yt.customization),children:(0,t.jsx)(n.Translate,{content:"button.no-panels-action"})})}):(0,t.jsx)(n.ContentLoader,{})},`frame-${e.name}-wrapper`))):c?null:(0,t.jsx)(n.ContentLoader,{}),(0,t.jsx)(Kn,{isOpen:d}),(0,t.jsx)(tr,{isOpen:f}),p?(0,t.jsx)(ir,{isOpen:h}):null,(0,t.jsx)(lr,{isOpen:_}),s&&this.subscriptionsTour?t.default.createElement(this.subscriptionsTour,{step:a,onFinish:this.handleFinishSubscriptionsTour}):null]})}}mr.propTypes={isLoaded:n.PropTypes.bool.isRequired,serviceIsRunning:n.PropTypes.bool.isRequired,serviceFixIsRequested:n.PropTypes.bool.isRequired,grafanaIsRunning:n.PropTypes.bool.isRequired,grafanaFixIsRequested:n.PropTypes.bool.isRequired,hardwareChangesDetecting:n.PropTypes.bool.isRequired,hardwareConfigUpdated:n.PropTypes.number.isRequired,dashboards:n.PropTypes.object,savingNoticeIsHidden:n.PropTypes.bool.isRequired,subscriptionsTourIsHidden:n.PropTypes.bool.isRequired,cloudIsSupported:n.PropTypes.bool.isRequired,cloudConnectionPromoIsHidden:n.PropTypes.bool.isRequired,cloudIntegrationBannerIsEnabled:n.PropTypes.bool.isRequired,resctrlIsSupported:n.PropTypes.bool.isRequired,showThresholdSettings:n.PropTypes.bool,showDashboardsCustomization:n.PropTypes.bool,showSubscriptionsMonitoring:n.PropTypes.bool,showParameters:n.PropTypes.bool,onSettingsOpen:n.PropTypes.func,loadStatisticsIfFirstOpen:n.PropTypes.func.isRequired,hideSavingNotice:n.PropTypes.func.isRequired,hideSubscriptionsTour:n.PropTypes.func.isRequired,noticeTabIsOpened:n.PropTypes.func.isRequired,startService:n.PropTypes.func.isRequired,startGrafana:n.PropTypes.func.isRequired,pushUrl:n.PropTypes.func.isRequired,detectHardwareChanges:n.PropTypes.func.isRequired,showCloudConnectionPromo:n.PropTypes.func.isRequired,trackClickUAT:n.PropTypes.func.isRequired},mr.defaultProps={dashboards:null,showThresholdSettings:!1,showDashboardsCustomization:!1,showSubscriptionsMonitoring:!1,showParameters:!1,onSettingsOpen:()=>{}};const yr=(0,i.connect)((e=>{const{statistics:t,app:n}=e;return{isLoaded:t.loadingStatus===b.f.LOADED,dashboards:t.dashboards,savingNoticeIsHidden:n.savingNoticeIsHidden,subscriptionsTourIsHidden:n.subscriptionsTourIsHidden,serviceIsRunning:t.serviceIsRunning,serviceFixIsRequested:t.serviceFixStatus===b.f.REQUESTED,grafanaIsRunning:t.grafanaIsRunning,grafanaFixIsRequested:t.grafanaFixStatus===b.f.REQUESTED,hardwareChangesDetecting:t.hardwareChangesDetecting,hardwareConfigUpdated:t.hardwareConfigUpdated,resctrlIsSupported:n.resctrlIsSupported,cloudIsSupported:n.cloudIsSupported,cloudConnectionPromoIsHidden:n.cloudConnectionPromoIsHidden,cloudIntegrationBannerIsEnabled:n.cloudIntegrationBannerIsEnabled}}),(e=>({loadStatisticsIfFirstOpen:()=>e(((e,t)=>{t().statistics.loadingStatus===b.f.INITIAL&&e($n())})),hideSavingNotice:()=>e((e=>Ht.post("/statistics/hide-notice").catch((t=>{e(Kt(t))})))),hideSubscriptionsTour:()=>e((e=>Ht.post("/statistics/hide-subscriptions-tour").catch((t=>{e(Kt(t))})))),noticeTabIsOpened:t=>e((e=>()=>Ht.post("/statistics/mark-tab",Gt().stringify({key:e})))(t)),startService:()=>e((e=>(e({type:T}),Ht.post("/installation/service-fix").then((t=>{const{success:n,error:r}=t.data;n?e((e=>e({type:I}))):r?(e(Kt(r)),e(qn())):(e(Qt("text.service-fix-failed")),e(qn()))})).catch((t=>{e(Kt(t)),e(qn())}))))),startGrafana:()=>e((e=>(e({type:O}),Ht.post("/installation/grafana-fix").then((t=>{const{success:n,error:r}=t.data;n?e((e=>e({type:R}))):r?(e(Kt(r)),e(Wn())):(e(Qt("text.grafana-fix-failed")),e(Wn()))})).catch((t=>{e(Kt(t)),e(Wn())}))))),pushUrl:t=>e((0,s.VC)(t)),detectHardwareChanges:()=>e((e=>(e({type:j}),Ht.post("/installation/detect-hardware-changes").then((t=>{const{success:n,error:r,changed:o}=t.data;n?o?(e(Xt("text.hardware-changes-were-found","success")),e($n()),e(kn()),e(Bn())):e(Xt("text.hardware-changes-not-found")):e(r?Kt(r):Qt("text.hardware-changes-detection-failed"))})).catch((t=>{e(Kt(t))})).finally((()=>{e((e=>e({type:C})))}))))),showCloudConnectionPromo:()=>e((e=>Ht.post(Jt).then((()=>{e((e=>e({type:d})))})).catch((t=>{e(Kt(t))})))),trackClickUAT:t=>e(nn(t))})))(mr);var br=r(6575),gr=r(2298),vr=r(1410);class Er extends n.Component{constructor(e){super(e),this.state={cloudConnectionPromoIsVisible:!e.cloudConnectionPromoIsHidden,cloudConnectionPromoHintIsVisible:!1,builtInMonitoringStarts:!1}}componentDidMount(){this.props.checkInstallationIfFirstOpen()}componentDidUpdate(e){e.cloudConnectionPromoIsHidden!==this.props.cloudConnectionPromoIsHidden&&this.setState({cloudConnectionPromoIsVisible:!this.props.cloudConnectionPromoIsHidden}),this.state.builtInMonitoringStarts&&this.props.installationFixed&&(this.setState({cloudConnectionPromoIsVisible:!1,builtInMonitoringStarts:!1}),this.props.hideCloudConnectionPromo())}handleCloudConnectionPromoClose=()=>{this.props.trackClickUAT(b.i2.HIDE_360_PROMO),this.props.hideCloudConnectionPromo(),this.setState({cloudConnectionPromoHintIsVisible:!0})};handleCloudConnectionPromoHintClose=()=>{this.setState({cloudConnectionPromoHintIsVisible:!1})};handleStatisticsSettingsOpen=()=>{this.setState({cloudConnectionPromoHintIsVisible:!1})};handleMonitoringInstallationClick=()=>{this.props.trackClickUAT(b.i2.SWITCH_TO_BUILT_IN),this.setState({builtInMonitoringStarts:!0}),this.props.fixInstallation()};renderCloudConnectionPromoBanner(){const{installationError:e,installationErrorIsGrafana:n,cloudIsSupported:r,cloudIntegrationBannerIsEnabled:o,cloudConnectionPromoIsV2:i}=this.props,{cloudConnectionPromoIsVisible:s}=this.state;return(!e||n)&&r&&o&&s?i?(0,t.jsx)(vn,{onCloudServerConnect:()=>{this.props.trackClickUAT(b.i2.SERVER_DETACHED_TRY_360)},onCloudMonitoringActivate:()=>{this.props.trackClickUAT(b.i2.TRY_360_PROMO)},onBuiltInMonitoringActivate:e?this.handleMonitoringInstallationClick:null,onClose:e?null:this.handleCloudConnectionPromoClose}):(0,t.jsx)(mn,{onCloudServerConnect:()=>{this.props.trackClickUAT(b.i2.SERVER_DETACHED_TRY_360)},onCloudMonitoringActivate:()=>{this.props.trackClickUAT(b.i2.TRY_360_PROMO)},onBuiltInMonitoringActivate:e?this.handleMonitoringInstallationClick:null,onClose:e?null:this.handleCloudConnectionPromoClose}):null}renderCloudConnectionPromoHint(){const{cloudConnectionPromoHintIsVisible:e}=this.state;return e?(0,t.jsx)(n.Spot,{className:`.${b.kh}__spot`,selector:`.${b.kh}__settings-button`,popup:{children:(0,t.jsx)(n.Translate,{content:"text.cloud-connection-promo-settings-spot-hint"}),onClose:this.handleCloudConnectionPromoHintClose,className:`.${b.kh}__spot-popup`,placement:"top-left"}}):null}render(){const{isLoaded:e,installationError:r,installationErrorIsGrafana:o,resctrlIsSupported:i,cloudIsSupported:s,cloudIntegrationBannerIsEnabled:a}=this.props,{cloudConnectionPromoIsVisible:c}=this.state,l=!((!r||o)&&s&&a&&c)&&r;return(0,t.jsxs)("div",{children:[(0,t.jsx)(an,{}),(0,t.jsx)(ln,{}),l?(0,t.jsx)(on,{forceFixAllIssues:!0}):null,this.renderCloudConnectionPromoBanner(),this.renderCloudConnectionPromoHint(),e&&!r?(0,t.jsxs)(br.A,{children:[(0,t.jsx)(gr.A,{path:Yt.statistics,children:(0,t.jsx)(yr,{onSettingsOpen:this.handleStatisticsSettingsOpen})}),(0,t.jsx)(gr.A,{path:Yt.thresholds,children:(0,t.jsx)(yr,{showThresholdSettings:!0})}),(0,t.jsx)(gr.A,{path:Yt.customization,children:(0,t.jsx)(yr,{showDashboardsCustomization:!0})}),i?(0,t.jsx)(gr.A,{path:Yt.subscriptions,children:(0,t.jsx)(yr,{showSubscriptionsMonitoring:!0})}):null,(0,t.jsx)(gr.A,{path:Yt.parameters,children:(0,t.jsx)(yr,{showParameters:!0})}),(0,t.jsx)(gr.A,{path:"*",children:(0,t.jsx)("div",{children:(0,t.jsx)(n.Translate,{content:"text.page-not-found"})})})]}):null]})}}Er.propTypes={isLoaded:n.PropTypes.bool.isRequired,installationError:n.PropTypes.string.isRequired,installationErrorIsGrafana:n.PropTypes.bool.isRequired,installationFixed:n.PropTypes.bool.isRequired,resctrlIsSupported:n.PropTypes.bool.isRequired,cloudIsSupported:n.PropTypes.bool.isRequired,cloudConnectionPromoIsHidden:n.PropTypes.bool.isRequired,cloudConnectionPromoIsV2:n.PropTypes.bool.isRequired,cloudIntegrationBannerIsEnabled:n.PropTypes.bool.isRequired,checkInstallationIfFirstOpen:n.PropTypes.func.isRequired,fixInstallation:n.PropTypes.func.isRequired,hideCloudConnectionPromo:n.PropTypes.func.isRequired,trackClickUAT:n.PropTypes.func.isRequired};const xr=(0,vr.A)((0,i.connect)((e=>{const{loadingStatus:t,installationError:n,installationErrorIsGrafana:r,installationFixStatus:o,resctrlIsSupported:i,cloudIsSupported:s,cloudConnectionPromoIsHidden:a,cloudConnectionPromoIsV2:c,cloudIntegrationBannerIsEnabled:l}=e.app;return{isLoaded:t===b.f.LOADED,installationError:n,installationErrorIsGrafana:r,installationFixed:o===b.f.LOADED,resctrlIsSupported:i,cloudIsSupported:s,cloudConnectionPromoIsHidden:a,cloudConnectionPromoIsV2:c,cloudIntegrationBannerIsEnabled:l}}),(e=>({checkInstallationIfFirstOpen:()=>e(((e,t)=>{t().app.loadingStatus===b.f.INITIAL&&e((e=>(e({type:h}),Ht.get("/installation/check").then((t=>{if(t.data){const{success:n,error:r,isCriticalError:o,isGrafanaError:i}=t.data;let s=null;n||(s=r),e(Zt(s,!!o,!!i))}else e(Qt("text.installation-check-failed"))})).catch((t=>{e(Kt(t))})))))})),fixInstallation:()=>e(en()),hideCloudConnectionPromo:()=>e((e=>Ht.delete(Jt).then((()=>{e((e=>e({type:p})))})).catch((t=>{e(Kt(t))})))),pushUrl:t=>e((0,s.VC)(t)),trackClickUAT:t=>e(nn(t))})))(Er)),Tr=e=>{const r=(0,Q.zR)({basename:b.Jo}),o=((e,t)=>(0,a.y$)((0,a.HY)({router:(0,s.S6)(t),app:v(e),statistics:P(),thresholds:D(),customization:$(),subscriptions:V(),parameters:K()}),(0,a.Zz)((0,a.Tw)(u,(0,s.wf)(t)),window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)))(e,r);(0,n.render)((0,t.jsx)(i.Provider,{store:o,children:(0,t.jsx)(n.LocaleProvider,{messages:e.locale,children:(0,t.jsx)(s.Ny,{history:r,children:(0,t.jsx)(xr,{})})})}),document.getElementById("ui-container"))}})(),o})()));