Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
40 KiB

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[746],{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<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){a(e,r,n[r])}))}return e}function u(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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)}))}},4825:function(e,r,n){var t=n(5893),o=n(7933),i=n(2992),c=n(7294),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<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){l(e,r,n[r])}))}return e}function s(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}r.Z=function(e){var r=e.sx,n=s(e,["sx"]),f=(0,c.useMemo)((function(){return u(l({backgroundColor:a.s7,color:a.E5,textTransform:"none","&:hover":{backgroundColor:"".concat(a.s7,"F0")}},"&.".concat(o.Z.disabled),{backgroundColor:a.rr}),r)}),[r]);return(0,t.jsx)(i.Z,u({variant:"contained"},n,{sx:f}))}},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<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){c(e,r,n[r])}))}return e}function l(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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]),C=(0,i.useMemo)((function(){return m||k}),[m,k]),A=(0,i.useMemo)((function(){return d||C}),[d,C]),E=(0,i.useMemo)((function(){return s||A}),[s,A]),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[C].alignItems,md:T[A].alignItems,lg:T[E].alignItems,xl:T[M].alignItems},display:"flex",flexDirection:{xs:k,sm:C,md:A,lg:E,xl:M},width:R,"& > :first-child":{flexGrow:D},"& > :not(:first-child)":{marginLeft:{xs:T[k].marginLeft,sm:T[C].marginLeft,md:T[A].marginLeft,lg:T[E].marginLeft,xl:T[M].marginLeft},marginTop:{xs:T[k].marginTop,sm:T[C].marginTop,md:T[A].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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){y(e,r,n[r])}))}return e}({},l,t)))}else e=r;return e}),[f,a,n,t,r]),p=(0,b.useMemo)((function(){return x[u]}),[u]);return(0,b.createElement)(p,s,d)},P=w},3377:function(e,r,n){var t=n(5893),o=n(7357),i=n(7294),c=n(7169),a=n(4690),l=n(7750),u=n(3144),s=n(2749);function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}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 p(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){d(e,r,n[r])}))}return e}function b(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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,C=b(e.iconProps,["sx"]),A=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},A,{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,A]),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({},C,{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);n<r;n++)t[n]=e[n];return t}function b(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 p(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 p(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 m="20em",y={getJobUrl:function(e){return"".concat(c.Z,"/job?start=").concat(e)},onFetchSuccessAppend:void 0,openInitially:!1,refreshInterval:1e4},v=(0,i.forwardRef)((function(e,r){var n=e.getJobUrl,c=void 0===n?y.getJobUrl:n,p=e.onFetchSuccessAppend,v=e.openInitially,g=void 0===v?y.openInitially:v,h=e.refreshInterval,O=void 0===h?y.refreshInterval:h,j=b((0,d.Z)({}),2),x=j[0],w=j[1],P=(0,i.useState)(g),S=P[0],Z=P[1],I=(0,i.useState)(),k=I[0],C=I[1],A=(0,i.useMemo)((function(){return Math.floor(Date.now()/1e3)}),[]);(0,s.Z)(c(A),{onError:function(){w({})},onSuccess:function(e){w(e),null===p||void 0===p||p.call(null,e)},refreshInterval:O}),(0,i.useImperativeHandle)(r,(function(){return{setAnchor:function(e){return C(e)},setOpen:function(e){return Z(e)}}}),[]);var E=(0,i.useMemo)((function(){return(0,t.jsx)(l.Z,{children:(0,t.jsx)(u.Z,{scroll:!0,listEmpty:"No currently running and recently completed jobs.",listItems:x,listProps:{sx:{maxHeight:m,width:m}},renderListItem:function(e,r){var n=r.jobName,o=r.jobProgress;return(0,t.jsx)(l.Z,{sm:"row",sx:{width:"97%"},xs:"column",children:(0,t.jsxs)(l.Z,{spacing:0,sx:{width:"inherit"},children:[(0,t.jsx)(f.Ac,{sx:{overflowX:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),(0,t.jsx)(a.k,{progressPercentage:o})]})})}})})}),[x]);return(0,i.useMemo)((function(){return(0,t.jsx)(o.Z,{anchorEl:k,MenuListProps:{sx:{padding:".8em 1.6em"}},onClose:function(){Z(!1),C(void 0)},open:S,variant:"menu",children:E})}),[S,E,k])}));v.defaultProps=y,v.displayName="JobSummary",r.Z=v},6125:function(e,r,n){var t=n(5893),o=n(7294),i=n(2428),c=n(6761),a=n(6059),l=n(1797),u=n(7357),s=n(7594),f=n(7212),d=n(8619),p=n(8462),b=n(5934),m=n(7169),y=n(2349),v=n(582),g=n(4690),h=n(1706),O=n(7750);function j(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}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}function w(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){x(e,r,n[r])}))}return e}function P(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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,C=e.disableDelete,A=void 0!==C&&C,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:A,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}),[A,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;t<r;t++)n[t]=arguments[t];var o;return null===re||void 0===re?void 0:(o=re).call.apply(o,[null,e].concat(Z(n)))}},n))}):void 0}),[fe,M,U,re]),Ze=(0,o.useMemo)((function(){var e=Pe;if(G){var r=Object.entries(G);r.length>0&&(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<e;t++)r[t]=arguments[t];var o;null===ne||void 0===ne||(o=ne).call.apply(o,[null,i,n].concat(Z(r)))},sx:{borderRadius:m.n_},children:c}):c]}))})))}return e}),[Pe,G,oe,ye,z,J,Se,ie,R,k,ne]),Ie=(0,o.useMemo)((function(){return ae?{maxHeight:"100%",overflowY:"scroll"}:void 0}),[ae]);return(0,t.jsxs)(g.Z,w({spacing:0},T,{children:[we,(0,t.jsx)(p.Z,w({},ve,{sx:w({paddingBottom:0,paddingTop:0},Ie,X),children:Ze}))]}))}));k.displayName="List",r.Z=k},3679:function(e,r,n){n.d(r,{TZ:function(){return P},Lg:function(){return b},bc:function(){return g},CH:function(){return h},s_:function(){return W},V9:function(){return L}});var t=n(5893),o=n(1680),i=n(6571),c=n(4799),a=n(7357),l=n(7294),u=n(7169),s=n(4690);function f(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function d(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){f(e,r,n[r])}))}return e}function p(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){m(e,r,n[r])}))}return 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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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]),C=(0,l.useMemo)((function(){return Z?"auto":".2em"}),[Z]),A=(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<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){x(e,r,n[r])}))}return e}({},y,{children:[(0,t.jsxs)(h,{children:[(0,t.jsxs)(s.Z,{row:!0,children:[A,E]}),(0,t.jsx)(c.Z,{onClick:function(){I((function(e){return!e}))},sx:{color:u.s7,padding:".2em"},children:k})]}),(0,t.jsx)(a.Z,{sx:{height:C,overflowY:"hidden"},children:M})]}))},S=n(1496),Z=n(2287);function I(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function k(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){I(e,r,n[r])}))}return e}function C(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var A="Panel",E={paper:"".concat(A,"-paper"),square:"".concat(A,"-square"),topSquare:"".concat(A,"-topSquare"),bottomSquare:"".concat(A,"-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=C(e.paperProps,["className"]),s=C(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<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){l(e,r,n[r])}))}return e}function s(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){a(e,r,n[r])}))}return e}function u(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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]),C=(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:C}))};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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){y(e,r,n[r])}))}return e}({variant:"h4"},i,{children:c}))};h.defaultProps={text:void 0};var O=h;function j(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function x(){return x=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},x.apply(this,arguments)}var w=function(e){var r=x({},e);return(0,t.jsx)(b,function(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){j(e,r,n[r])}))}return e}({variant:"body2"},r))};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}function S(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){P(e,r,n[r])}))}return e}function Z(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=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 C(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){k(e,r,n[r])}))}return e}function A(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<i.length;t++)n=i[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(e){var r=e.sx,n=A(e,["sx"]);return(0,t.jsx)(w,C({monospaced:!0,sx:C({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;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){R(e,r,n[r])}))}return e}var L=(0,m.ZP)(M.Z)({backgroundColor:c.Xb,borderRadius:c.n_,minWidth:"initial",padding:"0 .6em",textTransform:"none",":hover":{backgroundColor:"".concat(c.Xb,"F0")}}),N=function(e){var r=e.children,n=e.inline,i=void 0!==n&&n,c=e.monospaced,a=void 0!==c&&c,l=e.revealButtonProps,u=e.revealInitially,s=void 0!==u&&u,f=e.textLineHeight,d=void 0===f?2.8:f,p=e.textProps,m=(0,o.useState)(s),y=m[0],v=m[1],g=(0,o.useCallback)((function(){v((function(e){return!e}))}),[]),h=(0,o.useMemo)((function(){return i?void 0:d||void 0}),[i,d]),O=(0,o.useMemo)((function(){return a?E:b}),[a]),j=(0,o.useMemo)((function(){return y?"string"===typeof r?(0,o.createElement)(O,W({sx:{lineHeight:h,maxWidth:"20em",overflowY:"scroll",whiteSpace:"nowrap"}},p),r):r:(0,o.createElement)(O,W({sx:{lineHeight:h}},p),"*****")}),[r,y,O,p,h]);return(0,o.useMemo)((function(){return i?(0,t.jsx)(L,{onClick:g,children:j}):(0,t.jsxs)(T.Z,{row:!0,spacing:".5em",children:[j,(0,t.jsx)(D.Z,W({edge:"end",mapPreset:"visibility",onClick:g,state:String(y),sx:{marginRight:"-.2em",padding:".2em"},variant:"normal"},l))]})}),[g,j,l,i,y])}},3144:function(e,r,n){var t=n(7294);function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"===typeof e)return o(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 o(e,r)}(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.")}()}r.Z=function(){var e=(0,t.useRef)(!0);return(0,t.useEffect)((function(){return function(){e.current=!1}}),[]),{protect:function(r){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];return e.current?r.apply(void 0,i(t)):void 0}}}},2749:function(e,r,n){var t=n(7294),o=n(3144);function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function c(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"===typeof e)return i(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 i(e,r)}(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.")}()}r.Z=function(e,r){var n=(0,o.Z)().protect,i=(0,t.useState)(e),a=i[0],l=i[1],u=(0,t.useMemo)((function(){return null!==r&&void 0!==r?r:n}),[n,r]);return[a,function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return u.apply(void 0,[l].concat(c(r)))}]}},4390:function(e,r,n){var t=n(9669),o=n.n(t),i=n(2029),c=new t.Axios({baseURL:i.Z,transformRequest:o().defaults.transformRequest,transformResponse:o().defaults.transformResponse,validateStatus:function(e){return e<400},withCredentials:!0});r.Z=c},2029:function(e,r){r.Z="/api"},1200:function(e,r){function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"===typeof e)return n(e,r);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 n(e,r)}(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.")}()}r.Z=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return fetch.apply(void 0,t(r)).then((function(e){return e.json()}))}},1905:function(e,r,n){var t=n(8100),o=n(1200);r.Z=function(e){var r=arguments.length>1&&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)}}}]);