@fluid-topics/ft-ripple
Version:
A custom Fluid Topics ripple component
6 lines • 272 kB
JavaScript
"use strict";(()=>{var zs=Object.create;var Hr=Object.defineProperty;var js=Object.getOwnPropertyDescriptor;var Vs=Object.getOwnPropertyNames;var Gs=Object.getPrototypeOf,Ks=Object.prototype.hasOwnProperty;var Zs=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),U=(o,e)=>{for(var r in e)Hr(o,r,{get:e[r],enumerable:!0})},qs=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Vs(e))!Ks.call(o,a)&&a!==r&&Hr(o,a,{get:()=>e[a],enumerable:!(n=js(e,a))||n.enumerable});return o};var Ys=(o,e,r)=>(r=o!=null?zs(Gs(o)):{},qs(e||!o||!o.__esModule?Hr(r,"default",{value:o,enumerable:!0}):r,o));var ps=Zs((Le,fs)=>{var $r=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Mr=function(){function o(){this.fetch=!1,this.DOMException=$r.DOMException}return o.prototype=$r,new o}();(function(o){var e=function(r){var n=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function d(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var x={next:function(){var N=y.shift();return{done:N===void 0,value:N}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function p(y){this.map={},y instanceof p?y.forEach(function(x,N){this.append(N,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}p.prototype.append=function(y,x){y=d(y),x=u(x);var N=this.map[y];this.map[y]=N?N+", "+x:x},p.prototype.delete=function(y){delete this.map[d(y)]},p.prototype.get=function(y){return y=d(y),this.has(y)?this.map[y]:null},p.prototype.has=function(y){return this.map.hasOwnProperty(d(y))},p.prototype.set=function(y,x){this.map[d(y)]=u(x)},p.prototype.forEach=function(y,x){for(var N in this.map)this.map.hasOwnProperty(N)&&y.call(x,this.map[N],N,this)},p.prototype.keys=function(){var y=[];return this.forEach(function(x,N){y.push(N)}),h(y)},p.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),h(y)},p.prototype.entries=function(){var y=[];return this.forEach(function(x,N){y.push([N,x])}),h(y)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function m(y){return new Promise(function(x,N){y.onload=function(){x(y.result)},y.onerror=function(){N(y.error)}})}function b(y){var x=new FileReader,N=m(x);return x.readAsArrayBuffer(y),N}function S(y){var x=new FileReader,N=m(x),L=/charset=([A-Za-z0-9_-]+)/.exec(y.type),F=L?L[1]:"utf-8";return x.readAsText(y,F),N}function w(y){for(var x=new Uint8Array(y),N=new Array(x.length),L=0;L<x.length;L++)N[L]=String.fromCharCode(x[L]);return N.join("")}function C(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=C(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=C(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=g(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}var O=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(y){var x=y.toUpperCase();return O.indexOf(x)>-1?x:y}function E(y,x){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var N=x.body;if(y instanceof E){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,x.headers||(this.headers=new p(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!N&&y._bodyInit!=null&&(N=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new p(x.headers)),this.method=v(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var _=new AbortController;return _.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var L=/([?&])_=[^&]*/;if(L.test(this.url))this.url=this.url.replace(L,"$1_="+new Date().getTime());else{var F=/\?/;this.url+=(F.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function R(y){var x=new FormData;return y.trim().split("&").forEach(function(N){if(N){var L=N.split("="),F=L.shift().replace(/\+/g," "),_=L.join("=").replace(/\+/g," ");x.append(decodeURIComponent(F),decodeURIComponent(_))}}),x}function P(y){var x=new p,N=y.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(L){return L.indexOf(`
`)===0?L.substr(1,L.length):L}).forEach(function(L){var F=L.split(":"),_=F.shift().trim();if(_){var oe=F.join(":").trim();try{x.append(_,oe)}catch(yt){console.warn("Response "+yt.message)}}}),x}A.call(E.prototype);function k(y,x){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new p(x.headers),this.url=x.url||"",this._initBody(y)}A.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var y=new k(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var T=[301,302,303,307,308];k.redirect=function(y,x){if(T.indexOf(x)===-1)throw new RangeError("Invalid status code");return new k(null,{status:x,headers:{location:y}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(x,N){this.message=x,this.name=N;var L=Error(x);this.stack=L.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function I(y,x){return new Promise(function(N,L){var F=new E(y,x);if(F.signal&&F.signal.aborted)return L(new r.DOMException("Aborted","AbortError"));var _=new XMLHttpRequest;function oe(){_.abort()}_.onload=function(){var V={statusText:_.statusText,headers:P(_.getAllResponseHeaders()||"")};F.url.indexOf("file://")===0&&(_.status<200||_.status>599)?V.status=200:V.status=_.status,V.url="responseURL"in _?_.responseURL:V.headers.get("X-Request-URL");var Te="response"in _?_.response:_.responseText;setTimeout(function(){N(new k(Te,V))},0)},_.onerror=function(){setTimeout(function(){L(new TypeError("Network request failed"))},0)},_.ontimeout=function(){setTimeout(function(){L(new TypeError("Network request timed out"))},0)},_.onabort=function(){setTimeout(function(){L(new r.DOMException("Aborted","AbortError"))},0)};function yt(V){try{return V===""&&n.location.href?n.location.href:V}catch{return V}}if(_.open(F.method,yt(F.url),!0),F.credentials==="include"?_.withCredentials=!0:F.credentials==="omit"&&(_.withCredentials=!1),"responseType"in _&&(a.blob?_.responseType="blob":a.arrayBuffer&&(_.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof p||n.Headers&&x.headers instanceof n.Headers)){var $n=[];Object.getOwnPropertyNames(x.headers).forEach(function(V){$n.push(d(V)),_.setRequestHeader(V,u(x.headers[V]))}),F.headers.forEach(function(V,Te){$n.indexOf(Te)===-1&&_.setRequestHeader(Te,V)})}else F.headers.forEach(function(V,Te){_.setRequestHeader(Te,V)});F.signal&&(F.signal.addEventListener("abort",oe),_.onreadystatechange=function(){_.readyState===4&&F.signal.removeEventListener("abort",oe)}),_.send(typeof F._bodyInit>"u"?null:F._bodyInit)})}return I.polyfill=!0,n.fetch||(n.fetch=I,n.Headers=p,n.Request=E,n.Response=k),r.Headers=p,r.Request=E,r.Response=k,r.fetch=I,r}({})})(Mr);Mr.fetch.ponyfill=!0;delete Mr.fetch.polyfill;var ht=$r.fetch?$r:Mr;Le=ht.fetch;Le.default=ht.fetch;Le.fetch=ht.fetch;Le.Headers=ht.Headers;Le.Request=ht.Request;Le.Response=ht.Response;fs.exports=Le});if(!ShadowRoot.prototype.createElement){let o=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,n=window.customElements,a=new WeakMap,i=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(O,v){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(v)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=v.prototype.attributeChangedCallback,R=new Set(v.observedAttributes||[]);g(v,R,E);let P={elementClass:v,connectedCallback:v.prototype.connectedCallback,disconnectedCallback:v.prototype.disconnectedCallback,adoptedCallback:v.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:v.formAssociated,formAssociatedCallback:v.prototype.formAssociatedCallback,formDisabledCallback:v.prototype.formDisabledCallback,formResetCallback:v.prototype.formResetCallback,formStateRestoreCallback:v.prototype.formStateRestoreCallback,observedAttributes:R};this._definitionsByTag.set(O,P),this._definitionsByClass.set(v,P);let k=r.call(n,O);k||(k=p(O),e.call(n,O,k)),this===window.customElements&&(s.set(v,P),P.standInClass=k);let T=this._awaitingUpgrade.get(O);if(T){this._awaitingUpgrade.delete(O);for(let y of T)i.delete(y),b(y,P,!0)}let I=this._whenDefinedPromises.get(O);return I!==void 0&&(I.resolve(v),this._whenDefinedPromises.delete(O)),v}upgrade(){w.push(this),n.upgrade.apply(n,arguments),w.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let v=this._getDefinition(O);if(v!==void 0)return Promise.resolve(v.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(R=>E.resolve=R),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,v,E){let R=this._awaitingUpgrade.get(v);R||this._awaitingUpgrade.set(v,R=new Set),E?R.add(O):R.delete(O)}};let d;window.HTMLElement=function(){let v=d;if(v)return d=void 0,v;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return v=Reflect.construct(o,[],E.standInClass),Object.setPrototypeOf(v,this.constructor.prototype),a.set(v,E),v},window.HTMLElement.prototype=o.prototype;let u=O=>O===document||O instanceof ShadowRoot,h=O=>{let v=O.getRootNode();if(!u(v)){let E=w[w.length-1];if(E instanceof CustomElementRegistry)return E;v=E.getRootNode(),u(v)||(v=l.get(v)?.getRootNode()||document)}return v.customElements},p=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(o,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let R=h(E)||window.customElements,P=R._getDefinition(O);return P?b(E,P):i.set(E,R),E}connectedCallback(){let E=a.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=a.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){a.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=a.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=a.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=a.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=a.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},g=(O,v,E)=>{if(v.size===0||E===void 0)return;let R=O.prototype.setAttribute;R&&(O.prototype.setAttribute=function(T,I){let y=T.toLowerCase();if(v.has(y)){let x=this.getAttribute(y);R.call(this,y,I),E.call(this,y,x,I)}else R.call(this,y,I)});let P=O.prototype.removeAttribute;P&&(O.prototype.removeAttribute=function(T){let I=T.toLowerCase();if(v.has(I)){let y=this.getAttribute(I);P.call(this,I),E.call(this,I,y,null)}else P.call(this,I)});let k=O.prototype.toggleAttribute;k&&(O.prototype.toggleAttribute=function(T,I){let y=T.toLowerCase();if(v.has(y)){let x=this.getAttribute(y);k.call(this,y,I);let N=this.getAttribute(y);E.call(this,y,x,N)}else k.call(this,y,I)})},m=O=>{let v=Object.getPrototypeOf(O);if(v!==window.HTMLElement)return v===o?Object.setPrototypeOf(O,window.HTMLElement):m(v)},b=(O,v,E=!1)=>{Object.setPrototypeOf(O,v.elementClass.prototype),a.set(O,v),d=O;try{new v.elementClass}catch{m(v.elementClass),new v.elementClass}v.attributeChangedCallback&&v.observedAttributes.forEach(R=>{O.hasAttribute(R)&&v.attributeChangedCallback.call(O,R,null,O.getAttribute(R))}),E&&v.connectedCallback&&O.isConnected&&v.connectedCallback.call(O)},S=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let v=S.apply(this,arguments);return O.customElements&&(v.customElements=O.customElements),v};let w=[document],C=(O,v,E=void 0)=>{let R=(E?Object.getPrototypeOf(E):O.prototype)[v];O.prototype[v]=function(){w.push(this);let P=R.apply(E||this,arguments);return P!==void 0&&l.set(P,this),w.pop(),P}};C(ShadowRoot,"createElement",document),C(ShadowRoot,"importNode",document),C(Element,"insertAdjacentHTML");let A=(O,v)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,v);Object.defineProperty(O.prototype,v,{...E,set(R){w.push(this),E.set.call(this,R),w.pop()}})};if(A(Element,"innerHTML"),A(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,v=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...T){let I=v.call(this,...T);return O.set(I,this),I},E.forEach(T=>{let I=window.ElementInternals.prototype,y=I[T];I[T]=function(...x){let N=O.get(this);if(a.get(N).formAssociated===!0)return y?.call(this,...x);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class R extends Array{constructor(I){super(...I),this._elements=I}get value(){return this._elements.find(I=>I.checked===!0)?.value||""}}class P{constructor(I){let y=new Map;I.forEach((x,N)=>{let L=x.getAttribute("name"),F=y.get(L)||[];this[+N]=x,F.push(x),y.set(L,F)}),this.length=I.length,y.forEach((x,N)=>{x&&(x.length===1?this[N]=x[0]:this[N]=new R(x))})}namedItem(I){return this[I]}}let k=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let T=k.get.call(this,[]),I=[];for(let y of T){let x=a.get(y);(!x||x.formAssociated===!0)&&I.push(y)}return new P(I)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,n,a)=>{if(n!==null)try{e.bind(window.customElements)(r,n,a)}catch(i){console.info(r,n,a,i)}}}var ro={};U(ro,{CSSResult:()=>Qe,LitElement:()=>pe,ReactiveElement:()=>ne,_$LE:()=>vc,_$LH:()=>mc,adoptStyles:()=>fr,css:()=>z,defaultConverter:()=>pr,getCompatibleStyle:()=>wt,html:()=>eo,isServer:()=>fu,noChange:()=>ve,notEqual:()=>qr,nothing:()=>H,render:()=>to,supportsAdoptingStyleSheets:()=>Ot,svg:()=>gc,unsafeCSS:()=>Et});var Jt=globalThis,er=Jt.ShadowRoot&&(Jt.ShadyCSS===void 0||Jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bn=Symbol(),Mn=new WeakMap,Qt=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Bn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(er&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=Mn.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Mn.set(r,e))}return e}toString(){return this.cssText}},Wn=o=>new Qt(typeof o=="string"?o:o+"",void 0,Bn);var zr=(o,e)=>{if(er)o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),a=Jt.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}},tr=er?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return Wn(r)})(o):o;var{is:Xs,defineProperty:Js,getOwnPropertyDescriptor:Qs,getOwnPropertyNames:ec,getOwnPropertySymbols:tc,getPrototypeOf:rc}=Object,rr=globalThis,Hn=rr.trustedTypes,oc=Hn?Hn.emptyScript:"",nc=rr.reactiveElementPolyfillSupport,gt=(o,e)=>o,mt={toAttribute(o,e){switch(e){case Boolean:o=o?oc:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let r=o;switch(e){case Boolean:r=o!==null;break;case Number:r=o===null?null:Number(o);break;case Object:case Array:try{r=JSON.parse(o)}catch{r=null}}return r}},or=(o,e)=>!Xs(o,e),zn={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:or};Symbol.metadata??=Symbol("metadata"),rr.litPropertyMetadata??=new WeakMap;var ke=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=zn){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,r);a!==void 0&&Js(this.prototype,e,a)}}static getPropertyDescriptor(e,r,n){let{get:a,set:i}=Qs(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return a?.call(this)},set(s){let l=a?.call(this);i.call(this,s),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??zn}static _$Ei(){if(this.hasOwnProperty(gt("elementProperties")))return;let e=rc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(gt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gt("properties"))){let r=this.properties,n=[...ec(r),...tc(r)];for(let a of n)this.createProperty(a,r[a])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,a]of r)this.elementProperties.set(n,a)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let a=this._$Eu(r,n);a!==void 0&&this._$Eh.set(a,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)r.unshift(tr(a))}else e!==void 0&&r.push(tr(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r){let n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(a!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:mt).toAttribute(r,n.type);this._$Em=e,i==null?this.removeAttribute(a):this.setAttribute(a,i),this._$Em=null}}_$AK(e,r){let n=this.constructor,a=n._$Eh.get(e);if(a!==void 0&&this._$Em!==a){let i=n.getPropertyOptions(a),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:mt;this._$Em=a,this[a]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,n,a=!1,i){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??or)(a?i:this[e],r))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,i]of this._$Ep)this[a]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[a,i]of n)i.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.C(a,this[a],i)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};ke.elementStyles=[],ke.shadowRootOptions={mode:"open"},ke[gt("elementProperties")]=new Map,ke[gt("finalized")]=new Map,nc?.({ReactiveElement:ke}),(rr.reactiveElementVersions??=[]).push("2.0.2");var Vr=globalThis,nr=Vr.trustedTypes,jn=nr?nr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Gr="$lit$",ue=`lit$${(Math.random()+"").slice(9)}$`,Kr="?"+ue,ac=`<${Kr}>`,De=document,ar=()=>De.createComment(""),xt=o=>o===null||typeof o!="object"&&typeof o!="function",Yn=Array.isArray,Xn=o=>Yn(o)||typeof o?.[Symbol.iterator]=="function",jr=`[
\f\r]`,bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vn=/-->/g,Gn=/>/g,Fe=RegExp(`>|${jr}(?:([^\\s"'>=/]+)(${jr}*=${jr}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Kn=/'/g,Zn=/"/g,Jn=/^(?:script|style|textarea|title)$/i,Qn=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),Qd=Qn(1),eu=Qn(2),q=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),qn=new WeakMap,Ue=De.createTreeWalker(De,129);function ea(o,e){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return jn!==void 0?jn.createHTML(e):e}var ta=(o,e)=>{let r=o.length-1,n=[],a,i=e===2?"<svg>":"",s=bt;for(let l=0;l<r;l++){let d=o[l],u,h,p=-1,g=0;for(;g<d.length&&(s.lastIndex=g,h=s.exec(d),h!==null);)g=s.lastIndex,s===bt?h[1]==="!--"?s=Vn:h[1]!==void 0?s=Gn:h[2]!==void 0?(Jn.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=Fe):h[3]!==void 0&&(s=Fe):s===Fe?h[0]===">"?(s=a??bt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?Fe:h[3]==='"'?Zn:Kn):s===Zn||s===Kn?s=Fe:s===Vn||s===Gn?s=bt:(s=Fe,a=void 0);let m=s===Fe&&o[l+1].startsWith("/>")?" ":"";i+=s===bt?d+ac:p>=0?(n.push(u),d.slice(0,p)+Gr+d.slice(p)+ue+m):d+ue+(p===-2?l:m)}return[ea(o,i+(o[r]||"<?>")+(e===2?"</svg>":"")),n]},vt=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let i=0,s=0,l=e.length-1,d=this.parts,[u,h]=ta(e,r);if(this.el=o.createElement(u,n),Ue.currentNode=this.el.content,r===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(a=Ue.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let p of a.getAttributeNames())if(p.endsWith(Gr)){let g=h[s++],m=a.getAttribute(p).split(ue),b=/([.?@])?(.*)/.exec(g);d.push({type:1,index:i,name:b[2],strings:m,ctor:b[1]==="."?sr:b[1]==="?"?cr:b[1]==="@"?lr:Me}),a.removeAttribute(p)}else p.startsWith(ue)&&(d.push({type:6,index:i}),a.removeAttribute(p));if(Jn.test(a.tagName)){let p=a.textContent.split(ue),g=p.length-1;if(g>0){a.textContent=nr?nr.emptyScript:"";for(let m=0;m<g;m++)a.append(p[m],ar()),Ue.nextNode(),d.push({type:2,index:++i});a.append(p[g],ar())}}}else if(a.nodeType===8)if(a.data===Kr)d.push({type:2,index:i});else{let p=-1;for(;(p=a.data.indexOf(ue,p+1))!==-1;)d.push({type:7,index:i}),p+=ue.length-1}i++}}static createElement(e,r){let n=De.createElement("template");return n.innerHTML=e,n}};function $e(o,e,r=o,n){if(e===q)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,i=xt(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(o),a._$AT(o,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=$e(o,a._$AS(o,e.values),a,n)),e}var ir=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??De).importNode(r,!0);Ue.currentNode=a;let i=Ue.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new St(i,i.nextSibling,this,e):d.type===1?u=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(u=new dr(i,this,e)),this._$AV.push(u),d=n[++l]}s!==d?.index&&(i=Ue.nextNode(),s++)}return Ue.currentNode=De,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},St=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=$e(this,e,r),xt(e)?e===M||e==null||e===""?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==q&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Xn(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==M&&xt(this._$AH)?this._$AA.nextSibling.data=e:this.$(De.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=vt.createElement(ea(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let i=new ir(a,this),s=i.u(this.options);i.p(r),this.$(s),this._$AH=i}}_$AC(e){let r=qn.get(e.strings);return r===void 0&&qn.set(e.strings,r=new vt(e)),r}T(e){Yn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let i of e)a===r.length?r.push(n=new o(this.k(ar()),this.k(ar()),this,this.options)):n=r[a],n._$AI(i),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Me=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,i){this.type=1,this._$AH=M,this._$AN=void 0,this.element=e,this.name=r,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}_$AI(e,r=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=$e(this,e,r,0),s=!xt(e)||e!==this._$AH&&e!==q,s&&(this._$AH=e);else{let l=e,d,u;for(e=i[0],d=0;d<i.length-1;d++)u=$e(this,l[n+d],r,d),u===q&&(u=this._$AH[d]),s||=!xt(u)||u!==this._$AH[d],u===M?e=M:e!==M&&(e+=(u??"")+i[d+1]),this._$AH[d]=u}s&&!a&&this.O(e)}O(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},sr=class extends Me{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===M?void 0:e}},cr=class extends Me{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==M)}},lr=class extends Me{constructor(e,r,n,a,i){super(e,r,n,a,i),this.type=5}_$AI(e,r=this){if((e=$e(this,e,r,0)??M)===q)return;let n=this._$AH,a=e===M&&n!==M||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==M&&(n===M||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},dr=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){$e(this,e)}},ra={j:Gr,P:ue,A:Kr,C:1,M:ta,L:ir,R:Xn,V:$e,D:St,I:Me,H:cr,N:lr,U:sr,B:dr},ic=Vr.litHtmlPolyfillSupport;ic?.(vt,St),(Vr.litHtmlVersions??=[]).push("3.1.0");var ur=globalThis,Ot=ur.ShadowRoot&&(ur.ShadyCSS===void 0||ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zr=Symbol(),oa=new WeakMap,Qe=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Zr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Ot&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=oa.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&oa.set(r,e))}return e}toString(){return this.cssText}},Et=o=>new Qe(typeof o=="string"?o:o+"",void 0,Zr),z=(o,...e)=>{let r=o.length===1?o[0]:e.reduce((n,a,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+o[i+1],o[0]);return new Qe(r,o,Zr)},fr=(o,e)=>{if(Ot)o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),a=ur.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}},wt=Ot?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return Et(r)})(o):o;var{is:sc,defineProperty:cc,getOwnPropertyDescriptor:lc,getOwnPropertyNames:dc,getOwnPropertySymbols:uc,getPrototypeOf:fc}=Object,hr=globalThis,na=hr.trustedTypes,pc=na?na.emptyScript:"",hc=hr.reactiveElementPolyfillSupport,Ct=(o,e)=>o,pr={toAttribute(o,e){switch(e){case Boolean:o=o?pc:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let r=o;switch(e){case Boolean:r=o!==null;break;case Number:r=o===null?null:Number(o);break;case Object:case Array:try{r=JSON.parse(o)}catch{r=null}}return r}},qr=(o,e)=>!sc(o,e),aa={attribute:!0,type:String,converter:pr,reflect:!1,hasChanged:qr};Symbol.metadata??=Symbol("metadata"),hr.litPropertyMetadata??=new WeakMap;var ne=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=aa){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,r);a!==void 0&&cc(this.prototype,e,a)}}static getPropertyDescriptor(e,r,n){let{get:a,set:i}=lc(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return a?.call(this)},set(s){let l=a?.call(this);i.call(this,s),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??aa}static _$Ei(){if(this.hasOwnProperty(Ct("elementProperties")))return;let e=fc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ct("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ct("properties"))){let r=this.properties,n=[...dc(r),...uc(r)];for(let a of n)this.createProperty(a,r[a])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,a]of r)this.elementProperties.set(n,a)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let a=this._$Eu(r,n);a!==void 0&&this._$Eh.set(a,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)r.unshift(wt(a))}else e!==void 0&&r.push(wt(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r){let n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(a!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:pr).toAttribute(r,n.type);this._$Em=e,i==null?this.removeAttribute(a):this.setAttribute(a,i),this._$Em=null}}_$AK(e,r){let n=this.constructor,a=n._$Eh.get(e);if(a!==void 0&&this._$Em!==a){let i=n.getPropertyOptions(a),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:pr;this._$Em=a,this[a]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,n,a=!1,i){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??qr)(a?i:this[e],r))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,i]of this._$Ep)this[a]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[a,i]of n)i.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.C(a,this[a],i)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};ne.elementStyles=[],ne.shadowRootOptions={mode:"open"},ne[Ct("elementProperties")]=new Map,ne[Ct("finalized")]=new Map,hc?.({ReactiveElement:ne}),(hr.reactiveElementVersions??=[]).push("2.0.2");var Xr=globalThis,yr=Xr.trustedTypes,ia=yr?yr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Jr="$lit$",fe=`lit$${(Math.random()+"").slice(9)}$`,Qr="?"+fe,yc=`<${Qr}>`,He=document,Rt=()=>He.createComment(""),Nt=o=>o===null||typeof o!="object"&&typeof o!="function",fa=Array.isArray,pa=o=>fa(o)||typeof o?.[Symbol.iterator]=="function",Yr=`[
\f\r]`,At=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sa=/-->/g,ca=/>/g,Be=RegExp(`>|${Yr}(?:([^\\s"'>=/]+)(${Yr}*=${Yr}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),la=/'/g,da=/"/g,ha=/^(?:script|style|textarea|title)$/i,ya=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),eo=ya(1),gc=ya(2),ve=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),ua=new WeakMap,We=He.createTreeWalker(He,129);function ga(o,e){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ia!==void 0?ia.createHTML(e):e}var ma=(o,e)=>{let r=o.length-1,n=[],a,i=e===2?"<svg>":"",s=At;for(let l=0;l<r;l++){let d=o[l],u,h,p=-1,g=0;for(;g<d.length&&(s.lastIndex=g,h=s.exec(d),h!==null);)g=s.lastIndex,s===At?h[1]==="!--"?s=sa:h[1]!==void 0?s=ca:h[2]!==void 0?(ha.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=Be):h[3]!==void 0&&(s=Be):s===Be?h[0]===">"?(s=a??At,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?Be:h[3]==='"'?da:la):s===da||s===la?s=Be:s===sa||s===ca?s=At:(s=Be,a=void 0);let m=s===Be&&o[l+1].startsWith("/>")?" ":"";i+=s===At?d+yc:p>=0?(n.push(u),d.slice(0,p)+Jr+d.slice(p)+fe+m):d+fe+(p===-2?l:m)}return[ga(o,i+(o[r]||"<?>")+(e===2?"</svg>":"")),n]},It=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let i=0,s=0,l=e.length-1,d=this.parts,[u,h]=ma(e,r);if(this.el=o.createElement(u,n),We.currentNode=this.el.content,r===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(a=We.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let p of a.getAttributeNames())if(p.endsWith(Jr)){let g=h[s++],m=a.getAttribute(p).split(fe),b=/([.?@])?(.*)/.exec(g);d.push({type:1,index:i,name:b[2],strings:m,ctor:b[1]==="."?mr:b[1]==="?"?br:b[1]==="@"?xr:je}),a.removeAttribute(p)}else p.startsWith(fe)&&(d.push({type:6,index:i}),a.removeAttribute(p));if(ha.test(a.tagName)){let p=a.textContent.split(fe),g=p.length-1;if(g>0){a.textContent=yr?yr.emptyScript:"";for(let m=0;m<g;m++)a.append(p[m],Rt()),We.nextNode(),d.push({type:2,index:++i});a.append(p[g],Rt())}}}else if(a.nodeType===8)if(a.data===Qr)d.push({type:2,index:i});else{let p=-1;for(;(p=a.data.indexOf(fe,p+1))!==-1;)d.push({type:7,index:i}),p+=fe.length-1}i++}}static createElement(e,r){let n=He.createElement("template");return n.innerHTML=e,n}};function ze(o,e,r=o,n){if(e===ve)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,i=Nt(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(o),a._$AT(o,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=ze(o,a._$AS(o,e.values),a,n)),e}var gr=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??He).importNode(r,!0);We.currentNode=a;let i=We.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new et(i,i.nextSibling,this,e):d.type===1?u=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(u=new vr(i,this,e)),this._$AV.push(u),d=n[++l]}s!==d?.index&&(i=We.nextNode(),s++)}return We.currentNode=He,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},et=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ze(this,e,r),Nt(e)?e===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==ve&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):pa(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==H&&Nt(this._$AH)?this._$AA.nextSibling.data=e:this.$(He.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=It.createElement(ga(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let i=new gr(a,this),s=i.u(this.options);i.p(r),this.$(s),this._$AH=i}}_$AC(e){let r=ua.get(e.strings);return r===void 0&&ua.set(e.strings,r=new It(e)),r}T(e){fa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let i of e)a===r.length?r.push(n=new o(this.k(Rt()),this.k(Rt()),this,this.options)):n=r[a],n._$AI(i),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=r,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(e,r=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=ze(this,e,r,0),s=!Nt(e)||e!==this._$AH&&e!==ve,s&&(this._$AH=e);else{let l=e,d,u;for(e=i[0],d=0;d<i.length-1;d++)u=ze(this,l[n+d],r,d),u===ve&&(u=this._$AH[d]),s||=!Nt(u)||u!==this._$AH[d],u===H?e=H:e!==H&&(e+=(u??"")+i[d+1]),this._$AH[d]=u}s&&!a&&this.O(e)}O(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},mr=class extends je{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===H?void 0:e}},br=class extends je{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},xr=class extends je{constructor(e,r,n,a,i){super(e,r,n,a,i),this.type=5}_$AI(e,r=this){if((e=ze(this,e,r,0)??H)===ve)return;let n=this._$AH,a=e===H&&n!==H||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==H&&(n===H||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},vr=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ze(this,e)}},mc={j:Jr,P:fe,A:Qr,C:1,M:ma,L:gr,R:pa,V:ze,D:et,I:je,H:br,N:xr,U:mr,B:vr},bc=Xr.litHtmlPolyfillSupport;bc?.(It,et),(Xr.litHtmlVersions??=[]).push("3.1.0");var to=(o,e,r)=>{let n=r?.renderBefore??e,a=n._$litPart$;if(a===void 0){let i=r?.renderBefore??null;n._$litPart$=a=new et(e.insertBefore(Rt(),i),i,void 0,r??{})}return a._$AI(o),a};var pe=class extends ne{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=to(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ve}};pe._$litElement$=!0,pe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:pe});var xc=globalThis.litElementPolyfillSupport;xc?.({LitElement:pe});var vc={_$AK:(o,e,r)=>{o._$AK(e,r)},_$AL:o=>o._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var fu=!1;var oo={};U(oo,{customElement:()=>Sc,eventOptions:()=>Ec,property:()=>B,query:()=>Sr,queryAll:()=>Cc,queryAssignedElements:()=>Rc,queryAssignedNodes:()=>Nc,queryAsync:()=>Ac,standardProperty:()=>ba,state:()=>ae});var Sc=o=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var Oc={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:or},ba=(o=Oc,e,r)=>{let{kind:n,metadata:a}=r,i=globalThis.litPropertyMetadata.get(a);if(i===void 0&&globalThis.litPropertyMetadata.set(a,i=new Map),i.set(r.name,o),n==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,o)},init(l){return l!==void 0&&this.C(s,void 0,o),l}}}if(n==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,o)}}throw Error("Unsupported decorator location: "+n)};function B(o){return(e,r)=>typeof r=="object"?ba(o,e,r):((n,a,i)=>{let s=a.hasOwnProperty(i);return a.constructor.createProperty(i,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(a,i):void 0})(o,e,r)}function ae(o){return B({...o,state:!0,attribute:!1})}function Ec(o){return(e,r)=>{let n=typeof e=="function"?e:e[r];Object.assign(n,o)}}var ee=(o,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(o,e,r),r);function Sr(o,e){return(r,n,a)=>{let i=s=>s.renderRoot?.querySelector(o)??null;if(e){let{get:s,set:l}=typeof n=="object"?r:a??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return ee(r,n,{get(){let d=s.call(this);return d===void 0&&(d=i(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ee(r,n,{get(){return i(this)}})}}var wc;function Cc(o){return(e,r)=>ee(e,r,{get(){return(this.renderRoot??(wc??=document.createDocumentFragment())).querySelectorAll(o)}})}function Ac(o){return(e,r)=>ee(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function Rc(o){return(e,r)=>{let{slot:n,selector:a}=o??{},i="slot"+(n?`[name=${n}]`:":not([name])");return ee(e,r,{get(){let s=this.renderRoot?.querySelector(i),l=s?.assignedElements(o)??[];return a===void 0?l:l.filter(d=>d.matches(a))}})}}function Nc(o){return(e,r)=>{let{slot:n}=o??{},a="slot"+(n?`[name=${n}]`:":not([name])");return ee(e,r,{get(){return this.renderRoot?.querySelector(a)?.assignedNodes(o)??[]}})}}var no={};U(no,{repeat:()=>_c});var Se={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Oe=o=>(...e)=>({_$litDirective$:o,values:e}),ie=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{D:Ic}=ra;var xa=()=>document.createComment(""),tt=(o,e,r)=>{let n=o._$AA.parentNode,a=e===void 0