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)

187 lines (169 loc) 1.06 MB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");var cl=Object.defineProperty,hu=Object.defineProperties,fu=Object.getOwnPropertyDescriptor,mu=Object.getOwnPropertyDescriptors,Di=Object.getOwnPropertySymbols,gu=Object.prototype.hasOwnProperty,vu=Object.prototype.propertyIsEnumerable,io=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Mi=(t,e,n)=>e in t?cl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gt=(t,e)=>{for(var n in e||(e={}))gu.call(e,n)&&Mi(t,n,e[n]);if(Di)for(var n of Di(e))vu.call(e,n)&&Mi(t,n,e[n]);return t},ur=(t,e)=>hu(t,mu(e)),p=(t,e,n,r)=>{for(var a=r>1?void 0:r?fu(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&&cl(e,n,a),a},dl=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},bu=(t,e,n)=>(dl(t,e,"read from private field"),e.get(t)),yu=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},wu=(t,e,n,r)=>(dl(t,e,"write to private field"),e.set(t,n),n),Cu=function(t,e){this[0]=t,this[1]=e},ku=t=>{var e=t[io("asyncIterator")],n=!1,r,a={};return e==null?(e=t[io("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 Cu(new Promise(u=>{var c=e[i](l);if(!(c instanceof Object))throw TypeError("Object expected");u(c)}),1)}}),a[io("iterator")]=()=>a,r("next"),"throw"in e?r("throw"):a.throw=i=>{throw i},"return"in e&&r("return"),a},cn=new WeakMap,dn=new WeakMap,pn=new WeakMap,ao=new WeakSet,Sr=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=cn.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),Sr.set(this.host,[])},this.handleInteraction=n=>{const r=Sr.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),Sr.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),Sr.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,cn.has(this.form)?cn.get(this.form).add(this.host):cn.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),dn.has(this.form)||(dn.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),pn.has(this.form)||(pn.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())):this.form=void 0}detachForm(){if(!this.form)return;const t=cn.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),dn.has(this.form)&&(this.form.reportValidity=dn.get(this.form),dn.delete(this.form)),pn.has(this.form)&&(this.form.checkValidity=pn.get(this.form),pn.delete(this.form)),this.form=void 0))}setUserInteracted(t,e){e?ao.add(t):ao.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=!!ao.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()}},Yr=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),Su=Object.freeze(ur(gt({},Yr),{valid:!1,valueMissing:!0})),xu=Object.freeze(ur(gt({},Yr),{valid:!1,customError:!0}));/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const $r=globalThis,si=$r.ShadowRoot&&($r.ShadyCSS===void 0||$r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ui=Symbol(),$i=new WeakMap;let pl=class{constructor(e,n,r){if(this._$cssResult$=!0,r!==ui)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(si&&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 Pu=t=>new pl(typeof t=="string"?t:t+"",void 0,ui),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 pl(n,t,ui)},Eu=(t,e)=>{if(si)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const r=document.createElement("style"),a=$r.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=n.cssText,t.appendChild(r)}},Li=si?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const r of e.cssRules)n+=r.cssText;return Pu(n)})(t):t;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const{is:Iu,defineProperty:Ou,getOwnPropertyDescriptor:Bu,getOwnPropertyNames:Tu,getOwnPropertySymbols:_u,getPrototypeOf:Du}=Object,xt=globalThis,Ai=xt.trustedTypes,Mu=Ai?Ai.emptyScript:"",lo=xt.reactiveElementPolyfillSupport,yn=(t,e)=>t,Xt={toAttribute(t,e){switch(e){case Boolean:t=t?Mu: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}},ci=(t,e)=>!Iu(t,e),Ri={attribute:!0,type:String,converter:Xt,reflect:!1,hasChanged:ci};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),xt.litPropertyMetadata??(xt.litPropertyMetadata=new WeakMap);class qt 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=Ri){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&&Ou(this.prototype,e,a)}}static getPropertyDescriptor(e,n,r){const{get:a,set:i}=Bu(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)??Ri}static _$Ei(){if(this.hasOwnProperty(yn("elementProperties")))return;const e=Du(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(yn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(yn("properties"))){const n=this.properties,r=[...Tu(n),..._u(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 Eu(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:Xt).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:Xt;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??ci)(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){}}qt.elementStyles=[],qt.shadowRootOptions={mode:"open"},qt[yn("elementProperties")]=new Map,qt[yn("finalized")]=new Map,lo==null||lo({ReactiveElement:qt}),(xt.reactiveElementVersions??(xt.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const wn=globalThis,zr=wn.trustedTypes,Vi=zr?zr.createPolicy("lit-html",{createHTML:t=>t}):void 0,hl="$lit$",kt=`lit$${Math.random().toFixed(9).slice(2)}$`,fl="?"+kt,$u=`<${fl}>`,Rt=document,Tn=()=>Rt.createComment(""),_n=t=>t===null||typeof t!="object"&&typeof t!="function",ml=Array.isArray,Lu=t=>ml(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",so=`[ \f\r]`,hn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zi=/-->/g,Fi=/>/g,_t=RegExp(`>|${so}(?:([^\\s"'>=/]+)(${so}*=${so}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ni=/'/g,Hi=/"/g,gl=/^(?:script|style|textarea|title)$/i,Au=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),B=Au(1),ze=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),Ki=new WeakMap,Lt=Rt.createTreeWalker(Rt,129);function vl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vi!==void 0?Vi.createHTML(e):e}const Ru=(t,e)=>{const n=t.length-1,r=[];let a,i=e===2?"<svg>":"",l=hn;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===hn?m[1]==="!--"?l=zi:m[1]!==void 0?l=Fi:m[2]!==void 0?(gl.test(m[2])&&(a=RegExp("</"+m[2],"g")),l=_t):m[3]!==void 0&&(l=_t):l===_t?m[0]===">"?(l=a??hn,d=-1):m[1]===void 0?d=-2:(d=l.lastIndex-m[2].length,s=m[1],l=m[3]===void 0?_t:m[3]==='"'?Hi:Ni):l===Hi||l===Ni?l=_t:l===zi||l===Fi?l=hn:(l=_t,a=void 0);const h=l===_t&&t[u+1].startsWith("/>")?" ":"";i+=l===hn?c+$u:d>=0?(r.push(s),c.slice(0,d)+hl+c.slice(d)+kt+h):c+kt+(d===-2?u:h)}return[vl(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]=Ru(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(hl)){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]==="."?zu:g[1]==="?"?Fu:g[1]==="@"?Nu:Zr}),a.removeAttribute(d)}else d.startsWith(kt)&&(c.push({type:6,index:i}),a.removeAttribute(d));if(gl.test(a.tagName)){const d=a.textContent.split(kt),f=d.length-1;if(f>0){a.textContent=zr?zr.emptyScript:"";for(let h=0;h<f;h++)a.append(d[h],Tn()),Lt.nextNode(),c.push({type:2,index:++i});a.append(d[f],Tn())}}}else if(a.nodeType===8)if(a.data===fl)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=Rt.createElement("template");return r.innerHTML=e,r}}function Jt(t,e,n=t,r){var l,u;if(e===ze)return e;let a=r!==void 0?(l=n._$Co)==null?void 0:l[r]:n._$Cl;const i=_n(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=Jt(t,a._$AS(t,e.values),a,r)),e}class Vu{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)??Rt).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 cr(i,i.nextSibling,this,e):c.type===1?s=new c.ctor(i,c.name,c.strings,this,e):c.type===6&&(s=new Hu(i,this,e)),this._$AV.push(s),c=r[++u]}l!==(c==null?void 0:c.index)&&(i=Lt.nextNode(),l++)}return Lt.currentNode=Rt,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 cr{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=le,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=Jt(this,e,n),_n(e)?e===le||e==null||e===""?(this._$AH!==le&&this._$AR(),this._$AH=le):e!==this._$AH&&e!==ze&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Lu(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!==le&&_n(this._$AH)?this._$AA.nextSibling.data=e:this.T(Rt.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(vl(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 Vu(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){ml(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 cr(this.S(Tn()),this.S(Tn()),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 Zr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,r,a,i){this.type=1,this._$AH=le,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=le}_$AI(e,n=this,r,a){const i=this.strings;let l=!1;if(i===void 0)e=Jt(this,e,n,0),l=!_n(e)||e!==this._$AH&&e!==ze,l&&(this._$AH=e);else{const u=e;let c,s;for(e=i[0],c=0;c<i.length-1;c++)s=Jt(this,u[r+c],n,c),s===ze&&(s=this._$AH[c]),l||(l=!_n(s)||s!==this._$AH[c]),s===le?e=le:e!==le&&(e+=(s??"")+i[c+1]),this._$AH[c]=s}l&&!a&&this.j(e)}j(e){e===le?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class zu extends Zr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===le?void 0:e}}let Fu=class extends Zr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==le)}};class Nu extends Zr{constructor(e,n,r,a,i){super(e,n,r,a,i),this.type=5}_$AI(e,n=this){if((e=Jt(this,e,n,0)??le)===ze)return;const r=this._$AH,a=e===le&&r!==le||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==le&&(r===le||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 Hu{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){Jt(this,e)}}const uo=wn.litHtmlPolyfillSupport;uo==null||uo(Dn,cr),(wn.litHtmlVersions??(wn.litHtmlVersions=[])).push("3.1.3");const Ku=(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 cr(e.insertBefore(Tn(),i),i,void 0,n??{})}return a._$AI(t),a};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let Cn=class extends qt{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=Ku(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 ze}};var ul;Cn._$litElement$=!0,Cn.finalized=!0,(ul=globalThis.litElementHydrateSupport)==null||ul.call(globalThis,{LitElement:Cn});const co=globalThis.litElementPolyfillSupport;co==null||co({LitElement:Cn});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");var ju=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; } `,H=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 Uu={attribute:!0,type:String,converter:Xt,reflect:!1,hasChanged:ci},Gu=(t=Uu,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"?Gu(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 K(t){return v({...t,state:!0,attribute:!1})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function dr(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 bl=(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 A(t,e){return(n,r,a)=>{const i=l=>{var u;return((u=l.renderRoot)==null?void 0:u.querySelector(t))??null};return bl(n,r,{get(){return i(this)}})}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function Wu(t){return(e,n)=>bl(e,n,{async get(){var r;return await this.updateComplete,((r=this.renderRoot)==null?void 0:r.querySelector(t))??null}})}var Lr,z=class extends Cn{constructor(){super(),yu(this,Lr,!1),this.initialReflectedProperties=new Map,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){try{customElements.define(t,e,n)}catch{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.`)}attributeChangedCallback(t,e,n){bu(this,Lr)||(this.constructor.elementProperties.forEach((r,a)=>{r.reflect&&this[a]!=null&&this.initialReflectedProperties.set(a,this[a])}),wu(this,Lr,!0)),super.attributeChangedCallback(t,e,n)}willUpdate(t){super.willUpdate(t),this.initialReflectedProperties.forEach((e,n)=>{t.has(n)&&this[n]==null&&(this[n]=e)})}};Lr=new WeakMap;z.version="2.17.1";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=[H,ju];di.define("sl-visually-hidden");var qu=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); text-align: start; white-space: normal; color: var(--sl-tooltip-color); padding: var(--sl-tooltip-padding); pointer-events: none; user-select: none; -webkit-user-select: none; } `,Yu=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,Fr=Math.round,xr=Math.floor,Et=t=>({x:t,y:t}),Zu={left:"right",right:"left",bottom:"top",top:"bottom"},Xu={start:"end",end:"start"};function Oo(t,e,n){return Ve(t,Pt(e,n))}function tn(t,e){return typeof t=="function"?t(e):t}function It(t){return t.split("-")[0]}function nn(t){return t.split("-")[1]}function yl(t){return t==="x"?"y":"x"}function pi(t){return t==="y"?"height":"width"}function pr(t){return["top","bottom"].includes(It(t))?"y":"x"}function hi(t){return yl(pr(t))}function Ju(t,e,n){n===void 0&&(n=!1);const r=nn(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=Nr(l)),[l,Nr(l)]}function Qu(t){const e=Nr(t);return[Bo(t),e,Bo(e)]}function Bo(t){return t.replace(/start|end/g,e=>Xu[e])}function ec(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 tc(t,e,n,r){const a=nn(t);let i=ec(It(t),n==="start",r);return a&&(i=i.map(l=>l+"-"+a),e&&(i=i.concat(i.map(Bo)))),i}function Nr(t){return t.replace(/left|right|bottom|top/g,e=>Zu[e])}function nc(t){return{top:0,right:0,bottom:0,left:0,...t}}function wl(t){return typeof t!="number"?nc(t):{top:t,right:t,bottom:t,left:t}}function Hr(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=pr(e),l=hi(e),u=pi(l),c=It(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(nn(e)){case"start":h[l]-=f*(n&&s?-1:1);break;case"end":h[l]+=f*(n&&s?-1:1);break}return h}const rc=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:k,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],...k}},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}=tn(e,t),g=wl(h),y=u[f?d==="floating"?"reference":"floating":d],S=Hr(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)),k=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=Hr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:w,offsetParent:x,strategy:c}):w);return{top:(S.top-E.top+g.top)/k.y,bottom:(E.bottom-S.bottom+g.bottom)/k.y,left:(S.left-E.left+g.left)/k.x,right:(E.right-S.right+g.right)/k.x}}const oc=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}=tn(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",k=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 _=I?I[x]:0;(!_||!await(l.isElement==null?void 0:l.isElement(I)))&&(_=u.floating[x]||i.floating[g]);const M=k/2-E/2,L=_/2-b[g]/2-1,$=Pt(d[S],L),O=Pt(d[w],L),T=$,R=_-b[g]-O,j=_/2-b[g]/2+M,G=Oo(T,j,R),te=!c.arrow&&nn(a)!=null&&j!==G&&i.reference[g]/2-(j<T?$:O)-b[g]/2<0,de=te?j<T?j-T:j-R:0;return{[h]:f[h]+de,data:{[h]:G,centerOffset:j-G-de,...te&&{alignmentOffset:de}},reset:te}}}),ic=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}=tn(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const S=It(a),w=It(u)===u,x=await(c.isRTL==null?void 0:c.isRTL(s.floating)),k=f||(w||!b?[Nr(u)]:Qu(u));!f&&g!=="none"&&k.push(...tc(u,b,g,x));const E=[u,...k],I=await fi(e,y),_=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(m&&_.push(I[S]),d){const T=Ju(a,l,x);_.push(I[T[0]],I[T[1]])}if(M=[...M,{placement:a,overflows:_}],!_.every(T=>T<=0)){var L,$;const T=(((L=i.flip)==null?void 0:L.index)||0)+1,R=E[T];if(R)return{data:{index:T,overflows:M},reset:{placement:R}};let j=($=M.filter(G=>G.overflows[0]<=0).sort((G,te)=>G.overflows[1]-te.overflows[1])[0])==null?void 0:$.placement;if(!j)switch(h){case"bestFit":{var O;const G=(O=M.map(te=>[te.placement,te.overflows.filter(de=>de>0).reduce((de,ft)=>de+ft,0)]).sort((te,de)=>te[1]-de[1])[0])==null?void 0:O[0];G&&(j=G);break}case"initialPlacement":j=u;break}if(a!==j)return{reset:{placement:j}}}return{}}}};async function ac(t,e){const{placement:n,platform:r,elements:a}=t,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=It(n),u=nn(n),c=pr(n)==="y",s=["left","top"].includes(l)?-1:1,m=i&&c?-1:1,d=tn(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 lc=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 ac(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}}}}},sc=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}=tn(t,e),s={x:n,y:r},m=await fi(e,c),d=pr(It(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}}}}},uc=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}=tn(t,e),c=await fi(e,u),s=It(n),m=nn(n),d=pr(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,k=S;if(d){const I=f-c.left-c.right;k=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),_=Ve(c.right,0),M=Ve(c.top,0),L=Ve(c.bottom,0);d?k=f-2*(I!==0||_!==0?I+_:Ve(c.left,c.right)):x=h-2*(M!==0||L!==0?M+L:Ve(c.top,c.bottom))}await l({...e,availableWidth:k,availableHeight:x});const E=await a.getDimensions(i.floating);return f!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function Ot(t){return Cl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(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 Ne(t).Node}function mt(t){return t instanceof Element||t instanceof Ne(t).Element}function st(t){return t instanceof HTMLElement||t instanceof Ne(t).HTMLElement}function Ui(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot}function hr(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=Ye(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(a)}function cc(t){return["table","td","th"].includes(Ot(t))}function mi(t){const e=gi(),n=Ye(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 dc(t){let e=Qt(t);for(;st(e)&&!Xr(e);){if(mi(e))return e;e=Qt(e)}return null}function gi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xr(t){return["html","body","#document"].includes(Ot(t))}function Ye(t){return Ne(t).getComputedStyle(t)}function Jr(t){return mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qt(t){if(Ot(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=Qt(t);return Xr(e)?t.ownerDocument?t.ownerDocument.body:t.body:st(e)&&hr(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=Ne(a);return i?e.concat(l,l.visualViewport||[],hr(a)?a:[],l.frameElement&&n?Mn(l.frameElement):[]):e.concat(a,Mn(a,[],n))}function Sl(t){const e=Ye(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=st(t),i=a?t.offsetWidth:n,l=a?t.offsetHeight:r,u=Fr(n)!==i||Fr(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function vi(t){return mt(t)?t:t.contextElement}function Zt(t){const e=vi(t);if(!st(e))return Et(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:i}=Sl(e);let l=(i?Fr(n.width):n.width)/r,u=(i?Fr(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const pc=Et(0);function xl(t){const e=Ne(t);return!gi()||!e.visualViewport?pc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ne(t)?!1:e}function Vt(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?mt(r)&&(l=Zt(r)):l=Zt(t));const u=hc(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=Ne(i),h=r&&mt(r)?Ne(r):r;let g=f,b=g.frameElement;for(;b&&r&&h!==g;){const y=Zt(b),S=b.getBoundingClientRect(),w=Ye(b),x=S.left+(b.clientLeft+parseFloat(w.paddingLeft))*y.x,k=S.top+(b.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,s*=y.y,m*=y.x,d*=y.y,c+=x,s+=k,g=Ne(b),b=g.frameElement}}return Hr({width:m,height:d,x:c,y:s})}const fc=[":popover-open",":modal"];function Pl(t){return fc.some(e=>{try{return t.matches(e)}catch{return!1}})}function mc(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=st(r);if((d||!d&&!i)&&((Ot(r)!=="body"||hr(l))&&(c=Jr(r)),st(r))){const f=Vt(r);s=Zt(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 gc(t){return Array.from(t.getClientRects())}function El(t){return Vt(bt(t)).left+Jr(t).scrollLeft}function vc(t){const e=bt(t),n=Jr(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 Ye(r).direction==="rtl"&&(l+=Ve(e.clientWidth,r.clientWidth)-a),{width:a,height:i,x:l,y:u}}function bc(t,e){const n=Ne(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 yc(t,e){const n=Vt(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,i=st(t)?Zt(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=bc(t,n);else if(e==="document")r=vc(bt(t));else if(mt(e))r=yc(e,n);else{const a=xl(t);r={...e,x:e.x-a.x,y:e.y-a.y}}return Hr(r)}function Il(t,e){const n=Qt(t);return n===e||!mt(n)||Xr(n)?!1:Ye(n).position==="fixed"||Il(n,e)}function wc(t,e){const n=e.get(t);if(n)return n;let r=Mn(t,[],!1).filter(u=>mt(u)&&Ot(u)!=="body"),a=null;const i=Ye(t).position==="fixed";let l=i?Qt(t):t;for(;mt(l)&&!Xr(l);){const u=Ye(l),c=mi(l);!c&&u.position==="fixed"&&(a=null),(i?!c&&!a:!c&&u.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||hr(l)&&!c&&Il(t,l))?r=r.filter(m=>m!==l):a=u,l=Qt(l)}return e.set(t,r),r}function Cc(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const l=[...n==="clippingAncestors"?wc(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 kc(t){const{width:e,height:n}=Sl(t);return{width:e,height:n}}function Sc(t,e,n){const r=st(e),a=bt(e),i=n==="fixed",l=Vt(t,!0,i,e);let u={scrollLeft:0,scrollTop:0};const c=Et(0);if(r||!r&&!i)if((Ot(e)!=="body"||hr(a))&&(u=Jr(e)),r){const d=Vt(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!st(t)||Ye(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ol(t,e){const n=Ne(t);if(!st(t)||Pl(t))return n;let r=Wi(t,e);for(;r&&cc(r)&&Ye(r).position==="static";)r=Wi(r,e);return r&&(Ot(r)==="html"||Ot(r)==="body"&&Ye(r).position==="static"&&!mi(r))?n:r||dc(t)||n}const xc=async function(t){const e=this.getOffsetParent||Ol,n=this.getDimensions;return{reference:Sc(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}};function Pc(t){return Ye(t).direction==="rtl"}const Ar={convertOffsetParentRelativeRectToViewportRelativeRect:mc,getDocumentElement:bt,getClippingRect:Cc,getOffsetParent:Ol,getElementRects:xc,getClientRects:gc,getDimensions:kc,getScale:Zt,isElement:mt,isRTL:Pc};function Ec(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=xr(m),g=xr(a.clientWidth-(s+d)),b=xr(a.clientHeight-(m+f)),y=xr(s),w={rootMargin:-h+"px "+-g+"px "+-b+"px "+-y+"px",threshold:Ve(0,Pt(1,c))||1};let x=!0;function k(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(k,{...w,root:a.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(t)}return l(!0),i}function Ic(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?Ec(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?Vt(t):null;c&&y();function y(){const S=Vt(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 Oc=sc,Bc=ic,qi=uc,Tc=oc,_c=(t,e,n)=>{const r=new Map,a={platform:Ar,...n},i={...a.platform,_c:r};return rc(t,e,{...a,platform:i})};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const it={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},fr=t=>(...e)=>({_$litDirective$:t,values:e});let mr=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 N=fr(class extends mr{constructor(t){var e;if(super(t),t.type!==it.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 ze}});function Dc(t){return Mc(t)}function po(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Mc(t){for(let e=t;e;e=po(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=po(t);e;e=po(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 $c(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t&&("contextElement"in t?t instanceof Element:!0)}var J=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||$c(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('