From e8f67703082f192dba2cdbd89fd09dcf0a21bb33 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 4 Oct 2023 19:00:40 -0400 Subject: [PATCH] build(striker-ui): rebuild --- .../UY89Wl2fvgEKnUqzsKV5-/_buildManifest.js | 1 + .../_middlewareManifest.js | 0 .../_ssgManifest.js | 0 ...6afcf131f68.js => 336-6e600f08d9387d72.js} | 2 +- .../static/chunks/382-f51344f6f9208507.js | 154 ------------------ .../static/chunks/412-ae4bab5809f6a209.js | 154 ++++++++++++++++++ .../static/chunks/519-4b7761e884c88eb9.js | 1 + .../static/chunks/586-4e70511cf6d7632f.js | 1 - .../static/chunks/62-2c80eba24b792af8.js | 1 + .../static/chunks/62-532ed713980da8db.js | 1 - ...47570192a02.js => 825-a143aba6cb430f0f.js} | 2 +- ...dcc649bdd0c.js => 900-af716a39aed22219.js} | 2 +- .../chunks/pages/anvil-53b02ffa883f4c5a.js | 1 + .../chunks/pages/anvil-5ff2efa937105177.js | 1 - ...f390573f.js => config-7be24d332b231569.js} | 2 +- .../pages/file-manager-0697bf1cd793df6d.js | 1 + .../pages/file-manager-1ae01a78e266275a.js | 1 - .../chunks/pages/index-0771f2825962ebc3.js | 1 + .../chunks/pages/index-6ff72adab3a682db.js | 1 - ...258b5d7d64.js => init-7cf62951388d0e3b.js} | 2 +- .../chunks/pages/login-0b2f91a926538f7c.js | 1 + .../chunks/pages/login-1b987b077ffc3420.js | 1 - ....js => manage-element-3ed34f8c3a72590a.js} | 2 +- ...56ccfcbf.js => server-d4d91dcbacc827c4.js} | 2 +- .../tsboOH-aG8W5HRHH4dt2_/_buildManifest.js | 1 - striker-ui/out/anvil.html | 2 +- striker-ui/out/config.html | 2 +- striker-ui/out/file-manager.html | 2 +- striker-ui/out/index.html | 2 +- striker-ui/out/init.html | 2 +- striker-ui/out/login.html | 2 +- striker-ui/out/manage-element.html | 2 +- striker-ui/out/server.html | 2 +- 33 files changed, 176 insertions(+), 176 deletions(-) create mode 100644 striker-ui/out/_next/static/UY89Wl2fvgEKnUqzsKV5-/_buildManifest.js rename striker-ui/out/_next/static/{tsboOH-aG8W5HRHH4dt2_ => UY89Wl2fvgEKnUqzsKV5-}/_middlewareManifest.js (100%) rename striker-ui/out/_next/static/{tsboOH-aG8W5HRHH4dt2_ => UY89Wl2fvgEKnUqzsKV5-}/_ssgManifest.js (100%) rename striker-ui/out/_next/static/chunks/{336-8a7866afcf131f68.js => 336-6e600f08d9387d72.js} (98%) delete mode 100644 striker-ui/out/_next/static/chunks/382-f51344f6f9208507.js create mode 100644 striker-ui/out/_next/static/chunks/412-ae4bab5809f6a209.js create mode 100644 striker-ui/out/_next/static/chunks/519-4b7761e884c88eb9.js delete mode 100644 striker-ui/out/_next/static/chunks/586-4e70511cf6d7632f.js create mode 100644 striker-ui/out/_next/static/chunks/62-2c80eba24b792af8.js delete mode 100644 striker-ui/out/_next/static/chunks/62-532ed713980da8db.js rename striker-ui/out/_next/static/chunks/{825-0b3ee47570192a02.js => 825-a143aba6cb430f0f.js} (99%) rename striker-ui/out/_next/static/chunks/{434-07ec1dcc649bdd0c.js => 900-af716a39aed22219.js} (53%) create mode 100644 striker-ui/out/_next/static/chunks/pages/anvil-53b02ffa883f4c5a.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/anvil-5ff2efa937105177.js rename striker-ui/out/_next/static/chunks/pages/{config-0cb597caf390573f.js => config-7be24d332b231569.js} (99%) create mode 100644 striker-ui/out/_next/static/chunks/pages/file-manager-0697bf1cd793df6d.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/file-manager-1ae01a78e266275a.js create mode 100644 striker-ui/out/_next/static/chunks/pages/index-0771f2825962ebc3.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/index-6ff72adab3a682db.js rename striker-ui/out/_next/static/chunks/pages/{init-053607258b5d7d64.js => init-7cf62951388d0e3b.js} (99%) create mode 100644 striker-ui/out/_next/static/chunks/pages/login-0b2f91a926538f7c.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/login-1b987b077ffc3420.js rename striker-ui/out/_next/static/chunks/pages/{manage-element-6b42a013966413d3.js => manage-element-3ed34f8c3a72590a.js} (99%) rename striker-ui/out/_next/static/chunks/pages/{server-4ac03eba56ccfcbf.js => server-d4d91dcbacc827c4.js} (98%) delete mode 100644 striker-ui/out/_next/static/tsboOH-aG8W5HRHH4dt2_/_buildManifest.js diff --git a/striker-ui/out/_next/static/UY89Wl2fvgEKnUqzsKV5-/_buildManifest.js b/striker-ui/out/_next/static/UY89Wl2fvgEKnUqzsKV5-/_buildManifest.js new file mode 100644 index 00000000..b0c08281 --- /dev/null +++ b/striker-ui/out/_next/static/UY89Wl2fvgEKnUqzsKV5-/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,a,c,e,t,n,i,f,b,u,k,h,j,d,r,g,l,_){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,e,f,b,j,"static/chunks/433-a3be905e7a7d3bfc.js",a,t,n,i,d,r,"static/chunks/pages/index-0771f2825962ebc3.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,c,e,f,b,j,a,t,n,i,d,"static/chunks/pages/anvil-53b02ffa883f4c5a.js"],"/config":[s,c,e,k,"static/chunks/519-4b7761e884c88eb9.js",a,t,n,i,u,h,g,"static/chunks/pages/config-7be24d332b231569.js"],"/file-manager":["static/chunks/29107295-fbcfe2172188e46f.js",s,c,e,f,"static/chunks/176-7308c25ba374961e.js",a,t,i,u,"static/chunks/pages/file-manager-0697bf1cd793df6d.js"],"/init":[s,c,f,b,k,l,a,t,n,i,_,"static/chunks/pages/init-7cf62951388d0e3b.js"],"/login":[s,c,e,a,t,n,u,h,"static/chunks/pages/login-0b2f91a926538f7c.js"],"/manage-element":[s,c,e,f,b,k,l,"static/chunks/111-2605129c170ed35d.js",a,t,n,i,u,h,_,g,"static/chunks/pages/manage-element-3ed34f8c3a72590a.js"],"/server":[s,e,"static/chunks/528-72edc50189f30fa9.js",a,r,"static/chunks/pages/server-d4d91dcbacc827c4.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/412-ae4bab5809f6a209.js","static/chunks/62-2c80eba24b792af8.js","static/chunks/438-0147a63d98e89439.js","static/chunks/894-e57948de523bcf96.js","static/chunks/195-fa06e61dd4339031.js","static/chunks/987-1ff0d82724b0e58b.js","static/chunks/157-d1418743accab385.js","static/chunks/182-08683bbe95fbb010.js","static/chunks/900-af716a39aed22219.js","static/chunks/248-749f2bec4cb43d28.js","static/chunks/644-c7c6e21c71345aed.js","static/chunks/336-6e600f08d9387d72.js","static/chunks/485-77798bccc4308d0e.js","static/chunks/825-a143aba6cb430f0f.js","static/chunks/94-8322ed453a3c08f0.js","static/chunks/560-0ed707609765e23a.js","static/chunks/676-6159ce853338cc1f.js","static/chunks/86-447b52c8195dea3d.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/tsboOH-aG8W5HRHH4dt2_/_middlewareManifest.js b/striker-ui/out/_next/static/UY89Wl2fvgEKnUqzsKV5-/_middlewareManifest.js similarity index 100% rename from striker-ui/out/_next/static/tsboOH-aG8W5HRHH4dt2_/_middlewareManifest.js rename to striker-ui/out/_next/static/UY89Wl2fvgEKnUqzsKV5-/_middlewareManifest.js diff --git a/striker-ui/out/_next/static/tsboOH-aG8W5HRHH4dt2_/_ssgManifest.js b/striker-ui/out/_next/static/UY89Wl2fvgEKnUqzsKV5-/_ssgManifest.js similarity index 100% rename from striker-ui/out/_next/static/tsboOH-aG8W5HRHH4dt2_/_ssgManifest.js rename to striker-ui/out/_next/static/UY89Wl2fvgEKnUqzsKV5-/_ssgManifest.js diff --git a/striker-ui/out/_next/static/chunks/336-8a7866afcf131f68.js b/striker-ui/out/_next/static/chunks/336-6e600f08d9387d72.js similarity index 98% rename from striker-ui/out/_next/static/chunks/336-8a7866afcf131f68.js rename to striker-ui/out/_next/static/chunks/336-6e600f08d9387d72.js index 1d2a1b36..094b32c9 100644 --- a/striker-ui/out/_next/static/chunks/336-8a7866afcf131f68.js +++ b/striker-ui/out/_next/static/chunks/336-6e600f08d9387d72.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[336],{7504:function(n,e,t){var r=t(5893),u=t(7294),o=t(6886),l=t(7357);function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(u[t]=n[t]);return u}(n,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(u[t]=n[t])}return u}function s(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,u,o=[],l=!0,i=!1;try{for(t=t.call(n);!(l=(r=t.next()).done)&&(o.push(r.value),!e||o.length!==e);l=!0);}catch(a){i=!0,u=a}finally{try{l||null==t.return||t.return()}finally{if(i)throw u}}return o}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return i(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(n,e)}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}e.Z=function(n){var e=n.calculateItemBreakpoints,t=void 0===e?function(){return{xs:1}}:e,i=n.layout,a=n.wrapperBoxProps,v=f(n,["calculateItemBreakpoints","layout","wrapperBoxProps"]),y=(0,u.useMemo)((function(){return Object.entries(i).map((function(n,e){var r=s(n,2),l=r[0],i=r[1],a=l;return i?(0,u.createElement)(o.ZP,c({},t(e,a),{key:a,item:!0},i)):void 0}))}),[t,i]);return(0,r.jsx)(l.Z,c({},a,{children:(0,r.jsx)(o.ZP,c({container:!0},v,{children:y}))}))}},4069:function(n,e,t){t.d(e,{Z:function(){return g}});var r=t(7294),u=t(3675),o=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.postSet,t=n.preSet,r=n.set,o=n.setType,l=void 0===o?"string":o,i=n.valueKey,a=void 0===i?"value":i;return function(n){var o=n.target[a],i=u.Z[l](o);null===t||void 0===t||t.call(null,n),null===r||void 0===r||r.call(null,i),null===e||void 0===e||e.call(null,n)}},l=t(7987);function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(u[t]=n[t]);return u}(n,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(u[t]=n[t])}return u}function s(n){return function(n){if(Array.isArray(n))return i(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(!n)return;if("string"===typeof n)return i(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(n,e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(n){var e=function(n,e){if("object"!==y(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===y(e)?e:String(e)}var y=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var p="input",d={boolean:!1,number:0,string:""},b={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},m=(0,r.forwardRef)((function(n,e){var t=n.input,u=n.inputTestBatch,i=n.onBlurAppend,y=n.onFirstRender,m=n.onFocusAppend,g=n.onUnmount,h=n.required,O=void 0===h?b.required:h,S=n.valueKey,j=n.valueType,w=void 0===j?b.valueType:j,k=n.createInputOnChangeHandlerOptions,C=void 0===k?b.createInputOnChangeHandlerOptions:k,I=C.postSet,A=C.valueKey,P=void 0===A?S:A,M=f(n.createInputOnChangeHandlerOptions,["postSet","valueKey"]),E=t.props,F=(0,r.useMemo)((function(){return null!==P&&void 0!==P?P:"checked"in E?"checked":"value"}),[E,P]),T=E.onBlur,x=E.onChange,B=E.onFocus,Z=E[F],R=void 0===Z?d[w]:Z,V=f(E,["onBlur","onChange","onFocus",F].map(v)),K=(0,r.useState)(R),U=K[0],q=K[1],H=(0,r.useState)(!1),N=H[0],_=H[1],$=(0,r.useState)(!1),D=$[0],L=$[1],W=(0,r.useCallback)((function(n){q(n)}),[]),z=(0,r.useMemo)((function(){var n;return u&&(u.isRequired=O,n=(0,l.LT)(a({},p,u))),n}),[u,O]),G=(0,r.useMemo)((function(){return null!==T&&void 0!==T?T:z&&function(){for(var n=arguments.length,e=new Array(n),t=0;tn.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(u[t]=n[t]);return u}(n,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(u[t]=n[t])}return u}function s(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,u,o=[],l=!0,i=!1;try{for(t=t.call(n);!(l=(r=t.next()).done)&&(o.push(r.value),!e||o.length!==e);l=!0);}catch(a){i=!0,u=a}finally{try{l||null==t.return||t.return()}finally{if(i)throw u}}return o}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return i(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(n,e)}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}e.Z=function(n){var e=n.calculateItemBreakpoints,t=void 0===e?function(){return{xs:1}}:e,i=n.layout,a=n.wrapperBoxProps,v=f(n,["calculateItemBreakpoints","layout","wrapperBoxProps"]),y=(0,u.useMemo)((function(){return Object.entries(i).map((function(n,e){var r=s(n,2),l=r[0],i=r[1],a=l;return i?(0,u.createElement)(o.ZP,c({},t(e,a),{key:a,item:!0},i)):void 0}))}),[t,i]);return(0,r.jsx)(l.Z,c({},a,{children:(0,r.jsx)(o.ZP,c({container:!0},v,{children:y}))}))}},4069:function(n,e,t){t.d(e,{Z:function(){return g}});var r=t(7294),u=t(3675),o=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.postSet,t=n.preSet,r=n.set,o=n.setType,l=void 0===o?"string":o,i=n.valueKey,a=void 0===i?"value":i;return function(n){var o=n.target[a],i=u.Z[l](o);null===t||void 0===t||t.call(null,n),null===r||void 0===r||r.call(null,i),null===e||void 0===e||e.call(null,n)}},l=t(7987);function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(u[t]=n[t]);return u}(n,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(u[t]=n[t])}return u}function s(n){return function(n){if(Array.isArray(n))return i(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(!n)return;if("string"===typeof n)return i(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(n,e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(n){var e=function(n,e){if("object"!==y(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===y(e)?e:String(e)}var y=function(n){return n&&"undefined"!==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var p="input",d={boolean:!1,number:0,string:""},b={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},m=(0,r.forwardRef)((function(n,e){var t=n.input,u=n.inputTestBatch,i=n.onBlurAppend,y=n.onFirstRender,m=n.onFocusAppend,g=n.onUnmount,h=n.required,O=void 0===h?b.required:h,S=n.valueKey,j=n.valueType,w=void 0===j?b.valueType:j,k=n.createInputOnChangeHandlerOptions,C=void 0===k?b.createInputOnChangeHandlerOptions:k,I=C.postSet,A=C.valueKey,P=void 0===A?S:A,M=f(n.createInputOnChangeHandlerOptions,["postSet","valueKey"]),E=t.props,F=(0,r.useMemo)((function(){return null!==P&&void 0!==P?P:"checked"in E?"checked":"value"}),[E,P]),T=E.onBlur,x=E.onChange,B=E.onFocus,Z=E[F],R=void 0===Z?d[w]:Z,V=f(E,["onBlur","onChange","onFocus",F].map(v)),K=(0,r.useState)(R),U=K[0],q=K[1],H=(0,r.useState)(!1),N=H[0],_=H[1],$=(0,r.useState)(!1),D=$[0],L=$[1],W=(0,r.useCallback)((function(n){q(n)}),[]),z=(0,r.useMemo)((function(){var n;return u&&(u.isRequired=O,n=(0,l.LT)(a({},p,u))),n}),[u,O]),G=(0,r.useMemo)((function(){return null!==T&&void 0!==T?T:z&&function(){for(var n=arguments.length,e=new Array(n),t=0;tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t{l||d(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,l]),(0,a.Z)((()=>{if(u&&!l)return(0,s.Z)(t,u),()=>{(0,s.Z)(t,null)}}),[t,u,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:p}):n:u?o.createPortal(n,u):u}));t.Z=c},2310:function(e,t,n){"use strict";var r=n(7294),o=n(67),i=n(7094),a=n(5893);const s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function c(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function l(){return!0}t.Z=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:u=!1,getTabbable:d=c,isEnabled:p=l,open:f}=e,h=r.useRef(),m=r.useRef(null),v=r.useRef(null),g=r.useRef(null),b=r.useRef(null),y=r.useRef(!1),Z=r.useRef(null),x=(0,o.Z)(t.ref,Z),w=r.useRef(null);r.useEffect((()=>{f&&Z.current&&(y.current=!n)}),[n,f]),r.useEffect((()=>{if(!f||!Z.current)return;const e=(0,i.Z)(Z.current);return Z.current.contains(e.activeElement)||(Z.current.hasAttribute("tabIndex")||Z.current.setAttribute("tabIndex",-1),y.current&&Z.current.focus()),()=>{u||(g.current&&g.current.focus&&(h.current=!0,g.current.focus()),g.current=null)}}),[f]),r.useEffect((()=>{if(!f||!Z.current)return;const e=(0,i.Z)(Z.current),t=t=>{const{current:n}=Z;if(null!==n)if(e.hasFocus()&&!s&&p()&&!h.current){if(!n.contains(e.activeElement)){if(t&&b.current!==t.target||e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!y.current)return;let i=[];if(e.activeElement!==m.current&&e.activeElement!==v.current||(i=d(Z.current)),i.length>0){var r,o;const e=Boolean((null==(r=w.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=w.current)?void 0:o.key)),t=i[0],n=i[i.length-1];e?n.focus():t.focus()}else n.focus()}}else h.current=!1},n=t=>{w.current=t,!s&&p()&&"Tab"===t.key&&e.activeElement===Z.current&&t.shiftKey&&(h.current=!0,v.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const r=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,s,u,p,f,d]);const S=e=>{null===g.current&&(g.current=e.relatedTarget),y.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:0,onFocus:S,ref:m,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:x,onFocus:e=>{null===g.current&&(g.current=e.relatedTarget),y.current=!0,b.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:0,onFocus:S,ref:v,"data-test":"sentinelEnd"})]})}},7192:function(e,t,n){"use strict";function r(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e)),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},8442:function(e,t){"use strict";t.Z=function(e){return"string"===typeof e}},2428:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add")},1113:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Assignment")},5537:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},6761:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")},6059:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done")},1797:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit")},1680:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess")},6571:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},1370:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"}),"PlayCircle")},2186:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility")},5697:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff")},7227:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(3366),o=n(7462),i=n(7294),a=n(8442),s=n(6010),c=n(7192),l=n(6087),u=n(8979);function d(e){return(0,u.Z)("MuiBackdrop",e)}(0,l.Z)("MuiBackdrop",["root","invisible"]);var p=n(5893);const f=["classes","className","invisible","component","components","componentsProps","theme"];var h=i.forwardRef((function(e,t){const{classes:n,className:i,invisible:l=!1,component:u="div",components:h={},componentsProps:m={},theme:v}=e,g=(0,r.Z)(e,f),b=(0,o.Z)({},e,{classes:n,invisible:l}),y=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,c.Z)(r,d,t)})(b),Z=h.Root||u,x=m.root||{};return(0,p.jsx)(Z,(0,o.Z)({"aria-hidden":!0},x,!(0,a.Z)(Z)&&{as:u,ownerState:(0,o.Z)({},b,x.ownerState),theme:v},{ref:t},g,{className:(0,s.Z)(y.root,x.className,i)}))})),m=n(1496),v=n(3616),g=n(6628);const b=["children","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],y=(0,m.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,o.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})));var Z=i.forwardRef((function(e,t){var n;const i=(0,v.Z)({props:e,name:"MuiBackdrop"}),{children:s,components:c={},componentsProps:l={},className:u,invisible:d=!1,open:f,transitionDuration:m,TransitionComponent:Z=g.Z}=i,x=(0,r.Z)(i,b),w=(e=>{const{classes:t}=e;return t})((0,o.Z)({},i,{invisible:d}));return(0,p.jsx)(Z,(0,o.Z)({in:f,timeout:m},x,{children:(0,p.jsx)(h,{className:u,invisible:d,components:(0,o.Z)({Root:y},c),componentsProps:{root:(0,o.Z)({},l.root,(!c.Root||!(0,a.Z)(c.Root))&&{ownerState:(0,o.Z)({},null==(n=l.root)?void 0:n.ownerState)})},classes:w,ref:t,children:s})}))}))},7357:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(7462),o=n(3366),i=n(7294),a=n(6010),s=n(561),c=n(6523),l=n(9707),u=n(6682),d=n(5893);const p=["className","component"];var f=n(9981);const h=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:f,styleFunctionSx:h=c.Z}=e,m=(0,s.ZP)("div")(h);return i.forwardRef((function(e,i){const s=(0,u.Z)(t),c=(0,l.Z)(e),{className:h,component:v="div"}=c,g=(0,o.Z)(c,p);return(0,d.jsx)(m,(0,r.Z)({as:v,ref:i,className:(0,a.Z)(h,f?f(n):n),theme:s},g))}))}({defaultTheme:(0,n(1265).Z)(),defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var m=h},2992:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7925),c=n(7192),l=n(1796),u=n(1496),d=n(3616),p=n(7739),f=n(8216),h=n(7933);var m=i.createContext({}),v=n(5893);const g=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],b=e=>(0,o.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),y=(0,u.ZP)(p.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,f.Z)(n.color)}`],t[`size${(0,f.Z)(n.size)}`],t[`${n.variant}Size${(0,f.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:(0,l.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${e.palette[t.color].main}`,backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.palette[t.color].dark,"@media (hover: none)":{backgroundColor:e.palette[t.color].main}}),"&:active":(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[8]}),[`&.${h.Z.focusVisible}`]:(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[6]}),[`&.${h.Z.disabled}`]:(0,o.Z)({color:e.palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${e.palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${e.palette.action.disabled}`},"contained"===t.variant&&{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"outlined"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,l.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${h.Z.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${h.Z.disabled}`]:{boxShadow:"none"}})),Z=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,f.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},b(e)))),x=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,f.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},b(e))));var w=i.forwardRef((function(e,t){const n=i.useContext(m),l=(0,s.Z)(n,e),u=(0,d.Z)({props:l,name:"MuiButton"}),{children:p,color:b="primary",component:w="button",className:S,disabled:k=!1,disableElevation:E=!1,disableFocusRipple:R=!1,endIcon:C,focusVisibleClassName:P,fullWidth:T=!1,size:M="medium",startIcon:I,type:O,variant:N="text"}=u,z=(0,r.Z)(u,g),j=(0,o.Z)({},u,{color:b,component:w,disabled:k,disableElevation:E,disableFocusRipple:R,fullWidth:T,size:M,type:O,variant:N}),A=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,f.Z)(t)}`,`size${(0,f.Z)(i)}`,`${a}Size${(0,f.Z)(i)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,f.Z)(i)}`],endIcon:["endIcon",`iconSize${(0,f.Z)(i)}`]},u=(0,c.Z)(l,h.F,s);return(0,o.Z)({},s,u)})(j),L=I&&(0,v.jsx)(Z,{className:A.startIcon,ownerState:j,children:I}),F=C&&(0,v.jsx)(x,{className:A.endIcon,ownerState:j,children:C});return(0,v.jsxs)(y,(0,o.Z)({ownerState:j,className:(0,a.Z)(S,n.className),component:w,disabled:k,focusRipple:!R,focusVisibleClassName:(0,a.Z)(A.focusVisible,P),ref:t,type:O},z,{classes:A,children:[L,p,F]}))}))},7933:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiButton",e)}const i=(0,n(6087).Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);t.Z=i},7739:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(7462),o=n(3366),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(1705),d=n(2068),p=n(9674);var f=n(5068),h=n(220);function m(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function g(e,t,n){var r=m(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var c in t){if(o[c])for(r=0;r{if(!l&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,l,d]),(0,w.jsx)("span",{className:h,style:m,children:(0,w.jsx)("span",{className:v})})},k=n(6087);var E=(0,k.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const R=["center","classes","className"];let C,P,T,M,I=e=>e;const O=(0,x.F4)(C||(C=I` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),N=(0,x.F4)(P||(P=I` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),z=(0,x.F4)(T||(T=I` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),j=(0,c.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),A=(0,c.ZP)(S,{name:"MuiTouchRipple",slot:"Ripple"})(M||(M=I` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),E.rippleVisible,O,550,(({theme:e})=>e.transitions.easing.easeInOut),E.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),E.child,E.childLeaving,N,550,(({theme:e})=>e.transitions.easing.easeInOut),E.childPulsate,z,(({theme:e})=>e.transitions.easing.easeInOut));var L=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:c={},className:u}=n,d=(0,o.Z)(n,R),[p,f]=i.useState([]),h=i.useRef(0),m=i.useRef(null);i.useEffect((()=>{m.current&&(m.current(),m.current=null)}),[p]);const v=i.useRef(!1),g=i.useRef(null),b=i.useRef(null),y=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(g.current)}),[]);const x=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;f((e=>[...e,(0,w.jsx)(A,{classes:{ripple:(0,a.Z)(c.ripple,E.ripple),rippleVisible:(0,a.Z)(c.rippleVisible,E.rippleVisible),ripplePulsate:(0,a.Z)(c.ripplePulsate,E.ripplePulsate),child:(0,a.Z)(c.child,E.child),childLeaving:(0,a.Z)(c.childLeaving,E.childLeaving),childPulsate:(0,a.Z)(c.childPulsate,E.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},h.current)])),h.current+=1,m.current=i}),[c]),S=i.useCallback(((e={},t={},n)=>{const{pulsate:r=!1,center:o=s||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e.type&&v.current)return void(v.current=!1);"touchstart"===e.type&&(v.current=!0);const a=i?null:y.current,c=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,u,d;if(o||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(c.width/2),u=Math.round(c.height/2);else{const{clientX:t,clientY:n}=e.touches?e.touches[0]:e;l=Math.round(t-c.left),u=Math.round(n-c.top)}if(o)d=Math.sqrt((2*c.width**2+c.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-l),l)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e.touches?null===b.current&&(b.current=()=>{x({pulsate:r,rippleX:l,rippleY:u,rippleSize:d,cb:n})},g.current=setTimeout((()=>{b.current&&(b.current(),b.current=null)}),80)):x({pulsate:r,rippleX:l,rippleY:u,rippleSize:d,cb:n})}),[s,x]),k=i.useCallback((()=>{S({},{pulsate:!0})}),[S]),C=i.useCallback(((e,t)=>{if(clearTimeout(g.current),"touchend"===e.type&&b.current)return b.current(),b.current=null,void(g.current=setTimeout((()=>{C(e,t)})));b.current=null,f((e=>e.length>0?e.slice(1):e)),m.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:k,start:S,stop:C})),[k,S,C]),(0,w.jsx)(j,(0,r.Z)({className:(0,a.Z)(c.root,E.root,u),ref:y},d,{children:(0,w.jsx)(Z,{component:null,exit:!0,children:p})}))})),F=n(8979);function $(e){return(0,F.Z)("MuiButtonBase",e)}var B=(0,k.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const D=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],V=(0,c.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${B.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var _=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiButtonBase"}),{action:c,centerRipple:f=!1,children:h,className:m,component:v="button",disabled:g=!1,disableRipple:b=!1,disableTouchRipple:y=!1,focusRipple:Z=!1,LinkComponent:x="a",onBlur:S,onClick:k,onContextMenu:E,onDragLeave:R,onFocus:C,onFocusVisible:P,onKeyDown:T,onKeyUp:M,onMouseDown:I,onMouseLeave:O,onMouseUp:N,onTouchEnd:z,onTouchMove:j,onTouchStart:A,tabIndex:F=0,TouchRippleProps:B,touchRippleRef:_,type:q}=n,W=(0,o.Z)(n,D),U=i.useRef(null),H=i.useRef(null),K=(0,u.Z)(H,_),{isFocusVisibleRef:G,onFocus:X,onBlur:Y,ref:J}=(0,p.Z)(),[Q,ee]=i.useState(!1);function te(e,t,n=y){return(0,d.Z)((r=>{t&&t(r);return!n&&H.current&&H.current[e](r),!0}))}g&&Q&&ee(!1),i.useImperativeHandle(c,(()=>({focusVisible:()=>{ee(!0),U.current.focus()}})),[]),i.useEffect((()=>{Q&&Z&&!b&&H.current.pulsate()}),[b,Z,Q]);const ne=te("start",I),re=te("stop",E),oe=te("stop",R),ie=te("stop",N),ae=te("stop",(e=>{Q&&e.preventDefault(),O&&O(e)})),se=te("start",A),ce=te("stop",z),le=te("stop",j),ue=te("stop",(e=>{Y(e),!1===G.current&&ee(!1),S&&S(e)}),!1),de=(0,d.Z)((e=>{U.current||(U.current=e.currentTarget),X(e),!0===G.current&&(ee(!0),P&&P(e)),C&&C(e)})),pe=()=>{const e=U.current;return v&&"button"!==v&&!("A"===e.tagName&&e.href)},fe=i.useRef(!1),he=(0,d.Z)((e=>{Z&&!fe.current&&Q&&H.current&&" "===e.key&&(fe.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!g&&(e.preventDefault(),k&&k(e))})),me=(0,d.Z)((e=>{Z&&" "===e.key&&H.current&&Q&&!e.defaultPrevented&&(fe.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),M&&M(e),k&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&k(e)}));let ve=v;"button"===ve&&(W.href||W.to)&&(ve=x);const ge={};"button"===ve?(ge.type=void 0===q?"button":q,ge.disabled=g):(W.href||W.to||(ge.role="button"),g&&(ge["aria-disabled"]=g));const be=(0,u.Z)(J,U),ye=(0,u.Z)(t,be),[Ze,xe]=i.useState(!1);i.useEffect((()=>{xe(!0)}),[]);const we=Ze&&!b&&!g;const Se=(0,r.Z)({},n,{centerRipple:f,component:v,disabled:g,disableRipple:b,disableTouchRipple:y,focusRipple:Z,tabIndex:F,focusVisible:Q}),ke=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.Z)(i,$,o);return n&&r&&(a.root+=` ${r}`),a})(Se);return(0,w.jsxs)(V,(0,r.Z)({as:ve,className:(0,a.Z)(ke.root,m),ownerState:Se,onBlur:ue,onClick:k,onContextMenu:re,onFocus:de,onKeyDown:he,onKeyUp:me,onMouseDown:ne,onMouseLeave:ae,onMouseUp:ie,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:se,ref:ye,tabIndex:g?-1:F,type:q},ge,W,{children:[h,we?(0,w.jsx)(L,(0,r.Z)({ref:K,center:f},B)):null]}))}))},8128:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(3366),o=n(7462),i=n(7294),a=n(7192),s=n(1796),c=n(1964),l=n(7892),u=n(5893),d=(0,l.Z)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),p=(0,l.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=(0,l.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),h=n(8216),m=n(3616),v=n(1496),g=n(3631);const b=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],y=(0,v.ZP)(c.Z,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,h.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${g.Z.checked}, &.${g.Z.indeterminate}`]:{color:e.palette[t.color].main},[`&.${g.Z.disabled}`]:{color:e.palette.action.disabled}}))),Z=(0,u.jsx)(p,{}),x=(0,u.jsx)(d,{}),w=(0,u.jsx)(f,{});var S=i.forwardRef((function(e,t){var n,s;const c=(0,m.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=Z,color:d="primary",icon:p=x,indeterminate:f=!1,indeterminateIcon:v=w,inputProps:S,size:k="medium"}=c,E=(0,r.Z)(c,b),R=f?v:p,C=f?v:l,P=(0,o.Z)({},c,{color:d,indeterminate:f,size:k}),T=(e=>{const{classes:t,indeterminate:n,color:r}=e,i={root:["root",n&&"indeterminate",`color${(0,h.Z)(r)}`]},s=(0,a.Z)(i,g.y,t);return(0,o.Z)({},t,s)})(P);return(0,u.jsx)(y,(0,o.Z)({type:"checkbox",inputProps:(0,o.Z)({"data-indeterminate":f},S),icon:i.cloneElement(R,{fontSize:null!=(n=R.props.fontSize)?n:k}),checkedIcon:i.cloneElement(C,{fontSize:null!=(s=C.props.fontSize)?s:k}),ownerState:P,ref:t},E,{classes:T}))}))},3631:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiCheckbox",e)}const i=(0,n(6087).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);t.Z=i},6489:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(917),l=n(8216),u=n(3616),d=n(1496),p=n(2346),f=n(5893);const h=["className","color","disableShrink","size","style","thickness","value","variant"];let m,v,g,b,y=e=>e;const Z=44,x=(0,c.F4)(m||(m=y` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),w=(0,c.F4)(v||(v=y` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),S=(0,d.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,l.Z)(n.color)}`]]}})((({ownerState:e,theme:t})=>(0,o.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:t.palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&(0,c.iv)(g||(g=y` - animation: ${0} 1.4s linear infinite; - `),x))),k=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),E=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,l.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,o.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,c.iv)(b||(b=y` - animation: ${0} 1.4s ease-in-out infinite; - `),w))),R=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:c="primary",disableShrink:d=!1,size:m=40,style:v,thickness:g=3.6,value:b=0,variant:y="indeterminate"}=n,x=(0,r.Z)(n,h),w=(0,o.Z)({},n,{color:c,disableShrink:d,size:m,thickness:g,value:b,variant:y}),R=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${(0,l.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,l.Z)(n)}`,o&&"circleDisableShrink"]};return(0,s.Z)(i,p.C,t)})(w),C={},P={},T={};if("determinate"===y){const e=2*Math.PI*((Z-g)/2);C.strokeDasharray=e.toFixed(3),T["aria-valuenow"]=Math.round(b),C.strokeDashoffset=`${((100-b)/100*e).toFixed(3)}px`,P.transform="rotate(-90deg)"}return(0,f.jsx)(S,(0,o.Z)({className:(0,a.Z)(R.root,i),style:(0,o.Z)({width:m,height:m},P,v),ownerState:w,ref:t,role:"progressbar"},T,x,{children:(0,f.jsx)(k,{className:R.svg,ownerState:w,viewBox:"22 22 44 44",children:(0,f.jsx)(E,{className:R.circle,style:C,ownerState:w,cx:Z,cy:Z,r:(Z-g)/2,fill:"none",strokeWidth:g})})}))}));t.Z=R},2346:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiCircularProgress",e)}const i=(0,n(6087).Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);t.Z=i},7720:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(5097),p=n(5893);const f=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],h=(0,l.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,o.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:e.palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:(0,c.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,o.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${e.palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,o.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${e.palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,o.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),m=(0,l.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),v=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:c,className:l,component:v=(c?"div":"hr"),flexItem:g=!1,light:b=!1,orientation:y="horizontal",role:Z=("hr"!==v?"separator":void 0),textAlign:x="center",variant:w="fullWidth"}=n,S=(0,r.Z)(n,f),k=(0,o.Z)({},n,{absolute:i,component:v,flexItem:g,light:b,orientation:y,role:Z,textAlign:x,variant:w}),E=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:c,variant:l}=e,u={root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===c&&"vertical"!==a&&"textAlignRight","left"===c&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(u,d.V,r)})(k);return(0,p.jsx)(h,(0,o.Z)({as:v,className:(0,a.Z)(E.root,l),role:Z,ref:t,ownerState:k},S,{children:c?(0,p.jsx)(m,{className:E.wrapper,ownerState:k,children:c}):null}))}));t.Z=v},5097:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiDivider",e)}const i=(0,n(6087).Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=i},6628:function(e,t,n){"use strict";var r=n(7462),o=n(3366),i=n(7294),a=n(8885),s=n(2734),c=n(577),l=n(1705),u=n(5893);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},f=i.forwardRef((function(e,t){const n=(0,s.Z)(),f={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:h,appear:m=!0,children:v,easing:g,in:b,onEnter:y,onEntered:Z,onEntering:x,onExit:w,onExited:S,onExiting:k,style:E,timeout:R=f,TransitionComponent:C=a.ZP}=e,P=(0,o.Z)(e,d),T=i.useRef(null),M=(0,l.Z)(v.ref,t),I=(0,l.Z)(T,M),O=e=>t=>{if(e){const n=T.current;void 0===t?e(n):e(n,t)}},N=O(x),z=O(((e,t)=>{(0,c.n)(e);const r=(0,c.C)({style:E,timeout:R,easing:g},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),y&&y(e,t)})),j=O(Z),A=O(k),L=O((e=>{const t=(0,c.C)({style:E,timeout:R,easing:g},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),w&&w(e)})),F=O(S);return(0,u.jsx)(C,(0,r.Z)({appear:m,in:b,nodeRef:T,onEnter:z,onEntered:j,onEntering:N,onExit:L,onExited:F,onExiting:A,addEndListener:e=>{h&&h(T.current,e)},timeout:R},P,{children:(e,t)=>i.cloneElement(v,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},p[e],E,v.props.style),ref:I},t))}))}));t.Z=f},7167:function(e,t,n){"use strict";const r=n(7294).createContext();t.Z=r},4423:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(7167);function i(){return r.useContext(o.Z)}},2287:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(7462),o=(n(7294),n(917)),i=n(5893);function a(e){const{styles:t,defaultTheme:n={}}=e,r="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(o.xB,{styles:r})}var s=n(247);var c=function(e){return(0,i.jsx)(a,(0,r.Z)({},e,{defaultTheme:s.Z}))}},6514:function(e,t,n){"use strict";var r=n(7462),o=n(3366),i=n(7294),a=n(8885),s=n(2734),c=n(577),l=n(1705),u=n(5893);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return`scale(${e}, ${e**2})`}const f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},h=i.forwardRef((function(e,t){const{addEndListener:n,appear:h=!0,children:m,easing:v,in:g,onEnter:b,onEntered:y,onEntering:Z,onExit:x,onExited:w,onExiting:S,style:k,timeout:E="auto",TransitionComponent:R=a.ZP}=e,C=(0,o.Z)(e,d),P=i.useRef(),T=i.useRef(),M=(0,s.Z)(),I=i.useRef(null),O=(0,l.Z)(m.ref,t),N=(0,l.Z)(I,O),z=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},j=z(Z),A=z(((e,t)=>{(0,c.n)(e);const{duration:n,delay:r,easing:o}=(0,c.C)({style:k,timeout:E,easing:v},{mode:"enter"});let i;"auto"===E?(i=M.transitions.getAutoHeightDuration(e.clientHeight),T.current=i):i=n,e.style.transition=[M.transitions.create("opacity",{duration:i,delay:r}),M.transitions.create("transform",{duration:.666*i,delay:r,easing:o})].join(","),b&&b(e,t)})),L=z(y),F=z(S),$=z((e=>{const{duration:t,delay:n,easing:r}=(0,c.C)({style:k,timeout:E,easing:v},{mode:"exit"});let o;"auto"===E?(o=M.transitions.getAutoHeightDuration(e.clientHeight),T.current=o):o=t,e.style.transition=[M.transitions.create("opacity",{duration:o,delay:n}),M.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:r})].join(","),e.style.opacity="0",e.style.transform=p(.75),x&&x(e)})),B=z(w);return i.useEffect((()=>()=>{clearTimeout(P.current)}),[]),(0,u.jsx)(R,(0,r.Z)({appear:h,in:g,nodeRef:I,onEnter:A,onEntered:L,onEntering:j,onExit:$,onExited:B,onExiting:F,addEndListener:e=>{"auto"===E&&(P.current=setTimeout(e,T.current||0)),n&&n(I.current,e)},timeout:"auto"===E?null:E},C,{children:(e,t)=>i.cloneElement(m,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||g?void 0:"hidden"},f[e],k,m.props.style),ref:N},t))}))}));h.muiSupportAuto=!0,t.Z=h},4799:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(7739),p=n(8216),f=n(6239),h=n(5893);const m=["edge","children","className","color","disabled","disableFocusRipple","size"],v=(0,l.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,p.Z)(n.color)}`],n.edge&&t[`edge${(0,p.Z)(n.edge)}`],t[`size${(0,p.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:(0,c.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>(0,o.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,o.Z)({color:e.palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:(0,c.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${f.Z.disabled}`]:{backgroundColor:"transparent",color:e.palette.action.disabled}}))),g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:c,className:l,color:d="default",disabled:g=!1,disableFocusRipple:b=!1,size:y="medium"}=n,Z=(0,r.Z)(n,m),x=(0,o.Z)({},n,{edge:i,color:d,disabled:g,disableFocusRipple:b,size:y}),w=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,p.Z)(r)}`,o&&`edge${(0,p.Z)(o)}`,`size${(0,p.Z)(i)}`]};return(0,s.Z)(a,f.r,t)})(x);return(0,h.jsx)(v,(0,o.Z)({className:(0,a.Z)(w.root,l),centerRipple:!0,focusRipple:!b,disabled:g,ref:t,ownerState:x},Z,{children:c}))}));t.Z=g},6239:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiIconButton",e)}const i=(0,n(6087).Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);t.Z=i},7021:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInput",e)}const i=(0,n(6087).Z)("MuiInput",["root","formControl","focused","disabled","colorSecondary","underline","error","sizeSmall","multiline","fullWidth","input","inputSizeSmall","inputMultiline","inputTypeSearch"]);t.Z=i},1458:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(917),l=n(1796),u=n(8216),d=n(2734),p=n(1496),f=n(3616),h=n(8979);function m(e){return(0,h.Z)("MuiLinearProgress",e)}(0,n(6087).Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var v=n(5893);const g=["className","color","value","valueBuffer","variant"];let b,y,Z,x,w,S,k=e=>e;const E=(0,c.F4)(b||(b=k` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),R=(0,c.F4)(y||(y=k` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),C=(0,c.F4)(Z||(Z=k` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),P=(e,t)=>"inherit"===t?"currentColor":"light"===e.palette.mode?(0,l.$n)(e.palette[t].main,.62):(0,l._j)(e.palette[t].main,.5),T=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,u.Z)(n.color)}`],t[n.variant]]}})((({ownerState:e,theme:t})=>(0,o.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:P(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),M=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${(0,u.Z)(n.color)}`]]}})((({ownerState:e,theme:t})=>{const n=P(t,e.color);return(0,o.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,c.iv)(x||(x=k` - animation: ${0} 3s infinite linear; - `),C)),I=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,u.Z)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,o.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.iv)(w||(w=k` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),E))),O=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,u.Z)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,o.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:P(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.iv)(S||(S=k` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),R)));var N=i.forwardRef((function(e,t){const n=(0,f.Z)({props:e,name:"MuiLinearProgress"}),{className:i,color:c="primary",value:l,valueBuffer:p,variant:h="indeterminate"}=n,b=(0,r.Z)(n,g),y=(0,o.Z)({},n,{color:c,variant:h}),Z=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${(0,u.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,u.Z)(r)}`],bar1:["bar",`barColor${(0,u.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,u.Z)(r)}`,"buffer"===n&&`color${(0,u.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,s.Z)(o,m,t)})(y),x=(0,d.Z)(),w={},S={bar1:{},bar2:{}};if("determinate"===h||"buffer"===h)if(void 0!==l){w["aria-valuenow"]=Math.round(l),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let e=l-100;"rtl"===x.direction&&(e=-e),S.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===h)if(void 0!==p){let e=(p||0)-100;"rtl"===x.direction&&(e=-e),S.bar2.transform=`translateX(${e}%)`}else 0;return(0,v.jsxs)(T,(0,o.Z)({className:(0,a.Z)(Z.root,i),ownerState:y,role:"progressbar"},w,{ref:t},b,{children:["buffer"===h?(0,v.jsx)(M,{className:Z.dashed,ownerState:y}):null,(0,v.jsx)(I,{className:Z.bar1,ownerState:y,style:S.bar1}),"determinate"===h?null:(0,v.jsx)(O,{className:Z.bar2,ownerState:y,style:S.bar2})]}))}))},8462:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(9773),d=n(8979);function p(e){return(0,d.Z)("MuiList",e)}(0,n(6087).Z)("MuiList",["root","padding","dense","subheader"]);var f=n(5893);const h=["children","className","component","dense","disablePadding","subheader"],m=(0,c.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var v=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiList"}),{children:c,className:d,component:v="ul",dense:g=!1,disablePadding:b=!1,subheader:y}=n,Z=(0,r.Z)(n,h),x=i.useMemo((()=>({dense:g})),[g]),w=(0,o.Z)({},n,{component:v,dense:g,disablePadding:b}),S=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,s.Z)(i,p,t)})(w);return(0,f.jsx)(u.Z.Provider,{value:x,children:(0,f.jsxs)(m,(0,o.Z)({as:v,className:(0,a.Z)(S.root,d),ref:t,ownerState:w},Z,{children:[y,c]}))})}))},9773:function(e,t,n){"use strict";const r=n(7294).createContext({});t.Z=r},7212:function(e,t,n){"use strict";n.d(t,{ZP:function(){return O}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(8442),l=n(1796),u=n(1496),d=n(3616),p=n(7739),f=n(1579),h=n(8974),m=n(1705),v=n(9773),g=n(8979),b=n(6087);function y(e){return(0,g.Z)("MuiListItem",e)}var Z=(0,b.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),x=n(8686);function w(e){return(0,g.Z)("MuiListItemSecondaryAction",e)}(0,b.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var S=n(5893);const k=["className"],E=(0,u.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,o.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),R=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:c}=n,l=(0,r.Z)(n,k),u=i.useContext(v.Z),p=(0,o.Z)({},n,{disableGutters:u.disableGutters}),f=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,s.Z)(r,w,n)})(p);return(0,S.jsx)(E,(0,o.Z)({className:(0,a.Z)(f.root,c),ownerState:p,ref:t},l))}));R.muiName="ListItemSecondaryAction";var C=R;const P=["className"],T=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],M=(0,u.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,o.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${x.Z.root}`]:{paddingRight:48}},{[`&.${Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${Z.selected}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Z.focusVisible}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Z.selected}:hover`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),I=(0,u.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var O=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItem"}),{alignItems:l="center",autoFocus:u=!1,button:g=!1,children:b,className:x,component:w,components:k={},componentsProps:E={},ContainerComponent:R="li",ContainerProps:{className:O}={},dense:N=!1,disabled:z=!1,disableGutters:j=!1,disablePadding:A=!1,divider:L=!1,focusVisibleClassName:F,secondaryAction:$,selected:B=!1}=n,D=(0,r.Z)(n.ContainerProps,P),V=(0,r.Z)(n,T),_=i.useContext(v.Z),q={dense:N||_.dense||!1,alignItems:l,disableGutters:j},W=i.useRef(null);(0,h.Z)((()=>{u&&W.current&&W.current.focus()}),[u]);const U=i.Children.toArray(b),H=U.length&&(0,f.Z)(U[U.length-1],["ListItemSecondaryAction"]),K=(0,o.Z)({},n,{alignItems:l,autoFocus:u,button:g,dense:q.dense,disabled:z,disableGutters:j,disablePadding:A,divider:L,hasSecondaryAction:H,selected:B}),G=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:c,divider:l,hasSecondaryAction:u,selected:d}=e,p={root:["root",o&&"dense",!a&&"gutters",!c&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(p,y,r)})(K),X=(0,m.Z)(W,t),Y=k.Root||M,J=E.root||{},Q=(0,o.Z)({className:(0,a.Z)(G.root,J.className,x),disabled:z},V);let ee=w||"li";return g&&(Q.component=w||"div",Q.focusVisibleClassName=(0,a.Z)(Z.focusVisible,F),ee=p.Z),H?(ee=Q.component||w?ee:"div","li"===R&&("li"===ee?ee="div":"li"===Q.component&&(Q.component="div")),(0,S.jsx)(v.Z.Provider,{value:q,children:(0,S.jsxs)(I,(0,o.Z)({as:R,className:(0,a.Z)(G.container,O),ref:X,ownerState:K},D,{children:[(0,S.jsx)(Y,(0,o.Z)({},J,!(0,c.Z)(Y)&&{as:ee,ownerState:(0,o.Z)({},K,J.ownerState)},Q,{children:U})),U.pop()]}))})):(0,S.jsx)(v.Z.Provider,{value:q,children:(0,S.jsxs)(Y,(0,o.Z)({},J,{as:ee,ref:X,ownerState:K},!(0,c.Z)(Y)&&{ownerState:(0,o.Z)({},K,J.ownerState)},Q,{children:[U,$&&(0,S.jsx)(C,{children:$})]}))})}))},8619:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(7739),p=n(8974),f=n(1705),h=n(9773),m=n(8686),v=n(5893);const g=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],b=(0,l.ZP)(d.Z,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.Z.selected}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${m.Z.focusVisible}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${m.Z.selected}:hover`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${m.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${m.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiListItemButton"}),{alignItems:c="center",autoFocus:l=!1,component:d="div",children:y,dense:Z=!1,disableGutters:x=!1,divider:w=!1,focusVisibleClassName:S,selected:k=!1}=n,E=(0,r.Z)(n,g),R=i.useContext(h.Z),C={dense:Z||R.dense||!1,alignItems:c,disableGutters:x},P=i.useRef(null);(0,p.Z)((()=>{l&&P.current&&P.current.focus()}),[l]);const T=(0,o.Z)({},n,{alignItems:c,dense:C.dense,disableGutters:x,divider:w,selected:k}),M=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:c,selected:l}=e,u={root:["root",r&&"dense",!a&&"gutters",c&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},d=(0,s.Z)(u,m.t,n);return(0,o.Z)({},n,d)})(T),I=(0,f.Z)(P,t);return(0,v.jsx)(h.Z.Provider,{value:C,children:(0,v.jsx)(b,(0,o.Z)({ref:I,component:d,focusVisibleClassName:(0,a.Z)(M.focusVisible,S),ownerState:T},E,{classes:M,children:y}))})}));t.Z=y},8686:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiListItemButton",e)}const i=(0,n(6087).Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.Z=i},7594:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(4592),d=n(9773),p=n(5893);const f=["className"],h=(0,c.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,o.Z)({minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),m=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiListItemIcon"}),{className:c}=n,m=(0,r.Z)(n,f),v=i.useContext(d.Z),g=(0,o.Z)({},n,{alignItems:v.alignItems}),b=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.Z)(r,u.f,n)})(g);return(0,p.jsx)(h,(0,o.Z)({className:(0,a.Z)(b.root,c),ownerState:g,ref:t},m))}));t.Z=m},4592:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiListItemIcon",e)}const i=(0,n(6087).Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=i},8333:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(7462),o=n(3366),i=n(7294),a=(n(9864),n(6010)),s=n(7192),c=n(4118),l=n(5113),u=n(1496),d=n(3616),p=n(7144),f=n(8038),h=n(5340),m=n(1705),v=n(6514),g=n(9964),b=n(8979),y=n(6087);function Z(e){return(0,b.Z)("MuiPopover",e)}(0,y.Z)("MuiPopover",["root","paper"]);var x=n(5893);const w=["onEntering"],S=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function k(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function E(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function R(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function C(e){return"function"===typeof e?e():e}const P=(0,u.ZP)(g.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T=(0,u.ZP)(l.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var M=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiPopover"}),{action:c,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:g,anchorReference:b="anchorEl",children:y,className:M,container:I,elevation:O=8,marginThreshold:N=16,open:z,PaperProps:j={},transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:L=v.Z,transitionDuration:F="auto",TransitionProps:{onEntering:$}={}}=n,B=(0,o.Z)(n.TransitionProps,w),D=(0,o.Z)(n,S),V=i.useRef(),_=(0,m.Z)(V,j.ref),q=(0,r.Z)({},n,{anchorOrigin:u,anchorReference:b,elevation:O,marginThreshold:N,PaperProps:j,transformOrigin:A,TransitionComponent:L,transitionDuration:F,TransitionProps:B}),W=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"]},Z,t)})(q),U=i.useCallback((()=>{if("anchorPosition"===b)return g;const e=C(l),t=(e&&1===e.nodeType?e:(0,f.Z)(V.current).body).getBoundingClientRect();return{top:t.top+k(t,u.vertical),left:t.left+E(t,u.horizontal)}}),[l,u.horizontal,u.vertical,g,b]),H=i.useCallback((e=>({vertical:k(e,A.vertical),horizontal:E(e,A.horizontal)})),[A.horizontal,A.vertical]),K=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=H(t);if("none"===b)return{top:null,left:null,transformOrigin:R(n)};const r=U();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=(0,h.Z)(C(l)),u=c.innerHeight-N,d=c.innerWidth-N;if(ou){const e=a-u;o-=e,n.vertical+=e}if(id){const e=s-d;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:R(n)}}),[l,b,U,H,N]),G=i.useCallback((()=>{const e=V.current;if(!e)return;const t=K(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[K]);i.useEffect((()=>{z&&G()})),i.useImperativeHandle(c,(()=>z?{updatePosition:()=>{G()}}:null),[z,G]),i.useEffect((()=>{if(!z)return;const e=(0,p.Z)((()=>{G()})),t=(0,h.Z)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,z,G]);let X=F;"auto"!==F||L.muiSupportAuto||(X=void 0);const Y=I||(l?(0,f.Z)(C(l)).body:void 0);return(0,x.jsx)(P,(0,r.Z)({BackdropProps:{invisible:!0},className:(0,a.Z)(W.root,M),container:Y,open:z,ref:t,ownerState:q},D,{children:(0,x.jsx)(L,(0,r.Z)({appear:!0,in:z,onEntering:(e,t)=>{$&&$(e,t),G()},timeout:X},B,{children:(0,x.jsx)(T,(0,r.Z)({elevation:O},j,{ref:_,className:(0,a.Z)(W.paper,j.className),children:y}))}))}))})),I=n(2734);function O(e){return(0,b.Z)("MuiMenu",e)}(0,y.Z)("MuiMenu",["root","paper","list"]);const N=["onEntering"],z=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],j={vertical:"top",horizontal:"right"},A={vertical:"top",horizontal:"left"},L=(0,u.ZP)(M,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F=(0,u.ZP)(l.Z,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$=(0,u.ZP)(c.Z,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var B=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiMenu"}),{autoFocus:c=!0,children:l,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:f,open:h,PaperProps:m={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:b}={},variant:y="selectedMenu"}=n,Z=(0,o.Z)(n.TransitionProps,N),w=(0,o.Z)(n,z),S=(0,I.Z)(),k="rtl"===S.direction,E=(0,r.Z)({},n,{autoFocus:c,disableAutoFocusItem:u,MenuListProps:p,onEntering:b,PaperProps:m,transitionDuration:g,TransitionProps:Z,variant:y}),R=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},O,t)})(E),C=c&&!u&&h,P=i.useRef(null);let T=-1;return i.Children.map(l,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===T)&&(T=t))})),(0,x.jsx)(L,(0,r.Z)({classes:v,onClose:f,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?j:A,PaperProps:(0,r.Z)({component:F},m,{classes:(0,r.Z)({},m.classes,{root:R.paper})}),className:R.root,open:h,ref:t,transitionDuration:g,TransitionProps:(0,r.Z)({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,S),b&&b(e,t)}},Z),ownerState:E},w,{children:(0,x.jsx)($,(0,r.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:P,autoFocus:c&&(-1===T||u),autoFocusItem:C,variant:y},p,{className:(0,a.Z)(R.list,p.className),children:l}))}))}))},4118:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(7462),o=n(3366),i=n(7294),a=(n(9864),n(8038)),s=n(8462),c=n(5806).Z,l=n(1705),u=n(8974),d=n(5893);const p=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function f(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function h(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function m(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function v(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&m(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}var g=i.forwardRef((function(e,t){const{actions:n,autoFocus:g=!1,autoFocusItem:b=!1,children:y,className:Z,disabledItemsFocusable:x=!1,disableListWrap:w=!1,onKeyDown:S,variant:k="selectedMenu"}=e,E=(0,o.Z)(e,p),R=i.useRef(null),C=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,u.Z)((()=>{g&&R.current.focus()}),[g]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!R.current.style.width;if(e.clientHeight{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===k&&e.props.selected||-1===T)&&(T=t))}));const M=i.Children.map(y,((e,t)=>{if(t===T){const t={};return b&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===k&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return(0,d.jsx)(s.Z,(0,r.Z)({role:"menu",ref:P,className:Z,onKeyDown:e=>{const t=R.current,n=e.key,r=(0,a.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),v(t,r,w,x,f);else if("ArrowUp"===n)e.preventDefault(),v(t,r,w,x,h);else if("Home"===n)e.preventDefault(),v(t,null,w,x,f);else if("End"===n)e.preventDefault(),v(t,null,w,x,h);else if(1===n.length){const o=C.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&m(r,o);o.previousKeyMatched&&(s||v(t,r,!1,x,f,o))?e.preventDefault():o.previousKeyMatched=!1}S&&S(e)},tabIndex:g?0:-1},E,{children:M}))}))},9964:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(3366),o=n(7462),i=n(7294),a=n(8442),s=n(6010),c=n(67),l=n(7094),u=n(3633),d=n(9064),p=n(7192),f=n(8385),h=n(8290),m=n(5806);function v(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function g(e){return parseInt((0,h.Z)(e).getComputedStyle(e).paddingRight,10)||0}function b(e,t,n,r=[],o){const i=[t,n,...r],a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(e=>{-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&v(e,o)}))}function y(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Z(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,l.Z)(e);return t.body===e?(0,h.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,m.Z)((0,l.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${g(r)+e}px`;const t=(0,l.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${g(t)+e}px`}))}const e=r.parentElement,t=(0,h.Z)(r),o="HTML"===(null==e?void 0:e.nodeName)&&"scroll"===t.getComputedStyle(e).overflowY?e:r;n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}var x=n(2310),w=n(6087),S=n(8979);function k(e){return(0,S.Z)("MuiModal",e)}(0,w.Z)("MuiModal",["root","hidden"]);var E=n(5893);const R=["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","theme","onTransitionEnter","onTransitionExited"];const C=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&v(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);b(t,e.mount,e.modalRef,r,!0);const o=y(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Z(r,t))}remove(e){const t=this.modals.indexOf(e);if(-1===t)return t;const n=y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&v(e.modalRef,!0),b(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&v(e.modalRef,!1)}return t}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var P=i.forwardRef((function(e,t){const{BackdropComponent:n,BackdropProps:h,children:m,classes:g,className:b,closeAfterTransition:y=!1,component:Z="div",components:w={},componentsProps:S={},container:P,disableAutoFocus:T=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:I=!1,disablePortal:O=!1,disableRestoreFocus:N=!1,disableScrollLock:z=!1,hideBackdrop:j=!1,keepMounted:A=!1,manager:L=C,onBackdropClick:F,onClose:$,onKeyDown:B,open:D,theme:V,onTransitionEnter:_,onTransitionExited:q}=e,W=(0,r.Z)(e,R),[U,H]=i.useState(!0),K=i.useRef({}),G=i.useRef(null),X=i.useRef(null),Y=(0,c.Z)(X,t),J=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),Q=()=>(K.current.modalRef=X.current,K.current.mountNode=G.current,K.current),ee=()=>{L.mount(Q(),{disableScrollLock:z}),X.current.scrollTop=0},te=(0,u.Z)((()=>{const e=function(e){return"function"===typeof e?e():e}(P)||(0,l.Z)(G.current).body;L.add(Q(),e),X.current&&ee()})),ne=i.useCallback((()=>L.isTopModal(Q())),[L]),re=(0,u.Z)((e=>{G.current=e,e&&(D&&ne()?ee():v(X.current,!0))})),oe=i.useCallback((()=>{L.remove(Q())}),[L]);i.useEffect((()=>()=>{oe()}),[oe]),i.useEffect((()=>{D?te():J&&y||oe()}),[D,oe,J,y,te]);const ie=(0,o.Z)({},e,{classes:g,closeAfterTransition:y,disableAutoFocus:T,disableEnforceFocus:M,disableEscapeKeyDown:I,disablePortal:O,disableRestoreFocus:N,disableScrollLock:z,exited:U,hideBackdrop:j,keepMounted:A}),ae=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"]};return(0,p.Z)(o,k,r)})(ie);if(!A&&!D&&(!J||U))return null;const se=()=>{H(!1),_&&_()},ce=()=>{H(!0),q&&q(),y&&oe()},le={};void 0===m.props.tabIndex&&(le.tabIndex="-1"),J&&(le.onEnter=(0,d.Z)(se,m.props.onEnter),le.onExited=(0,d.Z)(ce,m.props.onExited));const ue=w.Root||Z,de=S.root||{};return(0,E.jsx)(f.Z,{ref:re,container:P,disablePortal:O,children:(0,E.jsxs)(ue,(0,o.Z)({role:"presentation"},de,!(0,a.Z)(ue)&&{as:Z,ownerState:(0,o.Z)({},ie,de.ownerState),theme:V},W,{ref:Y,onKeyDown:e=>{B&&B(e),"Escape"===e.key&&ne()&&(I||(e.stopPropagation(),$&&$(e,"escapeKeyDown")))},className:(0,s.Z)(ae.root,de.className,b),children:[!j&&n?(0,E.jsx)(n,(0,o.Z)({open:D,onClick:e=>{e.target===e.currentTarget&&(F&&F(e),$&&$(e,"backdropClick"))}},h)):null,(0,E.jsx)(x.Z,{disableEnforceFocus:M,disableAutoFocus:T,disableRestoreFocus:N,isEnabled:ne,open:D,children:i.cloneElement(m,le)})]}))})})),T=n(1496),M=n(3616),I=n(7227);const O=["BackdropComponent","closeAfterTransition","children","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted"],N=(0,T.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,o.Z)({position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),z=(0,T.ZP)(I.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var j=i.forwardRef((function(e,t){var n;const s=(0,M.Z)({name:"MuiModal",props:e}),{BackdropComponent:c=z,closeAfterTransition:l=!1,children:u,components:d={},componentsProps:p={},disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:v=!1,disableRestoreFocus:g=!1,disableScrollLock:b=!1,hideBackdrop:y=!1,keepMounted:Z=!1}=s,x=(0,r.Z)(s,O),[w,S]=i.useState(!0),k={closeAfterTransition:l,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:v,disableRestoreFocus:g,disableScrollLock:b,hideBackdrop:y,keepMounted:Z},R=(e=>e.classes)((0,o.Z)({},s,k,{exited:w}));return(0,E.jsx)(P,(0,o.Z)({components:(0,o.Z)({Root:N},d),componentsProps:{root:(0,o.Z)({},p.root,(!d.Root||!(0,a.Z)(d.Root))&&{ownerState:(0,o.Z)({},null==(n=p.root)?void 0:n.ownerState)})},BackdropComponent:c,onTransitionEnter:()=>S(!1),onTransitionExited:()=>S(!0),ref:t},x,{classes:R},k,{children:u}))}))},5113:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(8979);function p(e){return(0,d.Z)("MuiPaper",e)}(0,n(6087).Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var f=n(5893);const h=["className","component","elevation","square","variant"],m=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},v=(0,l.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${e.palette.divider}`},"elevation"===t.variant&&(0,o.Z)({boxShadow:e.shadows[t.elevation]},"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,c.Fq)("#fff",m(t.elevation))}, ${(0,c.Fq)("#fff",m(t.elevation))})`}))));var g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiPaper"}),{className:i,component:c="div",elevation:l=1,square:d=!1,variant:m="elevation"}=n,g=(0,r.Z)(n,h),b=(0,o.Z)({},n,{component:c,elevation:l,square:d,variant:m}),y=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(i,p,o)})(b);return(0,f.jsx)(v,(0,o.Z)({as:c,ownerState:b,className:(0,a.Z)(y.root,i),ref:t},g))}))},2994:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiSvgIcon",e)}const i=(0,n(6087).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);t.Z=i},5861:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(9707),c=n(7192),l=n(1496),u=n(3616),d=n(8216),p=n(8979);function f(e){return(0,p.Z)("MuiTypography",e)}(0,n(6087).Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var h=n(5893);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],v=(0,l.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,o.Z)({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),g={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTypography"}),i=(e=>b[e]||e)(n.color),l=(0,s.Z)((0,o.Z)({},n,{color:i})),{align:p="inherit",className:y,component:Z,gutterBottom:x=!1,noWrap:w=!1,paragraph:S=!1,variant:k="body1",variantMapping:E=g}=l,R=(0,r.Z)(l,m),C=(0,o.Z)({},l,{align:p,color:i,className:y,component:Z,gutterBottom:x,noWrap:w,paragraph:S,variant:k,variantMapping:E}),P=Z||(S?"p":E[k]||g[k])||"span",T=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,d.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,c.Z)(s,f,a)})(C);return(0,h.jsx)(v,(0,o.Z)({as:P,ref:t,ownerState:C,className:(0,a.Z)(T.root,y)},R))}))},1964:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(8216),l=n(1496),u=n(9299),d=n(4423),p=n(7739),f=n(8979);function h(e){return(0,f.Z)("PrivateSwitchBase",e)}(0,n(6087).Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=n(5893);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,l.ZP)(p.Z)((({ownerState:e})=>(0,o.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),b=(0,l.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var y=i.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:l,className:p,defaultChecked:f,disabled:y,disableFocusRipple:Z=!1,edge:x=!1,icon:w,id:S,inputProps:k,inputRef:E,name:R,onBlur:C,onChange:P,onFocus:T,readOnly:M,required:I,tabIndex:O,type:N,value:z}=e,j=(0,r.Z)(e,v),[A,L]=(0,u.Z)({controlled:i,default:Boolean(f),name:"SwitchBase",state:"checked"}),F=(0,d.Z)();let $=y;F&&"undefined"===typeof $&&($=F.disabled);const B="checkbox"===N||"radio"===N,D=(0,o.Z)({},e,{checked:A,disabled:$,disableFocusRipple:Z,edge:x}),V=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${(0,c.Z)(o)}`],input:["input"]};return(0,s.Z)(i,h,t)})(D);return(0,m.jsxs)(g,(0,o.Z)({component:"span",className:(0,a.Z)(V.root,p),centerRipple:!0,focusRipple:!Z,disabled:$,tabIndex:null,role:void 0,onFocus:e=>{T&&T(e),F&&F.onFocus&&F.onFocus(e)},onBlur:e=>{C&&C(e),F&&F.onBlur&&F.onBlur(e)},ownerState:D,ref:t},j,{children:[(0,m.jsx)(b,(0,o.Z)({autoFocus:n,checked:i,defaultChecked:f,className:V.input,disabled:$,id:B&&S,name:R,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),P&&P(e,t)},readOnly:M,ref:E,required:I,ownerState:D,tabIndex:O,type:N},"checkbox"===N&&void 0===z?{}:{value:z},k)),A?l:w]}))}))},247:function(e,t,n){"use strict";const r=(0,n(1265).Z)();t.Z=r},1496:function(e,t,n){"use strict";n.d(t,{ZP:function(){return w},FO:function(){return y},Dz:function(){return Z}});var r=n(7462),o=n(3366),i=n(561),a=n(6500),s=n(8320);const c=["variant"];function l(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,o.Z)(e,c);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?l(r)?e[t]:(0,s.Z)(e[t]):`${l(r)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),r}var d=n(6523);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],f=["theme"],h=["theme"];function m(e){return 0===Object.keys(e).length}function v(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,a.Z)();var b=n(247);const y=e=>v(e)&&"classes"!==e,Z=v,x=function(e={}){const{defaultTheme:t=g,rootShouldForwardProp:n=v,slotShouldForwardProp:a=v,styleFunctionSx:s=d.Z}=e;return(e,c={})=>{const{name:l,slot:d,skipVariantsResolver:g,skipSx:b,overridesResolver:y}=c,Z=(0,o.Z)(c,p),x=void 0!==g?g:d&&"Root"!==d||!1,w=b||!1;let S=v;"Root"===d?S=n:d&&(S=a);const k=(0,i.ZP)(e,(0,r.Z)({shouldForwardProp:S,label:undefined},Z)),E=(e,...n)=>{const i=n?n.map((e=>"function"===typeof e&&e.__emotion_real!==e?n=>{let{theme:i}=n,a=(0,o.Z)(n,f);return e((0,r.Z)({theme:m(i)?t:i},a))}:e)):[];let a=e;l&&y&&i.push((e=>{const n=m(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(r){const t={};return Object.entries(r).forEach((([n,r])=>{t[n]="function"===typeof r?r(e):r})),y(e,t)}return null})),l&&!x&&i.push((e=>{const n=m(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],c=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return c&&c.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[u(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r})(l,n),n,l)})),w||i.push((e=>{const n=m(e.theme)?t:e.theme;return s((0,r.Z)({},e,{theme:n}))}));const c=i.length-n.length;if(Array.isArray(e)&&c>0){const t=new Array(c).fill("");a=[...e,...t],a.raw=[...e.raw,...t]}else"function"===typeof e&&(a=n=>{let{theme:i}=n,a=(0,o.Z)(n,h);return e((0,r.Z)({theme:m(i)?t:i},a))});return k(a,...i)};return k.withConfig&&(E.withConfig=k.withConfig),E}}({defaultTheme:b.Z,rootShouldForwardProp:y});var w=x},2734:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(7294);var r=n(6682),o=n(247);function i(){return(0,r.Z)(o.Z)}},3616:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(539),o=n(6682);var i=n(247);function a({props:e,name:t}){return function({props:e,name:t,defaultTheme:n}){const i=(0,o.Z)(n);return(0,r.Z)({theme:i,name:t,props:e})}({props:e,name:t,defaultTheme:i.Z})}},577:function(e,t,n){"use strict";n.d(t,{n:function(){return r},C:function(){return o}});const r=e=>e.scrollTop;function o(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}},8216:function(e,t,n){"use strict";var r=n(8320);t.Z=r.Z},7892:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(7462),o=n(7294),i=n(3366),a=n(6010),s=n(7192),c=n(8216),l=n(3616),u=n(1496),d=n(2994),p=n(5893);const f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,c.Z)(n.color)}`],t[`fontSize${(0,c.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,l,u,d,p,f,h,m,v,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(c=e.typography)||null==(l=c.pxToRem)?void 0:l.call(c,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875"}[t.fontSize],color:null!=(p=null==(f=e.palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=e.palette)||null==(v=m.action)?void 0:v.active,disabled:null==(g=e.palette)||null==(b=g.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),m=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiSvgIcon"}),{children:o,className:u,color:m="inherit",component:v="svg",fontSize:g="medium",htmlColor:b,inheritViewBox:y=!1,titleAccess:Z,viewBox:x="0 0 24 24"}=n,w=(0,i.Z)(n,f),S=(0,r.Z)({},n,{color:m,component:v,fontSize:g,inheritViewBox:y,viewBox:x}),k={};y||(k.viewBox=x);const E=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,c.Z)(t)}`,`fontSize${(0,c.Z)(n)}`]};return(0,s.Z)(o,d.h,r)})(S);return(0,p.jsxs)(h,(0,r.Z)({as:v,className:(0,a.Z)(E.root,u),ownerState:S,focusable:"false",color:b,"aria-hidden":!Z||void 0,role:Z?"img":void 0,ref:t},k,w,{children:[o,Z?(0,p.jsx)("title",{children:Z}):null]}))}));m.muiName="SvgIcon";var v=m;function g(e,t){const n=(n,o)=>(0,p.jsx)(v,(0,r.Z)({"data-testid":`${t}Icon`,ref:o},n,{children:e}));return n.muiName=v.muiName,o.memo(o.forwardRef(n))}},7144:function(e,t,n){"use strict";var r=n(7596);t.Z=r.Z},1579:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294);var o=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},8038:function(e,t,n){"use strict";var r=n(7094);t.Z=r.Z},5340:function(e,t,n){"use strict";var r=n(8290);t.Z=r.Z},9299:function(e,t,n){"use strict";var r=n(8925);t.Z=r.Z},8974:function(e,t,n){"use strict";var r=n(6600);t.Z=r.Z},2068:function(e,t,n){"use strict";var r=n(3633);t.Z=r.Z},1705:function(e,t,n){"use strict";var r=n(67);t.Z=r.Z},9674:function(e,t,n){"use strict";var r=n(9962);t.Z=r.Z},561:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x}});var r=n(7294),o=n.t(r,2),i=n(7462),a=n(7866),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=(0,a.Z)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(4880),u=n(444),d=n(3772),p=c,f=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:f},m=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},v=o.useInsertionEffect?o.useInsertionEffect:function(e){e()};var g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);v((function(){return(0,u.My)(t,n,r)}));return null},b=function e(t,n){var o,a,s=t.__emotion_real===t,c=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var p=m(t,n,s),f=p||h(c),v=!f("as");return function(){var b=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var Z=b.length,x=1;x(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n},a=n(8700),s=n(5408);function c(e){return"number"!==typeof e?e:`${e}px solid`}const l=(0,r.Z)({prop:"border",themeKey:"borders",transform:c}),u=(0,r.Z)({prop:"borderTop",themeKey:"borders",transform:c}),d=(0,r.Z)({prop:"borderRight",themeKey:"borders",transform:c}),p=(0,r.Z)({prop:"borderBottom",themeKey:"borders",transform:c}),f=(0,r.Z)({prop:"borderLeft",themeKey:"borders",transform:c}),h=(0,r.Z)({prop:"borderColor",themeKey:"palette"}),m=(0,r.Z)({prop:"borderTopColor",themeKey:"palette"}),v=(0,r.Z)({prop:"borderRightColor",themeKey:"palette"}),g=(0,r.Z)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,r.Z)({prop:"borderLeftColor",themeKey:"palette"}),y=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,a.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,a.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};y.propTypes={},y.filterProps=["borderRadius"];var Z=i(l,u,d,p,f,h,m,v,g,b,y);var x=i((0,r.Z)({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),(0,r.Z)({prop:"display"}),(0,r.Z)({prop:"overflow"}),(0,r.Z)({prop:"textOverflow"}),(0,r.Z)({prop:"visibility"}),(0,r.Z)({prop:"whiteSpace"}));var w=i((0,r.Z)({prop:"flexBasis"}),(0,r.Z)({prop:"flexDirection"}),(0,r.Z)({prop:"flexWrap"}),(0,r.Z)({prop:"justifyContent"}),(0,r.Z)({prop:"alignItems"}),(0,r.Z)({prop:"alignContent"}),(0,r.Z)({prop:"order"}),(0,r.Z)({prop:"flex"}),(0,r.Z)({prop:"flexGrow"}),(0,r.Z)({prop:"flexShrink"}),(0,r.Z)({prop:"alignSelf"}),(0,r.Z)({prop:"justifyItems"}),(0,r.Z)({prop:"justifySelf"}));const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,a.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const k=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,a.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};k.propTypes={},k.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,a.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];var R=i(S,k,E,(0,r.Z)({prop:"gridColumn"}),(0,r.Z)({prop:"gridRow"}),(0,r.Z)({prop:"gridAutoFlow"}),(0,r.Z)({prop:"gridAutoColumns"}),(0,r.Z)({prop:"gridAutoRows"}),(0,r.Z)({prop:"gridTemplateColumns"}),(0,r.Z)({prop:"gridTemplateRows"}),(0,r.Z)({prop:"gridTemplateAreas"}),(0,r.Z)({prop:"gridArea"}));var C=i((0,r.Z)({prop:"position"}),(0,r.Z)({prop:"zIndex",themeKey:"zIndex"}),(0,r.Z)({prop:"top"}),(0,r.Z)({prop:"right"}),(0,r.Z)({prop:"bottom"}),(0,r.Z)({prop:"left"}));var P=i((0,r.Z)({prop:"color",themeKey:"palette"}),(0,r.Z)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),(0,r.Z)({prop:"backgroundColor",themeKey:"palette"}));var T=(0,r.Z)({prop:"boxShadow",themeKey:"shadows"});function M(e){return e<=1&&0!==e?100*e+"%":e}const I=(0,r.Z)({prop:"width",transform:M}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||s.VO[t]||M(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const N=(0,r.Z)({prop:"minWidth",transform:M}),z=(0,r.Z)({prop:"height",transform:M}),j=(0,r.Z)({prop:"maxHeight",transform:M}),A=(0,r.Z)({prop:"minHeight",transform:M});(0,r.Z)({prop:"size",cssProperty:"width",transform:M}),(0,r.Z)({prop:"size",cssProperty:"height",transform:M});var L=i(I,O,N,z,j,A,(0,r.Z)({prop:"boxSizing"}));const F=(0,r.Z)({prop:"fontFamily",themeKey:"typography"}),$=(0,r.Z)({prop:"fontSize",themeKey:"typography"}),B=(0,r.Z)({prop:"fontStyle",themeKey:"typography"}),D=(0,r.Z)({prop:"fontWeight",themeKey:"typography"}),V=(0,r.Z)({prop:"letterSpacing"}),_=(0,r.Z)({prop:"textTransform"}),q=(0,r.Z)({prop:"lineHeight"}),W=(0,r.Z)({prop:"textAlign"});var U=i((0,r.Z)({prop:"typography",cssProperty:!1,themeKey:"typography"}),F,$,B,D,V,q,W,_);const H={borders:Z.filterProps,display:x.filterProps,flexbox:w.filterProps,grid:R.filterProps,positions:C.filterProps,palette:P.filterProps,shadows:T.filterProps,sizing:L.filterProps,spacing:a.ZP.filterProps,typography:U.filterProps},K={borders:Z,display:x,flexbox:w,grid:R,positions:C,palette:P,shadows:T,sizing:L,spacing:a.ZP,typography:U},G=Object.keys(H).reduce(((e,t)=>(H[t].forEach((n=>{e[n]=K[t]})),e)),{})},9707:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(7462),o=n(3366),i=n(9766),a=n(8528);const s=["sx"];function c(e){const{sx:t}=e,n=(0,o.Z)(e,s),{systemProps:c,otherProps:l}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{a.Gc[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let u;return u=Array.isArray(t)?[c,...t]:"function"===typeof t?(...e)=>{const n=t(...e);return(0,i.P)(n)?(0,r.Z)({},c,n):c}:(0,r.Z)({},c,t),(0,r.Z)({},l,{sx:u})}},6523:function(e,t,n){"use strict";var r=n(7730),o=n(8528),i=n(5408);const a=function(e=o.G$){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(o){const{sx:a,theme:s={}}=o||{};if(!a)return null;function c(o){let a=o;if("function"===typeof o)a=o(s);else if("object"!==typeof o)return o;if(!a)return null;const c=(0,i.W8)(s.breakpoints),l=Object.keys(c);let u=c;return Object.keys(a).forEach((o=>{const c=(l=a[o],d=s,"function"===typeof l?l(d):l);var l,d;if(null!==c&&void 0!==c)if("object"===typeof c)if(t[o])u=(0,r.Z)(u,n(o,c,s));else{const t=(0,i.k9)({theme:s},c,(e=>({[o]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(t,c)?u=(0,r.Z)(u,t):u[o]=e({sx:c,theme:s})}else u=(0,r.Z)(u,n(o,c,s))})),(0,i.L7)(l,u)}return Array.isArray(a)?a.map(c):c(a)}}();a.filterProps=["sx"],t.Z=a},539:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7925);function o(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}},9064:function(e,t,n){"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{Z:function(){return r}})},7596:function(e,t,n){"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{Z:function(){return r}})},5806:function(e,t,n){"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{Z:function(){return r}})},7094:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},8290:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7094);function o(e){return(0,r.Z)(e).defaultView||window}},7925:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7462);function o(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}},7960:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},8925:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294);function o({controlled:e,default:t,name:n,state:o="value"}){const{current:i}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[i?e:a,r.useCallback((e=>{i||s(e)}),[])]}},6600:function(e,t,n){"use strict";var r=n(7294);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=o},3633:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(6600);function i(e){const t=r.useRef(e);return(0,o.Z)((()=>{t.current=e})),r.useCallback(((...e)=>(0,t.current)(...e)),[])}},67:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(7960);function i(e,t){return r.useMemo((()=>null==e&&null==t?null:n=>{(0,o.Z)(e,n),(0,o.Z)(t,n)}),[e,t])}},9962:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(7294);let o,i=!0,a=!1;const s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function l(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",l,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("touchstart",l,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(o),o=window.setTimeout((()=>{a=!1}),100),t.current=!1,!0)},ref:e}}},9669:function(e,t,n){e.exports=n(1609)},5448:function(e,t,n){"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),s=n(4097),c=n(4109),l=n(7985),u=n(5061),d=n(5655),p=n(5263);e.exports=function(e){return new Promise((function(t,n){var f,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(h)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",Z=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+Z)}var x=s(e.baseURL,e.url);function w(){if(b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(w)},b.onabort=function(){b&&(n(u("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(u("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||l(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){b&&(n(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),h||(h=null),b.send(h)}))}},1609:function(e,t,n){"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5655));s.Axios=i,s.Cancel=n(5263),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},5263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:function(e,t,n){"use strict";var r=n(5263);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(s)})),e.exports=l},7288:function(e){e.exports={version:"0.24.0"}},1849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:function(e,t,n){"use strict";var r=n(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:function(e,t,n){"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var d=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return u(r)}},5068:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return o}})},8100:function(e,t,n){"use strict";n.d(t,{ZP:function(){return X}});var r=n(7294);function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:I?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:I?5e3:3e3,compare:function(e,t){return g(e)==g(t)},isPaused:function(){return!1},cache:D,mutate:V,fallback:{}},E),q=function(e,t){var n=p(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=p(o,a))}return n},W=(0,r.createContext)({}),U=function(e){return d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},H=function(){return p(_,(0,r.useContext)(W))},K=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},G={dedupe:!0},X=(l.defineProperty((function(e){var t=e.value,n=q((0,r.useContext)(W),t),o=t&&t.provider,i=(0,r.useState)((function(){return o?$(o(n.cache||D),t):c}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),T((function(){return i?i[2]:c}),[]),(0,r.createElement)(W.Provider,p(e,{value:n}))}),"default",{value:_}),a=function(e,t,n){var a=n.cache,s=n.compare,l=n.fallbackData,f=n.suspense,h=n.revalidateOnMount,m=n.refreshInterval,v=n.refreshWhenHidden,g=n.refreshWhenOffline,b=N.get(a),y=b[0],Z=b[1],x=b[2],w=b[3],S=O(e),k=S[0],E=S[1],R=S[2],M=(0,r.useRef)(!1),I=(0,r.useRef)(!1),j=(0,r.useRef)(k),F=(0,r.useRef)(t),$=(0,r.useRef)(n),B=function(){return $.current},D=function(){return B().isVisible()&&B().isOnline()},V=function(e){return a.set(R,p(a.get(R),e))},_=a.get(k),q=u(l)?n.fallback[k]:l,W=u(_)?q:_,U=a.get(R)||{},H=U.error,X=!M.current,Y=function(){return X&&!u(h)?h:!B().isPaused()&&(f?!u(W):u(W)||n.revalidateIfStale)},J=!(!k||!t)&&(!!U.isValidating||X&&Y()),Q=function(e,t){var n=(0,r.useState)({})[1],o=(0,r.useRef)(e),i=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,r.useCallback)((function(e){var r=!1,a=o.current;for(var s in e){var c=s;a[c]!==e[c]&&(a[c]=e[c],i.current[c]&&(r=!0))}r&&!t.current&&n({})}),[]);return T((function(){o.current=e})),[o,i.current,a]}({data:W,error:H,isValidating:J},I),ee=Q[0],te=Q[1],ne=Q[2],re=(0,r.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,r,o,l,p,f,h,m,v,g,b,y,Z;return i(this,(function(i){switch(i.label){case 0:if(t=F.current,!k||!t||I.current||B().isPaused())return[2,!1];l=!0,p=e||{},f=!w[k]||!p.dedupe,h=function(){return!I.current&&k===j.current&&M.current},m=function(){var e=w[k];e&&e[1]===o&&delete w[k]},v={isValidating:!1},g=function(){V({isValidating:!1}),h()&&ne(v)},V({isValidating:!0}),ne({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),f&&(z(a,k,ee.current.data,ee.current.error,!0),n.loadingTimeout&&!a.get(k)&&setTimeout((function(){l&&h()&&B().onLoadingSlow(k,n)}),n.loadingTimeout),w[k]=[t.apply(void 0,E),A()]),Z=w[k],r=Z[0],o=Z[1],[4,r];case 2:return r=i.sent(),f&&setTimeout(m,n.dedupingInterval),w[k]&&w[k][1]===o?(V({error:c}),v.error=c,b=x[k],!u(b)&&(o<=b[0]||o<=b[1]||0===b[1])?(g(),f&&h()&&B().onDiscarded(k),[2,!1]):(s(ee.current.data,r)?v.data=ee.current.data:v.data=r,s(a.get(k),r)||a.set(k,r),f&&h()&&B().onSuccess(r,k,n),[3,4])):(f&&h()&&B().onDiscarded(k),[2,!1]);case 3:return y=i.sent(),m(),B().isPaused()||(V({error:y}),v.error=y,f&&h()&&(B().onError(y,k,n),("boolean"===typeof n.shouldRetryOnError&&n.shouldRetryOnError||d(n.shouldRetryOnError)&&n.shouldRetryOnError(y))&&D()&&B().onErrorRetry(y,k,n,re,{retryCount:(p.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,g(),h()&&f&&z(a,k,v.data,v.error,!1),[2,!0]}}))}))}),[k]),oe=(0,r.useCallback)(L.bind(c,a,(function(){return j.current})),[]);if(T((function(){F.current=t,$.current=n})),T((function(){if(k){var e=k!==j.current,t=re.bind(c,G),n=0,r=K(k,Z,(function(e,t,n){ne(p({error:t,isValidating:n},s(ee.current.data,e)?c:{data:e}))})),o=K(k,y,(function(e){if(0==e){var r=Date.now();B().revalidateOnFocus&&r>n&&D()&&(n=r+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&D()&&t();else if(2==e)return re()}));return I.current=!1,j.current=k,M.current=!0,e&&ne({data:W,error:H,isValidating:J}),Y()&&(u(W)||C?t():P(t)),function(){I.current=!0,r(),o()}}}),[k,re]),T((function(){var e;function t(){var t=d(m)?m(W):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){ee.current.error||!v&&!B().isVisible()||!g&&!B().isOnline()?t():re(G).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[m,v,g,re]),(0,r.useDebugValue)(W),f&&u(W)&&k)throw F.current=t,$.current=n,I.current=!1,u(H)?re(G):H;return{mutate:oe,get data(){return te.data=!0,W},get error(){return te.error=!0,H},get isValidating(){return te.isValidating=!0,J}}},function(){for(var e=[],t=0;t0;)l=u[d](l);return l(o,i||c.fetcher,c)})}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/412-ae4bab5809f6a209.js b/striker-ui/out/_next/static/chunks/412-ae4bab5809f6a209.js new file mode 100644 index 00000000..c5b46b91 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/412-ae4bab5809f6a209.js @@ -0,0 +1,154 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{917:function(e,t,n){"use strict";var r;n.d(t,{xB:function(){return u},iv:function(){return d},F4:function(){return p}});var o=n(7294),i=(n(4474),n(4880)),a=(n(8679),n(444)),s=n(3772),c=n(1526),l=(r||(r=n.t(o,2))).useInsertionEffect?(r||(r=n.t(o,2))).useInsertionEffect:o.useLayoutEffect,u=(0,i.w)((function(e,t){var n=e.styles,r=(0,s.O)([n],void 0,(0,o.useContext)(i.T)),u=(0,o.useRef)();return l((function(){var e=t.key+"-global",n=new c.m({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,o],function(){n.flush()}}),[t]),l((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&(0,a.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function d(){for(var e=arguments.length,t=new Array(e),n=0;n{l||d(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,l]),(0,a.Z)((()=>{if(u&&!l)return(0,s.Z)(t,u),()=>{(0,s.Z)(t,null)}}),[t,u,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:p}):n:u?o.createPortal(n,u):u}));t.Z=c},2310:function(e,t,n){"use strict";var r=n(7294),o=n(67),i=n(7094),a=n(5893);const s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function c(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function l(){return!0}t.Z=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:u=!1,getTabbable:d=c,isEnabled:p=l,open:f}=e,h=r.useRef(),m=r.useRef(null),v=r.useRef(null),g=r.useRef(null),b=r.useRef(null),y=r.useRef(!1),Z=r.useRef(null),x=(0,o.Z)(t.ref,Z),w=r.useRef(null);r.useEffect((()=>{f&&Z.current&&(y.current=!n)}),[n,f]),r.useEffect((()=>{if(!f||!Z.current)return;const e=(0,i.Z)(Z.current);return Z.current.contains(e.activeElement)||(Z.current.hasAttribute("tabIndex")||Z.current.setAttribute("tabIndex",-1),y.current&&Z.current.focus()),()=>{u||(g.current&&g.current.focus&&(h.current=!0,g.current.focus()),g.current=null)}}),[f]),r.useEffect((()=>{if(!f||!Z.current)return;const e=(0,i.Z)(Z.current),t=t=>{const{current:n}=Z;if(null!==n)if(e.hasFocus()&&!s&&p()&&!h.current){if(!n.contains(e.activeElement)){if(t&&b.current!==t.target||e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!y.current)return;let i=[];if(e.activeElement!==m.current&&e.activeElement!==v.current||(i=d(Z.current)),i.length>0){var r,o;const e=Boolean((null==(r=w.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=w.current)?void 0:o.key)),t=i[0],n=i[i.length-1];e?n.focus():t.focus()}else n.focus()}}else h.current=!1},n=t=>{w.current=t,!s&&p()&&"Tab"===t.key&&e.activeElement===Z.current&&t.shiftKey&&(h.current=!0,v.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const r=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,s,u,p,f,d]);const S=e=>{null===g.current&&(g.current=e.relatedTarget),y.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:0,onFocus:S,ref:m,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:x,onFocus:e=>{null===g.current&&(g.current=e.relatedTarget),y.current=!0,b.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:0,onFocus:S,ref:v,"data-test":"sentinelEnd"})]})}},7192:function(e,t,n){"use strict";function r(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e)),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},8442:function(e,t){"use strict";t.Z=function(e){return"string"===typeof e}},2428:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add")},1113:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Assignment")},5537:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},6761:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")},6059:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done")},1797:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit")},1680:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess")},6571:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},1370:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"}),"PlayCircle")},2186:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility")},5697:function(e,t,n){"use strict";var r=n(7892),o=n(5893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff")},7227:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(3366),o=n(7462),i=n(7294),a=n(8442),s=n(6010),c=n(7192),l=n(6087),u=n(8979);function d(e){return(0,u.Z)("MuiBackdrop",e)}(0,l.Z)("MuiBackdrop",["root","invisible"]);var p=n(5893);const f=["classes","className","invisible","component","components","componentsProps","theme"];var h=i.forwardRef((function(e,t){const{classes:n,className:i,invisible:l=!1,component:u="div",components:h={},componentsProps:m={},theme:v}=e,g=(0,r.Z)(e,f),b=(0,o.Z)({},e,{classes:n,invisible:l}),y=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,c.Z)(r,d,t)})(b),Z=h.Root||u,x=m.root||{};return(0,p.jsx)(Z,(0,o.Z)({"aria-hidden":!0},x,!(0,a.Z)(Z)&&{as:u,ownerState:(0,o.Z)({},b,x.ownerState),theme:v},{ref:t},g,{className:(0,s.Z)(y.root,x.className,i)}))})),m=n(1496),v=n(3616),g=n(6628);const b=["children","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],y=(0,m.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,o.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})));var Z=i.forwardRef((function(e,t){var n;const i=(0,v.Z)({props:e,name:"MuiBackdrop"}),{children:s,components:c={},componentsProps:l={},className:u,invisible:d=!1,open:f,transitionDuration:m,TransitionComponent:Z=g.Z}=i,x=(0,r.Z)(i,b),w=(e=>{const{classes:t}=e;return t})((0,o.Z)({},i,{invisible:d}));return(0,p.jsx)(Z,(0,o.Z)({in:f,timeout:m},x,{children:(0,p.jsx)(h,{className:u,invisible:d,components:(0,o.Z)({Root:y},c),componentsProps:{root:(0,o.Z)({},l.root,(!c.Root||!(0,a.Z)(c.Root))&&{ownerState:(0,o.Z)({},null==(n=l.root)?void 0:n.ownerState)})},classes:w,ref:t,children:s})}))}))},7357:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(7462),o=n(3366),i=n(7294),a=n(6010),s=n(561),c=n(6523),l=n(9707),u=n(6682),d=n(5893);const p=["className","component"];var f=n(9981);const h=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:f,styleFunctionSx:h=c.Z}=e,m=(0,s.ZP)("div")(h);return i.forwardRef((function(e,i){const s=(0,u.Z)(t),c=(0,l.Z)(e),{className:h,component:v="div"}=c,g=(0,o.Z)(c,p);return(0,d.jsx)(m,(0,r.Z)({as:v,ref:i,className:(0,a.Z)(h,f?f(n):n),theme:s},g))}))}({defaultTheme:(0,n(1265).Z)(),defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var m=h},2992:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7925),c=n(7192),l=n(1796),u=n(1496),d=n(3616),p=n(7739),f=n(8216),h=n(7933);var m=i.createContext({}),v=n(5893);const g=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],b=e=>(0,o.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),y=(0,u.ZP)(p.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,f.Z)(n.color)}`],t[`size${(0,f.Z)(n.size)}`],t[`${n.variant}Size${(0,f.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:(0,l.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${e.palette[t.color].main}`,backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.palette[t.color].dark,"@media (hover: none)":{backgroundColor:e.palette[t.color].main}}),"&:active":(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[8]}),[`&.${h.Z.focusVisible}`]:(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[6]}),[`&.${h.Z.disabled}`]:(0,o.Z)({color:e.palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${e.palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${e.palette.action.disabled}`},"contained"===t.variant&&{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"outlined"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,l.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${h.Z.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${h.Z.disabled}`]:{boxShadow:"none"}})),Z=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,f.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},b(e)))),x=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,f.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},b(e))));var w=i.forwardRef((function(e,t){const n=i.useContext(m),l=(0,s.Z)(n,e),u=(0,d.Z)({props:l,name:"MuiButton"}),{children:p,color:b="primary",component:w="button",className:S,disabled:E=!1,disableElevation:k=!1,disableFocusRipple:R=!1,endIcon:C,focusVisibleClassName:P,fullWidth:T=!1,size:M="medium",startIcon:I,type:O,variant:N="text"}=u,z=(0,r.Z)(u,g),j=(0,o.Z)({},u,{color:b,component:w,disabled:E,disableElevation:k,disableFocusRipple:R,fullWidth:T,size:M,type:O,variant:N}),A=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,f.Z)(t)}`,`size${(0,f.Z)(i)}`,`${a}Size${(0,f.Z)(i)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,f.Z)(i)}`],endIcon:["endIcon",`iconSize${(0,f.Z)(i)}`]},u=(0,c.Z)(l,h.F,s);return(0,o.Z)({},s,u)})(j),L=I&&(0,v.jsx)(Z,{className:A.startIcon,ownerState:j,children:I}),F=C&&(0,v.jsx)(x,{className:A.endIcon,ownerState:j,children:C});return(0,v.jsxs)(y,(0,o.Z)({ownerState:j,className:(0,a.Z)(S,n.className),component:w,disabled:E,focusRipple:!R,focusVisibleClassName:(0,a.Z)(A.focusVisible,P),ref:t,type:O},z,{classes:A,children:[L,p,F]}))}))},7933:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiButton",e)}const i=(0,n(6087).Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);t.Z=i},7739:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(7462),o=n(3366),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(1705),d=n(2068),p=n(9674);var f=n(5068),h=n(220);function m(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function g(e,t,n){var r=m(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var c in t){if(o[c])for(r=0;r{if(!l&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,l,d]),(0,w.jsx)("span",{className:h,style:m,children:(0,w.jsx)("span",{className:v})})},E=n(6087);var k=(0,E.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const R=["center","classes","className"];let C,P,T,M,I=e=>e;const O=(0,x.F4)(C||(C=I` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),N=(0,x.F4)(P||(P=I` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),z=(0,x.F4)(T||(T=I` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),j=(0,c.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),A=(0,c.ZP)(S,{name:"MuiTouchRipple",slot:"Ripple"})(M||(M=I` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),k.rippleVisible,O,550,(({theme:e})=>e.transitions.easing.easeInOut),k.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),k.child,k.childLeaving,N,550,(({theme:e})=>e.transitions.easing.easeInOut),k.childPulsate,z,(({theme:e})=>e.transitions.easing.easeInOut));var L=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:c={},className:u}=n,d=(0,o.Z)(n,R),[p,f]=i.useState([]),h=i.useRef(0),m=i.useRef(null);i.useEffect((()=>{m.current&&(m.current(),m.current=null)}),[p]);const v=i.useRef(!1),g=i.useRef(null),b=i.useRef(null),y=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(g.current)}),[]);const x=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;f((e=>[...e,(0,w.jsx)(A,{classes:{ripple:(0,a.Z)(c.ripple,k.ripple),rippleVisible:(0,a.Z)(c.rippleVisible,k.rippleVisible),ripplePulsate:(0,a.Z)(c.ripplePulsate,k.ripplePulsate),child:(0,a.Z)(c.child,k.child),childLeaving:(0,a.Z)(c.childLeaving,k.childLeaving),childPulsate:(0,a.Z)(c.childPulsate,k.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},h.current)])),h.current+=1,m.current=i}),[c]),S=i.useCallback(((e={},t={},n)=>{const{pulsate:r=!1,center:o=s||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e.type&&v.current)return void(v.current=!1);"touchstart"===e.type&&(v.current=!0);const a=i?null:y.current,c=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,u,d;if(o||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(c.width/2),u=Math.round(c.height/2);else{const{clientX:t,clientY:n}=e.touches?e.touches[0]:e;l=Math.round(t-c.left),u=Math.round(n-c.top)}if(o)d=Math.sqrt((2*c.width**2+c.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-l),l)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e.touches?null===b.current&&(b.current=()=>{x({pulsate:r,rippleX:l,rippleY:u,rippleSize:d,cb:n})},g.current=setTimeout((()=>{b.current&&(b.current(),b.current=null)}),80)):x({pulsate:r,rippleX:l,rippleY:u,rippleSize:d,cb:n})}),[s,x]),E=i.useCallback((()=>{S({},{pulsate:!0})}),[S]),C=i.useCallback(((e,t)=>{if(clearTimeout(g.current),"touchend"===e.type&&b.current)return b.current(),b.current=null,void(g.current=setTimeout((()=>{C(e,t)})));b.current=null,f((e=>e.length>0?e.slice(1):e)),m.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:E,start:S,stop:C})),[E,S,C]),(0,w.jsx)(j,(0,r.Z)({className:(0,a.Z)(c.root,k.root,u),ref:y},d,{children:(0,w.jsx)(Z,{component:null,exit:!0,children:p})}))})),F=n(8979);function $(e){return(0,F.Z)("MuiButtonBase",e)}var B=(0,E.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const D=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],V=(0,c.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${B.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var _=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiButtonBase"}),{action:c,centerRipple:f=!1,children:h,className:m,component:v="button",disabled:g=!1,disableRipple:b=!1,disableTouchRipple:y=!1,focusRipple:Z=!1,LinkComponent:x="a",onBlur:S,onClick:E,onContextMenu:k,onDragLeave:R,onFocus:C,onFocusVisible:P,onKeyDown:T,onKeyUp:M,onMouseDown:I,onMouseLeave:O,onMouseUp:N,onTouchEnd:z,onTouchMove:j,onTouchStart:A,tabIndex:F=0,TouchRippleProps:B,touchRippleRef:_,type:q}=n,W=(0,o.Z)(n,D),U=i.useRef(null),H=i.useRef(null),K=(0,u.Z)(H,_),{isFocusVisibleRef:G,onFocus:X,onBlur:Y,ref:J}=(0,p.Z)(),[Q,ee]=i.useState(!1);function te(e,t,n=y){return(0,d.Z)((r=>{t&&t(r);return!n&&H.current&&H.current[e](r),!0}))}g&&Q&&ee(!1),i.useImperativeHandle(c,(()=>({focusVisible:()=>{ee(!0),U.current.focus()}})),[]),i.useEffect((()=>{Q&&Z&&!b&&H.current.pulsate()}),[b,Z,Q]);const ne=te("start",I),re=te("stop",k),oe=te("stop",R),ie=te("stop",N),ae=te("stop",(e=>{Q&&e.preventDefault(),O&&O(e)})),se=te("start",A),ce=te("stop",z),le=te("stop",j),ue=te("stop",(e=>{Y(e),!1===G.current&&ee(!1),S&&S(e)}),!1),de=(0,d.Z)((e=>{U.current||(U.current=e.currentTarget),X(e),!0===G.current&&(ee(!0),P&&P(e)),C&&C(e)})),pe=()=>{const e=U.current;return v&&"button"!==v&&!("A"===e.tagName&&e.href)},fe=i.useRef(!1),he=(0,d.Z)((e=>{Z&&!fe.current&&Q&&H.current&&" "===e.key&&(fe.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!g&&(e.preventDefault(),E&&E(e))})),me=(0,d.Z)((e=>{Z&&" "===e.key&&H.current&&Q&&!e.defaultPrevented&&(fe.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),M&&M(e),E&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&E(e)}));let ve=v;"button"===ve&&(W.href||W.to)&&(ve=x);const ge={};"button"===ve?(ge.type=void 0===q?"button":q,ge.disabled=g):(W.href||W.to||(ge.role="button"),g&&(ge["aria-disabled"]=g));const be=(0,u.Z)(J,U),ye=(0,u.Z)(t,be),[Ze,xe]=i.useState(!1);i.useEffect((()=>{xe(!0)}),[]);const we=Ze&&!b&&!g;const Se=(0,r.Z)({},n,{centerRipple:f,component:v,disabled:g,disableRipple:b,disableTouchRipple:y,focusRipple:Z,tabIndex:F,focusVisible:Q}),Ee=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.Z)(i,$,o);return n&&r&&(a.root+=` ${r}`),a})(Se);return(0,w.jsxs)(V,(0,r.Z)({as:ve,className:(0,a.Z)(Ee.root,m),ownerState:Se,onBlur:ue,onClick:E,onContextMenu:re,onFocus:de,onKeyDown:he,onKeyUp:me,onMouseDown:ne,onMouseLeave:ae,onMouseUp:ie,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:se,ref:ye,tabIndex:g?-1:F,type:q},ge,W,{children:[h,we?(0,w.jsx)(L,(0,r.Z)({ref:K,center:f},B)):null]}))}))},8128:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(3366),o=n(7462),i=n(7294),a=n(7192),s=n(1796),c=n(1964),l=n(7892),u=n(5893),d=(0,l.Z)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),p=(0,l.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=(0,l.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),h=n(8216),m=n(3616),v=n(1496),g=n(3631);const b=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],y=(0,v.ZP)(c.Z,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,h.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${g.Z.checked}, &.${g.Z.indeterminate}`]:{color:e.palette[t.color].main},[`&.${g.Z.disabled}`]:{color:e.palette.action.disabled}}))),Z=(0,u.jsx)(p,{}),x=(0,u.jsx)(d,{}),w=(0,u.jsx)(f,{});var S=i.forwardRef((function(e,t){var n,s;const c=(0,m.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=Z,color:d="primary",icon:p=x,indeterminate:f=!1,indeterminateIcon:v=w,inputProps:S,size:E="medium"}=c,k=(0,r.Z)(c,b),R=f?v:p,C=f?v:l,P=(0,o.Z)({},c,{color:d,indeterminate:f,size:E}),T=(e=>{const{classes:t,indeterminate:n,color:r}=e,i={root:["root",n&&"indeterminate",`color${(0,h.Z)(r)}`]},s=(0,a.Z)(i,g.y,t);return(0,o.Z)({},t,s)})(P);return(0,u.jsx)(y,(0,o.Z)({type:"checkbox",inputProps:(0,o.Z)({"data-indeterminate":f},S),icon:i.cloneElement(R,{fontSize:null!=(n=R.props.fontSize)?n:E}),checkedIcon:i.cloneElement(C,{fontSize:null!=(s=C.props.fontSize)?s:E}),ownerState:P,ref:t},k,{classes:T}))}))},3631:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiCheckbox",e)}const i=(0,n(6087).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);t.Z=i},6489:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(917),l=n(8216),u=n(3616),d=n(1496),p=n(2346),f=n(5893);const h=["className","color","disableShrink","size","style","thickness","value","variant"];let m,v,g,b,y=e=>e;const Z=44,x=(0,c.F4)(m||(m=y` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),w=(0,c.F4)(v||(v=y` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),S=(0,d.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,l.Z)(n.color)}`]]}})((({ownerState:e,theme:t})=>(0,o.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:t.palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&(0,c.iv)(g||(g=y` + animation: ${0} 1.4s linear infinite; + `),x))),E=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),k=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,l.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,o.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,c.iv)(b||(b=y` + animation: ${0} 1.4s ease-in-out infinite; + `),w))),R=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:c="primary",disableShrink:d=!1,size:m=40,style:v,thickness:g=3.6,value:b=0,variant:y="indeterminate"}=n,x=(0,r.Z)(n,h),w=(0,o.Z)({},n,{color:c,disableShrink:d,size:m,thickness:g,value:b,variant:y}),R=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${(0,l.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,l.Z)(n)}`,o&&"circleDisableShrink"]};return(0,s.Z)(i,p.C,t)})(w),C={},P={},T={};if("determinate"===y){const e=2*Math.PI*((Z-g)/2);C.strokeDasharray=e.toFixed(3),T["aria-valuenow"]=Math.round(b),C.strokeDashoffset=`${((100-b)/100*e).toFixed(3)}px`,P.transform="rotate(-90deg)"}return(0,f.jsx)(S,(0,o.Z)({className:(0,a.Z)(R.root,i),style:(0,o.Z)({width:m,height:m},P,v),ownerState:w,ref:t,role:"progressbar"},T,x,{children:(0,f.jsx)(E,{className:R.svg,ownerState:w,viewBox:"22 22 44 44",children:(0,f.jsx)(k,{className:R.circle,style:C,ownerState:w,cx:Z,cy:Z,r:(Z-g)/2,fill:"none",strokeWidth:g})})}))}));t.Z=R},2346:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiCircularProgress",e)}const i=(0,n(6087).Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);t.Z=i},7720:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(5097),p=n(5893);const f=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],h=(0,l.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,o.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:e.palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:(0,c.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,o.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${e.palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,o.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${e.palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,o.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),m=(0,l.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),v=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:c,className:l,component:v=(c?"div":"hr"),flexItem:g=!1,light:b=!1,orientation:y="horizontal",role:Z=("hr"!==v?"separator":void 0),textAlign:x="center",variant:w="fullWidth"}=n,S=(0,r.Z)(n,f),E=(0,o.Z)({},n,{absolute:i,component:v,flexItem:g,light:b,orientation:y,role:Z,textAlign:x,variant:w}),k=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:c,variant:l}=e,u={root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===c&&"vertical"!==a&&"textAlignRight","left"===c&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(u,d.V,r)})(E);return(0,p.jsx)(h,(0,o.Z)({as:v,className:(0,a.Z)(k.root,l),role:Z,ref:t,ownerState:E},S,{children:c?(0,p.jsx)(m,{className:k.wrapper,ownerState:E,children:c}):null}))}));t.Z=v},5097:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiDivider",e)}const i=(0,n(6087).Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=i},6628:function(e,t,n){"use strict";var r=n(7462),o=n(3366),i=n(7294),a=n(8885),s=n(2734),c=n(577),l=n(1705),u=n(5893);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},f=i.forwardRef((function(e,t){const n=(0,s.Z)(),f={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:h,appear:m=!0,children:v,easing:g,in:b,onEnter:y,onEntered:Z,onEntering:x,onExit:w,onExited:S,onExiting:E,style:k,timeout:R=f,TransitionComponent:C=a.ZP}=e,P=(0,o.Z)(e,d),T=i.useRef(null),M=(0,l.Z)(v.ref,t),I=(0,l.Z)(T,M),O=e=>t=>{if(e){const n=T.current;void 0===t?e(n):e(n,t)}},N=O(x),z=O(((e,t)=>{(0,c.n)(e);const r=(0,c.C)({style:k,timeout:R,easing:g},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),y&&y(e,t)})),j=O(Z),A=O(E),L=O((e=>{const t=(0,c.C)({style:k,timeout:R,easing:g},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),w&&w(e)})),F=O(S);return(0,u.jsx)(C,(0,r.Z)({appear:m,in:b,nodeRef:T,onEnter:z,onEntered:j,onEntering:N,onExit:L,onExited:F,onExiting:A,addEndListener:e=>{h&&h(T.current,e)},timeout:R},P,{children:(e,t)=>i.cloneElement(v,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},p[e],k,v.props.style),ref:I},t))}))}));t.Z=f},7167:function(e,t,n){"use strict";const r=n(7294).createContext();t.Z=r},4423:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(7167);function i(){return r.useContext(o.Z)}},2287:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(7462),o=(n(7294),n(917)),i=n(5893);function a(e){const{styles:t,defaultTheme:n={}}=e,r="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(o.xB,{styles:r})}var s=n(247);var c=function(e){return(0,i.jsx)(a,(0,r.Z)({},e,{defaultTheme:s.Z}))}},6514:function(e,t,n){"use strict";var r=n(7462),o=n(3366),i=n(7294),a=n(8885),s=n(2734),c=n(577),l=n(1705),u=n(5893);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return`scale(${e}, ${e**2})`}const f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},h=i.forwardRef((function(e,t){const{addEndListener:n,appear:h=!0,children:m,easing:v,in:g,onEnter:b,onEntered:y,onEntering:Z,onExit:x,onExited:w,onExiting:S,style:E,timeout:k="auto",TransitionComponent:R=a.ZP}=e,C=(0,o.Z)(e,d),P=i.useRef(),T=i.useRef(),M=(0,s.Z)(),I=i.useRef(null),O=(0,l.Z)(m.ref,t),N=(0,l.Z)(I,O),z=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},j=z(Z),A=z(((e,t)=>{(0,c.n)(e);const{duration:n,delay:r,easing:o}=(0,c.C)({style:E,timeout:k,easing:v},{mode:"enter"});let i;"auto"===k?(i=M.transitions.getAutoHeightDuration(e.clientHeight),T.current=i):i=n,e.style.transition=[M.transitions.create("opacity",{duration:i,delay:r}),M.transitions.create("transform",{duration:.666*i,delay:r,easing:o})].join(","),b&&b(e,t)})),L=z(y),F=z(S),$=z((e=>{const{duration:t,delay:n,easing:r}=(0,c.C)({style:E,timeout:k,easing:v},{mode:"exit"});let o;"auto"===k?(o=M.transitions.getAutoHeightDuration(e.clientHeight),T.current=o):o=t,e.style.transition=[M.transitions.create("opacity",{duration:o,delay:n}),M.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:r})].join(","),e.style.opacity="0",e.style.transform=p(.75),x&&x(e)})),B=z(w);return i.useEffect((()=>()=>{clearTimeout(P.current)}),[]),(0,u.jsx)(R,(0,r.Z)({appear:h,in:g,nodeRef:I,onEnter:A,onEntered:L,onEntering:j,onExit:$,onExited:B,onExiting:F,addEndListener:e=>{"auto"===k&&(P.current=setTimeout(e,T.current||0)),n&&n(I.current,e)},timeout:"auto"===k?null:k},C,{children:(e,t)=>i.cloneElement(m,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||g?void 0:"hidden"},f[e],E,m.props.style),ref:N},t))}))}));h.muiSupportAuto=!0,t.Z=h},4799:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(7739),p=n(8216),f=n(6239),h=n(5893);const m=["edge","children","className","color","disabled","disableFocusRipple","size"],v=(0,l.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,p.Z)(n.color)}`],n.edge&&t[`edge${(0,p.Z)(n.edge)}`],t[`size${(0,p.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:(0,c.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>(0,o.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,o.Z)({color:e.palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:(0,c.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${f.Z.disabled}`]:{backgroundColor:"transparent",color:e.palette.action.disabled}}))),g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:c,className:l,color:d="default",disabled:g=!1,disableFocusRipple:b=!1,size:y="medium"}=n,Z=(0,r.Z)(n,m),x=(0,o.Z)({},n,{edge:i,color:d,disabled:g,disableFocusRipple:b,size:y}),w=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,p.Z)(r)}`,o&&`edge${(0,p.Z)(o)}`,`size${(0,p.Z)(i)}`]};return(0,s.Z)(a,f.r,t)})(x);return(0,h.jsx)(v,(0,o.Z)({className:(0,a.Z)(w.root,l),centerRipple:!0,focusRipple:!b,disabled:g,ref:t,ownerState:x},Z,{children:c}))}));t.Z=g},6239:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiIconButton",e)}const i=(0,n(6087).Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);t.Z=i},7021:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiInput",e)}const i=(0,n(6087).Z)("MuiInput",["root","formControl","focused","disabled","colorSecondary","underline","error","sizeSmall","multiline","fullWidth","input","inputSizeSmall","inputMultiline","inputTypeSearch"]);t.Z=i},8441:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(917),l=n(1796),u=n(8216),d=n(2734),p=n(1496),f=n(3616),h=n(8962),m=n(5893);const v=["className","color","value","valueBuffer","variant"];let g,b,y,Z,x,w,S=e=>e;const E=(0,c.F4)(g||(g=S` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),k=(0,c.F4)(b||(b=S` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),R=(0,c.F4)(y||(y=S` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),C=(e,t)=>"inherit"===t?"currentColor":"light"===e.palette.mode?(0,l.$n)(e.palette[t].main,.62):(0,l._j)(e.palette[t].main,.5),P=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,u.Z)(n.color)}`],t[n.variant]]}})((({ownerState:e,theme:t})=>(0,o.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:C(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),T=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${(0,u.Z)(n.color)}`]]}})((({ownerState:e,theme:t})=>{const n=C(t,e.color);return(0,o.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,c.iv)(Z||(Z=S` + animation: ${0} 3s infinite linear; + `),R)),M=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,u.Z)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,o.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.iv)(x||(x=S` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),E))),I=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,u.Z)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,o.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:C(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.iv)(w||(w=S` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),k))),O=i.forwardRef((function(e,t){const n=(0,f.Z)({props:e,name:"MuiLinearProgress"}),{className:i,color:c="primary",value:l,valueBuffer:p,variant:g="indeterminate"}=n,b=(0,r.Z)(n,v),y=(0,o.Z)({},n,{color:c,variant:g}),Z=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${(0,u.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,u.Z)(r)}`],bar1:["bar",`barColor${(0,u.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,u.Z)(r)}`,"buffer"===n&&`color${(0,u.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,s.Z)(o,h.E,t)})(y),x=(0,d.Z)(),w={},S={bar1:{},bar2:{}};if("determinate"===g||"buffer"===g)if(void 0!==l){w["aria-valuenow"]=Math.round(l),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let e=l-100;"rtl"===x.direction&&(e=-e),S.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===g)if(void 0!==p){let e=(p||0)-100;"rtl"===x.direction&&(e=-e),S.bar2.transform=`translateX(${e}%)`}else 0;return(0,m.jsxs)(P,(0,o.Z)({className:(0,a.Z)(Z.root,i),ownerState:y,role:"progressbar"},w,{ref:t},b,{children:["buffer"===g?(0,m.jsx)(T,{className:Z.dashed,ownerState:y}):null,(0,m.jsx)(M,{className:Z.bar1,ownerState:y,style:S.bar1}),"determinate"===g?null:(0,m.jsx)(I,{className:Z.bar2,ownerState:y,style:S.bar2})]}))}));t.Z=O},8962:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiLinearProgress",e)}const i=(0,n(6087).Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);t.Z=i},8462:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(9773),d=n(8979);function p(e){return(0,d.Z)("MuiList",e)}(0,n(6087).Z)("MuiList",["root","padding","dense","subheader"]);var f=n(5893);const h=["children","className","component","dense","disablePadding","subheader"],m=(0,c.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var v=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiList"}),{children:c,className:d,component:v="ul",dense:g=!1,disablePadding:b=!1,subheader:y}=n,Z=(0,r.Z)(n,h),x=i.useMemo((()=>({dense:g})),[g]),w=(0,o.Z)({},n,{component:v,dense:g,disablePadding:b}),S=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,s.Z)(i,p,t)})(w);return(0,f.jsx)(u.Z.Provider,{value:x,children:(0,f.jsxs)(m,(0,o.Z)({as:v,className:(0,a.Z)(S.root,d),ref:t,ownerState:w},Z,{children:[y,c]}))})}))},9773:function(e,t,n){"use strict";const r=n(7294).createContext({});t.Z=r},7212:function(e,t,n){"use strict";n.d(t,{ZP:function(){return O}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(8442),l=n(1796),u=n(1496),d=n(3616),p=n(7739),f=n(1579),h=n(8974),m=n(1705),v=n(9773),g=n(8979),b=n(6087);function y(e){return(0,g.Z)("MuiListItem",e)}var Z=(0,b.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),x=n(8686);function w(e){return(0,g.Z)("MuiListItemSecondaryAction",e)}(0,b.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var S=n(5893);const E=["className"],k=(0,u.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,o.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),R=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:c}=n,l=(0,r.Z)(n,E),u=i.useContext(v.Z),p=(0,o.Z)({},n,{disableGutters:u.disableGutters}),f=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,s.Z)(r,w,n)})(p);return(0,S.jsx)(k,(0,o.Z)({className:(0,a.Z)(f.root,c),ownerState:p,ref:t},l))}));R.muiName="ListItemSecondaryAction";var C=R;const P=["className"],T=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],M=(0,u.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,o.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${x.Z.root}`]:{paddingRight:48}},{[`&.${Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${Z.selected}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Z.focusVisible}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Z.selected}:hover`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),I=(0,u.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var O=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItem"}),{alignItems:l="center",autoFocus:u=!1,button:g=!1,children:b,className:x,component:w,components:E={},componentsProps:k={},ContainerComponent:R="li",ContainerProps:{className:O}={},dense:N=!1,disabled:z=!1,disableGutters:j=!1,disablePadding:A=!1,divider:L=!1,focusVisibleClassName:F,secondaryAction:$,selected:B=!1}=n,D=(0,r.Z)(n.ContainerProps,P),V=(0,r.Z)(n,T),_=i.useContext(v.Z),q={dense:N||_.dense||!1,alignItems:l,disableGutters:j},W=i.useRef(null);(0,h.Z)((()=>{u&&W.current&&W.current.focus()}),[u]);const U=i.Children.toArray(b),H=U.length&&(0,f.Z)(U[U.length-1],["ListItemSecondaryAction"]),K=(0,o.Z)({},n,{alignItems:l,autoFocus:u,button:g,dense:q.dense,disabled:z,disableGutters:j,disablePadding:A,divider:L,hasSecondaryAction:H,selected:B}),G=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:c,divider:l,hasSecondaryAction:u,selected:d}=e,p={root:["root",o&&"dense",!a&&"gutters",!c&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(p,y,r)})(K),X=(0,m.Z)(W,t),Y=E.Root||M,J=k.root||{},Q=(0,o.Z)({className:(0,a.Z)(G.root,J.className,x),disabled:z},V);let ee=w||"li";return g&&(Q.component=w||"div",Q.focusVisibleClassName=(0,a.Z)(Z.focusVisible,F),ee=p.Z),H?(ee=Q.component||w?ee:"div","li"===R&&("li"===ee?ee="div":"li"===Q.component&&(Q.component="div")),(0,S.jsx)(v.Z.Provider,{value:q,children:(0,S.jsxs)(I,(0,o.Z)({as:R,className:(0,a.Z)(G.container,O),ref:X,ownerState:K},D,{children:[(0,S.jsx)(Y,(0,o.Z)({},J,!(0,c.Z)(Y)&&{as:ee,ownerState:(0,o.Z)({},K,J.ownerState)},Q,{children:U})),U.pop()]}))})):(0,S.jsx)(v.Z.Provider,{value:q,children:(0,S.jsxs)(Y,(0,o.Z)({},J,{as:ee,ref:X,ownerState:K},!(0,c.Z)(Y)&&{ownerState:(0,o.Z)({},K,J.ownerState)},Q,{children:[U,$&&(0,S.jsx)(C,{children:$})]}))})}))},8619:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(7739),p=n(8974),f=n(1705),h=n(9773),m=n(8686),v=n(5893);const g=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],b=(0,l.ZP)(d.Z,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.Z.selected}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${m.Z.focusVisible}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${m.Z.selected}:hover`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${m.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${m.Z.disabled}`]:{opacity:e.palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiListItemButton"}),{alignItems:c="center",autoFocus:l=!1,component:d="div",children:y,dense:Z=!1,disableGutters:x=!1,divider:w=!1,focusVisibleClassName:S,selected:E=!1}=n,k=(0,r.Z)(n,g),R=i.useContext(h.Z),C={dense:Z||R.dense||!1,alignItems:c,disableGutters:x},P=i.useRef(null);(0,p.Z)((()=>{l&&P.current&&P.current.focus()}),[l]);const T=(0,o.Z)({},n,{alignItems:c,dense:C.dense,disableGutters:x,divider:w,selected:E}),M=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:c,selected:l}=e,u={root:["root",r&&"dense",!a&&"gutters",c&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},d=(0,s.Z)(u,m.t,n);return(0,o.Z)({},n,d)})(T),I=(0,f.Z)(P,t);return(0,v.jsx)(h.Z.Provider,{value:C,children:(0,v.jsx)(b,(0,o.Z)({ref:I,component:d,focusVisibleClassName:(0,a.Z)(M.focusVisible,S),ownerState:T},k,{classes:M,children:y}))})}));t.Z=y},8686:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiListItemButton",e)}const i=(0,n(6087).Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.Z=i},7594:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1496),l=n(3616),u=n(4592),d=n(9773),p=n(5893);const f=["className"],h=(0,c.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,o.Z)({minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),m=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiListItemIcon"}),{className:c}=n,m=(0,r.Z)(n,f),v=i.useContext(d.Z),g=(0,o.Z)({},n,{alignItems:v.alignItems}),b=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.Z)(r,u.f,n)})(g);return(0,p.jsx)(h,(0,o.Z)({className:(0,a.Z)(b.root,c),ownerState:g,ref:t},m))}));t.Z=m},4592:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiListItemIcon",e)}const i=(0,n(6087).Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=i},8333:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(7462),o=n(3366),i=n(7294),a=(n(9864),n(6010)),s=n(7192),c=n(4118),l=n(5113),u=n(1496),d=n(3616),p=n(7144),f=n(8038),h=n(5340),m=n(1705),v=n(6514),g=n(9964),b=n(8979),y=n(6087);function Z(e){return(0,b.Z)("MuiPopover",e)}(0,y.Z)("MuiPopover",["root","paper"]);var x=n(5893);const w=["onEntering"],S=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function E(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function k(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function R(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function C(e){return"function"===typeof e?e():e}const P=(0,u.ZP)(g.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T=(0,u.ZP)(l.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var M=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiPopover"}),{action:c,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:g,anchorReference:b="anchorEl",children:y,className:M,container:I,elevation:O=8,marginThreshold:N=16,open:z,PaperProps:j={},transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:L=v.Z,transitionDuration:F="auto",TransitionProps:{onEntering:$}={}}=n,B=(0,o.Z)(n.TransitionProps,w),D=(0,o.Z)(n,S),V=i.useRef(),_=(0,m.Z)(V,j.ref),q=(0,r.Z)({},n,{anchorOrigin:u,anchorReference:b,elevation:O,marginThreshold:N,PaperProps:j,transformOrigin:A,TransitionComponent:L,transitionDuration:F,TransitionProps:B}),W=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"]},Z,t)})(q),U=i.useCallback((()=>{if("anchorPosition"===b)return g;const e=C(l),t=(e&&1===e.nodeType?e:(0,f.Z)(V.current).body).getBoundingClientRect();return{top:t.top+E(t,u.vertical),left:t.left+k(t,u.horizontal)}}),[l,u.horizontal,u.vertical,g,b]),H=i.useCallback((e=>({vertical:E(e,A.vertical),horizontal:k(e,A.horizontal)})),[A.horizontal,A.vertical]),K=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=H(t);if("none"===b)return{top:null,left:null,transformOrigin:R(n)};const r=U();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=(0,h.Z)(C(l)),u=c.innerHeight-N,d=c.innerWidth-N;if(ou){const e=a-u;o-=e,n.vertical+=e}if(id){const e=s-d;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:R(n)}}),[l,b,U,H,N]),G=i.useCallback((()=>{const e=V.current;if(!e)return;const t=K(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[K]);i.useEffect((()=>{z&&G()})),i.useImperativeHandle(c,(()=>z?{updatePosition:()=>{G()}}:null),[z,G]),i.useEffect((()=>{if(!z)return;const e=(0,p.Z)((()=>{G()})),t=(0,h.Z)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,z,G]);let X=F;"auto"!==F||L.muiSupportAuto||(X=void 0);const Y=I||(l?(0,f.Z)(C(l)).body:void 0);return(0,x.jsx)(P,(0,r.Z)({BackdropProps:{invisible:!0},className:(0,a.Z)(W.root,M),container:Y,open:z,ref:t,ownerState:q},D,{children:(0,x.jsx)(L,(0,r.Z)({appear:!0,in:z,onEntering:(e,t)=>{$&&$(e,t),G()},timeout:X},B,{children:(0,x.jsx)(T,(0,r.Z)({elevation:O},j,{ref:_,className:(0,a.Z)(W.paper,j.className),children:y}))}))}))})),I=n(2734);function O(e){return(0,b.Z)("MuiMenu",e)}(0,y.Z)("MuiMenu",["root","paper","list"]);const N=["onEntering"],z=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],j={vertical:"top",horizontal:"right"},A={vertical:"top",horizontal:"left"},L=(0,u.ZP)(M,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F=(0,u.ZP)(l.Z,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$=(0,u.ZP)(c.Z,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var B=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiMenu"}),{autoFocus:c=!0,children:l,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:f,open:h,PaperProps:m={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:b}={},variant:y="selectedMenu"}=n,Z=(0,o.Z)(n.TransitionProps,N),w=(0,o.Z)(n,z),S=(0,I.Z)(),E="rtl"===S.direction,k=(0,r.Z)({},n,{autoFocus:c,disableAutoFocusItem:u,MenuListProps:p,onEntering:b,PaperProps:m,transitionDuration:g,TransitionProps:Z,variant:y}),R=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},O,t)})(k),C=c&&!u&&h,P=i.useRef(null);let T=-1;return i.Children.map(l,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===T)&&(T=t))})),(0,x.jsx)(L,(0,r.Z)({classes:v,onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?j:A,PaperProps:(0,r.Z)({component:F},m,{classes:(0,r.Z)({},m.classes,{root:R.paper})}),className:R.root,open:h,ref:t,transitionDuration:g,TransitionProps:(0,r.Z)({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,S),b&&b(e,t)}},Z),ownerState:k},w,{children:(0,x.jsx)($,(0,r.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:P,autoFocus:c&&(-1===T||u),autoFocusItem:C,variant:y},p,{className:(0,a.Z)(R.list,p.className),children:l}))}))}))},4118:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(7462),o=n(3366),i=n(7294),a=(n(9864),n(8038)),s=n(8462),c=n(5806).Z,l=n(1705),u=n(8974),d=n(5893);const p=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function f(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function h(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function m(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function v(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&m(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}var g=i.forwardRef((function(e,t){const{actions:n,autoFocus:g=!1,autoFocusItem:b=!1,children:y,className:Z,disabledItemsFocusable:x=!1,disableListWrap:w=!1,onKeyDown:S,variant:E="selectedMenu"}=e,k=(0,o.Z)(e,p),R=i.useRef(null),C=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,u.Z)((()=>{g&&R.current.focus()}),[g]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!R.current.style.width;if(e.clientHeight{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===E&&e.props.selected||-1===T)&&(T=t))}));const M=i.Children.map(y,((e,t)=>{if(t===T){const t={};return b&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===E&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return(0,d.jsx)(s.Z,(0,r.Z)({role:"menu",ref:P,className:Z,onKeyDown:e=>{const t=R.current,n=e.key,r=(0,a.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),v(t,r,w,x,f);else if("ArrowUp"===n)e.preventDefault(),v(t,r,w,x,h);else if("Home"===n)e.preventDefault(),v(t,null,w,x,f);else if("End"===n)e.preventDefault(),v(t,null,w,x,h);else if(1===n.length){const o=C.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&m(r,o);o.previousKeyMatched&&(s||v(t,r,!1,x,f,o))?e.preventDefault():o.previousKeyMatched=!1}S&&S(e)},tabIndex:g?0:-1},k,{children:M}))}))},9964:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(3366),o=n(7462),i=n(7294),a=n(8442),s=n(6010),c=n(67),l=n(7094),u=n(3633),d=n(9064),p=n(7192),f=n(8385),h=n(8290),m=n(5806);function v(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function g(e){return parseInt((0,h.Z)(e).getComputedStyle(e).paddingRight,10)||0}function b(e,t,n,r=[],o){const i=[t,n,...r],a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(e=>{-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&v(e,o)}))}function y(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Z(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,l.Z)(e);return t.body===e?(0,h.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,m.Z)((0,l.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${g(r)+e}px`;const t=(0,l.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${g(t)+e}px`}))}const e=r.parentElement,t=(0,h.Z)(r),o="HTML"===(null==e?void 0:e.nodeName)&&"scroll"===t.getComputedStyle(e).overflowY?e:r;n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}var x=n(2310),w=n(6087),S=n(8979);function E(e){return(0,S.Z)("MuiModal",e)}(0,w.Z)("MuiModal",["root","hidden"]);var k=n(5893);const R=["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","theme","onTransitionEnter","onTransitionExited"];const C=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&v(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);b(t,e.mount,e.modalRef,r,!0);const o=y(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Z(r,t))}remove(e){const t=this.modals.indexOf(e);if(-1===t)return t;const n=y(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&v(e.modalRef,!0),b(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&v(e.modalRef,!1)}return t}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var P=i.forwardRef((function(e,t){const{BackdropComponent:n,BackdropProps:h,children:m,classes:g,className:b,closeAfterTransition:y=!1,component:Z="div",components:w={},componentsProps:S={},container:P,disableAutoFocus:T=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:I=!1,disablePortal:O=!1,disableRestoreFocus:N=!1,disableScrollLock:z=!1,hideBackdrop:j=!1,keepMounted:A=!1,manager:L=C,onBackdropClick:F,onClose:$,onKeyDown:B,open:D,theme:V,onTransitionEnter:_,onTransitionExited:q}=e,W=(0,r.Z)(e,R),[U,H]=i.useState(!0),K=i.useRef({}),G=i.useRef(null),X=i.useRef(null),Y=(0,c.Z)(X,t),J=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),Q=()=>(K.current.modalRef=X.current,K.current.mountNode=G.current,K.current),ee=()=>{L.mount(Q(),{disableScrollLock:z}),X.current.scrollTop=0},te=(0,u.Z)((()=>{const e=function(e){return"function"===typeof e?e():e}(P)||(0,l.Z)(G.current).body;L.add(Q(),e),X.current&&ee()})),ne=i.useCallback((()=>L.isTopModal(Q())),[L]),re=(0,u.Z)((e=>{G.current=e,e&&(D&&ne()?ee():v(X.current,!0))})),oe=i.useCallback((()=>{L.remove(Q())}),[L]);i.useEffect((()=>()=>{oe()}),[oe]),i.useEffect((()=>{D?te():J&&y||oe()}),[D,oe,J,y,te]);const ie=(0,o.Z)({},e,{classes:g,closeAfterTransition:y,disableAutoFocus:T,disableEnforceFocus:M,disableEscapeKeyDown:I,disablePortal:O,disableRestoreFocus:N,disableScrollLock:z,exited:U,hideBackdrop:j,keepMounted:A}),ae=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"]};return(0,p.Z)(o,E,r)})(ie);if(!A&&!D&&(!J||U))return null;const se=()=>{H(!1),_&&_()},ce=()=>{H(!0),q&&q(),y&&oe()},le={};void 0===m.props.tabIndex&&(le.tabIndex="-1"),J&&(le.onEnter=(0,d.Z)(se,m.props.onEnter),le.onExited=(0,d.Z)(ce,m.props.onExited));const ue=w.Root||Z,de=S.root||{};return(0,k.jsx)(f.Z,{ref:re,container:P,disablePortal:O,children:(0,k.jsxs)(ue,(0,o.Z)({role:"presentation"},de,!(0,a.Z)(ue)&&{as:Z,ownerState:(0,o.Z)({},ie,de.ownerState),theme:V},W,{ref:Y,onKeyDown:e=>{B&&B(e),"Escape"===e.key&&ne()&&(I||(e.stopPropagation(),$&&$(e,"escapeKeyDown")))},className:(0,s.Z)(ae.root,de.className,b),children:[!j&&n?(0,k.jsx)(n,(0,o.Z)({open:D,onClick:e=>{e.target===e.currentTarget&&(F&&F(e),$&&$(e,"backdropClick"))}},h)):null,(0,k.jsx)(x.Z,{disableEnforceFocus:M,disableAutoFocus:T,disableRestoreFocus:N,isEnabled:ne,open:D,children:i.cloneElement(m,le)})]}))})})),T=n(1496),M=n(3616),I=n(7227);const O=["BackdropComponent","closeAfterTransition","children","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted"],N=(0,T.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,o.Z)({position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),z=(0,T.ZP)(I.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var j=i.forwardRef((function(e,t){var n;const s=(0,M.Z)({name:"MuiModal",props:e}),{BackdropComponent:c=z,closeAfterTransition:l=!1,children:u,components:d={},componentsProps:p={},disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:v=!1,disableRestoreFocus:g=!1,disableScrollLock:b=!1,hideBackdrop:y=!1,keepMounted:Z=!1}=s,x=(0,r.Z)(s,O),[w,S]=i.useState(!0),E={closeAfterTransition:l,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:v,disableRestoreFocus:g,disableScrollLock:b,hideBackdrop:y,keepMounted:Z},R=(e=>e.classes)((0,o.Z)({},s,E,{exited:w}));return(0,k.jsx)(P,(0,o.Z)({components:(0,o.Z)({Root:N},d),componentsProps:{root:(0,o.Z)({},p.root,(!d.Root||!(0,a.Z)(d.Root))&&{ownerState:(0,o.Z)({},null==(n=p.root)?void 0:n.ownerState)})},BackdropComponent:c,onTransitionEnter:()=>S(!1),onTransitionExited:()=>S(!0),ref:t},x,{classes:R},E,{children:u}))}))},5113:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(1796),l=n(1496),u=n(3616),d=n(8979);function p(e){return(0,d.Z)("MuiPaper",e)}(0,n(6087).Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var f=n(5893);const h=["className","component","elevation","square","variant"],m=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},v=(0,l.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${e.palette.divider}`},"elevation"===t.variant&&(0,o.Z)({boxShadow:e.shadows[t.elevation]},"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,c.Fq)("#fff",m(t.elevation))}, ${(0,c.Fq)("#fff",m(t.elevation))})`}))));var g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiPaper"}),{className:i,component:c="div",elevation:l=1,square:d=!1,variant:m="elevation"}=n,g=(0,r.Z)(n,h),b=(0,o.Z)({},n,{component:c,elevation:l,square:d,variant:m}),y=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(i,p,o)})(b);return(0,f.jsx)(v,(0,o.Z)({as:c,ownerState:b,className:(0,a.Z)(y.root,i),ref:t},g))}))},2994:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(8979);function o(e){return(0,r.Z)("MuiSvgIcon",e)}const i=(0,n(6087).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);t.Z=i},5861:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(9707),c=n(7192),l=n(1496),u=n(3616),d=n(8216),p=n(8979);function f(e){return(0,p.Z)("MuiTypography",e)}(0,n(6087).Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var h=n(5893);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],v=(0,l.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,o.Z)({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),g={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTypography"}),i=(e=>b[e]||e)(n.color),l=(0,s.Z)((0,o.Z)({},n,{color:i})),{align:p="inherit",className:y,component:Z,gutterBottom:x=!1,noWrap:w=!1,paragraph:S=!1,variant:E="body1",variantMapping:k=g}=l,R=(0,r.Z)(l,m),C=(0,o.Z)({},l,{align:p,color:i,className:y,component:Z,gutterBottom:x,noWrap:w,paragraph:S,variant:E,variantMapping:k}),P=Z||(S?"p":k[E]||g[E])||"span",T=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,d.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,c.Z)(s,f,a)})(C);return(0,h.jsx)(v,(0,o.Z)({as:P,ref:t,ownerState:C,className:(0,a.Z)(T.root,y)},R))}))},1964:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(3366),o=n(7462),i=n(7294),a=n(6010),s=n(7192),c=n(8216),l=n(1496),u=n(9299),d=n(4423),p=n(7739),f=n(8979);function h(e){return(0,f.Z)("PrivateSwitchBase",e)}(0,n(6087).Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=n(5893);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,l.ZP)(p.Z)((({ownerState:e})=>(0,o.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),b=(0,l.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var y=i.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:l,className:p,defaultChecked:f,disabled:y,disableFocusRipple:Z=!1,edge:x=!1,icon:w,id:S,inputProps:E,inputRef:k,name:R,onBlur:C,onChange:P,onFocus:T,readOnly:M,required:I,tabIndex:O,type:N,value:z}=e,j=(0,r.Z)(e,v),[A,L]=(0,u.Z)({controlled:i,default:Boolean(f),name:"SwitchBase",state:"checked"}),F=(0,d.Z)();let $=y;F&&"undefined"===typeof $&&($=F.disabled);const B="checkbox"===N||"radio"===N,D=(0,o.Z)({},e,{checked:A,disabled:$,disableFocusRipple:Z,edge:x}),V=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${(0,c.Z)(o)}`],input:["input"]};return(0,s.Z)(i,h,t)})(D);return(0,m.jsxs)(g,(0,o.Z)({component:"span",className:(0,a.Z)(V.root,p),centerRipple:!0,focusRipple:!Z,disabled:$,tabIndex:null,role:void 0,onFocus:e=>{T&&T(e),F&&F.onFocus&&F.onFocus(e)},onBlur:e=>{C&&C(e),F&&F.onBlur&&F.onBlur(e)},ownerState:D,ref:t},j,{children:[(0,m.jsx)(b,(0,o.Z)({autoFocus:n,checked:i,defaultChecked:f,className:V.input,disabled:$,id:B&&S,name:R,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),P&&P(e,t)},readOnly:M,ref:k,required:I,ownerState:D,tabIndex:O,type:N},"checkbox"===N&&void 0===z?{}:{value:z},E)),A?l:w]}))}))},247:function(e,t,n){"use strict";const r=(0,n(1265).Z)();t.Z=r},1496:function(e,t,n){"use strict";n.d(t,{ZP:function(){return w},FO:function(){return y},Dz:function(){return Z}});var r=n(7462),o=n(3366),i=n(561),a=n(6500),s=n(8320);const c=["variant"];function l(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,o.Z)(e,c);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?l(r)?e[t]:(0,s.Z)(e[t]):`${l(r)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),r}var d=n(6523);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],f=["theme"],h=["theme"];function m(e){return 0===Object.keys(e).length}function v(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,a.Z)();var b=n(247);const y=e=>v(e)&&"classes"!==e,Z=v,x=function(e={}){const{defaultTheme:t=g,rootShouldForwardProp:n=v,slotShouldForwardProp:a=v,styleFunctionSx:s=d.Z}=e;return(e,c={})=>{const{name:l,slot:d,skipVariantsResolver:g,skipSx:b,overridesResolver:y}=c,Z=(0,o.Z)(c,p),x=void 0!==g?g:d&&"Root"!==d||!1,w=b||!1;let S=v;"Root"===d?S=n:d&&(S=a);const E=(0,i.ZP)(e,(0,r.Z)({shouldForwardProp:S,label:undefined},Z)),k=(e,...n)=>{const i=n?n.map((e=>"function"===typeof e&&e.__emotion_real!==e?n=>{let{theme:i}=n,a=(0,o.Z)(n,f);return e((0,r.Z)({theme:m(i)?t:i},a))}:e)):[];let a=e;l&&y&&i.push((e=>{const n=m(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(r){const t={};return Object.entries(r).forEach((([n,r])=>{t[n]="function"===typeof r?r(e):r})),y(e,t)}return null})),l&&!x&&i.push((e=>{const n=m(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],c=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return c&&c.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[u(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r})(l,n),n,l)})),w||i.push((e=>{const n=m(e.theme)?t:e.theme;return s((0,r.Z)({},e,{theme:n}))}));const c=i.length-n.length;if(Array.isArray(e)&&c>0){const t=new Array(c).fill("");a=[...e,...t],a.raw=[...e.raw,...t]}else"function"===typeof e&&(a=n=>{let{theme:i}=n,a=(0,o.Z)(n,h);return e((0,r.Z)({theme:m(i)?t:i},a))});return E(a,...i)};return E.withConfig&&(k.withConfig=E.withConfig),k}}({defaultTheme:b.Z,rootShouldForwardProp:y});var w=x},2734:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(7294);var r=n(6682),o=n(247);function i(){return(0,r.Z)(o.Z)}},3616:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(539),o=n(6682);var i=n(247);function a({props:e,name:t}){return function({props:e,name:t,defaultTheme:n}){const i=(0,o.Z)(n);return(0,r.Z)({theme:i,name:t,props:e})}({props:e,name:t,defaultTheme:i.Z})}},577:function(e,t,n){"use strict";n.d(t,{n:function(){return r},C:function(){return o}});const r=e=>e.scrollTop;function o(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}},8216:function(e,t,n){"use strict";var r=n(8320);t.Z=r.Z},7892:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(7462),o=n(7294),i=n(3366),a=n(6010),s=n(7192),c=n(8216),l=n(3616),u=n(1496),d=n(2994),p=n(5893);const f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,c.Z)(n.color)}`],t[`fontSize${(0,c.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,l,u,d,p,f,h,m,v,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(c=e.typography)||null==(l=c.pxToRem)?void 0:l.call(c,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875"}[t.fontSize],color:null!=(p=null==(f=e.palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=e.palette)||null==(v=m.action)?void 0:v.active,disabled:null==(g=e.palette)||null==(b=g.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),m=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiSvgIcon"}),{children:o,className:u,color:m="inherit",component:v="svg",fontSize:g="medium",htmlColor:b,inheritViewBox:y=!1,titleAccess:Z,viewBox:x="0 0 24 24"}=n,w=(0,i.Z)(n,f),S=(0,r.Z)({},n,{color:m,component:v,fontSize:g,inheritViewBox:y,viewBox:x}),E={};y||(E.viewBox=x);const k=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,c.Z)(t)}`,`fontSize${(0,c.Z)(n)}`]};return(0,s.Z)(o,d.h,r)})(S);return(0,p.jsxs)(h,(0,r.Z)({as:v,className:(0,a.Z)(k.root,u),ownerState:S,focusable:"false",color:b,"aria-hidden":!Z||void 0,role:Z?"img":void 0,ref:t},E,w,{children:[o,Z?(0,p.jsx)("title",{children:Z}):null]}))}));m.muiName="SvgIcon";var v=m;function g(e,t){const n=(n,o)=>(0,p.jsx)(v,(0,r.Z)({"data-testid":`${t}Icon`,ref:o},n,{children:e}));return n.muiName=v.muiName,o.memo(o.forwardRef(n))}},7144:function(e,t,n){"use strict";var r=n(7596);t.Z=r.Z},1579:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294);var o=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},8038:function(e,t,n){"use strict";var r=n(7094);t.Z=r.Z},5340:function(e,t,n){"use strict";var r=n(8290);t.Z=r.Z},9299:function(e,t,n){"use strict";var r=n(8925);t.Z=r.Z},8974:function(e,t,n){"use strict";var r=n(6600);t.Z=r.Z},2068:function(e,t,n){"use strict";var r=n(3633);t.Z=r.Z},1705:function(e,t,n){"use strict";var r=n(67);t.Z=r.Z},9674:function(e,t,n){"use strict";var r=n(9962);t.Z=r.Z},561:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x}});var r=n(7294),o=n.t(r,2),i=n(7462),a=n(7866),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=(0,a.Z)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(4880),u=n(444),d=n(3772),p=c,f=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:f},m=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},v=o.useInsertionEffect?o.useInsertionEffect:function(e){e()};var g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);v((function(){return(0,u.My)(t,n,r)}));return null},b=function e(t,n){var o,a,s=t.__emotion_real===t,c=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var p=m(t,n,s),f=p||h(c),v=!f("as");return function(){var b=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var Z=b.length,x=1;x(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n},a=n(8700),s=n(5408);function c(e){return"number"!==typeof e?e:`${e}px solid`}const l=(0,r.Z)({prop:"border",themeKey:"borders",transform:c}),u=(0,r.Z)({prop:"borderTop",themeKey:"borders",transform:c}),d=(0,r.Z)({prop:"borderRight",themeKey:"borders",transform:c}),p=(0,r.Z)({prop:"borderBottom",themeKey:"borders",transform:c}),f=(0,r.Z)({prop:"borderLeft",themeKey:"borders",transform:c}),h=(0,r.Z)({prop:"borderColor",themeKey:"palette"}),m=(0,r.Z)({prop:"borderTopColor",themeKey:"palette"}),v=(0,r.Z)({prop:"borderRightColor",themeKey:"palette"}),g=(0,r.Z)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,r.Z)({prop:"borderLeftColor",themeKey:"palette"}),y=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,a.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,a.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};y.propTypes={},y.filterProps=["borderRadius"];var Z=i(l,u,d,p,f,h,m,v,g,b,y);var x=i((0,r.Z)({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),(0,r.Z)({prop:"display"}),(0,r.Z)({prop:"overflow"}),(0,r.Z)({prop:"textOverflow"}),(0,r.Z)({prop:"visibility"}),(0,r.Z)({prop:"whiteSpace"}));var w=i((0,r.Z)({prop:"flexBasis"}),(0,r.Z)({prop:"flexDirection"}),(0,r.Z)({prop:"flexWrap"}),(0,r.Z)({prop:"justifyContent"}),(0,r.Z)({prop:"alignItems"}),(0,r.Z)({prop:"alignContent"}),(0,r.Z)({prop:"order"}),(0,r.Z)({prop:"flex"}),(0,r.Z)({prop:"flexGrow"}),(0,r.Z)({prop:"flexShrink"}),(0,r.Z)({prop:"alignSelf"}),(0,r.Z)({prop:"justifyItems"}),(0,r.Z)({prop:"justifySelf"}));const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,a.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const E=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,a.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};E.propTypes={},E.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,a.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,a.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];var R=i(S,E,k,(0,r.Z)({prop:"gridColumn"}),(0,r.Z)({prop:"gridRow"}),(0,r.Z)({prop:"gridAutoFlow"}),(0,r.Z)({prop:"gridAutoColumns"}),(0,r.Z)({prop:"gridAutoRows"}),(0,r.Z)({prop:"gridTemplateColumns"}),(0,r.Z)({prop:"gridTemplateRows"}),(0,r.Z)({prop:"gridTemplateAreas"}),(0,r.Z)({prop:"gridArea"}));var C=i((0,r.Z)({prop:"position"}),(0,r.Z)({prop:"zIndex",themeKey:"zIndex"}),(0,r.Z)({prop:"top"}),(0,r.Z)({prop:"right"}),(0,r.Z)({prop:"bottom"}),(0,r.Z)({prop:"left"}));var P=i((0,r.Z)({prop:"color",themeKey:"palette"}),(0,r.Z)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),(0,r.Z)({prop:"backgroundColor",themeKey:"palette"}));var T=(0,r.Z)({prop:"boxShadow",themeKey:"shadows"});function M(e){return e<=1&&0!==e?100*e+"%":e}const I=(0,r.Z)({prop:"width",transform:M}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||s.VO[t]||M(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const N=(0,r.Z)({prop:"minWidth",transform:M}),z=(0,r.Z)({prop:"height",transform:M}),j=(0,r.Z)({prop:"maxHeight",transform:M}),A=(0,r.Z)({prop:"minHeight",transform:M});(0,r.Z)({prop:"size",cssProperty:"width",transform:M}),(0,r.Z)({prop:"size",cssProperty:"height",transform:M});var L=i(I,O,N,z,j,A,(0,r.Z)({prop:"boxSizing"}));const F=(0,r.Z)({prop:"fontFamily",themeKey:"typography"}),$=(0,r.Z)({prop:"fontSize",themeKey:"typography"}),B=(0,r.Z)({prop:"fontStyle",themeKey:"typography"}),D=(0,r.Z)({prop:"fontWeight",themeKey:"typography"}),V=(0,r.Z)({prop:"letterSpacing"}),_=(0,r.Z)({prop:"textTransform"}),q=(0,r.Z)({prop:"lineHeight"}),W=(0,r.Z)({prop:"textAlign"});var U=i((0,r.Z)({prop:"typography",cssProperty:!1,themeKey:"typography"}),F,$,B,D,V,q,W,_);const H={borders:Z.filterProps,display:x.filterProps,flexbox:w.filterProps,grid:R.filterProps,positions:C.filterProps,palette:P.filterProps,shadows:T.filterProps,sizing:L.filterProps,spacing:a.ZP.filterProps,typography:U.filterProps},K={borders:Z,display:x,flexbox:w,grid:R,positions:C,palette:P,shadows:T,sizing:L,spacing:a.ZP,typography:U},G=Object.keys(H).reduce(((e,t)=>(H[t].forEach((n=>{e[n]=K[t]})),e)),{})},9707:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(7462),o=n(3366),i=n(9766),a=n(8528);const s=["sx"];function c(e){const{sx:t}=e,n=(0,o.Z)(e,s),{systemProps:c,otherProps:l}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{a.Gc[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let u;return u=Array.isArray(t)?[c,...t]:"function"===typeof t?(...e)=>{const n=t(...e);return(0,i.P)(n)?(0,r.Z)({},c,n):c}:(0,r.Z)({},c,t),(0,r.Z)({},l,{sx:u})}},6523:function(e,t,n){"use strict";var r=n(7730),o=n(8528),i=n(5408);const a=function(e=o.G$){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(o){const{sx:a,theme:s={}}=o||{};if(!a)return null;function c(o){let a=o;if("function"===typeof o)a=o(s);else if("object"!==typeof o)return o;if(!a)return null;const c=(0,i.W8)(s.breakpoints),l=Object.keys(c);let u=c;return Object.keys(a).forEach((o=>{const c=(l=a[o],d=s,"function"===typeof l?l(d):l);var l,d;if(null!==c&&void 0!==c)if("object"===typeof c)if(t[o])u=(0,r.Z)(u,n(o,c,s));else{const t=(0,i.k9)({theme:s},c,(e=>({[o]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(t,c)?u=(0,r.Z)(u,t):u[o]=e({sx:c,theme:s})}else u=(0,r.Z)(u,n(o,c,s))})),(0,i.L7)(l,u)}return Array.isArray(a)?a.map(c):c(a)}}();a.filterProps=["sx"],t.Z=a},539:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7925);function o(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}},9064:function(e,t,n){"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{Z:function(){return r}})},7596:function(e,t,n){"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{Z:function(){return r}})},5806:function(e,t,n){"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{Z:function(){return r}})},7094:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},8290:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7094);function o(e){return(0,r.Z)(e).defaultView||window}},7925:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7462);function o(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}},7960:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},8925:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294);function o({controlled:e,default:t,name:n,state:o="value"}){const{current:i}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[i?e:a,r.useCallback((e=>{i||s(e)}),[])]}},6600:function(e,t,n){"use strict";var r=n(7294);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=o},3633:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(6600);function i(e){const t=r.useRef(e);return(0,o.Z)((()=>{t.current=e})),r.useCallback(((...e)=>(0,t.current)(...e)),[])}},67:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294),o=n(7960);function i(e,t){return r.useMemo((()=>null==e&&null==t?null:n=>{(0,o.Z)(e,n),(0,o.Z)(t,n)}),[e,t])}},9962:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(7294);let o,i=!0,a=!1;const s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function l(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",l,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("touchstart",l,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(o),o=window.setTimeout((()=>{a=!1}),100),t.current=!1,!0)},ref:e}}},9669:function(e,t,n){e.exports=n(1609)},5448:function(e,t,n){"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),s=n(4097),c=n(4109),l=n(7985),u=n(5061),d=n(5655),p=n(5263);e.exports=function(e){return new Promise((function(t,n){var f,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(h)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",Z=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+Z)}var x=s(e.baseURL,e.url);function w(){if(b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(w)},b.onabort=function(){b&&(n(u("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(u("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||l(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){b&&(n(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),h||(h=null),b.send(h)}))}},1609:function(e,t,n){"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5655));s.Axios=i,s.Cancel=n(5263),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},5263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:function(e,t,n){"use strict";var r=n(5263);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(s)})),e.exports=l},7288:function(e){e.exports={version:"0.24.0"}},1849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:function(e,t,n){"use strict";var r=n(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:function(e,t,n){"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var d=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return u(r)}},5068:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return o}})},8100:function(e,t,n){"use strict";n.d(t,{ZP:function(){return X}});var r=n(7294);function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:I?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:I?5e3:3e3,compare:function(e,t){return g(e)==g(t)},isPaused:function(){return!1},cache:D,mutate:V,fallback:{}},k),q=function(e,t){var n=p(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=p(o,a))}return n},W=(0,r.createContext)({}),U=function(e){return d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},H=function(){return p(_,(0,r.useContext)(W))},K=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},G={dedupe:!0},X=(l.defineProperty((function(e){var t=e.value,n=q((0,r.useContext)(W),t),o=t&&t.provider,i=(0,r.useState)((function(){return o?$(o(n.cache||D),t):c}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),T((function(){return i?i[2]:c}),[]),(0,r.createElement)(W.Provider,p(e,{value:n}))}),"default",{value:_}),a=function(e,t,n){var a=n.cache,s=n.compare,l=n.fallbackData,f=n.suspense,h=n.revalidateOnMount,m=n.refreshInterval,v=n.refreshWhenHidden,g=n.refreshWhenOffline,b=N.get(a),y=b[0],Z=b[1],x=b[2],w=b[3],S=O(e),E=S[0],k=S[1],R=S[2],M=(0,r.useRef)(!1),I=(0,r.useRef)(!1),j=(0,r.useRef)(E),F=(0,r.useRef)(t),$=(0,r.useRef)(n),B=function(){return $.current},D=function(){return B().isVisible()&&B().isOnline()},V=function(e){return a.set(R,p(a.get(R),e))},_=a.get(E),q=u(l)?n.fallback[E]:l,W=u(_)?q:_,U=a.get(R)||{},H=U.error,X=!M.current,Y=function(){return X&&!u(h)?h:!B().isPaused()&&(f?!u(W):u(W)||n.revalidateIfStale)},J=!(!E||!t)&&(!!U.isValidating||X&&Y()),Q=function(e,t){var n=(0,r.useState)({})[1],o=(0,r.useRef)(e),i=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,r.useCallback)((function(e){var r=!1,a=o.current;for(var s in e){var c=s;a[c]!==e[c]&&(a[c]=e[c],i.current[c]&&(r=!0))}r&&!t.current&&n({})}),[]);return T((function(){o.current=e})),[o,i.current,a]}({data:W,error:H,isValidating:J},I),ee=Q[0],te=Q[1],ne=Q[2],re=(0,r.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,r,o,l,p,f,h,m,v,g,b,y,Z;return i(this,(function(i){switch(i.label){case 0:if(t=F.current,!E||!t||I.current||B().isPaused())return[2,!1];l=!0,p=e||{},f=!w[E]||!p.dedupe,h=function(){return!I.current&&E===j.current&&M.current},m=function(){var e=w[E];e&&e[1]===o&&delete w[E]},v={isValidating:!1},g=function(){V({isValidating:!1}),h()&&ne(v)},V({isValidating:!0}),ne({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),f&&(z(a,E,ee.current.data,ee.current.error,!0),n.loadingTimeout&&!a.get(E)&&setTimeout((function(){l&&h()&&B().onLoadingSlow(E,n)}),n.loadingTimeout),w[E]=[t.apply(void 0,k),A()]),Z=w[E],r=Z[0],o=Z[1],[4,r];case 2:return r=i.sent(),f&&setTimeout(m,n.dedupingInterval),w[E]&&w[E][1]===o?(V({error:c}),v.error=c,b=x[E],!u(b)&&(o<=b[0]||o<=b[1]||0===b[1])?(g(),f&&h()&&B().onDiscarded(E),[2,!1]):(s(ee.current.data,r)?v.data=ee.current.data:v.data=r,s(a.get(E),r)||a.set(E,r),f&&h()&&B().onSuccess(r,E,n),[3,4])):(f&&h()&&B().onDiscarded(E),[2,!1]);case 3:return y=i.sent(),m(),B().isPaused()||(V({error:y}),v.error=y,f&&h()&&(B().onError(y,E,n),("boolean"===typeof n.shouldRetryOnError&&n.shouldRetryOnError||d(n.shouldRetryOnError)&&n.shouldRetryOnError(y))&&D()&&B().onErrorRetry(y,E,n,re,{retryCount:(p.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,g(),h()&&f&&z(a,E,v.data,v.error,!1),[2,!0]}}))}))}),[E]),oe=(0,r.useCallback)(L.bind(c,a,(function(){return j.current})),[]);if(T((function(){F.current=t,$.current=n})),T((function(){if(E){var e=E!==j.current,t=re.bind(c,G),n=0,r=K(E,Z,(function(e,t,n){ne(p({error:t,isValidating:n},s(ee.current.data,e)?c:{data:e}))})),o=K(E,y,(function(e){if(0==e){var r=Date.now();B().revalidateOnFocus&&r>n&&D()&&(n=r+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&D()&&t();else if(2==e)return re()}));return I.current=!1,j.current=E,M.current=!0,e&&ne({data:W,error:H,isValidating:J}),Y()&&(u(W)||C?t():P(t)),function(){I.current=!0,r(),o()}}}),[E,re]),T((function(){var e;function t(){var t=d(m)?m(W):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){ee.current.error||!v&&!B().isVisible()||!g&&!B().isOnline()?t():re(G).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[m,v,g,re]),(0,r.useDebugValue)(W),f&&u(W)&&E)throw F.current=t,$.current=n,I.current=!1,u(H)?re(G):H;return{mutate:oe,get data(){return te.data=!0,W},get error(){return te.error=!0,H},get isValidating(){return te.isValidating=!0,J}}},function(){for(var e=[],t=0;t0;)l=u[d](l);return l(o,i||c.fetcher,c)})}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/519-4b7761e884c88eb9.js b/striker-ui/out/_next/static/chunks/519-4b7761e884c88eb9.js new file mode 100644 index 00000000..d33512e2 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/519-4b7761e884c88eb9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[519],{8262:function(e,r,n){n.d(r,{Z:function(){return P}});var i=n(3366),t=n(7462),o=n(7294),a=n(6010),s=n(7192),l=n(7579),c=n(8216),p=n(9964),d=n(6628),u=n(5113),m=n(3616),g=n(1496),x=n(8979);function h(e){return(0,x.Z)("MuiDialog",e)}var f=(0,n(6087).Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var S=(0,o.createContext)({}),w=n(7227),b=n(2734),$=n(5893);const v=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],W=(0,g.ZP)(w.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,r)=>r.backdrop})({zIndex:-1}),Z=(0,g.ZP)(p.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,r)=>r.root})({"@media print":{position:"absolute !important"}}),k=(0,g.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.container,r[`scroll${(0,c.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,t.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),y=(0,g.ZP)(u.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.paper,r[`scrollPaper${(0,c.Z)(n.scroll)}`],r[`paperWidth${(0,c.Z)(String(n.maxWidth))}`],n.fullWidth&&r.paperFullWidth,n.fullScreen&&r.paperFullScreen]}})((({theme:e,ownerState:r})=>(0,t.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},"xs"!==r.maxWidth&&{maxWidth:`${e.breakpoints.values[r.maxWidth]}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${f.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var P=o.forwardRef((function(e,r){const n=(0,m.Z)({props:e,name:"MuiDialog"}),p=(0,b.Z)(),g={enter:p.transitions.duration.enteringScreen,exit:p.transitions.duration.leavingScreen},{"aria-describedby":x,"aria-labelledby":f,BackdropComponent:w,BackdropProps:P,children:M,className:C,disableEscapeKeyDown:N=!1,fullScreen:B=!1,fullWidth:D=!1,maxWidth:z="sm",onBackdropClick:j,onClose:R,open:F,PaperComponent:T=u.Z,PaperProps:E={},scroll:G="paper",TransitionComponent:A=d.Z,transitionDuration:H=g,TransitionProps:I}=n,K=(0,i.Z)(n,v),_=(0,t.Z)({},n,{disableEscapeKeyDown:N,fullScreen:B,fullWidth:D,maxWidth:z,scroll:G}),L=(e=>{const{classes:r,scroll:n,maxWidth:i,fullWidth:t,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${(0,c.Z)(n)}`],paper:["paper",`paperScroll${(0,c.Z)(n)}`,`paperWidth${(0,c.Z)(String(i))}`,t&&"paperFullWidth",o&&"paperFullScreen"]};return(0,s.Z)(a,h,r)})(_),X=o.useRef(),Y=(0,l.Z)(f),O=o.useMemo((()=>({titleId:Y})),[Y]);return(0,$.jsx)(Z,(0,t.Z)({className:(0,a.Z)(L.root,C),BackdropProps:(0,t.Z)({transitionDuration:H,as:w},P),closeAfterTransition:!0,BackdropComponent:W,disableEscapeKeyDown:N,onClose:R,open:F,ref:r,onClick:e=>{X.current&&(X.current=null,j&&j(e),R&&R(e,"backdropClick"))},ownerState:_},K,{children:(0,$.jsx)(A,(0,t.Z)({appear:!0,in:F,timeout:H,role:"presentation"},I,{children:(0,$.jsx)(k,{className:(0,a.Z)(L.container),onMouseDown:e=>{X.current=e.target===e.currentTarget},ownerState:_,children:(0,$.jsx)(y,(0,t.Z)({as:T,elevation:24,role:"dialog","aria-describedby":x,"aria-labelledby":Y},E,{className:(0,a.Z)(L.paper,E.className),ownerState:_,children:(0,$.jsx)(S.Provider,{value:O,children:M})}))})}))}))}))},8263:function(e,r,n){n.d(r,{ZP:function(){return w}});var i=n(3366),t=n(7462),o=n(7294),a=n(6010),s=n(5408),l=n(9707),c=n(7192),p=n(1496),d=n(3616);var u=o.createContext(),m=n(8673),g=n(5893);const x=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function h(e){const r=parseFloat(e);return`${r}${String(e).replace(String(r),"")||"px"}`}function f(e,r,n={}){if(!r||!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`];const{xs:i,sm:t,md:o,lg:a,xl:s}=e;return[Number(i)>0&&(n[`spacing-xs-${String(i)}`]||`spacing-xs-${String(i)}`),Number(t)>0&&(n[`spacing-sm-${String(t)}`]||`spacing-sm-${String(t)}`),Number(o)>0&&(n[`spacing-md-${String(o)}`]||`spacing-md-${String(o)}`),Number(a)>0&&(n[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(s)>0&&(n[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const S=(0,p.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,r)=>{const{container:n,direction:i,item:t,lg:o,md:a,sm:s,spacing:l,wrap:c,xl:p,xs:d,zeroMinWidth:u}=e.ownerState;return[r.root,n&&r.container,t&&r.item,u&&r.zeroMinWidth,...f(l,n,r),"row"!==i&&r[`direction-xs-${String(i)}`],"wrap"!==c&&r[`wrap-xs-${String(c)}`],!1!==d&&r[`grid-xs-${String(d)}`],!1!==s&&r[`grid-sm-${String(s)}`],!1!==a&&r[`grid-md-${String(a)}`],!1!==o&&r[`grid-lg-${String(o)}`],!1!==p&&r[`grid-xl-${String(p)}`]]}})((({ownerState:e})=>(0,t.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:r}){const n=(0,s.P$)({values:r.direction,breakpoints:e.breakpoints.values});return(0,s.k9)({theme:e},n,(e=>{const r={flexDirection:e};return 0===e.indexOf("column")&&(r[`& > .${m.Z.item}`]={maxWidth:"none"}),r}))}),(function({theme:e,ownerState:r}){const{container:n,rowSpacing:i}=r;let t={};if(n&&0!==i){const r=(0,s.P$)({values:i,breakpoints:e.breakpoints.values});t=(0,s.k9)({theme:e},r,(r=>{const n=e.spacing(r);return"0px"!==n?{marginTop:`-${h(n)}`,[`& > .${m.Z.item}`]:{paddingTop:h(n)}}:{}}))}return t}),(function({theme:e,ownerState:r}){const{container:n,columnSpacing:i}=r;let t={};if(n&&0!==i){const r=(0,s.P$)({values:i,breakpoints:e.breakpoints.values});t=(0,s.k9)({theme:e},r,(r=>{const n=e.spacing(r);return"0px"!==n?{width:`calc(100% + ${h(n)})`,marginLeft:`-${h(n)}`,[`& > .${m.Z.item}`]:{paddingLeft:h(n)}}:{}}))}return t}),(function({theme:e,ownerState:r}){let n;return e.breakpoints.keys.reduce(((i,o)=>{let a={};if(r[o]&&(n=r[o]),!n)return i;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,s.P$)({values:r.columns,breakpoints:e.breakpoints.values}),c="object"===typeof l?l[o]:l;if(void 0===c||null===c)return i;const p=Math.round(n/c*1e8)/1e6+"%";let d={};if(r.container&&r.item&&0!==r.columnSpacing){const n=e.spacing(r.columnSpacing);if("0px"!==n){const e=`calc(${p} + ${h(n)})`;d={flexBasis:e,maxWidth:e}}}a=(0,t.Z)({flexBasis:p,flexGrow:0,maxWidth:p},d)}return 0===e.breakpoints.values[o]?Object.assign(i,a):i[e.breakpoints.up(o)]=a,i}),{})}));var w=o.forwardRef((function(e,r){const n=(0,d.Z)({props:e,name:"MuiGrid"}),s=(0,l.Z)(n),{className:p,columns:h,columnSpacing:w,component:b="div",container:$=!1,direction:v="row",item:W=!1,lg:Z=!1,md:k=!1,rowSpacing:y,sm:P=!1,spacing:M=0,wrap:C="wrap",xl:N=!1,xs:B=!1,zeroMinWidth:D=!1}=s,z=(0,i.Z)(s,x),j=y||M,R=w||M,F=o.useContext(u),T=h||F||12,E=(0,t.Z)({},s,{columns:T,container:$,direction:v,item:W,lg:Z,md:k,sm:P,rowSpacing:j,columnSpacing:R,wrap:C,xl:N,xs:B,zeroMinWidth:D}),G=(e=>{const{classes:r,container:n,direction:i,item:t,lg:o,md:a,sm:s,spacing:l,wrap:p,xl:d,xs:u,zeroMinWidth:g}=e,x={root:["root",n&&"container",t&&"item",g&&"zeroMinWidth",...f(l,n),"row"!==i&&`direction-xs-${String(i)}`,"wrap"!==p&&`wrap-xs-${String(p)}`,!1!==u&&`grid-xs-${String(u)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==a&&`grid-md-${String(a)}`,!1!==o&&`grid-lg-${String(o)}`,!1!==d&&`grid-xl-${String(d)}`]};return(0,c.Z)(x,m.H,r)})(E);return A=(0,g.jsx)(S,(0,t.Z)({ownerState:E,className:(0,a.Z)(G.root,p),as:b,ref:r},z)),12!==T?(0,g.jsx)(u.Provider,{value:T,children:A}):A;var A}))},8673:function(e,r,n){n.d(r,{H:function(){return t}});var i=n(8979);function t(e){return(0,i.Z)("MuiGrid",e)}const o=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=(0,n(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...o.map((e=>`grid-xs-${e}`)),...o.map((e=>`grid-sm-${e}`)),...o.map((e=>`grid-md-${e}`)),...o.map((e=>`grid-lg-${e}`)),...o.map((e=>`grid-xl-${e}`))]);r.Z=a},7579:function(e,r,n){var i;n.d(r,{Z:function(){return s}});var t=n(7294);let o=0;const a=(i||(i=n.t(t,2))).useId;function s(e){if(void 0!==a){const r=a();return null!=e?e:r}return function(e){const[r,n]=t.useState(e),i=e||r;return t.useEffect((()=>{null==r&&(o+=1,n(`mui-${o}`))}),[r]),i}(e)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/586-4e70511cf6d7632f.js b/striker-ui/out/_next/static/chunks/586-4e70511cf6d7632f.js deleted file mode 100644 index 6e38f3d7..00000000 --- a/striker-ui/out/_next/static/chunks/586-4e70511cf6d7632f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[586],{8262:function(e,r,n){n.d(r,{Z:function(){return P}});var i=n(3366),t=n(7462),o=n(7294),a=n(6010),s=n(7192),l=n(7579),c=n(8216),p=n(9964),d=n(6628),u=n(5113),m=n(3616),g=n(1496),x=n(8979);function h(e){return(0,x.Z)("MuiDialog",e)}var f=(0,n(6087).Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var S=(0,o.createContext)({}),w=n(7227),b=n(2734),$=n(5893);const v=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],W=(0,g.ZP)(w.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,r)=>r.backdrop})({zIndex:-1}),k=(0,g.ZP)(p.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,r)=>r.root})({"@media print":{position:"absolute !important"}}),Z=(0,g.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.container,r[`scroll${(0,c.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,t.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),y=(0,g.ZP)(u.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.paper,r[`scrollPaper${(0,c.Z)(n.scroll)}`],r[`paperWidth${(0,c.Z)(String(n.maxWidth))}`],n.fullWidth&&r.paperFullWidth,n.fullScreen&&r.paperFullScreen]}})((({theme:e,ownerState:r})=>(0,t.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},"xs"!==r.maxWidth&&{maxWidth:`${e.breakpoints.values[r.maxWidth]}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${f.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var P=o.forwardRef((function(e,r){const n=(0,m.Z)({props:e,name:"MuiDialog"}),p=(0,b.Z)(),g={enter:p.transitions.duration.enteringScreen,exit:p.transitions.duration.leavingScreen},{"aria-describedby":x,"aria-labelledby":f,BackdropComponent:w,BackdropProps:P,children:M,className:C,disableEscapeKeyDown:N=!1,fullScreen:B=!1,fullWidth:D=!1,maxWidth:z="sm",onBackdropClick:j,onClose:R,open:F,PaperComponent:T=u.Z,PaperProps:E={},scroll:G="paper",TransitionComponent:A=d.Z,transitionDuration:I=g,TransitionProps:K}=n,_=(0,i.Z)(n,v),L=(0,t.Z)({},n,{disableEscapeKeyDown:N,fullScreen:B,fullWidth:D,maxWidth:z,scroll:G}),X=(e=>{const{classes:r,scroll:n,maxWidth:i,fullWidth:t,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${(0,c.Z)(n)}`],paper:["paper",`paperScroll${(0,c.Z)(n)}`,`paperWidth${(0,c.Z)(String(i))}`,t&&"paperFullWidth",o&&"paperFullScreen"]};return(0,s.Z)(a,h,r)})(L),Y=o.useRef(),H=(0,l.Z)(f),O=o.useMemo((()=>({titleId:H})),[H]);return(0,$.jsx)(k,(0,t.Z)({className:(0,a.Z)(X.root,C),BackdropProps:(0,t.Z)({transitionDuration:I,as:w},P),closeAfterTransition:!0,BackdropComponent:W,disableEscapeKeyDown:N,onClose:R,open:F,ref:r,onClick:e=>{Y.current&&(Y.current=null,j&&j(e),R&&R(e,"backdropClick"))},ownerState:L},_,{children:(0,$.jsx)(A,(0,t.Z)({appear:!0,in:F,timeout:I,role:"presentation"},K,{children:(0,$.jsx)(Z,{className:(0,a.Z)(X.container),onMouseDown:e=>{Y.current=e.target===e.currentTarget},ownerState:L,children:(0,$.jsx)(y,(0,t.Z)({as:T,elevation:24,role:"dialog","aria-describedby":x,"aria-labelledby":H},E,{className:(0,a.Z)(X.paper,E.className),ownerState:L,children:(0,$.jsx)(S.Provider,{value:O,children:M})}))})}))}))}))},6886:function(e,r,n){n.d(r,{ZP:function(){return v}});var i=n(3366),t=n(7462),o=n(7294),a=n(6010),s=n(5408),l=n(9707),c=n(7192),p=n(1496),d=n(3616);var u=o.createContext(),m=n(8979);function g(e){return(0,m.Z)("MuiGrid",e)}const x=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var h=(0,n(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...x.map((e=>`grid-xs-${e}`)),...x.map((e=>`grid-sm-${e}`)),...x.map((e=>`grid-md-${e}`)),...x.map((e=>`grid-lg-${e}`)),...x.map((e=>`grid-xl-${e}`))]),f=n(5893);const S=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function w(e){const r=parseFloat(e);return`${r}${String(e).replace(String(r),"")||"px"}`}function b(e,r,n={}){if(!r||!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`];const{xs:i,sm:t,md:o,lg:a,xl:s}=e;return[Number(i)>0&&(n[`spacing-xs-${String(i)}`]||`spacing-xs-${String(i)}`),Number(t)>0&&(n[`spacing-sm-${String(t)}`]||`spacing-sm-${String(t)}`),Number(o)>0&&(n[`spacing-md-${String(o)}`]||`spacing-md-${String(o)}`),Number(a)>0&&(n[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(s)>0&&(n[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const $=(0,p.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,r)=>{const{container:n,direction:i,item:t,lg:o,md:a,sm:s,spacing:l,wrap:c,xl:p,xs:d,zeroMinWidth:u}=e.ownerState;return[r.root,n&&r.container,t&&r.item,u&&r.zeroMinWidth,...b(l,n,r),"row"!==i&&r[`direction-xs-${String(i)}`],"wrap"!==c&&r[`wrap-xs-${String(c)}`],!1!==d&&r[`grid-xs-${String(d)}`],!1!==s&&r[`grid-sm-${String(s)}`],!1!==a&&r[`grid-md-${String(a)}`],!1!==o&&r[`grid-lg-${String(o)}`],!1!==p&&r[`grid-xl-${String(p)}`]]}})((({ownerState:e})=>(0,t.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:r}){const n=(0,s.P$)({values:r.direction,breakpoints:e.breakpoints.values});return(0,s.k9)({theme:e},n,(e=>{const r={flexDirection:e};return 0===e.indexOf("column")&&(r[`& > .${h.item}`]={maxWidth:"none"}),r}))}),(function({theme:e,ownerState:r}){const{container:n,rowSpacing:i}=r;let t={};if(n&&0!==i){const r=(0,s.P$)({values:i,breakpoints:e.breakpoints.values});t=(0,s.k9)({theme:e},r,(r=>{const n=e.spacing(r);return"0px"!==n?{marginTop:`-${w(n)}`,[`& > .${h.item}`]:{paddingTop:w(n)}}:{}}))}return t}),(function({theme:e,ownerState:r}){const{container:n,columnSpacing:i}=r;let t={};if(n&&0!==i){const r=(0,s.P$)({values:i,breakpoints:e.breakpoints.values});t=(0,s.k9)({theme:e},r,(r=>{const n=e.spacing(r);return"0px"!==n?{width:`calc(100% + ${w(n)})`,marginLeft:`-${w(n)}`,[`& > .${h.item}`]:{paddingLeft:w(n)}}:{}}))}return t}),(function({theme:e,ownerState:r}){let n;return e.breakpoints.keys.reduce(((i,o)=>{let a={};if(r[o]&&(n=r[o]),!n)return i;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,s.P$)({values:r.columns,breakpoints:e.breakpoints.values}),c="object"===typeof l?l[o]:l;if(void 0===c||null===c)return i;const p=Math.round(n/c*1e8)/1e6+"%";let d={};if(r.container&&r.item&&0!==r.columnSpacing){const n=e.spacing(r.columnSpacing);if("0px"!==n){const e=`calc(${p} + ${w(n)})`;d={flexBasis:e,maxWidth:e}}}a=(0,t.Z)({flexBasis:p,flexGrow:0,maxWidth:p},d)}return 0===e.breakpoints.values[o]?Object.assign(i,a):i[e.breakpoints.up(o)]=a,i}),{})}));var v=o.forwardRef((function(e,r){const n=(0,d.Z)({props:e,name:"MuiGrid"}),s=(0,l.Z)(n),{className:p,columns:m,columnSpacing:x,component:h="div",container:w=!1,direction:v="row",item:W=!1,lg:k=!1,md:Z=!1,rowSpacing:y,sm:P=!1,spacing:M=0,wrap:C="wrap",xl:N=!1,xs:B=!1,zeroMinWidth:D=!1}=s,z=(0,i.Z)(s,S),j=y||M,R=x||M,F=o.useContext(u),T=m||F||12,E=(0,t.Z)({},s,{columns:T,container:w,direction:v,item:W,lg:k,md:Z,sm:P,rowSpacing:j,columnSpacing:R,wrap:C,xl:N,xs:B,zeroMinWidth:D}),G=(e=>{const{classes:r,container:n,direction:i,item:t,lg:o,md:a,sm:s,spacing:l,wrap:p,xl:d,xs:u,zeroMinWidth:m}=e,x={root:["root",n&&"container",t&&"item",m&&"zeroMinWidth",...b(l,n),"row"!==i&&`direction-xs-${String(i)}`,"wrap"!==p&&`wrap-xs-${String(p)}`,!1!==u&&`grid-xs-${String(u)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==a&&`grid-md-${String(a)}`,!1!==o&&`grid-lg-${String(o)}`,!1!==d&&`grid-xl-${String(d)}`]};return(0,c.Z)(x,g,r)})(E);return A=(0,f.jsx)($,(0,t.Z)({ownerState:E,className:(0,a.Z)(G.root,p),as:h,ref:r},z)),12!==T?(0,f.jsx)(u.Provider,{value:T,children:A}):A;var A}))},7579:function(e,r,n){var i;n.d(r,{Z:function(){return s}});var t=n(7294);let o=0;const a=(i||(i=n.t(t,2))).useId;function s(e){if(void 0!==a){const r=a();return null!=e?e:r}return function(e){const[r,n]=t.useState(e),i=e||r;return t.useEffect((()=>{null==r&&(o+=1,n(`mui-${o}`))}),[r]),i}(e)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/62-2c80eba24b792af8.js b/striker-ui/out/_next/static/chunks/62-2c80eba24b792af8.js new file mode 100644 index 00000000..177e1bff --- /dev/null +++ b/striker-ui/out/_next/static/chunks/62-2c80eba24b792af8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62],{2427:function(e,r,n){var t=n(1496),o=n(8441),i=n(8962),c=n(7169);var a,l,u,s=(0,t.ZP)(o.Z)((a={backgroundColor:"transparent",borderRadius:c.n_,height:"1em"},l="& .".concat(i.Z.bar),u={borderRadius:c.n_},l in a?Object.defineProperty(a,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[l]=u,a));r.Z=s},5813:function(e,r,n){var t=n(5893),o=n(1496),i=n(8962),c=n(7357),a=n(7294),l=n(7169),u=n(2427),s=n(5247);function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(l){a=!0,o=l}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=(0,o.ZP)(u.Z)({height:".4em"}),v=(0,o.ZP)(s.Z)({height:".2em"});r.Z=function(e){var r=e.barProps,n=void 0===r?{}:r,o=e.thin,f=e.underlineProps,g=e.value,h=n.sx,O=b(n,["sx"]),j=(0,a.useMemo)((function(){return"value"in g?{default:g}:g}),[g]),x=(0,a.useMemo)((function(){return Object.entries(j).reverse()}),[j]),w=(0,a.useMemo)((function(){return o?y:u.Z}),[o]),P=(0,a.useMemo)((function(){return o?v:s.Z}),[o]),S=(0,a.useMemo)((function(){return x.map((function(e,r){var n,t,o,c,u=m(e,2),s=u[0],f=u[1],b=f.colour,y=void 0===b?l.s7:b,v=f.value,g="string"===typeof y?y:null!==(t=null===(n=Object.entries(y).reverse().find((function(e){var r=m(e,1)[0];return v>=Number(r)})))||void 0===n?void 0:n[1])&&void 0!==t?t:l.s7,j="relative";return r&&(j="absolute",o=0,c="100%"),(0,a.createElement)(w,p({key:"stack-bar-".concat(s),sx:p(d({position:j,top:o,width:c},"& .".concat(i.Z.bar),{backgroundColor:g}),h),variant:"determinate",value:v},O))}))}),[h,x,w,O]);return(0,t.jsxs)(c.Z,{position:"relative",children:[S,(0,a.createElement)(P,f)]})}},5247:function(e,r,n){var t=n(1496),o=n(7357),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.rr,borderRadius:i.n_,display:"block",height:"4px",position:"relative"});r.Z=c},5172:function(e,r,n){n.d(r,{CD:function(){return d},ko:function(){return v}});var t=n(5893),o=n(1496),i=n(7169),c=n(2427),a=n(5247);function l(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var u="AllocationBar",s={barOk:"".concat(u,"-barOk"),barWarning:"".concat(u,"-barWarning"),barAlert:"".concat(u,"-barAlert")},f=(0,o.ZP)("div")((function(){var e;return l(e={},"& .".concat(s.barOk),{backgroundColor:i.Ej}),l(e,"& .".concat(s.barWarning),{backgroundColor:i.Wd}),l(e,"& .".concat(s.barAlert),{backgroundColor:i.hM}),e})),d=function(e){var r=e.allocated;return(0,t.jsxs)(f,{children:[(0,t.jsx)(c.Z,{classes:{bar:r>70?r>90?s.barAlert:s.barWarning:s.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};function p(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var b="ProgressBar",m={barOk:"".concat(b,"-barOk"),barInProgress:"".concat(b,"-barInProgress")},y=(0,o.ZP)("div")((function(){var e;return p(e={},"& .".concat(m.barOk),{backgroundColor:i.Ej}),p(e,"& .".concat(m.barInProgress),{backgroundColor:i.Wd}),e})),v=function(e){var r=e.progressPercentage;return(0,t.jsxs)(y,{children:[(0,t.jsx)(c.Z,{classes:{bar:r<100?m.barInProgress:m.barOk},variant:"determinate",value:r}),(0,t.jsx)(a.Z,{})]})};n(5813)},2349:function(e,r,n){var t=n(5893),o=n(8128),i=n(3631),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(e){var r=e.sx,n=u(e,["sx"]);return(0,t.jsx)(o.Z,l({},n,{sx:l(a({color:c.s7},"&.".concat(i.Z.checked),{color:c.s7}),r)}))}},582:function(e,r,n){var t=n(1496),o=n(7720),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.d});r.Z=c},4690:function(e,r,n){var t=n(5893),o=n(7357),i=n(7294);function c(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u={columnSpacing:void 0,fullWidth:!1,growFirst:!1,row:!1,rowSpacing:void 0,lg:void 0,md:void 0,sm:void 0,spacing:"1em",xl:void 0,xs:"column"},s=function(e){var r=e.fullWidth,n=e.growFirst,c=e.lg,s=void 0===c?u.lg:c,f=e.md,d=void 0===f?u.md:f,p=e.row,b=e.sm,m=void 0===b?u.sm:b,y=e.spacing,v=void 0===y?u.spacing:y,g=e.sx,h=e.xl,O=void 0===h?u.xl:h,j=e.xs,x=void 0===j?u.xs:j,w=e.columnSpacing,P=void 0===w?v:w,S=e.rowSpacing,Z=void 0===S?v:S,I=l(e,["fullWidth","growFirst","lg","md","row","sm","spacing","sx","xl","xs","columnSpacing","rowSpacing"]),k=(0,i.useMemo)((function(){return p?"row":x}),[x,p]),A=(0,i.useMemo)((function(){return m||k}),[m,k]),C=(0,i.useMemo)((function(){return d||A}),[d,A]),E=(0,i.useMemo)((function(){return s||C}),[s,C]),M=(0,i.useMemo)((function(){return O||E}),[O,E]),T=(0,i.useMemo)((function(){return{column:{alignItems:"normal",marginLeft:0,marginTop:P},row:{alignItems:"center",marginLeft:Z,marginTop:0}}}),[P,Z]),D=(0,i.useMemo)((function(){return n?1:void 0}),[n]),R=(0,i.useMemo)((function(){return r?"100%":void 0}),[r]);return(0,t.jsx)(o.Z,a({},I,{sx:a({alignItems:{xs:T[k].alignItems,sm:T[A].alignItems,md:T[C].alignItems,lg:T[E].alignItems,xl:T[M].alignItems},display:"flex",flexDirection:{xs:k,sm:A,md:C,lg:E,xl:M},width:R,"& > :first-child":{flexGrow:D},"& > :not(:first-child)":{marginLeft:{xs:T[k].marginLeft,sm:T[A].marginLeft,md:T[C].marginLeft,lg:T[E].marginLeft,xl:T[M].marginLeft},marginTop:{xs:T[k].marginTop,sm:T[A].marginTop,md:T[C].marginTop,lg:T[E].marginTop,xl:T[M].marginTop}}},g)}))};s.defaultProps=u,r.Z=s},1706:function(e,r,n){n.d(r,{Z:function(){return P}});var t=n(2428),o=n(5537),i=n(6761),c=n(1797),a=n(6059),l=n(1370),u=n(2186),s=n(5697),f=n(1496),d=n(4799),p=n(7021),b=n(7294),m=n(7169);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,f.ZP)(d.Z)(y({borderRadius:m.n_,backgroundColor:m.s7,color:m.E5,"&:hover":{backgroundColor:"".concat(m.s7,"F0")}},"&.".concat(p.Z.disabled),{backgroundColor:m.rr})),h=(0,f.ZP)(g)({backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}}),O=(0,f.ZP)(d.Z)({color:m.s7}),j={add:{none:{iconType:t.Z}},close:{none:{iconType:o.Z}},delete:{none:{iconType:i.Z}},edit:{false:{iconType:c.Z},true:{iconType:a.Z,iconProps:{sx:{color:m.Ej}}}},play:{none:{iconType:l.Z}},visibility:{false:{iconType:u.Z},true:{iconType:s.Z}}},x={contained:g,normal:O,redcontained:h},w=function(e){var r=e.children,n=e.defaultIcon,t=e.iconProps,o=e.mapPreset,i=e.mapToIcon,c=e.state,a=void 0===c?"none":c,l=e.variant,u=void 0===l?"contained":l,s=v(e,["children","defaultIcon","iconProps","mapPreset","mapToIcon","state","variant"]),f=(0,b.useMemo)((function(){return null!==i&&void 0!==i?i:o&&j[o]}),[i,o]),d=(0,b.useMemo)((function(){var e;if(f){var o,i=null!==(o=f[a])&&void 0!==o?o:{iconType:n},c=i.iconType,l=i.iconProps;c&&(e=(0,b.createElement)(c,function(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(l){a=!0,o=l}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y="1.7em",v={iconProps:{},indicatorProps:{},indicatorTextProps:{},initialIndicatorValue:!1},g="24%",h="50%",O=".1rem",j="0rem",x=(0,i.forwardRef)((function(e,r){var n=e.icon,f=e.iconProps,d=(void 0===f?v.iconProps:f).sx,x=e.indicatorProps,w=(void 0===x?v.indicatorProps:x).sx,P=e.indicatorTextProps,S=(void 0===P?v.indicatorTextProps:P).sx,Z=e.initialIndicatorValue,I=void 0===Z?v.initialIndicatorValue:Z,k=e.sx,A=b(e.iconProps,["sx"]),C=b(e.indicatorProps,["sx"]),E=b(e.indicatorTextProps,["sx"]),M=(0,u.Z)().protect,T=m((0,s.Z)(I,M),2),D=T[0],R=T[1],W=(0,i.useCallback)((function(e,r,n){return(0,t.jsx)(a.Z,p({row:!0},C,{sx:p({backgroundColor:c.Ej,borderColor:c.E5,borderRadius:"50%",borderStyle:"solid",borderWidth:".1em",bottom:n,boxSizing:"content-box",height:0,justifyContent:"center",paddingBottom:r,position:"absolute",right:n,width:r},w),children:e}))}),[w,C]),L=(0,i.useCallback)((function(e){return(0,t.jsx)(l.Ac,p({},E,{sx:p({fontWeight:"500",paddingTop:"100%"},S),children:e>9?"".concat(9,"+"):e}))}),[S,E]),N=(0,i.useMemo)((function(){var e;if(D){var r,n=g,t=O;Number.isFinite(D)&&(r=L(D),n=h,t=j),e=W(r,n,t)}return e}),[W,L,D]);return(0,i.useImperativeHandle)(r,(function(){return{indicate:function(e){return R(e)}}}),[R]),(0,t.jsxs)(o.Z,{sx:p({height:y,width:y,position:"relative"},k),children:[(0,i.createElement)(n,p({},A,{sx:p({height:"100%",width:"100%"},d)})),N]})}));x.defaultProps=v,x.displayName="IconWithIndicator",r.Z=x},2444:function(e,r,n){var t=n(5893),o=n(8333),i=n(7294),c=n(2029),a=n(5172),l=n(4690),u=n(6125),s=n(1905),f=n(7750),d=n(2749);function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(l){a=!0,o=l}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||I(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||I(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,r){if(e){if("string"===typeof e)return j(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,r):void 0}}var k=(0,o.forwardRef)((function(e){var r=e.allowCheckAll,n=void 0!==r&&r,j=e.allowEdit,x=void 0!==j&&j,I=e.allowItemButton,k=void 0!==I&&I,A=e.disableDelete,C=void 0!==A&&A,E=e.edit,M=void 0!==E&&E,T=e.flexBoxProps,D=e.getListCheckboxProps,R=e.getListItemCheckboxProps,W=e.header,L=e.headerSpacing,N=void 0===L?".3em":L,q=e.insertHeader,_=void 0===q||q,F=e.listEmpty,B=e.listItemIconMinWidth,U=void 0===B?"56px":B,H=e.listItemKeyPrefix,z=void 0===H?(0,b.Z)():H,$=e.listItemProps,J=(void 0===$?{}:$).sx,G=e.listItems,V=e.listProps,X=(void 0===V?{}:V).sx,Y=e.onAdd,K=e.onDelete,Q=e.onEdit,ee=e.onAllCheckboxChange,re=e.onItemCheckboxChange,ne=e.onItemClick,te=e.renderListItem,oe=void 0===te?function(e){return(0,t.jsx)(O.Ac,{children:e})}:te,ie=e.renderListItemCheckboxState,ce=e.scroll,ae=void 0!==ce&&ce,le=e.allowAddItem,ue=void 0===le?x:le,se=e.allowCheckItem,fe=void 0===se?x:se,de=e.allowDelete,pe=void 0===de?x:de,be=e.allowEditItem,me=void 0===be?x:be,ye=P(e.listItemProps,["sx"]),ve=P(e.listProps,["sx"]),ge=(0,o.useMemo)((function(){return"calc(".concat(U," - ").concat(N,")")}),[N,U]),he=(0,o.useMemo)((function(){return ue?(0,t.jsx)(h.Z,{onClick:Y,size:"small",children:(0,t.jsx)(i.Z,{})}):void 0}),[ue,Y]),Oe=(0,o.useMemo)((function(){return M&&pe?(0,t.jsx)(h.Z,{disabled:C,onClick:K,size:"small",sx:{backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}},children:(0,t.jsx)(c.Z,{})}):void 0}),[C,pe,M,K]),je=(0,o.useMemo)((function(){if(me)return(0,t.jsx)(h.Z,{onClick:Q,size:"small",children:M?(0,t.jsx)(a.Z,{sx:{color:m.Ej}}):(0,t.jsx)(l.Z,{})})}),[me,M,Q]),xe=(0,o.useMemo)((function(){var e;return M&&fe&&(e=n?(0,t.jsx)(u.Z,{sx:{minWidth:ge},children:(0,t.jsx)(y.Z,w({edge:"start",onChange:ee},null===D||void 0===D?void 0:D.call(null)))}):(0,t.jsx)(v.Z,{sx:{minWidth:ge}})),e}),[ge,D,n,fe,M,ee]),we=(0,o.useMemo)((function(){var e,r="undefined"===typeof W?"undefined":(e=W)&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return _&&W?(0,t.jsxs)(g.Z,{row:!0,spacing:N,sx:{height:"2.4em"},children:[xe,["boolean","string"].includes(r)?(0,t.jsxs)(t.Fragment,{children:["string"===r&&(0,t.jsx)(O.Ac,{children:W}),(0,t.jsx)(v.Z,{sx:{flexGrow:1}})]}):W,Oe,je,he]}):W}),[he,xe,Oe,je,W,N,_]),Pe=(0,o.useMemo)((function(){return"string"===typeof F?(0,t.jsx)(O.Ac,{align:"center",children:F}):F}),[F]),Se=(0,o.useCallback)((function(e,r,n){return M&&fe?(0,t.jsx)(s.Z,{sx:{minWidth:U},children:(0,t.jsx)(y.Z,w({checked:r,edge:"start",onChange:function(){for(var r=arguments.length,n=new Array(r),t=0;t0&&(e=r.map((function(e){var r=S(e,2),n=r[0],i=r[1],c=oe(n,i);return(0,o.createElement)(f.ZP,w({},ye,{key:"".concat(z,"-").concat(n),sx:w({paddingLeft:0,paddingRight:0},J),children:[Se(n,null===ie||void 0===ie?void 0:ie.call(null,n,i),null===R||void 0===R?void 0:R.call(null,n,i)),k?(0,t.jsx)(d.Z,{onClick:function(){for(var e=arguments.length,r=new Array(e),t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var b=function(e){var r=e.headerMarginOffset,n=void 0===r?".3em":r,o=e.ml,i=e.mv,c=void 0===i?"1.4em":i,s=e.sx,f=e.mb,b=void 0===f?c:f,m=e.mt,y=void 0===m?c:m,v=p(e,["headerMarginOffset","ml","mv","sx","mb","mt"]),g=(0,l.useMemo)((function(){return o?"calc(".concat(o," + ").concat(n,")"):n}),[n,o]),h=(0,l.useMemo)((function(){var e="number"===typeof y?"".concat(y,"px"):y;return"calc(".concat(e," + ").concat(n,")")}),[n,y]),O=(0,l.useMemo)((function(){return d({borderWidth:"1px",borderRadius:u.n_,borderStyle:"solid",borderColor:u.d,paddingBottom:0,position:"relative"},s)}),[s]);return(0,t.jsx)(a.Z,d({mb:b,ml:g,mt:h},v,{sx:O}))};function m(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function y(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=function(e){var r=e.sx,n=v(e,["sx"]),o=(0,l.useMemo)((function(){return y({position:"relative",zIndex:20},r)}),[r]);return(0,t.jsx)(a.Z,y({padding:".3em .7em"},n,{sx:o}))},h=function(e){var r=e.children;return(0,t.jsxs)(a.Z,{sx:{position:"relative",whiteSpace:"pre-wrap"},children:[(0,t.jsx)(a.Z,{sx:{alignItems:"center",borderColor:u.d,borderRadius:u.n_,borderStyle:"solid",borderWidth:"1px",display:"flex",left:"-.3em",paddingBottom:".2em",paddingLeft:"1em",paddingRight:".7em",paddingTop:".4em",position:"absolute",top:"-.3em",width:"100%",zIndex:"10","& > :first-child":{flexGrow:1}},children:r}),(0,t.jsx)(a.Z,{sx:{display:"flex",paddingBottom:".4em",paddingRight:"1.7em",visibility:"hidden"},children:r})]})},O=n(2152),j=n(7750);function x(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var w="1.2em",P=function(e){var r=e.children,n=e.expandInitially,f=void 0!==n&&n,d=e.header,p=e.loading,m=void 0!==p&&p,y=e.panelProps,v=e.showHeaderSpinner,P=void 0!==v&&v,S=(0,l.useState)(f),Z=S[0],I=S[1],k=(0,l.useMemo)((function(){return Z?(0,t.jsx)(o.Z,{}):(0,t.jsx)(i.Z,{})}),[Z]),A=(0,l.useMemo)((function(){return Z?"auto":".2em"}),[Z]),C=(0,l.useMemo)((function(){return"string"===typeof d?(0,t.jsx)(j.Ac,{children:d}):d}),[d]),E=(0,l.useMemo)((function(){return P&&!Z&&m?(0,t.jsx)(O.Z,{progressProps:{style:{height:w,width:w}}}):void 0}),[Z,m,P]),M=(0,l.useMemo)((function(){return Z&&m?(0,t.jsx)(O.Z,{sx:{margin:"1em 0"}}):(0,t.jsx)(g,{children:r})}),[r,Z,m]);return(0,t.jsxs)(b,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var C="Panel",E={paper:"".concat(C,"-paper"),square:"".concat(C,"-square"),topSquare:"".concat(C,"-topSquare"),bottomSquare:"".concat(C,"-bottomSquare")},M=(0,S.ZP)(a.Z)((function(){var e;return I(e={margin:"1em",position:"relative"},"& .".concat(E.paper),{backgroundColor:u.v9,height:"100%",opacity:.8,padding:"2.1em",position:"relative",width:"100%",zIndex:10}),I(e,"& .".concat(E.square),{content:'""',position:"absolute",width:"2.1em",height:"2.1em",border:"1px",borderColor:u.lD,borderWidth:"1px",borderRadius:u.n_,borderStyle:"solid",padding:0,margin:0}),I(e,"& .".concat(E.topSquare),{top:"-.3em",left:"-.3em"}),I(e,"& .".concat(E.bottomSquare),{bottom:"-.3em",right:"-.3em"}),e})),T={paperProps:{}},D=(0,t.jsx)(Z.Z,{styles:{"*::-webkit-scrollbar":{width:".6em"},"*::-webkit-scrollbar-track":{backgroundColor:u.v9},"*::-webkit-scrollbar-thumb":{backgroundColor:u.lD,outline:"1px solid transparent",borderRadius:u.n_}}}),R=function(e){var r=e.children,n=e.classes,o=e.className,i=e.paperProps,c=(void 0===i?T.paperProps:i).className,l=e.sx,u=A(e.paperProps,["className"]),s=A(e,["children","classes","className","paperProps","sx"]);return(0,t.jsxs)(M,k({classes:n,className:o,sx:l},s,{children:[D,(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.topSquare)}),(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.bottomSquare)}),(0,t.jsx)(a.Z,k({},u,{className:"".concat(E.paper," ").concat(c),children:r}))]}))};R.defaultProps=T;var W=R,L=(0,S.ZP)(a.Z)({alignItems:"center",display:"flex",flexDirection:"row",marginBottom:"1em",width:"100%","& > :first-child":{flexGrow:1},"& > :not(:first-child, :last-child)":{marginRight:".3em"}})},2152:function(e,r,n){var t=n(5893),o=n(7357),i=n(2346),c=n(6489),a=n(7169);function l(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={progressProps:{}},d=function(e){var r=e.mt,n=void 0===r?"3em":r,d=e.progressProps,p=void 0===d?f.progressProps:d,b=e.sx,m=s(e,["mt","progressProps","sx"]);return(0,t.jsx)(o.Z,u({},m,{sx:u(l({alignItems:"center",display:"flex",justifyContent:"center",marginTop:n},"& .".concat(i.Z.root),{color:a.lD}),b),children:(0,t.jsx)(c.Z,u({},p,{variant:"indeterminate"}))}))};d.defaultProps=f,r.Z=d},7750:function(e,r,n){n.d(r,{Ac:function(){return b},z:function(){return O},Q0:function(){return I},$_:function(){return E},PJ:function(){return N},KI:function(){return w}});var t=n(5893),o=n(7294),i=n(5861),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s="BodyText",f={inheritColour:!1,inline:!1,inverted:!1,monospaced:!1,selected:!0,text:null},d={inheritColour:"".concat(s,"-inherit-colour"),inverted:"".concat(s,"-inverted"),monospaced:"".concat(s,"-monospaced"),selected:"".concat(s,"-selected"),unselected:"".concat(s,"-unselected")},p=function(e){var r,n=e.children,s=e.className,p=e.inheritColour,b=void 0===p?f.inheritColour:p,m=e.inline,y=void 0===m?f.inline:m,v=e.inverted,g=void 0===v?f.inverted:v,h=e.monospaced,O=void 0===h?f.monospaced:h,j=e.selected,x=void 0===j?f.selected:j,w=e.sx,P=e.text,S=void 0===P?f.text:P,Z=u(e,["children","className","inheritColour","inline","inverted","monospaced","selected","sx","text"]),I=(0,o.useMemo)((function(){return y?"inline":void 0}),[y]),k=(0,o.useMemo)((function(){return function(e){var r=e.isInheritColour,n=e.isInvert,t=e.isMonospace,o=e.isSelect,i=[];return r?i.push(d.inheritColour):n?i.push(d.inverted):o?i.push(d.selected):i.push(d.unselected),t&&i.push(d.monospaced),i.join(" ")}({isInheritColour:b,isInvert:g,isMonospace:O,isSelect:x})}),[b,g,O,x]),A=(0,o.useMemo)((function(){return null!==S&&void 0!==S?S:n}),[n,S]);return(0,t.jsx)(i.Z,l({className:"".concat(k," ").concat(s),variant:"subtitle1"},Z,{sx:l((r={display:I},a(r,"&.".concat(d.inverted),{color:c.E5}),a(r,"&.".concat(d.monospaced),{fontFamily:"Source Code Pro",fontWeight:400}),a(r,"&.".concat(d.selected),{color:c.lD}),a(r,"&.".concat(d.unselected),{color:c.UZ}),r),w),children:A}))};p.defaultProps=f;var b=p,m=n(1496);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,m.ZP)(i.Z)({color:c.lD}),h=function(e){var r=e.children,n=e.text,i=v(e,["children","text"]),c=(0,o.useMemo)((function(){return null!==r&&void 0!==r?r:n}),[r,n]);return(0,t.jsx)(g,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var I=function(e){var r=e.sx,n=Z(e,["sx"]);return(0,t.jsx)(w,S({},n,{monospaced:!0,sx:S({display:"inline",padding:".1rem .3rem"},r)}))};function k(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function A(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(e){var r=e.sx,n=C(e,["sx"]);return(0,t.jsx)(w,A({monospaced:!0,sx:A({alignItems:"center",display:"flex",height:"100%"},r)},n))},M=n(2992),T=n(4690),D=n(1706);function R(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function W(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n1?n-1:0),o=1;oe.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n1&&void 0!==arguments[1]?arguments[1]:{},n=r.refreshInterval,i=void 0===n?5e3:n,c=r.onSuccess,a=(0,t.ZP)(e,o.Z,{refreshInterval:i,onSuccess:c}),l=a.data,u=a.error;return{data:l,isLoading:!u&&!l,error:u}}},1770:function(e,r){r.Z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.onRequestError,t=void 0===n?function(e){return{children:"Incomplete request; reason: ".concat(e,"."),type:"error"}}:n,o=r.onResponseErrorAppend,i=r.onSetupError,c=void 0===i?function(e){return{children:"Failed to setup request; reason: ".concat(e,"."),type:"error"}}:i,a=r.onResponseError,l=void 0===a?function(e){var r,n,t=e.status,i=e.statusText;500===t?r={children:"The API encountered a problem: ".concat(t," (").concat(i,")! Please check its systemd service logs."),type:"error"}:r=null!==(n=null===o||void 0===o?void 0:o.call(null,e))&&void 0!==n?n:{children:"API responded with ".concat(t," (").concat(i,")."),type:"warning"};return r}:a,u=e.request,s=e.response,f=e.message;return s?l(s):u?t(u):c(f)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/62-532ed713980da8db.js b/striker-ui/out/_next/static/chunks/62-532ed713980da8db.js deleted file mode 100644 index ad6fab6e..00000000 --- a/striker-ui/out/_next/static/chunks/62-532ed713980da8db.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62],{9297:function(e,r,n){n.d(r,{C:function(){return d},k:function(){return v}});var t=n(5893),o=n(1458),i=n(1496),c=n(7169),a=(0,i.ZP)(o.Z)({height:"1em",borderRadius:c.n_,backgroundColor:c.v9});function l(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var u="AllocationBar",s={barOk:"".concat(u,"-barOk"),barWarning:"".concat(u,"-barWarning"),barAlert:"".concat(u,"-barAlert"),underline:"".concat(u,"-underline")},f=(0,i.ZP)("div")((function(){var e;return l(e={},"& .".concat(s.barOk),{backgroundColor:c.Ej}),l(e,"& .".concat(s.barWarning),{backgroundColor:c.Wd}),l(e,"& .".concat(s.barAlert),{backgroundColor:c.hM}),l(e,"& .".concat(s.underline),{borderRadius:c.n_}),e})),d=function(e){var r=e.allocated;return(0,t.jsxs)(f,{children:[(0,t.jsx)(a,{classes:{bar:r>70?r>90?s.barAlert:s.barWarning:s.barOk},variant:"determinate",value:r}),(0,t.jsx)(o.Z,{className:s.underline,variant:"determinate",value:0})]})};function p(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var b="ProgressBar",m={barOk:"".concat(b,"-barOk"),barInProgress:"".concat(b,"-barInProgress"),underline:"".concat(b,"-underline")},y=(0,i.ZP)("div")((function(){var e;return p(e={},"& .".concat(m.barOk),{backgroundColor:c.Ej}),p(e,"& .".concat(m.barInProgress),{backgroundColor:c.Wd}),p(e,"& .".concat(m.underline),{borderRadius:c.n_}),e})),v=function(e){var r=e.progressPercentage;return(0,t.jsxs)(y,{children:[(0,t.jsx)(a,{classes:{bar:r<100?m.barInProgress:m.barOk},variant:"determinate",value:r}),(0,t.jsx)(o.Z,{className:m.underline,variant:"determinate",value:0})]})}},2349:function(e,r,n){var t=n(5893),o=n(8128),i=n(3631),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(e){var r=e.sx,n=u(e,["sx"]);return(0,t.jsx)(o.Z,l({},n,{sx:l(a({color:c.s7},"&.".concat(i.Z.checked),{color:c.s7}),r)}))}},582:function(e,r,n){var t=n(1496),o=n(7720),i=n(7169),c=(0,t.ZP)(o.Z)({backgroundColor:i.d});r.Z=c},4690:function(e,r,n){var t=n(5893),o=n(7357),i=n(7294);function c(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u={columnSpacing:void 0,fullWidth:!1,growFirst:!1,row:!1,rowSpacing:void 0,lg:void 0,md:void 0,sm:void 0,spacing:"1em",xl:void 0,xs:"column"},s=function(e){var r=e.fullWidth,n=e.growFirst,c=e.lg,s=void 0===c?u.lg:c,f=e.md,d=void 0===f?u.md:f,p=e.row,b=e.sm,m=void 0===b?u.sm:b,y=e.spacing,v=void 0===y?u.spacing:y,g=e.sx,h=e.xl,O=void 0===h?u.xl:h,j=e.xs,x=void 0===j?u.xs:j,w=e.columnSpacing,P=void 0===w?v:w,S=e.rowSpacing,Z=void 0===S?v:S,I=l(e,["fullWidth","growFirst","lg","md","row","sm","spacing","sx","xl","xs","columnSpacing","rowSpacing"]),k=(0,i.useMemo)((function(){return p?"row":x}),[x,p]),A=(0,i.useMemo)((function(){return m||k}),[m,k]),C=(0,i.useMemo)((function(){return d||A}),[d,A]),E=(0,i.useMemo)((function(){return s||C}),[s,C]),M=(0,i.useMemo)((function(){return O||E}),[O,E]),T=(0,i.useMemo)((function(){return{column:{alignItems:"normal",marginLeft:0,marginTop:P},row:{alignItems:"center",marginLeft:Z,marginTop:0}}}),[P,Z]),R=(0,i.useMemo)((function(){return n?1:void 0}),[n]),D=(0,i.useMemo)((function(){return r?"100%":void 0}),[r]);return(0,t.jsx)(o.Z,a({},I,{sx:a({alignItems:{xs:T[k].alignItems,sm:T[A].alignItems,md:T[C].alignItems,lg:T[E].alignItems,xl:T[M].alignItems},display:"flex",flexDirection:{xs:k,sm:A,md:C,lg:E,xl:M},width:D,"& > :first-child":{flexGrow:R},"& > :not(:first-child)":{marginLeft:{xs:T[k].marginLeft,sm:T[A].marginLeft,md:T[C].marginLeft,lg:T[E].marginLeft,xl:T[M].marginLeft},marginTop:{xs:T[k].marginTop,sm:T[A].marginTop,md:T[C].marginTop,lg:T[E].marginTop,xl:T[M].marginTop}}},g)}))};s.defaultProps=u,r.Z=s},1706:function(e,r,n){n.d(r,{Z:function(){return P}});var t=n(2428),o=n(5537),i=n(6761),c=n(1797),a=n(6059),l=n(1370),u=n(2186),s=n(5697),f=n(1496),d=n(4799),p=n(7021),b=n(7294),m=n(7169);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,f.ZP)(d.Z)(y({borderRadius:m.n_,backgroundColor:m.s7,color:m.E5,"&:hover":{backgroundColor:"".concat(m.s7,"F0")}},"&.".concat(p.Z.disabled),{backgroundColor:m.rr})),h=(0,f.ZP)(g)({backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}}),O=(0,f.ZP)(d.Z)({color:m.s7}),j={add:{none:{iconType:t.Z}},close:{none:{iconType:o.Z}},delete:{none:{iconType:i.Z}},edit:{false:{iconType:c.Z},true:{iconType:a.Z,iconProps:{sx:{color:m.Ej}}}},play:{none:{iconType:l.Z}},visibility:{false:{iconType:u.Z},true:{iconType:s.Z}}},x={contained:g,normal:O,redcontained:h},w=function(e){var r=e.children,n=e.defaultIcon,t=e.iconProps,o=e.mapPreset,i=e.mapToIcon,c=e.state,a=void 0===c?"none":c,l=e.variant,u=void 0===l?"contained":l,s=v(e,["children","defaultIcon","iconProps","mapPreset","mapToIcon","state","variant"]),f=(0,b.useMemo)((function(){return null!==i&&void 0!==i?i:o&&j[o]}),[i,o]),d=(0,b.useMemo)((function(){var e;if(f){var o,i=null!==(o=f[a])&&void 0!==o?o:{iconType:n},c=i.iconType,l=i.iconProps;c&&(e=(0,b.createElement)(c,function(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(l){a=!0,o=l}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return f(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y="1.7em",v={iconProps:{},indicatorProps:{},indicatorTextProps:{},initialIndicatorValue:!1},g="24%",h="50%",O=".1rem",j="0rem",x=(0,i.forwardRef)((function(e,r){var n=e.icon,f=e.iconProps,d=(void 0===f?v.iconProps:f).sx,x=e.indicatorProps,w=(void 0===x?v.indicatorProps:x).sx,P=e.indicatorTextProps,S=(void 0===P?v.indicatorTextProps:P).sx,Z=e.initialIndicatorValue,I=void 0===Z?v.initialIndicatorValue:Z,k=e.sx,A=b(e.iconProps,["sx"]),C=b(e.indicatorProps,["sx"]),E=b(e.indicatorTextProps,["sx"]),M=(0,u.Z)().protect,T=m((0,s.Z)(I,M),2),R=T[0],D=T[1],W=(0,i.useCallback)((function(e,r,n){return(0,t.jsx)(a.Z,p({row:!0},C,{sx:p({backgroundColor:c.Ej,borderColor:c.E5,borderRadius:"50%",borderStyle:"solid",borderWidth:".1em",bottom:n,boxSizing:"content-box",height:0,justifyContent:"center",paddingBottom:r,position:"absolute",right:n,width:r},w),children:e}))}),[w,C]),L=(0,i.useCallback)((function(e){return(0,t.jsx)(l.Ac,p({},E,{sx:p({fontWeight:"500",paddingTop:"100%"},S),children:e>9?"".concat(9,"+"):e}))}),[S,E]),N=(0,i.useMemo)((function(){var e;if(R){var r,n=g,t=O;Number.isFinite(R)&&(r=L(R),n=h,t=j),e=W(r,n,t)}return e}),[W,L,R]);return(0,i.useImperativeHandle)(r,(function(){return{indicate:function(e){return D(e)}}}),[D]),(0,t.jsxs)(o.Z,{sx:p({height:y,width:y,position:"relative"},k),children:[(0,i.createElement)(n,p({},A,{sx:p({height:"100%",width:"100%"},d)})),N]})}));x.defaultProps=v,x.displayName="IconWithIndicator",r.Z=x},2444:function(e,r,n){var t=n(5893),o=n(8333),i=n(7294),c=n(2029),a=n(9297),l=n(4690),u=n(6125),s=n(1905),f=n(7750),d=n(2749);function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,i=[],c=!0,a=!1;try{for(n=n.call(e);!(c=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);c=!0);}catch(l){a=!0,o=l}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e,r)||I(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||I(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,r){if(e){if("string"===typeof e)return j(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,r):void 0}}var k=(0,o.forwardRef)((function(e){var r=e.allowCheckAll,n=void 0!==r&&r,j=e.allowEdit,x=void 0!==j&&j,I=e.allowItemButton,k=void 0!==I&&I,A=e.disableDelete,C=void 0!==A&&A,E=e.edit,M=void 0!==E&&E,T=e.flexBoxProps,R=e.getListCheckboxProps,D=e.getListItemCheckboxProps,W=e.header,L=e.headerSpacing,N=void 0===L?".3em":L,q=e.insertHeader,_=void 0===q||q,F=e.listEmpty,B=e.listItemIconMinWidth,U=void 0===B?"56px":B,H=e.listItemKeyPrefix,z=void 0===H?(0,b.Z)():H,$=e.listItemProps,J=(void 0===$?{}:$).sx,G=e.listItems,V=e.listProps,X=(void 0===V?{}:V).sx,Y=e.onAdd,K=e.onDelete,Q=e.onEdit,ee=e.onAllCheckboxChange,re=e.onItemCheckboxChange,ne=e.onItemClick,te=e.renderListItem,oe=void 0===te?function(e){return(0,t.jsx)(O.Ac,{children:e})}:te,ie=e.renderListItemCheckboxState,ce=e.scroll,ae=void 0!==ce&&ce,le=e.allowAddItem,ue=void 0===le?x:le,se=e.allowCheckItem,fe=void 0===se?x:se,de=e.allowDelete,pe=void 0===de?x:de,be=e.allowEditItem,me=void 0===be?x:be,ye=P(e.listItemProps,["sx"]),ve=P(e.listProps,["sx"]),ge=(0,o.useMemo)((function(){return"calc(".concat(U," - ").concat(N,")")}),[N,U]),he=(0,o.useMemo)((function(){return ue?(0,t.jsx)(h.Z,{onClick:Y,size:"small",children:(0,t.jsx)(i.Z,{})}):void 0}),[ue,Y]),Oe=(0,o.useMemo)((function(){return M&&pe?(0,t.jsx)(h.Z,{disabled:C,onClick:K,size:"small",sx:{backgroundColor:m.hM,color:m.s7,"&:hover":{backgroundColor:"".concat(m.hM,"F0")}},children:(0,t.jsx)(c.Z,{})}):void 0}),[C,pe,M,K]),je=(0,o.useMemo)((function(){if(me)return(0,t.jsx)(h.Z,{onClick:Q,size:"small",children:M?(0,t.jsx)(a.Z,{sx:{color:m.Ej}}):(0,t.jsx)(l.Z,{})})}),[me,M,Q]),xe=(0,o.useMemo)((function(){var e;return M&&fe&&(e=n?(0,t.jsx)(u.Z,{sx:{minWidth:ge},children:(0,t.jsx)(y.Z,w({edge:"start",onChange:ee},null===R||void 0===R?void 0:R.call(null)))}):(0,t.jsx)(v.Z,{sx:{minWidth:ge}})),e}),[ge,R,n,fe,M,ee]),we=(0,o.useMemo)((function(){var e,r="undefined"===typeof W?"undefined":(e=W)&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return _&&W?(0,t.jsxs)(g.Z,{row:!0,spacing:N,sx:{height:"2.4em"},children:[xe,["boolean","string"].includes(r)?(0,t.jsxs)(t.Fragment,{children:["string"===r&&(0,t.jsx)(O.Ac,{children:W}),(0,t.jsx)(v.Z,{sx:{flexGrow:1}})]}):W,Oe,je,he]}):W}),[he,xe,Oe,je,W,N,_]),Pe=(0,o.useMemo)((function(){return"string"===typeof F?(0,t.jsx)(O.Ac,{align:"center",children:F}):F}),[F]),Se=(0,o.useCallback)((function(e,r,n){return M&&fe?(0,t.jsx)(s.Z,{sx:{minWidth:U},children:(0,t.jsx)(y.Z,w({checked:r,edge:"start",onChange:function(){for(var r=arguments.length,n=new Array(r),t=0;t0&&(e=r.map((function(e){var r=S(e,2),n=r[0],i=r[1],c=oe(n,i);return(0,o.createElement)(f.ZP,w({},ye,{key:"".concat(z,"-").concat(n),sx:w({paddingLeft:0,paddingRight:0},J),children:[Se(n,null===ie||void 0===ie?void 0:ie.call(null,n,i),null===D||void 0===D?void 0:D.call(null,n,i)),k?(0,t.jsx)(d.Z,{onClick:function(){for(var e=arguments.length,r=new Array(e),t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var b=function(e){var r=e.headerMarginOffset,n=void 0===r?".3em":r,o=e.ml,i=e.mv,c=void 0===i?"1.4em":i,s=e.sx,f=e.mb,b=void 0===f?c:f,m=e.mt,y=void 0===m?c:m,v=p(e,["headerMarginOffset","ml","mv","sx","mb","mt"]),g=(0,l.useMemo)((function(){return o?"calc(".concat(o," + ").concat(n,")"):n}),[n,o]),h=(0,l.useMemo)((function(){var e="number"===typeof y?"".concat(y,"px"):y;return"calc(".concat(e," + ").concat(n,")")}),[n,y]),O=(0,l.useMemo)((function(){return d({borderWidth:"1px",borderRadius:u.n_,borderStyle:"solid",borderColor:u.d,paddingBottom:0,position:"relative"},s)}),[s]);return(0,t.jsx)(a.Z,d({mb:b,ml:g,mt:h},v,{sx:O}))};function m(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function y(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=function(e){var r=e.sx,n=v(e,["sx"]),o=(0,l.useMemo)((function(){return y({position:"relative",zIndex:20},r)}),[r]);return(0,t.jsx)(a.Z,y({padding:".3em .7em"},n,{sx:o}))},h=function(e){var r=e.children;return(0,t.jsxs)(a.Z,{sx:{position:"relative",whiteSpace:"pre-wrap"},children:[(0,t.jsx)(a.Z,{sx:{alignItems:"center",borderColor:u.d,borderRadius:u.n_,borderStyle:"solid",borderWidth:"1px",display:"flex",left:"-.3em",paddingBottom:".2em",paddingLeft:"1em",paddingRight:".7em",paddingTop:".4em",position:"absolute",top:"-.3em",width:"100%",zIndex:"10","& > :first-child":{flexGrow:1}},children:r}),(0,t.jsx)(a.Z,{sx:{display:"flex",paddingBottom:".4em",paddingRight:"1.7em",visibility:"hidden"},children:r})]})},O=n(2152),j=n(7750);function x(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var w="1.2em",P=function(e){var r=e.children,n=e.expandInitially,f=void 0!==n&&n,d=e.header,p=e.loading,m=void 0!==p&&p,y=e.panelProps,v=e.showHeaderSpinner,P=void 0!==v&&v,S=(0,l.useState)(f),Z=S[0],I=S[1],k=(0,l.useMemo)((function(){return Z?(0,t.jsx)(o.Z,{}):(0,t.jsx)(i.Z,{})}),[Z]),A=(0,l.useMemo)((function(){return Z?"auto":".2em"}),[Z]),C=(0,l.useMemo)((function(){return"string"===typeof d?(0,t.jsx)(j.Ac,{children:d}):d}),[d]),E=(0,l.useMemo)((function(){return P&&!Z&&m?(0,t.jsx)(O.Z,{progressProps:{style:{height:w,width:w}}}):void 0}),[Z,m,P]),M=(0,l.useMemo)((function(){return Z&&m?(0,t.jsx)(O.Z,{sx:{margin:"1em 0"}}):(0,t.jsx)(g,{children:r})}),[r,Z,m]);return(0,t.jsxs)(b,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var C="Panel",E={paper:"".concat(C,"-paper"),square:"".concat(C,"-square"),topSquare:"".concat(C,"-topSquare"),bottomSquare:"".concat(C,"-bottomSquare")},M=(0,S.ZP)(a.Z)((function(){var e;return I(e={margin:"1em",position:"relative"},"& .".concat(E.paper),{backgroundColor:u.v9,height:"100%",opacity:.8,padding:"2.1em",position:"relative",width:"100%",zIndex:10}),I(e,"& .".concat(E.square),{content:'""',position:"absolute",width:"2.1em",height:"2.1em",border:"1px",borderColor:u.lD,borderWidth:"1px",borderRadius:u.n_,borderStyle:"solid",padding:0,margin:0}),I(e,"& .".concat(E.topSquare),{top:"-.3em",left:"-.3em"}),I(e,"& .".concat(E.bottomSquare),{bottom:"-.3em",right:"-.3em"}),e})),T={paperProps:{}},R=(0,t.jsx)(Z.Z,{styles:{"*::-webkit-scrollbar":{width:".6em"},"*::-webkit-scrollbar-track":{backgroundColor:u.v9},"*::-webkit-scrollbar-thumb":{backgroundColor:u.lD,outline:"1px solid transparent",borderRadius:u.n_}}}),D=function(e){var r=e.children,n=e.classes,o=e.className,i=e.paperProps,c=(void 0===i?T.paperProps:i).className,l=e.sx,u=A(e.paperProps,["className"]),s=A(e,["children","classes","className","paperProps","sx"]);return(0,t.jsxs)(M,k({classes:n,className:o,sx:l},s,{children:[R,(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.topSquare)}),(0,t.jsx)(a.Z,{className:"".concat(E.square," ").concat(E.bottomSquare)}),(0,t.jsx)(a.Z,k({},u,{className:"".concat(E.paper," ").concat(c),children:r}))]}))};D.defaultProps=T;var W=D,L=(0,S.ZP)(a.Z)({alignItems:"center",display:"flex",flexDirection:"row",marginBottom:"1em",width:"100%","& > :first-child":{flexGrow:1},"& > :not(:first-child, :last-child)":{marginRight:".3em"}})},2152:function(e,r,n){var t=n(5893),o=n(7357),i=n(2346),c=n(6489),a=n(7169);function l(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f={progressProps:{}},d=function(e){var r=e.mt,n=void 0===r?"3em":r,d=e.progressProps,p=void 0===d?f.progressProps:d,b=e.sx,m=s(e,["mt","progressProps","sx"]);return(0,t.jsx)(o.Z,u({},m,{sx:u(l({alignItems:"center",display:"flex",justifyContent:"center",marginTop:n},"& .".concat(i.Z.root),{color:a.lD}),b),children:(0,t.jsx)(c.Z,u({},p,{variant:"indeterminate"}))}))};d.defaultProps=f,r.Z=d},7750:function(e,r,n){n.d(r,{Ac:function(){return b},z:function(){return O},Q0:function(){return I},$_:function(){return E},PJ:function(){return N},KI:function(){return w}});var t=n(5893),o=n(7294),i=n(5861),c=n(7169);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s="BodyText",f={inheritColour:!1,inline:!1,inverted:!1,monospaced:!1,selected:!0,text:null},d={inheritColour:"".concat(s,"-inherit-colour"),inverted:"".concat(s,"-inverted"),monospaced:"".concat(s,"-monospaced"),selected:"".concat(s,"-selected"),unselected:"".concat(s,"-unselected")},p=function(e){var r,n=e.children,s=e.className,p=e.inheritColour,b=void 0===p?f.inheritColour:p,m=e.inline,y=void 0===m?f.inline:m,v=e.inverted,g=void 0===v?f.inverted:v,h=e.monospaced,O=void 0===h?f.monospaced:h,j=e.selected,x=void 0===j?f.selected:j,w=e.sx,P=e.text,S=void 0===P?f.text:P,Z=u(e,["children","className","inheritColour","inline","inverted","monospaced","selected","sx","text"]),I=(0,o.useMemo)((function(){return y?"inline":void 0}),[y]),k=(0,o.useMemo)((function(){return function(e){var r=e.isInheritColour,n=e.isInvert,t=e.isMonospace,o=e.isSelect,i=[];return r?i.push(d.inheritColour):n?i.push(d.inverted):o?i.push(d.selected):i.push(d.unselected),t&&i.push(d.monospaced),i.join(" ")}({isInheritColour:b,isInvert:g,isMonospace:O,isSelect:x})}),[b,g,O,x]),A=(0,o.useMemo)((function(){return null!==S&&void 0!==S?S:n}),[n,S]);return(0,t.jsx)(i.Z,l({className:"".concat(k," ").concat(s),variant:"subtitle1"},Z,{sx:l((r={display:I},a(r,"&.".concat(d.inverted),{color:c.E5}),a(r,"&.".concat(d.monospaced),{fontFamily:"Source Code Pro",fontWeight:400}),a(r,"&.".concat(d.selected),{color:c.lD}),a(r,"&.".concat(d.unselected),{color:c.UZ}),r),w),children:A}))};p.defaultProps=f;var b=p,m=n(1496);function y(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function v(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},i=Object.keys(e);for(t=0;t=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=(0,m.ZP)(i.Z)({color:c.lD}),h=function(e){var r=e.children,n=e.text,i=v(e,["children","text"]),c=(0,o.useMemo)((function(){return null!==r&&void 0!==r?r:n}),[r,n]);return(0,t.jsx)(g,function(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var I=function(e){var r=e.sx,n=Z(e,["sx"]);return(0,t.jsx)(w,S({},n,{monospaced:!0,sx:S({display:"inline",padding:".1rem .3rem"},r)}))};function k(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function A(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(e){var r=e.sx,n=C(e,["sx"]);return(0,t.jsx)(w,A({monospaced:!0,sx:A({alignItems:"center",display:"flex",height:"100%"},r)},n))},M=n(2992),T=n(4690),R=n(1706);function D(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function W(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);n1?n-1:0),o=1;oe.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var n=0,t=new Array(r);n1&&void 0!==arguments[1]?arguments[1]:{},n=r.refreshInterval,i=void 0===n?5e3:n,c=r.onSuccess,a=(0,t.ZP)(e,o.Z,{refreshInterval:i,onSuccess:c}),l=a.data,u=a.error;return{data:l,isLoading:!u&&!l,error:u}}},1770:function(e,r){r.Z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.onRequestError,t=void 0===n?function(e){return{children:"Incomplete request; reason: ".concat(e,"."),type:"error"}}:n,o=r.onResponseErrorAppend,i=r.onSetupError,c=void 0===i?function(e){return{children:"Failed to setup request; reason: ".concat(e,"."),type:"error"}}:i,a=r.onResponseError,l=void 0===a?function(e){var r,n,t=e.status,i=e.statusText;500===t?r={children:"The API encountered a problem: ".concat(t," (").concat(i,")! Please check its systemd service logs."),type:"error"}:r=null!==(n=null===o||void 0===o?void 0:o.call(null,e))&&void 0!==n?n:{children:"API responded with ".concat(t," (").concat(i,")."),type:"warning"};return r}:a,u=e.request,s=e.response,f=e.message;return s?l(s):u?t(u):c(f)}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/825-0b3ee47570192a02.js b/striker-ui/out/_next/static/chunks/825-a143aba6cb430f0f.js similarity index 99% rename from striker-ui/out/_next/static/chunks/825-0b3ee47570192a02.js rename to striker-ui/out/_next/static/chunks/825-a143aba6cb430f0f.js index afb6e203..552c60cb 100644 --- a/striker-ui/out/_next/static/chunks/825-0b3ee47570192a02.js +++ b/striker-ui/out/_next/static/chunks/825-a143aba6cb430f0f.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[825],{4594:function(e,n,t){var r=t(5893),o=t(6514),i=t(5113),a=t(4656),s=t(482),l=t(2994),u=t(7357),c=t(9890),p=t(7169),d=t(1363),f=t(6284);function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var g=function(e){return(0,r.jsx)(o.Z,{in:!0,children:(0,r.jsx)(i.Z,m({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,o=e.label,i=e.messageBoxProps,h=e.renderInput,b=e.sx,y=x(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),j=m({paper:{sx:{backgroundColor:p.lD}}},n),S=null!==h&&void 0!==h?h:function(e){var n=e.fullWidth,i=e.InputProps,a=e.InputLabelProps,s=e.inputProps,l={formControlProps:{fullWidth:n,ref:i.ref},inputLabelProps:a,inputProps:{className:i.className,endAdornment:i.endAdornment,inputProps:s,startAdornment:i.startAdornment},label:o};return null===t||void 0===t||t.call(null,l,e),(0,r.jsx)(f.Z,m({},l))},U=m(v({},"& .".concat(a.Z.root," .").concat(s.Z.endAdornment),v({right:"7px"},"& .".concat(l.Z.root),{color:p.s7})),b);return(0,r.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(c.Z,m({PaperComponent:g},y,{componentsProps:j,renderInput:S,sx:U})),(0,r.jsx)(d.Z,m({},i))]})}},5521:function(e,n,t){t.d(n,{Z:function(){return E}});var r=t(5893),o=t(1113),i=t(1496),a=t(2293),s=t(7357),l=t(2992),u=t(4799),c=t(7294),p=t(7169),d=t(4433),f=t(9029),v=t(7533),m=t(8462),x=t(7212),g=t(8619),h=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],b={width:"40em",height:"40em"},y=t(4390),j=t(582),S=t(4690),U=t(1770),I=t(7750),P=t(1081);function O(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(n).concat(e)]}),[t]),i=(0,c.useCallback)((function(){return o("user")}),[o]);return(0,c.useEffect)((function(){if(e){var n=document.cookie.split(/\s*;\s*/);r(n.reduce((function(e,n){var t,r=D(n.split("=",2),2),o=r[0],i=r[1],a=decodeURIComponent(i);if(a.startsWith("j:"))try{t=JSON.parse(a.substring(2))}catch(s){t=i}else t=i;return e[o]=t,e}),{}))}}),[e]),{cookieJar:t,getCookie:o,getSessionUser:i}};function w(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function C(e){for(var n=1;n0)},ref:n})]})}},4427:function(e,n,t){var r=t(5893),o=t(2429),i=t(9309),a=t(7169);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n :first-child":{flexGrow:1},"& > :not(:last-child)":{marginRight:".5em"}},"&:hover\n .".concat(y.Z.root,"\n .").concat(j.Z.root,"\n .").concat(j.Z.notchedOutline),{borderColor:p.s7}),children:[(0,r.jsx)(b.Z,P({id:n,label:t},i)),(0,r.jsx)(U.Z,P({formControlProps:{fullWidth:!1},id:"".concat(n,"-nested-select"),selectItems:u},d))]}),(0,r.jsx)(S.Z,P({},l))]})};D.defaultProps=O;var Z=D,w=t(3679),C=t(3640),M=t(6727),k=t(1184),A=t(9),G=t(192),B=t(7750);function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function E(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return z(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var V={inputLabelProps:{},isAllowTextInput:!1,labelId:"",messageBoxProps:{},sliderProps:{}},W={root:"".concat("SliderInputLabelDecorator","-root")},R=function(e){var n=e.isFocused,t=e.label,o=p.s7,i="solid",s="0",l="0 .6em 0 .4em",u="1px 0 0 0",c="0.3";return n&&(s="-1px",l="0 1em 0 1em",u="2px 0 0 0",c="1"),(0,r.jsxs)(a.Z,{className:W.root,sx:{display:"flex",flexDirection:"row",position:"absolute",top:s,width:"calc(100% - 6px)","> :last-child":{flexGrow:1}},children:[(0,r.jsx)(a.Z,{sx:{borderColor:o,borderStyle:i,borderWidth:u,content:'""',opacity:c,width:".6em"}}),(0,r.jsx)(B.Ac,{sx:{fontSize:".75em",margin:l,visibility:"hidden"},text:t}),(0,r.jsx)(a.Z,{sx:{borderColor:o,borderStyle:i,borderWidth:u,content:'""',opacity:c}})]})},_=function(e,n){var t=Number.parseFloat(e);return Number.isNaN(t)?n:t},Q=function(e){return F(e,Array)?e.map((function(e){return String(e)})):[String(e)]},q=function(e){var n,t=e.messageBoxProps,i=void 0===t?V.messageBoxProps:t,s=e.isAllowTextInput,l=void 0===s?V.isAllowTextInput:s,u=e.label,c=e.labelId,d=void 0===c?V.labelId:c,f=e.inputLabelProps,v=void 0===f?V.inputLabelProps:f,m=e.sliderProps,x=void 0===m?V.sliderProps:m,g=e.value,h=x.max,b=x.min,y=x.onChange,U=x.sx,I=x.valueLabelDisplay,P=g,O=(0,o.useState)({range:Q(g)}),D=O[0],Z=O[1],w=(0,o.useState)(!1),B=w[0],z=w[1],q=function(){z(!1)},H=function(){z(!0)},J=function(){P=function(e,n){return F(n,Array)?e.map((function(e,t){return _(e,n[t])})):_(e[0],n)}(D.range,P),null===y||void 0===y||y.call(null,P)};return(0,r.jsxs)(C.Z,{sx:{display:"flex",flexDirection:"column","&:hover":(n={},T(n,"& .".concat(W.root," div"),{opacity:1}),T(n,"& .".concat(j.Z.notchedOutline),{borderColor:p.s7}),n)},children:[(0,r.jsx)(G.Z,N({className:B?M.Z.focused:"",id:d,shrink:!0},v,{children:u})),R({isFocused:B,label:u}),(0,r.jsxs)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row","> :first-child":{flexGrow:1}},children:[(0,r.jsx)(k.ZP,{"aria-labelledby":d,max:h,min:b,onBlur:q,onChange:function(e,n){Z({range:Q(n)}),null===y||void 0===y||y.call(null,n)},onFocus:H,sx:N(T({color:p.s7,marginLeft:"1em",marginRight:"1em"},"& .".concat(k.TW.thumb),{borderRadius:p.n_,transform:"translate(-50%, -50%) rotate(45deg)"}),U),value:P,valueLabelDisplay:I}),D.range.map((function(e,n){return function(e){var n=e.key,t=e.isFocused,o=L(e,["key","isFocused"]);return(0,r.jsx)(A.Z,N({key:n,className:t?j.Z.focused:"",type:"number"},o))}({key:"slider-nested-text-input-".concat(n),inputProps:{max:h,min:b},isFocused:B,onBlur:q,onChange:function(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function oe(e,n){return $(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==t.return||t.return()}finally{if(s)throw o}}return i}}(e,n)||se(e,n)||ne()}function ie(e){return $(e)||ee(e)||se(e,i)||ne()}function ae(e){return function(e){if(Array.isArray(e))return K(e)}(e)||ee(e)||se(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,n){if(e){if("string"===typeof e)return K(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?K(e,n):void 0}}var le,ue,ce=BigInt(0),pe=[{value:"B"},{value:"KiB"},{value:"MiB"},{value:"GiB"},{value:"TiB"}],de="GiB",fe=BigInt(65536),ve=BigInt(104857600),me={backgroundColor:p.Ej,color:p.lD,"&:hover":{backgroundColor:p.Ej}},xe=function(e,n){var t=n.onButtonClick;return(0,r.jsx)(m.Z,{disabled:void 0===t,onClick:t,sx:{minWidth:"unset",whiteSpace:"nowrap"},children:"Max: ".concat(e)})},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.endAdornment,t=e.mainLabel,o=e.subLabel;return(0,r.jsxs)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row",width:"100%","& > :first-child":{flexGrow:1}},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:[t&&(0,r.jsx)(B.Ac,{inverted:!0,text:t}),o&&(0,r.jsx)(B.Ac,{inverted:!0,text:o})]}),n]})},he=function(e,n,t,r,o,i,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=s.includeAnvilUUIDs,u=void 0===l?[]:l,c=s.includeFileUUIDs,p=void 0===c?[]:c,d=s.includeStorageGroupUUIDs,f=void 0===d?[]:d,v=function(){return!0},m=function(){return!0},x=function(){return!0};u.length>0&&(v=function(e){return u.includes(e)}),p.length>0&&(m=function(e){return p.includes(e)}),f.length>0&&(x=function(e){return f.includes(e)});var g={},h=i.reduce((function(e,n,t){var r,i=null!==(r=o[t])&&void 0!==r?r:ce;return e.all+=i,""===n||(void 0===e[n]&&(e[n]=ce),e[n]+=i),e}),{all:ce}),b=e.reduce((function(e,s){var l=s.anvilUUID;if(v(l)){var u,c=s.anvilTotalCPUCores,p=s.anvilTotalAvailableMemory,d=s.files,f=s.fileUUIDs,b=s.storageGroups,y=[],j=ce,S=ce;if(b.forEach((function(e){var n=e.storageGroupUUID,t=e.storageGroupFree;x(n)&&(y.push(n),S+=t,t>j&&(j=t))})),[function(){return b.length>0},function(){return t<=c},function(){return r<=p},function(){return i.every((function(e,t){var r,i=null!==(r=o[t])&&void 0!==r?r:ce,a=!0,s=i<=j;return""!==e&&(a=y.includes(e),s=i<=n[e].storageGroupFree),a&&s}))},function(){return Object.entries(h).every((function(e){var t=oe(e,2),r=t[0],o=t[1];return"all"===r?o<=S:o<=n[r].storageGroupFree}))},function(){return a.every((function(e){return""===e||f.includes(e)}))}].every((function(e){return e()})))e.anvils.push(s),e.anvilUUIDs.push(l),e.maxCPUCores=Math.max(c,e.maxCPUCores),p>e.maxMemory&&(e.maxMemory=p),d.forEach((function(e){var n=e.fileUUID;m(n)&&(g[n]=!0)})),(u=e.storageGroupUUIDs).push.apply(u,ae(y)),e.maxVirtualDiskSizes.fill(j)}return e}),{anvils:[],anvilUUIDs:[],fileUUIDs:[],maxCPUCores:0,maxMemory:ce,maxVirtualDiskSizes:i.map((function(){return ce})),storageGroupUUIDs:[]});return b.fileUUIDs=Object.keys(g),i.forEach((function(e,t){""!==e&&(b.maxVirtualDiskSizes[t]=n[e].storageGroupFree)})),b},be=function(e){return e.filter((function(e){return""!==e}))},ye=function(e){return{fromUnit:"B",onSuccess:{string:e},precision:0,toUnit:"ibyte"}};(0,x.Bh)(fe,ye((function(e,n){le="".concat(e," ").concat(n)}))),(0,x.Bh)(ve,ye((function(e,n){ue="".concat(e," ").concat(n)})));var je=function(e){var n=e.dialogProps.open,t=e.onClose,i=(0,o.useState)([]),y=i[0],j=i[1],S=(0,o.useState)({}),I=S[0],P=S[1],O=(0,o.useState)({}),D=O[0],C=O[1],M=(0,o.useState)({}),k=M[0],A=M[1],G=(0,o.useState)({}),z=G[0],T=G[1],F=(0,o.useState)([]),N=F[0],L=F[1],E=(0,o.useState)([]),V=E[0],W=E[1],R=(0,o.useState)([]),_=R[0],Q=R[1],q=(0,o.useState)([]),K=q[0],$=q[1],ee=(0,o.useState)(""),ne=ee[0],se=ee[1],ye=(0,o.useState)(),je=ye[0],Se=ye[1],Ue=(0,o.useState)(1),Ie=Ue[0],Pe=Ue[1],Oe=(0,o.useState)(0),De=Oe[0],Ze=Oe[1],we=(0,o.useState)(),Ce=we[0],Me=we[1],ke=(0,o.useState)(ce),Ae=ke[0],Ge=ke[1],Be=(0,o.useState)(ce),ze=Be[0],Te=Be[1],Fe=(0,o.useState)(),Ne=Fe[0],Le=Fe[1],Ee=(0,o.useState)("0"),Ve=Ee[0],We=Ee[1],Re=(0,o.useState)(""),_e=Re[0],Qe=Re[1],qe=(0,o.useState)(de),He=qe[0],Je=qe[1],Ye=(0,o.useState)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.existingVirtualDisks,t=void 0===n?{stateIds:[],inputMaxes:[],inputSizeMessages:[],inputSizes:[],inputStorageGroupUUIDMessages:[],inputStorageGroupUUIDs:[],inputUnits:[],maxes:[],sizes:[]}:n,r=e.stateId,o=void 0===r?(0,c.Z)():r,i=e.inputMax,a=void 0===i?"0":i,s=e.inputSize,l=void 0===s?"":s,u=e.inputSizeMessage,p=void 0===u?void 0:u,d=e.inputStorageGroupUUID,f=void 0===d?"":d,v=e.inputStorageGroupUUIDMessage,m=void 0===v?void 0:v,x=e.inputUnit,g=void 0===x?de:x,h=e.max,b=void 0===h?ce:h,y=e.setVirtualDisks,j=e.size,S=void 0===j?ce:j,U=t.stateIds,I=t.inputMaxes,P=t.inputSizeMessages,O=t.inputSizes,D=t.inputStorageGroupUUIDMessages,Z=t.inputStorageGroupUUIDs,w=t.inputUnits,C=t.maxes,M=t.sizes;return U.push(o),I.push(a),P.push(p),O.push(l),D.push(m),Z.push(f),w.push(g),C.push(b),M.push(S),null===y||void 0===y||y.call(null,te({},t)),t}()),Ke=Ye[0],$e=Ye[1],Xe=(0,o.useState)(""),en=Xe[0],nn=Xe[1],tn=(0,o.useState)(),rn=tn[0],on=tn[1],an=(0,o.useState)(""),sn=an[0],ln=an[1],un=(0,o.useState)()[0],cn=(0,o.useState)(""),pn=cn[0],dn=cn[1],fn=(0,o.useState)(),vn=fn[0],mn=fn[1],xn=(0,o.useState)(null),gn=xn[0],hn=xn[1],bn=(0,o.useState)(),yn=bn[0],jn=bn[1],Sn=(0,o.useState)([]),Un=Sn[0],In=Sn[1],Pn=(0,o.useState)([]),On=Pn[0],Dn=Pn[1],Zn=(0,o.useState)([]),wn=Zn[0],Cn=Zn[1],Mn=(0,o.useState)(!1),kn=Mn[0],An=Mn[1],Gn=(0,o.useState)(!1),Bn=Gn[0],zn=Gn[1],Tn=(0,o.useState)(!1),Fn=Tn[0],Nn=Tn[1],Ln=(0,o.useState)(0),En=Ln[0],Vn=Ln[1],Wn={serverName:{defaults:{onSuccess:function(){Se(void 0)},value:ne},tests:[{onFailure:function(){Se({text:"The server name length must be 1 to 16 characters.",type:"warning"})},test:function(e){var n=e.value.length;return n>=1&&n<=16}},{onFailure:function(){Se({text:"The server name is expected to only contain alphanumeric, hyphen, or underscore characters.",type:"warning"})},test:function(e){var n=e.value;return/^[a-zA-Z0-9_-]+$/.test(n)}},{onFailure:function(){Se({text:"This server name already exists, please choose another name.",type:"warning"})},test:function(e){var n=e.value;return void 0===k[n]}}]},cpuCores:{defaults:{max:De,min:1,onSuccess:function(){Me(void 0)},value:Ie},tests:[{onFailure:function(){Me({text:"Non available.",type:"warning"})},test:Y.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Me({text:"The number of CPU cores is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:Y.SQ}]},memory:{defaults:{displayMax:"".concat(Ve," ").concat(He),displayMin:le,max:ze,min:fe,onSuccess:function(){Le(void 0)},value:Ae},tests:[{onFailure:function(){Le({text:"Non available.",type:"warning"})},test:Y.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Le({text:"Memory is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:Y.SQ}]},installISO:{defaults:{onSuccess:function(){on(void 0)},value:en},tests:[{test:Y.HJ}]},anvil:{defaults:{onSuccess:function(){mn(void 0)},value:pn},tests:[{test:Y.HJ}]},optimizeForOS:{defaults:{onSuccess:function(){jn(void 0)},value:null===gn||void 0===gn?void 0:gn.key},tests:[{test:Y.HJ}]}};Ke.inputSizeMessages.forEach((function(e,n){Wn["vd".concat(n,"Size")]={defaults:{displayMax:"".concat(Ke.inputMaxes[n]," ").concat(Ke.inputUnits[n]),displayMin:ue,max:Ke.maxes[n],min:ve,onSuccess:function(){Ke.inputSizeMessages[n]=void 0},value:Ke.sizes[n]},onFinishBatch:function(){$e(te({},Ke))},tests:[{onFailure:function(){Ke.inputSizeMessages[n]={text:"Non available.",type:"warning"}},test:Y.X7},{onFailure:function(e){var t=e.displayMax,r=e.displayMin;Ke.inputSizeMessages[n]={text:"Virtual disk ".concat(n," size is expected to be between ").concat(r," and ").concat(t,"."),type:"warning"}},test:Y.SQ}]},Wn["vd".concat(n,"StorageGroup")]={defaults:{onSuccess:function(){Ke.inputStorageGroupUUIDMessages[n]=void 0},value:Ke.inputStorageGroupUUIDs[n]},onFinishBatch:function(){$e(te({},Ke))},tests:[{test:Y.HJ}]}}));var Rn,_n,Qn,qn,Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.allAnvils,t=void 0===n?y:n,r=e.cpuCores,o=void 0===r?Ie:r,i=e.fileUUIDs,a=void 0===i?[en,sn]:i,s=e.includeAnvilUUIDs,l=void 0===s?be([pn]):s,u=e.includeFileUUIDs,c=e.includeStorageGroupUUIDs,p=e.inputMemoryUnit,d=void 0===p?He:p,f=e.memory,v=void 0===f?Ae:f,m=e.storageGroupUUIDMapToData,g=void 0===m?z:m,h=e.virtualDisks,b=void 0===h?Ke:h,j=he(t,g,o,v,b.sizes,b.inputStorageGroupUUIDs,a,{includeAnvilUUIDs:l,includeFileUUIDs:u,includeStorageGroupUUIDs:c}),S=j.anvilUUIDs,U=j.fileUUIDs,I=j.maxCPUCores,P=j.maxMemory,O=j.maxVirtualDiskSizes,D=j.storageGroupUUIDs;Ze(I),Te(P);var Z=[];b.maxes=O,b.maxes.forEach((function(e,n){(0,x.Bh)(e,{fromUnit:"B",onSuccess:{string:function(e,t){b.inputMaxes[n]=e,Z[n]="".concat(e," ").concat(t)}},toUnit:b.inputUnits[n]})})),$e(te({},b)),In(S),Dn(U),Cn(D);var w="";return(0,x.Bh)(P,{fromUnit:"B",onSuccess:{string:function(e,n){We(e),w="".concat(e," ").concat(n)}},toUnit:d}),{formattedMaxMemory:w,formattedMaxVDSizes:Z,maxCPUCores:I,maxMemory:P,maxVirtualDiskSizes:O}},Jn=(0,o.useCallback)(Hn,[]),Yn=function(){for(var e=arguments.length,n=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=e.cmValue,t=void 0===n?ce:n,r=e.cmUnit,o=void 0===r?He:r;Ge(t);var i=Hn({inputMemoryUnit:o,memory:t}),a=i.formattedMaxMemory,s=i.maxMemory;Yn({inputs:{memory:{displayMax:a,max:s,value:t}}})},$n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.value,t=void 0===n?_e:n,r=e.unit,o=void 0===r?He:r;t!==_e&&Qe(t),o!==He&&Je(o),(0,x.KY)(t,o,(function(e){return Kn({cmValue:e,cmUnit:o})}),(function(){return Kn({cmUnit:o})}))},Xn=function(e){nn(e),Hn({fileUUIDs:[e,sn]})},et=function(e){ln(e),Hn({fileUUIDs:[en,e]})},nt=function(e){var n=be([e]);dn(e),Hn({includeAnvilUUIDs:n})};return(0,o.useEffect)((function(){d.Z.get("/anvil",{params:{anvilUUIDs:"all",isForProvisionServer:!0}}).then((function(e){var n=e.data,t=function(e){var n={},t=e.reduce((function(e,t){var o=t.anvilUUID,i=t.anvilName,s=t.anvilTotalMemory,l=t.anvilTotalAllocatedMemory,u=t.anvilTotalAvailableMemory,c=t.hosts,p=t.servers,d=t.storageGroups,f=t.files,v=d.reduce((function(n,t){var a=te({},t,{anvilUUID:o,anvilName:i,storageGroupSize:BigInt(t.storageGroupSize),storageGroupFree:BigInt(t.storageGroupFree),humanizedStorageGroupFree:""});return(0,x.Bh)(t.storageGroupFree,{fromUnit:"B",onSuccess:{string:function(e,n){a.humanizedStorageGroupFree="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),n.anvilStorageGroupUUIDs.push(t.storageGroupUUID),n.anvilStorageGroups.push(a),e.storageGroups.push(a),e.storageGroupSelectItems.push({displayValue:ge({endAdornment:(0,r.jsx)(B.Ac,{inverted:!0,text:"~".concat(a.humanizedStorageGroupFree," free")}),mainLabel:t.storageGroupName,subLabel:i}),value:t.storageGroupUUID}),e.storageGroupUUIDMapToData[t.storageGroupUUID]=a,n}),{anvilStorageGroups:[],anvilStorageGroupUUIDs:[]}),m=v.anvilStorageGroups,g=v.anvilStorageGroupUUIDs,h=[];f.forEach((function(e){var t=e.fileUUID;h.push(t),n[t]=e}));var b=te({},t,{anvilTotalMemory:BigInt(s),anvilTotalAllocatedMemory:BigInt(l),anvilTotalAvailableMemory:BigInt(u),humanizedAnvilTotalAvailableMemory:"",hosts:c.map((function(e){return te({},e,{hostMemory:BigInt(e.hostMemory)})})),servers:p.map((function(n){var t=n.serverMemory,r=n.serverName,o=te({},re(n,["serverMemory","serverName"]),{serverMemory:BigInt(t),serverName:r});return e.serverNameMapToData[r]=o,o})),storageGroupUUIDs:g,storageGroups:m,fileUUIDs:h});return(0,x.Bh)(u,{fromUnit:"B",onSuccess:{string:function(e,n){b.humanizedAnvilTotalAvailableMemory="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),e.anvils.push(b),e.anvilSelectItems.push({displayValue:ge({endAdornment:(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",width:"8rem"},children:[(0,r.jsx)(B.Ac,{inverted:!0,text:"CPU: ".concat(b.anvilTotalCPUCores," cores")}),(0,r.jsx)(B.Ac,{inverted:!0,text:"Memory: ~".concat(b.humanizedAnvilTotalAvailableMemory)})]}),mainLabel:b.anvilName,subLabel:b.anvilDescription}),value:o}),e.anvilUUIDMapToData[o]=b,e}),{anvils:[],anvilSelectItems:[],anvilUUIDMapToData:{},files:[],fileSelectItems:[],fileUUIDMapToData:{},serverNameMapToData:{},storageGroups:[],storageGroupSelectItems:[],storageGroupUUIDMapToData:{}});return Object.values(n).forEach((function(e){t.files.push(e),t.fileSelectItems.push({displayValue:e.fileName,value:e.fileUUID}),t.fileUUIDMapToData[e.fileUUID]=e})),t}(n.anvils),o=t.anvils,i=t.anvilSelectItems,s=t.anvilUUIDMapToData,l=t.fileSelectItems,u=t.fileUUIDMapToData,c=t.serverNameMapToData,p=t.storageGroupSelectItems,d=t.storageGroupUUIDMapToData;j(o),P(s),C(u),A(c),T(d),L(i),W(l),$(p),Jn({allAnvils:o,storageGroupUUIDMapToData:d}),Q(Object.entries(n.oses).map((function(e){var n=oe(e,2);return{key:n[0],label:n[1]}}))),An(!0)}))}),[Jn]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Z,{fullWidth:!0,maxWidth:"sm",open:n,PaperComponent:w.s_,PaperProps:{sx:{overflow:"visible"}},children:[(0,r.jsxs)(w.V9,{children:[(0,r.jsx)(B.z,{text:"Provision a Server"}),(0,r.jsx)(g.Z,{onClick:t,sx:{backgroundColor:p.hM,color:p.lD,"&:hover":{backgroundColor:p.hM}},children:(0,r.jsx)(u.Z,{})})]}),kn?(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",maxHeight:"50vh",overflowY:"scroll",paddingTop:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(b.Z,{id:"ps-server-name",label:"Server name",inputProps:{onChange:function(e){var n=e.target.value;se(n),Yn({inputs:{serverName:{value:n}}})},value:ne},inputLabelProps:{isNotifyRequired:0===ne.length},messageBoxProps:je})}),(Rn="ps-cpu-cores",_n="CPU cores",Qn=Ie,qn={messageBoxProps:Ce,sliderProps:{onChange:function(e){var n=e;if(n!==Ie){Pe(n);var t=Hn({cpuCores:n}).maxCPUCores;Yn({inputs:{cpuCores:{max:t,value:n}}})}},max:De,min:1}},(0,r.jsx)(H,te({isAllowTextInput:!0,label:_n,labelId:"".concat(Rn,"-label"),value:Qn},qn))),(0,r.jsx)(Z,{id:"ps-memory",label:"Memory",messageBoxProps:Ne,inputWithLabelProps:{inputProps:{endAdornment:xe("".concat(Ve," ").concat(He),{onButtonClick:function(){Qe(Ve),Kn({cmValue:ze})}}),onChange:function(e){var n=e.target.value;$n({value:n})},type:"number",value:_e},inputLabelProps:{isNotifyRequired:Ae===ce}},selectItems:pe,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;$n({unit:n})},value:He}}}),Ke.stateIds.map((function(e,n){return function(e,n,t,o,i,s,l,u){var c=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return e[t][r]},p=function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;e[r][i]=o,t(te({},e))},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce;p("sizes",t);var r=s({virtualDisks:e}),o=r.formattedMaxVDSizes,i=r.maxVirtualDiskSizes;u({inputs:X({},"vd".concat(n,"Size"),{displayMax:"".concat(o[n]),max:i[n],value:t})})},f=function(e){var n=e.value,t=void 0===n?c("inputSizes"):n,r=e.unit,o=void 0===r?c("inputUnits"):r;t!==c("inputSizes")&&p("inputSizes",t),o!==c("inputUnits")&&p("inputUnits",o),(0,x.KY)(t,o,(function(e){return d(e)}),(function(){return d()}))},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c("inputStorageGroupUUIDs");n!==c("inputStorageGroupUUIDs")&&p("inputStorageGroupUUIDs",n),s({virtualDisks:e})};return(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(Z,{id:"ps-virtual-disk-size-".concat(n),label:"Virtual disk size",messageBoxProps:c("inputSizeMessages"),inputWithLabelProps:{inputProps:{endAdornment:xe("".concat(c("inputMaxes")," ").concat(c("inputUnits")),{onButtonClick:function(){p("inputSizes",c("inputMaxes")),d(c("maxes"))}}),onChange:function(e){var n=e.target.value;f({value:n})},type:"number",value:c("inputSizes")},inputLabelProps:{isNotifyRequired:c("sizes")===ce}},selectItems:pe,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;f({unit:n})},value:c("inputUnits")}}})}),(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(U.Z,{id:"ps-storage-group-".concat(n),label:"Storage group",disableItem:function(e){return!(i.includes(e)&&c("sizes")<=l[e].storageGroupFree)},inputLabelProps:{isNotifyRequired:0===c("inputStorageGroupUUIDs").length},messageBoxProps:c("inputStorageGroupUUIDMessages"),selectItems:o,selectProps:{onChange:function(e){var n=e.target.value;v(n)},onClearIndicatorClick:function(){return v("")},renderValue:function(e){var n,t=null!==(n=l[e])&&void 0!==n?n:{},r=t.anvilName,o=void 0===r?"?":r,i=t.storageGroupName,a=void 0===i?"Unknown (".concat(e,")"):i;return"".concat(a," (").concat(o,")")},value:c("inputStorageGroupUUIDs")}})})]},"ps-virtual-disk-".concat(c("stateIds")))}(Ke,n,$e,K,wn,Hn,z,Yn)})),(0,r.jsx)(U.Z,{disableItem:function(e){return e===sn},hideItem:function(e){return!On.includes(e)},id:"ps-install-image",inputLabelProps:{isNotifyRequired:0===en.length},label:"Install ISO",messageBoxProps:rn,selectItems:V,selectProps:{onChange:function(e){var n=e.target.value;Xn(n)},onClearIndicatorClick:function(){return Xn("")},value:en}}),(0,r.jsx)(U.Z,{disableItem:function(e){return e===en},hideItem:function(e){return!On.includes(e)},id:"ps-driver-image",label:"Driver ISO",messageBoxProps:un,selectItems:V,selectProps:{onChange:function(e){var n=e.target.value;et(n)},onClearIndicatorClick:function(){return et("")},value:sn}}),(0,r.jsx)(U.Z,{disableItem:function(e){return!Un.includes(e)},id:"ps-anvil",inputLabelProps:{isNotifyRequired:0===pn.length},label:"Anvil node",messageBoxProps:vn,selectItems:N,selectProps:{onChange:function(e){var n=e.target.value;nt(n)},onClearIndicatorClick:function(){return nt("")},renderValue:function(e){var n,t=(null!==(n=I[e])&&void 0!==n?n:{}).anvilName;return void 0===t?"Unknown ".concat(e):t},value:pn}}),(0,r.jsx)(f.Z,{id:"ps-optimize-for-os",extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=null===gn},isOptionEqualToValue:function(e,n){return e.key===n.key},label:"Optimize for OS",messageBoxProps:yn,noOptionsText:"No matching OS",onChange:function(e,n){hn(n)},openOnFocus:!0,options:_,renderOption:function(e,n){return(0,o.createElement)("li",te({},e,{key:"ps-optimize-for-os-".concat(n.key),children:[n.label," (",n.key,")"]}))},value:gn})]}):(0,r.jsx)(J.Z,{}),(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",marginTop:"1em","& > :not(:first-child)":{marginTop:"1em"}},children:[En>0&&(0,r.jsx)(h.Z,{isAllowClose:!0,text:"Provision server job registered. You can provision another server, or exit; it won't affect the registered job."}),Fn?(0,r.jsx)(J.Z,{mt:0}):(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",width:"100%"},children:(0,r.jsx)(m.Z,{disabled:!Yn({isIgnoreOnCallbacks:!0}),onClick:function(){zn(!0)},sx:me,children:"Provision"})})]})]}),Bn&&(0,r.jsx)(v.Z,{actionProceedText:"Provision",content:(0,r.jsxs)(s.ZP,{container:!0,columns:8,direction:"column",children:[(0,r.jsx)(s.ZP,{direction:"row",item:!0,xs:8,children:(0,r.jsxs)(B.Ac,{children:["Server ",(0,r.jsx)(B.Q0,{text:ne})," will be created on anvil node"," ",(0,r.jsx)(B.Q0,{text:I[pn].anvilName})," ","with the following properties:"]})}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"CPU"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:Ie})," core(s)"]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:De})," core(s) available"]})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"Memory"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsx)(B.Q0,{text:"".concat(_e," ").concat(He)})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:"".concat(Ve," ").concat(He)})," ","available"]})})]}),Ke.stateIds.map((function(e,n){var t=Ke.inputMaxes[n],o=Ke.inputSizes[n],i=Ke.inputUnits[n],a=z[Ke.inputStorageGroupUUIDs[n]].storageGroupName;return(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsxs)(B.Ac,{children:["Virtual disk ",(0,r.jsx)(B.Q0,{text:n})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:"".concat(o," ").concat(i)})," on"," ",a]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:"".concat(t," ").concat(i)})," ","available"]})})]},"ps-virtual-disk-".concat(e,"-summary"))})),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"Install ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:6,children:(0,r.jsx)(B.Q0,{text:D[en].fileName})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"Driver ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:6,children:D[sn]?(0,r.jsx)(B.Q0,{text:D[sn].fileName}):(0,r.jsx)(B.Ac,{text:"none"})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"Optimize for OS"})}),(0,r.jsx)(s.ZP,{item:!0,xs:6,children:(0,r.jsx)(B.Ac,{text:"".concat(null===gn||void 0===gn?void 0:gn.label)})})]})]}),dialogProps:{open:Bn},onCancelAppend:function(){zn(!1)},onProceedAppend:function(){var e={serverName:ne,cpuCores:Ie,memory:Ae.toString(),virtualDisks:Ke.stateIds.map((function(e,n){return{storageSize:Ke.sizes[n].toString(),storageGroupUUID:Ke.inputStorageGroupUUIDs[n]}})),installISOFileUUID:en,driverISOFileUUID:sn,anvilUUID:pn,optimizeForOS:null===gn||void 0===gn?void 0:gn.key};Nn(!0),d.Z.post("/server",e).then((function(){Nn(!1),Vn(En+1)})),zn(!1)},proceedButtonProps:{sx:me},titleText:"Provision ".concat(ne,"?")})]})}},2519:function(e,n,t){t.d(n,{Z:function(){return D}});var r=t(5893),o=t(5603),i=t(8128),a=t(3640),s=t(7294),l=t(1363),u=t(4427),c=t(9),p=t(192),d=t(5537),f=t(9558),v=t(6239),m=t(7021),x=t(1057),g=t(4799),h=t(3213),b=t(7169);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function j(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var U=function(e){var n=e.onClearIndicatorClick,t=S(e,["onClearIndicatorClick"]),i=t.sx,a=t.value,l=S(t,["sx","value"]),u=(0,s.useMemo)((function(){var e;return j((y(e={},"& .".concat(o.Z.icon),{color:b.s7}),y(e,"& .".concat(f.Z.root),{marginRight:".8em"}),y(e,"& .".concat(v.Z.root),{color:b.s7,visibility:"hidden"}),y(e,"&:hover .".concat(f.Z.root," .").concat(v.Z.root,",\n &.").concat(m.Z.focused," .").concat(f.Z.root," .").concat(v.Z.root),{visibility:"visible"}),e),i)}),[i]),c=(0,s.useMemo)((function(){return String(a).length>0&&n&&(0,r.jsx)(x.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,a]);return(0,r.jsx)(h.Z,j({endAdornment:c,value:a},l,{sx:u}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var D=function(e){var n=e.id,t=e.label,d=e.selectItems,f=e.checkItem,v=e.disableItem,m=e.formControlProps,x=e.hideItem,g=e.inputLabelProps,h=void 0===g?{}:g,b=e.isReadOnly,y=void 0!==b&&b,j=e.messageBoxProps,S=void 0===j?{}:j,D=e.name,Z=e.onBlur,w=e.onChange,C=e.onFocus,M=e.required,k=e.selectProps,A=void 0===k?{}:k,G=A.multiple,B=A.sx,z=e.value,T=e.isCheckableItems,F=void 0===T?G:T,N=O(e.selectProps,["multiple","sx"]),L=(0,s.useMemo)((function(){return y?P(I({},"& .".concat(o.Z.icon),{visibility:"hidden"}),B):B}),[y,B]),E=(0,s.useCallback)((function(e){return F&&(0,r.jsx)(i.Z,{checked:null===f||void 0===f?void 0:f.call(null,e)})}),[f,F]),V=(0,s.useCallback)((function(e,t){return(0,r.jsxs)(u.Z,{disabled:null===v||void 0===v?void 0:v.call(null,e),sx:{display:(null===x||void 0===x?void 0:x.call(null,e))?"none":void 0},value:e,children:[E(e),t]},"".concat(n,"-").concat(e))}),[E,v,x,n]),W=(0,s.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),R=(0,s.useMemo)((function(){return(0,r.jsx)(c.Z,{id:n,label:t})}),[n,t]),_=(0,s.useMemo)((function(){return t&&(0,r.jsx)(p.Z,P({htmlFor:W,isNotifyRequired:M},h,{children:t}))}),[h,M,t,W]),Q=(0,s.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return V(t,void 0===r?t:r)}))}),[V,d]);return(0,r.jsxs)(a.Z,P({fullWidth:!0},m,{children:[_,(0,r.jsx)(U,P({id:W,input:R,multiple:G,name:D,onBlur:Z,onChange:w,onFocus:C,readOnly:y,value:z},N,{sx:L,children:Q})),(0,r.jsx)(l.Z,P({},S))]}))}},1081:function(e,n,t){var r=t(7294);n.Z=function(){var e=(0,r.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},5737:function(e,n,t){t.d(n,{Bh:function(){return o},KY:function(){return i},MU:function(){return a}});var r=t(4490),o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fromUnit,o=n.onFailure,i=n.onSuccess,a=n.precision,s=n.toUnit,l=(0,r.gO)(e,{fromUnit:t,precision:a,toUnit:s});if(l){var u=l.value,c=l.unit;try{var p,d,f;null===i||void 0===i||null===(p=i.bigint)||void 0===p||p.call(null,BigInt(u),c),null===i||void 0===i||null===(d=i.number)||void 0===d||d.call(null,parseFloat(u),c),null===i||void 0===i||null===(f=i.string)||void 0===f||f.call(null,u,c)}catch(v){null===o||void 0===o||o.call(null,v,u,c)}}else null===o||void 0===o||o.call(null)},i=function(e,n,t,r){o(e,{fromUnit:n,onFailure:r,onSuccess:{bigint:t},precision:0,toUnit:"B"})},a=function(e){return(0,r._d)(e,{toUnit:"ibyte"})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[825],{4594:function(e,n,t){var r=t(5893),o=t(6514),i=t(5113),a=t(4656),s=t(482),l=t(2994),u=t(7357),c=t(9890),p=t(7169),d=t(1363),f=t(6284);function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var g=function(e){return(0,r.jsx)(o.Z,{in:!0,children:(0,r.jsx)(i.Z,m({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,o=e.label,i=e.messageBoxProps,h=e.renderInput,b=e.sx,y=x(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),j=m({paper:{sx:{backgroundColor:p.lD}}},n),S=null!==h&&void 0!==h?h:function(e){var n=e.fullWidth,i=e.InputProps,a=e.InputLabelProps,s=e.inputProps,l={formControlProps:{fullWidth:n,ref:i.ref},inputLabelProps:a,inputProps:{className:i.className,endAdornment:i.endAdornment,inputProps:s,startAdornment:i.startAdornment},label:o};return null===t||void 0===t||t.call(null,l,e),(0,r.jsx)(f.Z,m({},l))},U=m(v({},"& .".concat(a.Z.root," .").concat(s.Z.endAdornment),v({right:"7px"},"& .".concat(l.Z.root),{color:p.s7})),b);return(0,r.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(c.Z,m({PaperComponent:g},y,{componentsProps:j,renderInput:S,sx:U})),(0,r.jsx)(d.Z,m({},i))]})}},5521:function(e,n,t){t.d(n,{Z:function(){return E}});var r=t(5893),o=t(1113),i=t(1496),a=t(2293),s=t(7357),l=t(2992),u=t(4799),c=t(7294),p=t(7169),d=t(4433),f=t(9029),v=t(7533),m=t(8462),x=t(7212),g=t(8619),h=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],b={width:"40em",height:"40em"},y=t(4390),j=t(582),S=t(4690),U=t(1770),I=t(7750),P=t(1081);function O(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(n).concat(e)]}),[t]),i=(0,c.useCallback)((function(){return o("user")}),[o]);return(0,c.useEffect)((function(){if(e){var n=document.cookie.split(/\s*;\s*/);r(n.reduce((function(e,n){var t,r=D(n.split("=",2),2),o=r[0],i=r[1],a=decodeURIComponent(i);if(a.startsWith("j:"))try{t=JSON.parse(a.substring(2))}catch(s){t=i}else t=i;return e[o]=t,e}),{}))}}),[e]),{cookieJar:t,getCookie:o,getSessionUser:i}};function w(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function C(e){for(var n=1;n0)},ref:n})]})}},4427:function(e,n,t){var r=t(5893),o=t(2429),i=t(9309),a=t(7169);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n :first-child":{flexGrow:1},"& > :not(:last-child)":{marginRight:".5em"}},"&:hover\n .".concat(y.Z.root,"\n .").concat(j.Z.root,"\n .").concat(j.Z.notchedOutline),{borderColor:p.s7}),children:[(0,r.jsx)(b.Z,P({id:n,label:t},i)),(0,r.jsx)(U.Z,P({formControlProps:{fullWidth:!1},id:"".concat(n,"-nested-select"),selectItems:u},d))]}),(0,r.jsx)(S.Z,P({},l))]})};D.defaultProps=O;var Z=D,w=t(3679),C=t(3640),M=t(6727),k=t(1184),A=t(9),G=t(192),B=t(7750);function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function E(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return z(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var V={inputLabelProps:{},isAllowTextInput:!1,labelId:"",messageBoxProps:{},sliderProps:{}},W={root:"".concat("SliderInputLabelDecorator","-root")},R=function(e){var n=e.isFocused,t=e.label,o=p.s7,i="solid",s="0",l="0 .6em 0 .4em",u="1px 0 0 0",c="0.3";return n&&(s="-1px",l="0 1em 0 1em",u="2px 0 0 0",c="1"),(0,r.jsxs)(a.Z,{className:W.root,sx:{display:"flex",flexDirection:"row",position:"absolute",top:s,width:"calc(100% - 6px)","> :last-child":{flexGrow:1}},children:[(0,r.jsx)(a.Z,{sx:{borderColor:o,borderStyle:i,borderWidth:u,content:'""',opacity:c,width:".6em"}}),(0,r.jsx)(B.Ac,{sx:{fontSize:".75em",margin:l,visibility:"hidden"},text:t}),(0,r.jsx)(a.Z,{sx:{borderColor:o,borderStyle:i,borderWidth:u,content:'""',opacity:c}})]})},_=function(e,n){var t=Number.parseFloat(e);return Number.isNaN(t)?n:t},Q=function(e){return F(e,Array)?e.map((function(e){return String(e)})):[String(e)]},q=function(e){var n,t=e.messageBoxProps,i=void 0===t?V.messageBoxProps:t,s=e.isAllowTextInput,l=void 0===s?V.isAllowTextInput:s,u=e.label,c=e.labelId,d=void 0===c?V.labelId:c,f=e.inputLabelProps,v=void 0===f?V.inputLabelProps:f,m=e.sliderProps,x=void 0===m?V.sliderProps:m,g=e.value,h=x.max,b=x.min,y=x.onChange,U=x.sx,I=x.valueLabelDisplay,P=g,O=(0,o.useState)({range:Q(g)}),D=O[0],Z=O[1],w=(0,o.useState)(!1),B=w[0],z=w[1],q=function(){z(!1)},H=function(){z(!0)},J=function(){P=function(e,n){return F(n,Array)?e.map((function(e,t){return _(e,n[t])})):_(e[0],n)}(D.range,P),null===y||void 0===y||y.call(null,P)};return(0,r.jsxs)(C.Z,{sx:{display:"flex",flexDirection:"column","&:hover":(n={},T(n,"& .".concat(W.root," div"),{opacity:1}),T(n,"& .".concat(j.Z.notchedOutline),{borderColor:p.s7}),n)},children:[(0,r.jsx)(G.Z,N({className:B?M.Z.focused:"",id:d,shrink:!0},v,{children:u})),R({isFocused:B,label:u}),(0,r.jsxs)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row","> :first-child":{flexGrow:1}},children:[(0,r.jsx)(k.ZP,{"aria-labelledby":d,max:h,min:b,onBlur:q,onChange:function(e,n){Z({range:Q(n)}),null===y||void 0===y||y.call(null,n)},onFocus:H,sx:N(T({color:p.s7,marginLeft:"1em",marginRight:"1em"},"& .".concat(k.TW.thumb),{borderRadius:p.n_,transform:"translate(-50%, -50%) rotate(45deg)"}),U),value:P,valueLabelDisplay:I}),D.range.map((function(e,n){return function(e){var n=e.key,t=e.isFocused,o=L(e,["key","isFocused"]);return(0,r.jsx)(A.Z,N({key:n,className:t?j.Z.focused:"",type:"number"},o))}({key:"slider-nested-text-input-".concat(n),inputProps:{max:h,min:b},isFocused:B,onBlur:q,onChange:function(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function oe(e,n){return $(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==t.return||t.return()}finally{if(s)throw o}}return i}}(e,n)||se(e,n)||ne()}function ie(e){return $(e)||ee(e)||se(e,i)||ne()}function ae(e){return function(e){if(Array.isArray(e))return K(e)}(e)||ee(e)||se(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,n){if(e){if("string"===typeof e)return K(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?K(e,n):void 0}}var le,ue,ce=BigInt(0),pe=[{value:"B"},{value:"KiB"},{value:"MiB"},{value:"GiB"},{value:"TiB"}],de="GiB",fe=BigInt(65536),ve=BigInt(104857600),me={backgroundColor:p.Ej,color:p.lD,"&:hover":{backgroundColor:p.Ej}},xe=function(e,n){var t=n.onButtonClick;return(0,r.jsx)(m.Z,{disabled:void 0===t,onClick:t,sx:{minWidth:"unset",whiteSpace:"nowrap"},children:"Max: ".concat(e)})},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.endAdornment,t=e.mainLabel,o=e.subLabel;return(0,r.jsxs)(a.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row",width:"100%","& > :first-child":{flexGrow:1}},children:[(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:[t&&(0,r.jsx)(B.Ac,{inverted:!0,text:t}),o&&(0,r.jsx)(B.Ac,{inverted:!0,text:o})]}),n]})},he=function(e,n,t,r,o,i,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=s.includeAnvilUUIDs,u=void 0===l?[]:l,c=s.includeFileUUIDs,p=void 0===c?[]:c,d=s.includeStorageGroupUUIDs,f=void 0===d?[]:d,v=function(){return!0},m=function(){return!0},x=function(){return!0};u.length>0&&(v=function(e){return u.includes(e)}),p.length>0&&(m=function(e){return p.includes(e)}),f.length>0&&(x=function(e){return f.includes(e)});var g={},h=i.reduce((function(e,n,t){var r,i=null!==(r=o[t])&&void 0!==r?r:ce;return e.all+=i,""===n||(void 0===e[n]&&(e[n]=ce),e[n]+=i),e}),{all:ce}),b=e.reduce((function(e,s){var l=s.anvilUUID;if(v(l)){var u,c=s.anvilTotalCPUCores,p=s.anvilTotalAvailableMemory,d=s.files,f=s.fileUUIDs,b=s.storageGroups,y=[],j=ce,S=ce;if(b.forEach((function(e){var n=e.storageGroupUUID,t=e.storageGroupFree;x(n)&&(y.push(n),S+=t,t>j&&(j=t))})),[function(){return b.length>0},function(){return t<=c},function(){return r<=p},function(){return i.every((function(e,t){var r,i=null!==(r=o[t])&&void 0!==r?r:ce,a=!0,s=i<=j;return""!==e&&(a=y.includes(e),s=i<=n[e].storageGroupFree),a&&s}))},function(){return Object.entries(h).every((function(e){var t=oe(e,2),r=t[0],o=t[1];return"all"===r?o<=S:o<=n[r].storageGroupFree}))},function(){return a.every((function(e){return""===e||f.includes(e)}))}].every((function(e){return e()})))e.anvils.push(s),e.anvilUUIDs.push(l),e.maxCPUCores=Math.max(c,e.maxCPUCores),p>e.maxMemory&&(e.maxMemory=p),d.forEach((function(e){var n=e.fileUUID;m(n)&&(g[n]=!0)})),(u=e.storageGroupUUIDs).push.apply(u,ae(y)),e.maxVirtualDiskSizes.fill(j)}return e}),{anvils:[],anvilUUIDs:[],fileUUIDs:[],maxCPUCores:0,maxMemory:ce,maxVirtualDiskSizes:i.map((function(){return ce})),storageGroupUUIDs:[]});return b.fileUUIDs=Object.keys(g),i.forEach((function(e,t){""!==e&&(b.maxVirtualDiskSizes[t]=n[e].storageGroupFree)})),b},be=function(e){return e.filter((function(e){return""!==e}))},ye=function(e){return{fromUnit:"B",onSuccess:{string:e},precision:0,toUnit:"ibyte"}};(0,x.Bh)(fe,ye((function(e,n){le="".concat(e," ").concat(n)}))),(0,x.Bh)(ve,ye((function(e,n){ue="".concat(e," ").concat(n)})));var je=function(e){var n=e.dialogProps.open,t=e.onClose,i=(0,o.useState)([]),y=i[0],j=i[1],S=(0,o.useState)({}),I=S[0],P=S[1],O=(0,o.useState)({}),D=O[0],C=O[1],M=(0,o.useState)({}),k=M[0],A=M[1],G=(0,o.useState)({}),z=G[0],T=G[1],F=(0,o.useState)([]),N=F[0],L=F[1],E=(0,o.useState)([]),V=E[0],W=E[1],R=(0,o.useState)([]),_=R[0],Q=R[1],q=(0,o.useState)([]),K=q[0],$=q[1],ee=(0,o.useState)(""),ne=ee[0],se=ee[1],ye=(0,o.useState)(),je=ye[0],Se=ye[1],Ue=(0,o.useState)(1),Ie=Ue[0],Pe=Ue[1],Oe=(0,o.useState)(0),De=Oe[0],Ze=Oe[1],we=(0,o.useState)(),Ce=we[0],Me=we[1],ke=(0,o.useState)(ce),Ae=ke[0],Ge=ke[1],Be=(0,o.useState)(ce),ze=Be[0],Te=Be[1],Fe=(0,o.useState)(),Ne=Fe[0],Le=Fe[1],Ee=(0,o.useState)("0"),Ve=Ee[0],We=Ee[1],Re=(0,o.useState)(""),_e=Re[0],Qe=Re[1],qe=(0,o.useState)(de),He=qe[0],Je=qe[1],Ye=(0,o.useState)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.existingVirtualDisks,t=void 0===n?{stateIds:[],inputMaxes:[],inputSizeMessages:[],inputSizes:[],inputStorageGroupUUIDMessages:[],inputStorageGroupUUIDs:[],inputUnits:[],maxes:[],sizes:[]}:n,r=e.stateId,o=void 0===r?(0,c.Z)():r,i=e.inputMax,a=void 0===i?"0":i,s=e.inputSize,l=void 0===s?"":s,u=e.inputSizeMessage,p=void 0===u?void 0:u,d=e.inputStorageGroupUUID,f=void 0===d?"":d,v=e.inputStorageGroupUUIDMessage,m=void 0===v?void 0:v,x=e.inputUnit,g=void 0===x?de:x,h=e.max,b=void 0===h?ce:h,y=e.setVirtualDisks,j=e.size,S=void 0===j?ce:j,U=t.stateIds,I=t.inputMaxes,P=t.inputSizeMessages,O=t.inputSizes,D=t.inputStorageGroupUUIDMessages,Z=t.inputStorageGroupUUIDs,w=t.inputUnits,C=t.maxes,M=t.sizes;return U.push(o),I.push(a),P.push(p),O.push(l),D.push(m),Z.push(f),w.push(g),C.push(b),M.push(S),null===y||void 0===y||y.call(null,te({},t)),t}()),Ke=Ye[0],$e=Ye[1],Xe=(0,o.useState)(""),en=Xe[0],nn=Xe[1],tn=(0,o.useState)(),rn=tn[0],on=tn[1],an=(0,o.useState)(""),sn=an[0],ln=an[1],un=(0,o.useState)()[0],cn=(0,o.useState)(""),pn=cn[0],dn=cn[1],fn=(0,o.useState)(),vn=fn[0],mn=fn[1],xn=(0,o.useState)(null),gn=xn[0],hn=xn[1],bn=(0,o.useState)(),yn=bn[0],jn=bn[1],Sn=(0,o.useState)([]),Un=Sn[0],In=Sn[1],Pn=(0,o.useState)([]),On=Pn[0],Dn=Pn[1],Zn=(0,o.useState)([]),wn=Zn[0],Cn=Zn[1],Mn=(0,o.useState)(!1),kn=Mn[0],An=Mn[1],Gn=(0,o.useState)(!1),Bn=Gn[0],zn=Gn[1],Tn=(0,o.useState)(!1),Fn=Tn[0],Nn=Tn[1],Ln=(0,o.useState)(0),En=Ln[0],Vn=Ln[1],Wn={serverName:{defaults:{onSuccess:function(){Se(void 0)},value:ne},tests:[{onFailure:function(){Se({text:"The server name length must be 1 to 16 characters.",type:"warning"})},test:function(e){var n=e.value.length;return n>=1&&n<=16}},{onFailure:function(){Se({text:"The server name is expected to only contain alphanumeric, hyphen, or underscore characters.",type:"warning"})},test:function(e){var n=e.value;return/^[a-zA-Z0-9_-]+$/.test(n)}},{onFailure:function(){Se({text:"This server name already exists, please choose another name.",type:"warning"})},test:function(e){var n=e.value;return void 0===k[n]}}]},cpuCores:{defaults:{max:De,min:1,onSuccess:function(){Me(void 0)},value:Ie},tests:[{onFailure:function(){Me({text:"Non available.",type:"warning"})},test:Y.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Me({text:"The number of CPU cores is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:Y.SQ}]},memory:{defaults:{displayMax:"".concat(Ve," ").concat(He),displayMin:le,max:ze,min:fe,onSuccess:function(){Le(void 0)},value:Ae},tests:[{onFailure:function(){Le({text:"Non available.",type:"warning"})},test:Y.X7},{onFailure:function(e){var n=e.displayMax,t=e.displayMin;Le({text:"Memory is expected to be between ".concat(t," and ").concat(n,"."),type:"warning"})},test:Y.SQ}]},installISO:{defaults:{onSuccess:function(){on(void 0)},value:en},tests:[{test:Y.HJ}]},anvil:{defaults:{onSuccess:function(){mn(void 0)},value:pn},tests:[{test:Y.HJ}]},optimizeForOS:{defaults:{onSuccess:function(){jn(void 0)},value:null===gn||void 0===gn?void 0:gn.key},tests:[{test:Y.HJ}]}};Ke.inputSizeMessages.forEach((function(e,n){Wn["vd".concat(n,"Size")]={defaults:{displayMax:"".concat(Ke.inputMaxes[n]," ").concat(Ke.inputUnits[n]),displayMin:ue,max:Ke.maxes[n],min:ve,onSuccess:function(){Ke.inputSizeMessages[n]=void 0},value:Ke.sizes[n]},onFinishBatch:function(){$e(te({},Ke))},tests:[{onFailure:function(){Ke.inputSizeMessages[n]={text:"Non available.",type:"warning"}},test:Y.X7},{onFailure:function(e){var t=e.displayMax,r=e.displayMin;Ke.inputSizeMessages[n]={text:"Virtual disk ".concat(n," size is expected to be between ").concat(r," and ").concat(t,"."),type:"warning"}},test:Y.SQ}]},Wn["vd".concat(n,"StorageGroup")]={defaults:{onSuccess:function(){Ke.inputStorageGroupUUIDMessages[n]=void 0},value:Ke.inputStorageGroupUUIDs[n]},onFinishBatch:function(){$e(te({},Ke))},tests:[{test:Y.HJ}]}}));var Rn,_n,Qn,qn,Hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.allAnvils,t=void 0===n?y:n,r=e.cpuCores,o=void 0===r?Ie:r,i=e.fileUUIDs,a=void 0===i?[en,sn]:i,s=e.includeAnvilUUIDs,l=void 0===s?be([pn]):s,u=e.includeFileUUIDs,c=e.includeStorageGroupUUIDs,p=e.inputMemoryUnit,d=void 0===p?He:p,f=e.memory,v=void 0===f?Ae:f,m=e.storageGroupUUIDMapToData,g=void 0===m?z:m,h=e.virtualDisks,b=void 0===h?Ke:h,j=he(t,g,o,v,b.sizes,b.inputStorageGroupUUIDs,a,{includeAnvilUUIDs:l,includeFileUUIDs:u,includeStorageGroupUUIDs:c}),S=j.anvilUUIDs,U=j.fileUUIDs,I=j.maxCPUCores,P=j.maxMemory,O=j.maxVirtualDiskSizes,D=j.storageGroupUUIDs;Ze(I),Te(P);var Z=[];b.maxes=O,b.maxes.forEach((function(e,n){(0,x.Bh)(e,{fromUnit:"B",onSuccess:{string:function(e,t){b.inputMaxes[n]=e,Z[n]="".concat(e," ").concat(t)}},toUnit:b.inputUnits[n]})})),$e(te({},b)),In(S),Dn(U),Cn(D);var w="";return(0,x.Bh)(P,{fromUnit:"B",onSuccess:{string:function(e,n){We(e),w="".concat(e," ").concat(n)}},toUnit:d}),{formattedMaxMemory:w,formattedMaxVDSizes:Z,maxCPUCores:I,maxMemory:P,maxVirtualDiskSizes:O}},Jn=(0,o.useCallback)(Hn,[]),Yn=function(){for(var e=arguments.length,n=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=e.cmValue,t=void 0===n?ce:n,r=e.cmUnit,o=void 0===r?He:r;Ge(t);var i=Hn({inputMemoryUnit:o,memory:t}),a=i.formattedMaxMemory,s=i.maxMemory;Yn({inputs:{memory:{displayMax:a,max:s,value:t}}})},$n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.value,t=void 0===n?_e:n,r=e.unit,o=void 0===r?He:r;t!==_e&&Qe(t),o!==He&&Je(o),(0,x.KY)(t,o,(function(e){return Kn({cmValue:e,cmUnit:o})}),(function(){return Kn({cmUnit:o})}))},Xn=function(e){nn(e),Hn({fileUUIDs:[e,sn]})},et=function(e){ln(e),Hn({fileUUIDs:[en,e]})},nt=function(e){var n=be([e]);dn(e),Hn({includeAnvilUUIDs:n})};return(0,o.useEffect)((function(){d.Z.get("/anvil",{params:{anvilUUIDs:"all",isForProvisionServer:!0}}).then((function(e){var n=e.data,t=function(e){var n={},t=e.reduce((function(e,t){var o=t.anvilUUID,i=t.anvilName,s=t.anvilTotalMemory,l=t.anvilTotalAllocatedMemory,u=t.anvilTotalAvailableMemory,c=t.hosts,p=t.servers,d=t.storageGroups,f=t.files,v=d.reduce((function(n,t){var a=te({},t,{anvilUUID:o,anvilName:i,storageGroupSize:BigInt(t.storageGroupSize),storageGroupFree:BigInt(t.storageGroupFree),humanizedStorageGroupFree:""});return(0,x.Bh)(t.storageGroupFree,{fromUnit:"B",onSuccess:{string:function(e,n){a.humanizedStorageGroupFree="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),n.anvilStorageGroupUUIDs.push(t.storageGroupUUID),n.anvilStorageGroups.push(a),e.storageGroups.push(a),e.storageGroupSelectItems.push({displayValue:ge({endAdornment:(0,r.jsx)(B.Ac,{inverted:!0,text:"~".concat(a.humanizedStorageGroupFree," free")}),mainLabel:t.storageGroupName,subLabel:i}),value:t.storageGroupUUID}),e.storageGroupUUIDMapToData[t.storageGroupUUID]=a,n}),{anvilStorageGroups:[],anvilStorageGroupUUIDs:[]}),m=v.anvilStorageGroups,g=v.anvilStorageGroupUUIDs,h=[];f.forEach((function(e){var t=e.fileUUID;h.push(t),n[t]=e}));var b=te({},t,{anvilTotalMemory:BigInt(s),anvilTotalAllocatedMemory:BigInt(l),anvilTotalAvailableMemory:BigInt(u),humanizedAnvilTotalAvailableMemory:"",hosts:c.map((function(e){return te({},e,{hostMemory:BigInt(e.hostMemory)})})),servers:p.map((function(n){var t=n.serverMemory,r=n.serverName,o=te({},re(n,["serverMemory","serverName"]),{serverMemory:BigInt(t),serverName:r});return e.serverNameMapToData[r]=o,o})),storageGroupUUIDs:g,storageGroups:m,fileUUIDs:h});return(0,x.Bh)(u,{fromUnit:"B",onSuccess:{string:function(e,n){b.humanizedAnvilTotalAvailableMemory="".concat(e," ").concat(n)}},precision:0,toUnit:"ibyte"}),e.anvils.push(b),e.anvilSelectItems.push({displayValue:ge({endAdornment:(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",width:"8rem"},children:[(0,r.jsx)(B.Ac,{inverted:!0,text:"CPU: ".concat(b.anvilTotalCPUCores," cores")}),(0,r.jsx)(B.Ac,{inverted:!0,text:"Memory: ~".concat(b.humanizedAnvilTotalAvailableMemory)})]}),mainLabel:b.anvilName,subLabel:b.anvilDescription}),value:o}),e.anvilUUIDMapToData[o]=b,e}),{anvils:[],anvilSelectItems:[],anvilUUIDMapToData:{},files:[],fileSelectItems:[],fileUUIDMapToData:{},serverNameMapToData:{},storageGroups:[],storageGroupSelectItems:[],storageGroupUUIDMapToData:{}});return Object.values(n).forEach((function(e){t.files.push(e),t.fileSelectItems.push({displayValue:e.fileName,value:e.fileUUID}),t.fileUUIDMapToData[e.fileUUID]=e})),t}(n.anvils),o=t.anvils,i=t.anvilSelectItems,s=t.anvilUUIDMapToData,l=t.fileSelectItems,u=t.fileUUIDMapToData,c=t.serverNameMapToData,p=t.storageGroupSelectItems,d=t.storageGroupUUIDMapToData;j(o),P(s),C(u),A(c),T(d),L(i),W(l),$(p),Jn({allAnvils:o,storageGroupUUIDMapToData:d}),Q(Object.entries(n.oses).map((function(e){var n=oe(e,2);return{key:n[0],label:n[1]}}))),An(!0)}))}),[Jn]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Z,{fullWidth:!0,maxWidth:"sm",open:n,PaperComponent:w.s_,PaperProps:{sx:{overflow:"visible"}},children:[(0,r.jsxs)(w.V9,{children:[(0,r.jsx)(B.z,{text:"Provision a Server"}),(0,r.jsx)(g.Z,{onClick:t,sx:{backgroundColor:p.hM,color:p.lD,"&:hover":{backgroundColor:p.hM}},children:(0,r.jsx)(u.Z,{})})]}),kn?(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",maxHeight:"50vh",overflowY:"scroll",paddingTop:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(b.Z,{id:"ps-server-name",label:"Server name",inputProps:{onChange:function(e){var n=e.target.value;se(n),Yn({inputs:{serverName:{value:n}}})},value:ne},inputLabelProps:{isNotifyRequired:0===ne.length},messageBoxProps:je})}),(Rn="ps-cpu-cores",_n="CPU cores",Qn=Ie,qn={messageBoxProps:Ce,sliderProps:{onChange:function(e){var n=e;if(n!==Ie){Pe(n);var t=Hn({cpuCores:n}).maxCPUCores;Yn({inputs:{cpuCores:{max:t,value:n}}})}},max:De,min:1}},(0,r.jsx)(H,te({isAllowTextInput:!0,label:_n,labelId:"".concat(Rn,"-label"),value:Qn},qn))),(0,r.jsx)(Z,{id:"ps-memory",label:"Memory",messageBoxProps:Ne,inputWithLabelProps:{inputProps:{endAdornment:xe("".concat(Ve," ").concat(He),{onButtonClick:function(){Qe(Ve),Kn({cmValue:ze})}}),onChange:function(e){var n=e.target.value;$n({value:n})},type:"number",value:_e},inputLabelProps:{isNotifyRequired:Ae===ce}},selectItems:pe,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;$n({unit:n})},value:He}}}),Ke.stateIds.map((function(e,n){return function(e,n,t,o,i,s,l,u){var c=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return e[t][r]},p=function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;e[r][i]=o,t(te({},e))},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce;p("sizes",t);var r=s({virtualDisks:e}),o=r.formattedMaxVDSizes,i=r.maxVirtualDiskSizes;u({inputs:X({},"vd".concat(n,"Size"),{displayMax:"".concat(o[n]),max:i[n],value:t})})},f=function(e){var n=e.value,t=void 0===n?c("inputSizes"):n,r=e.unit,o=void 0===r?c("inputUnits"):r;t!==c("inputSizes")&&p("inputSizes",t),o!==c("inputUnits")&&p("inputUnits",o),(0,x.KY)(t,o,(function(e){return d(e)}),(function(){return d()}))},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c("inputStorageGroupUUIDs");n!==c("inputStorageGroupUUIDs")&&p("inputStorageGroupUUIDs",n),s({virtualDisks:e})};return(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(Z,{id:"ps-virtual-disk-size-".concat(n),label:"Virtual disk size",messageBoxProps:c("inputSizeMessages"),inputWithLabelProps:{inputProps:{endAdornment:xe("".concat(c("inputMaxes")," ").concat(c("inputUnits")),{onButtonClick:function(){p("inputSizes",c("inputMaxes")),d(c("maxes"))}}),onChange:function(e){var n=e.target.value;f({value:n})},type:"number",value:c("inputSizes")},inputLabelProps:{isNotifyRequired:c("sizes")===ce}},selectItems:pe,selectWithLabelProps:{selectProps:{onChange:function(e){var n=e.target.value;f({unit:n})},value:c("inputUnits")}}})}),(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(U.Z,{id:"ps-storage-group-".concat(n),label:"Storage group",disableItem:function(e){return!(i.includes(e)&&c("sizes")<=l[e].storageGroupFree)},inputLabelProps:{isNotifyRequired:0===c("inputStorageGroupUUIDs").length},messageBoxProps:c("inputStorageGroupUUIDMessages"),selectItems:o,selectProps:{onChange:function(e){var n=e.target.value;v(n)},onClearIndicatorClick:function(){return v("")},renderValue:function(e){var n,t=null!==(n=l[e])&&void 0!==n?n:{},r=t.anvilName,o=void 0===r?"?":r,i=t.storageGroupName,a=void 0===i?"Unknown (".concat(e,")"):i;return"".concat(a," (").concat(o,")")},value:c("inputStorageGroupUUIDs")}})})]},"ps-virtual-disk-".concat(c("stateIds")))}(Ke,n,$e,K,wn,Hn,z,Yn)})),(0,r.jsx)(U.Z,{disableItem:function(e){return e===sn},hideItem:function(e){return!On.includes(e)},id:"ps-install-image",inputLabelProps:{isNotifyRequired:0===en.length},label:"Install ISO",messageBoxProps:rn,selectItems:V,selectProps:{onChange:function(e){var n=e.target.value;Xn(n)},onClearIndicatorClick:function(){return Xn("")},value:en}}),(0,r.jsx)(U.Z,{disableItem:function(e){return e===en},hideItem:function(e){return!On.includes(e)},id:"ps-driver-image",label:"Driver ISO",messageBoxProps:un,selectItems:V,selectProps:{onChange:function(e){var n=e.target.value;et(n)},onClearIndicatorClick:function(){return et("")},value:sn}}),(0,r.jsx)(U.Z,{disableItem:function(e){return!Un.includes(e)},id:"ps-anvil",inputLabelProps:{isNotifyRequired:0===pn.length},label:"Anvil node",messageBoxProps:vn,selectItems:N,selectProps:{onChange:function(e){var n=e.target.value;nt(n)},onClearIndicatorClick:function(){return nt("")},renderValue:function(e){var n,t=(null!==(n=I[e])&&void 0!==n?n:{}).anvilName;return void 0===t?"Unknown ".concat(e):t},value:pn}}),(0,r.jsx)(f.Z,{id:"ps-optimize-for-os",extendRenderInput:function(e){var n=e.inputLabelProps;(void 0===n?{}:n).isNotifyRequired=null===gn},isOptionEqualToValue:function(e,n){return e.key===n.key},label:"Optimize for OS",messageBoxProps:yn,noOptionsText:"No matching OS",onChange:function(e,n){hn(n)},openOnFocus:!0,options:_,renderOption:function(e,n){return(0,o.createElement)("li",te({},e,{key:"ps-optimize-for-os-".concat(n.key),children:[n.label," (",n.key,")"]}))},value:gn})]}):(0,r.jsx)(J.Z,{}),(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",marginTop:"1em","& > :not(:first-child)":{marginTop:"1em"}},children:[En>0&&(0,r.jsx)(h.Z,{isAllowClose:!0,text:"Provision server job registered. You can provision another server, or exit; it won't affect the registered job."}),Fn?(0,r.jsx)(J.Z,{mt:0}):(0,r.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",width:"100%"},children:(0,r.jsx)(m.Z,{disabled:!Yn({isIgnoreOnCallbacks:!0}),onClick:function(){zn(!0)},sx:me,children:"Provision"})})]})]}),Bn&&(0,r.jsx)(v.Z,{actionProceedText:"Provision",content:(0,r.jsxs)(s.ZP,{container:!0,columns:8,direction:"column",children:[(0,r.jsx)(s.ZP,{direction:"row",item:!0,xs:8,children:(0,r.jsxs)(B.Ac,{children:["Server ",(0,r.jsx)(B.Q0,{text:ne})," will be created on anvil node"," ",(0,r.jsx)(B.Q0,{text:I[pn].anvilName})," ","with the following properties:"]})}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"CPU"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:Ie})," core(s)"]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:De})," core(s) available"]})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"Memory"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsx)(B.Q0,{text:"".concat(_e," ").concat(He)})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:"".concat(Ve," ").concat(He)})," ","available"]})})]}),Ke.stateIds.map((function(e,n){var t=Ke.inputMaxes[n],o=Ke.inputSizes[n],i=Ke.inputUnits[n],a=z[Ke.inputStorageGroupUUIDs[n]].storageGroupName;return(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsxs)(B.Ac,{children:["Virtual disk ",(0,r.jsx)(B.Q0,{text:n})]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:"".concat(o," ").concat(i)})," on"," ",a]})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:(0,r.jsxs)(B.Ac,{children:[(0,r.jsx)(B.Q0,{text:"".concat(t," ").concat(i)})," ","available"]})})]},"ps-virtual-disk-".concat(e,"-summary"))})),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"Install ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:6,children:(0,r.jsx)(B.Q0,{text:D[en].fileName})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"Driver ISO"})}),(0,r.jsx)(s.ZP,{item:!0,xs:6,children:D[sn]?(0,r.jsx)(B.Q0,{text:D[sn].fileName}):(0,r.jsx)(B.Ac,{text:"none"})})]}),(0,r.jsxs)(s.ZP,{container:!0,direction:"row",item:!0,xs:8,children:[(0,r.jsx)(s.ZP,{item:!0,xs:2,children:(0,r.jsx)(B.Ac,{text:"Optimize for OS"})}),(0,r.jsx)(s.ZP,{item:!0,xs:6,children:(0,r.jsx)(B.Ac,{text:"".concat(null===gn||void 0===gn?void 0:gn.label)})})]})]}),dialogProps:{open:Bn},onCancelAppend:function(){zn(!1)},onProceedAppend:function(){var e={serverName:ne,cpuCores:Ie,memory:Ae.toString(),virtualDisks:Ke.stateIds.map((function(e,n){return{storageSize:Ke.sizes[n].toString(),storageGroupUUID:Ke.inputStorageGroupUUIDs[n]}})),installISOFileUUID:en,driverISOFileUUID:sn,anvilUUID:pn,optimizeForOS:null===gn||void 0===gn?void 0:gn.key};Nn(!0),d.Z.post("/server",e).then((function(){Nn(!1),Vn(En+1)})),zn(!1)},proceedButtonProps:{sx:me},titleText:"Provision ".concat(ne,"?")})]})}},2519:function(e,n,t){t.d(n,{Z:function(){return D}});var r=t(5893),o=t(5603),i=t(8128),a=t(3640),s=t(7294),l=t(1363),u=t(4427),c=t(9),p=t(192),d=t(5537),f=t(9558),v=t(6239),m=t(7021),x=t(1057),g=t(4799),h=t(3213),b=t(7169);function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function j(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var U=function(e){var n=e.onClearIndicatorClick,t=S(e,["onClearIndicatorClick"]),i=t.sx,a=t.value,l=S(t,["sx","value"]),u=(0,s.useMemo)((function(){var e;return j((y(e={},"& .".concat(o.Z.icon),{color:b.s7}),y(e,"& .".concat(f.Z.root),{marginRight:".8em"}),y(e,"& .".concat(v.Z.root),{color:b.s7,visibility:"hidden"}),y(e,"&:hover .".concat(f.Z.root," .").concat(v.Z.root,",\n &.").concat(m.Z.focused," .").concat(f.Z.root," .").concat(v.Z.root),{visibility:"visible"}),e),i)}),[i]),c=(0,s.useMemo)((function(){return String(a).length>0&&n&&(0,r.jsx)(x.Z,{position:"end",children:(0,r.jsx)(g.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,a]);return(0,r.jsx)(h.Z,j({endAdornment:c,value:a},l,{sx:u}))};function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var D=function(e){var n=e.id,t=e.label,d=e.selectItems,f=e.checkItem,v=e.disableItem,m=e.formControlProps,x=e.hideItem,g=e.inputLabelProps,h=void 0===g?{}:g,b=e.isReadOnly,y=void 0!==b&&b,j=e.messageBoxProps,S=void 0===j?{}:j,D=e.name,Z=e.onBlur,w=e.onChange,C=e.onFocus,M=e.required,k=e.selectProps,A=void 0===k?{}:k,G=A.multiple,B=A.sx,z=e.value,T=e.isCheckableItems,F=void 0===T?G:T,N=O(e.selectProps,["multiple","sx"]),L=(0,s.useMemo)((function(){return y?P(I({},"& .".concat(o.Z.icon),{visibility:"hidden"}),B):B}),[y,B]),E=(0,s.useCallback)((function(e){return F&&(0,r.jsx)(i.Z,{checked:null===f||void 0===f?void 0:f.call(null,e)})}),[f,F]),V=(0,s.useCallback)((function(e,t){return(0,r.jsxs)(u.Z,{disabled:null===v||void 0===v?void 0:v.call(null,e),sx:{display:(null===x||void 0===x?void 0:x.call(null,e))?"none":void 0},value:e,children:[E(e),t]},"".concat(n,"-").concat(e))}),[E,v,x,n]),W=(0,s.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),R=(0,s.useMemo)((function(){return(0,r.jsx)(c.Z,{id:n,label:t})}),[n,t]),_=(0,s.useMemo)((function(){return t&&(0,r.jsx)(p.Z,P({htmlFor:W,isNotifyRequired:M},h,{children:t}))}),[h,M,t,W]),Q=(0,s.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return V(t,void 0===r?t:r)}))}),[V,d]);return(0,r.jsxs)(a.Z,P({fullWidth:!0},m,{children:[_,(0,r.jsx)(U,P({id:W,input:R,multiple:G,name:D,onBlur:Z,onChange:w,onFocus:C,readOnly:y,value:z},N,{sx:L,children:Q})),(0,r.jsx)(l.Z,P({},S))]}))}},1081:function(e,n,t){var r=t(7294);n.Z=function(){var e=(0,r.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},5737:function(e,n,t){t.d(n,{Bh:function(){return o},KY:function(){return i},MU:function(){return a}});var r=t(4490),o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fromUnit,o=n.onFailure,i=n.onSuccess,a=n.precision,s=n.toUnit,l=(0,r.gO)(e,{fromUnit:t,precision:a,toUnit:s});if(l){var u=l.value,c=l.unit;try{var p,d,f;null===i||void 0===i||null===(p=i.bigint)||void 0===p||p.call(null,BigInt(u),c),null===i||void 0===i||null===(d=i.number)||void 0===d||d.call(null,parseFloat(u),c),null===i||void 0===i||null===(f=i.string)||void 0===f||f.call(null,u,c)}catch(v){null===o||void 0===o||o.call(null,v,u,c)}}else null===o||void 0===o||o.call(null)},i=function(e,n,t,r){o(e,{fromUnit:n,onFailure:r,onSuccess:{bigint:t},precision:0,toUnit:"B"})},a=function(e){return(0,r._d)(e,{toUnit:"ibyte"})}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/434-07ec1dcc649bdd0c.js b/striker-ui/out/_next/static/chunks/900-af716a39aed22219.js similarity index 53% rename from striker-ui/out/_next/static/chunks/434-07ec1dcc649bdd0c.js rename to striker-ui/out/_next/static/chunks/900-af716a39aed22219.js index c7da04da..eb40b854 100644 --- a/striker-ui/out/_next/static/chunks/434-07ec1dcc649bdd0c.js +++ b/striker-ui/out/_next/static/chunks/900-af716a39aed22219.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[434],{5949:function(e,t,o){"use strict";o.d(t,{D:function(){return p},Z:function(){return f}});var n=o(7462),r=o(7294),i=o(7579),a=o(8925),l=o(3633),s=o(7960);function c(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function p(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:r="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let p=a?l.trim():l;o&&(p=p.toLowerCase()),t&&(p=c(p));const u=e.filter((e=>{let n=(i||s)(e);return o&&(n=n.toLowerCase()),t&&(n=c(n)),"start"===r?0===n.indexOf(p):n.indexOf(p)>-1}));return"number"===typeof n?u.slice(0,n):u}}function u(e,t){for(let o=0;o{var t;return null!=(t=e.label)?t:e}),isOptionEqualToValue:C=((e,t)=>e===t),groupBy:P,handleHomeEndKeys:I=!e.freeSolo,id:R,includeInputInList:L=!1,inputValue:M,multiple:A=!1,onChange:E,onClose:D,onHighlightChange:T,onInputChange:j,onOpen:N,open:z,openOnFocus:W=!1,options:F,readOnly:H=!1,selectOnFocus:V=!e.freeSolo,value:B}=e,q=(0,i.Z)(R);let G=k;G=e=>{const t=k(e);return"string"!==typeof t?String(t):t};const U=r.useRef(!1),K=r.useRef(!0),_=r.useRef(null),X=r.useRef(null),[Y,J]=r.useState(null),[Q,ee]=r.useState(-1),te=o?0:-1,oe=r.useRef(te),[ne,re]=(0,a.Z)({controlled:B,default:b,name:h}),[ie,ae]=(0,a.Z)({controlled:M,default:"",name:h,state:"inputValue"}),[le,se]=r.useState(!1),ce=r.useCallback(((e,t)=>{if(!(A?ne.length{const e=ne!==pe.current;pe.current=ne,le&&!e||O&&!e||ce(null,ne)}),[ne,ce,le,pe,O]);const[ue,de]=(0,a.Z)({controlled:z,default:!1,name:h,state:"open"}),[fe,me]=r.useState(!0),ge=!A&&null!=ne&&ie===G(ne),he=ue&&!H,be=he?Z(F.filter((e=>!S||!(A?ne:[ne]).some((t=>null!==t&&C(e,t))))),{inputValue:ge&&fe?"":ie,getOptionLabel:G}):[],ve=ue&&be.length>0&&!H;const xe=(0,l.Z)((e=>{-1===e?_.current.focus():Y.querySelector(`[data-tag-index="${e}"]`).focus()}));r.useEffect((()=>{A&&Q>ne.length-1&&(ee(-1),xe(-1))}),[ne,A,Q,xe]);const ye=(0,l.Z)((({event:e,index:t,reason:o="auto"})=>{if(oe.current=t,-1===t?_.current.removeAttribute("aria-activedescendant"):_.current.setAttribute("aria-activedescendant",`${q}-option-${t}`),T&&T(e,-1===t?null:be[t],o),!X.current)return;const n=X.current.querySelector('[role="option"].Mui-focused');n&&(n.classList.remove("Mui-focused"),n.classList.remove("Mui-focusVisible"));const r=X.current.parentElement.querySelector('[role="listbox"]');if(!r)return;if(-1===t)return void(r.scrollTop=0);const i=X.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add("Mui-focused"),"keyboard"===o&&i.classList.add("Mui-focusVisible"),r.scrollHeight>r.clientHeight&&"mouse"!==o)){const e=i,t=r.clientHeight+r.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?r.scrollTop=o-r.clientHeight:e.offsetTop-e.offsetHeight*(P?1.3:0){if(!he)return;const i=function(e,t){if(!X.current||-1===e)return-1;let o=e;for(;;){if("next"===t&&o===be.length||"previous"===t&&-1===o)return-1;const e=X.current.querySelector(`[data-option-index="${o}"]`),n=!y&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||n))return o;o+="next"===t?1:-1}}((()=>{const e=be.length-1;if("reset"===o)return te;if("start"===o)return 0;if("end"===o)return e;const t=oe.current+o;return t<0?-1===t&&L?-1:w&&-1!==oe.current||Math.abs(o)>1?0:e:t>e?t===e+1&&L?-1:w||Math.abs(o)>1?e:0:t})(),n);if(ye({index:i,reason:r,event:e}),t&&"reset"!==o)if(-1===i)_.current.value=ie;else{const e=G(be[i]);_.current.value=e;0===e.toLowerCase().indexOf(ie.toLowerCase())&&ie.length>0&&_.current.setSelectionRange(ie.length,e.length)}})),Ze=r.useCallback((()=>{if(!he)return;const e=A?ne[0]:ne;if(0!==be.length&&null!=e){if(X.current)if(null==e)oe.current>=be.length-1?ye({index:be.length-1}):ye({index:oe.current});else{const t=be[oe.current];if(A&&t&&-1!==u(ne,(e=>C(t,e))))return;const o=u(be,(t=>C(t,e)));-1===o?we({diff:"reset"}):ye({index:o})}}else we({diff:"reset"})}),[be.length,!A&&ne,S,we,ye,he,ie,A]),Se=(0,l.Z)((e=>{(0,s.Z)(X,e),e&&Ze()}));r.useEffect((()=>{Ze()}),[Ze]);const Oe=e=>{ue||(de(!0),me(!0),N&&N(e))},$e=(e,t)=>{ue&&(de(!1),D&&D(e,t))},ke=(e,t,o,n)=>{if(Array.isArray(ne)){if(ne.length===t.length&&ne.every(((e,o)=>e===t[o])))return}else if(ne===t)return;E&&E(e,t,o,n),re(t)},Ce=r.useRef(!1),Pe=(e,t,o="selectOption",n="options")=>{let r=o,i=t;if(A){i=Array.isArray(ne)?ne.slice():[];const e=u(i,(e=>C(t,e)));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),r="removeOption")}ce(e,i),ke(e,i,r,{option:t}),x||e.ctrlKey||e.metaKey||$e(e,r),(!0===p||"touch"===p&&Ce.current||"mouse"===p&&!Ce.current)&&_.current.blur()};const Ie=(e,t)=>{if(!A)return;$e(e,"toggleInput");let o=Q;-1===Q?""===ie&&"previous"===t&&(o=ne.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===ne.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===ne.length||"previous"===t&&-1===o)return-1;const e=Y.querySelector(`[data-tag-index="${o}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),ee(o),xe(o)},Re=e=>{U.current=!0,ae(""),j&&j(e,"","clear"),ke(e,A?[]:null,"clear")},Le=e=>o=>{if(e.onKeyDown&&e.onKeyDown(o),!o.defaultMuiPrevented&&(-1!==Q&&-1===["ArrowLeft","ArrowRight"].indexOf(o.key)&&(ee(-1),xe(-1)),229!==o.which))switch(o.key){case"Home":he&&I&&(o.preventDefault(),we({diff:"start",direction:"next",reason:"keyboard",event:o}));break;case"End":he&&I&&(o.preventDefault(),we({diff:"end",direction:"previous",reason:"keyboard",event:o}));break;case"PageUp":o.preventDefault(),we({diff:-5,direction:"previous",reason:"keyboard",event:o}),Oe(o);break;case"PageDown":o.preventDefault(),we({diff:5,direction:"next",reason:"keyboard",event:o}),Oe(o);break;case"ArrowDown":o.preventDefault(),we({diff:1,direction:"next",reason:"keyboard",event:o}),Oe(o);break;case"ArrowUp":o.preventDefault(),we({diff:-1,direction:"previous",reason:"keyboard",event:o}),Oe(o);break;case"ArrowLeft":Ie(o,"previous");break;case"ArrowRight":Ie(o,"next");break;case"Enter":if(-1!==oe.current&&he){const e=be[oe.current],n=!!$&&$(e);if(o.preventDefault(),n)return;Pe(o,e,"selectOption"),t&&_.current.setSelectionRange(_.current.value.length,_.current.value.length)}else O&&""!==ie&&!1===ge&&(A&&o.preventDefault(),Pe(o,ie,"createOption","freeSolo"));break;case"Escape":he?(o.preventDefault(),o.stopPropagation(),$e(o,"escape")):g&&(""!==ie||A&&ne.length>0)&&(o.preventDefault(),o.stopPropagation(),Re(o));break;case"Backspace":if(A&&!H&&""===ie&&ne.length>0){const e=-1===Q?ne.length-1:Q,t=ne.slice();t.splice(e,1),ke(o,t,"removeOption",{option:ne[e]})}}},Me=e=>{se(!0),W&&!U.current&&Oe(e)},Ae=e=>{null!==X.current&&X.current.parentElement.contains(document.activeElement)?_.current.focus():(se(!1),K.current=!0,U.current=!1,c&&-1!==oe.current&&he?Pe(e,be[oe.current],"blur"):c&&O&&""!==ie?Pe(e,ie,"blur","freeSolo"):m&&ce(e,ne),$e(e,"blur"))},Ee=e=>{const t=e.target.value;ie!==t&&(ae(t),me(!1),j&&j(e,t,"input")),""===t?v||A||ke(e,null,"clear"):Oe(e)},De=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Te=()=>{Ce.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Pe(e,be[t],"selectOption"),Ce.current=!1},Ne=e=>t=>{const o=ne.slice();o.splice(e,1),ke(t,o,"removeOption",{option:ne[e]})},ze=e=>{ue?$e(e,"toggleInput"):Oe(e)},We=e=>{e.target.getAttribute("id")!==q&&e.preventDefault()},Fe=()=>{_.current.focus(),V&&K.current&&_.current.selectionEnd-_.current.selectionStart===0&&_.current.select(),K.current=!1},He=e=>{""!==ie&&ue||ze(e)};let Ve=O&&ie.length>0;Ve=Ve||(A?ne.length>0:null!==ne);let Be=be;if(P){new Map;Be=be.reduce(((e,t,o)=>{const n=P(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return f&&le&&Ae(),{getRootProps:(e={})=>(0,n.Z)({"aria-owns":ve?`${q}-listbox`:null,role:"combobox","aria-expanded":ve},e,{onKeyDown:Le(e),onMouseDown:We,onClick:Fe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:ie,onBlur:Ae,onFocus:Me,onChange:Ee,onMouseDown:He,"aria-activedescendant":he?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ve?`${q}-listbox`:void 0,autoComplete:"off",ref:_,autoCapitalize:"none",spellCheck:"false"}),getClearProps:()=>({tabIndex:-1,onClick:Re}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:ze}),getTagProps:({index:e})=>(0,n.Z)({key:e,"data-tag-index":e,tabIndex:-1},!H&&{onDelete:Ne(e)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const o=(A?ne:[ne]).some((e=>null!=e&&C(t,e))),n=!!$&&$(t);return{key:G(t),tabIndex:-1,role:"option",id:`${q}-option-${e}`,onMouseOver:De,onClick:je,onTouchStart:Te,"data-option-index":e,"aria-disabled":n,"aria-selected":o}},id:q,inputValue:ie,value:ne,dirty:Ve,popupOpen:he,focused:le||-1!==Q,anchorEl:Y,setAnchorEl:J,focusedTag:Q,groupedOptions:Be}}},3554:function(e,t,o){"use strict";o.d(t,{Z:function(){return i}});var n=o(7462),r=o(8442);function i(e,t={},o){return(0,r.Z)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,o)})}},9890:function(e,t,o){"use strict";o.d(t,{Z:function(){return B}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(7192),s=o(5949),c=o(1796),p=o(4606),u=o(1496),d=o(3616),f=o(8216),m=o(8979);function g(e){return(0,m.Z)("MuiListSubheader",e)}(0,o(6087).Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var h=o(5893);const b=["className","color","component","disableGutters","disableSticky","inset"],v=(0,u.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${(0,f.Z)(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,r.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:e.palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:e.palette.background.paper})));var x,y,w=i.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:s="default",component:c="li",disableGutters:p=!1,disableSticky:u=!1,inset:m=!1}=o,x=(0,n.Z)(o,b),y=(0,r.Z)({},o,{color:s,component:c,disableGutters:p,disableSticky:u,inset:m}),w=(e=>{const{classes:t,color:o,disableGutters:n,inset:r,disableSticky:i}=e,a={root:["root","default"!==o&&`color${(0,f.Z)(o)}`,!n&&"gutters",r&&"inset",!i&&"sticky"]};return(0,l.Z)(a,g,t)})(y);return(0,h.jsx)(v,(0,r.Z)({as:c,className:(0,a.Z)(w.root,i),ref:t,ownerState:y},x))})),Z=o(5113),S=o(4799),O=o(7918),$=o(7021),k=o(5827),C=o(4656),P=o(4707),I=(0,o(7892).Z)((0,h.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),R=o(224),L=o(482);const M=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],A=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:r,hasPopupIcon:i,inputFocused:a,size:l}=o;return[{[`& .${L.Z.tag}`]:t.tag},{[`& .${L.Z.tag}`]:t[`tagSize${(0,f.Z)(l)}`]},{[`& .${L.Z.inputRoot}`]:t.inputRoot},{[`& .${L.Z.input}`]:t.input},{[`& .${L.Z.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,r&&t.hasClearIcon]}})((({ownerState:e})=>(0,r.Z)({[`&.${L.Z.focused} .${L.Z.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${L.Z.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${L.Z.tag}`]:(0,r.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${L.Z.inputRoot}`]:{flexWrap:"wrap",[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:30},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:56},[`& .${L.Z.input}`]:{width:0,minWidth:30}},[`& .${$.Z.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$.Z.root}.${k.Z.sizeSmall}`]:{[`& .${$.Z.input}`]:{padding:"2px 4px 3px 0"}},[`& .${C.Z.root}`]:{padding:9,[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:39},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:65},[`& .${L.Z.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${L.Z.endAdornment}`]:{right:9}},[`& .${C.Z.root}.${k.Z.sizeSmall}`]:{padding:6,[`& .${L.Z.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${P.Z.root}`]:{paddingTop:19,paddingLeft:8,[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:39},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:65},[`& .${P.Z.input}`]:{padding:"7px 4px"},[`& .${L.Z.endAdornment}`]:{right:9}},[`& .${P.Z.root}.${k.Z.sizeSmall}`]:{paddingBottom:1,[`& .${P.Z.input}`]:{padding:"2.5px 4px"}},[`& .${k.Z.hiddenLabel}`]:{paddingTop:8},[`& .${L.Z.input}`]:(0,r.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),E=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),D=(0,u.ZP)(S.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),T=(0,u.ZP)(S.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,r.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>(0,r.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),j=(0,u.ZP)(p.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${L.Z.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>(0,r.Z)({zIndex:e.zIndex.modal},t.disablePortal&&{position:"absolute"}))),N=(0,u.ZP)(Z.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,r.Z)({},e.typography.body1,{overflow:"auto"}))),z=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),W=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),F=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${L.Z.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${L.Z.focused}`]:{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`&.${L.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},'&[aria-selected="true"]':{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${L.Z.focused}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.palette.action.selected}},[`&.${L.Z.focusVisible}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),H=(0,u.ZP)(w,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:e.palette.background.paper,top:-8}))),V=(0,u.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${L.Z.option}`]:{paddingLeft:24}});var B=i.forwardRef((function(e,t){var o,c;const u=(0,d.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:m=!1,autoHighlight:g=!1,autoSelect:b=!1,blurOnSelect:v=!1,ChipProps:w,className:S,clearIcon:$=x||(x=(0,h.jsx)(I,{fontSize:"small"})),clearOnBlur:k=!u.freeSolo,clearOnEscape:C=!1,clearText:P="Clear",closeText:B="Close",componentsProps:q={},defaultValue:G=(u.multiple?[]:null),disableClearable:U=!1,disableCloseOnSelect:K=!1,disabled:_=!1,disabledItemsFocusable:X=!1,disableListWrap:Y=!1,disablePortal:J=!1,filterSelectedOptions:Q=!1,forcePopupIcon:ee="auto",freeSolo:te=!1,fullWidth:oe=!1,getLimitTagsText:ne=(e=>`+${e}`),getOptionLabel:re=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:ie,handleHomeEndKeys:ae=!u.freeSolo,includeInputInList:le=!1,limitTags:se=-1,ListboxComponent:ce="ul",ListboxProps:pe,loading:ue=!1,loadingText:de="Loading\u2026",multiple:fe=!1,noOptionsText:me="No options",openOnFocus:ge=!1,openText:he="Open",PaperComponent:be=Z.Z,PopperComponent:ve=p.Z,popupIcon:xe=y||(y=(0,h.jsx)(R.Z,{})),readOnly:ye=!1,renderGroup:we,renderInput:Ze,renderOption:Se,renderTags:Oe,selectOnFocus:$e=!u.freeSolo,size:ke="medium"}=u,Ce=(0,n.Z)(u,M),{getRootProps:Pe,getInputProps:Ie,getInputLabelProps:Re,getPopupIndicatorProps:Le,getClearProps:Me,getTagProps:Ae,getListboxProps:Ee,getOptionProps:De,value:Te,dirty:je,id:Ne,popupOpen:ze,focused:We,focusedTag:Fe,anchorEl:He,setAnchorEl:Ve,inputValue:Be,groupedOptions:qe}=(0,s.Z)((0,r.Z)({},u,{componentName:"Autocomplete"})),Ge=!U&&!_&&je&&!ye,Ue=(!te||!0===ee)&&!1!==ee,Ke=(0,r.Z)({},u,{disablePortal:J,focused:We,fullWidth:oe,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:-1===Fe,popupOpen:ze,size:ke}),_e=(e=>{const{classes:t,disablePortal:o,focused:n,fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,popupOpen:c,size:p}=e,u={root:["root",n&&"focused",r&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${(0,f.Z)(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(u,L.q,t)})(Ke);let Xe;if(fe&&Te.length>0){const e=e=>(0,r.Z)({className:(0,a.Z)(_e.tag),disabled:_},Ae(e));Xe=Oe?Oe(Te,e):Te.map(((t,o)=>(0,h.jsx)(O.Z,(0,r.Z)({label:re(t),size:ke},e({index:o}),w))))}if(se>-1&&Array.isArray(Xe)){const e=Xe.length-se;!We&&e>0&&(Xe=Xe.splice(0,se),Xe.push((0,h.jsx)("span",{className:_e.tag,children:ne(e)},Xe.length)))}const Ye=we||(e=>(0,h.jsxs)("li",{children:[(0,h.jsx)(H,{className:_e.groupLabel,ownerState:Ke,component:"div",children:e.group}),(0,h.jsx)(V,{className:_e.groupUl,ownerState:Ke,children:e.children})]},e.key)),Je=Se||((e,t)=>(0,h.jsx)("li",(0,r.Z)({},e,{children:re(t)}))),Qe=(e,t)=>{const o=De({option:e,index:t});return Je((0,r.Z)({},o,{className:_e.option}),e,{selected:o["aria-selected"],inputValue:Be})};return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(A,(0,r.Z)({ref:t,className:(0,a.Z)(_e.root,S),ownerState:Ke},Pe(Ce),{children:Ze({id:Ne,disabled:_,fullWidth:!0,size:"small"===ke?"small":void 0,InputLabelProps:Re(),InputProps:{ref:Ve,className:_e.inputRoot,startAdornment:Xe,endAdornment:(0,h.jsxs)(E,{className:_e.endAdornment,ownerState:Ke,children:[Ge?(0,h.jsx)(D,(0,r.Z)({},Me(),{"aria-label":P,title:P,ownerState:Ke},q.clearIndicator,{className:(0,a.Z)(_e.clearIndicator,null==(o=q.clearIndicator)?void 0:o.className),children:$})):null,Ue?(0,h.jsx)(T,(0,r.Z)({},Le(),{disabled:_,"aria-label":ze?B:he,title:ze?B:he,className:(0,a.Z)(_e.popupIndicator),ownerState:Ke,children:xe})):null]})},inputProps:(0,r.Z)({className:(0,a.Z)(_e.input),disabled:_,readOnly:ye},Ie())})})),ze&&He?(0,h.jsx)(j,{as:ve,className:(0,a.Z)(_e.popper),disablePortal:J,style:{width:He?He.clientWidth:null},ownerState:Ke,role:"presentation",anchorEl:He,open:!0,children:(0,h.jsxs)(N,(0,r.Z)({ownerState:Ke,as:be},q.paper,{className:(0,a.Z)(_e.paper,null==(c=q.paper)?void 0:c.className),children:[ue&&0===qe.length?(0,h.jsx)(z,{className:_e.loading,ownerState:Ke,children:de}):null,0!==qe.length||te||ue?null:(0,h.jsx)(W,{className:_e.noOptions,ownerState:Ke,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:me}),qe.length>0?(0,h.jsx)(F,(0,r.Z)({as:ce,className:_e.listbox,ownerState:Ke},Ee(),pe,{children:qe.map(((e,t)=>ie?Ye({key:e.key,group:e.group,children:e.options.map(((t,o)=>Qe(t,e.index+o)))}):Qe(e,t)))})):null]}))}):null]})}))},482:function(e,t,o){"use strict";o.d(t,{q:function(){return r}});var n=o(8979);function r(e){return(0,n.Z)("MuiAutocomplete",e)}const i=(0,o(6087).Z)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);t.Z=i},7918:function(e,t,o){"use strict";o.d(t,{Z:function(){return O}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(7192),s=o(1796),c=o(7892),p=o(5893),u=(0,c.Z)((0,p.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),d=o(1705),f=o(8216),m=o(7739),g=o(3616),h=o(1496),b=o(8979);function v(e){return(0,b.Z)("MuiChip",e)}var x=(0,o(6087).Z)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]);const y=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],w=(0,h.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{color:n,clickable:r,onDelete:i,size:a,variant:l}=o;return[{[`& .${x.avatar}`]:t.avatar},{[`& .${x.avatar}`]:t[`avatar${(0,f.Z)(a)}`]},{[`& .${x.avatar}`]:t[`avatarColor${(0,f.Z)(n)}`]},{[`& .${x.icon}`]:t.icon},{[`& .${x.icon}`]:t[`icon${(0,f.Z)(a)}`]},{[`& .${x.icon}`]:t[`iconColor${(0,f.Z)(n)}`]},{[`& .${x.deleteIcon}`]:t.deleteIcon},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,f.Z)(a)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconColor${(0,f.Z)(n)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconOutlinedColor${(0,f.Z)(n)}`]},t.root,t[`size${(0,f.Z)(a)}`],t[`color${(0,f.Z)(n)}`],r&&t.clickable,r&&"default"!==n&&t[`clickableColor${(0,f.Z)(n)})`],i&&t.deletable,i&&"default"!==n&&t[`deletableColor${(0,f.Z)(n)}`],t[l],"outlined"===l&&t[`outlined${(0,f.Z)(n)}`]]}})((({theme:e,ownerState:t})=>{const o=(0,s.Fq)(e.palette.text.primary,.26);return(0,r.Z)({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.text.primary,backgroundColor:e.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${x.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${x.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},[`& .${x.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${x.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${x.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${x.icon}`]:(0,r.Z)({color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==t.color&&{color:"inherit"}),[`& .${x.deleteIcon}`]:(0,r.Z)({WebkitTapHighlightColor:"transparent",color:o,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,s.Fq)(o,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:(0,s.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:e.palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.onDelete&&{[`&.${x.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${x.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,r.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:e.shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${x.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,r.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${x.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${x.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${x.avatar}`]:{marginLeft:4},[`& .${x.avatarSmall}`]:{marginLeft:2},[`& .${x.icon}`]:{marginLeft:4},[`& .${x.iconSmall}`]:{marginLeft:2},[`& .${x.deleteIcon}`]:{marginRight:5},[`& .${x.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,s.Fq)(e.palette[t.color].main,.7)}`,[`&.${x.clickable}:hover`]:{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${x.deleteIcon}`]:{color:(0,s.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),Z=(0,h.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:o}=e,{size:n}=o;return[t.label,t[`label${(0,f.Z)(n)}`]]}})((({ownerState:e})=>(0,r.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function S(e){return"Backspace"===e.key||"Delete"===e.key}var O=i.forwardRef((function(e,t){const o=(0,g.Z)({props:e,name:"MuiChip"}),{avatar:s,className:c,clickable:h,color:b="default",component:x,deleteIcon:O,disabled:$=!1,icon:k,label:C,onClick:P,onDelete:I,onKeyDown:R,onKeyUp:L,size:M="medium",variant:A="filled"}=o,E=(0,n.Z)(o,y),D=i.useRef(null),T=(0,d.Z)(D,t),j=e=>{e.stopPropagation(),I&&I(e)},N=!(!1===h||!P)||h,z="small"===M,W=N||I?m.Z:x||"div",F=(0,r.Z)({},o,{component:W,disabled:$,size:M,color:b,onDelete:!!I,clickable:N,variant:A}),H=(e=>{const{classes:t,disabled:o,size:n,color:r,onDelete:i,clickable:a,variant:s}=e,c={root:["root",s,o&&"disabled",`size${(0,f.Z)(n)}`,`color${(0,f.Z)(r)}`,a&&"clickable",a&&`clickableColor${(0,f.Z)(r)}`,i&&"deletable",i&&`deletableColor${(0,f.Z)(r)}`,`${s}${(0,f.Z)(r)}`],label:["label",`label${(0,f.Z)(n)}`],avatar:["avatar",`avatar${(0,f.Z)(n)}`,`avatarColor${(0,f.Z)(r)}`],icon:["icon",`icon${(0,f.Z)(n)}`,`iconColor${(0,f.Z)(r)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,f.Z)(n)}`,`deleteIconColor${(0,f.Z)(r)}`,`deleteIconOutlinedColor${(0,f.Z)(r)}`]};return(0,l.Z)(c,v,t)})(F),V=W===m.Z?(0,r.Z)({component:x||"div",focusVisibleClassName:H.focusVisible},I&&{disableRipple:!0}):{};let B=null;if(I){const e=(0,a.Z)("default"!==b&&("outlined"===A?H[`deleteIconOutlinedColor${(0,f.Z)(b)}`]:H[`deleteIconColor${(0,f.Z)(b)}`]),z&&H.deleteIconSmall);B=O&&i.isValidElement(O)?i.cloneElement(O,{className:(0,a.Z)(O.props.className,H.deleteIcon,e),onClick:j}):(0,p.jsx)(u,{className:(0,a.Z)(H.deleteIcon,e),onClick:j})}let q=null;s&&i.isValidElement(s)&&(q=i.cloneElement(s,{className:(0,a.Z)(H.avatar,s.props.className)}));let G=null;return k&&i.isValidElement(k)&&(G=i.cloneElement(k,{className:(0,a.Z)(H.icon,k.props.className)})),(0,p.jsxs)(w,(0,r.Z)({as:W,className:(0,a.Z)(H.root,c),disabled:!(!N||!$)||void 0,onClick:P,onKeyDown:e=>{e.currentTarget===e.target&&S(e)&&e.preventDefault(),R&&R(e)},onKeyUp:e=>{e.currentTarget===e.target&&(I&&S(e)?I(e):"Escape"===e.key&&D.current&&D.current.blur()),L&&L(e)},ref:T,ownerState:F},V,E,{children:[q||G,(0,p.jsx)(Z,{className:(0,a.Z)(H.label),ownerState:F,children:C}),B]}))}))},6886:function(e,t,o){"use strict";o.d(t,{ZP:function(){return Z}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(5408),s=o(9707),c=o(7192),p=o(1496),u=o(3616);var d=i.createContext(),f=o(8979);function m(e){return(0,f.Z)("MuiGrid",e)}const g=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var h=(0,o(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...g.map((e=>`grid-xs-${e}`)),...g.map((e=>`grid-sm-${e}`)),...g.map((e=>`grid-md-${e}`)),...g.map((e=>`grid-lg-${e}`)),...g.map((e=>`grid-xl-${e}`))]),b=o(5893);const v=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function x(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function y(e,t,o={}){if(!t||!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[o[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`];const{xs:n,sm:r,md:i,lg:a,xl:l}=e;return[Number(n)>0&&(o[`spacing-xs-${String(n)}`]||`spacing-xs-${String(n)}`),Number(r)>0&&(o[`spacing-sm-${String(r)}`]||`spacing-sm-${String(r)}`),Number(i)>0&&(o[`spacing-md-${String(i)}`]||`spacing-md-${String(i)}`),Number(a)>0&&(o[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(l)>0&&(o[`spacing-xl-${String(l)}`]||`spacing-xl-${String(l)}`)]}const w=(0,p.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{container:o,direction:n,item:r,lg:i,md:a,sm:l,spacing:s,wrap:c,xl:p,xs:u,zeroMinWidth:d}=e.ownerState;return[t.root,o&&t.container,r&&t.item,d&&t.zeroMinWidth,...y(s,o,t),"row"!==n&&t[`direction-xs-${String(n)}`],"wrap"!==c&&t[`wrap-xs-${String(c)}`],!1!==u&&t[`grid-xs-${String(u)}`],!1!==l&&t[`grid-sm-${String(l)}`],!1!==a&&t[`grid-md-${String(a)}`],!1!==i&&t[`grid-lg-${String(i)}`],!1!==p&&t[`grid-xl-${String(p)}`]]}})((({ownerState:e})=>(0,r.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const o=(0,l.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,l.k9)({theme:e},o,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${h.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:o,rowSpacing:n}=t;let r={};if(o&&0!==n){const t=(0,l.P$)({values:n,breakpoints:e.breakpoints.values});r=(0,l.k9)({theme:e},t,(t=>{const o=e.spacing(t);return"0px"!==o?{marginTop:`-${x(o)}`,[`& > .${h.item}`]:{paddingTop:x(o)}}:{}}))}return r}),(function({theme:e,ownerState:t}){const{container:o,columnSpacing:n}=t;let r={};if(o&&0!==n){const t=(0,l.P$)({values:n,breakpoints:e.breakpoints.values});r=(0,l.k9)({theme:e},t,(t=>{const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${x(o)})`,marginLeft:`-${x(o)}`,[`& > .${h.item}`]:{paddingLeft:x(o)}}:{}}))}return r}),(function({theme:e,ownerState:t}){let o;return e.breakpoints.keys.reduce(((n,i)=>{let a={};if(t[i]&&(o=t[i]),!o)return n;if(!0===o)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===o)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=(0,l.P$)({values:t.columns,breakpoints:e.breakpoints.values}),c="object"===typeof s?s[i]:s;if(void 0===c||null===c)return n;const p=Math.round(o/c*1e8)/1e6+"%";let u={};if(t.container&&t.item&&0!==t.columnSpacing){const o=e.spacing(t.columnSpacing);if("0px"!==o){const e=`calc(${p} + ${x(o)})`;u={flexBasis:e,maxWidth:e}}}a=(0,r.Z)({flexBasis:p,flexGrow:0,maxWidth:p},u)}return 0===e.breakpoints.values[i]?Object.assign(n,a):n[e.breakpoints.up(i)]=a,n}),{})}));var Z=i.forwardRef((function(e,t){const o=(0,u.Z)({props:e,name:"MuiGrid"}),l=(0,s.Z)(o),{className:p,columns:f,columnSpacing:g,component:h="div",container:x=!1,direction:Z="row",item:S=!1,lg:O=!1,md:$=!1,rowSpacing:k,sm:C=!1,spacing:P=0,wrap:I="wrap",xl:R=!1,xs:L=!1,zeroMinWidth:M=!1}=l,A=(0,n.Z)(l,v),E=k||P,D=g||P,T=i.useContext(d),j=f||T||12,N=(0,r.Z)({},l,{columns:j,container:x,direction:Z,item:S,lg:O,md:$,sm:C,rowSpacing:E,columnSpacing:D,wrap:I,xl:R,xs:L,zeroMinWidth:M}),z=(e=>{const{classes:t,container:o,direction:n,item:r,lg:i,md:a,sm:l,spacing:s,wrap:p,xl:u,xs:d,zeroMinWidth:f}=e,g={root:["root",o&&"container",r&&"item",f&&"zeroMinWidth",...y(s,o),"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==p&&`wrap-xs-${String(p)}`,!1!==d&&`grid-xs-${String(d)}`,!1!==l&&`grid-sm-${String(l)}`,!1!==a&&`grid-md-${String(a)}`,!1!==i&&`grid-lg-${String(i)}`,!1!==u&&`grid-xl-${String(u)}`]};return(0,c.Z)(g,m,t)})(N);return W=(0,b.jsx)(w,(0,r.Z)({ownerState:N,className:(0,a.Z)(z.root,p),as:h,ref:t},A)),12!==j?(0,b.jsx)(d.Provider,{value:j,children:W}):W;var W}))},4606:function(e,t,o){"use strict";o.d(t,{Z:function(){return Ie}});var n=o(7462),r=o(7294),i=o(3366),a=o(67),l=o(6600),s=o(7094);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){return e instanceof c(e).Element||e instanceof Element}function u(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!==typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var f=Math.max,m=Math.min,g=Math.round;function h(e,t){void 0===t&&(t=!1);var o=e.getBoundingClientRect(),n=1,r=1;if(u(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(n=g(o.width)/a||1),i>0&&(r=g(o.height)/i||1)}return{width:o.width/n,height:o.height/r,top:o.top/r,right:o.right/n,bottom:o.bottom/r,left:o.left/n,x:o.left/n,y:o.top/r}}function b(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function v(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function y(e){return h(x(e)).left+b(e).scrollLeft}function w(e){return c(e).getComputedStyle(e)}function Z(e){var t=w(e),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function S(e,t,o){void 0===o&&(o=!1);var n=u(t),r=u(t)&&function(e){var t=e.getBoundingClientRect(),o=g(t.width)/e.offsetWidth||1,n=g(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),i=x(t),a=h(e,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!o)&&(("body"!==v(t)||Z(i))&&(l=function(e){return e!==c(e)&&u(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:b(e);var t}(t)),u(t)?((s=h(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=y(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function O(e){var t=h(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function $(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||x(e)}function k(e){return["html","body","#document"].indexOf(v(e))>=0?e.ownerDocument.body:u(e)&&Z(e)?e:k($(e))}function C(e,t){var o;void 0===t&&(t=[]);var n=k(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),i=c(n),a=r?[i].concat(i.visualViewport||[],Z(n)?n:[]):n,l=t.concat(a);return r?l:l.concat(C($(a)))}function P(e){return["table","td","th"].indexOf(v(e))>=0}function I(e){return u(e)&&"fixed"!==w(e).position?e.offsetParent:null}function R(e){for(var t=c(e),o=I(e);o&&P(o)&&"static"===w(o).position;)o=I(o);return o&&("html"===v(o)||"body"===v(o)&&"static"===w(o).position)?t:o||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&u(e)&&"fixed"===w(e).position)return null;for(var o=$(e);u(o)&&["html","body"].indexOf(v(o))<0;){var n=w(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}var L="top",M="bottom",A="right",E="left",D="auto",T=[L,M,A,E],j="start",N="end",z="viewport",W="popper",F=T.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+N])}),[]),H=[].concat(T,[D]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+N])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}function q(e){var t;return function(){return t||(t=new Promise((function(o){Promise.resolve().then((function(){t=void 0,o(e())}))}))),t}}var G={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),o=0;o=0?"x":"y"}function Q(e){var t,o=e.reference,n=e.element,r=e.placement,i=r?X(r):null,a=r?Y(r):null,l=o.x+o.width/2-n.width/2,s=o.y+o.height/2-n.height/2;switch(i){case L:t={x:l,y:o.y-n.height};break;case M:t={x:l,y:o.y+o.height};break;case A:t={x:o.x+o.width,y:s};break;case E:t={x:o.x-n.width,y:s};break;default:t={x:o.x,y:o.y}}var c=i?J(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case j:t[c]=t[c]-(o[p]/2-n[p]/2);break;case N:t[c]=t[c]+(o[p]/2-n[p]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,o=e.popper,n=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,m=void 0===f?0:f,h=a.y,b=void 0===h?0:h,v="function"===typeof u?u({x:m,y:b}):{x:m,y:b};m=v.x,b=v.y;var y=a.hasOwnProperty("x"),Z=a.hasOwnProperty("y"),S=E,O=L,$=window;if(p){var k=R(o),C="clientHeight",P="clientWidth";if(k===c(o)&&"static"!==w(k=x(o)).position&&"absolute"===l&&(C="scrollHeight",P="scrollWidth"),k=k,r===L||(r===E||r===A)&&i===N)O=M,b-=(d&&$.visualViewport?$.visualViewport.height:k[C])-n.height,b*=s?1:-1;if(r===E||(r===L||r===M)&&i===N)S=A,m-=(d&&$.visualViewport?$.visualViewport.width:k[P])-n.width,m*=s?1:-1}var I,D=Object.assign({position:l},p&&ee),T=!0===u?function(e){var t=e.x,o=e.y,n=window.devicePixelRatio||1;return{x:g(t*n)/n||0,y:g(o*n)/n||0}}({x:m,y:b}):{x:m,y:b};return m=T.x,b=T.y,s?Object.assign({},D,((I={})[O]=Z?"0":"",I[S]=y?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",I)):Object.assign({},D,((t={})[O]=Z?b+"px":"",t[S]=y?m+"px":"",t.transform="",t))}var oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.offset,i=void 0===r?[0,0]:r,a=H.reduce((function(e,o){return e[o]=function(e,t,o){var n=X(e),r=[E,L].indexOf(n)>=0?-1:1,i="function"===typeof o?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[E,A].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(o,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},ne={left:"right",right:"left",bottom:"top",top:"bottom"};function re(e){return e.replace(/left|right|bottom|top/g,(function(e){return ne[e]}))}var ie={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return ie[e]}))}function le(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&d(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t){return t===z?se(function(e){var t=c(e),o=x(e),n=t.visualViewport,r=o.clientWidth,i=o.clientHeight,a=0,l=0;return n&&(r=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,l=n.offsetTop)),{width:r,height:i,x:a+y(e),y:l}}(e)):p(t)?function(e){var t=h(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):se(function(e){var t,o=x(e),n=b(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=f(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=f(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+y(e),s=-n.scrollTop;return"rtl"===w(r||o).direction&&(l+=f(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(x(e)))}function pe(e,t,o){var n="clippingParents"===t?function(e){var t=C($(e)),o=["absolute","fixed"].indexOf(w(e).position)>=0&&u(e)?R(e):e;return p(o)?t.filter((function(e){return p(e)&&le(e,o)&&"body"!==v(e)})):[]}(e):[].concat(t),r=[].concat(n,[o]),i=r[0],a=r.reduce((function(t,o){var n=ce(e,o);return t.top=f(n.top,t.top),t.right=m(n.right,t.right),t.bottom=m(n.bottom,t.bottom),t.left=f(n.left,t.left),t}),ce(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ue(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function de(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}function fe(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=void 0===n?e.placement:n,i=o.boundary,a=void 0===i?"clippingParents":i,l=o.rootBoundary,s=void 0===l?z:l,c=o.elementContext,u=void 0===c?W:c,d=o.altBoundary,f=void 0!==d&&d,m=o.padding,g=void 0===m?0:m,b=ue("number"!==typeof g?g:de(g,T)),v=u===W?"reference":W,y=e.rects.popper,w=e.elements[f?v:u],Z=pe(p(w)?w:w.contextElement||x(e.elements.popper),a,s),S=h(e.elements.reference),O=Q({reference:S,element:y,strategy:"absolute",placement:r}),$=se(Object.assign({},y,O)),k=u===W?$:S,C={top:Z.top-k.top+b.top,bottom:k.bottom-Z.bottom+b.bottom,left:Z.left-k.left+b.left,right:k.right-Z.right+b.right},P=e.modifiersData.offset;if(u===W&&P){var I=P[r];Object.keys(C).forEach((function(e){var t=[A,M].indexOf(e)>=0?1:-1,o=[L,M].indexOf(e)>=0?"y":"x";C[e]+=I[o]*t}))}return C}function me(e,t,o){return f(e,m(t,o))}var ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0!==a&&a,s=o.boundary,c=o.rootBoundary,p=o.altBoundary,u=o.padding,d=o.tether,g=void 0===d||d,h=o.tetherOffset,b=void 0===h?0:h,v=fe(t,{boundary:s,rootBoundary:c,padding:u,altBoundary:p}),x=X(t.placement),y=Y(t.placement),w=!y,Z=J(x),S="x"===Z?"y":"x",$=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,P="function"===typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,I="number"===typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if($){if(i){var N,z="y"===Z?L:E,W="y"===Z?M:A,F="y"===Z?"height":"width",H=$[Z],V=H+v[z],B=H-v[W],q=g?-C[F]/2:0,G=y===j?k[F]:C[F],U=y===j?-C[F]:-k[F],K=t.elements.arrow,_=g&&K?O(K):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[z],te=Q[W],oe=me(0,k[F],_[F]),ne=w?k[F]/2-q-oe-ee-I.mainAxis:G-oe-ee-I.mainAxis,re=w?-k[F]/2+q+oe+te+I.mainAxis:U+oe+te+I.mainAxis,ie=t.elements.arrow&&R(t.elements.arrow),ae=ie?"y"===Z?ie.clientTop||0:ie.clientLeft||0:0,le=null!=(N=null==D?void 0:D[Z])?N:0,se=H+re-le,ce=me(g?m(V,H+ne-le-ae):V,H,g?f(B,se):B);$[Z]=ce,T[Z]=ce-H}if(l){var pe,ue="x"===Z?L:E,de="x"===Z?M:A,ge=$[S],he="y"===S?"height":"width",be=ge+v[ue],ve=ge-v[de],xe=-1!==[L,E].indexOf(x),ye=null!=(pe=null==D?void 0:D[S])?pe:0,we=xe?be:ge-k[he]-C[he]-ye+I.altAxis,Ze=xe?ge+k[he]+C[he]-ye-I.altAxis:ve,Se=g&&xe?function(e,t,o){var n=me(e,t,o);return n>o?o:n}(we,ge,Ze):me(g?we:be,ge,g?Ze:ve);$[S]=Se,T[S]=Se-ge}t.modifiersData[n]=T}},requiresIfExists:["offset"]};var he={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,n=e.name,r=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=X(o.placement),s=J(l),c=[E,A].indexOf(l)>=0?"height":"width";if(i&&a){var p=function(e,t){return ue("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:de(e,T))}(r.padding,o),u=O(i),d="y"===s?L:E,f="y"===s?M:A,m=o.rects.reference[c]+o.rects.reference[s]-a[s]-o.rects.popper[c],g=a[s]-o.rects.reference[s],h=R(i),b=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,v=m/2-g/2,x=p[d],y=b-u[c]-p[f],w=b/2-u[c]/2+v,Z=me(x,w,y),S=s;o.modifiersData[n]=((t={})[S]=Z,t.centerOffset=Z-w,t)}},effect:function(e){var t=e.state,o=e.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&le(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function be(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function ve(e){return[L,A,M,E].some((function(t){return e[t]>=0}))}var xe=K({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,n=e.options,r=n.scroll,i=void 0===r||r,a=n.resize,l=void 0===a||a,s=c(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach((function(e){e.addEventListener("scroll",o.update,_)})),l&&s.addEventListener("resize",o.update,_),function(){i&&p.forEach((function(e){e.removeEventListener("scroll",o.update,_)})),l&&s.removeEventListener("resize",o.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=Q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,i=o.adaptive,a=void 0===i||i,l=o.roundOffsets,s=void 0===l||l,c={placement:X(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];u(r)&&v(r)&&(Object.assign(r.style,o),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});u(n)&&v(n)&&(Object.assign(n.style,i),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0===a||a,s=o.fallbackPlacements,c=o.padding,p=o.boundary,u=o.rootBoundary,d=o.altBoundary,f=o.flipVariations,m=void 0===f||f,g=o.allowedAutoPlacements,h=t.options.placement,b=X(h),v=s||(b===h||!m?[re(h)]:function(e){if(X(e)===D)return[];var t=re(e);return[ae(e),t,ae(t)]}(h)),x=[h].concat(v).reduce((function(e,o){return e.concat(X(o)===D?function(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,c=void 0===s?H:s,p=Y(n),u=p?l?F:F.filter((function(e){return Y(e)===p})):T,d=u.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=u);var f=d.reduce((function(t,o){return t[o]=fe(e,{placement:o,boundary:r,rootBoundary:i,padding:a})[X(o)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:o,boundary:p,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:g}):o)}),[]),y=t.rects.reference,w=t.rects.popper,Z=new Map,S=!0,O=x[0],$=0;$=0,R=I?"width":"height",N=fe(t,{placement:k,boundary:p,rootBoundary:u,altBoundary:d,padding:c}),z=I?P?A:E:P?M:L;y[R]>w[R]&&(z=re(z));var W=re(z),V=[];if(i&&V.push(N[C]<=0),l&&V.push(N[z]<=0,N[W]<=0),V.every((function(e){return e}))){O=k,S=!1;break}Z.set(k,V)}if(S)for(var B=function(e){var t=x.find((function(t){var o=Z.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},q=m?3:1;q>0;q--){if("break"===B(q))break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ge,he,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,n=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=fe(t,{elementContext:"reference"}),l=fe(t,{altBoundary:!0}),s=be(a,n),c=be(l,r,i),p=ve(s),u=ve(c);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]}),ye=o(8385),we=o(5893);const Ze=["anchorEl","children","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Se=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Oe(e){return"function"===typeof e?e():e}const $e={},ke=r.forwardRef((function(e,t){const{anchorEl:o,children:s,direction:c,disablePortal:p,modifiers:u,open:d,placement:f,popperOptions:m,popperRef:g,TransitionProps:h}=e,b=(0,i.Z)(e,Ze),v=r.useRef(null),x=(0,a.Z)(v,t),y=r.useRef(null),w=(0,a.Z)(y,g),Z=r.useRef(w);(0,l.Z)((()=>{Z.current=w}),[w]),r.useImperativeHandle(g,(()=>y.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,c),[O,$]=r.useState(S);r.useEffect((()=>{y.current&&y.current.forceUpdate()})),(0,l.Z)((()=>{if(!o||!d)return;Oe(o);let e=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{$(e.placement)}}];null!=u&&(e=e.concat(u)),m&&null!=m.modifiers&&(e=e.concat(m.modifiers));const t=xe(Oe(o),v.current,(0,n.Z)({placement:S},m,{modifiers:e}));return Z.current(t),()=>{t.destroy(),Z.current(null)}}),[o,p,u,d,m,S]);const k={placement:O};return null!==h&&(k.TransitionProps=h),(0,we.jsx)("div",(0,n.Z)({ref:x,role:"tooltip"},b,{children:"function"===typeof s?s(k):s}))}));var Ce=r.forwardRef((function(e,t){const{anchorEl:o,children:a,container:l,direction:c="ltr",disablePortal:p=!1,keepMounted:u=!1,modifiers:d,open:f,placement:m="bottom",popperOptions:g=$e,popperRef:h,style:b,transition:v=!1}=e,x=(0,i.Z)(e,Se),[y,w]=r.useState(!0);if(!u&&!f&&(!v||y))return null;const Z=l||(o?(0,s.Z)(Oe(o)).body:void 0);return(0,we.jsx)(ye.Z,{disablePortal:p,container:Z,children:(0,we.jsx)(ke,(0,n.Z)({anchorEl:o,direction:c,disablePortal:p,modifiers:d,ref:t,open:v?!y:f,placement:m,popperOptions:g,popperRef:h},x,{style:(0,n.Z)({position:"fixed",top:0,left:0,display:f||!u||v&&!y?null:"none"},b),TransitionProps:v?{in:f,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:null,children:a}))})})),Pe=o(4168);var Ie=r.forwardRef((function(e,t){const o=(0,Pe.Z)();return(0,we.jsx)(Ce,(0,n.Z)({direction:null==o?void 0:o.direction},e,{ref:t}))}))},6285:function(e,t,o){"use strict";var n=o(8442);t.Z=e=>!e||!(0,n.Z)(e)},1163:function(e,t,o){e.exports=o(387)}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[900],{5949:function(e,t,o){"use strict";o.d(t,{D:function(){return p},Z:function(){return f}});var n=o(7462),r=o(7294),i=o(7579),a=o(8925),l=o(3633),s=o(7960);function c(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function p(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:r="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let p=a?l.trim():l;o&&(p=p.toLowerCase()),t&&(p=c(p));const u=e.filter((e=>{let n=(i||s)(e);return o&&(n=n.toLowerCase()),t&&(n=c(n)),"start"===r?0===n.indexOf(p):n.indexOf(p)>-1}));return"number"===typeof n?u.slice(0,n):u}}function u(e,t){for(let o=0;o{var t;return null!=(t=e.label)?t:e}),isOptionEqualToValue:C=((e,t)=>e===t),groupBy:P,handleHomeEndKeys:I=!e.freeSolo,id:R,includeInputInList:L=!1,inputValue:M,multiple:A=!1,onChange:E,onClose:D,onHighlightChange:T,onInputChange:j,onOpen:N,open:z,openOnFocus:W=!1,options:F,readOnly:H=!1,selectOnFocus:V=!e.freeSolo,value:B}=e,q=(0,i.Z)(R);let G=k;G=e=>{const t=k(e);return"string"!==typeof t?String(t):t};const U=r.useRef(!1),K=r.useRef(!0),_=r.useRef(null),X=r.useRef(null),[Y,J]=r.useState(null),[Q,ee]=r.useState(-1),te=o?0:-1,oe=r.useRef(te),[ne,re]=(0,a.Z)({controlled:B,default:b,name:h}),[ie,ae]=(0,a.Z)({controlled:M,default:"",name:h,state:"inputValue"}),[le,se]=r.useState(!1),ce=r.useCallback(((e,t)=>{if(!(A?ne.length{const e=ne!==pe.current;pe.current=ne,le&&!e||O&&!e||ce(null,ne)}),[ne,ce,le,pe,O]);const[ue,de]=(0,a.Z)({controlled:z,default:!1,name:h,state:"open"}),[fe,me]=r.useState(!0),ge=!A&&null!=ne&&ie===G(ne),he=ue&&!H,be=he?Z(F.filter((e=>!S||!(A?ne:[ne]).some((t=>null!==t&&C(e,t))))),{inputValue:ge&&fe?"":ie,getOptionLabel:G}):[],ve=ue&&be.length>0&&!H;const xe=(0,l.Z)((e=>{-1===e?_.current.focus():Y.querySelector(`[data-tag-index="${e}"]`).focus()}));r.useEffect((()=>{A&&Q>ne.length-1&&(ee(-1),xe(-1))}),[ne,A,Q,xe]);const ye=(0,l.Z)((({event:e,index:t,reason:o="auto"})=>{if(oe.current=t,-1===t?_.current.removeAttribute("aria-activedescendant"):_.current.setAttribute("aria-activedescendant",`${q}-option-${t}`),T&&T(e,-1===t?null:be[t],o),!X.current)return;const n=X.current.querySelector('[role="option"].Mui-focused');n&&(n.classList.remove("Mui-focused"),n.classList.remove("Mui-focusVisible"));const r=X.current.parentElement.querySelector('[role="listbox"]');if(!r)return;if(-1===t)return void(r.scrollTop=0);const i=X.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add("Mui-focused"),"keyboard"===o&&i.classList.add("Mui-focusVisible"),r.scrollHeight>r.clientHeight&&"mouse"!==o)){const e=i,t=r.clientHeight+r.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?r.scrollTop=o-r.clientHeight:e.offsetTop-e.offsetHeight*(P?1.3:0){if(!he)return;const i=function(e,t){if(!X.current||-1===e)return-1;let o=e;for(;;){if("next"===t&&o===be.length||"previous"===t&&-1===o)return-1;const e=X.current.querySelector(`[data-option-index="${o}"]`),n=!y&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||n))return o;o+="next"===t?1:-1}}((()=>{const e=be.length-1;if("reset"===o)return te;if("start"===o)return 0;if("end"===o)return e;const t=oe.current+o;return t<0?-1===t&&L?-1:w&&-1!==oe.current||Math.abs(o)>1?0:e:t>e?t===e+1&&L?-1:w||Math.abs(o)>1?e:0:t})(),n);if(ye({index:i,reason:r,event:e}),t&&"reset"!==o)if(-1===i)_.current.value=ie;else{const e=G(be[i]);_.current.value=e;0===e.toLowerCase().indexOf(ie.toLowerCase())&&ie.length>0&&_.current.setSelectionRange(ie.length,e.length)}})),Ze=r.useCallback((()=>{if(!he)return;const e=A?ne[0]:ne;if(0!==be.length&&null!=e){if(X.current)if(null==e)oe.current>=be.length-1?ye({index:be.length-1}):ye({index:oe.current});else{const t=be[oe.current];if(A&&t&&-1!==u(ne,(e=>C(t,e))))return;const o=u(be,(t=>C(t,e)));-1===o?we({diff:"reset"}):ye({index:o})}}else we({diff:"reset"})}),[be.length,!A&&ne,S,we,ye,he,ie,A]),Se=(0,l.Z)((e=>{(0,s.Z)(X,e),e&&Ze()}));r.useEffect((()=>{Ze()}),[Ze]);const Oe=e=>{ue||(de(!0),me(!0),N&&N(e))},$e=(e,t)=>{ue&&(de(!1),D&&D(e,t))},ke=(e,t,o,n)=>{if(Array.isArray(ne)){if(ne.length===t.length&&ne.every(((e,o)=>e===t[o])))return}else if(ne===t)return;E&&E(e,t,o,n),re(t)},Ce=r.useRef(!1),Pe=(e,t,o="selectOption",n="options")=>{let r=o,i=t;if(A){i=Array.isArray(ne)?ne.slice():[];const e=u(i,(e=>C(t,e)));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),r="removeOption")}ce(e,i),ke(e,i,r,{option:t}),x||e.ctrlKey||e.metaKey||$e(e,r),(!0===p||"touch"===p&&Ce.current||"mouse"===p&&!Ce.current)&&_.current.blur()};const Ie=(e,t)=>{if(!A)return;$e(e,"toggleInput");let o=Q;-1===Q?""===ie&&"previous"===t&&(o=ne.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===ne.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===ne.length||"previous"===t&&-1===o)return-1;const e=Y.querySelector(`[data-tag-index="${o}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),ee(o),xe(o)},Re=e=>{U.current=!0,ae(""),j&&j(e,"","clear"),ke(e,A?[]:null,"clear")},Le=e=>o=>{if(e.onKeyDown&&e.onKeyDown(o),!o.defaultMuiPrevented&&(-1!==Q&&-1===["ArrowLeft","ArrowRight"].indexOf(o.key)&&(ee(-1),xe(-1)),229!==o.which))switch(o.key){case"Home":he&&I&&(o.preventDefault(),we({diff:"start",direction:"next",reason:"keyboard",event:o}));break;case"End":he&&I&&(o.preventDefault(),we({diff:"end",direction:"previous",reason:"keyboard",event:o}));break;case"PageUp":o.preventDefault(),we({diff:-5,direction:"previous",reason:"keyboard",event:o}),Oe(o);break;case"PageDown":o.preventDefault(),we({diff:5,direction:"next",reason:"keyboard",event:o}),Oe(o);break;case"ArrowDown":o.preventDefault(),we({diff:1,direction:"next",reason:"keyboard",event:o}),Oe(o);break;case"ArrowUp":o.preventDefault(),we({diff:-1,direction:"previous",reason:"keyboard",event:o}),Oe(o);break;case"ArrowLeft":Ie(o,"previous");break;case"ArrowRight":Ie(o,"next");break;case"Enter":if(-1!==oe.current&&he){const e=be[oe.current],n=!!$&&$(e);if(o.preventDefault(),n)return;Pe(o,e,"selectOption"),t&&_.current.setSelectionRange(_.current.value.length,_.current.value.length)}else O&&""!==ie&&!1===ge&&(A&&o.preventDefault(),Pe(o,ie,"createOption","freeSolo"));break;case"Escape":he?(o.preventDefault(),o.stopPropagation(),$e(o,"escape")):g&&(""!==ie||A&&ne.length>0)&&(o.preventDefault(),o.stopPropagation(),Re(o));break;case"Backspace":if(A&&!H&&""===ie&&ne.length>0){const e=-1===Q?ne.length-1:Q,t=ne.slice();t.splice(e,1),ke(o,t,"removeOption",{option:ne[e]})}}},Me=e=>{se(!0),W&&!U.current&&Oe(e)},Ae=e=>{null!==X.current&&X.current.parentElement.contains(document.activeElement)?_.current.focus():(se(!1),K.current=!0,U.current=!1,c&&-1!==oe.current&&he?Pe(e,be[oe.current],"blur"):c&&O&&""!==ie?Pe(e,ie,"blur","freeSolo"):m&&ce(e,ne),$e(e,"blur"))},Ee=e=>{const t=e.target.value;ie!==t&&(ae(t),me(!1),j&&j(e,t,"input")),""===t?v||A||ke(e,null,"clear"):Oe(e)},De=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Te=()=>{Ce.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Pe(e,be[t],"selectOption"),Ce.current=!1},Ne=e=>t=>{const o=ne.slice();o.splice(e,1),ke(t,o,"removeOption",{option:ne[e]})},ze=e=>{ue?$e(e,"toggleInput"):Oe(e)},We=e=>{e.target.getAttribute("id")!==q&&e.preventDefault()},Fe=()=>{_.current.focus(),V&&K.current&&_.current.selectionEnd-_.current.selectionStart===0&&_.current.select(),K.current=!1},He=e=>{""!==ie&&ue||ze(e)};let Ve=O&&ie.length>0;Ve=Ve||(A?ne.length>0:null!==ne);let Be=be;if(P){new Map;Be=be.reduce(((e,t,o)=>{const n=P(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return f&&le&&Ae(),{getRootProps:(e={})=>(0,n.Z)({"aria-owns":ve?`${q}-listbox`:null,role:"combobox","aria-expanded":ve},e,{onKeyDown:Le(e),onMouseDown:We,onClick:Fe}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:ie,onBlur:Ae,onFocus:Me,onChange:Ee,onMouseDown:He,"aria-activedescendant":he?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ve?`${q}-listbox`:void 0,autoComplete:"off",ref:_,autoCapitalize:"none",spellCheck:"false"}),getClearProps:()=>({tabIndex:-1,onClick:Re}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:ze}),getTagProps:({index:e})=>(0,n.Z)({key:e,"data-tag-index":e,tabIndex:-1},!H&&{onDelete:Ne(e)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Se,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const o=(A?ne:[ne]).some((e=>null!=e&&C(t,e))),n=!!$&&$(t);return{key:G(t),tabIndex:-1,role:"option",id:`${q}-option-${e}`,onMouseOver:De,onClick:je,onTouchStart:Te,"data-option-index":e,"aria-disabled":n,"aria-selected":o}},id:q,inputValue:ie,value:ne,dirty:Ve,popupOpen:he,focused:le||-1!==Q,anchorEl:Y,setAnchorEl:J,focusedTag:Q,groupedOptions:Be}}},3554:function(e,t,o){"use strict";o.d(t,{Z:function(){return i}});var n=o(7462),r=o(8442);function i(e,t={},o){return(0,r.Z)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,o)})}},9890:function(e,t,o){"use strict";o.d(t,{Z:function(){return B}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(7192),s=o(5949),c=o(1796),p=o(4606),u=o(1496),d=o(3616),f=o(8216),m=o(8979);function g(e){return(0,m.Z)("MuiListSubheader",e)}(0,o(6087).Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var h=o(5893);const b=["className","color","component","disableGutters","disableSticky","inset"],v=(0,u.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${(0,f.Z)(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,r.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:e.palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:e.palette.background.paper})));var x,y,w=i.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:s="default",component:c="li",disableGutters:p=!1,disableSticky:u=!1,inset:m=!1}=o,x=(0,n.Z)(o,b),y=(0,r.Z)({},o,{color:s,component:c,disableGutters:p,disableSticky:u,inset:m}),w=(e=>{const{classes:t,color:o,disableGutters:n,inset:r,disableSticky:i}=e,a={root:["root","default"!==o&&`color${(0,f.Z)(o)}`,!n&&"gutters",r&&"inset",!i&&"sticky"]};return(0,l.Z)(a,g,t)})(y);return(0,h.jsx)(v,(0,r.Z)({as:c,className:(0,a.Z)(w.root,i),ref:t,ownerState:y},x))})),Z=o(5113),S=o(4799),O=o(7918),$=o(7021),k=o(5827),C=o(4656),P=o(4707),I=(0,o(7892).Z)((0,h.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),R=o(224),L=o(482);const M=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],A=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:r,hasPopupIcon:i,inputFocused:a,size:l}=o;return[{[`& .${L.Z.tag}`]:t.tag},{[`& .${L.Z.tag}`]:t[`tagSize${(0,f.Z)(l)}`]},{[`& .${L.Z.inputRoot}`]:t.inputRoot},{[`& .${L.Z.input}`]:t.input},{[`& .${L.Z.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,r&&t.hasClearIcon]}})((({ownerState:e})=>(0,r.Z)({[`&.${L.Z.focused} .${L.Z.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${L.Z.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${L.Z.tag}`]:(0,r.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${L.Z.inputRoot}`]:{flexWrap:"wrap",[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:30},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:56},[`& .${L.Z.input}`]:{width:0,minWidth:30}},[`& .${$.Z.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$.Z.root}.${k.Z.sizeSmall}`]:{[`& .${$.Z.input}`]:{padding:"2px 4px 3px 0"}},[`& .${C.Z.root}`]:{padding:9,[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:39},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:65},[`& .${L.Z.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${L.Z.endAdornment}`]:{right:9}},[`& .${C.Z.root}.${k.Z.sizeSmall}`]:{padding:6,[`& .${L.Z.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${P.Z.root}`]:{paddingTop:19,paddingLeft:8,[`.${L.Z.hasPopupIcon}&, .${L.Z.hasClearIcon}&`]:{paddingRight:39},[`.${L.Z.hasPopupIcon}.${L.Z.hasClearIcon}&`]:{paddingRight:65},[`& .${P.Z.input}`]:{padding:"7px 4px"},[`& .${L.Z.endAdornment}`]:{right:9}},[`& .${P.Z.root}.${k.Z.sizeSmall}`]:{paddingBottom:1,[`& .${P.Z.input}`]:{padding:"2.5px 4px"}},[`& .${k.Z.hiddenLabel}`]:{paddingTop:8},[`& .${L.Z.input}`]:(0,r.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),E=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),D=(0,u.ZP)(S.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),T=(0,u.ZP)(S.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,r.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>(0,r.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),j=(0,u.ZP)(p.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${L.Z.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>(0,r.Z)({zIndex:e.zIndex.modal},t.disablePortal&&{position:"absolute"}))),N=(0,u.ZP)(Z.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,r.Z)({},e.typography.body1,{overflow:"auto"}))),z=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),W=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),F=(0,u.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${L.Z.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${L.Z.focused}`]:{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`&.${L.Z.focusVisible}`]:{backgroundColor:e.palette.action.focus},'&[aria-selected="true"]':{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${L.Z.focused}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.palette.action.selected}},[`&.${L.Z.focusVisible}`]:{backgroundColor:(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),H=(0,u.ZP)(w,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:e.palette.background.paper,top:-8}))),V=(0,u.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${L.Z.option}`]:{paddingLeft:24}});var B=i.forwardRef((function(e,t){var o,c;const u=(0,d.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:m=!1,autoHighlight:g=!1,autoSelect:b=!1,blurOnSelect:v=!1,ChipProps:w,className:S,clearIcon:$=x||(x=(0,h.jsx)(I,{fontSize:"small"})),clearOnBlur:k=!u.freeSolo,clearOnEscape:C=!1,clearText:P="Clear",closeText:B="Close",componentsProps:q={},defaultValue:G=(u.multiple?[]:null),disableClearable:U=!1,disableCloseOnSelect:K=!1,disabled:_=!1,disabledItemsFocusable:X=!1,disableListWrap:Y=!1,disablePortal:J=!1,filterSelectedOptions:Q=!1,forcePopupIcon:ee="auto",freeSolo:te=!1,fullWidth:oe=!1,getLimitTagsText:ne=(e=>`+${e}`),getOptionLabel:re=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:ie,handleHomeEndKeys:ae=!u.freeSolo,includeInputInList:le=!1,limitTags:se=-1,ListboxComponent:ce="ul",ListboxProps:pe,loading:ue=!1,loadingText:de="Loading\u2026",multiple:fe=!1,noOptionsText:me="No options",openOnFocus:ge=!1,openText:he="Open",PaperComponent:be=Z.Z,PopperComponent:ve=p.Z,popupIcon:xe=y||(y=(0,h.jsx)(R.Z,{})),readOnly:ye=!1,renderGroup:we,renderInput:Ze,renderOption:Se,renderTags:Oe,selectOnFocus:$e=!u.freeSolo,size:ke="medium"}=u,Ce=(0,n.Z)(u,M),{getRootProps:Pe,getInputProps:Ie,getInputLabelProps:Re,getPopupIndicatorProps:Le,getClearProps:Me,getTagProps:Ae,getListboxProps:Ee,getOptionProps:De,value:Te,dirty:je,id:Ne,popupOpen:ze,focused:We,focusedTag:Fe,anchorEl:He,setAnchorEl:Ve,inputValue:Be,groupedOptions:qe}=(0,s.Z)((0,r.Z)({},u,{componentName:"Autocomplete"})),Ge=!U&&!_&&je&&!ye,Ue=(!te||!0===ee)&&!1!==ee,Ke=(0,r.Z)({},u,{disablePortal:J,focused:We,fullWidth:oe,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:-1===Fe,popupOpen:ze,size:ke}),_e=(e=>{const{classes:t,disablePortal:o,focused:n,fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,popupOpen:c,size:p}=e,u={root:["root",n&&"focused",r&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${(0,f.Z)(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(u,L.q,t)})(Ke);let Xe;if(fe&&Te.length>0){const e=e=>(0,r.Z)({className:(0,a.Z)(_e.tag),disabled:_},Ae(e));Xe=Oe?Oe(Te,e):Te.map(((t,o)=>(0,h.jsx)(O.Z,(0,r.Z)({label:re(t),size:ke},e({index:o}),w))))}if(se>-1&&Array.isArray(Xe)){const e=Xe.length-se;!We&&e>0&&(Xe=Xe.splice(0,se),Xe.push((0,h.jsx)("span",{className:_e.tag,children:ne(e)},Xe.length)))}const Ye=we||(e=>(0,h.jsxs)("li",{children:[(0,h.jsx)(H,{className:_e.groupLabel,ownerState:Ke,component:"div",children:e.group}),(0,h.jsx)(V,{className:_e.groupUl,ownerState:Ke,children:e.children})]},e.key)),Je=Se||((e,t)=>(0,h.jsx)("li",(0,r.Z)({},e,{children:re(t)}))),Qe=(e,t)=>{const o=De({option:e,index:t});return Je((0,r.Z)({},o,{className:_e.option}),e,{selected:o["aria-selected"],inputValue:Be})};return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(A,(0,r.Z)({ref:t,className:(0,a.Z)(_e.root,S),ownerState:Ke},Pe(Ce),{children:Ze({id:Ne,disabled:_,fullWidth:!0,size:"small"===ke?"small":void 0,InputLabelProps:Re(),InputProps:{ref:Ve,className:_e.inputRoot,startAdornment:Xe,endAdornment:(0,h.jsxs)(E,{className:_e.endAdornment,ownerState:Ke,children:[Ge?(0,h.jsx)(D,(0,r.Z)({},Me(),{"aria-label":P,title:P,ownerState:Ke},q.clearIndicator,{className:(0,a.Z)(_e.clearIndicator,null==(o=q.clearIndicator)?void 0:o.className),children:$})):null,Ue?(0,h.jsx)(T,(0,r.Z)({},Le(),{disabled:_,"aria-label":ze?B:he,title:ze?B:he,className:(0,a.Z)(_e.popupIndicator),ownerState:Ke,children:xe})):null]})},inputProps:(0,r.Z)({className:(0,a.Z)(_e.input),disabled:_,readOnly:ye},Ie())})})),ze&&He?(0,h.jsx)(j,{as:ve,className:(0,a.Z)(_e.popper),disablePortal:J,style:{width:He?He.clientWidth:null},ownerState:Ke,role:"presentation",anchorEl:He,open:!0,children:(0,h.jsxs)(N,(0,r.Z)({ownerState:Ke,as:be},q.paper,{className:(0,a.Z)(_e.paper,null==(c=q.paper)?void 0:c.className),children:[ue&&0===qe.length?(0,h.jsx)(z,{className:_e.loading,ownerState:Ke,children:de}):null,0!==qe.length||te||ue?null:(0,h.jsx)(W,{className:_e.noOptions,ownerState:Ke,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:me}),qe.length>0?(0,h.jsx)(F,(0,r.Z)({as:ce,className:_e.listbox,ownerState:Ke},Ee(),pe,{children:qe.map(((e,t)=>ie?Ye({key:e.key,group:e.group,children:e.options.map(((t,o)=>Qe(t,e.index+o)))}):Qe(e,t)))})):null]}))}):null]})}))},482:function(e,t,o){"use strict";o.d(t,{q:function(){return r}});var n=o(8979);function r(e){return(0,n.Z)("MuiAutocomplete",e)}const i=(0,o(6087).Z)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);t.Z=i},7918:function(e,t,o){"use strict";o.d(t,{Z:function(){return O}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(7192),s=o(1796),c=o(7892),p=o(5893),u=(0,c.Z)((0,p.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),d=o(1705),f=o(8216),m=o(7739),g=o(3616),h=o(1496),b=o(8979);function v(e){return(0,b.Z)("MuiChip",e)}var x=(0,o(6087).Z)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]);const y=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],w=(0,h.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{color:n,clickable:r,onDelete:i,size:a,variant:l}=o;return[{[`& .${x.avatar}`]:t.avatar},{[`& .${x.avatar}`]:t[`avatar${(0,f.Z)(a)}`]},{[`& .${x.avatar}`]:t[`avatarColor${(0,f.Z)(n)}`]},{[`& .${x.icon}`]:t.icon},{[`& .${x.icon}`]:t[`icon${(0,f.Z)(a)}`]},{[`& .${x.icon}`]:t[`iconColor${(0,f.Z)(n)}`]},{[`& .${x.deleteIcon}`]:t.deleteIcon},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,f.Z)(a)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconColor${(0,f.Z)(n)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconOutlinedColor${(0,f.Z)(n)}`]},t.root,t[`size${(0,f.Z)(a)}`],t[`color${(0,f.Z)(n)}`],r&&t.clickable,r&&"default"!==n&&t[`clickableColor${(0,f.Z)(n)})`],i&&t.deletable,i&&"default"!==n&&t[`deletableColor${(0,f.Z)(n)}`],t[l],"outlined"===l&&t[`outlined${(0,f.Z)(n)}`]]}})((({theme:e,ownerState:t})=>{const o=(0,s.Fq)(e.palette.text.primary,.26);return(0,r.Z)({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.text.primary,backgroundColor:e.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${x.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${x.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},[`& .${x.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${x.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${x.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${x.icon}`]:(0,r.Z)({color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==t.color&&{color:"inherit"}),[`& .${x.deleteIcon}`]:(0,r.Z)({WebkitTapHighlightColor:"transparent",color:o,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,s.Fq)(o,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:(0,s.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:e.palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.onDelete&&{[`&.${x.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${x.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,r.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:e.shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${x.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,r.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${x.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${x.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${x.avatar}`]:{marginLeft:4},[`& .${x.avatarSmall}`]:{marginLeft:2},[`& .${x.icon}`]:{marginLeft:4},[`& .${x.iconSmall}`]:{marginLeft:2},[`& .${x.deleteIcon}`]:{marginRight:5},[`& .${x.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,s.Fq)(e.palette[t.color].main,.7)}`,[`&.${x.clickable}:hover`]:{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${x.deleteIcon}`]:{color:(0,s.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),Z=(0,h.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:o}=e,{size:n}=o;return[t.label,t[`label${(0,f.Z)(n)}`]]}})((({ownerState:e})=>(0,r.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function S(e){return"Backspace"===e.key||"Delete"===e.key}var O=i.forwardRef((function(e,t){const o=(0,g.Z)({props:e,name:"MuiChip"}),{avatar:s,className:c,clickable:h,color:b="default",component:x,deleteIcon:O,disabled:$=!1,icon:k,label:C,onClick:P,onDelete:I,onKeyDown:R,onKeyUp:L,size:M="medium",variant:A="filled"}=o,E=(0,n.Z)(o,y),D=i.useRef(null),T=(0,d.Z)(D,t),j=e=>{e.stopPropagation(),I&&I(e)},N=!(!1===h||!P)||h,z="small"===M,W=N||I?m.Z:x||"div",F=(0,r.Z)({},o,{component:W,disabled:$,size:M,color:b,onDelete:!!I,clickable:N,variant:A}),H=(e=>{const{classes:t,disabled:o,size:n,color:r,onDelete:i,clickable:a,variant:s}=e,c={root:["root",s,o&&"disabled",`size${(0,f.Z)(n)}`,`color${(0,f.Z)(r)}`,a&&"clickable",a&&`clickableColor${(0,f.Z)(r)}`,i&&"deletable",i&&`deletableColor${(0,f.Z)(r)}`,`${s}${(0,f.Z)(r)}`],label:["label",`label${(0,f.Z)(n)}`],avatar:["avatar",`avatar${(0,f.Z)(n)}`,`avatarColor${(0,f.Z)(r)}`],icon:["icon",`icon${(0,f.Z)(n)}`,`iconColor${(0,f.Z)(r)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,f.Z)(n)}`,`deleteIconColor${(0,f.Z)(r)}`,`deleteIconOutlinedColor${(0,f.Z)(r)}`]};return(0,l.Z)(c,v,t)})(F),V=W===m.Z?(0,r.Z)({component:x||"div",focusVisibleClassName:H.focusVisible},I&&{disableRipple:!0}):{};let B=null;if(I){const e=(0,a.Z)("default"!==b&&("outlined"===A?H[`deleteIconOutlinedColor${(0,f.Z)(b)}`]:H[`deleteIconColor${(0,f.Z)(b)}`]),z&&H.deleteIconSmall);B=O&&i.isValidElement(O)?i.cloneElement(O,{className:(0,a.Z)(O.props.className,H.deleteIcon,e),onClick:j}):(0,p.jsx)(u,{className:(0,a.Z)(H.deleteIcon,e),onClick:j})}let q=null;s&&i.isValidElement(s)&&(q=i.cloneElement(s,{className:(0,a.Z)(H.avatar,s.props.className)}));let G=null;return k&&i.isValidElement(k)&&(G=i.cloneElement(k,{className:(0,a.Z)(H.icon,k.props.className)})),(0,p.jsxs)(w,(0,r.Z)({as:W,className:(0,a.Z)(H.root,c),disabled:!(!N||!$)||void 0,onClick:P,onKeyDown:e=>{e.currentTarget===e.target&&S(e)&&e.preventDefault(),R&&R(e)},onKeyUp:e=>{e.currentTarget===e.target&&(I&&S(e)?I(e):"Escape"===e.key&&D.current&&D.current.blur()),L&&L(e)},ref:T,ownerState:F},V,E,{children:[q||G,(0,p.jsx)(Z,{className:(0,a.Z)(H.label),ownerState:F,children:C}),B]}))}))},8263:function(e,t,o){"use strict";o.d(t,{ZP:function(){return x}});var n=o(3366),r=o(7462),i=o(7294),a=o(6010),l=o(5408),s=o(9707),c=o(7192),p=o(1496),u=o(3616);var d=i.createContext(),f=o(8673),m=o(5893);const g=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function h(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function b(e,t,o={}){if(!t||!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[o[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`];const{xs:n,sm:r,md:i,lg:a,xl:l}=e;return[Number(n)>0&&(o[`spacing-xs-${String(n)}`]||`spacing-xs-${String(n)}`),Number(r)>0&&(o[`spacing-sm-${String(r)}`]||`spacing-sm-${String(r)}`),Number(i)>0&&(o[`spacing-md-${String(i)}`]||`spacing-md-${String(i)}`),Number(a)>0&&(o[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(l)>0&&(o[`spacing-xl-${String(l)}`]||`spacing-xl-${String(l)}`)]}const v=(0,p.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{container:o,direction:n,item:r,lg:i,md:a,sm:l,spacing:s,wrap:c,xl:p,xs:u,zeroMinWidth:d}=e.ownerState;return[t.root,o&&t.container,r&&t.item,d&&t.zeroMinWidth,...b(s,o,t),"row"!==n&&t[`direction-xs-${String(n)}`],"wrap"!==c&&t[`wrap-xs-${String(c)}`],!1!==u&&t[`grid-xs-${String(u)}`],!1!==l&&t[`grid-sm-${String(l)}`],!1!==a&&t[`grid-md-${String(a)}`],!1!==i&&t[`grid-lg-${String(i)}`],!1!==p&&t[`grid-xl-${String(p)}`]]}})((({ownerState:e})=>(0,r.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const o=(0,l.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,l.k9)({theme:e},o,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${f.Z.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:o,rowSpacing:n}=t;let r={};if(o&&0!==n){const t=(0,l.P$)({values:n,breakpoints:e.breakpoints.values});r=(0,l.k9)({theme:e},t,(t=>{const o=e.spacing(t);return"0px"!==o?{marginTop:`-${h(o)}`,[`& > .${f.Z.item}`]:{paddingTop:h(o)}}:{}}))}return r}),(function({theme:e,ownerState:t}){const{container:o,columnSpacing:n}=t;let r={};if(o&&0!==n){const t=(0,l.P$)({values:n,breakpoints:e.breakpoints.values});r=(0,l.k9)({theme:e},t,(t=>{const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${h(o)})`,marginLeft:`-${h(o)}`,[`& > .${f.Z.item}`]:{paddingLeft:h(o)}}:{}}))}return r}),(function({theme:e,ownerState:t}){let o;return e.breakpoints.keys.reduce(((n,i)=>{let a={};if(t[i]&&(o=t[i]),!o)return n;if(!0===o)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===o)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=(0,l.P$)({values:t.columns,breakpoints:e.breakpoints.values}),c="object"===typeof s?s[i]:s;if(void 0===c||null===c)return n;const p=Math.round(o/c*1e8)/1e6+"%";let u={};if(t.container&&t.item&&0!==t.columnSpacing){const o=e.spacing(t.columnSpacing);if("0px"!==o){const e=`calc(${p} + ${h(o)})`;u={flexBasis:e,maxWidth:e}}}a=(0,r.Z)({flexBasis:p,flexGrow:0,maxWidth:p},u)}return 0===e.breakpoints.values[i]?Object.assign(n,a):n[e.breakpoints.up(i)]=a,n}),{})}));var x=i.forwardRef((function(e,t){const o=(0,u.Z)({props:e,name:"MuiGrid"}),l=(0,s.Z)(o),{className:p,columns:h,columnSpacing:x,component:y="div",container:w=!1,direction:Z="row",item:S=!1,lg:O=!1,md:$=!1,rowSpacing:k,sm:C=!1,spacing:P=0,wrap:I="wrap",xl:R=!1,xs:L=!1,zeroMinWidth:M=!1}=l,A=(0,n.Z)(l,g),E=k||P,D=x||P,T=i.useContext(d),j=h||T||12,N=(0,r.Z)({},l,{columns:j,container:w,direction:Z,item:S,lg:O,md:$,sm:C,rowSpacing:E,columnSpacing:D,wrap:I,xl:R,xs:L,zeroMinWidth:M}),z=(e=>{const{classes:t,container:o,direction:n,item:r,lg:i,md:a,sm:l,spacing:s,wrap:p,xl:u,xs:d,zeroMinWidth:m}=e,g={root:["root",o&&"container",r&&"item",m&&"zeroMinWidth",...b(s,o),"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==p&&`wrap-xs-${String(p)}`,!1!==d&&`grid-xs-${String(d)}`,!1!==l&&`grid-sm-${String(l)}`,!1!==a&&`grid-md-${String(a)}`,!1!==i&&`grid-lg-${String(i)}`,!1!==u&&`grid-xl-${String(u)}`]};return(0,c.Z)(g,f.H,t)})(N);return W=(0,m.jsx)(v,(0,r.Z)({ownerState:N,className:(0,a.Z)(z.root,p),as:y,ref:t},A)),12!==j?(0,m.jsx)(d.Provider,{value:j,children:W}):W;var W}))},8673:function(e,t,o){"use strict";o.d(t,{H:function(){return r}});var n=o(8979);function r(e){return(0,n.Z)("MuiGrid",e)}const i=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=(0,o(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...i.map((e=>`grid-xs-${e}`)),...i.map((e=>`grid-sm-${e}`)),...i.map((e=>`grid-md-${e}`)),...i.map((e=>`grid-lg-${e}`)),...i.map((e=>`grid-xl-${e}`))]);t.Z=a},4606:function(e,t,o){"use strict";o.d(t,{Z:function(){return Ie}});var n=o(7462),r=o(7294),i=o(3366),a=o(67),l=o(6600),s=o(7094);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){return e instanceof c(e).Element||e instanceof Element}function u(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!==typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var f=Math.max,m=Math.min,g=Math.round;function h(e,t){void 0===t&&(t=!1);var o=e.getBoundingClientRect(),n=1,r=1;if(u(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(n=g(o.width)/a||1),i>0&&(r=g(o.height)/i||1)}return{width:o.width/n,height:o.height/r,top:o.top/r,right:o.right/n,bottom:o.bottom/r,left:o.left/n,x:o.left/n,y:o.top/r}}function b(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function v(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function y(e){return h(x(e)).left+b(e).scrollLeft}function w(e){return c(e).getComputedStyle(e)}function Z(e){var t=w(e),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function S(e,t,o){void 0===o&&(o=!1);var n=u(t),r=u(t)&&function(e){var t=e.getBoundingClientRect(),o=g(t.width)/e.offsetWidth||1,n=g(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),i=x(t),a=h(e,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!o)&&(("body"!==v(t)||Z(i))&&(l=function(e){return e!==c(e)&&u(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:b(e);var t}(t)),u(t)?((s=h(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=y(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function O(e){var t=h(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function $(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||x(e)}function k(e){return["html","body","#document"].indexOf(v(e))>=0?e.ownerDocument.body:u(e)&&Z(e)?e:k($(e))}function C(e,t){var o;void 0===t&&(t=[]);var n=k(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),i=c(n),a=r?[i].concat(i.visualViewport||[],Z(n)?n:[]):n,l=t.concat(a);return r?l:l.concat(C($(a)))}function P(e){return["table","td","th"].indexOf(v(e))>=0}function I(e){return u(e)&&"fixed"!==w(e).position?e.offsetParent:null}function R(e){for(var t=c(e),o=I(e);o&&P(o)&&"static"===w(o).position;)o=I(o);return o&&("html"===v(o)||"body"===v(o)&&"static"===w(o).position)?t:o||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&u(e)&&"fixed"===w(e).position)return null;for(var o=$(e);u(o)&&["html","body"].indexOf(v(o))<0;){var n=w(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}var L="top",M="bottom",A="right",E="left",D="auto",T=[L,M,A,E],j="start",N="end",z="viewport",W="popper",F=T.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+N])}),[]),H=[].concat(T,[D]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+N])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}function q(e){var t;return function(){return t||(t=new Promise((function(o){Promise.resolve().then((function(){t=void 0,o(e())}))}))),t}}var G={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),o=0;o=0?"x":"y"}function Q(e){var t,o=e.reference,n=e.element,r=e.placement,i=r?X(r):null,a=r?Y(r):null,l=o.x+o.width/2-n.width/2,s=o.y+o.height/2-n.height/2;switch(i){case L:t={x:l,y:o.y-n.height};break;case M:t={x:l,y:o.y+o.height};break;case A:t={x:o.x+o.width,y:s};break;case E:t={x:o.x-n.width,y:s};break;default:t={x:o.x,y:o.y}}var c=i?J(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case j:t[c]=t[c]-(o[p]/2-n[p]/2);break;case N:t[c]=t[c]+(o[p]/2-n[p]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,o=e.popper,n=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,m=void 0===f?0:f,h=a.y,b=void 0===h?0:h,v="function"===typeof u?u({x:m,y:b}):{x:m,y:b};m=v.x,b=v.y;var y=a.hasOwnProperty("x"),Z=a.hasOwnProperty("y"),S=E,O=L,$=window;if(p){var k=R(o),C="clientHeight",P="clientWidth";if(k===c(o)&&"static"!==w(k=x(o)).position&&"absolute"===l&&(C="scrollHeight",P="scrollWidth"),k=k,r===L||(r===E||r===A)&&i===N)O=M,b-=(d&&$.visualViewport?$.visualViewport.height:k[C])-n.height,b*=s?1:-1;if(r===E||(r===L||r===M)&&i===N)S=A,m-=(d&&$.visualViewport?$.visualViewport.width:k[P])-n.width,m*=s?1:-1}var I,D=Object.assign({position:l},p&&ee),T=!0===u?function(e){var t=e.x,o=e.y,n=window.devicePixelRatio||1;return{x:g(t*n)/n||0,y:g(o*n)/n||0}}({x:m,y:b}):{x:m,y:b};return m=T.x,b=T.y,s?Object.assign({},D,((I={})[O]=Z?"0":"",I[S]=y?"0":"",I.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",I)):Object.assign({},D,((t={})[O]=Z?b+"px":"",t[S]=y?m+"px":"",t.transform="",t))}var oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.offset,i=void 0===r?[0,0]:r,a=H.reduce((function(e,o){return e[o]=function(e,t,o){var n=X(e),r=[E,L].indexOf(n)>=0?-1:1,i="function"===typeof o?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[E,A].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(o,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},ne={left:"right",right:"left",bottom:"top",top:"bottom"};function re(e){return e.replace(/left|right|bottom|top/g,(function(e){return ne[e]}))}var ie={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return ie[e]}))}function le(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&d(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t){return t===z?se(function(e){var t=c(e),o=x(e),n=t.visualViewport,r=o.clientWidth,i=o.clientHeight,a=0,l=0;return n&&(r=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,l=n.offsetTop)),{width:r,height:i,x:a+y(e),y:l}}(e)):p(t)?function(e){var t=h(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):se(function(e){var t,o=x(e),n=b(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=f(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=f(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+y(e),s=-n.scrollTop;return"rtl"===w(r||o).direction&&(l+=f(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(x(e)))}function pe(e,t,o){var n="clippingParents"===t?function(e){var t=C($(e)),o=["absolute","fixed"].indexOf(w(e).position)>=0&&u(e)?R(e):e;return p(o)?t.filter((function(e){return p(e)&&le(e,o)&&"body"!==v(e)})):[]}(e):[].concat(t),r=[].concat(n,[o]),i=r[0],a=r.reduce((function(t,o){var n=ce(e,o);return t.top=f(n.top,t.top),t.right=m(n.right,t.right),t.bottom=m(n.bottom,t.bottom),t.left=f(n.left,t.left),t}),ce(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ue(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function de(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}function fe(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=void 0===n?e.placement:n,i=o.boundary,a=void 0===i?"clippingParents":i,l=o.rootBoundary,s=void 0===l?z:l,c=o.elementContext,u=void 0===c?W:c,d=o.altBoundary,f=void 0!==d&&d,m=o.padding,g=void 0===m?0:m,b=ue("number"!==typeof g?g:de(g,T)),v=u===W?"reference":W,y=e.rects.popper,w=e.elements[f?v:u],Z=pe(p(w)?w:w.contextElement||x(e.elements.popper),a,s),S=h(e.elements.reference),O=Q({reference:S,element:y,strategy:"absolute",placement:r}),$=se(Object.assign({},y,O)),k=u===W?$:S,C={top:Z.top-k.top+b.top,bottom:k.bottom-Z.bottom+b.bottom,left:Z.left-k.left+b.left,right:k.right-Z.right+b.right},P=e.modifiersData.offset;if(u===W&&P){var I=P[r];Object.keys(C).forEach((function(e){var t=[A,M].indexOf(e)>=0?1:-1,o=[L,M].indexOf(e)>=0?"y":"x";C[e]+=I[o]*t}))}return C}function me(e,t,o){return f(e,m(t,o))}var ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0!==a&&a,s=o.boundary,c=o.rootBoundary,p=o.altBoundary,u=o.padding,d=o.tether,g=void 0===d||d,h=o.tetherOffset,b=void 0===h?0:h,v=fe(t,{boundary:s,rootBoundary:c,padding:u,altBoundary:p}),x=X(t.placement),y=Y(t.placement),w=!y,Z=J(x),S="x"===Z?"y":"x",$=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,P="function"===typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,I="number"===typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if($){if(i){var N,z="y"===Z?L:E,W="y"===Z?M:A,F="y"===Z?"height":"width",H=$[Z],V=H+v[z],B=H-v[W],q=g?-C[F]/2:0,G=y===j?k[F]:C[F],U=y===j?-C[F]:-k[F],K=t.elements.arrow,_=g&&K?O(K):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[z],te=Q[W],oe=me(0,k[F],_[F]),ne=w?k[F]/2-q-oe-ee-I.mainAxis:G-oe-ee-I.mainAxis,re=w?-k[F]/2+q+oe+te+I.mainAxis:U+oe+te+I.mainAxis,ie=t.elements.arrow&&R(t.elements.arrow),ae=ie?"y"===Z?ie.clientTop||0:ie.clientLeft||0:0,le=null!=(N=null==D?void 0:D[Z])?N:0,se=H+re-le,ce=me(g?m(V,H+ne-le-ae):V,H,g?f(B,se):B);$[Z]=ce,T[Z]=ce-H}if(l){var pe,ue="x"===Z?L:E,de="x"===Z?M:A,ge=$[S],he="y"===S?"height":"width",be=ge+v[ue],ve=ge-v[de],xe=-1!==[L,E].indexOf(x),ye=null!=(pe=null==D?void 0:D[S])?pe:0,we=xe?be:ge-k[he]-C[he]-ye+I.altAxis,Ze=xe?ge+k[he]+C[he]-ye-I.altAxis:ve,Se=g&&xe?function(e,t,o){var n=me(e,t,o);return n>o?o:n}(we,ge,Ze):me(g?we:be,ge,g?Ze:ve);$[S]=Se,T[S]=Se-ge}t.modifiersData[n]=T}},requiresIfExists:["offset"]};var he={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,n=e.name,r=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=X(o.placement),s=J(l),c=[E,A].indexOf(l)>=0?"height":"width";if(i&&a){var p=function(e,t){return ue("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:de(e,T))}(r.padding,o),u=O(i),d="y"===s?L:E,f="y"===s?M:A,m=o.rects.reference[c]+o.rects.reference[s]-a[s]-o.rects.popper[c],g=a[s]-o.rects.reference[s],h=R(i),b=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,v=m/2-g/2,x=p[d],y=b-u[c]-p[f],w=b/2-u[c]/2+v,Z=me(x,w,y),S=s;o.modifiersData[n]=((t={})[S]=Z,t.centerOffset=Z-w,t)}},effect:function(e){var t=e.state,o=e.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&le(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function be(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function ve(e){return[L,A,M,E].some((function(t){return e[t]>=0}))}var xe=K({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,n=e.options,r=n.scroll,i=void 0===r||r,a=n.resize,l=void 0===a||a,s=c(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach((function(e){e.addEventListener("scroll",o.update,_)})),l&&s.addEventListener("resize",o.update,_),function(){i&&p.forEach((function(e){e.removeEventListener("scroll",o.update,_)})),l&&s.removeEventListener("resize",o.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=Q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,i=o.adaptive,a=void 0===i||i,l=o.roundOffsets,s=void 0===l||l,c={placement:X(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];u(r)&&v(r)&&(Object.assign(r.style,o),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});u(n)&&v(n)&&(Object.assign(n.style,i),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0===a||a,s=o.fallbackPlacements,c=o.padding,p=o.boundary,u=o.rootBoundary,d=o.altBoundary,f=o.flipVariations,m=void 0===f||f,g=o.allowedAutoPlacements,h=t.options.placement,b=X(h),v=s||(b===h||!m?[re(h)]:function(e){if(X(e)===D)return[];var t=re(e);return[ae(e),t,ae(t)]}(h)),x=[h].concat(v).reduce((function(e,o){return e.concat(X(o)===D?function(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,c=void 0===s?H:s,p=Y(n),u=p?l?F:F.filter((function(e){return Y(e)===p})):T,d=u.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=u);var f=d.reduce((function(t,o){return t[o]=fe(e,{placement:o,boundary:r,rootBoundary:i,padding:a})[X(o)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:o,boundary:p,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:g}):o)}),[]),y=t.rects.reference,w=t.rects.popper,Z=new Map,S=!0,O=x[0],$=0;$=0,R=I?"width":"height",N=fe(t,{placement:k,boundary:p,rootBoundary:u,altBoundary:d,padding:c}),z=I?P?A:E:P?M:L;y[R]>w[R]&&(z=re(z));var W=re(z),V=[];if(i&&V.push(N[C]<=0),l&&V.push(N[z]<=0,N[W]<=0),V.every((function(e){return e}))){O=k,S=!1;break}Z.set(k,V)}if(S)for(var B=function(e){var t=x.find((function(t){var o=Z.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},q=m?3:1;q>0;q--){if("break"===B(q))break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ge,he,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,n=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=fe(t,{elementContext:"reference"}),l=fe(t,{altBoundary:!0}),s=be(a,n),c=be(l,r,i),p=ve(s),u=ve(c);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]}),ye=o(8385),we=o(5893);const Ze=["anchorEl","children","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Se=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Oe(e){return"function"===typeof e?e():e}const $e={},ke=r.forwardRef((function(e,t){const{anchorEl:o,children:s,direction:c,disablePortal:p,modifiers:u,open:d,placement:f,popperOptions:m,popperRef:g,TransitionProps:h}=e,b=(0,i.Z)(e,Ze),v=r.useRef(null),x=(0,a.Z)(v,t),y=r.useRef(null),w=(0,a.Z)(y,g),Z=r.useRef(w);(0,l.Z)((()=>{Z.current=w}),[w]),r.useImperativeHandle(g,(()=>y.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,c),[O,$]=r.useState(S);r.useEffect((()=>{y.current&&y.current.forceUpdate()})),(0,l.Z)((()=>{if(!o||!d)return;Oe(o);let e=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{$(e.placement)}}];null!=u&&(e=e.concat(u)),m&&null!=m.modifiers&&(e=e.concat(m.modifiers));const t=xe(Oe(o),v.current,(0,n.Z)({placement:S},m,{modifiers:e}));return Z.current(t),()=>{t.destroy(),Z.current(null)}}),[o,p,u,d,m,S]);const k={placement:O};return null!==h&&(k.TransitionProps=h),(0,we.jsx)("div",(0,n.Z)({ref:x,role:"tooltip"},b,{children:"function"===typeof s?s(k):s}))}));var Ce=r.forwardRef((function(e,t){const{anchorEl:o,children:a,container:l,direction:c="ltr",disablePortal:p=!1,keepMounted:u=!1,modifiers:d,open:f,placement:m="bottom",popperOptions:g=$e,popperRef:h,style:b,transition:v=!1}=e,x=(0,i.Z)(e,Se),[y,w]=r.useState(!0);if(!u&&!f&&(!v||y))return null;const Z=l||(o?(0,s.Z)(Oe(o)).body:void 0);return(0,we.jsx)(ye.Z,{disablePortal:p,container:Z,children:(0,we.jsx)(ke,(0,n.Z)({anchorEl:o,direction:c,disablePortal:p,modifiers:d,ref:t,open:v?!y:f,placement:m,popperOptions:g,popperRef:h},x,{style:(0,n.Z)({position:"fixed",top:0,left:0,display:f||!u||v&&!y?null:"none"},b),TransitionProps:v?{in:f,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:null,children:a}))})})),Pe=o(4168);var Ie=r.forwardRef((function(e,t){const o=(0,Pe.Z)();return(0,we.jsx)(Ce,(0,n.Z)({direction:null==o?void 0:o.direction},e,{ref:t}))}))},6285:function(e,t,o){"use strict";var n=o(8442);t.Z=e=>!e||!(0,n.Z)(e)},1163:function(e,t,o){e.exports=o(387)}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/anvil-53b02ffa883f4c5a.js b/striker-ui/out/_next/static/chunks/pages/anvil-53b02ffa883f4c5a.js new file mode 100644 index 00000000..305b397d --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/anvil-53b02ffa883f4c5a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[817],{2852:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),c=n(7192),s=n(1796),l=n(8216),d=n(1964),u=n(3616),h=n(1496),f=n(9632),x=n(5893);const m=["className","color","edge","size","sx"],v=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,l.Z)(n.edge)}`],t[`size${(0,l.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${f.Z.thumb}`]:{width:16,height:16},[`& .${f.Z.switchBase}`]:{padding:4,[`&.${f.Z.checked}`]:{transform:"translateX(16px)"}}}))),p=(0,h.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${f.Z.input}`]:t.input},"default"!==n.color&&t[`color${(0,l.Z)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${f.Z.checked}`]:{transform:"translateX(20px)"},[`&.${f.Z.disabled}`]:{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},[`&.${f.Z.checked} + .${f.Z.track}`]:{opacity:.5},[`&.${f.Z.disabled} + .${f.Z.track}`]:{opacity:"light"===e.palette.mode?.12:.2},[`& .${f.Z.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>(0,o.Z)({"&:hover":{backgroundColor:(0,s.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${f.Z.checked}`]:{color:e.palette[t.color].main,"&:hover":{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${f.Z.disabled}`]:{color:"light"===e.palette.mode?(0,s.$n)(e.palette[t.color].main,.62):(0,s._j)(e.palette[t.color].main,.55)}},[`&.${f.Z.checked} + .${f.Z.track}`]:{backgroundColor:e.palette[t.color].main}}))),g=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.mode?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.mode?.38:.3}))),j=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),b=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiSwitch"}),{className:i,color:s="primary",edge:d=!1,size:h="medium",sx:b}=n,Z=(0,r.Z)(n,m),w=(0,o.Z)({},n,{color:s,edge:d,size:h}),y=(e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,d={root:["root",n&&`edge${(0,l.Z)(n)}`,`size${(0,l.Z)(r)}`],switchBase:["switchBase",`color${(0,l.Z)(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,c.Z)(d,f.H,t);return(0,o.Z)({},t,u)})(w),k=(0,x.jsx)(j,{className:y.thumb,ownerState:w});return(0,x.jsxs)(v,{className:(0,a.Z)(y.root,i),sx:b,ownerState:w,children:[(0,x.jsx)(p,(0,o.Z)({type:"checkbox",icon:k,checkedIcon:k,ref:t,ownerState:w},Z,{classes:(0,o.Z)({},y,{root:y.switchBase})})),(0,x.jsx)(g,{className:y.track,ownerState:w})]})}));t.Z=b},6069:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/anvil",function(){return n(7733)}])},1939:function(e,t,n){"use strict";var r=n(5893),o=n(7357),i=n(7169);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l="Decorator",d={ok:"".concat(l,"-ok"),warning:"".concat(l,"-warning"),error:"".concat(l,"-error"),off:"".concat(l,"-off")};t.Z=function(e){var t,n=e.colour,l=e.sx,u=s(e,["colour","sx"]);return(0,r.jsx)(o.Z,c({},u,{className:d[n],sx:c((t={borderRadius:i.n_,height:"100%",width:"1.4em"},a(t,"&.".concat(d.ok),{backgroundColor:i.Ej}),a(t,"&.".concat(d.warning),{backgroundColor:i.Wd}),a(t,"&.".concat(d.error),{backgroundColor:i.hM}),a(t,"&.".concat(d.off),{backgroundColor:i.s7}),t),l)}))}},6632:function(e,t,n){"use strict";var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionProceedText,n=void 0===t?"":t,o=e.content,c=void 0===o?"":o,s=e.titleText,l=void 0===s?"":s,d=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:n,content:c,titleText:l},d))}},7733:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tt}});var r=n(5893),o=n(1496),i=n(7357),a=n(9008),c=n(1163),s=n(7294),l=n(2029),d=n(7169),u={uuid:"",setAnvilUuid:function(){return null}},h=(0,s.createContext)(u),f=function(e){var t=e.children,n=(0,s.useState)(""),o=n[0],i=n[1];return(0,r.jsx)(h.Provider,{value:{uuid:o,setAnvilUuid:function(e){i(e)}},children:t})},x=n(3679),m=n(1905),v=n(2852),p=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),g=n(1939),j=function(e,t){return fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})},b=n(7750);function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={anvilName:"".concat("SelectedAnvil","-anvilName")},y=(0,o.ZP)(i.Z)((function(){return Z({display:"flex",flexDirection:"row",width:"100%"},"& .".concat(w.anvilName),{paddingLeft:0})})),k=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";default:return"error"}},_=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},S=function(e){var t=e.list,n=(0,s.useContext)(h).uuid,o=t.findIndex((function(e){return e.anvil_uuid===n}));return(0,r.jsx)(y,Z({},"children",""!==n&&(0,r.jsxs)(r.Fragment,Z({},"children",[(0,r.jsx)(i.Z,{p:1,children:(0,r.jsx)(g.Z,{colour:k(t[o].anvil_state)})}),(0,r.jsxs)(i.Z,{p:1,flexGrow:1,className:w.anvilName,children:[(0,r.jsx)(b.z,{text:t[o].anvil_name}),(0,r.jsx)(b.z,{text:p.get(t[o].anvil_state)||"State unavailable"})]}),(0,r.jsx)(i.Z,Z({p:1},"children",(0,r.jsx)(v.Z,Z({checked:_(t[o])},"onChange",(function(){var e=t[o],n=e.anvil_uuid;j("".concat(l.Z,"/command/").concat(_(e)?"stop-an":"start-an","/").concat(n),{})})))))]))))},O=n(8462),P=n(7720),A=n(7212),N=function(e){var t=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Ac,{text:t.anvil_name}),(0,r.jsx)(b.Ac,{text:p.get(t.anvil_state)||"State unavailable"})]})};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[t].link.link_speed,e.bond_state=e.hosts[t].link.link_state})),n},ae=n(2749);function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nd.li?(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(z,{list:g}),(0,r.jsx)(ne,{anvil:g.anvils})]}),(0,r.jsx)(i.Z,{className:Ye.server,children:(0,r.jsx)(Re,{anvil:g.anvils})}),(0,r.jsx)(i.Z,{className:Ye.child,children:(0,r.jsx)(Xe,{})}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(G,{}),(0,r.jsx)(oe,{})]})]}):(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(Re,{anvil:g.anvils}),(0,r.jsx)(z,{list:g}),(0,r.jsx)(ne,{anvil:g.anvils})]}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(Xe,{}),(0,r.jsx)(G,{}),(0,r.jsx)(oe,{})]})]})),e}),[g,t]),Z=(0,s.useMemo)((function(){return j?(0,r.jsx)(x.s_,{sx:{marginLeft:{xs:"1em",sm:"auto"},marginRight:{xs:"1em",sm:"auto"},marginTop:"calc(50vh - 10em)",maxWidth:{xs:void 0,sm:"60%",md:"50%",lg:"40%"},minWidth:"fit-content"},children:(0,r.jsx)(F.Z,{sx:{margin:"2em 2.4em"}})}):b}),[b,j]);return(0,s.useEffect)((function(){""===u&&v((null===n||void 0===n?void 0:n.toString())||"")}),[u,n,v]),(0,r.jsxs)(et,{children:[(0,r.jsx)(a.default,{children:(0,r.jsx)("title",{children:"Anvil"})}),(0,r.jsxs)(f,{children:[(0,r.jsx)(H.Z,{}),Z]})]})}}},function(e){e.O(0,[412,438,894,182,900,485,62,195,987,157,825,774,888,179],(function(){return t=6069,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/anvil-5ff2efa937105177.js b/striker-ui/out/_next/static/chunks/pages/anvil-5ff2efa937105177.js deleted file mode 100644 index 1fc0b71a..00000000 --- a/striker-ui/out/_next/static/chunks/pages/anvil-5ff2efa937105177.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[817],{2852:function(e,t,n){"use strict";var r=n(3366),o=n(7462),i=n(7294),a=n(6010),c=n(7192),s=n(1796),l=n(8216),d=n(1964),u=n(3616),h=n(1496),f=n(9632),x=n(5893);const m=["className","color","edge","size","sx"],v=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,l.Z)(n.edge)}`],t[`size${(0,l.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${f.Z.thumb}`]:{width:16,height:16},[`& .${f.Z.switchBase}`]:{padding:4,[`&.${f.Z.checked}`]:{transform:"translateX(16px)"}}}))),p=(0,h.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${f.Z.input}`]:t.input},"default"!==n.color&&t[`color${(0,l.Z)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${f.Z.checked}`]:{transform:"translateX(20px)"},[`&.${f.Z.disabled}`]:{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},[`&.${f.Z.checked} + .${f.Z.track}`]:{opacity:.5},[`&.${f.Z.disabled} + .${f.Z.track}`]:{opacity:"light"===e.palette.mode?.12:.2},[`& .${f.Z.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>(0,o.Z)({"&:hover":{backgroundColor:(0,s.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${f.Z.checked}`]:{color:e.palette[t.color].main,"&:hover":{backgroundColor:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${f.Z.disabled}`]:{color:"light"===e.palette.mode?(0,s.$n)(e.palette[t.color].main,.62):(0,s._j)(e.palette[t.color].main,.55)}},[`&.${f.Z.checked} + .${f.Z.track}`]:{backgroundColor:e.palette[t.color].main}}))),g=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.mode?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.mode?.38:.3}))),j=(0,h.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),b=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiSwitch"}),{className:i,color:s="primary",edge:d=!1,size:h="medium",sx:b}=n,Z=(0,r.Z)(n,m),w=(0,o.Z)({},n,{color:s,edge:d,size:h}),y=(e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,d={root:["root",n&&`edge${(0,l.Z)(n)}`,`size${(0,l.Z)(r)}`],switchBase:["switchBase",`color${(0,l.Z)(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,c.Z)(d,f.H,t);return(0,o.Z)({},t,u)})(w),k=(0,x.jsx)(j,{className:y.thumb,ownerState:w});return(0,x.jsxs)(v,{className:(0,a.Z)(y.root,i),sx:b,ownerState:w,children:[(0,x.jsx)(p,(0,o.Z)({type:"checkbox",icon:k,checkedIcon:k,ref:t,ownerState:w},Z,{classes:(0,o.Z)({},y,{root:y.switchBase})})),(0,x.jsx)(g,{className:y.track,ownerState:w})]})}));t.Z=b},6069:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/anvil",function(){return n(7733)}])},1939:function(e,t,n){"use strict";var r=n(5893),o=n(7357),i=n(7169);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l="Decorator",d={ok:"".concat(l,"-ok"),warning:"".concat(l,"-warning"),error:"".concat(l,"-error"),off:"".concat(l,"-off")};t.Z=function(e){var t,n=e.colour,l=e.sx,u=s(e,["colour","sx"]);return(0,r.jsx)(o.Z,c({},u,{className:d[n],sx:c((t={borderRadius:i.n_,height:"100%",width:"1.4em"},a(t,"&.".concat(d.ok),{backgroundColor:i.Ej}),a(t,"&.".concat(d.warning),{backgroundColor:i.Wd}),a(t,"&.".concat(d.error),{backgroundColor:i.hM}),a(t,"&.".concat(d.off),{backgroundColor:i.s7}),t),l)}))}},6632:function(e,t,n){"use strict";var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionProceedText,n=void 0===t?"":t,o=e.content,c=void 0===o?"":o,s=e.titleText,l=void 0===s?"":s,d=a(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:n,content:c,titleText:l},d))}},7733:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tt}});var r=n(5893),o=n(1496),i=n(7357),a=n(9008),c=n(1163),s=n(7294),l=n(2029),d=n(7169),u={uuid:"",setAnvilUuid:function(){return null}},h=(0,s.createContext)(u),f=function(e){var t=e.children,n=(0,s.useState)(""),o=n[0],i=n[1];return(0,r.jsx)(h.Provider,{value:{uuid:o,setAnvilUuid:function(e){i(e)}},children:t})},x=n(3679),m=n(1905),v=n(2852),p=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),g=n(1939),j=function(e,t){return fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})},b=n(7750);function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={anvilName:"".concat("SelectedAnvil","-anvilName")},y=(0,o.ZP)(i.Z)((function(){return Z({display:"flex",flexDirection:"row",width:"100%"},"& .".concat(w.anvilName),{paddingLeft:0})})),k=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";default:return"error"}},_=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},S=function(e){var t=e.list,n=(0,s.useContext)(h).uuid,o=t.findIndex((function(e){return e.anvil_uuid===n}));return(0,r.jsx)(y,Z({},"children",""!==n&&(0,r.jsxs)(r.Fragment,Z({},"children",[(0,r.jsx)(i.Z,{p:1,children:(0,r.jsx)(g.Z,{colour:k(t[o].anvil_state)})}),(0,r.jsxs)(i.Z,{p:1,flexGrow:1,className:w.anvilName,children:[(0,r.jsx)(b.z,{text:t[o].anvil_name}),(0,r.jsx)(b.z,{text:p.get(t[o].anvil_state)||"State unavailable"})]}),(0,r.jsx)(i.Z,Z({p:1},"children",(0,r.jsx)(v.Z,Z({checked:_(t[o])},"onChange",(function(){var e=t[o],n=e.anvil_uuid;j("".concat(l.Z,"/command/").concat(_(e)?"stop-an":"start-an","/").concat(n),{})})))))]))))},O=n(8462),P=n(7720),A=n(7212),N=function(e){var t=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Ac,{text:t.anvil_name}),(0,r.jsx)(b.Ac,{text:p.get(t.anvil_state)||"State unavailable"})]})};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[t].link.link_speed,e.bond_state=e.hosts[t].link.link_state})),n},ae=n(2749);function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nd.li?(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(z,{list:g}),(0,r.jsx)(ne,{anvil:g.anvils})]}),(0,r.jsx)(i.Z,{className:Ye.server,children:(0,r.jsx)(Re,{anvil:g.anvils})}),(0,r.jsx)(i.Z,{className:Ye.child,children:(0,r.jsx)(Xe,{})}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(G,{}),(0,r.jsx)(oe,{})]})]}):(0,r.jsxs)(i.Z,{className:Ye.container,children:[(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(Re,{anvil:g.anvils}),(0,r.jsx)(z,{list:g}),(0,r.jsx)(ne,{anvil:g.anvils})]}),(0,r.jsxs)(i.Z,{className:Ye.child,children:[(0,r.jsx)(xe,{}),(0,r.jsx)(Xe,{}),(0,r.jsx)(G,{}),(0,r.jsx)(oe,{})]})]})),e}),[g,t]),Z=(0,s.useMemo)((function(){return j?(0,r.jsx)(x.s_,{sx:{marginLeft:{xs:"1em",sm:"auto"},marginRight:{xs:"1em",sm:"auto"},marginTop:"calc(50vh - 10em)",maxWidth:{xs:void 0,sm:"60%",md:"50%",lg:"40%"},minWidth:"fit-content"},children:(0,r.jsx)(F.Z,{sx:{margin:"2em 2.4em"}})}):b}),[b,j]);return(0,s.useEffect)((function(){""===u&&v((null===n||void 0===n?void 0:n.toString())||"")}),[u,n,v]),(0,r.jsxs)(et,{children:[(0,r.jsx)(a.default,{children:(0,r.jsx)("title",{children:"Anvil"})}),(0,r.jsxs)(f,{children:[(0,r.jsx)(H.Z,{}),Z]})]})}}},function(e){e.O(0,[382,438,894,182,434,485,62,195,987,157,825,774,888,179],(function(){return t=6069,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/config-0cb597caf390573f.js b/striker-ui/out/_next/static/chunks/pages/config-7be24d332b231569.js similarity index 99% rename from striker-ui/out/_next/static/chunks/pages/config-0cb597caf390573f.js rename to striker-ui/out/_next/static/chunks/pages/config-7be24d332b231569.js index e1547ee9..d570e403 100644 --- a/striker-ui/out/_next/static/chunks/pages/config-0cb597caf390573f.js +++ b/striker-ui/out/_next/static/chunks/pages/config-7be24d332b231569.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{329:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return t(6028)}])},5741:function(e,n,t){"use strict";var r=t(5893),o=t(1714),i=t(122),c=t(7169),l=t(4690);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(e){var n=e.children,t=e.sx,a=u(e,["children","sx"]);return(0,r.jsx)(i.Z,s({underline:"hover",variant:"subtitle1"},a,{sx:s({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(l.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},3106:function(e,n){"use strict";n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},6028:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Qe}});var r=t(5893),o=t(6886),i=t(9008),c=t(7294),l=t(2029),a=t(157),s=t(5521),u=t(1905),d=t(3106),f=t(4188),p=t(4390);function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t3&&void 0!==arguments[3]?arguments[3]:e,o=function(t){var r;null===(r=n.current.setMessage)||void 0===r||r.call(null,e,t)};return t&&(t[r]=o),o},b=function(e,n){var t,r,o={};return t=e,o=(null!=(r=Array)&&"undefined"!==typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e.reduce((function(e,t){return y(t,n,e),e}),o):Object.entries(e).reduce((function(e,t){var r=m(t,2),o=r[0],i=r[1];return y(i,n,e,o),e}),o)},v=t(4894),g=t(6607),x=t(480),j=t(2349),w=t(7750);function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Z(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(g({actionProceedText:"Delete",content:"The peer relationship between this striker and the selected ".concat(t," host(s) will terminate. The removed peer(s) can be re-added later."),onProceedAppend:function(){p.Z.delete("/host/connection",{data:n}).catch((function(e){var n=(0,k.Z)(e);n.children="Failed to delete peer connection(s). ".concat(n.children),y(n)}))},proceedColour:"red",titleText:"Delete ".concat(t," peer(s) from this striker?")}),null===(e=f.current.setOpen)||void 0===e||e.call(null,!0))},onEdit:function(){S((function(e){return!e}))},onItemCheckboxChange:function(e,n,t){T[e].isChecked=t,C((function(e){return ie({},e)}))},renderListItem:function(e,n){var t=n.isPingTest,o=void 0!==t&&t;return(0,r.jsx)(O.Z,{row:!0,spacing:0,children:(0,r.jsxs)(O.Z,{spacing:0,children:[(0,r.jsx)(w.$_,{children:e}),(0,r.jsx)(te,{label:"Ping",state:o})]})})}})}),E]})}),(0,r.jsx)(q,{ref:s}),(0,r.jsx)(a.Z,ie({closeOnProceed:!0},v,{ref:f}))]})},ae=t(582),se=t(5741),ue=t(3906);function de(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[y]),F=(0,u.Z)("".concat(l.Z,"/ssh-key/conflict"),{onError:function(e){h({children:"Failed to fetch SSH key conflicts. Error: ".concat(e),type:"error"})},onSuccess:function(e){b((function(n){return Object.values(e).reduce((function(e,t){return Object.values(t).forEach((function(t){var r=t.hostName,o=t.hostUUID,i=t.ipAddress,c=t.stateUUID;e[c]=pe({},n[c],{hostName:r,hostUUID:o,ipAddress:i})})),e}),{})}))},refreshInterval:i}).isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K.TZ,{header:"Manage changed SSH keys",loading:F,children:[(0,r.jsxs)(O.Z,{spacing:".2em",children:[(0,r.jsx)(w.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(z.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(se.Z,{href:t,sx:{display:"inline-flex"},target:"_blank",children:'"Man In The Middle"'})," ","attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys."]}),(0,r.jsx)(W.Z,{header:(0,r.jsxs)(O.Z,{row:!0,spacing:".3em",sx:{width:"100%","& > :not(:last-child)":{display:{xs:"none",sm:"flex"}},"& > :last-child":{display:{xs:"initial",sm:"none"},marginLeft:0}},children:[(0,r.jsxs)(O.Z,{row:!0,spacing:".3em",sx:{flexBasis:"calc(50% + 1em)"},children:[(0,r.jsx)(w.Ac,{children:"Host name"}),(0,r.jsx)(ae.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(O.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(w.Ac,{children:"IP address"}),(0,r.jsx)(ae.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(ae.Z,{sx:{flexGrow:1}})]}),allowCheckAll:E,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,disableDelete:!S,edit:!0,getListCheckboxProps:function(){return{checked:A}},listEmpty:(0,r.jsx)(w.Ac,{align:"center",children:"No conflicting keys found."}),listItems:y,onAllCheckboxChange:function(e,n){I(n)},onDelete:function(){var e,n=P.reduce((function(e,n){if(!Z(n))return e;var t=y[n].hostUUID;return e[t]||(e[t]=[]),e[t].push(n),e}),{});x({actionProceedText:"Delete",content:"Resolve ".concat(P.length," SSH key conflicts. Please make sure the identity change(s) are expected to avoid MITM attacks."),onProceedAppend:function(){p.Z.delete("/ssh-key/conflict",{data:n}).catch((function(e){var n=(0,k.Z)(e);n.children="Failed to delete selected SSH key conflicts. ".concat(n.children),h(n)}))},proceedColour:"red",titleText:"Delete ".concat(P.length," conflicting SSH keys?")}),null===(e=s.current.setOpen)||void 0===e||e.call(null,!0)},onItemCheckboxChange:function(e,n,t){T(e,t)},renderListItem:function(e,n){var t=n.hostName,o=n.ipAddress;return(0,r.jsxs)(O.Z,{spacing:0,sm:"row",sx:{width:"100%","& > *":{flexBasis:"50%"}},xs:"column",children:[(0,r.jsx)(w.Ac,{children:t}),(0,r.jsx)(w.Ac,{children:o})]})},renderListItemCheckboxState:function(e){return Z(e)}})]}),C]}),(0,r.jsx)(a.Z,pe({closeOnProceed:!0},g,{ref:s}))]})};function ye(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function be(e){for(var n=1;n0),l(ve,t===(null===(n=y.current.getValue)||void 0===n?void 0:n.call(null)))},onFirstRender:o(xe),ref:m,required:p})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(T.Z,{input:(0,r.jsx)(E.Z,{id:ve,inputProps:{readOnly:!v},label:"Confirm password",type:f.Z.password}),inputTestBatch:{defaults:{onSuccess:function(){i(ve)}},onFinishBatch:t(ve),tests:[{test:F.HJ},{onFailure:function(){i(ve,{children:"The passwords do not match."})},test:function(e){var n;return e.value===(null===(n=m.current.getValue)||void 0===n?void 0:n.call(null))}}]},onFirstRender:o(ve),ref:y,required:v})}}:void 0}),[t,o,v,p,i,l,h]);return(0,r.jsx)(S.Z,{columns:{xs:1,sm:2,md:3},layout:be({"common-user-input-cell-name":{children:(0,r.jsx)(T.Z,{input:(0,r.jsx)(E.Z,{id:ge,inputProps:{readOnly:u},label:je,value:s}),inputTestBatch:(0,F.Gn)(je,(function(){i(ge)}),{onFinishBatch:t(ge)},(function(e){i(ge,{children:e})})),onFirstRender:o(ge),required:!0}),md:1,sm:2}},x),spacing:"1em"})},Ze=t(2545),Ae=t(8610),Oe=t(6632),Se=t(8859);function ke(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Xe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],c=!0,l=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);c=!0);}catch(a){l=!0,o=a}finally{try{c||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||Ye(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ye(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,n){if(e){if("string"===typeof e)return qe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qe(e,n):void 0}}var Qe=function(e){var n=e.refreshInterval,t=void 0===n?6e4:n,d=(0,M.Z)().protect,f=(0,c.useState)(!1),p=f[0],h=f[1],m=(0,c.useState)({actionProceedText:"",closeOnProceed:!0,content:"",dialogProps:{open:p},onCancelAppend:function(){h(!1)},onProceedAppend:function(){h(!1)},titleText:""}),y=m[0],b=m[1],v=Xe((0,U.Z)(void 0,d),2),g=v[0],x=v[1],j=Xe((0,U.Z)("",d),2),w=j[0],P=j[1],Z=(0,u.Z)("".concat(l.Z,"/host/local"),{onError:function(){P("Unknown")},onSuccess:function(e){var n=e.installTarget,t=e.shortHostName;x(n),P(t)},refreshInterval:t}),A=Z.data,O=Z.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsx)("title",{children:O?"Loading...":"".concat(null===A||void 0===A?void 0:A.shortHostName," Config")})}),(0,r.jsx)(s.Z,{}),(0,r.jsxs)(o.ZP,{container:!0,columns:{xs:1,md:3,lg:4},children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)($e,{installTarget:g,onSubmit:function(e){var n=e.onProceedAppend,t=Ke(e,["onProceedAppend"]);b((function(e){return ze({},e,t,{onProceedAppend:function(){for(var e=arguments.length,t=new Array(e),r=0;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(e){var n=e.children,t=e.sx,a=u(e,["children","sx"]);return(0,r.jsx)(i.Z,s({underline:"hover",variant:"subtitle1"},a,{sx:s({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(l.Z,{row:!0,children:[n,(0,r.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},3106:function(e,n){"use strict";n.Z={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},6028:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Qe}});var r=t(5893),o=t(8263),i=t(9008),c=t(7294),l=t(2029),a=t(157),s=t(5521),u=t(1905),d=t(3106),f=t(4188),p=t(4390);function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t3&&void 0!==arguments[3]?arguments[3]:e,o=function(t){var r;null===(r=n.current.setMessage)||void 0===r||r.call(null,e,t)};return t&&(t[r]=o),o},b=function(e,n){var t,r,o={};return t=e,o=(null!=(r=Array)&&"undefined"!==typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e.reduce((function(e,t){return y(t,n,e),e}),o):Object.entries(e).reduce((function(e,t){var r=m(t,2),o=r[0],i=r[1];return y(i,n,e,o),e}),o)},v=t(4894),g=t(6607),x=t(480),j=t(2349),w=t(7750);function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Z(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(g({actionProceedText:"Delete",content:"The peer relationship between this striker and the selected ".concat(t," host(s) will terminate. The removed peer(s) can be re-added later."),onProceedAppend:function(){p.Z.delete("/host/connection",{data:n}).catch((function(e){var n=(0,k.Z)(e);n.children="Failed to delete peer connection(s). ".concat(n.children),y(n)}))},proceedColour:"red",titleText:"Delete ".concat(t," peer(s) from this striker?")}),null===(e=f.current.setOpen)||void 0===e||e.call(null,!0))},onEdit:function(){S((function(e){return!e}))},onItemCheckboxChange:function(e,n,t){T[e].isChecked=t,C((function(e){return ie({},e)}))},renderListItem:function(e,n){var t=n.isPingTest,o=void 0!==t&&t;return(0,r.jsx)(O.Z,{row:!0,spacing:0,children:(0,r.jsxs)(O.Z,{spacing:0,children:[(0,r.jsx)(w.$_,{children:e}),(0,r.jsx)(te,{label:"Ping",state:o})]})})}})}),E]})}),(0,r.jsx)(q,{ref:s}),(0,r.jsx)(a.Z,ie({closeOnProceed:!0},v,{ref:f}))]})},ae=t(582),se=t(5741),ue=t(3906);function de(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[y]),F=(0,u.Z)("".concat(l.Z,"/ssh-key/conflict"),{onError:function(e){h({children:"Failed to fetch SSH key conflicts. Error: ".concat(e),type:"error"})},onSuccess:function(e){b((function(n){return Object.values(e).reduce((function(e,t){return Object.values(t).forEach((function(t){var r=t.hostName,o=t.hostUUID,i=t.ipAddress,c=t.stateUUID;e[c]=pe({},n[c],{hostName:r,hostUUID:o,ipAddress:i})})),e}),{})}))},refreshInterval:i}).isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(K.TZ,{header:"Manage changed SSH keys",loading:F,children:[(0,r.jsxs)(O.Z,{spacing:".2em",children:[(0,r.jsx)(w.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(z.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(se.Z,{href:t,sx:{display:"inline-flex"},target:"_blank",children:'"Man In The Middle"'})," ","attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys."]}),(0,r.jsx)(W.Z,{header:(0,r.jsxs)(O.Z,{row:!0,spacing:".3em",sx:{width:"100%","& > :not(:last-child)":{display:{xs:"none",sm:"flex"}},"& > :last-child":{display:{xs:"initial",sm:"none"},marginLeft:0}},children:[(0,r.jsxs)(O.Z,{row:!0,spacing:".3em",sx:{flexBasis:"calc(50% + 1em)"},children:[(0,r.jsx)(w.Ac,{children:"Host name"}),(0,r.jsx)(ae.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(O.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(w.Ac,{children:"IP address"}),(0,r.jsx)(ae.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(ae.Z,{sx:{flexGrow:1}})]}),allowCheckAll:E,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,disableDelete:!S,edit:!0,getListCheckboxProps:function(){return{checked:A}},listEmpty:(0,r.jsx)(w.Ac,{align:"center",children:"No conflicting keys found."}),listItems:y,onAllCheckboxChange:function(e,n){I(n)},onDelete:function(){var e,n=P.reduce((function(e,n){if(!Z(n))return e;var t=y[n].hostUUID;return e[t]||(e[t]=[]),e[t].push(n),e}),{});x({actionProceedText:"Delete",content:"Resolve ".concat(P.length," SSH key conflicts. Please make sure the identity change(s) are expected to avoid MITM attacks."),onProceedAppend:function(){p.Z.delete("/ssh-key/conflict",{data:n}).catch((function(e){var n=(0,k.Z)(e);n.children="Failed to delete selected SSH key conflicts. ".concat(n.children),h(n)}))},proceedColour:"red",titleText:"Delete ".concat(P.length," conflicting SSH keys?")}),null===(e=s.current.setOpen)||void 0===e||e.call(null,!0)},onItemCheckboxChange:function(e,n,t){T(e,t)},renderListItem:function(e,n){var t=n.hostName,o=n.ipAddress;return(0,r.jsxs)(O.Z,{spacing:0,sm:"row",sx:{width:"100%","& > *":{flexBasis:"50%"}},xs:"column",children:[(0,r.jsx)(w.Ac,{children:t}),(0,r.jsx)(w.Ac,{children:o})]})},renderListItemCheckboxState:function(e){return Z(e)}})]}),C]}),(0,r.jsx)(a.Z,pe({closeOnProceed:!0},g,{ref:s}))]})};function ye(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function be(e){for(var n=1;n0),l(ve,t===(null===(n=y.current.getValue)||void 0===n?void 0:n.call(null)))},onFirstRender:o(xe),ref:m,required:p})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(T.Z,{input:(0,r.jsx)(E.Z,{id:ve,inputProps:{readOnly:!v},label:"Confirm password",type:f.Z.password}),inputTestBatch:{defaults:{onSuccess:function(){i(ve)}},onFinishBatch:t(ve),tests:[{test:F.HJ},{onFailure:function(){i(ve,{children:"The passwords do not match."})},test:function(e){var n;return e.value===(null===(n=m.current.getValue)||void 0===n?void 0:n.call(null))}}]},onFirstRender:o(ve),ref:y,required:v})}}:void 0}),[t,o,v,p,i,l,h]);return(0,r.jsx)(S.Z,{columns:{xs:1,sm:2,md:3},layout:be({"common-user-input-cell-name":{children:(0,r.jsx)(T.Z,{input:(0,r.jsx)(E.Z,{id:ge,inputProps:{readOnly:u},label:je,value:s}),inputTestBatch:(0,F.Gn)(je,(function(){i(ge)}),{onFinishBatch:t(ge)},(function(e){i(ge,{children:e})})),onFirstRender:o(ge),required:!0}),md:1,sm:2}},x),spacing:"1em"})},Ze=t(2545),Ae=t(8610),Oe=t(6632),Se=t(8859);function ke(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Xe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],c=!0,l=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);c=!0);}catch(a){l=!0,o=a}finally{try{c||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||Ye(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ye(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,n){if(e){if("string"===typeof e)return qe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qe(e,n):void 0}}var Qe=function(e){var n=e.refreshInterval,t=void 0===n?6e4:n,d=(0,M.Z)().protect,f=(0,c.useState)(!1),p=f[0],h=f[1],m=(0,c.useState)({actionProceedText:"",closeOnProceed:!0,content:"",dialogProps:{open:p},onCancelAppend:function(){h(!1)},onProceedAppend:function(){h(!1)},titleText:""}),y=m[0],b=m[1],v=Xe((0,U.Z)(void 0,d),2),g=v[0],x=v[1],j=Xe((0,U.Z)("",d),2),w=j[0],P=j[1],Z=(0,u.Z)("".concat(l.Z,"/host/local"),{onError:function(){P("Unknown")},onSuccess:function(e){var n=e.installTarget,t=e.shortHostName;x(n),P(t)},refreshInterval:t}),A=Z.data,O=Z.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsx)("title",{children:O?"Loading...":"".concat(null===A||void 0===A?void 0:A.shortHostName," Config")})}),(0,r.jsx)(s.Z,{}),(0,r.jsxs)(o.ZP,{container:!0,columns:{xs:1,md:3,lg:4},children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)($e,{installTarget:g,onSubmit:function(e){var n=e.onProceedAppend,t=Ke(e,["onProceedAppend"]);b((function(e){return ze({},e,t,{onProceedAppend:function(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var w=function(e){var n=e.onClearIndicatorClick,t=x(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,a=x(t,["sx","value"]),c=(0,l.useMemo)((function(){var e;return O((j(e={},"& .".concat(o.Z.icon),{color:g.s7}),j(e,"& .".concat(y.Z.root),{marginRight:".8em"}),j(e,"& .".concat(p.Z.root),{color:g.s7,visibility:"hidden"}),j(e,"&:hover .".concat(y.Z.root," .").concat(p.Z.root,",\n &.").concat(m.Z.focused," .").concat(y.Z.root," .").concat(p.Z.root),{visibility:"visible"}),e),i)}),[i]),s=(0,l.useMemo)((function(){return String(u).length>0&&n&&(0,r.jsx)(v.Z,{position:"end",children:(0,r.jsx)(h.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,u]);return(0,r.jsx)(b.Z,O({endAdornment:s,value:u},a,{sx:c}))};function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var Z=function(e){var n=e.id,t=e.label,d=e.selectItems,y=e.checkItem,p=e.disableItem,m=e.formControlProps,v=e.hideItem,h=e.inputLabelProps,b=void 0===h?{}:h,g=e.isReadOnly,j=void 0!==g&&g,O=e.messageBoxProps,x=void 0===O?{}:O,Z=e.name,C=e.onBlur,A=e.onChange,I=e.onFocus,E=e.required,M=e.selectProps,D=void 0===M?{}:M,U=D.multiple,T=D.sx,L=e.value,F=e.isCheckableItems,V=void 0===F?U:F,R=P(e.selectProps,["multiple","sx"]),_=(0,l.useMemo)((function(){return j?S(k({},"& .".concat(o.Z.icon),{visibility:"hidden"}),T):T}),[j,T]),H=(0,l.useCallback)((function(e){return V&&(0,r.jsx)(i.Z,{checked:null===y||void 0===y?void 0:y.call(null,e)})}),[y,V]),N=(0,l.useCallback)((function(e,t){return(0,r.jsxs)(c.Z,{disabled:null===p||void 0===p?void 0:p.call(null,e),sx:{display:(null===v||void 0===v?void 0:v.call(null,e))?"none":void 0},value:e,children:[H(e),t]},"".concat(n,"-").concat(e))}),[H,p,v,n]),$=(0,l.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),B=(0,l.useMemo)((function(){return(0,r.jsx)(s.Z,{id:n,label:t})}),[n,t]),W=(0,l.useMemo)((function(){return t&&(0,r.jsx)(f.Z,S({htmlFor:$,isNotifyRequired:E},b,{children:t}))}),[b,E,t,$]),z=(0,l.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return N(t,void 0===r?t:r)}))}),[N,d]);return(0,r.jsxs)(u.Z,S({fullWidth:!0},m,{children:[W,(0,r.jsx)(w,S({id:$,input:B,multiple:U,name:Z,onBlur:C,onChange:A,onFocus:I,readOnly:j,value:L},R,{sx:_,children:z})),(0,r.jsx)(a.Z,S({},x))]}))}},3906:function(e,n,t){"use strict";var r=t(5893),o=t(7294),i=t(6607),u=t(8610);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){for(var n=1;n0}),[d.length]),m=(0,o.useMemo)((function(){return f.length>1}),[f.length]),v=(0,o.useCallback)((function(e){var n=e.confirmDialogProps,t=void 0===n?{}:n,o=e.formSummaryProps,i=void 0===o?{}:o,l=e.getConfirmDialogTitle,s=e.onProceedAppend,f=e.renderEntry;return a({actionProceedText:"Delete",content:(0,r.jsx)(u.Z,a({entries:c,maxDepth:0,renderEntry:f},i)),onProceedAppend:s,proceedColour:"red",titleText:l(d.length)},t)}),[c,d.length]),h=(0,o.useCallback)((function(e){return c[e]}),[c]),b=(0,o.useCallback)((function(e){return s(f.reduce((function(n,t){return e&&(n[t]=e),n}),{}))}),[f]),g=(0,o.useCallback)((function(e,n){return s((0,i.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:v,checklist:c,checks:d,getCheck:h,hasAllChecks:y,hasChecks:p,multipleItems:m,setAllChecks:b,setCheck:g}}},6632:function(e,n,t){"use strict";var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionProceedText,t=void 0===n?"":n,o=e.content,l=void 0===o?"":o,a=e.titleText,c=void 0===a?"":a,s=u(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:l,titleText:c},s))}},7791:function(e,n,t){"use strict";var r=t(8100),o=t(2029),i=t(1200);function u(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,l=void 0===t?i.Z:t,a=n.baseUrl,c=void 0===a?o.Z:a,s=u(n,["fetcher","baseUrl"]),f=(0,r.ZP)("".concat(c).concat(e),l,s),d=f.data,y=f.error,p=!y&&!d;return{data:d,error:y,loading:p}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,o=n.hostUUID;return e[o]={name:t,type:r,uuid:o},e}),{})},o=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,o=n.anvilName,i=n.anvilUUID,u=n.hosts;return e[i]={description:t,hosts:r(u),name:o,uuid:i},e}),{})}},8403:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ae}});var r=t(5893),o=t(9008),i=t(5521),u=t(4490),l=t(7294),a=t(2029),c=[["iso",["application/x-cd-image","ISO (optical disc)"]],["other",["text/plain","Other file type"]],["script",["text/plain","Script (program)"]]],s=new Map(c),f=t(2175),d=t(5934),y=t(46),p=t(4390),m=t(4825);function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},t=n.build,r=void 0===t?function(e,n){return{children:n,type:"warning"}}:t,o=n.chain,i=void 0===o?"":o;return Object.entries(e).reduce((function(e,n){var t=g(n,2),o=t[0],u=t[1],l=String(i).length?[i,o].join("."):o;return"object"===typeof u?b({},e,j(u,{chain:l})):(e[l]=r(l,u),e)}),{})},O=j,x=t(3457),w=t(6486),k=t(4690),S=t(6125),P=t(6284),Z=t(3679),C=t(2519),A=t(7750),I=t(4188),E=t(3675);function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function T(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return M(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return M(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e){var n=function(e,n){if("object"!==F(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===F(n)?n:String(n)}var F=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var V=(0,l.forwardRef)((function(e,n){var t=e.input,r=e.onChange,o=void 0===r?function(e){for(var n,t,r=e.handlers,o=r.base,i=r.origin,u=arguments.length,l=new Array(u>1?u-1:0),a=1;ae.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[i.values,o]),O=(0,l.useMemo)((function(){return(0,r.jsx)(R,{input:(0,r.jsx)(P.Z,{id:p,label:"File name",name:p,onBlur:s,onChange:d,value:i.values[o].name})})}),[d,i.values,o,s,p]),I=(0,l.useMemo)((function(){return u&&(0,r.jsx)(Z.TZ,{header:"Sync with node(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(S.Z,{allowCheckAll:j("anvils"),allowCheckItem:!0,edit:!0,header:!0,listItems:n,getListCheckboxProps:function(){return b("anvils")},getListItemCheckboxProps:function(e){return g("anvils",e)},renderListItem:function(e,n){var t=n.description,o=n.name;return(0,r.jsxs)(A.Ac,{children:[o,": ",t]})}})})}),[n,j,b,g,u]),E=(0,l.useMemo)((function(){return u&&(0,r.jsx)(Z.TZ,{header:"Sync with DR host(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(S.Z,{allowCheckAll:j("drHosts"),allowCheckItem:!0,edit:!0,header:!0,listItems:t,getListCheckboxProps:function(){return b("drHosts")},getListItemCheckboxProps:function(e){return g("drHosts",e)},renderListItem:function(e,n){var t=n.hostName;return(0,r.jsx)(A.Ac,{children:t})}})})}),[t,j,b,g,u]),M=(0,l.useMemo)((function(){return a&&(0,r.jsx)(C.Z,{id:v,label:"File type",name:v,onBlur:s,onChange:f,selectItems:c.map((function(e){var n=H(e,2),t=n[0];return{displayValue:H(n[1],2)[1],value:t}})),value:i.values[o].type})}),[i.values,o,s,f,a,v]);return(0,r.jsxs)(x.Z,{sx:{"& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsxs)(k.Z,{sm:"row",xs:"column",children:[O,M]}),I,E]})},$=t(1770),B=t(8187),W=t(7869),z=t(6310);function q(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var G=function(e,n){return e&&Object.keys(e).reduce((function(e,t){return function(e){for(var n=1;n :first-child":{minWidth:100,overflow:"hidden",overflowWrap:"normal",textOverflow:"ellipsis",whiteSpace:"nowrap",width:{xs:"100%",md:200},wordBreak:"keep-all"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(A.Ac,{children:n}),(0,r.jsx)(ne.ko,{progressPercentage:t})]},"upload-".concat(o))}))})},re=t(2749);function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var w=function(e){var n=e.onClearIndicatorClick,t=x(e,["onClearIndicatorClick"]),i=t.sx,u=t.value,a=x(t,["sx","value"]),c=(0,l.useMemo)((function(){var e;return O((j(e={},"& .".concat(o.Z.icon),{color:g.s7}),j(e,"& .".concat(y.Z.root),{marginRight:".8em"}),j(e,"& .".concat(p.Z.root),{color:g.s7,visibility:"hidden"}),j(e,"&:hover .".concat(y.Z.root," .").concat(p.Z.root,",\n &.").concat(m.Z.focused," .").concat(y.Z.root," .").concat(p.Z.root),{visibility:"visible"}),e),i)}),[i]),s=(0,l.useMemo)((function(){return String(u).length>0&&n&&(0,r.jsx)(v.Z,{position:"end",children:(0,r.jsx)(h.Z,{onClick:n,children:(0,r.jsx)(d.Z,{fontSize:"small"})})})}),[n,u]);return(0,r.jsx)(b.Z,O({endAdornment:s,value:u},a,{sx:c}))};function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var C=function(e){var n=e.id,t=e.label,d=e.selectItems,y=e.checkItem,p=e.disableItem,m=e.formControlProps,v=e.hideItem,h=e.inputLabelProps,b=void 0===h?{}:h,g=e.isReadOnly,j=void 0!==g&&g,O=e.messageBoxProps,x=void 0===O?{}:O,C=e.name,Z=e.onBlur,A=e.onChange,I=e.onFocus,E=e.required,M=e.selectProps,D=void 0===M?{}:M,U=D.multiple,T=D.sx,L=e.value,F=e.isCheckableItems,V=void 0===F?U:F,R=P(e.selectProps,["multiple","sx"]),_=(0,l.useMemo)((function(){return j?S(k({},"& .".concat(o.Z.icon),{visibility:"hidden"}),T):T}),[j,T]),H=(0,l.useCallback)((function(e){return V&&(0,r.jsx)(i.Z,{checked:null===y||void 0===y?void 0:y.call(null,e)})}),[y,V]),N=(0,l.useCallback)((function(e,t){return(0,r.jsxs)(c.Z,{disabled:null===p||void 0===p?void 0:p.call(null,e),sx:{display:(null===v||void 0===v?void 0:v.call(null,e))?"none":void 0},value:e,children:[H(e),t]},"".concat(n,"-").concat(e))}),[H,p,v,n]),$=(0,l.useMemo)((function(){return"".concat(n,"-select-element")}),[n]),B=(0,l.useMemo)((function(){return(0,r.jsx)(s.Z,{id:n,label:t})}),[n,t]),W=(0,l.useMemo)((function(){return t&&(0,r.jsx)(f.Z,S({htmlFor:$,isNotifyRequired:E},b,{children:t}))}),[b,E,t,$]),z=(0,l.useMemo)((function(){return d.map((function(e){var n="string"===typeof e?{value:e}:e,t=n.value,r=n.displayValue;return N(t,void 0===r?t:r)}))}),[N,d]);return(0,r.jsxs)(u.Z,S({fullWidth:!0},m,{children:[W,(0,r.jsx)(w,S({id:$,input:B,multiple:U,name:C,onBlur:Z,onChange:A,onFocus:I,readOnly:j,value:L},R,{sx:_,children:z})),(0,r.jsx)(a.Z,S({},x))]}))}},3906:function(e,n,t){"use strict";var r=t(5893),o=t(7294),i=t(6607),u=t(8610);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){for(var n=1;n0}),[d.length]),m=(0,o.useMemo)((function(){return f.length>1}),[f.length]),v=(0,o.useCallback)((function(e){var n=e.confirmDialogProps,t=void 0===n?{}:n,o=e.formSummaryProps,i=void 0===o?{}:o,l=e.getConfirmDialogTitle,s=e.onProceedAppend,f=e.renderEntry;return a({actionProceedText:"Delete",content:(0,r.jsx)(u.Z,a({entries:c,maxDepth:0,renderEntry:f},i)),onProceedAppend:s,proceedColour:"red",titleText:l(d.length)},t)}),[c,d.length]),h=(0,o.useCallback)((function(e){return c[e]}),[c]),b=(0,o.useCallback)((function(e){return s(f.reduce((function(n,t){return e&&(n[t]=e),n}),{}))}),[f]),g=(0,o.useCallback)((function(e,n){return s((0,i.ZP)(e,n||void 0))}),[]);return{buildDeleteDialogProps:v,checklist:c,checks:d,getCheck:h,hasAllChecks:y,hasChecks:p,multipleItems:m,setAllChecks:b,setCheck:g}}},6632:function(e,n,t){"use strict";var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionProceedText,t=void 0===n?"":n,o=e.content,l=void 0===o?"":o,a=e.titleText,c=void 0===a?"":a,s=u(e,["actionProceedText","content","titleText"]);return(0,r.useState)(i({actionProceedText:t,content:l,titleText:c},s))}},9623:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Me}});var r=t(5893),o=t(9008),i=t(5521),u=t(4490),l=t(7294),a=t(2029),c=[["iso",["application/x-cd-image","ISO (optical disc)"]],["other",["text/plain","Other file type"]],["script",["text/plain","Script (program)"]]],s=new Map(c),f=t(2175),d=t(5934),y=t(46),p=t(4390),m=t(4825);function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},t=n.build,r=void 0===t?function(e,n){return{children:n,type:"warning"}}:t,o=n.chain,i=void 0===o?"":o;return Object.entries(e).reduce((function(e,n){var t=g(n,2),o=t[0],u=t[1],l=String(i).length?[i,o].join("."):o;return"object"===typeof u?b({},e,j(u,{chain:l})):(e[l]=r(l,u),e)}),{})},O=j,x=t(3457),w=t(6486),k=t(4690),S=t(6125),P=t(6284),C=t(3679),Z=t(2519),A=t(7750),I=t(4188),E=t(3675);function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function T(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return M(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return M(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e){var n=function(e,n){if("object"!==F(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===F(n)?n:String(n)}var F=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var V=(0,l.forwardRef)((function(e,n){var t=e.input,r=e.onChange,o=void 0===r?function(e){for(var n,t,r=e.handlers,o=r.base,i=r.origin,u=arguments.length,l=new Array(u>1?u-1:0),a=1;ae.length)&&(n=e.length);for(var t=0,r=new Array(n);t1}),[i.values,o]),O=(0,l.useMemo)((function(){return(0,r.jsx)(R,{input:(0,r.jsx)(P.Z,{id:p,label:"File name",name:p,onBlur:s,onChange:d,value:i.values[o].name})})}),[d,i.values,o,s,p]),I=(0,l.useMemo)((function(){return u&&(0,r.jsx)(C.TZ,{header:"Sync with node(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(S.Z,{allowCheckAll:j("anvils"),allowCheckItem:!0,edit:!0,header:!0,listItems:n,getListCheckboxProps:function(){return b("anvils")},getListItemCheckboxProps:function(e){return g("anvils",e)},renderListItem:function(e,n){var t=n.description,o=n.name;return(0,r.jsxs)(A.Ac,{children:[o,": ",t]})}})})}),[n,j,b,g,u]),E=(0,l.useMemo)((function(){return u&&(0,r.jsx)(C.TZ,{header:"Sync with DR host(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,r.jsx)(S.Z,{allowCheckAll:j("drHosts"),allowCheckItem:!0,edit:!0,header:!0,listItems:t,getListCheckboxProps:function(){return b("drHosts")},getListItemCheckboxProps:function(e){return g("drHosts",e)},renderListItem:function(e,n){var t=n.hostName;return(0,r.jsx)(A.Ac,{children:t})}})})}),[t,j,b,g,u]),M=(0,l.useMemo)((function(){return a&&(0,r.jsx)(Z.Z,{id:v,label:"File type",name:v,onBlur:s,onChange:f,selectItems:c.map((function(e){var n=H(e,2),t=n[0];return{displayValue:H(n[1],2)[1],value:t}})),value:i.values[o].type})}),[i.values,o,s,f,a,v]);return(0,r.jsxs)(x.Z,{sx:{"& > :not(:first-child)":{marginTop:"1em"}},children:[(0,r.jsxs)(k.Z,{sm:"row",xs:"column",children:[O,M]}),I,E]})},$=t(1770),B=t(8187),W=t(7869),z=t(6310);function q(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var G=function(e,n){return e&&Object.keys(e).reduce((function(e,t){return function(e){for(var n=1;n :first-child":{minWidth:100,overflow:"hidden",overflowWrap:"normal",textOverflow:"ellipsis",whiteSpace:"nowrap",width:{xs:"100%",md:200},wordBreak:"keep-all"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(A.Ac,{children:n}),(0,r.jsx)(ne.k,{progressPercentage:t})]},"upload-".concat(o))}))})},re=t(2749);function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var Se=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,r=void 0===t?we.Z:t,o=n.baseUrl,i=void 0===o?a.Z:o,u=ke(n,["fetcher","baseUrl"]),l=(0,xe.ZP)("".concat(i).concat(e),r,u),c=l.data,s=l.error,f=!s&&!c;return{data:c,error:s,loading:f}};function Pe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],c=!0,a=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);c=!0);}catch(s){a=!0,i=s}finally{try{c||null==t.return||t.return()}finally{if(a)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.Z=function(e){var n=e.calculateItemBreakpoints,t=void 0===n?function(){return{xs:1}}:n,a=e.layout,s=e.wrapperBoxProps,f=u(e,["calculateItemBreakpoints","layout","wrapperBoxProps"]),h=(0,i.useMemo)((function(){return Object.entries(a).map((function(e,n){var r=d(e,2),c=r[0],a=r[1],s=c;return a?(0,i.createElement)(o.ZP,l({},t(n,s),{key:s,item:!0},a)):void 0}))}),[t,a]);return(0,r.jsx)(c.Z,l({},s,{children:(0,r.jsx)(o.ZP,l({container:!0},f,{children:h}))}))}},5741:function(e,n,t){"use strict";var r=t(5893),i=t(1714),o=t(122),c=t(7169),a=t(4690);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=e.children,t=e.sx,s=u(e,["children","sx"]);return(0,r.jsx)(o.Z,l({underline:"hover",variant:"subtitle1"},s,{sx:l({color:c.lD,textDecorationColor:c.s7},t),children:(0,r.jsxs)(a.Z,{row:!0,children:[n,(0,r.jsx)(i.Z,{sx:{marginLeft:".3em"}})]})}))}},7791:function(e,n,t){"use strict";var r=t(8100),i=t(2029),o=t(1200);function c(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fetcher,a=void 0===t?o.Z:t,s=n.baseUrl,l=void 0===s?i.Z:s,u=c(n,["fetcher","baseUrl"]),d=(0,r.ZP)("".concat(l).concat(e),a,u),f=d.data,h=d.error,m=!h&&!f;return{data:f,error:h,loading:m}}},8669:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=function(e){return e.reduce((function(e,n){var t=n.hostName,r=n.hostType,i=n.hostUUID;return e[i]={name:t,type:r,uuid:i},e}),{})},i=function(e){return e.reduce((function(e,n){var t=n.anvilDescription,i=n.anvilName,o=n.anvilUUID,c=n.hosts;return e[o]={description:t,hosts:r(c),name:i,uuid:o},e}),{})}},9048:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return X}});var r=t(5893),i=t(2428),o=t(8263),c=t(7357),a=t(7720),s=t(9008),l=t(1163),u=t(7294),d=t(2029),f=t(7169),h=t(8673),m=t(4490),v=function(e){var n=e.anvil_name,t=e.anvil_state,r=e.anvil_uuid;return{hosts:e.hosts.reduce((function(e,n){var t=n.host_name,r=n.host_uuid,i=n.maintenance_mode,o=n.server_count,c=n.state,a=n.state_percent;return e[r]={name:t,maintenance:i,serverCount:o,state:c,stateProgress:a,uuid:r},e}),{}),name:n,state:t,uuid:r}},x=function(e){var n=e.allocated,t=e.reserved,r=e.total;return{allocated:BigInt(n),reserved:BigInt(t),total:BigInt(r)}},j=function(e){var n=e.storage_groups,t=e.total_free,r=e.total_size,i=BigInt(t),o=BigInt(r);return n.reduce((function(e,n){var t=n.storage_group_free,r=n.storage_group_name,i=n.storage_group_total,o=n.storage_group_uuid,c=BigInt(t),a=BigInt(i);return e.storageGroups[o]={free:c,name:r,size:a,uuid:o},e}),{storageGroups:{},totalFree:i,totalSize:o})},p=t(582),g=t(4690),b=t(2152),y=t(5813),Z=t(7750),O=t(7791);function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var w=BigInt(100),_={degraded:f.hM,not_ready:f.Wd,optimal:f.Ej},S={offline:f.Wd,online:f.Ej},I=function(e){var n=e.anvilUuid,t=(0,O.Z)("/anvil/".concat(n)),i=t.data,c=t.loading,a=(0,u.useMemo)((function(){return i&&v(i)}),[i]),s=(0,O.Z)("/anvil/".concat(n,"/cpu")),l=s.data,d=s.loading,I=(0,u.useMemo)((function(){return l&&Object.values(l.hosts)}),[l]),A=(0,O.Z)("/anvil/".concat(n,"/memory")),U=A.data,C=A.loading,E=(0,u.useMemo)((function(){return U&&x(U)}),[U]),M=(0,O.Z)("/anvil/".concat(n,"/store")),B=M.data,k=M.loading,N=(0,u.useMemo)((function(){return B&&j(B)}),[B]),D=(0,u.useMemo)((function(){return[c,d,C,k].some((function(e){return e}))}),[c,d,C,k]),T=(0,u.useMemo)((function(){return a&&(0,r.jsx)(Z.$_,{inheritColour:!0,color:_[a.state],children:a.state})}),[a]),z=(0,u.useMemo)((function(){return a&&(0,r.jsx)(o.ZP,{alignItems:"center",columns:20,columnSpacing:"0.5em",container:!0,sx:P({},"& > .".concat(h.Z.item,":nth-child(-n + 4)"),{marginBottom:"-.6em"}),children:Object.values(a.hosts).map((function(e){var n,t,i=e.name,c=e.serverCount,a=e.state,s=e.stateProgress,l=e.uuid,u=null!==(n=S[a])&&void 0!==n?n:f.s7,d=a;return["offline","online"].includes(a)?t=(0,r.jsx)(Z.$_,{variant:"caption",children:c}):d="".concat(s,"%"),[(0,r.jsx)(o.ZP,{item:!0,xs:7,children:(0,r.jsx)(Z.Ac,{variant:"caption",whiteSpace:"nowrap",children:i})},"".concat(l,"-state-label")),(0,r.jsx)(o.ZP,{item:!0,xs:5,children:(0,r.jsx)(Z.$_,{inheritColour:!0,color:u,children:d})},"".concat(l,"-state")),(0,r.jsx)(o.ZP,{item:!0,xs:!0,children:(0,r.jsx)(p.Z,{sx:{marginBottom:"-.4em"}})},"".concat(l,"-divider")),(0,r.jsx)(o.ZP,{item:!0,width:"2.2em",children:t&&(0,r.jsx)(Z.Ac,{variant:"caption",children:"Servers"})},"".concat(l,"-server-label")),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",width:"2em",children:t},"".concat(l,"-server-count"))]}))})}),[a]),$=(0,u.useMemo)((function(){return l&&I&&(0,r.jsxs)(g.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(g.Z,{spacing:0,children:(0,r.jsxs)(Z.Ac,{variant:"caption",whiteSpace:"nowrap",children:["Vendor"," ",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:I[0].vendor})]})}),(0,r.jsx)(p.Z,{sx:{flexGrow:1}}),(0,r.jsxs)(o.ZP,{alignItems:"center",columns:2,container:!0,sx:P({width:"3.7em"},"& > .".concat(h.Z.item,":nth-child(-n + 2)"),{marginBottom:"-.6em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{variant:"caption",children:"Cores"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(Z.$_,{variant:"caption",children:l.cores})}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{variant:"caption",children:"Threads"})}),(0,r.jsx)(o.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(Z.$_,{variant:"caption",children:l.threads})})]})]})}),[l,I]),W=(0,u.useMemo)((function(){return E&&(0,r.jsxs)(g.Z,{spacing:0,children:[(0,r.jsx)(g.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(Z.Ac,{mb:"-.3em",variant:"caption",children:["Free",(0,r.jsx)(Z.Q0,{children:(0,m._d)(E.total-(E.reserved+E.allocated),{toUnit:"ibyte"})}),"/",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:(0,m._d)(E.total,{toUnit:"ibyte"})})]})}),(0,r.jsx)(y.Z,{thin:!0,value:{reserved:{value:Number(E.reserved*w/E.total)},allocated:{value:Number((E.reserved+E.allocated)*w/E.total),colour:{0:f.Ej,70:f.Wd,90:f.hM}}}})]})}),[E]),F=(0,u.useMemo)((function(){return N&&(0,r.jsxs)(g.Z,{spacing:0,children:[(0,r.jsx)(g.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(Z.Ac,{mb:"-.3em",variant:"caption",children:["Total free",(0,r.jsx)(Z.Q0,{children:(0,m._d)(N.totalFree,{toUnit:"ibyte"})}),"/",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:(0,m._d)(N.totalSize,{toUnit:"ibyte"})})]})}),(0,r.jsx)(y.Z,{thin:!0,value:{allocated:{value:Number((N.totalSize-N.totalFree)*w/N.totalSize),colour:{0:f.Ej,70:f.Wd,90:f.hM}}}})]})}),[N]);return D?(0,r.jsx)(b.Z,{mt:0}):(0,r.jsxs)(o.ZP,{alignItems:"center",columns:4,container:!0,sx:P({},"& > .".concat(h.Z.item,":nth-child(odd)"),{alignItems:"center",display:"flex",height:"2.2em"}),children:[(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Node"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:T}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Subnodes"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:z}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"CPU"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:$}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Memory"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:W}),(0,r.jsx)(o.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Storage"})}),(0,r.jsx)(o.ZP,{item:!0,xs:3,children:F})]})},A=t(8669),U=t(7504),C=t(3679);var E=function(){var e=(0,O.Z)("/anvil",{refreshInterval:5e3}),n=e.data,t=e.loading,i=(0,u.useMemo)((function(){return n&&(0,A.Z)(n)}),[n]),o=(0,u.useMemo)((function(){return i&&(0,r.jsx)(U.Z,{columns:{xs:1,sm:2,md:3,xl:4},layout:Object.values(i).reduce((function(e,n){var t=n.description,i=n.name,o=n.uuid;return e["anvil-".concat(o)]={children:(0,r.jsxs)(C.Lg,{height:"100%",mv:0,children:[(0,r.jsx)(C.CH,{children:(0,r.jsxs)(Z.Ac,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[i,": ",t]})}),(0,r.jsx)(C.bc,{children:(0,r.jsx)(I,{anvilUuid:o})})]})},e}),{}),spacing:"1em",sx:(e={alignContent:"stretch"},n="& > .".concat(h.Z.item),t={minWidth:"20em"},n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e)});var e,n,t}),[i]);return(0,r.jsxs)(C.s_,{children:[(0,r.jsx)(C.V9,{children:(0,r.jsx)(Z.z,{children:"Nodes"})}),t?(0,r.jsx)(b.Z,{}):o]})},M=t(5094),B=t(1200),k=t(5521),N=t(1706),D=t(5741),T=t(9),z=t(1905),$=t(4968),W=t(9370);function F(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t div":{height:"100%",marginBottom:0,marginTop:0}},xs:1,children:(0,r.jsx)(M.M,{externalPreview:s,externalTimestamp:f,headerEndAdornment:[(0,r.jsx)(D.Z,{href:"/server?uuid=".concat(d,"&server_name=").concat(l,"&server_state=").concat(u),children:l},"server_list_to_server_".concat(d)),(0,r.jsx)(D.Z,{href:"/anvil?anvil_uuid=".concat(i),sx:{opacity:.7},children:t},"server_list_server_".concat(d,"_to_anvil_").concat(i))],isExternalLoading:a,isExternalPreviewStale:c,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,onClickPreview:function(){n.push("/server?uuid=".concat(d,"&server_name=").concat(l,"&server_state=").concat(u,"&vnc=1"))},serverState:u,serverUUID:d})},"".concat(d,"-preview"))}))})},V=function(e,n){return""===n?{exclude:e,include:[]}:e.reduce((function(e,t){return t.serverName.includes(n)?e.include.push(t):e.exclude.push(t),e}),{exclude:[],include:[]})},X=function(){var e=(0,u.useRef)(!0),n=(0,l.useRouter)(),t=(0,u.useState)([]),o=t[0],h=t[1],m=(0,u.useState)([]),v=m[0],x=m[1],j=(0,u.useState)([]),p=j[0],g=j[1],y=(0,u.useState)(""),O=y[0],P=y[1],w=(0,u.useState)(!1),_=w[0],S=w[1],I=function(){for(var n=arguments.length,t=new Array(n),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],t=n.map((function(n){var r,i=n.serverUUID,c=R({},n,{loading:!0,screenshot:(null===(r=o.find((function(e){return e.serverUUID===i})))||void 0===r?void 0:r.screenshot)||"",timestamp:0});return(0,B.Z)("".concat(d.Z,"/server/").concat(i,"?ss=1")).then((function(n){var r=n.screenshot,i=n.timestamp;if(0!==r.length){c.isScreenshotStale=!(0,W.Z$)(i,300),c.loading=!1,c.screenshot=r,c.timestamp=i;var o=L(t);e.current&&h(o)}})).catch((function(){c.isScreenshotStale=!0})).finally((function(){c.loading=!1})),c}));h(t),I(t,O)},refreshInterval:6e4}).isLoading;return(0,u.useEffect)((function(){return function(){e.current=!1}}),[]),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(s.default,{children:(0,r.jsx)("title",{children:"Dashboard"})}),(0,r.jsx)(k.Z,{}),(0,r.jsx)(C.s_,{children:A?(0,r.jsx)(b.Z,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(C.V9,{sx:{marginBottom:"2em"},children:[(0,r.jsx)(Z.z,{children:"Servers"}),(0,r.jsx)(N.Z,{onClick:function(){return S(!0)},children:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(T.Z,{placeholder:"Search by server name",onChange:function(e){var n=e.target.value;P(n),I(o,n)},sx:{minWidth:"16em"},value:O})]}),G(p,n),p.length>0&&(0,r.jsx)(a.Z,{sx:{backgroundColor:f.d}}),G(v,n)]})}),(0,r.jsx)(E,{}),(0,r.jsx)($.Z,{dialogProps:{open:_},onClose:function(){S(!1)}})]})}}},function(e){e.O(0,[412,438,894,182,900,485,433,62,195,987,157,825,94,774,888,179],(function(){return n=5301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/index-6ff72adab3a682db.js b/striker-ui/out/_next/static/chunks/pages/index-6ff72adab3a682db.js deleted file mode 100644 index fe67e872..00000000 --- a/striker-ui/out/_next/static/chunks/pages/index-6ff72adab3a682db.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(5075)}])},5741:function(e,r,n){"use strict";var t=n(5893),o=n(1714),i=n(122),c=n(7169),a=n(4690);function s(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function u(e){for(var r=1;r=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(e){var r=e.children,n=e.sx,s=l(e,["children","sx"]);return(0,t.jsx)(i.Z,u({underline:"hover",variant:"subtitle1"},s,{sx:u({color:c.lD,textDecorationColor:c.s7},n),children:(0,t.jsxs)(a.Z,{row:!0,children:[r,(0,t.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})}))}},5075:function(e,r,n){"use strict";n.r(r);var t=n(5893),o=n(9008),i=n(1163),c=n(7294),a=n(7357),s=n(7720),u=n(2428),l=n(2029),f=n(7169),v=n(5094),d=n(1200),h=n(5521),m=n(1706),p=n(5741),b=n(9),x=n(3679),y=n(1905),g=n(4968),j=n(2152),w=n(9370);function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n *":{width:{xs:"20em",md:"24em"}},"& > :not(:last-child)":{marginRight:"2em"}},children:e.map((function(e){var n=e.anvilName,o=e.anvilUUID,i=e.isScreenshotStale,c=e.loading,a=e.screenshot,s=e.serverName,u=e.serverState,l=e.serverUUID,f=e.timestamp;return(0,t.jsx)(v.M,{externalPreview:a,externalTimestamp:f,headerEndAdornment:[(0,t.jsx)(p.Z,{href:"/server?uuid=".concat(l,"&server_name=").concat(s,"&server_state=").concat(u),children:s},"server_list_to_server_".concat(l)),(0,t.jsx)(p.Z,{href:"/anvil?anvil_uuid=".concat(o),sx:{opacity:.7},children:n},"server_list_server_".concat(l,"_to_anvil_").concat(o))],isExternalLoading:c,isExternalPreviewStale:i,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,onClickPreview:function(){r.push("/server?uuid=".concat(l,"&server_name=").concat(s,"&server_state=").concat(u,"&vnc=1"))},serverState:u,serverUUID:l},"server-preview-".concat(l))}))})},E=function(e,r){return""===r?{exclude:e,include:[]}:e.reduce((function(e,n){return n.serverName.includes(r)?e.include.push(n):e.exclude.push(n),e}),{exclude:[],include:[]})};r.default=function(){var e=(0,c.useRef)(!0),r=(0,i.useRouter)(),n=(0,c.useState)([]),v=n[0],p=n[1],O=(0,c.useState)([]),S=O[0],U=O[1],D=(0,c.useState)([]),I=D[0],k=D[1],C=(0,c.useState)(""),A=C[0],N=C[1],R=(0,c.useState)(!1),T=R[0],L=R[1],F=function(){for(var r=arguments.length,n=new Array(r),t=0;t0&&void 0!==arguments[0]?arguments[0]:[],n=r.map((function(r){var t,o=r.serverUUID,i=_({},r,{loading:!0,screenshot:(null===(t=v.find((function(e){return e.serverUUID===o})))||void 0===t?void 0:t.screenshot)||"",timestamp:0});return(0,d.Z)("".concat(l.Z,"/server/").concat(o,"?ss=1")).then((function(r){var t=r.screenshot,o=r.timestamp;if(0!==t.length){i.isScreenshotStale=!(0,w.Z$)(o,300),i.loading=!1,i.screenshot=t,i.timestamp=o;var c=Z(n);e.current&&p(c)}})).catch((function(){i.isScreenshotStale=!0})).finally((function(){i.loading=!1})),i}));p(n),F(n,A)},refreshInterval:6e4}).isLoading;return(0,c.useEffect)((function(){return function(){e.current=!1}}),[]),(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(o.default,{children:(0,t.jsx)("title",{children:"Dashboard"})}),(0,t.jsx)(h.Z,{}),(0,t.jsx)(x.s_,{children:M?(0,t.jsx)(j.Z,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(x.V9,{children:[(0,t.jsx)(b.Z,{placeholder:"Search by server name",onChange:function(e){var r=e.target.value;N(r),F(v,r)},sx:{marginRight:".6em"},value:A}),(0,t.jsx)(m.Z,{onClick:function(){return L(!0)},children:(0,t.jsx)(u.Z,{})})]}),P(I,r),I.length>0&&(0,t.jsx)(s.Z,{sx:{backgroundColor:f.d}}),P(S,r)]})}),(0,t.jsx)(g.Z,{dialogProps:{open:T},onClose:function(){L(!1)}})]})}}},function(e){e.O(0,[382,438,894,182,434,485,433,62,195,987,157,825,94,774,888,179],(function(){return r=5301,e(e.s=r);var r}));var r=e.O();_N_E=r}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/init-053607258b5d7d64.js b/striker-ui/out/_next/static/chunks/pages/init-7cf62951388d0e3b.js similarity index 99% rename from striker-ui/out/_next/static/chunks/pages/init-053607258b5d7d64.js rename to striker-ui/out/_next/static/chunks/pages/init-7cf62951388d0e3b.js index ac7401a7..dd6c8281 100644 --- a/striker-ui/out/_next/static/chunks/pages/init-053607258b5d7d64.js +++ b/striker-ui/out/_next/static/chunks/pages/init-7cf62951388d0e3b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[464],{593:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/init",function(){return t(8616)}])},4069:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var r=t(7294),i=t(3675),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.postSet,t=e.preSet,r=e.set,o=e.setType,l=void 0===o?"string":o,u=e.valueKey,a=void 0===u?"value":u;return function(e){var o=e.target[a],u=i.Z[l](o);null===t||void 0===t||t.call(null,e),null===r||void 0===r||r.call(null,u),null===n||void 0===n||n.call(null,e)}},l=t(7987);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}var v=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var p="input",m={boolean:!1,number:0,string:""},h={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},g=(0,r.forwardRef)((function(e,n){var t=e.input,i=e.inputTestBatch,u=e.onBlurAppend,v=e.onFirstRender,g=e.onFocusAppend,y=e.onUnmount,b=e.required,x=void 0===b?h.required:b,j=e.valueKey,w=e.valueType,P=void 0===w?h.valueType:w,O=e.createInputOnChangeHandlerOptions,S=void 0===O?h.createInputOnChangeHandlerOptions:O,k=S.postSet,Z=S.valueKey,C=void 0===Z?j:Z,A=s(e.createInputOnChangeHandlerOptions,["postSet","valueKey"]),I=t.props,N=(0,r.useMemo)((function(){return null!==C&&void 0!==C?C:"checked"in I?"checked":"value"}),[I,C]),V=I.onBlur,H=I.onChange,R=I.onFocus,M=I[N],F=void 0===M?m[P]:M,T=s(I,["onBlur","onChange","onFocus",N].map(f)),E=(0,r.useState)(F),z=E[0],B=E[1],D=(0,r.useState)(!1),_=D[0],L=D[1],q=(0,r.useState)(!1),U=q[0],$=q[1],Q=(0,r.useCallback)((function(e){B(e)}),[]),J=(0,r.useMemo)((function(){var e;return i&&(i.isRequired=x,e=(0,l.LT)(a({},p,i))),e}),[i,x]),G=(0,r.useMemo)((function(){return null!==V&&void 0!==V?V:J&&function(){for(var e=arguments.length,n=new Array(e),t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],l=!0,u=!1;try{for(t=t.call(e);!(l=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);l=!0);}catch(a){u=!0,i=a}finally{try{l||null==t.return||t.return()}finally{if(u)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}var d=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var f={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},v=(0,i.forwardRef)((function(e,n){var t=e.count,l=void 0===t?f.count:t,d=e.defaultMessageType,v=void 0===d?f.defaultMessageType:d,p=e.messages,m=e.onSet,h=e.usePlaceholder,g=void 0===h?f.usePlaceholder:h,y=(0,i.useState)({}),b=y[0],x=y[1],j=(0,i.useMemo)((function(){return function(e){for(var n=1;n0,t=n?l:e.length,i=[];if(e.every((function(e){var n=c(e,2),l=n[0],u=n[1],a=u.children,s=u.type,d=void 0===s?v:s;return i.push((0,r.jsx)(o.Z,{type:d,children:a},"message-".concat(l))),i.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.fillString,r=void 0===t?"0":t,i=n.maxLength,o=void 0===i?2:i,l=n.which,u=void 0===l?"Start":l;return String(e)["pad".concat(u)](o,r)};function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S={show:!0},k=function(e){var n=e.onClick,t=e.show,i=void 0===t?S.show:t,o=O(e,["onClick","show"]);return i?(0,r.jsx)(v.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(/\s/).filter((function(e){return!/and|of/.test(e)})).slice(0,5),t=n.length>1?2:n.length;return _[t](n)},q=function(e){var n=e.organizationPrefix,t=e.hostNumber,r=e.domainName;return[n,t,r].every((function(e){return Boolean(e)}))?"".concat(n,"-striker").concat(w(t),".").concat(r):""},U=(0,a.forwardRef)((function(e,n){var t,i,o,u,c=e.expectHostDetail,s=void 0!==c&&c,d=e.hostDetail,f=e.onHostNumberBlurAppend,v=e.toggleSubmitDisabled,w=(0,a.useState)(),P=w[0],O=w[1],S=(0,a.useState)(!1),k=S[0],I=S[1],R=(0,a.useState)(!1),_=R[0],U=R[1],$=(0,a.useState)(!0),Q=$[0],J=$[1],G=(0,a.useState)(!0),K=G[0],W=G[1],X=(0,a.useRef)(!0),Y=(0,a.useRef)({}),ee=(0,a.useRef)({}),ne=(0,a.useRef)({}),te=(0,a.useRef)({}),re=(0,a.useRef)({}),ie=(0,a.useRef)({}),oe=(0,a.useRef)({}),le=(0,a.useRef)({}),ue=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,D,e)}),[]),ae=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,z,e)}),[]),ce=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,T,e)}),[]),se=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,E,e)}),[]),de=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,M,e)}),[]),fe=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,F,e)}),[]),ve=(0,a.useMemo)((function(){var e;return N(e={},M,{defaults:{getValue:function(){var e;return null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){de(void 0)}},tests:[{onFailure:function(){de({children:(0,r.jsxs)(r.Fragment,{children:["Admin password cannot contain single-quote (",(0,r.jsx)(A.Q0,{text:"'"}),"), double-quote (",(0,r.jsx)(A.Q0,{text:'"'}),"), slash (",(0,r.jsx)(A.Q0,{text:"/"}),"), backslash (",(0,r.jsx)(A.Q0,{text:"\\"}),"), angle brackets (",(0,r.jsx)(A.Q0,{text:"<>"}),"), curly brackets (",(0,r.jsx)(A.Q0,{text:"{}"}),")."]})})},test:function(e){var n=e.value;return!/['"/\\><}{]/g.test(n)}},{test:C.HJ}]}),N(e,F,{defaults:{getValue:function(){var e,n;return null===(e=ee.current)||void 0===e||null===(n=e.getValue)||void 0===n?void 0:n.call(null)},onSuccess:function(){fe(void 0)}},tests:[{onFailure:function(){fe({children:"Confirmation doesn't match admin password."})},test:function(e){var n;return e.value===(null===(n=Y.current.getValue)||void 0===n?void 0:n.call(null))}},{test:C.HJ}]}),N(e,T,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=re.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ce(void 0)}},tests:[{onFailure:function(){ce({children:(0,r.jsxs)(r.Fragment,{children:["Domain name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,E,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=oe.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){se(void 0)}},tests:[{onFailure:function(){se({children:(0,r.jsxs)(r.Fragment,{children:["Host name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,z,{defaults:{getValue:function(){var e;return null===(e=ie.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ae(void 0)}},tests:[{onFailure:function(){ae({children:"Striker number can only contain digits."})},test:function(e){var n=e.value;return/^\d+$/.test(n)}},{test:C.HJ}]}),N(e,B,{defaults:{getValue:function(){var e;return null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null)}},tests:[{test:C.HJ}]}),N(e,D,{defaults:{getValue:function(){var e;return null===(e=te.current.getValue)||void 0===e?void 0:e.call(null)},max:5,min:1,onSuccess:function(){ue(void 0)}},tests:[{onFailure:function(e){var n=e.max,t=e.min;ue({children:"Organization prefix must be ".concat(t," to ").concat(n," lowercase alphanumeric characters.")})},test:function(e){var n=e.max,t=e.min,r=e.value;return RegExp("^[a-z0-9]{".concat(t,",").concat(n,"}$")).test(r)}}]}),e}),[K,de,fe,ce,se,ae,ue]),pe=(0,a.useMemo)((function(){return(0,C.LT)(ve)}),[ve]),me=(0,a.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.excludeTestIds,t=void 0===n?[]:n,r=e.inputs,i=e.isContinueOnFailure,o=e.isExcludeConfirmAdminPassword,l=void 0===o?!Q:o;l&&t.push(F),null===v||void 0===v||v.call(null,pe({excludeTestIds:t,inputs:r,isContinueOnFailure:i,isIgnoreOnCallbacks:!0,isTestAll:!0}))}),[Q,pe,v]),he=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.organizationName,i=void 0===r?null===(t=ne.current.getValue)||void 0===t?void 0:t.call(null):r,o=L(i);return null===(e=te.current.setValue)||void 0===e||e.call(null,o),me({inputs:N({},D,{isIgnoreOnCallbacks:!1,value:o}),isContinueOnFailure:!0}),o}),[me]),ge=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.organizationPrefix,r=void 0===t?null===(i=te.current.getValue)||void 0===i?void 0:i.call(null):t,l=n.hostNumber,a=void 0===l?null===(o=ie.current.getValue)||void 0===o?void 0:o.call(null):l,c=n.domainName,s=void 0===c?null===(u=re.current.getValue)||void 0===u?void 0:u.call(null):c,d=q({organizationPrefix:r,hostNumber:a,domainName:s});return null===(e=oe.current.setValue)||void 0===e||e.call(null,d),me({inputs:N({},E,{isIgnoreOnCallbacks:!1,value:d}),isContinueOnFailure:!0}),d}),[me]),ye=(0,a.useCallback)((function(){var e;return Boolean(null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null))}),[]),be=(0,a.useCallback)((function(){var e,n,t;return[null===(e=te.current.getValue)||void 0===e?void 0:e.call(null),null===(n=ie.current.getValue)||void 0===n?void 0:n.call(null),null===(t=re.current.getValue)||void 0===t?void 0:t.call(null)].every((function(e){return Boolean(e)}))}),[]),xe=(0,a.useCallback)((function(){var e;(null===(e=te.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?I(ye()):he()}),[ye,he]),je=(0,a.useCallback)((function(){var e;(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?U(be()):ge()}),[be,ge]),we=(0,a.useCallback)((function(){var e,n=he();(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))||ge({organizationPrefix:n})}),[ge,he]),Pe=(0,a.useCallback)((function(){ge()}),[ge]),Oe=(0,a.useCallback)((function(e){return function(n){return n===e?void 0:e}}),[]),Se=(0,a.useMemo)((function(){return(0,r.jsx)(m.Z,{checked:K,onChange:function(e,n){var t;W(n),me({inputs:(t={},N(t,T,{compare:[!n],isIgnoreOnCallbacks:!1}),N(t,E,{compare:[!n],isIgnoreOnCallbacks:!1}),t),isContinueOnFailure:!0})},sx:{padding:".2em"}})}),[K,me]);return(0,a.useEffect)((function(){if([s,d,X.current,re.current,oe.current,ie.current,ne.current,te.current].every((function(e){return Boolean(e)}))){var e,n,t,r,i;X.current=!1;var o=d.domain,l=d.hostName,u=d.organization,a=d.prefix,c=d.sequence;null===(e=re.current.setValue)||void 0===e||e.call(null,o),null===(n=oe.current.setValue)||void 0===n||n.call(null,l),null===(t=ie.current.setValue)||void 0===t||t.call(null,c),null===(r=ne.current.setValue)||void 0===r||r.call(null,u),null===(i=te.current.setValue)||void 0===i||i.call(null,a),me()}}),[s,d,me]),(0,a.useImperativeHandle)(n,(function(){return{get:function(){var e,n,t,r,i,o;return{adminPassword:null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null),organizationName:null===(n=ne.current.getValue)||void 0===n?void 0:n.call(null),organizationPrefix:null===(t=te.current.getValue)||void 0===t?void 0:t.call(null),domainName:null===(r=re.current.getValue)||void 0===r?void 0:r.call(null),hostNumber:null===(i=ie.current.getValue)||void 0===i?void 0:i.call(null),hostName:null===(o=oe.current.getValue)||void 0===o?void 0:o.call(null)}}}})),(0,r.jsxs)(p.Z,{children:[(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2,md:3},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-name",inputProps:{onBlur:xe},inputLabelProps:{isNotifyRequired:!0},label:"Organization name",onChange:function(){me()},onHelp:function(){O(Oe("Name of the organization that maintains this Anvil! system. You can enter anything that makes sense to you."))}}),ref:ne}),(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :first-child":{flexGrow:1}},children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-prefix",inputProps:{endAdornment:(0,r.jsx)(Z,{show:k,onClick:we}),inputProps:{maxLength:5,sx:{minWidth:"2.5em"}},onBlur:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r * > *":{width:"100%"}},children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},M,{value:n})})},onPasswordVisibilityAppend:function(e){var n=e===h.Z.password;me({isExcludeConfirmAdminPassword:!n}),J(n),fe()}},inputLabelProps:{isNotifyRequired:!0},label:"Admin password",onChange:function(e){var n=e.target.value;me({inputs:N({},M,{value:n})}),de()},onHelp:function(){O(Oe("Password use to login to this Striker and connect to its database. Don't provide an used password here because it'll be stored as plaintext."))}}),ref:Y})}),Q&&(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-confirm-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},F,{value:n})})}},inputLabelProps:{isNotifyRequired:Q},label:"Confirm password",onChange:function(e){var n=e.target.value;me({inputs:N({},F,{value:n})}),fe()}}),ref:ee})})]})})]}),(0,r.jsx)(x.Z,{count:1,defaultMessageType:"warning",ref:le}),(0,r.jsx)(b.Z,{children:(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :last-child":{flexGrow:1}},children:[Se,(0,r.jsx)(A.Ac,{inverted:!0,children:K?"Uncheck to skip domain and host name pattern validation.":"Check to re-enable domain and host name pattern validation."})]})}),P&&(0,r.jsx)(b.Z,{onClose:function(){O(void 0)},children:P})]})}));U.defaultProps={expectHostDetail:!1,hostDetail:void 0,onHostNumberBlurAppend:void 0,toggleSubmitDisabled:void 0},U.displayName="GeneralInitForm";var $=U,Q=t(1770),J=t(1706),G=t(3377),K=t(2444),W=t(5741),X=t(4596),Y=t(3679),ee=t(2152),ne=t(2749);function te(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:{},n=e.postSet,t=e.preSet,r=e.set,o=e.setType,l=void 0===o?"string":o,u=e.valueKey,a=void 0===u?"value":u;return function(e){var o=e.target[a],u=i.Z[l](o);null===t||void 0===t||t.call(null,e),null===r||void 0===r||r.call(null,u),null===n||void 0===n||n.call(null,e)}},l=t(7987);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){var n=function(e,n){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===v(n)?n:String(n)}var v=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var p="input",m={boolean:!1,number:0,string:""},h={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},g=(0,r.forwardRef)((function(e,n){var t=e.input,i=e.inputTestBatch,u=e.onBlurAppend,v=e.onFirstRender,g=e.onFocusAppend,y=e.onUnmount,b=e.required,x=void 0===b?h.required:b,j=e.valueKey,w=e.valueType,P=void 0===w?h.valueType:w,O=e.createInputOnChangeHandlerOptions,S=void 0===O?h.createInputOnChangeHandlerOptions:O,k=S.postSet,Z=S.valueKey,C=void 0===Z?j:Z,A=s(e.createInputOnChangeHandlerOptions,["postSet","valueKey"]),I=t.props,N=(0,r.useMemo)((function(){return null!==C&&void 0!==C?C:"checked"in I?"checked":"value"}),[I,C]),V=I.onBlur,H=I.onChange,R=I.onFocus,M=I[N],F=void 0===M?m[P]:M,T=s(I,["onBlur","onChange","onFocus",N].map(f)),E=(0,r.useState)(F),z=E[0],B=E[1],D=(0,r.useState)(!1),_=D[0],L=D[1],q=(0,r.useState)(!1),U=q[0],$=q[1],Q=(0,r.useCallback)((function(e){B(e)}),[]),J=(0,r.useMemo)((function(){var e;return i&&(i.isRequired=x,e=(0,l.LT)(a({},p,i))),e}),[i,x]),G=(0,r.useMemo)((function(){return null!==V&&void 0!==V?V:J&&function(){for(var e=arguments.length,n=new Array(e),t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],l=!0,u=!1;try{for(t=t.call(e);!(l=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);l=!0);}catch(a){u=!0,i=a}finally{try{l||null==t.return||t.return()}finally{if(u)throw i}}return o}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var n=function(e,n){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===d(n)?n:String(n)}var d=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var f={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},v=(0,i.forwardRef)((function(e,n){var t=e.count,l=void 0===t?f.count:t,d=e.defaultMessageType,v=void 0===d?f.defaultMessageType:d,p=e.messages,m=e.onSet,h=e.usePlaceholder,g=void 0===h?f.usePlaceholder:h,y=(0,i.useState)({}),b=y[0],x=y[1],j=(0,i.useMemo)((function(){return function(e){for(var n=1;n0,t=n?l:e.length,i=[];if(e.every((function(e){var n=c(e,2),l=n[0],u=n[1],a=u.children,s=u.type,d=void 0===s?v:s;return i.push((0,r.jsx)(o.Z,{type:d,children:a},"message-".concat(l))),i.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.fillString,r=void 0===t?"0":t,i=n.maxLength,o=void 0===i?2:i,l=n.which,u=void 0===l?"Start":l;return String(e)["pad".concat(u)](o,r)};function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function O(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var S={show:!0},k=function(e){var n=e.onClick,t=e.show,i=void 0===t?S.show:t,o=O(e,["onClick","show"]);return i?(0,r.jsx)(v.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(/\s/).filter((function(e){return!/and|of/.test(e)})).slice(0,5),t=n.length>1?2:n.length;return _[t](n)},q=function(e){var n=e.organizationPrefix,t=e.hostNumber,r=e.domainName;return[n,t,r].every((function(e){return Boolean(e)}))?"".concat(n,"-striker").concat(w(t),".").concat(r):""},U=(0,a.forwardRef)((function(e,n){var t,i,o,u,c=e.expectHostDetail,s=void 0!==c&&c,d=e.hostDetail,f=e.onHostNumberBlurAppend,v=e.toggleSubmitDisabled,w=(0,a.useState)(),P=w[0],O=w[1],S=(0,a.useState)(!1),k=S[0],I=S[1],R=(0,a.useState)(!1),_=R[0],U=R[1],$=(0,a.useState)(!0),Q=$[0],J=$[1],G=(0,a.useState)(!0),K=G[0],W=G[1],X=(0,a.useRef)(!0),Y=(0,a.useRef)({}),ee=(0,a.useRef)({}),ne=(0,a.useRef)({}),te=(0,a.useRef)({}),re=(0,a.useRef)({}),ie=(0,a.useRef)({}),oe=(0,a.useRef)({}),le=(0,a.useRef)({}),ue=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,D,e)}),[]),ae=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,z,e)}),[]),ce=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,T,e)}),[]),se=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,E,e)}),[]),de=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,M,e)}),[]),fe=(0,a.useCallback)((function(e){var n;return null===(n=le.current.setMessage)||void 0===n?void 0:n.call(null,F,e)}),[]),ve=(0,a.useMemo)((function(){var e;return N(e={},M,{defaults:{getValue:function(){var e;return null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){de(void 0)}},tests:[{onFailure:function(){de({children:(0,r.jsxs)(r.Fragment,{children:["Admin password cannot contain single-quote (",(0,r.jsx)(A.Q0,{text:"'"}),"), double-quote (",(0,r.jsx)(A.Q0,{text:'"'}),"), slash (",(0,r.jsx)(A.Q0,{text:"/"}),"), backslash (",(0,r.jsx)(A.Q0,{text:"\\"}),"), angle brackets (",(0,r.jsx)(A.Q0,{text:"<>"}),"), curly brackets (",(0,r.jsx)(A.Q0,{text:"{}"}),")."]})})},test:function(e){var n=e.value;return!/['"/\\><}{]/g.test(n)}},{test:C.HJ}]}),N(e,F,{defaults:{getValue:function(){var e,n;return null===(e=ee.current)||void 0===e||null===(n=e.getValue)||void 0===n?void 0:n.call(null)},onSuccess:function(){fe(void 0)}},tests:[{onFailure:function(){fe({children:"Confirmation doesn't match admin password."})},test:function(e){var n;return e.value===(null===(n=Y.current.getValue)||void 0===n?void 0:n.call(null))}},{test:C.HJ}]}),N(e,T,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=re.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ce(void 0)}},tests:[{onFailure:function(){ce({children:(0,r.jsxs)(r.Fragment,{children:["Domain name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,E,{defaults:{compare:[!K],getValue:function(){var e;return null===(e=oe.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){se(void 0)}},tests:[{onFailure:function(){se({children:(0,r.jsxs)(r.Fragment,{children:["Host name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(A.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(A.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||g.FZ.test(t)}},{test:C.HJ}]}),N(e,z,{defaults:{getValue:function(){var e;return null===(e=ie.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ae(void 0)}},tests:[{onFailure:function(){ae({children:"Striker number can only contain digits."})},test:function(e){var n=e.value;return/^\d+$/.test(n)}},{test:C.HJ}]}),N(e,B,{defaults:{getValue:function(){var e;return null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null)}},tests:[{test:C.HJ}]}),N(e,D,{defaults:{getValue:function(){var e;return null===(e=te.current.getValue)||void 0===e?void 0:e.call(null)},max:5,min:1,onSuccess:function(){ue(void 0)}},tests:[{onFailure:function(e){var n=e.max,t=e.min;ue({children:"Organization prefix must be ".concat(t," to ").concat(n," lowercase alphanumeric characters.")})},test:function(e){var n=e.max,t=e.min,r=e.value;return RegExp("^[a-z0-9]{".concat(t,",").concat(n,"}$")).test(r)}}]}),e}),[K,de,fe,ce,se,ae,ue]),pe=(0,a.useMemo)((function(){return(0,C.LT)(ve)}),[ve]),me=(0,a.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.excludeTestIds,t=void 0===n?[]:n,r=e.inputs,i=e.isContinueOnFailure,o=e.isExcludeConfirmAdminPassword,l=void 0===o?!Q:o;l&&t.push(F),null===v||void 0===v||v.call(null,pe({excludeTestIds:t,inputs:r,isContinueOnFailure:i,isIgnoreOnCallbacks:!0,isTestAll:!0}))}),[Q,pe,v]),he=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.organizationName,i=void 0===r?null===(t=ne.current.getValue)||void 0===t?void 0:t.call(null):r,o=L(i);return null===(e=te.current.setValue)||void 0===e||e.call(null,o),me({inputs:N({},D,{isIgnoreOnCallbacks:!1,value:o}),isContinueOnFailure:!0}),o}),[me]),ge=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.organizationPrefix,r=void 0===t?null===(i=te.current.getValue)||void 0===i?void 0:i.call(null):t,l=n.hostNumber,a=void 0===l?null===(o=ie.current.getValue)||void 0===o?void 0:o.call(null):l,c=n.domainName,s=void 0===c?null===(u=re.current.getValue)||void 0===u?void 0:u.call(null):c,d=q({organizationPrefix:r,hostNumber:a,domainName:s});return null===(e=oe.current.setValue)||void 0===e||e.call(null,d),me({inputs:N({},E,{isIgnoreOnCallbacks:!1,value:d}),isContinueOnFailure:!0}),d}),[me]),ye=(0,a.useCallback)((function(){var e;return Boolean(null===(e=ne.current.getValue)||void 0===e?void 0:e.call(null))}),[]),be=(0,a.useCallback)((function(){var e,n,t;return[null===(e=te.current.getValue)||void 0===e?void 0:e.call(null),null===(n=ie.current.getValue)||void 0===n?void 0:n.call(null),null===(t=re.current.getValue)||void 0===t?void 0:t.call(null)].every((function(e){return Boolean(e)}))}),[]),xe=(0,a.useCallback)((function(){var e;(null===(e=te.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?I(ye()):he()}),[ye,he]),je=(0,a.useCallback)((function(){var e;(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?U(be()):ge()}),[be,ge]),we=(0,a.useCallback)((function(){var e,n=he();(null===(e=oe.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))||ge({organizationPrefix:n})}),[ge,he]),Pe=(0,a.useCallback)((function(){ge()}),[ge]),Oe=(0,a.useCallback)((function(e){return function(n){return n===e?void 0:e}}),[]),Se=(0,a.useMemo)((function(){return(0,r.jsx)(m.Z,{checked:K,onChange:function(e,n){var t;W(n),me({inputs:(t={},N(t,T,{compare:[!n],isIgnoreOnCallbacks:!1}),N(t,E,{compare:[!n],isIgnoreOnCallbacks:!1}),t),isContinueOnFailure:!0})},sx:{padding:".2em"}})}),[K,me]);return(0,a.useEffect)((function(){if([s,d,X.current,re.current,oe.current,ie.current,ne.current,te.current].every((function(e){return Boolean(e)}))){var e,n,t,r,i;X.current=!1;var o=d.domain,l=d.hostName,u=d.organization,a=d.prefix,c=d.sequence;null===(e=re.current.setValue)||void 0===e||e.call(null,o),null===(n=oe.current.setValue)||void 0===n||n.call(null,l),null===(t=ie.current.setValue)||void 0===t||t.call(null,c),null===(r=ne.current.setValue)||void 0===r||r.call(null,u),null===(i=te.current.setValue)||void 0===i||i.call(null,a),me()}}),[s,d,me]),(0,a.useImperativeHandle)(n,(function(){return{get:function(){var e,n,t,r,i,o;return{adminPassword:null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null),organizationName:null===(n=ne.current.getValue)||void 0===n?void 0:n.call(null),organizationPrefix:null===(t=te.current.getValue)||void 0===t?void 0:t.call(null),domainName:null===(r=re.current.getValue)||void 0===r?void 0:r.call(null),hostNumber:null===(i=ie.current.getValue)||void 0===i?void 0:i.call(null),hostName:null===(o=oe.current.getValue)||void 0===o?void 0:o.call(null)}}}})),(0,r.jsxs)(p.Z,{children:[(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2,md:3},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-name",inputProps:{onBlur:xe},inputLabelProps:{isNotifyRequired:!0},label:"Organization name",onChange:function(){me()},onHelp:function(){O(Oe("Name of the organization that maintains this Anvil! system. You can enter anything that makes sense to you."))}}),ref:ne}),(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :first-child":{flexGrow:1}},children:[(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-organization-prefix",inputProps:{endAdornment:(0,r.jsx)(Z,{show:k,onClick:we}),inputProps:{maxLength:5,sx:{minWidth:"2.5em"}},onBlur:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r * > *":{width:"100%"}},children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},M,{value:n})})},onPasswordVisibilityAppend:function(e){var n=e===h.Z.password;me({isExcludeConfirmAdminPassword:!n}),J(n),fe()}},inputLabelProps:{isNotifyRequired:!0},label:"Admin password",onChange:function(e){var n=e.target.value;me({inputs:N({},M,{value:n})}),de()},onHelp:function(){O(Oe("Password use to login to this Striker and connect to its database. Don't provide an used password here because it'll be stored as plaintext."))}}),ref:Y})}),Q&&(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(j.Z,{id:"striker-init-general-confirm-admin-password",inputProps:{inputProps:{type:h.Z.password},onBlur:function(e){var n=e.target.value;pe({inputs:N({},F,{value:n})})}},inputLabelProps:{isNotifyRequired:Q},label:"Confirm password",onChange:function(e){var n=e.target.value;me({inputs:N({},F,{value:n})}),fe()}}),ref:ee})})]})})]}),(0,r.jsx)(x.Z,{count:1,defaultMessageType:"warning",ref:le}),(0,r.jsx)(b.Z,{children:(0,r.jsxs)(p.Z,{row:!0,sx:{"& > :last-child":{flexGrow:1}},children:[Se,(0,r.jsx)(A.Ac,{inverted:!0,children:K?"Uncheck to skip domain and host name pattern validation.":"Check to re-enable domain and host name pattern validation."})]})}),P&&(0,r.jsx)(b.Z,{onClose:function(){O(void 0)},children:P})]})}));U.defaultProps={expectHostDetail:!1,hostDetail:void 0,onHostNumberBlurAppend:void 0,toggleSubmitDisabled:void 0},U.displayName="GeneralInitForm";var $=U,Q=t(1770),J=t(1706),G=t(3377),K=t(2444),W=t(5741),X=t(4596),Y=t(3679),ee=t(2152),ne=t(2749);function te(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(t[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`),Number(i)>0&&(t[`spacing-sm-${String(i)}`]||`spacing-sm-${String(i)}`),Number(o)>0&&(t[`spacing-md-${String(o)}`]||`spacing-md-${String(o)}`),Number(a)>0&&(t[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(s)>0&&(t[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const b=(0,c.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,r)=>{const{container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:l,xl:c,xs:p,zeroMinWidth:d}=n.ownerState;return[r.root,t&&r.container,i&&r.item,d&&r.zeroMinWidth,...x(u,t,r),"row"!==e&&r[`direction-xs-${String(e)}`],"wrap"!==l&&r[`wrap-xs-${String(l)}`],!1!==p&&r[`grid-xs-${String(p)}`],!1!==s&&r[`grid-sm-${String(s)}`],!1!==a&&r[`grid-md-${String(a)}`],!1!==o&&r[`grid-lg-${String(o)}`],!1!==c&&r[`grid-xl-${String(c)}`]]}})((({ownerState:n})=>(0,i.Z)({boxSizing:"border-box"},n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},n.item&&{margin:0},n.zeroMinWidth&&{minWidth:0},"wrap"!==n.wrap&&{flexWrap:n.wrap})),(function({theme:n,ownerState:r}){const t=(0,s.P$)({values:r.direction,breakpoints:n.breakpoints.values});return(0,s.k9)({theme:n},t,(n=>{const r={flexDirection:n};return 0===n.indexOf("column")&&(r[`& > .${m.Z.item}`]={maxWidth:"none"}),r}))}),(function({theme:n,ownerState:r}){const{container:t,rowSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{marginTop:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingTop:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){const{container:t,columnSpacing:e}=r;let i={};if(t&&0!==e){const r=(0,s.P$)({values:e,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const t=n.spacing(r);return"0px"!==t?{width:`calc(100% + ${h(t)})`,marginLeft:`-${h(t)}`,[`& > .${m.Z.item}`]:{paddingLeft:h(t)}}:{}}))}return i}),(function({theme:n,ownerState:r}){let t;return n.breakpoints.keys.reduce(((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=(0,s.P$)({values:r.columns,breakpoints:n.breakpoints.values}),l="object"===typeof u?u[o]:u;if(void 0===l||null===l)return e;const c=Math.round(t/l*1e8)/1e6+"%";let p={};if(r.container&&r.item&&0!==r.columnSpacing){const t=n.spacing(r.columnSpacing);if("0px"!==t){const n=`calc(${c} + ${h(t)})`;p={flexBasis:n,maxWidth:n}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},p)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));var v=o.forwardRef((function(n,r){const t=(0,p.Z)({props:n,name:"MuiGrid"}),s=(0,u.Z)(t),{className:c,columns:h,columnSpacing:v,component:w="div",container:S=!1,direction:y="row",item:$=!1,lg:P=!1,md:j=!1,rowSpacing:Z,sm:O=!1,spacing:k=0,wrap:I="wrap",xl:W=!1,xs:M=!1,zeroMinWidth:N=!1}=s,A=(0,e.Z)(s,g),L=Z||k,C=v||k,B=o.useContext(d),F=h||B||12,R=(0,i.Z)({},s,{columns:F,container:S,direction:y,item:$,lg:P,md:j,sm:O,rowSpacing:L,columnSpacing:C,wrap:I,xl:W,xs:M,zeroMinWidth:N}),_=(n=>{const{classes:r,container:t,direction:e,item:i,lg:o,md:a,sm:s,spacing:u,wrap:c,xl:p,xs:d,zeroMinWidth:f}=n,g={root:["root",t&&"container",i&&"item",f&&"zeroMinWidth",...x(u,t),"row"!==e&&`direction-xs-${String(e)}`,"wrap"!==c&&`wrap-xs-${String(c)}`,!1!==d&&`grid-xs-${String(d)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==a&&`grid-md-${String(a)}`,!1!==o&&`grid-lg-${String(o)}`,!1!==p&&`grid-xl-${String(p)}`]};return(0,l.Z)(g,m.H,r)})(R);return T=(0,f.jsx)(b,(0,i.Z)({ownerState:R,className:(0,a.Z)(_.root,c),as:w,ref:r},A)),12!==F?(0,f.jsx)(d.Provider,{value:F,children:T}):T;var T}))},8673:function(n,r,t){"use strict";t.d(r,{H:function(){return i}});var e=t(8979);function i(n){return(0,e.Z)("MuiGrid",n)}const o=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=(0,t(6087).Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((n=>`spacing-xs-${n}`)),...["column-reverse","column","row-reverse","row"].map((n=>`direction-xs-${n}`)),...["nowrap","wrap-reverse","wrap"].map((n=>`wrap-xs-${n}`)),...o.map((n=>`grid-xs-${n}`)),...o.map((n=>`grid-sm-${n}`)),...o.map((n=>`grid-md-${n}`)),...o.map((n=>`grid-lg-${n}`)),...o.map((n=>`grid-xl-${n}`))]);r.Z=a},7106:function(n,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(1686)}])},4629:function(n,r,t){"use strict";var e=t(5893),i=t(7357),o=t(7294),a=t(4188),s=t(4825),u=t(4690),l=t(7504),c=t(4069),p=t(7869),d=t(6284),m=t(2152),f=t(7987),g=t(8859),h=t(2749);function x(n,r){(null==r||r>n.length)&&(r=n.length);for(var t=0,e=new Array(r);t=0||(i[t]=n[t]);return i}(n,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(e=0;e=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}function S(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var t=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var e,i,o=[],a=!0,s=!1;try{for(t=t.call(n);!(a=(e=t.next()).done)&&(o.push(e.value),!r||o.length!==r);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}}(n,r)||$(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(n){return function(n){if(Array.isArray(n))return x(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||$(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(n,r){if(n){if("string"===typeof n)return x(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(n,r):void 0}}var P={width:"100%"},j="gate-input",Z="".concat(j,"-credential-id"),O="".concat(j,"-credential-passphrase"),k="access",I=(0,o.forwardRef)((function(n,r){var t,x,b=n.formContainer,$=void 0===b||b,j=n.gridProps,I=void 0===j?{}:j,W=I.columns,M=void 0===W?{xs:1,sm:2}:W,N=(I.layout,I.spacing),A=void 0===N?"1em":N,L=n.identifierId,C=void 0===L?Z:L,B=n.identifierInputTestBatchBuilder,F=void 0===B?f.Gn:B,R=n.identifierLabel,_=n.identifierOutlinedInputWithLabelProps,T=void 0===_?{}:_,G=T.formControlProps,z=void 0===G?{}:G,E=T.inputProps,U=n.onIdentifierBlurAppend,q=n.onSubmit,D=n.onSubmitAppend,H=n.passphraseId,V=void 0===H?O:H,X=n.passphraseLabel,J=n.passphraseOutlinedInputWithLabelProps,K=void 0===J?{}:J,Q=K.formControlProps,Y=void 0===Q?{}:Q,nn=K.inputProps,rn=n.submitLabel,tn=n.allowSubmit,en=void 0===tn?$:tn,on=w(n.gridProps,["columns","layout","spacing"]),an=w(n.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),sn=w(n.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),un=z.sx,ln=w(z,["sx"]),cn=Y.sx,pn=w(Y,["sx"]),dn=(0,o.useRef)({}),mn=(0,o.useRef)({}),fn=(0,o.useRef)({}),gn=S((0,h.Z)(!1),2),hn=gn[0],xn=gn[1],bn=(0,g.Z)([Z,O],fn),vn=bn.buildFinishInputTestBatchFunction,wn=bn.buildInputFirstRenderFunction,Sn=bn.buildInputUnmountFunction,yn=bn.isFormInvalid,$n=bn.setMessage,Pn=(0,o.useMemo)((function(){return null!==q&&void 0!==q?q:function(){for(var n=arguments.length,r=new Array(n),t=0;t`spacing-xs-${n}`)),...["column-reverse","column","row-reverse","row"].map((n=>`direction-xs-${n}`)),...["nowrap","wrap-reverse","wrap"].map((n=>`wrap-xs-${n}`)),...g.map((n=>`grid-xs-${n}`)),...g.map((n=>`grid-sm-${n}`)),...g.map((n=>`grid-md-${n}`)),...g.map((n=>`grid-lg-${n}`)),...g.map((n=>`grid-xl-${n}`))]),x=e(5893);const b=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function v(n){const r=parseFloat(n);return`${r}${String(n).replace(String(r),"")||"px"}`}function w(n,r,e={}){if(!r||!n||n<=0)return[];if("string"===typeof n&&!Number.isNaN(Number(n))||"number"===typeof n)return[e[`spacing-xs-${String(n)}`]||`spacing-xs-${String(n)}`];const{xs:t,sm:i,md:o,lg:a,xl:s}=n;return[Number(t)>0&&(e[`spacing-xs-${String(t)}`]||`spacing-xs-${String(t)}`),Number(i)>0&&(e[`spacing-sm-${String(i)}`]||`spacing-sm-${String(i)}`),Number(o)>0&&(e[`spacing-md-${String(o)}`]||`spacing-md-${String(o)}`),Number(a)>0&&(e[`spacing-lg-${String(a)}`]||`spacing-lg-${String(a)}`),Number(s)>0&&(e[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const S=(0,c.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,r)=>{const{container:e,direction:t,item:i,lg:o,md:a,sm:s,spacing:u,wrap:l,xl:c,xs:p,zeroMinWidth:d}=n.ownerState;return[r.root,e&&r.container,i&&r.item,d&&r.zeroMinWidth,...w(u,e,r),"row"!==t&&r[`direction-xs-${String(t)}`],"wrap"!==l&&r[`wrap-xs-${String(l)}`],!1!==p&&r[`grid-xs-${String(p)}`],!1!==s&&r[`grid-sm-${String(s)}`],!1!==a&&r[`grid-md-${String(a)}`],!1!==o&&r[`grid-lg-${String(o)}`],!1!==c&&r[`grid-xl-${String(c)}`]]}})((({ownerState:n})=>(0,i.Z)({boxSizing:"border-box"},n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},n.item&&{margin:0},n.zeroMinWidth&&{minWidth:0},"wrap"!==n.wrap&&{flexWrap:n.wrap})),(function({theme:n,ownerState:r}){const e=(0,s.P$)({values:r.direction,breakpoints:n.breakpoints.values});return(0,s.k9)({theme:n},e,(n=>{const r={flexDirection:n};return 0===n.indexOf("column")&&(r[`& > .${h.item}`]={maxWidth:"none"}),r}))}),(function({theme:n,ownerState:r}){const{container:e,rowSpacing:t}=r;let i={};if(e&&0!==t){const r=(0,s.P$)({values:t,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const e=n.spacing(r);return"0px"!==e?{marginTop:`-${v(e)}`,[`& > .${h.item}`]:{paddingTop:v(e)}}:{}}))}return i}),(function({theme:n,ownerState:r}){const{container:e,columnSpacing:t}=r;let i={};if(e&&0!==t){const r=(0,s.P$)({values:t,breakpoints:n.breakpoints.values});i=(0,s.k9)({theme:n},r,(r=>{const e=n.spacing(r);return"0px"!==e?{width:`calc(100% + ${v(e)})`,marginLeft:`-${v(e)}`,[`& > .${h.item}`]:{paddingLeft:v(e)}}:{}}))}return i}),(function({theme:n,ownerState:r}){let e;return n.breakpoints.keys.reduce(((t,o)=>{let a={};if(r[o]&&(e=r[o]),!e)return t;if(!0===e)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===e)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=(0,s.P$)({values:r.columns,breakpoints:n.breakpoints.values}),l="object"===typeof u?u[o]:u;if(void 0===l||null===l)return t;const c=Math.round(e/l*1e8)/1e6+"%";let p={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const n=`calc(${c} + ${v(e)})`;p={flexBasis:n,maxWidth:n}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},p)}return 0===n.breakpoints.values[o]?Object.assign(t,a):t[n.breakpoints.up(o)]=a,t}),{})}));var y=o.forwardRef((function(n,r){const e=(0,p.Z)({props:n,name:"MuiGrid"}),s=(0,u.Z)(e),{className:c,columns:m,columnSpacing:g,component:h="div",container:v=!1,direction:y="row",item:$=!1,lg:P=!1,md:j=!1,rowSpacing:Z,sm:O=!1,spacing:k=0,wrap:I="wrap",xl:W=!1,xs:M=!1,zeroMinWidth:N=!1}=s,A=(0,t.Z)(s,b),L=Z||k,C=g||k,B=o.useContext(d),F=m||B||12,R=(0,i.Z)({},s,{columns:F,container:v,direction:y,item:$,lg:P,md:j,sm:O,rowSpacing:L,columnSpacing:C,wrap:I,xl:W,xs:M,zeroMinWidth:N}),_=(n=>{const{classes:r,container:e,direction:t,item:i,lg:o,md:a,sm:s,spacing:u,wrap:c,xl:p,xs:d,zeroMinWidth:m}=n,g={root:["root",e&&"container",i&&"item",m&&"zeroMinWidth",...w(u,e),"row"!==t&&`direction-xs-${String(t)}`,"wrap"!==c&&`wrap-xs-${String(c)}`,!1!==d&&`grid-xs-${String(d)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==a&&`grid-md-${String(a)}`,!1!==o&&`grid-lg-${String(o)}`,!1!==p&&`grid-xl-${String(p)}`]};return(0,l.Z)(g,f,r)})(R);return T=(0,x.jsx)(S,(0,i.Z)({ownerState:R,className:(0,a.Z)(_.root,c),as:h,ref:r},A)),12!==F?(0,x.jsx)(d.Provider,{value:F,children:T}):T;var T}))},7106:function(n,r,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return e(1686)}])},4629:function(n,r,e){"use strict";var t=e(5893),i=e(7357),o=e(7294),a=e(4188),s=e(4825),u=e(4690),l=e(7504),c=e(4069),p=e(7869),d=e(6284),m=e(2152),f=e(7987),g=e(8859),h=e(2749);function x(n,r){(null==r||r>n.length)&&(r=n.length);for(var e=0,t=new Array(r);e=0||(i[e]=n[e]);return i}(n,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(n,e)&&(i[e]=n[e])}return i}function S(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var e=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var t,i,o=[],a=!0,s=!1;try{for(e=e.call(n);!(a=(t=e.next()).done)&&(o.push(t.value),!r||o.length!==r);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==e.return||e.return()}finally{if(s)throw i}}return o}}(n,r)||$(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(n){return function(n){if(Array.isArray(n))return x(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||$(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(n,r){if(n){if("string"===typeof n)return x(n,r);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?x(n,r):void 0}}var P={width:"100%"},j="gate-input",Z="".concat(j,"-credential-id"),O="".concat(j,"-credential-passphrase"),k="access",I=(0,o.forwardRef)((function(n,r){var e,x,b=n.formContainer,$=void 0===b||b,j=n.gridProps,I=void 0===j?{}:j,W=I.columns,M=void 0===W?{xs:1,sm:2}:W,N=(I.layout,I.spacing),A=void 0===N?"1em":N,L=n.identifierId,C=void 0===L?Z:L,B=n.identifierInputTestBatchBuilder,F=void 0===B?f.Gn:B,R=n.identifierLabel,_=n.identifierOutlinedInputWithLabelProps,T=void 0===_?{}:_,G=T.formControlProps,z=void 0===G?{}:G,E=T.inputProps,U=n.onIdentifierBlurAppend,q=n.onSubmit,D=n.onSubmitAppend,V=n.passphraseId,X=void 0===V?O:V,H=n.passphraseLabel,J=n.passphraseOutlinedInputWithLabelProps,K=void 0===J?{}:J,Q=K.formControlProps,Y=void 0===Q?{}:Q,nn=K.inputProps,rn=n.submitLabel,en=n.allowSubmit,tn=void 0===en?$:en,on=w(n.gridProps,["columns","layout","spacing"]),an=w(n.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),sn=w(n.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),un=z.sx,ln=w(z,["sx"]),cn=Y.sx,pn=w(Y,["sx"]),dn=(0,o.useRef)({}),mn=(0,o.useRef)({}),fn=(0,o.useRef)({}),gn=S((0,h.Z)(!1),2),hn=gn[0],xn=gn[1],bn=(0,g.Z)([Z,O],fn),vn=bn.buildFinishInputTestBatchFunction,wn=bn.buildInputFirstRenderFunction,Sn=bn.buildInputUnmountFunction,yn=bn.isFormInvalid,$n=bn.setMessage,Pn=(0,o.useMemo)((function(){return null!==q&&void 0!==q?q:function(){for(var n=arguments.length,r=new Array(n),e=0;e=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var y=function(e){return(0,r.jsx)(o.Z,{in:!0,children:(0,r.jsx)(i.Z,h({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,o=e.label,i=e.messageBoxProps,b=e.renderInput,g=e.sx,j=v(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),x=h({paper:{sx:{backgroundColor:d.lD}}},n),w=null!==b&&void 0!==b?b:function(e){var n=e.fullWidth,i=e.InputProps,a=e.InputLabelProps,u=e.inputProps,c={formControlProps:{fullWidth:n,ref:i.ref},inputLabelProps:a,inputProps:{className:i.className,endAdornment:i.endAdornment,inputProps:u,startAdornment:i.startAdornment},label:o};return null===t||void 0===t||t.call(null,c,e),(0,r.jsx)(p.Z,h({},c))},k=h(m({},"& .".concat(a.Z.root," .").concat(u.Z.endAdornment),m({right:"7px"},"& .".concat(c.Z.root),{color:d.s7})),g);return(0,r.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(l.Z,h({PaperComponent:y},j,{componentsProps:x,renderInput:w,sx:k})),(0,r.jsx)(f.Z,h({},i))]})}},4629:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7294),a=t(4188),u=t(4825),c=t(4690),s=t(7504),l=t(4069),d=t(7869),f=t(6284),p=t(2152),m=t(7987),h=t(8859),v=t(2749);function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function x(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||k(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,n){if(e){if("string"===typeof e)return y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,n):void 0}}var O={width:"100%"},I="gate-input",P="".concat(I,"-credential-id"),Z="".concat(I,"-credential-passphrase"),A="access",S=(0,i.forwardRef)((function(e,n){var t,y,b=e.formContainer,k=void 0===b||b,I=e.gridProps,S=void 0===I?{}:I,M=S.columns,F=void 0===M?{xs:1,sm:2}:M,T=(S.layout,S.spacing),C=void 0===T?"1em":T,U=e.identifierId,N=void 0===U?P:U,E=e.identifierInputTestBatchBuilder,R=void 0===E?m.Gn:E,B=e.identifierLabel,D=e.identifierOutlinedInputWithLabelProps,q=void 0===D?{}:D,L=q.formControlProps,_=void 0===L?{}:L,H=q.inputProps,V=e.onIdentifierBlurAppend,$=e.onSubmit,G=e.onSubmitAppend,z=e.passphraseId,W=void 0===z?Z:z,Q=e.passphraseLabel,Y=e.passphraseOutlinedInputWithLabelProps,J=void 0===Y?{}:Y,K=J.formControlProps,X=void 0===K?{}:K,ee=J.inputProps,ne=e.submitLabel,te=e.allowSubmit,re=void 0===te?k:te,oe=j(e.gridProps,["columns","layout","spacing"]),ie=j(e.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ae=j(e.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ue=_.sx,ce=j(_,["sx"]),se=X.sx,le=j(X,["sx"]),de=(0,i.useRef)({}),fe=(0,i.useRef)({}),pe=(0,i.useRef)({}),me=x((0,v.Z)(!1),2),he=me[0],ve=me[1],ye=(0,h.Z)([P,Z],pe),be=ye.buildFinishInputTestBatchFunction,ge=ye.buildInputFirstRenderFunction,je=ye.buildInputUnmountFunction,xe=ye.isFormInvalid,we=ye.setMessage,ke=(0,i.useMemo)((function(){return null!==$&&void 0!==$?$:function(){for(var e=arguments.length,n=new Array(e),t=0;t1&&void 0!==arguments[1]?arguments[1]:{},t=n.fallbackValue,r=void 0===t?"":t,o=n.joinSeparator,i=void 0===o?"":o,a=n.limit,u=void 0===a?1:a;return c(e,Array)?e.slice(0,u).join(i):null!==e&&void 0!==e?e:r},l=t(7504),d=t(1770),f=t(5521),p=t(2029),m=t(7357),h=t(4594),v=t(1496),y=t(4386),b=t(4188),g=t(4690),j=t(4069),x=t(6284),w=t(3679),k=t(2519),O=t(480),I=t(2852),P=t(7169),Z=t(7750);function A(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);tN(n,1)[0]?1:-1})).reduce((function(e,o){var a=N(o,2),u=a[0],c=a[1],s=c.content_type,l=c.default,d=c.deprecated,p=c.description,h=c.options,v=c.required;if("1"===String(d))return e;var b,g,j=e.optional,x=e.required,w=null!==(b=D[s])&&void 0!==b?b:D.string,k=q(n,u),O=null!==(g=f[k])&&void 0!==g?g:l,I="1"===String(v),P=/passw/i.test(u),A=w({formUtils:i,id:k,isChecked:E.includes(O),isRequired:I,isSensitive:P,label:u,selectOptions:h,value:O}),S=(0,r.jsx)(y.Z,function(e){for(var n=1;n div:first-child":{marginTop:0},"& > div":{marginBottom:0}},children:[(0,r.jsx)(w.TZ,{expandInitially:!0,header:"Required parameters",children:(0,r.jsxs)(L,{children:[(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:b,label:k,name:b,value:u}),inputTestBatch:(0,T.Gn)(k,(function(){d(b)}),{onFinishBatch:s(b)},(function(e){d(b,{children:e})})),onFirstRender:l(b),required:!0},"".concat(b,"-wrapper")),v]})}),(0,r.jsx)(w.TZ,{header:"Optional parameters",children:(0,r.jsx)(L,{children:h})})]})}return e}),[s,l,n,t,o,i,u,c,d]);return(0,r.jsx)(r.Fragment,{children:f})},H=t(2152),V=t(1081);function $(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tz(n,1)[0]?1:-1})).map((function(e){var n=z(e,2),t=n[0],r=n[1].description;return{fenceDescription:"string"===typeof r?r:"No description.",fenceId:t,label:t}})):[]}),[n]),f=(0,a.useMemo)((function(){return(0,r.jsx)(h.Z,{id:W,isOptionEqualToValue:function(e,n){return e.fenceId===n.fenceId},label:"Fence device type",onChange:function(e,n){i(W,null!==n),l(n)},openOnFocus:!0,options:d,renderOption:function(e,n,t){var o=n.fenceDescription,i=n.fenceId,a=t.selected;return(0,r.jsxs)(m.Z,function(e){for(var n=1;n *":{width:"100%"}}},e,{children:[(0,r.jsx)(Z.Ac,{inverted:!0,sx:{fontSize:"1.2em",fontWeight:a?400:void 0},children:i}),(0,r.jsx)(Z.Ac,{selected:!1,children:o})]}))},sx:{marginTop:".3em"},value:s})}),[d,s,i]),p=(0,a.useMemo)((function(){return(0,r.jsx)(_,{fenceId:null===s||void 0===s?void 0:s.fenceId,fenceTemplate:n,formUtils:t})}),[n,null===s||void 0===s?void 0:s.fenceId,t]),v=(0,a.useMemo)((function(){return o?(0,r.jsx)(H.Z,{}):(0,r.jsxs)(g.Z,{children:[f,p]})}),[f,p,o]);return(0,a.useEffect)((function(){u&&i(W,null!==s)}),[s,u,i]),(0,r.jsx)(r.Fragment,{children:v})},Y=t(157),J=function(e){var n=e.fenceId,t=e.fenceTemplate,o=e.formUtils,i=e.loading,u=e.previousFenceName,c=e.previousFenceParameters,s=(0,a.useMemo)((function(){return i?(0,r.jsx)(H.Z,{}):(0,r.jsx)(_,{fenceId:n,fenceTemplate:t,formUtils:o,previousFenceName:u,previousFenceParameters:c})}),[t,n,o,i,u,c]);return(0,r.jsx)(r.Fragment,{children:s})},K=t(2545),X=t(8610),ee=t(6125),ne=t(7869),te=t(1905),re=t(3906),oe=t(6632),ie=t(8859),ae=t(2749);function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},r=n.input,o=void 0===r?t:r,i=n.end,a=void 0===i?t.length:i,u=a-1,c=0;return o.every((function(n,t){return tn(n,2)[1].networkType===e&&(c+=1),t0&&void 0!==arguments[0]?arguments[0]:{},n=e.networkMinIp,t=void 0===n?"":n,r=e.networkSubnetMask,o=void 0===r?"":r,i=e.networkType,a=void 0===i?"ifn":i,u=e.networkGateway,c=void 0===u?ln(a)?"":void 0:u,s=e.networkNumber,l=void 0===s?y(a)+1:s;return{network:{networkGateway:c,networkMinIp:t,networkNumber:l,networkSubnetMask:o,networkType:a},networkId:(0,_e.Z)()}}),[y]),w=(0,a.useCallback)((function(e,n){return f((0,Ke.ZP)(e,n))}),[f]),k=(0,a.useCallback)((function(e,n){var r=e.networkId,o=e.networkType,i=n.target.value,a=String(i),u=!1,c=0,s=t.reduce((function(e,n){var t=tn(n,2),i=t[0],s=t[1],l=s.networkNumber,d=s.networkType;i===r&&(u=!0,d=a,v(RegExp(i)));var f=d===a;return f&&(c+=1),u?(f?l=c:d===o&&(l-=1),e[i]=nn({},s,{networkNumber:l,networkType:d})):e[i]=s,e}),{});f(s)}),[t,v,f]),O=(0,a.useCallback)((function(e){var n=e.networkId,r=e.networkType,o=!1,i=0,a=t.reduce((function(e,t){var a=tn(t,2),u=a[0],c=a[1];u===n?o=!0:(c.networkType===r&&(i+=1),e[u]=o?nn({},c,{networkNumber:i}):c);return e}),{});f(a)}),[t,f]),I=(0,a.useMemo)((function(){var e={};return e=t.reduce((function(e,t){var o=tn(t,2),i=o[0],a=o[1],u=a.networkGateway,c=a.networkMinIp,s=a.networkNumber,l=a.networkSubnetMask,d=a.networkType,f="".concat(on,"-").concat(i),p=1===s,m=ln(d),h="mn"===d||!p;return e[f]={children:(0,r.jsx)(Je,{formUtils:n,networkId:i,networkNumber:s,networkType:d,networkTypeOptions:b,onClose:O,onNetworkTypeChange:k,previous:{gateway:u,minIp:c,subnetMask:l},readonlyNetworkName:!h,showCloseButton:h,showGateway:m}),md:3,sm:2},e}),e)}),[n,t,b,O,k]);return(0,r.jsx)(l.Z,{columns:{xs:1,sm:2,md:3},layout:nn({},I,{"an-network-config-cell-add-network":{children:(0,r.jsx)(Ve.Z,{mapPreset:"add",onClick:function(){var e=g(),n=e.network,t=e.networkId;w(t,n)}}),display:"flex",justifyContent:"center",md:3,sm:2},"an-network-config-input-cell-dns":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:an,label:"DNS",value:c}),inputTestBatch:(0,T.dg)("DNS",(function(){h(an)}),{onFinishBatch:p(an)},(function(e){h(an,{children:e})})),onFirstRender:m(an),required:!0})},"an-network-config-input-cell-ntp":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:cn,label:"NTP",value:d}),inputTestBatch:(0,T.dg)("NTP",(function(){h(cn)}),{onFinishBatch:p(cn)},(function(e){h(cn,{children:e})})),onFirstRender:m(cn)})},"an-network-config-input-cell-mtu":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:un,inputProps:{placeholder:"1500"},label:"MTU",value:s}),inputTestBatch:(0,T.qY)("MTU",(function(){h(un)}),{onFinishBatch:p(un)},(function(e){h(un,{children:e})})),onFirstRender:m(un),valueType:"number"})}}),spacing:"1em"})};function fn(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var pn={bcn1:{networkMinIp:"10.201.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"bcn"},sn1:{networkMinIp:"10.101.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"sn"},ifn1:{networkMinIp:"",networkNumber:1,networkSubnetMask:"",networkType:"ifn"}},mn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous,u=void 0===i?{}:i,c=u.hostConfig,s=u.networkConfig,l=void 0===s?{}:s,d=fn(e.previous,["hostConfig","networkConfig"]),f=l.networks,p=void 0===f?pn:f,m=(0,a.useState)(p),h=m[0],v=m[1],y=(0,a.useMemo)((function(){return Object.entries(h)}),[h]);return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(Le,{formUtils:n,previous:d}),(0,r.jsx)(dn,{formUtils:n,networkListEntries:y,previous:l,setNetworkList:v}),(0,r.jsx)(Ce,{formUtils:n,knownFences:t,knownUpses:o,networkListEntries:y,previous:c})]})},hn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous;return(0,r.jsx)(mn,{formUtils:n,knownFences:t,knownUpses:o,previous:i})};function vn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function xt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return yt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yt(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wt=function(e){var n=e.formControlProps,t=e.formControlLabelProps,o=e.formLabelProps,i=e.id,u=e.label,c=e.onChange,s=e.radioItems,l=e.radioProps,d=(void 0===l?{}:l).sx,f=e.radioGroupProps,p=jt(e.radioProps,["sx"]),m=(0,a.useMemo)((function(){return"string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u}),[u]),h=(0,a.useMemo)((function(){return Object.entries(s).map((function(e){var n=xt(e,2),o=n[0],a=n[1],u=a.label,c=a.value,s="string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u;return(0,r.jsx)(O.Z,gt({control:(0,r.jsx)(ft.Z,gt({},p,{sx:gt(bt({},"&.".concat(pt.Z.root),{color:P.s7}),d)})),value:c,label:s},t),"".concat(i,"-").concat(o))}))}),[t,i,s,d,p]);return(0,r.jsxs)(mt.Z,gt({},n,{children:[(0,r.jsx)(ht.Z,gt({},o,{children:m})),(0,r.jsx)(vt.Z,gt({onChange:c,row:!0},f,{children:h}))]}))},kt=t(3144);function Ot(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Ht(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||$t(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e){return function(e){if(Array.isArray(e))return Dt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e,n){if(e){if("string"===typeof e)return Dt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Dt(e,n):void 0}}var Gt="prepare-network-host-name-input",zt="prepare-network-netconf-input-group",Wt="Host name",Qt=function(e){for(var n=e.netconf,t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var tr=function(e){var n=e.label,t=nr(e,["label"]),o=(0,a.useMemo)((function(){return"string"===typeof n?(0,r.jsx)(Z.Ac,{inheritColour:!0,children:n}):n}),[n]);return(0,r.jsx)(Kt.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function dr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return cr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cr(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var fr="1.8em",pr=function(e){var n,t,o=e.orientation,i=e.variant,u=void 0===i?"fullWidth":i,c=lr(e,["orientation","variant"]),s=(0,or.Z)(),l=(0,a.useCallback)((function(e){return s.breakpoints.up(e)}),[s]),d=(0,ir.Z)(l("xs")),f=(0,ir.Z)(l("sm")),p=(0,ir.Z)(l("md")),m=(0,ir.Z)(l("lg")),h=(0,ir.Z)(l("xl")),v=(0,a.useMemo)((function(){return[["xs",d],["sm",f],["md",p],["lg",m],["xl",h]]}),[m,p,f,h,d]),y=(0,a.useMemo)((function(){var e;return"object"===typeof o?v.some((function(n){var t=dr(n,2),r=t[0],i=t[1];return i&&o[r]&&(e=o[r]),!i})):e=o,e}),[v,o]);return(0,r.jsx)(ar.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var y=function(e){return(0,r.jsx)(o.Z,{in:!0,children:(0,r.jsx)(i.Z,h({},e))})};n.Z=function(e){var n=e.componentsProps,t=e.extendRenderInput,o=e.label,i=e.messageBoxProps,b=e.renderInput,g=e.sx,j=v(e,["componentsProps","extendRenderInput","label","messageBoxProps","renderInput","sx"]),x=h({paper:{sx:{backgroundColor:d.lD}}},n),w=null!==b&&void 0!==b?b:function(e){var n=e.fullWidth,i=e.InputProps,a=e.InputLabelProps,u=e.inputProps,c={formControlProps:{fullWidth:n,ref:i.ref},inputLabelProps:a,inputProps:{className:i.className,endAdornment:i.endAdornment,inputProps:u,startAdornment:i.startAdornment},label:o};return null===t||void 0===t||t.call(null,c,e),(0,r.jsx)(p.Z,h({},c))},k=h(m({},"& .".concat(a.Z.root," .").concat(u.Z.endAdornment),m({right:"7px"},"& .".concat(c.Z.root),{color:d.s7})),g);return(0,r.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsx)(l.Z,h({PaperComponent:y},j,{componentsProps:x,renderInput:w,sx:k})),(0,r.jsx)(f.Z,h({},i))]})}},4629:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7294),a=t(4188),u=t(4825),c=t(4690),s=t(7504),l=t(4069),d=t(7869),f=t(6284),p=t(2152),m=t(7987),h=t(8859),v=t(2749);function y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function x(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||k(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,n){if(e){if("string"===typeof e)return y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,n):void 0}}var O={width:"100%"},I="gate-input",P="".concat(I,"-credential-id"),Z="".concat(I,"-credential-passphrase"),A="access",S=(0,i.forwardRef)((function(e,n){var t,y,b=e.formContainer,k=void 0===b||b,I=e.gridProps,S=void 0===I?{}:I,M=S.columns,F=void 0===M?{xs:1,sm:2}:M,T=(S.layout,S.spacing),C=void 0===T?"1em":T,U=e.identifierId,N=void 0===U?P:U,E=e.identifierInputTestBatchBuilder,R=void 0===E?m.Gn:E,B=e.identifierLabel,D=e.identifierOutlinedInputWithLabelProps,q=void 0===D?{}:D,L=q.formControlProps,_=void 0===L?{}:L,H=q.inputProps,V=e.onIdentifierBlurAppend,$=e.onSubmit,G=e.onSubmitAppend,z=e.passphraseId,W=void 0===z?Z:z,Q=e.passphraseLabel,Y=e.passphraseOutlinedInputWithLabelProps,J=void 0===Y?{}:Y,K=J.formControlProps,X=void 0===K?{}:K,ee=J.inputProps,ne=e.submitLabel,te=e.allowSubmit,re=void 0===te?k:te,oe=j(e.gridProps,["columns","layout","spacing"]),ie=j(e.identifierOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ae=j(e.passphraseOutlinedInputWithLabelProps,["formControlProps","inputProps"]),ue=_.sx,ce=j(_,["sx"]),se=X.sx,le=j(X,["sx"]),de=(0,i.useRef)({}),fe=(0,i.useRef)({}),pe=(0,i.useRef)({}),me=x((0,v.Z)(!1),2),he=me[0],ve=me[1],ye=(0,h.Z)([P,Z],pe),be=ye.buildFinishInputTestBatchFunction,ge=ye.buildInputFirstRenderFunction,je=ye.buildInputUnmountFunction,xe=ye.isFormInvalid,we=ye.setMessage,ke=(0,i.useMemo)((function(){return null!==$&&void 0!==$?$:function(){for(var e=arguments.length,n=new Array(e),t=0;t1&&void 0!==arguments[1]?arguments[1]:{},t=n.fallbackValue,r=void 0===t?"":t,o=n.joinSeparator,i=void 0===o?"":o,a=n.limit,u=void 0===a?1:a;return c(e,Array)?e.slice(0,u).join(i):null!==e&&void 0!==e?e:r},l=t(7504),d=t(1770),f=t(5521),p=t(2029),m=t(7357),h=t(4594),v=t(1496),y=t(4386),b=t(4188),g=t(4690),j=t(4069),x=t(6284),w=t(3679),k=t(2519),O=t(480),I=t(2852),P=t(7169),Z=t(7750);function A(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);tN(n,1)[0]?1:-1})).reduce((function(e,o){var a=N(o,2),u=a[0],c=a[1],s=c.content_type,l=c.default,d=c.deprecated,p=c.description,h=c.options,v=c.required;if("1"===String(d))return e;var b,g,j=e.optional,x=e.required,w=null!==(b=D[s])&&void 0!==b?b:D.string,k=q(n,u),O=null!==(g=f[k])&&void 0!==g?g:l,I="1"===String(v),P=/passw/i.test(u),A=w({formUtils:i,id:k,isChecked:E.includes(O),isRequired:I,isSensitive:P,label:u,selectOptions:h,value:O}),S=(0,r.jsx)(y.Z,function(e){for(var n=1;n div:first-child":{marginTop:0},"& > div":{marginBottom:0}},children:[(0,r.jsx)(w.TZ,{expandInitially:!0,header:"Required parameters",children:(0,r.jsxs)(L,{children:[(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:b,label:k,name:b,value:u}),inputTestBatch:(0,T.Gn)(k,(function(){d(b)}),{onFinishBatch:s(b)},(function(e){d(b,{children:e})})),onFirstRender:l(b),required:!0},"".concat(b,"-wrapper")),v]})}),(0,r.jsx)(w.TZ,{header:"Optional parameters",children:(0,r.jsx)(L,{children:h})})]})}return e}),[s,l,n,t,o,i,u,c,d]);return(0,r.jsx)(r.Fragment,{children:f})},H=t(2152),V=t(1081);function $(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tz(n,1)[0]?1:-1})).map((function(e){var n=z(e,2),t=n[0],r=n[1].description;return{fenceDescription:"string"===typeof r?r:"No description.",fenceId:t,label:t}})):[]}),[n]),f=(0,a.useMemo)((function(){return(0,r.jsx)(h.Z,{id:W,isOptionEqualToValue:function(e,n){return e.fenceId===n.fenceId},label:"Fence device type",onChange:function(e,n){i(W,null!==n),l(n)},openOnFocus:!0,options:d,renderOption:function(e,n,t){var o=n.fenceDescription,i=n.fenceId,a=t.selected;return(0,r.jsxs)(m.Z,function(e){for(var n=1;n *":{width:"100%"}}},e,{children:[(0,r.jsx)(Z.Ac,{inverted:!0,sx:{fontSize:"1.2em",fontWeight:a?400:void 0},children:i}),(0,r.jsx)(Z.Ac,{selected:!1,children:o})]}))},sx:{marginTop:".3em"},value:s})}),[d,s,i]),p=(0,a.useMemo)((function(){return(0,r.jsx)(_,{fenceId:null===s||void 0===s?void 0:s.fenceId,fenceTemplate:n,formUtils:t})}),[n,null===s||void 0===s?void 0:s.fenceId,t]),v=(0,a.useMemo)((function(){return o?(0,r.jsx)(H.Z,{}):(0,r.jsxs)(g.Z,{children:[f,p]})}),[f,p,o]);return(0,a.useEffect)((function(){u&&i(W,null!==s)}),[s,u,i]),(0,r.jsx)(r.Fragment,{children:v})},Y=t(157),J=function(e){var n=e.fenceId,t=e.fenceTemplate,o=e.formUtils,i=e.loading,u=e.previousFenceName,c=e.previousFenceParameters,s=(0,a.useMemo)((function(){return i?(0,r.jsx)(H.Z,{}):(0,r.jsx)(_,{fenceId:n,fenceTemplate:t,formUtils:o,previousFenceName:u,previousFenceParameters:c})}),[t,n,o,i,u,c]);return(0,r.jsx)(r.Fragment,{children:s})},K=t(2545),X=t(8610),ee=t(6125),ne=t(7869),te=t(1905),re=t(3906),oe=t(6632),ie=t(8859),ae=t(2749);function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},r=n.input,o=void 0===r?t:r,i=n.end,a=void 0===i?t.length:i,u=a-1,c=0;return o.every((function(n,t){return tn(n,2)[1].networkType===e&&(c+=1),t0&&void 0!==arguments[0]?arguments[0]:{},n=e.networkMinIp,t=void 0===n?"":n,r=e.networkSubnetMask,o=void 0===r?"":r,i=e.networkType,a=void 0===i?"ifn":i,u=e.networkGateway,c=void 0===u?ln(a)?"":void 0:u,s=e.networkNumber,l=void 0===s?y(a)+1:s;return{network:{networkGateway:c,networkMinIp:t,networkNumber:l,networkSubnetMask:o,networkType:a},networkId:(0,_e.Z)()}}),[y]),w=(0,a.useCallback)((function(e,n){return f((0,Ke.ZP)(e,n))}),[f]),k=(0,a.useCallback)((function(e,n){var r=e.networkId,o=e.networkType,i=n.target.value,a=String(i),u=!1,c=0,s=t.reduce((function(e,n){var t=tn(n,2),i=t[0],s=t[1],l=s.networkNumber,d=s.networkType;i===r&&(u=!0,d=a,v(RegExp(i)));var f=d===a;return f&&(c+=1),u?(f?l=c:d===o&&(l-=1),e[i]=nn({},s,{networkNumber:l,networkType:d})):e[i]=s,e}),{});f(s)}),[t,v,f]),O=(0,a.useCallback)((function(e){var n=e.networkId,r=e.networkType,o=!1,i=0,a=t.reduce((function(e,t){var a=tn(t,2),u=a[0],c=a[1];u===n?o=!0:(c.networkType===r&&(i+=1),e[u]=o?nn({},c,{networkNumber:i}):c);return e}),{});f(a)}),[t,f]),I=(0,a.useMemo)((function(){var e={};return e=t.reduce((function(e,t){var o=tn(t,2),i=o[0],a=o[1],u=a.networkGateway,c=a.networkMinIp,s=a.networkNumber,l=a.networkSubnetMask,d=a.networkType,f="".concat(on,"-").concat(i),p=1===s,m=ln(d),h="mn"===d||!p;return e[f]={children:(0,r.jsx)(Je,{formUtils:n,networkId:i,networkNumber:s,networkType:d,networkTypeOptions:b,onClose:O,onNetworkTypeChange:k,previous:{gateway:u,minIp:c,subnetMask:l},readonlyNetworkName:!h,showCloseButton:h,showGateway:m}),md:3,sm:2},e}),e)}),[n,t,b,O,k]);return(0,r.jsx)(l.Z,{columns:{xs:1,sm:2,md:3},layout:nn({},I,{"an-network-config-cell-add-network":{children:(0,r.jsx)(Ve.Z,{mapPreset:"add",onClick:function(){var e=g(),n=e.network,t=e.networkId;w(t,n)}}),display:"flex",justifyContent:"center",md:3,sm:2},"an-network-config-input-cell-dns":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:an,label:"DNS",value:c}),inputTestBatch:(0,T.dg)("DNS",(function(){h(an)}),{onFinishBatch:p(an)},(function(e){h(an,{children:e})})),onFirstRender:m(an),required:!0})},"an-network-config-input-cell-ntp":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:cn,label:"NTP",value:d}),inputTestBatch:(0,T.dg)("NTP",(function(){h(cn)}),{onFinishBatch:p(cn)},(function(e){h(cn,{children:e})})),onFirstRender:m(cn)})},"an-network-config-input-cell-mtu":{children:(0,r.jsx)(j.Z,{input:(0,r.jsx)(x.Z,{id:un,inputProps:{placeholder:"1500"},label:"MTU",value:s}),inputTestBatch:(0,T.qY)("MTU",(function(){h(un)}),{onFinishBatch:p(un)},(function(e){h(un,{children:e})})),onFirstRender:m(un),valueType:"number"})}}),spacing:"1em"})};function fn(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var pn={bcn1:{networkMinIp:"10.201.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"bcn"},sn1:{networkMinIp:"10.101.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"sn"},ifn1:{networkMinIp:"",networkNumber:1,networkSubnetMask:"",networkType:"ifn"}},mn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous,u=void 0===i?{}:i,c=u.hostConfig,s=u.networkConfig,l=void 0===s?{}:s,d=fn(e.previous,["hostConfig","networkConfig"]),f=l.networks,p=void 0===f?pn:f,m=(0,a.useState)(p),h=m[0],v=m[1],y=(0,a.useMemo)((function(){return Object.entries(h)}),[h]);return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(Le,{formUtils:n,previous:d}),(0,r.jsx)(dn,{formUtils:n,networkListEntries:y,previous:l,setNetworkList:v}),(0,r.jsx)(Ce,{formUtils:n,knownFences:t,knownUpses:o,networkListEntries:y,previous:c})]})},hn=function(e){var n=e.formUtils,t=e.knownFences,o=e.knownUpses,i=e.previous;return(0,r.jsx)(mn,{formUtils:n,knownFences:t,knownUpses:o,previous:i})};function vn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1?n-1:0),r=1;re.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function xt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return yt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yt(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wt=function(e){var n=e.formControlProps,t=e.formControlLabelProps,o=e.formLabelProps,i=e.id,u=e.label,c=e.onChange,s=e.radioItems,l=e.radioProps,d=(void 0===l?{}:l).sx,f=e.radioGroupProps,p=jt(e.radioProps,["sx"]),m=(0,a.useMemo)((function(){return"string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u}),[u]),h=(0,a.useMemo)((function(){return Object.entries(s).map((function(e){var n=xt(e,2),o=n[0],a=n[1],u=a.label,c=a.value,s="string"===typeof u?(0,r.jsx)(Z.Ac,{children:u}):u;return(0,r.jsx)(O.Z,gt({control:(0,r.jsx)(ft.Z,gt({},p,{sx:gt(bt({},"&.".concat(pt.Z.root),{color:P.s7}),d)})),value:c,label:s},t),"".concat(i,"-").concat(o))}))}),[t,i,s,d,p]);return(0,r.jsxs)(mt.Z,gt({},n,{children:[(0,r.jsx)(ht.Z,gt({},o,{children:m})),(0,r.jsx)(vt.Z,gt({onChange:c,row:!0},f,{children:h}))]}))},kt=t(3144);function Ot(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Ht(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||$t(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e){return function(e){if(Array.isArray(e))return Dt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e,n){if(e){if("string"===typeof e)return Dt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Dt(e,n):void 0}}var Gt="prepare-network-host-name-input",zt="prepare-network-netconf-input-group",Wt="Host name",Qt=function(e){for(var n=e.netconf,t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var tr=function(e){var n=e.label,t=nr(e,["label"]),o=(0,a.useMemo)((function(){return"string"===typeof n?(0,r.jsx)(Z.Ac,{inheritColour:!0,children:n}):n}),[n]);return(0,r.jsx)(Kt.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function dr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}}(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return cr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cr(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var fr="1.8em",pr=function(e){var n,t,o=e.orientation,i=e.variant,u=void 0===i?"fullWidth":i,c=lr(e,["orientation","variant"]),s=(0,or.Z)(),l=(0,a.useCallback)((function(e){return s.breakpoints.up(e)}),[s]),d=(0,ir.Z)(l("xs")),f=(0,ir.Z)(l("sm")),p=(0,ir.Z)(l("md")),m=(0,ir.Z)(l("lg")),h=(0,ir.Z)(l("xl")),v=(0,a.useMemo)((function(){return[["xs",d],["sm",f],["md",p],["lg",m],["xl",h]]}),[m,p,f,h,d]),y=(0,a.useMemo)((function(){var e;return"object"===typeof o?v.some((function(n){var t=dr(n,2),r=t[0],i=t[1];return i&&o[r]&&(e=o[r]),!i})):e=o,e}),[v,o]);return(0,r.jsx)(ar.Z,function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(n).concat(e)]}),[t]),i=(0,u.useCallback)((function(){return o("user")}),[o]);return(0,u.useEffect)((function(){if(e){var n=document.cookie.split(/\s*;\s*/);r(n.reduce((function(e,n){var t,r=S(n.split("=",2),2),o=r[0],i=r[1],c=decodeURIComponent(i);if(c.startsWith("j:"))try{t=JSON.parse(c.substring(2))}catch(a){t=i}else t=i;return e[o]=t,e}),{}))}}),[e]),{cookieJar:t,getCookie:o,getSessionUser:i}};function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function A(e){for(var n=1;n0)},ref:n})]})}},4427:function(e,n,t){"use strict";var r=t(5893),o=t(2429),i=t(9309),c=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n0,b=(null===f||void 0===f?void 0:f.toString())||"",x=(null===d||void 0===d?void 0:d.toString())||"",j=(null===g||void 0===g?void 0:g.toString())||"";return(0,l.useEffect)((function(){m&&t(!1)}),[m]),(0,r.jsxs)(h,{children:[(0,r.jsx)(c.default,{children:(0,r.jsx)("title",{children:b})}),(0,r.jsx)(u.Z,{}),n?(0,r.jsx)(i.Z,{className:p.preview,children:(0,r.jsx)(s.M,{onClickPreview:function(){t(!1)},serverName:b,serverState:x,serverUUID:j})}):(0,r.jsx)(i.Z,{className:p.fullView,children:(0,r.jsx)(s.S,{onClickCloseButton:function(){t(!0)},serverUUID:j,serverName:b})})]})}}},function(e){e.O(0,[382,894,528,62,94,774,888,179],(function(){return n=8954,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[753],{8954:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/server",function(){return t(1142)}])},5521:function(e,n,t){"use strict";t.d(n,{Z:function(){return F}});var r=t(5893),o=t(1113),i=t(1496),c=t(2293),a=t(7357),l=t(2992),s=t(4799),u=t(7294),f=t(7169),d=t(4433),p=t(9029),h=t(7533),g=t(8462),v=t(7212),m=t(8619),b=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],x={width:"40em",height:"40em"},j=t(4390),w=t(582),y=t(4690),Z=t(1770),k=t(7750),O=t(1081);function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:"suiapi.";return t["".concat(n).concat(e)]}),[t]),i=(0,u.useCallback)((function(){return o("user")}),[o]);return(0,u.useEffect)((function(){if(e){var n=document.cookie.split(/\s*;\s*/);r(n.reduce((function(e,n){var t,r=S(n.split("=",2),2),o=r[0],i=r[1],c=decodeURIComponent(i);if(c.startsWith("j:"))try{t=JSON.parse(c.substring(2))}catch(a){t=i}else t=i;return e[o]=t,e}),{}))}}),[e]),{cookieJar:t,getCookie:o,getSessionUser:i}};function P(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function A(e){for(var n=1;n0)},ref:n})]})}},4427:function(e,n,t){"use strict";var r=t(5893),o=t(2429),i=t(9309),c=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){for(var n=1;n0,b=(null===f||void 0===f?void 0:f.toString())||"",x=(null===d||void 0===d?void 0:d.toString())||"",j=(null===g||void 0===g?void 0:g.toString())||"";return(0,l.useEffect)((function(){m&&t(!1)}),[m]),(0,r.jsxs)(h,{children:[(0,r.jsx)(c.default,{children:(0,r.jsx)("title",{children:b})}),(0,r.jsx)(u.Z,{}),n?(0,r.jsx)(i.Z,{className:p.preview,children:(0,r.jsx)(s.M,{onClickPreview:function(){t(!1)},serverName:b,serverState:x,serverUUID:j})}):(0,r.jsx)(i.Z,{className:p.fullView,children:(0,r.jsx)(s.S,{onClickCloseButton:function(){t(!0)},serverUUID:j,serverName:b})})]})}}},function(e){e.O(0,[412,894,528,62,94,774,888,179],(function(){return n=8954,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/tsboOH-aG8W5HRHH4dt2_/_buildManifest.js b/striker-ui/out/_next/static/tsboOH-aG8W5HRHH4dt2_/_buildManifest.js deleted file mode 100644 index 16961d22..00000000 --- a/striker-ui/out/_next/static/tsboOH-aG8W5HRHH4dt2_/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,c,a,t,e,n,i,f,d,b,u,k,h,j,r,g,l,_){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,t,f,d,h,"static/chunks/433-a3be905e7a7d3bfc.js",c,e,n,i,j,r,"static/chunks/pages/index-6ff72adab3a682db.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,a,t,f,d,h,c,e,n,i,j,"static/chunks/pages/anvil-5ff2efa937105177.js"],"/config":[s,a,t,u,"static/chunks/586-4e70511cf6d7632f.js",c,e,n,i,b,k,g,"static/chunks/pages/config-0cb597caf390573f.js"],"/file-manager":["static/chunks/29107295-fbcfe2172188e46f.js",s,a,t,f,"static/chunks/176-7308c25ba374961e.js",c,e,i,b,"static/chunks/pages/file-manager-1ae01a78e266275a.js"],"/init":[s,a,f,d,u,l,c,e,n,i,_,"static/chunks/pages/init-053607258b5d7d64.js"],"/login":[s,a,t,c,e,n,b,k,"static/chunks/pages/login-1b987b077ffc3420.js"],"/manage-element":[s,a,t,f,d,u,l,"static/chunks/111-2605129c170ed35d.js",c,e,n,i,b,k,_,g,"static/chunks/pages/manage-element-6b42a013966413d3.js"],"/server":[s,t,"static/chunks/528-72edc50189f30fa9.js",c,r,"static/chunks/pages/server-4ac03eba56ccfcbf.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/382-f51344f6f9208507.js","static/chunks/62-532ed713980da8db.js","static/chunks/438-0147a63d98e89439.js","static/chunks/894-e57948de523bcf96.js","static/chunks/195-fa06e61dd4339031.js","static/chunks/987-1ff0d82724b0e58b.js","static/chunks/157-d1418743accab385.js","static/chunks/182-08683bbe95fbb010.js","static/chunks/434-07ec1dcc649bdd0c.js","static/chunks/248-749f2bec4cb43d28.js","static/chunks/644-c7c6e21c71345aed.js","static/chunks/336-8a7866afcf131f68.js","static/chunks/485-77798bccc4308d0e.js","static/chunks/825-0b3ee47570192a02.js","static/chunks/94-8322ed453a3c08f0.js","static/chunks/560-0ed707609765e23a.js","static/chunks/676-6159ce853338cc1f.js","static/chunks/86-447b52c8195dea3d.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/anvil.html b/striker-ui/out/anvil.html index a4dbeaef..b98d8d87 100644 --- a/striker-ui/out/anvil.html +++ b/striker-ui/out/anvil.html @@ -1 +1 @@ -Anvil
\ No newline at end of file +Anvil
\ No newline at end of file diff --git a/striker-ui/out/config.html b/striker-ui/out/config.html index f8869353..e36ba91f 100644 --- a/striker-ui/out/config.html +++ b/striker-ui/out/config.html @@ -1 +1 @@ -Loading...
Install target
Configure striker peers
Configure striker peers
Inbound connections

    No inbound connections found.
Peer connections

    No peer connections found.
Manage changed SSH keys
Manage changed SSH keys
The identity of the following targets have unexpectedly changed.
If you haven't rebuilt the listed targets, then you could be experiencing a
"Man In The Middle"
attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys.

Host name

IP address


    No conflicting keys found.
Manage users
Manage users

    No users found.
\ No newline at end of file +Loading...
Install target
Configure striker peers
Configure striker peers
Inbound connections

    No inbound connections found.
Peer connections

    No peer connections found.
Manage changed SSH keys
Manage changed SSH keys
The identity of the following targets have unexpectedly changed.
If you haven't rebuilt the listed targets, then you could be experiencing a
"Man In The Middle"
attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys.

Host name

IP address


    No conflicting keys found.
Manage users
Manage users

    No users found.
\ No newline at end of file diff --git a/striker-ui/out/file-manager.html b/striker-ui/out/file-manager.html index f7fa4f7f..54f0870b 100644 --- a/striker-ui/out/file-manager.html +++ b/striker-ui/out/file-manager.html @@ -1 +1 @@ -File Manager

Files

\ No newline at end of file +File Manager

Files

\ No newline at end of file diff --git a/striker-ui/out/index.html b/striker-ui/out/index.html index 0f6e17f0..c2c5a049 100644 --- a/striker-ui/out/index.html +++ b/striker-ui/out/index.html @@ -1 +1 @@ -Dashboard
\ No newline at end of file +Dashboard

Nodes

\ No newline at end of file diff --git a/striker-ui/out/init.html b/striker-ui/out/init.html index 1506c738..6700ff7c 100644 --- a/striker-ui/out/init.html +++ b/striker-ui/out/init.html @@ -1 +1 @@ -

Loading...

Placeholder
Uncheck to skip domain and host name pattern validation.
\ No newline at end of file +

Loading...

Placeholder
Uncheck to skip domain and host name pattern validation.
\ No newline at end of file diff --git a/striker-ui/out/login.html b/striker-ui/out/login.html index 737133d1..e2702672 100644 --- a/striker-ui/out/login.html +++ b/striker-ui/out/login.html @@ -1 +1 @@ -Login
Placeholder
\ No newline at end of file +Login
Placeholder
\ No newline at end of file diff --git a/striker-ui/out/manage-element.html b/striker-ui/out/manage-element.html index 7d50e921..b3045113 100644 --- a/striker-ui/out/manage-element.html +++ b/striker-ui/out/manage-element.html @@ -1 +1 @@ -Loading
\ No newline at end of file +Loading
\ No newline at end of file diff --git a/striker-ui/out/server.html b/striker-ui/out/server.html index 32c214c1..2d11fc7d 100644 --- a/striker-ui/out/server.html +++ b/striker-ui/out/server.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file