@kwirthmagnify/kwirth-plugin-magnify 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +50 -2
  2. package/back.js +4020 -0
  3. package/front.js +829 -0
  4. package/package.json +25 -3
package/front.js ADDED
@@ -0,0 +1,829 @@
1
+ "use strict";(()=>{var k1=Object.create;var Zl=Object.defineProperty;var I1=Object.getOwnPropertyDescriptor;var T1=Object.getOwnPropertyNames;var M1=Object.getPrototypeOf,D1=Object.prototype.hasOwnProperty;var Om=e=>{throw TypeError(e)};var O1=(e,t,n)=>t in e?Zl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R1=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var N1=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of T1(t))!D1.call(e,r)&&r!==n&&Zl(e,r,{get:()=>t[r],enumerable:!(a=I1(t,r))||a.enumerable});return e};var I=(e,t,n)=>(n=e!=null?k1(M1(e)):{},N1(t||!e||!e.__esModule?Zl(n,"default",{value:e,enumerable:!0}):n,e));var Rm=(e,t,n)=>O1(e,typeof t!="symbol"?t+"":t,n),jl=(e,t,n)=>t.has(e)||Om("Cannot "+n);var M=(e,t,n)=>(jl(e,t,"read from private field"),n?n.call(e):t.get(e)),Re=(e,t,n)=>t.has(e)?Om("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ae=(e,t,n,a)=>(jl(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),K=(e,t,n)=>(jl(e,t,"access private method"),n);var je=O((BM,Nm)=>{u();var Ja=window.__kwirth__.React,Zr=Ja!=null&&"default"in Object(Ja)?Ja.default:Ja;typeof Zr!="function"&&Zr!=null&&typeof Zr.default<"u"&&(Zr=Zr.default);Nm.exports=Object.assign({},typeof Ja=="object"&&Ja!==null?Ja:{},{default:Zr,__esModule:!0})});var C,u=R1(()=>{"use strict";C=I(je(),1)});var Rt=O((GM,Pm)=>{u();var Za=window.__kwirth__.kwirthCommonFront,jr=Za!=null&&"default"in Object(Za)?Za.default:Za;typeof jr!="function"&&jr!=null&&typeof jr.default<"u"&&(jr=jr.default);Pm.exports=Object.assign({},typeof Za=="object"&&Za!==null?Za:{},{default:jr,__esModule:!0})});var Jt=O((jM,Fm)=>{u();var ja=window.__kwirth__.MUI.icons,Xr=ja!=null&&"default"in Object(ja)?ja.default:ja;typeof Xr!="function"&&Xr!=null&&typeof Xr.default<"u"&&(Xr=Xr.default);Fm.exports=Object.assign({},typeof ja=="object"&&ja!==null?ja:{},{default:Xr,__esModule:!0})});var zm=O(ho=>{"use strict";u();var P1=je(),F1=Symbol.for("react.element"),_1=Symbol.for("react.fragment"),z1=Object.prototype.hasOwnProperty,L1=P1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V1={key:!0,ref:!0,__self:!0,__source:!0};function _m(e,t,n){var a,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(a in t)z1.call(t,a)&&!V1.hasOwnProperty(a)&&(r[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)r[a]===void 0&&(r[a]=t[a]);return{$$typeof:F1,type:e,key:i,ref:s,props:r,_owner:L1.current}}ho.Fragment=_1;ho.jsx=_m;ho.jsxs=_m});var fe=O((tD,Lm)=>{"use strict";u();Lm.exports=zm()});var Qa=O((iD,Bm)=>{u();var Xa=window.__kwirth__.kwirthCommon,Qr=Xa!=null&&"default"in Object(Xa)?Xa.default:Xa;typeof Qr!="function"&&Qr!=null&&typeof Qr.default<"u"&&(Qr=Qr.default);Bm.exports=Object.assign({},typeof Xa=="object"&&Xa!==null?Xa:{},{default:Qr,__esModule:!0})});var ht=O((dD,$m)=>{u();var er=window.__kwirth__.MUI.material,ti=er!=null&&"default"in Object(er)?er.default:er;typeof ti!="function"&&ti!=null&&typeof ti.default<"u"&&(ti=ti.default);$m.exports=Object.assign({},typeof er=="object"&&er!==null?er:{},{default:ti,__esModule:!0})});var Um=O((pD,qm)=>{u();var tr=window.__kwirth_dce__["file-manager"].instance.fileManager,ni=tr!=null&&"default"in Object(tr)?tr.default:tr;typeof ni!="function"&&ni!=null&&typeof ni.default<"u"&&(ni=ni.default);qm.exports=Object.assign({},typeof tr=="object"&&tr!==null?tr:{},{default:ni,__esModule:!0})});var hd=O((QD,pd)=>{"use strict";u();var $1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";pd.exports=$1});var bd=O((tO,xd)=>{"use strict";u();var q1=hd();function gd(){}function yd(){}yd.resetWarningCache=gd;xd.exports=function(){function e(a,r,i,s,o,l){if(l!==q1){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:yd,resetWarningCache:gd};return n.PropTypes=n,n}});var nr=O((iO,wd)=>{u();wd.exports=bd()();var aO,rO});var fs=O((oO,vd)=>{u();var ar=window.__kwirth__.ReactDOM,si=ar!=null&&"default"in Object(ar)?ar.default:ar;typeof si!="function"&&si!=null&&typeof si.default<"u"&&(si=si.default);vd.exports=Object.assign({},typeof ar=="object"&&ar!==null?ar:{},{default:si,__esModule:!0})});var _d=O((bO,hc)=>{u();function Fd(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Fd(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Pd(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Fd(e))&&(a&&(a+=" "),a+=t);return a}hc.exports=Pd,hc.exports.clsx=Pd});var Gd=O((vO,Yd)=>{"use strict";u();var fb=Object.create,bo=Object.defineProperty,pb=Object.getOwnPropertyDescriptor,hb=Object.getOwnPropertyNames,gb=Object.getPrototypeOf,yb=Object.prototype.hasOwnProperty,xb=(e,t)=>{for(var n in t)bo(e,n,{get:t[n],enumerable:!0})},Bd=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hb(t))!yb.call(e,r)&&r!==n&&bo(e,r,{get:()=>t[r],enumerable:!(a=pb(t,r))||a.enumerable});return e},ui=(e,t,n)=>(n=e!=null?fb(gb(e)):{},Bd(t||!e||!e.__esModule?bo(n,"default",{value:e,enumerable:!0}):n,e)),bb=e=>Bd(bo({},"__esModule",{value:!0}),e),$d={};xb($d,{DraggableCore:()=>or,default:()=>wo});Yd.exports=bb($d);var xo=ui(je()),it=ui(nr()),wb=ui(fs()),vb=_d();function Sc(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function zd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function gs(e){return typeof e=="number"&&!isNaN(e)}function Bt(e){return parseInt(e,10)}function ci(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var gc=["Moz","Webkit","O","ms"];function Cb(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<gc.length;r++)if(qd(e,gc[r])in a)return gc[r];return""}function qd(e,t){return t?`${t}${Sb(e)}`:e}function Sb(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var kb=Cb(),yc="";function Ib(e,t){var n;yc||(yc=(n=Sc(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return zd(e[r])}))!=null?n:"");let a=e[yc];return zd(a)?!!a.call(e,t):!1}function Ld(e,t,n){let a=e;do{if(Ib(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function xc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function sr(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function Tb(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Bt(n.borderTopWidth),t+=Bt(n.borderBottomWidth),t}function Mb(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Bt(n.borderLeftWidth),t+=Bt(n.borderRightWidth),t}function Db(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Bt(n.paddingTop),t-=Bt(n.paddingBottom),t}function Ob(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Bt(n.paddingLeft),t-=Bt(n.paddingRight),t}function Rb(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function Nb(e,t){let n=Ud(e,t,"px");return{[qd("transform",kb)]:n}}function Eb(e,t){return Ud(e,t,"")}function Ud({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function Ab(e,t){return e.targetTouches&&Sc(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&Sc(e.changedTouches,n=>t===n.identifier)}function Pb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function Fb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function _b(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??Fb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
2
+ `,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
3
+ `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&zb(e.body,"react-draggable-transparent-selection")}function Vd(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Wd(e)}):Wd(e)}function Wd(e){if(e)try{e.body&&Lb(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function zb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function Lb(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function Vb(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:Bb(a);let r=kc(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+Bt(d.paddingLeft)+Bt(c.marginLeft),top:-r.offsetTop+Bt(d.paddingTop)+Bt(c.marginTop),right:Ob(l)-Mb(r)-r.offsetLeft+Bt(d.paddingRight)-Bt(c.marginRight),bottom:Db(l)-Tb(r)-r.offsetTop+Bt(d.paddingBottom)-Bt(c.marginBottom)}}return gs(a.right)&&(t=Math.min(t,a.right)),gs(a.bottom)&&(n=Math.min(n,a.bottom)),gs(a.left)&&(t=Math.max(t,a.left)),gs(a.top)&&(n=Math.max(n,a.top)),[t,n]}function Hd(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function Wb(e){return e.props.axis==="both"||e.props.axis==="x"}function Hb(e){return e.props.axis==="both"||e.props.axis==="y"}function bc(e,t,n){let a=typeof t=="number"?Ab(e,t):null;if(typeof t=="number"&&!a)return null;let r=kc(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return Rb(a||e,i,n.props.scale)}function wc(e,t,n){let a=!gs(e.lastX),r=kc(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function vc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function Bb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function kc(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Cc=ui(je()),Ht=ui(nr()),$b=ui(fs()),qb=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},ea=qb,Bn={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Ma=Bn.mouse,or=class extends Cc.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Ld(e.target,this.props.handle,t)||this.props.cancel&&Ld(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=Pb(e);this.touchIdentifier=a;let r=bc(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=wc(this,i,s);ea("DraggableCore: handleDragStart: %j",o),ea("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&_b(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,xc(n,Ma.move,this.handleDrag),xc(n,Ma.stop,this.handleDragStop))},this.handleDrag=e=>{let t=bc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=Hd(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=wc(this,n,a);if(ea("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=bc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=Hd(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=wc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&Vd(s.ownerDocument),ea("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(ea("DraggableCore: Removing handlers"),sr(s.ownerDocument,Ma.move,this.handleDrag),sr(s.ownerDocument,Ma.stop,this.handleDragStop))},this.onMouseDown=e=>(Ma=Bn.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Ma=Bn.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Ma=Bn.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Ma=Bn.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&xc(e,Bn.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;sr(t,Bn.mouse.move,this.handleDrag),sr(t,Bn.touch.move,this.handleDrag),sr(t,Bn.mouse.stop,this.handleDragStop),sr(t,Bn.touch.stop,this.handleDragStop),sr(e,Bn.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&Vd(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=$b.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(ea("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return Cc.cloneElement(Cc.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};or.displayName="DraggableCore";or.propTypes={allowAnyClick:Ht.default.bool,allowMobileScroll:Ht.default.bool,children:Ht.default.node.isRequired,disabled:Ht.default.bool,enableUserSelectHack:Ht.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ht.default.arrayOf(Ht.default.number),handle:Ht.default.string,cancel:Ht.default.string,nodeRef:Ht.default.object,nonce:Ht.default.string,onStart:Ht.default.func,onDrag:Ht.default.func,onStop:Ht.default.func,onMouseDown:Ht.default.func,scale:Ht.default.number,className:ci,style:ci,transform:ci};or.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var wo=class extends xo.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(ea("Draggable: onDragStart: %j",n),this.props.onStart(t,vc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;ea("Draggable: onDrag: %j",n);let a=vc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=Vb(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,vc(this,n))===!1)return!1;ea("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(ea("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=wb.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,k=!!!o||this.state.dragging,v=o||a,E={x:Wb(this)&&k?this.state.x:v.x,y:Hb(this)&&k?this.state.y:v.y};this.state.isElementSVG?f=Eb(E,l):m=Nb(E,l);let q=xo.Children.only(n),me=(0,vb.clsx)(q.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return xo.createElement(or,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},xo.cloneElement(q,{className:me,style:{...q.props.style,...m},transform:f}))}};wo.displayName="Draggable";wo.propTypes={...or.propTypes,axis:it.default.oneOf(["both","x","y","none"]),bounds:it.default.oneOfType([it.default.shape({left:it.default.number,right:it.default.number,top:it.default.number,bottom:it.default.number}),it.default.string,it.default.oneOf([!1])]),defaultClassName:it.default.string,defaultClassNameDragging:it.default.string,defaultClassNameDragged:it.default.string,defaultPosition:it.default.shape({x:it.default.number,y:it.default.number}),positionOffset:it.default.shape({x:it.default.oneOfType([it.default.number,it.default.string]),y:it.default.oneOfType([it.default.number,it.default.string])}),position:it.default.shape({x:it.default.number,y:it.default.number}),className:ci,style:ci,transform:ci};wo.defaultProps={...or.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}});var Tc=O((IO,vo)=>{"use strict";u();var Ic=Gd(),Ub=Ic.DraggableCore,Kd=Ic.default||Ic;vo.exports=Kd;vo.exports.default=Kd;vo.exports.DraggableCore=Ub});var jd=O(Mc=>{"use strict";u();Mc.__esModule=!0;Mc.cloneElement=jb;var Yb=Gb(je());function Gb(e){return e&&e.__esModule?e:{default:e}}function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Zd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jd(Object(n),!0).forEach(function(a){Kb(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jd(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Kb(e,t,n){return(t=Jb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jb(e){var t=Zb(e,"string");return typeof t=="symbol"?t:t+""}function Zb(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jb(e,t){return t.style&&e.props.style&&(t.style=Zd(Zd({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),Yb.default.cloneElement(e,t)}});var Dc=O(Co=>{"use strict";u();Co.__esModule=!0;Co.resizableProps=void 0;var Ie=Xb(nr()),OO=Tc();function Xb(e){return e&&e.__esModule?e:{default:e}}var RO=Co.resizableProps={axis:Ie.default.oneOf(["both","x","y","none"]),className:Ie.default.string,children:Ie.default.element.isRequired,draggableOpts:Ie.default.shape({allowAnyClick:Ie.default.bool,cancel:Ie.default.string,children:Ie.default.node,disabled:Ie.default.bool,enableUserSelectHack:Ie.default.bool,offsetParent:typeof Element<"u"?Ie.default.instanceOf(Element):Ie.default.any,grid:Ie.default.arrayOf(Ie.default.number),handle:Ie.default.string,nodeRef:Ie.default.object,onStart:Ie.default.func,onDrag:Ie.default.func,onStop:Ie.default.func,onMouseDown:Ie.default.func,scale:Ie.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="y"?Ie.default.number.isRequired(...t):Ie.default.number(...t)},handle:Ie.default.oneOfType([Ie.default.node,Ie.default.func]),handleSize:Ie.default.arrayOf(Ie.default.number),lockAspectRatio:Ie.default.bool,maxConstraints:Ie.default.arrayOf(Ie.default.number),minConstraints:Ie.default.arrayOf(Ie.default.number),onResizeStop:Ie.default.func,onResizeStart:Ie.default.func,onResize:Ie.default.func,resizeHandles:Ie.default.arrayOf(Ie.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Ie.default.number,width:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=t[0];return a.axis==="both"||a.axis==="x"?Ie.default.number.isRequired(...t):Ie.default.number(...t)}}});var Nc=O(So=>{"use strict";u();So.__esModule=!0;So.default=void 0;var mi=Qd(je()),Qb=Tc(),ew=jd(),tw=Dc(),nw=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function Qd(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(Qd=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Rc.apply(null,arguments)}function aw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xd(Object(n),!0).forEach(function(a){rw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function rw(e,t,n){return(t=iw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iw(e){var t=sw(e,"string");return typeof t=="symbol"?t:t+""}function sw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ys=class extends mi.Component{constructor(){super(...arguments),this.handleRefs={},this.lastHandleRect=null,this.slack=null,this.lastSize=null}componentWillUnmount(){this.resetData()}resetData(){this.lastHandleRect=this.slack=this.lastSize=null}runConstraints(t,n){let a=this.props,r=a.minConstraints,i=a.maxConstraints,s=a.lockAspectRatio;if(!r&&!i&&!s)return[t,n];if(s){let f=this.props.width/this.props.height,h=t-this.props.width,k=n-this.props.height;Math.abs(h)>Math.abs(k*f)?n=t/f:t=n*f}let o=t,l=n,c=this.slack||[0,0],d=c[0],m=c[1];return t+=d,n+=m,r&&(t=Math.max(r[0],t),n=Math.max(r[1],n)),i&&(t=Math.min(i[0],t),n=Math.min(i[1],n)),this.slack=[d+(o-t),m+(l-n)],[t,n]}resizeHandler(t,n){return(a,r)=>{var i,s,o,l;let c=r.node,d=r.deltaX,m=r.deltaY;t==="onResizeStart"&&this.resetData();let f=(this.props.axis==="both"||this.props.axis==="x")&&n!=="n"&&n!=="s",h=(this.props.axis==="both"||this.props.axis==="y")&&n!=="e"&&n!=="w";if(!f&&!h)return;let k=n[0],v=n[n.length-1],E=c.getBoundingClientRect();if(this.lastHandleRect!=null){if(v==="w"){let _=E.left-this.lastHandleRect.left;d+=_}if(k==="n"){let _=E.top-this.lastHandleRect.top;m+=_}}this.lastHandleRect=E,v==="w"&&(d=-d),k==="n"&&(m=-m);let q=(i=(s=this.lastSize)==null?void 0:s.width)!=null?i:this.props.width,me=(o=(l=this.lastSize)==null?void 0:l.height)!=null?o:this.props.height,pe=q+(f?d/this.props.transformScale:0),H=me+(h?m/this.props.transformScale:0);var Q=this.runConstraints(pe,H);if(pe=Q[0],H=Q[1],t==="onResizeStop"&&this.lastSize){var W=this.lastSize;pe=W.width,H=W.height}let de=pe!==q||H!==me;t!=="onResizeStop"&&(this.lastSize={width:pe,height:H});let Oe=typeof this.props[t]=="function"?this.props[t]:null;Oe&&!(t==="onResize"&&!de)&&(a.persist==null||a.persist(),Oe(a,{node:c,size:{width:pe,height:H},handle:n})),t==="onResizeStop"&&this.resetData()}}renderResizeHandle(t,n){let a=this.props.handle;if(!a)return mi.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:n});if(typeof a=="function")return a(t,n);let r=typeof a.type=="string",i=Oc({ref:n},r?{}:{handleAxis:t});return mi.cloneElement(a,i)}render(){let t=this.props,n=t.children,a=t.className,r=t.draggableOpts,i=t.width,s=t.height,o=t.handle,l=t.handleSize,c=t.lockAspectRatio,d=t.axis,m=t.minConstraints,f=t.maxConstraints,h=t.onResize,k=t.onResizeStop,v=t.onResizeStart,E=t.resizeHandles,q=t.transformScale,me=aw(t,nw);return(0,ew.cloneElement)(n,Oc(Oc({},me),{},{className:(a?a+" ":"")+"react-resizable",children:[...mi.Children.toArray(n.props.children),...E.map(pe=>{var H;let Q=(H=this.handleRefs[pe])!=null?H:this.handleRefs[pe]=mi.createRef();return mi.createElement(Qb.DraggableCore,Rc({},r,{nodeRef:Q,key:"resizableHandle-"+pe,onStop:this.resizeHandler("onResizeStop",pe),onStart:this.resizeHandler("onResizeStart",pe),onDrag:this.resizeHandler("onResize",pe)}),this.renderResizeHandle(pe,Q))})]}))}};So.default=ys;ys.propTypes=tw.resizableProps;ys.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}});var af=O(To=>{"use strict";u();To.__esModule=!0;To.default=void 0;var Ec=nf(je()),ow=tf(nr()),lw=tf(Nc()),cw=Dc(),uw=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function tf(e){return e&&e.__esModule?e:{default:e}}function nf(e,t){if(typeof WeakMap=="function")var n=new WeakMap,a=new WeakMap;return(nf=function(r,i){if(!i&&r&&r.__esModule)return r;var s,o,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(s=i?a:n){if(s.has(r))return s.get(r);s.set(r,l)}for(let c in r)c!=="default"&&{}.hasOwnProperty.call(r,c)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,c))&&(o.get||o.set)?s(l,c,o):l[c]=r[c]);return l})(e,t)}function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ac.apply(null,arguments)}function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ef(Object(n),!0).forEach(function(a){mw(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function mw(e,t,n){return(t=dw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dw(e){var t=fw(e,"string");return typeof t=="symbol"?t:t+""}function fw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pw(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}var Io=class extends Ec.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(t,n)=>{let a=n.size;this.props.onResize?(t.persist==null||t.persist(),this.setState(a,()=>this.props.onResize&&this.props.onResize(t,n))):this.setState(a)}}static getDerivedStateFromProps(t,n){return n.propsWidth!==t.width||n.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null}render(){let t=this.props,n=t.handle,a=t.handleSize,r=t.onResize,i=t.onResizeStart,s=t.onResizeStop,o=t.draggableOpts,l=t.minConstraints,c=t.maxConstraints,d=t.lockAspectRatio,m=t.axis,f=t.width,h=t.height,k=t.resizeHandles,v=t.style,E=t.transformScale,q=pw(t,uw);return Ec.createElement(lw.default,{axis:m,draggableOpts:o,handle:n,handleSize:a,height:this.state.height,lockAspectRatio:d,maxConstraints:c,minConstraints:l,onResizeStart:i,onResize:this.onResize,onResizeStop:s,resizeHandles:k,transformScale:E,width:this.state.width},Ec.createElement("div",Ac({},q,{style:ko(ko({},v),{},{width:this.state.width+"px",height:this.state.height+"px"})})))}};To.default=Io;Io.propTypes=ko(ko({},cw.resizableProps),{},{children:ow.default.element})});var rf=O((zO,Mo)=>{"use strict";u();Mo.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};Mo.exports.Resizable=Nc().default;Mo.exports.ResizableBox=af().default});var cf=O(lf=>{"use strict";u();Object.defineProperty(lf,"__esModule",{value:!0})});var Da=O(Oo=>{"use strict";u();Object.defineProperty(Oo,"__esModule",{value:!0});Oo.CronField=void 0;var xs,bs,di,ra,Do,uf,Fc=class Fc{constructor(t,n={rawValue:""}){Re(this,Do);Re(this,xs,!1);Re(this,bs,!1);Re(this,di,!1);Re(this,ra,[]);Rm(this,"options",{rawValue:""});if(!Array.isArray(t))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(t.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...n,rawValue:n.rawValue??""},ae(this,ra,[...t].sort(Fc.sorter)),ae(this,di,this.options.wildcard!==void 0?this.options.wildcard:K(this,Do,uf).call(this)),ae(this,xs,this.options.rawValue.includes("L")||t.includes("L")),ae(this,bs,this.options.rawValue.includes("?")||t.includes("?"))}static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return M(this,xs)}get hasQuestionMarkChar(){return M(this,bs)}get isWildcard(){return M(this,di)}get values(){return M(this,ra)}static sorter(t,n){let a=typeof t=="number",r=typeof n=="number";return a&&r?t-n:!a&&!r?t.localeCompare(n):a?-1:1}static findNearestValueInList(t,n,a){if(a){for(let r=t.length-1;r>=0;r--)if(t[r]<n)return t[r];return null}for(let r=0;r<t.length;r++)if(t[r]>n)return t[r];return null}findNearestValue(t,n){return this.constructor.findNearestValueInList(this.values,t,n)}serialize(){return{wildcard:M(this,di),values:M(this,ra)}}validate(){let t,n=this.chars.length>0?` or chars ${this.chars.join("")}`:"",a=o=>l=>new RegExp(`^\\d{0,2}${l}$`).test(o),r=o=>(t=o,typeof o=="number"?o>=this.min&&o<=this.max:this.chars.some(a(o)));if(!M(this,ra).every(r))throw new Error(`${this.constructor.name} Validation error, got value ${t} expected range ${this.min}-${this.max}${n}`);let s=M(this,ra).find((o,l)=>M(this,ra).indexOf(o)!==l);if(s!==void 0)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${s}`)}};xs=new WeakMap,bs=new WeakMap,di=new WeakMap,ra=new WeakMap,Do=new WeakSet,uf=function(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(t,n)=>n+this.min).every(t=>M(this,ra).includes(t))};var Pc=Fc;Oo.CronField=Pc});var Wp=O(pn=>{"use strict";u();Object.defineProperty(pn,"__esModule",{value:!0});var ga=class extends Error{},Uc=class extends ga{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Yc=class extends ga{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Gc=class extends ga{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Na=class extends ga{},zo=class extends ga{constructor(t){super(`Invalid unit ${t}`)}},Nt=class extends ga{},ia=class extends ga{constructor(){super("Zone is an abstract class")}},j="numeric",Un="short",dn="long",Lo={year:j,month:j,day:j},Hf={year:j,month:Un,day:j},xw={year:j,month:Un,day:j,weekday:Un},Bf={year:j,month:dn,day:j},$f={year:j,month:dn,day:j,weekday:dn},qf={hour:j,minute:j},Uf={hour:j,minute:j,second:j},Yf={hour:j,minute:j,second:j,timeZoneName:Un},Gf={hour:j,minute:j,second:j,timeZoneName:dn},Kf={hour:j,minute:j,hourCycle:"h23"},Jf={hour:j,minute:j,second:j,hourCycle:"h23"},Zf={hour:j,minute:j,second:j,hourCycle:"h23",timeZoneName:Un},jf={hour:j,minute:j,second:j,hourCycle:"h23",timeZoneName:dn},Xf={year:j,month:j,day:j,hour:j,minute:j},Qf={year:j,month:j,day:j,hour:j,minute:j,second:j},ep={year:j,month:Un,day:j,hour:j,minute:j},tp={year:j,month:Un,day:j,hour:j,minute:j,second:j},bw={year:j,month:Un,day:j,weekday:Un,hour:j,minute:j},np={year:j,month:dn,day:j,hour:j,minute:j,timeZoneName:Un},ap={year:j,month:dn,day:j,hour:j,minute:j,second:j,timeZoneName:Un},rp={year:j,month:dn,day:j,weekday:dn,hour:j,minute:j,timeZoneName:dn},ip={year:j,month:dn,day:j,weekday:dn,hour:j,minute:j,second:j,timeZoneName:dn},Aa=class{get type(){throw new ia}get name(){throw new ia}get ianaName(){return this.name}get isUniversal(){throw new ia}offsetName(t,n){throw new ia}formatOffset(t,n){throw new ia}offset(t){throw new ia}equals(t){throw new ia}get isValid(){throw new ia}},_c=null,Is=class e extends Aa{static get instance(){return _c===null&&(_c=new e),_c}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return gp(t,n,a)}formatOffset(t,n){return ks(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}},Kc=new Map;function ww(e){let t=Kc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Kc.set(e,t)),t}var vw={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Cw(e,t){let n=e.format(t).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,s,o,l,c,d]=a;return[s,r,i,o,l,c,d]}function Sw(e,t){let n=e.formatToParts(t),a=[];for(let r=0;r<n.length;r++){let{type:i,value:s}=n[r],o=vw[i];i==="era"?a[o]=s:ge(o)||(a[o]=parseInt(s,10))}return a}var zc=new Map,ya=class e extends Aa{static create(t){let n=zc.get(t);return n===void 0&&zc.set(t,n=new e(t)),n}static resetCache(){zc.clear(),Kc.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:a}){return gp(t,n,a,this.name)}formatOffset(t,n){return ks(this.offset(t),n)}offset(t){if(!this.valid)return NaN;let n=new Date(t);if(isNaN(n))return NaN;let a=ww(this.name),[r,i,s,o,l,c,d]=a.formatToParts?Sw(a,n):Cw(a,n);o==="BC"&&(r=-Math.abs(r)+1);let f=Uo({year:r,month:i,day:s,hour:l===24?0:l,minute:c,second:d,millisecond:0}),h=+n,k=h%1e3;return h-=k>=0?k:1e3+k,(f-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}},mf={};function kw(e,t={}){let n=JSON.stringify([e,t]),a=mf[n];return a||(a=new Intl.ListFormat(e,t),mf[n]=a),a}var Jc=new Map;function Zc(e,t={}){let n=JSON.stringify([e,t]),a=Jc.get(n);return a===void 0&&(a=new Intl.DateTimeFormat(e,t),Jc.set(n,a)),a}var jc=new Map;function Iw(e,t={}){let n=JSON.stringify([e,t]),a=jc.get(n);return a===void 0&&(a=new Intl.NumberFormat(e,t),jc.set(n,a)),a}var Xc=new Map;function Tw(e,t={}){let{base:n,...a}=t,r=JSON.stringify([e,a]),i=Xc.get(r);return i===void 0&&(i=new Intl.RelativeTimeFormat(e,t),Xc.set(r,i)),i}var vs=null;function Mw(){return vs||(vs=new Intl.DateTimeFormat().resolvedOptions().locale,vs)}var Qc=new Map;function sp(e){let t=Qc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),Qc.set(e,t)),t}var eu=new Map;function Dw(e){let t=eu.get(e);if(!t){let n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...op,...t}),eu.set(e,t)}return t}function Ow(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(n===-1)return[e];{let a,r;try{a=Zc(e).resolvedOptions(),r=e}catch{let l=e.substring(0,n);a=Zc(l).resolvedOptions(),r=l}let{numberingSystem:i,calendar:s}=a;return[r,i,s]}}function Rw(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Nw(e){let t=[];for(let n=1;n<=12;n++){let a=ct.utc(2009,n,1);t.push(e(a))}return t}function Ew(e){let t=[];for(let n=1;n<=7;n++){let a=ct.utc(2016,11,13+n);t.push(e(a))}return t}function Ro(e,t,n,a){let r=e.listingMode();return r==="error"?null:r==="en"?n(t):a(t)}function Aw(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||sp(e.locale).numberingSystem==="latn"}var tu=class{constructor(t,n,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:r,floor:i,...s}=a;if(!n||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=Iw(t,o)}}format(t){if(this.inf){let n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{let n=this.floor?Math.floor(t):du(t,3);return kt(n,this.padTo)}}},nu=class{constructor(t,n,a){this.opts=a,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&ya.create(o).valid?(r=o,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=Zc(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:a}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},au=class{constructor(t,n,a){this.opts={style:"long",...a},!n&&pp()&&(this.rtf=Tw(t,a))}format(t,n){return this.rtf?this.rtf.format(t,n):ev(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}},op={firstDay:1,minimalDays:4,weekend:[6,7]},Xe=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,a,r,i=!1){let s=t||st.defaultLocale,o=s||(i?"en-US":Mw()),l=n||st.defaultNumberingSystem,c=a||st.defaultOutputCalendar,d=iu(r)||st.defaultWeekSettings;return new e(o,l,c,d,s)}static resetCache(){vs=null,Jc.clear(),jc.clear(),Xc.clear(),Qc.clear(),eu.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:a,weekSettings:r}={}){return e.create(t,n,a,r)}constructor(t,n,a,r,i){let[s,o,l]=Ow(t);this.locale=s,this.numberingSystem=n||o||null,this.outputCalendar=a||l||null,this.weekSettings=r,this.intl=Rw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Aw(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,iu(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Ro(this,t,bp,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");n&=!a;let r=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";if(!this.monthsCache[i][t]){let s=a?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[i][t]=Nw(s)}return this.monthsCache[i][t]})}weekdays(t,n=!1){return Ro(this,t,Cp,()=>{let a=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=n?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=Ew(i=>this.extract(i,a,"weekday"))),this.weekdaysCache[r][t]})}meridiems(){return Ro(this,void 0,()=>Sp,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ct.utc(2016,11,13,9),ct.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Ro(this,t,kp,()=>{let n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ct.utc(-40,1,1),ct.utc(2017,1,1)].map(a=>this.extract(a,n,"era"))),this.eraCache[t]})}extract(t,n,a){let r=this.dtFormatter(t,n),i=r.formatToParts(),s=i.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(t={}){return new tu(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new nu(t,this.intl,n)}relFormatter(t={}){return new au(this.intl,this.isEnglish(),t)}listFormatter(t={}){return kw(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||sp(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hp()?Dw(this.locale):op}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Lc=null,fn=class e extends Aa{static get utcInstance(){return Lc===null&&(Lc=new e(0)),Lc}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(Yo(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ks(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ks(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return ks(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}},Vo=class extends Aa{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Ra(e,t){if(ge(e)||e===null)return t;if(e instanceof Aa)return e;if(Vw(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Is.instance:n==="utc"||n==="gmt"?fn.utcInstance:fn.parseSpecifier(n)||ya.create(e)}else return Ea(e)?fn.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Vo(e)}var lu={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},df={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Pw=lu.hanidec.replace(/[\[|\]]/g,"").split("");function Fw(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(e[n].search(lu.hanidec)!==-1)t+=Pw.indexOf(e[n]);else for(let r in df){let[i,s]=df[r];a>=i&&a<=s&&(t+=a-i)}}return parseInt(t,10)}else return t}var ru=new Map;function _w(){ru.clear()}function $n({numberingSystem:e},t=""){let n=e||"latn",a=ru.get(n);a===void 0&&(a=new Map,ru.set(n,a));let r=a.get(t);return r===void 0&&(r=new RegExp(`${lu[n]}${t}`),a.set(t,r)),r}var ff=()=>Date.now(),pf="system",hf=null,gf=null,yf=null,xf=60,bf,wf=null,st=class{static get now(){return ff}static set now(t){ff=t}static set defaultZone(t){pf=t}static get defaultZone(){return Ra(pf,Is.instance)}static get defaultLocale(){return hf}static set defaultLocale(t){hf=t}static get defaultNumberingSystem(){return gf}static set defaultNumberingSystem(t){gf=t}static get defaultOutputCalendar(){return yf}static set defaultOutputCalendar(t){yf=t}static get defaultWeekSettings(){return wf}static set defaultWeekSettings(t){wf=iu(t)}static get twoDigitCutoffYear(){return xf}static set twoDigitCutoffYear(t){xf=t%100}static get throwOnInvalid(){return bf}static set throwOnInvalid(t){bf=t}static resetCaches(){Xe.resetCache(),ya.resetCache(),ct.resetCache(),_w()}},mn=class{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},lp=[0,31,59,90,120,151,181,212,243,273,304,334],cp=[0,31,60,91,121,152,182,213,244,274,305,335];function Sn(e,t){return new mn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function cu(e,t,n){let a=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let r=a.getUTCDay();return r===0?7:r}function up(e,t,n){return n+(Ms(e)?cp:lp)[t-1]}function mp(e,t){let n=Ms(e)?cp:lp,a=n.findIndex(i=>i<t),r=t-n[a];return{month:a+1,day:r}}function uu(e,t){return(e-t+7)%7+1}function Wo(e,t=4,n=1){let{year:a,month:r,day:i}=e,s=up(a,r,i),o=uu(cu(a,r,i),n),l=Math.floor((s-o+14-t)/7),c;return l<1?(c=a-1,l=Ts(c,t,n)):l>Ts(a,t,n)?(c=a+1,l=1):c=a,{weekYear:c,weekNumber:l,weekday:o,...Go(e)}}function vf(e,t=4,n=1){let{weekYear:a,weekNumber:r,weekday:i}=e,s=uu(cu(a,1,t),n),o=gi(a),l=r*7+i-s-7+t,c;l<1?(c=a-1,l+=gi(c)):l>o?(c=a+1,l-=gi(a)):c=a;let{month:d,day:m}=mp(c,l);return{year:c,month:d,day:m,...Go(e)}}function Vc(e){let{year:t,month:n,day:a}=e,r=up(t,n,a);return{year:t,ordinal:r,...Go(e)}}function Cf(e){let{year:t,ordinal:n}=e,{month:a,day:r}=mp(t,n);return{year:t,month:a,day:r,...Go(e)}}function Sf(e,t){if(!ge(e.localWeekday)||!ge(e.localWeekNumber)||!ge(e.localWeekYear)){if(!ge(e.weekday)||!ge(e.weekNumber)||!ge(e.weekYear))throw new Na("Cannot mix locale-based week fields with ISO-based week fields");return ge(e.localWeekday)||(e.weekday=e.localWeekday),ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function zw(e,t=4,n=1){let a=qo(e.weekYear),r=kn(e.weekNumber,1,Ts(e.weekYear,t,n)),i=kn(e.weekday,1,7);return a?r?i?!1:Sn("weekday",e.weekday):Sn("week",e.weekNumber):Sn("weekYear",e.weekYear)}function Lw(e){let t=qo(e.year),n=kn(e.ordinal,1,gi(e.year));return t?n?!1:Sn("ordinal",e.ordinal):Sn("year",e.year)}function dp(e){let t=qo(e.year),n=kn(e.month,1,12),a=kn(e.day,1,Ho(e.year,e.month));return t?n?a?!1:Sn("day",e.day):Sn("month",e.month):Sn("year",e.year)}function fp(e){let{hour:t,minute:n,second:a,millisecond:r}=e,i=kn(t,0,23)||t===24&&n===0&&a===0&&r===0,s=kn(n,0,59),o=kn(a,0,59),l=kn(r,0,999);return i?s?o?l?!1:Sn("millisecond",r):Sn("second",a):Sn("minute",n):Sn("hour",t)}function ge(e){return typeof e>"u"}function Ea(e){return typeof e=="number"}function qo(e){return typeof e=="number"&&e%1===0}function Vw(e){return typeof e=="string"}function Ww(e){return Object.prototype.toString.call(e)==="[object Date]"}function pp(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hp(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Hw(e){return Array.isArray(e)?e:[e]}function kf(e,t,n){if(e.length!==0)return e.reduce((a,r)=>{let i=[t(r),r];return a&&n(a[0],i[0])===a[0]?a:i},null)[1]}function Bw(e,t){return t.reduce((n,a)=>(n[a]=e[a],n),{})}function xi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function iu(e){if(e==null)return null;if(typeof e!="object")throw new Nt("Week settings must be an object");if(!kn(e.firstDay,1,7)||!kn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!kn(t,1,7)))throw new Nt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function kn(e,t,n){return qo(e)&&e>=t&&e<=n}function $w(e,t){return e-t*Math.floor(e/t)}function kt(e,t=2){let n=e<0,a;return n?a="-"+(""+-e).padStart(t,"0"):a=(""+e).padStart(t,"0"),a}function Oa(e){if(!(ge(e)||e===null||e===""))return parseInt(e,10)}function lr(e){if(!(ge(e)||e===null||e===""))return parseFloat(e)}function mu(e){if(!(ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function du(e,t,n="round"){let a=10**t;switch(n){case"expand":return e>0?Math.ceil(e*a)/a:Math.floor(e*a)/a;case"trunc":return Math.trunc(e*a)/a;case"round":return Math.round(e*a)/a;case"floor":return Math.floor(e*a)/a;case"ceil":return Math.ceil(e*a)/a;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Ms(e){return e%4===0&&(e%100!==0||e%400===0)}function gi(e){return Ms(e)?366:365}function Ho(e,t){let n=$w(t-1,12)+1,a=e+(t-n)/12;return n===2?Ms(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Uo(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function If(e,t,n){return-uu(cu(e,1,t),n)+t-1}function Ts(e,t=4,n=1){let a=If(e,t,n),r=If(e+1,t,n);return(gi(e)-a+r)/7}function su(e){return e>99?e:e>st.twoDigitCutoffYear?1900+e:2e3+e}function gp(e,t,n,a=null){let r=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(i.timeZone=a);let s={timeZoneName:t,...i},o=new Intl.DateTimeFormat(n,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function Yo(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let a=parseInt(t,10)||0,r=n<0||Object.is(n,-0)?-a:a;return n*60+r}function yp(e){let t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new Nt(`Invalid unit value ${e}`);return t}function Bo(e,t){let n={};for(let a in e)if(xi(e,a)){let r=e[a];if(r==null)continue;n[t(a)]=yp(r)}return n}function ks(e,t){let n=Math.trunc(Math.abs(e/60)),a=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${kt(n,2)}:${kt(a,2)}`;case"narrow":return`${r}${n}${a>0?`:${a}`:""}`;case"techie":return`${r}${kt(n,2)}${kt(a,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Go(e){return Bw(e,["hour","minute","second","millisecond"])}var qw=["January","February","March","April","May","June","July","August","September","October","November","December"],xp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Uw=["J","F","M","A","M","J","J","A","S","O","N","D"];function bp(e){switch(e){case"narrow":return[...Uw];case"short":return[...xp];case"long":return[...qw];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var wp=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],vp=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Yw=["M","T","W","T","F","S","S"];function Cp(e){switch(e){case"narrow":return[...Yw];case"short":return[...vp];case"long":return[...wp];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Sp=["AM","PM"],Gw=["Before Christ","Anno Domini"],Kw=["BC","AD"],Jw=["B","A"];function kp(e){switch(e){case"narrow":return[...Jw];case"short":return[...Kw];case"long":return[...Gw];default:return null}}function Zw(e){return Sp[e.hour<12?0:1]}function jw(e,t){return Cp(t)[e.weekday-1]}function Xw(e,t){return bp(t)[e.month-1]}function Qw(e,t){return kp(t)[e.year<0?0:1]}function ev(e,t,n="always",a=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){let m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${r[e][0]}`;case-1:return m?"yesterday":`last ${r[e][0]}`;case 0:return m?"today":`this ${r[e][0]}`}}let s=Object.is(t,-0)||t<0,o=Math.abs(t),l=o===1,c=r[e],d=a?l?c[1]:c[2]||c[1]:l?r[e][0]:e;return s?`${o} ${d} ago`:`in ${o} ${d}`}function Tf(e,t){let n="";for(let a of e)a.literal?n+=a.val:n+=t(a.val);return n}var tv={D:Lo,DD:Hf,DDD:Bf,DDDD:$f,t:qf,tt:Uf,ttt:Yf,tttt:Gf,T:Kf,TT:Jf,TTT:Zf,TTTT:jf,f:Xf,ff:ep,fff:np,ffff:rp,F:Qf,FF:tp,FFF:ap,FFFF:ip},un=class e{static create(t,n={}){return new e(t,n)}static parseFormat(t){let n=null,a="",r=!1,i=[];for(let s=0;s<t.length;s++){let o=t.charAt(s);o==="'"?((a.length>0||r)&&i.push({literal:r||/^\s+$/.test(a),val:a===""?"'":a}),n=null,a="",r=!r):r||o===n?a+=o:(a.length>0&&i.push({literal:/^\s+$/.test(a),val:a}),a=o,n=o)}return a.length>0&&i.push({literal:r||/^\s+$/.test(a),val:a}),i}static macroTokenToFormatOpts(t){return tv[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,a=void 0){if(this.opts.forceSimple)return kt(t,n);let r={...this.opts};return n>0&&(r.padTo=n),a&&(r.signDisplay=a),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){let a=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,k)=>this.loc.extract(t,h,k),s=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",o=()=>a?Zw(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,k)=>a?Xw(t,h):i(k?{month:h}:{month:h,day:"numeric"},"month"),c=(h,k)=>a?jw(t,h):i(k?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),d=h=>{let k=e.macroTokenToFormatOpts(h);return k?this.formatWithSystemDefault(t,k):h},m=h=>a?Qw(t,h):i({era:h},"era"),f=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(t.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(t.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(t.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(h)}};return Tf(e.parseFormat(n),f)}formatDurationFromString(t,n){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,r=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,m)=>f=>{let h=r(f);if(h){let k=m.isNegativeDuration&&h!==m.largestUnit?a:1,v;return this.opts.signMode==="negativeLargestOnly"&&h!==m.largestUnit?v="never":this.opts.signMode==="all"?v="always":v="auto",this.num(d.get(h)*k,f.length,v)}else return f},s=e.parseFormat(n),o=s.reduce((d,{literal:m,val:f})=>m?d:d.concat(f),[]),l=t.shiftTo(...o.map(r).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Tf(s,i(l,c))}},Ip=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bi(...e){let t=e.reduce((n,a)=>n+a.source,"");return RegExp(`^${t}$`)}function wi(...e){return t=>e.reduce(([n,a,r],i)=>{let[s,o,l]=i(t,r);return[{...n,...s},o||a,l]},[{},null,1]).slice(0,2)}function vi(e,...t){if(e==null)return[null,null];for(let[n,a]of t){let r=n.exec(e);if(r)return a(r)}return[null,null]}function Tp(...e){return(t,n)=>{let a={},r;for(r=0;r<e.length;r++)a[e[r]]=Oa(t[n+r]);return[a,null,n+r]}}var Mp=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,nv=`(?:${Mp.source}?(?:\\[(${Ip.source})\\])?)?`,fu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Dp=RegExp(`${fu.source}${nv}`),pu=RegExp(`(?:[Tt]${Dp.source})?`),av=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,rv=/(\d{4})-?W(\d\d)(?:-?(\d))?/,iv=/(\d{4})-?(\d{3})/,sv=Tp("weekYear","weekNumber","weekDay"),ov=Tp("year","ordinal"),lv=/(\d{4})-(\d\d)-(\d\d)/,Op=RegExp(`${fu.source} ?(?:${Mp.source}|(${Ip.source}))?`),cv=RegExp(`(?: ${Op.source})?`);function yi(e,t,n){let a=e[t];return ge(a)?n:Oa(a)}function uv(e,t){return[{year:yi(e,t),month:yi(e,t+1,1),day:yi(e,t+2,1)},null,t+3]}function Ci(e,t){return[{hours:yi(e,t,0),minutes:yi(e,t+1,0),seconds:yi(e,t+2,0),milliseconds:mu(e[t+3])},null,t+4]}function Ds(e,t){let n=!e[t]&&!e[t+1],a=Yo(e[t+1],e[t+2]),r=n?null:fn.instance(a);return[{},r,t+3]}function Os(e,t){let n=e[t]?ya.create(e[t]):null;return[{},n,t+1]}var mv=RegExp(`^T?${fu.source}$`),dv=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function fv(e){let[t,n,a,r,i,s,o,l,c]=e,d=t[0]==="-",m=l&&l[0]==="-",f=(h,k=!1)=>h!==void 0&&(k||h&&d)?-h:h;return[{years:f(lr(n)),months:f(lr(a)),weeks:f(lr(r)),days:f(lr(i)),hours:f(lr(s)),minutes:f(lr(o)),seconds:f(lr(l),l==="-0"),milliseconds:f(mu(c),m)}]}var pv={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function hu(e,t,n,a,r,i,s){let o={year:t.length===2?su(Oa(t)):Oa(t),month:xp.indexOf(n)+1,day:Oa(a),hour:Oa(r),minute:Oa(i)};return s&&(o.second=Oa(s)),e&&(o.weekday=e.length>3?wp.indexOf(e)+1:vp.indexOf(e)+1),o}var hv=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function gv(e){let[,t,n,a,r,i,s,o,l,c,d,m]=e,f=hu(t,r,a,n,i,s,o),h;return l?h=pv[l]:c?h=0:h=Yo(d,m),[f,new fn(h)]}function yv(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var xv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,bv=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,wv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Mf(e){let[,t,n,a,r,i,s,o]=e;return[hu(t,r,a,n,i,s,o),fn.utcInstance]}function vv(e){let[,t,n,a,r,i,s,o]=e;return[hu(t,o,n,a,r,i,s),fn.utcInstance]}var Cv=bi(av,pu),Sv=bi(rv,pu),kv=bi(iv,pu),Iv=bi(Dp),Rp=wi(uv,Ci,Ds,Os),Tv=wi(sv,Ci,Ds,Os),Mv=wi(ov,Ci,Ds,Os),Dv=wi(Ci,Ds,Os);function Ov(e){return vi(e,[Cv,Rp],[Sv,Tv],[kv,Mv],[Iv,Dv])}function Rv(e){return vi(yv(e),[hv,gv])}function Nv(e){return vi(e,[xv,Mf],[bv,Mf],[wv,vv])}function Ev(e){return vi(e,[dv,fv])}var Av=wi(Ci);function Pv(e){return vi(e,[mv,Av])}var Fv=bi(lv,cv),_v=bi(Op),zv=wi(Ci,Ds,Os);function Lv(e){return vi(e,[Fv,Rp],[_v,zv])}var Df="Invalid Duration",Np={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Vv={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Np},Cn=146097/400,fi=146097/4800,Wv={years:{quarters:4,months:12,weeks:Cn/7,days:Cn,hours:Cn*24,minutes:Cn*24*60,seconds:Cn*24*60*60,milliseconds:Cn*24*60*60*1e3},quarters:{months:3,weeks:Cn/28,days:Cn/4,hours:Cn*24/4,minutes:Cn*24*60/4,seconds:Cn*24*60*60/4,milliseconds:Cn*24*60*60*1e3/4},months:{weeks:fi/7,days:fi,hours:fi*24,minutes:fi*24*60,seconds:fi*24*60*60,milliseconds:fi*24*60*60*1e3},...Np},ur=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Hv=ur.slice(0).reverse();function ha(e,t,n=!1){let a={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ot(a)}function Ep(e,t){var n;let a=(n=t.milliseconds)!=null?n:0;for(let r of Hv.slice(1))t[r]&&(a+=t[r]*e[r].milliseconds);return a}function Of(e,t){let n=Ep(e,t)<0?-1:1;ur.reduceRight((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]*n,s=e[r][a],o=Math.floor(i/s);t[r]+=o*n,t[a]-=o*s*n}return r},null),ur.reduce((a,r)=>{if(ge(t[r]))return a;if(a){let i=t[a]%1;t[a]-=i,t[r]+=i*e[a][r]}return r},null)}function Rf(e){let t={};for(let[n,a]of Object.entries(e))a!==0&&(t[n]=a);return t}var Ot=class e{constructor(t){let n=t.conversionAccuracy==="longterm"||!1,a=n?Wv:Vv;t.matrix&&(a=t.matrix),this.values=t.values,this.loc=t.loc||Xe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Nt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Bo(t,e.normalizeUnit),loc:Xe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Ea(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new Nt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[a]=Ev(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){let[a]=Pv(t);return a?e.fromObject(a,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Nt("need to specify a reason the Duration is invalid");let a=t instanceof mn?t:new mn(t,n);if(st.throwOnInvalid)throw new Gc(a);return new e({invalid:a})}static normalizeUnit(t){let n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new zo(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){let a={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?un.create(this.loc,a).formatDurationFromString(this,t):Df}toHuman(t={}){if(!this.isValid)return Df;let n=t.showZeros!==!1,a=ur.map(r=>{let i=this.values[r];return ge(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=du(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ct.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Ep(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t),a={};for(let r of ur)(xi(n.values,r)||xi(this.values,r))&&(a[r]=n.get(r)+this.get(r));return ha(this,{values:a},!0)}minus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;let n={};for(let a of Object.keys(this.values))n[a]=yp(t(this.values[a],a));return ha(this,{values:n},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let n={...this.values,...Bo(t,e.normalizeUnit)};return ha(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:a,matrix:r}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:r,conversionAccuracy:a};return ha(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return Of(this.matrix,t),ha(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=Rf(this.normalize().shiftToAll().toObject());return ha(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let n={},a={},r=this.toObject(),i;for(let s of ur)if(t.indexOf(s)>=0){i=s;let o=0;for(let c in a)o+=this.matrix[c][s]*a[c],a[c]=0;Ea(r[s])&&(o+=r[s]);let l=Math.trunc(o);n[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else Ea(r[s])&&(a[s]=r[s]);for(let s in a)a[s]!==0&&(n[i]+=s===i?a[s]:a[s]/this.matrix[i][s]);return Of(this.matrix,n),ha(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return ha(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;let t=Rf(this.values);return ha(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(a,r){return a===void 0||a===0?r===void 0||r===0:a===r}for(let a of ur)if(!n(this.values[a],t.values[a]))return!1;return!0}},pi="Invalid Interval";function Bv(e,t){return!e||!e.isValid?dr.invalid("missing or invalid start"):!t||!t.isValid?dr.invalid("missing or invalid end"):t<e?dr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var dr=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Nt("need to specify a reason the Interval is invalid");let a=t instanceof mn?t:new mn(t,n);if(st.throwOnInvalid)throw new Yc(a);return new e({invalid:a})}static fromDateTimes(t,n){let a=ws(t),r=ws(n),i=Bv(a,r);return i??new e({start:a,end:r})}static after(t,n){let a=Ot.fromDurationLike(n),r=ws(t);return e.fromDateTimes(r,r.plus(a))}static before(t,n){let a=Ot.fromDurationLike(n),r=ws(t);return e.fromDateTimes(r.minus(a),r)}static fromISO(t,n){let[a,r]=(t||"").split("/",2);if(a&&r){let i,s;try{i=ct.fromISO(a,n),s=i.isValid}catch{s=!1}let o,l;try{o=ct.fromISO(r,n),l=o.isValid}catch{l=!1}if(s&&l)return e.fromDateTimes(i,o);if(s){let c=Ot.fromISO(r,n);if(c.isValid)return e.after(i,c)}else if(l){let c=Ot.fromISO(a,n);if(c.isValid)return e.before(o,c)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;let a=this.start.startOf(t,n),r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:a.locale}):r=this.end,r=r.startOf(t,n),Math.floor(r.diff(a,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];let n=t.map(ws).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:r}=this,i=0;for(;r<this.e;){let s=n[i]||this.e,o=+s>+this.e?this.e:s;a.push(e.fromDateTimes(r,o)),r=o,i+=1}return a}splitBy(t){let n=Ot.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:a}=this,r=1,i,s=[];for(;a<this.e;){let o=this.start.plus(n.mapUnits(l=>l*r));i=+o>+this.e?this.e:o,s.push(e.fromDateTimes(a,i)),a=i,r+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let n=this.s>t.s?this.s:t.s,a=this.e<t.e?this.e:t.e;return n>=a?null:e.fromDateTimes(n,a)}union(t){if(!this.isValid)return this;let n=this.s<t.s?this.s:t.s,a=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,a)}static merge(t){let[n,a]=t.sort((r,i)=>r.s-i.s).reduce(([r,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[r,i.union(s)]:[r.concat([i]),s]:[r,s],[[],null]);return a&&n.push(a),n}static xor(t){let n=null,a=0,r=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...i),o=s.sort((l,c)=>l.time-c.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?n=l.time:(n&&+n!=+l.time&&r.push(e.fromDateTimes(n,l.time)),n=null);return e.merge(r)}difference(...t){return e.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:pi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Lo,n={}){return this.isValid?un.create(this.s.loc.clone(n),t).formatInterval(this):pi}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:pi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:pi}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:pi}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:pi}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ot.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},mr=class{static hasDST(t=st.defaultZone){let n=ct.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ya.isValidZone(t)}static normalizeZone(t){return Ra(t,st.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Xe.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Xe.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Xe.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Xe.create(n,a,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Xe.create(n,a,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Xe.create(n,a,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:a=null,locObj:r=null}={}){return(r||Xe.create(n,a,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Xe.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Xe.create(n,null,"gregory").eras(t)}static features(){return{relative:pp(),localeWeek:hp()}}};function Nf(e,t){let n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=n(t)-n(e);return Math.floor(Ot.fromMillis(a).as("days"))}function $v(e,t,n){let a=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let d=Nf(l,c);return(d-d%7)/7}],["days",Nf]],r={},i=e,s,o;for(let[l,c]of a)n.indexOf(l)>=0&&(s=l,r[l]=c(e,t),o=i.plus(r),o>t?(r[l]--,e=i.plus(r),e>t&&(o=e,r[l]--,e=i.plus(r))):e=o);return[e,r,o,s]}function qv(e,t,n,a){let[r,i,s,o]=$v(e,t,n),l=t-r,c=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(s<t&&(s=r.plus({[o]:1})),s!==r&&(i[o]=(i[o]||0)+l/(s-r)));let d=Ot.fromObject(i,a);return c.length>0?Ot.fromMillis(l,a).shiftTo(...c).plus(d):d}var Uv="missing Intl.DateTimeFormat.formatToParts support";function He(e,t=n=>n){return{regex:e,deser:([n])=>t(Fw(n))}}var Yv="\xA0",Ap=`[ ${Yv}]`,Pp=new RegExp(Ap,"g");function Gv(e){return e.replace(/\./g,"\\.?").replace(Pp,Ap)}function Ef(e){return e.replace(/\./g,"").replace(Pp," ").toLowerCase()}function qn(e,t){return e===null?null:{regex:RegExp(e.map(Gv).join("|")),deser:([n])=>e.findIndex(a=>Ef(n)===Ef(a))+t}}function Af(e,t){return{regex:e,deser:([,n,a])=>Yo(n,a),groups:t}}function No(e){return{regex:e,deser:([t])=>t}}function Kv(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Jv(e,t){let n=$n(t),a=$n(t,"{2}"),r=$n(t,"{3}"),i=$n(t,"{4}"),s=$n(t,"{6}"),o=$n(t,"{1,2}"),l=$n(t,"{1,3}"),c=$n(t,"{1,6}"),d=$n(t,"{1,9}"),m=$n(t,"{2,4}"),f=$n(t,"{4,6}"),h=E=>({regex:RegExp(Kv(E.val)),deser:([q])=>q,literal:!0}),v=(E=>{if(e.literal)return h(E);switch(E.val){case"G":return qn(t.eras("short"),0);case"GG":return qn(t.eras("long"),0);case"y":return He(c);case"yy":return He(m,su);case"yyyy":return He(i);case"yyyyy":return He(f);case"yyyyyy":return He(s);case"M":return He(o);case"MM":return He(a);case"MMM":return qn(t.months("short",!0),1);case"MMMM":return qn(t.months("long",!0),1);case"L":return He(o);case"LL":return He(a);case"LLL":return qn(t.months("short",!1),1);case"LLLL":return qn(t.months("long",!1),1);case"d":return He(o);case"dd":return He(a);case"o":return He(l);case"ooo":return He(r);case"HH":return He(a);case"H":return He(o);case"hh":return He(a);case"h":return He(o);case"mm":return He(a);case"m":return He(o);case"q":return He(o);case"qq":return He(a);case"s":return He(o);case"ss":return He(a);case"S":return He(l);case"SSS":return He(r);case"u":return No(d);case"uu":return No(o);case"uuu":return He(n);case"a":return qn(t.meridiems(),0);case"kkkk":return He(i);case"kk":return He(m,su);case"W":return He(o);case"WW":return He(a);case"E":case"c":return He(n);case"EEE":return qn(t.weekdays("short",!1),1);case"EEEE":return qn(t.weekdays("long",!1),1);case"ccc":return qn(t.weekdays("short",!0),1);case"cccc":return qn(t.weekdays("long",!0),1);case"Z":case"ZZ":return Af(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return Af(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return No(/[a-z_+-/]{1,256}?/i);case" ":return No(/[^\S\n\r]/);default:return h(E)}})(e)||{invalidReason:Uv};return v.token=e,v}var Zv={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function jv(e,t,n){let{type:a,value:r}=e;if(a==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let i=t[a],s=a;a==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let o=Zv[s];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function Xv(e){return[`^${e.map(n=>n.regex).reduce((n,a)=>`${n}(${a.source})`,"")}$`,e]}function Qv(e,t,n){let a=e.match(t);if(a){let r={},i=1;for(let s in n)if(xi(n,s)){let o=n[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(a.slice(i,i+l))),i+=l}return[a,r]}else return[a,{}]}function eC(e){let t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},n=null,a;return ge(e.z)||(n=ya.create(e.z)),ge(e.Z)||(n||(n=new fn(e.Z)),a=e.Z),ge(e.q)||(e.M=(e.q-1)*3+1),ge(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),ge(e.u)||(e.S=mu(e.u)),[Object.keys(e).reduce((i,s)=>{let o=t(s);return o&&(i[o]=e[s]),i},{}),n,a]}var Wc=null;function tC(){return Wc||(Wc=ct.fromMillis(1555555555555)),Wc}function nC(e,t){if(e.literal)return e;let n=un.macroTokenToFormatOpts(e.val),a=zp(n,t);return a==null||a.includes(void 0)?e:a}function Fp(e,t){return Array.prototype.concat(...e.map(n=>nC(n,t)))}var $o=class{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Fp(un.parseFormat(n),t),this.units=this.tokens.map(a=>Jv(a,t)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,r]=Xv(this.units);this.regex=RegExp(a,"i"),this.handlers=r}}explainFromTokens(t){if(this.isValid){let[n,a]=Qv(t,this.regex,this.handlers),[r,i,s]=a?eC(a):[null,null,void 0];if(xi(a,"a")&&xi(a,"H"))throw new Na("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:a,result:r,zone:i,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function _p(e,t,n){return new $o(e,n).explainFromTokens(t)}function aC(e,t,n){let{result:a,zone:r,specificOffset:i,invalidReason:s}=_p(e,t,n);return[a,r,i,s]}function zp(e,t){if(!e)return null;let a=un.create(t,e).dtFormatter(tC()),r=a.formatToParts(),i=a.resolvedOptions();return r.map(s=>jv(s,e,i))}var Hc="Invalid DateTime",Pf=864e13;function Cs(e){return new mn("unsupported zone",`the zone "${e.name}" is not supported`)}function Bc(e){return e.weekData===null&&(e.weekData=Wo(e.c)),e.weekData}function $c(e){return e.localWeekData===null&&(e.localWeekData=Wo(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function cr(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ct({...n,...t,old:n})}function Lp(e,t,n){let a=e-t*60*1e3,r=n.offset(a);if(t===r)return[a,t];a-=(r-t)*60*1e3;let i=n.offset(a);return r===i?[a,r]:[e-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Eo(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Po(e,t,n){return Lp(Uo(e),t,n)}function Ff(e,t){let n=e.o,a=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:a,month:r,day:Math.min(e.c.day,Ho(a,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=Ot.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=Uo(i),[l,c]=Lp(o,n,e.zone);return s!==0&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function hi(e,t,n,a,r,i){let{setZone:s,zone:o}=n;if(e&&Object.keys(e).length!==0||t){let l=t||o,c=ct.fromObject(e,{...n,zone:l,specificOffset:i});return s?c:c.setZone(o)}else return ct.invalid(new mn("unparsable",`the input "${r}" can't be parsed as ${a}`))}function Ao(e,t,n=!0){return e.isValid?un.create(Xe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function qc(e,t,n){let a=e.c.year>9999||e.c.year<0,r="";if(a&&e.c.year>=0&&(r+="+"),r+=kt(e.c.year,a?6:4),n==="year")return r;if(t){if(r+="-",r+=kt(e.c.month),n==="month")return r;r+="-"}else if(r+=kt(e.c.month),n==="month")return r;return r+=kt(e.c.day),r}function _f(e,t,n,a,r,i,s){let o=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=kt(e.c.hour),s==="hour")break;if(t){if(l+=":",l+=kt(e.c.minute),s==="minute")break;o&&(l+=":",l+=kt(e.c.second))}else{if(l+=kt(e.c.minute),s==="minute")break;o&&(l+=kt(e.c.second))}if(s==="second")break;o&&(!a||e.c.millisecond!==0)&&(l+=".",l+=kt(e.c.millisecond,3))}return r&&(e.isOffsetFixed&&e.offset===0&&!i?l+="Z":e.o<0?(l+="-",l+=kt(Math.trunc(-e.o/60)),l+=":",l+=kt(Math.trunc(-e.o%60))):(l+="+",l+=kt(Math.trunc(e.o/60)),l+=":",l+=kt(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}var Vp={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rC={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},iC={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Fo=["year","month","day","hour","minute","second","millisecond"],sC=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],oC=["year","ordinal","hour","minute","second","millisecond"];function _o(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new zo(e);return t}function zf(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return _o(e)}}function lC(e){if(Ss===void 0&&(Ss=st.now()),e.type!=="iana")return e.offset(Ss);let t=e.name,n=ou.get(t);return n===void 0&&(n=e.offset(Ss),ou.set(t,n)),n}function Lf(e,t){let n=Ra(t.zone,st.defaultZone);if(!n.isValid)return ct.invalid(Cs(n));let a=Xe.fromObject(t),r,i;if(ge(e.year))r=st.now();else{for(let l of Fo)ge(e[l])&&(e[l]=Vp[l]);let s=dp(e)||fp(e);if(s)return ct.invalid(s);let o=lC(n);[r,i]=Po(e,o,n)}return new ct({ts:r,zone:n,loc:a,o:i})}function Vf(e,t,n){let a=ge(n.round)?!0:n.round,r=ge(n.rounding)?"trunc":n.rounding,i=(o,l)=>(o=du(o,a||n.calendary?0:2,n.calendary?"round":r),t.loc.clone(n).relFormatter(n).format(o,l)),s=o=>n.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(n.unit)return i(s(n.unit),n.unit);for(let o of n.units){let l=s(o);if(Math.abs(l)>=1)return i(l,o)}return i(e>t?-0:0,n.units[n.units.length-1])}function Wf(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}var Ss,ou=new Map,ct=class e{constructor(t){let n=t.zone||st.defaultZone,a=t.invalid||(Number.isNaN(t.ts)?new mn("invalid input"):null)||(n.isValid?null:Cs(n));this.ts=ge(t.ts)?st.now():t.ts;let r=null,i=null;if(!a)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[r,i]=[t.old.c,t.old.o];else{let o=Ea(t.o)&&!t.old?t.o:n.offset(this.ts);r=Eo(this.ts,o),a=Number.isNaN(r.year)?new mn("invalid input"):null,r=a?null:r,i=a?null:o}this._zone=n,this.loc=t.loc||Xe.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,n]=Wf(arguments),[a,r,i,s,o,l,c]=n;return Lf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static utc(){let[t,n]=Wf(arguments),[a,r,i,s,o,l,c]=n;return t.zone=fn.utcInstance,Lf({year:a,month:r,day:i,hour:s,minute:o,second:l,millisecond:c},t)}static fromJSDate(t,n={}){let a=Ww(t)?t.valueOf():NaN;if(Number.isNaN(a))return e.invalid("invalid input");let r=Ra(n.zone,st.defaultZone);return r.isValid?new e({ts:a,zone:r,loc:Xe.fromObject(n)}):e.invalid(Cs(r))}static fromMillis(t,n={}){if(Ea(t))return t<-Pf||t>Pf?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ra(n.zone,st.defaultZone),loc:Xe.fromObject(n)});throw new Nt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Ea(t))return new e({ts:t*1e3,zone:Ra(n.zone,st.defaultZone),loc:Xe.fromObject(n)});throw new Nt("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};let a=Ra(n.zone,st.defaultZone);if(!a.isValid)return e.invalid(Cs(a));let r=Xe.fromObject(n),i=Bo(t,zf),{minDaysInFirstWeek:s,startOfWeek:o}=Sf(i,r),l=st.now(),c=ge(n.specificOffset)?a.offset(l):n.specificOffset,d=!ge(i.ordinal),m=!ge(i.year),f=!ge(i.month)||!ge(i.day),h=m||f,k=i.weekYear||i.weekNumber;if((h||d)&&k)throw new Na("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&d)throw new Na("Can't mix ordinal dates with month/day");let v=k||i.weekday&&!h,E,q,me=Eo(l,c);v?(E=sC,q=rC,me=Wo(me,s,o)):d?(E=oC,q=iC,me=Vc(me)):(E=Fo,q=Vp);let pe=!1;for(let _ of E){let B=i[_];ge(B)?pe?i[_]=q[_]:i[_]=me[_]:pe=!0}let H=v?zw(i,s,o):d?Lw(i):dp(i),Q=H||fp(i);if(Q)return e.invalid(Q);let W=v?vf(i,s,o):d?Cf(i):i,[de,Oe]=Po(W,c,a),Se=new e({ts:de,zone:a,o:Oe,loc:r});return i.weekday&&h&&t.weekday!==Se.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Se.toISO()}`):Se.isValid?Se:e.invalid(Se.invalid)}static fromISO(t,n={}){let[a,r]=Ov(t);return hi(a,r,n,"ISO 8601",t)}static fromRFC2822(t,n={}){let[a,r]=Rv(t);return hi(a,r,n,"RFC 2822",t)}static fromHTTP(t,n={}){let[a,r]=Nv(t);return hi(a,r,n,"HTTP",n)}static fromFormat(t,n,a={}){if(ge(t)||ge(n))throw new Nt("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:i=null}=a,s=Xe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[o,l,c,d]=aC(s,t,n);return d?e.invalid(d):hi(o,l,a,`format ${n}`,t,c)}static fromString(t,n,a={}){return e.fromFormat(t,n,a)}static fromSQL(t,n={}){let[a,r]=Lv(t);return hi(a,r,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Nt("need to specify a reason the DateTime is invalid");let a=t instanceof mn?t:new mn(t,n);if(st.throwOnInvalid)throw new Uc(a);return new e({invalid:a})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){let a=zp(t,Xe.fromObject(n));return a?a.map(r=>r?r.val:null).join(""):null}static expandFormat(t,n={}){return Fp(un.parseFormat(t),Xe.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Ss=void 0,ou.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Bc(this).weekYear:NaN}get weekNumber(){return this.isValid?Bc(this).weekNumber:NaN}get weekday(){return this.isValid?Bc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?$c(this).weekday:NaN}get localWeekNumber(){return this.isValid?$c(this).weekNumber:NaN}get localWeekYear(){return this.isValid?$c(this).weekYear:NaN}get ordinal(){return this.isValid?Vc(this.c).ordinal:NaN}get monthShort(){return this.isValid?mr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?mr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?mr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?mr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,n=6e4,a=Uo(this.c),r=this.zone.offset(a-t),i=this.zone.offset(a+t),s=this.zone.offset(a-r*n),o=this.zone.offset(a-i*n);if(s===o)return[this];let l=a-s*n,c=a-o*n,d=Eo(l,s),m=Eo(c,o);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[cr(this,{ts:l}),cr(this,{ts:c})]:[this]}get isInLeapYear(){return Ms(this.year)}get daysInMonth(){return Ho(this.year,this.month)}get daysInYear(){return this.isValid?gi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ts(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ts(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:n,numberingSystem:a,calendar:r}=un.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:a,outputCalendar:r}}toUTC(t=0,n={}){return this.setZone(fn.instance(t),n)}toLocal(){return this.setZone(st.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:a=!1}={}){if(t=Ra(t,st.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(n||a){let i=t.offset(this.ts),s=this.toObject();[r]=Po(s,i,t)}return cr(this,{ts:r,zone:t})}else return e.invalid(Cs(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:a}={}){let r=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:a});return cr(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let n=Bo(t,zf),{minDaysInFirstWeek:a,startOfWeek:r}=Sf(n,this.loc),i=!ge(n.weekYear)||!ge(n.weekNumber)||!ge(n.weekday),s=!ge(n.ordinal),o=!ge(n.year),l=!ge(n.month)||!ge(n.day),c=o||l,d=n.weekYear||n.weekNumber;if((c||s)&&d)throw new Na("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Na("Can't mix ordinal dates with month/day");let m;i?m=vf({...Wo(this.c,a,r),...n},a,r):ge(n.ordinal)?(m={...this.toObject(),...n},ge(n.day)&&(m.day=Math.min(Ho(m.year,m.month),m.day))):m=Cf({...Vc(this.c),...n});let[f,h]=Po(m,this.o,this.zone);return cr(this,{ts:f,o:h})}plus(t){if(!this.isValid)return this;let n=Ot.fromDurationLike(t);return cr(this,Ff(this,n))}minus(t){if(!this.isValid)return this;let n=Ot.fromDurationLike(t).negate();return cr(this,Ff(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;let a={},r=Ot.normalizeUnit(t);switch(r){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(r==="weeks")if(n){let i=this.loc.getStartOfWeek(),{weekday:s}=this;s<i&&(a.weekNumber=this.weekNumber-1),a.weekday=i}else a.weekday=1;if(r==="quarters"){let i=Math.ceil(this.month/3);a.month=(i-1)*3+1}return this.set(a)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?un.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Hc}toLocaleString(t=Lo,n={}){return this.isValid?un.create(this.loc.clone(n),t).formatDateTime(this):Hc}toLocaleParts(t={}){return this.isValid?un.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:a=!1,includeOffset:r=!0,extendedZone:i=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=_o(s);let o=t==="extended",l=qc(this,o,s);return Fo.indexOf(s)>=3&&(l+="T"),l+=_f(this,o,n,a,r,i,s),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?qc(this,t==="extended",_o(n)):null}toISOWeekDate(){return Ao(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:a=!0,includePrefix:r=!1,extendedZone:i=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=_o(o),(r&&Fo.indexOf(o)>=3?"T":"")+_f(this,s==="extended",n,t,a,i,o)):null}toRFC2822(){return Ao(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ao(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?qc(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:a=!0}={}){let r="HH:mm:ss.SSS";return(n||t)&&(a&&(r+=" "),n?r+="z":t&&(r+="ZZ")),Ao(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Hc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",a={}){if(!this.isValid||!t.isValid)return Ot.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...a},i=Hw(n).map(Ot.normalizeUnit),s=t.valueOf()>this.valueOf(),o=s?this:t,l=s?t:this,c=qv(o,l,i,r);return s?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(e.now(),t,n)}until(t){return this.isValid?dr.fromDateTimes(this,t):this}hasSame(t,n,a){if(!this.isValid)return!1;let r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,a)<=r&&r<=i.endOf(n,a)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let n=t.base||e.fromObject({},{zone:this.zone}),a=t.padding?this<n?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(r=t.unit,i=void 0),Vf(n,this.plus(a),{...t,numeric:"always",units:r,unit:i})}toRelativeCalendar(t={}){return this.isValid?Vf(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new Nt("min requires all arguments be DateTimes");return kf(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new Nt("max requires all arguments be DateTimes");return kf(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,a={}){let{locale:r=null,numberingSystem:i=null}=a,s=Xe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return _p(s,t,n)}static fromStringExplain(t,n,a={}){return e.fromFormatExplain(t,n,a)}static buildFormatParser(t,n={}){let{locale:a=null,numberingSystem:r=null}=n,i=Xe.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0});return new $o(i,t)}static fromFormatParser(t,n,a={}){if(ge(t)||ge(n))throw new Nt("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:i=null}=a,s=Xe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!s.equals(n.locale))throw new Nt(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${n.locale}`);let{result:o,zone:l,specificOffset:c,invalidReason:d}=n.explainFromTokens(t);return d?e.invalid(d):hi(o,l,a,`format ${n.format}`,t,c)}static get DATE_SHORT(){return Lo}static get DATE_MED(){return Hf}static get DATE_MED_WITH_WEEKDAY(){return xw}static get DATE_FULL(){return Bf}static get DATE_HUGE(){return $f}static get TIME_SIMPLE(){return qf}static get TIME_WITH_SECONDS(){return Uf}static get TIME_WITH_SHORT_OFFSET(){return Yf}static get TIME_WITH_LONG_OFFSET(){return Gf}static get TIME_24_SIMPLE(){return Kf}static get TIME_24_WITH_SECONDS(){return Jf}static get TIME_24_WITH_SHORT_OFFSET(){return Zf}static get TIME_24_WITH_LONG_OFFSET(){return jf}static get DATETIME_SHORT(){return Xf}static get DATETIME_SHORT_WITH_SECONDS(){return Qf}static get DATETIME_MED(){return ep}static get DATETIME_MED_WITH_SECONDS(){return tp}static get DATETIME_MED_WITH_WEEKDAY(){return bw}static get DATETIME_FULL(){return np}static get DATETIME_FULL_WITH_SECONDS(){return ap}static get DATETIME_HUGE(){return rp}static get DATETIME_HUGE_WITH_SECONDS(){return ip}};function ws(e){if(ct.isDateTime(e))return e;if(e&&e.valueOf&&Ea(e.valueOf()))return ct.fromJSDate(e);if(e&&typeof e=="object")return ct.fromObject(e);throw new Nt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var cC="3.7.2";pn.DateTime=ct;pn.Duration=Ot;pn.FixedOffsetZone=fn;pn.IANAZone=ya;pn.Info=mr;pn.Interval=dr;pn.InvalidZone=Vo;pn.Settings=st;pn.SystemZone=Is;pn.VERSION=cC;pn.Zone=Aa});var Jo=O(Zt=>{"use strict";u();Object.defineProperty(Zt,"__esModule",{value:!0});Zt.CronDate=Zt.DAYS_IN_MONTH=Zt.DateMathOp=Zt.TimeUnit=void 0;var fr=Wp(),$t;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.Day="Day",e.Month="Month",e.Year="Year"})($t||(Zt.TimeUnit=$t={}));var Rs;(function(e){e.Add="Add",e.Subtract="Subtract"})(Rs||(Zt.DateMathOp=Rs={}));Zt.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);var G,Fa,_a,pr,Ns,gu,sa,Pa,Si=class Si{constructor(t,n){Re(this,sa);Re(this,G);Re(this,Fa,null);Re(this,_a,null);Re(this,pr,null);let a={zone:n};if(t?t instanceof Si?(ae(this,G,M(t,G)),ae(this,Fa,M(t,Fa)),ae(this,_a,M(t,_a)),ae(this,pr,M(t,pr))):t instanceof Date?ae(this,G,fr.DateTime.fromJSDate(t,a)):typeof t=="number"?ae(this,G,fr.DateTime.fromMillis(t,a)):(ae(this,G,fr.DateTime.fromISO(t,a)),M(this,G).isValid||ae(this,G,fr.DateTime.fromRFC2822(t,a)),M(this,G).isValid||ae(this,G,fr.DateTime.fromSQL(t,a)),M(this,G).isValid||ae(this,G,fr.DateTime.fromFormat(t,"EEE, d MMM yyyy HH:mm:ss",a))):ae(this,G,fr.DateTime.local()),!M(this,G).isValid)throw new Error(`CronDate: unhandled timestamp: ${t}`);n&&n!==M(this,G).zoneName&&ae(this,G,M(this,G).setZone(n))}get dstStart(){return M(this,Fa)}get dstStartLandingHour(){return M(this,_a)}clearDstStart(){ae(this,Fa,null),ae(this,_a,null)}get dstEnd(){return M(this,pr)}set dstEnd(t){ae(this,pr,t)}addYear(){ae(this,G,M(this,G).plus({years:1}))}addMonth(){ae(this,G,M(this,G).plus({months:1}).startOf("month"))}addDay(){ae(this,G,M(this,G).plus({days:1}).startOf("day"))}addHour(){ae(this,G,M(this,G).plus({hours:1}).startOf("hour"))}addMinute(){ae(this,G,M(this,G).plus({minutes:1}).startOf("minute"))}addSecond(){ae(this,G,M(this,G).plus({seconds:1}))}subtractYear(){ae(this,G,M(this,G).minus({years:1}))}subtractMonth(){ae(this,G,M(this,G).minus({months:1}).endOf("month").startOf("second"))}subtractDay(){ae(this,G,M(this,G).minus({days:1}).endOf("day").startOf("second"))}subtractHour(){ae(this,G,M(this,G).minus({hours:1}).endOf("hour").startOf("second"))}subtractMinute(){ae(this,G,M(this,G).minus({minutes:1}).endOf("minute").startOf("second"))}subtractSecond(){ae(this,G,M(this,G).minus({seconds:1}))}addUnit(t){switch(t){case $t.Year:return this.addYear();case $t.Month:return this.addMonth();case $t.Day:return this.addDay();case $t.Hour:return this.addHour();case $t.Minute:return this.addMinute();case $t.Second:return this.addSecond()}}subtractUnit(t){switch(t){case $t.Year:return this.subtractYear();case $t.Month:return this.subtractMonth();case $t.Day:return this.subtractDay();case $t.Hour:return this.subtractHour();case $t.Minute:return this.subtractMinute();case $t.Second:return this.subtractSecond()}}invokeDateOperation(t,n){if(t===Rs.Add){this.addUnit(n);return}if(t===Rs.Subtract){this.subtractUnit(n);return}throw new Error(`Invalid verb: ${t}`)}getDate(){return M(this,G).day}getFullYear(){return M(this,G).year}getDay(){let t=M(this,G).weekday;return t===7?0:t}getMonth(){return M(this,G).month-1}getHours(){return M(this,G).hour}getMinutes(){return M(this,G).minute}getSeconds(){return M(this,G).second}getMilliseconds(){return M(this,G).millisecond}getUTCOffset(){return M(this,G).offset}setStartOfDay(){ae(this,G,M(this,G).startOf("day"))}setEndOfDay(){ae(this,G,M(this,G).endOf("day"))}getTime(){return M(this,G).valueOf()}getUTCDate(){return K(this,sa,Pa).call(this).day}getUTCFullYear(){return K(this,sa,Pa).call(this).year}getUTCDay(){let t=K(this,sa,Pa).call(this).weekday;return t===7?0:t}getUTCMonth(){return K(this,sa,Pa).call(this).month-1}getUTCHours(){return K(this,sa,Pa).call(this).hour}getUTCMinutes(){return K(this,sa,Pa).call(this).minute}getUTCSeconds(){return K(this,sa,Pa).call(this).second}toISOString(){return M(this,G).toUTC().toISO()}toJSON(){return M(this,G).toJSON()}setDate(t){ae(this,G,M(this,G).set({day:t}))}setFullYear(t){ae(this,G,M(this,G).set({year:t}))}setDay(t){ae(this,G,M(this,G).set({weekday:t}))}setMonth(t){ae(this,G,M(this,G).set({month:t+1}))}setHours(t){ae(this,G,M(this,G).set({hour:t}))}setMinutes(t){ae(this,G,M(this,G).set({minute:t}))}setSeconds(t){ae(this,G,M(this,G).set({second:t}))}setMilliseconds(t){ae(this,G,M(this,G).set({millisecond:t}))}toString(){return this.toDate().toString()}toDate(){return M(this,G).toJSDate()}isLastDayOfMonth(){var a;let{day:t,month:n}=M(this,G);if(n===2){let r=K(a=Si,Ns,gu).call(a,M(this,G).year);return t===Zt.DAYS_IN_MONTH[n-1]-(r?0:1)}return t===Zt.DAYS_IN_MONTH[n-1]}isLastWeekdayOfMonth(){var r;let{day:t,month:n}=M(this,G),a;return n===2?a=Zt.DAYS_IN_MONTH[n-1]-(K(r=Si,Ns,gu).call(r,M(this,G).year)?0:1):a=Zt.DAYS_IN_MONTH[n-1],t>a-7}applyDateOperation(t,n,a){if(n===$t.Month||n===$t.Day){this.invokeDateOperation(t,n);return}let r=this.getHours(),i=this.getUTCOffset();this.invokeDateOperation(t,n);let s=this.getHours(),o=(s-r+24)%24;t===Rs.Add&&this.getUTCOffset()>i&&o>=2?a!==24&&(ae(this,Fa,(r+1)%24),ae(this,_a,s)):o===0&&this.getMinutes()===0&&this.getSeconds()===0&&a!==24&&(this.dstEnd=s)}};G=new WeakMap,Fa=new WeakMap,_a=new WeakMap,pr=new WeakMap,Ns=new WeakSet,gu=function(t){return t%4===0&&t%100!==0||t%400===0},sa=new WeakSet,Pa=function(){return M(this,G).toUTC()},Re(Si,Ns);var Ko=Si;Zt.CronDate=Ko;Zt.default=Ko});var xu=O(Zo=>{"use strict";u();Object.defineProperty(Zo,"__esModule",{value:!0});Zo.CronMonth=void 0;var uC=Jo(),mC=Da(),dC=1,fC=12,pC=Object.freeze([]),yu=class extends mC.CronField{static get min(){return dC}static get max(){return fC}static get chars(){return pC}static get daysInMonth(){return uC.DAYS_IN_MONTH}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};Zo.CronMonth=yu});var Hp=O(jo=>{"use strict";u();Object.defineProperty(jo,"__esModule",{value:!0});jo.CronDayOfMonth=void 0;var hC=Da(),gC=xu(),yC=1,xC=31,bC=Object.freeze(["L"]),bu=class e extends hC.CronField{static fromMonth(t,n,a){if(t.length!==1)return new e(n,a);let r=gC.CronMonth.daysInMonth[t[0]-1],i=n.filter(s=>typeof s!="number"||s<=r);return new e(i.length>0?i:n,a)}static get min(){return yC}static get max(){return xC}static get chars(){return bC}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};jo.CronDayOfMonth=bu});var Bp=O(Xo=>{"use strict";u();Object.defineProperty(Xo,"__esModule",{value:!0});Xo.CronDayOfWeek=void 0;var wC=Da(),vC=0,CC=7,SC=Object.freeze(["L"]),wu=class extends wC.CronField{static get min(){return vC}static get max(){return CC}static get chars(){return SC}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(t,n){if(super(t,n),this.validate(),this.values.some(a=>a==="L"))throw new Error(`${this.constructor.name} Validation error, unexpected standalone L`)}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};Xo.CronDayOfWeek=wu});var $p=O(Qo=>{"use strict";u();Object.defineProperty(Qo,"__esModule",{value:!0});Qo.CronHour=void 0;var kC=Da(),IC=0,TC=23,MC=Object.freeze([]),vu=class extends kC.CronField{static get min(){return IC}static get max(){return TC}static get chars(){return MC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};Qo.CronHour=vu});var qp=O(el=>{"use strict";u();Object.defineProperty(el,"__esModule",{value:!0});el.CronMinute=void 0;var DC=Da(),OC=0,RC=59,NC=Object.freeze([]),Cu=class extends DC.CronField{static get min(){return OC}static get max(){return RC}static get chars(){return NC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};el.CronMinute=Cu});var Up=O(tl=>{"use strict";u();Object.defineProperty(tl,"__esModule",{value:!0});tl.CronSecond=void 0;var EC=Da(),AC=0,PC=59,FC=Object.freeze([]),Su=class extends EC.CronField{static get min(){return AC}static get max(){return PC}static get chars(){return FC}constructor(t,n){super(t,n),this.validate()}get values(){return super.values}};tl.CronSecond=Su});var nl=O(Qt=>{"use strict";u();var _C=Qt&&Qt.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),za=Qt&&Qt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_C(t,e,n)};Object.defineProperty(Qt,"__esModule",{value:!0});za(cf(),Qt);za(Hp(),Qt);za(Bp(),Qt);za(Da(),Qt);za($p(),Qt);za(qp(),Qt);za(xu(),Qt);za(Up(),Qt)});var Iu=O(al=>{"use strict";u();Object.defineProperty(al,"__esModule",{value:!0});al.CronFieldCollection=void 0;var en=nl(),gr,yr,xr,br,xa,La,ki,Yp,Gp,hr=class hr{constructor({second:t,minute:n,hour:a,dayOfMonth:r,month:i,dayOfWeek:s}){Re(this,gr);Re(this,yr);Re(this,xr);Re(this,br);Re(this,xa);Re(this,La);if(!t)throw new Error("Validation error, Field second is missing");if(!n)throw new Error("Validation error, Field minute is missing");if(!a)throw new Error("Validation error, Field hour is missing");if(!r)throw new Error("Validation error, Field dayOfMonth is missing");if(!i)throw new Error("Validation error, Field month is missing");if(!s)throw new Error("Validation error, Field dayOfWeek is missing");if(i.values.length===1&&!r.hasLastChar&&s.isWildcard&&!(parseInt(r.values[0],10)<=en.CronMonth.daysInMonth[i.values[0]-1]))throw new Error("Invalid explicit day of month definition");ae(this,gr,t),ae(this,yr,n),ae(this,xr,a),ae(this,xa,i),ae(this,La,s),ae(this,br,r)}static from(t,n){return new hr({second:this.resolveField(en.CronSecond,t.second,n.second),minute:this.resolveField(en.CronMinute,t.minute,n.minute),hour:this.resolveField(en.CronHour,t.hour,n.hour),dayOfMonth:this.resolveField(en.CronDayOfMonth,t.dayOfMonth,n.dayOfMonth),month:this.resolveField(en.CronMonth,t.month,n.month),dayOfWeek:this.resolveField(en.CronDayOfWeek,t.dayOfWeek,n.dayOfWeek)})}static resolveField(t,n,a){return a?a instanceof en.CronField?a:new t(a):n}get second(){return M(this,gr)}get minute(){return M(this,yr)}get hour(){return M(this,xr)}get dayOfMonth(){return M(this,br)}get month(){return M(this,xa)}get dayOfWeek(){return M(this,La)}static compactField(t){if(t.length===0)return[];let n=[],a;return t.forEach((r,i,s)=>{if(a===void 0){a={start:r,count:1};return}let o=s[i-1]||a.start,l=s[i+1];if(r==="L"||r==="W"){n.push(a),n.push({start:r,count:1}),a=void 0;return}if(a.step===void 0&&l!==void 0){let c=r-o,d=l-r;if(c<=d){a={...a,count:2,end:r,step:c};return}a.step=1}r-(a.end??0)===a.step?(a.count++,a.end=r):(a.count===1?n.push({start:a.start,count:1}):a.count===2?(n.push({start:a.start,count:1}),n.push({start:a.end??o,count:1})):n.push(a),a={start:r,count:1})}),a&&n.push(a),n}stringifyField(t){var i;let n=t.max,a=t.values;if(t instanceof en.CronDayOfWeek){n=6;let s=M(this,La).values;a=s[s.length-1]===7?s.slice(0,-1):s}t instanceof en.CronDayOfMonth&&(n=M(this,xa).values.length===1?en.CronMonth.daysInMonth[M(this,xa).values[0]-1]:t.max);let r=hr.compactField(a);if(r.length===1){let s=K(i=hr,ki,Yp).call(i,t,r[0],n);if(s)return s}return r.map(s=>{var l;let o=s.count===1?s.start.toString():K(l=hr,ki,Gp).call(l,s);return t instanceof en.CronDayOfWeek&&t.nthDay>0?`${o}#${t.nthDay}`:o}).join(",")}stringify(t=!1){let n=[];return t&&n.push(this.stringifyField(M(this,gr))),n.push(this.stringifyField(M(this,yr)),this.stringifyField(M(this,xr)),this.stringifyField(M(this,br)),this.stringifyField(M(this,xa)),this.stringifyField(M(this,La))),n.join(" ")}serialize(){return{second:M(this,gr).serialize(),minute:M(this,yr).serialize(),hour:M(this,xr).serialize(),dayOfMonth:M(this,br).serialize(),month:M(this,xa).serialize(),dayOfWeek:M(this,La).serialize()}}};gr=new WeakMap,yr=new WeakMap,xr=new WeakMap,br=new WeakMap,xa=new WeakMap,La=new WeakMap,ki=new WeakSet,Yp=function(t,n,a){let r=n.step;return r?r===1&&n.start===t.min&&n.end&&n.end>=a?(t instanceof en.CronDayOfMonth||t instanceof en.CronDayOfWeek)&&!t.isWildcard?null:t.hasQuestionMarkChar?"?":"*":r!==1&&n.start===t.min&&n.end&&n.end>=a-r+1?`*/${r}`:null:null},Gp=function(t){let n=t.step;if(n===1)return`${t.start}-${t.end}`;let a=t.start===0?t.count-1:t.count;if(!n)throw new Error("Unexpected range step");if(!t.end)throw new Error("Unexpected range end");if(n*a>t.end){let r=(s,o)=>{if(typeof t.start!="number")throw new Error("Unexpected range start");return o%n===0?t.start+o:null};if(typeof t.start!="number")throw new Error("Unexpected range start");let i={length:t.end-t.start+1};return Array.from(i,r).filter(s=>s!==null).join(",")}return`${t.start}-${t.end}/${n}`},Re(hr,ki);var ku=hr;al.CronFieldCollection=ku});var Mu=O(In=>{"use strict";u();Object.defineProperty(In,"__esModule",{value:!0});In.CronExpression=In.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;var yt=Jo();In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range";In.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";var Kp=1e4,Ti,oa,Yn,la,ca,_e,Es,Mi,tn,Va,Ge,wr,Jp,Zp,jp,Xp,Qp,Tu,eh,th,Ii,hn=class hn{constructor(t,n){Re(this,Ge);Re(this,Ti);Re(this,oa);Re(this,Yn);Re(this,la);Re(this,ca);Re(this,_e);Re(this,Es,null);Re(this,Mi,!1);ae(this,Ti,n),ae(this,oa,n.tz),ae(this,la,n.startDate?new yt.CronDate(n.startDate,M(this,oa)):null),ae(this,ca,n.endDate?new yt.CronDate(n.endDate,M(this,oa)):null);let a=n.currentDate??n.startDate;if(a){let r=new yt.CronDate(a,M(this,oa));M(this,la)&&r.getTime()<M(this,la).getTime()?a=M(this,la):M(this,ca)&&r.getTime()>M(this,ca).getTime()&&(a=M(this,ca))}ae(this,Yn,new yt.CronDate(a,M(this,oa))),ae(this,_e,t)}get fields(){return M(this,_e)}static fieldsToExpression(t,n){return new hn(t,n||{})}next(){return K(this,Ge,Ii).call(this)}prev(){return K(this,Ge,Ii).call(this,!0)}hasNext(){let t=M(this,Yn);try{return K(this,Ge,Ii).call(this),!0}catch{return!1}finally{ae(this,Yn,t)}}hasPrev(){let t=M(this,Yn);try{return K(this,Ge,Ii).call(this,!0),!0}catch{return!1}finally{ae(this,Yn,t)}}take(t){let n=[];if(t>=0)for(let a=0;a<t;a++)try{n.push(this.next())}catch{return n}else for(let a=0;a>t;a--)try{n.push(this.prev())}catch{return n}return n}reset(t){ae(this,Yn,new yt.CronDate(t||M(this,Ti).currentDate,M(this,oa)))}stringify(t=!1){return M(this,_e).stringify(t)}includesDate(t){let{second:n,minute:a,hour:r,month:i}=M(this,_e),s=new yt.CronDate(t,M(this,oa));return!(!n.values.includes(s.getSeconds())||!a.values.includes(s.getMinutes())||!r.values.includes(s.getHours())||!i.values.includes(s.getMonth()+1)||!K(this,Ge,Tu).call(this,s))}toString(){return M(this,Ti).expression||this.stringify(!0)}[Symbol.iterator](){return{next:()=>{try{return{value:K(this,Ge,Ii).call(this),done:!1}}catch{return{value:void 0,done:!0}}}}}};Ti=new WeakMap,oa=new WeakMap,Yn=new WeakMap,la=new WeakMap,ca=new WeakMap,_e=new WeakMap,Es=new WeakMap,Mi=new WeakMap,tn=new WeakSet,Va=function(t,n){return n.some(a=>a===t)},Ge=new WeakSet,wr=function(t,n){return t[n?t.length-1:0]},Jp=function(t){let n=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(M(this,Es)===n)return M(this,Mi);let a=new yt.CronDate(t);a.setStartOfDay();let r=new yt.CronDate(t);return r.setEndOfDay(),ae(this,Es,n),ae(this,Mi,a.getUTCOffset()!==r.getUTCOffset()),M(this,Mi)},Zp=function(t,n,a){let r=M(this,_e).second.values,i=t.getSeconds(),s=M(this,_e).second.findNearestValue(i,a);if(s!==null){t.setSeconds(s);return}t.applyDateOperation(n,yt.TimeUnit.Minute,M(this,_e).hour.values.length),t.setSeconds(K(this,Ge,wr).call(this,r,a))},jp=function(t,n,a){let r=M(this,_e).minute.values,i=M(this,_e).second.values,s=t.getMinutes(),o=M(this,_e).minute.findNearestValue(s,a);if(o!==null){t.setMinutes(o),t.setSeconds(K(this,Ge,wr).call(this,i,a));return}t.applyDateOperation(n,yt.TimeUnit.Hour,M(this,_e).hour.values.length),t.setMinutes(K(this,Ge,wr).call(this,r,a)),t.setSeconds(K(this,Ge,wr).call(this,i,a))},Xp=function(t,n){if(!n.isLastWeekdayOfMonth())return!1;let a=n.getDay();return t.some(r=>a===parseInt(r.toString().charAt(0),10)%7)},Qp=function(t,n){return t<=0||Math.ceil(n.getDate()/7)===t},Tu=function(t){var c,d,m,f;let n=M(this,_e).dayOfMonth.isWildcard,a=!n,r=M(this,_e).dayOfWeek.isWildcard,i=!r,s=K(c=hn,tn,Va).call(c,t.getDate(),M(this,_e).dayOfMonth.values)||M(this,_e).dayOfMonth.hasLastChar&&t.isLastDayOfMonth(),o=M(this,_e).dayOfWeek.nthDay,l=K(d=hn,tn,Va).call(d,t.getDay(),M(this,_e).dayOfWeek.values)&&K(m=hn,tn,Qp).call(m,o,t)||M(this,_e).dayOfWeek.hasLastChar&&K(f=hn,tn,Xp).call(f,M(this,_e).dayOfWeek.values,t);return!!(a&&i&&(s||l)||s&&!i||n&&!r&&l)},eh=function(t,n,a){var d,m;let r=M(this,_e).hour.values,i=r,s=t.getHours(),o=K(d=hn,tn,Va).call(d,s,r),l=t.dstEnd===s;if(t.dstStart!==null&&t.dstStartLandingHour===s){for(let f=t.dstStart;f!==s;f=(f+1)%24)if(K(m=hn,tn,Va).call(m,f,r))return!0}if(l&&!a)return t.dstEnd=null,t.applyDateOperation(yt.DateMathOp.Add,yt.TimeUnit.Hour,i.length),!1;if(o)return!0;t.clearDstStart();let c=M(this,_e).hour.findNearestValue(s,a);if(c===null)return t.applyDateOperation(n,yt.TimeUnit.Day,i.length),!1;if(K(this,Ge,Jp).call(this,t)){let f=a?s-c:c-s;for(let h=0;h<f&&(t.applyDateOperation(n,yt.TimeUnit.Hour,i.length),!(!a&&t.getHours()>=c||a&&t.getHours()<=c));h++);}else t.setHours(c);return t.setMinutes(K(this,Ge,wr).call(this,M(this,_e).minute.values,a)),t.setSeconds(K(this,Ge,wr).call(this,M(this,_e).second.values,a)),!1},th=function(t){if(!M(this,la)&&!M(this,ca))return;let n=t.getTime();if(M(this,la)&&n<M(this,la).getTime())throw new Error(In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(M(this,ca)&&n>M(this,ca).getTime())throw new Error(In.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)},Ii=function(t=!1){var s,o,l;let n=t?yt.DateMathOp.Subtract:yt.DateMathOp.Add,a=new yt.CronDate(M(this,Yn)),r=a.getTime();a.getMilliseconds()>0&&(a.setMilliseconds(0),t||a.applyDateOperation(yt.DateMathOp.Add,yt.TimeUnit.Second,M(this,_e).hour.values.length));let i=0;for(;++i<Kp;){if(K(this,Ge,th).call(this,a),!K(this,Ge,Tu).call(this,a)){a.applyDateOperation(n,yt.TimeUnit.Day,M(this,_e).hour.values.length);continue}if(!K(s=hn,tn,Va).call(s,a.getMonth()+1,M(this,_e).month.values)){a.applyDateOperation(n,yt.TimeUnit.Month,M(this,_e).hour.values.length);continue}if(K(this,Ge,eh).call(this,a,n,t)){if(!K(o=hn,tn,Va).call(o,a.getMinutes(),M(this,_e).minute.values)){K(this,Ge,jp).call(this,a,n,t);continue}if(!K(l=hn,tn,Va).call(l,a.getSeconds(),M(this,_e).second.values)){K(this,Ge,Zp).call(this,a,n,t);continue}if(r===a.getTime()){a.applyDateOperation(n,yt.TimeUnit.Second,M(this,_e).hour.values.length);continue}break}}if(i>=Kp)throw new Error(In.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return ae(this,Yn,a),a},Re(hn,tn);var rl=hn;In.CronExpression=rl;In.default=rl});var nh=O(Du=>{"use strict";u();Object.defineProperty(Du,"__esModule",{value:!0});Du.seededRandom=VC;function zC(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return()=>t>>>0}function LC(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function VC(e){let t=e?zC(e)():Math.floor(Math.random()*1e10);return LC(t)}});var ll=O(Dn=>{"use strict";u();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.CronExpressionParser=Dn.DayOfWeek=Dn.Months=Dn.CronUnit=Dn.PredefinedExpressions=void 0;var WC=Iu(),HC=Mu(),BC=nh(),Tn=nl(),Ou;(function(e){e["@yearly"]="0 0 0 1 1 *",e["@annually"]="0 0 0 1 1 *",e["@monthly"]="0 0 0 1 * *",e["@weekly"]="0 0 0 * * 0",e["@daily"]="0 0 0 * * *",e["@hourly"]="0 0 * * * *",e["@minutely"]="0 * * * * *",e["@secondly"]="* * * * * *",e["@weekdays"]="0 0 0 * * 1-5",e["@weekends"]="0 0 0 * * 0,6"})(Ou||(Dn.PredefinedExpressions=Ou={}));var Mn;(function(e){e.Second="Second",e.Minute="Minute",e.Hour="Hour",e.DayOfMonth="DayOfMonth",e.Month="Month",e.DayOfWeek="DayOfWeek"})(Mn||(Dn.CronUnit=Mn={}));var Ru;(function(e){e[e.jan=1]="jan",e[e.feb=2]="feb",e[e.mar=3]="mar",e[e.apr=4]="apr",e[e.may=5]="may",e[e.jun=6]="jun",e[e.jul=7]="jul",e[e.aug=8]="aug",e[e.sep=9]="sep",e[e.oct=10]="oct",e[e.nov=11]="nov",e[e.dec=12]="dec"})(Ru||(Dn.Months=Ru={}));var Nu;(function(e){e[e.sun=0]="sun",e[e.mon=1]="mon",e[e.tue=2]="tue",e[e.wed=3]="wed",e[e.thu=4]="thu",e[e.fri=5]="fri",e[e.sat=6]="sat"})(Nu||(Dn.DayOfWeek=Nu={}));var ah=256,rh=1024,ue,ih,vr,sh,oh,il,sl,Au,Pu,ol,lh,ch,uh,mh,dh,Fu,fh,ph,Ke=class Ke{static parse(t,n={}){var E,q,me,pe,H,Q,W,de;let{strict:a=!1,hashSeed:r}=n,i=(0,BC.seededRandom)(r);t=Ou[t]||t;let s=K(E=Ke,ue,ih).call(E,t,a);if(!(s.dayOfMonth==="*"||s.dayOfWeek==="*"||!a))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");let o=K(q=Ke,ue,vr).call(q,Mn.Second,s.second,Tn.CronSecond.constraints,i,a),l=K(me=Ke,ue,vr).call(me,Mn.Minute,s.minute,Tn.CronMinute.constraints,i,a),c=K(pe=Ke,ue,vr).call(pe,Mn.Hour,s.hour,Tn.CronHour.constraints,i,a),d=K(H=Ke,ue,vr).call(H,Mn.Month,s.month,Tn.CronMonth.constraints,i,a),m=K(Q=Ke,ue,vr).call(Q,Mn.DayOfMonth,s.dayOfMonth,Tn.CronDayOfMonth.constraints,i,a),{dayOfWeek:f,nthDayOfWeek:h}=K(W=Ke,ue,fh).call(W,s.dayOfWeek),k=K(de=Ke,ue,vr).call(de,Mn.DayOfWeek,f,Tn.CronDayOfWeek.constraints,i,a),v=new WC.CronFieldCollection({second:new Tn.CronSecond(o,{rawValue:s.second}),minute:new Tn.CronMinute(l,{rawValue:s.minute}),hour:new Tn.CronHour(c,{rawValue:s.hour}),dayOfMonth:Tn.CronDayOfMonth.fromMonth(d,m,{rawValue:s.dayOfMonth}),month:new Tn.CronMonth(d,{rawValue:s.month}),dayOfWeek:new Tn.CronDayOfWeek(k,{rawValue:s.dayOfWeek,nthDayOfWeek:h})});return new HC.CronExpression(v,{...n,expression:t})}};ue=new WeakSet,ih=function(t,n){if(n&&!t.length)throw new Error("Invalid cron expression");if(t=t||"0 * * * * *",t.length>rh)throw new Error(`Invalid cron expression, too long, expected at most ${rh} characters`);let a=t.trim().split(/\s+/);if(n&&a.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(a.length>6)throw new Error("Invalid cron expression, too many fields");let r=["0","*","*","*","*","*"];a.length<r.length&&a.unshift(...r.slice(0,r.length-a.length));let[i,s,o,l,c,d]=a;return{second:i,minute:s,hour:o,dayOfMonth:l,month:c,dayOfWeek:d}},vr=function(t,n,a,r,i){if((t===Mn.Month||t===Mn.DayOfWeek)&&(n=n.replace(/[a-z]{3}/gi,s=>{s=s.toLowerCase();let o=Ru[s]||Nu[s];if(o===void 0)throw new Error(`Validation error, cannot resolve alias "${s}"`);return o.toString()})),!a.validChars.test(n))throw new Error(`Invalid characters, got value: ${n}`);return n=K(this,ue,sh).call(this,n,a),n=K(this,ue,oh).call(this,n,a,r,t,i),K(this,ue,lh).call(this,t,n,a)},sh=function(t,n){return t.replace(/[*?]/g,n.min+"-"+n.max)},oh=function(t,n,a,r,i){let s=a(),o=0;return t.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(l,c,d,m)=>{var f,h,k,v,E,q,me,pe;if(c&&d&&m){let H=parseInt(c,10),Q=parseInt(d,10),W=parseInt(m,10);if(W<=0)throw new Error(`Invalid step: ${W}, must be positive`);let de=K(f=Ke,ue,Au).call(f,H,Q,n,r,i);return o+=Math.ceil((de.max-de.min+1)/W),K(h=Ke,ue,ol).call(h,r,o),K(k=Ke,ue,Pu).call(k,s,de.min,de.max,W,r,i)}else if(c&&d){let H=parseInt(c,10),Q=parseInt(d,10),W=K(v=Ke,ue,Au).call(v,H,Q,n,r,i);return String(K(E=Ke,ue,il).call(E,s,W.min,W.max))}else if(m){let H=parseInt(m,10);if(H<=0)throw new Error(`Invalid step: ${H}, must be positive`);return o+=Math.ceil((n.max-n.min+1)/H),K(q=Ke,ue,ol).call(q,r,o),K(me=Ke,ue,Pu).call(me,s,n.min,n.max,H,r,i)}else return String(K(pe=Ke,ue,il).call(pe,s,n.min,n.max))})},il=function(t,n,a){return Math.floor(t*(a-n+1))+n},sl=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Au=function(t,n,a,r,i){var l,c;if(t>n)throw new Error(`Invalid range: ${t}-${n}, min > max`);if(i&&(t<a.min||n>a.max))throw new Error(`Invalid range: ${t}-${n}, outside the ${a.min}-${a.max} range of the ${K(l=Ke,ue,sl).call(l,r)} field`);let s=Math.max(t,a.min),o=Math.min(n,a.max);if(s>o)throw new Error(`Invalid range: ${t}-${n}, no usable value in the ${K(c=Ke,ue,sl).call(c,r)} field`);return{min:s,max:o}},Pu=function(t,n,a,r,i,s){var c,d;if(s&&r>a-n+1)throw new Error(`Invalid step: ${r}, wider than the ${n}-${a} range of the ${K(c=Ke,ue,sl).call(c,i)} field`);let o=Math.floor(t*r),l=[];for(let m=Math.floor(n/r)*r+o;m<=a;m+=r)m>=n&&l.push(m);return l.length===0?String(K(d=Ke,ue,il).call(d,t,n,a)):l.join(",")},ol=function(t,n){if(n>ah)throw new Error(`Constraint error, too many values in ${t} field, expected at most ${ah}`)},lh=function(t,n,a){var o,l;let r=[];function i(c,d){var m;if(Array.isArray(c))r.push(...c);else if(K(m=Ke,ue,ph).call(m,d,c))r.push(c);else{let f=parseInt(c.toString(),10);if(!(f>=d.min&&f<=d.max))throw new Error(`Constraint error, got value ${c} expected range ${d.min}-${d.max}`);r.push(t===Mn.DayOfWeek?f%7:c)}}let s=n.split(",");for(let c of s){if(K(o=Ke,ue,ol).call(o,t,r.length),!(c.length>0))throw new Error("Invalid list value format");i(K(l=Ke,ue,ch).call(l,t,c,a),a)}return r},ch=function(t,n,a){var i,s;let r=n.split("/");if(r.length>2)throw new Error(`Invalid repeat: ${n}`);return r.length===2?(r[0].includes("-")||(r[0]=`${r[0]}-${a.max}`),K(i=Ke,ue,Fu).call(i,t,r[0],parseInt(r[1],10),a)):K(s=Ke,ue,Fu).call(s,t,n,1,a)},uh=function(t,n,a){if(!(!isNaN(t)&&!isNaN(n)&&t>=a.min&&n<=a.max))throw new Error(`Constraint error, got range ${t}-${n} expected range ${a.min}-${a.max}`);if(t>n)throw new Error(`Invalid range: ${t}-${n}, min(${t}) > max(${n})`)},mh=function(t){if(!(!isNaN(t)&&t>0))throw new Error(`Constraint error, cannot repeat at every ${t} time.`)},dh=function(t,n,a,r){let i=[];t===Mn.DayOfWeek&&a%7===0&&(a-n)%r===0&&i.push(0);for(let s=n;s<=a;s+=r)i.indexOf(s)===-1&&i.push(s);return i},Fu=function(t,n,a,r){let i=n.split("-");if(i.length<=1)return isNaN(+n)?n:+n;let[s,o]=i.map(l=>parseInt(l,10));return K(this,ue,uh).call(this,s,o,r),K(this,ue,mh).call(this,a),K(this,ue,dh).call(this,t,s,o,a)},fh=function(t){let n=t.split("#");if(n.length<=1)return{dayOfWeek:n[0]};let a=+n[n.length-1],r=t.match(/([,\-/])/);if(r!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${r?.[0]}\` special characters are incompatible`);if(!(n.length<=2&&!isNaN(a)&&a>=1&&a<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:n[0],nthDayOfWeek:a}},ph=function(t,n){return t.chars.some(a=>n.toString().includes(a))},Re(Ke,ue);var Eu=Ke;Dn.CronExpressionParser=Eu});var hh=O(()=>{u()});var gh=O(()=>{u()});var xh=O(cl=>{"use strict";u();Object.defineProperty(cl,"__esModule",{value:!0});cl.CronFileParser=void 0;var $C=ll(),Cr,zu,yh,Di=class Di{static async parseFile(t){var r;let{readFile:n}=hh(),a=await n(t,"utf8");return K(r=Di,Cr,zu).call(r,a)}static parseFileSync(t){var r;let{readFileSync:n}=gh(),a=n(t,"utf8");return K(r=Di,Cr,zu).call(r,a)}};Cr=new WeakSet,zu=function(t){var r;let n=t.split(`
4
+ `),a={variables:{},expressions:[],errors:{}};for(let i of n){let s=i.trim();if(s.length===0||s.startsWith("#"))continue;let o=s.match(/^(.*)=(.*)$/);if(o){let[,l,c]=o;a.variables[l]=c.replace(/["']/g,"");continue}try{let l=K(r=Di,Cr,yh).call(r,s);a.expressions.push(l.interval)}catch(l){a.errors[s]=l}}return a},yh=function(t){let n=t.split(/\s+/);return{interval:$C.CronExpressionParser.parse(n.slice(0,5).join(" ")),command:n.slice(5,n.length)}},Re(Di,Cr);var _u=Di;cl.CronFileParser=_u});var bh=O(Et=>{"use strict";u();var qC=Et&&Et.__createBinding||(Object.create?(function(e,t,n,a){a===void 0&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}):(function(e,t,n,a){a===void 0&&(a=n),e[a]=t[n]})),UC=Et&&Et.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qC(t,e,n)};Object.defineProperty(Et,"__esModule",{value:!0});Et.CronFileParser=Et.CronExpressionParser=Et.CronExpression=Et.CronFieldCollection=Et.CronDate=void 0;var YC=ll(),GC=Jo();Object.defineProperty(Et,"CronDate",{enumerable:!0,get:function(){return GC.CronDate}});var KC=Iu();Object.defineProperty(Et,"CronFieldCollection",{enumerable:!0,get:function(){return KC.CronFieldCollection}});var JC=Mu();Object.defineProperty(Et,"CronExpression",{enumerable:!0,get:function(){return JC.CronExpression}});var ZC=ll();Object.defineProperty(Et,"CronExpressionParser",{enumerable:!0,get:function(){return ZC.CronExpressionParser}});var jC=xh();Object.defineProperty(Et,"CronFileParser",{enumerable:!0,get:function(){return jC.CronFileParser}});UC(nl(),Et);Et.default=YC.CronExpressionParser});var Oi=O((WR,Sr)=>{"use strict";u();function wh(e){return typeof e>"u"||e===null}function XC(e){return typeof e=="object"&&e!==null}function QC(e){return Array.isArray(e)?e:wh(e)?[]:[e]}function eS(e,t){if(t){let n=Object.keys(t);for(let a=0,r=n.length;a<r;a+=1){let i=n[a];e[i]=t[i]}}return e}function tS(e,t){let n="";for(let a=0;a<t;a+=1)n+=e;return n}function nS(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Sr.exports.isNothing=wh;Sr.exports.isObject=XC;Sr.exports.toArray=QC;Sr.exports.repeat=tS;Sr.exports.isNegativeZero=nS;Sr.exports.extend=eS});var Ri=O((BR,Ch)=>{"use strict";u();function vh(e,t){let n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
5
+
6
+ `+e.mark.snippet),a+" "+n):a}function As(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=vh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}As.prototype=Object.create(Error.prototype);As.prototype.constructor=As;As.prototype.toString=function(t){return this.name+": "+vh(this,t)};Ch.exports=As});var kh=O((qR,Sh)=>{"use strict";u();var Ps=Oi();function Lu(e,t,n,a,r){let i="",s="",o=Math.floor(r/2)-1;return a-t>o&&(i=" ... ",t=a-o+i.length),n-a>o&&(s=" ...",n=a+o-s.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+s,pos:a-t+i.length}}function Vu(e,t){return Ps.repeat(" ",t-e.length)+e}function aS(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);let n=/\r?\n|\r|\0/g,a=[0],r=[],i,s=-1;for(;i=n.exec(e.buffer);)r.push(i.index),a.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=a.length-2);s<0&&(s=a.length-1);let o="",l=Math.min(e.line+t.linesAfter,r.length).toString().length,c=t.maxLength-(t.indent+l+3);for(let m=1;m<=t.linesBefore&&!(s-m<0);m++){let f=Lu(e.buffer,a[s-m],r[s-m],e.position-(a[s]-a[s-m]),c);o=Ps.repeat(" ",t.indent)+Vu((e.line-m+1).toString(),l)+" | "+f.str+`
7
+ `+o}let d=Lu(e.buffer,a[s],r[s],e.position,c);o+=Ps.repeat(" ",t.indent)+Vu((e.line+1).toString(),l)+" | "+d.str+`
8
+ `,o+=Ps.repeat("-",t.indent+l+3+d.pos)+`^
9
+ `;for(let m=1;m<=t.linesAfter&&!(s+m>=r.length);m++){let f=Lu(e.buffer,a[s+m],r[s+m],e.position-(a[s]-a[s+m]),c);o+=Ps.repeat(" ",t.indent)+Vu((e.line+m+1).toString(),l)+" | "+f.str+`
10
+ `}return o.replace(/\n$/,"")}Sh.exports=aS});var qt=O((YR,Th)=>{"use strict";u();var Ih=Ri(),rS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],iS=["scalar","sequence","mapping"];function sS(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){t[String(a)]=n})}),t}function oS(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(rS.indexOf(n)===-1)throw new Ih('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=sS(t.styleAliases||null),iS.indexOf(this.kind)===-1)throw new Ih('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}Th.exports=oS});var Bu=O((KR,Dh)=>{"use strict";u();var Fs=Ri(),Wu=qt();function Mh(e,t){let n=[];return e[t].forEach(function(a){let r=n.length;n.forEach(function(i,s){i.tag===a.tag&&i.kind===a.kind&&i.multi===a.multi&&(r=s)}),n[r]=a}),n}function lS(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(let n=0,a=arguments.length;n<a;n+=1)arguments[n].forEach(t);return e}function Hu(e){return this.extend(e)}Hu.prototype.extend=function(t){let n=[],a=[];if(t instanceof Wu)a.push(t);else if(Array.isArray(t))a=a.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(a=a.concat(t.explicit));else throw new Fs("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof Wu))throw new Fs("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new Fs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new Fs("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(i){if(!(i instanceof Wu))throw new Fs("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let r=Object.create(Hu.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(a),r.compiledImplicit=Mh(r,"implicit"),r.compiledExplicit=Mh(r,"explicit"),r.compiledTypeMap=lS(r.compiledImplicit,r.compiledExplicit),r};Dh.exports=Hu});var $u=O((ZR,Oh)=>{"use strict";u();var cS=qt();Oh.exports=new cS("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var qu=O((XR,Rh)=>{"use strict";u();var uS=qt();Rh.exports=new uS("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Uu=O((eN,Nh)=>{"use strict";u();var mS=qt();Nh.exports=new mS("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Yu=O((nN,Eh)=>{"use strict";u();var dS=Bu();Eh.exports=new dS({explicit:[$u(),qu(),Uu()]})});var Gu=O((rN,Ah)=>{"use strict";u();var fS=qt();function pS(e){if(e===null)return!0;let t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function hS(){return null}function gS(e){return e===null}Ah.exports=new fS("tag:yaml.org,2002:null",{kind:"scalar",resolve:pS,construct:hS,predicate:gS,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Ku=O((sN,Ph)=>{"use strict";u();var yS=qt();function xS(e){if(e===null)return!1;let t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function bS(e){return e==="true"||e==="True"||e==="TRUE"}function wS(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Ph.exports=new yS("tag:yaml.org,2002:bool",{kind:"scalar",resolve:xS,construct:bS,predicate:wS,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Ju=O((lN,Fh)=>{"use strict";u();var vS=Oi(),CS=qt();function SS(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function kS(e){return e>=48&&e<=55}function IS(e){return e>=48&&e<=57}function TS(e){if(e===null)return!1;let t=e.length,n=0,a=!1;if(!t)return!1;let r=e[n];if((r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++){if(r=e[n],r!=="0"&&r!=="1")return!1;a=!0}return a&&isFinite(_s(e))}if(r==="x"){for(n++;n<t;n++){if(!SS(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(_s(e))}if(r==="o"){for(n++;n<t;n++){if(!kS(e.charCodeAt(n)))return!1;a=!0}return a&&isFinite(_s(e))}}for(;n<t;n++){if(!IS(e.charCodeAt(n)))return!1;a=!0}return a?isFinite(_s(e)):!1}function _s(e){let t=e,n=1,a=t[0];if((a==="-"||a==="+")&&(a==="-"&&(n=-1),t=t.slice(1),a=t[0]),t==="0")return 0;if(a==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function MS(e){return _s(e)}function DS(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!vS.isNegativeZero(e)}Fh.exports=new CS("tag:yaml.org,2002:int",{kind:"scalar",resolve:TS,construct:MS,predicate:DS,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Zu=O((uN,zh)=>{"use strict";u();var _h=Oi(),OS=qt(),RS=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),NS=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ES(e){return e===null||!RS.test(e)?!1:isFinite(parseFloat(e,10))?!0:NS.test(e)}function AS(e){let t=e.toLowerCase(),n=t[0]==="-"?-1:1;return"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var PS=/^[-+]?[0-9]+e/;function FS(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(_h.isNegativeZero(e))return"-0.0";let n=e.toString(10);return PS.test(n)?n.replace("e",".e"):n}function _S(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||_h.isNegativeZero(e))}zh.exports=new OS("tag:yaml.org,2002:float",{kind:"scalar",resolve:ES,construct:AS,predicate:_S,represent:FS,defaultStyle:"lowercase"})});var ju=O((dN,Lh)=>{"use strict";u();Lh.exports=Yu().extend({implicit:[Gu(),Ku(),Ju(),Zu()]})});var Xu=O((pN,Vh)=>{"use strict";u();Vh.exports=ju()});var Qu=O((gN,Bh)=>{"use strict";u();var zS=qt(),Wh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function LS(e){return e===null?!1:Wh.exec(e)!==null||Hh.exec(e)!==null}function VS(e){let t=0,n=null,a=Wh.exec(e);if(a===null&&(a=Hh.exec(e)),a===null)throw new Error("Date resolve error");let r=+a[1],i=+a[2]-1,s=+a[3];if(!a[4])return new Date(Date.UTC(r,i,s));let o=+a[4],l=+a[5],c=+a[6];if(a[7]){for(t=a[7].slice(0,3);t.length<3;)t+="0";t=+t}if(a[9]){let m=+a[10],f=+(a[11]||0);n=(m*60+f)*6e4,a[9]==="-"&&(n=-n)}let d=new Date(Date.UTC(r,i,s,o,l,c,t));return n&&d.setTime(d.getTime()-n),d}function WS(e){return e.toISOString()}Bh.exports=new zS("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:LS,construct:VS,instanceOf:Date,represent:WS})});var em=O((xN,$h)=>{"use strict";u();var HS=qt();function BS(e){return e==="<<"||e===null}$h.exports=new HS("tag:yaml.org,2002:merge",{kind:"scalar",resolve:BS})});var nm=O((wN,qh)=>{"use strict";u();var $S=qt(),tm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
11
+ \r`;function qS(e){if(e===null)return!1;let t=0,n=e.length,a=tm;for(let r=0;r<n;r++){let i=a.indexOf(e.charAt(r));if(!(i>64)){if(i<0)return!1;t+=6}}return t%8===0}function US(e){let t=e.replace(/[\r\n=]/g,""),n=t.length,a=tm,r=0,i=[];for(let o=0;o<n;o++)o%4===0&&o&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|a.indexOf(t.charAt(o));let s=n%4*6;return s===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):s===18?(i.push(r>>10&255),i.push(r>>2&255)):s===12&&i.push(r>>4&255),new Uint8Array(i)}function YS(e){let t="",n=0,a=e.length,r=tm;for(let s=0;s<a;s++)s%3===0&&s&&(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]),n=(n<<8)+e[s];let i=a%3;return i===0?(t+=r[n>>18&63],t+=r[n>>12&63],t+=r[n>>6&63],t+=r[n&63]):i===2?(t+=r[n>>10&63],t+=r[n>>4&63],t+=r[n<<2&63],t+=r[64]):i===1&&(t+=r[n>>2&63],t+=r[n<<4&63],t+=r[64],t+=r[64]),t}function GS(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}qh.exports=new $S("tag:yaml.org,2002:binary",{kind:"scalar",resolve:qS,construct:US,predicate:GS,represent:YS})});var am=O((CN,Yh)=>{"use strict";u();var KS=qt(),Uh=Object.prototype.hasOwnProperty,JS=Object.prototype.toString;function ZS(e){if(e===null)return!0;let t={},n=e;for(let a=0,r=n.length;a<r;a+=1){let i=n[a],s=!1;if(JS.call(i)!=="[object Object]")return!1;let o;for(o in i)if(Uh.call(i,o))if(!s)s=!0;else return!1;if(!s||Uh.call(t,o))return!1;Object.defineProperty(t,o,{value:!0})}return!0}function jS(e){return e!==null?e:[]}Yh.exports=new KS("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ZS,construct:jS})});var rm=O((kN,Gh)=>{"use strict";u();var XS=qt(),QS=Object.prototype.toString;function ek(e){if(e===null)return!0;let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a];if(QS.call(i)!=="[object Object]")return!1;let s=Object.keys(i);if(s.length!==1)return!1;n[a]=[s[0],i[s[0]]]}return!0}function tk(e){if(e===null)return[];let t=e,n=new Array(t.length);for(let a=0,r=t.length;a<r;a+=1){let i=t[a],s=Object.keys(i);n[a]=[s[0],i[s[0]]]}return n}Gh.exports=new XS("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ek,construct:tk})});var im=O((TN,Kh)=>{"use strict";u();var nk=qt(),ak=Object.prototype.hasOwnProperty;function rk(e){if(e===null)return!0;let t=e;for(let n in t)if(ak.call(t,n)&&t[n]!==null)return!1;return!0}function ik(e){return e!==null?e:{}}Kh.exports=new nk("tag:yaml.org,2002:set",{kind:"mapping",resolve:rk,construct:ik})});var ul=O((DN,Jh)=>{"use strict";u();Jh.exports=Xu().extend({implicit:[Qu(),em()],explicit:[nm(),am(),rm(),im()]})});var gg=O((RN,cm)=>{"use strict";u();var kr=Oi(),rg=Ri(),sk=kh(),ok=ul(),Gn=Object.prototype.hasOwnProperty,ml=1,ig=2,sg=3,dl=4,sm=1,lk=2,Zh=3,ck=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,uk=/[\x85\u2028\u2029]/,mk=/[,\[\]{}]/,og=/^(?:!|!!|![0-9A-Za-z-]+!)$/,lg=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function jh(e){return Object.prototype.toString.call(e)}function ua(e){return e===10||e===13}function ba(e){return e===9||e===32}function nn(e){return e===9||e===32||e===10||e===13}function Ni(e){return e===44||e===91||e===93||e===123||e===125}function dk(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function fk(e){return e===120?2:e===117?4:e===85?8:0}function pk(e){return e>=48&&e<=57?e-48:-1}function Xh(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
12
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function hk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function cg(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var ug=new Array(256),mg=new Array(256);for(let e=0;e<256;e++)ug[e]=Xh(e)?1:0,mg[e]=Xh(e);function gk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||ok,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys=="number"?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function dg(e,t){let n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=sk(n),new rg(t,n)}function se(e,t){throw dg(e,t)}function fl(e,t){e.onWarning&&e.onWarning.call(null,dg(e,t))}function Ir(e,t,n){let a=e.anchorMapTransactions;if(a.length!==0){let r=a[a.length-1];Gn.call(r,t)||(r[t]={existed:Gn.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function yk(e){e.anchorMapTransactions.push(Object.create(null))}function xk(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let a=n[n.length-1],r=Object.keys(t);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];Gn.call(a,o)||(a[o]=t[o])}}function bk(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let a=n.length-1;a>=0;a-=1){let r=t[n[a]];r.existed?e.anchorMap[n[a]]=r.value:delete e.anchorMap[n[a]]}}function fg(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function Qh(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}var eg={YAML:function(t,n,a){t.version!==null&&se(t,"duplication of %YAML directive"),a.length!==1&&se(t,"YAML directive accepts exactly one argument");let r=/^([0-9]+)\.([0-9]+)$/.exec(a[0]);r===null&&se(t,"ill-formed argument of the YAML directive");let i=parseInt(r[1],10),s=parseInt(r[2],10);i!==1&&se(t,"unacceptable YAML version of the document"),t.version=a[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&fl(t,"unsupported YAML version of the document")},TAG:function(t,n,a){let r;a.length!==2&&se(t,"TAG directive accepts exactly two arguments");let i=a[0];r=a[1],og.test(i)||se(t,"ill-formed tag handle (first argument) of the TAG directive"),Gn.call(t.tagMap,i)&&se(t,'there is a previously declared suffix for "'+i+'" tag handle'),lg.test(r)||se(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch{se(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function Wa(e,t,n,a){if(t<n){let r=e.input.slice(t,n);if(a)for(let i=0,s=r.length;i<s;i+=1){let o=r.charCodeAt(i);o===9||o>=32&&o<=1114111||se(e,"expected valid JSON character")}else ck.test(r)&&se(e,"the stream contains non-printable characters");e.result+=r}}function tg(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&se(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function ng(e,t,n,a){kr.isObject(n)||se(e,"cannot merge mappings; the provided source object is unacceptable"),tg(e);let r=Object.keys(n);for(let i=0,s=r.length;i<s;i+=1){let o=r[i];tg(e),Gn.call(t,o)||(cg(t,o,n[o]),a[o]=!0)}}function Ei(e,t,n,a,r,i,s,o,l){if(Array.isArray(r)){r=Array.prototype.slice.call(r);for(let c=0,d=r.length;c<d;c+=1)Array.isArray(r[c])&&se(e,"nested arrays are not supported inside keys"),typeof r=="object"&&jh(r[c])==="[object Object]"&&(r[c]="[object Object]")}if(typeof r=="object"&&jh(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(i)){i.length>100&&se(e,"abnormal merge sequence size");for(let c=0,d=i.length;c<d;c+=1)ng(e,t,i[c],n)}else ng(e,t,i,n);else!e.json&&!Gn.call(n,r)&&Gn.call(t,r)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,se(e,"duplicated mapping key")),cg(t,r,i),delete n[r];return t}function om(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):se(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function It(e,t,n){let a=0,r=e.input.charCodeAt(e.position);for(;r!==0;){for(;ba(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(ua(r))for(om(e),r=e.input.charCodeAt(e.position),a++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&fl(e,"deficient indentation"),a}function pl(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||nn(n)))}function lm(e,t){t===1?e.result+=" ":t>1&&(e.result+=kr.repeat(`
13
+ `,t-1))}function wk(e,t,n){let a,r,i,s,o,l,c=e.kind,d=e.result,m=e.input.charCodeAt(e.position);if(nn(m)||Ni(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96)return!1;if(m===63||m===45){let f=e.input.charCodeAt(e.position+1);if(nn(f)||n&&Ni(f))return!1}for(e.kind="scalar",e.result="",a=r=e.position,i=!1;m!==0;){if(m===58){let f=e.input.charCodeAt(e.position+1);if(nn(f)||n&&Ni(f))break}else if(m===35){let f=e.input.charCodeAt(e.position-1);if(nn(f))break}else{if(e.position===e.lineStart&&pl(e)||n&&Ni(m))break;if(ua(m))if(s=e.line,o=e.lineStart,l=e.lineIndent,It(e,!1,-1),e.lineIndent>=t){i=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=r,e.line=s,e.lineStart=o,e.lineIndent=l;break}}i&&(Wa(e,a,r,!1),lm(e,e.line-s),a=r=e.position,i=!1),ba(m)||(r=e.position+1),m=e.input.charCodeAt(++e.position)}return Wa(e,a,r,!1),e.result?!0:(e.kind=c,e.result=d,!1)}function vk(e,t){let n,a,r=e.input.charCodeAt(e.position);if(r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Wa(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,a=e.position;else return!0;else ua(r)?(Wa(e,n,a,!0),lm(e,It(e,!1,t)),n=a=e.position):e.position===e.lineStart&&pl(e)?se(e,"unexpected end of the document within a single quoted scalar"):(e.position++,ba(r)||(a=e.position));se(e,"unexpected end of the stream within a single quoted scalar")}function Ck(e,t){let n,a,r,i=e.input.charCodeAt(e.position);if(i!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(i=e.input.charCodeAt(e.position))!==0;){if(i===34)return Wa(e,n,e.position,!0),e.position++,!0;if(i===92){if(Wa(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),ua(i))It(e,!1,t);else if(i<256&&ug[i])e.result+=mg[i],e.position++;else if((r=fk(i))>0){let s=r,o=0;for(;s>0;s--)i=e.input.charCodeAt(++e.position),(r=dk(i))>=0?o=(o<<4)+r:se(e,"expected hexadecimal character");e.result+=hk(o),e.position++}else se(e,"unknown escape sequence");n=a=e.position}else ua(i)?(Wa(e,n,a,!0),lm(e,It(e,!1,t)),n=a=e.position):e.position===e.lineStart&&pl(e)?se(e,"unexpected end of the document within a double quoted scalar"):(e.position++,ba(i)||(a=e.position))}se(e,"unexpected end of the stream within a double quoted scalar")}function Sk(e,t){let n=!0,a,r,i,s=e.tag,o,l=e.anchor,c,d,m,f,h=Object.create(null),k,v,E,q=e.input.charCodeAt(e.position);if(q===91)c=93,f=!1,o=[];else if(q===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&Ir(e,e.anchor,o),q=e.input.charCodeAt(++e.position);q!==0;){if(It(e,!0,t),q=e.input.charCodeAt(e.position),q===c)return e.position++,e.tag=s,e.anchor=l,e.kind=f?"mapping":"sequence",e.result=o,!0;if(n?q===44&&se(e,"expected the node content, but found ','"):se(e,"missed comma between flow collection entries"),v=k=E=null,d=m=!1,q===63){let me=e.input.charCodeAt(e.position+1);nn(me)&&(d=m=!0,e.position++,It(e,!0,t))}a=e.line,r=e.lineStart,i=e.position,Ai(e,t,ml,!1,!0),v=e.tag,k=e.result,It(e,!0,t),q=e.input.charCodeAt(e.position),(m||e.line===a)&&q===58&&(d=!0,q=e.input.charCodeAt(++e.position),It(e,!0,t),Ai(e,t,ml,!1,!0),E=e.result),f?Ei(e,o,h,v,k,E,a,r,i):d?o.push(Ei(e,null,h,v,k,E,a,r,i)):o.push(k),It(e,!0,t),q=e.input.charCodeAt(e.position),q===44?(n=!0,q=e.input.charCodeAt(++e.position)):n=!1}se(e,"unexpected end of the stream within a flow collection")}function kk(e,t){let n,a=sm,r=!1,i=!1,s=t,o=0,l=!1,c,d=e.input.charCodeAt(e.position);if(d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)sm===a?a=d===43?Zh:lk:se(e,"repeat of a chomping mode identifier");else if((c=pk(d))>=0)c===0?se(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?se(e,"repeat of an indentation width identifier"):(s=t+c-1,i=!0);else break;if(ba(d)){do d=e.input.charCodeAt(++e.position);while(ba(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ua(d)&&d!==0)}for(;d!==0;){for(om(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),ua(d)){o++;continue}if(!i&&s===0&&se(e,"missing indentation for block scalar"),e.lineIndent<s){a===Zh?e.result+=kr.repeat(`
14
+ `,r?1+o:o):a===sm&&r&&(e.result+=`
15
+ `);break}n?ba(d)?(l=!0,e.result+=kr.repeat(`
16
+ `,r?1+o:o)):l?(l=!1,e.result+=kr.repeat(`
17
+ `,o+1)):o===0?r&&(e.result+=" "):e.result+=kr.repeat(`
18
+ `,o):e.result+=kr.repeat(`
19
+ `,r?1+o:o),r=!0,i=!0,o=0;let m=e.position;for(;!ua(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Wa(e,m,e.position,!1)}return!0}function ag(e,t){let n=e.tag,a=e.anchor,r=[],i=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&Ir(e,e.anchor,r);let s=e.input.charCodeAt(e.position);for(;s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,se(e,"tab characters must not be used in indentation")),s===45);){let o=e.input.charCodeAt(e.position+1);if(!nn(o))break;if(i=!0,e.position++,It(e,!0,-1)&&e.lineIndent<=t){r.push(null),s=e.input.charCodeAt(e.position);continue}let l=e.line;if(Ai(e,t,sg,!1,!0),r.push(e.result),It(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&s!==0)se(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i?(e.tag=n,e.anchor=a,e.kind="sequence",e.result=r,!0):!1}function pg(e,t,n){let a,r,i,s,o=e.tag,l=e.anchor,c={},d=Object.create(null),m=null,f=null,h=null,k=!1,v=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&Ir(e,e.anchor,c);let E=e.input.charCodeAt(e.position);for(;E!==0;){!k&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,se(e,"tab characters must not be used in indentation"));let q=e.input.charCodeAt(e.position+1),me=e.line;if((E===63||E===58)&&nn(q))E===63?(k&&(Ei(e,c,d,m,f,null,r,i,s),m=f=h=null),v=!0,k=!0,a=!0):k?(k=!1,a=!0):se(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,E=q;else{if(r=e.line,i=e.lineStart,s=e.position,!Ai(e,n,ig,!1,!0))break;if(e.line===me){for(E=e.input.charCodeAt(e.position);ba(E);)E=e.input.charCodeAt(++e.position);if(E===58)E=e.input.charCodeAt(++e.position),nn(E)||se(e,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(Ei(e,c,d,m,f,null,r,i,s),m=f=h=null),v=!0,k=!1,a=!1,m=e.tag,f=e.result;else if(v)se(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=o,e.anchor=l,!0}else if(v)se(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=o,e.anchor=l,!0}if((e.line===me||e.lineIndent>t)&&(k&&(r=e.line,i=e.lineStart,s=e.position),Ai(e,t,dl,!0,a)&&(k?f=e.result:h=e.result),k||(Ei(e,c,d,m,f,h,r,i,s),m=f=h=null),It(e,!0,-1),E=e.input.charCodeAt(e.position)),(e.line===me||e.lineIndent>t)&&E!==0)se(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return k&&Ei(e,c,d,m,f,null,r,i,s),v&&(e.tag=o,e.anchor=l,e.kind="mapping",e.result=c),v}function Ik(e){let t=!1,n=!1,a,r,i=e.input.charCodeAt(e.position);if(i!==33)return!1;e.tag!==null&&se(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),i===60?(t=!0,i=e.input.charCodeAt(++e.position)):i===33?(n=!0,a="!!",i=e.input.charCodeAt(++e.position)):a="!";let s=e.position;if(t){do i=e.input.charCodeAt(++e.position);while(i!==0&&i!==62);e.position<e.length?(r=e.input.slice(s,e.position),i=e.input.charCodeAt(++e.position)):se(e,"unexpected end of the stream within a verbatim tag")}else{for(;i!==0&&!nn(i);)i===33&&(n?se(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(s-1,e.position+1),og.test(a)||se(e,"named tag handle cannot contain such characters"),n=!0,s=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(s,e.position),mk.test(r)&&se(e,"tag suffix cannot contain flow indicator characters")}r&&!lg.test(r)&&se(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch{se(e,"tag name is malformed: "+r)}return t?e.tag=r:Gn.call(e.tagMap,a)?e.tag=e.tagMap[a]+r:a==="!"?e.tag="!"+r:a==="!!"?e.tag="tag:yaml.org,2002:"+r:se(e,'undeclared tag handle "'+a+'"'),!0}function Tk(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&se(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!nn(t)&&!Ni(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&se(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function Mk(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!nn(t)&&!Ni(t);)t=e.input.charCodeAt(++e.position);e.position===n&&se(e,"name of an alias node must contain at least one character");let a=e.input.slice(n,e.position);return Gn.call(e.anchorMap,a)||se(e,'unidentified alias "'+a+'"'),e.result=e.anchorMap[a],It(e,!0,-1),!0}function Dk(e,t,n,a){let r=fg(e);return yk(e),Qh(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,pg(e,n,a)&&e.kind==="mapping"?(xk(e),!0):(bk(e),Qh(e,r),!1)}function Ai(e,t,n,a,r){let i,s,o=1,l=!1,c=!1,d=null,m,f,h;e.depth>=e.maxDepth&&se(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let k=i=s=dl===n||sg===n;if(a&&It(e,!0,-1)&&(l=!0,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)),o===1)for(;;){let v=e.input.charCodeAt(e.position),E=fg(e);if(l&&(v===33&&e.tag!==null||v===38&&e.anchor!==null)||!Ik(e)&&!Tk(e))break;d===null&&(d=E),It(e,!0,-1)?(l=!0,s=k,e.lineIndent>t?o=1:e.lineIndent===t?o=0:e.lineIndent<t&&(o=-1)):s=!1}if(s&&(s=l||r),o===1||dl===n)if(ml===n||ig===n?f=t:f=t+1,h=e.position-e.lineStart,o===1)if(s&&(ag(e,h)||pg(e,h,f))||Sk(e,f))c=!0;else{let v=e.input.charCodeAt(e.position);d!==null&&k&&!s&&v!==124&&v!==62&&Dk(e,d,d.position-d.lineStart,f)||i&&kk(e,f)||vk(e,f)||Ck(e,f)?c=!0:Mk(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&se(e,"alias node should not have any properties")):wk(e,f,ml===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&Ir(e,e.anchor,e.result)}else o===0&&(c=s&&ag(e,h));if(e.tag===null)e.anchor!==null&&Ir(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&se(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let v=0,E=e.implicitTypes.length;v<E;v+=1)if(m=e.implicitTypes[v],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&Ir(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(Gn.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else{m=null;let v=e.typeMap.multi[e.kind||"fallback"];for(let E=0,q=v.length;E<q;E+=1)if(e.tag.slice(0,v[E].tag.length)===v[E].tag){m=v[E];break}}m||se(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&se(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&Ir(e,e.anchor,e.result)):se(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||c}function Ok(e){let t=e.position,n=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(It(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){n=!0,a=e.input.charCodeAt(++e.position);let r=e.position;for(;a!==0&&!nn(a);)a=e.input.charCodeAt(++e.position);let i=e.input.slice(r,e.position),s=[];for(i.length<1&&se(e,"directive name must not be less than one character in length");a!==0;){for(;ba(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!ua(a));break}if(ua(a))break;for(r=e.position;a!==0&&!nn(a);)a=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}a!==0&&om(e),Gn.call(eg,i)?eg[i](e,i,s):fl(e,'unknown document directive "'+i+'"')}if(It(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,It(e,!0,-1)):n&&se(e,"directives end mark is expected"),Ai(e,e.lineIndent-1,dl,!1,!0),It(e,!0,-1),e.checkLineBreaks&&uk.test(e.input.slice(t,e.position))&&fl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&pl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,It(e,!0,-1));return}e.position<e.length-1&&se(e,"end of the stream or a document separator is expected")}function hg(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
20
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new gk(e,t),a=e.indexOf("\0");for(a!==-1&&(n.position=a,se(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Ok(n);return n.documents}function Rk(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);let a=hg(e,n);if(typeof t!="function")return a;for(let r=0,i=a.length;r<i;r+=1)t(a[r])}function Nk(e,t){let n=hg(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new rg("expected a single document in the stream, but found more")}}cm.exports.loadAll=Rk;cm.exports.load=Nk});var zg=O((EN,_g)=>{"use strict";u();var yl=Oi(),Hs=Ri(),Ek=ul(),Ig=Object.prototype.toString,Tg=Object.prototype.hasOwnProperty,pm=65279,Ak=9,Ls=10,Pk=13,Fk=32,_k=33,zk=34,um=35,Lk=37,Vk=38,Wk=39,Hk=42,Mg=44,Bk=45,hl=58,$k=61,qk=62,Uk=63,Yk=64,Dg=91,Og=93,Gk=96,Rg=123,Kk=124,Ng=125,Ut={};Ut[0]="\\0";Ut[7]="\\a";Ut[8]="\\b";Ut[9]="\\t";Ut[10]="\\n";Ut[11]="\\v";Ut[12]="\\f";Ut[13]="\\r";Ut[27]="\\e";Ut[34]='\\"';Ut[92]="\\\\";Ut[133]="\\N";Ut[160]="\\_";Ut[8232]="\\L";Ut[8233]="\\P";var Jk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Zk=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function jk(e,t){if(t===null)return{};let n={},a=Object.keys(t);for(let r=0,i=a.length;r<i;r+=1){let s=a[r],o=String(t[s]);s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2));let l=e.compiledTypeMap.fallback[s];l&&Tg.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o}return n}function Xk(e){let t,n,a=e.toString(16).toUpperCase();if(e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new Hs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+yl.repeat("0",n-a.length)+a}var Qk=1,Vs=2;function eI(e){this.schema=e.schema||Ek,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=yl.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=jk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Vs:Qk,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function yg(e,t){let n=yl.repeat(" ",t),a=0,r="",i=e.length;for(;a<i;){let s,o=e.indexOf(`
21
+ `,a);o===-1?(s=e.slice(a),a=i):(s=e.slice(a,o+1),a=o+1),s.length&&s!==`
22
+ `&&(r+=n),r+=s}return r}function mm(e,t){return`
23
+ `+yl.repeat(" ",e.indent*t)}function tI(e,t){for(let n=0,a=e.implicitTypes.length;n<a;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function gl(e){return e===Fk||e===Ak}function Ws(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==pm||e>=65536&&e<=1114111}function xg(e){return Ws(e)&&e!==pm&&e!==Pk&&e!==Ls}function bg(e,t,n){let a=xg(e),r=a&&!gl(e);return(n?a:a&&e!==Mg&&e!==Dg&&e!==Og&&e!==Rg&&e!==Ng)&&e!==um&&!(t===hl&&!r)||xg(t)&&!gl(t)&&e===um||t===hl&&r}function nI(e){return Ws(e)&&e!==pm&&!gl(e)&&e!==Bk&&e!==Uk&&e!==hl&&e!==Mg&&e!==Dg&&e!==Og&&e!==Rg&&e!==Ng&&e!==um&&e!==Vk&&e!==Hk&&e!==_k&&e!==Kk&&e!==$k&&e!==qk&&e!==Wk&&e!==zk&&e!==Lk&&e!==Yk&&e!==Gk}function aI(e){return!gl(e)&&e!==hl}function zs(e,t){let n=e.charCodeAt(t),a;return n>=55296&&n<=56319&&t+1<e.length&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function Eg(e){return/^\n* /.test(e)}var Ag=1,dm=2,Pg=3,Fg=4,Pi=5;function rI(e,t,n,a,r,i,s,o){let l,c=0,d=null,m=!1,f=!1,h=a!==-1,k=-1,v=nI(zs(e,0))&&aI(zs(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=zs(e,l),!Ws(c))return Pi;v=v&&bg(c,d,o),d=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=zs(e,l),c===Ls)m=!0,h&&(f=f||l-k-1>a&&e[k+1]!==" ",k=l);else if(!Ws(c))return Pi;v=v&&bg(c,d,o),d=c}f=f||h&&l-k-1>a&&e[k+1]!==" "}return!m&&!f?v&&!s&&!r(e)?Ag:i===Vs?Pi:dm:n>9&&Eg(e)?Pi:s?i===Vs?Pi:dm:f?Fg:Pg}function iI(e,t,n,a,r){e.dump=(function(){if(t.length===0)return e.quotingType===Vs?'""':"''";if(!e.noCompatMode&&(Jk.indexOf(t)!==-1||Zk.test(t)))return e.quotingType===Vs?'"'+t+'"':"'"+t+"'";let i=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),o=a||e.flowLevel>-1&&n>=e.flowLevel;function l(c){return tI(e,c)}switch(rI(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!a,r)){case Ag:return t;case dm:return"'"+t.replace(/'/g,"''")+"'";case Pg:return"|"+wg(t,e.indent)+vg(yg(t,i));case Fg:return">"+wg(t,e.indent)+vg(yg(sI(t,s),i));case Pi:return'"'+oI(t,s)+'"';default:throw new Hs("impossible error: invalid scalar style")}})()}function wg(e,t){let n=Eg(e)?String(t):"",a=e[e.length-1]===`
24
+ `,i=a&&(e[e.length-2]===`
25
+ `||e===`
26
+ `)?"+":a?"":"-";return n+i+`
27
+ `}function vg(e){return e[e.length-1]===`
28
+ `?e.slice(0,-1):e}function sI(e,t){let n=/(\n+)([^\n]*)/g,a=(function(){let o=e.indexOf(`
29
+ `);return o=o!==-1?o:e.length,n.lastIndex=o,Cg(e.slice(0,o),t)})(),r=e[0]===`
30
+ `||e[0]===" ",i,s;for(;s=n.exec(e);){let o=s[1],l=s[2];i=l[0]===" ",a+=o+(!r&&!i&&l!==""?`
31
+ `:"")+Cg(l,t),r=i}return a}function Cg(e,t){if(e===""||e[0]===" ")return e;let n=/ [^ ]/g,a,r=0,i,s=0,o=0,l="";for(;a=n.exec(e);)o=a.index,o-r>t&&(i=s>r?s:o,l+=`
32
+ `+e.slice(r,i),r=i+1),s=o;return l+=`
33
+ `,e.length-r>t&&s>r?l+=e.slice(r,s)+`
34
+ `+e.slice(s+1):l+=e.slice(r),l.slice(1)}function oI(e){let t="",n=0;for(let a=0;a<e.length;n>=65536?a+=2:a++){n=zs(e,a);let r=Ut[n];!r&&Ws(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||Xk(n)}return t}function lI(e,t,n){let a="",r=e.tag;for(let i=0,s=n.length;i<s;i+=1){let o=n[i];e.replacer&&(o=e.replacer.call(n,String(i),o)),(wa(e,t,o,!1,!1)||typeof o>"u"&&wa(e,t,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump)}e.tag=r,e.dump="["+a+"]"}function Sg(e,t,n,a){let r="",i=e.tag;for(let s=0,o=n.length;s<o;s+=1){let l=n[s];e.replacer&&(l=e.replacer.call(n,String(s),l)),(wa(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!a||r!=="")&&(r+=mm(e,t)),e.dump&&Ls===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump)}e.tag=i,e.dump=r||"[]"}function cI(e,t,n){let a="",r=e.tag,i=Object.keys(n);for(let s=0,o=i.length;s<o;s+=1){let l="";a!==""&&(l+=", "),e.condenseFlow&&(l+='"');let c=i[s],d=n[c];e.replacer&&(d=e.replacer.call(n,c,d)),wa(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,d,!1,!1)&&(l+=e.dump,a+=l))}e.tag=r,e.dump="{"+a+"}"}function uI(e,t,n,a){let r="",i=e.tag,s=Object.keys(n);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Hs("sortKeys must be a boolean or a function");for(let o=0,l=s.length;o<l;o+=1){let c="";(!a||r!=="")&&(c+=mm(e,t));let d=s[o],m=n[d];if(e.replacer&&(m=e.replacer.call(n,d,m)),!wa(e,t+1,d,!0,!0,!0))continue;let f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;f&&(e.dump&&Ls===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,f&&(c+=mm(e,t)),wa(e,t+1,m,!0,f)&&(e.dump&&Ls===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,r+=c)}e.tag=i,e.dump=r||"{}"}function kg(e,t,n){let a=n?e.explicitTypes:e.implicitTypes;for(let r=0,i=a.length;r<i;r+=1){let s=a[r];if((s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){let o=e.styleMap[s.tag]||s.defaultStyle,l;if(Ig.call(s.represent)==="[object Function]")l=s.represent(t,o);else if(Tg.call(s.represent,o))l=s.represent[o](t,o);else throw new Hs("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=l}return!0}}return!1}function wa(e,t,n,a,r,i,s){e.tag=null,e.dump=n,kg(e,n,!1)||kg(e,n,!0);let o=Ig.call(e.dump),l=a;a&&(a=e.flowLevel<0||e.flowLevel>t);let c=o==="[object Object]"||o==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(r=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),o==="[object Object]")a&&Object.keys(e.dump).length!==0?(uI(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(cI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Sg(e,t-1,e.dump,r):Sg(e,t,e.dump,r),m&&(e.dump="&ref_"+d+e.dump)):(lI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&iI(e,e.dump,t,i,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Hs("unacceptable kind of an object to dump "+o)}if(e.tag!==null&&e.tag!=="?"){let f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump}}return!0}function mI(e,t){let n=[],a=[];fm(e,n,a);let r=a.length;for(let i=0;i<r;i+=1)t.duplicates.push(n[a[i]]);t.usedDuplicates=new Array(r)}function fm(e,t,n){if(e!==null&&typeof e=="object"){let a=t.indexOf(e);if(a!==-1)n.indexOf(a)===-1&&n.push(a);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)fm(e[r],t,n);else{let r=Object.keys(e);for(let i=0,s=r.length;i<s;i+=1)fm(e[r[i]],t,n)}}}function dI(e,t){t=t||{};let n=new eI(t);n.noRefs||mI(e,n);let a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),wa(n,0,a,!0,!0)?n.dump+`
35
+ `:""}_g.exports.dump=dI});var xl=O((PN,jt)=>{"use strict";u();var Lg=gg(),fI=zg();function hm(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}jt.exports.Type=qt();jt.exports.Schema=Bu();jt.exports.FAILSAFE_SCHEMA=Yu();jt.exports.JSON_SCHEMA=ju();jt.exports.CORE_SCHEMA=Xu();jt.exports.DEFAULT_SCHEMA=ul();jt.exports.load=Lg.load;jt.exports.loadAll=Lg.loadAll;jt.exports.dump=fI.dump;jt.exports.YAMLException=Ri();jt.exports.types={binary:nm(),float:Zu(),map:Uu(),null:Gu(),pairs:rm(),set:im(),timestamp:Qu(),bool:Ku(),int:Ju(),merge:em(),omap:am(),seq:qu(),str:$u()};jt.exports.safeLoad=hm("safeLoad","load");jt.exports.safeLoadAll=hm("safeLoadAll","loadAll");jt.exports.safeDump=hm("safeDump","dump")});var vl=O((rE,Yg)=>{u();var bI=Array.isArray;Yg.exports=bI});var Kg=O((sE,Gg)=>{u();var wI=typeof global=="object"&&global&&global.Object===Object&&global;Gg.exports=wI});var Cl=O((lE,Jg)=>{u();var vI=Kg(),CI=typeof self=="object"&&self&&self.Object===Object&&self,SI=vI||CI||Function("return this")();Jg.exports=SI});var Sl=O((uE,Zg)=>{u();var kI=Cl(),II=kI.Symbol;Zg.exports=II});var ey=O((dE,Qg)=>{u();var jg=Sl(),Xg=Object.prototype,TI=Xg.hasOwnProperty,MI=Xg.toString,Ys=jg?jg.toStringTag:void 0;function DI(e){var t=TI.call(e,Ys),n=e[Ys];try{e[Ys]=void 0;var a=!0}catch{}var r=MI.call(e);return a&&(t?e[Ys]=n:delete e[Ys]),r}Qg.exports=DI});var ny=O((pE,ty)=>{u();var OI=Object.prototype,RI=OI.toString;function NI(e){return RI.call(e)}ty.exports=NI});var xm=O((gE,iy)=>{u();var ay=Sl(),EI=ey(),AI=ny(),PI="[object Null]",FI="[object Undefined]",ry=ay?ay.toStringTag:void 0;function _I(e){return e==null?e===void 0?FI:PI:ry&&ry in Object(e)?EI(e):AI(e)}iy.exports=_I});var oy=O((xE,sy)=>{u();function zI(e){return e!=null&&typeof e=="object"}sy.exports=zI});var kl=O((wE,ly)=>{u();var LI=xm(),VI=oy(),WI="[object Symbol]";function HI(e){return typeof e=="symbol"||VI(e)&&LI(e)==WI}ly.exports=HI});var uy=O((CE,cy)=>{u();var BI=vl(),$I=kl(),qI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UI=/^\w*$/;function YI(e,t){if(BI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||$I(e)?!0:UI.test(e)||!qI.test(e)||t!=null&&e in Object(t)}cy.exports=YI});var Il=O((kE,my)=>{u();function GI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}my.exports=GI});var fy=O((TE,dy)=>{u();var KI=xm(),JI=Il(),ZI="[object AsyncFunction]",jI="[object Function]",XI="[object GeneratorFunction]",QI="[object Proxy]";function e2(e){if(!JI(e))return!1;var t=KI(e);return t==jI||t==XI||t==ZI||t==QI}dy.exports=e2});var hy=O((DE,py)=>{u();var t2=Cl(),n2=t2["__core-js_shared__"];py.exports=n2});var xy=O((RE,yy)=>{u();var bm=hy(),gy=(function(){var e=/[^.]+$/.exec(bm&&bm.keys&&bm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function a2(e){return!!gy&&gy in e}yy.exports=a2});var wy=O((EE,by)=>{u();var r2=Function.prototype,i2=r2.toString;function s2(e){if(e!=null){try{return i2.call(e)}catch{}try{return e+""}catch{}}return""}by.exports=s2});var Cy=O((PE,vy)=>{u();var o2=fy(),l2=xy(),c2=Il(),u2=wy(),m2=/[\\^$.*+?()[\]{}|]/g,d2=/^\[object .+?Constructor\]$/,f2=Function.prototype,p2=Object.prototype,h2=f2.toString,g2=p2.hasOwnProperty,y2=RegExp("^"+h2.call(g2).replace(m2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x2(e){if(!c2(e)||l2(e))return!1;var t=o2(e)?y2:d2;return t.test(u2(e))}vy.exports=x2});var ky=O((_E,Sy)=>{u();function b2(e,t){return e?.[t]}Sy.exports=b2});var Tl=O((LE,Iy)=>{u();var w2=Cy(),v2=ky();function C2(e,t){var n=v2(e,t);return w2(n)?n:void 0}Iy.exports=C2});var Gs=O((WE,Ty)=>{u();var S2=Tl(),k2=S2(Object,"create");Ty.exports=k2});var Oy=O((BE,Dy)=>{u();var My=Gs();function I2(){this.__data__=My?My(null):{},this.size=0}Dy.exports=I2});var Ny=O((qE,Ry)=>{u();function T2(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Ry.exports=T2});var Ay=O((YE,Ey)=>{u();var M2=Gs(),D2="__lodash_hash_undefined__",O2=Object.prototype,R2=O2.hasOwnProperty;function N2(e){var t=this.__data__;if(M2){var n=t[e];return n===D2?void 0:n}return R2.call(t,e)?t[e]:void 0}Ey.exports=N2});var Fy=O((KE,Py)=>{u();var E2=Gs(),A2=Object.prototype,P2=A2.hasOwnProperty;function F2(e){var t=this.__data__;return E2?t[e]!==void 0:P2.call(t,e)}Py.exports=F2});var zy=O((ZE,_y)=>{u();var _2=Gs(),z2="__lodash_hash_undefined__";function L2(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_2&&t===void 0?z2:t,this}_y.exports=L2});var Vy=O((XE,Ly)=>{u();var V2=Oy(),W2=Ny(),H2=Ay(),B2=Fy(),$2=zy();function _i(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}_i.prototype.clear=V2;_i.prototype.delete=W2;_i.prototype.get=H2;_i.prototype.has=B2;_i.prototype.set=$2;Ly.exports=_i});var Hy=O((eA,Wy)=>{u();function q2(){this.__data__=[],this.size=0}Wy.exports=q2});var wm=O((nA,By)=>{u();function U2(e,t){return e===t||e!==e&&t!==t}By.exports=U2});var Ks=O((rA,$y)=>{u();var Y2=wm();function G2(e,t){for(var n=e.length;n--;)if(Y2(e[n][0],t))return n;return-1}$y.exports=G2});var Uy=O((sA,qy)=>{u();var K2=Ks(),J2=Array.prototype,Z2=J2.splice;function j2(e){var t=this.__data__,n=K2(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():Z2.call(t,n,1),--this.size,!0}qy.exports=j2});var Gy=O((lA,Yy)=>{u();var X2=Ks();function Q2(e){var t=this.__data__,n=X2(t,e);return n<0?void 0:t[n][1]}Yy.exports=Q2});var Jy=O((uA,Ky)=>{u();var eT=Ks();function tT(e){return eT(this.__data__,e)>-1}Ky.exports=tT});var jy=O((dA,Zy)=>{u();var nT=Ks();function aT(e,t){var n=this.__data__,a=nT(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}Zy.exports=aT});var Qy=O((pA,Xy)=>{u();var rT=Hy(),iT=Uy(),sT=Gy(),oT=Jy(),lT=jy();function zi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}zi.prototype.clear=rT;zi.prototype.delete=iT;zi.prototype.get=sT;zi.prototype.has=oT;zi.prototype.set=lT;Xy.exports=zi});var t0=O((gA,e0)=>{u();var cT=Tl(),uT=Cl(),mT=cT(uT,"Map");e0.exports=mT});var r0=O((xA,a0)=>{u();var n0=Vy(),dT=Qy(),fT=t0();function pT(){this.size=0,this.__data__={hash:new n0,map:new(fT||dT),string:new n0}}a0.exports=pT});var s0=O((wA,i0)=>{u();function hT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i0.exports=hT});var Js=O((CA,o0)=>{u();var gT=s0();function yT(e,t){var n=e.__data__;return gT(t)?n[typeof t=="string"?"string":"hash"]:n.map}o0.exports=yT});var c0=O((kA,l0)=>{u();var xT=Js();function bT(e){var t=xT(this,e).delete(e);return this.size-=t?1:0,t}l0.exports=bT});var m0=O((TA,u0)=>{u();var wT=Js();function vT(e){return wT(this,e).get(e)}u0.exports=vT});var f0=O((DA,d0)=>{u();var CT=Js();function ST(e){return CT(this,e).has(e)}d0.exports=ST});var h0=O((RA,p0)=>{u();var kT=Js();function IT(e,t){var n=kT(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}p0.exports=IT});var y0=O((EA,g0)=>{u();var TT=r0(),MT=c0(),DT=m0(),OT=f0(),RT=h0();function Li(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Li.prototype.clear=TT;Li.prototype.delete=MT;Li.prototype.get=DT;Li.prototype.has=OT;Li.prototype.set=RT;g0.exports=Li});var w0=O((PA,b0)=>{u();var x0=y0(),NT="Expected a function";function vm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(NT);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return n.cache=i.set(r,s)||i,s};return n.cache=new(vm.Cache||x0),n}vm.Cache=x0;b0.exports=vm});var C0=O((_A,v0)=>{u();var ET=w0(),AT=500;function PT(e){var t=ET(e,function(a){return n.size===AT&&n.clear(),a}),n=t.cache;return t}v0.exports=PT});var k0=O((LA,S0)=>{u();var FT=C0(),_T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zT=/\\(\\)?/g,LT=FT(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_T,function(n,a,r,i){t.push(r?i.replace(zT,"$1"):a||n)}),t});S0.exports=LT});var T0=O((WA,I0)=>{u();function VT(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}I0.exports=VT});var E0=O((BA,N0)=>{u();var M0=Sl(),WT=T0(),HT=vl(),BT=kl(),$T=1/0,D0=M0?M0.prototype:void 0,O0=D0?D0.toString:void 0;function R0(e){if(typeof e=="string")return e;if(HT(e))return WT(e,R0)+"";if(BT(e))return O0?O0.call(e):"";var t=e+"";return t=="0"&&1/e==-$T?"-0":t}N0.exports=R0});var P0=O((qA,A0)=>{u();var qT=E0();function UT(e){return e==null?"":qT(e)}A0.exports=UT});var Cm=O((YA,F0)=>{u();var YT=vl(),GT=uy(),KT=k0(),JT=P0();function ZT(e,t){return YT(e)?e:GT(e,t)?[e]:KT(JT(e))}F0.exports=ZT});var Sm=O((KA,_0)=>{u();var jT=kl(),XT=1/0;function QT(e){if(typeof e=="string"||jT(e))return e;var t=e+"";return t=="0"&&1/e==-XT?"-0":t}_0.exports=QT});var L0=O((ZA,z0)=>{u();var eM=Cm(),tM=Sm();function nM(e,t){t=eM(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[tM(t[n++])];return n&&n==a?e:void 0}z0.exports=nM});var Ml=O((XA,V0)=>{u();var aM=L0();function rM(e,t,n){var a=e==null?void 0:aM(e,t);return a===void 0?n:a}V0.exports=rM});var H0=O((eP,W0)=>{u();var iM=Tl(),sM=(function(){try{var e=iM(Object,"defineProperty");return e({},"",{}),e}catch{}})();W0.exports=sM});var q0=O((nP,$0)=>{u();var B0=H0();function oM(e,t,n){t=="__proto__"&&B0?B0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}$0.exports=oM});var Y0=O((rP,U0)=>{u();var lM=q0(),cM=wm(),uM=Object.prototype,mM=uM.hasOwnProperty;function dM(e,t,n){var a=e[t];(!(mM.call(e,t)&&cM(a,n))||n===void 0&&!(t in e))&&lM(e,t,n)}U0.exports=dM});var K0=O((sP,G0)=>{u();var fM=9007199254740991,pM=/^(?:0|[1-9]\d*)$/;function hM(e,t){var n=typeof e;return t=t??fM,!!t&&(n=="number"||n!="symbol"&&pM.test(e))&&e>-1&&e%1==0&&e<t}G0.exports=hM});var j0=O((lP,Z0)=>{u();var gM=Y0(),yM=Cm(),xM=K0(),J0=Il(),bM=Sm();function wM(e,t,n,a){if(!J0(e))return e;t=yM(t,e);for(var r=-1,i=t.length,s=i-1,o=e;o!=null&&++r<i;){var l=bM(t[r]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=s){var d=o[l];c=a?a(d,l,o):void 0,c===void 0&&(c=J0(d)?d:xM(t[r+1])?[]:{})}gM(o,l,c),o=o[l]}return e}Z0.exports=wM});var Dl=O((uP,X0)=>{u();var vM=j0();function CM(e,t,n){return e==null?e:vM(e,t,n)}X0.exports=CM});var ix=O((xP,rx)=>{u();rx.exports=TM;function km(){return new DOMException("The request is not allowed","NotAllowedError")}async function kM(e){if(!navigator.clipboard)throw km();return navigator.clipboard.writeText(e)}async function IM(e){let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);let n=window.getSelection(),a=window.document.createRange();n.removeAllRanges(),a.selectNode(t),n.addRange(a);let r=!1;try{r=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(t)}if(!r)throw km()}async function TM(e){try{await kM(e)}catch(t){try{await IM(e)}catch(n){throw n||t||km()}}}});var fx=O((OP,dx)=>{u();var Mr=window.__kwirth__.uiwReactCodeMirror,Vi=Mr!=null&&"default"in Object(Mr)?Mr.default:Mr;typeof Vi!="function"&&Vi!=null&&typeof Vi.default<"u"&&(Vi=Vi.default);dx.exports=Object.assign({},typeof Mr=="object"&&Mr!==null?Mr:{},{default:Vi,__esModule:!0})});var hx=O((NP,px)=>{u();var Dr=window.__kwirth__.codeMirrorState,Wi=Dr!=null&&"default"in Object(Dr)?Dr.default:Dr;typeof Wi!="function"&&Wi!=null&&typeof Wi.default<"u"&&(Wi=Wi.default);px.exports=Object.assign({},typeof Dr=="object"&&Dr!==null?Dr:{},{default:Wi,__esModule:!0})});var yx=O((AP,gx)=>{u();var Or=window.__kwirth__.codeMirrorLangYaml,Hi=Or!=null&&"default"in Object(Or)?Or.default:Or;typeof Hi!="function"&&Hi!=null&&typeof Hi.default<"u"&&(Hi=Hi.default);gx.exports=Object.assign({},typeof Or=="object"&&Or!==null?Or:{},{default:Hi,__esModule:!0})});var bx=O((FP,xx)=>{u();var Rr=window.__kwirth__.codeMirrorSearch,Bi=Rr!=null&&"default"in Object(Rr)?Rr.default:Rr;typeof Bi!="function"&&Bi!=null&&typeof Bi.default<"u"&&(Bi=Bi.default);xx.exports=Object.assign({},typeof Rr=="object"&&Rr!==null?Rr:{},{default:Bi,__esModule:!0})});var vx=O((zP,wx)=>{u();var Nr=window.__kwirth__.codeMirrorView,$i=Nr!=null&&"default"in Object(Nr)?Nr.default:Nr;typeof $i!="function"&&$i!=null&&typeof $i.default<"u"&&($i=$i.default);wx.exports=Object.assign({},typeof Nr=="object"&&Nr!==null?Nr:{},{default:$i,__esModule:!0})});var Sx=O((VP,Cx)=>{u();var Er=window.__kwirth__.codeMirrorCommands,qi=Er!=null&&"default"in Object(Er)?Er.default:Er;typeof qi!="function"&&qi!=null&&typeof qi.default<"u"&&(qi=qi.default);Cx.exports=Object.assign({},typeof Er=="object"&&Er!==null?Er:{},{default:qi,__esModule:!0})});var Ix=O((HP,kx)=>{u();var Ar=window.__kwirth__.codeMirrorLanguage,Ui=Ar!=null&&"default"in Object(Ar)?Ar.default:Ar;typeof Ui!="function"&&Ui!=null&&typeof Ui.default<"u"&&(Ui=Ui.default);kx.exports=Object.assign({},typeof Ar=="object"&&Ar!==null?Ar:{},{default:Ui,__esModule:!0})});var Mx=O(($P,Tx)=>{u();var Pr=window.__kwirth__.codeMirrorThemeOneDark,Yi=Pr!=null&&"default"in Object(Pr)?Pr.default:Pr;typeof Yi!="function"&&Yi!=null&&typeof Yi.default<"u"&&(Yi=Yi.default);Tx.exports=Object.assign({},typeof Pr=="object"&&Pr!==null?Pr:{},{default:Yi,__esModule:!0})});var Mm=O((y3,Hx)=>{u();var _r=window.__kwirth__.recharts,Ki=_r!=null&&"default"in Object(_r)?_r.default:_r;typeof Ki!="function"&&Ki!=null&&typeof Ki.default<"u"&&(Ki=Ki.default);Hx.exports=Object.assign({},typeof _r=="object"&&_r!==null?_r:{},{default:Ki,__esModule:!0})});u();var Em=`.custom-fm-magnify.file-explorer {\r
36
+ border: 1px solid #666;\r
37
+ }\r
38
+ \r
39
+ .custom-fm-magnify .sb-folder-name {\r
40
+ color: var(--mui-palette-text-primary) !important;\r
41
+ }\r
42
+ \r
43
+ .custom-fm-magnify .category-button {\r
44
+ color: var(--mui-palette-text-primary) !important;\r
45
+ background-color: var(--mui-palette-background-default) !important;\r
46
+ }\r
47
+ \r
48
+ .custom-fm-magnify .category-button-active {\r
49
+ background-color: var(--mui-palette-text-primary) !important;\r
50
+ color: var(--mui-palette-background-default) !important;\r
51
+ }\r
52
+ \r
53
+ .custom-fm-magnify .navigation-pane {\r
54
+ background-color: var(--mui-palette-background-paper) !important;\r
55
+ }\r
56
+ \r
57
+ .custom-fm-magnify .sidebar-resize {\r
58
+ border-right: 1px solid #666 !important;\r
59
+ }\r
60
+ \r
61
+ .custom-fm-magnify .toolbar {\r
62
+ background-color: var(--mui-palette-background-default) !important;\r
63
+ border-top-left-radius: 8px;\r
64
+ border-top-right-radius: 8px;\r
65
+ border-bottom: 1px solid #666;\r
66
+ box-sizing: initial !important;\r
67
+ }\r
68
+ \r
69
+ .custom-fm-magnify .files-container {\r
70
+ background-color: var(--mui-palette-background-default) !important;\r
71
+ }\r
72
+ \r
73
+ .custom-fm-magnify .files-container .own-layout * {\r
74
+ user-select: text !important;\r
75
+ }\r
76
+ \r
77
+ .custom-fm-magnify .category-view, .custom-fm-magnify .toggle-view {\r
78
+ background-color: var(--mui-palette-background-paper) !important;\r
79
+ background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) !important;\r
80
+ box-shadow: var(--mui-shadows-8) !important;\r
81
+ color: var(--mui-palette-text-primary) !important;\r
82
+ border: none !important;\r
83
+ border-radius: var(--mui-shape-borderRadius) !important;\r
84
+ padding: 8px 16px;\r
85
+ }\r
86
+ \r
87
+ .custom-fm-magnify .files-header {\r
88
+ border-top: 1px solid #666 !important;\r
89
+ }\r
90
+ \r
91
+ .custom-fm-magnify .files.grid, .custom-fm-magnify .files.list, .custom-fm-magnify .statusbar, .custom-fm-magnify .files-header, .custom-fm-magnify .column-header, .custom-fm-magnify .bread-crumb-container, .custom-fm-magnify .sb-folders-list {\r
92
+ background-color: var(--mui-palette-background-default) !important;\r
93
+ box-sizing: initial !important;\r
94
+ }\r
95
+ \r
96
+ .file-explorer .toolbar .file-action-container .file-action {\r
97
+ background-color: var(--mui-palette-background-default) !important;\r
98
+ color: var(--mui-palette-text-primary) !important;\r
99
+ transition: all 0.2s ease;\r
100
+ }\r
101
+ \r
102
+ .file-explorer .toolbar .file-action-container .file-action-disabled {\r
103
+ background-color: var(--mui-palette-background-default) !important;\r
104
+ color: var(--mui-palette-action-disabled) !important;\r
105
+ transition: all 0.2s ease;\r
106
+ }\r
107
+ \r
108
+ .file-explorer .toolbar .file-action-container .file-action:hover {\r
109
+ background-color: var(--mui-palette-action-selected) !important;\r
110
+ \r
111
+ }`;var Am=`.react-resizable {\r
112
+ position: relative;\r
113
+ }\r
114
+ \r
115
+ .react-resizable-handle {\r
116
+ background: none !important;\r
117
+ }\r
118
+ \r
119
+ #draggable-dialog-title {\r
120
+ user-select: none;\r
121
+ }\r
122
+ \r
123
+ .MuiDialogContent-root::-webkit-scrollbar {\r
124
+ width: 8px;\r
125
+ }\r
126
+ .MuiDialogContent-root::-webkit-scrollbar-thumb {\r
127
+ background: #ccc;\r
128
+ border-radius: 4px;\r
129
+ }\r
130
+ .MuiDialogContent-root::-webkit-scrollbar-thumb:hover {\r
131
+ background: #bbb;\r
132
+ }\r
133
+ \r
134
+ \r
135
+ \r
136
+ \r
137
+ \r
138
+ \r
139
+ \r
140
+ \r
141
+ \r
142
+ \r
143
+ \r
144
+ \r
145
+ \r
146
+ /* .react-resizable-handle {\r
147
+ transition: none !important;\r
148
+ }\r
149
+ .react-resizable-handle {\r
150
+ position: absolute;\r
151
+ width: 15px;\r
152
+ height: 15px;\r
153
+ z-index: 2000;\r
154
+ }\r
155
+ .react-resizable-handle-se { right: 0; bottom: 0; cursor: se-resize; }\r
156
+ .react-resizable-handle-sw { left: 0; bottom: 0; cursor: sw-resize; } */\r
157
+ \r
158
+ \r
159
+ \r
160
+ \r
161
+ \r
162
+ \r
163
+ \r
164
+ \r
165
+ \r
166
+ /* .react-resizable {\r
167
+ position: relative;\r
168
+ }\r
169
+ \r
170
+ .react-resizable-handle-se {\r
171
+ position: absolute;\r
172
+ width: 20px;\r
173
+ height: 20px;\r
174
+ bottom: 0;\r
175
+ right: 0;\r
176
+ cursor: se-resize;\r
177
+ z-index: 1000;\r
178
+ }\r
179
+ \r
180
+ .react-resizable-handle-sw {\r
181
+ position: absolute;\r
182
+ width: 20px;\r
183
+ height: 20px;\r
184
+ bottom: 0;\r
185
+ left: 0;\r
186
+ cursor: sw-resize;\r
187
+ z-index: 1000;\r
188
+ }\r
189
+ \r
190
+ .react-resizable-handle-se::after,\r
191
+ .react-resizable-handle-sw::after {\r
192
+ content: "";\r
193
+ position: absolute;\r
194
+ width: 8px;\r
195
+ height: 8px;\r
196
+ border-bottom: 2px solid #999;\r
197
+ }\r
198
+ \r
199
+ .react-resizable-handle-se::after {\r
200
+ right: 4px;\r
201
+ bottom: 4px;\r
202
+ border-right: 2px solid #999;\r
203
+ }\r
204
+ \r
205
+ .react-resizable-handle-sw::after {\r
206
+ left: 4px;\r
207
+ bottom: 4px;\r
208
+ border-left: 2px solid #999;\r
209
+ }\r
210
+ */\r
211
+ \r
212
+ \r
213
+ \r
214
+ \r
215
+ \r
216
+ \r
217
+ \r
218
+ \r
219
+ \r
220
+ \r
221
+ \r
222
+ \r
223
+ \r
224
+ \r
225
+ /* .react-resizable-handle {\r
226
+ position: absolute;\r
227
+ width: 20px;\r
228
+ height: 20px;\r
229
+ bottom: 0;\r
230
+ right: 0;\r
231
+ background: bottomRightIcon;\r
232
+ cursor: se-resize;\r
233
+ z-index: 1000;\r
234
+ }\r
235
+ \r
236
+ .react-resizable-handle::after {\r
237
+ content: "";\r
238
+ position: absolute;\r
239
+ right: 3px;\r
240
+ bottom: 3px;\r
241
+ width: 5px;\r
242
+ height: 5px;\r
243
+ border-right: 2px solid #999;\r
244
+ border-bottom: 2px solid #999;\r
245
+ } */`;u();var jn=I(Rt(),1);u();var fo=class{},po=class{};u();var Vm=I(Jt(),1),cs=I(fe(),1),Wm=(0,cs.jsx)(Vm.Search,{}),Hm=e=>(0,cs.jsx)(cs.Fragment,{});var Pe=I(Qa(),1);u();u();var us=[{name:"ComponentStatus",priority:5},{name:"Node",priority:1},{name:"V1APIResource",priority:5},{name:"Namespace",priority:1},{name:"NodeMetrics",priority:3},{name:"Pod",priority:2},{name:"PodMetrics",priority:3},{name:"Deployment",priority:2},{name:"DaemonSet",priority:2},{name:"ReplicaSet",priority:2},{name:"ReplicationController",priority:2},{name:"StatefulSet",priority:2},{name:"Job",priority:2},{name:"CronJob",priority:2},{name:"ConfigMap",priority:2},{name:"Secret",priority:2},{name:"ResourceQuota",priority:4},{name:"LimitRange",priority:4},{name:"HorizontalPodAutoscaler",priority:4},{name:"PodDisruptionBudget",priority:4},{name:"PriorityClass",priority:4},{name:"RuntimeClass",priority:4},{name:"Lease",priority:9},{name:"ValidatingWebhookConfiguration",priority:8},{name:"MutatingWebhookConfiguration",priority:8},{name:"Service",priority:2},{name:"Endpoints",priority:3},{name:"Ingress",priority:2},{name:"IngressClass",priority:5},{name:"NetworkPolicy",priority:3},{name:"PersistentVolumeClaim",priority:2},{name:"PersistentVolume",priority:2},{name:"StorageClass",priority:3},{name:"VolumeAttachment",priority:4},{name:"CSIDriver",priority:5},{name:"CSINode",priority:5},{name:"CSIStorageCapacity",priority:5},{name:"ServiceAccount",priority:5},{name:"ClusterRole",priority:2},{name:"Role",priority:2},{name:"ClusterRoleBinding",priority:2},{name:"RoleBinding",priority:2},{name:"CustomResourceDefinition",priority:4},{name:"CRD Instances",priority:4}].sort((e,t)=>e.priority-t.priority),Xl=class{constructor(){this.source=us;this.sync=us}},ei=class{constructor(){this.palette="light";this.logLines=5e3;this.dataConfig=new Xl;this.dataHelm=!1;this.dataManagedFields=!1;this.tracing=!1;this.customActions=[]}};var go=class{constructor(){this.clusterInfo=void 0;this.paused=!1;this.started=!1;this.files=[];this.clusterEvents=[];this.currentPath="/";this.timers=[];this.windows=[];this.contentWindows=[];this.pendingWebSocketRequests=new Map;this.metricsCluster=[];this.metricsProviderMissing=!1;this.eventsProviderMissing=!1;this.metricsPodDetail=[];this.logSearchResults=[];this.logSearchDone=!0;this.updateNamespaces=void 0;this.userPreferences=new ei}};u();var Qe=I(je(),1);var Le=I(ht(),1),mt=I(Qa(),1),y1=I(Um(),1);u();u();var Ft=[];for(let e=0;e<256;++e)Ft.push((e+256).toString(16).slice(1));function Ym(e,t=0){return(Ft[e[t+0]]+Ft[e[t+1]]+Ft[e[t+2]]+Ft[e[t+3]]+"-"+Ft[e[t+4]]+Ft[e[t+5]]+"-"+Ft[e[t+6]]+Ft[e[t+7]]+"-"+Ft[e[t+8]]+Ft[e[t+9]]+"-"+Ft[e[t+10]]+Ft[e[t+11]]+Ft[e[t+12]]+Ft[e[t+13]]+Ft[e[t+14]]+Ft[e[t+15]]).toLowerCase()}u();var Ql,W1=new Uint8Array(16);function ec(){if(!Ql){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ql=crypto.getRandomValues.bind(crypto)}return Ql(W1)}u();u();var H1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),tc={randomUUID:H1};function B1(e,t,n){if(tc.randomUUID&&!t&&!e)return tc.randomUUID();e=e||{};let a=e.random??e.rng?.()??ec();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let r=0;r<16;++r)t[n+r]=a[r];return t}return Ym(a)}var rt=B1;var Qs=I(Rt(),1);u();var w=I(Jt(),1);u();var Ln=I(ht(),1),bt=I(fe(),1),Gm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"m9 19 1.41-1.41L5.83 13H22v-2H5.83l4.59-4.59L9 5l-7 7z"})}),Km=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11m-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2M5 20v2h14v-2z"})}),Jm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M4 11h16v2H4z"})}),nc=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M7 9H2V7h5zm0 3H2v2h5zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3M2 19h10v-2H2z"})}),ms=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.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-2M5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2zM19 19H5L19 5zm-2-2v-1.5h-5V17z"})}),Zm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M18 16h-2v-1H8v1H6v-1H2v5h20v-5h-4zm2-8h-3V6c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v4h4v-2h2v2h8v-2h2v2h4v-4c0-1.1-.9-2-2-2m-5 0H9V6h6z"})}),jm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"})}),Xm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"})}),Qm=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"})}),Vn=e=>(0,bt.jsx)(Ln.SvgIcon,{...e,children:(0,bt.jsx)("path",{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37M2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3z"})});u();var Ye=I(fe(),1),ed=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M13.95 13.5h-.23c-.18.11-.26.32-.18.5l.86 2.11c.83-.53 1.46-1.32 1.79-2.25l-2.23-.36h-.01m-3.45.29a.415.415 0 0 0-.38-.29h-.08l-2.22.37c.33.92.96 1.7 1.79 2.23l.85-2.07V14c.04-.05.04-.14.04-.21m1.83.81a.378.378 0 0 0-.51-.15c-.07.05-.12.08-.15.15h-.01l-1.09 1.97c.78.26 1.62.31 2.43.12c.14-.03.29-.07.43-.12l-1.09-1.97h-.01m3.45-4.57L14.1 11.5l.01.03a.37.37 0 0 0-.04.53c.05.06.11.1.18.12l.01.01l2.17.62c.07-.97-.14-1.95-.65-2.78m-3.11.16c.01.21.18.37.39.36c.08 0 .15-.02.21-.05h.01l1.83-1.31a4.45 4.45 0 0 0-2.57-1.24l.13 2.24m-1.94.31c.17.11.4.08.52-.09c.05-.06.07-.13.08-.21h.01l.12-2.25c-.15.02-.3.05-.46.08c-.8.18-1.54.58-2.12 1.16l1.84 1.31h.01m-.99 1.69c.2-.05.32-.26.26-.46c0-.08-.05-.14-.11-.19v-.01L8.21 10c-.52.86-.74 1.84-.63 2.82l2.16-.62v-.01m1.64.66l.62.3l.62-.3l.15-.67l-.43-.53h-.69l-.43.53l.16.67m10.89 1.32L20.5 6.5c-.09-.42-.37-.76-.74-.94l-7.17-3.43c-.37-.17-.81-.17-1.19 0L4.24 5.56c-.37.18-.65.52-.74.94l-1.77 7.67c-.05.2-.05.4 0 .59c.01.06.03.12.05.18c.03.09.08.19.13.27c.03.04.05.08.09.11l4.95 6.18c.02 0 .05.04.05.06c.1.09.19.16.28.22c.12.08.26.14.4.17c.11.05.23.05.32.05h8.12c.07 0 .14-.03.2-.05c.05-.01.1-.03.14-.04c.04-.02.07-.03.11-.05c.05-.02.1-.05.15-.08c.12-.08.23-.18.33-.28l.15-.2l4.8-5.98c.1-.12.17-.25.22-.38c.02-.06.04-.12.05-.18c.05-.19.05-.4 0-.59m-7.43 2.99c.02.06.04.12.07.17c-.04.08-.06.17-.03.26c.12.24.23.46.38.68c.08.11.16.23.24.34c0 .03.03.08.04.12c.12.2.06.46-.15.59s-.47.05-.59-.15c-.01-.03-.02-.05-.03-.08c-.02-.03-.04-.09-.06-.09c-.05-.15-.09-.28-.12-.41c-.09-.25-.17-.49-.3-.72a.375.375 0 0 0-.21-.14l-.08-.16c-1.29.48-2.7.48-3.97-.01l-.1.18c-.07.01-.14.04-.19.09c-.14.24-.24.49-.33.77c-.03.13-.07.26-.12.4c-.02 0-.04.07-.06.1a.43.43 0 0 1-.81-.29c.01-.03.03-.05.04-.08c.04-.03.04-.08.04-.11c.09-.12.16-.23.24-.35c.16-.21.29-.45.39-.69a.54.54 0 0 0-.03-.25l.07-.18a5.611 5.611 0 0 1-2.47-3.09l-.2.03a.388.388 0 0 0-.23-.09c-.27.05-.51.13-.77.22c-.11.06-.24.11-.37.15c-.03.01-.07.02-.13.03a.438.438 0 0 1-.54-.27c-.07-.23.04-.47.28-.55c.02 0 .05-.01.08-.01v-.01h.01l.11-.02c.14-.04.28-.04.41-.04c.26 0 .52-.06.77-.12c.08-.05.14-.11.19-.19l.19-.05c-.21-1.36.1-2.73.86-3.87l-.14-.12c0-.09-.03-.18-.08-.25c-.2-.17-.41-.32-.64-.45c-.12-.06-.24-.13-.36-.21c-.02-.02-.06-.05-.08-.07l-.01-.01c-.2-.16-.25-.42-.11-.63c.09-.1.21-.15.35-.15c.11.01.21.05.3.12l.09.07c.1.09.19.2.28.3c.18.19.37.37.58.52c.08.04.17.05.26.03l.15.11c.75-.8 1.73-1.36 2.8-1.6c.25-.06.52-.1.78-.12l.01-.18a.45.45 0 0 0 .14-.23c.01-.26-.01-.52-.05-.77c-.03-.13-.05-.27-.06-.41V5.1c-.02-.24.15-.45.39-.48s.44.15.47.38v.22c-.01.14-.03.28-.06.41c-.04.25-.06.51-.05.77c.02.1.07.17.14.22l.01.19c1.36.12 2.62.73 3.56 1.72l.16-.12c.09.02.18.01.26-.03c.21-.15.41-.33.58-.52c.09-.1.18-.2.28-.3c.03-.02.07-.06.1-.06c.17-.18.44-.18.59 0c.19.16.18.43 0 .6c0 .02-.03.04-.06.06a2.495 2.495 0 0 1-.44.28c-.23.13-.45.28-.64.45c-.06.07-.09.15-.08.24l-.16.14a5.44 5.44 0 0 1 .88 3.86l.19.05c.04.08.11.14.19.18c.25.07.51.11.77.14h.41c.03.03.08.04.12.05c.24.03.4.25.37.49c-.05.23-.24.4-.48.37c-.03-.01-.07-.01-.07-.02v-.01c-.06 0-.1-.01-.14-.02c-.13-.04-.25-.09-.36-.15c-.26-.1-.5-.17-.77-.21c-.09 0-.17 0-.23.08c-.07-.01-.13-.02-.19-.03c-.41 1.31-1.31 2.41-2.47 3.11Z"})}),td=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M10 3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10 0h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM10 13H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm8 1h-2v2h-2v2h2v2h2v-2h2v-2h-2z"})}),nd=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M7.05 6.462a2 2 0 0 0 2.63-1.519l.32-1.72a9 9 0 0 1 3.998 0l.322 1.72a2 2 0 0 0 2.63 1.519l1.649-.58a9 9 0 0 1 2.001 3.46l-1.33 1.14a2 2 0 0 0 0 3.037l1.33 1.139a9 9 0 0 1-2.001 3.46l-1.65-.58a2 2 0 0 0-2.63 1.519L14 20.777a9 9 0 0 1-3.998 0l-.322-1.72a2 2 0 0 0-2.63-1.519l-1.649.58a9 9 0 0 1-2.001-3.46l1.33-1.14a2 2 0 0 0 0-3.036L3.4 9.342a9 9 0 0 1 2-3.46zM12 9a3 3 0 1 1 0 6a3 3 0 0 1 0-6",clipRule:"evenodd"})}),ad=({size:e})=>(0,Ye.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M12 12h7c-.53 4.11-3.28 7.78-7 8.92zH5V6.3l7-3.11M12 1L3 5v6c0 5.55 3.84 10.73 9 12c5.16-1.27 9-6.45 9-12V5z"})}),rd=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",d:"M2 5.077S3.667 2 12 2s10 3.077 10 3.077v13.846S20.333 22 12 22S2 18.923 2 18.923V5.077ZM2 13s3.333 3 10 3s10-3 10-3M2 7s3.333 3 10 3s10-3 10-3"})}),id=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 1024 1024",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M992 512H832v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H704q-27 0-45.5-18.5T640 960V832q0-26 18.5-45t45.5-19h64V512H320v256h64q26 0 45 19t19 45v128q0 27-19 45.5t-45 18.5H192q-27 0-45.5-18.5T128 960V832q0-26 18.5-45t45.5-19h64V512H32q-13 0-22.5-9.5T0 480t9.5-22.5T32 448h480V256h-64q-27 0-45.5-18.5T384 192V64q0-26 18.5-45T448 0h192q26 0 45 19t19 45v128q0 27-19 45.5T640 256h-64v192h416q13 0 22.5 9.5t9.5 22.5t-9.5 22.5T992 512z"})}),sd=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",children:(0,Ye.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.248 1.87l4.485 2.562L8 7.136L3.268 4.432l4.484-2.563a.5.5 0 0 1 .496 0ZM2.5 10.84V5.72l4.75 2.714v5.409l-4.498-2.57a.5.5 0 0 1-.252-.435Zm6.25 3.004l4.498-2.57a.5.5 0 0 0 .252-.435V5.721L8.75 8.435v5.409ZM8.992.567a2 2 0 0 0-1.984 0l-5 2.857A2 2 0 0 0 1 5.161v5.678a2 2 0 0 0 1.008 1.737l5 2.857a2 2 0 0 0 1.984 0l5-2.857A2 2 0 0 0 15 10.839V5.161a2 2 0 0 0-1.008-1.737l-5-2.857Z",clipRule:"evenodd"})}),od=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M1 13v10h22V13Zm12 6H4v-2h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1ZM1 1v10h22V1Zm12 6H4V5h9Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Zm3 0a1 1 0 1 1 1-1a1 1 0 0 1-1 1Z"})}),ld=({size:e})=>(0,Ye.jsx)("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:(0,Ye.jsx)("path",{fillRule:"evenodd",d:"M4 7H3V2h1v5zm-1 7h1v-3H3v3zm5 0h1V8H8v6zm5 0h1v-2h-1v2zm1-12h-1v6h1V2zM9 2H8v2h1V2zM5 8H2c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5-3H7c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1zm5 4h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1z",fill:"currentColor"})}),cd=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",children:[(0,Ye.jsx)("path",{d:"M1.5 12 7 3h10l5.5 9-5.5 9H7z"}),(0,Ye.jsx)("path",{d:"m5 14 5-5 5 5m4 0-4.5-4.5-1 1m-5 2V14"})]})}),ud=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"m18.5 10.57-.2.37c.26-.78.11-1.63.15-2.37l-.07-.02c-.07-1.85-1.67-3.82-3.09-4.48-1.23-.57-3.12-.67-3.99-.24.12-.11.6-.15.45-.23-1.37.13-1.06.47-2.11.74-.29.28.86-.22.23.16-.56.13-.82-.12-1.65.74.07.12.53-.35.15.12-.79-.09-2.48 1.8-2.84 2.42l.19.04c-.31.77-.72 1.26-.77 1.72-.08 1.14-.45 3.21.08 3.85l-.06.53.23.45-.12.01c.58 1.83.62.04 1.39 1.94-.11-.04-.23-.08-.39-.32-.02.19.24.69.54 1.08l-.12.14c.16.31.32.38.43.49-.63-.35.57 1.13.7 1.32l.1-.17c-.02.24.17.56.53 1.01l.3-.01c.13.24.58.68.85.7l-.18.24c.69.2.33.29 1.18.59l-.17-.3c.43.37.56.7 1.17.98.85.3.96.18 1.82.43-.73 0-1.59 0-2.17-.22-3.96-1.07-7.56-5.72-7.32-10.5-.06-.97.1-2.18-.06-2.42.22-.74.48-1.64 1.01-2.71-.04-.07.09.21.36-.24.16-.36.29-.75.5-1.1l.1-.03c.11-.61 1.43-1.55 1.85-2.02v.18c.86-.81 2.4-1.35 3.26-1.73-.23.25.51-.03 1.04-.06l-.49.28c.63-.16.6.07 1.25-.03-.23.03-.5.1-.46.16.72.08.84-.22 1.51 0l-.05-.2c.94.34 1.13.28 2.14.82.36.01.4-.22.93 0 .1.16-.02.19.64.59.07-.03-.13-.22-.27-.37 1.3.71 2.75 2.22 3.18 3.84-.41-.74-.04.39-.18.33.18.49.33 1 .43 1.53-.12-.43-.39-1.48-.86-2.15-.03.43-.6-.3-.29.66.22.34.05-.35.34.25 0 .29.11.58.18.95-.1-.02-.22-.41-.3-.31.1.5.27.72.33.76-.03.08-.12-.08-.12.24.04.74.21.43.29.46-.09.37-.41.79-.25 1.42l-.2-.56c-.05.53.11.63-.13 1.28.18-.6.16-1.1-.01-.85.09.82-.65 1.45-.58 1.98l-.21-.29c-.57.83-.01.45-.4 1.06.14-.23-.07-.08.11-.36-.12.01-.55.53-.94.83-1.54 1.23-3.39 1.4-5.15.73h-.01c.01-.04 0-.09-.12-.17-1.51-1.15-2.4-2.13-2.11-4.41.25-.17.31-1.12.84-1.45.32-.71 1.28-1.36 2.31-1.38 1.05-.06 1.94.56 2.39 1.14-.82-.75-2.14-.98-3.28-.43-1.15.53-1.84 1.8-1.76 3.07.06-.07.1-.02.12-.18-.03 2.47 2.66 4.28 4.6 3.37l.03.05c.78-.22.68-.39 1.19-.75-.04.09-.34.3-.16.3.25-.06 1.03-.79 1.42-1.13.17-.38-.1-.23.15-.69l.3-.15c.17-.48.35-.75.35-1.32"})}),ac=({size:e})=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,Ye.jsx)("path",{fill:"currentColor",d:"M17.61.455a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41M12.92.8C8.923.777 5.137 2.941 3.148 6.451a5 5 0 0 1 .26-.007 4.9 4.9 0 0 1 2.585.737A8.32 8.32 0 0 1 12.688 3.6 4.94 4.94 0 0 1 13.723.834 11 11 0 0 0 12.92.8m9.226 4.994a4.9 4.9 0 0 1-1.918 2.246 8.36 8.36 0 0 1-.273 8.303 4.9 4.9 0 0 1 1.632 2.54 11.16 11.16 0 0 0 .559-13.089M3.41 7.932A3.41 3.41 0 0 0 0 11.342a3.41 3.41 0 0 0 3.41 3.409 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41zm2.027 7.866a4.9 4.9 0 0 1-2.915.358 11.1 11.1 0 0 0 7.991 6.698 11.2 11.2 0 0 0 2.422.249 4.88 4.88 0 0 1-.999-2.85 9 9 0 0 1-.836-.136 8.3 8.3 0 0 1-5.663-4.32zm11.405.928a3.41 3.41 0 0 0-3.41 3.41 3.41 3.41 0 0 0 3.41 3.41 3.41 3.41 0 0 0 3.41-3.41 3.41 3.41 0 0 0-3.41-3.41"})});var x=I(fe(),1),A=new Map,yo=[{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0}],md=[{name:"Overview",isDirectory:!0,path:"/overview",class:"classOverview",layout:"own"},{name:"Cluster",isDirectory:!0,path:"/cluster",class:"classCluster",layout:"own"},{name:"Overview",isDirectory:!0,path:"/cluster/overview",class:"classClusterOverview",layout:"own"},{name:"Nodes",isDirectory:!0,path:"/cluster/Node",class:"classmenu",children:"Node"},{name:"Namespaces",isDirectory:!0,path:"/cluster/Namespace",class:"classNamespace",children:"Namespace"},{name:"API Resources",isDirectory:!0,path:"/cluster/V1APIResource",class:"classV1APIResource",children:"V1APIResource"},{name:"Images",isDirectory:!0,path:"/cluster/Image",class:"classImage",children:"Image"},{name:"Component status",isDirectory:!0,path:"/cluster/ComponentStatus",class:"classComponentStatus",children:"ComponentStatus"},{name:"Workload",isDirectory:!0,path:"/workload",class:"classWorkload",layout:"own"},{name:"Overview",isDirectory:!0,path:"/workload/overview",class:"classmenu",layout:"own"},{name:"Pods",isDirectory:!0,path:"/workload/Pod",layout:"list",class:"classPod",categories:["Node","Namespace","controller"],children:"Pod"},{name:"Deployments",isDirectory:!0,path:"/workload/Deployment",class:"classDeployment",categories:["Namespace"],children:"Deployment"},{name:"Daemon Sets",isDirectory:!0,path:"/workload/DaemonSet",class:"classDaemonSet",categories:["Namespace"],children:"DaemonSet"},{name:"Replica Sets",isDirectory:!0,path:"/workload/ReplicaSet",class:"classReplicaSet",categories:["Namespace"],children:"ReplicaSet"},{name:"Replication Controllers",isDirectory:!0,path:"/workload/ReplicationController",class:"classReplicationController",categories:["Namespace"],children:"ReplicationController"},{name:"Stateful Sets",isDirectory:!0,path:"/workload/StatefulSet",class:"classStatefulSet",categories:["Namespace"],children:"StatefulSet"},{name:"Jobs",isDirectory:!0,path:"/workload/Job",class:"classJob",categories:["Namespace"],children:"Job"},{name:"Cron jobs",isDirectory:!0,path:"/workload/CronJob",class:"classCronJob",categories:["Namespace"],children:"CronJob"},{name:"Config",isDirectory:!0,path:"/config",class:"classConfig",layout:"own"},{name:"Overview",isDirectory:!0,path:"/config/overview",class:"classmenu",layout:"own"},{name:"Config Maps",isDirectory:!0,path:"/config/ConfigMap",class:"classConfigMap",categories:["Namespace"],children:"ConfigMap"},{name:"Secrets",isDirectory:!0,path:"/config/Secret",class:"classSecret",categories:["Namespace"],children:"Secret"},{name:"Resource Quota",isDirectory:!0,path:"/config/ResourceQuota",class:"classResourceQuota",categories:["Namespace"],children:"ResourceQuota"},{name:"Limit Range",isDirectory:!0,path:"/config/LimitRange",class:"classLimitRange",categories:["Namespace"],children:"LimitRange"},{name:"Horizontal Pod Autoscaler",isDirectory:!0,path:"/config/HorizontalPodAutoscaler",class:"classHorizontalPodAutoscaler",categories:["Namespace"],children:"HorizontalPodAutoscaler"},{name:"Pod Disruption Budget",isDirectory:!0,path:"/config/PodDisruptionBudget",class:"classPodDisruptionBudget",categories:["Namespace"],children:"PodDisruptionBudget"},{name:"Priority Classes",isDirectory:!0,path:"/config/PriorityClass",class:"classPriorityClass",children:"PriorityClass"},{name:"Runtime Classes",path:"/config/RuntimeClass",isDirectory:!0,class:"classRuntimeClass",children:"RuntimeClass"},{name:"Leases",isDirectory:!0,path:"/config/Lease",class:"classLease",categories:["Namespace"],children:"Lease"},{name:"Validating webhooks",isDirectory:!0,path:"/config/ValidatingWebhookConfiguration",class:"classValidatingWebhookConfiguration",children:"ValidatingWebhookConfiguration"},{name:"Mutating webhooks",isDirectory:!0,path:"/config/MutatingWebhookConfiguration",class:"classMutatingWebhookConfiguration",children:"MutatingWebhookConfiguration"},{name:"Network",isDirectory:!0,path:"/network",class:"classNetwork",layout:"own"},{name:"Overview",isDirectory:!0,path:"/network/overview",class:"classmenu",layout:"own"},{name:"Services",isDirectory:!0,path:"/network/Service",layout:"list",class:"classService",categories:["Namespace"],children:"Service"},{name:"Endpoints\xA0",isDirectory:!0,path:"/network/Endpoints",layout:"list",class:"classEndpoints",categories:["Namespace"],children:"Endpoints"},{name:"Ingresses",isDirectory:!0,path:"/network/Ingress",layout:"list",class:"classIngress",categories:["Namespace"],children:"Ingress"},{name:"Ingress classes",isDirectory:!0,path:"/network/IngressClass",layout:"list",class:"classIngressClass",children:"IngressClass"},{name:"Network policies",isDirectory:!0,path:"/network/NetworkPolicy",layout:"list",class:"classNetworkPolicy",categories:["Namespace"],children:"NetworkPolicy"},{name:"Storage",isDirectory:!0,path:"/storage",class:"classStorage",layout:"own"},{name:"Overview",isDirectory:!0,path:"/storage/overview",class:"classmenu",layout:"own"},{name:"Persistent volume claims",isDirectory:!0,path:"/storage/PersistentVolumeClaim",class:"classPersistentVolumeClaim",categories:["Namespace"],children:"PersistentVolumeClaim"},{name:"Persistent volumes",isDirectory:!0,path:"/storage/PersistentVolume",class:"classPersistentVolume",children:"PersistentVolume"},{name:"Volume attachments",isDirectory:!0,path:"/storage/VolumeAttachment",class:"classVolumeAttachment",children:"VolumeAttachment"},{name:"Storage classes",isDirectory:!0,path:"/storage/StorageClass",class:"classStorageClass",children:"StorageClass"},{name:"CSI Drivers",isDirectory:!0,path:"/storage/CSIDriver",class:"classCSIDriver",children:"CSIDriver"},{name:"CSI Nodes",isDirectory:!0,path:"/storage/CSINode",class:"classCSINode",children:"CSINode"},{name:"CSI Storage Capacity",isDirectory:!0,path:"/storage/CSIStorageCapacity",class:"classCSIStorageCapacity",children:"CSIStorageCapacity"},{name:"Access",isDirectory:!0,path:"/access",class:"classAccess",layout:"own"},{name:"Overview",isDirectory:!0,path:"/access/overview",class:"classmenu",layout:"own"},{name:"Service accounts",isDirectory:!0,path:"/access/ServiceAccount",class:"classServiceAccount",categories:["Namespace"],children:"ServiceAccount"},{name:"Cluster roles",isDirectory:!0,path:"/access/ClusterRole",class:"classClusterRole",children:"ClusterRole"},{name:"Roles",isDirectory:!0,path:"/access/Role",class:"classRole",categories:["Namespace"],children:"Role"},{name:"Cluster role bindings",isDirectory:!0,path:"/access/ClusterRoleBinding",class:"classClusterRoleBinding",children:"ClusterRoleBinding"},{name:"Role bindings",isDirectory:!0,path:"/access/RoleBinding",class:"classRoleBinding",categories:["Namespace"],children:"RoleBinding"},{name:"Custom",isDirectory:!0,path:"/custom",class:"classCustom",layout:"own"},{name:"Definitions",isDirectory:!0,path:"/custom/CustomResourceDefinition",class:"classCustomResourceDefinition",children:"CustomResourceDefinition"},{name:"Preferences",isDirectory:!0,path:"/preferences",class:"classSettings",layout:"own"}];A.set("classClusterOverview",{leftItems:[{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"logsearch",icon:(0,x.jsx)(nc,{fontSize:"small"}),text:"Log search",permission:!0},{name:"add",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Add",permission:!0}]});A.set("classService",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New service",permission:!0}]});A.set("Service",{text:"Service name",source:"name",width:20,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit service",permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:10,sortable:!0,visible:!0},{name:"clusterIp",text:"ClusterIP",source:"clusterIp",format:"string",width:10,sortable:!1,visible:!0},{name:"ports",text:"Ports",source:"ports",format:"string",width:10,sortable:!1,visible:!0},{name:"externalIp",text:"ExternalIP",source:"externalIp",format:"string",width:10,sortable:!1,visible:!0},{name:"selector",text:"Selector",source:"function",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classEndpoints",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("Endpoints",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"endpoints",text:"Endpoints",source:"endpoints",format:"string",width:45,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classIngress",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New ingress",permission:!0}]});A.set("Ingress",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"loadBalancers",text:"LoadBalancers",source:"loadBalancers",format:"string",width:10,sortable:!0,visible:!0},{name:"rules",text:"Rules",source:"rules",format:"function",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classIngressClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("IngressClass",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"default",icon:(0,x.jsx)(w.CheckCircle,{fontSize:"small"}),text:"Set Default",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"controller",text:"Controller",source:"controller",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classNetworkPolicy",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("NetworkPolicy",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"policyTypes",text:"Policy Types",source:"policyTypes",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classConfigMap",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("ConfigMap",{text:"Config Map name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:40,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classSecret",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("Secret",{text:"Secret name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"type",text:"Type",source:"type",format:"string",width:15,sortable:!0,visible:!0},{name:"keys",text:"Keys",source:"keys",format:"string",width:15,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0}]});A.set("classResourceQuota",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("ResourceQuota",{text:"Quota name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});A.set("classLimitRange",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("LimitRange",{text:"Limit name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});A.set("classHorizontalPodAutoscaler",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("HorizontalPodAutoscaler",{text:"HPA name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"metrics",text:"Metrics",source:"metrics",format:"string",width:8,sortable:!0,visible:!0},{name:"minpods",text:"Min Pods",source:"minpods",format:"string",width:8,sortable:!0,visible:!0},{name:"maxpods",text:"Max Pods",source:"maxpods",format:"string",width:8,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"string",width:8,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:8,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classPodDisruptionBudget",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("PodDisruptionBudget",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"minAvailable",text:"Min available",source:"minAvailable",format:"string",width:10,sortable:!0,visible:!0},{name:"maxUnavailable",text:"Max unavailable",source:"maxUnavailable",format:"string",width:10,sortable:!0,visible:!0},{name:"currentHealthy",text:"Current Healthy",source:"currentHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"desiredHealthy",text:"Desired Healthy",source:"desiredHealthy",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classPriorityClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("PriorityClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"value",text:"Value",source:"value",format:"string",width:40,sortable:!0,visible:!0},{name:"globalDefault",text:"Global default",source:"globalDefault",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});A.set("classRuntimeClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("RuntimeClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"handler",text:"Handler",source:"handler",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});A.set("classLease",{leftItems:[]});A.set("Lease",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"holder",text:"Holder",source:"holder",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classValidatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("ValidatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});A.set("classMutatingWebhookConfiguration",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("MutatingWebhookConfiguration",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"webhooks",text:"Webhooks",source:"webhooks",format:"string",width:40,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});A.set("classNamespace",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New namespace",permission:!0}]});A.set("Namespace",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"search",icon:(0,x.jsx)(w.Search,{fontSize:"small"}),text:"Search",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"logsearch",icon:(0,x.jsx)(nc,{fontSize:"small"}),text:"Log search",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"labels",text:"Labels",source:"labels",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:15,sortable:!0,visible:!0}]});A.set("Node",{text:"Name",source:"name",width:30,configurable:!1,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"shell",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",multi:!1,permission:!0},{name:"cordon",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Cordon",multi:!0,permission:!0},{name:"uncordon",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"UnCordon",multi:!0,permission:!0},{name:"drain",icon:(0,x.jsx)(w.Stop,{fontSize:"small"}),text:"Drain",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"cpu",text:"CPU",source:"cpu",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"taints",text:"Taints",source:"taints",format:"string",width:6,removable:!1,sortable:!0,visible:!0},{name:"roles",text:"Roles",source:"roles",format:"string",width:20,removable:!1,sortable:!1,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"string",width:10,removable:!1,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:8,sortable:!0,visible:!0}]});A.set("classImage",{leftItems:[]});A.set("Image",{text:"Name",source:"name",width:80,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"tag",text:"Tag",source:"tag",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:10,sortable:!0,visible:!0}]});A.set("classV1APIResource",{leftItems:[]});A.set("V1APIResource",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",multi:!1,permission:!0}],properties:[{name:"kindName",text:"Kind",source:"kind",format:"string",width:30,sortable:!0,visible:!0},{name:"singularName",text:"Singular",source:"singular",format:"string",width:30,sortable:!0,visible:!0},{name:"namespaced",text:"Namespaced",source:"namespaced",format:"string",width:10,sortable:!0,visible:!0}]});A.set("classComponentStatus",{leftItems:[]});A.set("ComponentStatus",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"status",text:"Status",source:"status",format:"string",width:20,sortable:!0,visible:!0},{name:"message",text:"Message",source:"message",format:"string",width:50,sortable:!0,visible:!0}]});A.set("classPod",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New pod",permission:!0}]});A.set("Pod",{text:"Name",source:"name",width:25,configurable:!0,leftItems:[{name:"details",text:"Pod details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),permission:!0},{name:"ops",icon:(0,x.jsx)(w.Terminal,{fontSize:"small"}),text:"Shell",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",multi:!0,permission:!0},{name:"metrics",icon:(0,x.jsx)(w.BarChart,{fontSize:"small"}),text:"Metrics",multi:!0,permission:!0},{name:"fileman",icon:(0,x.jsx)(w.FolderCopy,{fontSize:"small"}),text:"Fileman",multi:!0,permission:!0},{name:"trivy",icon:(0,x.jsx)(w.VerifiedUser,{fontSize:"small"}),text:"Trivy",multi:!0,permission:!0},{name:"topology",icon:(0,x.jsx)(w.AccountTree,{fontSize:"small"}),text:"Topology",multi:!0,permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"evict",icon:(0,x.jsx)(w.DeleteSweep,{fontSize:"small"}),text:"Evict",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"container",text:"Container",source:"na",format:"function",width:10,sortable:!1,removable:!0,visible:!0},{name:"cpu",text:"CPU",source:"cpu",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"memory",text:"Memory",source:"memory",format:"storage",width:10,sortable:!0,removable:!0,visible:!0},{name:"restarts",text:"Restarts",source:"restartCount",format:"number",width:5,sortable:!0,visible:!0},{name:"controller",text:"Controller",source:"controller",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"node",text:"Node",source:"node",format:"string",width:10,sortable:!0,removable:!0,visible:!0},{name:"age",text:"Age",source:"startTime",format:"age",width:5,sortable:!0,removable:!0,visible:!0},{name:"status",text:"Status",source:"function",format:"string",width:5,sortable:!1,removable:!0,visible:!0}]});A.set("classDeployment",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("Deployment",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"scale",icon:(0,x.jsx)(ms,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"function",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classDaemonSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("DaemonSet",{text:"Name",source:"name",width:25,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:8,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:8,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:8,sortable:!0,visible:!0},{name:"upToDate",text:"Up-to-Date",source:"upToDate",format:"number",width:8,sortable:!0,visible:!0},{name:"available",text:"Available",source:"available",format:"number",width:8,sortable:!0,visible:!0},{name:"nodeSelector",text:"Node Selector",source:"nodeSelector",format:"string",width:10,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classReplicaSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("ReplicaSet",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(ms,{fontSize:"small"}),text:"Scale",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0},{name:"current",text:"Current",source:"current",format:"number",width:10,sortable:!0,visible:!0},{name:"ready",text:"Ready",source:"ready",format:"number",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});A.set("classReplicationController",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("ReplicationController",{text:"Name",source:"name",width:60,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},{name:"scale",icon:(0,x.jsx)(ms,{fontSize:"small"}),text:"Scale",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:10,sortable:!0,visible:!0},{name:"desired",text:"Desired",source:"desired",format:"number",width:10,sortable:!0,visible:!0}]});A.set("classStatefulSet",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("StatefulSet",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"scale",icon:(0,x.jsx)(ms,{fontSize:"small"}),text:"Scale",permission:!0},{name:"restart",icon:(0,x.jsx)(w.RestartAlt,{fontSize:"small"}),text:"Restart",permission:!0},...yo,{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:15,sortable:!0,visible:!0},{name:"replicas",text:"Replicas",source:"replicas",format:"number",width:15,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:20,sortable:!0,visible:!0}]});A.set("classJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("Job",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"log",icon:(0,x.jsx)(w.Subject,{fontSize:"small"}),text:"Logs",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:25,sortable:!0,visible:!0},{name:"completions",text:"Completions",source:"completions",format:"string",width:15,sortable:!0,visible:!0},{name:"conditions",text:"Conditions",source:"conditions",format:"function",width:15,sortable:!1,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classCronJob",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("CronJob",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"trigger",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Trigger",permission:!0},{name:"suspend",icon:(0,x.jsx)(w.Pause,{fontSize:"small"}),text:"Suspend",permission:!0},{name:"resume",icon:(0,x.jsx)(w.PlayArrow,{fontSize:"small"}),text:"Resume",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:10,sortable:!0,visible:!0},{name:"schedule",text:"Schedule",source:"schedule",format:"string",width:10,sortable:!1,visible:!0},{name:"suspend",text:"Suspend",source:"suspend",format:"string",width:5,sortable:!0,visible:!0},{name:"active",text:"Active",source:"active",format:"function",width:5,sortable:!0,visible:!0},{name:"lastSchedule",text:"Last schedule",source:"lastSchedule",format:"age",width:10,sortable:!0,visible:!0},{name:"nextExecution",text:"Next execution",source:"nextExecution",format:"function",width:10,sortable:!0,visible:!0},{name:"timeZone",text:"Time zone",source:"timezone",format:"string",width:10,sortable:!0,visible:!0},{name:"age",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classPersistentVolumeClaim",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PVC",permission:!0}]});A.set("PersistentVolumeClaim",{text:"Name",source:"name",width:30,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"size",text:"Size",source:"size",format:"storage",width:5,sortable:!0,visible:!0},{name:"pods",text:"Pods",source:"pods",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:10,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classPersistentVolume",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New PV",permission:!0}]});A.set("PersistentVolume",{text:"Name",source:"name",width:50,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"storageClass",text:"Storage class",source:"storageClass",format:"string",width:10,sortable:!0,visible:!0},{name:"capacity",text:"Capacity",source:"capacity",format:"storage",width:10,sortable:!0,visible:!0},{name:"clain",text:"Claim",source:"claim",format:"string",width:15,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classVolumeAttachment",{leftItems:[]});A.set("VolumeAttachment",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attacher",text:"Attacher",source:"attacher",format:"string",width:15,sortable:!0,visible:!0},{name:"nodeName",text:"Node name",source:"nodeName",format:"string",width:20,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:20,sortable:!0,visible:!0},{name:"status",text:"Status",source:"status",format:"string",width:5,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:5,sortable:!0,visible:!0}]});A.set("classStorageClass",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"New storage class",permission:!0}]});A.set("StorageClass",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"provisioner",text:"Provisioner",source:"provisioner",format:"string",width:15,sortable:!0,visible:!0},{name:"reclaimPolicy",text:"Reclaim policy",source:"reclaimPolicy",format:"string",width:15,sortable:!0,visible:!0},{name:"default",text:"Default",source:"default",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classCSIDriver",{leftItems:[]});A.set("CSIDriver",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"attachRequired",text:"Attach Required",source:"attachRequired",format:"string",width:15,sortable:!0,visible:!0},{name:"storageCapacity",text:"Storage Capacity",source:"storageCapacity",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classCSINode",{leftItems:[]});A.set("CSINode",{text:"Name",source:"name",width:35,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"divers",text:"Drivers",source:"drivers",format:"string",width:55,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classStorageCapacity",{leftItems:[]});A.set("CSIStorageCapacity",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"browse",icon:(0,x.jsx)(Vn,{fontSize:"small"}),text:"Browse",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classServiceAccount",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("ServiceAccount",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classClusterRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("ClusterRole",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classRole",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("Role",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classClusterRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("ClusterRoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:50,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classRoleBinding",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("RoleBinding",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:20,sortable:!0,visible:!0},{name:"bindings",text:"Bindings",source:"bindings",format:"string",width:30,sortable:!1,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classCustomResourceDefinition",{leftItems:[{name:"create",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Create",permission:!0}]});A.set("CustomResourceDefinition",{text:"Name",source:"name",width:40,leftItems:[{name:"instantiate",icon:(0,x.jsx)(w.Add,{fontSize:"small"}),text:"Instantiate",permission:!0},{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"group",text:"Group",source:"group",format:"string",width:15,sortable:!0,visible:!0},{name:"version",text:"Version",source:"version",format:"string",width:15,sortable:!0,visible:!0},{name:"scope",text:"Scope",source:"scope",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("crdGroup",{text:"Name",source:"name",width:40,leftItems:[],properties:[]});A.set("crdInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("crdNamespacedInstance",{text:"Name",source:"name",width:40,leftItems:[{name:"details",icon:(0,x.jsx)(w.Info,{fontSize:"small"}),text:"Details",permission:!0},{name:"edit",icon:(0,x.jsx)(w.Edit,{fontSize:"small"}),text:"Edit",permission:!0},{name:"delete",icon:(0,x.jsx)(w.Delete,{fontSize:"small"}),text:"Delete",multi:!0,permission:!0}],properties:[{name:"namespace",text:"Namespace",source:"namespace",format:"string",width:15,sortable:!0,visible:!0},{name:"source",text:"Source",source:"source",format:"string",width:15,sortable:!0,visible:!0},{name:"checksum",text:"Checksum",source:"checksum",format:"string",width:15,sortable:!0,visible:!0},{name:"creationTimestamp",text:"Age",source:"creationTimestamp",format:"age",width:10,sortable:!0,visible:!0}]});A.set("classOverview",{leftItems:[{name:"kubeworks",icon:(0,x.jsx)(Zm,{fontSize:"small"}),text:"Kube works",permission:!0}]});A.set("classmenu",{});A.set("classWorkload",{});A.set("classConfig",{});A.set("classNetwork",{});A.set("classStorage",{});A.set("classAccess",{});A.set("classCustom",{});A.set("classSettings",{});var Wn=new Map;Wn.set("classOverview",{default:(0,x.jsx)(ed,{size:"16"})});Wn.set("classCluster",{default:(0,x.jsx)(od,{size:"16"})});Wn.set("classWorkload",{default:(0,x.jsx)(sd,{size:"16"})});Wn.set("classConfig",{default:(0,x.jsx)(nd,{size:"16"})});Wn.set("classNetwork",{default:(0,x.jsx)(id,{size:"16"})});Wn.set("classStorage",{default:(0,x.jsx)(rd,{size:"16"})});Wn.set("classAccess",{default:(0,x.jsx)(ad,{size:"16"})});Wn.set("classCustom",{default:(0,x.jsx)(td,{size:"16"})});Wn.set("classSettings",{default:(0,x.jsx)(ld,{size:"16"})});var dd=new Map;u();var ce=new Map,Dt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string",style:["ifpresent"]},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","ifpresent","char:50","collapse"]}],gt=[{name:"created",text:"Created",source:["metadata.creationTimestamp"],format:"string"},{name:"name",text:"Name",source:["metadata.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#metadata.namespace"],format:"string",style:["link:$Namespace:metadata.namespace:."]},{name:"labels",text:"Labels",source:["metadata.labels"],format:"objectprops",style:["column","ifpresent","collapse"]},{name:"annotations",text:"Annotations",source:["metadata.annotations"],format:"objectprops",style:["column","char:50","ifpresent","collapse"]}],ai={name:"conditions",text:"Conditions",source:["status.conditions"],format:"objectlist",style:["table","ifpresent"],items:[{name:"type",text:"Type",source:["type"],format:"string",style:["property:status:True:text.primary","property:status:False:text.disabled"]},{name:"reason",text:"Reason",source:["reason"],format:"string",style:["FailedCreate:red","Available:green","Progressing:green","NewReplicaSetAvailable:green","MinimumReplicasUnavailable:red","MinimumReplicasAvailable:green","InsufficientPods:red","PodCompleted:green","KubeletHasSufficientMemory:green","KubeletHasNoDiskPressure:green","KubeletHasSufficientPID:green","KubeletReady:green","CompletionsReached:green","KernelHasNoDeadlock:green","NoFrequentContainerdRestart:green","NoFrequentKubeletRestart:green","ContainerRuntimeIsUp:green","FilesystemIsOK:green","KubeletIsUp:green","NoFrequentDockerRestart:green","NoFrequentUnregisterNetDevice:green","SufficientPods:green","NoConflicts:green","InitialNamesAccepted:green","Unschedulable:red","BackoffLimitExceeded:red","ContainersNotReady:red","NoVMEventScheduled:green","FilesystemIsNotReadOnly:orange","ApprovedAnnotation:green"]},{name:"message",text:"Message",source:["message"],format:"string"},{name:"age",text:"Age",source:["lastUpdateTime||lastTransitionTime||$default"],format:"age"}]},ke={name:"events",text:"Events",root:"events",items:[{name:"events",text:"",source:["list"],format:"objectlist",style:["table"],items:[{name:"message",text:"Message",source:["message"],format:"string"},{name:"count",text:"Count",source:["count"],format:"string"},{name:"age",text:"Age",source:["lastTimestamp"],format:"age"}]}]},ka={name:"pods",text:"Pods",root:"origin",items:[{name:"pods",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Pod:metadata.name:metadata.namespace"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]}]}]};ce.set("PersistentVolumeClaim",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"storage",text:"Storage",source:["spec.resources.requests.storage"],format:"string"},{name:"pods",text:"Pods",source:["#@string[]"],format:"stringlist",style:["column","link:$Pod:name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Bound:green","Pending:orange"]},{name:"pv",text:"PV",source:["#spec.volumeName"],format:"string",style:["link:$PersistentVolume:spec.volumeName:."]}]},ke]);ce.set("PersistentVolume",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist"},{name:"capacity",text:"Capacity",source:["spec.capacity.storage"],format:"string"},{name:"accessModes",text:"Access Modes",source:["spec.accessModes"],format:"stringlist"},{name:"persistentVolumeReclaimPolicy",text:"Reclaim Policy",source:["spec.persistentVolumeReclaimPolicy"],format:"string"},{name:"storageClassName",text:"Storage Class",source:["#spec.storageClassName"],format:"string",style:["link:$StorageClass:spec.storageClassName:."]},{name:"status",text:"Status",source:["status.phase"],format:"string"},{name:"pvc",text:"PVC",source:["#spec.claimRef.name"],format:"string",style:["link:spec.claimRef.kind:spec.claimRef.name:spec.claimRef.namespace"]}]},ke]);ce.set("StorageClass",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"provisioner",text:"Provisioner",source:["#provisioner"],format:"string",style:["link:$CSIDriver:provisioner:."]},{name:"volumeBindingMode",text:"Binding Mode",source:["volumeBindingMode"],format:"string"},{name:"reclaimPolicy",text:"Reclaim Policy",source:["reclaimPolicy"],format:"string"},{name:"pvs",text:"PV",source:["#@string[]"],format:"stringlist",style:["column","link:$PersistentVolume:.:.","ifpresent"]},{name:"pvcs",text:"PVC",source:["@object[]"],items:[{name:"pvc",text:"",source:["#name"],format:"string",style:["link:$PersistentVolumeClaim:name:namespace"]}],format:"objectlist",style:["column"]}]},ke]);ce.set("VolumeAttachment",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"attacher",text:"Attacher",source:["#spec.attacher"],format:"string",style:["link:$CSIDriver:spec.attacher:."]},{name:"nodeName",text:"Node Name",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"persistentVolumeName",text:"PV",source:["#spec.source.persistentVolumeName"],format:"string",style:["link:$PersistentVolume:spec.source.persistentVolumeName:."]},{name:"attached",text:"Attached",source:["status.attached"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"attachError",text:"Attach Error",source:["status.attachError.time","$\xA0\xA0-\xA0\xA0","status.attachError.message"],format:"string",style:["ifpresent","color:red"]},{name:"detachError",text:"Detach Error",source:["status.detachError.time","$\xA0\xA0-\xA0\xA0","status.detachError.message"],format:"string",style:["ifpresent","color:red"]}]},ke]);ce.set("CSIDriver",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"attachRequired",text:"Attach Required",source:["spec.attachRequired"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"fsGroupPolicy",text:"Group Policy",source:["spec.fsGroupPolicy"],format:"string"},{name:"republish",text:"Requires republish",source:["spec.requiresRepublish"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"linuxMount",text:"LinuxMount",source:["spec.seLinuxMount"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"stgCap",text:"Stg Capacity",source:["spec.storageCapacity"],format:"boolean",style:["true:Yes:green","false:No:red",":No:red"]},{name:"volumeLifecycleModes",text:"Lifecycle modes",source:["spec.volumeLifecycleModes"],format:"stringlist"},{name:"storageClasses",text:"",source:["@jsx[]"],format:"string",style:["column"]}]},ke]);ce.set("CSINode",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"drivers",text:"Drivers",source:["spec.drivers"],format:"objectlist",style:["column"],items:[{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$CSIDriver:name:."]}]}]},ke]);ce.set("CSIStorageCapacity",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},ke]);ce.set("NetworkPolicy",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"podSelector",text:"Pod Selector",source:["spec.podSelector.matchLabels"],format:"objectprops"}]},ke]);ce.set("Service",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops",style:["column"]}]},{name:"connection",text:"Connection",root:"origin",items:[{name:"clusterIp",text:"Cluster IP",source:["spec.clusterIP"],format:"string"},{name:"clusterIps",text:"Cluster IPs",source:["spec.clusterIPs"],format:"stringlist"},{name:"ipFamilies",text:"IP families",source:["spec.ipFamilies"],format:"stringlist"},{name:"ipFamilyPolicy",text:"IP family policy",source:["spec.ipFamilyPolicy"],format:"string"},{name:"ports",text:"Ports",source:["spec.ports"],format:"objectlist",style:["column"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]}]},ke]);ce.set("Endpoints",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"subsets",text:"Subsets",root:"origin",items:[{name:"subsetlist",text:"",source:["subsets"],format:"objectlist",items:[{name:"address",text:"Address",source:["addresses"],format:"objectlist",style:["table"],items:[{name:"ip",text:"IP",source:["ip"],format:"string"},{name:"target",text:"Target",source:["targetRef.kind","$\xA0","#targetRef.name","$\xA0(namespace:\xA0","targetRef.namespace","$)"],format:"string",style:["link:targetRef.kind:targetRef.name:targetRef.namespace","ifpresent"]}]}]}]},ke]);ce.set("Ingress",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"ingressClass",text:"Ingress class",source:["#spec.ingressClassName"],format:"string",style:["bold","link:$IngressClass:spec.ingressClassName:."]}]},{name:"rules",text:"Rules",root:"origin",items:[{name:"host",text:"Host",source:["spec.rules"],format:"objectlist",style:["table"],items:[{name:"host",text:"Host",source:["host"],format:"string",style:["bold"]},{name:"paths",text:"Paths",source:["http.paths"],format:"objectlist",style:["column"],items:[{name:"path",text:"Path",source:["path","$\xA0(","#backend.service.name","$:","backend.service.port.number","$)"],format:"string",style:["link:$Service:backend.service.name:$$namespace"]}]}]}]},ke]);ce.set("IngressClass",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"controller",text:"Controller",source:["spec.controller"],format:"string"},{name:"default",text:"Default",source:['metadata.annotations["ingressclass.kubernetes.io/is-default-class"]'],format:"boolean",style:["true:Yes:green","false:No:red","undefined:No:red",":No:red"]},{name:"ingresses",text:"Ingress",source:["@object[]"],items:[{name:"ingress",text:"",source:["#name"],format:"string",style:["link:$Ingress:name:namespace"]}],format:"objectlist",style:["column"]}]},ke]);ce.set("Namespace",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Active:green"]}]},{name:"content",text:"Content",root:"origin",items:[{name:"content",text:"Content",source:["@jsx[]"],format:"string",style:["column"]}]},ke]);ce.set("Node",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"finalizers",text:"Finalizers",source:["metadata.finalizers"],format:"stringlist",style:["column"]},{name:"os",text:"OS",source:["status.nodeInfo.operatingSystem","$(","status.nodeInfo.architecture","$)"],format:"string"},{name:"osImage",text:"OS Image",source:["status.nodeInfo.osImage"],format:"string"},{name:"kernelVersion",text:"Kernel version",source:["status.nodeInfo.kernelVersion"],format:"string"},{name:"containerRuntime",text:"CRI",source:["status.nodeInfo.containerRuntimeVersion"],format:"string"},{name:"kubeletVersion",text:"Kubelet",source:["status.nodeInfo.kubeletVersion"],format:"string"},ai]},{name:"workload",text:"Workload",root:"origin",items:[{name:"taints",text:"Taints",source:["spec.taints"],format:"objectlist",style:["table"],items:[{name:"taint",text:"Taint",source:["key"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"age",text:"Age",source:["timeAdded"],format:"age"}]}]},{name:"compute",text:"Compute",root:"origin",items:[{name:"capacity",text:"Capacity",source:["status.capacity"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.capacity.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.capacity.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.capacity.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.capacity.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.capacity.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.capacity.pods"],format:"string"}]},{name:"allocatable",text:"Allocatable",source:["status.allocatable"],format:"objectprops",style:["table"],items:[{name:"cpu",text:"CPU",source:["status.allocatable.cpu"],format:"string"},{name:"storage",text:"Storage",source:["status.allocatable.ephemeral-storage"],format:"string",style:["mb"]},{name:"hp1gi",text:"Hugepages-1Gi",source:["status.allocatable.hugepages-2Mi"],format:"string"},{name:"hp2m",text:"Hugepages-2Mi",source:["status.allocatable.hugepages-1Gi"],format:"string"},{name:"memory",text:"Memory",source:["status.allocatable.memory"],format:"string",style:["mb"]},{name:"pods",text:"Pods",source:["status.allocatable.pods"],format:"string"}]}]},{name:"storage",text:"Storage",root:"origin",items:[{name:"inuse",text:"In Use",source:["#status.volumesInUse"],format:"stringlist",style:["column","link:$PersistentVolume:.:."],processValue:e=>e.split("/")[e.split("/").length-1]},{name:"attached",text:"Attached",source:["status.volumesAttached"],format:"objectlist",style:["column"],items:[{name:"name",text:"",source:["#name"],format:"string",style:["column","link:$PersistentVolume:name:."],processValue:e=>e.split("/")[e.split("/").length-1]}]}]},{name:"network",text:"Network",root:"origin",items:[{name:"addresses",text:"Addresses",source:["status.addresses"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"value",text:"Value",source:["address"],format:"string"}]}]},ke]);ce.set("V1APIResource",[{name:"properties",text:"Properties",root:"origin",items:[{name:"kind",text:"Kind",format:"string",source:["kindName"]},{name:"namespaced",text:"Namespaced",format:"boolean",source:["namespaced"],style:["ifpresent","true:Yes:green","false:No:red",":No:red"]},{name:"shortNames",text:"Short names",format:"string",source:["shortNames"],style:["ifpresent"]},{name:"singularName",text:"Singular",format:"string",source:["singularName"],style:["ifpresent"]},{name:"categories",text:"Categories",format:"stringlist",source:["categories"],style:["ifpresent"]},{name:"verbs",text:"Verbs",format:"stringlist",source:["verbs"],style:["ifpresent"]}]}]);ce.set("Image",[{name:"properties",text:"Properties",root:"origin",items:[{name:"name",text:"Name",source:["displayName"],format:"string"},{name:"registry",text:"Registry",source:["registry"],format:"string"},{name:"tag",text:"Tag",source:["tag"],format:"string"},{name:"sha",text:"SHA",source:["sha"],format:"string"},{name:"names",text:"Names",source:["names"],format:"stringlist",style:["column"]},{name:"nodes",text:"Nodes",source:["#nodes"],format:"stringlist",style:["column","link:$Node:.:."]}]}]);ce.set("ComponentStatus",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"conditions",text:"Conditions",root:"origin",items:[{name:"conditions",text:"",source:["conditions"],format:"objectlist",style:["table"],items:[{name:"status",text:"Status",source:["status"],format:"string"},{name:"type",text:"Type",source:["type"],format:"string"},{name:"message",text:"Message",source:["message"],format:"string"}]}]},ke]);ce.set("ConfigMap",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline"]}]},ke]);ce.set("Secret",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"type",text:"Type",source:["type"],format:"string"}]},{name:"data",text:"Data",root:"origin",items:[{name:"item",text:"",source:["data"],format:"objectprops",style:["column","edit","keybold","multiline","lockicon","base64"]}]},ke]);ce.set("LimitRange",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"limits",text:"Limits",root:"origin",items:[{name:"limits",text:"",source:["spec.limits"],format:"objectlist",style:["table"],items:[{name:"type",text:"Type",source:["type"],format:"string"},{name:"maxcpu",text:"MaxCPU",source:["max.cpu"],format:"string"},{name:"maxmem",text:"MaxMem",source:["max.memory"],format:"string"},{name:"mincpu",text:"MinCPU",source:["min.cpu"],format:"string"},{name:"minmem",text:"MinMem",source:["min.memory"],format:"string"},{name:"defcpu",text:"DefaultCPU",source:["default.cpu"],format:"string"},{name:"defmem",text:"DefaultMem",source:["default.memory"],format:"string"},{name:"defreqcpu",text:"DefReqCPU",source:["defaultRequest.cpu"],format:"string"},{name:"defreqmem",text:"DefReqMem",source:["defaultRequest.memory"],format:"string"}]}]},ke]);ce.set("HorizontalPodAutoscaler",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"reference",text:"Reference",source:["spec.scaleTargetRef.kind","$\xA0/\xA0","spec.scaleTargetRef.name"],format:"string"},{name:"minPods",text:"Min Pods",source:["spec.minReplicas"],format:"string"},{name:"maxPods",text:"Max Pods",source:["spec.maxReplicas"],format:"string"},{name:"replicas",text:"Replicas",source:["status.desiredReplicas"],format:"string"}]},ke]);ce.set("PodDisruptionBudget",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"minAvailable",text:"Min Available",source:["spec.minAvailable"],format:"string",style:["ifpresent"]},{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},ai]},ke]);ce.set("PriorityClass",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"preemptionPolicy",text:"Policy",source:["preemptionPolicy"],format:"string"}]},ke]);ce.set("RuntimeClass",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"handler",text:"Handler",source:["handler"],format:"string"}]},ke]);ce.set("Lease",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"holderIdentity",text:"Holder",source:["spec.holderIdentity"],format:"string"},{name:"leaseDurationSeconds",text:"Duration",source:["spec.leaseDurationSeconds"],format:"string"},{name:"acquireTime",text:"Acquire",source:["spec.acquireTime"],format:"string",style:["ifpresent"]},{name:"renewTime",text:"Renew",source:["spec.renewTime"],format:"string"},{name:"leaseTransitions",text:"Transitions",source:["spec.leaseTransitions"],format:"string",style:["ifpresent"]}]},ke]);ce.set("ValidatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"route",text:"Route",source:["clientConfig.service.path","$:","clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},ke]);ce.set("MutatingWebhookConfiguration",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"webhooks",text:"Webhooks",root:"origin",items:[{name:"webhooks",text:"",format:"objectlist",source:["webhooks"],style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"clientConfig",text:"Client Config",source:["clientConfig.service"],format:"objectprops",style:["column"],items:[{name:"clientconfig",text:"CCName",source:["name"],format:"string"},{name:"name",text:"Name",source:["clientConfig.service.name"],format:"string"},{name:"namespace",text:"Namespace",source:["#clientConfig.service.namespace"],format:"string",style:["link:$Namespace:clientConfig.service.namespace:."]},{name:"port",text:"Port",source:["clientConfig.service.port"],format:"string"}]},{name:"rules",text:"Rules",source:["rules"],format:"objectlist",style:["column"],items:[{name:"scope",text:"Scope",source:["scope"],format:"string",style:["header"]},{name:"operations",text:"operations",source:["operations"],format:"stringlist",style:["header"]},{name:"apiGroups",text:"Groups",source:["apiGroups"],format:"stringlist",style:["header"]},{name:"apiVersions",text:"API Versions",source:["apiVersions"],format:"stringlist",style:["header"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["header"]}]}]}]},ke]);ce.set("Pod",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"status",text:"Status",source:["status.phase"],format:"string",style:["Running:green","Pending:orange"]},{name:"node",text:"Node",source:["#spec.nodeName"],format:"string",style:["link:$Node:spec.nodeName:."]},{name:"podip",text:"Pod IP",source:["status.podIP"],format:"string"},{name:"podips",text:"Pod IPs",source:["status.podIPs"],format:"objectlist",items:[{name:"ip",text:"IP",source:["ip"],format:"string"}]},{name:"sa",text:"Service Account",source:["#spec.serviceAccount"],format:"string",style:["link:$ServiceAccount:spec.serviceAccount:$$namespace"]},{name:"qosclass",text:"QoS Class",source:["status.qosClass"],format:"string"},ai,{name:"tolerations",text:"Tolerations",source:["spec.tolerations"],format:"table",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"value",text:"Value",source:["value"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"},{name:"seconds",text:"Seconds",source:["tolerationSeconds"],format:"string"}]}]},{name:"containers",text:"Containers",root:"origin",items:[{name:"container",text:"",source:["status.containerStatuses|spec.containers:name"],format:"objectobject",style:["column"],items:[{name:"name",text:"",source:["name"],format:"string",style:["bold"]},{name:"id",text:"Id",source:["containerID"],format:"string",style:[""]},{name:"state",text:"State",source:["state"],format:"keylist",style:["running:green","waiting:orange"]},{name:"image",text:"Image",source:["#image"],format:"string",style:["link:$Image:image:."]},{name:"ports",text:"Ports",source:["ports"],format:"objectlist",style:["fullwidth","ifpresent"],items:[{name:"forward",text:"Forward",source:["@jsx"],format:"string"}]},{name:"envs",text:"Environment",source:["env"],format:"objectlist",style:["table"],items:[{name:"env",text:"Variable",source:["name"],format:"string"},{name:"val",text:"Value",source:["value","valueFrom.fieldRef.fieldPath"],format:"string"},{name:"valSecret",text:"From Secret",source:["#valueFrom.secretKeyRef.name","$/","valueFrom.secretKeyRef.key"],format:"string",style:["ifpresent","link:$Secret:valueFrom.secretKeyRef.name:$$namespace"]},{name:"valCm",text:"From CM",source:["#valueFrom.configMapKeyRef.name","$/","valueFrom.configMapKeyRef.key"],format:"string",style:["ifpresent","link:$ConfigMap:valueFrom.configMapKeyRef.name:$$namespace"]}]},{name:"mounts",text:"Mounts",source:["volumeMounts"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"path",text:"Path",source:["mountPath"],format:"string"}]},{name:"requests",text:"Requests",source:["resources.requests"],format:"objectprops",style:["table","ifpresent"]},{name:"limits",text:"Limits",source:["resources.limits"],format:"objectprops",style:["table","ifpresent"]}]}]},{name:"volumes",text:"Volumes",root:"origin",items:[{name:"volume",text:"",source:["spec.volumes"],format:"table",items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"mode",text:"Mount Mode",source:["projected.defaultMode","configMap.defaultMode","secret.defaultMode"],format:"string"},{name:"pvc",text:"PVC",source:["#persistentVolumeClaim.claimName"],format:"string",style:["link:$PersistentVolumeClaim:persistentVolumeClaim.claimName:$$namespace"]},{name:"configmap",text:"ConfigMap",source:["#configMap.name"],format:"string",style:["link:$ConfigMap:configMap.name:$$namespace"]},{name:"secret",text:"Secret",source:["#secret.secretName"],format:"string",style:["link:$Secret:secret.secretName:$$namespace"]},{name:"projected",text:"Projected",source:["projected.sources"],format:"boolean",style:["true:\u2714\uFE0F:green","false::"]}]}]},ke]);ce.set("Deployment",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"strategyType",text:"Strategy Type",source:["spec.strategy.type"],format:"string"},{name:"status",text:"Status",source:["@string[]"],format:"string",style:["running:green"]},ai]},ka,ke]);ce.set("DaemonSet",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["#image"],format:"string",style:["link:$Image:image:."]}],style:["column"]},{name:"strategy",text:"Strategy",source:["spec.updateStrategy.type"],format:"string"},{name:"tolerations",text:"Tolerations",source:["spec.template.spec.tolerations"],format:"objectlist",items:[{name:"key",text:"Key",source:["key"],format:"string"},{name:"operator",text:"Operator",source:["operator"],format:"string"},{name:"effect",text:"Effect",source:["effect"],format:"string"}],style:["table"]}]},ka,ke]);ce.set("ReplicaSet",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"controlledby",text:"Controlled By",source:["metadata.ownerReferences.0.kind","$\xA0","#metadata.ownerReferences.0.name"],format:"string",style:["link:metadata.ownerReferences.0.kind:metadata.ownerReferences.0.name:$$namespace"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},{name:"replicas",text:"Replicas",source:["status.readyReplicas||0","$/","spec.replicas"],format:"string"}]},ka,ke]);ce.set("ReplicationController",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"spec",text:"Spec",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"selector",text:"Selector",source:["spec.selector"],format:"objectprops"}]},{name:"status",text:"Status",root:"origin",items:[{name:"replicas",text:"Replicas",source:["spec.replicas"],format:"string"},{name:"availableReplicas",text:"Available",source:["status.availableReplicas"],format:"string"},{name:"labelled",text:"Labelled",source:["status.fullyLabeledReplicas"],format:"string"},{name:"generation",text:"Generation",source:["status.observedGeneration"],format:"string"}]},ka,ke]);ce.set("StatefulSet",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops",style:["column"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]}]},ka,ke]);ce.set("Job",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"selector",text:"Selector",source:["spec.selector.matchLabels"],format:"objectprops"},{name:"nodeSelector",text:"Node Selector",source:["spec.template.spec.nodeSelector"],format:"objectprops",style:["ifpresent"]},{name:"images",text:"Images",source:["spec.template.spec.containers"],format:"objectlist",items:[{name:"image",text:"",source:["image"],format:"string"}],style:["column"]},ai,{name:"completions",text:"Completions",source:["spec.completions"],format:"string"},{name:"parallelism",text:"Parallelism",source:["spec.parallelism"],format:"string"}]},ka,ke]);ce.set("CronJob",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"schedule",text:"Schedule",source:["spec.schedule"],format:"string"},{name:"suspended",text:"Suspended",source:["spec.suspend"],format:"boolean",style:["true:Yes:red","false:No:green"]},{name:"lastSchedule",text:"Last Schedule",source:["status.lastScheduleTime"],format:"string",style:["ifpresent"]},{name:"lastSuccessful",text:"Last Success",source:["status.lastSuccessfulTime"],format:"string",style:["ifpresent"]},{name:"nextExecution",text:"Next Execution",source:["@string[]"],format:"string"},{name:"timeLeft",text:"Time Left",source:["@string[]"],format:"string"}]},{name:"history",text:"History",root:"origin",items:[{name:"jobs",text:"",source:["@string[]"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["#metadata.name"],format:"string",style:["link:$Job:metadata.name:$$namespace"]},{name:"age",text:"Age",source:["status.startTime"],format:"age"}]}]},ke]);ce.set("ServiceAccount",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"tokens",text:"Tokens",source:["@object[]"],format:"objectlist",style:["column"],items:[{name:"tokens",text:"",source:["#name"],format:"string",style:["column","char:30","ifpresent","link:$Secret:name:namespace"]}]}]},ke]);ce.set("ClusterRole",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]},{name:"nonResourceURLs",text:"Non Resource URLs",source:["nonResourceURLs"],format:"stringlist",style:["column"]}],style:["table"]}]},ke]);ce.set("Role",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"rules",text:"Rules",root:"origin",items:[{name:"rules",text:"",source:["rules"],format:"objectlist",items:[{name:"verbs",text:"Verbs",source:["verbs"],format:"stringlist",style:["column"]},{name:"apiGroups",text:"API Groups",source:["apiGroups"],format:"stringlist",style:["column"]},{name:"resources",text:"Resources",source:["resources"],format:"stringlist",style:["column"]}],style:["table"]}]}]);ce.set("ClusterRoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...Dt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$ClusterRole:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},ke]);ce.set("RoleBinding",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"reference",text:"Reference",root:"origin",items:[{name:"kind",text:"Kind",source:["roleRef.kind"],format:"string"},{name:"name",text:"Name",source:["#roleRef.name"],format:"string",style:["link:$Role:roleRef.name:."]},{name:"apiGroup",text:"API Group",source:["roleRef.apiGroup"],format:"string"}]},{name:"subjects",text:"Subjects",root:"origin",items:[{name:"bindings",text:"",source:["subjects"],format:"objectlist",items:[{name:"kind",text:"Kind",source:["kind"],format:"string"},{name:"name",text:"Name",source:["#name"],format:"string",style:["link:$ServiceAccount:name:."]},{name:"namespace",text:"Namespace",source:["#namespace"],format:"string",style:["link:$Namespace:namespace:."]}],style:["table"]}]},ke]);ce.set("ResourceQuota",[{name:"properties",text:"Properties",root:"origin",items:[...gt]},{name:"quotas",text:"Quotas",root:"origin",items:[{name:"limitcpu",text:"Limit CPU",source:["status.used['limits.cpu']","status.hard['limits.cpu']"],format:"bar",style:["ifpresent"]},{name:"limitmemory",text:"Limit Memory",source:["status.used['limits.memory']","status.hard['limits.memory']"],format:"bar",style:["ifpresent"]},{name:"requestcpu",text:"Request CPU",source:["status.used['requests.cpu']","status.hard['requests.cpu']"],format:"bar",style:["ifpresent"]},{name:"requestmemory",text:"Request Memory",source:["status.used['requests.memory']","status.hard['requests.memory']"],format:"bar",style:["ifpresent"]},{name:"pods",text:"Pods",source:["status.used['count/pods']","status.hard['count/pods']"],format:"bar",style:["ifpresent"]},{name:"persistentvolumeclaims",text:"PVCs",source:["status.used['count/persistentvolumeclaims']","status.hard['count/persistentvolumeclaims']"],format:"bar",style:["ifpresent"]},{name:"services",text:"Services",source:["status.used['count/services']","status.hard['count/services']"],format:"bar",style:["ifpresent"]},{name:"configmaps",text:"ConfigMaps",source:["status.used['count/configmaps']","status.hard['count/configmaps']"],format:"bar",style:["ifpresent"]},{name:"secrets",text:"Secrets",source:["status.used['count/secrets']","status.hard['count/secrets']"],format:"bar",style:["ifpresent"]}]},ke]);ce.set("CustomResourceDefinition",[{name:"properties",text:"Properties",root:"origin",items:[...Dt,{name:"group",text:"Group",source:["spec.group"],format:"string"},{name:"versions",text:"Versions",source:["spec.versions"],format:"objectlist",style:["table"],items:[{name:"name",text:"Name",source:["name"],format:"string"},{name:"served",text:"Served",source:["served"],format:"boolean",style:["true:Yes:green","false:No:red"]},{name:"storage",text:"Storage",source:["storage"],format:"boolean",style:["true:Yes:green","false:No:red"]}]},ai]},{name:"names",text:"Names",root:"origin",items:[{name:"singular",text:"Singular",source:["spec.names.singular"],format:"string"},{name:"plural",text:"Plural",source:["spec.names.plural"],format:"string"},{name:"kind",text:"Kind",source:["spec.names.kind"],format:"string"},{name:"listKind",text:"List Kind",source:["spec.names.listKind"],format:"string"}]},ke]);ce.set("#crdInstance#",[{name:"properties",text:"Properties",root:"origin",items:[...gt,{name:"source",text:"Source",source:["spec.source"],format:"string"},{name:"checksum",text:"checksum",source:["spec.checksum"],format:"string",style:["char:80"]}]},ke]);var xn=I(Jt(),1);var Tt=I(Rt(),1);u();var On=I(je(),1);u();var fd=I(je());u();u();var ds=function(){return ds=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ds.apply(this,arguments)};var ii=I(je());u();var ri=I(je());function rc(){var e=(0,ri.useRef)(!1),t=(0,ri.useCallback)(function(){return e.current},[]);return(0,ri.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}function ic(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var a=(0,ii.useRef)(0),r=rc(),i=(0,ii.useState)(n),s=i[0],o=i[1],l=(0,ii.useCallback)(function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var m=++a.current;return s.loading||o(function(f){return ds(ds({},f),{loading:!0})}),e.apply(void 0,c).then(function(f){return r()&&m===a.current&&o({value:f,loading:!1}),f},function(f){return r()&&m===a.current&&o({error:f,loading:!1}),f})},t);return[s,l]}function sc(e,t){t===void 0&&(t=[]);var n=ic(e,t,{loading:!0}),a=n[0],r=n[1];return(0,fd.useEffect)(function(){r()},[r]),a}var ye=I(ht(),1),ma=I(Jt(),1),De=I(Qa(),1),ym=I(Rt(),1),wl=I(Rt(),1),qg=I(Rt(),1);u();var zt=I(je(),1),vn=I(ht(),1);u();u();var Ta=I(je(),1),et=I(nr(),1),Od=I(fs(),1);u();function Cd(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Cd(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Sd(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Cd(e))&&(a&&(a+=" "),a+=t);return a}var li=I(je(),1),_t=I(nr(),1),Ed=I(fs(),1);function fc(e,t){for(let n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function kd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function ps(e){return typeof e=="number"&&!isNaN(e)}function Wt(e){return parseInt(e,10)}function oi(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}var oc=["Moz","Webkit","O","ms"];function U1(e="transform"){var t,n;if(typeof window>"u")return"";let a=(n=(t=window.document)==null?void 0:t.documentElement)==null?void 0:n.style;if(!a||e in a)return"";for(let r=0;r<oc.length;r++)if(Rd(e,oc[r])in a)return oc[r];return""}function Rd(e,t){return t?`${t}${Y1(e)}`:e}function Y1(e){let t="",n=!0;for(let a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):e[a]==="-"?n=!0:t+=e[a];return t}var G1=U1(),lc="";function K1(e,t){var n;lc||(lc=(n=fc(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(r){return kd(e[r])}))!=null?n:"");let a=e[lc];return kd(a)?!!a.call(e,t):!1}function Id(e,t,n){let a=e;do{if(K1(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1}function cc(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.addEventListener?e.addEventListener(t,i,r):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}function rr(e,t,n,a){if(!e)return;let r={capture:!0,...a},i=n;e.removeEventListener?e.removeEventListener(t,i,r):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null}function J1(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Wt(n.borderTopWidth),t+=Wt(n.borderBottomWidth),t}function Z1(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=Wt(n.borderLeftWidth),t+=Wt(n.borderRightWidth),t}function j1(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Wt(n.paddingTop),t-=Wt(n.paddingBottom),t}function X1(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=Wt(n.paddingLeft),t-=Wt(n.paddingRight),t}function Q1(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}}function eb(e,t){let n=Nd(e,t,"px");return{[Rd("transform",G1)]:n}}function tb(e,t){return Nd(e,t,"")}function Nd({x:e,y:t},n,a){let r=`translate(${e}${a},${t}${a})`;if(n){let i=`${typeof n.x=="string"?n.x:n.x+a}`,s=`${typeof n.y=="string"?n.y:n.y+a}`;r=`translate(${i}, ${s})`+r}return r}function nb(e,t){return e.targetTouches&&fc(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&fc(e.changedTouches,n=>t===n.identifier)}function ab(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function rb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function ib(e,t){if(!e)return;let n=e.getElementById("react-draggable-style-el");if(!n){n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el";let a=t??rb();a&&n.setAttribute("nonce",a),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
246
+ `,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
247
+ `,e.getElementsByTagName("head")[0].appendChild(n)}e.body&&sb(e.body,"react-draggable-transparent-selection")}function Td(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Md(e)}):Md(e)}function Md(e){if(e)try{e.body&&ob(e.body,"react-draggable-transparent-selection");let t=e.selection;if(t)t.empty();else{let n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function sb(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function ob(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}function lb(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a=typeof a=="string"?a:mb(a);let r=pc(e);if(typeof a=="string"){let{ownerDocument:i}=r,s=i.defaultView;if(!s)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(a==="parent"?o=r.parentNode:o=r.getRootNode().querySelector(a),!(o instanceof s.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');let l=o,c=s.getComputedStyle(r),d=s.getComputedStyle(l);a={left:-r.offsetLeft+Wt(d.paddingLeft)+Wt(c.marginLeft),top:-r.offsetTop+Wt(d.paddingTop)+Wt(c.marginTop),right:X1(l)-Z1(r)-r.offsetLeft+Wt(d.paddingRight)-Wt(c.marginRight),bottom:j1(l)-J1(r)-r.offsetTop+Wt(d.paddingBottom)-Wt(c.marginBottom)}}return ps(a.right)&&(t=Math.min(t,a.right)),ps(a.bottom)&&(n=Math.min(n,a.bottom)),ps(a.left)&&(t=Math.max(t,a.left)),ps(a.top)&&(n=Math.max(n,a.top)),[t,n]}function Dd(e,t,n){let a=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[a,r]}function cb(e){return e.props.axis==="both"||e.props.axis==="x"}function ub(e){return e.props.axis==="both"||e.props.axis==="y"}function uc(e,t,n){let a=typeof t=="number"?nb(e,t):null;if(typeof t=="number"&&!a)return null;let r=pc(n),i=n.props.offsetParent||r.offsetParent||r.ownerDocument.body;return Q1(a||e,i,n.props.scale)}function mc(e,t,n){let a=!ps(e.lastX),r=pc(e);return a?{node:r,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:r,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function dc(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function mb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function pc(e){let t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var db=typeof process<"u"&&process.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},Qn=db,Hn={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Ia=Hn.mouse,ir=class extends li.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Id(e.target,this.props.handle,t)||this.props.cancel&&Id(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();let a=ab(e);this.touchIdentifier=a;let r=uc(e,a,this);if(r==null)return;let{x:i,y:s}=r,o=mc(this,i,s);Qn("DraggableCore: handleDragStart: %j",o),Qn("calling",this.props.onStart),!(this.props.onStart(e,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&ib(n,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=s,cc(n,Ia.move,this.handleDrag),cc(n,Ia.stop,this.handleDragStop))},this.handleDrag=e=>{let t=uc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let s=n-this.lastX,o=a-this.lastY;if([s,o]=Dd(this.props.grid,s,o),!s&&!o)return;n=this.lastX+s,a=this.lastY+o}let r=mc(this,n,a);if(Qn("DraggableCore: handleDrag: %j",r),this.props.onDrag(e,r)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let s=document.createEvent("MouseEvents");s.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(s)}return}this.lastX=n,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=uc(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:a}=t;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=a-this.lastY||0;[o,l]=Dd(this.props.grid,o,l),n=this.lastX+o,a=this.lastY+l}let r=mc(this,n,a);if(this.props.onStop(e,r)===!1||this.mounted===!1)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&Td(s.ownerDocument),Qn("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(Qn("DraggableCore: Removing handlers"),rr(s.ownerDocument,Ia.move,this.handleDrag),rr(s.ownerDocument,Ia.stop,this.handleDragStop))},this.onMouseDown=e=>(Ia=Hn.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Ia=Hn.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Ia=Hn.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Ia=Hn.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&cc(e,Hn.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;rr(t,Hn.mouse.move,this.handleDrag),rr(t,Hn.touch.move,this.handleDrag),rr(t,Hn.mouse.stop,this.handleDragStop),rr(t,Hn.touch.stop,this.handleDragStop),rr(e,Hn.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&Td(t)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Ed.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):(Qn("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return li.cloneElement(li.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};ir.displayName="DraggableCore";ir.propTypes={allowAnyClick:_t.default.bool,allowMobileScroll:_t.default.bool,children:_t.default.node.isRequired,disabled:_t.default.bool,enableUserSelectHack:_t.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_t.default.arrayOf(_t.default.number),handle:_t.default.string,cancel:_t.default.string,nodeRef:_t.default.object,nonce:_t.default.string,onStart:_t.default.func,onDrag:_t.default.func,onStop:_t.default.func,onMouseDown:_t.default.func,scale:_t.default.number,className:oi,style:oi,transform:oi};ir.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var hs=class extends Ta.Component{constructor(e){super(e),this.onDragStart=(t,n)=>{if(Qn("Draggable: onDragStart: %j",n),this.props.onStart(t,dc(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(t,n)=>{if(!this.state.dragging)return!1;Qn("Draggable: onDrag: %j",n);let a=dc(this,n),r={x:a.x,y:a.y,slackX:0,slackY:0};if(this.props.bounds){let{x:s,y:o}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[l,c]=lb(this,r.x,r.y);r.x=l,r.y=c,r.slackX=this.state.slackX+(s-r.x),r.slackY=this.state.slackY+(o-r.y),a.x=r.x,a.y=r.y,a.deltaX=r.x-this.state.x,a.deltaY=r.y-this.state.y}if(this.props.onDrag(t,a)===!1)return!1;this.setState(r)},this.onDragStop=(t,n)=>{if(!this.state.dragging||this.props.onStop(t,dc(this,n))===!1)return!1;Qn("Draggable: onDragStop: %j",n);let r={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){let{x:s,y:o}=this.props.position;r.x=s,r.y=o}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(Qn("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;let t=Od.default;return typeof t.findDOMNode=="function"?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:r,defaultClassNameDragging:i,defaultClassNameDragged:s,position:o,positionOffset:l,scale:c,...d}=this.props,m={},f=null,k=!!!o||this.state.dragging,v=o||a,E={x:cb(this)&&k?this.state.x:v.x,y:ub(this)&&k?this.state.y:v.y};this.state.isElementSVG?f=tb(E,l):m=eb(E,l);let q=Ta.Children.only(n),me=Sd(q.props.className||"",r,{[i]:this.state.dragging,[s]:this.state.dragged});return Ta.createElement(ir,{...d,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},Ta.cloneElement(q,{className:me,style:{...q.props.style,...m},transform:f}))}};hs.displayName="Draggable";hs.propTypes={...ir.propTypes,axis:et.default.oneOf(["both","x","y","none"]),bounds:et.default.oneOfType([et.default.shape({left:et.default.number,right:et.default.number,top:et.default.number,bottom:et.default.number}),et.default.string,et.default.oneOf([!1])]),defaultClassName:et.default.string,defaultClassNameDragging:et.default.string,defaultClassNameDragged:et.default.string,defaultPosition:et.default.shape({x:et.default.number,y:et.default.number}),positionOffset:et.default.shape({x:et.default.oneOfType([et.default.number,et.default.string]),y:et.default.oneOfType([et.default.number,et.default.string])}),position:et.default.shape({x:et.default.number,y:et.default.number}),className:oi,style:oi,transform:oi};hs.defaultProps={...ir.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var Ad=hs;var sf=I(rf(),1),cn=I(fe(),1),hw=zt.default.forwardRef((e,t)=>{let{handleAxis:n,...a}=e,r=n==="ne"||n==="nw",i=n==="se"||n==="ne",s={se:"nwse-resize",sw:"nesw-resize",ne:"nesw-resize",nw:"nwse-resize"},o={position:"absolute",[r?"top":"bottom"]:3,[i?"right":"left"]:3,width:"12px",height:"12px",zIndex:20,cursor:s[n]??"pointer",borderRight:i?"3px solid #bdbdbd":"none",borderLeft:i?"none":"3px solid #bdbdbd",borderTop:r?"3px solid #bdbdbd":"none",borderBottom:r?"none":"3px solid #bdbdbd",borderRadius:n==="se"?"0 0 4px 0":n==="sw"?"0 0 0 4px":n==="ne"?"0 4px 0 0":"4px 0 0 0"};return(0,cn.jsx)("div",{ref:t,style:o,...a})}),gw=zt.default.forwardRef((e,t)=>{let{nodeRef:n,position:a,onDrag:r,onStart:i,onStop:s,disabled:o,...l}=e;return(0,cn.jsx)(Ad,{nodeRef:n,handle:"#draggable-dialog-title",cancel:'[class*="MuiIconButton-root"], [class*="MuiButton-root"], .no-drag',position:o?{x:0,y:0}:a,onStart:i,onDrag:r,onStop:s,disabled:o,children:(0,cn.jsx)(vn.Paper,{...l,ref:n,style:{...l.style,position:"fixed",top:0,left:0,margin:0,display:"flex",flexDirection:"column",overflow:"hidden"}})})});function yw({id:e,children:t,isMaximized:n=!1,isActive:a=!1,onFocus:r,onWindowChange:i,x:s=100,y:o=50,width:l=800,height:c=600},d){let[m,f]=(0,zt.useState)(!1),[h,k]=(0,zt.useState)(!1),[v,E]=(0,zt.useState)({x:s,y:o,width:l,height:c}),q=(0,zt.useRef)(null),me=(0,zt.useRef)(null),pe=(0,zt.useRef)(null),H=(0,vn.useTheme)();(0,zt.useImperativeHandle)(d,()=>({snapTo:oe=>{let Z=Math.floor(window.innerWidth/2),Fe=window.innerHeight,Ve=oe==="left"?{x:0,y:0,width:Z,height:Fe}:{x:Z,y:0,width:Z,height:Fe};E(Ve),i?.(e,!1,Ve.x,Ve.y,Ve.width,Ve.height)}}));let Q=()=>{q.current&&me.current&&(me.current.innerHTML=q.current.innerHTML)},W=()=>{Q(),f(!0),r?.()},de=()=>{f(!1),i?.(e,n,v.x,v.y,v.width,v.height)},Oe=()=>{k(!0),r?.()},Se=()=>{k(!1),i?.(e,n,v.x,v.y,v.width,v.height)},_=(0,zt.useCallback)((oe,Z)=>{E(Fe=>({...Fe,x:Z.x,y:Z.y}))},[]),B=(0,zt.useCallback)((oe,{size:Z,handle:Fe})=>{E(Ve=>{let at=Ve.x,Mt=Ve.y;return(Fe==="sw"||Fe==="nw")&&(at=Ve.x-(Z.width-Ve.width)),(Fe==="ne"||Fe==="nw")&&(Mt=Ve.y-(Z.height-Ve.height)),{...Ve,width:Z.width,height:Z.height,x:at,y:Mt}})},[]);return(0,cn.jsx)(vn.Dialog,{open:!0,hideBackdrop:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,disablePortal:!0,maxWidth:!1,onMouseDown:r,PaperComponent:gw,PaperProps:{nodeRef:pe,position:{x:v.x,y:v.y},onStart:W,onDrag:_,onStop:de,disabled:n},sx:{pointerEvents:"none","& .MuiDialog-container":{display:"block"},"& .MuiDialog-paper":{pointerEvents:"auto",maxWidth:"none",maxHeight:"none",transition:m||h?"none":"all 0.2s ease-in-out"}},children:(0,cn.jsx)(sf.ResizableBox,{width:n?window.innerWidth:v.width,height:n?window.innerHeight:v.height,onResizeStart:Oe,onResize:B,onResizeStop:Se,resizeHandles:n?[]:["se","sw","ne","nw"],handle:(oe,Z)=>(0,cn.jsx)(hw,{handleAxis:oe,ref:Z}),children:(0,cn.jsxs)(vn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",position:"relative",overflow:"hidden",bgcolor:"background.paper",border:H.palette.mode==="dark"?`1px solid ${a?"rgba(255,255,255,0.18)":"rgba(255,255,255,0.05)"}`:`1px solid ${H.palette.divider}`,boxShadow:H.palette.mode==="dark"?a?"0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 40px rgba(0,0,0,1), 0 4px 12px rgba(0,0,0,0.8)":"0 2px 8px rgba(0,0,0,0.6)":void 0,opacity:H.palette.mode==="dark"&&!a?.6:1,transition:"box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease"},children:[h&&(0,cn.jsx)(vn.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"text.secondary"},children:"Resizing..."}),(0,cn.jsx)(vn.Box,{ref:me,sx:{display:m?"block":"none",width:"100%",height:"100%",filter:"blur(3px)",opacity:.8,pointerEvents:"none",transform:"translateZ(0)"}}),(0,cn.jsx)(vn.Box,{ref:q,sx:{display:m||h?"none":"block",width:"100%",height:"100%"},children:(0,cn.jsx)(vn.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",border:H.palette.mode==="dark"?`1px solid ${a?"#444":"#1e1e1e"}`:"1px solid #ccc",backgroundColor:H.palette.background.default,position:"relative",borderRadius:n?0:"4px",overflow:"hidden"},children:t})})]})})})}var ta=zt.default.forwardRef(yw);u();var of=I(je(),1),ft=I(ht(),1),na=I(Jt(),1);var We=I(fe(),1),aa=({id:e,atTop:t,isMaximized:n,onMinimize:a,onTop:r,onMaximize:i,onClose:s,onSnap:o})=>{let[l,c]=(0,of.useState)(null),d=()=>c(null);return(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(ft.IconButton,{size:"small",onClick:m=>c(m.currentTarget),children:(0,We.jsx)(na.MoreVert,{fontSize:"small"})}),(0,We.jsxs)(ft.Menu,{anchorEl:l,open:!!l,onClose:d,children:[(0,We.jsxs)(ft.MenuItem,{onClick:()=>{r(),d()},children:[(0,We.jsx)(ft.ListItemIcon,{children:t?(0,We.jsx)(Km,{fontSize:"small",sx:{color:"info.main"}}):(0,We.jsx)(na.Place,{fontSize:"small"})}),(0,We.jsx)(ft.ListItemText,{children:t?"Unpin from top":"Pin to top"})]}),(0,We.jsxs)(ft.MenuItem,{onClick:()=>{i(),d()},children:[(0,We.jsx)(ft.ListItemIcon,{children:n?(0,We.jsx)(na.FullscreenExit,{fontSize:"small"}):(0,We.jsx)(Qm,{fontSize:"small"})}),(0,We.jsx)(ft.ListItemText,{children:n?"Restore":"Maximize"})]}),o&&(0,We.jsx)(ft.Divider,{}),o&&(0,We.jsxs)(ft.MenuItem,{onClick:()=>{o("left"),d()},children:[(0,We.jsx)(ft.ListItemIcon,{children:(0,We.jsx)(Gm,{fontSize:"small"})}),(0,We.jsx)(ft.ListItemText,{children:"Snap left"})]}),o&&(0,We.jsxs)(ft.MenuItem,{onClick:()=>{o("right"),d()},children:[(0,We.jsx)(ft.ListItemIcon,{children:(0,We.jsx)(na.East,{fontSize:"small"})}),(0,We.jsx)(ft.ListItemText,{children:"Snap right"})]})]}),(0,We.jsx)(ft.IconButton,{size:"small",onClick:a,children:(0,We.jsx)(Jm,{fontSize:"small"})}),(0,We.jsx)(ft.IconButton,{size:"small",onClick:s,sx:{"&:hover":{color:"error.main"}},children:(0,We.jsx)(na.Close,{fontSize:"small"})})]})};u();var ze=I(ht(),1),Fi=I(je(),1);u();var Vg=I(bh(),1),pI=xl(),Wg=e=>{try{let t=["apiVersion","kind","metadata","status","spec"],n={};return t.forEach(a=>{e&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}),Object.keys(e).forEach(a=>{t.includes(a)||(n[a]=e[a])}),n}catch(t){return console.error("Error al convertir JSON a YAML:",t),{}}};function Bs(e){if(e)return JSON.parse(JSON.stringify(e))}function $s(e,t){if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let r of n)if(!a.includes(r)||!$s(e[r],t[r]))return!1;return!0}function gm(e,t,n){let a=[];if(!t)return[];let r=n?t:t.toLowerCase();function i(s,o){if(s!=null)if(typeof s=="object"){for(let l in s)if(Object.prototype.hasOwnProperty.call(s,l)){let c=Array.isArray(s)?`${o}[${l}]`:o?`${o}.${l}`:l;(n?l:l.toLowerCase()).includes(r)&&a.push(c),i(s[l],c)}}else{let l=String(s);(n?l:l.toLowerCase()).includes(r)&&a.push(o)}}return i(e,""),[...new Set(a)].filter(s=>s!=="")}function qs(e,t=2){if(!Number.isFinite(e)||e===0)return"0 Bytes";let n=1024,a=t<0?0:t,r=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(a))+" "+r[i]}function Us(e){let t=e;return e.endsWith("n")&&(t=(+e.replace("n","")/1e9).toString()),e.endsWith("m")&&(t=(+e.replace("m","")/1e6).toString()),e.endsWith("k")&&(t=(+e.replace("k","")/1e3).toString()),+t}function Kn(e){if(!e)return 0;e=e.toString();let t=e.trim().match(/^([\d.]+)\s*([KMGTPE]i?)B?$/i);if(!t)return/^\d+$/.test(e)?+e:(console.error(`'size' format is not recognized: ${e}`),0);let n=parseFloat(t[1]),a=t[2].toUpperCase().replace(/B$/,""),r,i=1024;switch(a){case"EI":case"E":r=i**6;break;case"PI":case"P":r=i**5;break;case"TI":case"T":r=i**4;break;case"GI":case"G":r=i**3;break;case"MI":case"M":r=i**2;break;case"KI":case"K":r=i**1;break;case"":case"B":r=1;break;default:console.warn(`Unknown unit '${a}'. We assume Bytes.`),r=1;break}return n*r}function bl(e){try{let n=Vg.CronExpressionParser.parse(e).next().toDate(),a=new Date,r=n.getTime()-a.getTime(),i=Math.floor(r/1e3%60),s=Math.floor(r/(1e3*60)%60),o=Math.floor(r/(1e3*60*60)%24),l=Math.floor(r/(1e3*60*60*24));return{date:n,isoString:n.toISOString(),timeLeft:{days:l,hours:o,minutes:s,seconds:i},description:`${l}d ${o}h ${s}m ${i}s`}}catch{return}}function Hg(e){let t=e.spec.versions.find(l=>l.served);if(!t)return"";let n=e.spec.group,a=e.spec.names.kind,r=t.name,i=t.schema.openAPIV3Schema;function s(l){if(!l)return;if(l.type==="object"){let d={};return l.required&&l.properties&&l.required.forEach(m=>{let f=s(l.properties[m]);f!==void 0&&(d[m]=f)}),Object.keys(d).length>0?d:void 0}if(l.type==="array"&&l.items){let d=s(l.items);return d!==void 0?[d]:[]}if(l.default!==void 0)return l.default;let c={string:"example-value",integer:1,number:1,boolean:!0};return l.type?c[l.type]:"todo-value"}let o={apiVersion:`${n}/${r}`,kind:a,metadata:{name:`minimal-${a.toLowerCase()}`,namespace:"default"},spec:s(i.properties?.spec)||{}};return pI.dump(o,{indent:2,noRefs:!0})}var xt=I(fe(),1),Bg=e=>{let[t,n]=(0,Fi.useState)(null),[a,r]=(0,Fi.useState)({}),[i,s]=(0,Fi.useState)({});(0,Fi.useEffect)(()=>{if(e.model){let d=Bs(e.model);n(d),Object.keys(d).forEach(m=>{let f=d[m];f&&typeof f=="object"&&f.text&&typeof e.model[m]?.asyncAction=="function"&&e.model[m].asyncAction().then(h=>{r(k=>({...k,[m]:h}))})})}},[e.model]);let o=(d,m)=>{n(f=>({...f,[d]:m}))},l=(d,m,f)=>{n(h=>({...h,[d]:{...h[d],[m]:f}}))},c=()=>{t&&e.onApply(Bs(t))};return t?(0,xt.jsxs)(ze.Menu,{open:!!e.anchorParent,anchorEl:e.anchorParent,onClose:e.onClose,children:[(0,xt.jsx)(ze.Stack,{direction:"column",width:"460px",p:2,spacing:1.5,children:Object.keys(t).map((d,m)=>{let f=t[d];return(0,xt.jsxs)(ze.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:2,children:[(0,xt.jsxs)(ze.Typography,{variant:"body2",sx:{fontWeight:"bold",textTransform:"capitalize"},children:[d,":"]}),typeof f=="boolean"&&(0,xt.jsx)(ze.Switch,{checked:f,onChange:h=>o(d,h.target.checked)}),typeof f=="number"&&(0,xt.jsx)(ze.TextField,{type:"number",variant:"standard",value:f,onChange:h=>o(d,Number(h.target.value)),slotProps:{htmlInput:{style:{textAlign:"right",width:"80px"}}}}),f&&typeof f=="object"&&f.options&&f.value!==void 0&&(0,xt.jsx)(ze.Select,{variant:"standard",value:f.value,onChange:h=>l(d,"value",h.target.value),sx:{minWidth:"100px"},children:f.options.map((h,k)=>(0,xt.jsx)(ze.MenuItem,{value:h,children:h},k))}),f&&typeof f=="object"&&f.button&&(0,xt.jsx)(ze.Button,{variant:"outlined",size:"small",onClick:()=>e.model[d].action(),children:f.button}),f&&typeof f=="object"&&f.text&&(0,xt.jsx)(ze.Typography,{variant:"body2",color:"text.secondary",children:a[d]!==void 0?a[d]:"..."}),f&&typeof f=="object"&&Array.isArray(f.available)&&Array.isArray(f.value)&&(0,xt.jsxs)(ze.Stack,{spacing:.5,sx:{width:"100%",mt:.5},children:[f.available.length>8&&(0,xt.jsx)(ze.TextField,{size:"small",variant:"outlined",placeholder:"Filter...",value:i[d]??"",onChange:h=>s(k=>({...k,[d]:h.target.value})),slotProps:{htmlInput:{style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,xt.jsx)(ze.List,{dense:!0,disablePadding:!0,sx:{maxHeight:200,overflowY:"auto",width:"100%",border:"1px solid",borderColor:"divider",borderRadius:1},children:f.available.filter(h=>!i[d]||h.toLowerCase().includes(i[d].toLowerCase())).map((h,k)=>(0,xt.jsx)(ze.ListItem,{disablePadding:!0,sx:{px:1},children:(0,xt.jsx)(ze.FormControlLabel,{control:(0,xt.jsx)(ze.Checkbox,{size:"small",checked:f.value.includes(h),onChange:v=>{let E=v.target.checked?[...f.value,h]:f.value.filter(q=>q!==h);l(d,"value",E)}}),label:(0,xt.jsx)(ze.Typography,{variant:"caption",children:h})})},k))})]})]},m)})}),(0,xt.jsxs)(ze.DialogActions,{sx:{p:2},children:[(0,xt.jsx)(ze.Button,{onClick:e.onClose,color:"inherit",children:"Cancel"}),(0,xt.jsx)(ze.Button,{onClick:c,variant:"contained",color:"primary",children:"Apply"})]})]}):null};u();var hI=e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return Math.abs(t)%360},$g=(e,t="light")=>{if(!e)return{dot:"transparent",tabBg:t==="dark"?"#2a2a2a":"#ebebeb"};let n=hI(e);return{dot:`hsl(${n}, 55%, 45%)`,tabBg:t==="dark"?`hsl(${n}, 30%, 26%)`:`hsl(${n}, 22%, 89%)`}},Tr=e=>({headers:{Authorization:e?"Bearer "+e:"","X-Kwirth-App":"true"}});var an=I(Rt(),1),X=I(fe(),1),Ug=e=>{let t=e.data,n=(0,On.useRef)(null),a=(0,On.useRef)(null),[r,i]=(0,On.useState)((0,X.jsx)(X.Fragment,{})),[s,o]=(0,On.useState)(void 0),[l,c]=(0,On.useState)(void 0),[d,m]=(0,On.useState)(e.isMaximized),[,f]=(0,On.useState)(0),h=()=>f(_=>_+1);(0,On.useEffect)(()=>{if(!t.isInitialized){if(t.isInitialized=!0,t.content=k(t.channelId),!t.content)return;switch(t.channelId){case"log":{let _=t.content?.externalChannel;if(_?.prepareExternalChannel){let B=_.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=B.data,t.content.externalChannelObject.config=B.config,t.content.externalChannelObject.instanceConfig=B.instanceConfig,t.content.externalChannelObject.config.maxMessages=t.settings?.logLines??5e3}t.formConfig={lines:t.settings?.logLines??5e3,showNames:!1,timestamp:!1,startDiagnostics:!1};break}case"metrics":{let _=t.content?.externalChannel;if(_?.prepareExternalChannel){let Fe=_.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=Fe.data,t.content.externalChannelObject.config=Fe.config,t.content.externalChannelObject.instanceConfig=Fe.instanceConfig}let B=Array.from(t.channelObject?.metricsList?.keys()||[]).filter(Fe=>Fe.startsWith("container_")||Fe.startsWith("kwirth_")),oe=["kwirth_container_cpu_percentage","kwirth_container_memory_percentage","kwirth_container_transmit_mbps","kwirth_container_receive_mbps","kwirth_container_write_mbps","kwirth_container_read_mbps"],Z=t.content?.externalChannelObject?.instanceConfig?.metrics;t.formConfig={aggregate:!0,merge:!1,type:{value:"line",options:["line","bar","area"]},width:3,depth:50,legend:!0,metrics:{available:B,value:Z?.length?Z:oe}};break}case"fileman":t.formConfig={},E(t.content);break;case"trivy":{let _=t.content?.externalChannel;if(_?.prepareExternalChannel){let oe=_.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=oe.data,t.content.externalChannelObject.config=oe.config,t.content.externalChannelObject.instanceConfig=oe.instanceConfig}let B=t.content.externalChannelObject.instanceConfig;t.formConfig={ignoreCritical:B?.ignoreCritical??!1,ignoreHigh:B?.ignoreHigh??!1,ignoreMedium:B?.ignoreMedium??!1,ignoreLow:B?.ignoreLow??!0,Status:{text:"Status",asyncAction:async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,Tr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}}},"Install Trivy operator":{button:"Install",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,an.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,Tr(t.content?.externalChannelObject?.accessString)),i((0,an.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,an.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}},"Remove Trivy operator":{button:"Remove",action:async()=>{t.content?.externalChannelObject?.data.ri?(i((0,an.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,Tr(t.content?.externalChannelObject?.accessString)),i((0,an.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,an.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))}}};break}case"news":t.formConfig={maxItems:50,feeds:{available:["kubernetes","ai"],value:["kubernetes","ai"]}};break;default:{let _=t.content?.externalChannel;if(_?.prepareExternalChannel){let B=_.prepareExternalChannel(t.contentView,e.selectedFiles,e.container??"");t.content.externalChannelObject.data=B.data,t.content.externalChannelObject.config=B.config,t.content.externalChannelObject.instanceConfig=B.instanceConfig,t.formConfig=B.formConfig}else t.formConfig={};break}}}},[]),(0,On.useEffect)(()=>{if(t.channelId==="ops"){let _=async B=>{if(!a.current?.contains(document.activeElement)||["Control","Alt","Shift","Meta"].includes(B.key))return;let oe=t.content.termId||e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name+"/"+e.container,Z=t.content?.externalChannelObject?.data?.terminalManager?.terminals.get(oe),Fe=Z?.socket;if(!Fe||Fe.readyState!==WebSocket.OPEN)return;let Ve=B.key.toLowerCase(),at=null;if(B.ctrlKey,B.ctrlKey&&B.shiftKey&&Ve==="c"){B.preventDefault();let Mt=Z.term?Z.term.getSelection():window.getSelection()?.toString();Mt&&await navigator.clipboard.writeText(Mt);return}if(B.ctrlKey&&B.shiftKey&&Ve==="v"){B.preventDefault();try{let Mt=await navigator.clipboard.readText();Mt&&Fe.send(Mt)}catch(Mt){console.error("Clipboard could not be accessed",Mt)}return}at=yI(B),!at&&B.ctrlKey&&(at=xI(B.key)),!at&&B.altKey&&B.key.length===1&&(at="\x1B"+B.key),at||(at=gI[B.key]||(B.key.length===1?B.key:null)),at&&(B.preventDefault(),B.stopPropagation(),Fe.send(at))};return window.addEventListener("keydown",_,!0),()=>{window.removeEventListener("keydown",_,!0)}}},[e.container,e.selectedFiles,t.content?.externalChannelObject]),sc(async()=>{if(t.content&&!t.content.externalChannelObject.data&&await t.content.externalChannel.initChannel(t.content.externalChannelObject),t.options.autostart&&t.content&&!t.content.externalChannelStarted){for(;t.content?.ws?.readyState!==WebSocket.OPEN;)await new Promise(_=>setTimeout(_,10));t.content?.ws?.readyState===WebSocket.OPEN&&q()}},[]);let k=_=>{let B=(0,wl.createChannelInstance)(t.frontChannels.get(_));if(!B){console.log("Invaid channel instance created");return}let oe={ws:void 0,externalChannel:B,externalChannelObject:{isDesktop:t.isDesktop,clusterName:t.channelObject?.clusterName,instanceId:"",view:t.contentView,namespace:t.contentView===De.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(Z=>Z.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(Z=>Z.data.origin.metadata.namespace))].join(","),group:t.contentView===De.EInstanceConfigView.GROUP?e.selectedFiles.map(Z=>Z.data.origin.kind+"+"+Z.data.origin.metadata.name).join(","):"",pod:t.contentView===De.EInstanceConfigView.POD?e.selectedFiles.map(Z=>Z.data.origin.metadata.name).join(","):"",container:t.contentView===De.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",config:void 0,data:void 0,instanceConfig:void 0,channelId:B.channelId},externalChannelStarted:!1,externalChannelPaused:!1,externalChannelPending:!1,settings:t.settings,termId:e.selectedFiles[0]?.data?.origin?.metadata?.namespace+"/"+e.selectedFiles[0]?.data?.origin?.metadata?.name.split("+")[0]+"/"+e.container};return B.requirements.notifier&&(oe.externalChannelObject.notify=t.channelObject?.notify),B.requirements.metrics&&(oe.externalChannelObject.metricsList=t.channelObject?.metricsList),B.requirements.clusterUrl&&(oe.externalChannelObject.clusterUrl=t.channelObject?.clusterUrl),B.requirements.accessString&&(oe.externalChannelObject.accessString=t.channelObject?.accessString),oe.ws=new WebSocket(t.channelObject?.clusterUrl),oe.ws.onmessage=Z=>v(Z),oe.ws.onerror=Z=>()=>{console.log("WebSocket error:"+Z,new Date().toISOString())},oe.ws.onclose=Z=>{console.log("WebSocket disconnect:"+Z.reason,new Date().toISOString())},B.requirements.webSocket&&(oe.externalChannelObject.webSocket=oe.ws),t.onOpenExternal&&(oe.externalChannelObject.openExternal=t.onOpenExternal),oe},v=_=>{let B;try{B=JSON.parse(_.data)}catch(oe){console.log(oe.stack),console.log(_.data);return}if(!(B.action===De.EInstanceMessageAction.PING||B.channel===""))if(t.frontChannels.has(B.channel)){let oe=t.content.externalChannel?.processChannelMessage(t.content.externalChannelObject,_);oe&&(oe.action===ym.EChannelRefreshAction.REFRESH?t.onRefresh():oe.action===ym.EChannelRefreshAction.STOP&&pe())}else console.log("Received invalid channel in message: ",B),t.onNotify(void 0,qg.ENotifyLevel.ERROR,`'Received invalid channel in message: ${B.channel}`)},E=_=>{let B={paused:!1,started:!1,files:[],currentPath:"",ri:void 0},oe={notify:t.onNotify};_.externalChannelObject.webSocket=t.content.ws,_.externalChannelObject.data=B,_.externalChannelObject.config=oe},q=()=>{if(!(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)){if(t.content.externalChannelPaused){t.content.externalChannel.continueChannel(t.content.externalChannelObject);let _={channel:t.content.externalChannel.channelId,objects:De.EInstanceConfigObject.PODS,action:De.EInstanceMessageAction.CONTINUE,flow:De.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.contentView,scope:De.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:De.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!1,t.content.ws.send(JSON.stringify(_))}else{t.content.externalChannel.startChannel(t.content.externalChannelObject);let _={channel:t.content.externalChannel.channelId,objects:De.EInstanceConfigObject.PODS,action:De.EInstanceMessageAction.START,flow:De.EInstanceMessageFlow.REQUEST,instance:"",accessKey:t.channelObject?.accessString,scope:De.EInstanceConfigScope.NONE,view:t.contentView,namespace:t.contentView===De.EInstanceConfigView.NAMESPACE?e.selectedFiles.map(B=>B.data.origin.metadata.name).join(","):[...new Set(e.selectedFiles.map(B=>B.data.origin.metadata.namespace))].join(","),group:t.contentView===De.EInstanceConfigView.GROUP?e.selectedFiles.map(B=>B.data.origin.kind+"+"+B.data.origin.metadata.name).join(","):"",pod:t.contentView===De.EInstanceConfigView.POD?e.selectedFiles.map(B=>B.data.origin.metadata.name).join(","):"",container:t.contentView===De.EInstanceConfigView.CONTAINER?e.selectedFiles[0].data.origin.metadata.name+"+"+e.container:"",type:De.EInstanceMessageType.SIGNAL};_.scope=t.content.externalChannel.getScope()||"",_.data=t.content.externalChannelObject.instanceConfig,t.content.ws.send(JSON.stringify(_)),t.content.externalChannelStarted=!0,t.content.externalChannelPaused=!1}h()}},me=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;t.content.externalChannel.pauseChannel(t.content.externalChannelObject);let _={channel:t.content.externalChannel.channelId,objects:De.EInstanceConfigObject.PODS,action:De.EInstanceMessageAction.PAUSE,flow:De.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.content.externalChannelObject.view,scope:De.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:De.EInstanceMessageType.SIGNAL};t.content.externalChannelPaused=!0,_.action=De.EInstanceMessageAction.PAUSE,t.content.ws.send(JSON.stringify(_)),h()},pe=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let _={channel:t.content.externalChannel.channelId,objects:De.EInstanceConfigObject.PODS,action:De.EInstanceMessageAction.STOP,flow:De.EInstanceMessageFlow.REQUEST,instance:t.content.externalChannelObject.instanceId,accessKey:t.channelObject?.accessString,view:t.content.externalChannelObject.view,scope:De.InstanceConfigScopeEnum.NONE,namespace:"",group:"",pod:"",container:"",type:De.EInstanceMessageType.SIGNAL};t.content.externalChannel.stopChannel(t.content.externalChannelObject),t.content.ws.send(JSON.stringify(_)),t.content.externalChannelStarted=!1,t.content.externalChannelPaused=!1,h()},H=()=>{let _=(0,X.jsx)(X.Fragment,{});switch(t.channelId){case"log":_=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Log"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"You can configure log depth (number of lines) on the configuration menu."}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"Other configuration options, like Start Diagnostics, are not available to Magnify, but you can use them in log channel."})]});break;case"metrics":_=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Metrics"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"You can change every individual chart type, but it won't be saved. Next time you'll need to reconfigure it again."}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"Data visualization refreshment depends on your Kwirth front configuration, your Magnify configuration."}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"On the other side, data freshness depends on Kwirth backend configuration. If you ser a visualization refresh lower than your data freshness, you'll get repeated values on different intervals."})]});break;case"ops":_=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Ops"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsxs)(ye.Typography,{fontSize:12,children:["You can use clipboard functions by pressing ",(0,X.jsx)("b",{children:"Ctrl+Shift+C"})," for copying and ",(0,X.jsx)("b",{children:"Ctrl+Shift+V"})," for pasting"]}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"You can minimize this window and the connection will keep open, or you can close this window and the connection to the container will be closed."})]});break;case"fileman":_=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Fileman"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"You can refresh filesystem data everytime you suspect what you are viewing is not acccurate. Just click on top-righ icon to refresh content."}),(0,X.jsx)(ye.Typography,{fontSize:12,children:"Upload and Download capabilities depend on your kind of Kwirth deployment. These actions are not available for all architectures. They should be available, at least, on Kubernetes Deployment. Accessing them via Electron may not be working."})]});break;case"trivy":_=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Trivy"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"Kwirth Trivy channel is a powerful tool for managing your workload security. It is based on Trivy Operator, which you can install by your own or use Kwirth for deploying Trivy without any effort (perform installation from a Trivy channel or from 'Settings' on this window)."}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"Once Trivy Operator is installed, you will see here Trivy information related to artifacts you've selected in Magnify. You can select, for instance, several pods and access this Trivy channel for viewing Trivy information about those set of pods."}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"From the asset list you will be able to see: Vulnerabilities report, Config Audit report, Exposed secrets report and also a SBOM (Software Bill of Materials, where you can analyze pacakges and its dependencies)."})]});break;case"pinocchio":_=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ye.Typography,{variant:"subtitle1",sx:{fontWeight:700,flexGrow:1},children:"Pinocchio"}),(0,X.jsx)(ye.Divider,{}),(0,X.jsx)(ye.Typography,{variant:"body2",children:"This is real WIP."})]});break;default:{let B=t.content?.externalChannel?.getExternalHelpContent?.();B&&(_=(0,X.jsx)(X.Fragment,{children:B}));break}}return(0,X.jsx)(ye.Popover,{anchorEl:s,open:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{width:400,maxHeight:500}}},onClose:()=>o(void 0),children:(0,X.jsx)(ye.Box,{sx:{p:2,display:"flex",alignItems:"left",gap:1,flexDirection:"column"},children:_})})},Q=()=>{if(!t.content||!t.content.ws||!t.content.externalChannel||!t.content.externalChannelObject)return;let _=t.content.externalChannel.TabContent,B={channelObject:t.content.externalChannelObject,onEnd:()=>e.onClose(e.id)};return B.channelObject.channelId==="ops"?(0,X.jsx)("div",{ref:a,children:(0,X.jsx)(_,{...B})}):(0,X.jsx)(_,{...B})},W=()=>{e.onFocus&&e.onFocus()},de=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},Oe=_=>{m(!1),n.current?.snapTo(_)},Se=_=>{switch(c(void 0),t.formConfig=_,t.channelId){case"log":{let Z=t.content.externalChannelObject.config;Z.maxMessages=_.lines,Z.showNames=_.showNames,Z.startDiagnostics=_.startDiagnostics;let Fe=t.content.externalChannelObject.instanceConfig;Fe.timestamp=_.timestamp,pe(),q();break}case"metrics":let B=t.content.externalChannelObject.config,oe=t.content.externalChannelObject.instanceConfig;B.width=_.width,B.merge=_.merge,B.depth=_.depth,B.legend=_.legend,B.chart=_.type?.value??B.chart,oe.aggregate=_.aggregate,oe.metrics=_.metrics?.value??oe.metrics,pe(),q();break;case"shell":break;case"fileman":break;case"trivy":{let Z=t.content.externalChannelObject.instanceConfig;Z.ignoreCritical=_.ignoreCritical??!1,Z.ignoreHigh=_.ignoreHigh??!1,Z.ignoreMedium=_.ignoreMedium??!1,Z.ignoreLow=_.ignoreLow??!0,t.formConfig.Status.asyncAction=async()=>{try{return t.content?.externalChannelObject?.data.ri?await(await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=status`,Tr(t.content?.externalChannelObject?.accessString))).text():"No RI. Wait a few seconds."}catch{return"N/A"}},t.formConfig["Install Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,an.MsgBoxWait)("Trivy install","Wait for Trivy to start installation",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=install`,Tr(t.content?.externalChannelObject?.accessString)),i((0,an.MsgBoxOk)("Install","Installation started, close this dialog and wait for Trivy to finish startup",i))):i((0,an.MsgBoxOk)("Trivy install","Running instance is not yet available, please try again in a few seconds",i))},t.formConfig["Remove Trivy operator"].action=async()=>{t.content?.externalChannelObject?.data.ri?(i((0,an.MsgBoxWait)("Trivy remove","Wait for Trivy to start removing",i)),await fetch(`${t.content?.externalChannelObject?.clusterUrl}/${t.content?.externalChannelObject?.data.ri}/channel/trivy/operator?action=remove`,Tr(t.content?.externalChannelObject?.accessString)),i((0,an.MsgBoxOk)("Remove","Removing started, close this dialog and wait for Trivy to completely disappear from your cluster",i))):i((0,an.MsgBoxOk)("Trivy remove","Running instance is not yet available, please try again in a few seconds",i))};break}case"news":{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,_),pe(),q();break}case"pinocchio":break;default:{t.content?.externalChannel?.onExternalConfigApply?.(t.content.externalChannelObject,_)&&h();break}}};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(ta,{ref:n,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:W,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,X.jsx)(ye.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,X.jsxs)(ye.Stack,{direction:"row",alignItems:"center",children:[(0,X.jsx)(ye.IconButton,{size:"small",onClick:q,disabled:!t.options.autostart||t.content?.externalChannelStarted&&!t.content?.externalChannelPaused,children:(0,X.jsx)(ma.PlayArrow,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",onClick:me,disabled:!t.options.pauseable||!t.content?.externalChannelStarted||t.content?.externalChannelPaused,children:(0,X.jsx)(ma.Pause,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",onClick:pe,disabled:!t.options.stoppable||!t.content?.externalChannelStarted,children:(0,X.jsx)(ma.Stop,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",disabled:!t.options.configurable,onClick:_=>c(_.target),children:(0,X.jsx)(ma.Settings,{fontSize:"small"})}),(0,X.jsx)(ye.IconButton,{size:"small",onClick:_=>o(_.currentTarget),children:(0,X.jsx)(ma.Info,{fontSize:"small"})}),(0,X.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,X.jsxs)(ye.Typography,{children:[(0,wl.getChannelIconOf)(t.content?.externalChannel),"\xA0",e.title]}),(0,X.jsx)(ye.Typography,{sx:{flexGrow:1}}),(0,X.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:de,onClose:()=>e.onClose(e.id),onSnap:Oe})]})}),(0,X.jsx)(ye.DialogContent,{sx:{display:"flex",flexDirection:"column",p:0,overflow:"hidden",height:"100%",minHeight:0,paddingBottom:1},children:Q()})]}),s&&H(),l&&(0,X.jsx)(Bg,{anchorParent:l,model:t.formConfig,onApply:Se,onClose:()=>c(void 0)}),r]})},gI={ArrowUp:"\x1B[A",ArrowDown:"\x1B[B",ArrowRight:"\x1B[C",ArrowLeft:"\x1B[D",Home:"\x1B[H",End:"\x1B[F",PageUp:"\x1B[5~",PageDown:"\x1B[6~",Insert:"\x1B[2~",Delete:"\x1B[3~",Backspace:"\x7F",Tab:" ",Enter:"\r",Escape:"\x1B",F1:"\x1BOP",F2:"\x1BOQ",F3:"\x1BOR",F4:"\x1BOS",F5:"\x1B[15~",F6:"\x1B[17~",F7:"\x1B[18~",F8:"\x1B[19~",F9:"\x1B[20~",F10:"\x1B[21~",F11:"\x1B[23~",F12:"\x1B[24~"},yI=e=>{let{key:t,ctrlKey:n,altKey:a,shiftKey:r}=e,i=1;if(r&&(i+=1),a&&(i+=2),n&&(i+=4),i===1)return null;let s={F1:"P",F2:"Q",F3:"R",F4:"S"};if(s[t])return`\x1B[1;${i}${s[t]}`;let o={F5:15,F6:17,F7:18,F8:19,F9:20,F10:21,F11:23,F12:24};if(o[t])return`\x1B[${o[t]};${i}~`;let l={ArrowUp:"A",ArrowDown:"B",ArrowRight:"C",ArrowLeft:"D",Home:"H",End:"F"};if(l[t])return`\x1B[1;${i}${l[t]}`;let c={Insert:2,Delete:3,PageUp:5,PageDown:6};return c[t]?`\x1B[${c[t]};${i}~`:null};function xI(e){let t=e.toLowerCase().charCodeAt(0);return t>=97&&t<=122?String.fromCharCode(t-96):null}u();var Jn=I(je(),1),ut=I(ht(),1),ox=I(Jt(),1);u();var Q0=I(Jt(),1),U=I(ht(),1);var Rn=I(je(),1),ex=I(Ml(),1),tx=I(Dl(),1),S=I(fe(),1),Ne={get:ex.default,set:tx.default};function SM(e){let t=[],n=Math.floor(e.days);n>0&&(t.push(`${n}d`),e.days-=e.days);let a=Math.floor(e.hours);(a>0||t.length>0)&&(t.push(`${a}h`),e.hours-=e.hours);let r=Math.floor(e.minutes);return r>0&&t.length<2&&t.push(`${r}m`),t.slice(0,2).join("")}var nx=e=>{let t=0,n=15,a=Rn.default.useMemo(()=>!e.sections||!e.object.data?!1:e.sections.some(c=>c.items.some(d=>d.format==="edit"||d.style&&d.style.includes("edit"))),[e.sections,e.object.data]);Rn.default.useEffect(()=>{e.onContainsEdit&&e.onContainsEdit(a)},[a,e.onContainsEdit]);let r=(c,d)=>{let m;if(d.includes("||")){let f=d.split("||");f[f.length-1]==="$default"?m="$default":m=f[f.length-1];for(let h of f)if(Ne.get(c,h)){m=Ne.get(c,h);break}}else m=Ne.get(c,d);return m},i=(c,d,m,f,h,k,v,E,q)=>{let me=m;if(m.startsWith("$"))return(0,S.jsx)(U.Typography,{fontWeight:h.includes("bold")?"700":"",variant:"body2",children:m.substring(1)});let pe=!1;m.startsWith("#")&&(m=m.substring(1),pe=!0);let H=JSON.parse(JSON.stringify(d));if(m.includes("|")&&m.includes(":")){let W=m.split(":")[1],de=m.split(":")[0].split("|"),Oe=[],Se=[];Ne.get(H,de[0])&&(Oe=Ne.get(H,de[0]).map(_=>_[W]));for(let _ of Oe){let B=Ne.get(H,de[0]).filter(Z=>Z[W]===_),oe=Ne.get(H,de[1]).filter(Z=>Z[W]===_);if(B.length===1&&oe.length===1){let Z={...B[0],...oe[0]};Se.push(Z)}}Ne.set(H,de[0],Se),m=de[0]}let Q=h&&h.includes("header")&&q?q.text+":\xA0":"";switch(f){case"age":let W=Date.parse(r(H,m)),Oe=new Date().getTime()-W,Se=Math.floor(Oe/(1e3*60*60*24));Oe-=Se*(1e3*60*60*24);let _=Math.floor(Oe/(1e3*60*60));Oe-=_*(1e3*60*60);let B=Math.floor(Oe/(1e3*60));return(0,S.jsx)(U.Typography,{variant:"body2",children:SM({days:Se,hours:_,minutes:B})});case"boolean":let Z=!1;m==="@string[]"&&E?Z=!!E(c,H,e.onLink)[0]:Z=!!Ne.get(H,m);let Fe=h.filter(Y=>Y.startsWith(Z+":"));if(h&&Fe.length===1){let Y=Fe[0].split(":");return Z?(0,S.jsx)(U.Typography,{sx:{color:Y[2]},variant:"body2",children:Y[1]}):(0,S.jsx)(U.Typography,{sx:{color:Y[2]},variant:"body2",children:Y[1]})}else return Z?(0,S.jsx)(U.Typography,{sx:{color:"success.main"},variant:"body2",children:"OK"}):(0,S.jsx)(U.Typography,{sx:{color:"error.main"},variant:"body2",children:"ko"});case"string":let Ve="";if((m==="@string"||m==="@jsx")&&q?.invoke)return(0,S.jsx)(S.Fragment,{children:q.invoke(c,H,e.onLink)});if(m==="@string[]"&&E?Ve=E(c,H,e.onLink)[0]:Ve=r(H,m),q?.processValue)try{Ve=q.processValue(Ve)}catch{}if(h&&h.includes("mb")&&(Ve=qs(Kn(Ve))),h&&h.includes("edit"))return(0,S.jsxs)(S.Fragment,{children:[Q,i(c,d,m,"edit",h,k,[],void 0)]});{let Y=Ve,he="",Te=[],dt=(0,S.jsx)(S.Fragment,{children:Y});if(Y&&h){let Lt=h.find(qe=>qe.startsWith("char:"));if(Lt){let qe=+Lt.substring(5);Y&&Y.length>qe&&(dt=(0,S.jsx)(S.Fragment,{children:Y.substring(0,qe)+"..."}))}h.includes("bold")&&(he="700"),Te=h.filter(qe=>qe.startsWith(Ve+":"));let vt=h.find(qe=>qe.startsWith("color:"));vt&&(Te=[vt]);let Fn=h.find(qe=>qe.startsWith("link:"));if(Fn&&pe){let qe=Fn.split(":");qe.length<4&&console.log("link<4",Fn);for(let bn=1;bn<=3;bn++)qe[bn].startsWith("$")?qe[bn]=qe[bn].substring(1):qe[bn]=Ne.get(H,qe[bn]);qe[3]==="$namespace"&&(qe[3]=c.metadata.namespace),dt=(0,S.jsx)("a",{href:"#",onClick:()=>e.onLink(qe[1],Y,qe[3]),children:Y})}}if(Te.length>0)return(0,S.jsxs)(U.Typography,{component:"div",color:Te[0].split(":")[1],fontWeight:he,variant:"body2",children:[Q,dt]});if(h){let Lt=h.filter(vt=>vt.startsWith("property:"));if(Lt.length>0)for(let vt of Lt){let Fn=vt.split(":");if(Ne.get(H,Fn[1])===Fn[2])return(0,S.jsxs)(U.Typography,{component:"div",color:Fn[3],fontWeight:he,variant:"body2",children:[Q,dt]})}}return(0,S.jsxs)(U.Typography,{component:"div",fontWeight:he,variant:"body2",children:[Q,dt]})}case"edit":let at=Ne.get(H,m);return h.includes("base64")&&(at=atob(at)),h.includes("multiline")?(0,S.jsx)(U.TextareaAutosize,{name:m,defaultValue:at,style:{width:"100%",marginTop:1,marginBottom:1,resize:"vertical",minHeight:"64px"},onChange:Y=>e.onChangeData(m,Y.target.value)}):(0,S.jsx)(U.TextField,{name:m,defaultValue:at,maxRows:5,sx:{width:"100%",mt:1,mb:1},size:"small",onChange:Y=>e.onChangeData(m,Y.target.value)});case"booleankey":return Ne.get(H,m)===!0?(0,S.jsx)(S.Fragment,{children:m}):(0,S.jsx)(S.Fragment,{});case"keylist":let Mt=Object.keys(Ne.get(H,m));return(0,S.jsx)(S.Fragment,{children:i(c,{keys:Mt},"keys","stringlist",h,k,[],void 0)});case"stringlist":let re=[];if(m==="@string[]"&&E?re=E(c,H,e.onLink):re=Ne.get(H,m),!re)return(0,S.jsx)(S.Fragment,{});if(q?.processValue)try{for(let Y=0;Y<re.length;Y++)re[Y]=q.processValue(re[Y])}catch{}if(h.includes("column")){let Y=me.startsWith("#")?"#":"";return(0,S.jsx)(U.Stack,{direction:"column",children:re.map((he,Te)=>(0,S.jsx)(U.Typography,{component:"div",variant:"body2",children:i(c,re,Y+"["+Te+"]","string",h,k+1,void 0,void 0)},Te))})}else{let Y=re.join(",\xA0"),he=h.filter(Te=>Te.startsWith(Y+":"));return he.length>0?(0,S.jsxs)(U.Typography,{color:he[0].split(":")[1],variant:"body2",children:[Q,Y]}):(0,S.jsxs)(U.Typography,{variant:"body2",children:[Q,Y]})}case"objectlist":let Me=[];return m==="@string[]"&&E||m==="@object[]"&&E?Me=E(c,H,e.onLink):Me=Ne.get(H,m),Me?h.includes("table")&&v?(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",sx:{width:"100%"},children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:v.map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y.text},he))})}),(0,S.jsx)(U.TableBody,{children:Me.map((Y,he)=>(0,S.jsx)(U.TableRow,{children:v.map((Te,dt)=>{let Lt=v.find(vt=>vt.name===Te.name);return!Lt||!v?(0,S.jsx)(S.Fragment,{}):(0,S.jsxs)(U.TableCell,{children:[" ",typeof Ne.get(Y,Te.source[0])=="object"?Array.isArray(Ne.get(Y,Te.source[0]))?(0,S.jsx)(S.Fragment,{children:i(c,Y,Te.source[0],Lt.format,Te.style||[],k+1,Lt.items,void 0)}):(0,S.jsx)(S.Fragment,{children:i(c,Y,Te.source[0],v.find(vt=>vt.source[0]===Te.source[0]).format,v.find(vt=>vt.source[0]===Te.source[0]).style||[],k+1,[Lt],void 0)}):(0,S.jsx)(S.Fragment,{children:s(c,Y,Te,k+1)})]},dt)})},he))})]})}):(0,S.jsx)(S.Fragment,{children:Me.map((Y,he)=>v?(0,S.jsx)(U.Stack,{direction:h.includes("column")?"column":"row",sx:{width:h.includes("fullwidth")?"100%":"auto"},children:h.includes("column")?v.map((Te,dt)=>(0,S.jsx)(Rn.default.Fragment,{children:s(c,Y,Te,k+1)},dt)):v.map((Te,dt)=>(0,S.jsxs)(Rn.default.Fragment,{children:[s(c,Y,Te,k+1)," ",(0,S.jsx)(S.Fragment,{children:he<Me.length-1?",\xA0":""})," "]},dt))},he):(0,S.jsx)(Rn.default.Fragment,{},he))}):(0,S.jsx)(S.Fragment,{});case"objectobject":return h.includes("table")?(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:Object.keys(Ne.get(H,m)[0]).map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y},he))})}),(0,S.jsx)(U.TableBody,{children:Ne.get(H,m).map((Y,he)=>(0,S.jsx)(U.TableRow,{children:Object.keys(Ne.get(H,m)[0]).map((Te,dt)=>(0,S.jsx)(U.TableCell,{children:i(c,Y,m,"string",[],k+1,[],void 0)},dt))},he))})]})}):(0,S.jsx)(S.Fragment,{children:Ne.get(H,m).map((Y,he)=>v?(0,S.jsx)(Rn.default.Fragment,{children:v.map((Te,dt)=>(0,S.jsx)(Rn.default.Fragment,{children:o(c,Y,Te,n,k+1)},dt))},he):(0,S.jsx)(S.Fragment,{}))});case"objectprops":return Ne.get(H,m)?h&&h.includes("table")?q&&q?.items?(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:q.items.map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y.text},he))})}),(0,S.jsx)(U.TableBody,{children:(0,S.jsx)(U.TableRow,{children:q.items.map((Y,he)=>(0,S.jsx)(U.TableCell,{children:i(c,H,Y.source[0],Y.format,Y.style||[],k)},he))})})]})}):(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:Object.keys(Ne.get(H,m)).map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y},he))})}),(0,S.jsx)(U.TableBody,{children:(0,S.jsx)(U.TableRow,{children:Object.keys(Ne.get(H,m)).map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Ne.get(H,m+".['"+Y+"']")},he))})})]})}):v?(0,S.jsx)(S.Fragment,{children:v.map((Y,he)=>(0,S.jsxs)(U.Stack,{direction:Y.style&&Y.style.includes("column")?"column":"row",children:[(0,S.jsxs)(U.Typography,{fontWeight:h&&h.includes("keybold")?"700":"",variant:"body2",children:[Y.text,":\xA0"]}),s(c,H,Y,k+1)]},he))}):(0,S.jsx)(S.Fragment,{children:Object.keys(Ne.get(H,m)).map((Y,he)=>h&&h.includes("edit")?(0,S.jsxs)(U.Stack,{direction:"column",sx:{mt:1},children:[(0,S.jsxs)(U.Stack,{direction:"row",children:[(0,S.jsx)(U.Tooltip,{title:Y,placement:"top",children:(0,S.jsx)(U.Typography,{fontWeight:h.includes("keybold")?"700":"",variant:"body2",children:Y})}),h.includes("lockicon")&&(0,S.jsx)(Q0.Https,{fontSize:"small",sx:{color:"error.main"}})]}),i(c,H,m+".['"+Y+"']","edit",h,k+1,[],void 0)]},he):(0,S.jsxs)(U.Stack,{direction:"row",children:[(0,S.jsxs)(U.Typography,{fontWeight:h.includes("keybold")?"700":"",variant:"body2",children:[Y,":\xA0"]}),i(c,H,m+".['"+Y+"']","string",h,k+1,[],void 0)]},he))}):(0,S.jsx)(S.Fragment,{});case"table":return v?Ne.get(H,m)&&(0,S.jsx)(U.TableContainer,{component:U.Paper,elevation:0,sx:{border:1,borderColor:"divider",mt:1,mb:1},children:(0,S.jsxs)(U.Table,{size:"small",children:[(0,S.jsx)(U.TableHead,{children:(0,S.jsx)(U.TableRow,{children:v.map((Y,he)=>(0,S.jsx)(U.TableCell,{children:Y.text},he))})}),(0,S.jsx)(U.TableBody,{children:Ne.get(H,m).map((Y,he)=>(0,S.jsx)(U.TableRow,{children:v.map((Te,dt)=>(0,S.jsx)(U.TableCell,{children:s(c,Y,Te,k+1)},dt))},he))})]})}):(0,S.jsx)(S.Fragment,{});default:return(0,S.jsx)(S.Fragment,{})}},s=(c,d,m,f)=>{let h=m.source[0].replace("#","");if(!h.startsWith("@")&&m.style?.includes("ifpresent")&&Ne.get(d,h)===void 0)return(0,S.jsx)(S.Fragment,{});if(m.format==="bar"){let k=Ne.get(d,m.source[0]),v=Ne.get(d,m.source[1]);if(!k||!v)return(0,S.jsx)(S.Fragment,{});let E=+k/+v*100;return(0,S.jsxs)(U.Stack,{direction:"row",width:"100%",alignItems:"center",children:[(0,S.jsx)(U.LinearProgress,{variant:"determinate",value:E>100?100:E,sx:{width:"90%"}}),"\xA0",(0,S.jsxs)(U.Typography,{variant:"body2",children:[k||0,"/",v||0]})]})}else return(0,S.jsx)(U.Stack,{direction:m.style?.includes("column")?"column":"row",width:"100%",alignItems:m.style?.includes("row")?"center":"",children:m.source.map((k,v)=>(0,S.jsx)(Rn.default.Fragment,{children:i(c,d,k,m.format,m.style||[],f+1,m.items,m.invoke,m)},v))})},o=(c,d,m,f,h)=>{let k="class-kwirth-"+t,v=m.source[0].replace("#","");if(!v.startsWith("@")&&m.style?.includes("ifpresent")&&Ne.get(d,v)===void 0)return(0,S.jsx)(S.Fragment,{});if(m.source&&v==="@jsx[]")return m.invoke?(0,S.jsx)(U.Stack,{direction:m.style&&m.style.includes("column")?"column":"row",alignItems:"stretch",sx:{width:"100%"},children:m.invoke(c,d,e.onLink).map((E,q)=>(0,S.jsx)(Rn.default.Fragment,{children:E},q))}):(0,S.jsx)(S.Fragment,{children:"Inexistent Invoke"});{let E=0;return m.source&&Ne.get(d,m.source[0])&&(E=Object.keys(Ne.get(d,m.source[0])).length),t++,(0,S.jsxs)(U.Stack,{direction:"row",alignItems:"baseline",children:[m.text===""&&(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(U.Typography,{component:"div",width:"100%",variant:"body2",children:s(c,d,m,h)})}),m.text!==""&&(0,S.jsxs)(S.Fragment,{children:[E>1&&m.style&&m.style.includes("collapse")?(0,S.jsxs)(U.Stack,{direction:"row",width:`${f-2}%`,alignItems:"center",children:[(0,S.jsx)(U.Typography,{variant:"body2",children:m.text}),(0,S.jsx)("svg",{className:"svg-"+k,width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",onClick:()=>{let q=document.getElementsByClassName(k)[0];q&&(q.style.height==="auto"?(q.style.height="22px",document.getElementsByClassName("svg-"+k)[0].innerHTML='<path d="M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z" />'):(q.style.height="auto",document.getElementsByClassName("svg-"+k)[0].innerHTML='<path d="M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z" />'))},children:(0,S.jsx)("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z"})})]}):(0,S.jsx)(U.Typography,{width:`${f}%`,variant:"body2",children:m.text}),E>1&&m.style&&m.style.includes("collapse")?(0,S.jsx)("div",{className:k,style:{height:"22px",overflow:"hidden"},children:s(c,d,m,h)}):s(c,d,m,h)]})]})}},l=(c,d)=>{if(c)return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(U.Typography,{sx:{mt:2,mb:1},variant:"body1",children:(0,S.jsx)("b",{children:d.text})}),d.items.map((m,f)=>(0,S.jsx)(Rn.default.Fragment,{children:o(c,c,m,n,0)},f))]})};if(e.object.data)if(e.sections){let c=e.sections.map((d,m)=>(0,S.jsx)(Rn.default.Fragment,{children:l(e.object.data[d.root],d)},m));return(0,S.jsx)(S.Fragment,{children:c})}else return(0,S.jsx)(S.Fragment,{children:(0,S.jsx)("pre",{children:JSON.stringify(e.object.data.origin,void 0,2)})});else return console.log(e.object),(0,S.jsx)(S.Fragment,{children:"No data"})};u();var Yt=I(ht(),1),ax=I(je(),1),rn=I(fe(),1),Ol=e=>((0,ax.useEffect)(()=>{e.file&&e.file.data.origin.status.containerStatuses?.length===1&&e.onContainerSelected(e.channel,e.file,e.file.data.origin.status.containerStatuses[0].name)},[e.file,e.channel,e.onContainerSelected]),!e.file||!e.file.data.origin.status.containerStatuses||e.file.data.origin.status.containerStatuses.length===1?null:(0,rn.jsx)(Yt.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,rn.jsxs)(Yt.MenuList,{dense:!0,sx:{minWidth:120},children:[e.file.data.origin.status.containerStatuses.map(t=>{let n="orange";return t.started?(n="green",e.file&&e.file.data.origin.metadata.deletionTimestamp&&(n="blue")):t.state.terminated&&(n="gray"),(0,rn.jsx)(Yt.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,t.name),children:(0,rn.jsxs)(Yt.Stack,{direction:"row",alignItems:"center",children:[(0,rn.jsx)(Yt.Box,{sx:{width:"10px",height:"10px",backgroundColor:n,margin:"1px",display:"inline-block"}}),(0,rn.jsxs)(Yt.Typography,{children:["\xA0",t.name]})]})},t.name)}),e.includeAllContainers&&(0,rn.jsxs)(rn.Fragment,{children:[(0,rn.jsx)(Yt.Divider,{}),(0,rn.jsx)(Yt.MenuItem,{onClick:()=>e.onContainerSelected(e.channel,e.file,"*all"),children:(0,rn.jsx)(Yt.Typography,{children:"All containers"})},"all")]})]})}));var lx=I(Rt(),1),cx=I(Ml(),1),ux=I(Dl(),1),ot=I(fe(),1),sx={get:cx.default,set:ux.default},MM=ix(),mx=e=>{let t=(0,Jn.useRef)(null),n=(0,Jn.useRef)(e.data.source.data.origin),[a,r]=(0,Jn.useState)(!1),[i,s]=(0,Jn.useState)(!1),[o,l]=(0,Jn.useState)(),[c,d]=(0,Jn.useState)(""),[m,f]=(0,Jn.useState)(e.isMaximized),h=e.data;(0,Jn.useEffect)(()=>{n.current||(n.current={})},[]),(0,lx.useKeyboard)(e.onClose,e.id);let k=(Q,W,de)=>{e.onClose(e.id),e.data.onLink(Q,W,de)},v=e.data.actions.filter(Q=>Q.name!=="details"),E=(Q,W)=>{if(e.selectedFiles[0].class==="Pod"&&(e.data.containerSelectionOptions.get(Q)||0)>=1){d(Q),l(W);return}e.data.onAction(Q,e.selectedFiles[0].path||"",void 0)},q=()=>{e.onFocus&&e.onFocus()},me=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},pe=Q=>{f(!1),t.current?.snapTo(Q)},H=(Q,W)=>{e.data.source.data.origin.kind==="ConfigMap"&&sx.set(n.current,Q,W),e.data.source.data.origin.kind==="Secret"&&sx.set(n.current,Q,btoa(W)),s(!0)};return(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsxs)(ta,{ref:t,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:q,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,ot.jsx)(ut.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,ot.jsxs)(ut.Stack,{direction:"row",alignItems:"center",spacing:1,children:[(0,ot.jsx)(ut.Typography,{variant:"subtitle1",noWrap:!0,sx:{fontWeight:"bold",flexShrink:0},children:`${h.source.data.origin.kind}:`}),(0,ot.jsx)(ut.Typography,{variant:"body2",noWrap:!0,children:e.title}),(0,ot.jsx)(ut.Tooltip,{title:"Copy",children:(0,ot.jsx)(ut.IconButton,{size:"small",onClick:()=>MM(e.title),children:(0,ot.jsx)(ox.ContentCopy,{fontSize:"inherit"})})}),(0,ot.jsx)(ut.Stack,{direction:"row",spacing:.5,className:"no-drag",children:v.map((Q,W)=>Q.name==="divider"?(0,ot.jsx)(ut.Typography,{sx:{flexGrow:1}}):(0,ot.jsx)(ut.Tooltip,{title:Q.text,children:(0,ot.jsx)(ut.IconButton,{size:"small",color:"primary",onClick:de=>E(Q.name,de.currentTarget),children:Q.icon})},W))}),(0,ot.jsx)(ut.Typography,{sx:{flexGrow:1}}),(0,ot.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:me,onClose:()=>e.onClose(e.id),onSnap:pe})]})}),(0,ot.jsx)(ut.DialogContent,{dividers:!0,sx:{p:0,display:"flex",flexDirection:"column"},children:(0,ot.jsx)(ut.Box,{sx:{p:2,flexGrow:1,overflow:"auto"},children:(0,ot.jsx)(nx,{object:h.source,sections:h.sections,onChangeData:H,onLink:k,onContainsEdit:r})})}),(0,ot.jsx)(ut.DialogActions,{sx:{p:.5,pr:2},children:(0,ot.jsx)(ut.Button,{onClick:()=>e.data.onApply(h.path,n.current),disabled:!a||!i,variant:"contained",size:"small",children:"Apply"})})]}),o&&e.selectedFiles.length>0&&(0,ot.jsx)(Ol,{channel:c,file:e.selectedFiles[0],onClose:()=>l(void 0),anchorParent:o,onContainerSelected:(Q,W,de)=>{e.data.onAction(Q,W.path||"",de),l(void 0)},includeAllContainers:h.containerSelectionOptions.get(c)===2})]})};u();var Gt=I(ht(),1),Nn=I(je(),1),Dx=I(fx(),1),Ox=I(hx(),1),Rx=I(yx(),1),Nx=I(Jt(),1);var Gi=I(bx(),1),Rl=I(vx(),1),Ex=I(Sx(),1),Ax=I(Ix(),1);var Nl=I(Rt(),1),Px=I(Mx(),1),wt=I(fe(),1),Im=xl(),Fx=e=>{let t=(0,Gt.useTheme)(),n=t.palette.mode==="dark"?Px.oneDark:"light",[a,r]=(0,Nn.useState)((0,wt.jsx)(wt.Fragment,{})),[i,s]=(0,Nn.useState)(""),o=(0,Nn.useRef)(null),l=(0,Nn.useRef)(!1),c=(0,Nn.useRef)(null),d=(0,Nn.useRef)(null),[m,f]=(0,Nn.useState)(e.isMaximized),h=e.data,k=Rl.EditorView.theme({"&":{height:"100%",fontSize:"12px",fontFamily:"'Fira Code', 'Source Code Pro', monospace"},".cm-foldGutter":{width:"25px",pointerEvents:"auto !important"},".cm-gutterElement":{display:"flex !important",alignItems:"center",justifyContent:"center",cursor:"pointer !important",pointerEvents:"auto !important"},".cm-foldGutter span":{pointerEvents:"none"}},{dark:t.palette.mode==="dark"});(0,Nn.useEffect)(()=>{let H=Q=>{if(Q.key==="Escape"&&v(),!c.current?.contains(document.activeElement))return;let W=Q.ctrlKey||Q.metaKey;W&&Q.key.toLowerCase()==="f"&&(Q.preventDefault(),Q.stopPropagation(),d.current&&(0,Gi.openSearchPanel)(d.current)),W&&Q.key.toLowerCase()==="d"&&(Q.preventDefault(),Q.stopPropagation())};return window.addEventListener("keydown",H,!0),()=>window.removeEventListener("keydown",H,!0)},[]);let v=()=>{l.current?r((0,Nl.MsgBoxYesNo)("Edit exit","You have some changes not applied. Are you sure you want to exit without applying?",r,H=>{H===Nl.MsgBoxButtons.Yes&&e.onClose(e.id)})):e.onClose(e.id)};(0,Nn.useEffect)(()=>{if(h.isInitialized)h.code&&s(h.code);else{if(h.isInitialized=!0,h.code===void 0){let H=e.selectedFiles[0].data.origin,Q=Wg(H);h.code=Im.dump(Q),s(h.code)}else s(h.code);h.oldCode=h.code}},[]);let E=()=>{e.onFocus&&e.onFocus()},q=()=>{e.onWindowChange(e.id,!m,e.x,e.y,e.width,e.height),f(!m)},me=H=>{f(!1),o.current?.snapTo(H)},pe=H=>{h.code=H,s(H);try{let Q=Im.load(h.oldCode),W=Im.load(H);l.current=!$s(W,Q)}catch{l.current=(H??"")!==(h.oldCode??"")}};return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(ta,{ref:o,id:e.id,isMaximized:m,isActive:e.atFront,onFocus:E,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,wt.jsx)(Gt.DialogTitle,{sx:{cursor:m?"default":"move",py:1},id:"draggable-dialog-title",children:(0,wt.jsxs)(Gt.Stack,{direction:"row",alignItems:"center",children:[(0,wt.jsx)(Gt.Typography,{sx:{flexGrow:1}}),(0,wt.jsxs)(Gt.Typography,{children:[h.allowEdit?(0,wt.jsx)(Nx.Edit,{}):(0,wt.jsx)(Vn,{}),"\xA0",e.title]}),(0,wt.jsx)(Gt.Typography,{sx:{flexGrow:1}}),(0,wt.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:m,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:q,onClose:v,onSnap:me})]})}),(0,wt.jsx)(Gt.DialogContent,{children:(0,wt.jsx)("div",{ref:c,style:{height:"100%",width:"100%",paddingTop:"2px"},onMouseDownCapture:H=>{H.target.closest(".cm-foldGutter")&&d.current&&(H.preventDefault(),H.stopPropagation(),d.current.focus(),(0,Ax.foldCode)(d.current))},className:"no-drag",children:(0,wt.jsx)(Dx.default,{value:i,onChange:pe,theme:n,onUpdate:H=>{H.view&&(d.current=H.view)},extensions:[Ox.EditorState.readOnly.of(!h.allowEdit),(0,Rx.yaml)(),(0,Gi.search)({top:!0}),k,Rl.keymap.of([...Ex.defaultKeymap,...Gi.searchKeymap])]})})}),(0,wt.jsx)(Gt.DialogActions,{sx:{p:"4px 4px",pr:2},children:(0,wt.jsx)(Gt.Button,{onClick:()=>h.onOk?.(i,h.source),disabled:!l.current,children:"Ok"})})]}),a]})};u();var Ee=new Map;Ee.set("Pod",`
248
+ apiVersion: v1
249
+ kind: Pod
250
+ metadata:
251
+ name: static-web
252
+ labels:
253
+ role: myrole
254
+ spec:
255
+ containers:
256
+ - name: web
257
+ image: nginx
258
+ ports:
259
+ - name: web
260
+ containerPort: 80
261
+ protocol: TCP
262
+ `);Ee.set("Deployment",`
263
+ apiVersion: apps/v1
264
+ kind: Deployment
265
+ metadata:
266
+ name: nginx-deployment
267
+ labels:
268
+ app: nginx
269
+ spec:
270
+ replicas: 3
271
+ selector:
272
+ matchLabels:
273
+ app: nginx
274
+ template:
275
+ metadata:
276
+ labels:
277
+ app: nginx
278
+ spec:
279
+ containers:
280
+ - name: nginx
281
+ image: nginx:1.14.2
282
+ ports:
283
+ - containerPort: 80
284
+ `);Ee.set("DaemonSet",`
285
+ apiVersion: apps/v1
286
+ kind: DaemonSet
287
+ metadata:
288
+ name: fluentd-elasticsearch
289
+ namespace: kube-system
290
+ labels:
291
+ k8s-app: fluentd-logging
292
+ spec:
293
+ selector:
294
+ matchLabels:
295
+ name: fluentd-elasticsearch
296
+ template:
297
+ metadata:
298
+ labels:
299
+ name: fluentd-elasticsearch
300
+ spec:
301
+ tolerations:
302
+ # this toleration is to have the daemonset runnable on master nodes
303
+ # remove it if your masters can't run pods
304
+ - key: node-role.kubernetes.io/master
305
+ effect: NoSchedule
306
+ containers:
307
+ - name: fluentd-elasticsearch
308
+ image: quay.io/fluentd_elasticsearch/fluentd:v2.5.2
309
+ resources:
310
+ limits:
311
+ memory: 200Mi
312
+ requests:
313
+ cpu: 100m
314
+ memory: 200Mi
315
+ volumeMounts:
316
+ - name: varlog
317
+ mountPath: /var/log
318
+ - name: varlibdockercontainers
319
+ mountPath: /var/lib/docker/containers
320
+ readOnly: true
321
+ terminationGracePeriodSeconds: 30
322
+ volumes:
323
+ - name: varlog
324
+ hostPath:
325
+ path: /var/log
326
+ - name: varlibdockercontainers
327
+ hostPath:
328
+ path: /var/lib/docker/containers
329
+ `);Ee.set("StatefulSet",`
330
+ apiVersion: apps/v1
331
+ kind: StatefulSet
332
+ metadata:
333
+ name: web
334
+ spec:
335
+ selector:
336
+ matchLabels:
337
+ app: nginx # has to match .spec.template.metadata.labels
338
+ serviceName: "nginx"
339
+ replicas: 3 # by default is 1
340
+ template:
341
+ metadata:
342
+ labels:
343
+ app: nginx # has to match .spec.selector.matchLabels
344
+ spec:
345
+ terminationGracePeriodSeconds: 10
346
+ containers:
347
+ - name: nginx
348
+ image: registry.k8s.io/nginx-slim:0.8
349
+ ports:
350
+ - containerPort: 80
351
+ name: web
352
+ volumeMounts:
353
+ - name: www
354
+ mountPath: /usr/share/nginx/html
355
+ volumeClaimTemplates:
356
+ - metadata:
357
+ name: www
358
+ spec:
359
+ accessModes: ["ReadWriteOnce"]
360
+ storageClassName: "my-storage-class"
361
+ resources:
362
+ requests:
363
+ storage: 1Gi
364
+ `);Ee.set("ReplicaSet",`
365
+ apiVersion: apps/v1
366
+ kind: ReplicaSet
367
+ metadata:
368
+ name: frontend
369
+ labels:
370
+ app: guestbook
371
+ tier: frontend
372
+ spec:
373
+ # modify replicas according to your case
374
+ replicas: 3
375
+ selector:
376
+ matchLabels:
377
+ tier: frontend
378
+ template:
379
+ metadata:
380
+ labels:
381
+ tier: frontend
382
+ spec:
383
+ containers:
384
+ - name: php-redis
385
+ image: gcr.io/google_samples/gb-frontend:v3
386
+ `);Ee.set("ReplicationController",`
387
+ apiVersion: v1
388
+ kind: ReplicationController
389
+ metadata:
390
+ name: nginx
391
+ spec:
392
+ replicas: 3
393
+ selector:
394
+ app: nginx
395
+ template:
396
+ metadata:
397
+ name: nginx
398
+ labels:
399
+ app: nginx
400
+ spec:
401
+ containers:
402
+ - name: nginx
403
+ image: nginx
404
+ ports:
405
+ - containerPort: 80
406
+ `);Ee.set("Job",`
407
+ apiVersion: batch/v1
408
+ kind: Job
409
+ metadata:
410
+ name: echo
411
+ spec:
412
+ template:
413
+ spec:
414
+ containers:
415
+ - name: echo
416
+ image: busybox
417
+ command: ["echo", "$HOSTNAME"]
418
+ restartPolicy: Never
419
+ backoffLimit: 3
420
+ `);Ee.set("CronJob",`
421
+ apiVersion: batch/v1
422
+ kind: CronJob
423
+ metadata:
424
+ name: hello
425
+ spec:
426
+ schedule: "*/1 * * * *"
427
+ jobTemplate:
428
+ spec:
429
+ template:
430
+ spec:
431
+ containers:
432
+ - name: hello
433
+ image: busybox
434
+ imagePullPolicy: IfNotPresent
435
+ command:
436
+ - /bin/sh
437
+ - -c
438
+ - date; echo Hello from the Kubernetes cluster
439
+ restartPolicy: OnFailure
440
+ `);Ee.set("ConfigMap",`
441
+ apiVersion: v1
442
+ kind: ConfigMap
443
+ metadata:
444
+ name: cmdemo
445
+ data:
446
+ # proerties
447
+ value: "1"
448
+ # file-like keys
449
+ other.properties: |
450
+ enemy.types=aliens,monsters
451
+ player.maximum-lives=5
452
+ `);Ee.set("Secret",`
453
+ apiVersion: v1
454
+ kind: Secret
455
+ metadata:
456
+ name: sample-secret
457
+ data:
458
+ admin: a3dyaXRoIGlzIGZ1bm55IQ==
459
+ type: Opaque
460
+ `);Ee.set("ResourceQuota",`
461
+ apiVersion: v1
462
+ kind: ResourceQuota
463
+ metadata:
464
+ name: cpu-limit-default
465
+ namespace: default
466
+ spec:
467
+ hard:
468
+ limits.cpu: '2'
469
+ limits.memory: '1Gi'
470
+ `);Ee.set("LimitRange",`
471
+ apiVersion: v1
472
+ kind: LimitRange
473
+ metadata:
474
+ name: sample-cpu-limit
475
+ spec:
476
+ limits:
477
+ - default:
478
+ cpu: 200m
479
+ defaultRequest:
480
+ cpu: 500m
481
+ max:
482
+ cpu: "2"
483
+ min:
484
+ cpu: 100m
485
+ type: Container
486
+ `);Ee.set("HorizontalPodAutoscaler",`
487
+ apiVersion: autoscaling/v2
488
+ kind: HorizontalPodAutoscaler
489
+ metadata:
490
+ name: basic-autoscaler
491
+ spec:
492
+ scaleTargetRef:
493
+ kind: Deployment
494
+ name: nginx-dep
495
+ apiVersion: apps/v1
496
+ minReplicas: 1
497
+ maxReplicas: 2
498
+ metrics:
499
+ - type: Resource
500
+ resource:
501
+ name: cpu
502
+ target:
503
+ type: Utilization
504
+ averageUtilization: 80
505
+ `);Ee.set("PodDisruptionBudget",`
506
+ apiVersion: policy/v1
507
+ kind: PodDisruptionBudget
508
+ metadata:
509
+ name: spaceh-pdb
510
+ spec:
511
+ minAvailable: 2
512
+ selector:
513
+ matchLabels:
514
+ app: apache
515
+ `);Ee.set("PriorityClass",`
516
+ apiVersion: scheduling.k8s.io/v1
517
+ kind: PriorityClass
518
+ metadata:
519
+ name: basic
520
+ description: Basic Priority class.
521
+ preemptionPolicy: PreemptLowerPriority
522
+ globalDefault: false
523
+ value: 5
524
+ `);Ee.set("RuntimeClass",`
525
+ apiVersion: node.k8s.io/v1
526
+ kind: RuntimeClass
527
+ metadata:
528
+ name: spot
529
+ handler: runc
530
+ scheduling:
531
+ nodeSelector:
532
+ region: "eu"
533
+ tolerations:
534
+ - key: cpuCount
535
+ value: '8'
536
+ effect: NoSchedule
537
+ `);Ee.set("Lease",`
538
+ apiVersion: coordination.k8s.io/v1
539
+ kind: Lease
540
+ metadata:
541
+ name: sample-lease
542
+ spec:
543
+ leaseDurationSeconds: 1000
544
+ `);Ee.set("MutatingWebhookConfiguration",`
545
+ apiVersion: admissionregistration.k8s.io/v1
546
+ kind: MutatingWebhookConfiguration
547
+ metadata:
548
+ name: sample-mutating
549
+ webhooks:
550
+ - name: my.domain.com
551
+ admissionReviewVersions:
552
+ - v1
553
+ clientConfig:
554
+ service:
555
+ namespace: my-namespace
556
+ name: my-webhook
557
+ sideEffects: None
558
+ objectSelector:
559
+ matchLabels:
560
+ app: kwirth
561
+ rules:
562
+ - operations: ["CREATE", "UPDATE"]
563
+ apiGroups: ["*"]
564
+ apiVersions: ["*"]
565
+ resources: ["*"]
566
+ scope: "*"
567
+ `);Ee.set("ValidatingWebhookConfiguration",`
568
+ apiVersion: admissionregistration.k8s.io/v1
569
+ kind: ValidatingWebhookConfiguration
570
+ metadata:
571
+ name: sample-validating
572
+ webhooks:
573
+ - name: my-webhook.example.com
574
+ clientConfig:
575
+ service:
576
+ namespace: kwirth-namespace
577
+ name: kwirth-webhook
578
+ admissionReviewVersions:
579
+ - v1
580
+ matchPolicy: Equivalent
581
+ rules:
582
+ - operations: ["DELETE", "UPDATE"]
583
+ apiGroups: ["*"]
584
+ apiVersions: ["*"]
585
+ resources: ["*"]
586
+ failurePolicy: "Ignore"
587
+ sideEffects: None
588
+ `);Ee.set("Service",`
589
+ apiVersion: v1
590
+ kind: Service
591
+ metadata:
592
+ name: kwirth-service
593
+ spec:
594
+ selector:
595
+ app: kwirth-app
596
+ ports:
597
+ - protocol: TCP
598
+ port: 80
599
+ targetPort: 80
600
+ `);Ee.set("Endpoints",`
601
+ apiVersion: v1
602
+ kind: Endpoints
603
+ metadata:
604
+ name: sample-sp
605
+ subsets:
606
+ - addresses:
607
+ - ip: 1.2.3.4
608
+ nodeName: node-01
609
+ targetRef:
610
+ kind: Pod
611
+ namespace: default
612
+ name: node-exporter
613
+ ports:
614
+ - name: metrics
615
+ port: 9100
616
+ protocol: TCP
617
+ `);Ee.set("Ingress",`
618
+ apiVersion: networking.k8s.io/v1
619
+ kind: Ingress
620
+ metadata:
621
+ name: sample-ingress
622
+ spec:
623
+ rules:
624
+ - http:
625
+ paths:
626
+ - path: /static
627
+ pathType: Prefix
628
+ backend:
629
+ service:
630
+ name: apache-service
631
+ port:
632
+ number: 80
633
+ `);Ee.set("IngressClass",`
634
+ apiVersion: networking.k8s.io/v1
635
+ kind: IngressClass
636
+ metadata:
637
+ name: external-ic
638
+ spec:
639
+ controller: kwirthmagnify.github.io/sample-ingress-controller
640
+ parameters:
641
+ apiGroup: k8s.example.com
642
+ kind: IngressParameters
643
+ name: external-ic
644
+ `);Ee.set("NetworkPolicy",`
645
+ apiVersion: networking.k8s.io/v1
646
+ kind: NetworkPolicy
647
+ metadata:
648
+ name: test-network-policy
649
+ namespace: default
650
+ spec:
651
+ podSelector:
652
+ matchLabels:
653
+ role: nosql-database
654
+ ingress:
655
+ - ports:
656
+ - protocol: TCP
657
+ port: 27001
658
+ from:
659
+ - ipBlock:
660
+ cidr: 192.168.0.0/8
661
+ except:
662
+ - 192.168.1.0/8
663
+ - namespaceSelector:
664
+ matchLabels:
665
+ project: datawarehouse
666
+ - podSelector:
667
+ matchLabels:
668
+ role: ewact-app
669
+ egress:
670
+ - ports:
671
+ - protocol: TCP
672
+ port: 5978
673
+ to:
674
+ - ipBlock:
675
+ cidr: 10.0.0.0/24
676
+ policyTypes:
677
+ - Ingress
678
+ - Egress
679
+ `);Ee.set("PersistentVolumeClaim",`
680
+ apiVersion: v1
681
+ kind: PersistentVolumeClaim
682
+ metadata:
683
+ name: my-pvc
684
+ namespace: default
685
+ spec:
686
+ accessModes:
687
+ - ReadWriteOnce
688
+ resources:
689
+ requests:
690
+ storage: 1Mi
691
+ volumeName: my-local-pv
692
+ storageClassName: local-path
693
+ volumeMode: Filesystem
694
+ `);Ee.set("PersistentVolume",`
695
+ apiVersion: v1
696
+ kind: PersistentVolume
697
+ metadata:
698
+ name: my-local-pv
699
+ spec:
700
+ capacity:
701
+ storage: 1Gi
702
+ hostPath:
703
+ path: /tmp/mypv
704
+ type: BlockDevice
705
+ accessModes:
706
+ - ReadWriteOnce
707
+ persistentVolumeReclaimPolicy: Retain
708
+ storageClassName: local-path
709
+ volumeMode: Filesystem
710
+ `);Ee.set("StorageClass",`
711
+ apiVersion: storage.k8s.io/v1
712
+ kind: StorageClass
713
+ metadata:
714
+ name: my-sc
715
+ provisioner: rancher.io/local-path
716
+ reclaimPolicy: Delete
717
+ volumeBindingMode: WaitForFirstConsumer
718
+ `);Ee.set("ServiceAccount",`
719
+ apiVersion: v1
720
+ kind: ServiceAccount
721
+ metadata:
722
+ name: sample-sa
723
+ namespace: default
724
+ `);Ee.set("ClusterRole",`
725
+ apiVersion: rbac.authorization.k8s.io/v1
726
+ kind: ClusterRole
727
+ metadata:
728
+ name: all-cr
729
+ rules:
730
+ - verbs:
731
+ - '*'
732
+ apiGroups:
733
+ - '*'
734
+ resources:
735
+ - '*'
736
+ `);Ee.set("Role",`
737
+ apiVersion: rbac.authorization.k8s.io/v1
738
+ kind: Role
739
+ metadata:
740
+ name: sample-role-read-ns
741
+ namespace: default
742
+ rules:
743
+ - verbs:
744
+ - get
745
+ apiGroups:
746
+ - '*'
747
+ resources:
748
+ - namespaces
749
+ `);Ee.set("ClusterRoleBinding",`
750
+ apiVersion: rbac.authorization.k8s.io/v1
751
+ kind: ClusterRoleBinding
752
+ metadata:
753
+ name: sample-crb
754
+ subjects:
755
+ - kind: ServiceAccount
756
+ name: sample-sa
757
+ namespace: kwirth
758
+ roleRef:
759
+ apiGroup: rbac.authorization.k8s.io
760
+ kind: ClusterRole
761
+ name: sample-cr
762
+ `);Ee.set("RoleBinding",`
763
+ apiVersion: rbac.authorization.k8s.io/v1
764
+ kind: RoleBinding
765
+ metadata:
766
+ name: my-rb
767
+ namespace: my-namespace
768
+ subjects:
769
+ - kind: ServiceAccount
770
+ name: sample-sa
771
+ namespace: my-namespace
772
+ roleRef:
773
+ apiGroup: rbac.authorization.k8s.io
774
+ kind: Role
775
+ name: sample-role
776
+ `);Ee.set("CustomResourceDefinition",`
777
+ apiVersion: apiextensions.k8s.io/v1
778
+ kind: CustomResourceDefinition
779
+ metadata:
780
+ name: mycrd.kwrith.com
781
+ spec:
782
+ group: kwrith.com
783
+ versions:
784
+ - name: v1
785
+ served: true
786
+ storage: true
787
+ schema:
788
+ openAPIV3Schema:
789
+ type: object
790
+ properties:
791
+ spec:
792
+ type: object
793
+ properties:
794
+ name:
795
+ type: string
796
+ replicas:
797
+ type: integer
798
+ scope: Namespaced
799
+ names:
800
+ plural: crds
801
+ singular: crd
802
+ kind: Crd
803
+ `);u();var Ze=I(ht(),1),Ha=I(je(),1),_x=I(Jt(),1);var zx=I(Rt(),1);var Lx=I(Rt(),1),Je=I(fe(),1),Vx=e=>{let t=(0,Ha.useRef)(null),[n,a]=(0,Ha.useState)(e.data.searchText),[r,i]=(0,Ha.useState)(e.data.includeStatus),[s,o]=(0,Ha.useState)(e.data.merge),[l,c]=(0,Ha.useState)(e.data.matchCase),[d,m]=(0,Ha.useState)(e.isMaximized),f=e.data;(0,Lx.useKeyboard)(e.onClose,e.id);let h=()=>{e.onFocus&&e.onFocus()},k=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},v=W=>{m(!1),t.current?.snapTo(W)},E=W=>{a(W.target.value),e.data.searchText=W.target.value},q=()=>{i(!r),e.data.includeStatus=!e.data.includeStatus},me=()=>{c(!l),e.data.matchCase=!e.data.matchCase},pe=()=>{o(!s),e.data.merge=!e.data.merge};function H(W,de){if(!W||!de)return;let Oe=de.replace(/\[(\d+)\]/g,".$1").split(".").filter(_=>_!==""),Se=W;for(let _ of Oe){if(Se===null||typeof Se!="object")return;if(_ in Se)Se=Se[_];else return}return Se}let Q=(W,de,Oe,Se,_)=>{if(!W||!W.kind)return[];let B=[];if(W.kind==="Secret"&&W.data){let oe=Bs(W);for(let Z of Object.keys(oe.data))oe.data[Z]=atob(oe.data[Z]);B=gm(oe,de,Se)}else B=gm(W,de,Se);return Oe||(B=B.filter(oe=>!oe.startsWith("status"))),_&&B.length>1&&(B=[B[0]]),B};return(0,Je.jsxs)(ta,{ref:t,id:e.id,isMaximized:d,isActive:e.atFront,onFocus:h,onWindowChange:e.onWindowChange,x:e.x,y:e.y,width:e.width,height:e.height,children:[(0,Je.jsx)(Ze.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,Je.jsxs)(Ze.Stack,{direction:"row",alignItems:"center",children:[(0,Je.jsx)(_x.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,Je.jsxs)(Ze.Typography,{variant:"body2",fontWeight:500,flex:1,children:["Search \u2014 ",f.scope===":cluster:"?"All cluster":"Namespace: "+f.scope]}),(0,Je.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:k,onClose:()=>e.onClose(e.id),onSnap:v})]})}),(0,Je.jsxs)(Ze.DialogContent,{children:[(0,Je.jsxs)(Ze.Stack,{direction:"row",alignItems:"center",children:[(0,Je.jsx)(Ze.TextField,{value:n,onChange:E,variant:"standard",label:"Search..."}),(0,Je.jsx)(Ze.FormControlLabel,{control:(0,Je.jsx)(Ze.Checkbox,{}),checked:r,onChange:q,label:"Include status"}),(0,Je.jsx)(Ze.FormControlLabel,{control:(0,Je.jsx)(Ze.Checkbox,{}),checked:l,onChange:me,label:"Match case"}),(0,Je.jsx)(Ze.FormControlLabel,{control:(0,Je.jsx)(Ze.Checkbox,{}),checked:s,onChange:pe,label:"Merge repeated results"}),(0,Je.jsx)(Ze.Typography,{flexGrow:1}),n.trim()!==""&&n.length>=3&&(0,Je.jsxs)(Ze.Typography,{children:["Results: ",f.selectedFiles.reduce((W,de)=>W+Q(de.data?.origin,n,r,l,s).length,0)]})]}),(0,Je.jsx)(Ze.Stack,{direction:"column",mt:1,children:n.trim()!==""&&n.length>=3&&f.selectedFiles.map(W=>Q(W.data?.origin,n,r,l,s).map((Oe,Se)=>{let _=H(W.data.origin,Oe),B;return W.data.origin.metadata?B=(0,Je.jsx)(Ze.Typography,{variant:"body2",children:(0,Je.jsx)("a",{href:"#",onClick:()=>f.onLink(W.data.origin.kind,W.data.origin.metadata.name,W.data.origin.metadata.namespace),children:W.data.origin.metadata.name})}):B=(0,Je.jsx)(Ze.Typography,{variant:"body2",children:(0,Je.jsx)("a",{href:"#",onClick:()=>f.onLink(W.data.origin.kind,W.data.origin.name,""),children:W.data.origin.name})}),(0,Je.jsxs)(Ze.Stack,{direction:"row",sx:{mb:2,ml:1},alignItems:"center",children:[(0,zx.getIconFromKind)(W.data?.origin?.kind,32),(0,Je.jsxs)(Ze.Stack,{direction:"column",sx:{ml:2},children:[B,(0,Je.jsx)(Ze.Typography,{variant:"body2",children:Oe}),(0,Je.jsxs)(Ze.Typography,{variant:"body2",children:[String(_).substring(0,80),String(_).length>80?"...":""]})]})]},Se)}))})]})]})};u();var Zn=I(je(),1),xe=I(ht(),1),Fr=I(Jt(),1);var En=I(Qa(),1);var Ce=I(fe(),1),Wx=e=>{let t=(0,Zn.useRef)(null),[n,a]=(0,Zn.useState)(""),[r,i]=(0,Zn.useState)(!1),[s,o]=(0,Zn.useState)(!1),[l,c]=(0,Zn.useState)(100),[d,m]=(0,Zn.useState)(!1),[f,h]=(0,Zn.useState)(null),{magnifyData:k}=e,v=!k.logSearchDone,E=k.logSearchResults,q=()=>{if(!n.trim()||!e.channelObject.webSocket)return;k.logSearchResults=[],k.logSearchDone=!1;let W=rt();h(W);let de=JSON.stringify({query:n,namespaces:e.data.namespaces,pods:e.data.pods,tailLines:l,caseSensitive:r,useRegex:s}),Oe={flow:En.EInstanceMessageFlow.REQUEST,action:En.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:En.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:W,command:"logsearch",namespace:"",group:"",pod:"",container:"",params:[de],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(Oe))},me=()=>{if(!f||!e.channelObject.webSocket)return;let W={flow:En.EInstanceMessageFlow.REQUEST,action:En.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:En.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:rt(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(W)),k.logSearchDone=!0,h(null)};(0,Zn.useEffect)(()=>()=>{if(f&&e.channelObject.webSocket){let W={flow:En.EInstanceMessageFlow.REQUEST,action:En.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:En.EInstanceMessageType.DATA,accessKey:e.data.accessString,instance:e.data.instanceId,id:rt(),command:"logsearchstop",namespace:"",group:"",pod:"",container:"",params:[JSON.stringify({searchId:f})],msgtype:"magnifymessage"};e.channelObject.webSocket.send(JSON.stringify(W))}},[f]);let pe=W=>{e.data.onOpenLog(W.namespace,W.pod,W.container)},H=()=>{e.onWindowChange(e.id,!d,e.x,e.y,e.width,e.height),m(!d)},Q=W=>{m(!1),t.current?.snapTo(W)};return(0,Ce.jsxs)(ta,{ref:t,id:e.id,x:e.x,y:e.y,width:e.width,height:e.height,isMaximized:d,isActive:e.atFront,onFocus:e.onFocus,onWindowChange:e.onWindowChange,children:[(0,Ce.jsx)(xe.DialogTitle,{sx:{cursor:d?"default":"move",py:1},id:"draggable-dialog-title",children:(0,Ce.jsxs)(xe.Stack,{direction:"row",alignItems:"center",children:[(0,Ce.jsx)(Fr.Search,{fontSize:"small",sx:{color:"text.secondary",mr:1}}),(0,Ce.jsxs)(xe.Typography,{variant:"body2",fontWeight:500,flex:1,children:["Log Search \u2014 ",e.data.scopeLabel]}),(0,Ce.jsx)(aa,{id:e.id,atTop:e.atTop,isMaximized:d,onMinimize:()=>e.onMinimize(e.id),onTop:()=>e.onTop(e.id),onMaximize:H,onClose:()=>e.onClose(e.id),onSnap:Q})]})}),(0,Ce.jsxs)(xe.DialogContent,{sx:{display:"flex",flexDirection:"column",p:1,gap:1,overflow:"hidden",height:"100%"},children:[(0,Ce.jsx)(xe.Stack,{direction:"row",spacing:1,alignItems:"center",children:(0,Ce.jsx)(xe.TextField,{size:"small",fullWidth:!0,placeholder:"Search in logs\u2026",value:n,onChange:W=>a(W.target.value),onKeyDown:W=>{W.key==="Enter"&&q(),W.key==="Escape"&&e.onClose(e.id)},slotProps:{input:{endAdornment:(0,Ce.jsx)(xe.InputAdornment,{position:"end",children:(0,Ce.jsx)(xe.IconButton,{size:"small",onClick:q,disabled:v||!n.trim(),children:v?(0,Ce.jsx)(xe.CircularProgress,{size:16}):(0,Ce.jsx)(Fr.Search,{fontSize:"small"})})})}}})}),(0,Ce.jsxs)(xe.Stack,{direction:"row",spacing:1,alignItems:"center",children:[(0,Ce.jsx)(xe.FormControlLabel,{control:(0,Ce.jsx)(xe.Checkbox,{size:"small",checked:r,onChange:W=>i(W.target.checked)}),label:(0,Ce.jsx)(xe.Typography,{variant:"caption",children:"Case"}),sx:{mr:0}}),(0,Ce.jsx)(xe.FormControlLabel,{control:(0,Ce.jsx)(xe.Checkbox,{size:"small",checked:s,onChange:W=>o(W.target.checked)}),label:(0,Ce.jsx)(xe.Typography,{variant:"caption",children:"Regex"}),sx:{mr:0}}),(0,Ce.jsx)(xe.TextField,{size:"small",type:"number",label:"Lines",value:l,onChange:W=>c(Math.min(500,+W.target.value)),sx:{width:90},slotProps:{htmlInput:{min:1,max:500,style:{padding:"4px 8px",fontSize:"0.75rem"}}}}),(0,Ce.jsx)(xe.Tooltip,{title:"Stop search",children:(0,Ce.jsx)("span",{children:(0,Ce.jsx)(xe.IconButton,{size:"small",onClick:me,disabled:!v,children:(0,Ce.jsx)(Fr.Stop,{fontSize:"small",color:v?"error":"disabled"})})})}),v&&(0,Ce.jsx)(xe.Typography,{variant:"caption",color:"text.secondary",children:"Searching\u2026"}),k.logSearchDone&&E.length>0&&!v&&(0,Ce.jsx)(xe.Chip,{label:`${E.length} container${E.length>1?"s":""} with matches`,size:"small",color:"primary",variant:"outlined"}),k.logSearchDone&&E.length===0&&!v&&n&&(0,Ce.jsx)(xe.Typography,{variant:"caption",color:"text.secondary",children:"No matches found."})]}),(0,Ce.jsx)(xe.Divider,{}),(0,Ce.jsx)(xe.Box,{sx:{flex:1,overflowY:"auto"},children:E.map((W,de)=>(0,Ce.jsxs)(xe.Box,{sx:{mb:1.5},children:[(0,Ce.jsxs)(xe.Stack,{direction:"row",alignItems:"center",spacing:.5,sx:{mb:.5},children:[(0,Ce.jsxs)(xe.Typography,{variant:"caption",fontWeight:600,sx:{fontFamily:"monospace",color:"primary.main"},children:[W.namespace,"/",W.pod]}),(0,Ce.jsx)(xe.Chip,{label:W.container,size:"small",variant:"outlined",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,Ce.jsx)(xe.Chip,{label:`${W.lines.length} line${W.lines.length>1?"s":""}`,size:"small",sx:{height:16,fontSize:"9px","& .MuiChip-label":{px:.5}}}),(0,Ce.jsx)(xe.Tooltip,{title:"Open log",children:(0,Ce.jsx)(xe.IconButton,{size:"small",sx:{p:0},onClick:()=>pe(W),children:(0,Ce.jsx)(Fr.Launch,{sx:{fontSize:12}})})})]}),W.lines.map((Oe,Se)=>(0,Ce.jsx)(xe.Typography,{variant:"caption",display:"block",sx:{fontFamily:"monospace",fontSize:"10px",pl:1,color:"text.secondary",wordBreak:"break-all",borderLeft:"2px solid",borderColor:"divider",mb:.25},children:Oe},Se))]},de))})]})]})};u();var z=I(ht(),1);u();var El=I(ht(),1),Ue=I(Mm(),1),tt=I(fe(),1),Bx=e=>{let t=e.channelObject.data;if(t.metricsProviderMissing)return(0,tt.jsx)(El.Alert,{severity:"info",sx:{my:1},children:"The metrics provider is not installed in this cluster, so there is no cluster usage to draw. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."});let n=[...t.metricsCluster];return(0,tt.jsxs)(El.Stack,{direction:"row",sx:{height:"200px"},children:[(0,tt.jsx)(Ue.ResponsiveContainer,{children:(0,tt.jsxs)(Ue.LineChart,{data:n,title:"CPU",children:[(0,tt.jsx)(Ue.CartesianGrid,{strokeDasharray:"3 3"}),(0,tt.jsx)(Ue.XAxis,{dataKey:"timestamp",fontSize:8}),(0,tt.jsx)(Ue.YAxis,{fontSize:8}),(0,tt.jsx)(Ue.Legend,{}),(0,tt.jsx)(Ue.Line,{name:"% CPU",type:"monotone",dataKey:"cpuUsage",dot:!1})]})}),(0,tt.jsx)(Ue.ResponsiveContainer,{children:(0,tt.jsxs)(Ue.LineChart,{data:n,title:"Memory",children:[(0,tt.jsx)(Ue.CartesianGrid,{strokeDasharray:"3 3"}),(0,tt.jsx)(Ue.XAxis,{dataKey:"timestamp",fontSize:8}),(0,tt.jsx)(Ue.YAxis,{fontSize:8}),(0,tt.jsx)(Ue.Legend,{}),(0,tt.jsx)(Ue.Line,{name:"% Memory",type:"monotone",dataKey:"memoryUsage",dot:!1})]})}),(0,tt.jsx)(Ue.ResponsiveContainer,{children:(0,tt.jsxs)(Ue.LineChart,{data:n,title:"Network",children:[(0,tt.jsx)(Ue.CartesianGrid,{strokeDasharray:"3 3"}),(0,tt.jsx)(Ue.XAxis,{dataKey:"timestamp",fontSize:8}),(0,tt.jsx)(Ue.YAxis,{fontSize:8}),(0,tt.jsx)(Ue.Legend,{}),(0,tt.jsx)(Ue.Line,{name:"Tx Mbps",type:"monotone",dataKey:"txmbps",stroke:"#6e5bb8",dot:!1}),(0,tt.jsx)(Ue.Line,{name:"Rx Mbps",type:"monotone",dataKey:"rxmbps",stroke:"#4a9076",dot:!1})]})})]})};u();var Pn=I(ht(),1),At=I(Rt(),1),$x=I(je(),1),sn=I(Rt(),1),qx=I(Ml(),1),Ux=I(Dl(),1),An=I(fe(),1),Ji={get:qx.default,set:Ux.default},gn=(e,t)=>(0,An.jsx)(Pn.Stack,{direction:"column",children:e.map((n,a)=>(0,An.jsxs)(Pn.Typography,{variant:"body2",children:[n.text,":\xA0",(0,An.jsx)("a",{href:"#",onClick:()=>t(n.kind,n.name,n.namespace),children:n.name})]},a))}),Yx=e=>{let t=[];for(let n of e.filter(a=>a.class==="ReplicaSet").map(a=>a.data.origin))n.status?.replicas===0||n.status?.availableReplicas===0||n.status?.readyReplicas===0?t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.WARNING,text:"Unneeded ReplicaSet"}):(n.status?.replicas===0||n.spec.availableReplicas===0)&&t.push({kind:"ReplicaSet",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.WARNING,text:"0 replicas desired"});return t},Gx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Deployment").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"Deployment",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.WARNING,text:"Unready replicas"});return t},Kx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Job").map(a=>a.data.origin))n.status?.failed!==void 0&&+n.status?.failed>0&&t.push({kind:"Job",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"Failed Job"});return t},Jx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"SS Replicas unready"});return t},Zx=e=>{let t=[];for(let n of e.filter(a=>a.class==="Stateful").map(a=>a.data.origin))n.status?.replicas!==n.status?.availableReplicas&&t.push({kind:"StatefulSet",name:n.metadata.name,namespace:n.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"DS replicas unready"});return t},jx=e=>{let t=e.filter(i=>i.class==="ConfigMap"&&i.data?.origin?.metadata?.namespace!=="kube-system"&&i.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t],a=(i,s)=>{let o=i.envFrom||[];for(let c of o)if(c.configMapRef?.name===s)return!0;let l=i.env||[];for(let c of l)if(c.valueFrom?.configMapRef?.name===s)return!0;return!1},r=(i,s)=>{for(let l of i.spec?.containers||[])if(a(l,s))return!0;let o=i.spec?.volumes||[];for(let l of o)if(l.configMap?.name===s||l.projected?.sources?.some(c=>c.configMap?.name===s))return!0;return!1};for(let i of t){let s=i.data.origin.metadata.name;" kwirth.keys kwirth-keys ".includes(s)&&(n=n.filter(o=>o!==i));for(let o of e.filter(l=>l.class==="Pod/").map(l=>l.data.origin))r(o,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="StatefulSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicaSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="Deployment").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="DaemonSet").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i));for(let o of e.filter(l=>l.class==="ReplicationController").map(l=>l.data.origin))r(o.spec.template,s)&&(n=n.filter(l=>l!==i))}return n.map(i=>({name:i.data.origin.metadata.name,namespace:i.data.origin.metadata.namespace,kind:"ConfigMap",text:"Unreferenced ConfigMap",level:At.ENotifyLevel.WARNING}))},Xx=e=>{let t=e.filter(a=>a.class==="Secret"&&a.data?.origin?.metadata?.namespace!=="kube-system"&&a.data?.origin?.metadata?.namespace!=="kube-public"),n=[...t];for(let a of t){let r=a.data.origin.metadata.name;" kwirth-sa-kwirthtoken kwirth-users kwirth.keys kwirth-keys ".includes(r)&&(n=n.filter(i=>i!==a)),a.data?.origin?.type?.startsWith("helm.sh/release.")&&(n=n.filter(i=>i!==a));for(let i of e.filter(s=>s.class==="Pod")){let s=i.data.origin;if((Ji.get(s,"spec.imagePullSecrets")||[]).map(c=>c.name).some(c=>c===r)){n=n.filter(c=>c!==a);break}let o=s.spec?.containers||[];for(let c of o){let d=c.envFrom||[];for(let f of d)f.secretRef?.name===r&&(n=n.filter(h=>h!==a));let m=c.env||[];for(let f of m)f.valueFrom?.secretKeyRef?.name===r&&(n=n.filter(h=>h!==a))}let l=s.spec?.volumes||[];for(let c of l)c.secret?.secretName===r&&(n=n.filter(d=>d!==a)),c.projected?.sources?.some(d=>d.secret?.name===r)&&(n=n.filter(d=>d!==a))}for(let i of e.filter(s=>s.class==="Deployment"||s.class==="Job"||s.class==="ReplicaSet"||s.class==="DaemonSet"||s.class==="StatefulSet").map(s=>s.data.origin))if((Ji.get(i,"spec.template.spec.imagePullSecrets")||[]).map(s=>s.name).some(s=>s===r)){n=n.filter(s=>s!==a);break}for(let i of e.filter(s=>s.class==="Ingress")){let s=i.data.origin;(Ji.get(s,"spec.tls")||[]).some(o=>o.secretName===r)&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="PersistentVolume")){let s=i.data.origin;Ji.get(s,"spec.csi.nodeStageSecretRef.name")===r&&(n=n.filter(o=>o!==a)),Ji.get(s,"spec.csi.volumeAttributes.secretName")===r&&(n=n.filter(o=>o!==a))}for(let i of e.filter(s=>s.class==="StorageClass")){let s=i.data.origin;Ji.get(s,"parameters.secretName")===r&&(n=n.filter(o=>o!==a))}}return n.map(a=>({name:a.data.origin.metadata.name,namespace:a.data.origin.metadata.namespace,kind:"Secret",text:"Unreferenced Secret",level:At.ENotifyLevel.WARNING}))},Qx=e=>{let t=e.filter(a=>a.class==="VolumeAttachment"),n=[];for(let a of t)(a.data.origin.status.attachError||a.data.origin.status.detachError)&&n.push({kind:"VolumeAttach",name:a.data.origin.metadata.name,namespace:"",level:At.ENotifyLevel.ERROR,text:"Attach/detach error"});return n},e1=e=>{let t=[],n=e.filter(a=>a.class==="Node").map(a=>a.data.origin);for(let a of n)a.status.conditions.some(i=>i.type==="Ready"&&i.status==="True")||t.push({name:a.metadata.name,namespace:"",kind:"Node",text:"Node not ready",level:At.ENotifyLevel.ERROR});return t},t1=e=>{let t=[],n=e.filter(a=>a.class==="Ingress").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec?.rules;for(let s of i){let o=s.http?.paths;for(let l of o){let c=l.backend?.service?.name;e.find(d=>d.class==="Service"&&d.data.origin?.metadata?.name===c&&d.data.origin?.metadata?.namespace===r)||t.push({kind:"Ingress",name:a.metadata.name,namespace:a.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"Inexistent service "+c})}}}return t},n1=e=>{let t=[],n=e.filter(a=>a.class==="Service"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=a.metadata?.namespace,i=a.spec.selector;if(i){let s=!1;for(let o of e.filter(l=>l.class==="Pod"&&l.data.origin?.metadata?.namespace===r).map(l=>l.data.origin)){let l=0;for(let c of Object.keys(i))o.metadata?.labels?.[c]===i[c]&&l++;if(l===Object.keys(i).length){s=!0;break}}s||t.push({kind:"Service",name:a.metadata.name,namespace:a.metadata.namespace,level:At.ENotifyLevel.ERROR,text:"Inexistent service destination pods"})}}return t},a1=e=>{let t=[],n=e.filter(a=>a.class==="Role"&&a.data.origin?.metadata?.namespace!=="kube-system"&&a.data.origin?.metadata?.namespace!=="kube-public").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="RoleBinding").map(s=>s.data.origin))if(r=i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===a.metadata.name&&s.namespace===a.metadata.namespace),r)break;r||t.push({kind:"Role",name:a.metadata.name,namespace:a.metadata.namespace,level:At.ENotifyLevel.WARNING,text:"Role not in use"})}return t},r1=e=>{let t=[],n=e.filter(a=>a.class==="ClusterRole").map(a=>a.data.origin);for(let a of n){let r=!1;for(let i of e.filter(s=>s.class==="ClusterRoleBinding").map(s=>s.data.origin))if(r=i.subjects&&i.subjects.some(s=>s.kind==="ServiceAccount"&&s.name===i.metadata.name&&s.namespace===i.metadata.namespace),r)break;r||t.push({kind:"ClusterRole",name:a.metadata.name,namespace:"",level:At.ENotifyLevel.WARNING,text:"ClusterRole not in use"})}return t},yn=(e,t,n,a)=>{let r=e.filter(s=>s.level===At.ENotifyLevel.ERROR).length,i=e.filter(s=>s.level===At.ENotifyLevel.WARNING).length;return(0,An.jsx)(Pn.Button,{onClick:()=>n(a),sx:{backgroundColor:r>0?"#ffaaaa":""},children:(0,An.jsxs)(Pn.Stack,{direction:"column",alignItems:"center",children:[t,(0,An.jsxs)(Pn.Stack,{direction:"row",children:[(0,An.jsxs)(Pn.Typography,{variant:"caption",color:r>0?"red":"gray",children:[r,"\xA0\xA0"]}),(0,An.jsx)(Pn.Typography,{variant:"caption",color:i>0?"orange":r>0?"gray":"orange",children:e.filter(s=>s.level===At.ENotifyLevel.WARNING).length})]})]})})},DM=(e,t)=>(0,An.jsxs)(Pn.Stack,{direction:"row",flex:1,justifyContent:"space-between",children:[yn(e1(e),(0,sn.getIconFromKind)("Node",50),t,"/cluster/Node"),yn(jx(e),(0,sn.getIconFromKind)("ConfigMap",50),t,"/config/ConfigMap"),yn(Xx(e),(0,sn.getIconFromKind)("Secret",50),t,"/config/Secret"),yn(Gx(e),(0,sn.getIconFromKind)("Deployment",50),t,"/workload/Deployment"),yn(Yx(e),(0,sn.getIconFromKind)("ReplicaSet",50),t,"/workload/ReplicaSet"),yn(Jx(e),(0,sn.getIconFromKind)("StatefulSet",50),t,"/workload/StatefulSet"),yn(Zx(e),(0,sn.getIconFromKind)("DaemonSet",50),t,"/workload/DaemonSet"),yn(Kx(e),(0,sn.getIconFromKind)("Job",50),t,"/workload/Job"),yn(t1(e),(0,sn.getIconFromKind)("Ingress",50),t,"/network/Ingress"),yn(n1(e),(0,sn.getIconFromKind)("Service",50),t,"/network/Service"),yn(Qx(e),(0,sn.getIconFromKind)("VolumeAttachment",50),t,"/storage/VolumeAttachment"),yn(a1(e),(0,sn.getIconFromKind)("Role",50),t,"/access/Role"),yn(r1(e),(0,sn.getIconFromKind)("ClusterRole",50),t,"/access/ClusterRole")]}),Ba=e=>{let t=(0,$x.useMemo)(()=>{let n={},{options:a,files:r,onNavigate:i}=e;return a.node&&(n.node=e1(r)),a.configMap&&(n.configMap=jx(r)),a.secret&&(n.secret=Xx(r)),a.deployment&&(n.deployment=Gx(r)),a.replicaSet&&(n.replicaSet=Yx(r)),a.statefulSet&&(n.statefulSet=Jx(r)),a.daemonSet&&(n.daemonSet=Zx(r)),a.job&&(n.job=Kx(r)),a.volumeAttachment&&(n.volumeAttachment=Qx(r)),a.ingress&&(n.ingress=t1(r)),a.service&&(n.service=n1(r)),a.role&&(n.role=a1(r)),a.custerRole&&(n.clusterRole=r1(r)),a.summary&&(n.summary=DM(r,i)),n},[e.files,e.options,e.onNavigate]);return(0,An.jsxs)(Pn.Stack,{children:[e.options.node&&gn(t.node,e.onLink),e.options.configMap&&gn(t.configMap,e.onLink),e.options.secret&&gn(t.secret,e.onLink),e.options.deployment&&gn(t.deployment,e.onLink),e.options.replicaSet&&gn(t.replicaSet,e.onLink),e.options.statefulSet&&gn(t.statefulSet,e.onLink),e.options.daemonSet&&gn(t.daemonSet,e.onLink),e.options.job&&gn(t.job,e.onLink),e.options.volumeAttachment&&gn(t.volumeAttachment,e.onLink),e.options.ingress&&gn(t.ingress,e.onLink),e.options.service&&gn(t.service,e.onLink),e.options.role&&gn(t.role,e.onLink),e.options.custerRole&&gn(t.clusterRole,e.onLink),e.options.summary&&t.summary]})};u();var Kt=I(je(),1),F=I(ht(),1),zr=I(Jt(),1);var s1=I(Rt(),1);u();var Be=I(ht(),1),nt=I(fe(),1),i1=e=>(0,nt.jsxs)(Be.Dialog,{open:!0,onClose:e.onClose,disableRestoreFocus:!0,maxWidth:"xs",fullWidth:!0,children:[(0,nt.jsx)(Be.DialogTitle,{children:"About Kwirth..."}),(0,nt.jsx)(Be.DialogContent,{children:(0,nt.jsxs)(Be.Stack,{spacing:2,sx:{p:2,borderRadius:2,backgroundColor:"rgba(245,130,10,0.07)",border:"1px solid rgba(245,130,10,0.2)"},children:[(0,nt.jsxs)(Be.Box,{children:[(0,nt.jsx)(Be.Typography,{variant:"h5",fontWeight:"bold",sx:{color:"#f5820a"},children:"Kwirth"}),(0,nt.jsx)(Be.Typography,{variant:"body2",color:"text.secondary",children:"Kubernetes observability platform"})]}),(0,nt.jsx)(Be.Divider,{}),(0,nt.jsxs)(Be.Stack,{spacing:1.5,children:[(0,nt.jsxs)(Be.Box,{children:[(0,nt.jsx)(Be.Typography,{variant:"caption",color:"text.secondary",display:"block",children:"VERSION"}),(0,nt.jsx)(Be.Typography,{variant:"body2",children:e.kwirthVersion??"unknown"})]}),(0,nt.jsxs)(Be.Box,{children:[(0,nt.jsx)(Be.Typography,{variant:"caption",color:"text.secondary",display:"block",children:"HOMEPAGE"}),(0,nt.jsx)(Be.Typography,{variant:"body2",children:(0,nt.jsx)("a",{href:"https://kwirthmagnify.dev",target:"_blank",rel:"noreferrer",children:"kwirthmagnify.dev"})})]}),(0,nt.jsxs)(Be.Box,{children:[(0,nt.jsx)(Be.Typography,{variant:"caption",color:"text.secondary",display:"block",children:"SOURCE CODE"}),(0,nt.jsx)(Be.Typography,{variant:"body2",children:(0,nt.jsx)("a",{href:"https://github.com/kwirthmagnify/kwirth",target:"_blank",rel:"noreferrer",children:"github.com/kwirthmagnify/kwirth"})})]})]}),(0,nt.jsx)(Be.Divider,{}),(0,nt.jsx)(Be.Typography,{variant:"caption",color:"text.secondary",children:"\xA9 2025 Kwirth contributors \xB7 Apache 2.0"})]})}),(0,nt.jsx)(Be.DialogActions,{children:(0,nt.jsx)(Be.Button,{onClick:e.onClose,children:"OK"})})]});var Zs=I(Qa(),1),P=I(fe(),1),o1=e=>{let[t,n]=(0,Kt.useState)(e.preferences.palette||"light"),[a,r]=(0,Kt.useState)(e.preferences.logLines),[i,s]=(0,Kt.useState)(e.preferences.tracing),[o,l]=(0,Kt.useState)(e.preferences.dataConfig?.source),[c,d]=(0,Kt.useState)(e.preferences.dataConfig?.sync),[m,f]=(0,Kt.useState)(e.preferences.dataHelm),[h,k]=(0,Kt.useState)(e.preferences.dataManagedFields),[v,E]=(0,Kt.useState)(e.preferences.customActions||[]),[q,me]=(0,Kt.useState)(!1),[pe,H]=(0,Kt.useState)(!1),[Q,W]=(0,Kt.useState)(!1),[de,Oe]=(0,Kt.useState)(!1),Se=(0,Kt.useRef)(null),[_,B]=(0,Kt.useState)(!1),oe="Paste here a complete YAML of a pod that will be launched when a user selects this action in Magnify 'Overview' top menu ('Kwirth Works' action)";(0,s1.useKeyboard)();let Z=()=>{e.channelObject.writeChannelUserPreferences&&(e.preferences.palette=t,e.preferences.dataHelm=m,e.preferences.dataManagedFields=h,e.preferences.dataConfig.source=o,e.preferences.dataConfig.sync=c,e.preferences.logLines=a,e.preferences.tracing=i,e.preferences.customActions=v,e.channelObject.writeChannelUserPreferences(e.channelObject.channelId,e.preferences),me(!1),H(!1),W(!1),Oe(!1))},Fe=()=>{e.onDataReload&&e.onDataReload()},Ve=()=>{console.log(e.files.filter(re=>re.name.includes(Se.current.value)||re.path.includes(Se.current.value)))},at=(re,Me)=>{let $e=o;re==="sync"&&($e=c),$e.some(Y=>Y.name===Me.name)?$e=$e.filter(Y=>Y.name!==Me.name):$e.push(Me),re==="source"&&l([...$e]),re==="sync"&&d([...$e]),H(!0)},Mt=re=>{v.splice(re,1),E([...v])};return(0,P.jsxs)(F.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,P.jsxs)(F.Accordion,{defaultExpanded:!0,children:[(0,P.jsx)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Display"})})}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"column",spacing:.5,children:[(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Palette mode"}),(0,P.jsx)(F.Typography,{variant:"body2",color:"text.secondary",sx:{mr:1},children:t==="dark"?"Dark":"Light"}),(0,P.jsx)(F.Switch,{size:"small",checked:t==="dark",onChange:re=>{let Me=re.target.checked?"dark":"light";n(Me),e.channelObject.setPalette?.(Me),me(!0)}})]}),(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"About Kwirth"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>B(!0),children:"About"})]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Z,disabled:!q,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{children:[(0,P.jsx)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Custom actions"})})}),(0,P.jsxs)(F.AccordionDetails,{children:[v.map((re,Me)=>(0,P.jsxs)(F.Stack,{direction:"column",spacing:1,sx:{mb:2},children:[(0,P.jsxs)(F.Stack,{direction:"row",spacing:1,alignItems:"center",children:[(0,P.jsxs)(F.Select,{value:re.type,onChange:$e=>{re.type=$e.target.value,E([...v])},variant:"standard",sx:{width:100},children:[(0,P.jsx)(F.MenuItem,{value:"kwirth",disabled:!0,children:"Kwirth"}),(0,P.jsx)(F.MenuItem,{value:"kube",children:"Kube"})]}),(0,P.jsx)(F.TextField,{value:re.name,onChange:$e=>{re.name=$e.target.value,E([...v])},variant:"standard",placeholder:"Name",sx:{minWidth:"15%"}}),(0,P.jsxs)(F.Select,{value:re.onReady,onChange:$e=>{re.onReady=$e.target.value,E([...v])},variant:"standard",sx:{minWidth:"10%"},children:[(0,P.jsx)(F.MenuItem,{value:"nothing",children:"Nothing"}),(0,P.jsx)(F.MenuItem,{value:"shell",children:"Shell"}),(0,P.jsx)(F.MenuItem,{value:"http",disabled:!0,children:"HTTP"}),(0,P.jsx)(F.MenuItem,{value:"https",disabled:!0,children:"HTTPS"})]}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:$e=>{re.forward=$e.target.checked,E([...v])},checked:re.forward,disabled:"nothing shell".includes(re.onReady)}),label:"Forward"}),(0,P.jsx)(F.TextField,{value:re.url,onChange:$e=>{re.url=$e.target.value,E([...v])},disabled:"nothing shell".includes(re.onReady)||re.forward,fullWidth:!0,variant:"standard",placeholder:"URL"}),(0,P.jsx)(F.Box,{sx:{flexGrow:1}}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>Mt(Me),children:"Remove"})]}),(0,P.jsx)(F.TextareaAutosize,{value:re.podYaml,onChange:$e=>{re.podYaml=$e.target.value,E([...v])},style:{height:100,fontFamily:"monospace",fontSize:12,padding:8,boxSizing:"border-box",width:"100%"},placeholder:oe},"yaml"+Me)]},"action"+Me)),(0,P.jsx)(F.Stack,{direction:"row",justifyContent:"flex-end",children:(0,P.jsx)(F.Button,{size:"small",onClick:()=>E([...v,{type:"kube",name:"",podYaml:"",onReady:"nothing"}]),children:"Add"})})]}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Z,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{children:[(0,P.jsx)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"External content"})})}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsx)(F.TextField,{value:a,onChange:re=>{r(+re.target.value),Oe(!0)},variant:"standard",label:"Max messages",type:"number",fullWidth:!0})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Z,disabled:!de,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{children:[(0,P.jsx)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Data management"})})}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"row",spacing:2,children:[(0,P.jsxs)(F.Stack,{direction:"column",flex:1,children:[(0,P.jsx)(F.Typography,{variant:"body2",fontWeight:"bold",children:"Storage"}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:re=>{f(re.target.checked),H(!0)},checked:m}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:"Keep Helm data"})}),(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:re=>{k(re.target.checked),H(!0)},checked:h}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:"Keep managed fields"})})]}),(0,P.jsxs)(F.Stack,{direction:"column",flex:1,children:[(0,P.jsx)(F.Typography,{variant:"body2",fontWeight:"bold",children:"Source"}),us.map(re=>(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:()=>at("source",re),checked:o.some(Me=>Me.name===re.name)}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:re.name})},re.name))]}),(0,P.jsxs)(F.Stack,{direction:"column",flex:1,children:[(0,P.jsx)(F.Typography,{variant:"body2",fontWeight:"bold",children:"Sync"}),us.map(re=>(0,P.jsx)(F.FormControlLabel,{control:(0,P.jsx)(F.Checkbox,{size:"small",onChange:()=>at("sync",re),checked:c.some(Me=>Me.name===re.name)}),label:(0,P.jsx)(F.Typography,{variant:"body2",children:re.name})},re.name))]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Z,disabled:!pe,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{children:[(0,P.jsx)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Debug"})})}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsxs)(F.Stack,{direction:"column",spacing:.5,children:[(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",spacing:1,children:[(0,P.jsxs)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:["Files collection (",e.files.length," objects, ",(JSON.stringify(e.files).length/1024/1024).toFixed(2)," MB)"]}),(0,P.jsx)(F.TextField,{inputRef:Se,label:"Filter",variant:"standard",size:"small"}),(0,P.jsx)(F.Button,{size:"small",onClick:Fe,children:"Reload"}),(0,P.jsx)(F.Button,{size:"small",onClick:Ve,children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Metrics names"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>console.log(e.channelObject.metricsList?.keys()),children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Channel object"}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>console.log(e.channelObject),children:"Show"})]}),(0,P.jsxs)(F.Stack,{direction:"row",alignItems:"center",children:[(0,P.jsx)(F.Typography,{variant:"body2",sx:{flexGrow:1},children:"Message tracing (log received messages to console)"}),(0,P.jsx)(F.Checkbox,{size:"small",checked:i,onChange:()=>{s(!i),W(!0)}})]})]})}),(0,P.jsx)(F.AccordionActions,{children:(0,P.jsx)(F.Button,{size:"small",onClick:Z,disabled:!Q,children:"Save"})})]}),(0,P.jsxs)(F.Accordion,{children:[(0,P.jsx)(F.AccordionSummary,{expandIcon:(0,P.jsx)(zr.ExpandMore,{}),children:(0,P.jsx)(F.Typography,{component:"span",children:(0,P.jsx)("b",{children:"Extensions"})})}),(0,P.jsx)(F.AccordionDetails,{children:(0,P.jsx)(F.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[{type:Zs.EExtensionType.PLUGIN,label:"Plugins",desc:"Install, update and remove channel plugins that extend Kwirth with new visualization and analysis capabilities."},{type:Zs.EExtensionType.PROVIDER,label:"Providers",desc:"Configure data source providers that feed events and metrics into your channels from external systems."},{type:Zs.EExtensionType.SENDER,label:"Senders",desc:"Manage notification senders to forward alerts and reports to Slack, Teams, email and other destinations."},{type:Zs.EExtensionType.THEME,label:"Themes",desc:"Install and activate visual themes to customize the look and feel of Kwirth."}].map(({type:re,label:Me,desc:$e})=>(0,P.jsxs)(F.Box,{sx:{border:1,borderColor:"divider",borderRadius:1,p:1.5,flex:1,minWidth:120,display:"flex",flexDirection:"column",gap:1},children:[(0,P.jsx)(F.Typography,{variant:"body2",fontWeight:"bold",children:Me}),(0,P.jsx)(F.Typography,{variant:"caption",color:"text.secondary",sx:{flexGrow:1},children:$e}),(0,P.jsx)(F.Button,{size:"small",onClick:()=>e.channelObject.openManager?.(re),children:"Manage"})]},re))})})]}),_&&(0,P.jsx)(i1,{kwirthVersion:e.channelObject.kwirthVersion,onClose:()=>B(!1)})]})};var Zi=I(Qa(),1);u();var R=I(fe(),1),da="var(--magnify-section-bg, white)",Lr=e=>(0,R.jsxs)("svg",{viewBox:"0 0 360 400",width:"300",height:"333",role:"img","aria-label":e.label,children:[(0,R.jsx)("g",{fill:"none",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",children:e.children}),(0,R.jsx)("text",{x:"180",y:"378",textAnchor:"middle",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"30",fill:"currentColor",children:e.label})]}),on=e=>{let t=e.r??11,n=[0,1,2,3,4,5].map(a=>{let r=Math.PI/6+a*Math.PI/3;return`${(e.cx+t*Math.cos(r)).toFixed(1)},${(e.cy+t*Math.sin(r)).toFixed(1)}`}).join(" ");return(0,R.jsx)("polygon",{points:n})},js=e=>{let{cx:t,cy:n,r:a}=e;return(0,R.jsxs)("g",{children:[(0,R.jsx)("circle",{cx:t,cy:n,r:a}),(0,R.jsx)("circle",{cx:t,cy:n,r:a*.4}),[0,1,2,3,4,5,6,7].map(r=>{let i=r*Math.PI/4;return(0,R.jsx)("line",{x1:t+a*Math.cos(i),y1:n+a*Math.sin(i),x2:t+(a+a*.45)*Math.cos(i),y2:n+(a+a*.45)*Math.sin(i)},r)})]})},Al=e=>{let{cx:t,cy:n,s:a}=e;return(0,R.jsxs)("g",{children:[(0,R.jsx)("path",{d:`M${t},${n-a} L${t+a},${n-a/2} L${t},${n} L${t-a},${n-a/2} Z`}),(0,R.jsx)("path",{d:`M${t-a},${n-a/2} L${t-a},${n+a/2} L${t},${n+a} L${t},${n}`}),(0,R.jsx)("path",{d:`M${t+a},${n-a/2} L${t+a},${n+a/2} L${t},${n+a}`}),[0,1,2].map(r=>(0,R.jsx)("line",{x1:t+a*.25,y1:n+a*.1+r*a*.22,x2:t+a*.75,y2:n-a*.15+r*a*.22},r))]})},OM=()=>(0,R.jsxs)(Lr,{label:"WORKLOAD",children:[(0,R.jsxs)("g",{fill:"currentColor",stroke:"none",children:[(0,R.jsx)("rect",{x:"62",y:"198",width:"34",height:"57",rx:"3"}),(0,R.jsx)("rect",{x:"110",y:"212",width:"34",height:"43",rx:"3"}),(0,R.jsx)("rect",{x:"158",y:"150",width:"34",height:"105",rx:"3"}),(0,R.jsx)("rect",{x:"206",y:"162",width:"34",height:"93",rx:"3"}),(0,R.jsx)("rect",{x:"254",y:"106",width:"34",height:"149",rx:"3"})]}),(0,R.jsx)("line",{x1:"52",y1:"268",x2:"298",y2:"268"}),(0,R.jsx)("circle",{cx:"44",cy:"268",r:"8"}),(0,R.jsx)("circle",{cx:"306",cy:"268",r:"8"}),(0,R.jsx)("polyline",{points:"70,170 158,100 198,124 282,46",strokeWidth:"12"}),(0,R.jsx)("polyline",{points:"248,44 286,42 284,80",strokeWidth:"12"}),(0,R.jsx)(js,{cx:130,cy:178,r:12})]}),RM=()=>(0,R.jsxs)(Lr,{label:"NETWORKING",children:[(0,R.jsx)("circle",{cx:"180",cy:"165",r:"130"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"52"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"62",ry:"130"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),(0,R.jsx)("ellipse",{cx:"180",cy:"165",rx:"130",ry:"60",transform:"rotate(-35 180 165)",strokeDasharray:"10 10",strokeWidth:"3"}),[[50,165],[310,165],[180,35],[180,295],[242,98],[136,175],[210,222],[262,52],[100,78],[292,222]].map(([e,t],n)=>(0,R.jsx)("circle",{cx:e,cy:t,r:"10",fill:da},n))]}),NM=()=>(0,R.jsxs)(Lr,{label:"SECURITY",children:[(0,R.jsx)("rect",{x:"34",y:"26",width:"292",height:"254",strokeDasharray:"14 10",strokeWidth:"4"}),(0,R.jsx)(on,{cx:34,cy:26}),(0,R.jsx)(on,{cx:326,cy:26}),(0,R.jsx)(on,{cx:34,cy:280}),(0,R.jsx)(on,{cx:326,cy:280}),(0,R.jsx)("circle",{cx:"180",cy:"26",r:"8"}),(0,R.jsx)("circle",{cx:"180",cy:"280",r:"8"}),(0,R.jsx)("circle",{cx:"34",cy:"153",r:"8"}),(0,R.jsx)("circle",{cx:"326",cy:"153",r:"8"}),(0,R.jsx)("path",{d:"M180,52 C214,72 244,78 270,78 L270,160 C270,226 232,262 180,290 C128,262 90,226 90,160 L90,78 C116,78 146,72 180,52 Z"}),(0,R.jsx)("path",{d:"M180,72 C208,88 232,94 252,94 L252,160 C252,214 222,244 180,268 C138,244 108,214 108,160 L108,94 C128,94 152,88 180,72 Z",strokeWidth:"4"}),(0,R.jsx)("rect",{x:"142",y:"150",width:"76",height:"62",rx:"8"}),(0,R.jsx)("path",{d:"M156,150 V132 a24,24 0 0 1 48,0 V150"}),(0,R.jsx)("circle",{cx:"180",cy:"176",r:"7"}),(0,R.jsx)("line",{x1:"180",y1:"183",x2:"180",y2:"198"})]}),EM=()=>(0,R.jsxs)(Lr,{label:"CLUSTER",children:[(0,R.jsx)("circle",{cx:"180",cy:"168",r:"150",strokeDasharray:"12 10",strokeWidth:"4"}),[[110,102],[250,102],[110,236],[250,236]].map(([e,t],n)=>(0,R.jsxs)("g",{children:[(0,R.jsx)("line",{x1:e,y1:t,x2:e<180?70:290,y2:t,strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("circle",{cx:e<180?64:296,cy:t,r:"7"})]},n)),(0,R.jsx)("line",{x1:"180",y1:"130",x2:"180",y2:"206"}),(0,R.jsx)("line",{x1:"140",y1:"168",x2:"220",y2:"168"}),(0,R.jsx)(Al,{cx:180,cy:92,s:40}),(0,R.jsx)(Al,{cx:104,cy:168,s:40}),(0,R.jsx)(Al,{cx:256,cy:168,s:40}),(0,R.jsx)(Al,{cx:180,cy:236,s:40})]}),l1=()=>(0,R.jsxs)("g",{children:[(0,R.jsx)("circle",{cx:"180",cy:"62",r:"32",fill:da}),(0,R.jsx)("circle",{cx:"180",cy:"258",r:"32",fill:da}),(0,R.jsx)("rect",{x:"166",y:"86",width:"28",height:"148",rx:"10",fill:da}),(0,R.jsx)("rect",{x:"168",y:"22",width:"24",height:"38",rx:"3",fill:da}),(0,R.jsx)("rect",{x:"168",y:"260",width:"24",height:"38",rx:"3",fill:da}),(0,R.jsx)("rect",{x:"170",y:"16",width:"20",height:"12",fill:da,stroke:"none"}),(0,R.jsx)("rect",{x:"170",y:"292",width:"20",height:"12",fill:da,stroke:"none"})]}),AM=()=>(0,R.jsxs)(Lr,{label:"CONFIG",children:[(0,R.jsx)(on,{cx:86,cy:86,r:52}),(0,R.jsx)(js,{cx:86,cy:86,r:20}),(0,R.jsx)(on,{cx:274,cy:236,r:50}),(0,R.jsx)(js,{cx:274,cy:236,r:19}),(0,R.jsx)(on,{cx:326,cy:96,r:16}),(0,R.jsx)(on,{cx:34,cy:226,r:16}),(0,R.jsx)(on,{cx:186,cy:24,r:14}),(0,R.jsx)("line",{x1:"150",y1:"24",x2:"170",y2:"24",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"326",y1:"114",x2:"326",y2:"140",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"34",y1:"192",x2:"34",y2:"208",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("g",{transform:"rotate(45 180 160)",children:(0,R.jsx)(l1,{})}),(0,R.jsx)("text",{x:"20",y:"176",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"}),(0,R.jsx)("text",{x:"296",y:"162",fontFamily:"Arial, Helvetica, sans-serif",fontWeight:"700",fontSize:"22",fill:"currentColor",stroke:"none",children:"101"})]}),PM=()=>(0,R.jsxs)(Lr,{label:"STORAGE",children:[[26,70,114].map((e,t)=>(0,R.jsxs)("g",{children:[(0,R.jsx)("rect",{x:"92",y:e,width:"176",height:"40",rx:"8"}),(0,R.jsx)("circle",{cx:"112",cy:e+20,r:"7"}),[0,1,2,3].map(n=>[0,1].map(a=>(0,R.jsx)("circle",{cx:210+n*14,cy:e+13+a*14,r:"2.5",fill:"currentColor",stroke:"none"},`${n}${a}`)))]},t)),(0,R.jsx)("line",{x1:"62",y1:"150",x2:"42",y2:"76"}),(0,R.jsx)("line",{x1:"298",y1:"150",x2:"318",y2:"76"}),(0,R.jsx)("rect",{x:"34",y:"154",width:"292",height:"36",rx:"18"}),(0,R.jsx)("path",{d:"M58,190 L94,302 L266,302 L302,190"}),(0,R.jsx)("line",{x1:"116",y1:"190",x2:"132",y2:"302",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"244",y1:"190",x2:"228",y2:"302",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"70",y1:"238",x2:"290",y2:"238",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"180",y1:"284",x2:"180",y2:"214"}),(0,R.jsx)("polyline",{points:"162,232 180,212 198,232"})]}),FM=()=>(0,R.jsxs)(Lr,{label:"CUSTOMIZATION",children:[(0,R.jsx)("g",{transform:"translate(180 160) rotate(-45) scale(0.8) translate(-180 -160)",children:(0,R.jsx)(l1,{})}),(0,R.jsxs)("g",{transform:"rotate(45 180 160)",children:[(0,R.jsx)("rect",{x:"170",y:"160",width:"20",height:"118",rx:"10"}),(0,R.jsx)("rect",{x:"162",y:"122",width:"36",height:"40",rx:"4"}),(0,R.jsx)("path",{d:"M162,122 C158,96 166,64 180,44 C194,64 202,96 198,122"}),(0,R.jsx)("line",{x1:"180",y1:"60",x2:"180",y2:"120",strokeWidth:"3"})]}),(0,R.jsx)("line",{x1:"262",y1:"150",x2:"318",y2:"150"}),(0,R.jsx)("circle",{cx:"300",cy:"150",r:"8",fill:da}),(0,R.jsx)("line",{x1:"262",y1:"184",x2:"318",y2:"184"}),(0,R.jsx)("circle",{cx:"276",cy:"184",r:"8",fill:da}),(0,R.jsx)(js,{cx:178,cy:36,r:10}),(0,R.jsx)(js,{cx:130,cy:262,r:12}),(0,R.jsx)(on,{cx:32,cy:150}),(0,R.jsx)(on,{cx:84,cy:160,r:14}),(0,R.jsx)(on,{cx:48,cy:232}),(0,R.jsx)(on,{cx:180,cy:268,r:14}),(0,R.jsx)(on,{cx:292,cy:112,r:12}),(0,R.jsx)("circle",{cx:"34",cy:"36",r:"8"}),(0,R.jsx)("circle",{cx:"326",cy:"36",r:"8"}),(0,R.jsx)("circle",{cx:"34",cy:"270",r:"8"}),(0,R.jsx)("circle",{cx:"326",cy:"270",r:"8"}),(0,R.jsx)("line",{x1:"44",y1:"36",x2:"96",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"264",y1:"36",x2:"316",y2:"36",strokeDasharray:"4 8",strokeWidth:"4"}),(0,R.jsx)("line",{x1:"44",y1:"270",x2:"96",y2:"270",strokeDasharray:"4 8",strokeWidth:"4"})]}),c1={access:NM,cluster:EM,config:AM,custom:FM,network:RM,storage:PM,workload:OM};var D=I(fe(),1),va=(e,t,n)=>{if(!e.properties)return;let a=e.properties.find(r=>r.name===t);a&&(a.format="function",a.source=n)},g=(e,t,n,a,r)=>{let i=e.leftItems?.find(s=>s.name===t);i&&(i.onClick=n,a&&(i.isVisible=a),r&&(i.isEnabled=r))};function _M(e){let t=e.state??{};if(e.ready)return"green";if(t.terminated)return"gray";if(t.waiting){let n=t.waiting.reason??"";return["ContainerCreating","PodInitializing"].includes(n)?"orange":"red"}return"blue"}var u1=(e,t,n,a,r,i,s,o,l,c,d,m)=>{let f=(N,$)=>{let ie=t.files.find(ne=>ne.path===N);ie&&(ie.children=$)},h=()=>{let N={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:rt(),namespace:"",group:"",pod:"",container:"",command:"events",action:Zi.EInstanceMessageAction.COMMAND,flow:Zi.EInstanceMessageFlow.REQUEST,type:Zi.EInstanceMessageType.DATA,channel:n.channelId,params:["cluster","","","","500"]};n.webSocket&&n.webSocket.send(JSON.stringify(N))},k=()=>t.clusterInfo?(0,D.jsx)(z.Box,{sx:{bgcolor:"background.default"},width:"100%",height:"100%",children:(0,D.jsx)(z.Card,{sx:{m:2,display:"flex",flexDirection:"column",height:"calc(100% - 55px)"},children:(0,D.jsxs)(z.CardContent,{sx:{flex:1,overflowY:"auto",display:"flex",flexDirection:"column",p:2},children:[(0,D.jsxs)(z.Stack,{direction:"row",justifyContent:"space-between",width:"100%",px:1,children:[(0,D.jsxs)(z.Typography,{variant:"body2",children:[(0,D.jsx)("b",{children:"Cluster:"})," ",n.clusterInfo?.name]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:[(0,D.jsx)("b",{children:"Version:"})," ",t.clusterInfo.major,".",t.clusterInfo.minor,"\xA0\xA0(",t.clusterInfo.gitVersion,")"]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:[(0,D.jsx)("b",{children:"Platform:"})," ",t.clusterInfo.platform]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:[(0,D.jsx)("b",{children:"Nodes:"})," ",t.files.filter(N=>N.class==="Node").length]})]}),(0,D.jsx)(z.Divider,{sx:{mt:1,mb:1}}),(0,D.jsx)(Bx,{channelObject:n}),(0,D.jsx)(z.Divider,{sx:{mt:1,mb:1}}),(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{summary:!0}}),(0,D.jsx)(z.Divider,{sx:{mt:1,mb:1}}),(0,D.jsxs)(z.Box,{sx:{flex:1,overflowY:"auto",ml:1,mr:1},children:[t.eventsProviderMissing&&(0,D.jsx)(z.Alert,{severity:"info",sx:{my:1},children:"The events provider is not installed in this cluster, so there are no cluster events to show. Install it from \u2630 \u2192 Manage extensions \u2192 Providers."}),(0,D.jsx)(z.Stack,{direction:"column",children:t.clusterEvents?.map((N,$)=>{let ie=N.type?N.type[0]:"",ne="--mui-palette-text-primary";return ie==="W"&&(ne="orange"),ie==="E"&&(ne="red"),(0,D.jsxs)(z.Stack,{direction:"row",children:[(0,D.jsx)(z.Typography,{variant:"body2",sx:{width:"5%",color:ne},children:ie}),(0,D.jsx)(z.Typography,{variant:"body2",sx:{width:"25%",color:ne},children:N.eventTime||N.lastTimestamp||N.firstTimestamp}),(0,D.jsx)(z.Typography,{variant:"body2",sx:{width:"70%",color:ne},children:N.message})]},$)})}),(0,D.jsxs)(z.Stack,{direction:"row",children:[(0,D.jsx)(z.Typography,{flexGrow:1}),(0,D.jsx)(z.Button,{onClick:h,children:"More Events"})]})]})]})})}):(0,D.jsx)(D.Fragment,{}),v=N=>{let $=N.path.replaceAll("/",""),ie=c1[$];return(0,D.jsx)(z.Box,{width:"100%",height:"100%",sx:{bgcolor:"background.default",color:"text.secondary","--magnify-section-bg":ne=>ne.palette.background.default},display:"flex",justifyContent:"center",alignItems:"center",children:ie&&(0,D.jsx)(ie,{})})},E=()=>(0,D.jsxs)(z.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Status"}),(0,D.jsxs)(z.CardContent,{children:[(0,D.jsxs)(z.Typography,{variant:"body2",children:["Total CPU: ",t.files.filter(N=>N.class==="Node").reduce((N,$)=>N+ +$.data.origin.status.capacity.cpu,0)]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Total Memory: ",qs(t.files.filter(N=>N.class==="Node").reduce((N,$)=>N+Kn($.data.origin.status.capacity.memory),0))]}),(0,D.jsx)(z.Typography,{mt:1}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Actual pods: ",t.files.filter(N=>N.class==="Pod").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Max pods: ",t.files.filter(N=>N.class==="Node").reduce((N,$)=>N+ +$.data.origin.status.capacity.pods,0)]})]})]}),(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Validations"}),(0,D.jsx)(z.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{node:!0}})})]})]}),q=()=>(0,D.jsxs)(z.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Status"}),(0,D.jsxs)(z.CardContent,{children:[(0,D.jsxs)(z.Typography,{variant:"body2",children:["Pods: ",t.files.filter(N=>N.class==="Pod").length]}),(0,D.jsx)(z.Typography,{mt:1}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Deployments: ",t.files.filter(N=>N.class==="Deployment").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Daemon sets: ",t.files.filter(N=>N.class==="DaemonSet").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Replica sets: ",t.files.filter(N=>N.class==="ReplicaSet").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Replication Controllers: ",t.files.filter(N=>N.class==="ReplicationController").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Stateful sets: ",t.files.filter(N=>N.class==="StatefulSet").length]}),(0,D.jsx)(z.Typography,{mt:1}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Jobs: ",t.files.filter(N=>N.class==="Job").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Cron jobs: ",t.files.filter(N=>N.class==="CronJob").length]})]})]}),(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Validations"}),(0,D.jsx)(z.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{replicaSet:!0,daemonSet:!0,deployment:!0,statefulSet:!0,job:!0}})})]})]}),me=()=>(0,D.jsxs)(z.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Status"}),(0,D.jsxs)(z.CardContent,{children:[(0,D.jsxs)(z.Typography,{variant:"body2",children:["Services: ",t.files.filter(N=>N.class==="Service").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Ingresses: ",t.files.filter(N=>N.class==="Ingress").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Ingress classes: ",t.files.filter(N=>N.class==="IngressClass").length]})]})]}),(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Validations"}),(0,D.jsx)(z.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{ingress:!0,service:!0}})})]})]}),pe=()=>(0,D.jsxs)(z.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Status"}),(0,D.jsxs)(z.CardContent,{children:[(0,D.jsxs)(z.Typography,{variant:"body2",children:["ConfigMap: ",t.files.filter(N=>N.class==="ConfigMap").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Secret: ",t.files.filter(N=>N.class==="Secret").length]})]})]}),(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Validations"}),(0,D.jsx)(z.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{configMap:!0,secret:!0}})})]})]}),H=()=>(0,D.jsxs)(z.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Status"}),(0,D.jsxs)(z.CardContent,{children:[(0,D.jsxs)(z.Typography,{variant:"body2",children:["Total SA's: ",t.files.filter(N=>N.class==="ServiceAccount").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Total Roles: ",t.files.filter(N=>N.class==="Role").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Total Cluster Roles: ",t.files.filter(N=>N.class==="ClusterRole").length]})]})]}),(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Validations"}),(0,D.jsx)(z.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{role:!0,custerRole:!0}})})]})]}),Q=()=>(0,D.jsxs)(z.Box,{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,sx:{bgcolor:"background.default",borderBottomRightRadius:"8px",overflowY:"auto"},children:[(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Status"}),(0,D.jsxs)(z.CardContent,{children:[(0,D.jsxs)(z.Typography,{variant:"body2",children:["Total PV's: ",t.files.filter(N=>N.class==="PersistentVolume").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Total PVC's: ",t.files.filter(N=>N.class==="PersistentVolumeClaim").length]}),(0,D.jsxs)(z.Typography,{variant:"body2",children:["Total storage: ",qs(t.files.filter(N=>N.class==="PersistentVolumeClaim").reduce((N,$)=>N+$.data.size,0))]})]})]}),(0,D.jsxs)(z.Card,{sx:{m:1,flexShrink:0},children:[(0,D.jsx)(z.CardHeader,{title:"Validations"}),(0,D.jsx)(z.CardContent,{children:(0,D.jsx)(Ba,{files:t.files,onLink:r,onNavigate:i,options:{volumeAttachment:!0}})})]})]}),W=()=>(0,D.jsx)(z.Box,{sx:{bgcolor:"background.default"},width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:2,p:2,children:(0,D.jsx)(o1,{preferences:t.userPreferences,files:t.files,onDataReload:de,channelObject:n})}),de=()=>{t.files=t.files.filter(N=>N.isDirectory&&N.path.split("/").length-1<=2),t.files=t.files.filter(N=>N.class!=="crdGroup"),t.currentPath="/overview",Dm(n)};f("/overview",k),f("/cluster",v),f("/workload",v),f("/config",v),f("/network",v),f("/storage",v),f("/access",v),f("/custom",v),f("/cluster/overview",E),f("/workload/overview",q),f("/network/overview",me),f("/config/overview",pe),f("/storage/overview",Q),f("/access/overview",H),f("/preferences",W);let Oe=a.get("classOverview");g(Oe,"create",()=>s("Pod"));let Se=ka.items.find(N=>N.name==="pods");Se&&(Se.invoke=(N,$)=>{let ie=N.kind,ne=t.files.filter(le=>le.class==="Pod");return ne=ne.filter(le=>{let St=!1;if(ie==="Deployment"){let pt=le.data.origin.metadata.ownerReferences?.filter(Pt=>Pt.kind==="ReplicaSet")||[];if(pt&&pt.length>0){let Pt=t.files.find(Jr=>Jr.path===`/workload/ReplicaSet/${pt[0].name}:${N.metadata.namespace}`);St=Pt&&Pt.data.origin.metadata.ownerReferences.some(Jr=>Jr.kind==="Deployment"&&Jr.name===N.metadata.name)}}else St=le.data.origin.metadata.ownerReferences?.some(pt=>pt.kind===ie&&pt.name===N.metadata.name)||!1;return St}),ne.map(le=>le.data.origin)});let _=N=>{let $=t.files.find(le=>N===le.path);if(!$||!$.data.origin.status?.containerStatuses)return(0,D.jsx)(D.Fragment,{});let ie=[],ne=(le,St)=>{St.map((pt,Pt)=>{ie.push((0,D.jsx)(z.Box,{sx:{width:"8px",height:"8px",backgroundColor:_M(pt),margin:"1px",display:"inline-block"}},(le*1e3+Pt).toString()))})};return $.data.origin.status.initContainerStatuses&&$.data.origin.status.initContainerStatuses.length>0&&ne(0,$.data.origin.status.initContainerStatuses),$.data.origin.status.containerStatuses&&$.data.origin.status.containerStatuses.length>0&&ne(1,$.data.origin.status.containerStatuses),ie},B=N=>{let $=t.files.find(ne=>N===ne.path);if(!$||!$.data?.origin?.status)return(0,D.jsx)(D.Fragment,{});let ie=$.data.origin?.metadata?.deletionTimestamp?"Terminating":$.data.origin?.status.phase;return(0,D.jsx)(z.Typography,{color:ie==="Running"?"green":ie==="Terminating"?"blue":ie==="Succeeded"?"gray":ie==="Pending"?"orange":"red",fontSize:12,children:ie})},oe=a.get("classPod");g(oe,"create",()=>s("Pod"));let Z=a.get("Pod");g(Z,"details",l),g(Z,"edit",c),g(Z,"delete",o),va(Z,"container",_),va(Z,"status",B);let Fe=N=>{let $=t.files.find(ne=>N===ne.path);if(!$)return;if(!$.data?.origin?.status?.conditions)return(0,D.jsx)(D.Fragment,{});let ie=[];for(let ne of $.data.origin.status.conditions)ne.status==="True"&&ie.push((0,D.jsx)(z.Typography,{fontSize:12,children:ne.type},ne.type));return(0,D.jsx)(z.Stack,{direction:"column",children:ie})},Ve=N=>{let $=t.files.find(ne=>N===ne.path);if(!$)return;let ie=bl($.data.origin.spec.schedule);return[`${ie?.timeLeft.days}d${ie?.timeLeft.hours}h${ie?.timeLeft.minutes}m${ie?.timeLeft.seconds}s`]},at=N=>{let $=t.files.find(ie=>N===ie.path);if($)return[`${$.data.origin.status?.active?.length||0}`]},Mt=a.get("classDeployment");g(Mt,"create",()=>s("Deployment"));let re=a.get("Deployment");g(re,"details",l),g(re,"edit",c),g(re,"delete",o);let Me=a.get("classDaemonSet");g(Me,"create",()=>s("DaemonSet"));let $e=a.get("DaemonSet");g($e,"details",l),g($e,"edit",c),g($e,"delete",o);let Y=a.get("classReplicaSet");g(Y,"create",()=>s("ReplicaSet"));let he=a.get("ReplicaSet");g(he,"details",l),g(he,"edit",c),g(he,"delete",o);let Te=a.get("classReplicationController");g(Te,"create",()=>s("ReplicationController"));let dt=a.get("ReplicationController");g(dt,"details",l),g(dt,"edit",c),g(dt,"delete",o);let Lt=a.get("classStatefulSet");g(Lt,"create",()=>s("StatefulSet"));let vt=a.get("StatefulSet");g(vt,"details",l),g(vt,"edit",c),g(vt,"delete",o);let Fn=a.get("classJob");g(Fn,"create",()=>s("Job"));let qe=a.get("Job");va(qe,"conditions",Fe),g(qe,"details",l),g(qe,"edit",c),g(qe,"delete",o);let bn=a.get("classCronJob");g(bn,"create",()=>s("CronJob"));let qa=a.get("CronJob");va(qa,"active",at),va(qa,"nextExecution",Ve),g(qa,"details",l),g(qa,"edit",c),g(qa,"delete",o);let Vr=ce.get("CronJob");if(Vr){let N=Vr.find($=>$.name==="properties").items.find($=>$.name==="nextExecution");N&&(N.invoke=($,ie)=>[bl(ie.spec.schedule)?.isoString]),N=Vr.find($=>$.name==="properties").items.find($=>$.name==="timeLeft"),N&&(N.invoke=($,ie)=>{let ne=bl(ie.spec.schedule);return[`${ne?.timeLeft.days}d${ne?.timeLeft.hours}h${ne?.timeLeft.minutes}m${ne?.timeLeft.seconds}s`]}),N=Vr.find($=>$.name==="history").items.find($=>$.name==="jobs"),N&&(N.invoke=($,ie)=>{let ne=t.files.filter(le=>le.class==="Job");return ne=ne.filter(le=>(le.data.origin.metadata.ownerReferences||[]).some(pt=>pt.name===ie.metadata.name&&pt.kind==="CronJob")),ne=ne.map(le=>le.data.origin),ne})}let Xt=a.get("Node");g(Xt,"details",l),g(Xt,"edit",c),g(Xt,"delete",o);let _n=a.get("V1APIResource");g(_n,"details",l),g(_n,"browse",d);let zn=a.get("Image");g(zn,"details",l),g(zn,"delete",o);let Ua=a.get("classClusterOverview");g(Ua,"search",m);let Wr=a.get("Namespace");g(Wr,"details",l),g(Wr,"edit",c),g(Wr,"delete",o),g(Wr,"search",m);let to=ce.get("Namespace");if(to){let N=(ie,ne,le)=>{let St=ne;ne.includes("+")&&([ne,St]=ne.split("+"));let pt=t.files.filter(Pt=>Pt.data?.origin?.kind===ne&&Pt.data?.origin?.metadata.namespace===ie)?.map(Pt=>Pt.data?.origin);return pt.length===0?(0,D.jsx)(D.Fragment,{}):(0,D.jsxs)(z.Stack,{flexDirection:"row",children:[(0,D.jsx)(z.Typography,{width:"13%",variant:"body2",children:St}),(0,D.jsx)(z.Stack,{flexDirection:"column",children:pt.map((Pt,Jr)=>(0,D.jsx)(z.Typography,{variant:"body2",children:(0,D.jsx)("a",{href:"#",onClick:()=>le(ne,Pt.metadata.name,Pt.metadata.namespace),children:Pt.metadata.name},Jr)}))})]})},$=to?.find(ie=>ie.name==="content")?.items.find(ie=>ie.name==="content");$&&($.invoke=(ie,ne,le)=>["Pod","Deployment","DaemonSet","ReplicaSet","ReplicationController+RepController","StatefulSet","Job","CronJob","PersistentVolumeClaim+PVC","PersistentVolume+PV","ConfigMap","Secret","Service","Endpoints","Ingress","ServiceAccount+SrvAccnt","Role","RoleBinding"].map(St=>N(ne.metadata.name,St,le)))}let es=a.get("ComponentStatus");g(es,"details",l),g(es,"browse",d);let no=N=>{let $=t.files.find(ie=>N===ie.path);if($)return $.data?.origin?.spec?.selector?(0,D.jsx)(z.Stack,{direction:"column",children:Object.keys($.data.origin.spec.selector).map((ie,ne)=>(0,D.jsxs)(z.Typography,{fontSize:12,children:[ie,"=",$?.data.origin.spec.selector[ie]]},ne))}):(0,D.jsx)(D.Fragment,{})},ao=a.get("classService");g(ao,"create",()=>s("Service"));let Ya=a.get("Service");va(Ya,"selector",no),g(Ya,"details",l),g(Ya,"edit",c),g(Ya,"delete",o);let Ct=a.get("classEndpoints");g(Ct,"create",()=>s("Endpoints"));let ts=a.get("Endpoints");g(ts,"details",l),g(ts,"edit",c),g(ts,"delete",o);let ns=N=>{let $=t.files.find(ie=>N===ie.path);if($)return $.data?.origin?.spec?.rules?(0,D.jsx)(z.Stack,{direction:"column",children:$.data.origin.spec.rules.map((ie,ne)=>ie.http.paths.map((le,St)=>(0,D.jsxs)(z.Typography,{fontSize:12,children:["http://",ie.host,le.path,"\xA0\u2192\xA0",le.backend.service.name,":",le.backend.service.port.number]},ne+"-"+St)))}):(0,D.jsx)(D.Fragment,{})},ro=a.get("classIngress");g(ro,"create",()=>s("Ingress"));let Hr=a.get("Ingress");va(Hr,"rules",ns),g(Hr,"details",l),g(Hr,"edit",c),g(Hr,"delete",o);let Fl=a.get("classIngressClass");g(Fl,"create",()=>s("IngressClass"));let Br=a.get("IngressClass");g(Br,"details",l),g(Br,"edit",c),g(Br,"delete",o);let io=ce.get("IngressClass");if(io){let N=io?.find($=>$.name==="properties")?.items.find($=>$.name==="ingresses");N&&(N.invoke=($,ie)=>{let ne=t.files.filter(le=>le.path.startsWith("/network/Ingress/"));return ne=ne.filter(le=>le.data.origin.spec?.ingressClassName===$.metadata?.name||le.data.origin.metadata?.annotations?.["kubernetes.io/ingress.class"]===$.metadata?.name),ne.map(le=>({name:le.data.origin.metadata.name,namespace:le.data.origin.metadata.namespace}))})}let _l=a.get("classNetworkPolicy");g(_l,"create",()=>s("NetworkPolicy"));let as=a.get("NetworkPolicy");g(as,"details",l),g(as,"edit",c),g(as,"delete",o);let zl=a.get("classConfigMap");g(zl,"create",()=>s("ConfigMap"));let pa=a.get("ConfigMap");g(pa,"details",l),g(pa,"edit",c),g(pa,"delete",o);let Ga=a.get("classSecret");g(Ga,"create",()=>s("Secret"));let Ae=a.get("Secret");g(Ae,"details",l),g(Ae,"edit",c),g(Ae,"delete",o);let Ll=a.get("classResourceQuota");g(Ll,"create",()=>s("ResourceQuota"));let $r=a.get("ResourceQuota");g($r,"details",l),g($r,"edit",c),g($r,"delete",o);let so=a.get("classLimitRange");g(so,"create",()=>s("LimitRange"));let qr=a.get("LimitRange");g(qr,"details",l),g(qr,"edit",c),g(qr,"delete",o);let oo=a.get("classHorizontalPodAutoscaler");g(oo,"create",()=>s("HorizontalPodAutoscaler"));let Ur=a.get("HorizontalPodAutoscaler");g(Ur,"details",l),g(Ur,"edit",c),g(Ur,"delete",o);let lo=a.get("classPodDisruptionBudget");g(lo,"create",()=>s("PodDisruptionBudget"));let Yr=a.get("PodDisruptionBudget");g(Yr,"details",l),g(Yr,"edit",c),g(Yr,"delete",o);let co=a.get("classPriorityClass");g(co,"create",()=>s("PriorityClass"));let rs=a.get("PriorityClass");g(rs,"details",l),g(rs,"edit",c),g(rs,"delete",o);let lt=a.get("classRuntimeClass");g(lt,"create",()=>s("RuntimeClass"));let is=a.get("RuntimeClass");g(is,"details",l),g(is,"edit",c),g(is,"delete",o);let Vl=a.get("classLease");g(Vl,"create",()=>s("Lease"));let Ka=a.get("Lease");g(Ka,"details",l),g(Ka,"edit",c),g(Ka,"delete",o);let Wl=a.get("classValidatingWebhookConfiguration");g(Wl,"create",()=>s("ValidatingWebhookConfiguration"));let Vt=a.get("ValidatingWebhookConfiguration");g(Vt,"details",l),g(Vt,"edit",c),g(Vt,"delete",o);let Xn=a.get("classMutatingWebhookConfiguration");g(Xn,"create",()=>s("MutatingWebhookConfiguration"));let wn=a.get("MutatingWebhookConfiguration");g(wn,"details",l),g(wn,"edit",c),g(wn,"delete",o);let uo=a.get("classPersistentVolumeClaim");g(uo,"create",()=>s("PersistentVolumeClaim"));let ss=a.get("PersistentVolumeClaim");g(ss,"details",l),g(ss,"edit",c),g(ss,"delete",o);let mo=ce.get("PersistentVolumeClaim");if(mo){let N=mo.find($=>$.name==="properties").items.find($=>$.name==="pods");N&&(N.invoke=($,ie)=>t.files.filter(pt=>pt.class==="Pod").filter(pt=>pt.data.origin.spec?.volumes?.some(Pt=>Pt.persistentVolumeClaim?.claimName===ie.metadata.name)).map(pt=>pt.data.origin.metadata.name))}let Hl=a.get("classPersistentVolume");g(Hl,"create",()=>s("PersistentVolume"));let os=a.get("PersistentVolume");g(os,"details",l),g(os,"edit",c),g(os,"delete",o);let Bl=a.get("classStorageClass");g(Bl,"create",()=>s("StorageClass"));let Sa=a.get("StorageClass");g(Sa,"details",l),g(Sa,"edit",c),g(Sa,"delete",o);let p=ce.get("StorageClass");if(p){let N=p.find($=>$.name==="properties").items.find($=>$.name==="pvs");N&&(N.invoke=($,ie)=>{let ne=t.files.filter(le=>le.path.startsWith("/storage/PersistentVolume/"));return ne=ne.filter(le=>le.data.origin.spec?.storageClassName===$.metadata.name),ne.map(le=>le.data.origin.metadata.name)}),N=p.find($=>$.name==="properties").items.find($=>$.name==="pvcs"),N&&(N.invoke=($,ie)=>{let ne=t.files.filter(le=>le.path.startsWith("/storage/PersistentVolumeClaim/"));return ne=ne.filter(le=>le.data.origin.spec?.storageClassName===$.metadata.name),ne.map(le=>({name:le.data.origin.metadata.name,namespace:le.data.origin.metadata.namespace}))})}let y=a.get("VolumeAttachment");g(y,"details",l),g(y,"browse",d);let b=a.get("CSIDriver");g(b,"details",l),g(b,"browse",d);let T=ce.get("CSIDriver");if(T){let N=T?.find($=>$.name==="properties")?.items.find($=>$.name==="storageClasses");N&&(N.invoke=($,ie,ne)=>{let le=t.files.filter(St=>St.path.startsWith("/storage/StorageClass/"));return[(0,D.jsxs)(z.Stack,{flexDirection:"row",children:[(0,D.jsx)(z.Typography,{width:"13%",children:"StgClass"}),(0,D.jsx)(z.Stack,{flexDirection:"column",children:le.map((St,pt)=>{if(St.data.origin.provisioner===$.metadata?.name)return(0,D.jsx)("a",{href:"#",onClick:()=>ne("StorageClass",St.data.origin.metadata.name,""),children:St.data.origin.metadata.name},pt)})})]})]})}let L=a.get("CSINode");g(L,"details",l),g(L,"browse",d);let V=a.get("CSIStorageCapacity");g(V,"details",l),g(V,"browse",d);let te=a.get("classServiceAccount");g(te,"create",()=>s("ServiceAccount"));let J=a.get("ServiceAccount");g(J,"details",l),g(J,"edit",c),g(J,"delete",o);let Gr=ce.get("ServiceAccount");if(Gr){let N=Gr.find($=>$.name==="properties").items.find($=>$.name==="tokens");N&&(N.invoke=($,ie)=>t.files.filter(le=>le.data?.origin?.metadata?.annotations&&le.data?.origin?.metadata?.namespace&&le.data?.origin?.metadata?.annotations["kubernetes.io/service-account.name"]==="kwirth-sa"&&le.data?.origin?.metadata?.namespace===ie.metadata.namespace).map(le=>({name:le.data.origin.metadata.name,namespace:le.data.origin.metadata.namespace})))}let ls=a.get("classClusterRole");g(ls,"create",()=>s("ClusterRole"));let Kr=a.get("ClusterRole");g(Kr,"details",l),g(Kr,"edit",c),g(Kr,"delete",o);let $l=a.get("classRole");g($l,"create",()=>s("Role"));let ql=a.get("Role");g(ql,"details",l),g(ql,"edit",c),g(ql,"delete",o);let v1=a.get("classClusterRoleBinding");g(v1,"create",()=>s("ClusterRoleBinding"));let Ul=a.get("ClusterRoleBinding");g(Ul,"details",l),g(Ul,"edit",c),g(Ul,"delete",o);let C1=a.get("classRoleBinding");g(C1,"create",()=>s("RoleBinding"));let Yl=a.get("RoleBinding");g(Yl,"details",l),g(Yl,"edit",c),g(Yl,"delete",o);let S1=a.get("classCustomResourceDefinition");g(S1,"create",()=>s("CustomResourceDefinition"));let Gl=a.get("CustomResourceDefinition");g(Gl,"details",l),g(Gl,"edit",c),g(Gl,"delete",o);let Kl=a.get("crdInstance");g(Kl,"details",l),g(Kl,"edit",c),g(Kl,"delete",o);let Jl=a.get("crdNamespacedInstance");g(Jl,"details",l),g(Jl,"edit",c),g(Jl,"delete",o)};var Ca=I(Rt(),1);u();var fa=I(ht(),1);var m1=I(Jt(),1),ln=I(fe(),1),d1=e=>(0,ln.jsx)(fa.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,ln.jsxs)(fa.MenuList,{dense:!0,sx:{minWidth:140},children:[(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("ubuntu"),children:[(0,ln.jsx)(ac,{size:"18"}),"\xA0Ubuntu"]}),(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("alpine"),children:[(0,ln.jsx)(cd,{size:"18"}),"\xA0Alpine"]}),(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("dnsutils"),children:[(0,ln.jsx)(ud,{size:"18"}),"\xA0DNS Utils"]}),(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected("jubuntu"),children:[(0,ln.jsx)(ac,{size:"18"}),"\xA0jUbuntu"]}),e.customActions&&e.customActions.filter(t=>t.type==="kube").map((t,n)=>(0,ln.jsxs)(fa.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,ln.jsx)(m1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))]})});var x1=I(ht(),1);u();var Xi=I(ht(),1),f1=I(Jt(),1),ji=I(fe(),1),p1=e=>(0,ji.jsx)(Xi.Menu,{anchorEl:e.anchorParent,open:!!e.anchorParent,onClose:e.onClose,children:(0,ji.jsx)(Xi.MenuList,{dense:!0,sx:{minWidth:140},children:e.customActions.filter(t=>t.type==="kwirth").map((t,n)=>(0,ji.jsxs)(Xi.MenuItem,{onClick:()=>e.onWorkSelected(t.name),children:[(0,ji.jsx)(f1.Construction,{sx:{fontSize:"18px"}}),"\xA0",t.name]},n))})});var b1=I(Rt(),1);u();var we=I(ht(),1),$a=I(Mm(),1),Qi=I(Jt(),1),h1=I(je(),1);var ve=I(fe(),1),g1=e=>{if(!(e.channelObject.isFullscreen===!0)||e.channelObject.isDesktop)return null;let[n,a]=(0,h1.useState)(!1),i=e.channelObject.data?.metricsCluster??[],s=i.map(v=>({value:v.cpuUsage})),o=i.map(v=>({value:v.memoryUsage})),l=i.map(v=>({value:v.txmbps+v.rxmbps||0})),c=i.length>0?i[i.length-1]:null,d=c?.cpuUsage??0,m=c?.memoryUsage??0,f=c?.txmbps??0,h=c?.rxmbps??0,k=e.channelObject.clusters??[];return(0,ve.jsxs)(we.AppBar,{position:"sticky",color:"default",elevation:1,sx:{zIndex:1300},children:[(0,ve.jsxs)(we.Toolbar,{sx:{gap:1.5},children:[(0,ve.jsx)(we.IconButton,{size:"small",onClick:()=>a(!0),children:(0,ve.jsx)(Qi.Menu,{fontSize:"small"})}),(0,ve.jsxs)(we.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,ve.jsx)(Qi.Search,{}),(0,ve.jsx)(we.Typography,{variant:"h6",sx:{fontWeight:700,color:"#f5820a"},children:"Kwirth"}),(0,ve.jsxs)(we.Box,{sx:{display:"flex",alignItems:"baseline",gap:1},children:[(0,ve.jsx)(we.Typography,{variant:"h6",sx:{fontWeight:700},children:"Magnify"}),e.channelObject.clusterName&&(0,ve.jsxs)(we.Typography,{variant:"subtitle1",sx:{fontWeight:600,color:"text.secondary"},children:["\xB7 ",e.channelObject.clusterName]})]})]}),(0,ve.jsx)(we.Box,{sx:{flex:1}}),(0,ve.jsx)(we.Tooltip,{title:`${(d||0).toFixed(2)}%`,children:(0,ve.jsxs)(we.Stack,{direction:"column",alignItems:"center",mr:"2px",children:[(0,ve.jsx)(we.Typography,{fontSize:8,mb:-1,children:"CPU"}),(0,ve.jsx)($a.AreaChart,{width:120,height:20,data:s,margin:{top:0,right:0,bottom:0,left:0},children:(0,ve.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#8884d8",strokeWidth:2,dot:!1,fill:"#bbbbdd"})})]})}),(0,ve.jsx)(we.Tooltip,{title:`${(m||0).toFixed(2)}%`,children:(0,ve.jsxs)(we.Stack,{direction:"column",alignItems:"center",mr:"2px",children:[(0,ve.jsx)(we.Typography,{fontSize:8,mb:-1,children:"Mem"}),(0,ve.jsx)($a.AreaChart,{width:120,height:20,data:o,margin:{top:0,right:0,bottom:0,left:0},children:(0,ve.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#d88488",strokeWidth:2,dot:!1,fill:"#ddbbbb"})})]})}),(0,ve.jsx)(we.Tooltip,{title:`${(f||0).toFixed(2)}Mbps / ${(h||0).toFixed(2)}Mbps`,children:(0,ve.jsxs)(we.Stack,{direction:"column",alignItems:"center",children:[(0,ve.jsx)(we.Typography,{fontSize:8,mb:-1,children:"Net"}),(0,ve.jsx)($a.AreaChart,{width:120,height:20,data:l,margin:{top:0,right:0,bottom:0,left:0},children:(0,ve.jsx)($a.Area,{type:"monotone",dataKey:"value",stroke:"#88d884",strokeWidth:2,dot:!1,fill:"#bbddbb"})})]})}),e.channelObject.clusterUrl&&(0,ve.jsx)(we.Typography,{variant:"caption",color:"text.secondary",sx:{ml:1},children:e.channelObject.clusterUrl}),(0,ve.jsx)(we.Tooltip,{title:"Exit fullscreen",children:(0,ve.jsx)(we.IconButton,{size:"small",onClick:()=>e.channelObject.exitFullscreen?.(),children:(0,ve.jsx)(Qi.FullscreenExit,{fontSize:"small"})})})]}),(0,ve.jsx)(we.Drawer,{anchor:"left",open:n,onClose:()=>a(!1),children:(0,ve.jsxs)(we.Box,{sx:{width:250},children:[(0,ve.jsx)(we.Typography,{variant:"subtitle1",sx:{fontWeight:700,px:2,py:1.5},children:"Clusters"}),(0,ve.jsx)(we.Divider,{}),(0,ve.jsxs)(we.List,{dense:!0,children:[k.map(v=>{let E=v.home?!0:!!v.reachable;return(0,ve.jsxs)(we.ListItemButton,{disabled:!E,selected:v.name===e.channelObject.clusterName,onClick:()=>{e.channelObject.switchCluster?.(v.name),a(!1)},children:[(0,ve.jsx)(we.ListItemIcon,{sx:{minWidth:28},children:(0,ve.jsx)(we.Box,{sx:{width:12,height:12,borderRadius:"50%",bgcolor:$g(v.name).dot,flexShrink:0}})}),(0,ve.jsx)(we.ListItemText,{primary:v.name,secondary:v.home?"home":void 0})]},v.name)}),k.length===0&&(0,ve.jsx)(we.ListItemText,{primary:"No clusters",sx:{px:2,color:"text.secondary"}})]})]})})]})};var ee=I(fe(),1),zM=e=>{let t=(0,Qe.useRef)(null);return e.title?(0,ee.jsxs)(Le.Dialog,{open:!0,onClose:()=>{e.onClose(),e.onResult?.(void 0)},children:[(0,ee.jsx)(Le.DialogTitle,{children:e.title}),(0,ee.jsx)(Le.DialogContent,{children:(0,ee.jsxs)(Le.Stack,{sx:{mt:2},direction:"column",children:[typeof e.message=="string"?(0,ee.jsx)(Le.Typography,{component:"div",sx:{ml:2},children:(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:e.message}})}):e.message,(0,ee.jsx)(Le.TextField,{inputRef:t,sx:{width:e.width},defaultValue:e.default},e.message?.toString())]})}),(0,ee.jsxs)(Le.DialogActions,{children:[(0,ee.jsx)(Le.Button,{onClick:()=>{e.onClose(),e.onResult?.(t.current?.value)},children:"ok"}),(0,ee.jsx)(Le.Button,{onClick:()=>e.onClose(),children:"cancel"})]})]}):null},Xs=xl(),LM={ContentDetails:(0,ee.jsx)(Xm,{}),ArtifactSearch:(0,ee.jsx)(xn.Search,{}),LogSearchPanel:(0,ee.jsx)(xn.Search,{}),ContentEdit:(0,ee.jsx)(xn.Edit,{}),ContentBrowse:(0,ee.jsx)(Vn,{})},w1=e=>{let t=(0,x1.useTheme)(),n=e.channelObject.data,a={create:!1,delete:!1,download:!1,copy:!1,move:!1,rename:!1,upload:!1},[r,i]=(0,Qe.useState)(0),s=(0,Qe.useRef)(null),o=(0,Qe.useRef)(null),l=(0,Qe.useRef)(null),[c,d]=(0,Qe.useState)(0),[m,f]=(0,Qe.useState)((0,ee.jsx)(ee.Fragment,{})),[h,k]=(0,Qe.useState)(),[v,E]=(0,Qe.useState)(),[q,me]=(0,Qe.useState)(),[pe,H]=(0,Qe.useState)(),[Q,W]=(0,Qe.useState)(),[de,Oe]=(0,Qe.useState)(),[Se,_]=(0,Qe.useState)(),[B,oe]=(0,Qe.useState)(),[Z,Fe]=(0,Qe.useState)(""),[Ve,at]=(0,Qe.useState)(!1),[Mt,re]=(0,Qe.useState)(void 0),[,Me]=(0,Qe.useState)(0),$e=(p,y)=>{let b=Te.find(L=>L.key===p);if(!b)return!0;let T=!0;switch(p){case"Node":T=b.selected.includes("all")||b.selected.some(L=>y.data?.origin?.spec?.nodeName?.includes(L));break;case"Namespace":T=b.selected.includes("all")||b.selected.some(L=>y.data?.origin?.metadata?.namespace===L);break;case"controller":T=b.selected.includes("all")||b.selected.some(L=>y.data?.origin?.metadata?.ownerReferences?.[0]?.kind===L);break}return T},Y=p=>{let y=Te.find(b=>b.key===p);return y?!(y.selected.length===1&&y.selected[0]==="all"):!1},he=(p,y,b)=>{let T=Te.find(L=>L.key===p);T&&(y==="all"?b=["all"]:y!=="all"&&b.length===2&&b.includes("all")?b=b.filter(L=>L!=="all"):b.length===0&&(b=["all"]),T.selected=b,n.selectedCategories||(n.selectedCategories={}),n.selectedCategories[p]=b,dt([...Te]))},[Te,dt]=(0,Qe.useState)([{key:"Node",text:"Node",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Node??["all"],onCategoryValuesChange:he,onCategoryFilter:$e,isFilterActive:Y},{key:"Namespace",text:"Namespace",all:[{key:"all",text:"All..."},{key:"-"}],selected:n.selectedCategories?.Namespace??["all"],onCategoryValuesChange:he,onCategoryFilter:$e,isFilterActive:Y},{key:"controller",text:"Controller",all:[{key:"all",text:"All..."},{key:"-"},{key:"ReplicaSet"},{key:"DaemonSet"},{key:"StatefulSet"},{key:"ReplicationController"},{key:"Job"}],selected:n.selectedCategories?.controller??["all"],onCategoryValuesChange:he,onCategoryFilter:$e,isFilterActive:Y}]),Lt=p=>{switch(p){case"exit":return(0,ee.jsx)(xn.ExitToApp,{sx:{color:"gray"}});case"notifications":return e.channelObject.notifications.length>0?(0,ee.jsx)(xn.NotificationsActive,{sx:{color:"success.main"}}):(0,ee.jsx)(xn.Notifications,{sx:{color:"text.disabled"}});case"cloud":return e.channelObject.webSocket?.readyState===1?(0,ee.jsx)(Le.Tooltip,{title:(0,ee.jsxs)("div",{style:{textAlign:"center"},children:["Communications to",(0,ee.jsx)("br",{})," Kwirth backend are ok"]}),children:(0,ee.jsx)(xn.CloudQueue,{sx:{color:"success.main"}})}):(0,ee.jsx)(Le.Tooltip,{title:(0,ee.jsxs)("div",{style:{textAlign:"center"},children:["Communications to Kwirth backend",(0,ee.jsx)("br",{}),"have been interrupted.",(0,ee.jsx)("br",{}),"You need to exit cluster and reenter."]}),children:(0,ee.jsx)(jm,{sx:{color:"error.main",animation:"blink 1.5s infinite","@keyframes blink":{"0%":{opacity:1},"50%":{opacity:.1},"100%":{opacity:1}}}})})}},vt=(p,y)=>{switch(p){case"exit":f((0,Tt.MsgBoxYesNo)("Exit cluster","Are you sure you want to leave this cluster and go back to initial cluster selection?",f,b=>{b===Tt.MsgBoxButtons.Yes&&e.channelObject.exit?.()}));break;case"notifications":re(y);break;case"cloud":e.channelObject.webSocket?.readyState!==1&&f((0,Tt.MsgBoxYesNo)("Reconnect Kwirth","Kwirth has been disconnected. Do you want to reconnect?",f,b=>{}));break}},Fn=[{name:"cloud",onClick:(p,y)=>vt(p,y),onDraw:p=>Lt(p)},{name:"notifications",onClick:(p,y)=>vt(p,y),onDraw:p=>Lt(p)},{name:"exit",onClick:(p,y)=>vt(p,y),onDraw:p=>Lt(p)}];(0,Qe.useLayoutEffect)(()=>{let p=new ResizeObserver(()=>{requestAnimationFrame(()=>{if(!s.current)return;let{top:y}=s.current.getBoundingClientRect();i(window.innerHeight-y)})});return p.observe(document.body),()=>p.disconnect()},[]),(0,Qe.useLayoutEffect)(()=>{l.current&&d(l.current.getBoundingClientRect().top)},[n.started]),(0,Qe.useEffect)(()=>{e.channelObject.setPalette?.(n.userPreferences?.palette),n.files.some(b=>b.path==="/overview")||n.files.push(...md),u1(t,n,e.channelObject,A,Ka,rs,Wr,es,Ua,no,ao,ts),Fl(),io(),Hr(),_l(),zl(),n.refreshUsage=()=>Me(b=>b+1);let p=Te.find(b=>b.key==="Namespace");if(p)for(let b of n.files.filter(T=>T.data?.origin?.kind==="Namespace"))p.all.some(T=>T.key===b.name)||p.all.push({key:b.name,text:b.name});let y=Te.find(b=>b.key==="Node");if(y)for(let b of n.files.filter(T=>T.data?.origin?.kind==="Node"))y.all.some(T=>T.key===b.name)||y.all.push({key:b.name,text:b.name});return n.updateCategoryValues=(b,T,L)=>{let V=Te.find(te=>te.key===b);V&&(T==="DELETED"?V.all=V.all.filter(te=>te.key!==L):V.all.some(te=>te.key===L)||V.all.push({key:L}))},()=>{_(void 0)}},[]);let qe=(p,y,b)=>{_(void 0),b==="*all"?Ct(p,[y],mt.EInstanceConfigView.POD,void 0,void 0):Ct(p,[y],mt.EInstanceConfigView.CONTAINER,void 0,b)},bn=p=>{if(p.onReady==="shell"&&!so())return;let y=Xs.load(p.podYaml);lt("apply",[p.podYaml]);let b=p.url;if(p.onReady==="http"||p.onReady==="https"){p.forward&&(b="http://localhost:3000/kwirth/port-forward/pod/default/galaga/80");let T=window.setInterval(async()=>{try{let L=await fetch(b);L.status>=200&&L.status<400&&(clearInterval(T),f((0,ee.jsx)(ee.Fragment,{})))}catch(L){console.log(L)}},1e3);f((0,Tt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for... ${b})...`,f,L=>{L===Tt.MsgBoxButtons.Cancel&&clearInterval(T)}))}else if(p.onReady==="shell"){let T=window.setInterval(async()=>{try{let L=n.files.find(V=>V.class==="Pod"&&V.data.origin.metadata.namespace===(y.metadata.namespace||"default")&&V.data.origin.metadata.name===y.metadata.name);L&&L.data.origin.status.phase==="Running"&&(clearInterval(T),f((0,ee.jsx)(ee.Fragment,{})),Ct("ops",[L],mt.EInstanceConfigView.CONTAINER,void 0,L.data.origin.spec.containers[0].name))}catch(L){console.log(L)}},1e3);f((0,Tt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the ${p.name} work to start (waiting for shell)...`,f,L=>{L===Tt.MsgBoxButtons.Cancel&&clearInterval(T)}))}},qa=p=>{W(void 0);let y=n.userPreferences.customActions.find(b=>b.name===p);y?bn(y):lt("Pod",["work",p])},Vr=p=>{let y=n.userPreferences.customActions.find(b=>b.name===p);y&&bn(y)},Xt=p=>{n.windows.forEach(b=>b.atFront=!1);let y=n.windows.find(b=>b.id===p);if(y){y.visible=!0,y.atFront=!0,Me(b=>b+1);return}},_n=p=>{n.windows.forEach(y=>y.atFront=!1),n.windows.push(p),Me(y=>y+1)},zn=(p,y,b,T,L,V)=>{let te=n.windows.find(J=>J.id===p);te&&(te.isMaximized=y,te.x=b,te.y=T,te.width=L,te.height=V)},Ua=(p,y)=>{let b=n.files.filter(V=>p.includes(V.path)),T=ce.get(b[0].data.origin.kind);b[0].path.startsWith("/custom/")&&!b[0].path.startsWith("/custom/CustomResourceDefinition/")&&(T=ce.get("#crdInstance#"));let L=n.windows.find(V=>V.selectedFiles.find(te=>te.path===b[0].path)&&V.class==="ContentDetails");if(L)Xt(L.id);else{let V=A.get(b[0].data.origin.kind),te={id:"details-"+b[0].path+"-"+rt(),class:"ContentDetails",visible:!0,atTop:!1,atFront:!0,title:b[0].data.origin.metadata?.name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{source:b[0],path:b[0].path,sections:T,actions:V&&V.leftItems?V.leftItems:[],onApply:mo,onAction:Hl,onLink:Ka,containerSelectionOptions:new Map([["log",2],["metrics",2],["fileman",2],["trivy",0],["topology",0],["ops",1],["evict",0],["cordon",0],["uncordon",0],["drain",0],["scale",0],["restart",0],["trigger",0],["suspend",0],["resume",0]])},selectedFiles:[b[0]],onWindowChange:zn,onMinimize:Xn,onTop:wn,onClose:Vt};_n(te)}b[0].data.origin.metadata&&(b[0].data.events&&delete b[0].data.events,lt("events",["object",b[0].data.origin.metadata.namespace,b[0].data.origin.kind,b[0].data.origin.metadata.name]))},Wr=p=>{let y=(Ee.get(p)||`apiVersion: v1
804
+ Kind: ${p}
805
+ ejemplo: true`).trim(),b="create-"+p+"-"+rt(),T={id:b,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+p,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(L,V)=>{lt("apply",[L]),Vt(b)},code:y,oldCode:void 0},onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt,selectedFiles:[]};_n(T)},to=()=>{let p="add-resources-"+rt();_n({id:p,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Add resources",isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:T=>{let L=[];try{Xs.loadAll(T,V=>{V&&L.push(Xs.dump(V,{indent:2}))})}catch(V){e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.ERROR,"Invalid YAML: "+(V?.message??V));return}if(L.length===0){e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.WARNING,"No resources found in the provided YAML");return}lt("apply",L),Vt(p)},code:`# Paste one or more Kubernetes resources here.
806
+ # Separate multiple resources with a line containing only:
807
+ # ---
808
+ `,oldCode:void 0},onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt,selectedFiles:[]})},es=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length>0&&(y[0].class==="Image"?f((0,Tt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,ee.jsxs)(Le.Box,{children:["Are you sure you want to delete image ",(0,ee.jsx)("b",{children:y[0].displayName}),p.length>1?` (and other ${p.length-1} items)`:""," (take into account that removing images is an asynchronous process (a DaemonSet in fact) and may take up to 30 seconds)?"]}),f,b=>{b===Tt.MsgBoxButtons.Yes&&lt("Image",["delete",...y.map(T=>T.data.origin.metadata.name)])})):f((0,Tt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,ee.jsxs)(Le.Box,{children:["Are you sure you want to delete ",y[0].data.origin.kind,(0,ee.jsxs)("b",{children:[" ",y[0].displayName]}),p.length>1?` (and other ${p.length-1} items)`:"","?"]}),f,b=>{b===Tt.MsgBoxButtons.Yes&&lt("delete",y.map(T=>Xs.dump(T.data.origin,{indent:2})))})))},no=p=>Ya(p,!0),ao=p=>Ya(p,!1),Ya=(p,y)=>{let b=n.files.filter(V=>p.includes(V.path)),T=(y?"edit-":"browse-")+b[0].path+"-"+rt(),L={id:T,class:y?"ContentEdit":"ContentBrowse",visible:!0,atTop:!1,atFront:!0,title:(y?"Edit ":"Browse ")+b[0].name,isMaximized:!1,x:100,y:50,width:800,height:600,data:{allowEdit:y,onOk:(V,te)=>{lt("apply",[V]),Vt(T)},isInitialized:!1,code:void 0,oldCode:void 0},selectedFiles:[b[0]],onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt};_n(L)},Ct=(p,y,b,T,L)=>{let V=800,te=600;p==="trivy"&&(V=window.innerWidth*.9,te=window.innerHeight*.9),p==="pinocchio"&&(V=window.innerWidth*.9,te=window.innerHeight*.8),p==="topology"&&(V=window.innerWidth*.9,te=window.innerHeight*.9);let J={id:"external-"+p+"-"+rt(),class:"ContentExternal",visible:!0,atTop:!1,atFront:!0,title:y.length>0?y[0].data.origin.metadata.name+(L||""):p==="pinocchio"?"Pinocchio":p==="topology"?"Topology":p.charAt(0).toUpperCase()+p.slice(1),isMaximized:!1,x:100,y:50,width:V,height:te,data:{isInitialized:!1,isDesktop:e.channelObject.isDesktop,channelObject:e.channelObject,settings:n.userPreferences,channelId:p,contentView:b,frontChannels:e.channelObject.frontChannels,onNotify:os,onRefresh:Wl,onOpenExternal:Ct,formConfig:void 0,options:p==="ops"||p==="pinocchio"?{autostart:!0,pauseable:!1,stoppable:!1,configurable:!1,data:T}:{autostart:!0,pauseable:!0,stoppable:!0,configurable:p!=="fileman",data:T}},selectedFiles:y,container:L,onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt};_n(J)},ts=p=>{let y=n.files.filter(V=>p.includes(V.path)),b=[],T;p[0]==="/cluster/overview"?(T=":cluster:",b=n.files):(T=y[0].data.origin.metadata.name,b=n.files.filter(V=>V.data?.origin?.metadata.namespace===y[0].data.origin.metadata.name));let L={id:"search-"+T+"-"+rt(),class:"ArtifactSearch",visible:!0,atTop:!1,atFront:!0,title:"Search...",isMaximized:!1,x:100,y:50,width:800,height:600,data:{scope:T,selectedFiles:b,onLink:Ka,searchText:"",includeStatus:!1,merge:!0,matchCase:!1},selectedFiles:[y[0]],onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt};_n(L)},ns=(p,y,b)=>{n.logSearchResults=[],n.logSearchDone=!0;let T={id:"logsearch-"+rt(),class:"LogSearchPanel",visible:!0,atTop:!1,atFront:!0,title:"Log Search",isMaximized:!1,x:120,y:60,width:700,height:500,data:{namespaces:p,pods:y,scopeLabel:b??"Cluster",onOpenLog:(L,V,te)=>{let J={name:V,isDirectory:!1,path:`/workload/Pod/${L}/${V}`,data:{origin:{metadata:{name:V,namespace:L},kind:"Pod"}}};Ct("log",[J],mt.EInstanceConfigView.CONTAINER,void 0,te)},clusterName:e.channelObject.clusterName,accessString:e.channelObject.accessString,instanceId:e.channelObject.instanceId},selectedFiles:[],onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt};_n(T)};{let p=new Set(["search","logsearch","add"]),y=A.get("classClusterOverview"),b=Array.from(e.channelObject.frontChannels?.keys()??[]).filter(T=>T==="magnify"?!1:e.channelObject.backChannels?.find(V=>V.id===T)?.cluster===!0);y.leftItems=y.leftItems.filter(T=>!T.name||p.has(T.name)||b.includes(T.name));for(let T of b){if(!y.leftItems.some(V=>V.name===T)){let V=e.channelObject.frontChannels.get(T),te=(0,Ca.createChannelInstance)(V);y.leftItems.push({name:T,icon:(0,Ca.getChannelIconOf)(te??void 0,T),text:T.charAt(0).toUpperCase()+T.slice(1),permission:!0})}let L=y.leftItems.find(V=>V.name===T);L.onClick=V=>Ct(T,[],mt.EInstanceConfigView.CLUSTER,void 0,void 0)}}let ro=A.get("classOverview");g(ro,"kwirthworks",(p,y)=>Oe(y),()=>!0,()=>n.userPreferences?.customActions&&n.userPreferences.customActions.filter(p=>p.type==="kwirth").length>0),g(ro,"kubeworks",(p,y)=>W(y)),g(A.get("classClusterOverview"),"logsearch",()=>ns(void 0,void 0,"Cluster")),g(A.get("classClusterOverview"),"add",()=>to());let Hr=()=>{let p=A.get("classClusterOverview"),y=A.get("Node");g(y,"shell",qr,()=>e.channelObject.frontChannels?.has("ops")??!1),g(y,"cordon",oo),g(y,"uncordon",Ur),g(y,"drain",$r);let b=A.get("Namespace");g(b,"log",L=>{let V=n.files.filter(te=>L.includes(te.path));Ct("log",V,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("log")??!1),g(b,"metrics",L=>{let V=n.files.filter(te=>L.includes(te.path));Ct("metrics",V,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)}),g(b,"fileman",L=>{let V=n.files.filter(te=>L.includes(te.path));Ct("fileman",V,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("fileman")??!1),g(b,"trivy",L=>{let V=n.files.filter(te=>L.includes(te.path));Ct("trivy",V,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("trivy")??!1),g(b,"topology",L=>{let V=n.files.filter(te=>L.includes(te.path));Ct("topology",V,mt.EInstanceConfigView.NAMESPACE,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),g(b,"logsearch",L=>{let te=n.files.filter(J=>L.includes(J.path))[0]?.data?.origin?.metadata?.name;te&&ns([te],void 0,`Namespace: ${te}`)});let T=A.get("classNamespace");g(T,"create",L=>{H(()=>V=>{if(V){let te=`
809
+ apiVersion: 'v1'
810
+ kind: 'Namespace'
811
+ metadata:
812
+ name: ${V}
813
+ `;lt("create",[te])}}),E("Enter namespace name"),k("Create namespace")})},Fl=()=>{let p=(T,L,V)=>{let te=n.files.filter(J=>L.includes(J.path));te.length>1?Ct(T,te,mt.EInstanceConfigView.POD,void 0,void 0):(Fe(T),oe(te[0]),at(!0),_(V))},y=(T,L,V)=>{let te=n.files.filter(J=>L.includes(J.path));Fe(T),oe(te[0]),at(!1),_(V)},b=A.get("Pod");g(b,"log",(T,L)=>p("log",T,L),()=>e.channelObject.frontChannels?.has("log")??!1),g(b,"metrics",(T,L)=>p("metrics",T,L)),g(b,"ops",(T,L)=>y("ops",T,L),()=>e.channelObject.frontChannels?.has("ops")??!1),g(b,"fileman",(T,L)=>p("fileman",T,L),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(b,"trivy",(T,L)=>p("trivy",T,L),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(b,"topology",T=>{let L=n.files.filter(V=>T.includes(V.path));Ct("topology",L,mt.EInstanceConfigView.POD,void 0,void 0)},()=>e.channelObject.frontChannels?.has("topology")??!1),g(b,"evict",Br),g(b,"logsearch",T=>{let V=n.files.filter(te=>T.includes(te.path)).map(te=>`${te.data?.origin?.metadata?.namespace}/${te.data?.origin?.metadata?.name}`);ns(void 0,V,`Pods (${V.length})`)})},Br=p=>{let y=n.files.filter(b=>p.includes(b.path));f((0,Tt.MsgBoxYesNo)("Delete "+y[0].data.origin.kind,(0,ee.jsxs)(Le.Box,{children:["Are you sure you want to evict ",y[0].data.origin.kind," ",(0,ee.jsx)("b",{children:y[0].data.origin.metadata.name}),"?"]}),f,b=>{b===Tt.MsgBoxButtons.Yes&&y.map(T=>lt("Pod",["evict",T.data.origin.metadata.namespace,T.data.origin.metadata.name]))}))},io=()=>{let p=A.get("Deployment");va(p,"status",as),g(p,"scale",Ga),g(p,"restart",pa),g(p,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(p,"metrics",J=>Ae(J,"metrics")),g(p,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(p,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(p,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=A.get("DaemonSet");g(y,"restart",pa),g(y,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(y,"metrics",J=>Ae(J,"metrics")),g(y,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=A.get("ReplicaSet");g(b,"scale",Ga),g(b,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(b,"metrics",J=>Ae(J,"metrics")),g(b,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(b,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(b,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let T=A.get("ReplicationController");g(T,"restart",pa),g(T,"scale",Ga),g(T,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(T,"metrics",J=>Ae(J,"metrics")),g(T,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(T,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(T,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let L=A.get("StatefulSet");g(L,"scale",Ga),g(L,"restart",pa),g(L,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(L,"metrics",J=>Ae(J,"metrics")),g(L,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(L,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(L,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let V=A.get("Job");g(V,"log",J=>Ae(J,"log"),()=>e.channelObject.frontChannels?.has("log")??!1),g(V,"metrics",J=>Ae(J,"metrics")),g(V,"fileman",J=>Ae(J,"fileman"),()=>e.channelObject.frontChannels?.has("fileman")??!1),g(V,"trivy",J=>Ae(J,"trivy"),()=>e.channelObject.frontChannels?.has("trivy")??!1),g(V,"topology",J=>Ae(J,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let te=A.get("CronJob");g(te,"trigger",lo),g(te,"suspend",Yr),g(te,"resume",co)},_l=()=>{let p=A.get("Service");g(p,"topology",T=>Ae(T,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let y=A.get("Ingress");g(y,"topology",T=>Ae(T,"topology"),()=>e.channelObject.frontChannels?.has("topology")??!1);let b=A.get("IngressClass");g(b,"default",Ll)},as=p=>{let y=n.files.find(T=>p===T.path);if(!y||!y.data?.origin?.status)return(0,ee.jsx)(ee.Fragment,{});let b="Stalled";return y.data.origin?.status?.conditions&&y.data.origin.status.conditions.length>0&&(y.data.origin.status.conditions.some(T=>T.type+T.status==="AvailableTrue")&&y.data.origin.status.conditions.some(T=>T.type+T.status==="ProgressingTrue")?b="Running":y.data.origin.status.conditions.some(T=>T.type+T.status==="AvailableFalse")&&y.data.origin.status.conditions.some(T=>T.type+T.status==="ProgressingTrue")&&(b="Scaling")),(0,ee.jsx)(Le.Typography,{color:b==="Running"?"green":b==="Scaling"?"orange":"red",variant:"body2",children:b})},zl=()=>{let p=(b,T)=>{let L=n.files.filter(V=>b.includes(V.path));if(L.length>=1){let V=Hg(L[0].data.origin),te="create-"+L[0].data.origin.spec.names.kind+"-"+rt(),J={id:te,class:"ContentEdit",visible:!0,atTop:!1,atFront:!0,title:"Create "+L[0].data.origin.spec.names.kind,isMaximized:!1,x:100,y:50,width:800,height:600,data:{isInitialized:!1,allowEdit:!0,onOk:(Gr,ls)=>{lt("apply",[Gr]),Vt(te)},code:V,oldCode:void 0},onWindowChange:zn,onTop:wn,onMinimize:Xn,onClose:Vt,selectedFiles:[]};_n(J)}},y=A.get("CustomResourceDefinition");g(y,"instantiate",p)},pa=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&lt("Controller",["restart",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Ga=p=>{let y=n.files.filter(b=>p.includes(b.path));y.length===1&&(H(()=>b=>{b&&lt("Controller",["scale",y[0].data.origin.kind,y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name,b])}),E("Enter scaling value"),me(y[0].data.origin.spec.replicas),k("Scale "+y[0].data.origin.kind))},Ae=(p,y)=>{let b=n.files.filter(T=>p.includes(T.path));Ct(y,b,mt.EInstanceConfigView.GROUP,void 0,void 0)},Ll=p=>{n.files.filter(b=>p.includes(b.path)).map(b=>lt("IngressClass",["default",b.data.origin.metadata.name]))},$r=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("Node",["drain",y[0].data.origin.metadata.name])},so=()=>e.channelObject.frontChannels?.has("ops")?!0:(e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.WARNING,"A shell needs the Ops plugin: install it from \u2630 \u2192 Manage extensions \u2192 Plugins"),!1),qr=p=>{if(!so())return;let y=n.files.filter(V=>p.includes(V.path)),b="kwirth-node-shell-"+y[0].name,T="default";lt("Node",["shell",y[0].data.origin.metadata.name,T,b]);let L=window.setInterval(async()=>{try{let V=n.files.find(te=>te.class==="Pod"&&te.data.origin.metadata.namespace===T&&te.data.origin.metadata.name===b);V&&V.data.origin.status.phase==="Running"&&(clearInterval(L),f((0,ee.jsx)(ee.Fragment,{})),Ct("ops",[V],mt.EInstanceConfigView.CONTAINER,{nodeShell:!0},V.data.origin.spec.containers[0].name))}catch(V){console.log(V)}},1e3);f((0,Tt.MsgBoxWaitCancel)("Launch Work",`We are waiting for the node shell to start (pod '${b}' on namespace '${T}' is starting)...`,f,V=>{V===Tt.MsgBoxButtons.Cancel&&clearInterval(L)}))},oo=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("Node",["cordon",y[0].data.origin.metadata.name])},Ur=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("Node",["uncordon",y[0].data.origin.metadata.name])},lo=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("CronJob",["trigger",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},Yr=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("CronJob",["suspend",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},co=p=>{let y=n.files.filter(b=>p.includes(b.path));lt("CronJob",["resume",y[0].data.origin.metadata.namespace,y[0].data.origin.metadata.name])},rs=p=>{o.current?.changeFolder(p)},lt=(p,y)=>{if(!e.channelObject.webSocket)return;let b={flow:mt.EInstanceMessageFlow.REQUEST,action:mt.EInstanceMessageAction.COMMAND,channel:e.channelObject.channelId,type:mt.EInstanceMessageType.DATA,accessKey:e.channelObject.accessString,instance:e.channelObject.instanceId,id:rt(),command:p,namespace:"",group:"",pod:"",container:"",params:y,msgtype:"magnifymessage"},T=JSON.stringify(b);e.channelObject.webSocket.send(T)},is=(p,y)=>{e.channelObject.notify?.(e.channelObject.channelId,Qs.ENotifyLevel.ERROR,p.message)},Vl=p=>{n.currentPath=p},Ka=(p,y,b)=>{let T=be(p,y,b);if(T.startsWith("//")){if(n.files.find(V=>V.class==="crdInstance"&&V.data.origin.metadata.name===y&&V.data.origin.kind===p)){let V=`/custom/${p}/`+y+(b?":"+b:"");Ua([V],void 0);return}}else{let L=n.files.find(V=>V.path===T);if(L){Ua([L.path],void 0);return}else if(p==="Image"){let V="docker.io/library/"+y;y.includes("/")&&(V="docker.io/"+y);let te=n.files.find(J=>J.class==="Image"&&J.data.origin?.names?.includes(V));if(te){Ua([te.path],void 0);return}if(y.includes("@sha256:")){let J=y.indexOf("@sha256:"),Gr=y.substring(J).toLowerCase(),ls=n.files.find(Kr=>Kr.class==="Image"&&Kr.data.origin?.names?.some($l=>$l.toLowerCase().endsWith(Gr)));if(ls){Ua([ls.path],void 0);return}}}}f((0,Tt.MsgBoxOkError)("Object details",(0,ee.jsxs)(Le.Box,{children:["Image '",(0,ee.jsx)("b",{children:y}),"' has not been found on artifacts database. Maybe it exist but is stored with any kind of prefix"]}),f))},Wl=()=>Me(p=>p+1),Vt=p=>{let y=n.windows.findIndex(T=>T.id===p);if(y<0)return;n.windows.splice(y,1);let b=[...n.windows].reverse().find(T=>T.visible);b&&Xt(b.id),Me(T=>T+1)},Xn=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible=!1,y.atFront=!1,uo(),Me(b=>b+1))},wn=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.atTop=!y.atTop,Me(b=>b+1))},uo=()=>{let p;for(let y of n.windows)y.visible&&!y.atFront&&!y.atTop&&(p=y);p&&Xt(p.id)},ss=p=>{let y=n.windows.find(b=>b.id===p);y&&(y.visible?y.atFront?(y.visible=!1,y.atFront=!1,uo()):Xt(y.id):(y.visible=!0,Xt(y.id)),Me(b=>b+1))},mo=(p,y)=>{lt("apply",[Xs.dump(y,{indent:2})])},Hl=(p,y,b)=>{let T=n.files.find(L=>L.path===y);if(T){switch(p){case"delete":es([y]);break;case"edit":no([y]);break;case"browse":ao([y]);break;case"ops":Ct("ops",[T],mt.EInstanceConfigView.CONTAINER,void 0,b);break;case"log":case"metrics":case"fileman":case"trivy":b==="*all"?Ct(p,[T],mt.EInstanceConfigView.POD,void 0,void 0):Ct(p,[T],mt.EInstanceConfigView.CONTAINER,void 0,b);break;case"evict":Br([y]);break;case"cordon":oo([y]);break;case"shell":qr([y]);break;case"uncordon":Ur([y]);break;case"drain":$r([y]);break;case"scale":Ga([y]);break;case"restart":pa([y]);break;case"trigger":lo([y]);break;case"suspend":Yr([y]);break;case"resume":co([y]);break}Me(L=>L+1)}},os=(p,y,b)=>{b="Channel message: "+b},Bl=p=>{let y=e.channelObject.frontChannels.get(p.data.channelId);return y?(0,Ca.getChannelIconSafe)(y,p.data.channelId):(console.log("Inexistent channel:",p.data.channelId),(0,ee.jsx)(ee.Fragment,{}))},Sa=(p,y,b)=>{if(p.visible&&p.atFront===y&&p.atTop===b)switch(p.class){case"ContentDetails":return(0,ee.jsx)(mx,{onFocus:()=>Xt(p.id),...p},p.id);case"ArtifactSearch":return(0,ee.jsx)(Vx,{onFocus:()=>Xt(p.id),...p},p.id);case"LogSearchPanel":return(0,ee.jsx)(Wx,{onFocus:()=>Xt(p.id),...p,channelObject:e.channelObject,magnifyData:n},p.id);case"ContentBrowse":case"ContentEdit":return(0,ee.jsx)(Fx,{onFocus:()=>Xt(p.id),...p},p.id);case"ContentExternal":return(0,ee.jsx)(Ug,{onFocus:()=>Xt(p.id),...p},p.id);default:console.error("Invalid window class:",p.class)}};return n.started?(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(g1,{channelObject:e.channelObject}),n.started&&(0,ee.jsxs)(Le.Box,{ref:s,sx:{display:"flex",flexDirection:"column",overflowY:"auto",overflowX:"hidden",flexGrow:1,height:`${r}px`,ml:1,mr:1,mt:1},children:[(0,ee.jsx)(y1.FileManager,{ref:o,files:n.files,spaces:A,rightItems:Fn,actions:dd,icons:Wn,initialPath:n.currentPath,layout:"list",enableFilePreview:!1,onCreateFolder:void 0,onError:is,onRename:void 0,onPaste:void 0,onDelete:void 0,onFolderChange:Vl,onRefresh:void 0,permissions:a,filePreviewPath:"http://avoid-console-error",primaryColor:"#1976d2",fontFamily:"Roboto, Helvetica, Arial, sans-serif",height:"100%",className:"custom-fm-magnify",searchMode:"auto",searchRegex:!0,searchCasing:!0,showContextMenu:!1,showRefresh:!1,categories:Te,maxNavigationPaneLevel:2,minFileActionsLevel:2,openMode:"none"}),Se&&(0,ee.jsx)(Ol,{channel:Z,file:B,onClose:()=>_(void 0),onContainerSelected:qe,anchorParent:Se,includeAllContainers:Ve}),Q&&(0,ee.jsx)(d1,{onWorkSelected:qa,onClose:()=>W(void 0),anchorParent:Q,customActions:n.userPreferences.customActions}),de&&(0,ee.jsx)(p1,{onWorkSelected:Vr,onClose:()=>Oe(void 0),anchorParent:de,customActions:n.userPreferences.customActions}),Mt&&(0,ee.jsx)(b1.MenuNotification,{anchorParent:Mt,notifications:e.channelObject.notifications,onRefresh:()=>Me(p=>p+1),onClose:()=>re(void 0),renderIcon:p=>p?(0,Ca.getChannelIconSafe)(e.channelObject.frontChannels.get(p),p):(0,Ca.getIconFromKind)("IconK8s",20)}),(0,ee.jsx)(Le.Stack,{direction:"row",sx:{mt:1},children:n.windows.map(p=>{let y=p.title||"notitle",b=y;b.length>20&&(b=b.substring(0,10)+"..."+b.substring(b.length-10));let T=LM[p.class]||(p.class==="ContentExternal"?Bl(p):null),L=p.class==="ContentDetails"?y:p.title;return(0,ee.jsx)(Le.Tooltip,{title:L,children:(0,ee.jsxs)(Le.Button,{onClick:()=>ss(p.id),children:[T,b]})},p.id)})})]}),m,(0,ee.jsx)(zM,{title:h,default:q,message:v,onClose:()=>k(void 0),onResult:pe,width:"300px",password:!0}),n.windows.map(p=>Sa(p,!1,!1)),n.windows.map(p=>Sa(p,!0,!1)),n.windows.map(p=>Sa(p,!1,!0)),n.windows.map(p=>Sa(p,!0,!0))]}):(0,ee.jsxs)(Le.Box,{ref:l,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",height:`calc(100vh - ${c}px - 8px)`,px:4},children:[(0,ee.jsx)(Le.Typography,{variant:"h6",color:"text.secondary",sx:{mb:1},children:"Magnify not started"}),(0,ee.jsx)(Le.Typography,{variant:"body2",color:"text.secondary",sx:{maxWidth:480},children:"Start the channel (tab settings \u2699 \u2192 Start) to explore your cluster."})]})};var eo=I(Rt(),1);var Pl=class{constructor(){this.channelId="magnify";this.setupVisible=!1;this.SetupDialog=Hm;this.TabContent=w1;this.tasks=[];this.requirements={accessString:!0,clusterUrl:!0,clusterInfo:!0,clusterManagement:!0,multiCluster:!0,exit:!0,frontChannels:!0,metrics:!0,notifier:!0,notifications:!0,setup:!1,settings:!1,palette:!0,userSettings:!0,webSocket:!0,backChannels:!0,openManager:!0};this.launchTasks=t=>{this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:rt(),namespace:"",group:"",pod:"",container:"",command:"usage",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},15e3,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:rt(),namespace:"",group:"",pod:"",container:"",command:"list",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:this.channelId,params:["PodMetrics","NodeMetrics"]};t.webSocket&&t.webSocket.send(JSON.stringify(a))},3e4,t)),this.tasks.push(window.setInterval(n=>{let a={msgtype:"magnifymessage",accessKey:n.accessString,instance:n.instanceId,id:rt(),namespace:"",group:"",pod:"",container:"",command:"events",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:this.channelId,params:["cluster","","","","25"]};n.webSocket&&n.webSocket.send(JSON.stringify(a))},1e4,t))}}getScope(){return"magnify$read"}getChannelIcon(){return Wm}getSetupVisibility(){return this.setupVisible}setSetupVisibility(t){this.setupVisible=t}processChannelMessage(t,n){let a=JSON.parse(n.data),r=t.data;if(r.userPreferences.tracing&&(console.warn(new Date().toTimeString()),console.log(JSON.parse(n.data))),a.id&&r.pendingWebSocketRequests.has(a.id))return r.pendingWebSocketRequests.get(a.id)(n.data),r.pendingWebSocketRequests.delete(a.id),{action:jn.EChannelRefreshAction.NONE};switch(a.type){case Pe.EInstanceMessageType.DATA:{let s=JSON.parse(n.data);switch(s.action){case Pe.EInstanceMessageAction.COMMAND:switch(s.command){case"clusterinfo":let o=JSON.parse(s.data);r.clusterInfo=o;break;case"usage":let l=JSON.parse(s.data);r.metricsProviderMissing=l.metricsProvider===!1,r.eventsProviderMissing=l.eventsProvider===!1,r.metricsProviderMissing||(l.timestamp=new Date().toLocaleTimeString("en-GB"),r.metricsCluster.push(l),r.metricsCluster.length>50&&r.metricsCluster.shift()),t.data?.refreshUsage?.();break;case"Pod":JSON.parse(s.data)[0];break;case"list":case"listcrd":let d=JSON.parse(s.data);return d.kind.endsWith("List")?d.items&&d.items.forEach?d.items.forEach(f=>this.loadObject("NONE",t,d.kind.replace("List",""),r,f)):console.log(d):t.notify?.(this.channelId,eo.ENotifyLevel.ERROR,"Unexpected list: "+d.kind),r.files=[...r.files],{action:jn.EChannelRefreshAction.REFRESH};case"events":let m=JSON.parse(s.data);if(m.type==="cluster"&&m.events)for(let f of m.events){let h=!1;for(let k of r.clusterEvents)if($s(k,f)){h=!0;break}h||(r.clusterEvents.push(f),r.clusterEvents=r.clusterEvents.sort((k,v)=>Date.parse(v.eventTime||v.lastTimestamp||v.firstTimestamp)-Date.parse(k.eventTime||k.lastTimestamp||k.firstTimestamp)))}else if(m.events){m.events=m.events.sort((f,h)=>Date.parse(h.eventTime||h.lastTimestamp||h.firstTimestamp)-Date.parse(f.eventTime||f.lastTimestamp||f.firstTimestamp));for(let f of m.events){let h=be(f.involvedObject.kind,f.involvedObject.name,f.involvedObject.namespace),k=r.files.find(v=>v.path===h);(k&&k?.data.origin.metadata.namespace===f.involvedObject.namespace||k&&!f.involvedObject.namespace)&&(k.data.events||(k.data.events={},k.data.events.list=[]),k.data.events.list.push(f))}r.files=[...r.files]}return{action:jn.EChannelRefreshAction.REFRESH};case"k8event":switch(s.event){case"ADDED":case"MODIFIED":this.loadObject(s.event,t,s.data.kind,r,s.data),r.files=[...r.files];break;case"DELETED":"Namespace Node".includes(s.data.kind)&&r.updateCategoryValues&&r.updateCategoryValues(s.data.kind,"DELETED",s.data.metadata.name);let f=be(s.data.kind,s.data.metadata.name,s.data.metadata.namespace);if(f.startsWith("//"))r.files=r.files.filter(h=>h.path!=="/custom/"+s.data.kind+"/"+s.data.metadata.name+(s.data.metadata.namespace?":"+s.data.metadata.namespace:""));else if(r.files=r.files.filter(h=>h.path!==f),f.startsWith("/custom/CustomResourceDefinition/")){let h=s.data?.spec?.names?.kind;h&&(r.files=r.files.filter(k=>!k.path.startsWith(`/custom/${h}/`)),r.files=r.files.filter(k=>k.path!==`/custom/${h}`))}break}return{action:jn.EChannelRefreshAction.REFRESH};case"delete":{console.log("DEL",s.data);let f=JSON.parse(s.data);return f.status==="Success"||t.notify?.(this.channelId,eo.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:jn.EChannelRefreshAction.REFRESH}}case"create":{let f=JSON.parse(s.data);return f.status==="Success"?t.notify?.(this.channelId,eo.ENotifyLevel.INFO,"Created: "+(f.text||f.message)):t.notify?.(this.channelId,eo.ENotifyLevel.ERROR,"ERROR: "+(f.text||f.message)),{action:jn.EChannelRefreshAction.REFRESH}}case"logsearch":{let f=JSON.parse(s.data);return f.type==="result"?r.logSearchResults=[...r.logSearchResults,{namespace:f.namespace,pod:f.pod,container:f.container,lines:f.lines}]:f.type==="done"&&(r.logSearchDone=!0),{action:jn.EChannelRefreshAction.REFRESH}}}}return{action:jn.EChannelRefreshAction.NONE}}case Pe.EInstanceMessageType.SIGNAL:let i=JSON.parse(n.data);return i.flow===Pe.EInstanceMessageFlow.RESPONSE?i.action===Pe.EInstanceMessageAction.START?(t.instanceId=i.instance,setTimeout(()=>{VM(t),Dm(t),WM(t)},300)):i.action===Pe.EInstanceMessageAction.COMMAND&&i.text&&t.notify?.(this.channelId,i.level,i.text):i.flow===Pe.EInstanceMessageFlow.UNSOLICITED&&(i.event===Pe.ESignalMessageEvent.ADD||i.event===Pe.ESignalMessageEvent.DELETE||i.text&&t.notify?.(this.channelId,i.level,i.text)),{action:jn.EChannelRefreshAction.REFRESH};default:return console.log(`Invalid message type ${a.type}`),{action:jn.EChannelRefreshAction.NONE}}}async initChannel(t){let n=new fo;return t.instanceConfig=new po,t.config=n,t.data=new go,t.readChannelUserPreferences&&(t.data.userPreferences=await t.readChannelUserPreferences(this.channelId)),t.data.userPreferences||(t.data.userPreferences=new ei),!1}startChannel(t){let n=t.data;return n.paused=!1,n.started=!0,n.files=n.files.filter(a=>a.isDirectory&&a.path.split("/").length-1<=2),n.files=n.files.filter(a=>a.class!=="crdGroup"),n.currentPath="/overview",this.launchTasks(t),!0}pauseChannel(t){let n=t.data;return n.paused=!0,!1}continueChannel(t){let n=t.data;return n.paused=!1,!0}stopChannel(t){let n=t.data;return n.paused=!1,n.started=!1,this.tasks.forEach(a=>clearInterval(a)),this.tasks=[],!0}onClusterSwitch(t){let n=t.data;n&&(n.clusterInfo=void 0,n.clusterEvents=[],n.metricsCluster=[],n.started=!1,n.currentPath="/overview",n.pendingWebSocketRequests=new Map)}socketDisconnected(t){return!1}socketReconnect(t){return!1}loadObject(t,n,a,r,i){i.metadata?.managedFields&&(r.userPreferences.dataManagedFields||delete i.metadata.managedFields),a==="Pod"?this.loadPod(r,i):a==="ConfigMap"?this.loadConfigMap(r,i):a==="Secret"?this.loadSecret(r,i):a==="ResourceQuota"?this.loadResourceQuota(r,i):a==="LimitRange"?this.loadLimitRange(r,i):a==="HorizontalPodAutoscaler"?this.loadHorizontalPodAutoscaler(r,i):a==="PodDisruptionBudget"?this.loadPodDisruptionBudget(r,i):a==="PriorityClass"?this.loadPriorityClass(r,i):a==="RuntimeClass"?this.loadRuntimeClass(r,i):a==="Lease"?this.loadLease(r,i):a==="ValidatingWebhookConfiguration"?this.loadValidatingWebhookConfiguration(r,i):a==="MutatingWebhookConfiguration"?this.loadMutatingWebhookConfiguration(r,i):a==="Namespace"?this.loadNamespace(r,i):a==="Node"?this.loadNode(r,i):a==="Service"?this.loadService(r,i):a==="Endpoints"?this.loadEndpoints(r,i):a==="Ingress"?this.loadIngress(r,i):a==="IngressClass"?this.loadIngressClass(r,i):a==="NetworkPolicy"?this.loadNetworkPolicy(r,i):a==="Deployment"?this.loadDeployment(r,i):a==="DaemonSet"?this.loadDaemonSet(r,i):a==="ReplicaSet"?this.loadReplicaSet(r,i):a==="ReplicationController"?this.loadReplicationController(r,i):a==="StatefulSet"?this.loadStatefulSet(r,i):a==="Job"?this.loadJob(r,i):a==="CronJob"?this.loadCronJob(r,i):a==="PersistentVolumeClaim"?this.loadPersistentVolumeClaim(r,i):a==="PersistentVolume"?this.loadPersistentVolume(r,i):a==="StorageClass"?this.loadStorageClass(r,i):a==="VolumeAttachment"?this.loadVolumeAttachment(r,i):a==="CSIDriver"?this.loadCSIDriver(r,i):a==="CSINode"?this.loadCSINode(r,i):a==="CSIStorageCapacity"?this.loadCSIStorageCapacity(r,i):a==="ServiceAccount"?this.loadServiceAccount(r,i):a==="ClusterRole"?this.loadClusterRole(r,i):a==="Role"?this.loadRole(r,i):a==="ClusterRoleBinding"?this.loadClusterRoleBinding(r,i):a==="RoleBinding"?this.loadRoleBinding(r,i):a==="V1APIResource"?this.loadApiResource(r,i):a==="CustomResourceDefinition"?this.loadCustomResourceDefinition(n,r,i):a==="PodMetrics"?this.loadPodMetrics(r,i):a==="NodeMetrics"?this.loadNodeMetrics(r,i):a==="ComponentStatus"?this.loadComponentStatus(r,i):a==="Event"||this.loadCustomResourceDefinitionInstance(r,i)||console.log("*** ERR INVALID Kind:",a)}upsertObject(t,n){let a=t.files.findIndex(r=>r.path===n.path);a>=0?t.files[a]=n:t.files.push(n)}loadNamespace(t,n){n.apiVersion="v1",n.kind="Namespace",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("Namespace",n.metadata.name,void 0),class:"Namespace",data:{creationTimestamp:n.metadata.creationTimestamp,status:n.status?.phase,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Namespace","ADD",n.metadata.name)}loadConfigMap(t,n){n.apiVersion="v1",n.kind="ConfigMap",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ConfigMap",n.metadata.name,n.metadata.namespace),class:"ConfigMap",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadSecret(t,n){!t.userPreferences.dataHelm&&n.metadata.name.startsWith("sh.helm.release.")||(n.apiVersion="v1",n.kind="Secret",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Secret",n.metadata.name,n.metadata.namespace),class:"Secret",data:{namespace:n.metadata.namespace,keys:n.data?Object.keys(n.data).join(", "):"",creationTimestamp:n.metadata.creationTimestamp,type:n.type,origin:n}}))}loadResourceQuota(t,n){n.apiVersion="v1",n.kind="ResourceQuota",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ResourceQuota",n.metadata.name,n.metadata.namespace),class:"ResourceQuota",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLimitRange(t,n){n.apiVersion="v1",n.kind="LimitRange",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("LimitRange",n.metadata.name,n.metadata.namespace),class:"LimitRange",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadHorizontalPodAutoscaler(t,n){n.apiVersion="autoscaling/v2",n.kind="HorizontalPodAutoscaler",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("HorizontalPodAutoscaler",n.metadata.name,n.metadata.namespace),class:"HorizontalPodAutoscaler",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPodDisruptionBudget(t,n){n.apiVersion="policy/v1",n.kind="PodDisruptionBudget";let a=t.files.find(r=>r.class==="Pod"&&r.data.origin.metadata.name===n.metadata.name&&r.data.origin.metadata.namespace===n.metadata.namespace);this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PodDisruptionBudget",n.metadata.name,n.metadata.namespace),class:"PodDisruptionBudget",data:{...a?.data?{cpu:a.data.cpu,memory:a.data.memory}:{},namespace:n.metadata.namespace,minAvailable:n.spec.minAvailable||"",maxUnavailable:n.spec.maxUnavailable||"",currentHealthy:n.status.currentHealthy,desiredHealthy:n.status.desiredHealthy,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPriorityClass(t,n){n.apiVersion="scheduling.k8s.io/v1",n.kind="PriorityClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PriorityClass",n.metadata.name,n.metadata.namespace),class:"PriorityClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRuntimeClass(t,n){n.apiVersion="node.k8s.io/v1",n.kind="RuntimeClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("RuntimeClass",n.metadata.name,n.metadata.namespace),class:"RuntimeClass",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadLease(t,n){n.apiVersion="node.k8s.io/v1",n.kind="Lease",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Lease",n.metadata.name,n.metadata.namespace),class:"Lease",data:{namespace:n.metadata.namespace,holder:n.spec.holderIdentity,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadValidatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="ValidatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ValidatingWebhookConfiguration",n.metadata.name,void 0),class:"ValidatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadMutatingWebhookConfiguration(t,n){n.apiVersion="admissionregistration.k8s.io/v1",n.kind="MutatingWebhookConfiguration",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("MutatingWebhookConfiguration",n.metadata.name,void 0),class:"MutatingWebhookConfiguration",data:{webhooks:n.webhooks.length,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNode(t,n){n.apiVersion="v1",n.kind="Node";let a=[];Object.keys(n.metadata.labels).forEach(i=>{i.startsWith("node-role.kubernetes.io")&&n.metadata.labels[i]==="true"&&a.push(i.substring(24))}),n.status.capacity.cpu=Us(n.status.capacity.cpu),n.status.allocatable.cpu=Us(n.status.allocatable.cpu),n.status.capacity.memory=Kn(n.status.capacity.memory),n.status.allocatable.memory=Kn(n.status.allocatable.memory);let r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===n.metadata?.name);this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("Node",n.metadata.name,void 0),class:"Node",data:{...r?.data?{cpu:r.data.cpu,memory:r.data.memory}:{},creationTimestamp:n.metadata.creationTimestamp,taints:n.spec.taints?n.spec.taints.length:0,roles:a.join(","),conditions:n.spec.unschedulable===!0?"Unschedulable":n.status.conditions.filter(i=>i.status==="True").map(i=>i.type).join(" "),version:n.status.nodeInfo.kubeletVersion,origin:n}}),t.updateCategoryValues&&t.updateCategoryValues("Node","ADD",n.metadata.name);for(let i of t.files.filter(s=>s.class==="Image")){let s=i.data.origin.nodes.indexOf(n.metadata.name);s>=0&&i.data.origin.nodes.splice(s,1)}t.files=t.files.filter(i=>!(i.class==="Image"&&i.data.origin.nodes.length===0));for(let i of n.status?.images){let s=i.sizeBytes,o=[];i.names?(o=i.names.filter(c=>!c.includes("@")),o.length===0&&(o=i.names)):o=["*unnamed"];let l=t.files.find(c=>c.path==="/cluster/Image/"+o[0]);if(l)l.data.origin.nodes.includes(n.metadata.name)||l.data.origin.nodes.push(n.metadata.name);else{let c,d,m,f,h=/^(?:((?:[a-z0-9-]+\.)+[a-z0-9]+(?::\d+)?)\/)?((?:[a-z0-9._-]+\/)*[a-z0-9._-]+)(?::([a-z0-9._-]+))?(?:@(sha256:[a-f0-9]{64}))?$/i;if(i.names)for(let v of i.names){let E=v.match(h);E&&(c||(c=E[1]),d||(d=E[2]),m||(m=E[3]),f||(f=E[4]))}let k={name:o[0],displayName:d,isDirectory:!1,path:"/cluster/Image/"+o[0],class:"Image",data:{size:s,tag:m,origin:{kind:"Image",metadata:{name:o[0]},name:o[0],displayName:o[0],registry:c,tag:m,sha:f,names:i.names,nodes:[n.metadata.name]}}};t.files.push(k)}}}loadNodeMetrics(t,n){let a=n.metadata?.name,r=t.files.find(i=>i.class==="Node"&&i.data.origin.metadata.name===a);if(r){let i=r.data.origin.status.capacity.cpu;r.data.cpu=(Us(n.usage.cpu)/i*100).toFixed(2)+"%",r.data.memory=(Kn(n.usage.memory)/r.data.origin.status.capacity.memory*100).toFixed(2)+"%"}}loadService(t,n){n.apiVersion="v1",n.kind="Service",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Service",n.metadata.name,n.metadata.namespace),class:"Service",data:{namespace:n.metadata.namespace,type:n.spec.type,clusterIp:n.spec.clusterIP,ports:n.spec?.ports?.map(a=>a.port+"/"+a.protocol).join(",")||"-",externalIp:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(",")||"-",selector:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadEndpoints(t,n){n.apiVersion="v1",n.kind="Endpoints",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Endpoints",n.metadata.name,n.metadata.namespace),class:"Endpoints",data:{namespace:n.metadata.namespace,endpoints:n.subsets?n.subsets?.map(a=>a.addresses?.map(r=>a.ports?.map(i=>r.ip+":"+i.port)).join(",")):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngress(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="Ingress",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Ingress",n.metadata.name,n.metadata.namespace),class:"Ingress",data:{namespace:n.metadata.namespace,loadBalancers:n.status?.loadBalancer?.ingress?.map(a=>a.ip).join(","),rules:"#",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadIngressClass(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="IngressClass",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("IngressClass",n.metadata.name,n.metadata.namespace),class:"IngressClass",data:{namespace:n.metadata.namespace,controller:n.spec.controller,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadNetworkPolicy(t,n){n.apiVersion="networking.k8s.io/v1",n.kind="NetworkPolicy",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("NetworkPolicy",n.metadata.name,n.metadata.namespace),class:"NetworkPolicy",data:{namespace:n.metadata.namespace,policyTypes:n.spec.policyTypes?n.spec.policyTypes.join(","):"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDeployment(t,n){n.apiVersion="apps/v1",n.kind="Deployment",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Deployment",n.metadata.name,n.metadata.namespace),class:"Deployment",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.status.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadDaemonSet(t,n){n.apiVersion="apps/v1",n.kind="DaemonSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("DaemonSet",n.metadata.name,n.metadata.namespace),class:"DaemonSet",data:{namespace:n.metadata.namespace,desired:n.status.desiredNumberScheduled,current:n.status.currentNumberScheduled,ready:n.status.numberReady,upToDate:n.status.updatedNumberScheduled,available:n.status.numberAvailable,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicaSet(t,n){n.apiVersion="apps/v1",n.kind="ReplicaSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ReplicaSet",n.metadata.name,n.metadata.namespace),class:"ReplicaSet",data:{namespace:n.metadata.namespace,desired:n.status.replicas||0,current:n.status.availableReplicas||0,ready:n.status.readyReplicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadReplicationController(t,n){n.apiVersion="v1",n.kind="ReplicationController",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ReplicationController",n.metadata.name,n.metadata.namespace),class:"ReplicationController",data:{namespace:n.metadata.namespace,replicas:n.status.replicas||0,desired:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadStatefulSet(t,n){n.apiVersion="apps/v1",n.kind="StatefulSet",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("StatefulSet",n.metadata.name,n.metadata.namespace),class:"StatefulSet",data:{namespace:n.metadata.namespace,pods:(n.status.readyReplicas||0)+"/"+(n.status.replicas||0),replicas:n.spec.replicas||0,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadJob(t,n){n.apiVersion="batch/v1",n.kind="Job",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Job",n.metadata.name,n.metadata.namespace),class:"Job",data:{namespace:n.metadata.namespace,completions:n.spec.completions+"/"+n.spec.parallelism,conditions:n.status.conditions?n.status.conditions.filter(a=>a.status.toLowerCase()==="true").map(a=>a.name):"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCronJob(t,n){n.apiVersion="batch/v1",n.kind="CronJob",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("CronJob",n.metadata.name,n.metadata.namespace),class:"CronJob",data:{namespace:n.metadata.namespace,schedule:n.spec.schedule,suspend:n.spec.suspend||"-",active:"-",lastSchedule:n.status.lastScheduleTime,nextExecution:"-",timezone:"-",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadPersistentVolumeClaim(t,n){n.apiVersion="v1",n.kind="PersistentVolumeClaim",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("PersistentVolumeClaim",n.metadata.name,n.metadata.namespace),class:"PersistentVolumeClaim",data:{namespace:n.metadata.namespace,storageClass:n.spec.storageClassName,size:n.status?.capacity?.storage?Kn(n.status?.capacity?.storage):0,creationTimestamp:n.metadata.creationTimestamp,status:n.status.phase,origin:n}})}loadPersistentVolume(t,n){n.apiVersion="v1",n.kind="PersistentVolume",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("PersistentVolume",n.metadata.name,void 0),class:"PersistentVolume",data:{storageClass:n.spec?.storageClassName,size:n.status?.capacity?.storage?Kn(n.status?.capacity?.storage):0,claim:n.spec?.claimRef?.name,creationTimestamp:n.metadata?.creationTimestamp,status:n.status?.phase,origin:n}})}loadStorageClass(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="StorageClass",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("StorageClass",n.metadata.name,void 0),class:"StorageClass",data:{provisioner:n.provisioner,reclaimPolicy:n.reclaimPolicy,default:(n.metadata?.annotations&&n.metadata.annotations["storageclass.kubernetes.io/is-default-class"]==="true"?"Yes":"")||"",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadVolumeAttachment(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="VolumeAttachment",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("VolumeAttachment",n.metadata.name,void 0),class:"VolumeAttachment",data:{attacher:n.spec.attacher,nodeName:n.spec.nodeName,source:n.spec.source?.persistentVolumeName||"",status:n.status.attached?"attached":"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIDriver(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIDriver",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSIDriver",n.metadata.name,void 0),class:"CSIDriver",data:{attachRequired:n.spec.attachRequired?"Yes":"No",storageCapacity:n.spec.storageCapacity?"Yes":"No",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSINode(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSINode",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSINode",n.metadata.name,void 0),class:"CSINode",data:{drivers:n.spec.drivers?.map(a=>a.name).join(","),creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadCSIStorageCapacity(t,n){n.apiVersion="storage.k8s.io/v1",n.kind="CSIStorageCapacity",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("CSIStorageCapacity",n.metadata.name,void 0),class:"CSIStorageCapacity",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadServiceAccount(t,n){n.apiVersion="v1",n.kind="ServiceAccount",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("ServiceAccount",n.metadata.name,n.metadata.namespace),class:"ServiceAccount",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRole",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ClusterRole",n.metadata.name,void 0),class:"ClusterRole",data:{creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRole(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="Role",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Role",n.metadata.name,n.metadata.namespace),class:"Role",data:{namespace:n.metadata.namespace,creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadClusterRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="ClusterRoleBinding",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ClusterRoleBinding",n.metadata.name,void 0),class:"ClusterRoleBinding",data:{bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadRoleBinding(t,n){n.apiVersion="rbac.authorization.k8s.io/v1",n.kind="RoleBinding",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("RoleBinding",n.metadata.name,n.metadata.namespace),class:"RoleBinding",data:{namespace:n.metadata.namespace,bindings:n.subjects?n.subjects.map(a=>a.name).join(","):"n/a",creationTimestamp:n.metadata.creationTimestamp,origin:n}})}loadApiResource(t,n){n.kindName=n.kind,n.metadata={name:n.kind},n.apiVersion="v1",n.kind="V1APIResource",this.upsertObject(t,{name:n.name,isDirectory:!1,path:be("V1APIResource",n.name,void 0),class:"V1APIResource",data:{kind:n.kindName,singular:n.singularName,namespaced:n.namespaced?"Yes":"",origin:n}})}loadPod(t,n){n.apiVersion="v1",n.kind="Pod",this.upsertObject(t,{name:n.metadata.name+":"+n.metadata.namespace,displayName:n.metadata.name,isDirectory:!1,path:be("Pod",n.metadata.name,n.metadata.namespace),class:"Pod",data:{namespace:n.metadata.namespace,controller:n.metadata.ownerReferences&&n.metadata.ownerReferences.length>0?n.metadata.ownerReferences[0].kind:"-",node:n.spec.nodeName,startTime:n.status.startTime,status:n.metadata.deletionTimestamp?"Terminating":n.status.phase,restartCount:n.status.containerStatuses?.reduce((a,r)=>a+=r.restartCount,0)||0,origin:n}})}loadPodMetrics(t,n){let a=n.metadata.name,r=n.metadata.namespace,i=t.files.find(s=>s.class==="Pod"&&s.data.origin.metadata.name===a&&s.data.origin.metadata.namespace===r);i&&(i.data.metrics=n,i.data.cpu=n.containers.reduce((s,o)=>s+Us(o.usage.cpu),0),i.data.cpu=i.data.cpu.toFixed(3),i.data.memory=n.containers.reduce((s,o)=>s+Kn(o.usage.memory),0))}loadComponentStatus(t,n){n.apiVersion="v1",n.kind="ComponentStatus",this.upsertObject(t,{name:n.metadata.name,isDirectory:!1,path:be("ComponentStatus",n.metadata.name,void 0),class:"ComponentStatus",data:{status:n.conditions[0].status,message:n.conditions[0].message,origin:n}})}loadCustomResourceDefinition(t,n,a){a.apiVersion="apiextensions.k8s.io/v1",a.kind="CustomResourceDefinition";let r=a.spec.versions&&a.spec.versions.length>0?a.spec.versions[0].name:"-";this.upsertObject(n,{name:a.metadata.name,displayName:a.metadata.name,isDirectory:!1,path:be("CustomResourceDefinition",a.metadata.name,a.metadata.namespace),class:"CustomResourceDefinition",data:{group:a.spec.group,version:r,scope:a.spec.scope,creationTimestamp:a.metadata.creationTimestamp,origin:a}});let i={name:a.spec.names.kind,isDirectory:!0,path:"/custom/"+a.spec.names.kind,class:"crdGroup",children:"crdInstance"};if(a.spec.scope==="Namespaced"&&(i.categories=["namespace"],i.children="crdNamespacedInstance"),this.upsertObject(n,i),a.spec.versions&&a.spec.versions.length>0){let s={msgtype:"magnifymessage",accessKey:t.accessString,instance:t.instanceId,id:rt(),namespace:"",group:"",pod:"",container:"",command:"listcrd",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:this.channelId,params:[a.spec.group,a.spec.versions[0].name,a.spec.names.plural]};t.webSocket.send(JSON.stringify(s))}}loadCustomResourceDefinitionInstance(t,n){return this.upsertObject(t,{name:n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),displayName:n.metadata.name,isDirectory:!1,path:"/custom/"+n.kind+"/"+n.metadata.name+(n.metadata.namespace?":"+n.metadata.namespace:""),class:"crdInstance",data:{namespace:n.metadata.namespace,source:n.spec?.source,checksum:n.spec?.checksum,creationTimestamp:n.metadata.creationTimestamp,origin:n}}),!0}},be=(e,t,n)=>{let a="";return" V1APIResource Node Namespace ComponentStatus Image ".includes(" "+e+" ")&&(a="cluster")," Pod Deployment DaemonSet ReplicaSet ReplicationController StatefulSet Job CronJob ".includes(" "+e+" ")&&(a="workload")," ConfigMap Secret ResourceQuota LimitRange HorizontalPodAutoscaler PodDisruptionBudget PriorityClass RuntimeClass Lease ValidatingWebhookConfiguration MutatingWebhookConfiguration ".includes(" "+e+" ")&&(a="config")," Service Endpoints Ingress IngressClass NetworkPolicy ".includes(" "+e+" ")&&(a="network")," PersistentVolumeClaim PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ".includes(" "+e+" ")&&(a="storage")," ServiceAccount ClusterRole Role ClusterRoleBinding RoleBinding ".includes(" "+e+" ")&&(a="access")," CustomResourceDefinition ".includes(" "+e+" ")&&(a="custom")," V1APIResource Node Namespace V1APIResource Image ComponentStatus ValidatingWebhookConfiguration MutatingWebhookConfiguration PersistentVolume StorageClass VolumeAttachment CSINode CSIDriver CSIStorageCapacity ClusterRole ClusterRoleBinding CustomResourceDefinition ".includes(" "+e+" ")?"/"+a+"/"+e+"/"+t:"/"+a+"/"+e+"/"+t+":"+n},VM=e=>{let t={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:rt(),namespace:"",group:"",pod:"",container:"",command:"clusterinfo",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:e.channelId,params:[]};e.webSocket.send(JSON.stringify(t))},Dm=async e=>{for(let t=1;t<10;t++){let a=e.data.userPreferences?.dataConfig?.source.filter(i=>i.priority===t).map(i=>i.name);if(a.length===0)break;let r={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:rt(),namespace:"",group:"",pod:"",container:"",command:"list",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:e.channelId,params:[...a]};e.webSocket.send(JSON.stringify(r)),await new Promise(i=>setTimeout(i,250))}},WM=e=>{let t=e.data,n={msgtype:"magnifymessage",accessKey:e.accessString,instance:e.instanceId,id:rt(),namespace:"",group:"",pod:"",container:"",command:"subscribe",action:Pe.EInstanceMessageAction.COMMAND,flow:Pe.EInstanceMessageFlow.REQUEST,type:Pe.EInstanceMessageType.DATA,channel:e.channelId,params:t.userPreferences?.dataConfig?.sync.map(a=>a.name)};e.webSocket.send(JSON.stringify(n))};for(let[e,t]of[["kwirth-plugin-magnify-css",Em],["kwirth-plugin-magnify-resizable-css",Am]]){if(document.getElementById(e))continue;let n=document.createElement("style");n.id=e,n.textContent=t,document.head.appendChild(n)}window.__kwirth_plugins__||(window.__kwirth_plugins__={});window.__kwirth_plugins__.magnify=Pl;})();
814
+ /*! Bundled license information:
815
+
816
+ react/cjs/react-jsx-runtime.production.min.js:
817
+ (**
818
+ * @license React
819
+ * react-jsx-runtime.production.min.js
820
+ *
821
+ * Copyright (c) Facebook, Inc. and its affiliates.
822
+ *
823
+ * This source code is licensed under the MIT license found in the
824
+ * LICENSE file in the root directory of this source tree.
825
+ *)
826
+
827
+ clipboard-copy/index.js:
828
+ (*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
829
+ */