UNPKG

@arcgis/core

Version:

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

2 lines • 214 kB
/*! For license information please see 0c3930e40fc9f8a84599.js.LICENSE.txt */ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8666],{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("-")},60992:(e,t,n)=>{n.d(t,{I:()=>u,u:()=>d});var i=n(36752),o=n(26031);function r(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function a(e){e.target.disabled&&e.preventDefault()}const s=["mousedown","mouseup","click"];function l(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const c={capture:!0};function d(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){e.el.click=r,function(e){e.addEventListener("pointerdown",a,c),s.forEach((t=>e.addEventListener(t,l,c)))}(e.el)}(e);(function(e){delete e.el.click,function(e){e.removeEventListener("pointerdown",a,c),s.forEach((t=>e.removeEventListener(t,l,c)))}(e.el)})(e),e.el.removeAttribute("aria-disabled")}const u=({children:e,disabled:t})=>i.qy`<div class=${(0,o.CP)("interaction-container")} .inert=${t}>${e}</div>`},60939:(e,t,n)=>{function i(e){return"Enter"===e||" "===e}n.d(t,{i:()=>i,n:()=>o});const o=["0","1","2","3","4","5","6","7","8","9"]},70101:(e,t,n)=>{n.d(t,{o:()=>r});var i=n(79e3);function o(e){return e[e.openProp||"open"]}function r(e){requestAnimationFrame((()=>{e.transitionEl&&(0,i.w)(e.transitionEl,e.transitionProp,(()=>{o(e)?e.onBeforeOpen():e.onBeforeClose()}),(()=>{o(e)?e.onOpen():e.onClose()}))}))}},68666:(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(26031),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.hasContent=!1,this.loading=!1,this.messages=(0,c.u)()}static{this.properties={hasContent:16,loaderScale:16,loading:7,messageOverrides:0}}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(28786),m=n(83623);const b="button",y="button--text-visible",x="button--compact",w="slot-container",E="slot-container--hidden",k="text-container",P="text-container--visible",z="indicator-with-icon",S=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)}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}:host,.button{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)))}.button{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,.button:focus{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-hover)}: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,:host([appearance=transparent]) .button:focus{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 C 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.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.messages=(0,c.u)({blocking:!0}),this.scale="m",this.textEnabled=!1}static{this.properties={active:7,alignment:3,appearance:3,compact:7,disabled:7,dragHandle:7,icon:3,iconFlipRtl:7,indicator:7,label:1,loading:7,messageOverrides:0,scale:3,text:1,textEnabled:7}}static{this.styles=S}async setFocus(){await(0,g.c)(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){}updated(){(0,v.u)(this)}loaded(){}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={[k]:!0,[P]: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)({[z]:s})} .flipRtl=${o} .icon=${t} .scale=${(0,m.g)(this.scale)}></calcite-icon>`:null,u=c||d,p=u||i.children?.length,f=r.qy`<div class=${(0,a.CP)({[w]:!0,[E]: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||"",m=u?v.indicatorLabel.replace("{label}",g):g,w={[b]:!0,[y]:l,[x]: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=${m} .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=${m} .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",C);var T=n(12618);const $=["top","right","bottom","left"],O=["start","end"],D=$.reduce(((e,t)=>e.concat(t,t+"-"+O[0],t+"-"+O[1])),[]),A=Math.min,I=Math.max,M=Math.round,_=Math.floor,R=e=>({x:e,y:e}),F={left:"right",right:"left",bottom:"top",top:"bottom"},B={start:"end",end:"start"};function L(e,t,n){return I(e,A(t,n))}function H(e,t){return"function"==typeof e?e(t):e}function j(e){return e.split("-")[0]}function N(e){return e.split("-")[1]}function q(e){return"x"===e?"y":"x"}function U(e){return"y"===e?"height":"width"}function W(e){return["top","bottom"].includes(j(e))?"y":"x"}function K(e){return q(W(e))}function G(e,t,n){void 0===n&&(n=!1);const i=N(e),o=K(e),r=U(o);let a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[r]>t.floating[r]&&(a=Y(a)),[a,Y(a)]}function V(e){return e.replace(/start|end/g,(e=>B[e]))}function Y(e){return e.replace(/left|right|bottom|top/g,(e=>F[e]))}function X(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 J(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 Q(e,t,n){let{reference:i,floating:o}=e;const r=W(t),a=K(t),s=U(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 Z(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}=H(t,e),f=X(h),v=s[p?"floating"===u?"reference":"floating":u],g=J(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=J(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 ee(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function te(e){return $.some((t=>e[t]>=0))}function ne(){return"undefined"!=typeof window}function ie(e){return ae(e)?(e.nodeName||"").toLowerCase():"#document"}function oe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function re(e){var t;return null==(t=(ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ae(e){return!!ne()&&(e instanceof Node||e instanceof oe(e).Node)}function se(e){return!!ne()&&(e instanceof Element||e instanceof oe(e).Element)}function le(e){return!!ne()&&(e instanceof HTMLElement||e instanceof oe(e).HTMLElement)}function ce(e){return!(!ne()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof oe(e).ShadowRoot)}function de(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function ue(e){return["table","td","th"].includes(ie(e))}function pe(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function he(e){const t=fe(),n=se(e)?ge(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 fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ve(e){return["html","body","#document"].includes(ie(e))}function ge(e){return oe(e).getComputedStyle(e)}function me(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function be(e){if("html"===ie(e))return e;const t=e.assignedSlot||e.parentNode||ce(e)&&e.host||re(e);return ce(t)?t.host:t}function ye(e){const t=be(e);return ve(t)?e.ownerDocument?e.ownerDocument.body:e.body:le(t)&&de(t)?t:ye(t)}function xe(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ye(e),r=o===(null==(i=e.ownerDocument)?void 0:i.body),a=oe(o);if(r){const e=we(a);return t.concat(a,a.visualViewport||[],de(o)?o:[],e&&n?xe(e):[])}return t.concat(o,xe(o,[],n))}function we(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ee(e){const t=ge(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=le(e),r=o?e.offsetWidth:n,a=o?e.offsetHeight:i,s=M(n)!==r||M(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function ke(e){return se(e)?e:e.contextElement}function Pe(e){const t=ke(e);if(!le(t))return R(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:r}=Ee(t);let a=(r?M(n.width):n.width)/i,s=(r?M(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ze=R(0);function Se(e){const t=oe(e);return fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ze}function Ce(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),r=ke(e);let a=R(1);t&&(i?se(i)&&(a=Pe(i)):a=Pe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==oe(e))&&t}(r,n,i)?Se(r):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=oe(r),t=i&&se(i)?oe(i):i;let n=e,o=we(n);for(;o&&i&&t!==n;){const e=Pe(o),t=o.getBoundingClientRect(),i=ge(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=oe(o),o=we(n)}}return J({width:d,height:u,x:l,y:c})}function Te(e,t){const n=me(e).scrollLeft;return t?t.left+n:Ce(re(e)).left+n}function $e(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 Oe(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=oe(e),i=re(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=fe();(!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=re(e),n=me(e),i=e.ownerDocument.body,o=I(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=I(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Te(e);const s=-n.scrollTop;return"rtl"===ge(i).direction&&(a+=I(t.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(re(e));else if(se(t))i=function(e,t){const n=Ce(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,r=le(e)?Pe(e):R(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=Se(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return J(i)}function De(e,t){const n=be(e);return!(n===t||!se(n)||ve(n))&&("fixed"===ge(n).position||De(n,t))}function Ae(e,t,n){const i=le(t),o=re(t),r="fixed"===n,a=Ce(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const l=R(0);if(i||!i&&!r)if(("body"!==ie(t)||de(o))&&(s=me(t)),i){const e=Ce(t,!0,r,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Te(o));const c=!o||i||r?R(0):$e(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Ie(e){return"static"===ge(e).position}function Me(e,t){if(!le(e)||"fixed"===ge(e).position)return null;if(t)return t(e);let n=e.offsetParent;return re(e)===n&&(n=n.ownerDocument.body),n}function _e(e,t){const n=oe(e);if(pe(e))return n;if(!le(e)){let t=be(e);for(;t&&!ve(t);){if(se(t)&&!Ie(t))return t;t=be(t)}return n}let i=Me(e,t);for(;i&&ue(i)&&Ie(i);)i=Me(i,t);return i&&ve(i)&&Ie(i)&&!he(i)?n:i||function(e){let t=be(e);for(;le(t)&&!ve(t);){if(he(t))return t;if(pe(t))return null;t=be(t)}return null}(e)||n}const Re={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const r="fixed"===o,a=re(i),s=!!t&&pe(t.floating);if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=R(1);const d=R(0),u=le(i);if((u||!u&&!r)&&(("body"!==ie(i)||de(a))&&(l=me(i)),le(i))){const e=Ce(i);c=Pe(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}const p=!a||u||r?R(0):$e(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:re,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const r=[..."clippingAncestors"===n?pe(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let i=xe(e,[],!1).filter((e=>se(e)&&"body"!==ie(e))),o=null;const r="fixed"===ge(e).position;let a=r?be(e):e;for(;se(a)&&!ve(a);){const t=ge(a),n=he(a);n||"fixed"!==t.position||(o=null),(r?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||de(a)&&!n&&De(e,a))?i=i.filter((e=>e!==a)):o=t,a=be(a)}return t.set(e,i),i}(t,this._c):[].concat(n),i],a=r[0],s=r.reduce(((e,n)=>{const i=Oe(t,n,o);return e.top=I(i.top,e.top),e.right=A(i.right,e.right),e.bottom=A(i.bottom,e.bottom),e.left=I(i.left,e.left),e}),Oe(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:_e,getElementRects:async function(e){const t=this.getOffsetParent||_e,n=this.getDimensions,i=await n(e.floating);return{reference:Ae(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}=Ee(e);return{width:t,height:n}},getScale:Pe,isElement:se,isRTL:function(e){return"rtl"===ge(e).direction}};function Fe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Be(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=ke(e),d=o||r?[...c?xe(c):[],...xe(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=re(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:-_(u)+"px "+-_(o.clientWidth-(d+p))+"px "+-_(o.clientHeight-(u+h))+"px "+-_(d)+"px",threshold:I(0,A(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||Fe(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?Ce(e):null;return l&&function t(){const i=Ce(e);v&&!Fe(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 Le=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"===W(n),c=["left","top"].includes(a)?-1:1,d=r&&l?-1:1,u=H(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}}}}},He=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}=H(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const m=j(o),b=W(s),y=j(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!v?[Y(s)]:function(e){const t=Y(e);return[V(e),t,V(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(V)))),r}(s,v,f,x));const k=[s,...w],P=await Z(t,g),z=[];let S=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&z.push(P[m]),u){const e=G(o,a,x);z.push(P[e[0]],P[e[1]])}if(S=[...S,{placement:o,overflows:z}],!z.every((e=>e<=0))){var C,T;const e=((null==(C=r.flip)?void 0:C.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(T=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(h){case"bestFit":{var $;const e=null==($=S.filter((e=>{if(E){const t=W(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:$[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},je=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=H(e,t);switch(i){case"referenceHidden":{const e=ee(await Z(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:te(e)}}}case"escaped":{const e=ee(await Z(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:te(e)}}}default:return{}}}}},Ne=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},qe="object"==typeof global&&global&&global.Object===Object&&global;var Ue="object"==typeof self&&self&&self.Object===Object&&self;const We=qe||Ue||Function("return this")(),Ke=function(){return We.Date.now()};var Ge=/\s/;var Ve=/^\s+/;const Ye=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ge.test(e.charAt(t)););return t}(e)+1).replace(Ve,""):e},Xe=We.Symbol;var Je=Object.prototype,Qe=Je.hasOwnProperty,Ze=Je.toString,et=Xe?Xe.toStringTag:void 0;var tt=Object.prototype.toString;var nt=Xe?Xe.toStringTag:void 0;const it=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":nt&&nt in Object(e)?function(e){var t=Qe.call(e,et),n=e[et];try{e[et]=void 0;var i=!0}catch(e){}var o=Ze.call(e);return i&&(t?e[et]=n:delete e[et]),o}(e):function(e){return tt.call(e)}(e)};var ot=/^[-+]0x[0-9a-f]+$/i,rt=/^0b[01]+$/i,at=/^0o[0-7]+$/i,st=parseInt;const lt=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]"==it(e)}(e))return NaN;if(Ne(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ne(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ye(e);var n=rt.test(e);return n||at.test(e)?st(e.slice(2),n?2:8):ot.test(e)?NaN:+e};var ct=Math.max,dt=Math.min;function ut(e){return function(e){for(let t=e;t;t=pt(t))if(t instanceof Element&&"none"===getComputedStyle(t).display)return null;for(let t=pt(e);t;t=pt(t)){if(!(t instanceof Element))continue;const e=getComputedStyle(t);if("contents"!==e.display){if("static"!==e.position||he(e))return t;if("BODY"===t.tagName)return t}}return null}(e)}function pt(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function ht(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}!function(){if((0,i.i)()){const e=Re.getOffsetParent;Re.getOffsetParent=t=>e(t,ut)}}();const ft=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:Re,...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}=Q(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}=Q(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:xt(o,p),middleware:yt({placement:o,flipDisabled:r,flipPlacements:a?.map((e=>xt(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=Et[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?"hidden":null,y=b?"none":null;n.setAttribute(vt,v),Object.assign(n.style,{pointerEvents:y,position:g,transform:`translate(${ht(h)}px,${ht(f)}px)`,visibility:b})},vt="data-placement",gt=["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"],mt="calcite-floating-ui-anim",bt="calcite-floating-ui-anim--active";function yt({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}=H(l,e),c={x:t,y:n},d=await Z(e,s),u=W(j(i)),p=q(u);let h=c[p],f=c[u];if(o){const e="y"===p?"bottom":"right";h=L(h+d["y"===p?"top":"left"],h,h-d[e])}if(r){const e="y"===u?"bottom":"right";f=L(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}}}}}),je()];var l;if("menu"===a)return[...s,He({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if("popover"===a||"tooltip"===a){const a=[...s,Le({mainAxis:"number"==typeof i?i:0,crossAxis:"number"==typeof o?o:0})];return"auto"===e||"auto-start"===e||"auto-end"===e?a.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}=H(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&&V(n)!==n))}(u||null,h,p):p,g=await Z(t,f),m=(null==(n=a.autoPlacement)?void 0:n.index)||0,b=v[m];if(null==b)return{};const y=G(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=k.filter((e=>e[2].slice(0,N(e[0])?2:3).every((e=>e<=0)))),z=(null==(o=P[0])?void 0:o[0])||k[0][0];return z!==s?{data:{index:m+1,overflows:w},reset:{placement:z}}:{}}}}({alignment:"auto-start"===e?"start":"auto-end"===e?"end":null})):t||a.push(He(n?{fallbackPlacements:n}:{})),r&&a.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}=H(e,t)||{};if(null==c)return{};const u=X(d),p={x:n,y:i},h=K(o),f=U(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=A(u[m],z),C=A(u[b],z),T=S,$=k-v[f]-C,O=k/2-v[f]/2+P,D=L(T,O,$),I=!l.arrow&&null!=N(o)&&O!==D&&r.reference[f]/2-(O<T?S:C)-v[f]/2<0,M=I?O<T?O-T:O-$:0;return{[h]:p[h]+M,data:{[h]:D,centerOffset:O-D-M,...I&&{alignmentOffset:M}},reset:I}}}))({element:r})),a}return[]}function xt(e,t=!1){const n=["left","right"];return t&&n.reverse(),e.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function wt(e,t,n=!1){if(e.open&&t.floatingEl&&t.referenceEl)return Object.assign(t.floatingEl.style,{display:"block",position:t.overlayPositioning??"absolute"}),kt.get(e)?void await(n?function(e){let t=Pt.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=Ke();if(f(e))return g(e);s=setTimeout(v,function(e){var n=t-(e-l);return u?dt(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=Ke(),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=lt(t)||0,Ne(n)&&(d=!!n.leading,r=(u="maxWait"in n)?ct(lt(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(Ke())},m}(ft,i.D.reposition,{leading:!0,maxWait:i.D.reposition}),Pt.set(e,t),t)}(e):ft)(e,t):zt(e)}const Et={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},kt=new WeakMap,Pt=new WeakMap;async function zt(e){const{referenceEl:t,floatingEl:n}=e;if(!n.isConnected)return;const o=(0,i.i)()?Be:(e,t,n)=>(n(),()=>{});let r;kt.set(e,{state:"pending"});const a=o(t,n,(()=>{const t=e.reposition();r||(r=t)}));return kt.set(e,{state:"active",cleanUp:a}),r}function St(e){const{floatingEl:t}=e;t&&Object.assign(t.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}function Ct(e){const{floatingEl:t,referenceEl:n}=e;if(!t||!n)return;const i=kt.get(e);"active"===i?.state&&i.cleanUp(),kt.delete(e),Pt.get(e)?.cancel(),Pt.delete(e)}const Tt=Math.ceil(Math.hypot(4,4));var $t=n(70101),Ot=n(52567);const Dt=({children:e,...t})=>{const n=t.level?(0,Ot.Bk)(`h${t.level}`):Ot.eu`div`;return(0,h.D)(t.key,Ot.qy`<${n} class=${(0,a.CP)(t.class)}>${e}</${n}>`)},At={width:12,height:6,strokeWidth:1};var It=n(90286),Mt=["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])"],_t=Mt.join(","),Rt="undefined"==typeof Element,Ft=Rt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Bt=!Rt&&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},Lt=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)},Ht=function(e,t,n){if(Lt(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(_t));return t&&Ft.call(e,_t)&&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(!Lt(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{Ft.call(a,_t)&&i.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(a),d=!Lt(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))},qt=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},Ut=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Wt=function(e){return"INPUT"===e.tagName},Kt=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},Gt=function(e,t){return!(t.disabled||Lt(t)||function(e){return Wt(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Ft.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Ft.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Kt(e)}else{if("function"==typeof i){for(var r=e;e;){var a=e.parentElement,s=Bt(e);if(a&&!a.shadowRoot&&!0===i(a))return Kt(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&&Bt(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=Bt(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)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!Ft.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},Vt=function(e,t){return!(function(e){return function(e){return Wt(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Bt(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||qt(t)<0||!Gt(e,t))},Yt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Xt=function e(t){var n=[],i=[];return t.forEach((function(t,o){var r=!!t.scopeParent,a=r?t.scopeParent:t,s=function(e,t){var n=qt(e);return n<0&&t&&!Nt(e)?0:n}(a,r),l=r?e(t.candidates):a;0===s?r?n.push.apply(n,l):n.push(a):i.push({documentOrder:o,tabIndex:s,item:t,isScope:r,content:l})})),i.sort(Ut).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Jt=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Ft.call(e,_t)&&Vt(t,e)},Qt=Mt.concat("iframe").join(","),Zt=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Ft.call(e,Qt)&&Gt(t,e)};function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function tn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rn=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},an=function(e){return rn(e)&&!e.shiftKey},sn=function(e){return rn(e)&&e.shiftKey},ln=function(e){return setTimeout(e,0)},cn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},dn=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},un=[],pn=function(e,t){var n,i=(null==t?void 0:t.document)||document,o=(null==t?void 0:t.trapStack)||un,r=on({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:an,isKeyBackward:sn},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:r[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return a.containerGroups.findIndex((function(t){var i=t.container,o=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||o.find((function(t){return t===e}))}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,o=void 0!==n&&n,a=t.params,s=void 0===a?[]:a,l=r[e];if("function"==typeof l&&(l=l.apply(void 0,function(e){return function(e){if(Array.isArray(e))return en(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return en(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"==typeof l){try{c=i.querySelector(l)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!o)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},d=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!Zt(e,r.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(a.containerGroups=a.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?jt([e],t.includeContainer,{filter:Vt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Yt}):Ht(e,t.includeContainer,Vt.bind(null,t)),Xt(n)}(e,r.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?jt([e],t.includeContainer,{filter:Gt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Ht(e,t.includeContainer,Gt.bind(null,t))}(e,r.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find((function(e){return Jt(e)})),s=n.slice().reverse().find((function(e){return Jt(e)})),l=!!t.find((function(e){return qt(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find((function(e){return Jt(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return Jt(e)})):t[o+(i?1:-1)]}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find((function(e){return e.posTabIndexesFound}))&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?p(t.shadowRoot):t},h=function(e){!1!==e&&e!==p(document)&&(e&&e.focus?(e.focus({preventScroll:!!r.preventScroll}),a.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):h(d()))},f=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},v=function(e){var t=e.target,n=e.