@genesislcap/foundation-rapid-cdn 15.9.0 → 15.9.1

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.
@@ -88,7 +88,7 @@ function zz(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var c
88
88
  @media only screen and (max-width: 640px) {
89
89
  :host {${e=>e.setGridItemProperties(e.colSmNumber,e.rowSmNumber,e.widthSm,e.heightSm)}}
90
90
  }
91
- </style><slot></slot></template>`;class rX extends Wt{setGridItemProperties(e,t,i,c){if(t&&e&&i&&c){return`grid-row: ${0===t||0===c?"auto":`${t} / ${Number(t)+Number(c)}`}; grid-column: ${0===e||0===i?"auto":`${e} / ${Number(e)+Number(i)}`}`}}}Ou([de({attribute:"col-number"})],rX.prototype,"colNumber",void 0),Ou([de({attribute:"col-sm-number"})],rX.prototype,"colSmNumber",void 0),Ou([de({attribute:"col-md-number"})],rX.prototype,"colMdNumber",void 0),Ou([de({attribute:"col-lg-number"})],rX.prototype,"colLgNumber",void 0),Ou([de({attribute:"row-number"})],rX.prototype,"rowNumber",void 0),Ou([de({attribute:"row-sm-number"})],rX.prototype,"rowSmNumber",void 0),Ou([de({attribute:"row-md-number"})],rX.prototype,"rowMdNumber",void 0),Ou([de({attribute:"row-lg-number"})],rX.prototype,"rowLgNumber",void 0),Ou([de({attribute:"width"})],rX.prototype,"width",void 0),Ou([de({attribute:"width-sm"})],rX.prototype,"widthSm",void 0),Ou([de({attribute:"width-md"})],rX.prototype,"widthMd",void 0),Ou([de({attribute:"width-lg"})],rX.prototype,"widthLg",void 0),Ou([de({attribute:"height"})],rX.prototype,"height",void 0),Ou([de({attribute:"height-sm"})],rX.prototype,"heightSm",void 0),Ou([de({attribute:"height-md"})],rX.prototype,"heightMd",void 0),Ou([de({attribute:"height-lg"})],rX.prototype,"heightLg",void 0),rX.compose(Object.assign({baseName:"grid-layout-item",template:nX,shadowOptions:void 0},{}));const lX=(e,t)=>Hs(e,t),dX=(e,t)=>Me` ${$h()}`;class hX extends Nh{}const uX={delegatesFocus:!0,mode:"open"},fX={nextFlipper:K`<foundation-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`,previousFlipper:K`<foundation-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`};hX.compose(Object.assign({baseName:"horizontal-scroll",template:lX,styles:dX,shadowOptions:uX},fX));const pX=(e,t)=>Me` ${ZK()} .fa-stack-1x{font-size: 1em}.fa-stack-2x{font-size: 2em}.tooltip-icon{color: var(--accent-foreground-rest)}.error-tooltip{color: var(--error-color)}.tooltip-element{position: absolute;z-index: 999;width: 300px;contain: unset}.tooltip-element::part(tooltip){padding: calc(var(--design-unit) * 4px);background-color: color-mix(in srgb, var(--neutral-layer-4), #000 10%);border: 1px solid var(--neutral-layer-3);text-align: left;color: var(--neutral-foreground-hint);box-shadow: 0 4px 10px rgb(0 0 0 / 35%);font-size: var(--type-ramp-minus-1-font-size)}.tooltip-title{color: var(--neutral-fill-strong-hover);margin: 0}.tooltip-description{margin-top: calc(var(--design-unit) * 2px);margin-bottom: 0;font-size: var(--type-ramp-base-font-size)}.tooltip-second-title-margin{margin-top: calc(var(--design-unit) * 2px)}.tooltip-list-padding{margin: 0;padding: 0 0 0 calc(var(--design-unit) * 4px)}a, a:active, a:visited{color: var(--accent-foreground-rest);text-decoration: none}.warning{background: var(--warning-color);color: #000}.info{margin-top: calc(var(--design-unit) * 2px);padding: 20px;margin-bottom: 20px;height: auto;box-sizing: border-box}`,mX=e=>K`<template><i ${Fe("iElement")}id="${e=>e.tooltipId}" class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant} ${ti(["error-tooltip",!(!e.isError||!e.tooltip)],["tooltip-icon",!(e.isError||!e.tooltip)])}`}part=${e=>`icon-${e.name}-${e.size}-${e.variant} i-icon`}><slot></slot></i>${Ve(e=>e.tooltip,K`<${e}-tooltip part="tooltip" class="tooltip-element" show anchor="${e=>e.tooltipId}">${e=>K` ${e.tooltip} `}</${e}-tooltip>`)}</template>`,gX=K` ${e=>mX(NC(e))} `,vX={mode:"open",delegatesFocus:!0},bX={};var yX;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(yX||(yX={}));class zX extends Wt{constructor(){super(...arguments),this.isError=!1,this.size="sm",this.variant="solid"}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){super.connectedCallback(),this.loadIcon()}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren()}getDefaultTooltipConfig(){this.name||(this.name="question-circle",this.size="1x",this.variant="regular")}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());const e=VE({prefix:yX[this.variant],iconName:this.name}),t=BE(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map(e=>this.iElement.appendChild(e)))}}Ou([b],zX.prototype,"iElement",void 0),Ou([Jv],zX.prototype,"uuid",void 0),Ou([de({attribute:"tooltip-id"})],zX.prototype,"tooltipId",void 0),Ou([de],zX.prototype,"tooltip",void 0),Ou([de({attribute:"error",mode:"boolean"})],zX.prototype,"isError",void 0),Ou([de],zX.prototype,"name",void 0),Ou([de],zX.prototype,"size",void 0),Ou([de],zX.prototype,"variant",void 0),zX.compose(Object.assign({baseName:"icon",template:gX,styles:pX,shadowOptions:vX},bX));const CX=(e,t)=>ts(),LX=(e,t)=>Me` ${hh(e)} :host{display: flex;flex-direction: column;max-width: fit-content;padding: calc(var(--design-unit) * 1px) 0;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}`;class xX extends Oh{}const MX=void 0,wX={};xX.compose(Object.assign({baseName:"listbox",template:CX,styles:LX,shadowOptions:MX},wX));const SX=(e,t)=>Jo(0,t),kX=(e,t)=>Me` ${Ah()}`;class EX extends Vc{}const $X=void 0,NX={};EX.compose(Object.assign({baseName:"option",template:SX,styles:kX,shadowOptions:$X},NX));const AX=(e,t)=>bs(),OX=(e,t)=>Me` ${Rh()}`;class TX extends Ih{}const RX=void 0,IX={};TX.compose(Object.assign({baseName:"menu",template:AX,styles:OX,shadowOptions:RX},IX));const DX=(e,t)=>vs(e,t),FX=(e,t)=>Me` ${Th()} :host, :host(.indent-0[aria-haspopup='menu']){align-content: center;min-height: calc(var(--design-unit) * 8px)}.expand-collapse-glyph{max-height: calc(var(--design-unit) * 4px);max-width: calc(var(--design-unit) * 4px);height: auto;width: auto}`;class HX extends gs{connectedCallback(){super.connectedCallback(),this.addEventListener("click",()=>this.$emit("onMenuClick"))}}const _X=void 0,PX={expandCollapseGlyph:'\n <svg\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n '};HX.compose(Object.assign({baseName:"menu-item",template:DX,styles:FX,shadowOptions:_X},PX));const VX=Me` ${tZ}`,BX=K` ${cZ} `,UX={mode:"open",delegatesFocus:!0},jX={};class qX extends xZ{show(){var e,t;null===(e=this.onShowCallback)||void 0===e||e.call(this),null===(t=this.mainElement)||void 0===t||t.showModal()}}qX.compose(Object.assign({baseName:"modal",template:BX,styles:VX,shadowOptions:UX},jX));const GX=(e,t)=>K`<template class="${e=>[e.readOnly?"readonly":"",e.prefix?"has-prefix":"",e.suffix?"has-suffix":""].filter(Boolean).join(" ")}"><label part="label" for="${e=>e.id?e.id:"control"}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label-hidden"}"><slot ${Qe("defaultSlottedNodes")}></slot></label><div class="root" part="root">${it(0,t)}<div class="control-field">${Ve(e=>e.prefix,K`<span class="prefix" part="prefix" id="${e=>`${e.id||"control"}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input class="control" part="control" name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" id="${e=>e.id?e.id:"control"}" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @blur="${(e,t)=>e.handleBlur()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" type="text" inputmode="numeric" min="${e=>e.min}" max="${e=>e.max}" step="${e=>e.step}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${Fe("control")}/>${Ve(e=>e.suffix,K`<span class="suffix" part="suffix" id="${e=>`${e.id||"control"}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${Ve(e=>!e.hideStep&&!e.readOnly&&!e.disabled,K`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${e=>e.stepUp()}"><slot name="step-up-glyph">${t.stepUpGlyph||""}</slot></div><div class="step-down" part="step-down" @click="${e=>e.stepDown()}"><slot name="step-down-glyph">${t.stepDownGlyph||""}</slot></div></div>`)} ${tt(0,t)}</div></template>`,WX=12345.6,YX=9,KX=(e,t)=>{var i;return{decimalSeparator:(null===(i=new Intl.NumberFormat(t).formatToParts(WX).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)||"."}},ZX=(e,t)=>{var i,c,o;const s=new Intl.NumberFormat(t).formatToParts(WX),a=null===(i=s.find(e=>"group"===e.type))||void 0===i?void 0:i.value,n=null!==(o=null===(c=s.find(e=>"decimal"===e.type))||void 0===c?void 0:c.value)&&void 0!==o?o:".";let r=e.trim();return a&&(r=r.split(a).join("")),"."!==n&&(r=r.replace(n,".")),r},QX=(e,t)=>{var i,c;const o=null!==(c=null===(i=new Intl.NumberFormat(t).formatToParts(WX).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)&&void 0!==c?c:".";let s=0;for(const t of e)t===o&&(s+=1);return s},XX=(e,t)=>QX(e,t)>1,JX=(e,t,i,c)=>((e,t,i)=>{const c=ZX(String(null!=e?e:""),t);return!(!c||!/^-?\d+$/.test(c))&&c.replace(/^-/,"").length>=i})(e,i,c)&&QX(t,i)>0,eJ=(e,t,i)=>{const c=e.startsWith("-"),o=c?e.slice(1):e,s=o.indexOf("."),a=-1===s?o:o.slice(0,s);let n=-1===s?"":o.slice(s+1);const r=i.minimumFractionDigits,l=i.maximumFractionDigits;void 0!==l&&n.length>l&&(n=n.slice(0,l)),void 0!==r&&n.length<r&&(n=n.padEnd(r,"0"));const d=((e,t)=>{var i,c;const o=e.startsWith("-"),s=o?e.slice(1):e,a=null!==(c=null===(i=new Intl.NumberFormat(t).formatToParts(1234567).find(e=>"group"===e.type))||void 0===i?void 0:i.value)&&void 0!==c?c:",",n=[];let r=s;for(;r.length>3;)n.unshift(r.slice(-3)),r=r.slice(0,-3);n.unshift(r);const l=n.join(a);return o?`-${l}`:l})(c?`-${a}`:a,t),{decimalSeparator:h}=KX(0,t);return-1===s?void 0!==r&&r>0?`${d}${h}${"0".repeat(r)}`:d:0===l?d:`${d}${h}${n}`},tJ=(e,t)=>{const{decimalSeparator:i}=KX(0,t);return"."===i?e:e.replace(/\./g,i)},iJ=(e,t,i)=>""===e?"":(e=>{const t=e.replace(/^-/,""),i=t.indexOf(".");return(-1===i?t:t.slice(0,i)).length>15})(e)&&/^-?\d+(\.\d*)?$/.test(e)?eJ(e,t,i):Intl.NumberFormat(t,i).format(Number(e)),cJ=(e,t)=>{if(!e||""===e)return e;const i=Number(e);if(isNaN(i))return e;const c=e.indexOf("."),o=-1!==c,s=o?e.length-c-1:0,a=t.minimumFractionDigits,n=t.maximumFractionDigits;if(s>=a&&s<=n)return e;let r=e;if(s<a){o||(r=e+".");r+="0".repeat(a-s)}if(s>n){const t=o?e.substring(0,c):e,i=(o?e.substring(c+1):"").substring(0,n);r=0===n?t:`${t}.${i}`}return r},oJ=(e,t,i=!0,c)=>{if(null==e||""===e)return"";const o="number"==typeof e?e.toString():e,s=null!=c?c:12;if(XX(o,t))return"";let a;if(i)a=((e,t)=>{const i=ZX(String(e),t),c=i.replace(/^-/,"").replace(".","").length;return/^-?\d+(\.\d+)?$/.test(i)&&c>15?i:String(new cp(t).parse(String(e)))})(o,t);else{const{decimalSeparator:e}=KX(0,t);if("."!==e){a=o.replace(new RegExp(`\\${e}`,"g"),".");const t=a.indexOf(".");-1!==t&&(a=a.substring(0,t))}else a=o}a=String(a);if(!/^-?\d*\.?\d+$/.test(a))return"";if(void 0!==s){if(a.replace(".","").replace(/^0+/,"").length>s){const e=a.indexOf(".");if(-1!==e){const t=a.substring(0,e),i=t.length;if(i>=s)return a.substring(0,s);{const c=s-i;return`${t}.${a.substring(e+1).substring(0,c)}`}}return a.substring(0,s)}}return a},sJ=(e,t,i,c)=>{if(void 0!==i&&QX(e,t)>0){const o=ZX(e,t),s=o.indexOf("."),a=-1===s?o:o.slice(0,s);if(JX(void 0!==c?c:a,e,t,i))return""}return((e,t,i)=>{const{decimalSeparator:c}=KX(0,i),o=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=new RegExp(`${o}(\\d*?)(0+)$`),a=e.match(s);if(a){const e=a[1],i=a[2],c=String(t);if(!isNaN(Number(t))){if(c.includes(".")){const t=c.split(".")[1],o=Math.max(0,i.length-(t.length-e.length));return c+"0".repeat(o)}return c+"."+e+i}}return String(t)})(e,oJ(e,t,!0,i),t)},aJ=(e,t,i=!0,c,o,s)=>{const a=oJ(e,t,i,s);if(!a)return"";const n=a.replace(/^-/,"").replace(".","").length;if(/^-?\d+$/.test(a)&&n>15)try{return((e,t,i)=>{let c=BigInt(e);if(void 0!==i&&!Number.isNaN(i)){const e=BigInt(Math.trunc(i));c>e&&(c=e)}if(void 0!==t&&!Number.isNaN(t)){const e=BigInt(Math.trunc(t));c<e&&(c=e)}return c.toString()})(a,c,o)}catch(e){return a}let r=parseFloat(a);return isNaN(r)?r="":(r=Math.min(r,null!=o?o:r),r=Math.max(r,null!=c?c:r)),String(r)},nJ=e=>{try{const t="string"==typeof e?e:e.toString(),i=t.indexOf(".");if(-1===i)return 1;const c=t.substring(i+1).length;if(0===c)return 1;const o=Math.pow(10,-c);return parseFloat(o.toFixed(c))}catch(t){const i="string"==typeof e?e:e.toString(),c=i.indexOf(".");if(-1===c)return 1;const o=i.substring(c+1).length;if(0===o)return 1;const s=Math.pow(10,-o);return parseFloat(s.toFixed(o))}};class rJ extends(hQ(Fh)){constructor(){super(...arguments),this.autocomplete="off",this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?nJ(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),c=i.indexOf(".");if(-1===c)return(parseInt(i)+t).toString();const o=i.substring(c+1),s=o.length-1,a=parseInt(o.charAt(s))+1;if(a<=YX){const e=o.substring(0,s)+a;return i.substring(0,c+1)+e}{let e="",t=1;for(let i=s;i>=0;i-=1){const c=parseInt(o.charAt(i))+t;c<=YX?(e=c+e,t=0):(e="0"+e,t=1)}return 1===t?parseInt(i.substring(0,c))+1+"."+e:i.substring(0,c+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)+t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=aJ(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?nJ(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),c=i.indexOf(".");if(-1===c)return(parseInt(i)-t).toString();const o=i.substring(c+1),s=o.length-1,a=parseInt(o.charAt(s))-1;if(a>=0){const e=o.substring(0,s)+a;return i.substring(0,c+1)+e}{let e="",t=1;for(let i=s;i>=0;i-=1){const c=parseInt(o.charAt(i))-t;c>=0?(e=c+e,t=0):(e=YX.toString()+e,t=1)}return 1===t?parseInt(i.substring(0,c))-1+"."+e:i.substring(0,c+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)-t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=aJ(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}restoreControlToCommittedValue(){if(!this.control)return;const e=this.value;if(!e)return this.control.value="",void(this.isUserInput=!1);this.control.value=this.withFormatting&&e?iJ(e,this.locale,this.options):tJ(String(e),this.locale),this.isUserInput=!1}handleTextInput(){this.control&&"-"!==this.control.value&&"-0"!==this.control.value&&(XX(this.control.value,this.locale)||JX(this.value,this.control.value,this.locale,this.maximumInputPrecision)?this.restoreControlToCommittedValue():(this.isUserInput=!0,this.withFormatting&&!new cp(this.locale).hasSeparator(this.control.value)?p.queueUpdate(()=>{const e=this.value,t=sJ(this.control.value,this.locale,this.maximumInputPrecision,this.value);if(t||!e||""===this.control.value){if(this.control){const e=this.withFormatting&&""!==t?iJ(t,this.locale,this.options):tJ(t,this.locale);this.control.value=cJ(e,this.options)}this.value=cJ(t,this.options),this.$emit("input")}else this.restoreControlToCommittedValue()}):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||p.queueUpdate(()=>{var e;this.control&&(this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,"")),this.value=(null===(e=this.control)||void 0===e?void 0:e.value)||"",this.$emit("input")})))}valueChanged(e,t){if(null!=t||!this.control)return null!=t&&t!==e?this.isUserInput?void 0:(this.value=aJ(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),void p.queueUpdate(()=>{this.isUserInput||this.control&&(this.control.value=this.withFormatting&&this.value?iJ(this.value,this.locale,this.options):this.value)})):void 0;this.control.value=""}handleBlur(){if(!this.control)return;this.isUserInput=!1;const e=aJ(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?cJ(e,this.options):e),this.control.value=this.withFormatting&&this.value?iJ(this.value,this.locale,this.options):e,this.$emit("input")}}Ou([de],rJ.prototype,"autocomplete",void 0),Ou([de({mode:"boolean"})],rJ.prototype,"hideStep",void 0),Ou([de({converter:{fromView:e=>null==e?"":String(e),toView:e=>e}})],rJ.prototype,"value",void 0),Ou([de({mode:"boolean"})],rJ.prototype,"withFormatting",void 0),Ou([de],rJ.prototype,"locale",void 0),Ou([de({mode:"boolean"})],rJ.prototype,"autoStepPrecision",void 0),Ou([de],rJ.prototype,"maximumInputPrecision",void 0);const lJ={delegatesFocus:!0,mode:"open"},dJ={stepDownGlyph:'\n <svg class="step-down-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z"/>\n </svg>\n ',stepUpGlyph:'\n <svg class="step-up-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z"/>\n </svg>\n '};rJ.compose(Object.assign({baseName:"number-field",template:GX,styles:(e,t)=>Me` ${Dh()} ::part(label){color: var(--neutral-foreground-rest)}fast-text-field{display: unset}.controls{margin-bottom: auto;margin-inline-end: 5px;margin-top: auto}.step-down, .step-up{display: block;fill: var(--neutral-foreground-rest)}.step-down-glyph, .step-up-glyph{padding: unset}::part(end){margin-inline-end: unset}${fQ}`,shadowOptions:lJ},dJ));const hJ=(e,t)=>Me` :host{display: block}.label{display: flex;align-items: center;padding: 0 10px;height: 32px;font-weight: bold;user-select: none}.items{display: flex;flex-direction: column}/* Indent options inside the group */ ::slotted(*){padding-left: 20px}`,uJ=(e,t)=>K`<template role="option"><div class="label" part="label" role="presentation">${e=>e.groupLabel}</div><div class="items" part="items" role="group" aria-label="${e=>e.groupLabel}"><slot></slot></div></template>`;class fJ extends Vc{connectedCallback(){super.connectedCallback(),this.disabled=!0}}Ou([de({attribute:"label"})],fJ.prototype,"groupLabel",void 0),fJ.compose({baseName:"optgroup",template:uJ,styles:hJ});const pJ=(e,t)=>Ns(0,t),mJ=(e,t)=>Me` ${_h()} :host{height: calc(var(--design-unit) * 2px)}`;class gJ extends $s{}const vJ=void 0,bJ={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},yJ=gJ.compose(Object.assign({baseName:"progress",template:pJ,styles:mJ,shadowOptions:vJ},bJ));const zJ="app",CJ="component";((e,t="foundation",i,c)=>{e&&iw(null!=i?i:zw,null!=c?c:ww,e);return function(e){return new Proxy(e,{get:(e,t,...i)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...i)}})}(wo.getOrCreate(e).withPrefix(t))})().register(yJ({prefix:"next-update"}));class LJ extends Wt{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=zJ,this.status={isOnline:!0,isHealthy:!0,browserInformation:{},socket:{},resources:{}},this.onSystemHealthChanged=e=>{this.status=e.detail,this.resourceList=Object.values(this.status.resources).sort((e,t)=>Number(t.isConnected)-Number(e.isConnected))},this.onOpen=(e=!1)=>{this.isOpen=!0,this.wasOpenedByUser=e,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!1,this.wasOpenedByUser=!1,this.isDismissed=!1},this.onDismiss=()=>{this.isDismissed||this.status.isHealthy?this.onClose():this.isDismissed=!0},this.onUpdateStatus=()=>{this.status.runAllChecks()},this.onReportStatus=()=>{this.status.reportStabilityToGenesis()},this.onReloadWindow=()=>{location.reload()},this.onDocumentKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case Ci.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case Ci.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case gi:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===CJ&&SC.warn("SystemHealthOverlay has support for app overlays only right now.")}logLevelChanged(){fC.level=this.logLevel}statusChanged(e,t){this.updateClassNames(),this.$fastController.isConnected&&(!1!==(null==t?void 0:t.isHealthy)||this.isOpen||this.onOpen(),!0===(null==t?void 0:t.isHealthy)&&this.isOpen&&!this.wasOpenedByUser&&this.onClose(),this.startTimeTillNextUpdateCountdown())}updateClassNames(){this.isOnlineClassNames=ti(["healthy",this.status.isOnline],["unhealthy",!this.status.isOnline]),this.isHealthyClassNames=ti(["healthy",this.status.isHealthy],["unhealthy",!this.status.isHealthy]),this.isSocketHealthyClassNames=ti(["healthy",this.isSocketHealthy],["unhealthy",!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=ti(["healthy",this.status.resourcesAllConnected],["unhealthy",!this.status.resourcesAllConnected],["hidden",!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=ti(["open",this.isOpen],["dismissed",this.isDismissed]),this.containerClassNames=ti(this.isHealthyClassNames,["open",this.isOpen],["dismissed",this.isDismissed])}startTimeTillNextUpdateCountdown(){const e=this.status.nextUpdate-Date.now();let t=e,i=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},this.timeTillNextUpdateInterval=setInterval(()=>{t-=1e3,i=Math.floor(t/e*100),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},t<0&&clearInterval(this.timeTillNextUpdateInterval)},1e3)}connectedCallback(){super.connectedCallback(),this.networkMonitor.create(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.networkMonitor.destroy(),this.removeEventListeners()}get isSocketHealthy(){return this.status.isOnline&&(!this.status.socket.isConfigured||this.status.socket.isConfigured&&this.status.socket.isConnected)}get validResourceList(){var e;return(null===(e=this.resourceList)||void 0===e?void 0:e.length)>0}eventBridge(){var e;return null!==(e=this.config.eventEmitter)&&void 0!==e?e:document}addEventListeners(){this.eventBridge().addEventListener(tC,this.onSystemHealthChanged,!0),document.addEventListener("keydown",this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(tC,this.onSystemHealthChanged,!0),document.removeEventListener("keydown",this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?K`<span class="checkmark">&#x2714;</span>`:K`<span class="checkmark">&#10008;</span>`}}Ou([cC],LJ.prototype,"config",void 0),Ou([bC],LJ.prototype,"networkMonitor",void 0),Ou([b],LJ.prototype,"resourceList",void 0),Ou([b],LJ.prototype,"isOpen",void 0),Ou([b],LJ.prototype,"wasOpenedByUser",void 0),Ou([b],LJ.prototype,"isDismissed",void 0),Ou([b],LJ.prototype,"templateClassNames",void 0),Ou([b],LJ.prototype,"containerClassNames",void 0),Ou([b],LJ.prototype,"isOnlineClassNames",void 0),Ou([b],LJ.prototype,"isHealthyClassNames",void 0),Ou([b],LJ.prototype,"isSocketHealthyClassNames",void 0),Ou([b],LJ.prototype,"resourcesAllConnectedClassNames",void 0),Ou([b],LJ.prototype,"timeTillNextUpdate",void 0),Ou([b],LJ.prototype,"saveDataCallback",void 0),Ou([de],LJ.prototype,"mode",void 0),Ou([de({attribute:"log-level",converter:re})],LJ.prototype,"logLevel",void 0),Ou([b],LJ.prototype,"status",void 0);const xJ=(e,t)=>K`<template class="${e=>e.templateClassNames}"><header class="${e=>e.isHealthyClassNames}" part="header"><h1>System ${e=>ki(e.isHealthyClassNames)}</h1>${Ve(e=>!e.status.isHealthy,K`<span class="data-warning">Data Validity Unknown</span>`)}<div class="controls">${Ve(e=>e.isDismissed,K`<a href="#" class="open-button" @click="${e=>e.onOpen(!0)}">View Status</a>`)} ${Ve(e=>!e.isDismissed,K`<a href="#" class="update-status-button" @click="${e=>e.onUpdateStatus()}">
91
+ </style><slot></slot></template>`;class rX extends Wt{setGridItemProperties(e,t,i,c){if(t&&e&&i&&c){return`grid-row: ${0===t||0===c?"auto":`${t} / ${Number(t)+Number(c)}`}; grid-column: ${0===e||0===i?"auto":`${e} / ${Number(e)+Number(i)}`}`}}}Ou([de({attribute:"col-number"})],rX.prototype,"colNumber",void 0),Ou([de({attribute:"col-sm-number"})],rX.prototype,"colSmNumber",void 0),Ou([de({attribute:"col-md-number"})],rX.prototype,"colMdNumber",void 0),Ou([de({attribute:"col-lg-number"})],rX.prototype,"colLgNumber",void 0),Ou([de({attribute:"row-number"})],rX.prototype,"rowNumber",void 0),Ou([de({attribute:"row-sm-number"})],rX.prototype,"rowSmNumber",void 0),Ou([de({attribute:"row-md-number"})],rX.prototype,"rowMdNumber",void 0),Ou([de({attribute:"row-lg-number"})],rX.prototype,"rowLgNumber",void 0),Ou([de({attribute:"width"})],rX.prototype,"width",void 0),Ou([de({attribute:"width-sm"})],rX.prototype,"widthSm",void 0),Ou([de({attribute:"width-md"})],rX.prototype,"widthMd",void 0),Ou([de({attribute:"width-lg"})],rX.prototype,"widthLg",void 0),Ou([de({attribute:"height"})],rX.prototype,"height",void 0),Ou([de({attribute:"height-sm"})],rX.prototype,"heightSm",void 0),Ou([de({attribute:"height-md"})],rX.prototype,"heightMd",void 0),Ou([de({attribute:"height-lg"})],rX.prototype,"heightLg",void 0),rX.compose(Object.assign({baseName:"grid-layout-item",template:nX,shadowOptions:void 0},{}));const lX=(e,t)=>Hs(e,t),dX=(e,t)=>Me` ${$h()}`;class hX extends Nh{}const uX={delegatesFocus:!0,mode:"open"},fX={nextFlipper:K`<foundation-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`,previousFlipper:K`<foundation-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`};hX.compose(Object.assign({baseName:"horizontal-scroll",template:lX,styles:dX,shadowOptions:uX},fX));const pX=(e,t)=>Me` ${ZK()} .fa-stack-1x{font-size: 1em}.fa-stack-2x{font-size: 2em}.tooltip-icon{color: var(--accent-foreground-rest)}.error-tooltip{color: var(--error-color)}.tooltip-element{/* Shown as a top-layer popover (see Icon.showTooltip): the top layer escapes ancestor stacking contexts, transforms and overflow clipping, so virtualized grid rows cannot paint over the bubble and no z-index is needed. Placement is inline top/left from the anchor rect, so the UA popover box (inset/margin/border/padding/background) is reset to leave the visible box to ::part(tooltip). No display rule here: the UA sheet hides the popover while closed (an author display rule would override that), and position: fixed blockifies the host while open. */ position: fixed;inset: unset;margin: 0;border: none;padding: 0;background: transparent;color: inherit;overflow: visible;width: 300px;contain: unset;/* The top layer changes painting, not style inheritance: the bubble still inherits text properties from its host context (e.g. AG Grid cells set white-space: nowrap), so reset the ones that would break a multi-line bubble. */ white-space: normal;text-overflow: clip}.tooltip-element::part(tooltip){padding: calc(var(--design-unit) * 4px);background-color: color-mix(in srgb, var(--neutral-layer-4), #000 10%);border: 1px solid var(--neutral-layer-3);text-align: left;color: var(--neutral-foreground-hint);box-shadow: 0 4px 10px rgb(0 0 0 / 35%);font-size: var(--type-ramp-minus-1-font-size)}.tooltip-title{color: var(--neutral-fill-strong-hover);margin: 0}.tooltip-description{margin-top: calc(var(--design-unit) * 2px);margin-bottom: 0;font-size: var(--type-ramp-base-font-size)}.tooltip-second-title-margin{margin-top: calc(var(--design-unit) * 2px)}.tooltip-list-padding{margin: 0;padding: 0 0 0 calc(var(--design-unit) * 4px)}a, a:active, a:visited{color: var(--accent-foreground-rest);text-decoration: none}.warning{background: var(--warning-color);color: #000}.info{margin-top: calc(var(--design-unit) * 2px);padding: 20px;margin-bottom: 20px;height: auto;box-sizing: border-box}`,mX=e=>K`<template><i ${Fe("iElement")}id="${e=>e.tooltipId}" class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant} ${ti(["error-tooltip",!(!e.isError||!e.tooltip)],["tooltip-icon",!(e.isError||!e.tooltip)])}`}part=${e=>`icon-${e.name}-${e.size}-${e.variant} i-icon`}><slot></slot></i>${Ve(e=>e.tooltip,K`<${e}-tooltip ${Fe("tooltipElement")}part="tooltip" class="tooltip-element" popover="manual" delay="0" anchor="${e=>e.tooltipId}">${e=>K` ${e.tooltip} `}</${e}-tooltip>`)}</template>`,gX=K` ${e=>mX(NC(e))} `,vX={mode:"open",delegatesFocus:!0},bX={};var yX;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(yX||(yX={}));class zX extends Wt{constructor(){super(...arguments),this.isError=!1,this.tooltipShowTimer=null,this.size="sm",this.variant="solid",this.showTooltip=()=>{const e=this.tooltipElement;e&&null===this.tooltipShowTimer&&!e.matches(":popover-open")&&(this.tooltipShowTimer=window.setTimeout(()=>{this.tooltipShowTimer=null;const e=this.tooltipElement;(null==e?void 0:e.isConnected)&&(e.showPopover(),this.positionTooltip(e))},300))},this.hideTooltip=()=>{var e;null!==this.tooltipShowTimer&&(window.clearTimeout(this.tooltipShowTimer),this.tooltipShowTimer=null),(null===(e=this.tooltipElement)||void 0===e?void 0:e.matches(":popover-open"))&&this.tooltipElement.hidePopover()}}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){var e,t,i,c;super.connectedCallback(),this.loadIcon(),null===(e=this.iElement)||void 0===e||e.addEventListener("mouseover",this.showTooltip,{passive:!0}),null===(t=this.iElement)||void 0===t||t.addEventListener("focusin",this.showTooltip,{passive:!0}),null===(i=this.iElement)||void 0===i||i.addEventListener("mouseout",this.hideTooltip,{passive:!0}),null===(c=this.iElement)||void 0===c||c.addEventListener("focusout",this.hideTooltip,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren(),this.iElement.removeEventListener("mouseover",this.showTooltip),this.iElement.removeEventListener("focusin",this.showTooltip),this.iElement.removeEventListener("mouseout",this.hideTooltip),this.iElement.removeEventListener("focusout",this.hideTooltip),this.hideTooltip()}positionTooltip(e){const t=this.iElement.getBoundingClientRect(),i=e.getBoundingClientRect(),c=Math.max(i.width,e.scrollWidth),o=Math.max(i.height,e.scrollHeight);let s=t.right;s+c>window.innerWidth-8&&(s=Math.max(8,t.left-c));const a=Math.max(8,window.innerHeight-o-8),n=Math.min(Math.max(t.top,8),a);e.style.top=`${n}px`,e.style.left=`${s}px`}getDefaultTooltipConfig(){this.name||(this.name="question-circle",this.size="1x",this.variant="regular")}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());const e=VE({prefix:yX[this.variant],iconName:this.name}),t=BE(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map(e=>this.iElement.appendChild(e)))}}Ou([b],zX.prototype,"iElement",void 0),Ou([Jv],zX.prototype,"uuid",void 0),Ou([de({attribute:"tooltip-id"})],zX.prototype,"tooltipId",void 0),Ou([de],zX.prototype,"tooltip",void 0),Ou([de({attribute:"error",mode:"boolean"})],zX.prototype,"isError",void 0),Ou([de],zX.prototype,"name",void 0),Ou([de],zX.prototype,"size",void 0),Ou([de],zX.prototype,"variant",void 0),zX.compose(Object.assign({baseName:"icon",template:gX,styles:pX,shadowOptions:vX},bX));const CX=(e,t)=>ts(),LX=(e,t)=>Me` ${hh(e)} :host{display: flex;flex-direction: column;max-width: fit-content;padding: calc(var(--design-unit) * 1px) 0;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}`;class xX extends Oh{}const MX=void 0,wX={};xX.compose(Object.assign({baseName:"listbox",template:CX,styles:LX,shadowOptions:MX},wX));const SX=(e,t)=>Jo(0,t),kX=(e,t)=>Me` ${Ah()}`;class EX extends Vc{}const $X=void 0,NX={};EX.compose(Object.assign({baseName:"option",template:SX,styles:kX,shadowOptions:$X},NX));const AX=(e,t)=>bs(),OX=(e,t)=>Me` ${Rh()}`;class TX extends Ih{}const RX=void 0,IX={};TX.compose(Object.assign({baseName:"menu",template:AX,styles:OX,shadowOptions:RX},IX));const DX=(e,t)=>vs(e,t),FX=(e,t)=>Me` ${Th()} :host, :host(.indent-0[aria-haspopup='menu']){align-content: center;min-height: calc(var(--design-unit) * 8px)}.expand-collapse-glyph{max-height: calc(var(--design-unit) * 4px);max-width: calc(var(--design-unit) * 4px);height: auto;width: auto}`;class HX extends gs{connectedCallback(){super.connectedCallback(),this.addEventListener("click",()=>this.$emit("onMenuClick"))}}const _X=void 0,PX={expandCollapseGlyph:'\n <svg\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n '};HX.compose(Object.assign({baseName:"menu-item",template:DX,styles:FX,shadowOptions:_X},PX));const VX=Me` ${tZ}`,BX=K` ${cZ} `,UX={mode:"open",delegatesFocus:!0},jX={};class qX extends xZ{show(){var e,t;null===(e=this.onShowCallback)||void 0===e||e.call(this),null===(t=this.mainElement)||void 0===t||t.showModal()}}qX.compose(Object.assign({baseName:"modal",template:BX,styles:VX,shadowOptions:UX},jX));const GX=(e,t)=>K`<template class="${e=>[e.readOnly?"readonly":"",e.prefix?"has-prefix":"",e.suffix?"has-suffix":""].filter(Boolean).join(" ")}"><label part="label" for="${e=>e.id?e.id:"control"}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label-hidden"}"><slot ${Qe("defaultSlottedNodes")}></slot></label><div class="root" part="root">${it(0,t)}<div class="control-field">${Ve(e=>e.prefix,K`<span class="prefix" part="prefix" id="${e=>`${e.id||"control"}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input class="control" part="control" name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" id="${e=>e.id?e.id:"control"}" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @blur="${(e,t)=>e.handleBlur()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" type="text" inputmode="numeric" min="${e=>e.min}" max="${e=>e.max}" step="${e=>e.step}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${Fe("control")}/>${Ve(e=>e.suffix,K`<span class="suffix" part="suffix" id="${e=>`${e.id||"control"}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${Ve(e=>!e.hideStep&&!e.readOnly&&!e.disabled,K`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${e=>e.stepUp()}"><slot name="step-up-glyph">${t.stepUpGlyph||""}</slot></div><div class="step-down" part="step-down" @click="${e=>e.stepDown()}"><slot name="step-down-glyph">${t.stepDownGlyph||""}</slot></div></div>`)} ${tt(0,t)}</div></template>`,WX=12345.6,YX=9,KX=(e,t)=>{var i;return{decimalSeparator:(null===(i=new Intl.NumberFormat(t).formatToParts(WX).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)||"."}},ZX=(e,t)=>{var i,c,o;const s=new Intl.NumberFormat(t).formatToParts(WX),a=null===(i=s.find(e=>"group"===e.type))||void 0===i?void 0:i.value,n=null!==(o=null===(c=s.find(e=>"decimal"===e.type))||void 0===c?void 0:c.value)&&void 0!==o?o:".";let r=e.trim();return a&&(r=r.split(a).join("")),"."!==n&&(r=r.replace(n,".")),r},QX=(e,t)=>{var i,c;const o=null!==(c=null===(i=new Intl.NumberFormat(t).formatToParts(WX).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)&&void 0!==c?c:".";let s=0;for(const t of e)t===o&&(s+=1);return s},XX=(e,t)=>QX(e,t)>1,JX=(e,t,i,c)=>((e,t,i)=>{const c=ZX(String(null!=e?e:""),t);return!(!c||!/^-?\d+$/.test(c))&&c.replace(/^-/,"").length>=i})(e,i,c)&&QX(t,i)>0,eJ=(e,t,i)=>{const c=e.startsWith("-"),o=c?e.slice(1):e,s=o.indexOf("."),a=-1===s?o:o.slice(0,s);let n=-1===s?"":o.slice(s+1);const r=i.minimumFractionDigits,l=i.maximumFractionDigits;void 0!==l&&n.length>l&&(n=n.slice(0,l)),void 0!==r&&n.length<r&&(n=n.padEnd(r,"0"));const d=((e,t)=>{var i,c;const o=e.startsWith("-"),s=o?e.slice(1):e,a=null!==(c=null===(i=new Intl.NumberFormat(t).formatToParts(1234567).find(e=>"group"===e.type))||void 0===i?void 0:i.value)&&void 0!==c?c:",",n=[];let r=s;for(;r.length>3;)n.unshift(r.slice(-3)),r=r.slice(0,-3);n.unshift(r);const l=n.join(a);return o?`-${l}`:l})(c?`-${a}`:a,t),{decimalSeparator:h}=KX(0,t);return-1===s?void 0!==r&&r>0?`${d}${h}${"0".repeat(r)}`:d:0===l?d:`${d}${h}${n}`},tJ=(e,t)=>{const{decimalSeparator:i}=KX(0,t);return"."===i?e:e.replace(/\./g,i)},iJ=(e,t,i)=>""===e?"":(e=>{const t=e.replace(/^-/,""),i=t.indexOf(".");return(-1===i?t:t.slice(0,i)).length>15})(e)&&/^-?\d+(\.\d*)?$/.test(e)?eJ(e,t,i):Intl.NumberFormat(t,i).format(Number(e)),cJ=(e,t)=>{if(!e||""===e)return e;const i=Number(e);if(isNaN(i))return e;const c=e.indexOf("."),o=-1!==c,s=o?e.length-c-1:0,a=t.minimumFractionDigits,n=t.maximumFractionDigits;if(s>=a&&s<=n)return e;let r=e;if(s<a){o||(r=e+".");r+="0".repeat(a-s)}if(s>n){const t=o?e.substring(0,c):e,i=(o?e.substring(c+1):"").substring(0,n);r=0===n?t:`${t}.${i}`}return r},oJ=(e,t,i=!0,c)=>{if(null==e||""===e)return"";const o="number"==typeof e?e.toString():e,s=null!=c?c:12;if(XX(o,t))return"";let a;if(i)a=((e,t)=>{const i=ZX(String(e),t),c=i.replace(/^-/,"").replace(".","").length;return/^-?\d+(\.\d+)?$/.test(i)&&c>15?i:String(new cp(t).parse(String(e)))})(o,t);else{const{decimalSeparator:e}=KX(0,t);if("."!==e){a=o.replace(new RegExp(`\\${e}`,"g"),".");const t=a.indexOf(".");-1!==t&&(a=a.substring(0,t))}else a=o}a=String(a);if(!/^-?\d*\.?\d+$/.test(a))return"";if(void 0!==s){if(a.replace(".","").replace(/^0+/,"").length>s){const e=a.indexOf(".");if(-1!==e){const t=a.substring(0,e),i=t.length;if(i>=s)return a.substring(0,s);{const c=s-i;return`${t}.${a.substring(e+1).substring(0,c)}`}}return a.substring(0,s)}}return a},sJ=(e,t,i,c)=>{if(void 0!==i&&QX(e,t)>0){const o=ZX(e,t),s=o.indexOf("."),a=-1===s?o:o.slice(0,s);if(JX(void 0!==c?c:a,e,t,i))return""}return((e,t,i)=>{const{decimalSeparator:c}=KX(0,i),o=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=new RegExp(`${o}(\\d*?)(0+)$`),a=e.match(s);if(a){const e=a[1],i=a[2],c=String(t);if(!isNaN(Number(t))){if(c.includes(".")){const t=c.split(".")[1],o=Math.max(0,i.length-(t.length-e.length));return c+"0".repeat(o)}return c+"."+e+i}}return String(t)})(e,oJ(e,t,!0,i),t)},aJ=(e,t,i=!0,c,o,s)=>{const a=oJ(e,t,i,s);if(!a)return"";const n=a.replace(/^-/,"").replace(".","").length;if(/^-?\d+$/.test(a)&&n>15)try{return((e,t,i)=>{let c=BigInt(e);if(void 0!==i&&!Number.isNaN(i)){const e=BigInt(Math.trunc(i));c>e&&(c=e)}if(void 0!==t&&!Number.isNaN(t)){const e=BigInt(Math.trunc(t));c<e&&(c=e)}return c.toString()})(a,c,o)}catch(e){return a}let r=parseFloat(a);return isNaN(r)?r="":(r=Math.min(r,null!=o?o:r),r=Math.max(r,null!=c?c:r)),String(r)},nJ=e=>{try{const t="string"==typeof e?e:e.toString(),i=t.indexOf(".");if(-1===i)return 1;const c=t.substring(i+1).length;if(0===c)return 1;const o=Math.pow(10,-c);return parseFloat(o.toFixed(c))}catch(t){const i="string"==typeof e?e:e.toString(),c=i.indexOf(".");if(-1===c)return 1;const o=i.substring(c+1).length;if(0===o)return 1;const s=Math.pow(10,-o);return parseFloat(s.toFixed(o))}};class rJ extends(hQ(Fh)){constructor(){super(...arguments),this.autocomplete="off",this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?nJ(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),c=i.indexOf(".");if(-1===c)return(parseInt(i)+t).toString();const o=i.substring(c+1),s=o.length-1,a=parseInt(o.charAt(s))+1;if(a<=YX){const e=o.substring(0,s)+a;return i.substring(0,c+1)+e}{let e="",t=1;for(let i=s;i>=0;i-=1){const c=parseInt(o.charAt(i))+t;c<=YX?(e=c+e,t=0):(e="0"+e,t=1)}return 1===t?parseInt(i.substring(0,c))+1+"."+e:i.substring(0,c+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)+t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=aJ(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?nJ(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),c=i.indexOf(".");if(-1===c)return(parseInt(i)-t).toString();const o=i.substring(c+1),s=o.length-1,a=parseInt(o.charAt(s))-1;if(a>=0){const e=o.substring(0,s)+a;return i.substring(0,c+1)+e}{let e="",t=1;for(let i=s;i>=0;i-=1){const c=parseInt(o.charAt(i))-t;c>=0?(e=c+e,t=0):(e=YX.toString()+e,t=1)}return 1===t?parseInt(i.substring(0,c))-1+"."+e:i.substring(0,c+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)-t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=aJ(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}restoreControlToCommittedValue(){if(!this.control)return;const e=this.value;if(!e)return this.control.value="",void(this.isUserInput=!1);this.control.value=this.withFormatting&&e?iJ(e,this.locale,this.options):tJ(String(e),this.locale),this.isUserInput=!1}handleTextInput(){this.control&&"-"!==this.control.value&&"-0"!==this.control.value&&(XX(this.control.value,this.locale)||JX(this.value,this.control.value,this.locale,this.maximumInputPrecision)?this.restoreControlToCommittedValue():(this.isUserInput=!0,this.withFormatting&&!new cp(this.locale).hasSeparator(this.control.value)?p.queueUpdate(()=>{const e=this.value,t=sJ(this.control.value,this.locale,this.maximumInputPrecision,this.value);if(t||!e||""===this.control.value){if(this.control){const e=this.withFormatting&&""!==t?iJ(t,this.locale,this.options):tJ(t,this.locale);this.control.value=cJ(e,this.options)}this.value=cJ(t,this.options),this.$emit("input")}else this.restoreControlToCommittedValue()}):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||p.queueUpdate(()=>{var e;this.control&&(this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,"")),this.value=(null===(e=this.control)||void 0===e?void 0:e.value)||"",this.$emit("input")})))}valueChanged(e,t){if(null!=t||!this.control)return null!=t&&t!==e?this.isUserInput?void 0:(this.value=aJ(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),void p.queueUpdate(()=>{this.isUserInput||this.control&&(this.control.value=this.withFormatting&&this.value?iJ(this.value,this.locale,this.options):this.value)})):void 0;this.control.value=""}handleBlur(){if(!this.control)return;this.isUserInput=!1;const e=aJ(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?cJ(e,this.options):e),this.control.value=this.withFormatting&&this.value?iJ(this.value,this.locale,this.options):e,this.$emit("input")}}Ou([de],rJ.prototype,"autocomplete",void 0),Ou([de({mode:"boolean"})],rJ.prototype,"hideStep",void 0),Ou([de({converter:{fromView:e=>null==e?"":String(e),toView:e=>e}})],rJ.prototype,"value",void 0),Ou([de({mode:"boolean"})],rJ.prototype,"withFormatting",void 0),Ou([de],rJ.prototype,"locale",void 0),Ou([de({mode:"boolean"})],rJ.prototype,"autoStepPrecision",void 0),Ou([de],rJ.prototype,"maximumInputPrecision",void 0);const lJ={delegatesFocus:!0,mode:"open"},dJ={stepDownGlyph:'\n <svg class="step-down-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z"/>\n </svg>\n ',stepUpGlyph:'\n <svg class="step-up-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z"/>\n </svg>\n '};rJ.compose(Object.assign({baseName:"number-field",template:GX,styles:(e,t)=>Me` ${Dh()} ::part(label){color: var(--neutral-foreground-rest)}fast-text-field{display: unset}.controls{margin-bottom: auto;margin-inline-end: 5px;margin-top: auto}.step-down, .step-up{display: block;fill: var(--neutral-foreground-rest)}.step-down-glyph, .step-up-glyph{padding: unset}::part(end){margin-inline-end: unset}${fQ}`,shadowOptions:lJ},dJ));const hJ=(e,t)=>Me` :host{display: block}.label{display: flex;align-items: center;padding: 0 10px;height: 32px;font-weight: bold;user-select: none}.items{display: flex;flex-direction: column}/* Indent options inside the group */ ::slotted(*){padding-left: 20px}`,uJ=(e,t)=>K`<template role="option"><div class="label" part="label" role="presentation">${e=>e.groupLabel}</div><div class="items" part="items" role="group" aria-label="${e=>e.groupLabel}"><slot></slot></div></template>`;class fJ extends Vc{connectedCallback(){super.connectedCallback(),this.disabled=!0}}Ou([de({attribute:"label"})],fJ.prototype,"groupLabel",void 0),fJ.compose({baseName:"optgroup",template:uJ,styles:hJ});const pJ=(e,t)=>Ns(0,t),mJ=(e,t)=>Me` ${_h()} :host{height: calc(var(--design-unit) * 2px)}`;class gJ extends $s{}const vJ=void 0,bJ={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},yJ=gJ.compose(Object.assign({baseName:"progress",template:pJ,styles:mJ,shadowOptions:vJ},bJ));const zJ="app",CJ="component";((e,t="foundation",i,c)=>{e&&iw(null!=i?i:zw,null!=c?c:ww,e);return function(e){return new Proxy(e,{get:(e,t,...i)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...i)}})}(wo.getOrCreate(e).withPrefix(t))})().register(yJ({prefix:"next-update"}));class LJ extends Wt{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=zJ,this.status={isOnline:!0,isHealthy:!0,browserInformation:{},socket:{},resources:{}},this.onSystemHealthChanged=e=>{this.status=e.detail,this.resourceList=Object.values(this.status.resources).sort((e,t)=>Number(t.isConnected)-Number(e.isConnected))},this.onOpen=(e=!1)=>{this.isOpen=!0,this.wasOpenedByUser=e,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!1,this.wasOpenedByUser=!1,this.isDismissed=!1},this.onDismiss=()=>{this.isDismissed||this.status.isHealthy?this.onClose():this.isDismissed=!0},this.onUpdateStatus=()=>{this.status.runAllChecks()},this.onReportStatus=()=>{this.status.reportStabilityToGenesis()},this.onReloadWindow=()=>{location.reload()},this.onDocumentKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case Ci.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case Ci.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case gi:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===CJ&&SC.warn("SystemHealthOverlay has support for app overlays only right now.")}logLevelChanged(){fC.level=this.logLevel}statusChanged(e,t){this.updateClassNames(),this.$fastController.isConnected&&(!1!==(null==t?void 0:t.isHealthy)||this.isOpen||this.onOpen(),!0===(null==t?void 0:t.isHealthy)&&this.isOpen&&!this.wasOpenedByUser&&this.onClose(),this.startTimeTillNextUpdateCountdown())}updateClassNames(){this.isOnlineClassNames=ti(["healthy",this.status.isOnline],["unhealthy",!this.status.isOnline]),this.isHealthyClassNames=ti(["healthy",this.status.isHealthy],["unhealthy",!this.status.isHealthy]),this.isSocketHealthyClassNames=ti(["healthy",this.isSocketHealthy],["unhealthy",!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=ti(["healthy",this.status.resourcesAllConnected],["unhealthy",!this.status.resourcesAllConnected],["hidden",!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=ti(["open",this.isOpen],["dismissed",this.isDismissed]),this.containerClassNames=ti(this.isHealthyClassNames,["open",this.isOpen],["dismissed",this.isDismissed])}startTimeTillNextUpdateCountdown(){const e=this.status.nextUpdate-Date.now();let t=e,i=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},this.timeTillNextUpdateInterval=setInterval(()=>{t-=1e3,i=Math.floor(t/e*100),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},t<0&&clearInterval(this.timeTillNextUpdateInterval)},1e3)}connectedCallback(){super.connectedCallback(),this.networkMonitor.create(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.networkMonitor.destroy(),this.removeEventListeners()}get isSocketHealthy(){return this.status.isOnline&&(!this.status.socket.isConfigured||this.status.socket.isConfigured&&this.status.socket.isConnected)}get validResourceList(){var e;return(null===(e=this.resourceList)||void 0===e?void 0:e.length)>0}eventBridge(){var e;return null!==(e=this.config.eventEmitter)&&void 0!==e?e:document}addEventListeners(){this.eventBridge().addEventListener(tC,this.onSystemHealthChanged,!0),document.addEventListener("keydown",this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(tC,this.onSystemHealthChanged,!0),document.removeEventListener("keydown",this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?K`<span class="checkmark">&#x2714;</span>`:K`<span class="checkmark">&#10008;</span>`}}Ou([cC],LJ.prototype,"config",void 0),Ou([bC],LJ.prototype,"networkMonitor",void 0),Ou([b],LJ.prototype,"resourceList",void 0),Ou([b],LJ.prototype,"isOpen",void 0),Ou([b],LJ.prototype,"wasOpenedByUser",void 0),Ou([b],LJ.prototype,"isDismissed",void 0),Ou([b],LJ.prototype,"templateClassNames",void 0),Ou([b],LJ.prototype,"containerClassNames",void 0),Ou([b],LJ.prototype,"isOnlineClassNames",void 0),Ou([b],LJ.prototype,"isHealthyClassNames",void 0),Ou([b],LJ.prototype,"isSocketHealthyClassNames",void 0),Ou([b],LJ.prototype,"resourcesAllConnectedClassNames",void 0),Ou([b],LJ.prototype,"timeTillNextUpdate",void 0),Ou([b],LJ.prototype,"saveDataCallback",void 0),Ou([de],LJ.prototype,"mode",void 0),Ou([de({attribute:"log-level",converter:re})],LJ.prototype,"logLevel",void 0),Ou([b],LJ.prototype,"status",void 0);const xJ=(e,t)=>K`<template class="${e=>e.templateClassNames}"><header class="${e=>e.isHealthyClassNames}" part="header"><h1>System ${e=>ki(e.isHealthyClassNames)}</h1>${Ve(e=>!e.status.isHealthy,K`<span class="data-warning">Data Validity Unknown</span>`)}<div class="controls">${Ve(e=>e.isDismissed,K`<a href="#" class="open-button" @click="${e=>e.onOpen(!0)}">View Status</a>`)} ${Ve(e=>!e.isDismissed,K`<a href="#" class="update-status-button" @click="${e=>e.onUpdateStatus()}">
92
92
  Update Status </a><a href="#" class="report-status-button" @click="${e=>e.onReportStatus()}">
93
93
  Report Status </a>`)} ${Ve(e=>!e.status.isHealthy&&e.saveDataCallback,K`<a href="#" class="save-data-button" @click="${e=>e.saveDataCallback()}">
94
94
  Save Data </a>`)}<a href="#" class="reload-window-button" @click="${e=>e.onReloadWindow()}">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-rapid-cdn",
3
3
  "description": "Side-effecting CDN bundle that auto-registers the Rapid Design System. Intended for AI/prototyping tools (e.g. Claude Artifacts), not for production apps.",
4
- "version": "15.9.0",
4
+ "version": "15.9.1",
5
5
  "sideEffects": true,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "unpkg": "dist/foundation-rapid-cdn.iife.min.js",
@@ -27,11 +27,11 @@
27
27
  "test:browser:react": "npx -y http-server . -p 4322 -c-1 -o /test/react.html"
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/genx": "15.9.0",
31
- "@genesislcap/rollup-builder": "15.9.0"
30
+ "@genesislcap/genx": "15.9.1",
31
+ "@genesislcap/rollup-builder": "15.9.1"
32
32
  },
33
33
  "dependencies": {
34
- "@genesislcap/rapid-design-system": "15.9.0"
34
+ "@genesislcap/rapid-design-system": "15.9.1"
35
35
  },
36
36
  "repository": {
37
37
  "type": "git",
@@ -47,5 +47,5 @@
47
47
  "README.md",
48
48
  "components.md"
49
49
  ],
50
- "gitHead": "640fddb70d899b01c9337563ae874ddb5226cbcd"
50
+ "gitHead": "ebb65f317242acb27f8df7bd88c709f9482e5fe3"
51
51
  }