@deephaven/code-studio 0.31.4 → 0.31.5
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.
- package/build/assets/AppRoot.509a9a52.js +42 -0
- package/build/assets/AppRoot.509a9a52.js.map +1 -0
- package/build/assets/{index.98012d47.js → index.a3fafc96.js} +2 -2
- package/build/assets/{index.98012d47.js.map → index.a3fafc96.js.map} +1 -1
- package/build/index.html +2 -2
- package/package.json +10 -10
- package/build/assets/AppRoot.ccd4065e.js +0 -42
- package/build/assets/AppRoot.ccd4065e.js.map +0 -1
|
@@ -3,5 +3,5 @@ import{_ as ht}from"./monaco.1292e04e.js";import{B as h,A as m,R as g,P as jt,C
|
|
|
3
3
|
`)}`:""}constructor(t){this.history=[],this.offset=0,this.limit=1e4,this.isEnabled=!1,this.proxy=t,this.addHistory=this.addHistory.bind(this)}enable(){this.isEnabled||(this.proxy.addEventListener(F.DEBUG,this.addHistory),this.proxy.addEventListener(F.LOG,this.addHistory),this.proxy.addEventListener(F.WARN,this.addHistory),this.proxy.addEventListener(F.ERROR,this.addHistory),this.proxy.addEventListener(F.UNCAUGHT_ERROR,this.addHistory),this.isEnabled=!0)}disable(){!this.isEnabled||(this.proxy.removeEventListener(F.DEBUG,this.addHistory),this.proxy.removeEventListener(F.LOG,this.addHistory),this.proxy.removeEventListener(F.WARN,this.addHistory),this.proxy.removeEventListener(F.ERROR,this.addHistory),this.proxy.removeEventListener(F.UNCAUGHT_ERROR,this.addHistory),this.isEnabled=!1)}addHistory({type:t,detail:n}){const s={type:t,messages:n,time:new Date};switch(t){case F.ERROR:case F.UNCAUGHT_ERROR:s.stack=Error().stack;break}this.history[this.offset%this.limit]=s,this.offset+=1}getHistory(){if(this.offset>this.limit){const t=this.offset%this.limit;this.history=this.history.slice(t).concat(this.history.slice(0,t)),this.offset=this.limit}return this.history}getFormattedHistory(){return this.getHistory().map(n=>`${n.time.toISOString()} ${n.type} ${we.formatMessages(n.messages)}`+(n.stack!=null?`
|
|
4
4
|
${we.formatStack(n.stack,n.type)}`:"")).join(`
|
|
5
5
|
`)}}const wn=A.module("Tooltip"),B=class extends m.exports.Component{constructor(e){super(e),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleWindowMouseMove=this.handleWindowMouseMove.bind(this),this.handleWheel=this.handleWheel.bind(this),this.handleTimeout=this.handleTimeout.bind(this),this.handleExited=this.handleExited.bind(this),this.stopShowingTooltip=this.stopShowingTooltip.bind(this),this.container=g.createRef(),this.popper=g.createRef(),this.parent=null,this.timer=null,this.state={isShown:!1}}static handleHidden(){B.shownTooltipCount-=1,B.shownTooltipCount===0&&(B.lastHiddenTime=Date.now())}static handleShown(){B.shownTooltipCount+=1}componentDidMount(){this.startListening();const{timeout:e}=this.props;e===0&&this.show()}componentDidUpdate(e,t){const{isShown:n}=t,{isShown:s}=this.state;s!==n&&(s?B.handleShown():B.handleHidden())}componentWillUnmount(){this.stopListening(),this.stopListeningWindow(),this.stopTimer();const{isShown:e}=this.state;e&&B.handleHidden()}startListening(){if(!this.container.current||!this.container.current.parentElement){wn.error("Tooltip doesn't have a container or a parent set!");return}this.parent=this.container.current.parentElement,this.parent.addEventListener("mousemove",this.handleMouseMove),this.parent.addEventListener("mouseleave",this.handleMouseLeave),this.parent.addEventListener("mousedown",this.stopShowingTooltip)}stopListening(){!this.parent||(this.parent.removeEventListener("mousemove",this.handleMouseMove),this.parent.removeEventListener("mouseleave",this.handleMouseLeave),this.parent.removeEventListener("mousedown",this.stopShowingTooltip))}startListeningWindow(){window.addEventListener("mousemove",this.handleWindowMouseMove,!0),window.addEventListener("contextmenu",this.stopShowingTooltip,!0),window.addEventListener("wheel",this.handleWheel)}stopListeningWindow(){window.removeEventListener("mousemove",this.handleWindowMouseMove,!0),window.removeEventListener("contextmenu",this.stopShowingTooltip,!0),window.removeEventListener("wheel",this.handleWheel)}handleMouseMove(){this.startTimer()}handleWheel(){const{isShown:e}=this.state;this.popper.current&&this.parent&&e&&!this.popper.current.element.matches(":hover")&&!this.parent.matches(":hover")&&(this.stopTimer(),this.hide())}handleMouseLeave(){const{isShown:e}=this.state;this.stopTimer();const{interactive:t}=this.props;!t&&e&&this.hide()}handleTimeout(){this.show()}handleWindowMouseMove(e){const t=e.clientX,n=e.clientY,{isShown:s}=this.state;if(!this.popper.current||!this.parent)return;const i=this.popper.current.element.getBoundingClientRect(),o=this.parent.getBoundingClientRect();t>=i.left&&t<=i.left+i.width&&n>=i.top&&n<=i.top+i.height?this.handleMouseMove():t>=o.left&&t<=o.left+o.width&&n>=o.top&&n<=o.top+o.height?this.handleMouseMove():s&&(this.stopTimer(),this.hide())}startTimer(){this.stopTimer();const{timeout:e,reshowTimeout:t}=this.props;let n=e;(B.shownTooltipCount>0||Date.now()-B.lastHiddenTime<B.triggerReshowThreshold)&&(n=t),this.timer=window.setTimeout(this.handleTimeout,n)}stopTimer(){this.timer!=null&&(clearTimeout(this.timer),this.timer=null)}show(){const{isShown:e}=this.state;if(this.stopTimer(),!e){this.popper.current?.show(),this.setState({isShown:!0});const{interactive:t}=this.props;t&&this.startListeningWindow()}}hide(){this.popper.current?.hide(),this.stopListeningWindow()}update(){this.popper.current?.scheduleUpdate()}handleExited(){this.setState({isShown:!1});const{onExited:e}=this.props;e()}stopShowingTooltip(){const{isShown:e}=this.state;this.stopTimer(),e&&this.hide()}render(){const{interactive:e,children:t,referenceObject:n,popperClassName:s,"data-testid":i,onEntered:o}=this.props,{isShown:a}=this.state;let{options:r}=this.props;return r={placement:"bottom",...r},l("div",{ref:this.container,style:{display:"none"},"data-testid":i,children:l(se,{className:b(s),options:r,ref:this.popper,onEntered:o,onExited:this.handleExited,interactive:e,referenceObject:n,children:w("div",{className:"tooltip-content",children:[" ",a&&t]})})})}};let Q=B;Q.defaultTimeout=500;Q.defaultReshowTimeout=100;Q.triggerReshowThreshold=300;Q.shownTooltipCount=0;Q.lastHiddenTime=Date.now();Q.defaultProps={interactive:!1,options:{},popperClassName:"",reshowTimeout:B.defaultReshowTimeout,timeout:B.defaultTimeout,onEntered:()=>{},onExited:()=>{},"data-testid":void 0};const Nn=100;var bt=(e=>(e.UP="UP",e.DOWN="DOWN",e))(bt||{});const Y=class extends m.exports.Component{constructor(e){super(e),this.getCachedFilteredOptions=K((n,s)=>n.filter(i=>i.title.toLowerCase().indexOf(s.toLowerCase())>=0));let{popperOptions:t}=this.props;t={placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}},...t},this.state={title:"",filteredOptions:[],keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,invalid:!1,popperOptions:t},this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handelInputFocus=this.handelInputFocus.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.updateInputValue=dt(this.updateInputValue,Nn),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=g.createRef(),this.cbContainer=g.createRef(),this.menuContainer=g.createRef(),this.input=g.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(e){if(!e)return this.setState({invalid:!1}),{value:e,isValid:!1};const{options:t}=this.props,n=t.filter(s=>s.title.toLowerCase()===e.toLowerCase());return n.length<1?(this.setState({invalid:!0}),{value:e,isValid:!1}):(this.setState({invalid:!1}),{value:n[0].value,isValid:!0})}updateInputValue(e){const{menuIsOpen:t}=this.state,{value:n,isValid:s}=this.getValueAndValidate(e);t&&this.processFilterChange(e),this.fireOnChange(n,s)}fireOnChange(e,t=!0){const{onChange:n}=this.props;n(e,t)}processFilterChange(e){const{options:t}=this.props,{menuIsOpen:n}=this.state,s=e?this.getCachedFilteredOptions(t,e):t,i=s.length===1&&s[0].title===e;if(this.setState({filteredOptions:s,keyboardOptionIndex:0}),i&&n){this.closeMenu();return}this.popper.current?.scheduleUpdate()}resetValue(){this.setState({title:""}),this.fireOnChange("")}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){const{filteredOptions:t,keyboardOptionIndex:n}=this.state,s=t[n];switch(e.key){case"Enter":case"ArrowRight":e.stopPropagation(),e.preventDefault(),s!=null&&(this.setState({title:s.title,invalid:!1}),this.fireOnChange(s.value)),this.closeMenu(),this.input.current?.focus();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.navigateMenu(Y.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(Y.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(Y.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(Y.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.closeMenu();break}}navigateMenu(e){const{filteredOptions:t,keyboardOptionIndex:n}=this.state;let s=n;e===Y.MENU_NAVIGATION_DIRECTION.UP?n>0?(s=(s-1)%t.length,this.setState({keyboardOptionIndex:s})):n===0&&(s=t.length-1,this.setState({keyboardOptionIndex:s})):e===Y.MENU_NAVIGATION_DIRECTION.DOWN&&n<t.length&&(s=(s+1)%t.length,this.setState({keyboardOptionIndex:s})),this.scrollOptionIntoView(s)}handleInputKeyDown(e){const{onEnter:t}=this.props,{menuIsOpen:n}=this.state;n?this.handleMenuKeyDown(e):e.key==="Enter"?t():e.key==="Escape"?(this.resetValue(),e.preventDefault(),e.stopPropagation()):e.key==="ArrowRight"||e.key==="ArrowLeft"||e.key==="Tab"||e.key==="Shift"||this.openMenu()}handleInputChange(e){this.setState({title:e.target.value}),this.updateInputValue(e.target.value)}handleOptionClick(e){this.setState({title:e.title,invalid:!1}),this.fireOnChange(e.value),this.closeMenu(),this.input.current?.focus()}handelInputFocus(){const{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputClick(){const{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputBlur(e){const{menuIsOpen:t}=this.state;t&&e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(e){e.relatedTarget===this.input.current||e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){this.input.current?.focus()}handleMenuExited(){const{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){const{title:e}=this.state;this.processFilterChange(e),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{this.popper.current?.show()})}closeMenu(e=!0){this.setState({menuIsOpen:!1,keyboardOptionIndex:0}),e&&this.input.current?.focus(),this.popper.current?.hide()}scrollOptionIntoView(e){this.menuContainer.current&&this.menuContainer.current.children.item(e)?.scrollIntoView({behavior:"smooth",block:"nearest"})}renderMenuElement(){const{inputWidth:e}=this.state;return l("div",{className:b("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:e},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){const{noMatchText:e}=this.props,{title:t,filteredOptions:n}=this.state;return t&&n.length===0?l("div",{className:"no-match",children:e}):n.map((s,i)=>this.renderOption(s,i))}renderOption(e,t){const{keyboardOptionIndex:n}=this.state,s=`option-${t}-${e.value}`;return l("button",{type:"button",className:b("aci-option-btn",{"keyboard-active":n===t}),onClick:()=>this.handleOptionClick(e),onFocus:()=>this.setState({keyboardOptionIndex:t}),children:e.title},s)}render(){const{options:e,inputPlaceholder:t,disabled:n,className:s,defaultTitle:i,spellCheck:o,"data-testid":a}=this.props,{title:r,menuIsOpen:c,popperOptions:d,invalid:p}=this.state;return w("div",{className:"aci-container",ref:this.cbContainer,children:[l("input",{value:r||i,className:b("form-control",s,"aci-input",{"is-invalid":p&&!c}),ref:this.input,onChange:this.handleInputChange,placeholder:t||e[0].title,disabled:n,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:o,"data-testid":a}),l(se,{ref:this.popper,options:d,className:b("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}};let Ue=Y;Ue.propTypes={options:h.exports.arrayOf(h.exports.shape({title:h.exports.string.isRequired,value:h.exports.string.isRequired})).isRequired,popperOptions:h.exports.shape({}),onChange:h.exports.func,inputPlaceholder:h.exports.string,disabled:h.exports.bool,className:h.exports.string,defaultTitle:h.exports.string,spellCheck:h.exports.bool,onEnter:h.exports.func,noMatchText:h.exports.string,"data-testid":h.exports.string};Ue.defaultProps={onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0};Ue.MENU_NAVIGATION_DIRECTION=bt;h.exports.string.isRequired,h.exports.func.isRequired,h.exports.string,h.exports.string,h.exports.bool,h.exports.bool,h.exports.string,h.exports.string,h.exports.string;function Ne(e){const{children:t,className:n,style:s,"data-testid":i}=e;return l("div",{className:b("btn-group",n),style:s,role:"group","data-testid":i,children:t})}Ne.displayName="ButtonGroup";Ne.propTypes={children:h.exports.node.isRequired,className:h.exports.string,style:h.exports.object,"data-testid":h.exports.string};Ne.defaultProps={className:null,style:{},"data-testid":void 0};const En=["primary","secondary","tertiary","success","danger","inline","ghost"],Tn=["group-end"];function Ln(e,t){switch(e){case"primary":return"btn-primary";case"secondary":return"btn-outline-primary";case"tertiary":return"btn-secondary";case"success":return"btn-success";case"danger":return"btn-danger";case"inline":return"btn-inline";case"ghost":return b("btn-link",{"btn-link-icon":t,"btn-link-icon-only":t})}}function Dn(e){switch(e){case"group-end":return b("pl-2","pr-3")}}const J=g.forwardRef((e,t)=>{const{kind:n,variant:s,type:i,tooltip:o,icon:a,disabled:r=!1,active:c,onClick:d,onContextMenu:p,onMouseDown:u,onMouseUp:y,onMouseEnter:v,onMouseLeave:T,onKeyDown:S,className:I,style:C,children:E,tabIndex:D,"data-testid":P,"aria-label":H}=e,U=Boolean(a&&E==null),z=Ln(n,U);let ie;s&&(ie=Dn(s));let be;a&&(be=g.isValidElement(a)?a:l(R,{icon:a}));let me;o!==void 0&&(me=typeof o=="string"?l(Q,{children:o}):o);let Me=H;H===void 0&&U&&o!=null&&typeof o=="string"&&(Me=o);const M=w("button",{"data-testid":P,ref:t,type:i,className:b("btn",z,ie,{active:c},I),onClick:d,onContextMenu:p,onMouseUp:y,onMouseDown:u,onMouseEnter:v,onMouseLeave:T,onKeyDown:S,style:C,disabled:r,tabIndex:D,"aria-label":Me,children:[a&&be,E,o!=null&&!r&&me]});return r?w("span",{className:"btn-disabled-wrapper",children:[M,o!==void 0&&me]}):M});J.displayName="Button";J.propTypes={kind:h.exports.oneOf(En).isRequired,variant:h.exports.oneOf(Tn),type:h.exports.oneOf(["submit","reset","button"]),tooltip(e){const{tooltip:t,icon:n,children:s}=e;return t===void 0&&n!=null&&s==null?new Error("Tooltip is required for icon only buttons"):null},icon(e){const{children:t,icon:n}=e;return n==null&&t==null?new Error("Icon is required if no children are provided"):t==null&&!g.isValidElement(n)&&(n==null||n.iconName===""||n.iconName==null)?new Error("Icon must be react element or fontawesome IconDefinition"):null},disabled:h.exports.bool,active:h.exports.bool,onClick(e){const{onClick:t,type:n}=e;return n==="button"&&typeof t!="function"?new Error("type button requires an onClick function"):t!==void 0&&typeof t!="function"?new Error("onClick must be a function"):null},onContextMenu:h.exports.func,onMouseUp:h.exports.func,onMouseDown:h.exports.func,onMouseEnter:h.exports.func,onMouseLeave:h.exports.func,onKeyDown:h.exports.func,tabIndex:h.exports.number,children:h.exports.node,className:h.exports.string,style:h.exports.object,"data-testid":h.exports.string};J.defaultProps={type:"button",onClick:void 0,onContextMenu:void 0,onMouseUp:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,onKeyDown:void 0,variant:void 0,tooltip:void 0,icon:void 0,disabled:!1,active:void 0,tabIndex:void 0,children:void 0,className:void 0,style:{},"data-testid":void 0};function Mt({className:e="theme-bg-light",children:t,role:n="role",keyboard:s=!0,isOpen:i=!1,centered:o=!1,size:a,onOpened:r,onClosed:c,toggle:d,"data-testid":p}){const u=m.exports.useRef(),y=m.exports.useRef(null),[v,T]=m.exports.useState(!1),S=m.exports.useCallback(C=>{switch(C.key){case"Escape":d?.();break}},[d]);m.exports.useEffect(function(){if(i&&s)return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[S,i,s]),m.exports.useEffect(function(){i&&r&&r()},[r,i]),m.exports.useEffect(function(){!i&&c&&c()},[c,i]),i&&!u.current&&(u.current=document.createElement("div"),u.current.setAttribute("style","padding-right: 15px; display: block"),u.current.setAttribute("role","presentation"),document.body.appendChild(u.current));const I=()=>{u.current&&(document.body.removeChild(u.current),u.current=void 0)};return u.current?Fe.createPortal(w(ut,{children:[l(ge,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:i,classNames:{appearActive:"show",appearDone:"show"},timeout:Se.transitionMs,onExited:I,children:l("div",{className:b("modal-backdrop fade"),style:{zIndex:1050}})}),l(ge,{appear:!0,mountOnEnter:!0,unmountOnExit:!0,in:i,classNames:{appearDone:"show"},timeout:Se.transitionMs,onExited:I,children:l("div",{ref:y,className:"modal fade",onMouseDown:C=>{C.target===y.current?T(!0):T(!1)},onMouseUp:C=>{v&&C.target===y.current&&d!==void 0&&d()},role:"dialog",style:{display:"block"},children:l("div",{className:b(`modal-dialog ${e}`,{"modal-lg":a==="lg","modal-sm":a==="sm","modal-xl":a==="xl","modal-dialog-centered":o}),style:{zIndex:1040},children:l("div",{className:"modal-content",role:"presentation","data-testid":p,children:t})})})})]}),u.current):null}function xt({className:e="modal-body",style:t,children:n,"data-testid":s}){return l("div",{className:e,"data-testid":s,style:t,children:n})}function Ct({className:e,children:t,closeButton:n=!0,style:s,toggle:i,"data-testid":o}){return w("div",{className:`modal-header ${e}`,style:s,children:[l("h5",{className:"modal-title",children:t}),n&&l("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close",onClick:i,children:l("span",{"aria-hidden":"true",children:"\xD7"})})]})}function An({className:e="modal-footer",children:t,"data-testid":n}){return l("div",{className:e,"data-testid":n,children:t})}function It(e){const{isOpen:t,headerText:n,bodyText:s,onCancel:i,onConfirm:o,onDiscard:a,onModalDisable:r,cancelButtonText:c="Cancel",confirmButtonText:d="Okay",discardButtonText:p="Discard",isConfirmDanger:u=!1,children:y,"data-testid":v}=e,T=m.exports.useRef(null),S=m.exports.useRef(null),I=m.exports.useCallback(()=>{S.current!==null&&S.current.checked&&r&&r(),o()},[o,r]),C=m.exports.useCallback(()=>{T.current?.focus()},[]);let E="";return t&&(E=typeof s=="function"?s():s),w(Mt,{isOpen:t,className:"theme-bg-light",onOpened:C,children:[l(Ct,{closeButton:!1,children:n}),l(xt,{children:E}),w(An,{children:[r&&w("div",{className:"custom-control custom-checkbox form-group mr-auto",children:[l("input",{type:"checkbox",className:"custom-control-input",id:"move-confirmation-checkbox",defaultChecked:!1,ref:S,"data-testid":v!==void 0?`${v}-checkbox-confirm`:void 0}),l("label",{className:"custom-control-label",htmlFor:"move-confirmation-checkbox",children:"Don't ask me again"})]}),a&&l(J,{kind:"secondary",className:"mr-auto","data-dismiss":"modal",onClick:a,"data-testid":v!==void 0?`${v}-btn-discard`:void 0,children:p}),i&&l(J,{kind:"secondary","data-dismiss":"modal",onClick:i,"data-testid":v!==void 0?`${v}-btn-cancel`:void 0,children:c}),w(Ne,{children:[l(J,{kind:u?"danger":"primary",onClick:I,ref:T,"data-testid":v!==void 0?`${v}-btn-confirm`:void 0,children:d}),y]})]})]})}It.propTypes={isOpen:h.exports.bool.isRequired,headerText:h.exports.string.isRequired,bodyText:h.exports.oneOfType([h.exports.string,h.exports.func]).isRequired,onCancel:h.exports.func,onConfirm:h.exports.func.isRequired,onDiscard:h.exports.func,onModalDisable:h.exports.func,cancelButtonText:h.exports.string,confirmButtonText:h.exports.string,discardButtonText:h.exports.string,children:h.exports.node,"data-testid":h.exports.string};It.defaultProps={children:void 0,cancelButtonText:"Cancel",confirmButtonText:"Okay",discardButtonText:"Discard",onCancel:void 0,onDiscard:void 0,onModalDisable:void 0,"data-testid":void 0};const Be=g.forwardRef((e,t)=>{const{children:n,className:s,disabled:i,onClick:o,style:a,id:r}=e;return l("button",{ref:t,type:"button",className:b("btn",s),onClick:o,style:a,disabled:i,id:r,children:n})});Be.displayName="Button";Be.propTypes={children:h.exports.node,className:h.exports.string,disabled:h.exports.bool,onClick:h.exports.func,style:h.exports.shape({}),id:h.exports.string};Be.defaultProps={children:null,className:"",disabled:!1,onClick:()=>null,style:{},id:""};function Oe(e){return e.then!==void 0}const le=class{static disableAllActions(){le.actionsDisabled=!0}static enableAllActions(){le.actionsDisabled=!1}static isContextActionEvent(e){return Array.isArray(e.contextActions)}static compareActions(e,t){return e.group!==t.group?(e.group??0)>(t.group??0)?1:-1:e.order!==t.order?(e.order??0)>(t.order??0)?1:-1:e.title!==t.title?(e.title??"")>(t.title??"")?1:-1:e!==t?e>t?1:-1:0}static sortActions(e){if(e==null||!Array.isArray(e))return[];const t=e.slice();return t.sort(le.compareActions),t}static isMacPlatform(){const{platform:e}=window.navigator;return e.startsWith("Mac")}static getModifierKey(){return le.isMacPlatform()?"metaKey":"ctrlKey"}static isModifierKeyDown(e){const t=le.getModifierKey();return e[t]}static getMenuItems(e,t=!0){let n=[],s=e;Array.isArray(s)||(s=[s]);for(let i=0;i<s.length;i+=1){const o=s[i];let a;typeof o=="function"?a=o():a=o,a!=null&&(a instanceof Promise?t&&n.push(a):Array.isArray(a)?n=n.concat(a):n.push(a))}return n=n.filter(i=>i.title!==void 0||i.then!=null||i.menuElement),n}static getNextMenuItem(e,t,n){let s=e;s<0&&t<0&&(s=n.length);for(let i=1;i<n.length+1;i+=1){const o=(s+t*i+n.length)%n.length,a=n[o];if(!(a instanceof Promise)&&a.disabled!==!0)return o}return e}};let k=le;k.actionsDisabled=!1;const Xe=A.module("GlobalContextAction");class kn extends m.exports.Component{constructor(t){super(t),this.handleContextMenu=this.handleContextMenu.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}componentDidMount(){document.body.addEventListener("contextmenu",this.handleContextMenu),document.body.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.body.removeEventListener("contextmenu",this.handleContextMenu),document.body.removeEventListener("keydown",this.handleKeyDown)}handleContextMenu(t){const n=t;n.contextActions==null&&(n.contextActions=[]);const{action:s}=this.props;s.title==null&&!s.menuElement||(n.contextActions==null&&(n.contextActions=[]),n.contextActions.push(s),Xe.debug("Received context menu event at global action! Menu items are now: ",n.contextActions))}handleKeyDown(t){const{action:n}=this.props;!k.actionsDisabled&&n.shortcut!==void 0&&n.shortcut.matchesEvent(t)&&(Xe.debug("Global hotkey matched!",t),n.action?.(t),t.preventDefault(),t.stopPropagation())}render(){return null}}class On extends m.exports.Component{render(){const{actions:t,"data-testid":n}=this.props,s=[];for(let i=0;i<t.length;i+=1){const o=t[i],{shortcut:a}=o;if(o.title!=null||o.menuElement||a){const r=l(kn,{action:o,"data-testid":n},`${o.title}.${a?.id}`);s.push(r)}}return s}}const xe=A.module("ContextActions");class Hn extends m.exports.Component{constructor(t){super(t),this.handleContextMenu=this.handleContextMenu.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.container=g.createRef(),this.state={globalActions:[],keyboardActions:[]}}static triggerMenu(t,n,s,i){if(i.length===0)return;const o=new MouseEvent("contextmenu",{clientX:n,clientY:s,bubbles:!0,cancelable:!0});o.contextActions=i,t.dispatchEvent(o)}static getDerivedStateFromProps(t){if(t.actions==null||!Array.isArray(t.actions))return{globalActions:[],keyboardActions:[]};const n=t.actions.filter(i=>!Oe(i)&&typeof i!="function"&&i.isGlobal),s=t.actions.filter(i=>!Oe(i)&&typeof i!="function"&&(i.isGlobal===void 0||!i.isGlobal)&&i.shortcut!=null);return{globalActions:n,keyboardActions:s}}componentDidMount(){this.container.current?.parentElement&&(this.container.current.parentElement.addEventListener("contextmenu",this.handleContextMenu),this.container.current.parentElement.addEventListener("keydown",this.handleKeyDown))}componentWillUnmount(){this.container.current?.parentElement&&(this.container.current.parentElement.removeEventListener("contextmenu",this.handleContextMenu),this.container.current.parentElement.removeEventListener("keydown",this.handleKeyDown))}handleContextMenu(t){const{ignoreClassNames:n=[]}=this.props;if(n.length>0){let i=t.target;for(;i!=null;){const{classList:o}=i,a=n.find(r=>o.contains(r));if(a!==void 0){xe.debug2(`Contextmenu event ignored based on the target className "${a}"`);return}i=i.parentElement}}if(k.isContextActionEvent(t)||(t.contextActions=[]),!k.isContextActionEvent(t))return;const{actions:s}=this.props;if(s!=null){let i=s;Array.isArray(i)&&(i=i.filter(o=>Oe(o)||typeof o=="function"||o.isGlobal===void 0||!o.isGlobal)),t.contextActions=t.contextActions.concat(i)}xe.debug("Received context menu event! Menu items are now: ",t.contextActions)}handleKeyDown(t){const{keyboardActions:n}=this.state;for(let s=0;s<n.length;s+=1){const i=n[s];!k.actionsDisabled&&i.shortcut!=null&&i.shortcut.matchesEvent(t)&&(xe.debug("Context hotkey matched!",t),i.action?.(t),t.stopPropagation(),t.preventDefault(),xe.debug2("Matched hotkey returned false, key event not consumed"))}}render(){const{"data-testid":t}=this.props,{globalActions:n}=this.state;return l("div",{className:"context-actions-listener",ref:this.container,"data-testid":t,children:l(On,{actions:n})})}}Hn.groups={default:null,high:100,medium:5e3,low:1e4,global:1e5,edit:100};var As={prefix:"vs",iconName:"add",icon:[512,512,[],"f000","M448 224v32H256v192H224V256H32V224h192V32h32v192h192z"]},ks={prefix:"vs",iconName:"arrow-down",icon:[512,512,[],"f000","m100.704 288 160 160h22.624l160 -160 -22.624 -22.624L288 398.048V64H256v334.08L123.328 265.344 100.704 288z"]},Os={prefix:"vs",iconName:"arrow-left",icon:[512,512,[],"f000","m224 98.976 -160 160V281.6l160 160 22.624 -22.624 -132.672 -132.704H448v-32H113.92L246.656 121.6 224 98.976z"]},Hs={prefix:"vs",iconName:"arrow-small-down",icon:[512,512,[],"f000","m342.4 276.48 -80 80h-22.4L160 276.48l22.4 -22.72 52.8 52.48V128h32v178.24L320 253.44l22.4 23.04z"]},Vs={prefix:"vs",iconName:"arrow-small-up",icon:[512,512,[],"f000","M160 208 240 128h22.4l80 80 -22.4 22.72 -52.8 -52.48v178.24h-32V178.24L182.4 231.04 160 208z"]},zs={prefix:"vs",iconName:"arrow-up",icon:[512,512,[],"f000","m443.328 224 -160 -160h-22.624l-160 160 22.624 22.624L256 113.952V448h32V113.92l132.672 132.704 22.656 -22.624z"]},Vn={prefix:"vs",iconName:"check",icon:[512,512,[],"f000","m461.792 106.336 -271.04 320 -25.28 -1.152 -107.2 -152.64 26.176 -18.368 95.296 135.68 257.632 -304.192 24.448 20.672z"]},Rs={prefix:"vs",iconName:"chevron-down",icon:[512,512,[],"f000","m255.232 322.304 139.424 -139.424 19.84 19.776L265.088 352h-19.776L96 202.656l19.808 -19.776 139.424 139.424z"]},Fs={prefix:"vs",iconName:"chevron-left",icon:[512,512,[],"f000","m189.696 255.232 139.424 139.424 -19.776 19.84L160 265.088v-19.776L309.344 96l19.776 19.808 -139.424 139.424z"]},zn={prefix:"vs",iconName:"chevron-right",icon:[512,512,[],"f000","M322.304 256.768 182.88 117.344l19.776 -19.84L352 246.912v19.776L202.656 416l-19.776 -19.808 139.424 -139.424z"]},Ps={prefix:"vs",iconName:"chevron-up",icon:[512,512,[],"f000","m256.768 189.696 -139.424 139.424 -19.84 -19.776L246.912 160h19.776L416 309.344l-19.808 19.776 -139.424 -139.424z"]},_s={prefix:"vs",iconName:"chrome-close",icon:[512,512,[],"f000","m227.712 256 -145.856 145.856 28.288 28.288L256 284.288l145.856 145.856 28.288 -28.288L284.288 256l145.856 -145.856 -28.288 -28.288L256 227.712 110.144 81.856l-28.288 28.288L227.712 256z"]},Us={prefix:"vs",iconName:"circle-large-filled",icon:[512,512,[],"f000","M256 32a217.6 217.6 0 0 1 59.52 8.096 220.768 220.768 0 0 1 98.656 57.76 220.896 220.896 0 0 1 57.728 98.656C477.312 215.616 480 235.424 480 256s-2.688 40.384 -8.096 59.52a220.8 220.8 0 0 1 -22.528 53.568 229.024 229.024 0 0 1 -80.512 80.288 222.912 222.912 0 0 1 -53.376 22.72A223.488 223.488 0 0 1 256 480a223.488 223.488 0 0 1 -59.52 -7.872 227.136 227.136 0 0 1 -53.568 -22.752 233.6 233.6 0 0 1 -45.28 -35.008 233.44 233.44 0 0 1 -35.008 -45.28 227.136 227.136 0 0 1 -22.72 -53.6A223.52 223.52 0 0 1 32 256c0 -20.576 2.624 -40.384 7.872 -59.52a222.976 222.976 0 0 1 22.752 -53.344 228.992 228.992 0 0 1 80.288 -80.512 220.64 220.64 0 0 1 53.6 -22.528A217.856 217.856 0 0 1 256 32z"]},Rn={prefix:"vs",iconName:"circle-large-outline",icon:[512,512,[],"f000","M306.816 70.88A185.856 185.856 0 0 0 256 64c-17.728 0 -34.624 2.336 -50.816 6.88l-0.192 0.064c-16.448 4.512 -31.68 10.944 -45.824 19.232A196.992 196.992 0 0 0 90.24 159.36l-0.064 0.128A190.944 190.944 0 0 0 70.72 205.12 191.552 191.552 0 0 0 64 256c0 17.76 2.24 34.72 6.72 50.912a193.6 193.6 0 0 0 49.536 84.832c11.84 11.68 24.768 21.664 38.912 30.08a195.2 195.2 0 0 0 45.92 19.488A192.64 192.64 0 0 0 256 448c17.76 0 34.72 -2.24 50.912 -6.72 16.48 -4.64 31.68 -11.136 45.632 -19.424l0.128 -0.064a197.12 197.12 0 0 0 69.152 -68.96 187.2 187.2 0 0 0 19.2 -45.824l0.096 -0.192A185.824 185.824 0 0 0 448 256c0 -17.728 -2.304 -34.624 -6.88 -50.816l-0.064 -0.192a184.704 184.704 0 0 0 -19.2 -45.536l-0.064 -0.128a188.8 188.8 0 0 0 -30.144 -38.72l-0.256 -0.256a188.864 188.864 0 0 0 -38.72 -30.144l-0.128 -0.064a184.704 184.704 0 0 0 -45.536 -19.2l-0.192 -0.064zm142.56 298.24a229.024 229.024 0 0 1 -80.512 80.256 222.912 222.912 0 0 1 -53.376 22.72A223.488 223.488 0 0 1 256 480a223.488 223.488 0 0 1 -59.52 -7.872 227.136 227.136 0 0 1 -53.568 -22.752 233.6 233.6 0 0 1 -45.28 -35.008 233.44 233.44 0 0 1 -35.008 -45.28 227.136 227.136 0 0 1 -22.72 -53.6A223.52 223.52 0 0 1 32 256c0 -20.576 2.624 -40.384 7.872 -59.52a222.976 222.976 0 0 1 22.752 -53.344 228.992 228.992 0 0 1 80.288 -80.512 220.64 220.64 0 0 1 53.6 -22.528A217.856 217.856 0 0 1 256 32a217.6 217.6 0 0 1 59.52 8.096 220.768 220.768 0 0 1 98.656 57.76 220.896 220.896 0 0 1 57.728 98.656C477.312 215.616 480 235.424 480 256s-2.688 40.384 -8.096 59.52a220.8 220.8 0 0 1 -22.528 53.568z"]},Bs={prefix:"vs",iconName:"circle-slash",icon:[512,512,[],"f000","M256 32a224 224 0 1 1 -224 224 224.256 224.256 0 0 1 224 -224zM64 256c0 45.376 16.128 89.28 45.536 123.84l270.304 -270.304A191.776 191.776 0 0 0 64 256zm384 0c0 -45.376 -16.128 -89.28 -45.536 -123.84L132.16 402.464A191.776 191.776 0 0 0 448 256z"]},Ks={prefix:"vs",iconName:"clippy",icon:[512,512,[],"f000","M224 447.744H128v-288h256v64h32v-80l-16 -16H352v-32h-32a64 64 0 0 0 -128 0H158.08v32H112l-16 16v320l16 16H224v-32zm0 -358.4a32 32 0 0 1 25.6 -25.6 32 32 0 0 1 18.56 1.92 30.08 30.08 0 0 1 14.4 11.52 32 32 0 1 1 -56 30.08 32 32 0 0 1 -2.56 -17.92zm226.56 302.72L416 426.944v-171.2h-32v170.88l-34.56 -34.56 -22.72 22.72 62.08 61.76h22.72l61.76 -61.76 -22.72 -22.72zm-189.44 -133.12h22.72l61.76 61.76 -22.72 22.72 -34.56 -34.56v170.88h-32v-171.2l-34.56 34.88 -22.72 -22.72 62.08 -61.76z"]},$s={prefix:"vs",iconName:"close",icon:[512,512,[],"f000","m256 278.624 116.672 116.704 22.656 -22.624L278.624 256l116.704 -116.672 -22.624 -22.656L256 233.376 139.328 116.672l-22.624 22.656L233.376 256l-116.672 116.672 22.624 22.656L256 278.624z"]},Ws={prefix:"vs",iconName:"cloud-download",icon:[512,512,[],"f000","M382.624 192h1.6a95.68 95.68 0 0 1 67.712 28.128 96.096 96.096 0 0 1 0 135.744 95.68 95.68 0 0 1 -67.744 28.128v-32a64.064 64.064 0 0 0 0 -128h-29.248l-3.936 -27.424a79.68 79.68 0 0 0 -68.032 -67.904A79.296 79.296 0 0 0 199.392 176l-10.656 24.384 -25.888 -6.048A79.68 79.68 0 0 0 144.736 192c-21.184 0 -41.504 8.416 -56.448 23.424A80.096 80.096 0 0 0 144.736 352h15.936v32h-15.936a111.552 111.552 0 0 1 -84.096 -37.12 112.064 112.064 0 0 1 62.656 -184.96 110.784 110.784 0 0 1 46.976 1.28 111.552 111.552 0 0 1 117.024 -65.92A111.328 111.328 0 0 1 382.624 192zm-168 163.872 42.048 42.048V224h31.808v172.8l40.896 -40.928 22.624 22.624 -68.672 68.704h-22.656L192 378.528l22.624 -22.656z"]},Gs={prefix:"vs",iconName:"code",icon:[512,512,[],"f000","M150.656 178.496 65.952 263.168l84.704 84.672 -22.656 22.656 -96 -96V251.84l96 -96 22.656 22.656zm224 -22.656L352 178.496l84.704 84.672L352 347.84l22.656 22.656 96 -96V251.84l-96 -96zM157.056 416l28.608 14.336 160 -320L317.056 96l-160 320z"]},qs={prefix:"vs",iconName:"copy",icon:[512,512,[],"f000","m128 128 32 -32h173.248L448 210.752V448l-32 32H160l-32 -32V128zm288 96 -96 -96H160v320h256V224zM96 32 64 64v320l32 32V64h205.248l-32 -32H96z"]},js={prefix:"vs",iconName:"device-camera",icon:[512,512,[],"f000","M342.624 96H464l16 16v288l-16 16h-416l-16 -16v-288l16 -16h121.376l27.296 -27.328L208 64h96l11.328 4.672 27.296 27.328zM64 384h384V128h-112l-11.328 -4.672L297.376 96H214.624l-27.296 27.328L176 128H64v256zm48 -224a16 16 0 1 0 0 32 16 16 0 0 0 0 -32zM256 192a64 64 0 1 1 0 128 64 64 0 0 1 0 -128zm0 -32a96 96 0 1 0 0 192 96 96 0 0 0 0 -192z"]},Zs={prefix:"vs",iconName:"edit",icon:[512,512,[],"f000","M423.36 32h-46.72L112.64 296l-5.12 7.04L32 434.88 77.12 480l131.84 -75.52 7.04 -5.12L480 135.36V88.64L423.36 32zM77.12 434.88l48.32 -96 46.4 46.4 -94.72 49.6zm122.56 -65.92L143.04 312.32l256 -256 56.64 56.64 -256 256z"]},Xs={prefix:"vs",iconName:"file-code",icon:[512,512,[],"f000","m338.24 36.48 104.96 105.6 4.8 11.52v310.4l-16 16h-352l-16 -16v-416l16 -16h247.04l11.2 4.48zM320 160h96l-96 -96v96zM96 64v384h320V192H304L288 176V64H96zm65.984 241.056 58.144 -58.496L197.44 224 128 293.728v22.624l69.472 69.568 22.624 -22.624 -58.112 -58.24zM281.6 246.848l22.4 -22.688 70.048 69.6v22.688L304 385.984l-22.56 -22.688 58.592 -58.24L281.6 246.848z"]},Js={prefix:"vs",iconName:"file-zip",icon:[512,512,[],"f000","M80 32h352l16 16v160l-4.8 11.2 -27.2 27.52v217.28l-16 16h-320l-16 -16v-416l16 -16zM192 64H160v64h32V64zm0 384h128V245.76l-27.2 -27.2L288 207.04V64H224v80l-16 16H192v32H160V160h-16L128 144V64H96v384h64v-32h32v32zm0 -64v32h32v-32H192zm0 -32v32H160v-32h32zm0 -32h32v32H192v-32zm0 -32v32H160V288h32zm0 -32h32v32H192V256zm0 -32v32H160V224h32zm0 0h32V192H192v32zm196.8 4.8 27.2 -27.52V64h-96v136.64l27.2 27.2 4.8 11.2V448h32V240l4.8 -11.2z"]},Qs={prefix:"vs",iconName:"files",icon:[512,512,[],"f000","M373.333 0h-192L149.333 32V128H53.333L21.333 160v321.493L53.333 512h257.493L341.333 481.493V384h100.267l27.733 -30.507V96L373.333 0zm0 45.227 50.773 50.773H373.333V45.227zm-64 434.773h-256v-320H149.333v193.493L181.333 384h128v96zm128 -128h-256v-320H341.333V128h96v224z"]},Ys={prefix:"vs",iconName:"filter",icon:[512,512,[],"f000","M480 64v53.44l-160 152.288V448H192V269.728l-160 -152.32V64h448zM224 256v160h64V256l160 -152.32V96H64v7.68L224 256z"]},ei={prefix:"vs",iconName:"folder-opened",icon:[512,512,[],"f000","M48 448h352l15.36 -11.84 84.16 -224 -15.36 -20.16H448V112l-16 -16H246.72l-27.52 -27.2L208 64h-160l-16 16v352l16 16zM64 96h137.28l27.52 27.2 11.2 4.8H416v64H272l-11.2 4.8 -27.52 27.2H112l-15.04 10.88 -32 98.56L64 96zm324.16 320H70.08l53.44 -160H240l11.2 -4.8 27.52 -27.2h185.28l-75.84 192z"]},ti={prefix:"vs",iconName:"folder",icon:[512,512,[],"f000","M464 96H246.72l-27.2 -27.2L208.32 64h-160l-16 16v352l16 16h416l16 -16v-320L464 96zm-16.32 271.68V416h-384V224h143.68l11.2 -4.8 27.52 -27.52H448v48l-0.32 128zm0 -207.68h-208l-11.2 4.8 -27.52 27.52H64v-96h137.28l27.2 27.2 11.52 4.8H448l-0.32 31.68z"]},ni={prefix:"vs",iconName:"gear",icon:[512,512,[],"f000","M291.2 140.8 275.2 64H236.8l-16 76.8 -22.4 9.6 -64 -41.6 -28.8 25.6 41.6 64 -6.4 22.4 -76.8 16v38.4l76.8 16 9.6 25.6 -41.6 64 25.6 25.6 64 -41.6 25.6 9.6 12.8 73.6h38.4l16 -76.8 25.6 -9.6 64 41.6 25.6 -25.6 -41.6 -64 9.6 -25.6 73.6 -12.8V236.8l-76.8 -16 -9.6 -25.6 41.6 -64 -25.6 -25.6 -64 41.6 -22.4 -6.4zM300.8 32l16 76.8L384 67.2l64 64 -44.8 67.2 76.8 12.8v89.6l-76.8 16L448 384l-64 64 -67.2 -44.8 -16 76.8H211.2l-16 -76.8L128 444.8l-64 -64 44.8 -67.2L32 300.8V211.2l76.8 -16L67.2 128l64 -64 67.2 44.8 12.8 -76.8h89.6zm19.2 224c0 35.2 -28.8 64 -64 64s-64 -28.8 -64 -64 28.8 -64 64 -64 64 28.8 64 64zM256 288c19.2 0 32 -12.8 32 -32s-12.8 -32 -32 -32 -32 12.8 -32 32 12.8 32 32 32z"]},si={prefix:"vs",iconName:"graph",icon:[512,512,[],"f000","M48 448H480v-32H64V0H32v432l16 16zM96 368v-256l16 -16h64l16 16v256l-16 16h-64l-16 -16zm64 -16V128H128v224h32zm192 -304v320l16 16h64l16 -16v-320l-16 -16h-64l-16 16zm64 16v288h-32V64h32zm-192 304v-192l16 -16h64l16 16v192l-16 16h-64l-16 -16zm64 -16V192H256v160h32z"]},Fn={prefix:"vs",iconName:"gripper",icon:[512,512,[],"f000","M160 96h64v64H160zm0 128h64v64H160zm0 128h64v64H160zm128 -256h64v64H288zm0 128h64v64H288zm0 128h64v64H288z"]},ii={prefix:"vs",iconName:"home",icon:[512,512,[],"f000","m267.52 43.84 203.52 185.6 -22.72 22.72L416 222.848v208.832l-16 16h-96l-16 -16v-112H224v112l-16 16h-96l-16 -16V223.104L64 252.16l-22.72 -22.72 203.2 -185.6h23.04zM128 194.016v221.664h64v-112l16 -16h96l16 16v112h64V193.824L256 77.76 128 194.016z"]},oi={prefix:"vs",iconName:"info",icon:[512,512,[],"f000","M274.176 32.992A217.6 217.6 0 0 1 408.32 97.6a225.92 225.92 0 0 1 14.72 300.48 219.2 219.2 0 0 1 -274.56 55.68 224 224 0 0 1 -99.84 -112 227.84 227.84 0 0 1 -7.36 -150.72 224 224 0 0 1 88.64 -121.28 217.6 217.6 0 0 1 144.256 -36.768zM289.28 444.16a188.48 188.48 0 0 0 109.12 -66.24 194.24 194.24 0 0 0 -12.8 -257.92 186.24 186.24 0 0 0 -237.76 -23.68 193.92 193.92 0 0 0 16 329.28 185.92 185.92 0 0 0 125.44 18.56zM236 192h40V160h-40v32zm40 32v128h-40V224h40z"]},ai={prefix:"vs",iconName:"json",icon:[512,512,[],"f000","M192 95.488V64h-2.88c-10.016 0 -19.712 1.984 -29.088 5.92a74.56 74.56 0 0 0 -24.8 16.96 71.36 71.36 0 0 0 -15.776 24.096v0.032a113.344 113.344 0 0 0 -6.336 26.56v0.064a194.56 194.56 0 0 0 -0.768 27.616c0.384 9.28 0.576 18.56 0.576 27.808 0 6.496 -1.28 12.576 -3.744 18.304v0.032a48.128 48.128 0 0 1 -24.48 25.184 44.032 44.032 0 0 1 -17.856 3.68H64v31.488h2.88c6.24 0 12.16 1.28 17.792 3.872l0.032 0.032c5.696 2.496 10.528 5.888 14.56 10.176l0.064 0.064c4.16 4.16 7.456 9.12 9.824 14.88l0.032 0.064c2.496 5.76 3.744 11.776 3.744 18.112 0 9.28 -0.192 18.56 -0.576 27.808 -0.384 9.472 -0.128 18.72 0.768 27.84v0.032c1.056 9.056 3.168 17.856 6.304 26.368v0.032c3.392 8.736 8.672 16.768 15.808 24.096 7.136 7.36 15.424 13.024 24.8 16.96 9.376 3.936 19.072 5.92 29.12 5.92H192v-31.488h-2.88c-6.4 0 -12.384 -1.216 -18.016 -3.68a51.616 51.616 0 0 1 -14.624 -10.24 53.088 53.088 0 0 1 -9.888 -14.944c-2.368 -5.76 -3.52 -11.84 -3.52 -18.336 0 -7.296 0.096 -14.496 0.352 -21.504 0.256 -7.296 0.256 -14.4 0 -21.28a148.448 148.448 0 0 0 -1.76 -20.48 85.824 85.824 0 0 0 -5.376 -19.488A73.088 73.088 0 0 0 112.704 256a73.088 73.088 0 0 0 23.616 -30.56c2.56 -6.144 4.32 -12.576 5.376 -19.264 1.056 -6.72 1.632 -13.536 1.76 -20.48 0.256 -7.04 0.256 -14.144 0 -21.312 -0.256 -7.168 -0.384 -14.4 -0.384 -21.696a47.04 47.04 0 0 1 28.064 -43.328 42.56 42.56 0 0 1 18.016 -3.872H192zm128 321.024V448h2.88c10.016 0 19.712 -1.984 29.088 -5.92 9.376 -3.936 17.664 -9.6 24.8 -16.96 7.136 -7.36 12.416 -15.36 15.776 -24.096v-0.032c3.2 -8.512 5.28 -17.376 6.336 -26.56v-0.064c0.896 -8.96 1.152 -18.144 0.768 -27.616 -0.384 -9.28 -0.576 -18.56 -0.576 -27.808 0 -6.496 1.28 -12.576 3.744 -18.304v-0.032a48.064 48.064 0 0 1 24.48 -25.184 44.16 44.16 0 0 1 17.856 -3.68H448v-31.488h-2.88c-6.272 0 -12.192 -1.28 -17.824 -3.872l-0.032 -0.032a44.032 44.032 0 0 1 -14.56 -10.176l-0.064 -0.064a45.28 45.28 0 0 1 -9.824 -14.88v-0.064a44.96 44.96 0 0 1 -3.776 -18.112c0 -9.28 0.192 -18.56 0.576 -27.808a197.568 197.568 0 0 0 -0.768 -27.84v-0.032a113.184 113.184 0 0 0 -6.304 -26.368v-0.032a71.36 71.36 0 0 0 -15.808 -24.096 74.592 74.592 0 0 0 -24.8 -16.96 74.4 74.4 0 0 0 -29.12 -5.92H320v31.488h2.88c6.4 0 12.384 1.216 17.984 3.68 5.568 2.624 10.432 6.016 14.624 10.24 4.064 4.288 7.36 9.28 9.888 14.944 2.368 5.76 3.52 11.84 3.52 18.336 0 7.296 -0.096 14.464 -0.352 21.504 -0.256 7.296 -0.256 14.4 0 21.28 0.128 7.104 0.704 13.92 1.76 20.48 1.056 6.848 2.848 13.312 5.376 19.488a73.12 73.12 0 0 0 23.616 30.56 73.12 73.12 0 0 0 -23.616 30.56 86.048 86.048 0 0 0 -5.376 19.264c-1.056 6.72 -1.632 13.536 -1.76 20.48a292.8 292.8 0 0 0 0 21.312c0.256 7.168 0.384 14.4 0.384 21.696a47.072 47.072 0 0 1 -28.064 43.328 42.56 42.56 0 0 1 -18.016 3.872H320z"]},ri={prefix:"vs",iconName:"kebab-vertical",icon:[512,512,[],"f000","M238.208 442.624a32 32 0 1 0 35.552 -53.216 32 32 0 0 0 -35.52 53.184zM256 288a32 32 0 1 1 0 -64 32 32 0 0 1 0 64zm0 -160a32 32 0 1 1 0 -64 32 32 0 0 1 0 64z"]},li={prefix:"vs",iconName:"law",icon:[512,512,[],"f000","M468.16 224 416 96h32V64H288V32H256v32H96v32h32L76.16 224H64v32h4.8c4.992 15.936 15.136 29.76 28.8 39.36a79.04 79.04 0 0 0 92.8 0A78.08 78.08 0 0 0 219.52 256H224V224h-14.4L156.16 96H256v256H192l-12.48 5.76 -64 80.32 12.48 25.92h288l12.48 -25.92 -64 -80.32L352 352H288V96h100.16l-53.44 128H320v32h4.8a79.36 79.36 0 0 0 150.72 0H480V224h-11.84zM167.04 272.32a48.64 48.64 0 0 1 -23.04 6.08 46.4 46.4 0 0 1 -22.72 -6.08A47.04 47.04 0 0 1 104 256h80a48.64 48.64 0 0 1 -16.96 16.32zM175.04 224h-64l32 -76.8 32 76.8zm169.28 160L384 432H160L199.68 384h144.64zm56.96 -236.16 32 76.8h-64l32 -76.8zm21.76 125.12a45.12 45.12 0 0 1 -23.04 6.08 43.2 43.2 0 0 1 -22.72 -6.08 49.6 49.6 0 0 1 -17.28 -16.96h80a43.84 43.84 0 0 1 -16.96 16.96z"]},ci={prefix:"vs",iconName:"layers",icon:[512,512,[],"f000","m244.064 34.784 17.856 -0.128 194.912 129.184 -0.096 26.752L261.824 317.44l-17.632 -0.128 -189.12 -126.816 -0.096 -26.496 189.12 -129.184Zm9.152 32.512 -160.672 109.76 160.672 107.776 165.632 -107.776 -165.632 -109.76ZM57.376 272l186.816 125.28 17.6 0.128L454.592 272h-58.656l-142.688 92.8 -138.4 -92.8H57.376Zm186.816 205.28L57.376 352h57.44l138.4 92.8 142.688 -92.8h58.656l-192.736 125.44 -17.632 -0.16Z"]},hi={prefix:"vs",iconName:"link-external",icon:[512,512,[],"f000","M48 32H192v32H64v384h384v-128h32v144l-16 16h-416l-16 -16v-416l16 -16zm432 16V256h-32V86.624L231.776 302.88l-22.624 -22.656L425.376 64H256V32h208l16 16z"]},Pn={prefix:"vs",iconName:"link",icon:[512,512,[],"f000","M140.8 96h98.72a108.8 108.8 0 0 1 108.8 108.8v6.56A108.8 108.8 0 0 1 239.52 320H224V288h15.52A76.8 76.8 0 0 0 316.16 211.52V204.8A76.8 76.8 0 0 0 239.68 128H140.8A76.8 76.8 0 0 0 64 204.8v6.56A76.608 76.608 0 0 0 128 286.72v32a108.8 108.8 0 0 1 -96 -107.2V204.8A108.96 108.96 0 0 1 140.8 96zM384 225.28v-32a108.8 108.8 0 0 1 96 107.52v6.56A108.96 108.96 0 0 1 371.36 416h-98.88A108.8 108.8 0 0 1 163.84 307.52V300.8A108.8 108.8 0 0 1 272.48 192H288v32h-15.52A76.8 76.8 0 0 0 195.84 300.8v6.56A76.8 76.8 0 0 0 272.48 384h98.88A76.8 76.8 0 0 0 448 307.52V300.8a76.608 76.608 0 0 0 -64 -75.52z"]},di={prefix:"vs",iconName:"list-ordered",icon:[512,512,[],"f000","M73.184 74.432 86.144 64h21.664v96h-22.656V89.344l-11.968 8.992v-23.904zM160 96h320v32H160V96zm0 128h320v32H160V224zm320 128H160v32h320v-32zM119.744 244.032l0.928 -1.248 2.08 -2.88a26.88 26.88 0 0 0 4.992 -16.224c0 -3.84 -0.64 -7.68 -1.824 -11.328a27.136 27.136 0 0 0 -15.744 -16.928 35.936 35.936 0 0 0 -14.464 -2.624 35.008 35.008 0 0 0 -14.656 2.784 27.744 27.744 0 0 0 -15.328 16.704A33.216 33.216 0 0 0 64 222.624v1.6h25.92v-1.6a9.6 9.6 0 0 1 1.472 -5.024 5.568 5.568 0 0 1 1.824 -1.728 6.08 6.08 0 0 1 5.504 0 6.016 6.016 0 0 1 1.792 1.92 7.68 7.68 0 0 1 0.992 2.592 14.24 14.24 0 0 1 -1.152 9.28 41.888 41.888 0 0 1 -3.84 5.824l-32 36.416 -0.384 0.416v17.28h63.616v-22.4h-28.8l20.8 -23.168zm-1.184 122.144c1.472 1.024 2.752 2.24 3.84 3.648a26.912 26.912 0 0 1 5.344 17.6c0 3.424 -0.544 6.816 -1.6 10.048a25.344 25.344 0 0 1 -15.584 16 41.216 41.216 0 0 1 -15.36 2.528c-3.68 0 -7.36 -0.512 -10.912 -1.568a30.08 30.08 0 0 1 -8.256 -3.936 24.032 24.032 0 0 1 -5.824 -5.664 34.016 34.016 0 0 1 -3.712 -6.4A33.216 33.216 0 0 1 64 386.496v-1.568h26.048v1.568c0 0.864 0.096 1.76 0.288 2.624a6.624 6.624 0 0 0 0.96 2.368 4.48 4.48 0 0 0 1.696 1.664 6.4 6.4 0 0 0 5.024 0.256 5.088 5.088 0 0 0 1.792 -1.248 7.04 7.04 0 0 0 1.344 -2.4 13.344 13.344 0 0 0 0.544 -4.032 15.456 15.456 0 0 0 -0.704 -5.216 6.4 6.4 0 0 0 -1.632 -2.56 4.416 4.416 0 0 0 -1.92 -0.928 17.184 17.184 0 0 0 -2.464 -0.224h-5.152v-20.64h5.376a7.712 7.712 0 0 0 2.208 -0.352 5.248 5.248 0 0 0 2.08 -1.088 5.6 5.6 0 0 0 1.536 -2.144 9.152 9.152 0 0 0 0.672 -3.872 8.96 8.96 0 0 0 -0.512 -3.2 5.312 5.312 0 0 0 -3.104 -3.168 6.4 6.4 0 0 0 -4.992 0.224 5.248 5.248 0 0 0 -1.76 1.696 11.008 11.008 0 0 0 -1.28 4.992v1.568H64v-1.568a31.584 31.584 0 0 1 5.76 -17.408 25.6 25.6 0 0 1 5.728 -5.952 27.84 27.84 0 0 1 8.384 -4.256c3.648 -1.152 7.488 -1.696 11.328 -1.632 3.712 -0.032 7.392 0.32 11.008 1.152 2.944 0.672 5.76 1.76 8.416 3.2a24.224 24.224 0 0 1 10.24 10.176 23.36 23.36 0 0 1 2.88 11.104 25.92 25.92 0 0 1 -5.344 16.896 17.984 17.984 0 0 1 -3.84 3.648z"]},_n={prefix:"vs",iconName:"loading",icon:[512,512,[],"f000","M445.344 224A192.064 192.064 0 0 0 66.656 224H34.272a224.064 224.064 0 0 1 443.456 0h-32.384z"]},ui={prefix:"vs",iconName:"lock",icon:[512,512,[],"f000","M416 224h-32V160a128 128 0 1 0 -256 0v64H96L64 256v192l32 32h320l32 -32V256l-32 -32zM160 160a96 96 0 1 1 192 0v64H160V160zm256 288H96V256h320v192z"]},pi={prefix:"vs",iconName:"markdown",icon:[512,512,[],"f000","M203.04 160h67.2v209.056H223.776l1.76 -169.92 -56.768 169.92H130.304l-57.76 -169.92c1.28 20.608 1.92 169.92 1.92 169.92H32V160h68.992s48.896 143.776 50.464 153.824L203.04 160zm214.72 115.744v-112H355.52v112H293.312l93.344 93.312L480 275.744h-62.24z"]},mi={prefix:"vs",iconName:"menu",icon:[512,512,[],"f000","M512 160H0V128h512v32zm0 256H0v-32h512v32zm0 -128.256H0V256h512v31.744z"]},fi={prefix:"vs",iconName:"new-file",icon:[512,512,[],"f000","m304 35.2 108.8 112 3.2 12.8v64h-32V192H256V64H96v352h128v32H80l-16 -16v-384l16 -16h214.4l9.6 3.2zM288 64v96h92.8L288 64zm128 448h-32v-96H288v-32h96V288h32v96h96v32h-96v96z"]},vi={prefix:"vs",iconName:"new-folder",icon:[512,512,[],"f000","M464 64H246.72l-27.2 -27.2L208.32 32h-160l-16 16v352l16 16H224v-32H63.68V192h143.68l11.2 -4.8 27.52 -27.52H448v48l-0.032 16.32h32.352V80L464 64zm-16.32 64h-208l-11.2 4.8 -27.52 27.52H64v-96h137.28l27.2 27.2 11.52 4.8H448l-0.32 31.68zM416 512h-32v-96H288v-32h96V288h32v96h96v32h-96v96z"]},gi={prefix:"vs",iconName:"paintcan",icon:[512,512,[],"f000","m465.28 377.952 -36.48 -99.84v-1.92l-157.12 -157.12v-39.68a53.12 53.12 0 0 0 -3.52 -18.56 47.36 47.36 0 0 0 -26.56 -25.6 45.44 45.44 0 0 0 -18.56 -3.2 47.04 47.04 0 0 0 -47.36 47.36v104.32l-97.92 96a48.64 48.64 0 0 0 0 67.84l116.16 116.16c4.48 4.512 9.824 8.096 15.68 10.56a48.96 48.96 0 0 0 36.48 0 48.32 48.32 0 0 0 15.68 -10.56l157.76 -157.44 -21.12 70.4a38.08 38.08 0 0 0 0 14.72c1.056 4.864 3.136 9.472 6.08 13.44 3.136 3.872 6.912 7.136 11.2 9.6 4.48 2.24 9.408 3.52 14.4 3.84a32 32 0 0 0 15.36 -2.88 36.48 36.48 0 0 0 12.48 -9.28 31.36 31.36 0 0 0 7.04 -14.08c1.024 -4.64 1.12 -9.408 0.32 -14.08zm-256 -298.56a14.72 14.72 0 0 1 0 -6.4 16.64 16.64 0 0 1 3.84 -5.44 20.48 20.48 0 0 1 5.76 -3.2 16 16 0 0 1 6.72 0 16 16 0 0 1 10.24 4.8 16 16 0 0 1 3.84 10.56v40.32l-32 32 1.6 -72.64zm32 363.2a11.52 11.52 0 0 1 -5.12 3.52 15.04 15.04 0 0 1 -12.16 0 11.552 11.552 0 0 1 -5.12 -3.52l-116.16 -115.84a16 16 0 0 1 0 -22.72l139.2 -139.2v91.2a23.68 23.68 0 0 0 -7.68 17.6 24 24 0 1 0 37.44 -17.6v-90.56l123.2 123.84 -153.6 153.28z"]},bi={prefix:"vs",iconName:"pass-filled",icon:[512,512,[],"f000","M256 480A224 224 0 1 0 256 32a224 224 0 0 0 0 448zm-32.64 -132.16h-22.72L128 275.2l22.72 -22.72 61.44 61.44 134.4 -134.72 22.72 22.72 -145.92 145.92z"]},Mi={prefix:"vs",iconName:"pass",icon:[512,512,[],"f000","M200.64 347.84h22.72l145.92 -145.92 -22.72 -22.72 -134.4 134.72 -61.44 -61.44L128 275.2l72.64 72.64zM275.2 32c51.2 3.2 99.2 28.8 134.4 64 41.6 44.8 64 99.2 64 163.2 0 51.2 -19.2 99.2 -51.2 140.8 -32 38.4 -76.8 67.2 -128 76.8 -51.2 9.6 -102.4 3.2 -147.2 -22.4 -44.8 -25.6 -80 -64 -99.2 -112C28.8 294.4 25.6 240 41.6 192c16 -51.2 44.8 -92.8 89.6 -121.6C172.8 41.6 224 28.8 275.2 32zm16 412.8c41.6 -9.6 80 -32 108.8 -67.2 25.6 -35.2 41.6 -76.8 38.4 -121.6 0 -51.2 -19.2 -102.4 -54.4 -137.6 -32 -32 -70.4 -51.2 -115.2 -54.4 -41.6 -3.2 -86.4 6.4 -121.6 32 -35.2 25.6 -60.8 60.8 -73.6 105.6 -12.8 41.6 -12.8 86.4 6.4 128 19.2 41.6 48 73.6 86.4 96 38.4 22.4 83.2 28.8 124.8 19.2z"]},xi={prefix:"vs",iconName:"play",icon:[512,512,[],"f000","M120.96 64 96 77.12v384l24.96 13.44 288 -192V256l-288 -192zM128 431.36V107.2l243.2 162.24L128 431.36z"]},Ci={prefix:"vs",iconName:"preview",icon:[512,512,[],"f000","M64 64h384l32 32v320l-32 32H64l-32 -32V96l32 -32zm0 352h384V96H64v320zm352 -288H96v96h320V128zm-32 64H128V160h256v32zm-96 192h128V256H288v128zm32 -96h64v64h-64V288zM224 256H96v32h128V256zm-128 96h128v32H96v-32z"]},Ii={prefix:"vs",iconName:"record-keys",icon:[512,512,[],"f000","M448 96H96a32 32 0 0 0 -32 32v224a32 32 0 0 0 32 32h352a32 32 0 0 0 32 -32V128a32 32 0 0 0 -32 -32zm0 256H96V128h352v224zm-96 -192h-32v32h32V160zm-32 64H288v32h32V224zm64 -64h32v32h-32V160zm32 128h-32v32h32V288zM192 288h160v32H192V288zm224 -64h-64v32h64V224zM256 160h32v32H256V160zm0 64H224v32h32V224zM128 288h32v32H128V288zm0 -128h32v32H128V160zm96 0H192v32h32V160zM128 224h64v32H128V224z"]},yi={prefix:"vs",iconName:"refresh",icon:[512,512,[],"f000","M149.792 96H64V64h112l16 16V192H160V128a160 160 0 1 0 144.96 -24.352l9.664 -30.528A192 192 0 1 1 149.792 96z"]},Si={prefix:"vs",iconName:"remove",icon:[512,512,[],"f000","M480 256H32V224h448v32z"]},wi={prefix:"vs",iconName:"reply",icon:[512,512,[],"f000","m201.792 68.672 -128.64 128.64v22.656l128.64 128.64 22.656 -22.624L121.824 223.36H182.08c90.016 0 147.36 19.36 182.56 55.328 35.264 36 51.68 92.064 51.68 173.472v11.2h32v-11.2c0 -84.672 -16.864 -151.04 -60.8 -195.872C343.52 211.36 275.744 191.36 182.08 191.36H124.384l100.064 -100.032 -22.656 -22.656z"]},Ni={prefix:"vs",iconName:"ruby",icon:[512,512,[],"f000","m32 230.08 212.48 212.48h23.04L480 230.08v-23.04l-106.24 -106.24 -11.52 -4.8H149.76l-11.52 4.8L32 207.04v23.04zm224 177.92L66.56 218.56 156.48 128h199.04l89.92 90.56L256 408zm0 -247.36h86.08l57.92 57.92 -144 140.8V160.64z"]},Ei={prefix:"vs",iconName:"save",icon:[512,512,[],"f000","m427.296 36.672 48 48L480 96v368l-16 16h-416l-16 -16v-416l16 -16H416l11.296 4.672zM64 64v384h384V102.656L409.376 64H352v128H128V64H64zm192 0v96h64V64H256z"]},Un={prefix:"vs",iconName:"search",icon:[512,512,[],"f000","M325.333 0a176 176 0 0 0 -131.84 292.693L21.333 488.107l23.893 21.333 171.733 -194.56A176.021 176.021 0 1 0 325.333 0.213V0zm0 320a144 144 0 1 1 0 -288 144 144 0 0 1 0 288z"]},Ti={prefix:"vs",iconName:"split-horizontal",icon:[512,512,[],"f000","M448 32H96L64 64v352l32 32h352l32 -32V64l-32 -32zM256 416H96V64h160v352zm192 0H288V64h160v352z"]},Li={prefix:"vs",iconName:"symbol-operator",icon:[512,512,[],"f000","M91.936 35.2c10.72 4.352 19.264 12.736 23.84 23.36 2.304 5.44 3.488 11.264 3.424 17.184a42.88 42.88 0 0 1 -19.52 36.32 43.488 43.488 0 0 1 -24.096 7.136A43.36 43.36 0 0 1 32 75.584a43.36 43.36 0 0 1 26.56 -40.192A43.84 43.84 0 0 1 91.936 35.2zm-9.536 56.48a17.632 17.632 0 0 0 10.624 -16 17.536 17.536 0 1 0 -10.624 16zM205.76 35.488 35.52 205.76l21.952 21.984 170.24 -170.24 -21.952 -21.984zM368 288h32v80H480v32h-80V480h-32v-80H288v-32h80V288zm-183.424 16.8 22.624 22.624L150.624 384l56.576 56.576 -22.624 22.624L128 406.624l-56.576 56.576 -22.624 -22.624L105.376 384l-56.576 -56.576 22.624 -22.624L128 361.376l56.576 -56.576zm43.2 -134.24a43.296 43.296 0 0 0 -40.192 -26.56 43.36 43.36 0 0 0 -40.192 26.56 43.584 43.584 0 0 0 40.224 60.64A43.456 43.456 0 0 0 227.776 170.56zm-24.096 23.84a17.696 17.696 0 0 1 -9.248 9.28 17.504 17.504 0 0 1 -19.168 -3.744 16.928 16.928 0 0 1 -3.744 -5.536 17.408 17.408 0 0 1 22.912 -22.88 18.08 18.08 0 0 1 5.536 3.712 17.568 17.568 0 0 1 3.712 19.168zM448 96h-128v32h128V96z"]},Di={prefix:"vs",iconName:"symbol-structure",icon:[512,512,[],"f000","M64 64 32 96v96l32 32h384l32 -32V96l-32 -32H64zm0 32h384v96H64V96zm-32 224 32 -32h96l32 32v96l-32 32H64l-32 -32v-96zm64 0H64v96h96v-96H96zm224 0 32 -32h96l32 32v96l-32 32h-96l-32 -32v-96zm64 0h-32v96h96v-96h-64z"]},Ai={prefix:"vs",iconName:"terminal",icon:[512,512,[],"f000","M64 32 32 64v384L64 480h384l32 -32V64L448 32H64zM64 448V64h384v384H64zm120.661 -85.547 22.144 22.635 112.213 -111.851v-19.456l-112.213 -112.213 -22.08 22.613 97.92 100.309 -97.984 97.963z"]},ki={prefix:"vs",iconName:"tools",icon:[512,512,[],"f000","m472.736 111.52 -24.96 -5.888 -67.456 67.072 -38.208 -38.912 65.792 -69.024 -5.76 -25.344a141.44 141.44 0 0 0 -43.104 -7.296 116.48 116.48 0 0 0 -46.624 8.96 122.368 122.368 0 0 0 -37.952 26.88 119.552 119.552 0 0 0 -28 40.48 126.016 126.016 0 0 0 0 94.912 10730.912 10730.912 0 0 0 -197.536 199.488c-6.72 8.8 -9.92 19.776 -9.088 30.816a44.896 44.896 0 0 0 14.848 30.944c3.968 4.32 8.704 7.904 13.984 10.496 5.44 2.4 11.296 3.776 17.216 4.064 10.112 -0.192 19.808 -4.032 27.328 -10.784 49.536 -46.624 144.448 -142.4 198.368 -198.528 14.624 6.208 30.336 9.408 46.208 9.376a119.552 119.552 0 0 0 85.664 -36.256 124.32 124.32 0 0 0 35.552 -87.36 134.752 134.752 0 0 0 -6.272 -44.096zM93.856 445.696a9.92 9.92 0 0 1 -4.32 2.24 13.984 13.984 0 0 1 -4.768 0 11.072 11.072 0 0 1 -4.608 -1.824 10.752 10.752 0 0 1 -3.648 -3.52c-4.48 -4.576 -8.672 -13.28 -4.48 -18.176 43.84 -46.624 134.112 -137.76 190.56 -193.472 3.2 4.224 6.72 8.256 10.496 12.032 3.776 3.936 7.84 7.584 12.16 10.912 -54.592 56 -143.616 146.048 -191.36 191.808zm355.776 -290.08c0.064 24.48 -9.472 48 -26.624 65.536a91.552 91.552 0 0 1 -128.224 0 95.744 95.744 0 0 1 -20.32 -100.384A87.936 87.936 0 0 1 324.48 69.76a88.32 88.32 0 0 1 34.304 -6.848h8.128L308.768 122.848v22.272l60.64 60.352h21.12l59.104 -58.112v8.256zM103.68 214.016h48.992l22.56 22.944 21.696 -21.568 -21.28 -21.696V192.32l1.824 -52.768 -7.04 -13.984 -91.52 -60.224 -18.912 2.112 -26.592 27.168 -2.112 19.168 58.816 93.376 13.568 6.88zm-30.24 -116.224L147.488 146.56 146.24 182.496H111.808L64.064 106.912l9.376 -9.12zm227.36 222.72 21.568 -21.536 99.392 101.92a47.328 47.328 0 0 1 0 65.248 44.928 44.928 0 0 1 -49.568 10.08 41.92 41.92 0 0 1 -13.984 -10.08l-100.544 -102.496 21.728 -21.696 100.224 102.208a12.864 12.864 0 0 0 4.896 3.36 15.264 15.264 0 0 0 11.488 0 12.896 12.896 0 0 0 4.896 -3.36 13.952 13.952 0 0 0 3.2 -4.896 16.8 16.8 0 0 0 1.152 -5.888 17.504 17.504 0 0 0 -1.12 -5.888 13.952 13.952 0 0 0 -3.2 -4.896L300.8 320.512z"]},Oi={prefix:"vs",iconName:"trash",icon:[512,512,[],"f000","M320 96h96v32h-32v288l-32 32H128l-32 -32V128H64V96h96V64a32 32 0 0 1 32 -32h96a32 32 0 0 1 32 32v32zM288 64H192v32h96V64zM128 416h224V128H128v288zm64 -256H160v224h32V160zm32 0h32v224H224V160zm64 0h32v224H288V160z"]},Bn={prefix:"vs",iconName:"triangle-down",icon:[512,512,[],"f000","M64 177.92 77.216 160h358.208l12.576 17.28L267.936 352h-26.464L64 177.92z"]},Hi={prefix:"vs",iconName:"triangle-right",icon:[512,512,[],"f000","M177.92 448 160 434.784V76.576L177.28 64 352 244.064v26.464L177.92 448z"]},Kn={prefix:"vs",iconName:"warning",icon:[512,512,[],"f000","M241.92 32h28.16l209.28 392.32 -14.08 23.68H46.08L32 424.32 241.92 32zM256 72.96 72.96 416H438.4L256 72.96zM276 384v-32h-40v32h40zm-40 -64V192h40v128h-40z"]},Vi={prefix:"vs",iconName:"watch",icon:[512,512,[],"f000","M240 288h64V256H256V176H224v96l16 16zm-64 -170.592A159.936 159.936 0 0 0 96 256a159.936 159.936 0 0 0 80 138.592V464l16 16h128l16 -16v-69.408A159.936 159.936 0 0 0 416 256a159.936 159.936 0 0 0 -80 -138.592V48L320 32H192l-16 16v69.408zM384 256a128 128 0 1 1 -256 0 128 128 0 0 1 256 0z"]},zi={prefix:"dh",iconName:"arrow-to-bottom",icon:[512,512,[],"f000","m99.2 224 160 160h22.4l160 -160 -22.4 -22.4L288 332.8V64H256v268.8L124.8 201.6l-25.6 22.4zM96 416h352v32H96z"]},Ri={prefix:"dh",iconName:"arrow-to-top",icon:[512,512,[],"f000","m444.8 288 -160 -160h-22.4l-160 160 22.4 22.4L256 179.2V448h32V179.2l131.2 131.2 25.6 -22.4zm3.2 -192H96V64h352v32z"]},Fi={prefix:"dh",iconName:"check-square",icon:[512,512,[],"f000","M425.6 64H86.4l-22.4 22.4v342.4l22.4 19.2h342.4l22.4 -22.4V86.4l-25.6 -22.4zm-188.8 284.8h-22.4L144 278.4l22.4 -22.4 60.8 60.8 134.4 -134.4 22.4 22.4 -147.2 144z"]},$n={prefix:"dh",iconName:"exclamation",icon:[512,512,[],"f000","M275.2 384v-32H236.8v32h38.4zm-38.4 -64V128h38.4v192H236.8z"]},Pi={prefix:"dh",iconName:"eye-slash",icon:[512,512,[],"f000","M480 256c0 -32 -99.2 -160 -224 -160 -32 0 -64 9.6 -92.8 22.4L70.4 25.6 25.6 70.4 435.2 480l44.8 -44.8 -76.8 -76.8C451.2 320 480 272 480 256zM256 131.2c96 0 176 92.8 188.8 124.8 -6.4 16 -32 48 -67.2 76.8L316.8 272c3.2 -6.4 3.2 -9.6 3.2 -16 0 -35.2 -28.8 -64 -64 -64 -6.4 0 -9.6 0 -16 3.2L192 147.2c19.2 -9.6 41.6 -16 64 -16zm0 249.6C160 380.8 80 288 67.2 256c6.4 -9.6 19.2 -32 41.6 -54.4l-25.6 -25.6C51.2 208 32 243.2 32 256c0 32 99.2 160 224 160 19.2 0 38.4 -3.2 57.6 -9.6l-28.8 -28.8c-9.6 3.2 -19.2 3.2 -28.8 3.2z"]},_i={prefix:"dh",iconName:"eye",icon:[512,512,[],"f000","M256 96C131.2 96 32 224 32 256s99.2 160 224 160 224 -128 224 -160 -99.2 -160 -224 -160zm0 284.8C160 380.8 80 288 67.2 256 80 227.2 160 131.2 256 131.2S432 224 444.8 256c-12.8 28.8 -92.8 124.8 -188.8 124.8zM256 192c-35.2 0 -64 28.8 -64 64s28.8 64 64 64 64 -28.8 64 -64 -28.8 -64 -64 -64zm0 92.8c-16 0 -28.8 -12.8 -28.8 -28.8s12.8 -28.8 28.8 -28.8 28.8 12.8 28.8 28.8 -12.8 28.8 -28.8 28.8z"]},Ui={prefix:"dh",iconName:"file-csv",icon:[512,512,[],"f000","m444.8 140.8 -105.6 -105.6 -12.8 -3.2H80l-16 16V224h32V64h192v112l16 16H416v32h32V153.6l-3.2 -12.8zM320 160V64l96 96h-96zM80 256l-16 16v192l16 16h352l16 -16v-192l-16 -16h-352zM416 416v32H96V288h320v128zm-217.6 -3.2c-6.4 3.2 -16 3.2 -25.6 3.2 -16 0 -25.6 -3.2 -35.2 -12.8 -9.6 -6.4 -12.8 -19.2 -12.8 -32 0 -16 3.2 -28.8 12.8 -38.4 9.6 -9.6 22.4 -12.8 38.4 -12.8 9.6 0 16 0 22.4 3.2v19.2c-6.4 -3.2 -12.8 -6.4 -22.4 -6.4 -9.6 0 -16 3.2 -22.4 9.6 -6.4 6.4 -9.6 12.8 -9.6 22.4 0 9.6 3.2 16 6.4 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16 -3.2 22.4 -6.4v19.2zm19.2 0v-22.4c3.2 3.2 9.6 6.4 12.8 6.4 3.2 3.2 9.6 3.2 12.8 3.2h6.4c3.2 0 3.2 0 6.4 -3.2l3.2 -3.2v-3.2c0 -3.2 0 -3.2 -3.2 -6.4 3.2 0 0 0 0 -3.2 -3.2 0 -3.2 -3.2 -6.4 -3.2s-6.4 -3.2 -9.6 -3.2c-6.4 -3.2 -12.8 -6.4 -16 -12.8 -3.2 -3.2 -6.4 -9.6 -6.4 -16s0 -9.6 3.2 -12.8c3.2 -3.2 3.2 -6.4 9.6 -9.6 3.2 0 6.4 -3.2 12.8 -3.2h25.6c3.2 0 6.4 0 9.6 3.2v19.2s-3.2 -3.2 -6.4 -3.2 -3.2 0 -6.4 -3.2h-19.2c-3.2 0 -3.2 0 -6.4 3.2l-3.2 3.2v6.4l3.2 3.2s3.2 3.2 6.4 3.2 3.2 3.2 6.4 3.2c3.2 3.2 6.4 3.2 9.6 6.4 3.2 3.2 6.4 3.2 6.4 6.4 3.2 3.2 3.2 6.4 6.4 6.4 0 3.2 3.2 6.4 3.2 9.6 0 6.4 0 9.6 -3.2 12.8 -3.2 3.2 -3.2 6.4 -9.6 9.6 3.2 3.2 0 6.4 -3.2 6.4h-32c-3.2 0 -6.4 -3.2 -12.8 -3.2zm169.6 -92.8 -32 96h-25.6l-32 -96h22.4l19.2 67.2c0 3.2 3.2 6.4 3.2 9.6 0 -3.2 0 -6.4 3.2 -9.6l19.2 -67.2h22.4z"]},Bi={prefix:"dh",iconName:"file-download",icon:[512,512,[],"f000","m438.4 137.6 -96 -96L320 32H128L96 64v384l32 32h288l32 -32V160l-9.6 -22.4zM416 448H128V64h160v128h128v256zm-96 -288V64l96 96h-96zm-134.4 182.4 76.8 76.8h22.4l76.8 -76.8 -25.6 -22.4L288 368V227.2H256v140.8L208 320l-22.4 22.4z"]},Ki={prefix:"dh",iconName:"file-search",icon:[512,512,[],"f000","M412.8 147.2 304 35.2 294.4 32H80l-16 16v384l16 16H224v-32H96V64h160v128h128v32h32V160l-3.2 -12.8zM288 160V64l92.8 96H288zm224 329.6 -92.8 -92.8c9.6 -16 16 -32 16 -51.2 0 -51.2 -41.6 -89.6 -89.6 -89.6C297.6 256 256 297.6 256 345.6s41.6 89.6 89.6 89.6c19.2 0 38.4 -6.4 51.2 -16l92.8 92.8 22.4 -22.4zm-224 -144c0 -32 25.6 -57.6 57.6 -57.6s57.6 25.6 57.6 57.6 -25.6 57.6 -57.6 57.6S288 377.6 288 345.6z"]},$i={prefix:"dh",iconName:"file-spreadsheet",icon:[512,512,[],"f000","m438.4 137.6 -96 -96L320 32H128L96 64v384l32 32h288l32 -32V160l-9.6 -22.4zM416 448H128V64h160v128h128v256zm-96 -288V64l96 96h-96zm64 99.2 -19.2 -19.2H179.2l-19.2 19.2v137.6l19.2 19.2h185.6l19.2 -19.2V259.2zm-150.4 134.4H182.4v-48h51.2v48zm0 -115.2v48H182.4V278.4m115.2 115.2H246.4v-48h48v48zm0 -64H246.4V278.4h48v51.2zm64 64H310.4v-48h48v48zm-51.2 -64V278.4h48v48H310.4z"]},Wi={prefix:"dh",iconName:"filter-filled",icon:[512,512,[],"f000","M480 64v54.4l-160 153.6V448H192V268.8L32 118.4V64h448z"]},Gi={prefix:"dh",iconName:"filter-slash",icon:[512,512,[],"f000","M480 118.4V64H108.8L70.4 25.6 25.6 70.4l406.4 406.4 44.8 -44.8L320 275.2v-6.4l160 -150.4zM288 416H224v-86.4l-32 -32V448h128v-22.4l-32 -32v22.4zM140.8 96H448v6.4L294.4 249.6 140.8 96z"]},qi={prefix:"dh",iconName:"freeze",icon:[512,512,[],"f000","m438.4 300.8 -19.2 -28.8 -60.8 35.2L272 256l86.4 -51.2 60.8 35.2 19.2 -28.8 -44.8 -25.6 48 -28.8 -16 -25.6 -48 28.8V108.8h-35.2v67.2L256 227.2V128l60.8 -35.2 -16 -28.8 -44.8 25.6V32H224v57.6L179.2 64l-16 28.8L224 128v99.2L137.6 176V108.8H102.4V160l-48 -28.8 -16 25.6 48 28.8 -44.8 25.6 19.2 28.8 60.8 -35.2L208 256 121.6 307.2 60.8 272l-19.2 28.8 44.8 25.6 -48 28.8 16 25.6 48 -28.8v51.2h35.2v-67.2L224 284.8V384l-60.8 35.2 16 28.8 44.8 -25.6V480h32v-57.6l44.8 25.6 16 -28.8L256 384V284.8l86.4 51.2v67.2h35.2V352l48 28.8 16 -25.6 -48 -28.8z"]},ji={prefix:"dh",iconName:"gear-filled",icon:[512,512,[],"f000","m480 211.2 -76.8 -12.8L448 131.2l-64 -64 -67.2 41.6L300.8 32H211.2l-12.8 76.8L131.2 64l-64 64 41.6 67.2 -76.8 16v89.6l76.8 12.8L64 380.8l64 64 67.2 -41.6 16 76.8h89.6l16 -76.8L384 448l64 -64 -44.8 -67.2 76.8 -16V211.2zM256 320c-38.4 0 -64 -25.6 -64 -64s25.6 -64 64 -64 64 25.6 64 64 -25.6 64 -64 64z"]},Zi={prefix:"dh",iconName:"graph-line-down",icon:[512,512,[],"f000","M64 416V0H32v432l16 16H480v-32zm67.2 -291.2 -22.4 22.4 108.8 112 70.4 -64 108.8 124.8H320v32h112l16 -16V224h-32v70.4L288 150.4l-70.4 64z"]},Xi={prefix:"dh",iconName:"graph-line-up",icon:[512,512,[],"f000","M64 416V0H32v432l16 16H480v-32zm153.6 -150.4 70.4 64 128 -144V256h32V144l-16 -16H320v32h76.8L288 284.8l-70.4 -64 -108.8 112 22.4 22.4z"]},Ji={prefix:"dh",iconName:"input",icon:[512,512,[],"f000","M464 448h-416l-16 -16v-352l16 -16h416l16 16v352l-16 16zM64 416h384V96H64v320zm96 -224h32v128H160zm64 -32v32H128V160l48 16zm0 160v32l-48 -16L128 352v-32z"]},Qi={prefix:"dh",iconName:"new-circle-large-filled",icon:[512,512,[],"f000","M240 0C108.8 0 0 108.8 0 240S108.8 480 240 480 480 371.2 480 240 371.2 0 240 0zM352 256H256v96H224V256H128V224h96V128h32v96h96v32z"]},Yi={prefix:"dh",iconName:"pandas",icon:[512,512,[],"f000","M185.6 28.8h54.4v115.2H185.6V28.8zm0 240h54.4V384H185.6V268.8zm0 -89.6h54.4v54.4H185.6V179.2zM96 124.8h54.4V512H96V124.8zm176 240h54.4V480H272v-115.2zm0 -240h54.4v115.2H272V124.8zm0 150.4h54.4v54.4H272V275.2zM361.6 0H416v387.2h-54.4V0z"]},eo={prefix:"dh",iconName:"panels",icon:[512,512,[],"f000","m496 288 16 16v160l-16 16h-192l-16 -16v-160l16 -16h192zm0 -256h-192l-16 16v160l16 16h192l16 -16v-160l-16 -16zM16 32l-16 16v160l16 16h192l16 -16v-160L208 32h-192zm0 256 -16 16v160l16 16h192l16 -16v-160L208 288h-192z"]},to={prefix:"dh",iconName:"python",icon:[512,512,[],"f000","M198.4 249.6h99.2s57.6 0 57.6 -54.4V102.4s9.6 -54.4 -99.2 -54.4c-105.6 0 -99.2 44.8 -99.2 44.8v48H256v12.8H115.2s-67.2 -6.4 -67.2 99.2c0 105.6 57.6 102.4 57.6 102.4h35.2V307.2s-3.2 -57.6 57.6 -57.6zm3.2 -131.2c-9.6 0 -19.2 -9.6 -19.2 -19.2s6.4 -19.2 19.2 -19.2c9.6 0 19.2 9.6 19.2 19.2s-9.6 19.2 -19.2 19.2zm208 35.2h-35.2v48s3.2 57.6 -57.6 57.6H217.6S160 259.2 160 313.6v92.8s-12.8 54.4 99.2 54.4c105.6 0 99.2 -44.8 99.2 -44.8v-48H259.2v-12.8h140.8s67.2 6.4 67.2 -99.2 -57.6 -102.4 -57.6 -102.4zm-96 236.8c9.6 0 19.2 9.6 19.2 19.2s-9.6 19.2 -19.2 19.2 -19.2 -9.6 -19.2 -19.2 9.6 -19.2 19.2 -19.2z"]},no={prefix:"dh",iconName:"refresh",icon:[512,512,[],"f000","m313.6 73.6 -9.6 32c83.2 25.6 131.2 118.4 102.4 201.6 -19.2 64 -80 108.8 -150.4 108.8 -89.6 0 -160 -70.4 -160 -160 0 -51.2 22.4 -96 64 -128v64h32V80L176 64H64v32h86.4c-76.8 51.2 -108.8 150.4 -70.4 236.8C112 403.2 179.2 448 256 448c105.6 0 192 -86.4 192 -192 0 -83.2 -54.4 -156.8 -134.4 -182.4z"]},so={prefix:"dh",iconName:"remove-square-filled",icon:[512,512,[],"f000","M432 32h-384l-16 16v384l16 16h384l16 -16v-384l-16 -16zM352 256H128V224h224v32z"]},io={prefix:"dh",iconName:"run-selection",icon:[704,512,[],"f000","M124.8 64 128 96h-3.2c-6.4 0 -12.8 0 -19.2 3.2 -16 6.4 -25.6 25.6 -25.6 44.8v44.8c0 6.4 0 12.8 -3.2 19.2 0 6.4 -3.2 12.8 -6.4 19.2 -3.2 9.6 -12.8 22.4 -22.4 28.8 9.6 6.4 19.2 19.2 22.4 32 3.2 6.4 3.2 12.8 6.4 19.2 0 6.4 3.2 12.8 3.2 19.2v44.8c0 6.4 0 12.8 3.2 19.2 3.2 6.4 6.4 9.6 9.6 16 3.2 3.2 9.6 6.4 16 9.6H128v32h-3.2c-9.6 0 -19.2 -3.2 -28.8 -6.4 -9.6 -3.2 -19.2 -9.6 -25.6 -16 -6.4 -6.4 -12.8 -16 -16 -25.6 -3.2 -9.6 -6.4 -16 -6.4 -25.6V316.8c0 -6.4 0 -12.8 -3.2 -19.2 -3.2 -3.2 -6.4 -6.4 -9.6 -12.8 -3.2 -3.2 -9.6 -6.4 -16 -9.6 -3.2 -3.2 -9.6 -3.2 -16 -3.2H0v-32h3.2c6.4 0 12.8 0 19.2 -3.2 9.6 -6.4 19.2 -12.8 22.4 -25.6 3.2 -6.4 3.2 -12.8 3.2 -19.2V134.4c0 -9.6 3.2 -19.2 6.4 -25.6 3.2 -6.4 9.6 -16 16 -22.4 6.4 -6.4 16 -12.8 25.6 -16 9.6 -3.2 19.2 -6.4 28.8 -6.4zm576 176c-6.4 0 -12.8 0 -19.2 -3.2 -6.4 -3.2 -9.6 -6.4 -16 -9.6 -3.2 -3.2 -6.4 -9.6 -9.6 -16 -3.2 -6.4 -3.2 -12.8 -3.2 -19.2V134.4c0 -9.6 -3.2 -19.2 -6.4 -25.6 -3.2 -9.6 -9.6 -16 -16 -25.6 -6.4 -6.4 -16 -12.8 -25.6 -16 -6.4 0 -16 -3.2 -25.6 -3.2H576v32h3.2c6.4 0 12.8 0 19.2 3.2 6.4 3.2 9.6 6.4 16 9.6 3.2 3.2 6.4 9.6 9.6 16 3.2 6.4 3.2 12.8 3.2 19.2v44.8c0 6.4 0 12.8 3.2 19.2 0 6.4 3.2 12.8 6.4 19.2 6.4 12.8 12.8 22.4 22.4 32 -9.6 6.4 -19.2 19.2 -22.4 32 -3.2 6.4 -3.2 12.8 -6.4 19.2 0 6.4 -3.2 12.8 -3.2 19.2v44.8c0 19.2 -9.6 35.2 -28.8 44.8 -6.4 -3.2 -12.8 -3.2 -19.2 -3.2H576v32h3.2c9.6 0 19.2 -3.2 28.8 -6.4 9.6 -3.2 19.2 -9.6 25.6 -16 6.4 -6.4 12.8 -16 16 -25.6 3.2 -9.6 6.4 -16 6.4 -25.6V316.8c0 -6.4 0 -12.8 3.2 -19.2 3.2 -9.6 12.8 -16 25.6 -22.4 6.4 -3.2 12.8 -3.2 19.2 -3.2l-3.2 -32zm-192 28.8 -240 160 -25.6 -12.8V96l25.6 -12.8 240 160v25.6zM470.4 256 275.2 124.8V384l195.2 -128z"]},oo={prefix:"dh",iconName:"shapes",icon:[512,512,[],"f000","M195.2 320 160 256 128 313.6 105.6 352 32 480h256l-73.6 -128 -19.2 -32zm112 -76.8c51.2 -35.2 121.6 -22.4 156.8 28.8s22.4 121.6 -28.8 156.8c0 0 -3.2 0 -3.2 3.2 -51.2 32 -121.6 19.2 -153.6 -32 -35.2 -54.4 -22.4 -121.6 28.8 -156.8zM96 32v192h192V32H96z"]},ao={prefix:"dh",iconName:"sort-alpha-down",icon:[512,512,[],"f000","M236.8 368 156.8 448h-22.4l-80 -80 22.4 -22.4L128 396.8V64h32v332.8l51.2 -51.2 25.6 22.4zM371.2 224l-6.4 -28.8H316.8l-9.6 28.8H256l54.4 -160h60.8l51.2 160h-51.2zm-32 -124.8c0 3.2 -3.2 3.2 -3.2 9.6s-3.2 19.2 -12.8 51.2h32l-9.6 -44.8c-3.2 -6.4 -6.4 -9.6 -6.4 -16zm-6.4 310.4h73.6V448H272v-32l73.6 -89.6H275.2V288h128v32l-70.4 89.6z"]},ro={prefix:"dh",iconName:"sort-alpha-up",icon:[512,512,[],"f000","M51.2 144 131.2 64h22.4l80 80 -22.4 22.4L160 115.2V448H128V115.2L76.8 166.4l-25.6 -22.4zm320 304 -6.4 -28.8H316.8l-9.6 28.8H256l54.4 -160h60.8l51.2 160h-51.2zm-32 -124.8c0 3.2 -3.2 3.2 -3.2 9.6 0 6.4 -3.2 19.2 -12.8 51.2h32l-9.6 -44.8c-3.2 -6.4 -6.4 -9.6 -6.4 -16zm-6.4 -137.6h73.6V224H272V192l73.6 -89.6H275.2V64h128v32l-70.4 89.6z"]},lo={prefix:"dh",iconName:"sort-amount-down",icon:[512,512,[],"f000","M204.8 368 124.8 448h-22.4L22.4 368l22.4 -22.4L96 396.8V64h32v332.8l51.2 -51.2 25.6 22.4zM256 64h256v64H256zm0 105.6h192v64H256zm0 108.8h128v64H256zM256 384h64v64H256z"]},co={prefix:"dh",iconName:"sort-down",icon:[512,512,[],"f000","m128 288 -12.8 25.6 128 118.4h25.6l128 -118.4L384 288H128z"]},ho={prefix:"dh",iconName:"sort-up",icon:[512,512,[],"f000","m128 224 -12.8 -25.6 128 -118.4h25.6l128 118.4 -12.8 25.6H128z"]},yt={prefix:"dh",iconName:"sort",icon:[512,512,[],"f000","m128 224 -12.8 -25.6 128 -118.4h25.6l128 118.4 -12.8 25.6H128zm0 64 -12.8 25.6 128 118.4h25.6l128 -118.4L384 288H128z"]},uo={prefix:"dh",iconName:"square-filled",icon:[512,512,[],"f000","M432 32h-384l-16 16v384l16 16h384l16 -16v-384l-16 -16z"]},po={prefix:"dh",iconName:"table",icon:[512,512,[],"f000","M432 64h-384l-16 16v352l16 16h384l16 -16v-352l-16 -16zM160 416H64v-64h96v64zm0 -96H64V256h96v64zm0 -96H64V160h96v64zm128 192H192v-64h96v64zm0 -96H192V256h96v64zm0 -96H192V160h96v64zm128 192h-96v-64h96v64zm0 -96h-96V256h96v64zm0 -96h-96V160h96v64z"]},mo={prefix:"dh",iconName:"trash-undo",icon:[512,512,[],"f000","M320 96h96v32h-32v288l-32 32H128l-32 -32V128H64V96h96V64c0 -19.2 12.8 -32 32 -32h96c19.2 0 32 12.8 32 32v32zM288 64H192v32h96V64zM128 416h224V128H128v288zm112 -64L160 272v-22.4l80 -80 22.4 22.4 -51.2 54.4H320v32H211.2l51.2 51.2 -22.4 22.4z"]},fo={prefix:"dh",iconName:"triangle-down-square",icon:[512,512,[],"f000","M425.6 64H86.4l-22.4 22.4v342.4l22.4 19.2h342.4l22.4 -22.4V86.4l-25.6 -22.4zm-160 288h-22.4L99.2 208l9.6 -16h291.2l9.6 12.8L265.6 352z"]},vo={prefix:"dh",iconName:"unlink",icon:[512,512,[],"f000","M32 211.2v-6.4C32 144 80 96 140.8 96h99.2c12.8 0 25.6 3.2 38.4 6.4l-25.6 25.6H140.8C99.2 128 64 163.2 64 204.8v6.4c0 28.8 16 54.4 38.4 67.2l-22.4 22.4C51.2 281.6 32 249.6 32 211.2zM403.2 6.4l-38.4 38.4 -67.2 67.2 -22.4 25.6 -150.4 147.2 -25.6 25.6 -54.4 54.4 -38.4 38.4L51.2 448 448 51.2 403.2 6.4zM384 192v32c38.4 6.4 64 38.4 64 76.8v6.4c0 41.6 -35.2 76.8 -76.8 76.8H272c-32 0 -60.8 -22.4 -73.6 -51.2l-25.6 25.6c19.2 35.2 54.4 60.8 96 60.8h99.2c60.8 0 108.8 -48 108.8 -108.8v-9.6C480 246.4 438.4 198.4 384 192zM246.4 288l-22.4 19.2v12.8h16c60.8 0 108.8 -48 108.8 -108.8v-6.4c0 -6.4 0 -12.8 -3.2 -19.2l-32 32c0 38.4 -32 67.2 -67.2 70.4z"]},go={prefix:"dh",iconName:"warning-circle-filled",icon:[512,512,[],"f000","M470.4 195.2c-9.6 -38.4 -28.8 -70.4 -57.6 -99.2 -25.6 -25.6 -60.8 -44.8 -96 -54.4C297.6 35.2 275.2 32 256 32c-19.2 0 -41.6 3.2 -60.8 9.6 -16 3.2 -35.2 9.6 -51.2 22.4 -35.2 19.2 -60.8 44.8 -80 80 -12.8 16 -19.2 35.2 -25.6 51.2C35.2 214.4 32 236.8 32 256c0 19.2 3.2 41.6 6.4 60.8 6.4 16 12.8 35.2 25.6 51.2 9.6 16 22.4 32 35.2 44.8 12.8 16 28.8 25.6 44.8 35.2 16 9.6 35.2 16 54.4 22.4 16 6.4 38.4 9.6 57.6 9.6 19.2 0 41.6 -3.2 60.8 -6.4 19.2 -6.4 35.2 -12.8 54.4 -22.4 32 -19.2 60.8 -48 80 -80 9.6 -16 16 -35.2 22.4 -54.4 3.2 -19.2 6.4 -41.6 6.4 -60.8s-3.2 -41.6 -9.6 -60.8zM275.2 352H236.8v-32h38.4v32zm0 -64H236.8V160h38.4v128z"]},bo={prefix:"dh",iconName:"warning-filled",icon:[512,512,[],"f000","M268.8 32h-25.6L32 425.6l12.8 22.4h419.2l12.8 -22.4L268.8 32zm6.4 352H236.8v-32h38.4v32zm0 -64H236.8V192h38.4v128z"]};const Ee=g.forwardRef((e,t)=>{function n(I){const{menuItem:C,onMenuItemClick:E}=e;E(C,I)}function s(I){const{menuItem:C,onMenuItemMouseMove:E}=e;E(C,I)}function i(I){const{menuItem:C,onMenuItemContextMenu:E}=e;E(C,I)}function o(I,C,E){if(typeof I.type=="string")return I;const{closeMenu:D,menuItem:P,isKeyboardSelected:H,isMouseSelected:U,"data-testid":z}=e,ie={menuItem:P,closeMenu:D,isKeyboardSelected:H,isMouseSelected:U,iconElement:C,displayShortcut:E,"data-testid":z};return g.cloneElement(I,{forwardedProps:ie})}const{children:a,menuItem:r,isKeyboardSelected:c=!1,isMouseSelected:d=!1,"data-testid":p}=e,u=r.shortcut?.getDisplayText();let y=null;if(r.icon){const I=r.icon;if(g.isValidElement(I))y=I;else{let C;r.iconColor!=null&&(r.disabled===void 0||!r.disabled)&&(C={color:r.iconColor}),y=l(R,{icon:I,style:C})}}let v=null;const T=Boolean(a);r.actions&&(v=l(R,{icon:zn}));let S=null;if(r.menuElement)S=l("div",{className:"custom-menu-item",onMouseMove:s,children:o(r.menuElement,y,u)});else{const I=r.disabled,C=r.iconOutline;S=l("button",{type:"button",className:b("btn-context-menu",{disabled:I},{active:(T||d)&&(I===void 0||!I)},{"keyboard-active":c&&(I===void 0||!I)}),onClick:n,onMouseMove:s,onContextMenu:i,title:r.description??"",children:w("div",{className:"btn-context-menu-wrapper",children:[l("span",{className:b("icon",{outline:C}),children:y}),l("span",{className:"title",children:r.title}),u!==void 0&&l("span",{className:"shortcut",children:u}),v&&l("span",{className:b("submenu-indicator",{disabled:I}),children:v})]})})}return w("div",{className:"context-menu-item",ref:t,"data-testid":p,children:[a,S]})});Ee.displayName="ContextMenuItem";Ee.defaultProps={children:null,isKeyboardSelected:!1,isMouseSelected:!1,"data-testid":void 0};const Mo=Object.freeze([]),xo=new Map;class Je extends Error{constructor(){super(...arguments),this.isCanceled=!0}}async function Wn(e){const{clipboard:t}=navigator;if(t!==void 0)try{return navigator.clipboard.writeText(e)}catch{return Qe(e)}Qe(e)}function Qe(e){const t=document.activeElement,n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.focus(),n.select();const s=document.execCommand("copy");if(document.body.removeChild(n),t instanceof HTMLElement&&t.focus(),!s)throw new Error("Unable to execute copy command")}const Gn="table_",St="column_",qn=new Set(["in","not","i","ii","k"]),jn=new Set(["abstract","continue","for","new","switch","assert","default","if","package","synchronized","boolean","do","goto","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","null","true","false"]),Zn=/[^a-zA-Z0-9_$+@-]/g,Xn=/[^A-Za-z0-9_$]/g,ue=class{};let pe=ue;pe.legalize=(e,t,n,s,i)=>{let o=e.trim().replace(/[- ]/g,"_");return s&&(qn.has(o)||jn.has(o))&&(o=t+o),o=o.replace(n,""),o||(o=t+i),Number.isNaN(Number(o.charAt(0)))||(o=t+o),o};pe.legalizeTableName=e=>ue.legalize(e,Gn,Zn,!1,0);pe.legalizeColumnNames=e=>{const t=[];return e.forEach((n,s)=>{let i=ue.legalizeColumnName(n,s);t.includes(i)&&(i=St+s),t.push(i)}),t};pe.legalizeColumnName=(e,t=0)=>ue.legalize(e,St,Xn,!0,t);pe.isValidTableName=e=>ue.legalizeTableName(e)===e;pe.isValidColumnName=e=>ue.legalizeColumnName(e)===e;class wt extends CustomEvent{constructor(t,n){super(t,n)}}class Jn extends Error{constructor(){super(...arguments),this.isTimeout=!0}}class Ye{static makeCancelable(t,n){let s=!1,i,o;const a=new Promise((r,c)=>{o=c,Promise.resolve(t).then(d=>{s?n&&n(d):(i=d,r(d))}).catch(d=>c(d))});return a.cancel=()=>{s=!0,o(new Je),i!=null&&n&&n(i)},a}static isCanceled(t){return t instanceof Je}static isTimedOut(t){return t instanceof Jn}}class j{static isValidRange(t){return t!=null&&t.length===2&&Number.isInteger(t[0])&&Number.isInteger(t[1])&&t[0]<=t[1]}static validateRange(t){if(!j.isValidRange(t))throw new Error(`Invalid range! ${t}`)}static isSelected(t,n){for(let s=0;s<t.length;s+=1){const i=t[s],o=i[0],a=i[1];if(o<=n&&n<=a)return!0}return!1}static selectRange(t,n){let[s,i]=n;const o=[...t];for(let a=o.length-1;a>=0;a-=1){const r=o[a],c=r[0],d=r[1];if(c<=s&&i<=d)return o;s<=d&&c<=i&&(s=Math.min(s,c),i=Math.max(i,d),o.splice(a,1))}return o.push([s,i]),o}static deselectRange(t,n){const[s,i]=n,o=[...t];for(let a=o.length-1;a>=0;a-=1){const r=o[a],c=r[0],d=r[1];if(!(i<c||d<s))if(c<s&&i<d){o[a]=[c,s-1],o.splice(a+1,0,[i+1,d]);break}else s<=c&&d<=i?o.splice(a,1):c<s?o[a]=[c,s-1]:o[a]=[i+1,d]}return o}static count(t){return t.reduce((n,s)=>n+(s[1]-s[0]+1),0)}static getItemsInRanges(t,n){return n.reduce((s,i)=>{const o=[...s];for(let a=i[0];a<=i[1];a+=1)o.push(t[a]);return o},[])}}const Nt=class{static formatElapsedTime(e){if(typeof e!="number"||!Number.isInteger(e))throw new Error(`${e} is not a number that can be expressed as a formatted time`);const t=Math.floor(e/3600),n=Math.floor(e%3600/60),s=e%60;return`${t>0?`${t}h `:""}${n>0||t>0?`${n}m `:""}${e>=60?`${s}s`.padStart(3,"0"):`${s}s`}`}static formatTime(e){if(typeof e!="number"||!Number.isInteger(e)||e<0)throw new Error(`${e} is not a number that can be expressed as a formatted time`);const t=String(Math.floor(e/(60*60))).padStart(2,"0"),n=e%(60*60),s=String(Math.floor(n/60)).padStart(2,"0"),i=n%60,o=String(Math.ceil(i)).padStart(2,"0");return`${t}:${s}:${o}`}static isTimeString(e){return new RegExp(Nt.TIME_PATTERN).test(e)}static parseTime(e){if(e==null||typeof e!="string")throw new Error(`${e} is not a valid string`);const t=e.split(":");if(t.length!==3)throw new Error(`${e} is not a time string that can be parsed`);return Number(t[0])*60*60+Number(t[1])*60+Number(t[2])}};let te=Nt;te.TIME_PATTERN="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]";te.TIME_ZONES=Object.freeze([{label:"Tokyo UTC+9 No DST",value:"Asia/Tokyo"},{label:"Seoul UTC+9 No DST",value:"Asia/Seoul"},{label:"Hong Kong UTC+8 No DST",value:"Asia/Hong_Kong"},{label:"Singapore UTC+8 No DST",value:"Asia/Singapore"},{label:"Kolkata UTC+5:30 No DST",value:"Asia/Kolkata"},{label:"Berlin UTC+1",value:"Europe/Berlin"},{label:"UTC UTC\xB10 No DST",value:"UTC"},{label:"London UTC\xB10",value:"Europe/London"},{label:"Sao Paulo UTC-2",value:"America/Sao_Paulo"},{label:"Newfoundland UTC-3:30",value:"America/St_Johns"},{label:"Halifax UTC-4",value:"America/Halifax"},{label:"New York UTC\u22125",value:"America/New_York"},{label:"Chicago UTC-6",value:"America/Chicago"},{label:"Denver UTC-7",value:"America/Denver"},{label:"Los Angeles UTC-8",value:"America/Los_Angeles"},{label:"Anchorage UTC-9",value:"America/Anchorage"},{label:"Honolulu UTC-10 No DST",value:"Pacific/Honolulu"},{label:"Zurich UTC+1",value:"Europe/Zurich"},{label:"Amsterdam UTC+1",value:"Europe/Amsterdam"},{label:"Taipei UTC+8 No DST",value:"Asia/Taipei"},{label:"Sydney UTC+10",value:"Australia/Sydney"}]);function Et({className:e="","data-testid":t}){return w("div",{className:b("loading-spinner fa-layers",e),"data-testid":t,children:[l(R,{icon:Rn,className:"text-white-50"}),l(R,{icon:_n,className:"text-primary",spin:!0})]})}const et=A.module("ContextMenu"),Ve=class extends m.exports.PureComponent{constructor(e){super(e),this.handleBlur=this.handleBlur.bind(this),this.handleCloseSubMenu=this.handleCloseSubMenu.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMenuItemClick=this.handleMenuItemClick.bind(this),this.handleMenuItemContextMenu=this.handleMenuItemContextMenu.bind(this),this.handleMenuItemMouseMove=this.handleMenuItemMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleWindowResize=this.handleWindowResize.bind(this),this.container=g.createRef(),this.oldFocus=document.activeElement,this.activeSubMenuRef=g.createRef(),this.subMenuTimer=0,this.rAF=0,this.initialPosition={top:e.top,left:e.left},this.state={menuItems:[],pendingItems:[],activeSubMenu:null,hasOverflow:!1,subMenuTop:null,subMenuLeft:null,subMenuParentWidth:0,subMenuParentHeight:0,keyboardIndex:-1,mouseIndex:-1}}static handleContextMenu(e){e.metaKey||(e.stopPropagation(),e.preventDefault())}componentDidMount(){this.initMenu(),this.verifyPosition(),window.addEventListener("resize",this.handleWindowResize),this.rAF=window.requestAnimationFrame(()=>{this.container.current?.focus();const{onMenuOpened:e}=this.props;e(this)})}componentDidUpdate(e,t){const{actions:n}=this.props,{activeSubMenu:s}=this.state;s!==t.activeSubMenu&&(s==null?this.container.current?.focus():this.setActiveSubMenuPosition()),e.actions!==n&&(this.initMenu(),(this.container.current==null||!this.container.current.contains(document.activeElement))&&this.container.current?.focus()),this.verifyPosition()}componentWillUnmount(){this.cancelPromises(),window.removeEventListener("resize",this.handleWindowResize),cancelAnimationFrame(this.rAF)}getKeyboardIndex(){const{options:e}=this.props;if(e.separateKeyboardMouse!==void 0&&e.separateKeyboardMouse){const{keyboardIndex:t}=this.state;return t}return this.getMouseIndex()}setKeyboardIndex(e){const{options:t}=this.props;t.separateKeyboardMouse!==void 0&&t.separateKeyboardMouse?this.setState({keyboardIndex:e}):this.setMouseIndex(e)}getMouseIndex(){const{mouseIndex:e}=this.state;return e}setMouseIndex(e){this.setState({mouseIndex:e})}initMenu(){this.cancelPromises(),cancelAnimationFrame(this.rAF);const{options:e}=this.props;let t=e.initialKeyboardIndex;t===void 0&&(t=-1);const{actions:n}=this.props,s=k.getMenuItems(n),i=[];for(let o=s.length-1;o>=0;o-=1){const a=s[o];a instanceof Promise?this.initMenuPromise(a):i.push(a)}this.setState({mouseIndex:-1,keyboardIndex:t,activeSubMenu:null,menuItems:k.sortActions(i)})}initMenuPromise(e){const t=Ye.makeCancelable(e);this.setState(n=>({pendingItems:n.pendingItems.concat(t)})),t.then(n=>{this.setState(s=>{const i=s.pendingItems.indexOf(t);if(i>=0){const o=s.pendingItems.slice();return o.splice(i,1),{menuItems:k.sortActions(s.menuItems.concat(n)),pendingItems:o}}return null})},n=>{Ye.isCanceled(n)||(this.setState(s=>{const i=s.pendingItems.indexOf(t);if(i>=0){const o=s.pendingItems.slice();return o.splice(i,1),{pendingItems:o}}return null}),et.error(n))})}cancelPromises(){const{pendingItems:e}=this.state;e.map(t=>t.cancel())}setActiveSubMenuPosition(){if(this.activeSubMenuRef.current===null)return;const e=this.activeSubMenuRef.current.getBoundingClientRect();this.setState({subMenuTop:e.top,subMenuLeft:e.right,subMenuParentHeight:e.height,subMenuParentWidth:e.width})}verifyPosition(){const{options:e,updatePosition:t,subMenuParentWidth:n,subMenuParentHeight:s,top:i,left:o}=this.props;if(!this.container.current||e.doNotVerifyPosition!=null&&e.doNotVerifyPosition)return;let{top:a,left:r}=this.initialPosition;const{width:c,height:d}=this.container.current?.getBoundingClientRect()??{width:0,height:0},p=(this.container.current?.scrollHeight??0)>window.innerHeight;d===0||c===0||(a+d>window.innerHeight&&(a-d-s>0?a-=d-s:a=window.innerHeight-d),r+c>window.innerWidth&&(r=r-c-n),(o!==r||i!==a)&&(this.setState({hasOverflow:p}),t(a,r)))}handleWindowResize(){!this.container.current||this.closeMenu(!0)}handleBlur(e){if(!this.container.current){et.warn("Container is null!");return}if(!this.container.current.contains(e.relatedTarget)){let t=e.relatedTarget,n=!1;for(;t&&!n;)n=t.hasAttribute("data-dh-context-menu"),t=t.parentElement;n||this.closeMenu(!0)}}isEscapeKey(e){const{left:t}=this.props;return e==="Escape"||t<0&&e==="ArrowRight"||e==="ArrowLeft"}handleKeyDown(e){const{menuItems:t}=this.state,n=this.getKeyboardIndex();let s=n,i=!1;if(e.key==="Enter"||e.key===" "){n>=0&&n<t.length&&this.handleMenuItemClick(t[n],e);return}if(e.key==="ArrowRight"?n>=0&&n<=t.length?i=!0:s=0:this.isEscapeKey(e.key)?s=null:e.key==="ArrowUp"||e.shiftKey&&e.key==="Tab"?s=k.getNextMenuItem(s,-1,t):(e.key==="ArrowDown"||e.key==="Tab")&&(s=k.getNextMenuItem(s,1,t)),i){this.openSubMenu(n),e.preventDefault(),e.stopPropagation();return}n!==s&&(s!==null?this.setKeyboardIndex(s):(this.closeMenu(),this.oldFocus instanceof HTMLElement&&this.oldFocus.focus()),e.preventDefault(),e.stopPropagation())}openSubMenu(e){const{menuItems:t,activeSubMenu:n}=this.state,s=t[e].actions?e:null;n!==s&&this.setState({activeSubMenu:s,subMenuTop:null,subMenuLeft:null})}closeMenu(e=!1){const{closeMenu:t,onMenuClosed:n}=this.props;cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{t(e),n(this)})}closeSubMenu(){this.setState({activeSubMenu:null})}handleCloseSubMenu(e){e?this.closeMenu(!0):this.closeSubMenu()}handleMenuItemClick(e,t){t.preventDefault(),t.stopPropagation();const{menuItems:n}=this.state;e!=null&&(e.disabled===void 0||!e.disabled)&&(e.actions!=null?this.openSubMenu(n.indexOf(e)):e.action!=null&&(e.action(),this.closeMenu(!0)))}handleMenuItemContextMenu(e,t){t.metaKey||this.handleMenuItemClick(e,t)}handleMenuItemMouseMove(e){const{menuItems:t}=this.state,n=t.indexOf(e);this.setMouseIndex(n),n>=0&&n<t.length&&(e.disabled===void 0||!e.disabled)&&this.openSubMenu(n)}handleMouseLeave(){this.setMouseIndex(-1)}render(){const e=[],{top:t,left:n}=this.props,{activeSubMenu:s,hasOverflow:i,keyboardIndex:o,menuItems:a,mouseIndex:r,pendingItems:c,subMenuTop:d,subMenuLeft:p,subMenuParentWidth:u,subMenuParentHeight:y}=this.state;for(let C=0;C<a.length;C+=1){const E=a[C];C>0&&E.group!==a[C-1].group&&e.push(l("hr",{},`${C}.separator`));const D=l(Ee,{ref:s===C?this.activeSubMenuRef:null,isKeyboardSelected:o===C,isMouseSelected:r===C,menuItem:E,closeMenu:this.handleCloseSubMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:this.handleMenuItemContextMenu},C);e.push(D)}let v=null;c.length>0&&(v=l("div",{className:"loading",children:l(Et,{})}));const{menuStyle:T,"data-testid":S}=this.props,I=s!==null&&d!==null&&p!==null;return w(ut,{children:[w("div",{className:b({"has-overflow":i},"context-menu-container"),style:{top:t,left:n,...T},ref:this.container,"data-dh-context-menu":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onContextMenu:Ve.handleContextMenu,role:"menuitem",tabIndex:0,"data-testid":S,children:[e,v]}),I&&s!==null&&d!==null&&p!==null&&l(Ve,{actions:a[s].actions||[],closeMenu:this.handleCloseSubMenu,top:d,left:p,updatePosition:(C,E)=>{this.setState({subMenuTop:C,subMenuLeft:E})},subMenuParentWidth:u,subMenuParentHeight:y},`sub-${s}`)]})}};let Qn=Ve;Qn.defaultProps={subMenuParentWidth:0,subMenuParentHeight:0,closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0};const ee=class extends m.exports.Component{static handleEnter(e){const t=e;t.style.height="0"}static handleEntering(e){const t=e;t.style.height=`${ee.getHeight(t)}px`}static handleExiting(e){const t=e;t.style.height="0"}static handleExit(e){const t=e;t.style.height=`${ee.getHeight(t)}px`}static getHeight(e){const t=e.scrollWidth-e.clientWidth;return e.scrollHeight-t}constructor(e){super(e),this.handleEntered=this.handleEntered.bind(this)}handleEntered(e){const t=e;t.style.height="";const{autoFocusOnShow:n}=this.props;if(n!==void 0&&n){const s=t.querySelector("input, select, textarea");s?.focus()}}render(){const{children:e,className:t,in:n,"data-testid":s}=this.props;return l(ge,{in:n,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:ee.handleEnter,onEntering:ee.handleEntering,onEntered:this.handleEntered,onExit:ee.handleExit,onExiting:ee.handleExiting,timeout:350,children:i=>l("div",{className:b({collapse:i==="exited"},t),"data-testid":s,children:e})})}};let Tt=ee;Tt.propTypes={className:h.exports.string,in:h.exports.bool.isRequired,children:h.exports.node.isRequired,autoFocusOnShow:h.exports.bool,"data-testid":h.exports.string};Tt.defaultProps={className:"",autoFocusOnShow:!1,"data-testid":void 0};function Lt(e){const t=m.exports.useRef(null);return m.exports.useEffect(function(){!e||(typeof e=="function"?e(t.current):e.current=t.current)}),t}const Yn=3500,es=A.module("useCopyToClipboard");function Co(){const[e,t]=m.exports.useState(!1),n=m.exports.useRef(null),s=m.exports.useCallback(i=>{Wn(i).then(()=>{t(!0)}).catch(o=>es.error(`Unable to copy ${i}`,`
|
|
6
|
-
`,o))},[]);return m.exports.useEffect(()=>(n.current&&clearTimeout(n.current),e&&(n.current=setTimeout(()=>{t(!1)},Yn)),()=>{n.current&&clearTimeout(n.current)}),[e]),[e,s]}const he=g.forwardRef((e,t)=>{const{checked:n=!1,children:s,className:i,disabled:o,inputClassName:a,isInvalid:r,labelClassName:c,name:d,onChange:p,"data-testid":u}=e,[y]=m.exports.useState(pt()),v=Lt(t);m.exports.useEffect(function(){v.current&&(v.current.indeterminate=n===null)},[v,n]);const T=m.exports.useCallback(S=>{v.current&&(v.current.indeterminate=n===null),p&&p(S)},[v,n,p]);return w("div",{className:b("custom-control custom-checkbox",i),children:[l("input",{type:"checkbox",ref:v,checked:n??!1,className:b("custom-control-input",a,{"is-invalid":r}),disabled:o,id:y,name:d,onChange:T,"data-testid":u}),l("label",{className:b("custom-control-label",c),htmlFor:y,children:s})]})});he.displayName="Checkbox";he.propTypes={checked:(e,t)=>{const{[t]:n}=e;return n!==null&&typeof n!="boolean"?new Error("Checked must be a boolean or null for indeterminate"):null},children:h.exports.node.isRequired,className:h.exports.string,disabled:h.exports.bool,inputClassName:h.exports.string,isInvalid:h.exports.bool,labelClassName:h.exports.string,name:h.exports.string,onChange:h.exports.func,"data-testid":h.exports.string};he.defaultProps={checked:!1,className:"",disabled:!1,inputClassName:"",isInvalid:!1,labelClassName:"",name:void 0,onChange:void 0,"data-testid":void 0};class Ke extends m.exports.PureComponent{constructor(t){super(t),this.inputField=g.createRef()}focus(){this.inputField.current?.focus()}render(){const{value:t,placeholder:n,onBlur:s,onChange:i,className:o,disabled:a,matchCount:r,id:c,onKeyDown:d,"data-testid":p}=this.props;return w("div",{className:b("search-group",o),children:[l("input",{type:"search",value:t,onBlur:s,onChange:i,onKeyDown:d,className:"form-control",disabled:a,placeholder:n,ref:this.inputField,id:c,"data-testid":p}),r!=null&&l("span",{className:"search-match",children:r}),l("span",{className:"search-icon",children:l(R,{icon:Un})})]})}}Ke.defaultProps={placeholder:"Search",className:"",matchCount:null,onKeyDown(){},id:"","data-testid":void 0};var Dt=(e=>(e.UP="UP",e.DOWN="DOWN",e))(Dt||{});const ve=class extends m.exports.Component{constructor(e){super(e),this.getCachedFilteredOptions=K((t,n)=>t.filter(s=>s.title.toLowerCase().indexOf(n.toLowerCase())>=0||s.value.toLowerCase().indexOf(n.toLowerCase())>=0)),this.state={value:"",filter:"",filteredOptions:e.options,keyboardOptionIndex:-1,menuIsOpen:!1,inputWidth:100},this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handleFilterChange=this.handleFilterChange.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=g.createRef(),this.cbContainer=g.createRef(),this.toggleButton=g.createRef(),this.menuContainer=g.createRef(),this.input=g.createRef(),this.searchInput=g.createRef()}componentDidUpdate(){const{menuIsOpen:e,keyboardOptionIndex:t}=this.state;e&&t>=0&&this.scrollOptionIntoView()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}focus(){this.input.current?.focus()}resetValue(){this.setState({value:""})}updateInputValue(e){const{onChange:t}=this.props;this.setState({value:e}),t(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){const{filter:t,filteredOptions:n,keyboardOptionIndex:s}=this.state,{options:i}=this.props,o=t?n:i;switch(e.key){case"Enter":o[s]?.value!=null&&this.updateInputValue(o[s].value),this.closeMenu(),this.input.current?.focus(),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(ve.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(ve.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":t!==""?(this.setState({filter:""}),e.stopPropagation()):this.closeMenu();break;case"Tab":!e.shiftKey&&s===o.length-1&&this.closeMenu();break}}handleMenuNavigation(e){const{filter:t,filteredOptions:n,keyboardOptionIndex:s}=this.state,{options:i}=this.props,a=(t?n:i).length;let r=0;switch(e){case ve.MENU_NAVIGATION_DIRECTION.UP:r=-1;break;case ve.MENU_NAVIGATION_DIRECTION.DOWN:r=1;break}r!==0&&this.setState({keyboardOptionIndex:(s+r+a)%a})}handleInputKeyDown(e){const{onEnter:t}=this.props,{menuIsOpen:n}=this.state;e.key==="ArrowDown"||e.key==="ArrowUp"?n||this.openMenu():e.key==="Enter"&&t()}handleInputChange(e){this.updateInputValue(e.target.value)}handleOptionClick(e){const t=Number(e.currentTarget.value),{filter:n,filteredOptions:s}=this.state,{options:i}=this.props,o=n?s:i;this.updateInputValue(o[t].value),this.closeMenu(),this.input.current?.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleFilterChange(e){const{options:t}=this.props,n=e.target.value,s=this.getCachedFilteredOptions(t,n);this.setState({filter:n,filteredOptions:s,keyboardOptionIndex:0}),this.popper.current?.scheduleUpdate()}handleMenuBlur(e){e.relatedTarget instanceof Element&&this.popper.current!=null&&this.popper.current.element.contains(e.relatedTarget)||e.relatedTarget===this.toggleButton.current||this.closeMenu(!1)}handleInputBlur(e){const{menuIsOpen:t}=this.state;t&&e.relatedTarget instanceof Element&&this.popper.current!=null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){this.scrollOptionIntoView(),this.searchInput.current?.focus()}handleMenuExited(){const{menuIsOpen:e}=this.state;e&&(this.setState({menuIsOpen:!1}),this.popper.current?.hide()),this.setState({filter:""})}toggleMenu(e){const{menuIsOpen:t}=this.state;t?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{this.popper.current?.show()})}closeMenu(e=!0){this.setState({menuIsOpen:!1}),e&&this.input.current?.focus(),this.popper.current?.hide()}updateKeyboardIndex(){const{value:e,filter:t,filteredOptions:n}=this.state,{options:s}=this.props,o=(t?n:s).findIndex(a=>a.value===e);this.setState({keyboardOptionIndex:o})}scrollOptionIntoView(){const e=this.menuContainer.current?.querySelector(".cb-option-btn.keyboard-active");e instanceof HTMLElement&&e.scrollIntoView({block:"nearest",inline:"nearest"})}renderMenuElement(){const{searchPlaceholder:e}=this.props,{filter:t,inputWidth:n}=this.state;return w("div",{className:"cb-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:s=>{s.stopPropagation()},style:{width:n},onBlur:this.handleMenuBlur,children:[l("div",{className:"cb-search-input-container",children:l(Ke,{value:t,ref:this.searchInput,onChange:this.handleFilterChange,className:"cb-search-input",placeholder:e})}),l("div",{className:"cb-options-container",children:l("div",{className:"cb-options",children:this.renderOptions()})})]})}renderOptions(){const{options:e}=this.props,{keyboardOptionIndex:t,filter:n,filteredOptions:s}=this.state;return(n?s:e).map((o,a)=>{const r=`option-${a}-${o.value}`;return l("button",{type:"button",value:a,className:b("cb-option-btn",{"keyboard-active":t===a}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:o.title},r)})}render(){const{options:e,inputPlaceholder:t,disabled:n,className:s,defaultValue:i,spellCheck:o,"data-testid":a}=this.props,{value:r}=this.state;let{popperOptions:c}=this.props;return c={placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}},...c},w("div",{className:"input-group cb-container",ref:this.cbContainer,children:[l("input",{value:r||i,className:b("form-control",s,"cb-input"),ref:this.input,onChange:this.handleInputChange,placeholder:t||(e[0]!=null?e[0].title:void 0),disabled:n,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:o,"data-testid":a!==void 0?`${a}-input`:void 0}),l("div",{className:"input-group-append cb-dropdown",children:w("button",{type:"button",className:"btn cb-btn form-control",ref:this.toggleButton,onClick:this.toggleMenu,onKeyDown:this.handleInputKeyDown,disabled:n,"data-testid":a!==void 0?`${a}-btn`:void 0,children:[l(R,{icon:Bn}),l(se,{ref:this.popper,options:c,className:b("combobox interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})})]})}};let Te=ve;Te.MENU_NAVIGATION_DIRECTION=Dt;Te.DROP_DOWN_MENU_HEIGHT=200;Te.propTypes={options:h.exports.arrayOf(h.exports.shape({title:h.exports.string.isRequired,value:h.exports.string.isRequired})).isRequired,popperOptions:h.exports.shape({title:h.exports.string.isRequired,value:h.exports.string.isRequired}),onChange:h.exports.func,inputPlaceholder:h.exports.string,searchPlaceholder:h.exports.string,disabled:h.exports.bool,className:h.exports.string,defaultValue:h.exports.string,spellCheck:h.exports.bool,onEnter:h.exports.func,"data-testid":h.exports.string};Te.defaultProps={onChange(){},inputPlaceholder:"",searchPlaceholder:"Search",disabled:!1,className:"",defaultValue:"",popperOptions:null,spellCheck:!0,onEnter(){},"data-testid":void 0};const W=A.module("MaskedInput"),oe={FORWARD:"forward",BACKWARD:"backward",NONE:"none"},Ce="\u2007";function $e(e,t,n){return e.substring(0,t)+n+e.substring(t+1)}function ts(e,t,n){return e.length<n?`${e}${t.substring(e.length,n)}`:e}function tt(e,t){let{length:n}=e;for(let s=e.length-1;s>=0&&t[s]===e[s];s-=1)n=s;return e.substring(0,n)}const Le=g.forwardRef((e,t)=>{const{className:n,example:s,getNextSegmentValue:i=(M,x,f)=>f,getPreferredReplacementString:o=$e,onChange:a=()=>!1,onSelect:r=()=>!1,pattern:c,placeholder:d,selection:p,value:u,onFocus:y=()=>!1,onBlur:v=()=>!1,"data-testid":T}=e,S=Lt(t),I=m.exports.useMemo(()=>Array.isArray(s)?s:[s],[s]),C=m.exports.useMemo(()=>I[0].replace(/[a-zA-Z0-9]/g,Ce),[I]);m.exports.useEffect(function(){if(p!=null){W.debug("setting selection...",p);const{selectionStart:x,selectionEnd:f,selectionDirection:N}=p;S.current?.setSelectionRange(x,f,N),W.debug("selection set!")}},[p,S]);const E=m.exports.useCallback(M=>{let x=M,f=M;const N=I.length>0?I[0]:u;for(let L=x-1;L>=0&&/[a-zA-Z0-9]/g.test(N.charAt(L));L-=1)x=L;for(let L=f;L<N.length&&/[a-zA-Z0-9]/g.test(N.charAt(L));L+=1)f=L+1;const V=x===f?oe.NONE:oe.BACKWARD;return{selectionStart:x,selectionEnd:f,selectionDirection:V}},[I,u]);function D(M,x,f=M.length){let N="";for(let V=0;V<f;V+=1)M.charAt(V)!==Ce?N=N.concat(M[V]):N=N.concat(x[V]);return N=N.concat(x.substring(f)),N}function P(M,x=M.length){const f=new RegExp(`^${c}$`);if(f.test(M))return!0;for(let N=0;N<I.length;N+=1){const V=D(M,I[N],x);if(f.test(V))return!0}return!1}function H(M){const x=E(M),f=x.selectionEnd+1;return f>=u.length?x:E(f)}function U(M){const x=E(M),f=x.selectionStart-1;return f<=0?x:E(f)}function z(M,x){const f=E(M),N=u.substring(f.selectionStart,f.selectionEnd),V=i(f,x,N,u),L=u.substring(0,f.selectionStart)+V+u.substring(f.selectionEnd);P(L,f.selectionEnd)&&(a(L),r(f))}const ie=m.exports.useCallback(M=>{const{selectionStart:x=0,selectionEnd:f=0,selectionDirection:N="none"}=M.target;if(x===null||f===null||N===null){W.error("Selection attempted on non-text input element",M.target);return}if(W.debug2("handleSelect",x,f,N),!(p!=null&&x===p.selectionStart&&f===p.selectionEnd)){if(p!=null&&x===u.length&&f===u.length&&M.nativeEvent.type!=="mouseup"){r({...p});return}if(x===f){const V=E(x);W.debug("Selection segment from ",x,f,"=>",V),r(V)}else r({selectionStart:x,selectionEnd:f,selectionDirection:N})}},[E,r,p,u]),be=m.exports.useCallback(M=>{if(!S.current)return;W.debug("handleSelectCapture",M);const x=S.current.selectionStart??0;x===u.length&&p!=null&&x!==p.selectionStart&&(M.preventDefault(),M.stopPropagation())},[S,p,u]);function me(M){if(M.preventDefault(),M.stopPropagation(),!S.current)return;const{key:x}=M,{selectionStart:f=0,selectionEnd:N=0}=S.current;if(f===null||N===null){W.error("Selection arrow nvaigation attempted on non-text input element",M.target);return}x==="ArrowLeft"?r(U(f)):x==="ArrowRight"?r(H(N)):x==="ArrowUp"?z(f,-1):x==="ArrowDown"&&z(f,1)}function Me(M){if(!S.current)return;W.debug("handleKeyDown",M);const{key:x}=M,{selectionStart:f=0,selectionEnd:N=0}=S.current;if(f===null||N===null){W.error("Selection key event on non-text input element",M.target);return}if(x.startsWith("Arrow")){me(M);return}if(x==="Delete"||x==="Backspace"){if(M.preventDefault(),M.stopPropagation(),N>=tt(u,C).length){const L=u.substring(0,f===N?f-1:f),q=tt(L,C);q!==u&&(a(q),r({selectionStart:q.length,selectionEnd:q.length,selectionDirection:oe.NONE}));return}if(f!==N){const L=u.substring(0,f)+u.substring(f,N).replace(/[a-zA-Z0-9]/g,Ce)+u.substring(N);W.debug("Range ",f,N,"deleted, setting value",L),a(L),r({selectionStart:f,selectionEnd:f,selectionDirection:oe.NONE})}else if(f>0)for(let L=f-1;L>=0;L-=1){const q=u.substring(0,L)+u.substring(L,f).replace(/[a-zA-Z0-9]/g,Ce)+u.substring(f);if(q!==u){a(q),r({selectionStart:L,selectionEnd:L,selectionDirection:oe.NONE});return}}return}if(M.altKey||M.metaKey||M.ctrlKey||x.length>1)return;M.preventDefault(),M.stopPropagation();const V=Array.from(new Set([x,x.toUpperCase(),x.toLowerCase()]));for(let L=0;L<V.length;L+=1){const q=V[L],Gt=/[a-zA-Z0-9]/g.test(q)?I[0].length-1:f;for(let X=f;X<=Gt;X+=1){const qt=ts(u,I[0],X+1),De=o(qt,X,q,f,N);if(P(De,X+1)){const qe=E(X),Ae=X+1;let ke={selectionStart:Ae,selectionEnd:Ae,selectionDirection:oe.NONE};if(Ae>=qe.selectionEnd){const je=H(X);je.selectionStart!==qe.selectionStart&&(ke=je)}W.debug("handleKeyDown",x,"=>",De,ke),a(De),r(ke);return}}}}return l("input",{ref:S,className:b("form-control masked-input",n),type:"text",pattern:c,placeholder:d,value:u,onChange:()=>{},onKeyDown:Me,onSelect:ie,onSelectCapture:be,onFocus:y,onBlur:v,"data-testid":T})});Le.defaultProps={className:"",placeholder:void 0,onChange(){},onSelect(){},getNextSegmentValue:(e,t,n)=>n,getPreferredReplacementString:$e,selection:void 0,onFocus(){},onBlur(){},"data-testid":void 0};const ns=A.module("TimeInput"),ss="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",is=["00:00:00","12:34:56","23:59:59"],At=g.forwardRef((e,t)=>{const{allowValueWrapping:n=!0,className:s="",onChange:i=()=>!1,value:o=0,onFocus:a=()=>!1,onBlur:r=()=>!1,onSelect:c=()=>!1,"data-testid":d}=e,[p,u]=m.exports.useState(te.formatTime(o)),[y,v]=m.exports.useState(),T=m.exports.useRef(null);m.exports.useImperativeHandle(t,()=>({focus:()=>{T.current?.focus()},setSelection:D=>{T.current?.focus(),v(D)}}),[]),m.exports.useEffect(function(){u(te.formatTime(o))},[o]);function S(D,P,H){const U=D.selectionStart===0?24:60;let z=parseInt(H,10)-P;return Number.isNaN(z)?z=0:n?z=(z%U+U)%U:z=Math.min(Math.max(0,z),U-1),`${z}`.padStart(2,"0")}function I(D,P,H,U,z){return U===0&&z===2&&P===1&&parseInt(H,10)>1?`0${H}${D.substring(2)}`:$e(D,P,H)}function C(D){ns.debug("handleChange",D),u(D),te.isTimeString(D)&&i(te.parseTime(D))}const E=m.exports.useCallback(D=>{v(D),c(D)},[c]);return l(Le,{ref:T,className:s,example:is,getNextSegmentValue:S,getPreferredReplacementString:I,onChange:C,onSelect:E,pattern:ss,selection:y,value:p,onFocus:a,onBlur:r,"data-testid":d})});At.defaultProps={allowValueWrapping:!0,className:"",onChange:()=>!1,onSelect:()=>!1,value:0,onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};class kt extends m.exports.PureComponent{constructor(t){super(t),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMenuItemClick=this.handleMenuItemClick.bind(this),this.handleMenuItemMouseMove=this.handleMenuItemMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleCloseMenu=this.handleCloseMenu.bind(this),this.container=g.createRef(),this.oldFocus=document.activeElement,this.rAF=0;const{options:n}=t,s=n.initialKeyboardIndex??-1;this.state={menuItems:[],keyboardIndex:s,mouseIndex:-1}}componentDidMount(){this.initMenu(),this.rAF=window.requestAnimationFrame(()=>{this.container.current?.focus();const{onMenuOpened:t}=this.props;t(this)})}componentDidUpdate(t){const{actions:n}=this.props;t.actions!==n&&this.initMenu()}componentWillUnmount(){cancelAnimationFrame(this.rAF)}getKeyboardIndex(){const{options:t}=this.props;if(t.separateKeyboardMouse!==void 0&&t.separateKeyboardMouse){const{keyboardIndex:n}=this.state;return n}return this.getMouseIndex()}setKeyboardIndex(t){const{options:n}=this.props;n.separateKeyboardMouse!==void 0&&n.separateKeyboardMouse?this.setState({keyboardIndex:t}):this.setMouseIndex(t)}getMouseIndex(){const{mouseIndex:t}=this.state;return t}setMouseIndex(t){this.setState({mouseIndex:t})}initMenu(){cancelAnimationFrame(this.rAF),this.setState({menuItems:[]});const{actions:t}=this.props,n=k.getMenuItems(t,!1);n.length>0&&this.setState(s=>({menuItems:k.sortActions(s.menuItems.concat(n))}))}handleKeyDown(t){const{menuItems:n}=this.state,s=this.getKeyboardIndex();let i=s;if(t.key==="Enter"||t.key===" "){s!=null&&s>=0&&s<n.length&&this.handleMenuItemClick(n[s],t);return}t.key==="Escape"?i=null:t.key==="ArrowUp"||t.key==="Tab"&&t.shiftKey===!0?i=k.getNextMenuItem(i??0,-1,n):(t.key==="ArrowDown"||t.key==="Tab"&&t.shiftKey===!1)&&(i=k.getNextMenuItem(i??0,1,n)),s!==i&&(i!==null?this.setKeyboardIndex(i):(this.closeMenu(),this.oldFocus instanceof HTMLElement&&this.oldFocus.focus()),t.preventDefault(),t.stopPropagation())}closeMenu(t=!1){const{closeMenu:n,onMenuClosed:s}=this.props;cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{n(t),s(this)})}handleCloseMenu(){this.closeMenu()}handleMenuItemClick(t,n){n.preventDefault(),n.stopPropagation(),t!=null&&(t.disabled===void 0||!t.disabled)&&t.action!=null&&(t.action(),this.closeMenu(!0))}handleMenuItemMouseMove(t){const{menuItems:n}=this.state,s=n.indexOf(t);this.setMouseIndex(s)}handleMouseLeave(){this.setMouseIndex(-1)}render(){const t=[],{"data-testid":n}=this.props,{keyboardIndex:s,menuItems:i,mouseIndex:o}=this.state;for(let r=0;r<i.length;r+=1){const c=i[r];r>0&&c.group!==i[r-1].group&&t.push(l("hr",{},`${r}.separator`));const d=l(Ee,{isKeyboardSelected:s===r,isMouseSelected:o===r,menuItem:c,closeMenu:this.handleCloseMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:()=>!1},r);t.push(d)}const{menuStyle:a}=this.props;return l("div",{className:"context-menu-container",style:{...a},ref:this.container,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,role:"menuitem",tabIndex:0,"data-testid":n,children:t})}}kt.defaultProps={closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0};class Ot extends m.exports.PureComponent{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleCloseMenu=this.handleCloseMenu.bind(this),this.handleExited=this.handleExited.bind(this),this.container=g.createRef(),this.parent=null,this.popper=g.createRef(),this.isOpen=!1}componentDidMount(){const{isShown:t}=this.props;t===null?this.container.current?.parentElement&&(this.parent=this.container.current.parentElement,this.parent.addEventListener("click",this.handleClick)):t&&this.openMenu()}componentDidUpdate(t){const{isShown:n}=this.props;t.isShown!==n&&(n!==null&&n?window.requestAnimationFrame(()=>{this.openMenu()}):this.closeMenu())}componentWillUnmount(){this.parent&&this.parent.removeEventListener("click",this.handleClick)}closeMenu(){this.popper.current?.hide()}openMenu(){this.popper.current&&!this.isOpen&&(this.popper.current.show(),this.isOpen=!0)}scheduleUpdate(){this.popper.current?.scheduleUpdate()}handleClick(t){t.preventDefault(),t.stopPropagation(),this.openMenu()}handleCloseMenu(){this.closeMenu()}handleExited(){this.isOpen=!1;const{onMenuClosed:t}=this.props;t()}render(){const{actions:t,onMenuOpened:n,popperClassName:s,"data-testid":i}=this.props,{menuStyle:o}=this.props;let{options:a,popperOptions:r}=this.props;return r={placement:"bottom",...r},a={separateKeyboardMouse:!0,...a},l("div",{className:"menu-actions-listener",ref:this.container,"data-testid":i,children:l(se,{ref:this.popper,options:r,className:b("menu-popper",s),onExited:this.handleExited,closeOnBlur:!0,interactive:!0,children:l(kt,{actions:t,closeMenu:this.handleCloseMenu,onMenuOpened:n,options:a,menuStyle:o})})})}}Ot.defaultProps={isShown:null,onMenuClosed(){},onMenuOpened(){},options:{},popperOptions:{},popperClassName:"",menuStyle:{},"data-testid":void 0};const nt=-1;var Ht=(e=>(e.UP="UP",e.DOWN="DOWN",e))(Ht||{});const Z=class extends m.exports.Component{constructor(e){super(e);const{value:t,valueToTime:n}=e;this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.handleCustomInput=this.handleCustomInput.bind(this),this.csContainer=g.createRef(),this.menuContainer=g.createRef(),this.button=g.createRef(),this.input=g.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:n(t),inputFocused:!1}}getSelectedText(){const{options:e,value:t,placeholder:n}=this.props,{customTime:s}=this.state;if(t===null)return n;for(let i=0;i<e.length;i+=1){const o=e[i];if(o.value===t)return o.title}return te.formatTime(s)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){this.button.current?.focus()}updateInputValue(e){const{onChange:t}=this.props;t(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){const{keyboardOptionIndex:t,inputFocused:n}=this.state,{options:s}=this.props;switch(e.key){case"Enter":case" ":n?this.updateFromCustom():this.updateInputValue(s[t].value),this.closeMenu(),this.button.current?.focus(),e.stopPropagation(),e.preventDefault();break;case"Tab":e.shiftKey?this.handleMenuNavigation(Z.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(Z.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(Z.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(Z.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(e){const{keyboardOptionIndex:t,inputFocused:n}=this.state,{options:s}=this.props,i=s.length;let o=t;switch(e){case Z.MENU_NAVIGATION_DIRECTION.UP:if(!n&&t===0){this.focusInput();break}else n&&this.focusOption(t);t>0&&!n?(o=(o-1)%i,this.setState({keyboardOptionIndex:o})):t===0&&(o=i-1,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break;case Z.MENU_NAVIGATION_DIRECTION.DOWN:if(!n&&t===i-1){this.focusInput();break}else n&&this.focusOption(t);t<i&&!(n&&t===0)&&(o=(o+1)%i,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break}}handleOptionClick(e){const t=Number(e.currentTarget.value),{options:n,timeToValue:s}=this.props,{customTime:i}=this.state;if(t===nt){const o=s(i);this.updateAndClose(o)}else this.updateAndClose(n[t].value)}updateAndClose(e){this.updateInputValue(e),this.closeMenu(),this.button.current?.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleMenuOpened(){const{options:e,value:t}=this.props,{keyboardOptionIndex:n}=this.state;this.scrollOptionIntoView(n);const s=this.menuContainer.current?.querySelector(".cs-option-btn.keyboard-active");if(s instanceof HTMLElement&&s.focus(),t===null)return;e.map(o=>o.value).indexOf(t)<0&&this.focusInput()}focusInput(){this.input.current?.focus()}focusOption(e){const t=this.menuContainer.current?.querySelector(".cs-options");if(t&&t.children!=null){const n=t.children.item(e);n instanceof HTMLElement&&n.focus()}}handleMenuExited(){const{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(e){const{timeToValue:t}=this.props,n=t(e);this.updateInputValue(n),this.setState({customTime:e})}updateFromCustom(){const{timeToValue:e}=this.props,{customTime:t}=this.state,n=e(t);this.updateInputValue(n)}toggleMenu(e){const{menuIsOpen:t}=this.state;t?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(e=!0){this.setState({menuIsOpen:!1}),e&&this.button.current?.focus()}updateKeyboardIndex(){const{options:e,value:t}=this.props;if(t===null)return;const n=e.map(s=>s.value).indexOf(t);n>0&&this.setState({keyboardOptionIndex:n})}scrollOptionIntoView(e){const t=this.menuContainer.current?.querySelector(".cs-options");if(t&&t.children!=null){const n=t.children.item(e);n instanceof HTMLElement&&n.offsetTop>Z.DROP_DOWN_MENU_HEIGHT?t.scrollTop=n.offsetTop-Z.DROP_DOWN_MENU_HEIGHT:(n instanceof HTMLElement&&n.offsetTop<0||e===0)&&(t.scrollTop=0)}}renderMenuElement(){const{inputWidth:e}=this.state;return l("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:t=>{t.stopPropagation()},style:{width:e},children:l("div",{className:"cs-options-container",children:l("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){const{options:e,value:t,icon:n,customText:s}=this.props,{keyboardOptionIndex:i,customTime:o,inputFocused:a}=this.state;let r=!1;const c=[];for(let d=0;d<e.length;d+=1){const p=e[d],u=`option-${d}-${p.value}`;r=r||p.value===t,c.push(w("button",{type:"button",value:d,className:b("cs-option-btn",{"keyboard-active":i===d&&!a}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[p.value===t&&l(R,{icon:n,className:"mr-2"}),p.value!==t&&l("span",{className:"mr-4"}),p.title]},u))}return c.push(l("hr",{className:"cs-divider"},"option-divider")),c.push(w("button",{type:"button",value:nt,className:b("cs-option-btn",{"keyboard-active":a}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!r&&t!==null?l(R,{icon:n,className:"mr-2"}):l("span",{className:"mr-4"}),s]},"option-custom-label")),c.push(w("div",{className:"cs-custom-container",children:[l("span",{className:"mr-2"}),l(At,{ref:this.input,onChange:this.handleCustomInput,value:o,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),l("span",{className:"ml-2"})]},"cs-custom-container")),c.push(l("hr",{className:"mb-2"},"option-end")),c}render(){const{disabled:e,invalid:t,value:n,"data-testid":s}=this.props,{menuIsOpen:i}=this.state;let{popperOptions:o}=this.props;return o={placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}},...o},l("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":s,children:l("div",{className:b("input-group-append cs-dropdown",{"cs-dropdown-invalid":t}),children:w("button",{type:"button",className:b("btn cs-btn form-control",{"cs-btn-invalid":t}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[l("span",{className:b({"text-muted":n===null}),children:this.getSelectedText()}),l("span",{children:l(R,{icon:yt,className:"cs-caret"})}),l(Ot,{isShown:i,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}};let We=Z;We.MENU_NAVIGATION_DIRECTION=Ht;We.DROP_DOWN_MENU_HEIGHT=125;We.defaultProps={onChange(){},value:null,disabled:!1,popperOptions:{},icon:Vn,customText:"Custom",placeholder:"Select a time",valueToTime:e=>e===null?0:Math.round(e/1e3),timeToValue:e=>e*1e3,invalid:!1,"data-testid":void 0};function ae(e,t,n,s,i){const o=s-n+1;return`${((parseInt(t,10)-e-n)%o+o)%o+n}`.padStart(i,"0")}function Vt(e,t,n){const{selectionStart:s}=e;return s===0?ae(t,n,1900,2099,4):s===5?ae(t,n,1,12,2):s===8?ae(t,n,1,31,2):s===11?ae(t,n,0,23,2):s===17||s===14?ae(t,n,0,59,2):s===20||s===24||s===28?ae(t,n,0,999,3):n}const os=A.module("DateTimeInput"),as="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",rs="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\\.[0-9]{3}\u200B[0-9]{3}\u200B[0-9]{3}",ls=`${as} ${rs}`,Ie="2022-01-01",zt=`${Ie} 00:00:00.000000000`,cs="YYYY-MM-DD HH:MM:SS.SSSSSSSSS";function st(e){return e!=null&&e.length>=Ie.length?`${e.substring(0,Ie.length)}${e.substring(Ie.length).replace(/\u2007/g,"0")}${zt.substring(e.length)}`:e}function ze(e){const t=e.substring(0,23),n=e.substring(23,26),s=e.substring(26);return[t,n,s].filter(i=>i!=="").join("\u200B")}const it=e=>e.replace(/\u200B/g,""),hs=[ze(zt)],Rt=g.forwardRef((e,t)=>{const{className:n="",onChange:s=()=>{},defaultValue:i="",onFocus:o=()=>{},onBlur:a=()=>{},"data-testid":r}=e,[c,d]=m.exports.useState(i.length>0?ze(i):""),[p,u]=m.exports.useState(),y=m.exports.useCallback(T=>{os.debug("handleChange",T),d(T),s(st(it(T)))},[s]),v=m.exports.useCallback(()=>{const T=it(c),S=st(T);S!==T&&d(ze(S)),a()},[c,a]);return l("div",{className:"d-flex flex-row align-items-center",children:l(Le,{ref:t,className:b(n),example:hs,getNextSegmentValue:Vt,onChange:y,onSelect:u,pattern:ls,placeholder:cs,selection:p,value:c,onFocus:o,onBlur:v,"data-testid":r})})});Rt.displayName="DateTimeInput";Rt.defaultProps={className:"",onChange:()=>{},defaultValue:"",onFocus:()=>{},onBlur:()=>{},"data-testid":void 0};const ds=A.module("DateInput"),us="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",ps=["2000-01-01","2022-12-31"],ms="YYYY-MM-DD",Ft=g.forwardRef((e,t)=>{const{className:n="",onChange:s=()=>{},defaultValue:i="",onFocus:o=()=>{},onBlur:a=()=>{},"data-testid":r}=e,[c,d]=m.exports.useState(i),[p,u]=m.exports.useState(),y=m.exports.useCallback(v=>{ds.debug("handleChange",v),d(v),s(v)},[s]);return l("div",{className:"d-flex flex-row align-items-center",children:l(Le,{ref:t,className:b(n),example:ps,getNextSegmentValue:Vt,onChange:y,onSelect:u,pattern:us,placeholder:ms,selection:p,value:c,onFocus:o,onBlur:a,"data-testid":r})})});Ft.displayName="DateInput";Ft.defaultProps={className:"",onChange:()=>!1,defaultValue:"",onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};class fs extends m.exports.PureComponent{constructor(t){super(t),this.searchInput=g.createRef(),this.handleChange=this.handleChange.bind(this),this.sendUpdate=dt(this.sendUpdate.bind(this),t.debounceMs),this.state={value:t.value}}componentDidUpdate(t){const{value:n}=this.props;t.value!==n&&this.setState({value:n})}focus(){this.searchInput.current?.focus()}handleChange(t){this.setState({value:t.target.value},this.sendUpdate)}sendUpdate(){const{onChange:t}=this.props,{value:n}=this.state;t(n)}render(){const{placeholder:t,className:n,matchCount:s,id:i,"data-testid":o}=this.props,{value:a}=this.state;return l(Ke,{value:a,placeholder:t,onChange:this.handleChange,className:n,matchCount:s,ref:this.searchInput,id:i,"data-testid":o})}}fs.defaultProps={placeholder:"Search",className:"",matchCount:null,debounceMs:250,id:"","data-testid":void 0};const vs=A.module("ItemListItem"),Pt=class extends m.exports.Component{constructor(e){super(e),this.handleBlur=this.handleBlur.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleClick=this.handleClick.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.handleDragStart=this.handleDragStart.bind(this),this.handleDrag=this.handleDrag.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragEnd=this.handleDragEnd.bind(this),this.handleDrop=this.handleDrop.bind(this),this.handleDoubleClick=this.handleDoubleClick.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.itemRef=g.createRef()}static handleKeyDown(){return vs.log("ItemListItem.handleKeyDown false"),!1}handleBlur(e){const{itemIndex:t,onBlur:n}=this.props;n(t,e)}handleFocus(e){const{itemIndex:t,onFocus:n}=this.props;n(t,e)}handleClick(e){const{itemIndex:t,onClick:n}=this.props;n(t,e)}handleContextMenu(e){const{itemIndex:t,onContextMenu:n}=this.props;n(t,e)}handleDragStart(e){const{itemIndex:t,onDragStart:n}=this.props;n(t,e)}handleDrag(e){const{itemIndex:t,onDrag:n}=this.props;n(t,e)}handleDragOver(e){e.preventDefault();const{itemIndex:t,onDragOver:n}=this.props;n(t,e)}handleDragEnd(e){const{itemIndex:t,onDragEnd:n}=this.props;n(t,e)}handleDrop(e){const{itemIndex:t,onDrop:n}=this.props;n(t,e)}handleDoubleClick(e){const{itemIndex:t,onDoubleClick:n}=this.props;n(t,e)}handleMouseMove(e){const{itemIndex:t,onMouseMove:n}=this.props;n(t,e)}handleMouseDown(e){const{itemIndex:t,onMouseDown:n}=this.props;n(t,e)}handleMouseUp(e){const{itemIndex:t,onMouseUp:n}=this.props;n(t,e)}render(){const{isDraggable:e,isFocused:t,isSelected:n,style:s,children:i,"data-testid":o}=this.props;return l("div",{className:b("item-list-item",{active:n},{"is-focused":t},{"is-draggable":e}),onKeyDown:Pt.handleKeyDown,onContextMenuCapture:this.handleContextMenu,onClick:this.handleClick,onDrag:this.handleDrag,onDragStart:this.handleDragStart,onDragOver:this.handleDragOver,onDragEnd:this.handleDragEnd,onDrop:this.handleDrop,onDoubleClick:this.handleDoubleClick,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,tabIndex:-1,ref:this.itemRef,role:"listitem",style:s,onFocus:this.handleFocus,onBlur:this.handleBlur,draggable:e,"data-testid":o,children:i})}};let _t=Pt;_t.defaultProps={children:null,isDraggable:!1,isFocused:!1,isSelected:!1,itemIndex:0,"data-testid":void 0,onBlur(){},onClick(){},onContextMenu(){},onDragStart(){},onDrag(){},onDragOver(){},onDragEnd(){},onDrop(){},onDoubleClick(){},onFocus(){},onMouseDown(){},onMouseMove(){},onMouseUp(){},style:{}};const ot=A.module("ItemList"),at=5,ce=class extends m.exports.PureComponent{constructor(e){super(e),this.getItemSelected=K((s,i)=>j.isSelected(i,s),{max:ce.CACHE_SIZE}),this.getCachedItem=K((s,i,o,a,r,c,d,p)=>{const u=c({item:o,itemIndex:s,isFocused:a,isSelected:r,style:d});return l(_t,{onContextMenu:this.handleItemContextMenu,onDoubleClick:this.handleItemDoubleClick,onMouseDown:this.handleItemMouseDown,onFocus:this.handleItemFocus,onBlur:this.handleItemBlur,disableSelect:p,onMouseMove:this.handleItemMouseMove,onMouseUp:this.handleItemMouseUp,isFocused:a,isSelected:r,itemIndex:s,style:d,children:u},i)},{max:ce.CACHE_SIZE}),this.getOuterElement=K(s=>{const i=g.forwardRef((o,a)=>l("div",{ref:a,tabIndex:-1,onKeyDown:s,role:"presentation",...o}));return i.displayName="ItemListOuterElement",i}),this.getInnerElement=K(()=>{const s=g.forwardRef((i,o)=>l("div",{className:"item-list-inner-element",ref:o,...i}));return s.displayName="ItemListInnerElement",s}),this.getItemData=K((s,i,o)=>({items:s,selectedRanges:i,renderItem:o})),this.handleItemBlur=this.handleItemBlur.bind(this),this.handleItemContextMenu=this.handleItemContextMenu.bind(this),this.handleItemFocus=this.handleItemFocus.bind(this),this.handleItemDoubleClick=this.handleItemDoubleClick.bind(this),this.handleItemMouseDown=this.handleItemMouseDown.bind(this),this.handleItemMouseMove=this.handleItemMouseMove.bind(this),this.handleItemMouseUp=this.handleItemMouseUp.bind(this),this.handleItemsRendered=this.handleItemsRendered.bind(this),this.handleWindowMouseUp=this.handleWindowMouseUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleResize=this.handleResize.bind(this),this.renderInnerElement=this.renderInnerElement.bind(this),this.list=g.createRef(),this.listContainer=g.createRef();const{isStickyBottom:t,selectedRanges:n}=e;this.state={focusIndex:null,mouseDownIndex:null,selectedRanges:n,overscanStartIndex:0,height:null,isDragging:!1,isStuckToBottom:t,scrollOffset:null,mouseX:null,mouseY:null}}static renderItem({item:e}){return l("div",{className:"item-list-item-content",children:e!=null&&(e.displayValue??e.value??`${e}`)})}componentDidUpdate(e,t){const{selectedRanges:n,itemCount:s}=this.props,{focusIndex:i,isStuckToBottom:o,scrollOffset:a,height:r,selectedRanges:c}=this.state;if(o&&!this.isListAtBottom()&&s>0&&this.scrollToBottom(),(a!==t.scrollOffset||r!==t.height)&&this.sendViewportUpdate(),n!==e.selectedRanges&&n!==c)this.setSelectedRanges(n);else if(c!==t.selectedRanges){const{onSelectionChange:d}=this.props;d(c)}if(i!==t.focusIndex){const{onFocusChange:d}=this.props;d(i)}}componentWillUnmount(){window.removeEventListener("mouseup",this.handleWindowMouseUp)}focus(){this.listContainer.current?.focus()}restoreScrollPosition(){const{scrollOffset:e}=this.state;e!=null&&this.listContainer.current?.scrollTo(0,e)}getElement(e){if(this.listContainer.current==null)return null;const{focusSelector:t}=this.props,{overscanStartIndex:n}=this.state,s=this.listContainer.current.querySelectorAll(t),i=e-n;return s[i]}focusItem(e){const{disableSelect:t}=this.props;if(t)return;this.setState({focusIndex:e});const n=this.getElement(e);n instanceof HTMLElement&&n.focus()}scrollToItem(e){const t=this.getElement(e);t?.scrollIntoView({block:"center"})}handleItemContextMenu(e,t){const{selectedRanges:n}=this.state,i=j.isSelected(n,e)||k.isModifierKeyDown(t);this.toggleSelect(e,t.shiftKey,i,!1)}handleItemDoubleClick(e,t){const{isDoubleClickSelect:n,onSelect:s}=this.props;n&&this.setState(({selectedRanges:i})=>({selectedRanges:j.selectRange(i,[e,e])}),()=>{s(e,t)})}handleItemMouseDown(e,t){const{selectedRanges:n}=this.state;if(!(t.target instanceof HTMLElement&&["button","select","input","textarea"].indexOf(t.target.tagName.toLowerCase())!==-1)){if(t.button===2&&n.length===0){this.focusItem(e),this.selectItem(e);return}t.button!=null&&t.button!==0||(this.setState({mouseDownIndex:e,mouseX:t.clientX,mouseY:t.clientY}),window.addEventListener("mouseup",this.handleWindowMouseUp))}}handleItemBlur(e,t){ot.debug2("item blur",e,t.currentTarget,t.relatedTarget),(!t.relatedTarget||this.listContainer.current&&t.relatedTarget instanceof HTMLElement&&!this.listContainer.current.contains(t.relatedTarget))&&this.setState({focusIndex:null})}handleItemFocus(e,t){ot.debug2("item focus",e,t.target),this.setState(n=>{const{focusIndex:s}=n;return s!==e?{focusIndex:e}:null})}handleItemMouseMove(e,t){const{isDragSelect:n,isMultiSelect:s,disableSelect:i}=this.props,{mouseDownIndex:o,selectedRanges:a,mouseX:r,mouseY:c}=this.state;if(o==null||i)return;const d=Math.abs(t.clientX-(r??0)),p=Math.abs(t.clientY-(c??0));d>at&&p>at&&this.setState({isDragging:!0}),(n||o===e)&&(this.focusItem(e),s?(!n&&!this.getItemSelected(e,a)&&!k.isModifierKeyDown(t)&&this.deselectAll(),this.selectRange([Math.min(o,e),Math.max(o,e)])):this.toggleSelect(e,t.shiftKey,k.isModifierKeyDown(t),!1))}handleItemMouseUp(e,t){const{isDeselectOnClick:n,isDoubleClickSelect:s,onSelect:i}=this.props,{mouseDownIndex:o,isDragging:a}=this.state;if(!(t.target instanceof HTMLElement&&["button","select","input","textarea"].indexOf(t.target.tagName.toLowerCase())!==-1)){if(o===e&&!a){const r=t.shiftKey,c=k.isModifierKeyDown(t);this.focusItem(e),this.toggleSelect(e,r,c,n),!s&&!r&&!c&&i(e,t)}this.resetMouseState()}}handleItemsRendered({overscanStartIndex:e}){this.setState({overscanStartIndex:e})}handleResize({height:e}){this.setState({height:e})}handleMouseLeave(){this.setState({mouseDownIndex:null})}handleWindowMouseUp(){this.resetMouseState(),window.removeEventListener("mouseup",this.handleWindowMouseUp)}handleKeyDown(e){const{isMultiSelect:t,itemCount:n,onSelect:s}=this.props,{focusIndex:i}=this.state;let o=i;if(e.key==="Enter"||e.key===" "){!t&&o!=null&&this.setState({selectedRanges:[[o,o]]},()=>{o!=null&&s(o,e)});return}if(e.key==="ArrowUp")o!=null&&o>=0?o=Math.max(0,o-1):o=n-1;else if(e.key==="ArrowDown")o!=null&&o>=0?o=Math.min(o+1,n-1):o=0;else return;if(i!==o){e.stopPropagation(),e.preventDefault(),this.focusItem(o);const{selectedRanges:a}=this.state;if(e.shiftKey&&a.length>0){const r=a[a.length-1];this.selectRange([Math.min(o,r[0]),Math.max(o,r[1])])}else this.deselectAll(),o!==null?this.selectItem(o):this.listContainer.current?.focus();this.scrollIntoView(o)}}handleScroll({scrollUpdateWasRequested:e,scrollOffset:t}){this.setState(n=>{if(e)return{scrollOffset:t};const{isStickyBottom:s}=this.props,{height:i}=n;return{isStuckToBottom:s&&this.isListAtBottom({scrollOffset:t,height:i}),scrollOffset:t}})}resetMouseState(){this.setState({mouseDownIndex:null,isDragging:!1})}scrollToBottom(){const{itemCount:e}=this.props;this.list.current&&this.list.current.scrollToItem(e)}scrollIntoView(e){this.list.current&&this.list.current.scrollToItem(e)}toggleSelect(e,t,n,s=!0){const{isMultiSelect:i}=this.props,{selectedRanges:o}=this.state;if(i&&t&&o.length>0){const a=o[o.length-1];this.selectRange([Math.min(a[0],e),Math.max(e,a[1])])}else i&&o.length===1&&o[0][0]===e&&o[0][1]===e?s&&this.deselectItem(e):i&&n?this.getItemSelected(e,o)?s&&this.deselectItem(e):this.selectItem(e):(this.deselectAll(),this.selectItem(e))}deselectAll(){const{itemCount:e}=this.props;this.deselectRange([0,e])}deselectItem(e){this.deselectRange([e,e])}deselectRange(e){j.validateRange(e),this.setState(({selectedRanges:t})=>({selectedRanges:j.deselectRange(t,e)}))}selectItem(e){const{disableSelect:t}=this.props;t||this.selectRange([e,e])}selectRange(e){j.validateRange(e),this.setState(({selectedRanges:t})=>({selectedRanges:j.selectRange(t,e)}))}setSelectedRanges(e){this.setState({selectedRanges:e})}sendViewportUpdate(){const{scrollOffset:e,height:t}=this.state;if(e!=null&&t!=null){const{onViewportChange:n,rowHeight:s}=this.props,i=Math.floor(e/s),o=i+Math.ceil(t/s);n(i,o)}}isListAtBottom({scrollOffset:e,height:t}=this.state){if(t==null||e==null)return!1;const{itemCount:n,rowHeight:s}=this.props;return e+t>=n*s}renderInnerElement({index:e,style:t}){const{items:n,offset:s,renderItem:i,disableSelect:o}=this.props,{focusIndex:a,selectedRanges:r}=this.state;if(e<s||e>=s+n.length)return null;const c=n[e-s];return this.getCachedItem(e,e,c,e===a&&!o,this.getItemSelected(e,r),i,t,o)}render(){const{items:e,itemCount:t,overscanCount:n,renderItem:s,rowHeight:i,"data-testid":o}=this.props,{selectedRanges:a,isStuckToBottom:r}=this.state;return l(Zt,{className:"item-list-auto-sizer",onResize:this.handleResize,children:({width:c,height:d})=>l(Xt,{className:"item-list-scroll-pane",height:d,width:c,initialScrollOffset:r?t*i:0,itemCount:t,itemSize:i,itemData:this.getItemData(e,a,s),onScroll:this.handleScroll,onItemsRendered:this.handleItemsRendered,ref:this.list,outerElementType:this.getOuterElement(this.handleKeyDown),outerRef:this.listContainer,innerElementType:this.getInnerElement(),overscanCount:n,"data-testid":o,children:this.renderInnerElement})})}};let de=ce;de.CACHE_SIZE=1e3;de.DEFAULT_ROW_HEIGHT=20;de.DEFAULT_OVERSCAN=10;de.defaultProps={offset:0,items:[],rowHeight:ce.DEFAULT_ROW_HEIGHT,isDeselectOnClick:!0,isDoubleClickSelect:!1,isDragSelect:!0,isMultiSelect:!1,isStickyBottom:!1,disableSelect:!1,onFocusChange(){},onSelect(){},onSelectionChange(){},onViewportChange(){},overscanCount:ce.DEFAULT_OVERSCAN,renderItem:ce.renderItem,selectedRanges:[],focusSelector:".item-list-item","data-testid":void 0};const ne=class extends m.exports.PureComponent{constructor(e){super(e),this.getCachedDraggableItem=K((t,n,s,i,o,a,r,c)=>l(Jt,{draggableId:ne.getDraggableId(t,i),index:i,isDragDisabled:r,children:d=>l("div",{role:"menuitem",className:"draggable-item-list-item",ref:d.innerRef,tabIndex:-1,...d.draggableProps,...d.dragHandleProps,children:n({item:s,itemIndex:i,isFocused:o,isSelected:a,style:c,isClone:!1})})},i),{max:de.CACHE_SIZE}),this.getCachedRenderDraggableItem=K((t,n,s)=>({item:i,itemIndex:o,isFocused:a,isSelected:r,style:c})=>this.getCachedDraggableItem(t,s,i,o,a,r,n,c),{max:1}),this.getCachedRenderClone=K((t,n,s,i)=>(o,a,r)=>{const{selectedCount:c}=this.state,{draggableProps:d,dragHandleProps:p,innerRef:u}=o,{index:y}=r.source,v=n[y-s];return l("div",{className:b("draggable-item-list-dragging-item-container",t),...d,...p,ref:u,children:l("div",{className:b("draggable-item-list-dragging-item",{"two-dragged":c===2},{"multiple-dragged":c>2}),children:i({item:v,itemIndex:y,isFocused:!1,isSelected:!0,style:{},isClone:!0,selectedCount:c})})})},{max:1}),this.handleSelectionChange=this.handleSelectionChange.bind(this),this.itemList=g.createRef(),this.state={selectedCount:0}}static renderHandle(){return w("div",{children:[l(Q,{children:"Drag to re-order"}),l(R,{icon:Fn})]})}static renderBadge({text:e}){return e!=null&&e.length>0?l("span",{className:"number-badge",children:e}):null}static renderTextItem({text:e,badgeText:t="",className:n=""}){return w("div",{className:b("item-list-item-content","draggable-item-list-item-content",n),children:[l("span",{className:"title",children:e}),ne.renderBadge({text:t}),ne.renderHandle()]})}static renderItem({item:e,isClone:t,selectedCount:n}){const s=e!=null?e.displayValue??e.value??`${e}`:"",i=t!==void 0&&t?`${n}`:"",o=t!==void 0&&t?"item-list-item-clone":"";return ne.renderTextItem({text:s,badgeText:i,className:o})}static getDraggableId(e,t){return`${e}/${t}`}static getDraggableIndex(e){const t=e.split("/").pop();return parseInt(t!==void 0?t:"",10)}selectItem(e){this.itemList.current?.selectItem(e)}focusItem(e){this.itemList.current?.focusItem(e)}scrollToItem(e){this.itemList.current?.scrollToItem(e)}handleSelectionChange(e){this.setState({selectedCount:j.count(e)});const{onSelectionChange:t}=this.props;t(e)}render(){const{className:e,draggablePrefix:t,draggingItemClassName:n,droppableId:s,isDoubleClickSelect:i,isDragDisabled:o,isDropDisabled:a,isMultiSelect:r,isStickyBottom:c,itemCount:d,items:p,offset:u,onFocusChange:y,onSelect:v,onViewportChange:T,renderItem:S,rowHeight:I,selectedRanges:C,style:E,"data-testid":D}=this.props;return l(Qt,{isDropDisabled:a,droppableId:s,mode:"virtual",renderClone:this.getCachedRenderClone(n,p,u,S),"data-testid":D,children:(P,H)=>l("div",{role:"menu",className:b("draggable-item-list",e,{"is-drop-disabled":a,"is-drag-disabled":o,"is-dragging-from-this":H.draggingFromThisWith,"is-dragging-over":H.isDraggingOver,"is-dropping":H.draggingOverWith}),style:E,ref:P.innerRef,...P.droppableProps,children:l(de,{focusSelector:".draggable-item-list-item",isDoubleClickSelect:i,isDragSelect:!1,isMultiSelect:r,isStickyBottom:c,itemCount:d,items:p,onFocusChange:y,onSelect:v,onSelectionChange:this.handleSelectionChange,onViewportChange:T,offset:u,ref:this.itemList,renderItem:this.getCachedRenderDraggableItem(t,o,S),rowHeight:I,selectedRanges:C})})})}};let Ut=ne;Ut.DEFAULT_ROW_HEIGHT=30;Ut.defaultProps={className:"",draggingItemClassName:"",offset:0,items:[],rowHeight:ne.DEFAULT_ROW_HEIGHT,isDeselectOnClick:!0,isDoubleClickSelect:!0,isDropDisabled:!1,isDragDisabled:!1,isMultiSelect:!1,isStickyBottom:!1,disableSelect:!1,style:null,onFocusChange(){},onSelect(){},onSelectionChange(){},onViewportChange(){},renderItem:ne.renderItem,selectedRanges:[],draggablePrefix:"draggable-item",droppableId:"droppable-item-list","data-testid":void 0};const ye=class extends m.exports.Component{static isParentSelected(e,t){const n=t.get(e);if(n===void 0)return!1;if(typeof n=="boolean")return n;const s=Array.from(n.values()).includes(!0),i=Array.from(n.values()).includes(!1);return s&&i?null:s}constructor(e){super(e),this.toggleMenu=this.toggleMenu.bind(this),this.toggleValueFor=this.toggleValueFor.bind(this),this.selectAll=this.selectAll.bind(this),this.clear=this.clear.bind(this),this.state={menuIsOpen:!1}}toggleMenu(e){e.stopPropagation(),e.preventDefault(),this.setState(t=>{const{menuIsOpen:n}=t;return{menuIsOpen:!n}})}toggleValueFor(e,t){const{valueMap:n,onUpdateValueMap:s}=this.props,i=new Map(n),o=i.get(e);if(o instanceof Map){const r=new Map(o);if(t!=null)r.set(t,o.get(t)===void 0);else{const c=ye.isParentSelected(e,i),d=c==null||!c;o.forEach((p,u)=>r.set(u,d))}i.set(e,r)}else i.set(e,o==null||!o);const a=i.get(e);if(t===void 0&&a!==void 0&&typeof a!="boolean"){const r=ye.isParentSelected(e,n);r!=null&&r?a.forEach((c,d)=>a.set(d,!1)):a.forEach((c,d)=>a.set(d,!0))}s(i)}setAllValues(e){const{valueMap:t,onUpdateValueMap:n}=this.props,s=new Map;t.forEach((i,o)=>{if(typeof i=="boolean")s.set(o,e);else{const a=new Map;i.forEach((r,c)=>a.set(c,e)),s.set(o,a)}}),n(s)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){const{valueMap:e,"data-testid":t}=this.props;return w("div",{className:"hcm-menu-container",children:[Array.from(e.entries()).map(([n,s])=>w("div",{children:[l(he,{className:"hcm-parent",checked:ye.isParentSelected(n,e),onChange:()=>this.toggleValueFor(n),children:n}),s!==void 0&&typeof s!="boolean"&&Array.from(s.entries()).map(([i,o])=>l(he,{className:"hcm-child",checked:o,onChange:()=>this.toggleValueFor(n,i),children:i},i))]},n)),l(J,{kind:"ghost",onClick:this.selectAll,"data-testid":t!==void 0?`${t}-btn-select-all`:void 0,children:"Select All"}),l(J,{kind:"ghost",onClick:this.clear,"data-testid":t!==void 0?`${t}-btn-clear`:void 0,children:"Clear"})]})}render(){const{menuText:e,className:t,icon:n,id:s,"data-testid":i}=this.props,{menuIsOpen:o}=this.state;return w("button",{type:"button",className:b("btn hcm-btn",t),onClick:this.toggleMenu,id:s,"data-testid":i,children:[w("span",{children:[n&&l(R,{icon:n,className:"hcm-icon mr-1"}),e]}),l(R,{icon:yt,className:"hcm-icon ml-1"}),l(se,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}};let gs=ye;gs.defaultProps={className:"",icon:null,id:"","data-testid":void 0};function Bt({isLoaded:e=!1,isLoading:t=!0,errorMessage:n=null,"data-testid":s}){return l(ge,{in:Boolean(n)||!e||t,timeout:Se.transitionMs,classNames:e?"fade":"",mountOnEnter:!0,unmountOnExit:!0,children:l("div",{className:"fill-parent-absolute","data-testid":s,children:l("div",{className:b("iris-panel-message-overlay","fill-parent-absolute",{"iris-panel-scrim-background":e}),children:w("div",{className:"message-content",children:[w("div",{className:"message-icon",children:[t&&l(Et,{}),!t&&n!=null&&l(R,{icon:Kn})]}),l("div",{className:"message-text",children:n})]})})})})}const Kt=g.forwardRef((e,t)=>{const{checked:n,children:s,className:i="",disabled:o=!1,inputClassName:a="",isInvalid:r=!1,labelClassName:c="",name:d,onChange:p,value:u,"data-testid":y}=e,[v]=m.exports.useState(pt());return w("div",{className:b("custom-control custom-radio",i),children:[l("input",{type:"radio",id:v,"data-testid":y,name:d,ref:t,className:b("custom-control-input",a,{"is-invalid":r}),checked:n,disabled:o,value:u,onChange:p}),l("label",{className:b("custom-control-label",c),htmlFor:v,children:s})]})});Kt.displayName="RadioItem";Kt.defaultProps={checked:void 0,className:"",disabled:!1,inputClassName:"",isInvalid:!1,labelClassName:"",name:void 0,onChange:void 0,"data-testid":void 0};class bs extends m.exports.PureComponent{constructor(t){super(t),this.getCachedItem=K((n,s,i,o,a,r,c)=>l("li",{className:"value-list-item",style:{height:a},tabIndex:-1,children:l(he,{checked:r,disabled:c,onChange:()=>this.handleSelect(n),children:o??i})},s),{max:1e3}),this.getCachedItems=K((n,s,i,o)=>{const a=[];for(let r=0;r<n.length;r+=1){const c=n[r],{value:d,displayValue:p,isSelected:u}=c,y=i+r,v=y,T=this.getCachedItem(y,v,d,p,s,u,o);a.push(T)}return a},{max:1}),this.handleBlur=this.handleBlur.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleSelect=this.handleSelect.bind(this),this.list=g.createRef(),this.topRow=null,this.bottomRow=null}componentDidMount(){this.sendViewportUpdate()}componentDidUpdate(){this.sendViewportUpdate()}handleBlur(t){if(!t.relatedTarget||this.list.current&&t.relatedTarget instanceof HTMLElement&&!this.list.current.contains(t.relatedTarget)){const{onBlur:n}=this.props;n?.(t)}}handleScroll(){this.sendViewportUpdate()}handleSelect(t){const{items:n,offset:s,onSelect:i}=this.props,o=t-s;if(o>=0&&o<n.length){const a=n[o],{value:r}=a;i(t,r)}else i(t,null)}sendViewportUpdate(){if(!this.list.current||this.list.current.clientHeight===0)return;const{onViewportChange:t,rowHeight:n}=this.props,s=this.list.current.scrollTop,i=s+this.list.current.clientHeight,o=Math.floor(s/n),a=Math.ceil(i/n);(this.topRow!==o||this.bottomRow!==a)&&(this.topRow=o,this.bottomRow=a,t(o,a))}getElement(t){return this.list.current==null?null:this.list.current.querySelectorAll(".value-list-item")[t]}scrollIntoView(t){this.getElement(t)?.scrollIntoView({block:"center"})}render(){const{className:t,disabled:n,isInvalid:s,items:i,itemCount:o,offset:a,rowHeight:r,"data-testid":c}=this.props,d=this.getCachedItems(i,r,a,n);return l("div",{className:b("select-value-list-scroll-pane h-100 w-100",{"is-invalid":s},t),onBlur:this.handleBlur,onScroll:this.handleScroll,ref:this.list,"data-testid":c,children:l("div",{className:"select-value-list",style:{height:o*r},children:l("ol",{className:"select-value-list-content",style:{position:"absolute",height:i.length*r,top:a*r,left:0},children:d})})})}}bs.defaultProps={disabled:!1,rowHeight:21,onBlur:()=>{},"data-testid":void 0};const rt=A.module("Shortcut");var G=(e=>(e.CTRL="MODIFIER_CTRL",e.CMD="MODIFIER_CMD",e.ALT="MODIFIER_ALT",e.OPTION="MODIFIER_OPTION",e.SHIFT="MODIFIER_SHIFT",e))(G||{}),_=(e=>(e.A="A",e.B="B",e.C="C",e.D="D",e.E="E",e.F="F",e.G="G",e.H="H",e.I="I",e.J="J",e.K="K",e.L="L",e.M="M",e.N="N",e.O="O",e.P="P",e.Q="Q",e.R="R",e.S="S",e.T="T",e.U="U",e.V="V",e.W="W",e.X="X",e.Y="Y",e.Z="Z",e.ZERO="0",e.ONE="1",e.TWO="2",e.THREE="3",e.FOUR="4",e.FIVE="5",e.SIX="6",e.SEVEN="7",e.EIGHT="8",e.NINE="9",e.BACKSPACE="Backspace",e.ESCAPE="Escape",e.ENTER="Enter",e.DELETE="Delete",e.SLASH="/",e.QUESTION_MARK="?",e.BACKSLASH="\\",e.PIPE="|",e.MINUS="-",e.UNDERSCORE="_",e.EQUALS="=",e.PLUS="+",e.BACKTICK="`",e.TILDE="~",e.COMMA=",",e.LEFT_CHEVRON="<",e.PERIOD=".",e.RIGHT_CHEVRON=">",e.SEMICOLON=";",e.COLON=":",e.SINGLE_QUOTE="'",e.DOUBLE_QUOTE='"',e.LEFT_BRACKET="[",e.RIGHT_BRACKET="]",e.LEFT_CURLY="{",e.RIGHT_CURLY="}",e.F1="F1",e.F2="F2",e.F3="F3",e.F4="F4",e.F5="F5",e.F6="F6",e.F7="F7",e.F8="F8",e.F9="F9",e.F10="F10",e.F11="F11",e.F12="F12",e))(_||{});const Ms=new Set(["Enter","Delete","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]),O=class extends Pe{constructor({id:e,shortcut:t,macShortcut:n,isEditable:s=!0,name:i,tooltip:o}){super(),this.id=e,this.name=i,this.tooltip=o,this.isEditable=s;const r=O.isMacPlatform?n:t;this.defaultKeyState=O.createKeyState(r),this.keyState=this.defaultKeyState}static isAllowedKey(e){return Object.values(_).includes(e)}static isValidKeyState(e){const{keyValue:t}=e;return t===null?!0:!O.isMacPlatform&&e.metaKey||!O.isAllowedKey(t)?!1:!(!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey)||Ms.has(t)}static createKeyState(e){const t={altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,keyValue:e[e.length-1]};return e.forEach(n=>{switch(n){case"MODIFIER_CTRL":t.ctrlKey=!0;break;case"MODIFIER_ALT":case"MODIFIER_OPTION":t.altKey=!0;break;case"MODIFIER_CMD":t.metaKey=!0;break;case"MODIFIER_SHIFT":t.shiftKey=!0;break}}),t}static getKeyStateFromEvent(e){const{key:t,keyCode:n}=e;let s="";return t==="Shift"||t==="Meta"||t==="Control"||t==="Alt"?s="":!O.isAllowedKey(t)&&O.isAllowedKey(String.fromCharCode(n))?s=String.fromCharCode(n):s=t,{keyValue:s,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}}static getWindowsDisplayText(e){let t="";return e.ctrlKey&&(t+="Ctrl+"),e.altKey&&(t+="Alt+"),e.shiftKey&&(t+="Shift+"),e.keyValue==="Escape"?t+="Esc":e.keyValue!==null&&(t+=e.keyValue),t}static getMacDisplayText(e){let t="";switch(e.ctrlKey&&(t+="\u2303"),e.altKey&&(t+="\u2325"),e.shiftKey&&(t+="\u21E7"),e.metaKey&&(t+="\u2318"),e.keyValue){case"Enter":t+="\u23CE";break;case"Escape":t+="\u238B";break;case"Backspace":t+="\u232B";break;case"Delete":t+="\u2326";break;case null:break;default:t+=e.keyValue}return t}static doKeyStatesMatch(e,t){return e.keyValue?.toUpperCase()===t.keyValue?.toUpperCase()&&e.altKey===t.altKey&&e.ctrlKey===t.ctrlKey&&e.metaKey===t.metaKey&&e.shiftKey===t.shiftKey}static getDisplayText(e){return e.keyValue===null?"":O.isMacPlatform?O.getMacDisplayText(e):O.getWindowsDisplayText(e)}getDisplayText(){return O.getDisplayText(this.keyState)}getKeyState(){return this.keyState}setKeyState(e){O.isValidKeyState(e)?(rt.debug2(`Shortcut ${this.id} updated to ${JSON.stringify(e)}`),this.keyState=e,this.dispatchEvent(new wt("onUpdate",{detail:this}))):rt.debug2(`Shortcut ${this.id} tried to update to invalid keyState ${JSON.stringify(e)}`)}getDefaultKeyState(){return this.defaultKeyState}isDefault(){return O.doKeyStatesMatch(this.getDefaultKeyState(),this.getKeyState())}setToNull(){this.setKeyState(O.NULL_KEY_STATE)}isNull(){return O.doKeyStatesMatch(this.keyState,O.NULL_KEY_STATE)}setToDefault(){this.setKeyState(this.defaultKeyState)}matchesKeyState(e){return O.doKeyStatesMatch(e,this.keyState)}matchesEvent(e){return this.matchesKeyState(O.getKeyStateFromEvent(e))}};let Ge=O;Ge.NULL_KEY_STATE={metaKey:!1,shiftKey:!1,altKey:!1,ctrlKey:!1,keyValue:null};Ge.isMacPlatform=k.isMacPlatform();const lt=A.module("ShortcutRegistry");class xs extends Pe{constructor(){super(...arguments),this.shortcutMap=new Map,this.shortcutsByCategory=new Map}createAndAdd(t){const n=new Ge(t);return this.add(n)}add(t){const n=this.shortcutMap.get(t.id);if(n)return lt.warn(`Skipping attempt to add duplicate shortcut ID to registry: ${t.id}`),n;lt.debug2(`Adding shortcut to registry: ${t.id}`),t.addEventListener("onUpdate",({detail:i})=>this.dispatchEvent(new wt("onUpdate",{detail:i})));const s=t.id.split(".")[0];return this.shortcutMap.set(t.id,t),this.shortcutsByCategory.has(s)?this.shortcutsByCategory.get(s)?.push(t):this.shortcutsByCategory.set(s,[t]),t}get(t){return this.shortcutMap.get(t)}getConflictingShortcuts(t){return Array.from(this.shortcutMap.values()).filter(n=>!n.isNull()&&n.matchesKeyState(t))}}const re=Object.freeze(new xs),Io={COPY:re.createAndAdd({id:"GLOBAL.COPY",name:"Copy",shortcut:[G.CTRL,_.C],macShortcut:[G.CMD,_.C],isEditable:!1}),PASTE:re.createAndAdd({id:"GLOBAL.PASTE",name:"Paste",shortcut:[G.CTRL,_.V],macShortcut:[G.CMD,_.V],isEditable:!1}),SAVE:re.createAndAdd({id:"GLOBAL.SAVE",name:"Save",shortcut:[G.CTRL,_.S],macShortcut:[G.CMD,_.S],isEditable:!1}),SELECT_ALL:re.createAndAdd({id:"GLOBAL.SELECT_ALL",name:"Select All",shortcut:[G.CTRL,_.A],macShortcut:[G.CMD,_.A],isEditable:!1}),LINKER:re.createAndAdd({id:"GLOBAL.LINKER",name:"Linker",shortcut:[G.CTRL,_.L],macShortcut:[G.CMD,_.L]}),LINKER_CLOSE:re.createAndAdd({id:"GLOBAL.LINKER_CLOSE",name:"Close Linker Overlay",shortcut:[_.ESCAPE],macShortcut:[_.ESCAPE],isEditable:!1})};const $t=g.forwardRef((e,t)=>{const{children:n,className:s,disabled:i,id:o,isLinked:a,isLinkedSource:r,isInvalid:c,onClick:d,onMouseEnter:p,onMouseLeave:u,style:y,"data-testid":v}=e;return w("button",{ref:t,type:"button",className:b("btn-socketed",{"btn-socketed-linked":a!==void 0&&a||r},{"btn-socketed-linked-source":r},{"is-invalid":c},s),id:o,onClick:d,onMouseEnter:p,onMouseLeave:u,style:y,disabled:i,"data-testid":v,children:[n,l(R,{icon:Pn,className:"linked btn-socketed-icon",transform:"down-1"}),l(R,{icon:$n,className:"is-invalid btn-socketed-icon"})]})});$t.displayName="SocketedButton";$t.defaultProps={children:void 0,className:"",disabled:!1,id:void 0,isLinked:!1,isLinkedSource:!1,isInvalid:!1,onClick:void 0,onMouseEnter:void 0,onMouseLeave:void 0,style:void 0,"data-testid":void 0};const Cs="_track_535ju_30",Is="_handle_535ju_13",ys="_ticks_535ju_98",Wt={"handle-size":"15px","popover-width":"90px","time-slider":"_time-slider_535ju_3","time-slider-popovers":"_time-slider-popovers_535ju_8","handle-popper":"_handle-popper_535ju_13","flex-spacer":"_flex-spacer_535ju_26",track:Cs,"track-fills":"_track-fills_535ju_37","track-fill":"_track-fill_535ju_37","track-fill-start":"_track-fill-start_535ju_55","track-fill-middle":"_track-fill-middle_535ju_56","track-fill-end":"_track-fill-end_535ju_59","handle-track":"_handle-track_535ju_62",handle:Is,ticks:ys,"tick-labels":"_tick-labels_535ju_116","tick-label":"_tick-label_535ju_116","tick-label-wrapper":"_tick-label-wrapper_535ju_132"};parseInt(Wt["handle-size"],10);parseInt(Wt["popover-width"],10);Object.freeze({ERROR:"error"});const He=A.module("@deephaven/code-studio"),Ss=m.exports.createContext(null);function ws({apiUrl:e,children:t,failureElement:n,setGlobally:s=!1}){const[i,o]=m.exports.useState(!0),[a,r]=m.exports.useState();return m.exports.useEffect(()=>{async function c(){try{const d=(await ht(()=>import(e),[])).default;He.info("API bootstrapped from",e),r(d),s&&(He.debug("API set globally"),globalThis.dh=d)}catch(d){He.error("Unable to bootstrap API",d)}o(!1)}c()},[e,s]),i?l(Bt,{}):a==null?n??w(Mt,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[l(Ct,{closeButton:!1,children:"Error: Unable to load API"}),l(xt,{children:w("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",e,", then refresh the page."]})})]}):l(Ss.Provider,{value:a,children:t})}const Re=new Sn,ct=new we(Re);function Ns(){A.setLogLevel(parseInt("2",10)),Re.enable(),ct.enable(),window!=null&&(window.DHLog=A,window.DHLogProxy=Re,window.DHLogHistory=ct)}Ns();const Es=g.lazy(()=>ht(()=>import("./AppRoot.ccd4065e.js"),["assets/AppRoot.ccd4065e.js","assets/AppRoot.fbebddf9.css","assets/vendor.7d6152a1.js","assets/vendor.2939dda5.css","assets/helpers.162e09a8.js","assets/monaco.1292e04e.js","assets/monaco.8607667d.css","assets/plotly.4a640e26.js"]));Fe.render(l(ws,{apiUrl:"/jsapi/dh-core.js",setGlobally:!0,children:l(m.exports.Suspense,{fallback:l(Bt,{}),children:l(Es,{})})}),document.getElementById("root"));export{bo as $,ri as A,J as B,k as C,pe as D,Je as E,Q as F,Io as G,Vn as H,Bt as I,Us as J,_ as K,Et as L,G as M,Os as N,Qs as O,Ye as P,Ai as Q,xi as R,Ke as S,Se as T,Xs as U,fi as V,Wn as W,de as X,mo as Y,ni as Z,Jn as _,Qn as a,Be as a$,_n as a0,Zi as a1,Mo as a2,Mi as a3,xo as a4,Wi as a5,Ys as a6,Si as a7,ho as a8,co as a9,zi as aA,se as aB,go as aC,ji as aD,Fi as aE,so as aF,yt as aG,Te as aH,Mt as aI,Ct as aJ,di as aK,ai as aL,xt as aM,zs as aN,ks as aO,Rt as aP,Xi as aQ,Ti as aR,fo as aS,Li as aT,Ni as aU,Ws as aV,ki as aW,Un as aX,wi as aY,mi as aZ,wt as a_,hi as aa,qi as ab,ui as ac,no as ad,bs as ae,Qi as af,lo as ag,Ut as ah,Zs as ai,Kt as aj,ao as ak,ro as al,Pn as am,vo as an,Fn as ao,_s as ap,uo as aq,gi as ar,_i as as,Pi as at,yi as au,Di as av,As as aw,Ps as ax,Rs as ay,Ri as az,qs as b,$t as b0,ei as b1,ti as b2,Gs as b3,to as b4,j as b5,It as b6,ii as b7,An as b8,vi as b9,fs as ba,Ei as bb,Bs as bc,js as bd,Vs as be,Ki as bf,io as bg,li as bh,Tt as bi,Ge as bj,ct as bk,Vi as bl,ci as bm,Ii as bn,oi as bo,Ji as bp,pi as bq,Gi as br,Hs as bs,oo as bt,eo as bu,zn as c,Fs as d,$s as e,Ci as f,Yi as g,si as h,po as i,te as j,Bn as k,Hi as l,A as m,Ks as n,Ui as o,Js as p,$i as q,re as r,Hn as s,Bi as t,Co as u,bi as v,Oi as w,Kn as x,he as y,Ot as z};
|
|
7
|
-
//# sourceMappingURL=index.
|
|
6
|
+
`,o))},[]);return m.exports.useEffect(()=>(n.current&&clearTimeout(n.current),e&&(n.current=setTimeout(()=>{t(!1)},Yn)),()=>{n.current&&clearTimeout(n.current)}),[e]),[e,s]}const he=g.forwardRef((e,t)=>{const{checked:n=!1,children:s,className:i,disabled:o,inputClassName:a,isInvalid:r,labelClassName:c,name:d,onChange:p,"data-testid":u}=e,[y]=m.exports.useState(pt()),v=Lt(t);m.exports.useEffect(function(){v.current&&(v.current.indeterminate=n===null)},[v,n]);const T=m.exports.useCallback(S=>{v.current&&(v.current.indeterminate=n===null),p&&p(S)},[v,n,p]);return w("div",{className:b("custom-control custom-checkbox",i),children:[l("input",{type:"checkbox",ref:v,checked:n??!1,className:b("custom-control-input",a,{"is-invalid":r}),disabled:o,id:y,name:d,onChange:T,"data-testid":u}),l("label",{className:b("custom-control-label",c),htmlFor:y,children:s})]})});he.displayName="Checkbox";he.propTypes={checked:(e,t)=>{const{[t]:n}=e;return n!==null&&typeof n!="boolean"?new Error("Checked must be a boolean or null for indeterminate"):null},children:h.exports.node.isRequired,className:h.exports.string,disabled:h.exports.bool,inputClassName:h.exports.string,isInvalid:h.exports.bool,labelClassName:h.exports.string,name:h.exports.string,onChange:h.exports.func,"data-testid":h.exports.string};he.defaultProps={checked:!1,className:"",disabled:!1,inputClassName:"",isInvalid:!1,labelClassName:"",name:void 0,onChange:void 0,"data-testid":void 0};class Ke extends m.exports.PureComponent{constructor(t){super(t),this.inputField=g.createRef()}focus(){this.inputField.current?.focus()}render(){const{value:t,placeholder:n,onBlur:s,onChange:i,className:o,disabled:a,matchCount:r,id:c,onKeyDown:d,"data-testid":p}=this.props;return w("div",{className:b("search-group",o),children:[l("input",{type:"search",value:t,onBlur:s,onChange:i,onKeyDown:d,className:"form-control",disabled:a,placeholder:n,ref:this.inputField,id:c,"data-testid":p}),r!=null&&l("span",{className:"search-match",children:r}),l("span",{className:"search-icon",children:l(R,{icon:Un})})]})}}Ke.defaultProps={placeholder:"Search",className:"",matchCount:null,onKeyDown(){},id:"","data-testid":void 0};var Dt=(e=>(e.UP="UP",e.DOWN="DOWN",e))(Dt||{});const ve=class extends m.exports.Component{constructor(e){super(e),this.getCachedFilteredOptions=K((t,n)=>t.filter(s=>s.title.toLowerCase().indexOf(n.toLowerCase())>=0||s.value.toLowerCase().indexOf(n.toLowerCase())>=0)),this.state={value:"",filter:"",filteredOptions:e.options,keyboardOptionIndex:-1,menuIsOpen:!1,inputWidth:100},this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handleFilterChange=this.handleFilterChange.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=g.createRef(),this.cbContainer=g.createRef(),this.toggleButton=g.createRef(),this.menuContainer=g.createRef(),this.input=g.createRef(),this.searchInput=g.createRef()}componentDidUpdate(){const{menuIsOpen:e,keyboardOptionIndex:t}=this.state;e&&t>=0&&this.scrollOptionIntoView()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}focus(){this.input.current?.focus()}resetValue(){this.setState({value:""})}updateInputValue(e){const{onChange:t}=this.props;this.setState({value:e}),t(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){const{filter:t,filteredOptions:n,keyboardOptionIndex:s}=this.state,{options:i}=this.props,o=t?n:i;switch(e.key){case"Enter":o[s]?.value!=null&&this.updateInputValue(o[s].value),this.closeMenu(),this.input.current?.focus(),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(ve.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(ve.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":t!==""?(this.setState({filter:""}),e.stopPropagation()):this.closeMenu();break;case"Tab":!e.shiftKey&&s===o.length-1&&this.closeMenu();break}}handleMenuNavigation(e){const{filter:t,filteredOptions:n,keyboardOptionIndex:s}=this.state,{options:i}=this.props,a=(t?n:i).length;let r=0;switch(e){case ve.MENU_NAVIGATION_DIRECTION.UP:r=-1;break;case ve.MENU_NAVIGATION_DIRECTION.DOWN:r=1;break}r!==0&&this.setState({keyboardOptionIndex:(s+r+a)%a})}handleInputKeyDown(e){const{onEnter:t}=this.props,{menuIsOpen:n}=this.state;e.key==="ArrowDown"||e.key==="ArrowUp"?n||this.openMenu():e.key==="Enter"&&t()}handleInputChange(e){this.updateInputValue(e.target.value)}handleOptionClick(e){const t=Number(e.currentTarget.value),{filter:n,filteredOptions:s}=this.state,{options:i}=this.props,o=n?s:i;this.updateInputValue(o[t].value),this.closeMenu(),this.input.current?.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleFilterChange(e){const{options:t}=this.props,n=e.target.value,s=this.getCachedFilteredOptions(t,n);this.setState({filter:n,filteredOptions:s,keyboardOptionIndex:0}),this.popper.current?.scheduleUpdate()}handleMenuBlur(e){e.relatedTarget instanceof Element&&this.popper.current!=null&&this.popper.current.element.contains(e.relatedTarget)||e.relatedTarget===this.toggleButton.current||this.closeMenu(!1)}handleInputBlur(e){const{menuIsOpen:t}=this.state;t&&e.relatedTarget instanceof Element&&this.popper.current!=null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){this.scrollOptionIntoView(),this.searchInput.current?.focus()}handleMenuExited(){const{menuIsOpen:e}=this.state;e&&(this.setState({menuIsOpen:!1}),this.popper.current?.hide()),this.setState({filter:""})}toggleMenu(e){const{menuIsOpen:t}=this.state;t?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{this.popper.current?.show()})}closeMenu(e=!0){this.setState({menuIsOpen:!1}),e&&this.input.current?.focus(),this.popper.current?.hide()}updateKeyboardIndex(){const{value:e,filter:t,filteredOptions:n}=this.state,{options:s}=this.props,o=(t?n:s).findIndex(a=>a.value===e);this.setState({keyboardOptionIndex:o})}scrollOptionIntoView(){const e=this.menuContainer.current?.querySelector(".cb-option-btn.keyboard-active");e instanceof HTMLElement&&e.scrollIntoView({block:"nearest",inline:"nearest"})}renderMenuElement(){const{searchPlaceholder:e}=this.props,{filter:t,inputWidth:n}=this.state;return w("div",{className:"cb-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:s=>{s.stopPropagation()},style:{width:n},onBlur:this.handleMenuBlur,children:[l("div",{className:"cb-search-input-container",children:l(Ke,{value:t,ref:this.searchInput,onChange:this.handleFilterChange,className:"cb-search-input",placeholder:e})}),l("div",{className:"cb-options-container",children:l("div",{className:"cb-options",children:this.renderOptions()})})]})}renderOptions(){const{options:e}=this.props,{keyboardOptionIndex:t,filter:n,filteredOptions:s}=this.state;return(n?s:e).map((o,a)=>{const r=`option-${a}-${o.value}`;return l("button",{type:"button",value:a,className:b("cb-option-btn",{"keyboard-active":t===a}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:o.title},r)})}render(){const{options:e,inputPlaceholder:t,disabled:n,className:s,defaultValue:i,spellCheck:o,"data-testid":a}=this.props,{value:r}=this.state;let{popperOptions:c}=this.props;return c={placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}},...c},w("div",{className:"input-group cb-container",ref:this.cbContainer,children:[l("input",{value:r||i,className:b("form-control",s,"cb-input"),ref:this.input,onChange:this.handleInputChange,placeholder:t||(e[0]!=null?e[0].title:void 0),disabled:n,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:o,"data-testid":a!==void 0?`${a}-input`:void 0}),l("div",{className:"input-group-append cb-dropdown",children:w("button",{type:"button",className:"btn cb-btn form-control",ref:this.toggleButton,onClick:this.toggleMenu,onKeyDown:this.handleInputKeyDown,disabled:n,"data-testid":a!==void 0?`${a}-btn`:void 0,children:[l(R,{icon:Bn}),l(se,{ref:this.popper,options:c,className:b("combobox interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})})]})}};let Te=ve;Te.MENU_NAVIGATION_DIRECTION=Dt;Te.DROP_DOWN_MENU_HEIGHT=200;Te.propTypes={options:h.exports.arrayOf(h.exports.shape({title:h.exports.string.isRequired,value:h.exports.string.isRequired})).isRequired,popperOptions:h.exports.shape({title:h.exports.string.isRequired,value:h.exports.string.isRequired}),onChange:h.exports.func,inputPlaceholder:h.exports.string,searchPlaceholder:h.exports.string,disabled:h.exports.bool,className:h.exports.string,defaultValue:h.exports.string,spellCheck:h.exports.bool,onEnter:h.exports.func,"data-testid":h.exports.string};Te.defaultProps={onChange(){},inputPlaceholder:"",searchPlaceholder:"Search",disabled:!1,className:"",defaultValue:"",popperOptions:null,spellCheck:!0,onEnter(){},"data-testid":void 0};const W=A.module("MaskedInput"),oe={FORWARD:"forward",BACKWARD:"backward",NONE:"none"},Ce="\u2007";function $e(e,t,n){return e.substring(0,t)+n+e.substring(t+1)}function ts(e,t,n){return e.length<n?`${e}${t.substring(e.length,n)}`:e}function tt(e,t){let{length:n}=e;for(let s=e.length-1;s>=0&&t[s]===e[s];s-=1)n=s;return e.substring(0,n)}const Le=g.forwardRef((e,t)=>{const{className:n,example:s,getNextSegmentValue:i=(M,x,f)=>f,getPreferredReplacementString:o=$e,onChange:a=()=>!1,onSelect:r=()=>!1,pattern:c,placeholder:d,selection:p,value:u,onFocus:y=()=>!1,onBlur:v=()=>!1,"data-testid":T}=e,S=Lt(t),I=m.exports.useMemo(()=>Array.isArray(s)?s:[s],[s]),C=m.exports.useMemo(()=>I[0].replace(/[a-zA-Z0-9]/g,Ce),[I]);m.exports.useEffect(function(){if(p!=null){W.debug("setting selection...",p);const{selectionStart:x,selectionEnd:f,selectionDirection:N}=p;S.current?.setSelectionRange(x,f,N),W.debug("selection set!")}},[p,S]);const E=m.exports.useCallback(M=>{let x=M,f=M;const N=I.length>0?I[0]:u;for(let L=x-1;L>=0&&/[a-zA-Z0-9]/g.test(N.charAt(L));L-=1)x=L;for(let L=f;L<N.length&&/[a-zA-Z0-9]/g.test(N.charAt(L));L+=1)f=L+1;const V=x===f?oe.NONE:oe.BACKWARD;return{selectionStart:x,selectionEnd:f,selectionDirection:V}},[I,u]);function D(M,x,f=M.length){let N="";for(let V=0;V<f;V+=1)M.charAt(V)!==Ce?N=N.concat(M[V]):N=N.concat(x[V]);return N=N.concat(x.substring(f)),N}function P(M,x=M.length){const f=new RegExp(`^${c}$`);if(f.test(M))return!0;for(let N=0;N<I.length;N+=1){const V=D(M,I[N],x);if(f.test(V))return!0}return!1}function H(M){const x=E(M),f=x.selectionEnd+1;return f>=u.length?x:E(f)}function U(M){const x=E(M),f=x.selectionStart-1;return f<=0?x:E(f)}function z(M,x){const f=E(M),N=u.substring(f.selectionStart,f.selectionEnd),V=i(f,x,N,u),L=u.substring(0,f.selectionStart)+V+u.substring(f.selectionEnd);P(L,f.selectionEnd)&&(a(L),r(f))}const ie=m.exports.useCallback(M=>{const{selectionStart:x=0,selectionEnd:f=0,selectionDirection:N="none"}=M.target;if(x===null||f===null||N===null){W.error("Selection attempted on non-text input element",M.target);return}if(W.debug2("handleSelect",x,f,N),!(p!=null&&x===p.selectionStart&&f===p.selectionEnd)){if(p!=null&&x===u.length&&f===u.length&&M.nativeEvent.type!=="mouseup"){r({...p});return}if(x===f){const V=E(x);W.debug("Selection segment from ",x,f,"=>",V),r(V)}else r({selectionStart:x,selectionEnd:f,selectionDirection:N})}},[E,r,p,u]),be=m.exports.useCallback(M=>{if(!S.current)return;W.debug("handleSelectCapture",M);const x=S.current.selectionStart??0;x===u.length&&p!=null&&x!==p.selectionStart&&(M.preventDefault(),M.stopPropagation())},[S,p,u]);function me(M){if(M.preventDefault(),M.stopPropagation(),!S.current)return;const{key:x}=M,{selectionStart:f=0,selectionEnd:N=0}=S.current;if(f===null||N===null){W.error("Selection arrow nvaigation attempted on non-text input element",M.target);return}x==="ArrowLeft"?r(U(f)):x==="ArrowRight"?r(H(N)):x==="ArrowUp"?z(f,-1):x==="ArrowDown"&&z(f,1)}function Me(M){if(!S.current)return;W.debug("handleKeyDown",M);const{key:x}=M,{selectionStart:f=0,selectionEnd:N=0}=S.current;if(f===null||N===null){W.error("Selection key event on non-text input element",M.target);return}if(x.startsWith("Arrow")){me(M);return}if(x==="Delete"||x==="Backspace"){if(M.preventDefault(),M.stopPropagation(),N>=tt(u,C).length){const L=u.substring(0,f===N?f-1:f),q=tt(L,C);q!==u&&(a(q),r({selectionStart:q.length,selectionEnd:q.length,selectionDirection:oe.NONE}));return}if(f!==N){const L=u.substring(0,f)+u.substring(f,N).replace(/[a-zA-Z0-9]/g,Ce)+u.substring(N);W.debug("Range ",f,N,"deleted, setting value",L),a(L),r({selectionStart:f,selectionEnd:f,selectionDirection:oe.NONE})}else if(f>0)for(let L=f-1;L>=0;L-=1){const q=u.substring(0,L)+u.substring(L,f).replace(/[a-zA-Z0-9]/g,Ce)+u.substring(f);if(q!==u){a(q),r({selectionStart:L,selectionEnd:L,selectionDirection:oe.NONE});return}}return}if(M.altKey||M.metaKey||M.ctrlKey||x.length>1)return;M.preventDefault(),M.stopPropagation();const V=Array.from(new Set([x,x.toUpperCase(),x.toLowerCase()]));for(let L=0;L<V.length;L+=1){const q=V[L],Gt=/[a-zA-Z0-9]/g.test(q)?I[0].length-1:f;for(let X=f;X<=Gt;X+=1){const qt=ts(u,I[0],X+1),De=o(qt,X,q,f,N);if(P(De,X+1)){const qe=E(X),Ae=X+1;let ke={selectionStart:Ae,selectionEnd:Ae,selectionDirection:oe.NONE};if(Ae>=qe.selectionEnd){const je=H(X);je.selectionStart!==qe.selectionStart&&(ke=je)}W.debug("handleKeyDown",x,"=>",De,ke),a(De),r(ke);return}}}}return l("input",{ref:S,className:b("form-control masked-input",n),type:"text",pattern:c,placeholder:d,value:u,onChange:()=>{},onKeyDown:Me,onSelect:ie,onSelectCapture:be,onFocus:y,onBlur:v,"data-testid":T})});Le.defaultProps={className:"",placeholder:void 0,onChange(){},onSelect(){},getNextSegmentValue:(e,t,n)=>n,getPreferredReplacementString:$e,selection:void 0,onFocus(){},onBlur(){},"data-testid":void 0};const ns=A.module("TimeInput"),ss="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",is=["00:00:00","12:34:56","23:59:59"],At=g.forwardRef((e,t)=>{const{allowValueWrapping:n=!0,className:s="",onChange:i=()=>!1,value:o=0,onFocus:a=()=>!1,onBlur:r=()=>!1,onSelect:c=()=>!1,"data-testid":d}=e,[p,u]=m.exports.useState(te.formatTime(o)),[y,v]=m.exports.useState(),T=m.exports.useRef(null);m.exports.useImperativeHandle(t,()=>({focus:()=>{T.current?.focus()},setSelection:D=>{T.current?.focus(),v(D)}}),[]),m.exports.useEffect(function(){u(te.formatTime(o))},[o]);function S(D,P,H){const U=D.selectionStart===0?24:60;let z=parseInt(H,10)-P;return Number.isNaN(z)?z=0:n?z=(z%U+U)%U:z=Math.min(Math.max(0,z),U-1),`${z}`.padStart(2,"0")}function I(D,P,H,U,z){return U===0&&z===2&&P===1&&parseInt(H,10)>1?`0${H}${D.substring(2)}`:$e(D,P,H)}function C(D){ns.debug("handleChange",D),u(D),te.isTimeString(D)&&i(te.parseTime(D))}const E=m.exports.useCallback(D=>{v(D),c(D)},[c]);return l(Le,{ref:T,className:s,example:is,getNextSegmentValue:S,getPreferredReplacementString:I,onChange:C,onSelect:E,pattern:ss,selection:y,value:p,onFocus:a,onBlur:r,"data-testid":d})});At.defaultProps={allowValueWrapping:!0,className:"",onChange:()=>!1,onSelect:()=>!1,value:0,onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};class kt extends m.exports.PureComponent{constructor(t){super(t),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMenuItemClick=this.handleMenuItemClick.bind(this),this.handleMenuItemMouseMove=this.handleMenuItemMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleCloseMenu=this.handleCloseMenu.bind(this),this.container=g.createRef(),this.oldFocus=document.activeElement,this.rAF=0;const{options:n}=t,s=n.initialKeyboardIndex??-1;this.state={menuItems:[],keyboardIndex:s,mouseIndex:-1}}componentDidMount(){this.initMenu(),this.rAF=window.requestAnimationFrame(()=>{this.container.current?.focus();const{onMenuOpened:t}=this.props;t(this)})}componentDidUpdate(t){const{actions:n}=this.props;t.actions!==n&&this.initMenu()}componentWillUnmount(){cancelAnimationFrame(this.rAF)}getKeyboardIndex(){const{options:t}=this.props;if(t.separateKeyboardMouse!==void 0&&t.separateKeyboardMouse){const{keyboardIndex:n}=this.state;return n}return this.getMouseIndex()}setKeyboardIndex(t){const{options:n}=this.props;n.separateKeyboardMouse!==void 0&&n.separateKeyboardMouse?this.setState({keyboardIndex:t}):this.setMouseIndex(t)}getMouseIndex(){const{mouseIndex:t}=this.state;return t}setMouseIndex(t){this.setState({mouseIndex:t})}initMenu(){cancelAnimationFrame(this.rAF),this.setState({menuItems:[]});const{actions:t}=this.props,n=k.getMenuItems(t,!1);n.length>0&&this.setState(s=>({menuItems:k.sortActions(s.menuItems.concat(n))}))}handleKeyDown(t){const{menuItems:n}=this.state,s=this.getKeyboardIndex();let i=s;if(t.key==="Enter"||t.key===" "){s!=null&&s>=0&&s<n.length&&this.handleMenuItemClick(n[s],t);return}t.key==="Escape"?i=null:t.key==="ArrowUp"||t.key==="Tab"&&t.shiftKey===!0?i=k.getNextMenuItem(i??0,-1,n):(t.key==="ArrowDown"||t.key==="Tab"&&t.shiftKey===!1)&&(i=k.getNextMenuItem(i??0,1,n)),s!==i&&(i!==null?this.setKeyboardIndex(i):(this.closeMenu(),this.oldFocus instanceof HTMLElement&&this.oldFocus.focus()),t.preventDefault(),t.stopPropagation())}closeMenu(t=!1){const{closeMenu:n,onMenuClosed:s}=this.props;cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{n(t),s(this)})}handleCloseMenu(){this.closeMenu()}handleMenuItemClick(t,n){n.preventDefault(),n.stopPropagation(),t!=null&&(t.disabled===void 0||!t.disabled)&&t.action!=null&&(t.action(),this.closeMenu(!0))}handleMenuItemMouseMove(t){const{menuItems:n}=this.state,s=n.indexOf(t);this.setMouseIndex(s)}handleMouseLeave(){this.setMouseIndex(-1)}render(){const t=[],{"data-testid":n}=this.props,{keyboardIndex:s,menuItems:i,mouseIndex:o}=this.state;for(let r=0;r<i.length;r+=1){const c=i[r];r>0&&c.group!==i[r-1].group&&t.push(l("hr",{},`${r}.separator`));const d=l(Ee,{isKeyboardSelected:s===r,isMouseSelected:o===r,menuItem:c,closeMenu:this.handleCloseMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:()=>!1},r);t.push(d)}const{menuStyle:a}=this.props;return l("div",{className:"context-menu-container",style:{...a},ref:this.container,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,role:"menuitem",tabIndex:0,"data-testid":n,children:t})}}kt.defaultProps={closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0};class Ot extends m.exports.PureComponent{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleCloseMenu=this.handleCloseMenu.bind(this),this.handleExited=this.handleExited.bind(this),this.container=g.createRef(),this.parent=null,this.popper=g.createRef(),this.isOpen=!1}componentDidMount(){const{isShown:t}=this.props;t===null?this.container.current?.parentElement&&(this.parent=this.container.current.parentElement,this.parent.addEventListener("click",this.handleClick)):t&&this.openMenu()}componentDidUpdate(t){const{isShown:n}=this.props;t.isShown!==n&&(n!==null&&n?window.requestAnimationFrame(()=>{this.openMenu()}):this.closeMenu())}componentWillUnmount(){this.parent&&this.parent.removeEventListener("click",this.handleClick)}closeMenu(){this.popper.current?.hide()}openMenu(){this.popper.current&&!this.isOpen&&(this.popper.current.show(),this.isOpen=!0)}scheduleUpdate(){this.popper.current?.scheduleUpdate()}handleClick(t){t.preventDefault(),t.stopPropagation(),this.openMenu()}handleCloseMenu(){this.closeMenu()}handleExited(){this.isOpen=!1;const{onMenuClosed:t}=this.props;t()}render(){const{actions:t,onMenuOpened:n,popperClassName:s,"data-testid":i}=this.props,{menuStyle:o}=this.props;let{options:a,popperOptions:r}=this.props;return r={placement:"bottom",...r},a={separateKeyboardMouse:!0,...a},l("div",{className:"menu-actions-listener",ref:this.container,"data-testid":i,children:l(se,{ref:this.popper,options:r,className:b("menu-popper",s),onExited:this.handleExited,closeOnBlur:!0,interactive:!0,children:l(kt,{actions:t,closeMenu:this.handleCloseMenu,onMenuOpened:n,options:a,menuStyle:o})})})}}Ot.defaultProps={isShown:null,onMenuClosed(){},onMenuOpened(){},options:{},popperOptions:{},popperClassName:"",menuStyle:{},"data-testid":void 0};const nt=-1;var Ht=(e=>(e.UP="UP",e.DOWN="DOWN",e))(Ht||{});const Z=class extends m.exports.Component{constructor(e){super(e);const{value:t,valueToTime:n}=e;this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.handleCustomInput=this.handleCustomInput.bind(this),this.csContainer=g.createRef(),this.menuContainer=g.createRef(),this.button=g.createRef(),this.input=g.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:n(t),inputFocused:!1}}getSelectedText(){const{options:e,value:t,placeholder:n}=this.props,{customTime:s}=this.state;if(t===null)return n;for(let i=0;i<e.length;i+=1){const o=e[i];if(o.value===t)return o.title}return te.formatTime(s)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){this.button.current?.focus()}updateInputValue(e){const{onChange:t}=this.props;t(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){const{keyboardOptionIndex:t,inputFocused:n}=this.state,{options:s}=this.props;switch(e.key){case"Enter":case" ":n?this.updateFromCustom():this.updateInputValue(s[t].value),this.closeMenu(),this.button.current?.focus(),e.stopPropagation(),e.preventDefault();break;case"Tab":e.shiftKey?this.handleMenuNavigation(Z.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(Z.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(Z.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(Z.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(e){const{keyboardOptionIndex:t,inputFocused:n}=this.state,{options:s}=this.props,i=s.length;let o=t;switch(e){case Z.MENU_NAVIGATION_DIRECTION.UP:if(!n&&t===0){this.focusInput();break}else n&&this.focusOption(t);t>0&&!n?(o=(o-1)%i,this.setState({keyboardOptionIndex:o})):t===0&&(o=i-1,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break;case Z.MENU_NAVIGATION_DIRECTION.DOWN:if(!n&&t===i-1){this.focusInput();break}else n&&this.focusOption(t);t<i&&!(n&&t===0)&&(o=(o+1)%i,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break}}handleOptionClick(e){const t=Number(e.currentTarget.value),{options:n,timeToValue:s}=this.props,{customTime:i}=this.state;if(t===nt){const o=s(i);this.updateAndClose(o)}else this.updateAndClose(n[t].value)}updateAndClose(e){this.updateInputValue(e),this.closeMenu(),this.button.current?.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleMenuOpened(){const{options:e,value:t}=this.props,{keyboardOptionIndex:n}=this.state;this.scrollOptionIntoView(n);const s=this.menuContainer.current?.querySelector(".cs-option-btn.keyboard-active");if(s instanceof HTMLElement&&s.focus(),t===null)return;e.map(o=>o.value).indexOf(t)<0&&this.focusInput()}focusInput(){this.input.current?.focus()}focusOption(e){const t=this.menuContainer.current?.querySelector(".cs-options");if(t&&t.children!=null){const n=t.children.item(e);n instanceof HTMLElement&&n.focus()}}handleMenuExited(){const{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(e){const{timeToValue:t}=this.props,n=t(e);this.updateInputValue(n),this.setState({customTime:e})}updateFromCustom(){const{timeToValue:e}=this.props,{customTime:t}=this.state,n=e(t);this.updateInputValue(n)}toggleMenu(e){const{menuIsOpen:t}=this.state;t?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(e=!0){this.setState({menuIsOpen:!1}),e&&this.button.current?.focus()}updateKeyboardIndex(){const{options:e,value:t}=this.props;if(t===null)return;const n=e.map(s=>s.value).indexOf(t);n>0&&this.setState({keyboardOptionIndex:n})}scrollOptionIntoView(e){const t=this.menuContainer.current?.querySelector(".cs-options");if(t&&t.children!=null){const n=t.children.item(e);n instanceof HTMLElement&&n.offsetTop>Z.DROP_DOWN_MENU_HEIGHT?t.scrollTop=n.offsetTop-Z.DROP_DOWN_MENU_HEIGHT:(n instanceof HTMLElement&&n.offsetTop<0||e===0)&&(t.scrollTop=0)}}renderMenuElement(){const{inputWidth:e}=this.state;return l("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:t=>{t.stopPropagation()},style:{width:e},children:l("div",{className:"cs-options-container",children:l("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){const{options:e,value:t,icon:n,customText:s}=this.props,{keyboardOptionIndex:i,customTime:o,inputFocused:a}=this.state;let r=!1;const c=[];for(let d=0;d<e.length;d+=1){const p=e[d],u=`option-${d}-${p.value}`;r=r||p.value===t,c.push(w("button",{type:"button",value:d,className:b("cs-option-btn",{"keyboard-active":i===d&&!a}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[p.value===t&&l(R,{icon:n,className:"mr-2"}),p.value!==t&&l("span",{className:"mr-4"}),p.title]},u))}return c.push(l("hr",{className:"cs-divider"},"option-divider")),c.push(w("button",{type:"button",value:nt,className:b("cs-option-btn",{"keyboard-active":a}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!r&&t!==null?l(R,{icon:n,className:"mr-2"}):l("span",{className:"mr-4"}),s]},"option-custom-label")),c.push(w("div",{className:"cs-custom-container",children:[l("span",{className:"mr-2"}),l(At,{ref:this.input,onChange:this.handleCustomInput,value:o,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),l("span",{className:"ml-2"})]},"cs-custom-container")),c.push(l("hr",{className:"mb-2"},"option-end")),c}render(){const{disabled:e,invalid:t,value:n,"data-testid":s}=this.props,{menuIsOpen:i}=this.state;let{popperOptions:o}=this.props;return o={placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}},...o},l("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":s,children:l("div",{className:b("input-group-append cs-dropdown",{"cs-dropdown-invalid":t}),children:w("button",{type:"button",className:b("btn cs-btn form-control",{"cs-btn-invalid":t}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[l("span",{className:b({"text-muted":n===null}),children:this.getSelectedText()}),l("span",{children:l(R,{icon:yt,className:"cs-caret"})}),l(Ot,{isShown:i,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}};let We=Z;We.MENU_NAVIGATION_DIRECTION=Ht;We.DROP_DOWN_MENU_HEIGHT=125;We.defaultProps={onChange(){},value:null,disabled:!1,popperOptions:{},icon:Vn,customText:"Custom",placeholder:"Select a time",valueToTime:e=>e===null?0:Math.round(e/1e3),timeToValue:e=>e*1e3,invalid:!1,"data-testid":void 0};function ae(e,t,n,s,i){const o=s-n+1;return`${((parseInt(t,10)-e-n)%o+o)%o+n}`.padStart(i,"0")}function Vt(e,t,n){const{selectionStart:s}=e;return s===0?ae(t,n,1900,2099,4):s===5?ae(t,n,1,12,2):s===8?ae(t,n,1,31,2):s===11?ae(t,n,0,23,2):s===17||s===14?ae(t,n,0,59,2):s===20||s===24||s===28?ae(t,n,0,999,3):n}const os=A.module("DateTimeInput"),as="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",rs="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\\.[0-9]{3}\u200B[0-9]{3}\u200B[0-9]{3}",ls=`${as} ${rs}`,Ie="2022-01-01",zt=`${Ie} 00:00:00.000000000`,cs="YYYY-MM-DD HH:MM:SS.SSSSSSSSS";function st(e){return e!=null&&e.length>=Ie.length?`${e.substring(0,Ie.length)}${e.substring(Ie.length).replace(/\u2007/g,"0")}${zt.substring(e.length)}`:e}function ze(e){const t=e.substring(0,23),n=e.substring(23,26),s=e.substring(26);return[t,n,s].filter(i=>i!=="").join("\u200B")}const it=e=>e.replace(/\u200B/g,""),hs=[ze(zt)],Rt=g.forwardRef((e,t)=>{const{className:n="",onChange:s=()=>{},defaultValue:i="",onFocus:o=()=>{},onBlur:a=()=>{},"data-testid":r}=e,[c,d]=m.exports.useState(i.length>0?ze(i):""),[p,u]=m.exports.useState(),y=m.exports.useCallback(T=>{os.debug("handleChange",T),d(T),s(st(it(T)))},[s]),v=m.exports.useCallback(()=>{const T=it(c),S=st(T);S!==T&&d(ze(S)),a()},[c,a]);return l("div",{className:"d-flex flex-row align-items-center",children:l(Le,{ref:t,className:b(n),example:hs,getNextSegmentValue:Vt,onChange:y,onSelect:u,pattern:ls,placeholder:cs,selection:p,value:c,onFocus:o,onBlur:v,"data-testid":r})})});Rt.displayName="DateTimeInput";Rt.defaultProps={className:"",onChange:()=>{},defaultValue:"",onFocus:()=>{},onBlur:()=>{},"data-testid":void 0};const ds=A.module("DateInput"),us="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",ps=["2000-01-01","2022-12-31"],ms="YYYY-MM-DD",Ft=g.forwardRef((e,t)=>{const{className:n="",onChange:s=()=>{},defaultValue:i="",onFocus:o=()=>{},onBlur:a=()=>{},"data-testid":r}=e,[c,d]=m.exports.useState(i),[p,u]=m.exports.useState(),y=m.exports.useCallback(v=>{ds.debug("handleChange",v),d(v),s(v)},[s]);return l("div",{className:"d-flex flex-row align-items-center",children:l(Le,{ref:t,className:b(n),example:ps,getNextSegmentValue:Vt,onChange:y,onSelect:u,pattern:us,placeholder:ms,selection:p,value:c,onFocus:o,onBlur:a,"data-testid":r})})});Ft.displayName="DateInput";Ft.defaultProps={className:"",onChange:()=>!1,defaultValue:"",onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};class fs extends m.exports.PureComponent{constructor(t){super(t),this.searchInput=g.createRef(),this.handleChange=this.handleChange.bind(this),this.sendUpdate=dt(this.sendUpdate.bind(this),t.debounceMs),this.state={value:t.value}}componentDidUpdate(t){const{value:n}=this.props;t.value!==n&&this.setState({value:n})}focus(){this.searchInput.current?.focus()}handleChange(t){this.setState({value:t.target.value},this.sendUpdate)}sendUpdate(){const{onChange:t}=this.props,{value:n}=this.state;t(n)}render(){const{placeholder:t,className:n,matchCount:s,id:i,"data-testid":o}=this.props,{value:a}=this.state;return l(Ke,{value:a,placeholder:t,onChange:this.handleChange,className:n,matchCount:s,ref:this.searchInput,id:i,"data-testid":o})}}fs.defaultProps={placeholder:"Search",className:"",matchCount:null,debounceMs:250,id:"","data-testid":void 0};const vs=A.module("ItemListItem"),Pt=class extends m.exports.Component{constructor(e){super(e),this.handleBlur=this.handleBlur.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleClick=this.handleClick.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.handleDragStart=this.handleDragStart.bind(this),this.handleDrag=this.handleDrag.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragEnd=this.handleDragEnd.bind(this),this.handleDrop=this.handleDrop.bind(this),this.handleDoubleClick=this.handleDoubleClick.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.itemRef=g.createRef()}static handleKeyDown(){return vs.log("ItemListItem.handleKeyDown false"),!1}handleBlur(e){const{itemIndex:t,onBlur:n}=this.props;n(t,e)}handleFocus(e){const{itemIndex:t,onFocus:n}=this.props;n(t,e)}handleClick(e){const{itemIndex:t,onClick:n}=this.props;n(t,e)}handleContextMenu(e){const{itemIndex:t,onContextMenu:n}=this.props;n(t,e)}handleDragStart(e){const{itemIndex:t,onDragStart:n}=this.props;n(t,e)}handleDrag(e){const{itemIndex:t,onDrag:n}=this.props;n(t,e)}handleDragOver(e){e.preventDefault();const{itemIndex:t,onDragOver:n}=this.props;n(t,e)}handleDragEnd(e){const{itemIndex:t,onDragEnd:n}=this.props;n(t,e)}handleDrop(e){const{itemIndex:t,onDrop:n}=this.props;n(t,e)}handleDoubleClick(e){const{itemIndex:t,onDoubleClick:n}=this.props;n(t,e)}handleMouseMove(e){const{itemIndex:t,onMouseMove:n}=this.props;n(t,e)}handleMouseDown(e){const{itemIndex:t,onMouseDown:n}=this.props;n(t,e)}handleMouseUp(e){const{itemIndex:t,onMouseUp:n}=this.props;n(t,e)}render(){const{isDraggable:e,isFocused:t,isSelected:n,style:s,children:i,"data-testid":o}=this.props;return l("div",{className:b("item-list-item",{active:n},{"is-focused":t},{"is-draggable":e}),onKeyDown:Pt.handleKeyDown,onContextMenuCapture:this.handleContextMenu,onClick:this.handleClick,onDrag:this.handleDrag,onDragStart:this.handleDragStart,onDragOver:this.handleDragOver,onDragEnd:this.handleDragEnd,onDrop:this.handleDrop,onDoubleClick:this.handleDoubleClick,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,tabIndex:-1,ref:this.itemRef,role:"listitem",style:s,onFocus:this.handleFocus,onBlur:this.handleBlur,draggable:e,"data-testid":o,children:i})}};let _t=Pt;_t.defaultProps={children:null,isDraggable:!1,isFocused:!1,isSelected:!1,itemIndex:0,"data-testid":void 0,onBlur(){},onClick(){},onContextMenu(){},onDragStart(){},onDrag(){},onDragOver(){},onDragEnd(){},onDrop(){},onDoubleClick(){},onFocus(){},onMouseDown(){},onMouseMove(){},onMouseUp(){},style:{}};const ot=A.module("ItemList"),at=5,ce=class extends m.exports.PureComponent{constructor(e){super(e),this.getItemSelected=K((s,i)=>j.isSelected(i,s),{max:ce.CACHE_SIZE}),this.getCachedItem=K((s,i,o,a,r,c,d,p)=>{const u=c({item:o,itemIndex:s,isFocused:a,isSelected:r,style:d});return l(_t,{onContextMenu:this.handleItemContextMenu,onDoubleClick:this.handleItemDoubleClick,onMouseDown:this.handleItemMouseDown,onFocus:this.handleItemFocus,onBlur:this.handleItemBlur,disableSelect:p,onMouseMove:this.handleItemMouseMove,onMouseUp:this.handleItemMouseUp,isFocused:a,isSelected:r,itemIndex:s,style:d,children:u},i)},{max:ce.CACHE_SIZE}),this.getOuterElement=K(s=>{const i=g.forwardRef((o,a)=>l("div",{ref:a,tabIndex:-1,onKeyDown:s,role:"presentation",...o}));return i.displayName="ItemListOuterElement",i}),this.getInnerElement=K(()=>{const s=g.forwardRef((i,o)=>l("div",{className:"item-list-inner-element",ref:o,...i}));return s.displayName="ItemListInnerElement",s}),this.getItemData=K((s,i,o)=>({items:s,selectedRanges:i,renderItem:o})),this.handleItemBlur=this.handleItemBlur.bind(this),this.handleItemContextMenu=this.handleItemContextMenu.bind(this),this.handleItemFocus=this.handleItemFocus.bind(this),this.handleItemDoubleClick=this.handleItemDoubleClick.bind(this),this.handleItemMouseDown=this.handleItemMouseDown.bind(this),this.handleItemMouseMove=this.handleItemMouseMove.bind(this),this.handleItemMouseUp=this.handleItemMouseUp.bind(this),this.handleItemsRendered=this.handleItemsRendered.bind(this),this.handleWindowMouseUp=this.handleWindowMouseUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleResize=this.handleResize.bind(this),this.renderInnerElement=this.renderInnerElement.bind(this),this.list=g.createRef(),this.listContainer=g.createRef();const{isStickyBottom:t,selectedRanges:n}=e;this.state={focusIndex:null,mouseDownIndex:null,selectedRanges:n,overscanStartIndex:0,height:null,isDragging:!1,isStuckToBottom:t,scrollOffset:null,mouseX:null,mouseY:null}}static renderItem({item:e}){return l("div",{className:"item-list-item-content",children:e!=null&&(e.displayValue??e.value??`${e}`)})}componentDidUpdate(e,t){const{selectedRanges:n,itemCount:s}=this.props,{focusIndex:i,isStuckToBottom:o,scrollOffset:a,height:r,selectedRanges:c}=this.state;if(o&&!this.isListAtBottom()&&s>0&&this.scrollToBottom(),(a!==t.scrollOffset||r!==t.height)&&this.sendViewportUpdate(),n!==e.selectedRanges&&n!==c)this.setSelectedRanges(n);else if(c!==t.selectedRanges){const{onSelectionChange:d}=this.props;d(c)}if(i!==t.focusIndex){const{onFocusChange:d}=this.props;d(i)}}componentWillUnmount(){window.removeEventListener("mouseup",this.handleWindowMouseUp)}focus(){this.listContainer.current?.focus()}restoreScrollPosition(){const{scrollOffset:e}=this.state;e!=null&&this.listContainer.current?.scrollTo(0,e)}getElement(e){if(this.listContainer.current==null)return null;const{focusSelector:t}=this.props,{overscanStartIndex:n}=this.state,s=this.listContainer.current.querySelectorAll(t),i=e-n;return s[i]}focusItem(e){const{disableSelect:t}=this.props;if(t)return;this.setState({focusIndex:e});const n=this.getElement(e);n instanceof HTMLElement&&n.focus()}scrollToItem(e){const t=this.getElement(e);t?.scrollIntoView({block:"center"})}handleItemContextMenu(e,t){const{selectedRanges:n}=this.state,i=j.isSelected(n,e)||k.isModifierKeyDown(t);this.toggleSelect(e,t.shiftKey,i,!1)}handleItemDoubleClick(e,t){const{isDoubleClickSelect:n,onSelect:s}=this.props;n&&this.setState(({selectedRanges:i})=>({selectedRanges:j.selectRange(i,[e,e])}),()=>{s(e,t)})}handleItemMouseDown(e,t){const{selectedRanges:n}=this.state;if(!(t.target instanceof HTMLElement&&["button","select","input","textarea"].indexOf(t.target.tagName.toLowerCase())!==-1)){if(t.button===2&&n.length===0){this.focusItem(e),this.selectItem(e);return}t.button!=null&&t.button!==0||(this.setState({mouseDownIndex:e,mouseX:t.clientX,mouseY:t.clientY}),window.addEventListener("mouseup",this.handleWindowMouseUp))}}handleItemBlur(e,t){ot.debug2("item blur",e,t.currentTarget,t.relatedTarget),(!t.relatedTarget||this.listContainer.current&&t.relatedTarget instanceof HTMLElement&&!this.listContainer.current.contains(t.relatedTarget))&&this.setState({focusIndex:null})}handleItemFocus(e,t){ot.debug2("item focus",e,t.target),this.setState(n=>{const{focusIndex:s}=n;return s!==e?{focusIndex:e}:null})}handleItemMouseMove(e,t){const{isDragSelect:n,isMultiSelect:s,disableSelect:i}=this.props,{mouseDownIndex:o,selectedRanges:a,mouseX:r,mouseY:c}=this.state;if(o==null||i)return;const d=Math.abs(t.clientX-(r??0)),p=Math.abs(t.clientY-(c??0));d>at&&p>at&&this.setState({isDragging:!0}),(n||o===e)&&(this.focusItem(e),s?(!n&&!this.getItemSelected(e,a)&&!k.isModifierKeyDown(t)&&this.deselectAll(),this.selectRange([Math.min(o,e),Math.max(o,e)])):this.toggleSelect(e,t.shiftKey,k.isModifierKeyDown(t),!1))}handleItemMouseUp(e,t){const{isDeselectOnClick:n,isDoubleClickSelect:s,onSelect:i}=this.props,{mouseDownIndex:o,isDragging:a}=this.state;if(!(t.target instanceof HTMLElement&&["button","select","input","textarea"].indexOf(t.target.tagName.toLowerCase())!==-1)){if(o===e&&!a){const r=t.shiftKey,c=k.isModifierKeyDown(t);this.focusItem(e),this.toggleSelect(e,r,c,n),!s&&!r&&!c&&i(e,t)}this.resetMouseState()}}handleItemsRendered({overscanStartIndex:e}){this.setState({overscanStartIndex:e})}handleResize({height:e}){this.setState({height:e})}handleMouseLeave(){this.setState({mouseDownIndex:null})}handleWindowMouseUp(){this.resetMouseState(),window.removeEventListener("mouseup",this.handleWindowMouseUp)}handleKeyDown(e){const{isMultiSelect:t,itemCount:n,onSelect:s}=this.props,{focusIndex:i}=this.state;let o=i;if(e.key==="Enter"||e.key===" "){!t&&o!=null&&this.setState({selectedRanges:[[o,o]]},()=>{o!=null&&s(o,e)});return}if(e.key==="ArrowUp")o!=null&&o>=0?o=Math.max(0,o-1):o=n-1;else if(e.key==="ArrowDown")o!=null&&o>=0?o=Math.min(o+1,n-1):o=0;else return;if(i!==o){e.stopPropagation(),e.preventDefault(),this.focusItem(o);const{selectedRanges:a}=this.state;if(e.shiftKey&&a.length>0){const r=a[a.length-1];this.selectRange([Math.min(o,r[0]),Math.max(o,r[1])])}else this.deselectAll(),o!==null?this.selectItem(o):this.listContainer.current?.focus();this.scrollIntoView(o)}}handleScroll({scrollUpdateWasRequested:e,scrollOffset:t}){this.setState(n=>{if(e)return{scrollOffset:t};const{isStickyBottom:s}=this.props,{height:i}=n;return{isStuckToBottom:s&&this.isListAtBottom({scrollOffset:t,height:i}),scrollOffset:t}})}resetMouseState(){this.setState({mouseDownIndex:null,isDragging:!1})}scrollToBottom(){const{itemCount:e}=this.props;this.list.current&&this.list.current.scrollToItem(e)}scrollIntoView(e){this.list.current&&this.list.current.scrollToItem(e)}toggleSelect(e,t,n,s=!0){const{isMultiSelect:i}=this.props,{selectedRanges:o}=this.state;if(i&&t&&o.length>0){const a=o[o.length-1];this.selectRange([Math.min(a[0],e),Math.max(e,a[1])])}else i&&o.length===1&&o[0][0]===e&&o[0][1]===e?s&&this.deselectItem(e):i&&n?this.getItemSelected(e,o)?s&&this.deselectItem(e):this.selectItem(e):(this.deselectAll(),this.selectItem(e))}deselectAll(){const{itemCount:e}=this.props;this.deselectRange([0,e])}deselectItem(e){this.deselectRange([e,e])}deselectRange(e){j.validateRange(e),this.setState(({selectedRanges:t})=>({selectedRanges:j.deselectRange(t,e)}))}selectItem(e){const{disableSelect:t}=this.props;t||this.selectRange([e,e])}selectRange(e){j.validateRange(e),this.setState(({selectedRanges:t})=>({selectedRanges:j.selectRange(t,e)}))}setSelectedRanges(e){this.setState({selectedRanges:e})}sendViewportUpdate(){const{scrollOffset:e,height:t}=this.state;if(e!=null&&t!=null){const{onViewportChange:n,rowHeight:s}=this.props,i=Math.floor(e/s),o=i+Math.ceil(t/s);n(i,o)}}isListAtBottom({scrollOffset:e,height:t}=this.state){if(t==null||e==null)return!1;const{itemCount:n,rowHeight:s}=this.props;return e+t>=n*s}renderInnerElement({index:e,style:t}){const{items:n,offset:s,renderItem:i,disableSelect:o}=this.props,{focusIndex:a,selectedRanges:r}=this.state;if(e<s||e>=s+n.length)return null;const c=n[e-s];return this.getCachedItem(e,e,c,e===a&&!o,this.getItemSelected(e,r),i,t,o)}render(){const{items:e,itemCount:t,overscanCount:n,renderItem:s,rowHeight:i,"data-testid":o}=this.props,{selectedRanges:a,isStuckToBottom:r}=this.state;return l(Zt,{className:"item-list-auto-sizer",onResize:this.handleResize,children:({width:c,height:d})=>l(Xt,{className:"item-list-scroll-pane",height:d,width:c,initialScrollOffset:r?t*i:0,itemCount:t,itemSize:i,itemData:this.getItemData(e,a,s),onScroll:this.handleScroll,onItemsRendered:this.handleItemsRendered,ref:this.list,outerElementType:this.getOuterElement(this.handleKeyDown),outerRef:this.listContainer,innerElementType:this.getInnerElement(),overscanCount:n,"data-testid":o,children:this.renderInnerElement})})}};let de=ce;de.CACHE_SIZE=1e3;de.DEFAULT_ROW_HEIGHT=20;de.DEFAULT_OVERSCAN=10;de.defaultProps={offset:0,items:[],rowHeight:ce.DEFAULT_ROW_HEIGHT,isDeselectOnClick:!0,isDoubleClickSelect:!1,isDragSelect:!0,isMultiSelect:!1,isStickyBottom:!1,disableSelect:!1,onFocusChange(){},onSelect(){},onSelectionChange(){},onViewportChange(){},overscanCount:ce.DEFAULT_OVERSCAN,renderItem:ce.renderItem,selectedRanges:[],focusSelector:".item-list-item","data-testid":void 0};const ne=class extends m.exports.PureComponent{constructor(e){super(e),this.getCachedDraggableItem=K((t,n,s,i,o,a,r,c)=>l(Jt,{draggableId:ne.getDraggableId(t,i),index:i,isDragDisabled:r,children:d=>l("div",{role:"menuitem",className:"draggable-item-list-item",ref:d.innerRef,tabIndex:-1,...d.draggableProps,...d.dragHandleProps,children:n({item:s,itemIndex:i,isFocused:o,isSelected:a,style:c,isClone:!1})})},i),{max:de.CACHE_SIZE}),this.getCachedRenderDraggableItem=K((t,n,s)=>({item:i,itemIndex:o,isFocused:a,isSelected:r,style:c})=>this.getCachedDraggableItem(t,s,i,o,a,r,n,c),{max:1}),this.getCachedRenderClone=K((t,n,s,i)=>(o,a,r)=>{const{selectedCount:c}=this.state,{draggableProps:d,dragHandleProps:p,innerRef:u}=o,{index:y}=r.source,v=n[y-s];return l("div",{className:b("draggable-item-list-dragging-item-container",t),...d,...p,ref:u,children:l("div",{className:b("draggable-item-list-dragging-item",{"two-dragged":c===2},{"multiple-dragged":c>2}),children:i({item:v,itemIndex:y,isFocused:!1,isSelected:!0,style:{},isClone:!0,selectedCount:c})})})},{max:1}),this.handleSelectionChange=this.handleSelectionChange.bind(this),this.itemList=g.createRef(),this.state={selectedCount:0}}static renderHandle(){return w("div",{children:[l(Q,{children:"Drag to re-order"}),l(R,{icon:Fn})]})}static renderBadge({text:e}){return e!=null&&e.length>0?l("span",{className:"number-badge",children:e}):null}static renderTextItem({text:e,badgeText:t="",className:n=""}){return w("div",{className:b("item-list-item-content","draggable-item-list-item-content",n),children:[l("span",{className:"title",children:e}),ne.renderBadge({text:t}),ne.renderHandle()]})}static renderItem({item:e,isClone:t,selectedCount:n}){const s=e!=null?e.displayValue??e.value??`${e}`:"",i=t!==void 0&&t?`${n}`:"",o=t!==void 0&&t?"item-list-item-clone":"";return ne.renderTextItem({text:s,badgeText:i,className:o})}static getDraggableId(e,t){return`${e}/${t}`}static getDraggableIndex(e){const t=e.split("/").pop();return parseInt(t!==void 0?t:"",10)}selectItem(e){this.itemList.current?.selectItem(e)}focusItem(e){this.itemList.current?.focusItem(e)}scrollToItem(e){this.itemList.current?.scrollToItem(e)}handleSelectionChange(e){this.setState({selectedCount:j.count(e)});const{onSelectionChange:t}=this.props;t(e)}render(){const{className:e,draggablePrefix:t,draggingItemClassName:n,droppableId:s,isDoubleClickSelect:i,isDragDisabled:o,isDropDisabled:a,isMultiSelect:r,isStickyBottom:c,itemCount:d,items:p,offset:u,onFocusChange:y,onSelect:v,onViewportChange:T,renderItem:S,rowHeight:I,selectedRanges:C,style:E,"data-testid":D}=this.props;return l(Qt,{isDropDisabled:a,droppableId:s,mode:"virtual",renderClone:this.getCachedRenderClone(n,p,u,S),"data-testid":D,children:(P,H)=>l("div",{role:"menu",className:b("draggable-item-list",e,{"is-drop-disabled":a,"is-drag-disabled":o,"is-dragging-from-this":H.draggingFromThisWith,"is-dragging-over":H.isDraggingOver,"is-dropping":H.draggingOverWith}),style:E,ref:P.innerRef,...P.droppableProps,children:l(de,{focusSelector:".draggable-item-list-item",isDoubleClickSelect:i,isDragSelect:!1,isMultiSelect:r,isStickyBottom:c,itemCount:d,items:p,onFocusChange:y,onSelect:v,onSelectionChange:this.handleSelectionChange,onViewportChange:T,offset:u,ref:this.itemList,renderItem:this.getCachedRenderDraggableItem(t,o,S),rowHeight:I,selectedRanges:C})})})}};let Ut=ne;Ut.DEFAULT_ROW_HEIGHT=30;Ut.defaultProps={className:"",draggingItemClassName:"",offset:0,items:[],rowHeight:ne.DEFAULT_ROW_HEIGHT,isDeselectOnClick:!0,isDoubleClickSelect:!0,isDropDisabled:!1,isDragDisabled:!1,isMultiSelect:!1,isStickyBottom:!1,disableSelect:!1,style:null,onFocusChange(){},onSelect(){},onSelectionChange(){},onViewportChange(){},renderItem:ne.renderItem,selectedRanges:[],draggablePrefix:"draggable-item",droppableId:"droppable-item-list","data-testid":void 0};const ye=class extends m.exports.Component{static isParentSelected(e,t){const n=t.get(e);if(n===void 0)return!1;if(typeof n=="boolean")return n;const s=Array.from(n.values()).includes(!0),i=Array.from(n.values()).includes(!1);return s&&i?null:s}constructor(e){super(e),this.toggleMenu=this.toggleMenu.bind(this),this.toggleValueFor=this.toggleValueFor.bind(this),this.selectAll=this.selectAll.bind(this),this.clear=this.clear.bind(this),this.state={menuIsOpen:!1}}toggleMenu(e){e.stopPropagation(),e.preventDefault(),this.setState(t=>{const{menuIsOpen:n}=t;return{menuIsOpen:!n}})}toggleValueFor(e,t){const{valueMap:n,onUpdateValueMap:s}=this.props,i=new Map(n),o=i.get(e);if(o instanceof Map){const r=new Map(o);if(t!=null)r.set(t,o.get(t)===void 0);else{const c=ye.isParentSelected(e,i),d=c==null||!c;o.forEach((p,u)=>r.set(u,d))}i.set(e,r)}else i.set(e,o==null||!o);const a=i.get(e);if(t===void 0&&a!==void 0&&typeof a!="boolean"){const r=ye.isParentSelected(e,n);r!=null&&r?a.forEach((c,d)=>a.set(d,!1)):a.forEach((c,d)=>a.set(d,!0))}s(i)}setAllValues(e){const{valueMap:t,onUpdateValueMap:n}=this.props,s=new Map;t.forEach((i,o)=>{if(typeof i=="boolean")s.set(o,e);else{const a=new Map;i.forEach((r,c)=>a.set(c,e)),s.set(o,a)}}),n(s)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){const{valueMap:e,"data-testid":t}=this.props;return w("div",{className:"hcm-menu-container",children:[Array.from(e.entries()).map(([n,s])=>w("div",{children:[l(he,{className:"hcm-parent",checked:ye.isParentSelected(n,e),onChange:()=>this.toggleValueFor(n),children:n}),s!==void 0&&typeof s!="boolean"&&Array.from(s.entries()).map(([i,o])=>l(he,{className:"hcm-child",checked:o,onChange:()=>this.toggleValueFor(n,i),children:i},i))]},n)),l(J,{kind:"ghost",onClick:this.selectAll,"data-testid":t!==void 0?`${t}-btn-select-all`:void 0,children:"Select All"}),l(J,{kind:"ghost",onClick:this.clear,"data-testid":t!==void 0?`${t}-btn-clear`:void 0,children:"Clear"})]})}render(){const{menuText:e,className:t,icon:n,id:s,"data-testid":i}=this.props,{menuIsOpen:o}=this.state;return w("button",{type:"button",className:b("btn hcm-btn",t),onClick:this.toggleMenu,id:s,"data-testid":i,children:[w("span",{children:[n&&l(R,{icon:n,className:"hcm-icon mr-1"}),e]}),l(R,{icon:yt,className:"hcm-icon ml-1"}),l(se,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}};let gs=ye;gs.defaultProps={className:"",icon:null,id:"","data-testid":void 0};function Bt({isLoaded:e=!1,isLoading:t=!0,errorMessage:n=null,"data-testid":s}){return l(ge,{in:Boolean(n)||!e||t,timeout:Se.transitionMs,classNames:e?"fade":"",mountOnEnter:!0,unmountOnExit:!0,children:l("div",{className:"fill-parent-absolute","data-testid":s,children:l("div",{className:b("iris-panel-message-overlay","fill-parent-absolute",{"iris-panel-scrim-background":e}),children:w("div",{className:"message-content",children:[w("div",{className:"message-icon",children:[t&&l(Et,{}),!t&&n!=null&&l(R,{icon:Kn})]}),l("div",{className:"message-text",children:n})]})})})})}const Kt=g.forwardRef((e,t)=>{const{checked:n,children:s,className:i="",disabled:o=!1,inputClassName:a="",isInvalid:r=!1,labelClassName:c="",name:d,onChange:p,value:u,"data-testid":y}=e,[v]=m.exports.useState(pt());return w("div",{className:b("custom-control custom-radio",i),children:[l("input",{type:"radio",id:v,"data-testid":y,name:d,ref:t,className:b("custom-control-input",a,{"is-invalid":r}),checked:n,disabled:o,value:u,onChange:p}),l("label",{className:b("custom-control-label",c),htmlFor:v,children:s})]})});Kt.displayName="RadioItem";Kt.defaultProps={checked:void 0,className:"",disabled:!1,inputClassName:"",isInvalid:!1,labelClassName:"",name:void 0,onChange:void 0,"data-testid":void 0};class bs extends m.exports.PureComponent{constructor(t){super(t),this.getCachedItem=K((n,s,i,o,a,r,c)=>l("li",{className:"value-list-item",style:{height:a},tabIndex:-1,children:l(he,{checked:r,disabled:c,onChange:()=>this.handleSelect(n),children:o??i})},s),{max:1e3}),this.getCachedItems=K((n,s,i,o)=>{const a=[];for(let r=0;r<n.length;r+=1){const c=n[r],{value:d,displayValue:p,isSelected:u}=c,y=i+r,v=y,T=this.getCachedItem(y,v,d,p,s,u,o);a.push(T)}return a},{max:1}),this.handleBlur=this.handleBlur.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleSelect=this.handleSelect.bind(this),this.list=g.createRef(),this.topRow=null,this.bottomRow=null}componentDidMount(){this.sendViewportUpdate()}componentDidUpdate(){this.sendViewportUpdate()}handleBlur(t){if(!t.relatedTarget||this.list.current&&t.relatedTarget instanceof HTMLElement&&!this.list.current.contains(t.relatedTarget)){const{onBlur:n}=this.props;n?.(t)}}handleScroll(){this.sendViewportUpdate()}handleSelect(t){const{items:n,offset:s,onSelect:i}=this.props,o=t-s;if(o>=0&&o<n.length){const a=n[o],{value:r}=a;i(t,r)}else i(t,null)}sendViewportUpdate(){if(!this.list.current||this.list.current.clientHeight===0)return;const{onViewportChange:t,rowHeight:n}=this.props,s=this.list.current.scrollTop,i=s+this.list.current.clientHeight,o=Math.floor(s/n),a=Math.ceil(i/n);(this.topRow!==o||this.bottomRow!==a)&&(this.topRow=o,this.bottomRow=a,t(o,a))}getElement(t){return this.list.current==null?null:this.list.current.querySelectorAll(".value-list-item")[t]}scrollIntoView(t){this.getElement(t)?.scrollIntoView({block:"center"})}render(){const{className:t,disabled:n,isInvalid:s,items:i,itemCount:o,offset:a,rowHeight:r,"data-testid":c}=this.props,d=this.getCachedItems(i,r,a,n);return l("div",{className:b("select-value-list-scroll-pane h-100 w-100",{"is-invalid":s},t),onBlur:this.handleBlur,onScroll:this.handleScroll,ref:this.list,"data-testid":c,children:l("div",{className:"select-value-list",style:{height:o*r},children:l("ol",{className:"select-value-list-content",style:{position:"absolute",height:i.length*r,top:a*r,left:0},children:d})})})}}bs.defaultProps={disabled:!1,rowHeight:21,onBlur:()=>{},"data-testid":void 0};const rt=A.module("Shortcut");var G=(e=>(e.CTRL="MODIFIER_CTRL",e.CMD="MODIFIER_CMD",e.ALT="MODIFIER_ALT",e.OPTION="MODIFIER_OPTION",e.SHIFT="MODIFIER_SHIFT",e))(G||{}),_=(e=>(e.A="A",e.B="B",e.C="C",e.D="D",e.E="E",e.F="F",e.G="G",e.H="H",e.I="I",e.J="J",e.K="K",e.L="L",e.M="M",e.N="N",e.O="O",e.P="P",e.Q="Q",e.R="R",e.S="S",e.T="T",e.U="U",e.V="V",e.W="W",e.X="X",e.Y="Y",e.Z="Z",e.ZERO="0",e.ONE="1",e.TWO="2",e.THREE="3",e.FOUR="4",e.FIVE="5",e.SIX="6",e.SEVEN="7",e.EIGHT="8",e.NINE="9",e.BACKSPACE="Backspace",e.ESCAPE="Escape",e.ENTER="Enter",e.DELETE="Delete",e.SLASH="/",e.QUESTION_MARK="?",e.BACKSLASH="\\",e.PIPE="|",e.MINUS="-",e.UNDERSCORE="_",e.EQUALS="=",e.PLUS="+",e.BACKTICK="`",e.TILDE="~",e.COMMA=",",e.LEFT_CHEVRON="<",e.PERIOD=".",e.RIGHT_CHEVRON=">",e.SEMICOLON=";",e.COLON=":",e.SINGLE_QUOTE="'",e.DOUBLE_QUOTE='"',e.LEFT_BRACKET="[",e.RIGHT_BRACKET="]",e.LEFT_CURLY="{",e.RIGHT_CURLY="}",e.F1="F1",e.F2="F2",e.F3="F3",e.F4="F4",e.F5="F5",e.F6="F6",e.F7="F7",e.F8="F8",e.F9="F9",e.F10="F10",e.F11="F11",e.F12="F12",e))(_||{});const Ms=new Set(["Enter","Delete","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]),O=class extends Pe{constructor({id:e,shortcut:t,macShortcut:n,isEditable:s=!0,name:i,tooltip:o}){super(),this.id=e,this.name=i,this.tooltip=o,this.isEditable=s;const r=O.isMacPlatform?n:t;this.defaultKeyState=O.createKeyState(r),this.keyState=this.defaultKeyState}static isAllowedKey(e){return Object.values(_).includes(e)}static isValidKeyState(e){const{keyValue:t}=e;return t===null?!0:!O.isMacPlatform&&e.metaKey||!O.isAllowedKey(t)?!1:!(!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey)||Ms.has(t)}static createKeyState(e){const t={altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,keyValue:e[e.length-1]};return e.forEach(n=>{switch(n){case"MODIFIER_CTRL":t.ctrlKey=!0;break;case"MODIFIER_ALT":case"MODIFIER_OPTION":t.altKey=!0;break;case"MODIFIER_CMD":t.metaKey=!0;break;case"MODIFIER_SHIFT":t.shiftKey=!0;break}}),t}static getKeyStateFromEvent(e){const{key:t,keyCode:n}=e;let s="";return t==="Shift"||t==="Meta"||t==="Control"||t==="Alt"?s="":!O.isAllowedKey(t)&&O.isAllowedKey(String.fromCharCode(n))?s=String.fromCharCode(n):s=t,{keyValue:s,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}}static getWindowsDisplayText(e){let t="";return e.ctrlKey&&(t+="Ctrl+"),e.altKey&&(t+="Alt+"),e.shiftKey&&(t+="Shift+"),e.keyValue==="Escape"?t+="Esc":e.keyValue!==null&&(t+=e.keyValue),t}static getMacDisplayText(e){let t="";switch(e.ctrlKey&&(t+="\u2303"),e.altKey&&(t+="\u2325"),e.shiftKey&&(t+="\u21E7"),e.metaKey&&(t+="\u2318"),e.keyValue){case"Enter":t+="\u23CE";break;case"Escape":t+="\u238B";break;case"Backspace":t+="\u232B";break;case"Delete":t+="\u2326";break;case null:break;default:t+=e.keyValue}return t}static doKeyStatesMatch(e,t){return e.keyValue?.toUpperCase()===t.keyValue?.toUpperCase()&&e.altKey===t.altKey&&e.ctrlKey===t.ctrlKey&&e.metaKey===t.metaKey&&e.shiftKey===t.shiftKey}static getDisplayText(e){return e.keyValue===null?"":O.isMacPlatform?O.getMacDisplayText(e):O.getWindowsDisplayText(e)}getDisplayText(){return O.getDisplayText(this.keyState)}getKeyState(){return this.keyState}setKeyState(e){O.isValidKeyState(e)?(rt.debug2(`Shortcut ${this.id} updated to ${JSON.stringify(e)}`),this.keyState=e,this.dispatchEvent(new wt("onUpdate",{detail:this}))):rt.debug2(`Shortcut ${this.id} tried to update to invalid keyState ${JSON.stringify(e)}`)}getDefaultKeyState(){return this.defaultKeyState}isDefault(){return O.doKeyStatesMatch(this.getDefaultKeyState(),this.getKeyState())}setToNull(){this.setKeyState(O.NULL_KEY_STATE)}isNull(){return O.doKeyStatesMatch(this.keyState,O.NULL_KEY_STATE)}setToDefault(){this.setKeyState(this.defaultKeyState)}matchesKeyState(e){return O.doKeyStatesMatch(e,this.keyState)}matchesEvent(e){return this.matchesKeyState(O.getKeyStateFromEvent(e))}};let Ge=O;Ge.NULL_KEY_STATE={metaKey:!1,shiftKey:!1,altKey:!1,ctrlKey:!1,keyValue:null};Ge.isMacPlatform=k.isMacPlatform();const lt=A.module("ShortcutRegistry");class xs extends Pe{constructor(){super(...arguments),this.shortcutMap=new Map,this.shortcutsByCategory=new Map}createAndAdd(t){const n=new Ge(t);return this.add(n)}add(t){const n=this.shortcutMap.get(t.id);if(n)return lt.warn(`Skipping attempt to add duplicate shortcut ID to registry: ${t.id}`),n;lt.debug2(`Adding shortcut to registry: ${t.id}`),t.addEventListener("onUpdate",({detail:i})=>this.dispatchEvent(new wt("onUpdate",{detail:i})));const s=t.id.split(".")[0];return this.shortcutMap.set(t.id,t),this.shortcutsByCategory.has(s)?this.shortcutsByCategory.get(s)?.push(t):this.shortcutsByCategory.set(s,[t]),t}get(t){return this.shortcutMap.get(t)}getConflictingShortcuts(t){return Array.from(this.shortcutMap.values()).filter(n=>!n.isNull()&&n.matchesKeyState(t))}}const re=Object.freeze(new xs),Io={COPY:re.createAndAdd({id:"GLOBAL.COPY",name:"Copy",shortcut:[G.CTRL,_.C],macShortcut:[G.CMD,_.C],isEditable:!1}),PASTE:re.createAndAdd({id:"GLOBAL.PASTE",name:"Paste",shortcut:[G.CTRL,_.V],macShortcut:[G.CMD,_.V],isEditable:!1}),SAVE:re.createAndAdd({id:"GLOBAL.SAVE",name:"Save",shortcut:[G.CTRL,_.S],macShortcut:[G.CMD,_.S],isEditable:!1}),SELECT_ALL:re.createAndAdd({id:"GLOBAL.SELECT_ALL",name:"Select All",shortcut:[G.CTRL,_.A],macShortcut:[G.CMD,_.A],isEditable:!1}),LINKER:re.createAndAdd({id:"GLOBAL.LINKER",name:"Linker",shortcut:[G.CTRL,_.L],macShortcut:[G.CMD,_.L]}),LINKER_CLOSE:re.createAndAdd({id:"GLOBAL.LINKER_CLOSE",name:"Close Linker Overlay",shortcut:[_.ESCAPE],macShortcut:[_.ESCAPE],isEditable:!1})};const $t=g.forwardRef((e,t)=>{const{children:n,className:s,disabled:i,id:o,isLinked:a,isLinkedSource:r,isInvalid:c,onClick:d,onMouseEnter:p,onMouseLeave:u,style:y,"data-testid":v}=e;return w("button",{ref:t,type:"button",className:b("btn-socketed",{"btn-socketed-linked":a!==void 0&&a||r},{"btn-socketed-linked-source":r},{"is-invalid":c},s),id:o,onClick:d,onMouseEnter:p,onMouseLeave:u,style:y,disabled:i,"data-testid":v,children:[n,l(R,{icon:Pn,className:"linked btn-socketed-icon",transform:"down-1"}),l(R,{icon:$n,className:"is-invalid btn-socketed-icon"})]})});$t.displayName="SocketedButton";$t.defaultProps={children:void 0,className:"",disabled:!1,id:void 0,isLinked:!1,isLinkedSource:!1,isInvalid:!1,onClick:void 0,onMouseEnter:void 0,onMouseLeave:void 0,style:void 0,"data-testid":void 0};const Cs="_track_535ju_30",Is="_handle_535ju_13",ys="_ticks_535ju_98",Wt={"handle-size":"15px","popover-width":"90px","time-slider":"_time-slider_535ju_3","time-slider-popovers":"_time-slider-popovers_535ju_8","handle-popper":"_handle-popper_535ju_13","flex-spacer":"_flex-spacer_535ju_26",track:Cs,"track-fills":"_track-fills_535ju_37","track-fill":"_track-fill_535ju_37","track-fill-start":"_track-fill-start_535ju_55","track-fill-middle":"_track-fill-middle_535ju_56","track-fill-end":"_track-fill-end_535ju_59","handle-track":"_handle-track_535ju_62",handle:Is,ticks:ys,"tick-labels":"_tick-labels_535ju_116","tick-label":"_tick-label_535ju_116","tick-label-wrapper":"_tick-label-wrapper_535ju_132"};parseInt(Wt["handle-size"],10);parseInt(Wt["popover-width"],10);Object.freeze({ERROR:"error"});const He=A.module("@deephaven/code-studio"),Ss=m.exports.createContext(null);function ws({apiUrl:e,children:t,failureElement:n,setGlobally:s=!1}){const[i,o]=m.exports.useState(!0),[a,r]=m.exports.useState();return m.exports.useEffect(()=>{async function c(){try{const d=(await ht(()=>import(e),[])).default;He.info("API bootstrapped from",e),r(d),s&&(He.debug("API set globally"),globalThis.dh=d)}catch(d){He.error("Unable to bootstrap API",d)}o(!1)}c()},[e,s]),i?l(Bt,{}):a==null?n??w(Mt,{isOpen:!0,className:"modal-dialog-centered theme-bg-light",children:[l(Ct,{closeButton:!1,children:"Error: Unable to load API"}),l(xt,{children:w("p",{className:"text-break",children:["Ensure the server is running and you are able to reach ",e,", then refresh the page."]})})]}):l(Ss.Provider,{value:a,children:t})}const Re=new Sn,ct=new we(Re);function Ns(){A.setLogLevel(parseInt("2",10)),Re.enable(),ct.enable(),window!=null&&(window.DHLog=A,window.DHLogProxy=Re,window.DHLogHistory=ct)}Ns();const Es=g.lazy(()=>ht(()=>import("./AppRoot.509a9a52.js"),["assets/AppRoot.509a9a52.js","assets/AppRoot.fbebddf9.css","assets/vendor.7d6152a1.js","assets/vendor.2939dda5.css","assets/helpers.162e09a8.js","assets/monaco.1292e04e.js","assets/monaco.8607667d.css","assets/plotly.4a640e26.js"]));Fe.render(l(ws,{apiUrl:"/jsapi/dh-core.js",setGlobally:!0,children:l(m.exports.Suspense,{fallback:l(Bt,{}),children:l(Es,{})})}),document.getElementById("root"));export{bo as $,ri as A,J as B,k as C,pe as D,Je as E,Q as F,Io as G,Vn as H,Bt as I,Us as J,_ as K,Et as L,G as M,Os as N,Qs as O,Ye as P,Ai as Q,xi as R,Ke as S,Se as T,Xs as U,fi as V,Wn as W,de as X,mo as Y,ni as Z,Jn as _,Qn as a,Be as a$,_n as a0,Zi as a1,Mo as a2,Mi as a3,xo as a4,Wi as a5,Ys as a6,Si as a7,ho as a8,co as a9,zi as aA,se as aB,go as aC,ji as aD,Fi as aE,so as aF,yt as aG,Te as aH,Mt as aI,Ct as aJ,di as aK,ai as aL,xt as aM,zs as aN,ks as aO,Rt as aP,Xi as aQ,Ti as aR,fo as aS,Li as aT,Ni as aU,Ws as aV,ki as aW,Un as aX,wi as aY,mi as aZ,wt as a_,hi as aa,qi as ab,ui as ac,no as ad,bs as ae,Qi as af,lo as ag,Ut as ah,Zs as ai,Kt as aj,ao as ak,ro as al,Pn as am,vo as an,Fn as ao,_s as ap,uo as aq,gi as ar,_i as as,Pi as at,yi as au,Di as av,As as aw,Ps as ax,Rs as ay,Ri as az,qs as b,$t as b0,ei as b1,ti as b2,Gs as b3,to as b4,j as b5,It as b6,ii as b7,An as b8,vi as b9,fs as ba,Ei as bb,Bs as bc,js as bd,Vs as be,Ki as bf,io as bg,li as bh,Tt as bi,Ge as bj,ct as bk,Vi as bl,ci as bm,Ii as bn,oi as bo,Ji as bp,pi as bq,Gi as br,Hs as bs,oo as bt,eo as bu,zn as c,Fs as d,$s as e,Ci as f,Yi as g,si as h,po as i,te as j,Bn as k,Hi as l,A as m,Ks as n,Ui as o,Js as p,$i as q,re as r,Hn as s,Bi as t,Co as u,bi as v,Oi as w,Kn as x,he as y,Ot as z};
|
|
7
|
+
//# sourceMappingURL=index.a3fafc96.js.map
|