tildefriends/apps/cory/ssblit/lit-all.min.js

133 lines
30 KiB
JavaScript
Raw Normal View History

/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const t=window,i=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),e=new WeakMap;class n{constructor(t,i,e){if(this._$cssResult$=!0,e!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.i;const s=this.t;if(i&&void 0===t){const i=void 0!==s&&1===s.length;i&&(t=e.get(s)),void 0===t&&((this.i=t=new CSSStyleSheet).replaceSync(this.cssText),i&&e.set(s,t))}return t}toString(){return this.cssText}}const o=t=>new n("string"==typeof t?t:t+"",void 0,s),r=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,s,e)=>i+(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[e+1]),t[0]);return new n(e,t,s)},l=(s,e)=>{i?s.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((i=>{const e=document.createElement("style"),n=t.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,s.appendChild(e)}))},h=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const s of t.cssRules)i+=s.cssText;return o(i)})(t):t
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/;var u;const c=window,a=c.trustedTypes,d=a?a.emptyScript:"",v=c.reactiveElementPolyfillSupport,f={toAttribute(t,i){switch(i){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let s=t;switch(i){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}},p=(t,i)=>i!==t&&(i==i||t==t),y={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:p};class b extends HTMLElement{constructor(){super(),this.o=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this.l=null,this.u()}static addInitializer(t){var i;null!==(i=this.v)&&void 0!==i||(this.v=[]),this.v.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this.p(s,i);void 0!==e&&(this.m.set(e,s),t.push(e))})),t}static createProperty(t,i=y){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(e){const n=this[t];this[i]=e,this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this.m=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)i.unshift(h(t))}else void 0!==t&&i.push(h(t));return i}static p(t,i){const s=i.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this.g(),this.requestUpdate(),null===(t=this.constructor.v)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,s;(null!==(i=this.S)&&void 0!==i?i:this.S=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var i;null===(i=this.S)||void 0===i||i.splice(this.S.indexOf(t)>>>0,1)}g(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this.o.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return l(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this.S)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this.S)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,s){this._$AK(t,s)}$(t,i,s=y){var e;const n=this.constructor.p(t,s);if(void 0!==n&&!0===s.reflect){const o=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:f).toAttribute(i,s.type);this.l=t,null==o?this.removeAttribute(n):this.setAttribute(n,o),this.l=null}}_$AK(t,i){var s;const e=this.constructor,n=e.m.get(t);if(void 0!==n&&this.l!==n){const t=e.getPropertyOptions(n),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:f;this.l=n,this[n]=o.fromAttribute(i,t.type),this.l=null}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this.l!==t&&(void 0===this.C&&(this
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var m;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:b}),(null!==(u=c.reactiveElementVersions)&&void 0!==u?u:c.reactiveElementVersions=[]).push("1.4.0");const g=window,w=g.trustedTypes,_=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,S="?"+$,T=`<${S}>`,x=document,E=(t="")=>x.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,k=t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,U=/>/g,V=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),R=/'/g,N=/"/g,O=/^(?:script|style|textarea|title)$/i,L=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),j=L(1),z=L(2),H=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),B=new WeakMap,D=(t,i,s)=>{var e,n;const o=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let r=o._$litPart$;if(void 0===r){const t=null!==(n=null==s?void 0:s.renderBefore)&&void 0!==n?n:null;o._$litPart$=r=new J(i.insertBefore(E(),t),t,void 0,null!=s?s:{})}return r._$AI(t),r},W=x.createTreeWalker(x,129,null,!1),Z=(t,i)=>{const s=t.length-1,e=[];let n,o=2===i?"<svg>":"",r=M;for(let i=0;i<s;i++){const s=t[i];let l,h,u=-1,c=0;for(;c<s.length&&(r.lastIndex=c,h=r.exec(s),null!==h);)c=r.lastIndex,r===M?"!--"===h[1]?r=P:void 0!==h[1]?r=U:void 0!==h[2]?(O.test(h[2])&&(n=RegExp("</"+h[2],"g")),r=V):void 0!==h[3]&&(r=V):r===V?">"===h[0]?(r=null!=n?n:M,u=-1):void 0===h[1]?u=-2:(u=r.lastIndex-h[2].length,l=h[1],r=void 0===h[3]?V:'"'===h[3]?N:R):r===N||r===R?r=V:r===P||r===U?r=M:(r=V,n=void 0);const a=r===V&&t[i+1].startsWith("/>")?" ":"";o+=r===M?s+T:u>=0?(e.push(l),s.slice(0,u)+"$lit$"+s.slice(u)+$+a):s+$+(-2===u?(e.push(void 0),i):a)}const l=o+(t[s]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==_?_.createHTML(l):l,e]};class q{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let n=0,o=0;const r=t.length-1,l=this.parts,[h,u]=Z(t,i);if(this.el=q.createElement(h,s),W.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=W.nextNode())&&l.length<r;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith($)){const s=u[o++];if(t.push(i),void 0!==s){const t=e.getAttribute(s.toLowerCase()+"$lit$").split($),i=/([.?@])?(.*)/.exec(s);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?X:"@"===i[1]?tt:K})}else l.push({type:6,index:n})}for(const i of t)e.removeAttribute(i)}if(O.test(e.tagName)){const t=e.textContent.split($),i=t.length-1;if(i>0){e.textContent=w?w.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],E()),W.nextNode(),l.push({type:2,index:++n});e.append(t[i],E())}}}else if(8===e.nodeType)if(e.data===S)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=e.data.indexOf($,t+1));)l.push({type:7,index:n}),t+=$.length-1}n++}}static createElement(t,i){const s=x.createElement("template");return s.innerHTML=t,s}}function F(t,i,s=t,e){var n,o,r,l;if(i===H)return i;let h=void 0!==e?null===(n=s.A)||void 0===n?void 0:n[e]:s.k;const u=C(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==u&&(null===(o=null==h?void 0:h._$AO)||void 0===o||o.call(h,!1),void 0===u?h=void 0:(h=new u(t),h._$AT(t,s,e)),void 0!==e?(null!==(r=(l=s).A)&&void 0!==r?r:l.A=[])[e]=h:s.k=h),void 0!==h&&(i=F(t,h._$AS(t,i.values),h,e)),i}class G{constructor(t,i){this.M=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}U(t){var i;const{el:{content:s},parts:e}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:x).importNode(s,!0);W.currentNode=n;let o=W.nextNode(),r=0,l=0,h=e[0];for(;void 0!==h;){if(r===h.index){let i;2===h.type?i=new J(o,o.nextSibling,this,t):1===h.type?i=new h.ctor(o,h.name,h.strings,this,t):6===h.t
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var nt,ot;null==et||et(q,J),(null!==(m=g.litHtmlVersions)&&void 0!==m?m:g.litHtmlVersions=[]).push("2.3.0");const rt=b;class lt extends b{constructor(){super(...arguments),this.renderOptions={host:this},this.et=void 0}createRenderRoot(){var t,i;const s=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=s.firstChild),s}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.et=D(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this.et)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.et)||void 0===t||t.setConnected(!1)}render(){return H}}lt.finalized=!0,lt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:lt});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:lt});const ut={_$AK:(t,i,s)=>{t._$AK(i,s)},_$AL:t=>t._$AL};(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.2.2");
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const{K:ct}=st,at=t=>null===t||"object"!=typeof t&&"function"!=typeof t,dt={HTML:1,SVG:2},vt=(t,i)=>void 0===i?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===i,ft=t=>void 0!==(null==t?void 0:t._$litDirective$),pt=t=>null==t?void 0:t._$litDirective$,yt=t=>void 0===t.strings,bt=()=>document.createComment(""),mt=(t,i,s)=>{var e;const n=t._$AA.parentNode,o=void 0===i?t._$AB:i._$AA;if(void 0===s){const i=n.insertBefore(bt(),o),e=n.insertBefore(bt(),o);s=new ct(i,e,t,t.options)}else{const i=s._$AB.nextSibling,r=s._$AM,l=r!==t;if(l){let i;null===(e=s._$AQ)||void 0===e||e.call(s,t),s._$AM=t,void 0!==s._$AP&&(i=t._$AU)!==r._$AU&&s._$AP(i)}if(i!==o||l){let t=s._$AA;for(;t!==i;){const i=t.nextSibling;n.insertBefore(t,o),t=i}}}return s},gt=(t,i,s=t)=>(t._$AI(i,s),t),wt={},_t=(t,i=wt)=>t._$AH=i,$t=t=>t._$AH,St=t=>{var i;null===(i=t._$AP)||void 0===i||i.call(t,!1,!0);let s=t._$AA;const e=t._$AB.nextSibling;for(;s!==e;){const t=s.nextSibling;s.remove(),s=t}},Tt=t=>{t._$AR()},xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Et=t=>(...i)=>({_$litDirective$:t,values:i});class Ct{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,s){this.nt=t,this._$AM=i,this.ot=s}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const At=(t,i)=>{var s,e;const n=t._$AN;if(void 0===n)return!1;for(const t of n)null===(e=(s=t)._$AO)||void 0===e||e.call(s,i,!1),At(t,i);return!0},kt=t=>{let i,s;do{if(void 0===(i=t._$AM))break;s=i._$AN,s.delete(t),t=i}while(0===(null==s?void 0:s.size))},Mt=t=>{for(let i;i=t._$AM;t=i){let s=i._$AN;if(void 0===s)i._$AN=s=new Set;else if(s.has(t))break;s.add(t),Vt(i)}};function Pt(t){void 0!==this._$AN?(kt(this),this._$AM=t,Mt(this)):this._$AM=t}function Ut(t,i=!1,s=0){const e=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(i)if(Array.isArray(e))for(let t=s;t<e.length;t++)At(e[t],!1),kt(e[t]);else null!=e&&(At(e,!1),kt(e));else At(this,t)}const Vt=t=>{var i,s,e,n;2==t.type&&(null!==(i=(e=t)._$AP)&&void 0!==i||(e._$AP=Ut),null!==(s=(n=t)._$AQ)&&void 0!==s||(n._$AQ=Pt))};class Rt extends Ct{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,s){super._$AT(t,i,s),Mt(this),this.isConnected=t._$AU}_$AO(t,i=!0){var s,e;t!==this.isConnected&&(this.isConnected=t,t?null===(s=this.reconnected)||void 0===s||s.call(this):null===(e=this.disconnected)||void 0===e||e.call(this)),i&&(At(this,t),kt(this))}setValue(t){if(yt(this.nt))this.nt._$AI(t,this);else{const i=[...this.nt._$AH];i[this.ot]=t,this.nt._$AI(i,this,0)}}disconnected(){}reconnected(){}}
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/class Nt{constructor(t){this.rt=t}disconnect(){this.rt=void 0}reconnect(t){this.rt=t}deref(){return this.rt}}class Ot{constructor(){this.lt=void 0,this.ht=void 0}get(){return this.lt}pause(){var t;null!==(t=this.lt)&&void 0!==t||(this.lt=new Promise((t=>this.ht=t)))}resume(){var t;null===(t=this.ht)||void 0===t||t.call(this),this.lt=this.ht=void 0}}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/class Lt extends Rt{constructor(){super(...arguments),this.ut=new Nt(this),this.ct=new Ot}render(t,i){return H}update(t,[i,s]){if(this.isConnected||this.disconnected(),i===this.dt)return;this.dt=i;let e=0;const{ut:n,ct:o}=this;return(async(t,i)=>{for await(const s of t)if(!1===await i(s))return})(i,(async t=>{for(;o.get();)await o.get();const r=n.deref();if(void 0!==r){if(r.dt!==i)return!1;void 0!==s&&(t=s(t,e)),r.commitValue(t,e),e++}return!0})),H}commitValue(t,i){this.setValue(t)}disconnected(){this.ut.disconnect(),this.ct.pause()}reconnected(){this.ut.reconnect(this),this.ct.resume()}}const jt=Et(Lt),zt=Et(
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
class extends Lt{constructor(t){if(super(t),2!==t.type)throw Error("asyncAppend can only be used in child expressions")}update(t,i){return this.et=t,super.update(t,i)}commitValue(t,i){0===i&&Tt(this.et);const s=mt(this.et);gt(s,t)}}),Ht=Et(
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
class extends Ct{constructor(t){super(t),this.vt=new WeakMap}render(t){return[t]}update(t,[i]){if(vt(this.ft)&&(!vt(i)||this.ft.strings!==i.strings)){const i=$t(t).pop();let s=this.vt.get(this.ft.strings);if(void 0===s){const t=document.createDocumentFragment();s=D(I,t),s.setConnected(!1),this.vt.set(this.ft.strings,s)}_t(s,[i]),mt(s,void 0,i)}if(vt(i)){if(!vt(this.ft)||this.ft.strings!==i.strings){const s=this.vt.get(i.strings);if(void 0!==s){const i=$t(s).pop();Tt(t),mt(t,void 0,i),_t(t,[i])}}this.ft=i}else this.ft=void 0;return this.render(i)}}),It=(t,i,s)=>{for(const s of i)if(s[0]===t)return(0,s[1])();return null==s?void 0:s()},Bt=Et(
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
class extends Ct{constructor(t){var i;if(super(t),1!==t.type||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var s,e;if(void 0===this.yt){this.yt=new Set,void 0!==t.strings&&(this.bt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(s=this.bt)||void 0===s?void 0:s.has(t))&&this.yt.add(t);return this.render(i)}const n=t.element.classList;this.yt.forEach((t=>{t in i||(n.remove(t),this.yt.delete(t))}));for(const t in i){const s=!!i[t];s===this.yt.has(t)||(null===(e=this.bt)||void 0===e?void 0:e.has(t))||(s?(n.add(t),this.yt.add(t)):(n.remove(t),this.yt.delete(t)))}return H}}),Dt={},Wt=Et(class extends Ct{constructor(){super(...arguments),this.gt=Dt}render(t,i){return i()}update(t,[i,s]){if(Array.isArray(i)){if(Array.isArray(this.gt)&&this.gt.length===i.length&&i.every(((t,i)=>t===this.gt[i])))return H}else if(this.gt===i)return H;return this.gt=Array.isArray(i)?Array.from(i):i,this.render(i,s)}}),Zt=t=>null!=t?t:I
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/;function*qt(t,i){const s="function"==typeof i;if(void 0!==t){let e=-1;for(const n of t)e>-1&&(yield s?i(e):i),e++,yield n}}
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const Ft=Et(class extends Ct{constructor(){super(...arguments),this.key=I}render(t,i){return this.key=t,i}update(t,[i,s]){return i!==this.key&&(_t(t),this.key=i),s}}),Gt=Et(
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
class extends Ct{constructor(t){if(super(t),3!==t.type&&1!==t.type&&4!==t.type)throw Error("The `live` directive is not allowed on child or event bindings");if(!yt(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[i]){if(i===H||i===I)return i;const s=t.element,e=t.name;if(3===t.type){if(i===s[e])return H}else if(4===t.type){if(!!i===s.hasAttribute(e))return H}else if(1===t.type&&s.getAttribute(e)===i+"")return H;return _t(t),i}});
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
function*Jt(t,i){if(void 0!==t){let s=0;for(const e of t)yield i(e,s++)}}
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function*Kt(t,i,s=1){const e=void 0===i?0:t;null!=i||(i=t);for(let t=e;s>0?t<i:i<t;t+=s)yield t}
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const Yt=()=>new Qt;class Qt{}const Xt=new WeakMap,ti=Et(class extends Rt{render(t){return I}update(t,[i]){var s;const e=i!==this.rt;return e&&void 0!==this.rt&&this.wt(void 0),(e||this._t!==this.$t)&&(this.rt=i,this.St=null===(s=t.options)||void 0===s?void 0:s.host,this.wt(this.$t=t.element)),I}wt(t){var i;if("function"==typeof this.rt){const s=null!==(i=this.St)&&void 0!==i?i:globalThis;let e=Xt.get(s);void 0===e&&(e=new WeakMap,Xt.set(s,e)),void 0!==e.get(this.rt)&&this.rt.call(this.St,void 0),e.set(this.rt,t),void 0!==t&&this.rt.call(this.St,t)}else this.rt.value=t}get _t(){var t,i,s;return"function"==typeof this.rt?null===(i=Xt.get(null!==(t=this.St)&&void 0!==t?t:globalThis))||void 0===i?void 0:i.get(this.rt):null===(s=this.rt)||void 0===s?void 0:s.value}disconnected(){this._t===this.$t&&this.wt(void 0)}reconnected(){this.wt(this.$t)}}),ii=(t,i,s)=>{const e=new Map;for(let n=i;n<=s;n++)e.set(t[n],n);return e},si=Et(class extends Ct{constructor(t){if(super(t),2!==t.type)throw Error("repeat() can only be used in text expressions")}Tt(t,i,s){let e;void 0===s?s=i:void 0!==i&&(e=i);const n=[],o=[];let r=0;for(const i of t)n[r]=e?e(i,r):r,o[r]=s(i,r),r++;return{values:o,keys:n}}render(t,i,s){return this.Tt(t,i,s).values}update(t,[i,s,e]){var n;const o=$t(t),{values:r,keys:l}=this.Tt(i,s,e);if(!Array.isArray(o))return this.xt=l,r;const h=null!==(n=this.xt)&&void 0!==n?n:this.xt=[],u=[];let c,a,d=0,v=o.length-1,f=0,p=r.length-1;for(;d<=v&&f<=p;)if(null===o[d])d++;else if(null===o[v])v--;else if(h[d]===l[f])u[f]=gt(o[d],r[f]),d++,f++;else if(h[v]===l[p])u[p]=gt(o[v],r[p]),v--,p--;else if(h[d]===l[p])u[p]=gt(o[d],r[p]),mt(t,u[p+1],o[d]),d++,p--;else if(h[v]===l[f])u[f]=gt(o[v],r[f]),mt(t,o[d],o[v]),v--,f++;else if(void 0===c&&(c=ii(l,f,p),a=ii(h,d,v)),c.has(h[d]))if(c.has(h[v])){const i=a.get(l[f]),s=void 0!==i?o[i]:null;if(null===s){const i=mt(t,o[d]);gt(i,r[f]),u[f]=i}else u[f]=gt(s,r[f]),mt(t,o[d],s),o[i]=null;f++}else St(o[v]),v--;else St(o[d]),d++;for(;f<=p;){const i=mt(t,u[p+1]);gt(i,r[f]),u[f++]=i}for(;d<=v;){const t=o[d++];null!==t&&St(t)}return this.xt=l,_t(t,u),H}}),ei=Et(
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
class extends Ct{constructor(t){var i;if(super(t),1!==t.type||"style"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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(((i,s)=>{const e=t[s];return null==e?i:i+`${s=s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`}),"")}update(t,[i]){const{style:s}=t.element;if(void 0===this.Et){this.Et=new Set;for(const t in i)this.Et.add(t);return this.render(i)}this.Et.forEach((t=>{null==i[t]&&(this.Et.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in i){const e=i[t];null!=e&&(this.Et.add(t),t.includes("-")?s.setProperty(t,e):s[t]=e)}return H}}),ni=Et(
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
class extends Ct{constructor(t){if(super(t),2!==t.type)throw Error("templateContent can only be used in child bindings")}render(t){return this.Ct===t?H:(this.Ct=t,document.importNode(t.content,!0))}});class oi extends Ct{constructor(t){if(super(t),this.ft=I,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this.At=void 0,this.ft=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.ft)return this.At;this.ft=t;const i=[t];return i.raw=i,this.At={_$litType$:this.constructor.resultType,strings:i,values:[]}}}oi.directiveName="unsafeHTML",oi.resultType=1;const ri=Et(oi);
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/class li extends oi{}li.directiveName="unsafeSVG",li.resultType=2;const hi=Et(li),ui=t=>!at(t)&&"function"==typeof t.then;
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/class ci extends Rt{constructor(){super(...arguments),this.kt=1073741823,this.Mt=[],this.ut=new Nt(this),this.ct=new Ot}render(...t){var i;return null!==(i=t.find((t=>!ui(t))))&&void 0!==i?i:H}update(t,i){const s=this.Mt;let e=s.length;this.Mt=i;const n=this.ut,o=this.ct;this.isConnected||this.disconnected();for(let t=0;t<i.length&&!(t>this.kt);t++){const r=i[t];if(!ui(r))return this.kt=t,r;t<e&&r===s[t]||(this.kt=1073741823,e=0,Promise.resolve(r).then((async t=>{for(;o.get();)await o.get();const i=n.deref();if(void 0!==i){const s=i.Mt.indexOf(r);s>-1&&s<i.kt&&(i.kt=s,i.setValue(t))}})))}return H}disconnected(){this.ut.disconnect(),this.ct.pause()}reconnected(){this.ut.reconnect(this),this.ct.resume()}}const ai=Et(ci);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function di(t,i,s){return t?i():null==s?void 0:s()}
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const vi=Symbol.for(""),fi=t=>{if((null==t?void 0:t.r)===vi)return null==t?void 0:t._$litStatic$},pi=t=>({_$litStatic$:t,r:vi}),yi=(t,...i)=>({_$litStatic$:i.reduce(((i,s,e)=>i+(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[e+1]),t[0]),r:vi}),bi=new Map,mi=t=>(i,...s)=>{const e=s.length;let n,o;const r=[],l=[];let h,u=0,c=!1;for(;u<e;){for(h=i[u];u<e&&void 0!==(o=s[u],n=fi(o));)h+=n+i[++u],c=!0;l.push(o),r.push(h),u++}if(u===e&&r.push(i[e]),c){const t=r.join("$$lit$$");void 0===(i=bi.get(t))&&(r.raw=r,bi.set(t,i=r)),s=l}return t(i,...s)},gi=mi(j),wi=mi(z);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
window.litDisableBundleWarning||console.warn("Lit has been loaded from a bundle that combines all core features into a single file. To reduce transfer size and parsing cost, consider using the `lit` npm package directly in your project.");export{Rt as AsyncDirective,Lt as AsyncReplaceDirective,n as CSSResult,Ct as Directive,lt as LitElement,xt as PartType,b as ReactiveElement,dt as TemplateResultType,oi as UnsafeHTMLDirective,ci as UntilDirective,rt as UpdatingElement,ut as _$LE,st as _$LH,l as adoptStyles,zt as asyncAppend,jt as asyncReplace,Ht as cache,It as choose,Bt as classMap,Tt as clearPart,Yt as createRef,r as css,f as defaultConverter,Et as directive,$t as getCommittedValue,h as getCompatibleStyle,pt as getDirectiveClass,Wt as guard,j as html,Zt as ifDefined,mt as insertPart,ft as isDirectiveResult,at as isPrimitive,yt as isSingleExpression,vt as isTemplateResult,qt as join,Ft as keyed,yi as literal,Gt as live,Jt as map,H as noChange,p as notEqual,I as nothing,Kt as range,ti as ref,St as removePart,D as render,si as repeat,gt as setChildPartValue,_t as setCommittedValue,gi as staticHtml,wi as staticSvg,ei as styleMap,i as supportsAdoptingStyleSheets,z as svg,ni as templateContent,o as unsafeCSS,ri as unsafeHTML,hi as unsafeSVG,pi as unsafeStatic,ai as until,di as when,mi as withStatic};
//# sourceMappingURL=lit-all.min.js.map