UNPKG

@skillbill/vuelace-3

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/@skillbill%2Fvuelace-3.svg)](https://badge.fury.io/js/@skillbill%2Fvuelace-3)

185 lines (167 loc) 1.06 MB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");var pl=Object.defineProperty,fu=Object.defineProperties,mu=Object.getOwnPropertyDescriptor,gu=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,bu=Object.prototype.propertyIsEnumerable,ro=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),_i=(t,e,n)=>e in t?pl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gt=(t,e)=>{for(var n in e||(e={}))vu.call(e,n)&&_i(t,n,e[n]);if(Mi)for(var n of Mi(e))bu.call(e,n)&&_i(t,n,e[n]);return t},sr=(t,e)=>fu(t,gu(e)),p=(t,e,n,r)=>{for(var a=r>1?void 0:r?mu(e,n):e,i=t.length-1,l;i>=0;i--)(l=t[i])&&(a=(r?l(e,n,a):l(a))||a);return r&&a&&pl(e,n,a),a},yu=function(t,e){this[0]=t,this[1]=e},wu=t=>{var e=t[ro("asyncIterator")],n=!1,r,a={};return e==null?(e=t[ro("iterator")](),r=i=>a[i]=l=>e[i](l)):(e=e.call(t),r=i=>a[i]=l=>{if(n){if(n=!1,i==="throw")throw l;return l}return n=!0,{done:!1,value:new yu(new Promise(u=>{var c=e[i](l);if(!(c instanceof Object))throw TypeError("Object expected");u(c)}),1)}}),a[ro("iterator")]=()=>a,r("next"),"throw"in e?r("throw"):a.throw=i=>{throw i},"return"in e&&r("return"),a},un=new WeakMap,cn=new WeakMap,dn=new WeakMap,oo=new WeakSet,Cr=new WeakMap,vt=class{constructor(t,e){this.handleFormData=n=>{const r=this.options.disabled(this.host),a=this.options.name(this.host),i=this.options.value(this.host),l=this.host.tagName.toLowerCase()==="sl-button";this.host.isConnected&&!r&&!l&&typeof a=="string"&&a.length>0&&typeof i<"u"&&(Array.isArray(i)?i.forEach(u=>{n.formData.append(a,u.toString())}):n.formData.append(a,i.toString()))},this.handleFormSubmit=n=>{var r;const a=this.options.disabled(this.host),i=this.options.reportValidity;this.form&&!this.form.noValidate&&((r=un.get(this.form))==null||r.forEach(l=>{this.setUserInteracted(l,!0)})),this.form&&!this.form.noValidate&&!a&&!i(this.host)&&(n.preventDefault(),n.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Cr.set(this.host,[])},this.handleInteraction=n=>{const r=Cr.get(this.host);r.includes(n.type)||r.push(n.type),r.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.checkFormValidity=()=>{if(this.form&&!this.form.noValidate){const n=this.form.querySelectorAll("*");for(const r of n)if(typeof r.checkValidity=="function"&&!r.checkValidity())return!1}return!0},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const n=this.form.querySelectorAll("*");for(const r of n)if(typeof r.reportValidity=="function"&&!r.reportValidity())return!1}return!0},(this.host=t).addController(this),this.options=gt({form:n=>{const r=n.form;if(r){const i=n.getRootNode().querySelector(`#${r}`);if(i)return i}return n.closest("form")},name:n=>n.name,value:n=>n.value,defaultValue:n=>n.defaultValue,disabled:n=>{var r;return(r=n.disabled)!=null?r:!1},reportValidity:n=>typeof n.reportValidity=="function"?n.reportValidity():!0,checkValidity:n=>typeof n.checkValidity=="function"?n.checkValidity():!0,setValue:(n,r)=>n.value=r,assumeInteractionOn:["sl-input"]},e)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),Cr.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),Cr.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,un.has(this.form)?un.get(this.form).add(this.host):un.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),cn.has(this.form)||(cn.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),dn.has(this.form)||(dn.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())):this.form=void 0}detachForm(){if(!this.form)return;const t=un.get(this.form);t&&(t.delete(this.host),t.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),cn.has(this.form)&&(this.form.reportValidity=cn.get(this.form),cn.delete(this.form)),dn.has(this.form)&&(this.form.checkValidity=dn.get(this.form),dn.delete(this.form)),this.form=void 0))}setUserInteracted(t,e){e?oo.add(t):oo.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const n=document.createElement("button");n.type=t,n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.clipPath="inset(50%)",n.style.overflow="hidden",n.style.whiteSpace="nowrap",e&&(n.name=e.name,n.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{e.hasAttribute(r)&&n.setAttribute(r,e.getAttribute(r))})),this.form.append(n),n.click(),n.remove()}}getForm(){var t;return(t=this.form)!=null?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,n=!!oo.has(e),r=!!e.required;e.toggleAttribute("data-required",r),e.toggleAttribute("data-optional",!r),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&n),e.toggleAttribute("data-user-valid",t&&n)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||t==null||t.preventDefault()}},Gr=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),Cu=Object.freeze(sr(gt({},Gr),{valid:!1,valueMissing:!0})),ku=Object.freeze(sr(gt({},Gr),{valid:!1,customError:!0}));/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Mr=globalThis,li=Mr.ShadowRoot&&(Mr.ShadyCSS===void 0||Mr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,si=Symbol(),$i=new WeakMap;let hl=class{constructor(e,n,r){if(this._$cssResult$=!0,r!==si)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(li&&e===void 0){const r=n!==void 0&&n.length===1;r&&(e=$i.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&$i.set(n,e))}return e}toString(){return this.cssText}};const Su=t=>new hl(typeof t=="string"?t:t+"",void 0,si),F=(t,...e)=>{const n=t.length===1?t[0]:e.reduce((r,a,i)=>r+(l=>{if(l._$cssResult$===!0)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+t[i+1],t[0]);return new hl(n,t,si)},xu=(t,e)=>{if(li)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const r=document.createElement("style"),a=Mr.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=n.cssText,t.appendChild(r)}},Li=li?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return Su(n)})(t):t;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const{is:Pu,defineProperty:Eu,getOwnPropertyDescriptor:Ou,getOwnPropertyNames:Iu,getOwnPropertySymbols:Bu,getPrototypeOf:Tu}=Object,xt=globalThis,Ai=xt.trustedTypes,Du=Ai?Ai.emptyScript:"",io=xt.reactiveElementPolyfillSupport,bn=(t,e)=>t,Zt={toAttribute(t,e){switch(e){case Boolean:t=t?Du:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},ui=(t,e)=>!Pu(t,e),Vi={attribute:!0,type:String,converter:Zt,reflect:!1,hasChanged:ui};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),xt.litPropertyMetadata??(xt.litPropertyMetadata=new WeakMap);class Wt extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=Vi){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(e,n),!n.noAccessor){const r=Symbol(),a=this.getPropertyDescriptor(e,r,n);a!==void 0&&Eu(this.prototype,e,a)}}static getPropertyDescriptor(e,n,r){const{get:a,set:i}=Ou(this.prototype,e)??{get(){return this[n]},set(l){this[n]=l}};return{get(){return a==null?void 0:a.call(this)},set(l){const u=a==null?void 0:a.call(this);i.call(this,l),this.requestUpdate(e,u,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Vi}static _$Ei(){if(this.hasOwnProperty(bn("elementProperties")))return;const e=Tu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(bn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(bn("properties"))){const n=this.properties,r=[...Iu(n),...Bu(n)];for(const a of r)this.createProperty(a,n[a])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[r,a]of n)this.elementProperties.set(r,a)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const a=this._$Eu(n,r);a!==void 0&&this._$Eh.set(a,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const a of r)n.unshift(Li(a))}else e!==void 0&&n.push(Li(e));return n}static _$Eu(e,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(n=>n(this))}addController(e){var n;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var n;(n=this._$EO)==null||n.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return xu(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(e,n,r){this._$AK(e,r)}_$EC(e,n){var i;const r=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,r);if(a!==void 0&&r.reflect===!0){const l=(((i=r.converter)==null?void 0:i.toAttribute)!==void 0?r.converter:Zt).toAttribute(n,r.type);this._$Em=e,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(e,n){var i;const r=this.constructor,a=r._$Eh.get(e);if(a!==void 0&&this._$Em!==a){const l=r.getPropertyOptions(a),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((i=l.converter)==null?void 0:i.fromAttribute)!==void 0?l.converter:Zt;this._$Em=a,this[a]=u.fromAttribute(n,l.type),this._$Em=null}}requestUpdate(e,n,r){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??ui)(this[e],n))return;this.P(e,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,n,r){this._$AL.has(e)||this._$AL.set(e,n),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,l]of this._$Ep)this[i]=l;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[i,l]of a)l.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],l)}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(a=>{var i;return(i=a.hostUpdate)==null?void 0:i.call(a)}),this.update(n)):this._$EU()}catch(a){throw e=!1,this._$EU(),a}e&&this._$AE(n)}willUpdate(e){}_$AE(e){var n;(n=this._$EO)==null||n.forEach(r=>{var a;return(a=r.hostUpdated)==null?void 0:a.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(e){}firstUpdated(e){}}Wt.elementStyles=[],Wt.shadowRootOptions={mode:"open"},Wt[bn("elementProperties")]=new Map,Wt[bn("finalized")]=new Map,io==null||io({ReactiveElement:Wt}),(xt.reactiveElementVersions??(xt.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const yn=globalThis,Ar=yn.trustedTypes,Ri=Ar?Ar.createPolicy("lit-html",{createHTML:t=>t}):void 0,fl="$lit$",kt=`lit$${Math.random().toFixed(9).slice(2)}$`,ml="?"+kt,Mu=`<${ml}>`,Vt=document,Bn=()=>Vt.createComment(""),Tn=t=>t===null||typeof t!="object"&&typeof t!="function",gl=Array.isArray,_u=t=>gl(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",ao=`[ \f\r]`,pn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zi=/-->/g,Fi=/>/g,Dt=RegExp(`>|${ao}(?:([^\\s"'>=/]+)(${ao}*=${ao}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ni=/'/g,Hi=/"/g,vl=/^(?:script|style|textarea|title)$/i,$u=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),B=$u(1),Re=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),Ki=new WeakMap,Lt=Vt.createTreeWalker(Vt,129);function bl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ri!==void 0?Ri.createHTML(e):e}const Lu=(t,e)=>{const n=t.length-1,r=[];let a,i=e===2?"<svg>":"",l=pn;for(let u=0;u<n;u++){const c=t[u];let s,m,d=-1,f=0;for(;f<c.length&&(l.lastIndex=f,m=l.exec(c),m!==null);)f=l.lastIndex,l===pn?m[1]==="!--"?l=zi:m[1]!==void 0?l=Fi:m[2]!==void 0?(vl.test(m[2])&&(a=RegExp("</"+m[2],"g")),l=Dt):m[3]!==void 0&&(l=Dt):l===Dt?m[0]===">"?(l=a??pn,d=-1):m[1]===void 0?d=-2:(d=l.lastIndex-m[2].length,s=m[1],l=m[3]===void 0?Dt:m[3]==='"'?Hi:Ni):l===Hi||l===Ni?l=Dt:l===zi||l===Fi?l=pn:(l=Dt,a=void 0);const h=l===Dt&&t[u+1].startsWith("/>")?" ":"";i+=l===pn?c+Mu:d>=0?(r.push(s),c.slice(0,d)+fl+c.slice(d)+kt+h):c+kt+(d===-2?u:h)}return[bl(t,i+(t[n]||"<?>")+(e===2?"</svg>":"")),r]};class Dn{constructor({strings:e,_$litType$:n},r){let a;this.parts=[];let i=0,l=0;const u=e.length-1,c=this.parts,[s,m]=Lu(e,n);if(this.el=Dn.createElement(s,r),Lt.currentNode=this.el.content,n===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(a=Lt.nextNode())!==null&&c.length<u;){if(a.nodeType===1){if(a.hasAttributes())for(const d of a.getAttributeNames())if(d.endsWith(fl)){const f=m[l++],h=a.getAttribute(d).split(kt),g=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:g[2],strings:h,ctor:g[1]==="."?Vu:g[1]==="?"?Ru:g[1]==="@"?zu:Wr}),a.removeAttribute(d)}else d.startsWith(kt)&&(c.push({type:6,index:i}),a.removeAttribute(d));if(vl.test(a.tagName)){const d=a.textContent.split(kt),f=d.length-1;if(f>0){a.textContent=Ar?Ar.emptyScript:"";for(let h=0;h<f;h++)a.append(d[h],Bn()),Lt.nextNode(),c.push({type:2,index:++i});a.append(d[f],Bn())}}}else if(a.nodeType===8)if(a.data===ml)c.push({type:2,index:i});else{let d=-1;for(;(d=a.data.indexOf(kt,d+1))!==-1;)c.push({type:7,index:i}),d+=kt.length-1}i++}}static createElement(e,n){const r=Vt.createElement("template");return r.innerHTML=e,r}}function Xt(t,e,n=t,r){var l,u;if(e===Re)return e;let a=r!==void 0?(l=n._$Co)==null?void 0:l[r]:n._$Cl;const i=Tn(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==i&&((u=a==null?void 0:a._$AO)==null||u.call(a,!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,n,r)),r!==void 0?(n._$Co??(n._$Co=[]))[r]=a:n._$Cl=a),a!==void 0&&(e=Xt(t,a._$AS(t,e.values),a,r)),e}class Au{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:r}=this._$AD,a=((e==null?void 0:e.creationScope)??Vt).importNode(n,!0);Lt.currentNode=a;let i=Lt.nextNode(),l=0,u=0,c=r[0];for(;c!==void 0;){if(l===c.index){let s;c.type===2?s=new ur(i,i.nextSibling,this,e):c.type===1?s=new c.ctor(i,c.name,c.strings,this,e):c.type===6&&(s=new Fu(i,this,e)),this._$AV.push(s),c=r[++u]}l!==(c==null?void 0:c.index)&&(i=Lt.nextNode(),l++)}return Lt.currentNode=Vt,a}p(e){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}class ur{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,n,r,a){this.type=2,this._$AH=se,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=a,this._$Cv=(a==null?void 0:a.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=Xt(this,e,n),Tn(e)?e===se||e==null||e===""?(this._$AH!==se&&this._$AR(),this._$AH=se):e!==this._$AH&&e!==Re&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):_u(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==se&&Tn(this._$AH)?this._$AA.nextSibling.data=e:this.T(Vt.createTextNode(e)),this._$AH=e}$(e){var i;const{values:n,_$litType$:r}=e,a=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Dn.createElement(bl(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)==null?void 0:i._$AD)===a)this._$AH.p(n);else{const l=new Au(a,this),u=l.u(this.options);l.p(n),this.T(u),this._$AH=l}}_$AC(e){let n=Ki.get(e.strings);return n===void 0&&Ki.set(e.strings,n=new Dn(e)),n}k(e){gl(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,a=0;for(const i of e)a===n.length?n.push(r=new ur(this.S(Bn()),this.S(Bn()),this,this.options)):r=n[a],r._$AI(i),a++;a<n.length&&(this._$AR(r&&r._$AB.nextSibling,a),n.length=a)}_$AR(e=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);e&&e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){var n;this._$AM===void 0&&(this._$Cv=e,(n=this._$AP)==null||n.call(this,e))}}class Wr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,r,a,i){this.type=1,this._$AH=se,this._$AN=void 0,this.element=e,this.name=n,this._$AM=a,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=se}_$AI(e,n=this,r,a){const i=this.strings;let l=!1;if(i===void 0)e=Xt(this,e,n,0),l=!Tn(e)||e!==this._$AH&&e!==Re,l&&(this._$AH=e);else{const u=e;let c,s;for(e=i[0],c=0;c<i.length-1;c++)s=Xt(this,u[r+c],n,c),s===Re&&(s=this._$AH[c]),l||(l=!Tn(s)||s!==this._$AH[c]),s===se?e=se:e!==se&&(e+=(s??"")+i[c+1]),this._$AH[c]=s}l&&!a&&this.j(e)}j(e){e===se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Vu extends Wr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===se?void 0:e}}let Ru=class extends Wr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==se)}};class zu extends Wr{constructor(e,n,r,a,i){super(e,n,r,a,i),this.type=5}_$AI(e,n=this){if((e=Xt(this,e,n,0)??se)===Re)return;const r=this._$AH,a=e===se&&r!==se||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==se&&(r===se||a);a&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,e):this._$AH.handleEvent(e)}}class Fu{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Xt(this,e)}}const lo=yn.litHtmlPolyfillSupport;lo==null||lo(Dn,ur),(yn.litHtmlVersions??(yn.litHtmlVersions=[])).push("3.1.3");const Nu=(t,e,n)=>{const r=(n==null?void 0:n.renderBefore)??e;let a=r._$litPart$;if(a===void 0){const i=(n==null?void 0:n.renderBefore)??null;r._$litPart$=a=new ur(e.insertBefore(Bn(),i),i,void 0,n??{})}return a._$AI(t),a};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let wn=class extends Wt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const e=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=e.firstChild),e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Nu(n,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Re}};var dl;wn._$litElement$=!0,wn.finalized=!0,(dl=globalThis.litElementHydrateSupport)==null||dl.call(globalThis,{LitElement:wn});const so=globalThis.litElementPolyfillSupport;so==null||so({LitElement:wn});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");var Hu=F` :host(:not(:focus-within)) { position: absolute !important; width: 1px !important; height: 1px !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; border: none !important; overflow: hidden !important; white-space: nowrap !important; padding: 0 !important; } `,N=F` :host { box-sizing: border-box; } :host *, :host *::before, :host *::after { box-sizing: inherit; } [hidden] { display: none !important; } `;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Ku={attribute:!0,type:String,converter:Zt,reflect:!1,hasChanged:ui},ju=(t=Ku,e,n)=>{const{kind:r,metadata:a}=n;let i=globalThis.litPropertyMetadata.get(a);if(i===void 0&&globalThis.litPropertyMetadata.set(a,i=new Map),i.set(n.name,t),r==="accessor"){const{name:l}=n;return{set(u){const c=e.get.call(this);e.set.call(this,u),this.requestUpdate(l,c,t)},init(u){return u!==void 0&&this.P(l,void 0,t),u}}}if(r==="setter"){const{name:l}=n;return function(u){const c=this[l];e.call(this,u),this.requestUpdate(l,c,t)}}throw Error("Unsupported decorator location: "+r)};function v(t){return(e,n)=>typeof n=="object"?ju(t,e,n):((r,a,i)=>{const l=a.hasOwnProperty(i);return a.constructor.createProperty(i,l?{...r,wrapped:!0}:r),l?Object.getOwnPropertyDescriptor(a,i):void 0})(t,e,n)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function j(t){return v({...t,state:!0,attribute:!1})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function ci(t){return(e,n)=>{const r=typeof e=="function"?e:e[n];Object.assign(r,t)}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Eo=(t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,n),n);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function L(t,e){return(n,r,a)=>{const i=l=>{var u;return((u=l.renderRoot)==null?void 0:u.querySelector(t))??null};if(e){const{get:l,set:u}=typeof r=="object"?n:a??(()=>{const c=Symbol();return{get(){return this[c]},set(s){this[c]=s}}})();return Eo(n,r,{get(){let c=l.call(this);return c===void 0&&(c=i(this),(c!==null||this.hasUpdated)&&u.call(this,c)),c}})}return Eo(n,r,{get(){return i(this)}})}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function Uu(t){return(e,n)=>Eo(e,n,{async get(){var r;return await this.updateComplete,((r=this.renderRoot)==null?void 0:r.querySelector(t))??null}})}var z=class extends wn{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([t,e])=>{this.constructor.define(t,e)})}emit(t,e){const n=new CustomEvent(t,gt({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(n),n}static define(t,e=this,n={}){const r=customElements.get(t);if(!r){customElements.define(t,class extends e{},n);return}let a=" (unknown version)",i=a;"version"in e&&e.version&&(a=" v"+e.version),"version"in r&&r.version&&(i=" v"+r.version),!(a&&i&&a===i)&&console.warn(`Attempted to register <${t}>${a}, but <${t}>${i} has already been registered.`)}};z.version="2.15.0";z.dependencies={};p([v()],z.prototype,"dir",2);p([v()],z.prototype,"lang",2);var di=class extends z{render(){return B` <slot></slot> `}};di.styles=[N,Hu];di.define("sl-visually-hidden");var Gu=F` :host { --max-width: 20rem; --hide-delay: 0ms; --show-delay: 150ms; display: contents; } .tooltip { --arrow-size: var(--sl-tooltip-arrow-size); --arrow-color: var(--sl-tooltip-background-color); } .tooltip::part(popup) { z-index: var(--sl-z-index-tooltip); } .tooltip[placement^='top']::part(popup) { transform-origin: bottom; } .tooltip[placement^='bottom']::part(popup) { transform-origin: top; } .tooltip[placement^='left']::part(popup) { transform-origin: right; } .tooltip[placement^='right']::part(popup) { transform-origin: left; } .tooltip__body { display: block; width: max-content; max-width: var(--max-width); border-radius: var(--sl-tooltip-border-radius); background-color: var(--sl-tooltip-background-color); font-family: var(--sl-tooltip-font-family); font-size: var(--sl-tooltip-font-size); font-weight: var(--sl-tooltip-font-weight); line-height: var(--sl-tooltip-line-height); color: var(--sl-tooltip-color); padding: var(--sl-tooltip-padding); pointer-events: none; user-select: none; -webkit-user-select: none; } `,Wu=F` :host { --arrow-color: var(--sl-color-neutral-1000); --arrow-size: 6px; /* * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating. */ --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071); --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size)); display: contents; } .popup { position: absolute; isolation: isolate; max-width: var(--auto-size-available-width, none); max-height: var(--auto-size-available-height, none); } .popup--fixed { position: fixed; } .popup:not(.popup--active) { display: none; } .popup__arrow { position: absolute; width: calc(var(--arrow-size-diagonal) * 2); height: calc(var(--arrow-size-diagonal) * 2); rotate: 45deg; background: var(--arrow-color); z-index: -1; } /* Hover bridge */ .popup-hover-bridge:not(.popup-hover-bridge--visible) { display: none; } .popup-hover-bridge { position: fixed; z-index: calc(var(--sl-z-index-dropdown) - 1); top: 0; right: 0; bottom: 0; left: 0; clip-path: polygon( var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0), var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0), var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0), var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0) ); } `;const Pt=Math.min,Ve=Math.max,Vr=Math.round,kr=Math.floor,Et=t=>({x:t,y:t}),qu={left:"right",right:"left",bottom:"top",top:"bottom"},Yu={start:"end",end:"start"};function Oo(t,e,n){return Ve(t,Pt(e,n))}function en(t,e){return typeof t=="function"?t(e):t}function Ot(t){return t.split("-")[0]}function tn(t){return t.split("-")[1]}function yl(t){return t==="x"?"y":"x"}function pi(t){return t==="y"?"height":"width"}function cr(t){return["top","bottom"].includes(Ot(t))?"y":"x"}function hi(t){return yl(cr(t))}function Zu(t,e,n){n===void 0&&(n=!1);const r=tn(t),a=hi(t),i=pi(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(l=Rr(l)),[l,Rr(l)]}function Xu(t){const e=Rr(t);return[Io(t),e,Io(e)]}function Io(t){return t.replace(/start|end/g,e=>Yu[e])}function Ju(t,e,n){const r=["left","right"],a=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:r:e?r:a;case"left":case"right":return e?i:l;default:return[]}}function Qu(t,e,n,r){const a=tn(t);let i=Ju(Ot(t),n==="start",r);return a&&(i=i.map(l=>l+"-"+a),e&&(i=i.concat(i.map(Io)))),i}function Rr(t){return t.replace(/left|right|bottom|top/g,e=>qu[e])}function ec(t){return{top:0,right:0,bottom:0,left:0,...t}}function wl(t){return typeof t!="number"?ec(t):{top:t,right:t,bottom:t,left:t}}function zr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ji(t,e,n){let{reference:r,floating:a}=t;const i=cr(e),l=hi(e),u=pi(l),c=Ot(e),s=i==="y",m=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,f=r[u]/2-a[u]/2;let h;switch(c){case"top":h={x:m,y:r.y-a.height};break;case"bottom":h={x:m,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-a.width,y:d};break;default:h={x:r.x,y:r.y}}switch(tn(e)){case"start":h[l]-=f*(n&&s?-1:1);break;case"end":h[l]+=f*(n&&s?-1:1);break}return h}const tc=async(t,e,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(e));let s=await l.getElementRects({reference:t,floating:e,strategy:a}),{x:m,y:d}=ji(s,r,c),f=r,h={},g=0;for(let b=0;b<u.length;b++){const{name:y,fn:S}=u[b],{x:w,y:x,data:C,reset:E}=await S({x:m,y:d,initialPlacement:r,placement:f,strategy:a,middlewareData:h,rects:s,platform:l,elements:{reference:t,floating:e}});m=w??m,d=x??d,h={...h,[y]:{...h[y],...C}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(s=E.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:a}):E.rects),{x:m,y:d}=ji(s,f,c)),b=-1)}return{x:m,y:d,placement:f,strategy:a,middlewareData:h}};async function fi(t,e){var n;e===void 0&&(e={});const{x:r,y:a,platform:i,rects:l,elements:u,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:m="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=en(e,t),g=wl(h),y=u[f?d==="floating"?"reference":"floating":d],S=zr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:s,rootBoundary:m,strategy:c})),w=d==="floating"?{...l.floating,x:r,y:a}:l.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),C=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=zr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:w,offsetParent:x,strategy:c}):w);return{top:(S.top-E.top+g.top)/C.y,bottom:(E.bottom-S.bottom+g.bottom)/C.y,left:(S.left-E.left+g.left)/C.x,right:(E.right-S.right+g.right)/C.x}}const nc=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:a,rects:i,platform:l,elements:u,middlewareData:c}=e,{element:s,padding:m=0}=en(t,e)||{};if(s==null)return{};const d=wl(m),f={x:n,y:r},h=hi(a),g=pi(h),b=await l.getDimensions(s),y=h==="y",S=y?"top":"left",w=y?"bottom":"right",x=y?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[h]-f[h]-i.floating[g],E=f[h]-i.reference[h],I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s));let T=I?I[x]:0;(!T||!await(l.isElement==null?void 0:l.isElement(I)))&&(T=u.floating[x]||i.floating[g]);const D=C/2-E/2,$=T/2-b[g]/2-1,_=Pt(d[S],$),H=Pt(d[w],$),O=_,A=T-b[g]-H,V=T/2-b[g]/2+D,U=Oo(O,V,A),X=!c.arrow&&tn(a)!=null&&V!==U&&i.reference[g]/2-(V<O?_:H)-b[g]/2<0,ie=X?V<O?V-O:V-A:0;return{[h]:f[h]+ie,data:{[h]:U,centerOffset:V-U-ie,...X&&{alignmentOffset:ie}},reset:X}}}),rc=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:a,middlewareData:i,rects:l,initialPlacement:u,platform:c,elements:s}=e,{mainAxis:m=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...y}=en(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const S=Ot(a),w=Ot(u)===u,x=await(c.isRTL==null?void 0:c.isRTL(s.floating)),C=f||(w||!b?[Rr(u)]:Xu(u));!f&&g!=="none"&&C.push(...Qu(u,b,g,x));const E=[u,...C],I=await fi(e,y),T=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(m&&T.push(I[S]),d){const O=Zu(a,l,x);T.push(I[O[0]],I[O[1]])}if(D=[...D,{placement:a,overflows:T}],!T.every(O=>O<=0)){var $,_;const O=((($=i.flip)==null?void 0:$.index)||0)+1,A=E[O];if(A)return{data:{index:O,overflows:D},reset:{placement:A}};let V=(_=D.filter(U=>U.overflows[0]<=0).sort((U,X)=>U.overflows[1]-X.overflows[1])[0])==null?void 0:_.placement;if(!V)switch(h){case"bestFit":{var H;const U=(H=D.map(X=>[X.placement,X.overflows.filter(ie=>ie>0).reduce((ie,ht)=>ie+ht,0)]).sort((X,ie)=>X[1]-ie[1])[0])==null?void 0:H[0];U&&(V=U);break}case"initialPlacement":V=u;break}if(a!==V)return{reset:{placement:V}}}return{}}}};async function oc(t,e){const{placement:n,platform:r,elements:a}=t,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Ot(n),u=tn(n),c=cr(n)==="y",s=["left","top"].includes(l)?-1:1,m=i&&c?-1:1,d=en(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return u&&typeof g=="number"&&(h=u==="end"?g*-1:g),c?{x:h*m,y:f*s}:{x:f*s,y:h*m}}const ic=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:a,y:i,placement:l,middlewareData:u}=e,c=await oc(e,t);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:l}}}}},ac=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:a}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:u={fn:y=>{let{x:S,y:w}=y;return{x:S,y:w}}},...c}=en(t,e),s={x:n,y:r},m=await fi(e,c),d=cr(Ot(a)),f=yl(d);let h=s[f],g=s[d];if(i){const y=f==="y"?"top":"left",S=f==="y"?"bottom":"right",w=h+m[y],x=h-m[S];h=Oo(w,h,x)}if(l){const y=d==="y"?"top":"left",S=d==="y"?"bottom":"right",w=g+m[y],x=g-m[S];g=Oo(w,g,x)}const b=u.fn({...e,[f]:h,[d]:g});return{...b,data:{x:b.x-n,y:b.y-r}}}}},lc=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:a,elements:i}=e,{apply:l=()=>{},...u}=en(t,e),c=await fi(e,u),s=Ot(n),m=tn(n),d=cr(n)==="y",{width:f,height:h}=r.floating;let g,b;s==="top"||s==="bottom"?(g=s,b=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=s,g=m==="end"?"top":"bottom");const y=h-c[g],S=f-c[b],w=!e.middlewareData.shift;let x=y,C=S;if(d){const I=f-c.left-c.right;C=m||w?Pt(S,I):I}else{const I=h-c.top-c.bottom;x=m||w?Pt(y,I):I}if(w&&!m){const I=Ve(c.left,0),T=Ve(c.right,0),D=Ve(c.top,0),$=Ve(c.bottom,0);d?C=f-2*(I!==0||T!==0?I+T:Ve(c.left,c.right)):x=h-2*(D!==0||$!==0?D+$:Ve(c.top,c.bottom))}await l({...e,availableWidth:C,availableHeight:x});const E=await a.getDimensions(i.floating);return f!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function It(t){return Cl(t)?(t.nodeName||"").toLowerCase():"#document"}function Fe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function bt(t){var e;return(e=(Cl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Cl(t){return t instanceof Node||t instanceof Fe(t).Node}function ft(t){return t instanceof Element||t instanceof Fe(t).Element}function it(t){return t instanceof HTMLElement||t instanceof Fe(t).HTMLElement}function Ui(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fe(t).ShadowRoot}function dr(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=We(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(a)}function sc(t){return["table","td","th"].includes(It(t))}function mi(t){const e=gi(),n=We(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function uc(t){let e=Jt(t);for(;it(e)&&!qr(e);){if(mi(e))return e;e=Jt(e)}return null}function gi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qr(t){return["html","body","#document"].includes(It(t))}function We(t){return Fe(t).getComputedStyle(t)}function Yr(t){return ft(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jt(t){if(It(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ui(t)&&t.host||bt(t);return Ui(e)?e.host:e}function kl(t){const e=Jt(t);return qr(e)?t.ownerDocument?t.ownerDocument.body:t.body:it(e)&&dr(e)?e:kl(e)}function Mn(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=kl(t),i=a===((r=t.ownerDocument)==null?void 0:r.body),l=Fe(a);return i?e.concat(l,l.visualViewport||[],dr(a)?a:[],l.frameElement&&n?Mn(l.frameElement):[]):e.concat(a,Mn(a,[],n))}function Sl(t){const e=We(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=it(t),i=a?t.offsetWidth:n,l=a?t.offsetHeight:r,u=Vr(n)!==i||Vr(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function vi(t){return ft(t)?t:t.contextElement}function Yt(t){const e=vi(t);if(!it(e))return Et(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:i}=Sl(e);let l=(i?Vr(n.width):n.width)/r,u=(i?Vr(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const cc=Et(0);function xl(t){const e=Fe(t);return!gi()||!e.visualViewport?cc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Fe(t)?!1:e}function Rt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),i=vi(t);let l=Et(1);e&&(r?ft(r)&&(l=Yt(r)):l=Yt(t));const u=dc(i,n,r)?xl(i):Et(0);let c=(a.left+u.x)/l.x,s=(a.top+u.y)/l.y,m=a.width/l.x,d=a.height/l.y;if(i){const f=Fe(i),h=r&&ft(r)?Fe(r):r;let g=f,b=g.frameElement;for(;b&&r&&h!==g;){const y=Yt(b),S=b.getBoundingClientRect(),w=We(b),x=S.left+(b.clientLeft+parseFloat(w.paddingLeft))*y.x,C=S.top+(b.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,s*=y.y,m*=y.x,d*=y.y,c+=x,s+=C,g=Fe(b),b=g.frameElement}}return zr({width:m,height:d,x:c,y:s})}const pc=[":popover-open",":modal"];function Pl(t){return pc.some(e=>{try{return t.matches(e)}catch{return!1}})}function hc(t){let{elements:e,rect:n,offsetParent:r,strategy:a}=t;const i=a==="fixed",l=bt(r),u=e?Pl(e.floating):!1;if(r===l||u&&i)return n;let c={scrollLeft:0,scrollTop:0},s=Et(1);const m=Et(0),d=it(r);if((d||!d&&!i)&&((It(r)!=="body"||dr(l))&&(c=Yr(r)),it(r))){const f=Rt(r);s=Yt(r),m.x=f.x+r.clientLeft,m.y=f.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+m.x,y:n.y*s.y-c.scrollTop*s.y+m.y}}function fc(t){return Array.from(t.getClientRects())}function El(t){return Rt(bt(t)).left+Yr(t).scrollLeft}function mc(t){const e=bt(t),n=Yr(t),r=t.ownerDocument.body,a=Ve(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Ve(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+El(t);const u=-n.scrollTop;return We(r).direction==="rtl"&&(l+=Ve(e.clientWidth,r.clientWidth)-a),{width:a,height:i,x:l,y:u}}function gc(t,e){const n=Fe(t),r=bt(t),a=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,u=0,c=0;if(a){i=a.width,l=a.height;const s=gi();(!s||s&&e==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}return{width:i,height:l,x:u,y:c}}function vc(t,e){const n=Rt(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,i=it(t)?Yt(t):Et(1),l=t.clientWidth*i.x,u=t.clientHeight*i.y,c=a*i.x,s=r*i.y;return{width:l,height:u,x:c,y:s}}function Gi(t,e,n){let r;if(e==="viewport")r=gc(t,n);else if(e==="document")r=mc(bt(t));else if(ft(e))r=vc(e,n);else{const a=xl(t);r={...e,x:e.x-a.x,y:e.y-a.y}}return zr(r)}function Ol(t,e){const n=Jt(t);return n===e||!ft(n)||qr(n)?!1:We(n).position==="fixed"||Ol(n,e)}function bc(t,e){const n=e.get(t);if(n)return n;let r=Mn(t,[],!1).filter(u=>ft(u)&&It(u)!=="body"),a=null;const i=We(t).position==="fixed";let l=i?Jt(t):t;for(;ft(l)&&!qr(l);){const u=We(l),c=mi(l);!c&&u.position==="fixed"&&(a=null),(i?!c&&!a:!c&&u.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||dr(l)&&!c&&Ol(t,l))?r=r.filter(m=>m!==l):a=u,l=Jt(l)}return e.set(t,r),r}function yc(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const l=[...n==="clippingAncestors"?bc(e,this._c):[].concat(n),r],u=l[0],c=l.reduce((s,m)=>{const d=Gi(e,m,a);return s.top=Ve(d.top,s.top),s.right=Pt(d.right,s.right),s.bottom=Pt(d.bottom,s.bottom),s.left=Ve(d.left,s.left),s},Gi(e,u,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function wc(t){const{width:e,height:n}=Sl(t);return{width:e,height:n}}function Cc(t,e,n){const r=it(e),a=bt(e),i=n==="fixed",l=Rt(t,!0,i,e);let u={scrollLeft:0,scrollTop:0};const c=Et(0);if(r||!r&&!i)if((It(e)!=="body"||dr(a))&&(u=Yr(e)),r){const d=Rt(e,!0,i,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}else a&&(c.x=El(a));const s=l.left+u.scrollLeft-c.x,m=l.top+u.scrollTop-c.y;return{x:s,y:m,width:l.width,height:l.height}}function Wi(t,e){return!it(t)||We(t).position==="fixed"?null:e?e(t):t.offsetParent}function Il(t,e){const n=Fe(t);if(!it(t)||Pl(t))return n;let r=Wi(t,e);for(;r&&sc(r)&&We(r).position==="static";)r=Wi(r,e);return r&&(It(r)==="html"||It(r)==="body"&&We(r).position==="static"&&!mi(r))?n:r||uc(t)||n}const kc=async function(t){const e=this.getOffsetParent||Il,n=this.getDimensions;return{reference:Cc(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}};function Sc(t){return We(t).direction==="rtl"}const _r={convertOffsetParentRelativeRectToViewportRelativeRect:hc,getDocumentElement:bt,getClippingRect:yc,getOffsetParent:Il,getElementRects:kc,getClientRects:fc,getDimensions:wc,getScale:Yt,isElement:ft,isRTL:Sc};function xc(t,e){let n=null,r;const a=bt(t);function i(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),i();const{left:s,top:m,width:d,height:f}=t.getBoundingClientRect();if(u||e(),!d||!f)return;const h=kr(m),g=kr(a.clientWidth-(s+d)),b=kr(a.clientHeight-(m+f)),y=kr(s),w={rootMargin:-h+"px "+-g+"px "+-b+"px "+-y+"px",threshold:Ve(0,Pt(1,c))||1};let x=!0;function C(E){const I=E[0].intersectionRatio;if(I!==c){if(!x)return l();I?l(!1,I):r=setTimeout(()=>{l(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(C,{...w,root:a.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(t)}return l(!0),i}function Pc(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,s=vi(t),m=a||i?[...s?Mn(s):[],...Mn(e)]:[];m.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),i&&S.addEventListener("resize",n)});const d=s&&u?xc(s,n):null;let f=-1,h=null;l&&(h=new ResizeObserver(S=>{let[w]=S;w&&w.target===s&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(e)})),n()}),s&&!c&&h.observe(s),h.observe(e));let g,b=c?Rt(t):null;c&&y();function y(){const S=Rt(t);b&&(S.x!==b.x||S.y!==b.y||S.width!==b.width||S.height!==b.height)&&n(),b=S,g=requestAnimationFrame(y)}return n(),()=>{var S;m.forEach(w=>{a&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d==null||d(),(S=h)==null||S.disconnect(),h=null,c&&cancelAnimationFrame(g)}}const Ec=ac,Oc=rc,qi=lc,Ic=nc,Bc=(t,e,n)=>{const r=new Map,a={platform:_r,...n},i={...a.platform,_c:r};return tc(t,e,{...a,platform:i})};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const nt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},pr=t=>(...e)=>({_$litDirective$:t,values:e});let hr=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,r){this._$Ct=e,this._$AM=n,this._$Ci=r}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}};/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const K=pr(class extends hr{constructor(t){var e;if(super(t),t.type!==nt.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,a;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in e)e[i]&&!((r=this.nt)!=null&&r.has(i))&&this.st.add(i);return this.render(e)}const n=t.element.classList;for(const i of this.st)i in e||(n.remove(i),this.st.delete(i));for(const i in e){const l=!!e[i];l===this.st.has(i)||(a=this.nt)!=null&&a.has(i)||(l?(n.add(i),this.st.add(i)):(n.remove(i),this.st.delete(i)))}return Re}});function Tc(t){return Dc(t)}function uo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Dc(t){for(let e=t;e;e=uo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=uo(t);e;e=uo(e)){if(!(e instanceof Element))continue;const n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||n.filter!=="none"||e.tagName==="BODY"))return e}return null}function Mc(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t&&("contextElement"in t?t instanceof Element:!0)}var ee=class extends z{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect(),n=this.placement.includes("top")||this.placement.includes("bottom");let r=0,a=0,i=0,l=0,u=0,c=0,s=0,m=0;n?t.top<e.top?(r=t.left,a=t.bottom,i=t.right,l=t.bottom,u=e.left,c=e.top,s=e.right,m=e.top):(r=e.left,a=e.bottom,i=e.right,l=e.bottom,u=t.left,c=t.top,s=t.right,m=t.top):t.left<e.left?(r=t.right,a=t.top,i=e.left,l=e.top,u=t.right,c=t.bottom,s=e.left,m=e.bottom):(r=e.right,a=e.top,i=t.left,l=t.top,u=e.right,c=e.bottom,s=t.left,m=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${r}px`),this.style.setProperty("--hover-bridge-top-left-y",`${a}px`),this.style.setProperty("--hover-bridge-top-right-x",`${i}px`),this.style.setProperty("--hover-bridge-top-right-y",`${l}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${u}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${c}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${s}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${m}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||Mc(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=Pc(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;cons