@loadsmart/miranda-wc 1.47.2 → 1.47.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arrow-left-944075d9.js → arrow-left-4f4c489d.js} +2 -2
- package/dist/arrow-left-4f4c489d.js.map +1 -0
- package/dist/{attention-52312d33.js → attention-33d3d6c1.js} +2 -2
- package/dist/attention-33d3d6c1.js.map +1 -0
- package/dist/{bell-1f92cb37.js → bell-54a0c8fe.js} +2 -2
- package/dist/bell-54a0c8fe.js.map +1 -0
- package/dist/{check-5d0f50b0.js → check-8b932cdd.js} +2 -2
- package/dist/check-8b932cdd.js.map +1 -0
- package/dist/{close-f2ea70cc.js → close-c8b96158.js} +2 -2
- package/dist/close-c8b96158.js.map +1 -0
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/{indeterminate-8799e42f.js → indeterminate-d7dd1cde.js} +2 -2
- package/dist/{indeterminate-8799e42f.js.map → indeterminate-d7dd1cde.js.map} +1 -1
- package/dist/{index-29fa2d3e.js → index-bac402e5.js} +9 -5
- package/dist/{index-29fa2d3e.js.map → index-bac402e5.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{info-circle-4bab8ef8.js → info-circle-12cb25a4.js} +2 -2
- package/dist/{info-circle-4bab8ef8.js.map → info-circle-12cb25a4.js.map} +1 -1
- package/package.json +1 -1
- package/dist/arrow-left-944075d9.js.map +0 -1
- package/dist/attention-52312d33.js.map +0 -1
- package/dist/bell-1f92cb37.js.map +0 -1
- package/dist/check-5d0f50b0.js.map +0 -1
- package/dist/close-f2ea70cc.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=arrow-left-
|
|
1
|
+
import{b}from"./index-bac402e5.js";var arrowLeft=b`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M27.1587 9.17872C26.046 8.06456 25.0052 7.02278 23.9833 6C17.9911 12.0005 11.9849 18.0146 6 24.0079C11.9773 29.9935 17.9834 36.0076 23.9675 42C24.9772 40.9885 26.0216 39.9427 27.0833 38.8796C22.9235 34.717 18.7311 30.5219 14.4922 26.2801C23.7032 26.2801 32.8419 26.2801 42 26.2801C42 24.7661 42 23.2737 42 21.7615C32.8581 21.7615 23.7172 21.7615 14.583 21.7615C18.7794 17.5627 22.9695 13.3703 27.1587 9.17872Z" fill="currentColor"/></svg>`;export{arrowLeft as default};
|
|
2
|
+
//# sourceMappingURL=arrow-left-4f4c489d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-left-4f4c489d.js","sources":["../src/components/icon/icons/arrow-left.ts"],"sourcesContent":[null],"names":["arrowLeft","svg"],"mappings":"mCAEA,IAAAA,UAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=attention-
|
|
1
|
+
import{b}from"./index-bac402e5.js";var attention=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M6.732 42.889h34.537c2.06 0 3.376-2.192 2.406-4.005l-17.27-32.33c-1.026-1.924-3.785-1.924-4.813 0L4.324 38.883c-.968 1.813.349 4.005 2.408 4.005zm14.542-24.504h5.452v10.89h-5.452zM24 31.998a2.726 2.726 0 0 1 2.726 2.723A2.726 2.726 0 0 1 24 37.444a2.726 2.726 0 0 1-2.726-2.723A2.726 2.726 0 0 1 24 31.998z"/></svg>`;export{attention as default};
|
|
2
|
+
//# sourceMappingURL=attention-33d3d6c1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attention-33d3d6c1.js","sources":["../src/components/icon/icons/attention.ts"],"sourcesContent":[null],"names":["attention","svg"],"mappings":"mCAEA,IAAAA,UAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=bell-
|
|
1
|
+
import{b}from"./index-bac402e5.js";var bell=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M34.417 21.526v9.133l3.632 3.654v1.826H9v-1.827l3.631-3.653v-9.133c0-5.626 2.96-10.302 8.17-11.544V8.74A2.728 2.728 0 0123.524 6a2.728 2.728 0 012.724 2.74v1.242c5.192 1.242 8.17 5.937 8.17 11.544zm-7.262 16.44c0 2.01-1.634 3.653-3.63 3.653-2.016 0-3.632-1.644-3.632-3.653h7.262z"/></svg>`;export{bell as default};
|
|
2
|
+
//# sourceMappingURL=bell-54a0c8fe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bell-54a0c8fe.js","sources":["../src/components/icon/icons/bell.ts"],"sourcesContent":[null],"names":["bell","svg"],"mappings":"mCAEA,IAAAA,KAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=check-
|
|
1
|
+
import{b}from"./index-bac402e5.js";var check=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M44.4205 13.3433L40.1778 9.10067L18.9646 30.3139L9.06512 20.4144L4.82248 24.657L14.722 34.5565L18.9646 38.7992L23.2073 34.5565L44.4205 13.3433Z"/></svg>`;export{check as default};
|
|
2
|
+
//# sourceMappingURL=check-8b932cdd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-8b932cdd.js","sources":["../src/components/icon/icons/check.ts"],"sourcesContent":[null],"names":["check","svg"],"mappings":"mCAEA,IAAAA,MAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=close-
|
|
1
|
+
import{b}from"./index-bac402e5.js";var close=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M40.9706 11.2721L36.7279 7.02944L24 19.7574L11.2721 7.02944L7.02944 11.2721L19.7574 24L7.02944 36.7279L11.2721 40.9706L24 28.2426L36.7279 40.9706L40.9706 36.7279L28.2426 24L40.9706 11.2721Z"/></svg>`;export{close as default};
|
|
2
|
+
//# sourceMappingURL=close-c8b96158.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-c8b96158.js","sources":["../src/components/icon/icons/close.ts"],"sourcesContent":[null],"names":["close","svg"],"mappings":"mCAEA,IAAAA,MAAeC,CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AAEzB,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,UAAU;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC5B;AAID,qBAAa,KAAM,SAAQ,SAAS;IACnC,WAAoB,UAAU;;;;;;;;;;;;;;;;;;;MAS7B;IAED;;OAEG;IACK,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAEnC;;OAEG;IACK,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAEjC;;OAEG;IACK,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IAEzC;;OAEG;IACK,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAErC;;OAEG;IACK,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAEjC;;OAEG;IACK,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAEnC,OAAO,CAAC,QAAQ,CAIb;;IAWM,MAAM,CAAC,iBAAiB,EAAE,cAAc;IAgBxC,MAAM;
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AAEzB,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,UAAU;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC5B;AAID,qBAAa,KAAM,SAAQ,SAAS;IACnC,WAAoB,UAAU;;;;;;;;;;;;;;;;;;;MAS7B;IAED;;OAEG;IACK,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAEnC;;OAEG;IACK,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAEjC;;OAEG;IACK,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IAEzC;;OAEG;IACK,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAErC;;OAEG;IACK,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAEjC;;OAEG;IACK,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAEnC,OAAO,CAAC,QAAQ,CAIb;;IAWM,MAAM,CAAC,iBAAiB,EAAE,cAAc;IAgBxC,MAAM;CAef;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,SAAS,EAAE,KAAK,CAAC;KACjB;CACD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=indeterminate-
|
|
1
|
+
import{b}from"./index-bac402e5.js";var indeterminate=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M19 13H5v-2h14v2z" /></svg>`;export{indeterminate as default};
|
|
2
|
+
//# sourceMappingURL=indeterminate-d7dd1cde.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indeterminate-
|
|
1
|
+
{"version":3,"file":"indeterminate-d7dd1cde.js","sources":["../src/components/icon/icons/indeterminate.ts"],"sourcesContent":[null],"names":["indeterminate","svg"],"mappings":"mCAEA,IAAAA,cAAeC,CAAG"}
|
|
@@ -59,7 +59,7 @@ var t$5;u$1[d$2]=!0,u$1.elementProperties=new Map,u$1.elementStyles=[],u$1.shado
|
|
|
59
59
|
color: var(--m-icon-color);
|
|
60
60
|
fill: var(--m-icon-color);
|
|
61
61
|
}
|
|
62
|
-
`]}function redispatchEvent(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const o=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(o);return i||e.preventDefault(),i}class Component extends s$5{constructor(){super(...arguments),this.emit=(t,e)=>{const o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(o)},this.reemit=t=>{redispatchEvent(this,t)}}}const icons=new Map([["alert-circle",()=>import("./attention-
|
|
62
|
+
`]}function redispatchEvent(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const o=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(o);return i||e.preventDefault(),i}class Component extends s$5{constructor(){super(...arguments),this.emit=(t,e)=>{const o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(o)},this.reemit=t=>{redispatchEvent(this,t)}}}const icons=new Map([["alert-circle",()=>import("./attention-33d3d6c1.js")],["arrow-left",()=>import("./arrow-left-4f4c489d.js")],["attention",()=>import("./attention-33d3d6c1.js")],["bell",()=>import("./bell-54a0c8fe.js")],["check",()=>import("./check-8b932cdd.js")],["close",()=>import("./close-c8b96158.js")],["indeterminate",()=>import("./indeterminate-d7dd1cde.js")],["info-circle",()=>import("./info-circle-12cb25a4.js")]]);var _Icon_loadIcon;icons.keys();class Icon extends Component{static get properties(){return{name:{type:String},size:{type:String},color:{type:String},loading:{state:!0}}}constructor(){super(),this.icon=null,_Icon_loadIcon.set(this,(async()=>{icons.has(this.name);try{this.icon=null;const{default:t}=await icons.get(this.name)();this.icon=t}catch{}finally{this.requestUpdate()}})),this.icon=null}connectedCallback(){super.connectedCallback(),__classPrivateFieldGet(this,_Icon_loadIcon,"f").call(this)}update(t){super.update(t),t.has("name")&&__classPrivateFieldGet(this,_Icon_loadIcon,"f").call(this)}updated(t){super.updated(t),t.has("size")&&null!=this.size&&this.style.setProperty("--m-icon-size",`${parseInt(String(this.size),10)||16}px`),t.has("color")&&null!=this.color&&this.style.setProperty("--m-icon-color",toCSSValue(this.color))}render(){return null!=this.name&&icons.has(this.name)&&null!=this.icon?this.icon:A}}_Icon_loadIcon=new WeakMap,Icon.styles=[styles$v()],window.customElements.define("m-icon",Icon);
|
|
63
63
|
/**
|
|
64
64
|
* @license
|
|
65
65
|
* Copyright 2020 Google LLC
|
|
@@ -1444,11 +1444,15 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1444
1444
|
><slot></slot>
|
|
1445
1445
|
${__classPrivateFieldGet(this,_FieldLabel_instances,"m",_FieldLabel_isRequired).call(this)?x$1`<span class="required">*</span>`:A}
|
|
1446
1446
|
</label>`}}_FieldLabel_instances=new WeakSet,_FieldLabel_getSize=function(){var t;return this.size||(null===(t=this.field.value)||void 0===t?void 0:t.size)},_FieldLabel_isRequired=function(){var t;return null!=this.required?this.required:Boolean(null===(t=this.field.value)||void 0===t?void 0:t.required)},FieldLabel.styles=[styles$f()],window.customElements.define("m-field-label",FieldLabel),attachContextRoot();class Field extends Component{static get properties(){return{label:{type:String},hint:{type:String},required:{type:Boolean},status:{type:String},size:{type:String},align:{type:String}}}constructor(){super(),this.provider=new e$1(this,fieldContext,{required:!1,size:"default",status:"default"}),this.required=!1,this.status="default",this.size="default",this.align="stretch"}update(t){super.update(t),(t.has("required")||t.has("status")||t.has("size"))&&this.provider.setValue({required:this.required,status:this.status,size:this.size})}render(){return x$1`<m-stack gap="spacing-1" align="${this.align}">
|
|
1447
|
-
|
|
1447
|
+
<slot name="label"
|
|
1448
|
+
>${this.label?x$1`<m-field-label>${this.label}</m-field-label>`:A}</slot
|
|
1449
|
+
>
|
|
1448
1450
|
|
|
1449
1451
|
<slot></slot>
|
|
1450
1452
|
|
|
1451
|
-
|
|
1453
|
+
<slot name="hint">
|
|
1454
|
+
${this.hint?x$1`<m-field-hint>${this.hint}</m-field-hint>`:A}
|
|
1455
|
+
</slot>
|
|
1452
1456
|
</m-stack>`}}window.customElements.define("m-field",Field);const FIELD_STATUSES=["default","danger"];function styles$e(){return i$4`
|
|
1453
1457
|
:host {
|
|
1454
1458
|
display: block;
|
|
@@ -2228,7 +2232,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2228
2232
|
|
|
2229
2233
|
<slot></slot>
|
|
2230
2234
|
</button>
|
|
2231
|
-
`}focus(t){var e;null===(e=__classPrivateFieldGet(this,_Toggle_instances,"a",_Toggle_button_get))||void 0===e||e.focus(t)}}function trim(t){return t.trim()}function convertTriggerFromAttribute(t){return t?String(t).split(/[\s,]+/).map(trim).filter(Boolean):["hover"]}function getAlignment(t){return t.split("-")[1]}function getLengthFromAxis(t){return"y"===t?"height":"width"}function getSide(t){return t.split("-")[0]}function getMainAxisFromPlacement(t){return["top","bottom"].includes(getSide(t))?"x":"y"}function computeCoordsFromPlacement(t,e,o){let{reference:i,floating:n}=t;const r=i.x+i.width/2-n.width/2,s=i.y+i.height/2-n.height/2,a=getMainAxisFromPlacement(e),l=getLengthFromAxis(a),d=i[l]/2-n[l]/2,c="x"===a;let u;switch(getSide(e)){case"top":u={x:r,y:i.y-n.height};break;case"bottom":u={x:r,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:s};break;case"left":u={x:i.x-n.width,y:s};break;default:u={x:i.x,y:i.y}}switch(getAlignment(e)){case"start":u[a]-=d*(o&&c?-1:1);break;case"end":u[a]+=d*(o&&c?-1:1)}return u}_Toggle_handleClick=new WeakMap,_Toggle_setDisabled=new WeakMap,_Toggle_setChecked=new WeakMap,_Toggle_instances=new WeakSet,_Toggle_button_get=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},Toggle.styles=[styles$2()],window.customElements.define("m-toggle",Toggle);const computePosition$1=async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:s}=o,a=r.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:c,y:u}=computeCoordsFromPlacement(d,i,l),g=i,h={},p=0;for(let o=0;o<a.length;o++){const{name:r,fn:m}=a[o],{x:b,y:f,data:$,reset:_}=await m({x:c,y:u,initialPlacement:i,placement:g,strategy:n,middlewareData:h,rects:d,platform:s,elements:{reference:t,floating:e}});c=null!=b?b:c,u=null!=f?f:u,h={...h,[r]:{...h[r],...$}},_&&p<=50&&(p++,"object"==typeof _&&(_.placement&&(g=_.placement),_.rects&&(d=!0===_.rects?await s.getElementRects({reference:t,floating:e,strategy:n}):_.rects),({x:c,y:u}=computeCoordsFromPlacement(d,g,l))),o=-1)}return{x:c,y:u,placement:g,strategy:n,middlewareData:h}};function evaluate(t,e){return"function"==typeof t?t(e):t}function expandPaddingObject(t){return{top:0,right:0,bottom:0,left:0,...t}}function getSideObjectFromPadding(t){return"number"!=typeof t?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function rectToClientRect(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function detectOverflow(t,e){var o;void 0===e&&(e={});const{x:i,y:n,platform:r,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:g=!1,padding:h=0}=evaluate(e,t),p=getSideObjectFromPadding(h),m=a[g?"floating"===u?"reference":"floating":u],b=rectToClientRect(await r.getClippingRect({element:null==(o=await(null==r.isElement?void 0:r.isElement(m)))||o?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:d,rootBoundary:c,strategy:l})),f="floating"===u?{...s.floating,x:i,y:n}:s.reference,$=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),_=await(null==r.isElement?void 0:r.isElement($))&&await(null==r.getScale?void 0:r.getScale($))||{x:1,y:1},y=rectToClientRect(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f,offsetParent:$,strategy:l}):f);return{top:(b.top-y.top+p.top)/_.y,bottom:(y.bottom-b.bottom+p.bottom)/_.y,left:(b.left-y.left+p.left)/_.x,right:(y.right-b.right+p.right)/_.x}}const min$1=Math.min,max$1=Math.max;function within(t,e,o){return max$1(t,min$1(e,o))}const arrow=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:n,rects:r,platform:s,elements:a}=e,{element:l,padding:d=0}=evaluate(t,e)||{};if(null==l)return{};const c=getSideObjectFromPadding(d),u={x:o,y:i},g=getMainAxisFromPlacement(n),h=getLengthFromAxis(g),p=await s.getDimensions(l),m="y"===g,b=m?"top":"left",f=m?"bottom":"right",$=m?"clientHeight":"clientWidth",_=r.reference[h]+r.reference[g]-u[g]-r.floating[h],y=u[g]-r.reference[g],v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let k=v?v[$]:0;k&&await(null==s.isElement?void 0:s.isElement(v))||(k=a.floating[$]||r.floating[h]);const x=_/2-y/2,w=k/2-p[h]/2-1,T=min$1(c[b],w),C=min$1(c[f],w),S=T,P=k-p[h]-C,F=k/2-p[h]/2+x,B=within(S,F,P),G=null!=getAlignment(n)&&F!=B&&r.reference[h]/2-(F<S?T:C)-p[h]/2<0?F<S?S-F:P-F:0;return{[g]:u[g]-G,data:{[g]:B,centerOffset:F-B+G}}}}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,(t=>oppositeSideMap[t]))}function getAlignmentSides(t,e,o){void 0===o&&(o=!1);const i=getAlignment(t),n=getMainAxisFromPlacement(t),r=getLengthFromAxis(n);let s="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=getOppositePlacement(s)),{main:s,cross:getOppositePlacement(s)}}const oppositeAlignmentMap={start:"end",end:"start"};function getOppositeAlignmentPlacement(t){return t.replace(/start|end/g,(t=>oppositeAlignmentMap[t]))}function getExpandedPlacements(t){const e=getOppositePlacement(t);return[getOppositeAlignmentPlacement(t),e,getOppositeAlignmentPlacement(e)]}function getSideList(t,e,o){const i=["left","right"],n=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?n:i:e?i:n;case"left":case"right":return e?r:s;default:return[]}}function getOppositeAxisPlacements(t,e,o,i){const n=getAlignment(t);let r=getSideList(getSide(t),"start"===o,i);return n&&(r=r.map((t=>t+"-"+n)),e&&(r=r.concat(r.map(getOppositeAlignmentPlacement)))),r}const flip=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o;const{placement:i,middlewareData:n,rects:r,initialPlacement:s,platform:a,elements:l}=e,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...m}=evaluate(t,e),b=getSide(i),f=getSide(s)===s,$=await(null==a.isRTL?void 0:a.isRTL(l.floating)),_=u||(f||!p?[getOppositePlacement(s)]:getExpandedPlacements(s));u||"none"===h||_.push(...getOppositeAxisPlacements(s,p,h,$));const y=[s,..._],v=await detectOverflow(e,m),k=[];let x=(null==(o=n.flip)?void 0:o.overflows)||[];if(d&&k.push(v[b]),c){const{main:t,cross:e}=getAlignmentSides(i,r,$);k.push(v[t],v[e])}if(x=[...x,{placement:i,overflows:k}],!k.every((t=>t<=0))){var w,T;const t=((null==(w=n.flip)?void 0:w.index)||0)+1,e=y[t];if(e)return{data:{index:t,overflows:x},reset:{placement:e}};let o=null==(T=x.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:T.placement;if(!o)switch(g){case"bestFit":{var C;const t=null==(C=x.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:C[0];t&&(o=t);break}case"initialPlacement":o=s}if(i!==o)return{reset:{placement:o}}}return{}}}};async function convertValueToCoords(t,e){const{placement:o,platform:i,elements:n}=t,r=await(null==i.isRTL?void 0:i.isRTL(n.floating)),s=getSide(o),a=getAlignment(o),l="x"===getMainAxisFromPlacement(o),d=["left","top"].includes(s)?-1:1,c=r&&l?-1:1,u=evaluate(e,t);let{mainAxis:g,crossAxis:h,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),l?{x:h*c,y:g*d}:{x:g*d,y:h*c}}const offset=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:o,y:i}=e,n=await convertValueToCoords(e,t);return{x:o+n.x,y:i+n.y,data:n}}}};function getCrossAxis(t){return"x"===t?"y":"x"}const shift=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:n}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=evaluate(t,e),d={x:o,y:i},c=await detectOverflow(e,l),u=getMainAxisFromPlacement(getSide(n)),g=getCrossAxis(u);let h=d[u],p=d[g];if(r){const t="y"===u?"bottom":"right";h=within(h+c["y"===u?"top":"left"],h,h-c[t])}if(s){const t="y"===g?"bottom":"right";p=within(p+c["y"===g?"top":"left"],p,p-c[t])}const m=a.fn({...e,[u]:h,[g]:p});return{...m,data:{x:m.x-o,y:m.y-i}}}}};function getWindow(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function getComputedStyle$1(t){return getWindow(t).getComputedStyle(t)}function isNode(t){return t instanceof getWindow(t).Node}function getNodeName(t){return isNode(t)?(t.nodeName||"").toLowerCase():"#document"}function isHTMLElement(t){return t instanceof getWindow(t).HTMLElement}function isShadowRoot(t){return"undefined"!=typeof ShadowRoot&&(t instanceof getWindow(t).ShadowRoot||t instanceof ShadowRoot)}function isOverflowElement(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=getComputedStyle$1(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){const e=isSafari(),o=getComputedStyle$1(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function isSafari(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(t){return["html","body","#document"].includes(getNodeName(t))}const min=Math.min,max=Math.max,round=Math.round,floor=Math.floor,createCoords=t=>({x:t,y:t});function getCssDimensions(t){const e=getComputedStyle$1(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=isHTMLElement(t),r=n?t.offsetWidth:o,s=n?t.offsetHeight:i,a=round(o)!==r||round(i)!==s;return a&&(o=r,i=s),{width:o,height:i,$:a}}function isElement(t){return t instanceof getWindow(t).Element}function unwrapElement(t){return isElement(t)?t:t.contextElement}function getScale(t){const e=unwrapElement(t);if(!isHTMLElement(e))return createCoords(1);const o=e.getBoundingClientRect(),{width:i,height:n,$:r}=getCssDimensions(e);let s=(r?round(o.width):o.width)/i,a=(r?round(o.height):o.height)/n;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const noOffsets=createCoords(0);function getVisualOffsets(t){const e=getWindow(t);return isSafari()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==getWindow(t))&&e}function getBoundingClientRect(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),r=unwrapElement(t);let s=createCoords(1);e&&(i?isElement(i)&&(s=getScale(i)):s=getScale(t));const a=shouldAddVisualOffsets(r,o,i)?getVisualOffsets(r):createCoords(0);let l=(n.left+a.x)/s.x,d=(n.top+a.y)/s.y,c=n.width/s.x,u=n.height/s.y;if(r){const t=getWindow(r),e=i&&isElement(i)?getWindow(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=getScale(o),e=o.getBoundingClientRect(),i=getComputedStyle(o),n=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,r=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,d*=t.y,c*=t.x,u*=t.y,l+=n,d+=r,o=getWindow(o).frameElement}}return rectToClientRect({width:c,height:u,x:l,y:d})}function getNodeScroll(t){return isElement(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getDocumentElement(t){return((isNode(t)?t.ownerDocument:t.document)||window.document).documentElement}function convertOffsetParentRelativeRectToViewportRelativeRect(t){let{rect:e,offsetParent:o,strategy:i}=t;const n=isHTMLElement(o),r=getDocumentElement(o);if(o===r)return e;let s={scrollLeft:0,scrollTop:0},a=createCoords(1);const l=createCoords(0);if((n||!n&&"fixed"!==i)&&(("body"!==getNodeName(o)||isOverflowElement(r))&&(s=getNodeScroll(o)),isHTMLElement(o))){const t=getBoundingClientRect(o);a=getScale(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}}function getClientRects(t){return Array.from(t.getClientRects())}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function getDocumentRect(t){const e=getDocumentElement(t),o=getNodeScroll(t),i=t.ownerDocument.body,n=max(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=max(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+getWindowScrollBarX(t);const a=-o.scrollTop;return"rtl"===getComputedStyle$1(i).direction&&(s+=max(e.clientWidth,i.clientWidth)-n),{width:n,height:r,x:s,y:a}}function getParentNode(t){if("html"===getNodeName(t))return t;const e=t.assignedSlot||t.parentNode||isShadowRoot(t)&&t.host||getDocumentElement(t);return isShadowRoot(e)?e.host:e}function getNearestOverflowAncestor(t){const e=getParentNode(t);return isLastTraversableNode(e)?t.ownerDocument?t.ownerDocument.body:t.body:isHTMLElement(e)&&isOverflowElement(e)?e:getNearestOverflowAncestor(e)}function getOverflowAncestors(t,e){var o;void 0===e&&(e=[]);const i=getNearestOverflowAncestor(t),n=i===(null==(o=t.ownerDocument)?void 0:o.body),r=getWindow(i);return n?e.concat(r,r.visualViewport||[],isOverflowElement(i)?i:[]):e.concat(i,getOverflowAncestors(i))}function getViewportRect(t,e){const o=getWindow(t),i=getDocumentElement(t),n=o.visualViewport;let r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(n){r=n.width,s=n.height;const t=isSafari();(!t||t&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:r,height:s,x:a,y:l}}function getInnerBoundingClientRect(t,e){const o=getBoundingClientRect(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,r=isHTMLElement(t)?getScale(t):createCoords(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:n*r.x,y:i*r.y}}function getClientRectFromClippingAncestor(t,e,o){let i;if("viewport"===e)i=getViewportRect(t,o);else if("document"===e)i=getDocumentRect(getDocumentElement(t));else if(isElement(e))i=getInnerBoundingClientRect(e,o);else{const o=getVisualOffsets(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return rectToClientRect(i)}function hasFixedPositionAncestor(t,e){const o=getParentNode(t);return!(o===e||!isElement(o)||isLastTraversableNode(o))&&("fixed"===getComputedStyle$1(o).position||hasFixedPositionAncestor(o,e))}function getClippingElementAncestors(t,e){const o=e.get(t);if(o)return o;let i=getOverflowAncestors(t).filter((t=>isElement(t)&&"body"!==getNodeName(t))),n=null;const r="fixed"===getComputedStyle$1(t).position;let s=r?getParentNode(t):t;for(;isElement(s)&&!isLastTraversableNode(s);){const e=getComputedStyle$1(s),o=isContainingBlock(s);o||"fixed"!==e.position||(n=null);(r?!o&&!n:!o&&"static"===e.position&&!!n&&["absolute","fixed"].includes(n.position)||isOverflowElement(s)&&!o&&hasFixedPositionAncestor(t,s))?i=i.filter((t=>t!==s)):n=e,s=getParentNode(s)}return e.set(t,i),i}function getClippingRect(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const r=[..."clippingAncestors"===o?getClippingElementAncestors(e,this._c):[].concat(o),i],s=r[0],a=r.reduce(((t,o)=>{const i=getClientRectFromClippingAncestor(e,o,n);return t.top=max(i.top,t.top),t.right=min(i.right,t.right),t.bottom=min(i.bottom,t.bottom),t.left=max(i.left,t.left),t}),getClientRectFromClippingAncestor(e,s,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function getDimensions(t){return getCssDimensions(t)}function getRectRelativeToOffsetParent(t,e,o){const i=isHTMLElement(e),n=getDocumentElement(e),r="fixed"===o,s=getBoundingClientRect(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const l=createCoords(0);if(i||!i&&!r)if(("body"!==getNodeName(e)||isOverflowElement(n))&&(a=getNodeScroll(e)),isHTMLElement(e)){const t=getBoundingClientRect(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else n&&(l.x=getWindowScrollBarX(n));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function getTrueOffsetParent(t,e){return isHTMLElement(t)&&"fixed"!==getComputedStyle$1(t).position?e?e(t):t.offsetParent:null}function getContainingBlock(t){let e=getParentNode(t);for(;isHTMLElement(e)&&!isLastTraversableNode(e);){if(isContainingBlock(e))return e;e=getParentNode(e)}return null}function getOffsetParent(t,e){const o=getWindow(t);if(!isHTMLElement(t))return o;let i=getTrueOffsetParent(t,e);for(;i&&isTableElement(i)&&"static"===getComputedStyle$1(i).position;)i=getTrueOffsetParent(i,e);return i&&("html"===getNodeName(i)||"body"===getNodeName(i)&&"static"===getComputedStyle$1(i).position&&!isContainingBlock(i))?o:i||getContainingBlock(t)||o}const getElementRects=async function(t){let{reference:e,floating:o,strategy:i}=t;const n=this.getOffsetParent||getOffsetParent,r=this.getDimensions;return{reference:getRectRelativeToOffsetParent(e,await n(o),i),floating:{x:0,y:0,...await r(o)}}};function isRTL(t){return"rtl"===getComputedStyle(t).direction}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(t,e){let o,i=null;const n=getDocumentElement(t);function r(){clearTimeout(o),i&&i.disconnect(),i=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();const{left:d,top:c,width:u,height:g}=t.getBoundingClientRect();if(a||e(),!u||!g)return;const h={rootMargin:-floor(c)+"px "+-floor(n.clientWidth-(d+u))+"px "+-floor(n.clientHeight-(c+g))+"px "+-floor(d)+"px",threshold:max(0,min(1,l))||1};let p=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!p)return s();e?s(!1,e):o=setTimeout((()=>{s(!1,1e-7)}),100)}p=!1}try{i=new IntersectionObserver(m,{...h,root:n.ownerDocument})}catch(t){i=new IntersectionObserver(m,h)}i.observe(t)}(!0),r}function autoUpdate(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,d=unwrapElement(t),c=n||r?[...d?getOverflowAncestors(d):[],...getOverflowAncestors(e)]:[];c.forEach((t=>{n&&t.addEventListener("scroll",o,{passive:!0}),r&&t.addEventListener("resize",o)}));const u=d&&a?observeMove(d,o):null;let g,h=-1,p=null;s&&(p=new ResizeObserver((t=>{let[i]=t;i&&i.target===d&&p&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{p&&p.observe(e)}))),o()})),d&&!l&&p.observe(d),p.observe(e));let m=l?getBoundingClientRect(t):null;return l&&function e(){const i=getBoundingClientRect(t);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||o();m=i,g=requestAnimationFrame(e)}(),o(),()=>{c.forEach((t=>{n&&t.removeEventListener("scroll",o),r&&t.removeEventListener("resize",o)})),u&&u(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const computePosition=(t,e,o)=>{const i=new Map,n={platform,...o},r={...n.platform,_c:i};return computePosition$1(t,e,{...n,platform:r})};var _Popover_updateCleanup,_Popover_getArrowPosition;const UNSET_SIDES={top:"",bottom:"",left:"",right:""},POPOVER_PLACEMENT_VALUES=["top","left","right","bottom","top-start","top-end","bottom-start","bottom-end"];class Popover extends Component{static get properties(){return{position:{type:String,reflect:!0},placement:{type:String},open:{type:Boolean,reflect:!0}}}constructor(){super(),_Popover_updateCleanup.set(this,void 0),this.getFloatingOffset=()=>20,this.renderArrow=()=>x$1`<span id="arrow">
|
|
2235
|
+
`}focus(t){var e;null===(e=__classPrivateFieldGet(this,_Toggle_instances,"a",_Toggle_button_get))||void 0===e||e.focus(t)}}function trim(t){return t.trim()}function convertTriggerFromAttribute(t){return t?String(t).split(/[\s,]+/).map(trim).filter(Boolean):["hover"]}function getAlignment(t){return t.split("-")[1]}function getLengthFromAxis(t){return"y"===t?"height":"width"}function getSide(t){return t.split("-")[0]}function getMainAxisFromPlacement(t){return["top","bottom"].includes(getSide(t))?"x":"y"}function computeCoordsFromPlacement(t,e,o){let{reference:i,floating:n}=t;const r=i.x+i.width/2-n.width/2,s=i.y+i.height/2-n.height/2,a=getMainAxisFromPlacement(e),l=getLengthFromAxis(a),d=i[l]/2-n[l]/2,c="x"===a;let u;switch(getSide(e)){case"top":u={x:r,y:i.y-n.height};break;case"bottom":u={x:r,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:s};break;case"left":u={x:i.x-n.width,y:s};break;default:u={x:i.x,y:i.y}}switch(getAlignment(e)){case"start":u[a]-=d*(o&&c?-1:1);break;case"end":u[a]+=d*(o&&c?-1:1)}return u}_Toggle_handleClick=new WeakMap,_Toggle_setDisabled=new WeakMap,_Toggle_setChecked=new WeakMap,_Toggle_instances=new WeakSet,_Toggle_button_get=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},Toggle.styles=[styles$2()],window.customElements.define("m-toggle",Toggle);const computePosition$1=async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:s}=o,a=r.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:c,y:u}=computeCoordsFromPlacement(d,i,l),g=i,h={},p=0;for(let o=0;o<a.length;o++){const{name:r,fn:m}=a[o],{x:b,y:f,data:$,reset:_}=await m({x:c,y:u,initialPlacement:i,placement:g,strategy:n,middlewareData:h,rects:d,platform:s,elements:{reference:t,floating:e}});c=null!=b?b:c,u=null!=f?f:u,h={...h,[r]:{...h[r],...$}},_&&p<=50&&(p++,"object"==typeof _&&(_.placement&&(g=_.placement),_.rects&&(d=!0===_.rects?await s.getElementRects({reference:t,floating:e,strategy:n}):_.rects),({x:c,y:u}=computeCoordsFromPlacement(d,g,l))),o=-1)}return{x:c,y:u,placement:g,strategy:n,middlewareData:h}};function evaluate(t,e){return"function"==typeof t?t(e):t}function expandPaddingObject(t){return{top:0,right:0,bottom:0,left:0,...t}}function getSideObjectFromPadding(t){return"number"!=typeof t?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function rectToClientRect(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function detectOverflow(t,e){var o;void 0===e&&(e={});const{x:i,y:n,platform:r,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:g=!1,padding:h=0}=evaluate(e,t),p=getSideObjectFromPadding(h),m=a[g?"floating"===u?"reference":"floating":u],b=rectToClientRect(await r.getClippingRect({element:null==(o=await(null==r.isElement?void 0:r.isElement(m)))||o?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:d,rootBoundary:c,strategy:l})),f="floating"===u?{...s.floating,x:i,y:n}:s.reference,$=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),_=await(null==r.isElement?void 0:r.isElement($))&&await(null==r.getScale?void 0:r.getScale($))||{x:1,y:1},y=rectToClientRect(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f,offsetParent:$,strategy:l}):f);return{top:(b.top-y.top+p.top)/_.y,bottom:(y.bottom-b.bottom+p.bottom)/_.y,left:(b.left-y.left+p.left)/_.x,right:(y.right-b.right+p.right)/_.x}}const min$1=Math.min,max$1=Math.max;function within(t,e,o){return max$1(t,min$1(e,o))}const arrow=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:n,rects:r,platform:s,elements:a}=e,{element:l,padding:d=0}=evaluate(t,e)||{};if(null==l)return{};const c=getSideObjectFromPadding(d),u={x:o,y:i},g=getMainAxisFromPlacement(n),h=getLengthFromAxis(g),p=await s.getDimensions(l),m="y"===g,b=m?"top":"left",f=m?"bottom":"right",$=m?"clientHeight":"clientWidth",_=r.reference[h]+r.reference[g]-u[g]-r.floating[h],y=u[g]-r.reference[g],v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let k=v?v[$]:0;k&&await(null==s.isElement?void 0:s.isElement(v))||(k=a.floating[$]||r.floating[h]);const x=_/2-y/2,w=k/2-p[h]/2-1,T=min$1(c[b],w),C=min$1(c[f],w),S=T,P=k-p[h]-C,F=k/2-p[h]/2+x,B=within(S,F,P),A=null!=getAlignment(n)&&F!=B&&r.reference[h]/2-(F<S?T:C)-p[h]/2<0?F<S?S-F:P-F:0;return{[g]:u[g]-A,data:{[g]:B,centerOffset:F-B+A}}}}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,(t=>oppositeSideMap[t]))}function getAlignmentSides(t,e,o){void 0===o&&(o=!1);const i=getAlignment(t),n=getMainAxisFromPlacement(t),r=getLengthFromAxis(n);let s="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=getOppositePlacement(s)),{main:s,cross:getOppositePlacement(s)}}const oppositeAlignmentMap={start:"end",end:"start"};function getOppositeAlignmentPlacement(t){return t.replace(/start|end/g,(t=>oppositeAlignmentMap[t]))}function getExpandedPlacements(t){const e=getOppositePlacement(t);return[getOppositeAlignmentPlacement(t),e,getOppositeAlignmentPlacement(e)]}function getSideList(t,e,o){const i=["left","right"],n=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?n:i:e?i:n;case"left":case"right":return e?r:s;default:return[]}}function getOppositeAxisPlacements(t,e,o,i){const n=getAlignment(t);let r=getSideList(getSide(t),"start"===o,i);return n&&(r=r.map((t=>t+"-"+n)),e&&(r=r.concat(r.map(getOppositeAlignmentPlacement)))),r}const flip=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o;const{placement:i,middlewareData:n,rects:r,initialPlacement:s,platform:a,elements:l}=e,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...m}=evaluate(t,e),b=getSide(i),f=getSide(s)===s,$=await(null==a.isRTL?void 0:a.isRTL(l.floating)),_=u||(f||!p?[getOppositePlacement(s)]:getExpandedPlacements(s));u||"none"===h||_.push(...getOppositeAxisPlacements(s,p,h,$));const y=[s,..._],v=await detectOverflow(e,m),k=[];let x=(null==(o=n.flip)?void 0:o.overflows)||[];if(d&&k.push(v[b]),c){const{main:t,cross:e}=getAlignmentSides(i,r,$);k.push(v[t],v[e])}if(x=[...x,{placement:i,overflows:k}],!k.every((t=>t<=0))){var w,T;const t=((null==(w=n.flip)?void 0:w.index)||0)+1,e=y[t];if(e)return{data:{index:t,overflows:x},reset:{placement:e}};let o=null==(T=x.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:T.placement;if(!o)switch(g){case"bestFit":{var C;const t=null==(C=x.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:C[0];t&&(o=t);break}case"initialPlacement":o=s}if(i!==o)return{reset:{placement:o}}}return{}}}};async function convertValueToCoords(t,e){const{placement:o,platform:i,elements:n}=t,r=await(null==i.isRTL?void 0:i.isRTL(n.floating)),s=getSide(o),a=getAlignment(o),l="x"===getMainAxisFromPlacement(o),d=["left","top"].includes(s)?-1:1,c=r&&l?-1:1,u=evaluate(e,t);let{mainAxis:g,crossAxis:h,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),l?{x:h*c,y:g*d}:{x:g*d,y:h*c}}const offset=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:o,y:i}=e,n=await convertValueToCoords(e,t);return{x:o+n.x,y:i+n.y,data:n}}}};function getCrossAxis(t){return"x"===t?"y":"x"}const shift=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:n}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=evaluate(t,e),d={x:o,y:i},c=await detectOverflow(e,l),u=getMainAxisFromPlacement(getSide(n)),g=getCrossAxis(u);let h=d[u],p=d[g];if(r){const t="y"===u?"bottom":"right";h=within(h+c["y"===u?"top":"left"],h,h-c[t])}if(s){const t="y"===g?"bottom":"right";p=within(p+c["y"===g?"top":"left"],p,p-c[t])}const m=a.fn({...e,[u]:h,[g]:p});return{...m,data:{x:m.x-o,y:m.y-i}}}}};function getWindow(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function getComputedStyle$1(t){return getWindow(t).getComputedStyle(t)}function isNode(t){return t instanceof getWindow(t).Node}function getNodeName(t){return isNode(t)?(t.nodeName||"").toLowerCase():"#document"}function isHTMLElement(t){return t instanceof getWindow(t).HTMLElement}function isShadowRoot(t){return"undefined"!=typeof ShadowRoot&&(t instanceof getWindow(t).ShadowRoot||t instanceof ShadowRoot)}function isOverflowElement(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=getComputedStyle$1(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){const e=isSafari(),o=getComputedStyle$1(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function isSafari(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(t){return["html","body","#document"].includes(getNodeName(t))}const min=Math.min,max=Math.max,round=Math.round,floor=Math.floor,createCoords=t=>({x:t,y:t});function getCssDimensions(t){const e=getComputedStyle$1(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=isHTMLElement(t),r=n?t.offsetWidth:o,s=n?t.offsetHeight:i,a=round(o)!==r||round(i)!==s;return a&&(o=r,i=s),{width:o,height:i,$:a}}function isElement(t){return t instanceof getWindow(t).Element}function unwrapElement(t){return isElement(t)?t:t.contextElement}function getScale(t){const e=unwrapElement(t);if(!isHTMLElement(e))return createCoords(1);const o=e.getBoundingClientRect(),{width:i,height:n,$:r}=getCssDimensions(e);let s=(r?round(o.width):o.width)/i,a=(r?round(o.height):o.height)/n;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const noOffsets=createCoords(0);function getVisualOffsets(t){const e=getWindow(t);return isSafari()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==getWindow(t))&&e}function getBoundingClientRect(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),r=unwrapElement(t);let s=createCoords(1);e&&(i?isElement(i)&&(s=getScale(i)):s=getScale(t));const a=shouldAddVisualOffsets(r,o,i)?getVisualOffsets(r):createCoords(0);let l=(n.left+a.x)/s.x,d=(n.top+a.y)/s.y,c=n.width/s.x,u=n.height/s.y;if(r){const t=getWindow(r),e=i&&isElement(i)?getWindow(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=getScale(o),e=o.getBoundingClientRect(),i=getComputedStyle(o),n=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,r=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,d*=t.y,c*=t.x,u*=t.y,l+=n,d+=r,o=getWindow(o).frameElement}}return rectToClientRect({width:c,height:u,x:l,y:d})}function getNodeScroll(t){return isElement(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getDocumentElement(t){return((isNode(t)?t.ownerDocument:t.document)||window.document).documentElement}function convertOffsetParentRelativeRectToViewportRelativeRect(t){let{rect:e,offsetParent:o,strategy:i}=t;const n=isHTMLElement(o),r=getDocumentElement(o);if(o===r)return e;let s={scrollLeft:0,scrollTop:0},a=createCoords(1);const l=createCoords(0);if((n||!n&&"fixed"!==i)&&(("body"!==getNodeName(o)||isOverflowElement(r))&&(s=getNodeScroll(o)),isHTMLElement(o))){const t=getBoundingClientRect(o);a=getScale(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}}function getClientRects(t){return Array.from(t.getClientRects())}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function getDocumentRect(t){const e=getDocumentElement(t),o=getNodeScroll(t),i=t.ownerDocument.body,n=max(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=max(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+getWindowScrollBarX(t);const a=-o.scrollTop;return"rtl"===getComputedStyle$1(i).direction&&(s+=max(e.clientWidth,i.clientWidth)-n),{width:n,height:r,x:s,y:a}}function getParentNode(t){if("html"===getNodeName(t))return t;const e=t.assignedSlot||t.parentNode||isShadowRoot(t)&&t.host||getDocumentElement(t);return isShadowRoot(e)?e.host:e}function getNearestOverflowAncestor(t){const e=getParentNode(t);return isLastTraversableNode(e)?t.ownerDocument?t.ownerDocument.body:t.body:isHTMLElement(e)&&isOverflowElement(e)?e:getNearestOverflowAncestor(e)}function getOverflowAncestors(t,e){var o;void 0===e&&(e=[]);const i=getNearestOverflowAncestor(t),n=i===(null==(o=t.ownerDocument)?void 0:o.body),r=getWindow(i);return n?e.concat(r,r.visualViewport||[],isOverflowElement(i)?i:[]):e.concat(i,getOverflowAncestors(i))}function getViewportRect(t,e){const o=getWindow(t),i=getDocumentElement(t),n=o.visualViewport;let r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(n){r=n.width,s=n.height;const t=isSafari();(!t||t&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:r,height:s,x:a,y:l}}function getInnerBoundingClientRect(t,e){const o=getBoundingClientRect(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,r=isHTMLElement(t)?getScale(t):createCoords(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:n*r.x,y:i*r.y}}function getClientRectFromClippingAncestor(t,e,o){let i;if("viewport"===e)i=getViewportRect(t,o);else if("document"===e)i=getDocumentRect(getDocumentElement(t));else if(isElement(e))i=getInnerBoundingClientRect(e,o);else{const o=getVisualOffsets(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return rectToClientRect(i)}function hasFixedPositionAncestor(t,e){const o=getParentNode(t);return!(o===e||!isElement(o)||isLastTraversableNode(o))&&("fixed"===getComputedStyle$1(o).position||hasFixedPositionAncestor(o,e))}function getClippingElementAncestors(t,e){const o=e.get(t);if(o)return o;let i=getOverflowAncestors(t).filter((t=>isElement(t)&&"body"!==getNodeName(t))),n=null;const r="fixed"===getComputedStyle$1(t).position;let s=r?getParentNode(t):t;for(;isElement(s)&&!isLastTraversableNode(s);){const e=getComputedStyle$1(s),o=isContainingBlock(s);o||"fixed"!==e.position||(n=null);(r?!o&&!n:!o&&"static"===e.position&&!!n&&["absolute","fixed"].includes(n.position)||isOverflowElement(s)&&!o&&hasFixedPositionAncestor(t,s))?i=i.filter((t=>t!==s)):n=e,s=getParentNode(s)}return e.set(t,i),i}function getClippingRect(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const r=[..."clippingAncestors"===o?getClippingElementAncestors(e,this._c):[].concat(o),i],s=r[0],a=r.reduce(((t,o)=>{const i=getClientRectFromClippingAncestor(e,o,n);return t.top=max(i.top,t.top),t.right=min(i.right,t.right),t.bottom=min(i.bottom,t.bottom),t.left=max(i.left,t.left),t}),getClientRectFromClippingAncestor(e,s,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function getDimensions(t){return getCssDimensions(t)}function getRectRelativeToOffsetParent(t,e,o){const i=isHTMLElement(e),n=getDocumentElement(e),r="fixed"===o,s=getBoundingClientRect(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const l=createCoords(0);if(i||!i&&!r)if(("body"!==getNodeName(e)||isOverflowElement(n))&&(a=getNodeScroll(e)),isHTMLElement(e)){const t=getBoundingClientRect(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else n&&(l.x=getWindowScrollBarX(n));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function getTrueOffsetParent(t,e){return isHTMLElement(t)&&"fixed"!==getComputedStyle$1(t).position?e?e(t):t.offsetParent:null}function getContainingBlock(t){let e=getParentNode(t);for(;isHTMLElement(e)&&!isLastTraversableNode(e);){if(isContainingBlock(e))return e;e=getParentNode(e)}return null}function getOffsetParent(t,e){const o=getWindow(t);if(!isHTMLElement(t))return o;let i=getTrueOffsetParent(t,e);for(;i&&isTableElement(i)&&"static"===getComputedStyle$1(i).position;)i=getTrueOffsetParent(i,e);return i&&("html"===getNodeName(i)||"body"===getNodeName(i)&&"static"===getComputedStyle$1(i).position&&!isContainingBlock(i))?o:i||getContainingBlock(t)||o}const getElementRects=async function(t){let{reference:e,floating:o,strategy:i}=t;const n=this.getOffsetParent||getOffsetParent,r=this.getDimensions;return{reference:getRectRelativeToOffsetParent(e,await n(o),i),floating:{x:0,y:0,...await r(o)}}};function isRTL(t){return"rtl"===getComputedStyle(t).direction}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(t,e){let o,i=null;const n=getDocumentElement(t);function r(){clearTimeout(o),i&&i.disconnect(),i=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();const{left:d,top:c,width:u,height:g}=t.getBoundingClientRect();if(a||e(),!u||!g)return;const h={rootMargin:-floor(c)+"px "+-floor(n.clientWidth-(d+u))+"px "+-floor(n.clientHeight-(c+g))+"px "+-floor(d)+"px",threshold:max(0,min(1,l))||1};let p=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!p)return s();e?s(!1,e):o=setTimeout((()=>{s(!1,1e-7)}),100)}p=!1}try{i=new IntersectionObserver(m,{...h,root:n.ownerDocument})}catch(t){i=new IntersectionObserver(m,h)}i.observe(t)}(!0),r}function autoUpdate(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,d=unwrapElement(t),c=n||r?[...d?getOverflowAncestors(d):[],...getOverflowAncestors(e)]:[];c.forEach((t=>{n&&t.addEventListener("scroll",o,{passive:!0}),r&&t.addEventListener("resize",o)}));const u=d&&a?observeMove(d,o):null;let g,h=-1,p=null;s&&(p=new ResizeObserver((t=>{let[i]=t;i&&i.target===d&&p&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{p&&p.observe(e)}))),o()})),d&&!l&&p.observe(d),p.observe(e));let m=l?getBoundingClientRect(t):null;return l&&function e(){const i=getBoundingClientRect(t);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||o();m=i,g=requestAnimationFrame(e)}(),o(),()=>{c.forEach((t=>{n&&t.removeEventListener("scroll",o),r&&t.removeEventListener("resize",o)})),u&&u(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const computePosition=(t,e,o)=>{const i=new Map,n={platform,...o},r={...n.platform,_c:i};return computePosition$1(t,e,{...n,platform:r})};var _Popover_updateCleanup,_Popover_getArrowPosition;const UNSET_SIDES={top:"",bottom:"",left:"",right:""},POPOVER_PLACEMENT_VALUES=["top","left","right","bottom","top-start","top-end","bottom-start","bottom-end"];class Popover extends Component{static get properties(){return{position:{type:String,reflect:!0},placement:{type:String},open:{type:Boolean,reflect:!0}}}constructor(){super(),_Popover_updateCleanup.set(this,void 0),this.getFloatingOffset=()=>20,this.renderArrow=()=>x$1`<span id="arrow">
|
|
2232
2236
|
<svg viewBox="0 0 20 10">
|
|
2233
2237
|
<polygon stroke-width="0" points="0,10 20,10 10,0" />
|
|
2234
2238
|
</svg>
|
|
@@ -2333,4 +2337,4 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2333
2337
|
aria-live=${this.open?"polite":"off"}
|
|
2334
2338
|
></slot>
|
|
2335
2339
|
`}}_Tooltip_hoverTimeout=new WeakMap,_Tooltip_focusTimeout=new WeakMap,_Tooltip_handleFocus=new WeakMap,_Tooltip_handleBlur=new WeakMap,_Tooltip_handleClick=new WeakMap,_Tooltip_handleKeyDown=new WeakMap,_Tooltip_handleMouseOver=new WeakMap,_Tooltip_handleMouseOut=new WeakMap,_Tooltip_hasTrigger=new WeakMap,Tooltip.styles=[styles()],window.customElements.define("m-tooltip",Tooltip);const TOOLTIP_PLACEMENT_VALUES=POPOVER_PLACEMENT_VALUES;export{Link as $,Divider as A,BackButton as B,Card as C,Dialog as D,FieldHint as E,Field as F,FieldLabel as G,FIELD_STATUSES as H,Header as I,HeaderActions as J,HeaderContent as K,HeaderTitle as L,ALIGN_ITEMS_VALUES as M,JUSTIFY_CONTENT_VALUES as N,Box as O,defaultBoxProps as P,Group as Q,defaultGroupProps as R,SubHeader as S,Stack as T,defaultStackProps as U,Grid as V,defaultGridProps as W,Sidebar as X,defaultSidebarProps as Y,Switcher as Z,defaultSwitcherProps as _,BannerActionPrimary as a,PageContent as a0,ProgressBar as a1,ProgressBarCountdown as a2,Radio as a3,RadioGroup as a4,Section as a5,SectionTitle as a6,Tabs as a7,Tab as a8,TabPanel as a9,Tag as aa,Text as ab,TextField as ac,ToggleGroup as ad,Toggle as ae,Tooltip as af,TOOLTIP_PLACEMENT_VALUES as ag,b,BannerActionSecondary as c,BannerActions as d,BannerDescription as e,BannerIcon as f,BannerTitle as g,Banner as h,Body as i,Button as j,CardBody as k,CardSubtitle as l,CardTitle as m,CardDivider as n,Checkbox as o,CloseButton as p,DIALOG_SIZES as q,DIALOG_VARIANTS as r,DialogActionPrimary as s,DialogActionSecondary as t,DialogActionTertiary as u,DialogActions as v,DialogBody as w,DialogClose as x,DialogFooter as y,DialogHeader as z};
|
|
2336
|
-
//# sourceMappingURL=index-
|
|
2340
|
+
//# sourceMappingURL=index-bac402e5.js.map
|