UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

2 lines • 216 kB
/*! For license information please see f3b51aa0a1a8fc3b231c.js.LICENSE.txt */ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2893],{18394:(e,t,n)=>{n.d(t,{D:()=>a});var i=n(36752),o=n(7804),r=n(18504);const a=(0,o.u$)(class extends o.WL{constructor(){super(...arguments),this.key=i.s6}render(e,t){return this.key=e,t}update(e,[t,n]){return t!==this.key&&((0,r.mY)(e),this.key=t),n}})},18883:(e,t,n)=>{n.d(t,{g:()=>i});const i=()=>[2,1,1,1,3].map((e=>{let t="";for(let n=0;n<e;n++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t})).join("-")},30357:(e,t,n)=>{var i=n(34088),o=n(46337),r=n(19246),a=n(18883),s=n(75572),l=n(33826);const c="ring--progress",d="ring",u="ring--track",p=l.AH`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class h extends r.WF{constructor(){super(...arguments),this.messages=(0,s.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=p}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame((()=>this.valueChangeHandler()))}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:n,text:i,type:s,value:l}=this,c=e.id||(0,a.g)(),d="indeterminate"!==s,u=Math.floor(l);return this.el.ariaLabel=n,this.el.ariaValueMax=d?"100":void 0,this.el.ariaValueMin=d?"0":void 0,this.el.ariaValueNow=d?u.toString():void 0,(0,r.Bq)(this.el,"id",c),this.el.role="progressbar",o.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&o.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&i&&o.qy`<div class=${(0,r.CP)("text")}>${i}</div>`||""}`}renderRing(e){const{inline:t,scale:n,value:i}=this,a=t?this.getInlineSize(n):this.getSize(n),s=.45*a;let l;if("progress"===e){const e=2*s*Math.PI,t=(this.type.startsWith("determinate")?i:24)/100*e;l={"stroke-dasharray":`${t} ${e-t}`}}return o.qy`<svg aria-hidden=true class=${(0,r.CP)({[d]:!0,[u]:"track"===e,[c]:"progress"===e})} style=${(0,r.zl)(l)} viewBox=${`0 0 ${a} ${a}`}>${o.JW`<circle cx=${a/2} cy=${a/2} r=${s??o.s6} />`}</svg>`}}(0,i.c)("calcite-loader",h)},52567:(e,t,n)=>{n.d(t,{Bk:()=>a,eu:()=>s,qy:()=>d});var i=n(36752);const o=Symbol.for(""),r=e=>{if(e?.r===o)return e?._$litStatic$},a=e=>({_$litStatic$:e,r:o}),s=(e,...t)=>({_$litStatic$:t.reduce(((t,n,i)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[i+1]),e[0]),r:o}),l=new Map,c=e=>(t,...n)=>{const i=n.length;let o,a;const s=[],c=[];let d,u=0,p=!1;for(;u<i;){for(d=t[u];u<i&&void 0!==(a=n[u],o=r(a));)d+=o+t[++u],p=!0;u!==i&&c.push(a),s.push(d),u++}if(u===i&&s.push(t[i]),p){const e=s.join("$$lit$$");void 0===(t=l.get(e))&&(s.raw=s,l.set(e,t=s)),n=c}return e(t,...n)},d=c(i.qy);c(i.JW),c(i.ej)},52893:(e,t,n)=>{n.r(t),n.d(t,{Dialog:()=>fi}),n(30357);var i=n(34088),o=n(48015),r=n(36752),a=n(19246),s=n(4643),l=n(79e3),c=n(75572),d=n(33826);const u=d.AH`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity: 0 }to{--tw-text-opacity: 1 }}.scrim{position:absolute;inset:0;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`;class p extends a.WF{constructor(){super(...arguments),this.resizeObserver=(0,s.c)("resize",(()=>this.handleResize())),this.messages=(0,c.u)(),this.hasContent=!1,this.loading=!1}static{this.properties={hasContent:[16,{},{state:!0}],loaderScale:[16,{},{state:!0}],loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}]}}static{this.styles=u}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(e){this.hasContent=(0,l.r)(e)}storeLoaderEl(e){this.loaderEl=e,this.handleResize()}getScale(e){return e<72?"s":e>=480?"l":"m"}handleResize(){const{loaderEl:e,el:t}=this;e&&(this.loaderScale=this.getScale(Math.min(t.clientHeight,t.clientWidth)??0))}render(){const{hasContent:e,loading:t,messages:n}=this;return r.qy`<div class=${(0,a.CP)("scrim")}>${t?r.qy`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${(0,o.K)(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${(0,a.CP)("content")} .hidden=${!e}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}}(0,i.c)("calcite-scrim",p),n(32239);var h=n(18394),f=n(18883),v=n(60992),g=n(83623);const m="button",b="button--text-visible",y="button--compact",x="slot-container",w="slot-container--hidden",E="text-container",k="text-container--visible",P="indicator-with-icon",z=d.AH`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius)))}.interaction-container{border-radius:inherit}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{border-radius:inherit;position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));text-align:unset;flex:1 0 auto;cursor:inherit}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)));background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .button{font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, .5rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xxs))}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:.5rem}:host([scale=m]) .button{font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-md))}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:.75rem}:host([scale=l]) .button{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1.25rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xl))}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color, var(--calcite-action-background-color, var(--calcite-color-foreground-1)))}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;class S extends a.WF{constructor(){super(...arguments),this.guid=`calcite-action-${(0,f.g)()}`,this.buttonEl=(0,o._)(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=(0,s.c)("mutation",(()=>this.requestUpdate())),this.messages=(0,c.u)({blocking:!0}),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.scale="m",this.textEnabled=!1}static{this.properties={active:[7,{},{reflect:!0,type:Boolean}],alignment:[3,{},{reflect:!0}],appearance:[3,{},{reflect:!0}],compact:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],dragHandle:[7,{},{reflect:!0,type:Boolean}],icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],indicator:[7,{},{reflect:!0,type:Boolean}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],scale:[3,{},{reflect:!0}],text:1,textEnabled:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=z}async setFocus(){await(0,g.c)(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}updated(){(0,v.u)(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handleTooltipSlotChange(e){const t=e.target.assignedElements({flatten:!0}).filter((e=>e?.matches("calcite-tooltip")))[0];t&&(t.referenceElement=this.buttonEl.value)}renderTextContainer(){const{text:e,textEnabled:t}=this,n={[E]:!0,[k]:t};return e?(0,h.D)("text-container",r.qy`<div class=${(0,a.CP)(n)}>${e}</div>`):null}renderIndicatorText(){const{indicator:e,messages:t,indicatorId:n,buttonId:i}=this;return r.qy`<div aria-labelledby=${i??a.s6} aria-live=polite class=${(0,a.CP)("indicator-text")} id=${n??a.s6} role=region>${e?t.indicator:null}</div>`}renderIconContainer(){const{loading:e,icon:t,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,l="l"===n?"l":"m",c=e?r.qy`<calcite-loader inline .label=${this.messages.loading} .scale=${l}></calcite-loader>`:null,d=t?r.qy`<calcite-icon class=${(0,a.CP)({[P]:s})} .flipRtl=${o} .icon=${t} .scale=${(0,g.g)(this.scale)}></calcite-icon>`:null,u=c||d,p=u||i.children?.length,f=r.qy`<div class=${(0,a.CP)({[x]:!0,[w]:e})}><slot></slot></div>`;return p?(0,h.D)("icon-container",r.qy`<div aria-hidden=true class=${(0,a.CP)("icon-container")}>${u}${f}</div>`):null}renderButton(){const{active:e,compact:t,disabled:n,icon:i,loading:s,textEnabled:l,label:c,text:d,indicator:u,indicatorId:p,buttonId:f,messages:v}=this,g=c||d||"",x=u?v.indicatorLabel.replace("{label}",g):g,w={[m]:!0,[b]:l,[y]:t},E=r.qy`${this.renderIconContainer()}${this.renderTextContainer()}${!i&&u&&(0,h.D)("indicator-no-icon",r.qy`<div class=${(0,a.CP)("indicator-without-icon")}></div>`)||""}`;return this.dragHandle?r.qy`<span aria-controls=${(u?p:null)??a.s6} .ariaBusy=${s} .ariaDisabled=${this.disabled?this.disabled:null} .ariaLabel=${x} .ariaPressed=${e} class=${(0,a.CP)(w)} id=${f??a.s6} role=button tabindex=${(this.disabled?null:0)??a.s6} ${(0,o.K)(this.buttonEl)}>${E}</span>`:r.qy`<button aria-controls=${(u?p:null)??a.s6} .ariaBusy=${s} .ariaLabel=${x} .ariaPressed=${e} class=${(0,a.CP)(w)} .disabled=${n} id=${f??a.s6} tabindex=${(n?null:0)??a.s6} ${(0,o.K)(this.buttonEl)}>${E}</button>`}render(){return(0,v.I)({disabled:this.disabled,children:r.qy`${this.renderButton()}<slot name=${"tooltip"} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}}(0,i.c)("calcite-action",S);var T=n(46337);const C=["top","right","bottom","left"],$=["start","end"],D=C.reduce(((e,t)=>e.concat(t,t+"-"+$[0],t+"-"+$[1])),[]),O=Math.min,A=Math.max,I=Math.round,M=Math.floor,_=e=>({x:e,y:e}),R={left:"right",right:"left",bottom:"top",top:"bottom"},F={start:"end",end:"start"};function B(e,t,n){return A(e,O(t,n))}function L(e,t){return"function"==typeof e?e(t):e}function j(e){return e.split("-")[0]}function N(e){return e.split("-")[1]}function H(e){return"x"===e?"y":"x"}function q(e){return"y"===e?"height":"width"}function U(e){return["top","bottom"].includes(j(e))?"y":"x"}function W(e){return H(U(e))}function K(e,t,n){void 0===n&&(n=!1);const i=N(e),o=W(e),r=q(o);let a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[r]>t.floating[r]&&(a=V(a)),[a,V(a)]}function G(e){return e.replace(/start|end/g,(e=>F[e]))}function V(e){return e.replace(/left|right|bottom|top/g,(e=>R[e]))}function Y(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function X(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function J(e,t,n){let{reference:i,floating:o}=e;const r=U(t),a=W(t),s=q(a),l=j(t),c="y"===r,d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,p=i[s]/2-o[s]/2;let h;switch(l){case"top":h={x:d,y:i.y-o.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:u};break;case"left":h={x:i.x-o.width,y:u};break;default:h={x:i.x,y:i.y}}switch(N(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Q(e,t){var n;void 0===t&&(t={});const{x:i,y:o,platform:r,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=L(t,e),f=Y(h),v=s[p?"floating"===u?"reference":"floating":u],g=X(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(v)))||n?v:v.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),m="floating"===u?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),y=await(null==r.isElement?void 0:r.isElement(b))&&await(null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},x=X(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:l}):m);return{top:(g.top-x.top+f.top)/y.y,bottom:(x.bottom-g.bottom+f.bottom)/y.y,left:(g.left-x.left+f.left)/y.x,right:(x.right-g.right+f.right)/y.x}}function Z(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ee(e){return C.some((t=>e[t]>=0))}function te(){return"undefined"!=typeof window}function ne(e){return re(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function oe(e){var t;return null==(t=(re(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function re(e){return!!te()&&(e instanceof Node||e instanceof ie(e).Node)}function ae(e){return!!te()&&(e instanceof Element||e instanceof ie(e).Element)}function se(e){return!!te()&&(e instanceof HTMLElement||e instanceof ie(e).HTMLElement)}function le(e){return!(!te()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot)}function ce(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function de(e){return["table","td","th"].includes(ne(e))}function ue(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function pe(e){const t=he(),n=ae(e)?ve(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function he(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function fe(e){return["html","body","#document"].includes(ne(e))}function ve(e){return ie(e).getComputedStyle(e)}function ge(e){return ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function me(e){if("html"===ne(e))return e;const t=e.assignedSlot||e.parentNode||le(e)&&e.host||oe(e);return le(t)?t.host:t}function be(e){const t=me(e);return fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:se(t)&&ce(t)?t:be(t)}function ye(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=be(e),r=o===(null==(i=e.ownerDocument)?void 0:i.body),a=ie(o);if(r){const e=xe(a);return t.concat(a,a.visualViewport||[],ce(o)?o:[],e&&n?ye(e):[])}return t.concat(o,ye(o,[],n))}function xe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function we(e){const t=ve(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=se(e),r=o?e.offsetWidth:n,a=o?e.offsetHeight:i,s=I(n)!==r||I(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function Ee(e){return ae(e)?e:e.contextElement}function ke(e){const t=Ee(e);if(!se(t))return _(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:r}=we(t);let a=(r?I(n.width):n.width)/i,s=(r?I(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Pe=_(0);function ze(e){const t=ie(e);return he()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pe}function Se(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),r=Ee(e);let a=_(1);t&&(i?ae(i)&&(a=ke(i)):a=ke(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ie(e))&&t}(r,n,i)?ze(r):_(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,u=o.height/a.y;if(r){const e=ie(r),t=i&&ae(i)?ie(i):i;let n=e,o=xe(n);for(;o&&i&&t!==n;){const e=ke(o),t=o.getBoundingClientRect(),i=ve(o),r=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=r,c+=a,n=ie(o),o=xe(n)}}return X({width:d,height:u,x:l,y:c})}function Te(e,t){const n=ge(e).scrollLeft;return t?t.left+n:Se(oe(e)).left+n}function Ce(e,t,n){void 0===n&&(n=!1);const i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-(n?0:Te(e,i)),y:i.top+t.scrollTop}}function $e(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=ie(e),i=oe(e),o=n.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const e=he();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(e,n);else if("document"===t)i=function(e){const t=oe(e),n=ge(e),i=e.ownerDocument.body,o=A(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=A(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Te(e);const s=-n.scrollTop;return"rtl"===ve(i).direction&&(a+=A(t.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(oe(e));else if(ae(t))i=function(e,t){const n=Se(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,r=se(e)?ke(e):_(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:o*r.x,y:i*r.y}}(t,n);else{const n=ze(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return X(i)}function De(e,t){const n=me(e);return!(n===t||!ae(n)||fe(n))&&("fixed"===ve(n).position||De(n,t))}function Oe(e,t,n){const i=se(t),o=oe(t),r="fixed"===n,a=Se(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const l=_(0);function c(){l.x=Te(o)}if(i||!i&&!r)if(("body"!==ne(t)||ce(o))&&(s=ge(t)),i){const e=Se(t,!0,r,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();r&&!i&&o&&c();const d=!o||i||r?_(0):Ce(o,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}function Ae(e){return"static"===ve(e).position}function Ie(e,t){if(!se(e)||"fixed"===ve(e).position)return null;if(t)return t(e);let n=e.offsetParent;return oe(e)===n&&(n=n.ownerDocument.body),n}function Me(e,t){const n=ie(e);if(ue(e))return n;if(!se(e)){let t=me(e);for(;t&&!fe(t);){if(ae(t)&&!Ae(t))return t;t=me(t)}return n}let i=Ie(e,t);for(;i&&de(i)&&Ae(i);)i=Ie(i,t);return i&&fe(i)&&Ae(i)&&!pe(i)?n:i||function(e){let t=me(e);for(;se(t)&&!fe(t);){if(pe(t))return t;if(ue(t))return null;t=me(t)}return null}(e)||n}const _e={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const r="fixed"===o,a=oe(i),s=!!t&&ue(t.floating);if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=_(1);const d=_(0),u=se(i);if((u||!u&&!r)&&(("body"!==ne(i)||ce(a))&&(l=ge(i)),se(i))){const e=Se(i);c=ke(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}const p=!a||u||r?_(0):Ce(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:oe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const r=[..."clippingAncestors"===n?ue(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let i=ye(e,[],!1).filter((e=>ae(e)&&"body"!==ne(e))),o=null;const r="fixed"===ve(e).position;let a=r?me(e):e;for(;ae(a)&&!fe(a);){const t=ve(a),n=pe(a);n||"fixed"!==t.position||(o=null),(r?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ce(a)&&!n&&De(e,a))?i=i.filter((e=>e!==a)):o=t,a=me(a)}return t.set(e,i),i}(t,this._c):[].concat(n),i],a=r[0],s=r.reduce(((e,n)=>{const i=$e(t,n,o);return e.top=A(i.top,e.top),e.right=O(i.right,e.right),e.bottom=O(i.bottom,e.bottom),e.left=A(i.left,e.left),e}),$e(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Me,getElementRects:async function(e){const t=this.getOffsetParent||Me,n=this.getDimensions,i=await n(e.floating);return{reference:Oe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=we(e);return{width:t,height:n}},getScale:ke,isElement:ae,isRTL:function(e){return"rtl"===ve(e).direction}};function Re(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fe(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=Ee(e),d=o||r?[...c?ye(c):[],...ye(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));const u=c&&s?function(e,t){let n,i=null;const o=oe(e);function r(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-M(u)+"px "+-M(o.clientWidth-(d+p))+"px "+-M(o.clientHeight-(u+h))+"px "+-M(d)+"px",threshold:A(0,O(1,l))||1};let v=!0;function g(t){const i=t[0].intersectionRatio;if(i!==l){if(!v)return a();i?a(!1,i):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==i||Re(c,e.getBoundingClientRect())||a(),v=!1}try{i=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(g,f)}i.observe(e)}(!0),r}(c,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[i]=e;i&&i.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let v=l?Se(e):null;return l&&function t(){const i=Se(e);v&&!Re(v,i)&&n(),v=i,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Be=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...g}=L(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const m=j(o),b=U(s),y=j(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!v?[V(s)]:function(e){const t=V(e);return[G(e),t,G(t)]}(s)),E="none"!==f;!p&&E&&w.push(...function(e,t,n,i){const o=N(e);let r=function(e,t,n){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:i:t?i:o;case"left":case"right":return t?r:a;default:return[]}}(j(e),"start"===n,i);return o&&(r=r.map((e=>e+"-"+o)),t&&(r=r.concat(r.map(G)))),r}(s,v,f,x));const k=[s,...w],P=await Q(t,g),z=[];let S=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&z.push(P[m]),u){const e=K(o,a,x);z.push(P[e[0]],P[e[1]])}if(S=[...S,{placement:o,overflows:z}],!z.every((e=>e<=0))){var T,C;const e=((null==(T=r.flip)?void 0:T.index)||0)+1,t=k[e];if(t){var $;const n="alignment"===u&&b!==U(t),i=(null==($=S[0])?void 0:$.overflows[0])>0;if(!n||i)return{data:{index:e,overflows:S},reset:{placement:t}}}let n=null==(C=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var D;const e=null==(D=S.filter((e=>{if(E){const t=U(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Le=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=L(e,t);switch(i){case"referenceHidden":{const e=Z(await Q(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ee(e)}}}case"escaped":{const e=Z(await Q(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ee(e)}}}default:return{}}}}},je=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ne="object"==typeof global&&global&&global.Object===Object&&global;var He="object"==typeof self&&self&&self.Object===Object&&self;const qe=Ne||He||Function("return this")(),Ue=function(){return qe.Date.now()};var We=/\s/;var Ke=/^\s+/;const Ge=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&We.test(e.charAt(t)););return t}(e)+1).replace(Ke,""):e},Ve=qe.Symbol;var Ye=Object.prototype,Xe=Ye.hasOwnProperty,Je=Ye.toString,Qe=Ve?Ve.toStringTag:void 0;var Ze=Object.prototype.toString;var et=Ve?Ve.toStringTag:void 0;const tt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":et&&et in Object(e)?function(e){var t=Xe.call(e,Qe),n=e[Qe];try{e[Qe]=void 0;var i=!0}catch(e){}var o=Je.call(e);return i&&(t?e[Qe]=n:delete e[Qe]),o}(e):function(e){return Ze.call(e)}(e)};var nt=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ot=/^0o[0-7]+$/i,rt=parseInt;const at=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==tt(e)}(e))return NaN;if(je(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=je(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ge(e);var n=it.test(e);return n||ot.test(e)?rt(e.slice(2),n?2:8):nt.test(e)?NaN:+e};var st=Math.max,lt=Math.min;function ct(e){return function(e){for(let t=e;t;t=dt(t))if(t instanceof Element&&"none"===getComputedStyle(t).display)return null;for(let t=dt(e);t;t=dt(t)){if(!(t instanceof Element))continue;const e=getComputedStyle(t);if("contents"!==e.display){if("static"!==e.position||pe(e))return t;if("BODY"===t.tagName)return t}}return null}(e)}function dt(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function ut(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}!function(){if(!T.S$){const e=_e.getOffsetParent;_e.getOffsetParent=t=>e(t,ct)}}();const pt=async(e,{referenceEl:t,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:a,offsetDistance:s,offsetSkidding:c,arrowEl:d,type:u})=>{if(!t||!n)return;const p="rtl"===(0,l.g)(n),{x:h,y:f,placement:v,strategy:g,middlewareData:m}=await((e,t,n)=>{const i=new Map,o={platform:_e,...n},r={...o.platform,_c:i};return(async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=J(c,i,l),p=i,h={},f=0;for(let n=0;n<s.length;n++){const{name:r,fn:v}=s[n],{x:g,y:m,data:b,reset:y}=await v({x:d,y:u,initialPlacement:i,placement:p,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=m?m:u,h={...h,[r]:{...h[r],...b}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=J(c,p,l))),n=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:r})})(t,n,{strategy:i,placement:"auto"===o||"auto-start"===o||"auto-end"===o?void 0:yt(o,p),middleware:mt({placement:o,flipDisabled:r,flipPlacements:a?.map((e=>yt(e,p))),offsetDistance:s,offsetSkidding:c,arrowEl:d,type:u})});if(d&&m.arrow){const{x:t,y:n}=m.arrow,i=v.split("-")[0],o=null!=t?"left":"top",r=wt[i],a={left:"",top:"",bottom:"",right:""};"floatingLayout"in e&&(e.floatingLayout="left"===i||"right"===i?"horizontal":"vertical"),Object.assign(d.style,{...a,[o]:`${"left"==o?t:n}px`,[i]:"100%",transform:r})}const b=m.hide?.referenceHidden,y=b?"hidden":null,x=y?"none":null;n.setAttribute(ht,v),Object.assign(n.style,{pointerEvents:x,position:g,transform:`translate(${ut(h)}px,${ut(f)}px)`,visibility:y})},ht="data-placement",ft=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],vt="calcite-floating-ui-anim",gt="calcite-floating-ui-anim--active";function mt({placement:e,flipDisabled:t,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:a}){const s=[(void 0===l&&(l={}),{name:"shift",options:l,async fn(e){const{x:t,y:n,placement:i}=e,{mainAxis:o=!0,crossAxis:r=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=L(l,e),c={x:t,y:n},d=await Q(e,s),u=U(j(i)),p=H(u);let h=c[p],f=c[u];if(o){const e="y"===p?"bottom":"right";h=B(h+d["y"===p?"top":"left"],h,h-d[e])}if(r){const e="y"===u?"bottom":"right";f=B(f+d["y"===u?"top":"left"],f,f-d[e])}const v=a.fn({...e,[p]:h,[u]:f});return{...v,data:{x:v.x-t,y:v.y-n,enabled:{[p]:o,[u]:r}}}}}),Le()];var l;return"menu"===a&&s.push(Be({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})),s.push(function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:r,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:i,elements:o}=e,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),a=j(n),s=N(n),l="y"===U(n),c=["left","top"].includes(a)?-1:1,d=r&&l?-1:1,u=L(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:a}}}}}({mainAxis:"number"==typeof i?i:0,crossAxis:"number"==typeof o?o:0})),"auto"===e||"auto-start"===e||"auto-end"===e?s.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o;const{rects:r,middlewareData:a,placement:s,platform:l,elements:c}=t,{crossAxis:d=!1,alignment:u,allowedPlacements:p=D,autoAlignment:h=!0,...f}=L(e,t),v=void 0!==u||p===D?function(e,t,n){return(e?[...n.filter((t=>N(t)===e)),...n.filter((t=>N(t)!==e))]:n.filter((e=>j(e)===e))).filter((n=>!e||N(n)===e||!!t&&G(n)!==n))}(u||null,h,p):p,g=await Q(t,f),m=(null==(n=a.autoPlacement)?void 0:n.index)||0,b=v[m];if(null==b)return{};const y=K(b,r,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==b)return{reset:{placement:v[0]}};const x=[g[j(b)],g[y[0]],g[y[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:b,overflows:x}],E=v[m+1];if(E)return{data:{index:m+1,overflows:w},reset:{placement:E}};const k=w.map((e=>{const t=N(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),P=(null==(o=k.filter((e=>e[2].slice(0,N(e[0])?2:3).every((e=>e<=0))))[0])?void 0:o[0])||k[0][0];return P!==s?{data:{index:m+1,overflows:w},reset:{placement:P}}:{}}}}({alignment:"auto-start"===e?"start":"auto-end"===e?"end":null})):t||s.push(Be(n?{fallbackPlacements:n}:{})),r&&s.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:r,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=L(e,t)||{};if(null==c)return{};const u=Y(d),p={x:n,y:i},h=W(o),f=q(h),v=await a.getDimensions(c),g="y"===h,m=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=r.reference[f]+r.reference[h]-p[h]-r.floating[f],w=p[h]-r.reference[h],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let k=E?E[y]:0;k&&await(null==a.isElement?void 0:a.isElement(E))||(k=s.floating[y]||r.floating[f]);const P=x/2-w/2,z=k/2-v[f]/2-1,S=O(u[m],z),T=O(u[b],z),C=S,$=k-v[f]-T,D=k/2-v[f]/2+P,A=B(C,D,$),I=!l.arrow&&null!=N(o)&&D!==A&&r.reference[f]/2-(D<C?S:T)-v[f]/2<0,M=I?D<C?D-C:D-$:0;return{[h]:p[h]+M,data:{[h]:A,centerOffset:D-A-M,...I&&{alignmentOffset:M}},reset:I}}}))({element:r})),s}function bt(e,t){const n=e.filter((e=>ft.includes(e)));return n.length!==e.length&&console.warn(`${t.tagName}: Invalid value found in: flipPlacements. Try any of these: ${ft.map((e=>`"${e}"`)).join(", ").trim()}`,{el:t}),n}function yt(e,t=!1){const n=["left","right"];return t&&n.reverse(),e.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function xt(e,t,n=!1){if(!e.open||!t.floatingEl||!t.referenceEl)return;if(Object.assign(t.floatingEl.style,{display:"block",position:t.overlayPositioning??"absolute"}),!Et.get(e))return Pt(e);const o=n?function(e){let t=kt.get(e);return t||(t=function(e,t,n){var i,o,r,a,s,l,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=i,r=o;return i=o=void 0,c=t,a=e.apply(r,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-c>=r}function v(){var e=Ue();if(f(e))return g(e);s=setTimeout(v,function(e){var n=t-(e-l);return u?lt(n,r-(e-c)):n}(e))}function g(e){return s=void 0,p&&i?h(e):(i=o=void 0,a)}function m(){var e=Ue(),n=f(e);if(i=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(v,t),d?h(e):a}(l);if(u)return clearTimeout(s),s=setTimeout(v,t),h(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=at(t)||0,je(n)&&(d=!!n.leading,r=(u="maxWait"in n)?st(at(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=o=s=void 0},m.flush=function(){return void 0===s?a:g(Ue())},m}(pt,i.D.reposition,{leading:!0,maxWait:i.D.reposition}),kt.set(e,t),t)}(e):pt;await o(e,t)}const wt={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},Et=new WeakMap,kt=new WeakMap;async function Pt(e){const{referenceEl:t,floatingEl:n}=e;if(!n.isConnected)return;const i=T.S$?(e,t,n)=>(n(),()=>{}):Fe;let o;Et.set(e,{state:"pending"});const r=i(t,n,(()=>{const t=e.reposition();o||(o=t)}));return Et.set(e,{state:"active",cleanUp:r}),o}function zt(e){const{floatingEl:t}=e;t&&Object.assign(t.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}function St(e){const t=Et.get(e);"active"===t?.state&&t.cleanUp(),Et.delete(e),kt.get(e)?.cancel(),kt.delete(e)}const Tt=Math.ceil(Math.hypot(4,4));var Ct=n(70101),$t=n(52567);const Dt=({children:e,...t})=>{const n=t.level?(0,$t.Bk)(`h${t.level}`):$t.eu`div`;return(0,h.D)(t.key,$t.qy`<${n} class=${(0,a.CP)(t.class)}>${e}</${n}>`)},Ot={width:12,height:6,strokeWidth:1};var At=n(45007),It=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Mt=It.join(","),_t="undefined"==typeof Element,Rt=_t?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ft=!_t&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Bt=function e(t,n){var i;void 0===n&&(n=!0);var o=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},Lt=function(e,t,n){if(Bt(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Mt));return t&&Rt.call(e,Mt)&&i.unshift(e),i.filter(n)},jt=function e(t,n,i){for(var o=[],r=Array.from(t);r.length;){var a=r.shift();if(!Bt(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,i);i.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{Rt.call(a,Mt)&&i.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(a),d=!Bt(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(a));if(c&&d){var u=e(!0===c?a.children:c.children,!0,i);i.flatten?o.push.apply(o,u):o.push({scopeParent:a,candidates:u})}else r.unshift.apply(r,a.children)}}return o},Nt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ht=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Nt(e)?0:e.tabIndex},qt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ut=function(e){return"INPUT"===e.tagName},Wt=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},Kt=function(e,t){return!(t.disabled||Bt(t)||function(e){return Ut(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Rt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Rt.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Wt(e)}else{if("function"==typeof i){for(var r=e;e;){var a=e.parentElement,s=Ft(e);if(a&&!a.shadowRoot&&!0===i(a))return Wt(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=r}if(function(e){var t,n,i,o,r=e&&Ft(e),a=null===(t=r)||void 0===t?void 0:t.host,s=!1;if(r&&r!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,d;s=!(null===(c=a=null===(l=r=Ft(a))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$