@a11d/lit 0.2.8 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/Component/Component.d.ts +22 -22
  2. package/dist/Component/Component.js +35 -35
  3. package/dist/Component/index.d.ts +2 -2
  4. package/dist/Component/index.js +2 -2
  5. package/dist/Component/nothing.d.ts +2 -2
  6. package/dist/Component/nothing.js +2 -2
  7. package/dist/Controller/Controller.d.ts +9 -9
  8. package/dist/Controller/Controller.js +6 -6
  9. package/dist/Controller/index.d.ts +1 -1
  10. package/dist/Controller/index.js +1 -1
  11. package/dist/bundle.js +1 -1
  12. package/dist/event/EventDispatcher.d.ts +9 -9
  13. package/dist/event/EventDispatcher.js +1 -1
  14. package/dist/event/HTMLElementEventDispatcher.d.ts +12 -12
  15. package/dist/event/HTMLElementEventDispatcher.js +27 -27
  16. package/dist/event/PureEventDispatcher.d.ts +6 -6
  17. package/dist/event/PureEventDispatcher.js +16 -16
  18. package/dist/event/event.d.ts +1 -1
  19. package/dist/event/event.js +20 -20
  20. package/dist/event/index.d.ts +4 -4
  21. package/dist/event/index.js +4 -4
  22. package/dist/eventListener/EventListenerController.d.ts +23 -23
  23. package/dist/eventListener/EventListenerController.js +57 -57
  24. package/dist/eventListener/EventListenerTarget.d.ts +3 -3
  25. package/dist/eventListener/EventListenerTarget.js +1 -1
  26. package/dist/eventListener/eventListener.d.ts +12 -12
  27. package/dist/eventListener/eventListener.js +31 -31
  28. package/dist/eventListener/extractEventHandler.d.ts +1 -1
  29. package/dist/eventListener/extractEventHandler.js +9 -9
  30. package/dist/eventListener/index.d.ts +4 -4
  31. package/dist/eventListener/index.js +4 -4
  32. package/dist/index.d.ts +35 -35
  33. package/dist/index.js +35 -35
  34. package/dist/query/index.d.ts +3 -3
  35. package/dist/query/index.js +3 -3
  36. package/dist/query/query.d.ts +2 -2
  37. package/dist/query/query.js +9 -9
  38. package/dist/query/queryAll.d.ts +2 -2
  39. package/dist/query/queryAll.js +9 -9
  40. package/dist/query/queryAllAsNodeList.d.ts +2 -2
  41. package/dist/query/queryAllAsNodeList.js +2 -2
  42. package/dist/style/CustomPropertyStyleHandler.d.ts +5 -5
  43. package/dist/style/CustomPropertyStyleHandler.js +14 -14
  44. package/dist/style/index.d.ts +2 -2
  45. package/dist/style/index.js +2 -2
  46. package/dist/style/style.d.ts +16 -16
  47. package/dist/style/style.js +33 -32
  48. package/dist/test/ComponentTestFixture.d.ts +10 -10
  49. package/dist/test/ComponentTestFixture.js +28 -28
  50. package/dist/test/index.d.ts +1 -1
  51. package/dist/test/index.js +1 -1
  52. package/dist/tsconfig.tsbuildinfo +1 -1
  53. package/dist/types.d.ts +5 -5
  54. package/dist/types.js +1 -1
  55. package/dist/updated/index.d.ts +3 -3
  56. package/dist/updated/index.js +3 -3
  57. package/dist/updated/property.d.ts +5 -5
  58. package/dist/updated/property.js +10 -10
  59. package/dist/updated/state.d.ts +6 -6
  60. package/dist/updated/state.js +10 -10
  61. package/dist/updated/updated.d.ts +3 -3
  62. package/dist/updated/updated.js +25 -25
  63. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
- import { LitElement, PropertyValues } from 'lit';
2
- export declare const component: (tagName: string) => (classOrDescriptor: {
3
- prototype: HTMLElement;
4
- } | import("@lit/reactive-element/decorators/base.js").ClassDescriptor) => any;
5
- export declare abstract class Component extends LitElement {
6
- /** Invoked after first update i.e. render is completed */
7
- protected initialized(): void;
8
- /** Invoked every time the component is connected to the Document Object Model (DOM) */
9
- protected connected(): void;
10
- /** Invoked every time the component is disconnected from the Document Object Model (DOM) */
11
- protected disconnected(): void;
12
- /** The template rendered into renderRoot. Invoked on each update to perform rendering tasks. */
13
- protected get template(): import("lit-html").HTMLTemplateResult;
14
- /** @final */
15
- protected render(): import("lit-html").HTMLTemplateResult;
16
- /** @final */
17
- protected firstUpdated(props: PropertyValues): void;
18
- /** @final */
19
- connectedCallback(): void;
20
- /** @final */
21
- disconnectedCallback(): void;
22
- }
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ export declare const component: (tagName: string) => (classOrDescriptor: {
3
+ prototype: HTMLElement;
4
+ } | import("@lit/reactive-element/decorators/base.js").ClassDescriptor) => any;
5
+ export declare abstract class Component extends LitElement {
6
+ /** Invoked after first update i.e. render is completed */
7
+ protected initialized(): void;
8
+ /** Invoked every time the component is connected to the Document Object Model (DOM) */
9
+ protected connected(): void;
10
+ /** Invoked every time the component is disconnected from the Document Object Model (DOM) */
11
+ protected disconnected(): void;
12
+ /** The template rendered into renderRoot. Invoked on each update to perform rendering tasks. */
13
+ protected get template(): import("lit-html").HTMLTemplateResult;
14
+ /** @final */
15
+ protected render(): import("lit-html").HTMLTemplateResult;
16
+ /** @final */
17
+ protected firstUpdated(props: PropertyValues): void;
18
+ /** @final */
19
+ connectedCallback(): void;
20
+ /** @final */
21
+ disconnectedCallback(): void;
22
+ }
@@ -1,35 +1,35 @@
1
- import { LitElement } from 'lit';
2
- import { customElement } from 'lit/decorators.js';
3
- import { nothing } from './nothing.js';
4
- export const component = customElement;
5
- export class Component extends LitElement {
6
- /** Invoked after first update i.e. render is completed */
7
- initialized() { }
8
- /** Invoked every time the component is connected to the Document Object Model (DOM) */
9
- connected() { }
10
- /** Invoked every time the component is disconnected from the Document Object Model (DOM) */
11
- disconnected() { }
12
- /** The template rendered into renderRoot. Invoked on each update to perform rendering tasks. */
13
- get template() {
14
- return nothing;
15
- }
16
- /** @final */
17
- render() {
18
- return this.template;
19
- }
20
- /** @final */
21
- firstUpdated(props) {
22
- super.firstUpdated(props);
23
- this.initialized();
24
- }
25
- /** @final */
26
- connectedCallback() {
27
- super.connectedCallback();
28
- this.connected();
29
- }
30
- /** @final */
31
- disconnectedCallback() {
32
- super.disconnectedCallback();
33
- this.disconnected();
34
- }
35
- }
1
+ import { LitElement } from 'lit';
2
+ import { customElement } from 'lit/decorators.js';
3
+ import { nothing } from './nothing.js';
4
+ export const component = customElement;
5
+ export class Component extends LitElement {
6
+ /** Invoked after first update i.e. render is completed */
7
+ initialized() { }
8
+ /** Invoked every time the component is connected to the Document Object Model (DOM) */
9
+ connected() { }
10
+ /** Invoked every time the component is disconnected from the Document Object Model (DOM) */
11
+ disconnected() { }
12
+ /** The template rendered into renderRoot. Invoked on each update to perform rendering tasks. */
13
+ get template() {
14
+ return nothing;
15
+ }
16
+ /** @final */
17
+ render() {
18
+ return this.template;
19
+ }
20
+ /** @final */
21
+ firstUpdated(props) {
22
+ super.firstUpdated(props);
23
+ this.initialized();
24
+ }
25
+ /** @final */
26
+ connectedCallback() {
27
+ super.connectedCallback();
28
+ this.connected();
29
+ }
30
+ /** @final */
31
+ disconnectedCallback() {
32
+ super.disconnectedCallback();
33
+ this.disconnected();
34
+ }
35
+ }
@@ -1,2 +1,2 @@
1
- export * from './nothing.js';
2
- export * from './Component.js';
1
+ export * from './nothing.js';
2
+ export * from './Component.js';
@@ -1,2 +1,2 @@
1
- export * from './nothing.js';
2
- export * from './Component.js';
1
+ export * from './nothing.js';
2
+ export * from './Component.js';
@@ -1,2 +1,2 @@
1
- import { HTMLTemplateResult } from 'lit';
2
- export declare const nothing: HTMLTemplateResult;
1
+ import { HTMLTemplateResult } from 'lit';
2
+ export declare const nothing: HTMLTemplateResult;
@@ -1,2 +1,2 @@
1
- import { nothing as litNothing } from 'lit';
2
- export const nothing = litNothing;
1
+ import { nothing as litNothing } from 'lit';
2
+ export const nothing = litNothing;
@@ -1,9 +1,9 @@
1
- import { ReactiveController, ReactiveControllerHost } from 'lit';
2
- export declare abstract class Controller implements ReactiveController {
3
- protected readonly host: ReactiveControllerHost;
4
- constructor(host: ReactiveControllerHost);
5
- hostConnected?(): void;
6
- hostDisconnected?(): void;
7
- hostUpdate?(): void;
8
- hostUpdated?(): void;
9
- }
1
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ export declare abstract class Controller implements ReactiveController {
3
+ protected readonly host: ReactiveControllerHost;
4
+ constructor(host: ReactiveControllerHost);
5
+ hostConnected?(): void;
6
+ hostDisconnected?(): void;
7
+ hostUpdate?(): void;
8
+ hostUpdated?(): void;
9
+ }
@@ -1,6 +1,6 @@
1
- export class Controller {
2
- constructor(host) {
3
- this.host = host;
4
- this.host.addController(this);
5
- }
6
- }
1
+ export class Controller {
2
+ constructor(host) {
3
+ this.host = host;
4
+ this.host.addController(this);
5
+ }
6
+ }
@@ -1 +1 @@
1
- export * from './Controller.js';
1
+ export * from './Controller.js';
@@ -1 +1 @@
1
- export * from './Controller.js';
1
+ export * from './Controller.js';
package/dist/bundle.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={d:(e,s)=>{for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AsyncDirective:()=>te,AsyncReplaceDirective:()=>ie,CSSResult:()=>o,Component:()=>Ne,Controller:()=>ke,CustomPropertyStyleHandler:()=>ze,Directive:()=>Wt,EventListenerController:()=>Xe,HTMLElementEventDispatcher:()=>Fe,LitElement:()=>ct,PartType:()=>Yt,PureEventDispatcher:()=>Qe,ReactiveElement:()=>g,StyleDirective:()=>Be,TemplateResultType:()=>Ht,UnsafeHTMLDirective:()=>Se,UntilDirective:()=>Oe,UpdatingElement:()=>at,_$LE:()=>dt,_$LH:()=>it,adoptStyles:()=>c,asyncAppend:()=>re,asyncReplace:()=>ne,cache:()=>oe,choose:()=>le,classMap:()=>ae,clearPart:()=>qt,component:()=>Re,createRef:()=>ye,css:()=>a,defaultConverter:()=>$,directive:()=>Kt,event:()=>ts,eventListener:()=>Je,eventOptions:()=>$t,extractEventHandler:()=>Ge,extractEventTargets:()=>We,extractOptions:()=>Ze,getCommittedValue:()=>Vt,getCompatibleStyle:()=>h,getDirectiveClass:()=>Nt,guard:()=>he,html:()=>I,ifDefined:()=>de,insertPart:()=>jt,isDirectiveResult:()=>Rt,isPrimitive:()=>Ut,isServer:()=>ut,isSingleExpression:()=>kt,isTemplateResult:()=>Mt,join:()=>ue,keyed:()=>pe,literal:()=>St,live:()=>ve,map:()=>fe,noChange:()=>V,notEqual:()=>y,nothing:()=>Me,property:()=>Ye,query:()=>Le,queryAll:()=>je,queryAllAsNodeList:()=>De,queryAssignedElements:()=>At,queryAssignedNodes:()=>mt,queryAsync:()=>yt,range:()=>$e,ref:()=>Ae,removePart:()=>zt,render:()=>rt,repeat:()=>be,setChildPartValue:()=>Dt,setCommittedValue:()=>Bt,state:()=>Ke,staticHtml:()=>Pt,staticSvg:()=>xt,style:()=>Ve,styleHandler:()=>Ie,styleMap:()=>Ee,supportsAdoptingStyleSheets:()=>i,svg:()=>B,templateContent:()=>Ce,unsafeCSS:()=>l,unsafeHTML:()=>we,unsafeSVG:()=>Pe,unsafeStatic:()=>Ct,until:()=>Ue,updated:()=>qe,when:()=>He,withStatic:()=>Tt});const s=window,i=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class o{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}}const l=t=>new o("string"==typeof t?t:t+"",void 0,n),a=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new o(s,t,n)},c=(t,e)=>{i?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=s.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},h=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return l(e)})(t):t;var d;const u=window,p=u.trustedTypes,v=p?p.emptyScript:"",f=u.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},y=(t,e)=>e!==t&&(e==e||t==t),_={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:y};class g extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,s)=>{const i=this._$Ep(s,e);void 0!==i&&(this._$Ev.set(i,s),t.push(i))})),t}static createProperty(t,e=_){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of e)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Ep(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,s;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return c(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=_){var i;const n=this.constructor._$Ep(t,s);if(void 0!==n&&!0===s.reflect){const r=(void 0!==(null===(i=s.converter)||void 0===i?void 0:i.toAttribute)?s.converter:$).toAttribute(e,s.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,n=i._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=i.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:$;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||y)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(s)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var A;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:g}),(null!==(d=u.reactiveElementVersions)&&void 0!==d?d:u.reactiveElementVersions=[]).push("1.6.1");const m=window,b=m.trustedTypes,E=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,S="?"+C,w=`<${S}>`,T=document,P=(t="")=>T.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,U=t=>O(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,R=/>/g,N=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),k=/'/g,L=/"/g,j=/^(?:script|style|textarea|title)$/i,D=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),I=D(1),B=D(2),V=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),q=new WeakMap,Y=T.createTreeWalker(T,129,null,!1),K=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":"",o=H;for(let e=0;e<s;e++){const s=t[e];let l,a,c=-1,h=0;for(;h<s.length&&(o.lastIndex=h,a=o.exec(s),null!==a);)h=o.lastIndex,o===H?"!--"===a[1]?o=M:void 0!==a[1]?o=R:void 0!==a[2]?(j.test(a[2])&&(n=RegExp("</"+a[2],"g")),o=N):void 0!==a[3]&&(o=N):o===N?">"===a[0]?(o=null!=n?n:H,c=-1):void 0===a[1]?c=-2:(c=o.lastIndex-a[2].length,l=a[1],o=void 0===a[3]?N:'"'===a[3]?L:k):o===L||o===k?o=N:o===M||o===R?o=H:(o=N,n=void 0);const d=o===N&&t[e+1].startsWith("/>")?" ":"";r+=o===H?s+w:c>=0?(i.push(l),s.slice(0,c)+"$lit$"+s.slice(c)+C+d):s+C+(-2===c?(i.push(void 0),e):d)}const l=r+(t[s]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(l):l,i]};class W{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0;const o=t.length-1,l=this.parts,[a,c]=K(t,e);if(this.el=W.createElement(a,s),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=Y.nextNode())&&l.length<o;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(C)){const s=c[r++];if(t.push(e),void 0!==s){const t=i.getAttribute(s.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(s);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?tt:"@"===e[1]?et:G})}else l.push({type:6,index:n})}for(const e of t)i.removeAttribute(e)}if(j.test(i.tagName)){const t=i.textContent.split(C),e=t.length-1;if(e>0){i.textContent=b?b.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],P()),Y.nextNode(),l.push({type:2,index:++n});i.append(t[e],P())}}}else if(8===i.nodeType)if(i.data===S)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(C,t+1));)l.push({type:7,index:n}),t+=C.length-1}n++}}static createElement(t,e){const s=T.createElement("template");return s.innerHTML=t,s}}function X(t,e,s=t,i){var n,r,o,l;if(e===V)return e;let a=void 0!==i?null===(n=s._$Co)||void 0===n?void 0:n[i]:s._$Cl;const c=x(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,s,i)),void 0!==i?(null!==(o=(l=s)._$Co)&&void 0!==o?o:l._$Co=[])[i]=a:s._$Cl=a),void 0!==a&&(e=X(t,a._$AS(t,e.values),a,i)),e}class Z{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:s},parts:i}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:T).importNode(s,!0);Y.currentNode=n;let r=Y.nextNode(),o=0,l=0,a=i[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new J(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new st(r,this,t)),this.u.push(e),a=i[++l]}o!==(null==a?void 0:a.index)&&(r=Y.nextNode(),o++)}return n}p(t){let e=0;for(const s of this.u)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class J{constructor(t,e,s,i){var n;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cm=null===(n=null==i?void 0:i.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),x(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==V&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):U(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==z&&x(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=W.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(s);else{const t=new Z(n,this),e=t.v(this.options);t.p(s),this.T(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new W(t)),e}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new J(this.O(P()),this.O(P()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,s,i,n){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=X(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==V,r&&(this._$AH=t);else{const i=t;let o,l;for(t=n[0],o=0;o<n.length-1;o++)l=X(this,i[s+o],e,o),l===V&&(l=this._$AH[o]),r||(r=!x(l)||l!==this._$AH[o]),l===z?t=z:t!==z&&(t+=(null!=l?l:"")+n[o+1]),this._$AH[o]=l}r&&!i&&this.j(t)}j(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===z?void 0:t}}const F=b?b.emptyScript:"";class tt extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==z?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class et extends G{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var s;if((t=null!==(s=X(this,t,e,0))&&void 0!==s?s:z)===V)return;const i=this._$AH,n=t===z&&i!==z||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==z&&(i===z||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const it={P:"$lit$",A:C,M:S,C:1,L:K,R:Z,D:U,V:X,I:J,H:G,N:tt,U:et,B:Q,F:st},nt=m.litHtmlPolyfillSupport;null==nt||nt(W,J),(null!==(A=m.litHtmlVersions)&&void 0!==A?A:m.litHtmlVersions=[]).push("2.6.1");const rt=(t,e,s)=>{var i,n;const r=null!==(i=null==s?void 0:s.renderBefore)&&void 0!==i?i:e;let o=r._$litPart$;if(void 0===o){const t=null!==(n=null==s?void 0:s.renderBefore)&&void 0!==n?n:null;r._$litPart$=o=new J(e.insertBefore(P(),t),t,void 0,null!=s?s:{})}return o._$AI(t),o};var ot,lt;const at=g;class ct extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=rt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return V}}ct.finalized=!0,ct._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:ct});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:ct});const dt={_$AK:(t,e,s)=>{t._$AK(e,s)},_$AL:t=>t._$AL};(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");const ut=!1,pt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(s){s.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(s){s.createProperty(e.key,t)}};function vt(t){return(e,s)=>void 0!==s?((t,e,s)=>{e.constructor.createProperty(s,t)})(t,e,s):pt(t,e)}const ft=({finisher:t,descriptor:e})=>(s,i)=>{var n;if(void 0===i){const i=null!==(n=s.originalKey)&&void 0!==n?n:s.key,r=null!=e?{kind:"method",placement:"prototype",key:i,descriptor:e(s.key)}:{...s,key:i};return null!=t&&(r.finisher=function(e){t(e,i)}),r}{const n=s.constructor;void 0!==e&&Object.defineProperty(s,i,e(i)),null==t||t(n,i)}};function $t(t){return ft({finisher:(e,s)=>{Object.assign(e.prototype[s],t)}})}function yt(t){return ft({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}var _t;const gt=null!=(null===(_t=window.HTMLSlotElement)||void 0===_t?void 0:_t.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function At(t){const{slot:e,selector:s}=null!=t?t:{};return ft({descriptor:i=>({get(){var i;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(n),o=null!=r?gt(r,t):[];return s?o.filter((t=>t.matches(s))):o},enumerable:!0,configurable:!0})})}function mt(t,e,s){let i,n=t;return"object"==typeof t?(n=t.slot,i=t):i={flatten:e},s?At({slot:n,flatten:e,selector:s}):ft({descriptor:t=>({get(){var t,e;const s="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(s);return null!==(e=null==r?void 0:r.assignedNodes(i))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}const bt=Symbol.for(""),Et=t=>{if((null==t?void 0:t.r)===bt)return null==t?void 0:t._$litStatic$},Ct=t=>({_$litStatic$:t,r:bt}),St=(t,...e)=>({_$litStatic$:e.reduce(((e,s,i)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[i+1]),t[0]),r:bt}),wt=new Map,Tt=t=>(e,...s)=>{const i=s.length;let n,r;const o=[],l=[];let a,c=0,h=!1;for(;c<i;){for(a=e[c];c<i&&void 0!==(r=s[c],n=Et(r));)a+=n+e[++c],h=!0;l.push(r),o.push(a),c++}if(c===i&&o.push(e[i]),h){const t=o.join("$$lit$$");void 0===(e=wt.get(t))&&(o.raw=o,wt.set(t,e=o)),s=l}return t(e,...s)},Pt=Tt(I),xt=Tt(B),{I:Ot}=it,Ut=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ht={HTML:1,SVG:2},Mt=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,Rt=t=>void 0!==(null==t?void 0:t._$litDirective$),Nt=t=>null==t?void 0:t._$litDirective$,kt=t=>void 0===t.strings,Lt=()=>document.createComment(""),jt=(t,e,s)=>{var i;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===s){const e=n.insertBefore(Lt(),r),i=n.insertBefore(Lt(),r);s=new Ot(e,i,t,t.options)}else{const e=s._$AB.nextSibling,o=s._$AM,l=o!==t;if(l){let e;null===(i=s._$AQ)||void 0===i||i.call(s,t),s._$AM=t,void 0!==s._$AP&&(e=t._$AU)!==o._$AU&&s._$AP(e)}if(e!==r||l){let t=s._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return s},Dt=(t,e,s=t)=>(t._$AI(e,s),t),It={},Bt=(t,e=It)=>t._$AH=e,Vt=t=>t._$AH,zt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let s=t._$AA;const i=t._$AB.nextSibling;for(;s!==i;){const t=s.nextSibling;s.remove(),s=t}},qt=t=>{t._$AR()},Yt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Kt=t=>(...e)=>({_$litDirective$:t,values:e});class Wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Xt=(t,e)=>{var s,i;const n=t._$AN;if(void 0===n)return!1;for(const t of n)null===(i=(s=t)._$AO)||void 0===i||i.call(s,e,!1),Xt(t,e);return!0},Zt=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===(null==s?void 0:s.size))},Jt=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),Ft(e)}};function Gt(t){void 0!==this._$AN?(Zt(this),this._$AM=t,Jt(this)):this._$AM=t}function Qt(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)Xt(i[t],!1),Zt(i[t]);else null!=i&&(Xt(i,!1),Zt(i));else Xt(this,t)}const Ft=t=>{var e,s,i,n;t.type==Yt.CHILD&&(null!==(e=(i=t)._$AP)&&void 0!==e||(i._$AP=Qt),null!==(s=(n=t)._$AQ)&&void 0!==s||(n._$AQ=Gt))};class te extends Wt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Jt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?null===(s=this.reconnected)||void 0===s||s.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),e&&(Xt(this,t),Zt(this))}setValue(t){if(kt(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class ee{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}}class se{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){var t;null!==(t=this.Z)&&void 0!==t||(this.Z=new Promise((t=>this.q=t)))}resume(){var t;null===(t=this.q)||void 0===t||t.call(this),this.Z=this.q=void 0}}class ie extends te{constructor(){super(...arguments),this._$CK=new ee(this),this._$CX=new se}render(t,e){return V}update(t,[e,s]){if(this.isConnected||this.disconnected(),e===this._$CJ)return;this._$CJ=e;let i=0;const{_$CK:n,_$CX:r}=this;return(async(t,e)=>{for await(const s of t)if(!1===await e(s))return})(e,(async t=>{for(;r.get();)await r.get();const o=n.deref();if(void 0!==o){if(o._$CJ!==e)return!1;void 0!==s&&(t=s(t,i)),o.commitValue(t,i),i++}return!0})),V}commitValue(t,e){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}const ne=Kt(ie),re=Kt(class extends ie{constructor(t){if(super(t),t.type!==Yt.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$Ctt=t,super.update(t,e)}commitValue(t,e){0===e&&qt(this._$Ctt);const s=jt(this._$Ctt);Dt(s,t)}}),oe=Kt(class extends Wt{constructor(t){super(t),this.et=new WeakMap}render(t){return[t]}update(t,[e]){if(Mt(this.it)&&(!Mt(e)||this.it.strings!==e.strings)){const e=Vt(t).pop();let s=this.et.get(this.it.strings);if(void 0===s){const t=document.createDocumentFragment();s=rt(z,t),s.setConnected(!1),this.et.set(this.it.strings,s)}Bt(s,[e]),jt(s,void 0,e)}if(Mt(e)){if(!Mt(this.it)||this.it.strings!==e.strings){const s=this.et.get(e.strings);if(void 0!==s){const e=Vt(s).pop();qt(t),jt(t,void 0,e),Bt(t,[e])}}this.it=e}else this.it=void 0;return this.render(e)}}),le=(t,e,s)=>{for(const s of e)if(s[0]===t)return(0,s[1])();return null==s?void 0:s()},ae=Kt(class extends Wt{constructor(t){var e;if(super(t),t.type!==Yt.ATTRIBUTE||"class"!==t.name||(null===(e=t.strings)||void 0===e?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 s,i;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(s=this.st)||void 0===s?void 0:s.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const s=!!e[t];s===this.nt.has(t)||(null===(i=this.st)||void 0===i?void 0:i.has(t))||(s?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return V}}),ce={},he=Kt(class extends Wt{constructor(){super(...arguments),this.ot=ce}render(t,e){return e()}update(t,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every(((t,e)=>t===this.ot[e])))return V}else if(this.ot===e)return V;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}}),de=t=>null!=t?t:z;function*ue(t,e){const s="function"==typeof e;if(void 0!==t){let i=-1;for(const n of t)i>-1&&(yield s?e(i):e),i++,yield n}}const pe=Kt(class extends Wt{constructor(){super(...arguments),this.key=z}render(t,e){return this.key=t,e}update(t,[e,s]){return e!==this.key&&(Bt(t),this.key=e),s}}),ve=Kt(class extends Wt{constructor(t){if(super(t),t.type!==Yt.PROPERTY&&t.type!==Yt.ATTRIBUTE&&t.type!==Yt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!kt(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===V||e===z)return e;const s=t.element,i=t.name;if(t.type===Yt.PROPERTY){if(e===s[i])return V}else if(t.type===Yt.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(i))return V}else if(t.type===Yt.ATTRIBUTE&&s.getAttribute(i)===e+"")return V;return Bt(t),e}});function*fe(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}function*$e(t,e,s=1){const i=void 0===e?0:t;null!=e||(e=t);for(let t=i;s>0?t<e:e<t;t+=s)yield t}const ye=()=>new _e;class _e{}const ge=new WeakMap,Ae=Kt(class extends te{render(t){return z}update(t,[e]){var s;const i=e!==this.Y;return i&&void 0!==this.Y&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.Y=e,this.dt=null===(s=t.options)||void 0===s?void 0:s.host,this.rt(this.ct=t.element)),z}rt(t){var e;if("function"==typeof this.Y){const s=null!==(e=this.dt)&&void 0!==e?e:globalThis;let i=ge.get(s);void 0===i&&(i=new WeakMap,ge.set(s,i)),void 0!==i.get(this.Y)&&this.Y.call(this.dt,void 0),i.set(this.Y,t),void 0!==t&&this.Y.call(this.dt,t)}else this.Y.value=t}get lt(){var t,e,s;return"function"==typeof this.Y?null===(e=ge.get(null!==(t=this.dt)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.Y):null===(s=this.Y)||void 0===s?void 0:s.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),me=(t,e,s)=>{const i=new Map;for(let n=e;n<=s;n++)i.set(t[n],n);return i},be=Kt(class extends Wt{constructor(t){if(super(t),t.type!==Yt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const n=[],r=[];let o=0;for(const e of t)n[o]=i?i(e,o):o,r[o]=s(e,o),o++;return{values:r,keys:n}}render(t,e,s){return this.ht(t,e,s).values}update(t,[e,s,i]){var n;const r=Vt(t),{values:o,keys:l}=this.ht(e,s,i);if(!Array.isArray(r))return this.ut=l,o;const a=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],c=[];let h,d,u=0,p=r.length-1,v=0,f=o.length-1;for(;u<=p&&v<=f;)if(null===r[u])u++;else if(null===r[p])p--;else if(a[u]===l[v])c[v]=Dt(r[u],o[v]),u++,v++;else if(a[p]===l[f])c[f]=Dt(r[p],o[f]),p--,f--;else if(a[u]===l[f])c[f]=Dt(r[u],o[f]),jt(t,c[f+1],r[u]),u++,f--;else if(a[p]===l[v])c[v]=Dt(r[p],o[v]),jt(t,r[u],r[p]),p--,v++;else if(void 0===h&&(h=me(l,v,f),d=me(a,u,p)),h.has(a[u]))if(h.has(a[p])){const e=d.get(l[v]),s=void 0!==e?r[e]:null;if(null===s){const e=jt(t,r[u]);Dt(e,o[v]),c[v]=e}else c[v]=Dt(s,o[v]),jt(t,r[u],s),r[e]=null;v++}else zt(r[p]),p--;else zt(r[u]),u++;for(;v<=f;){const e=jt(t,c[f+1]);Dt(e,o[v]),c[v++]=e}for(;u<=p;){const t=r[u++];null!==t&&zt(t)}return this.ut=l,Bt(t,c),V}}),Ee=Kt(class extends Wt{constructor(t){var e;if(super(t),t.type!==Yt.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in e){const i=e[t];null!=i&&(this.vt.add(t),t.includes("-")?s.setProperty(t,i):s[t]=i)}return V}}),Ce=Kt(class extends Wt{constructor(t){if(super(t),t.type!==Yt.CHILD)throw Error("templateContent can only be used in child bindings")}render(t){return this.ft===t?V:(this.ft=t,document.importNode(t.content,!0))}});class Se extends Wt{constructor(t){if(super(t),this.it=z,t.type!==Yt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===z||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Se.directiveName="unsafeHTML",Se.resultType=1;const we=Kt(Se);class Te extends Se{}Te.directiveName="unsafeSVG",Te.resultType=2;const Pe=Kt(Te),xe=t=>!Ut(t)&&"function"==typeof t.then;class Oe extends te{constructor(){super(...arguments),this._$Cwt=1073741823,this._$Cyt=[],this._$CK=new ee(this),this._$CX=new se}render(...t){var e;return null!==(e=t.find((t=>!xe(t))))&&void 0!==e?e:V}update(t,e){const s=this._$Cyt;let i=s.length;this._$Cyt=e;const n=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$Cwt);t++){const o=e[t];if(!xe(o))return this._$Cwt=t,o;t<i&&o===s[t]||(this._$Cwt=1073741823,i=0,Promise.resolve(o).then((async t=>{for(;r.get();)await r.get();const e=n.deref();if(void 0!==e){const s=e._$Cyt.indexOf(o);s>-1&&s<e._$Cwt&&(e._$Cwt=s,e.setValue(t))}})))}return V}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}const Ue=Kt(Oe);function He(t,e,s){return t?e():null==s?void 0:s()}const Me=z,Re=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:s,elements:i}=e;return{kind:s,elements:i,finisher(e){customElements.define(t,e)}}})(t,e);class Ne extends ct{initialized(){}connected(){}disconnected(){}get template(){return Me}render(){return this.template}firstUpdated(t){super.firstUpdated(t),this.initialized()}connectedCallback(){super.connectedCallback(),this.connected()}disconnectedCallback(){super.disconnectedCallback(),this.disconnected()}}class ke{constructor(t){this.host=t,this.host.addController(this)}}const Le=t=>(e,s)=>{Object.defineProperty(e,s,{get(){return this.renderRoot?.querySelector(t)??void 0}})},je=t=>(e,s)=>{Object.defineProperty(e,s,{get(){return[...this.renderRoot?.querySelectorAll(t)??[]]}})},De=function(t){return ft({descriptor:e=>({get(){var e,s;return null!==(s=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==s?s:[]},enumerable:!0,configurable:!0})})},Ie=()=>t=>{const e=new t;Be.handlers.add(e)};class Be extends Wt{constructor(t){if(super(t),t.type!==Yt.ELEMENT)throw new Error("style directive can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,s]of Object.entries(t)){([...Be.handlers].find((t=>t.handles(this.element,[e,s])))??Be.defaultHandler).apply(this.element,[e,s])}}}Be.handlers=new Set,Be.defaultHandler=new class{handles(){return!0}apply(t,[e,s]){t.style[e]=null==s?"":s}};const Ve=Kt(Be);Object.create;Object.create;let ze=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,s]){t.style.setProperty(e,s)}};ze=function(t,e,s,i){var n,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(r<3?n(o):r>3?n(e,s,o):n(e,s))||o);return r>3&&o&&Object.defineProperty(e,s,o),o}([Ie()],ze);const qe=t=>(e,s)=>{e.constructor.addInitializer((e=>e.addController(new class extends ke{constructor(){super(e),this.hasChanged=!1}get value(){return this.host[s]}hostUpdate(){this.value!==this.oldValue&&(this.hasChanged=!0)}hostUpdated(){this.hasChanged&&(this.hasChanged=!1,t.call(this.host,this.value,this.oldValue),this.oldValue=this.value)}})))},Ye=t=>(e,s)=>(t?.updated&&qe(t.updated)(e,s),vt(t)(e,s)),Ke=t=>(e,s)=>(t?.updated&&qe(t.updated)(e,s),function(t){return vt({...t,state:!0})}(t)(e,s));async function We(t){const e=t=>Symbol.iterator in t?[...t]:[t];if(void 0===t)return e(this);if("function"==typeof t){let s=t.call(this);if(s instanceof Promise&&(s=await s),s instanceof EventTarget)return e(s);if(Symbol.iterator in s&&[...s].every((t=>t instanceof EventTarget)))return e(s);throw new TypeError(`${this.constructor}.target is not an EventTarget`)}return e(t??this)}class Xe extends ke{constructor(t,...e){super(t),this.host=t,this.options=function(t){const e="string"==typeof t[0];return{target:e?void 0:t[0].target,type:e?t[0]:t[0].type,listener:e?t[1]:t[0].listener,options:e?t[2]:t[0].options}}(e)}async subscribe(){const t=await We.call(this.host,this.options.target);for(const e of t)e.removeEventListener(this.options.type,this.options.listener,this.options.options)}async unsubscribe(){const t=await We.call(this.host,this.options.target);for(const e of t)e?.addEventListener(this.options.type,this.options.listener,this.options.options)}async hostDisconnected(){await this.subscribe()}async hostConnected(){await this.unsubscribe()}}function Ze(t){const e=(t=>"string"==typeof t[0])(t);return{type:e?t[0]:t[0].type,target:e?void 0:t[0].target,options:e?t[1]:t[0].options}}const Je=(...t)=>(e,s,i)=>{e.constructor.addInitializer((e=>{e.addController(new class extends Xe{constructor(){const{type:s,target:i,options:n}=Ze(t);super(e,{type:s,target:i,options:n,listener:void 0})}hostConnected(){const t=i?"function"==typeof i.get?i.get:i.value:Object.getOwnPropertyDescriptor(e,s)?.value;return this.options.listener=t.bind(e),super.hostConnected()}})}))},Ge=t=>5===t.type?t._$committedValue.bind(t.element):"function"==typeof t?t:t.handleEvent;class Qe{constructor(){this.handlers=new Set}subscribe(t){this.handlers.add(t)}unsubscribe(t){this.handlers.delete(t)}dispatch(t){for(const e of this.handlers)e(t)}}class Fe{constructor(t,e,s){this.element=t,this.type=e,this.options=s,this.handlersMap=new Map}dispatch(t){this.element.dispatchEvent(t instanceof CustomEvent?t:new CustomEvent(this.type,{detail:t,...this.options}))}subscribe(t){if(!1===this.handlersMap.has(t)){const e=e=>t(e.detail);this.element.addEventListener(this.type,e),this.handlersMap.set(t,e)}}unsubscribe(t){const e=this.handlersMap.get(t);e&&this.element.removeEventListener(this.type,e),this.handlersMap.delete(t)}}function ts(t){return(e,s)=>{if(void 0===s)return;const i=`$${s}Event$`;Object.defineProperty(e,s,{get(){return this[i]||(this[i]=this instanceof HTMLElement?new Fe(this,s,t):new Qe),this[i]}})}}self.Lit=e})();
1
+ (()=>{"use strict";var t={d:(e,s)=>{for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AsyncDirective:()=>te,AsyncReplaceDirective:()=>ie,CSSResult:()=>o,Component:()=>Ne,Controller:()=>ke,CustomPropertyStyleHandler:()=>ze,Directive:()=>Wt,EventListenerController:()=>Xe,HTMLElementEventDispatcher:()=>Fe,LitElement:()=>ct,PartType:()=>Yt,PureEventDispatcher:()=>Qe,ReactiveElement:()=>g,StyleDirective:()=>Be,TemplateResultType:()=>Ht,UnsafeHTMLDirective:()=>Se,UntilDirective:()=>Oe,UpdatingElement:()=>at,_$LE:()=>dt,_$LH:()=>it,adoptStyles:()=>c,asyncAppend:()=>re,asyncReplace:()=>ne,cache:()=>oe,choose:()=>le,classMap:()=>ae,clearPart:()=>qt,component:()=>Re,createRef:()=>ye,css:()=>a,defaultConverter:()=>$,directive:()=>Kt,event:()=>ts,eventListener:()=>Je,eventOptions:()=>$t,extractEventHandler:()=>Ge,extractEventTargets:()=>We,extractOptions:()=>Ze,getCommittedValue:()=>Vt,getCompatibleStyle:()=>h,getDirectiveClass:()=>Nt,guard:()=>he,html:()=>I,ifDefined:()=>de,insertPart:()=>jt,isDirectiveResult:()=>Rt,isPrimitive:()=>Ut,isServer:()=>ut,isSingleExpression:()=>kt,isTemplateResult:()=>Mt,join:()=>ue,keyed:()=>pe,literal:()=>St,live:()=>ve,map:()=>fe,noChange:()=>V,notEqual:()=>y,nothing:()=>Me,property:()=>Ye,query:()=>Le,queryAll:()=>je,queryAllAsNodeList:()=>De,queryAssignedElements:()=>At,queryAssignedNodes:()=>mt,queryAsync:()=>yt,range:()=>$e,ref:()=>Ae,removePart:()=>zt,render:()=>rt,repeat:()=>be,setChildPartValue:()=>Dt,setCommittedValue:()=>Bt,state:()=>Ke,staticHtml:()=>Pt,staticSvg:()=>xt,style:()=>Ve,styleHandler:()=>Ie,styleMap:()=>Ee,supportsAdoptingStyleSheets:()=>i,svg:()=>B,templateContent:()=>Ce,unsafeCSS:()=>l,unsafeHTML:()=>we,unsafeSVG:()=>Pe,unsafeStatic:()=>Ct,until:()=>Ue,updated:()=>qe,when:()=>He,withStatic:()=>Tt});const s=window,i=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class o{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}}const l=t=>new o("string"==typeof t?t:t+"",void 0,n),a=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new o(s,t,n)},c=(t,e)=>{i?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=s.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},h=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return l(e)})(t):t;var d;const u=window,p=u.trustedTypes,v=p?p.emptyScript:"",f=u.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},y=(t,e)=>e!==t&&(e==e||t==t),_={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:y};class g extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,s)=>{const i=this._$Ep(s,e);void 0!==i&&(this._$Ev.set(i,s),t.push(i))})),t}static createProperty(t,e=_){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of e)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Ep(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,s;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return c(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=_){var i;const n=this.constructor._$Ep(t,s);if(void 0!==n&&!0===s.reflect){const r=(void 0!==(null===(i=s.converter)||void 0===i?void 0:i.toAttribute)?s.converter:$).toAttribute(e,s.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,n=i._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=i.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:$;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||y)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(s)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var A;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:g}),(null!==(d=u.reactiveElementVersions)&&void 0!==d?d:u.reactiveElementVersions=[]).push("1.6.1");const m=window,b=m.trustedTypes,E=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,S="?"+C,w=`<${S}>`,T=document,P=(t="")=>T.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,U=t=>O(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,R=/>/g,N=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),k=/'/g,L=/"/g,j=/^(?:script|style|textarea|title)$/i,D=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),I=D(1),B=D(2),V=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),q=new WeakMap,Y=T.createTreeWalker(T,129,null,!1),K=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":"",o=H;for(let e=0;e<s;e++){const s=t[e];let l,a,c=-1,h=0;for(;h<s.length&&(o.lastIndex=h,a=o.exec(s),null!==a);)h=o.lastIndex,o===H?"!--"===a[1]?o=M:void 0!==a[1]?o=R:void 0!==a[2]?(j.test(a[2])&&(n=RegExp("</"+a[2],"g")),o=N):void 0!==a[3]&&(o=N):o===N?">"===a[0]?(o=null!=n?n:H,c=-1):void 0===a[1]?c=-2:(c=o.lastIndex-a[2].length,l=a[1],o=void 0===a[3]?N:'"'===a[3]?L:k):o===L||o===k?o=N:o===M||o===R?o=H:(o=N,n=void 0);const d=o===N&&t[e+1].startsWith("/>")?" ":"";r+=o===H?s+w:c>=0?(i.push(l),s.slice(0,c)+"$lit$"+s.slice(c)+C+d):s+C+(-2===c?(i.push(void 0),e):d)}const l=r+(t[s]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(l):l,i]};class W{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0;const o=t.length-1,l=this.parts,[a,c]=K(t,e);if(this.el=W.createElement(a,s),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=Y.nextNode())&&l.length<o;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(C)){const s=c[r++];if(t.push(e),void 0!==s){const t=i.getAttribute(s.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(s);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?tt:"@"===e[1]?et:G})}else l.push({type:6,index:n})}for(const e of t)i.removeAttribute(e)}if(j.test(i.tagName)){const t=i.textContent.split(C),e=t.length-1;if(e>0){i.textContent=b?b.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],P()),Y.nextNode(),l.push({type:2,index:++n});i.append(t[e],P())}}}else if(8===i.nodeType)if(i.data===S)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(C,t+1));)l.push({type:7,index:n}),t+=C.length-1}n++}}static createElement(t,e){const s=T.createElement("template");return s.innerHTML=t,s}}function X(t,e,s=t,i){var n,r,o,l;if(e===V)return e;let a=void 0!==i?null===(n=s._$Co)||void 0===n?void 0:n[i]:s._$Cl;const c=x(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,s,i)),void 0!==i?(null!==(o=(l=s)._$Co)&&void 0!==o?o:l._$Co=[])[i]=a:s._$Cl=a),void 0!==a&&(e=X(t,a._$AS(t,e.values),a,i)),e}class Z{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:s},parts:i}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:T).importNode(s,!0);Y.currentNode=n;let r=Y.nextNode(),o=0,l=0,a=i[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new J(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new st(r,this,t)),this.u.push(e),a=i[++l]}o!==(null==a?void 0:a.index)&&(r=Y.nextNode(),o++)}return n}p(t){let e=0;for(const s of this.u)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class J{constructor(t,e,s,i){var n;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cm=null===(n=null==i?void 0:i.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),x(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==V&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):U(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==z&&x(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=W.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(s);else{const t=new Z(n,this),e=t.v(this.options);t.p(s),this.T(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new W(t)),e}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new J(this.O(P()),this.O(P()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,s,i,n){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=X(this,t,e,0),r=!x(t)||t!==this._$AH&&t!==V,r&&(this._$AH=t);else{const i=t;let o,l;for(t=n[0],o=0;o<n.length-1;o++)l=X(this,i[s+o],e,o),l===V&&(l=this._$AH[o]),r||(r=!x(l)||l!==this._$AH[o]),l===z?t=z:t!==z&&(t+=(null!=l?l:"")+n[o+1]),this._$AH[o]=l}r&&!i&&this.j(t)}j(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===z?void 0:t}}const F=b?b.emptyScript:"";class tt extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==z?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class et extends G{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var s;if((t=null!==(s=X(this,t,e,0))&&void 0!==s?s:z)===V)return;const i=this._$AH,n=t===z&&i!==z||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==z&&(i===z||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const it={P:"$lit$",A:C,M:S,C:1,L:K,R:Z,D:U,V:X,I:J,H:G,N:tt,U:et,B:Q,F:st},nt=m.litHtmlPolyfillSupport;null==nt||nt(W,J),(null!==(A=m.litHtmlVersions)&&void 0!==A?A:m.litHtmlVersions=[]).push("2.6.1");const rt=(t,e,s)=>{var i,n;const r=null!==(i=null==s?void 0:s.renderBefore)&&void 0!==i?i:e;let o=r._$litPart$;if(void 0===o){const t=null!==(n=null==s?void 0:s.renderBefore)&&void 0!==n?n:null;r._$litPart$=o=new J(e.insertBefore(P(),t),t,void 0,null!=s?s:{})}return o._$AI(t),o};var ot,lt;const at=g;class ct extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=rt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return V}}ct.finalized=!0,ct._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:ct});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:ct});const dt={_$AK:(t,e,s)=>{t._$AK(e,s)},_$AL:t=>t._$AL};(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");const ut=!1,pt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(s){s.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(s){s.createProperty(e.key,t)}};function vt(t){return(e,s)=>void 0!==s?((t,e,s)=>{e.constructor.createProperty(s,t)})(t,e,s):pt(t,e)}const ft=({finisher:t,descriptor:e})=>(s,i)=>{var n;if(void 0===i){const i=null!==(n=s.originalKey)&&void 0!==n?n:s.key,r=null!=e?{kind:"method",placement:"prototype",key:i,descriptor:e(s.key)}:{...s,key:i};return null!=t&&(r.finisher=function(e){t(e,i)}),r}{const n=s.constructor;void 0!==e&&Object.defineProperty(s,i,e(i)),null==t||t(n,i)}};function $t(t){return ft({finisher:(e,s)=>{Object.assign(e.prototype[s],t)}})}function yt(t){return ft({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}var _t;const gt=null!=(null===(_t=window.HTMLSlotElement)||void 0===_t?void 0:_t.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function At(t){const{slot:e,selector:s}=null!=t?t:{};return ft({descriptor:i=>({get(){var i;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(n),o=null!=r?gt(r,t):[];return s?o.filter((t=>t.matches(s))):o},enumerable:!0,configurable:!0})})}function mt(t,e,s){let i,n=t;return"object"==typeof t?(n=t.slot,i=t):i={flatten:e},s?At({slot:n,flatten:e,selector:s}):ft({descriptor:t=>({get(){var t,e;const s="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(s);return null!==(e=null==r?void 0:r.assignedNodes(i))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}const bt=Symbol.for(""),Et=t=>{if((null==t?void 0:t.r)===bt)return null==t?void 0:t._$litStatic$},Ct=t=>({_$litStatic$:t,r:bt}),St=(t,...e)=>({_$litStatic$:e.reduce(((e,s,i)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[i+1]),t[0]),r:bt}),wt=new Map,Tt=t=>(e,...s)=>{const i=s.length;let n,r;const o=[],l=[];let a,c=0,h=!1;for(;c<i;){for(a=e[c];c<i&&void 0!==(r=s[c],n=Et(r));)a+=n+e[++c],h=!0;l.push(r),o.push(a),c++}if(c===i&&o.push(e[i]),h){const t=o.join("$$lit$$");void 0===(e=wt.get(t))&&(o.raw=o,wt.set(t,e=o)),s=l}return t(e,...s)},Pt=Tt(I),xt=Tt(B),{I:Ot}=it,Ut=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ht={HTML:1,SVG:2},Mt=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,Rt=t=>void 0!==(null==t?void 0:t._$litDirective$),Nt=t=>null==t?void 0:t._$litDirective$,kt=t=>void 0===t.strings,Lt=()=>document.createComment(""),jt=(t,e,s)=>{var i;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===s){const e=n.insertBefore(Lt(),r),i=n.insertBefore(Lt(),r);s=new Ot(e,i,t,t.options)}else{const e=s._$AB.nextSibling,o=s._$AM,l=o!==t;if(l){let e;null===(i=s._$AQ)||void 0===i||i.call(s,t),s._$AM=t,void 0!==s._$AP&&(e=t._$AU)!==o._$AU&&s._$AP(e)}if(e!==r||l){let t=s._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return s},Dt=(t,e,s=t)=>(t._$AI(e,s),t),It={},Bt=(t,e=It)=>t._$AH=e,Vt=t=>t._$AH,zt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let s=t._$AA;const i=t._$AB.nextSibling;for(;s!==i;){const t=s.nextSibling;s.remove(),s=t}},qt=t=>{t._$AR()},Yt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Kt=t=>(...e)=>({_$litDirective$:t,values:e});class Wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Xt=(t,e)=>{var s,i;const n=t._$AN;if(void 0===n)return!1;for(const t of n)null===(i=(s=t)._$AO)||void 0===i||i.call(s,e,!1),Xt(t,e);return!0},Zt=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===(null==s?void 0:s.size))},Jt=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),Ft(e)}};function Gt(t){void 0!==this._$AN?(Zt(this),this._$AM=t,Jt(this)):this._$AM=t}function Qt(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)Xt(i[t],!1),Zt(i[t]);else null!=i&&(Xt(i,!1),Zt(i));else Xt(this,t)}const Ft=t=>{var e,s,i,n;t.type==Yt.CHILD&&(null!==(e=(i=t)._$AP)&&void 0!==e||(i._$AP=Qt),null!==(s=(n=t)._$AQ)&&void 0!==s||(n._$AQ=Gt))};class te extends Wt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Jt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?null===(s=this.reconnected)||void 0===s||s.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),e&&(Xt(this,t),Zt(this))}setValue(t){if(kt(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class ee{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}}class se{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){var t;null!==(t=this.Z)&&void 0!==t||(this.Z=new Promise((t=>this.q=t)))}resume(){var t;null===(t=this.q)||void 0===t||t.call(this),this.Z=this.q=void 0}}class ie extends te{constructor(){super(...arguments),this._$CK=new ee(this),this._$CX=new se}render(t,e){return V}update(t,[e,s]){if(this.isConnected||this.disconnected(),e===this._$CJ)return;this._$CJ=e;let i=0;const{_$CK:n,_$CX:r}=this;return(async(t,e)=>{for await(const s of t)if(!1===await e(s))return})(e,(async t=>{for(;r.get();)await r.get();const o=n.deref();if(void 0!==o){if(o._$CJ!==e)return!1;void 0!==s&&(t=s(t,i)),o.commitValue(t,i),i++}return!0})),V}commitValue(t,e){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}const ne=Kt(ie),re=Kt(class extends ie{constructor(t){if(super(t),t.type!==Yt.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$Ctt=t,super.update(t,e)}commitValue(t,e){0===e&&qt(this._$Ctt);const s=jt(this._$Ctt);Dt(s,t)}}),oe=Kt(class extends Wt{constructor(t){super(t),this.et=new WeakMap}render(t){return[t]}update(t,[e]){if(Mt(this.it)&&(!Mt(e)||this.it.strings!==e.strings)){const e=Vt(t).pop();let s=this.et.get(this.it.strings);if(void 0===s){const t=document.createDocumentFragment();s=rt(z,t),s.setConnected(!1),this.et.set(this.it.strings,s)}Bt(s,[e]),jt(s,void 0,e)}if(Mt(e)){if(!Mt(this.it)||this.it.strings!==e.strings){const s=this.et.get(e.strings);if(void 0!==s){const e=Vt(s).pop();qt(t),jt(t,void 0,e),Bt(t,[e])}}this.it=e}else this.it=void 0;return this.render(e)}}),le=(t,e,s)=>{for(const s of e)if(s[0]===t)return(0,s[1])();return null==s?void 0:s()},ae=Kt(class extends Wt{constructor(t){var e;if(super(t),t.type!==Yt.ATTRIBUTE||"class"!==t.name||(null===(e=t.strings)||void 0===e?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 s,i;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(s=this.st)||void 0===s?void 0:s.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const s=!!e[t];s===this.nt.has(t)||(null===(i=this.st)||void 0===i?void 0:i.has(t))||(s?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return V}}),ce={},he=Kt(class extends Wt{constructor(){super(...arguments),this.ot=ce}render(t,e){return e()}update(t,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every(((t,e)=>t===this.ot[e])))return V}else if(this.ot===e)return V;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}}),de=t=>null!=t?t:z;function*ue(t,e){const s="function"==typeof e;if(void 0!==t){let i=-1;for(const n of t)i>-1&&(yield s?e(i):e),i++,yield n}}const pe=Kt(class extends Wt{constructor(){super(...arguments),this.key=z}render(t,e){return this.key=t,e}update(t,[e,s]){return e!==this.key&&(Bt(t),this.key=e),s}}),ve=Kt(class extends Wt{constructor(t){if(super(t),t.type!==Yt.PROPERTY&&t.type!==Yt.ATTRIBUTE&&t.type!==Yt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!kt(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===V||e===z)return e;const s=t.element,i=t.name;if(t.type===Yt.PROPERTY){if(e===s[i])return V}else if(t.type===Yt.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(i))return V}else if(t.type===Yt.ATTRIBUTE&&s.getAttribute(i)===e+"")return V;return Bt(t),e}});function*fe(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}function*$e(t,e,s=1){const i=void 0===e?0:t;null!=e||(e=t);for(let t=i;s>0?t<e:e<t;t+=s)yield t}const ye=()=>new _e;class _e{}const ge=new WeakMap,Ae=Kt(class extends te{render(t){return z}update(t,[e]){var s;const i=e!==this.Y;return i&&void 0!==this.Y&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.Y=e,this.dt=null===(s=t.options)||void 0===s?void 0:s.host,this.rt(this.ct=t.element)),z}rt(t){var e;if("function"==typeof this.Y){const s=null!==(e=this.dt)&&void 0!==e?e:globalThis;let i=ge.get(s);void 0===i&&(i=new WeakMap,ge.set(s,i)),void 0!==i.get(this.Y)&&this.Y.call(this.dt,void 0),i.set(this.Y,t),void 0!==t&&this.Y.call(this.dt,t)}else this.Y.value=t}get lt(){var t,e,s;return"function"==typeof this.Y?null===(e=ge.get(null!==(t=this.dt)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.Y):null===(s=this.Y)||void 0===s?void 0:s.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),me=(t,e,s)=>{const i=new Map;for(let n=e;n<=s;n++)i.set(t[n],n);return i},be=Kt(class extends Wt{constructor(t){if(super(t),t.type!==Yt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const n=[],r=[];let o=0;for(const e of t)n[o]=i?i(e,o):o,r[o]=s(e,o),o++;return{values:r,keys:n}}render(t,e,s){return this.ht(t,e,s).values}update(t,[e,s,i]){var n;const r=Vt(t),{values:o,keys:l}=this.ht(e,s,i);if(!Array.isArray(r))return this.ut=l,o;const a=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],c=[];let h,d,u=0,p=r.length-1,v=0,f=o.length-1;for(;u<=p&&v<=f;)if(null===r[u])u++;else if(null===r[p])p--;else if(a[u]===l[v])c[v]=Dt(r[u],o[v]),u++,v++;else if(a[p]===l[f])c[f]=Dt(r[p],o[f]),p--,f--;else if(a[u]===l[f])c[f]=Dt(r[u],o[f]),jt(t,c[f+1],r[u]),u++,f--;else if(a[p]===l[v])c[v]=Dt(r[p],o[v]),jt(t,r[u],r[p]),p--,v++;else if(void 0===h&&(h=me(l,v,f),d=me(a,u,p)),h.has(a[u]))if(h.has(a[p])){const e=d.get(l[v]),s=void 0!==e?r[e]:null;if(null===s){const e=jt(t,r[u]);Dt(e,o[v]),c[v]=e}else c[v]=Dt(s,o[v]),jt(t,r[u],s),r[e]=null;v++}else zt(r[p]),p--;else zt(r[u]),u++;for(;v<=f;){const e=jt(t,c[f+1]);Dt(e,o[v]),c[v++]=e}for(;u<=p;){const t=r[u++];null!==t&&zt(t)}return this.ut=l,Bt(t,c),V}}),Ee=Kt(class extends Wt{constructor(t){var e;if(super(t),t.type!==Yt.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in e){const i=e[t];null!=i&&(this.vt.add(t),t.includes("-")?s.setProperty(t,i):s[t]=i)}return V}}),Ce=Kt(class extends Wt{constructor(t){if(super(t),t.type!==Yt.CHILD)throw Error("templateContent can only be used in child bindings")}render(t){return this.ft===t?V:(this.ft=t,document.importNode(t.content,!0))}});class Se extends Wt{constructor(t){if(super(t),this.it=z,t.type!==Yt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===z||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Se.directiveName="unsafeHTML",Se.resultType=1;const we=Kt(Se);class Te extends Se{}Te.directiveName="unsafeSVG",Te.resultType=2;const Pe=Kt(Te),xe=t=>!Ut(t)&&"function"==typeof t.then;class Oe extends te{constructor(){super(...arguments),this._$Cwt=1073741823,this._$Cyt=[],this._$CK=new ee(this),this._$CX=new se}render(...t){var e;return null!==(e=t.find((t=>!xe(t))))&&void 0!==e?e:V}update(t,e){const s=this._$Cyt;let i=s.length;this._$Cyt=e;const n=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$Cwt);t++){const o=e[t];if(!xe(o))return this._$Cwt=t,o;t<i&&o===s[t]||(this._$Cwt=1073741823,i=0,Promise.resolve(o).then((async t=>{for(;r.get();)await r.get();const e=n.deref();if(void 0!==e){const s=e._$Cyt.indexOf(o);s>-1&&s<e._$Cwt&&(e._$Cwt=s,e.setValue(t))}})))}return V}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}const Ue=Kt(Oe);function He(t,e,s){return t?e():null==s?void 0:s()}const Me=z,Re=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:s,elements:i}=e;return{kind:s,elements:i,finisher(e){customElements.define(t,e)}}})(t,e);class Ne extends ct{initialized(){}connected(){}disconnected(){}get template(){return Me}render(){return this.template}firstUpdated(t){super.firstUpdated(t),this.initialized()}connectedCallback(){super.connectedCallback(),this.connected()}disconnectedCallback(){super.disconnectedCallback(),this.disconnected()}}class ke{constructor(t){this.host=t,this.host.addController(this)}}const Le=t=>(e,s)=>{Object.defineProperty(e,s,{get(){return this.renderRoot?.querySelector(t)??void 0}})},je=t=>(e,s)=>{Object.defineProperty(e,s,{get(){return[...this.renderRoot?.querySelectorAll(t)??[]]}})},De=function(t){return ft({descriptor:e=>({get(){var e,s;return null!==(s=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==s?s:[]},enumerable:!0,configurable:!0})})},Ie=()=>t=>{const e=new t;Be.handlers.add(e)};class Be extends Wt{constructor(t){if(super(t),t.type!==Yt.ELEMENT)throw new Error("style directive can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,s]of Object.entries(t)){([...Be.handlers].find((t=>t.handles(this.element,[e,s])))??Be.defaultHandler).apply(this.element,[e,s])}}}Be.handlers=new Set,Be.defaultHandler=new class{handles(){return!0}apply(t,[e,s]){t.style[e]=null==s?"":s}};const Ve=Kt(Be);Object.create;Object.create;let ze=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,s]){t.style.setProperty(e,s)}};ze=function(t,e,s,i){var n,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(r<3?n(o):r>3?n(e,s,o):n(e,s))||o);return r>3&&o&&Object.defineProperty(e,s,o),o}([Ie()],ze);const qe=t=>(e,s)=>{e.constructor.addInitializer((e=>e.addController(new class extends ke{constructor(){super(e),this.hasChanged=!1}get value(){return this.host[s]}hostUpdate(){this.value!==this.oldValue&&(this.hasChanged=!0)}hostUpdated(){this.hasChanged&&(this.hasChanged=!1,t.call(this.host,this.value,this.oldValue),this.oldValue=this.value)}})))},Ye=t=>(e,s)=>(t?.updated&&qe(t.updated)(e,s),vt(t)(e,s)),Ke=t=>(e,s)=>(t?.updated&&qe(t.updated)(e,s),function(t){return vt({...t,state:!0})}(t)(e,s));async function We(t){const e=t=>Symbol.iterator in t?[...t]:[t];if(void 0===t)return e(this);if("function"==typeof t){let s=t.call(this);if(s instanceof Promise&&(s=await s),s instanceof EventTarget)return e(s);if(Symbol.iterator in s&&[...s].every((t=>t instanceof EventTarget)))return e(s);throw new TypeError(`${this.constructor}.target is not an EventTarget`)}return e(t??this)}class Xe extends ke{constructor(t,...e){super(t),this.host=t,this.options=function(t){const e="string"==typeof t[0];return{target:e?void 0:t[0].target,type:e?t[0]:t[0].type,listener:e?t[1]:t[0].listener,options:e?t[2]:t[0].options}}(e)}async subscribe(){const t=await We.call(this.host,this.options.target);for(const e of t)e.addEventListener(this.options.type,this.options.listener,this.options.options)}async unsubscribe(){const t=await We.call(this.host,this.options.target);for(const e of t)e?.removeEventListener(this.options.type,this.options.listener,this.options.options)}async hostConnected(){await this.subscribe()}async hostDisconnected(){await this.unsubscribe()}}function Ze(t){const e=(t=>"string"==typeof t[0])(t);return{type:e?t[0]:t[0].type,target:e?void 0:t[0].target,options:e?t[1]:t[0].options}}const Je=(...t)=>(e,s,i)=>{e.constructor.addInitializer((e=>{e.addController(new class extends Xe{constructor(){const{type:s,target:i,options:n}=Ze(t);super(e,{type:s,target:i,options:n,listener:void 0})}hostConnected(){const t=i?"function"==typeof i.get?i.get:i.value:Object.getOwnPropertyDescriptor(e,s)?.value;return this.options.listener=t.bind(e),super.hostConnected()}})}))},Ge=t=>5===t.type?t._$committedValue.bind(t.element):"function"==typeof t?t:t.handleEvent;class Qe{constructor(){this.handlers=new Set}subscribe(t){this.handlers.add(t)}unsubscribe(t){this.handlers.delete(t)}dispatch(t){for(const e of this.handlers)e(t)}}class Fe{constructor(t,e,s){this.element=t,this.type=e,this.options=s,this.handlersMap=new Map}dispatch(t){this.element.dispatchEvent(t instanceof CustomEvent?t:new CustomEvent(this.type,{detail:t,...this.options}))}subscribe(t){if(!1===this.handlersMap.has(t)){const e=e=>t(e.detail);this.element.addEventListener(this.type,e),this.handlersMap.set(t,e)}}unsubscribe(t){const e=this.handlersMap.get(t);e&&this.element.removeEventListener(this.type,e),this.handlersMap.delete(t)}}function ts(t){return(e,s)=>{if(void 0===s)return;const i=`$${s}Event$`;Object.defineProperty(e,s,{get(){return this[i]||(this[i]=this instanceof HTMLElement?new Fe(this,s,t):new Qe),this[i]}})}}self.Lit=e})();
@@ -1,9 +1,9 @@
1
- declare global {
2
- export type EventHandler<T> = (data: T) => void;
3
- export interface EventDispatcher<T = void> {
4
- dispatch(value: T): void;
5
- subscribe(handler: EventHandler<T>): void;
6
- unsubscribe(handler: EventHandler<T>): void;
7
- }
8
- }
9
- export {};
1
+ declare global {
2
+ export type EventHandler<T> = (data: T) => void;
3
+ export interface EventDispatcher<T = void> {
4
+ dispatch(value: T): void;
5
+ subscribe(handler: EventHandler<T>): void;
6
+ unsubscribe(handler: EventHandler<T>): void;
7
+ }
8
+ }
9
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,12 +1,12 @@
1
- type CustomEventHandler<T> = (event: CustomEvent<T>) => void;
2
- export declare class HTMLElementEventDispatcher<T = void> implements EventDispatcher<T> {
3
- protected readonly element: HTMLElement;
4
- protected readonly type: string;
5
- protected readonly options?: EventInit | undefined;
6
- protected readonly handlersMap: Map<EventHandler<T>, CustomEventHandler<T>>;
7
- constructor(element: HTMLElement, type: string, options?: EventInit | undefined);
8
- dispatch(value: T | CustomEvent<T>): void;
9
- subscribe(handler: EventHandler<T>): void;
10
- unsubscribe(handler: EventHandler<T>): void;
11
- }
12
- export {};
1
+ type CustomEventHandler<T> = (event: CustomEvent<T>) => void;
2
+ export declare class HTMLElementEventDispatcher<T = void> implements EventDispatcher<T> {
3
+ protected readonly element: HTMLElement;
4
+ protected readonly type: string;
5
+ protected readonly options?: EventInit | undefined;
6
+ protected readonly handlersMap: Map<EventHandler<T>, CustomEventHandler<T>>;
7
+ constructor(element: HTMLElement, type: string, options?: EventInit | undefined);
8
+ dispatch(value: T | CustomEvent<T>): void;
9
+ subscribe(handler: EventHandler<T>): void;
10
+ unsubscribe(handler: EventHandler<T>): void;
11
+ }
12
+ export {};
@@ -1,27 +1,27 @@
1
- export class HTMLElementEventDispatcher {
2
- constructor(element, type, options) {
3
- this.element = element;
4
- this.type = type;
5
- this.options = options;
6
- this.handlersMap = new Map();
7
- }
8
- dispatch(value) {
9
- this.element.dispatchEvent(value instanceof CustomEvent
10
- ? value
11
- : new CustomEvent(this.type, { detail: value, ...this.options }));
12
- }
13
- subscribe(handler) {
14
- if (this.handlersMap.has(handler) === false) {
15
- const nativeHandler = (event) => handler(event.detail);
16
- this.element.addEventListener(this.type, nativeHandler);
17
- this.handlersMap.set(handler, nativeHandler);
18
- }
19
- }
20
- unsubscribe(handler) {
21
- const nativeHandler = this.handlersMap.get(handler);
22
- if (nativeHandler) {
23
- this.element.removeEventListener(this.type, nativeHandler);
24
- }
25
- this.handlersMap.delete(handler);
26
- }
27
- }
1
+ export class HTMLElementEventDispatcher {
2
+ constructor(element, type, options) {
3
+ this.element = element;
4
+ this.type = type;
5
+ this.options = options;
6
+ this.handlersMap = new Map();
7
+ }
8
+ dispatch(value) {
9
+ this.element.dispatchEvent(value instanceof CustomEvent
10
+ ? value
11
+ : new CustomEvent(this.type, { detail: value, ...this.options }));
12
+ }
13
+ subscribe(handler) {
14
+ if (this.handlersMap.has(handler) === false) {
15
+ const nativeHandler = (event) => handler(event.detail);
16
+ this.element.addEventListener(this.type, nativeHandler);
17
+ this.handlersMap.set(handler, nativeHandler);
18
+ }
19
+ }
20
+ unsubscribe(handler) {
21
+ const nativeHandler = this.handlersMap.get(handler);
22
+ if (nativeHandler) {
23
+ this.element.removeEventListener(this.type, nativeHandler);
24
+ }
25
+ this.handlersMap.delete(handler);
26
+ }
27
+ }
@@ -1,6 +1,6 @@
1
- export declare class PureEventDispatcher<T = void> implements EventDispatcher<T> {
2
- private readonly handlers;
3
- subscribe(handler: EventHandler<T>): void;
4
- unsubscribe(handler: EventHandler<T>): void;
5
- dispatch(data: T): void;
6
- }
1
+ export declare class PureEventDispatcher<T = void> implements EventDispatcher<T> {
2
+ private readonly handlers;
3
+ subscribe(handler: EventHandler<T>): void;
4
+ unsubscribe(handler: EventHandler<T>): void;
5
+ dispatch(data: T): void;
6
+ }
@@ -1,16 +1,16 @@
1
- export class PureEventDispatcher {
2
- constructor() {
3
- this.handlers = new Set();
4
- }
5
- subscribe(handler) {
6
- this.handlers.add(handler);
7
- }
8
- unsubscribe(handler) {
9
- this.handlers.delete(handler);
10
- }
11
- dispatch(data) {
12
- for (const handler of this.handlers) {
13
- handler(data);
14
- }
15
- }
16
- }
1
+ export class PureEventDispatcher {
2
+ constructor() {
3
+ this.handlers = new Set();
4
+ }
5
+ subscribe(handler) {
6
+ this.handlers.add(handler);
7
+ }
8
+ unsubscribe(handler) {
9
+ this.handlers.delete(handler);
10
+ }
11
+ dispatch(data) {
12
+ for (const handler of this.handlers) {
13
+ handler(data);
14
+ }
15
+ }
16
+ }
@@ -1 +1 @@
1
- export declare function event(options?: EventInit): (prototype: unknown, propertyKey?: string) => void;
1
+ export declare function event(options?: EventInit): (prototype: unknown, propertyKey?: string) => void;
@@ -1,20 +1,20 @@
1
- import { HTMLElementEventDispatcher } from './HTMLElementEventDispatcher.js';
2
- import { PureEventDispatcher } from './PureEventDispatcher.js';
3
- export function event(options) {
4
- return (prototype, propertyKey) => {
5
- if (propertyKey === undefined) {
6
- return;
7
- }
8
- const eventFieldName = `$${propertyKey}Event$`;
9
- Object.defineProperty(prototype, propertyKey, {
10
- get() {
11
- if (!this[eventFieldName]) {
12
- this[eventFieldName] = this instanceof HTMLElement
13
- ? new HTMLElementEventDispatcher(this, propertyKey, options)
14
- : new PureEventDispatcher();
15
- }
16
- return this[eventFieldName];
17
- }
18
- });
19
- };
20
- }
1
+ import { HTMLElementEventDispatcher } from './HTMLElementEventDispatcher.js';
2
+ import { PureEventDispatcher } from './PureEventDispatcher.js';
3
+ export function event(options) {
4
+ return (prototype, propertyKey) => {
5
+ if (propertyKey === undefined) {
6
+ return;
7
+ }
8
+ const eventFieldName = `$${propertyKey}Event$`;
9
+ Object.defineProperty(prototype, propertyKey, {
10
+ get() {
11
+ if (!this[eventFieldName]) {
12
+ this[eventFieldName] = this instanceof HTMLElement
13
+ ? new HTMLElementEventDispatcher(this, propertyKey, options)
14
+ : new PureEventDispatcher();
15
+ }
16
+ return this[eventFieldName];
17
+ }
18
+ });
19
+ };
20
+ }
@@ -1,4 +1,4 @@
1
- import './EventDispatcher.js';
2
- export * from './PureEventDispatcher.js';
3
- export * from './HTMLElementEventDispatcher.js';
4
- export * from './event.js';
1
+ import './EventDispatcher.js';
2
+ export * from './PureEventDispatcher.js';
3
+ export * from './HTMLElementEventDispatcher.js';
4
+ export * from './event.js';
@@ -1,4 +1,4 @@
1
- import './EventDispatcher.js';
2
- export * from './PureEventDispatcher.js';
3
- export * from './HTMLElementEventDispatcher.js';
4
- export * from './event.js';
1
+ import './EventDispatcher.js';
2
+ export * from './PureEventDispatcher.js';
3
+ export * from './HTMLElementEventDispatcher.js';
4
+ export * from './event.js';