function t(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function e(e){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?t(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(t,e,i,r,s,n,o){try{var l=t[n](o),a=l.value}catch(t){return void i(t)}l.done?e(a):Promise.resolve(a).then(r,s)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(s,n){var o=t.apply(e,r);function l(t){i(o,s,n,l,a,"next",t)}function a(t){i(o,s,n,l,a,"throw",t)}l(void 0)}))}}function s(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var o=window,l=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),h=new WeakMap;let d=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){var t=this.o,e=this.t;if(l&&void 0===t){var i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}};var u,c=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];var s=1===t.length?t[0]:i.reduce(((e,i,r)=>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.")})(i)+t[r+1]),t[0]);return new d(s,t,a)},v=l?t=>t:t=>t instanceof CSSStyleSheet?(t=>{var e="";for(var i of t.cssRules)e+=i.cssText;return(t=>new d("string"==typeof t?t:t+"",void 0,a))(e)})(t):t
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */,p=window,$=p.trustedTypes,_=$?$.emptyScript:"",f=p.reactiveElementPolyfillSupport,A={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){var i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},g=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:g},m="finalized";let b=class 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();var t=[];return this.elementProperties.forEach(((e,i)=>{var r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),t}static createProperty(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var i="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){var s=this[t];this[e]=r,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty(m))return!1;this[m]=!0;var 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")){var e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(var r of i)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){var e=[];if(Array.isArray(t)){var i=new Set(t.flat(1/0).reverse());for(var r of i)e.unshift(v(r))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){var i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.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,e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{l?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{var i=document.createElement("style"),r=o.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))})(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,i){this._$AK(t,i)}_$EO(t,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y,s=this.constructor._$Ep(t,r);if(void 0!==s&&!0===r.reflect){var n=(void 0!==(null===(i=r.converter)||void 0===i?void 0:i.toAttribute)?r.converter:A).toAttribute(e,r.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i,r=this.constructor,s=r._$Ev.get(t);if(void 0!==s&&this._$El!==s){var n=r.getPropertyOptions(s),o="function"==typeof n.converter?{fromAttribute:n.converter}:void 0!==(null===(i=n.converter)||void 0===i?void 0:i.fromAttribute)?n.converter:A;this._$El=s,this[s]=o.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){var r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||g)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}_$Ej(){var t=this;return r((function*(){t.isUpdatePending=!0;try{yield t._$E_}catch(e){Promise.reject(e)}var e=t.scheduleUpdate();return null!=e&&(yield e),!t.isUpdatePending}))()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);var e=!1,i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),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(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}}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){}};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
var E;b[m]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(u=p.reactiveElementVersions)&&void 0!==u?u:p.reactiveElementVersions=[]).push("1.6.2");var S=window,w=S.trustedTypes,C=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",O="lit$".concat((Math.random()+"").slice(9),"$"),x="?"+O,U="<".concat(x,">"),H=document,N=()=>H.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,R="[ \t\n\f\r]",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,D=/>/g,L=RegExp(">|".concat(R,"(?:([^\\s\"'>=/]+)(").concat(R,"*=").concat(R,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),z=/'/g,B=/"/g,I=/^(?:script|style|textarea|title)$/i,V=(t=>function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];return{_$litType$:t,strings:e,values:r}})(1),W=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),J=new WeakMap,K=H.createTreeWalker(H,129,null,!1),Z=(t,e)=>{for(var i,r=t.length-1,s=[],n=2===e?"<svg>":"",o=M,l=0;l<r;l++){for(var a=t[l],h=void 0,d=void 0,u=-1,c=0;c<a.length&&(o.lastIndex=c,null!==(d=o.exec(a)));)c=o.lastIndex,o===M?"!--"===d[1]?o=k:void 0!==d[1]?o=D:void 0!==d[2]?(I.test(d[2])&&(i=RegExp("</"+d[2],"g")),o=L):void 0!==d[3]&&(o=L):o===L?">"===d[0]?(o=null!=i?i:M,u=-1):void 0===d[1]?u=-2:(u=o.lastIndex-d[2].length,h=d[1],o=void 0===d[3]?L:'"'===d[3]?B:z):o===B||o===z?o=L:o===k||o===D?o=M:(o=L,i=void 0);var v=o===L&&t[l+1].startsWith("/>")?" ":"";n+=o===M?a+U:u>=0?(s.push(h),a.slice(0,u)+P+a.slice(u)+O+v):a+O+(-2===u?(s.push(void 0),l):v)}var p=n+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(p):p,s]};class F{constructor(t,e){var i,{strings:r,_$litType$:s}=t;this.parts=[];var n=0,o=0,l=r.length-1,a=this.parts,[h,d]=Z(r,s);if(this.el=F.createElement(h,e),K.currentNode=this.el.content,2===s){var u=this.el.content,c=u.firstChild;c.remove(),u.append(...c.childNodes)}for(;null!==(i=K.nextNode())&&a.length<l;){if(1===i.nodeType){if(i.hasAttributes()){var v=[];for(var p of i.getAttributeNames())if(p.endsWith(P)||p.startsWith(O)){var $=d[o++];if(v.push(p),void 0!==$){var _=i.getAttribute($.toLowerCase()+P).split(O),f=/([.?@])?(.*)/.exec($);a.push({type:1,index:n,name:f[2],strings:_,ctor:"."===f[1]?tt:"?"===f[1]?it:"@"===f[1]?rt:Y})}else a.push({type:6,index:n})}for(var A of v)i.removeAttribute(A)}if(I.test(i.tagName)){var g=i.textContent.split(O),y=g.length-1;if(y>0){i.textContent=w?w.emptyScript:"";for(var m=0;m<y;m++)i.append(g[m],N()),K.nextNode(),a.push({type:2,index:++n});i.append(g[y],N())}}}else if(8===i.nodeType)if(i.data===x)a.push({type:2,index:n});else for(var b=-1;-1!==(b=i.data.indexOf(O,b+1));)a.push({type:7,index:n}),b+=O.length-1;n++}}static createElement(t,e){var i=H.createElement("template");return i.innerHTML=t,i}}function G(t,e){var i,r,s,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,l=arguments.length>3?arguments[3]:void 0;if(e===W)return e;var a=void 0!==l?null===(i=o._$Co)||void 0===i?void 0:i[l]:o._$Cl,h=j(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===h?a=void 0:(a=new h(t))._$AT(t,o,l),void 0!==l?(null!==(s=(n=o)._$Co)&&void 0!==s?s:n._$Co=[])[l]=a:o._$Cl=a),void 0!==a&&(e=G(t,a._$AS(t,e.values),a,l)),e}class Q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e,{el:{content:i},parts:r}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:H).importNode(i,!0);K.currentNode=s;for(var n=K.nextNode(),o=0,l=0,a=r[0];void 0!==a;){if(o===a.index){var h=void 0;2===a.type?h=new X(n,n.nextSibling,this,t):1===a.type?h=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(h=new st(n,this,t)),this._$AV.push(h),a=r[++l]}o!==(null==a?void 0:a.index)&&(n=K.nextNode(),o++)}return K.currentNode=H,s}v(t){var e=0;for(var i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class X{constructor(t,e,i,r){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(s=null==r?void 0:r.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t){t=G(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),j(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==W&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&j(this._$AH)?this._$AA.nextSibling.data=t:this.$(H.createTextNode(t)),this._$AH=t}g(t){var e,{values:i,_$litType$:r}=t,s="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=F.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{var n=new Q(s,this),o=n.u(this.options);n.v(i),this.$(o),this._$AH=n}}_$AC(t){var e=J.get(t.strings);return void 0===e&&J.set(t.strings,e=new F(t)),e}T(t){T(this._$AH)||(this._$AH=[],this._$AR());var e,i=this._$AH,r=0;for(var s of t)r===i.length?i.push(e=new X(this.k(N()),this.k(N()),this,this.options)):e=i[r],e._$AI(s),r++;r<i.length&&(this._$AR(e&&e._$AB.nextSibling,r),i.length=r)}_$AR(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,i=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,i);e&&e!==this._$AB;){var r=e.nextSibling;e.remove(),e=r}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Y{constructor(t,e,i,r,s){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=this.strings,n=!1;if(void 0===s)t=G(this,t,e,0),(n=!j(t)||t!==this._$AH&&t!==W)&&(this._$AH=t);else{var o,l,a=t;for(t=s[0],o=0;o<s.length-1;o++)(l=G(this,a[i+o],e,o))===W&&(l=this._$AH[o]),n||(n=!j(l)||l!==this._$AH[o]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[o+1]),this._$AH[o]=l}n&&!r&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Y{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}var et=w?w.emptyScript:"";class it extends Y{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class rt extends Y{constructor(t,e,i,r,s){super(t,e,i,r,s),this.type=5}_$AI(t){var e;if((t=null!==(e=G(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:q)!==W){var i=this._$AH,r=t===q&&i!==q||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==q&&(i===q||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}var nt=S.litHtmlPolyfillSupport;null==nt||nt(F,X),(null!==(E=S.litHtmlVersions)&&void 0!==E?E:S.litHtmlVersions=[]).push("2.7.4");var ot,lt,at=b;
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */let ht=class extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e,i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){var e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,s,n=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e,o=n._$litPart$;if(void 0===o){var l=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=o=new X(e.insertBefore(N(),l),l,void 0,null!=i?i:{})}return o._$AI(t),o})(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 W}};ht.finalized=!0,ht._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:ht});var dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ht}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.3.2");export{q as A,W as T,n as _,e as a,r as b,c as i,at as r,ht as s,V as x};//# sourceMappingURL=lit-element-5f7b217e.js.map