constt=globalThis,s=t.ShadowRoot&&(void0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"inDocument.prototype&&"replace"inCSSStyleSheet.prototype,i=Symbol(),e=newWeakMap;classn{constructor(t,s,e){if(this._$cssResult$=!0,e!==i)throwError("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}getstyleSheet(){lett=this.i;consti=this.t;if(s&&void0===t){consts=void0!==i&&1===i.length;s&&(t=e.get(i)),void0===t&&((this.i=t=newCSSStyleSheet).replaceSync(this.cssText),s&&e.set(i,t))}returnt}toString(){returnthis.cssText}}constr=t=>newn("string"==typeoft?t:t+"",void0,i),o=(t,...s)=>{conste=1===t.length?t[0]:s.reduce(((s,i,e)=>s+(t=>{if(!0===t._$cssResult$)returnt.cssText;if("number"==typeoft)returnt;throwError("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[e+1]),t[0]);returnnewn(e,t,i)},h=(i,e)=>{if(s)i.adoptedStyleSheets=e.map((t=>tinstanceofCSSStyleSheet?t:t.styleSheet));elsefor(constsofe){conste=document.createElement("style"),n=t.litNonce;void0!==n&&e.setAttribute("nonce",n),e.textContent=s.cssText,i.appendChild(e)}},c=s?t=>t:t=>tinstanceofCSSStyleSheet?(t=>{lets="";for(constioft.cssRules)s+=i.cssText;returnr(s)})(t):t
classextendsZt{constructor(t){if(super(t),2!==t.type)throwError("asyncAppend can only be used in child expressions")}update(t,s){returnthis.rt=t,super.update(t,s)}commitValue(t,s){0===s&&Ot(this.rt);consti=Et(this.rt);Ct(i,t)}}),Gt=t=>_t(t)?t._$litType$.h:t.strings,Jt=Vt(classextendsRt{constructor(t){super(t),this.bt=newWeakMap}render(t){return[t]}update(t,[s]){consti=wt(this.gt)?Gt(this.gt):null,e=wt(s)?Gt(s):null;if(null!==i&&(null===e||i!==e)){consts=At(t).pop();lete=this.bt.get(i);if(void0===e){constt=document.createDocumentFragment();e=ut(J,t),e.setConnected(!1),this.bt.set(i,e)}Mt(e,[s]),Et(e,void0,s)}if(null!==e){if(null===i||i!==e){consts=this.bt.get(e);if(void0!==s){consti=At(s).pop();Ot(t),Et(t,void0,i),Mt(t,[i])}}this.gt=s}elsethis.gt=void0;returnthis.render(s)}}),Kt=(t,s,i)=>{for(constiofs)if(i[0]===t)return(0,i[1])();returni?.()},Yt=Vt(
classextendsRt{constructor(t){if(super(t),1!==t.type||"class"!==t.name||t.strings?.length>2)throwError("`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((s=>t[s])).join(" ")+" "}update(t,[s]){if(void0===this.wt){this.wt=newSet,void0!==t.strings&&(this._t=newSet(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(consttins)s[t]&&!this._t?.has(t)&&this.wt.add(t);returnthis.render(s)}consti=t.element.classList;for(consttofthis.wt)tins||(i.remove(t),this.wt.delete(t));for(consttins){conste=!!s[t];e===this.wt.has(t)||this._t?.has(t)||(e?(i.add(t),this.wt.add(t)):(i.remove(t),this.wt.delete(t)))}returnG}}),Qt={},Xt=Vt(classextendsRt{constructor(){super(...arguments),this.St=Qt}render(t,s){returns()}update(t,[s,i]){if(Array.isArray(s)){if(Array.isArray(this.St)&&this.St.length===s.length&&s.every(((t,s)=>t===this.St[s])))returnG}elseif(this.St===s)returnG;returnthis.St=Array.isArray(s)?Array.from(s):s,this.render(s,i)}}),ts=t=>t??J
classextendsRt{constructor(t){if(super(t),3!==t.type&&1!==t.type&&4!==t.type)throwError("The `live` directive is not allowed on child or event bindings");if(!Tt(t))throwError("`live` bindings can only contain a single expression")}render(t){returnt}update(t,[s]){if(s===G||s===J)returns;consti=t.element,e=t.name;if(3===t.type){if(s===i[e])returnG}elseif(4===t.type){if(!!s===i.hasAttribute(e))returnG}elseif(1===t.type&&i.getAttribute(e)===s+"")returnG;returnMt(t),s}});
*/const os=()=>new hs;class hs{}const cs=new WeakMap,ls=Vt(class extends It{render(t){return J}update(t,[s]){const i=s!==this.lt;return i&&void 0!==this.lt&&this.$t(void 0),(i||this.Tt!==this.xt)&&(this.lt=s,this.Et=t.options?.host,this.$t(this.xt=t.element)),J}$t(t){if(this.isConnected||(t=void 0),"function"==typeof this.lt){const s=this.Et??globalThis;let i=cs.get(s);void 0===i&&(i=new WeakMap,cs.set(s,i)),void 0!==i.get(this.lt)&&this.lt.call(this.Et,void 0),i.set(this.lt,t),void 0!==t&&this.lt.call(this.Et,t)}else this.lt.value=t}get Tt(){return"function"==typeof this.lt?cs.get(this.Et??globalThis)?.get(this.lt):this.lt?.value}disconnected(){this.Tt===this.xt&&this.$t(void 0)}reconnected(){this.$t(this.xt)}}),as=(t,s,i)=>{const e=new Map;for(let n=s;n<=i;n++)e.set(t[n],n);return e},us=Vt(class extends Rt{constructor(t){if(super(t),2!==t.type)throw Error("repeat() can only be used in text expressions")}Ct(t,s,i){let e;void 0===i?i=s:void 0!==s&&(e=s);const n=[],r=[];let o=0;for(const s of t)n[o]=e?e(s,o):o,r[o]=i(s,o),o++;return{values:r,keys:n}}render(t,s,i){return this.Ct(t,s,i).values}update(t,[s,i,e]){const n=At(t),{values:r,keys:o}=this.Ct(s,i,e);if(!Array.isArray(n))return this.Pt=o,r;const h=this.Pt??=[],c=[];let l,a,u=0,d=n.length-1,f=0,p=r.length-1;for(;u<=d&&f<=p;)if(null===n[u])u++;else if(null===n[d])d--;else if(h[u]===o[f])c[f]=Ct(n[u],r[f]),u++,f++;else if(h[d]===o[p])c[p]=Ct(n[d],r[p]),d--,p--;else if(h[u]===o[p])c[p]=Ct(n[u],r[p]),Et(t,c[p+1],n[u]),u++,p--;else if(h[d]===o[f])c[f]=Ct(n[d],r[f]),Et(t,n[u],n[d]),d--,f++;else if(void 0===l&&(l=as(o,f,p),a=as(h,u,d)),l.has(h[u]))if(l.has(h[d])){const s=a.get(o[f]),i=void 0!==s?n[s]:null;if(null===i){const s=Et(t,n[u]);Ct(s,r[f]),c[f]=s}else c[f]=Ct(i,r[f]),Et(t,n[u],i),n[s]=null;f++}else kt(n[d]),d--;else kt(n[u]),u++;for(;f<=p;){const s=Et(t,c[p+1]);Ct(s,r[f]),c[f++]=s}for(;u<=d;){const t=n[u++];null!==t&&kt(t)}return this.Pt=o,Mt(t,c),G}}),ds="important",fs=" !"+ds,ps=Vt(class extends Rt{constructor(t){if(super(t),1!==t.type||"style"!==t.name||t.strings?.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(((s,i)=>{const e=t[i];return null==e?s:s+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`}),"")}update(t,[s]){const{style:i}=t.element;if(void 0===this.Mt)return this.Mt=new Set(Object.keys(s)),this.render(s);for(const t of this.Mt)null==s[t]&&(this.Mt.delete(t),t.includes("-")?i.removeProperty(t):i[t]=null);for(const t in s){const e=s[t];if(null!=e){this.Mt.add(t);const s="string"==typeof e&&e.endsWith(fs);t.includes("-")||s?i.setProperty(t,s?e.slice(0,-11):e,s?ds:""):i[t]=e}}return G}}),vs=Vt(
classextendsRt{constructor(t){if(super(t),2!==t.type)throwError("templateContent can only be used in child bindings")}render(t){returnthis.At===t?G:(this.At=t,document.importNode(t.content,!0))}});classysextendsRt{constructor(t){if(super(t),this.gt=J,2!==t.type)throwError(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)returnthis.kt=void0,this.gt=t;if(t===G)returnt;if("string"!=typeoft)throwError(this.constructor.directiveName+"() called with a non-string value");if(t===this.gt)returnthis.kt;this.gt=t;consts=[t];returns.raw=s,this.kt={_$litType$:this.constructor.resultType,strings:s,values:[]}}}ys.directiveName="unsafeHTML",ys.resultType=1;constms=Vt(ys);
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{ItasAsyncDirective,ZtasAsyncReplaceDirective,nasCSSResult,RtasDirective,ftasLitElement,UtasPartType,$asReactiveElement,gtasTemplateResultType,ysasUnsafeHTMLDirective,SsasUntilDirective,vtas_$LE,ltas_$LH,hasadoptStyles,FtasasyncAppend,qtasasyncReplace,Jtascache,Ktaschoose,YtasclassMap,OtasclearPart,osascreateRef,oascss,wasdefaultConverter,Vtasdirective,AtasgetCommittedValue,casgetCompatibleStyle,$tasgetDirectiveClass,Xtasguard,Zashtml,tsasifDefined,EtasinsertPart,_tasisCompiledTemplateResult,StasisDirectiveResult,btasisPrimitive,ytasisServer,TtasisSingleExpression,wtasisTemplateResult,ssasjoin,isaskeyed,Psasliteral,esaslive,nsasmap,Fasmathml,GasnoChange,_asnotEqual,Jasnothing,rsasrange,lsasref,ktasremovePart,utasrender,usasrepeat,CtassetChildPartValue,MtassetCommittedValue,ksasstaticHtml,OsasstaticSvg,psasstyleMap,sassupportsAdoptingStyleSheets,qassvg,vsastemplateContent,rasunsafeCSS,msasunsafeHTML,gsasunsafeSVG,CsasunsafeStatic,$sasuntil,Tsaswhen,AsaswithStatic};