@benev/tact 0.3.0-3 → 0.3.0-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
 
11
11
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>🎮</text></svg>"/>
12
12
  <link rel="stylesheet" href="main.css?v=875383d23fac"/>
13
- <script type="module" src="main.bundle.min.js?v=028f0adf0490"></script>
13
+ <script type="module" src="main.bundle.min.js?v=04b73bbabedb"></script>
14
14
 
15
15
 
16
16
  <meta property="og:type" content="website"/>
@@ -26,7 +26,7 @@
26
26
  <header>
27
27
  <h1>
28
28
  <strong>@benev/tact gamepad</strong>
29
- <small>v0.3.0-3</small>
29
+ <small>v0.3.0-4</small>
30
30
  </h1>
31
31
  </header>
32
32
 
@@ -1,6 +1,6 @@
1
1
  var er=Object.defineProperty;var rr=(r,t)=>{for(var e in t)er(r,e,{get:t[e],enumerable:!0})};var ct=globalThis,pt=ct.ShadowRoot&&(ct.ShadyCSS===void 0||ct.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vt=Symbol(),ie=new WeakMap,J=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(pt&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=ie.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ie.set(e,t))}return t}toString(){return this.cssText}},ae=r=>new J(typeof r=="string"?r:r+"",void 0,Vt),E=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((o,s,n)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[n+1],r[0]);return new J(e,r,Vt)},ut=(r,t)=>{if(pt)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),s=ct.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=e.cssText,r.appendChild(o)}},W=pt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return ae(e)})(r):r;var{is:or,defineProperty:sr,getOwnPropertyDescriptor:nr,getOwnPropertyNames:ir,getOwnPropertySymbols:ar,getPrototypeOf:cr}=Object,ht=globalThis,ce=ht.trustedTypes,pr=ce?ce.emptyScript:"",ur=ht.reactiveElementPolyfillSupport,K=(r,t)=>r,Ft={toAttribute(r,t){switch(t){case Boolean:r=r?pr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ue=(r,t)=>!or(r,t),pe={attribute:!0,type:String,converter:Ft,reflect:!1,useDefault:!1,hasChanged:ue};Symbol.metadata??=Symbol("metadata"),ht.litPropertyMetadata??=new WeakMap;var C=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=pe){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),s=this.getPropertyDescriptor(t,o,e);s!==void 0&&sr(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){let{get:s,set:n}=nr(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:s,set(i){let c=s?.call(this);n?.call(this,i),this.requestUpdate(t,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pe}static _$Ei(){if(this.hasOwnProperty(K("elementProperties")))return;let t=cr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(K("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(K("properties"))){let e=this.properties,o=[...ir(e),...ar(e)];for(let s of o)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,s]of e)this.elementProperties.set(o,s)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let s=this._$Eu(e,o);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let s of o)e.unshift(W(s))}else t!==void 0&&e.push(W(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ut(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){let o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(s!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:Ft).toAttribute(e,o.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){let o=this.constructor,s=o._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let n=o.getPropertyOptions(s),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:Ft;this._$Em=s;let c=i.fromAttribute(e,n.type);this[s]=c??this._$Ej?.get(s)??c,this._$Em=null}}requestUpdate(t,e,o,s=!1,n){if(t!==void 0){let i=this.constructor;if(s===!1&&(n=this[t]),o??=i.getPropertyOptions(t),!((o.hasChanged??ue)(n,e)||o.useDefault&&o.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:s,wrapped:n},i){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),n!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[s,n]of o){let{wrapped:i}=n,c=this[s];i!==!0||this._$AL.has(s)||c===void 0||this.C(s,void 0,n,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[K("elementProperties")]=new Map,C[K("finalized")]=new Map,ur?.({ReactiveElement:C}),(ht.reactiveElementVersions??=[]).push("2.1.2");var Kt=globalThis,he=r=>r,ft=Kt.trustedTypes,fe=ft?ft.createPolicy("lit-html",{createHTML:r=>r}):void 0,Zt="$lit$",k=`lit$${Math.random().toFixed(9).slice(2)}$`,Qt="?"+k,hr=`<${Qt}>`,H=document,Q=()=>H.createComment(""),Y=r=>r===null||typeof r!="object"&&typeof r!="function",Yt=Array.isArray,ye=r=>Yt(r)||typeof r?.[Symbol.iterator]=="function",Jt=`[
2
2
  \f\r]`,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,le=/-->/g,me=/>/g,R=RegExp(`>|${Jt}(?:([^\\s"'>=/]+)(${Jt}*=${Jt}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),de=/'/g,ge=/"/g,$e=/^(?:script|style|textarea|title)$/i,Xt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),j=Xt(1),Br=Xt(2),Wr=Xt(3),L=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),xe=new WeakMap,N=H.createTreeWalker(H,129);function be(r,t){if(!Yt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return fe!==void 0?fe.createHTML(t):t}var we=(r,t)=>{let e=r.length-1,o=[],s,n=t===2?"<svg>":t===3?"<math>":"",i=Z;for(let c=0;c<e;c++){let a=r[c],u,f,h=-1,y=0;for(;y<a.length&&(i.lastIndex=y,f=i.exec(a),f!==null);)y=i.lastIndex,i===Z?f[1]==="!--"?i=le:f[1]!==void 0?i=me:f[2]!==void 0?($e.test(f[2])&&(s=RegExp("</"+f[2],"g")),i=R):f[3]!==void 0&&(i=R):i===R?f[0]===">"?(i=s??Z,h=-1):f[1]===void 0?h=-2:(h=i.lastIndex-f[2].length,u=f[1],i=f[3]===void 0?R:f[3]==='"'?ge:de):i===ge||i===de?i=R:i===le||i===me?i=Z:(i=R,s=void 0);let O=i===R&&r[c+1].startsWith("/>")?" ":"";n+=i===Z?a+hr:h>=0?(o.push(u),a.slice(0,h)+Zt+a.slice(h)+k+O):a+k+(h===-2?c:O)}return[be(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},X=class r{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[u,f]=we(t,e);if(this.el=r.createElement(u,o),N.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=N.nextNode())!==null&&a.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(Zt)){let y=f[i++],O=s.getAttribute(h).split(k),at=/([.?@])?(.*)/.exec(y);a.push({type:1,index:n,name:at[2],strings:O,ctor:at[1]==="."?mt:at[1]==="?"?dt:at[1]==="@"?gt:U}),s.removeAttribute(h)}else h.startsWith(k)&&(a.push({type:6,index:n}),s.removeAttribute(h));if($e.test(s.tagName)){let h=s.textContent.split(k),y=h.length-1;if(y>0){s.textContent=ft?ft.emptyScript:"";for(let O=0;O<y;O++)s.append(h[O],Q()),N.nextNode(),a.push({type:2,index:++n});s.append(h[y],Q())}}}else if(s.nodeType===8)if(s.data===Qt)a.push({type:2,index:n});else{let h=-1;for(;(h=s.data.indexOf(k,h+1))!==-1;)a.push({type:7,index:n}),h+=k.length-1}n++}}static createElement(t,e){let o=H.createElement("template");return o.innerHTML=t,o}};function D(r,t,e=r,o){if(t===L)return t;let s=o!==void 0?e._$Co?.[o]:e._$Cl,n=Y(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(r),s._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=s:e._$Cl=s),s!==void 0&&(t=D(r,s._$AS(r,t.values),s,o)),t}var lt=class{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){let{el:{content:e},parts:o}=this._$AD,s=(t?.creationScope??H).importNode(e,!0);N.currentNode=s;let n=N.nextNode(),i=0,c=0,a=o[0];for(;a!==void 0;){if(i===a.index){let u;a.type===2?u=new I(n,n.nextSibling,this,t):a.type===1?u=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(u=new xt(n,this,t)),this._$AV.push(u),a=o[++c]}i!==a?.index&&(n=N.nextNode(),i++)}return N.currentNode=H,s}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},I=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,s){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=D(this,t,e),Y(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==L&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ye(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==l&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(H.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,s=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=X.createElement(be(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(e);else{let n=new lt(s,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=xe.get(t.strings);return e===void 0&&xe.set(t.strings,e=new X(t)),e}k(t){Yt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,s=0;for(let n of t)s===e.length?e.push(o=new r(this.O(Q()),this.O(Q()),this,this.options)):o=e[s],o._$AI(n),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=he(t).nextSibling;he(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,n){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=l}_$AI(t,e=this,o,s){let n=this.strings,i=!1;if(n===void 0)t=D(this,t,e,0),i=!Y(t)||t!==this._$AH&&t!==L,i&&(this._$AH=t);else{let c=t,a,u;for(t=n[0],a=0;a<n.length-1;a++)u=D(this,c[o+a],e,a),u===L&&(u=this._$AH[a]),i||=!Y(u)||u!==this._$AH[a],u===l?t=l:t!==l&&(t+=(u??"")+n[a+1]),this._$AH[a]=u}i&&!s&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mt=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},dt=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},gt=class extends U{constructor(t,e,o,s,n){super(t,e,o,s,n),this.type=5}_$AI(t,e=this){if((t=D(this,t,e,0)??l)===L)return;let o=this._$AH,s=t===l&&o!==l||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==l&&(o===l||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},xt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}},Ae={M:Zt,P:k,A:Qt,C:1,L:we,R:lt,D:ye,V:D,I,H:U,N:dt,U:gt,B:mt,F:xt},fr=Kt.litHtmlPolyfillSupport;fr?.(X,I),(Kt.litHtmlVersions??=[]).push("3.3.3");var m=(r,t,e)=>{let o=e?.renderBefore??t,s=o._$litPart$;if(s===void 0){let n=e?.renderBefore??null;o._$litPart$=s=new I(t.insertBefore(Q(),n),n,void 0,e??{})}return s._$AI(r),s};var te=globalThis,G=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=m(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return L}};G._$litElement$=!0,G.finalized=!0,te.litElementHydrateSupport?.({LitElement:G});var lr=te.litElementPolyfillSupport;lr?.({LitElement:G});(te.litElementVersions??=[]).push("4.2.2");var b={string:(r,t)=>r.getAttribute(t)??void 0,number:(r,t)=>{let e=r.getAttribute(t);return e===null||!e?void 0:Number(e)},boolean:(r,t)=>r.getAttribute(t)!==null},d={string:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e),!0),number:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e.toString()),!0),boolean:(r,t,e)=>(e?r.setAttribute(t,""):r.removeAttribute(t),!0),any:(r,t,e)=>{e==null?r.removeAttribute(t):typeof e=="string"?r.setAttribute(t,e):typeof e=="number"?r.setAttribute(t,e.toString()):typeof e=="boolean"?e===!0?r.setAttribute(t,""):r.removeAttribute(t):console.warn(`invalid attribute "${t}" type is "${typeof e}"`)},entries:(r,t)=>{for(let[e,o]of t)d.any(r,e,o)},record:(r,t)=>d.entries(r,Object.entries(t))};function _e(r,t={}){let e=document.createElement(r);return d.record(e,t),e}function ve(r){let t=document.createDocumentFragment();return m(r,t),t.firstElementChild}function yt(r,t){let e=[];for(let[o,s]of Object.entries(t))if(typeof s=="function")r.addEventListener(o,s),e.push(()=>r.removeEventListener(o,s));else{let[n,i]=s;r.addEventListener(o,i,n),e.push(()=>r.removeEventListener(o,i))}return()=>e.forEach(o=>o())}function Se(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var $t=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>b.string(this.element,e),set:(t,e,o)=>d.string(this.element,e,o)});numbers=new Proxy({},{get:(t,e)=>b.number(this.element,e),set:(t,e,o)=>d.number(this.element,e,o)});booleans=new Proxy({},{get:(t,e)=>b.boolean(this.element,e),set:(t,e,o)=>d.boolean(this.element,e,o)})};var Ee=(r,t,e={})=>new Proxy(t,{get:(o,s)=>{switch(t[s]){case String:return b.string(r,s);case Number:return b.number(r,s);case Boolean:return b.boolean(r,s);default:throw new Error(`invalid attribute type for "${s}"`)}},set:(o,s,n)=>{try{switch(e.beforeSet?.(s),t[s]){case String:return d.string(r,s,n);case Number:return d.number(r,s,n);case Boolean:return d.boolean(r,s,n);default:throw new Error(`invalid attribute type for "${s}"`)}}finally{e.afterSet?.(s)}}});function V(r){let t=new $t(r);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>Se(r,e),spec:(e,o={})=>Ee(r,e,o)}}V.get=b;V.set=d;function Ce(r){return new ee(r)}var ee=class{tagName;#t=new Map;#e=[];constructor(t){this.tagName=t}attr(t,e=!0){return this.#t.set(t,e),this}attrs(t){for(let[e,o]of Object.entries(t))this.attr(e,o);return this}children(...t){return this.#e.push(...t),this}done(){let t=document.createElement(this.tagName);return d.entries(t,this.#t),t.append(...this.#e),t}};function F(r,t=document){let e=t.querySelector(r);if(!e)throw new Error(`element not found (${r})`);return e}function bt(r,t=document){return t.querySelector(r)}function wt(r,t=document){return Array.from(t.querySelectorAll(r))}var At=class r{element;#t;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?F(t,this.element):t)}require(t){return F(t,this.element)}maybe(t){return bt(t,this.element)}all(t){return wt(t,this.element)}render(...t){return m(t,this.element)}get attrs(){return this.#t??=V(this.element)}events(t){return yt(this.element,t)}};function ke(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function Me(r,t={}){let{soft:e=!1,upgrade:o=!0}=t;for(let[s,n]of Object.entries(r)){let i=ke(s),c=customElements.get(i);e&&c||(customElements.define(i,n),o&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function g(r,t=document){return F(r,t)}g.in=(r,t=document)=>new At(t).in(r);g.need=F;g.maybe=bt;g.all=wt;g.el=_e;g.elmer=Ce;g.mk=ve;g.events=yt;g.attrs=V;g.register=Me;g.render=(r,...t)=>m(t,r);function z(){let r,t,e=new Promise((s,n)=>{r=s,t=n});function o(s){return s.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:o}}function _t(r){let t=null;return((...e)=>(t?t.params=e:(t={params:e,deferred:z()},queueMicrotask(()=>{let{params:o,deferred:s}=t;t=null,Promise.resolve(r(...o)).then(s.resolve).catch(s.reject)})),t.deferred.promise))}var w={};rr(w,{clone:()=>tt,equal:()=>gr,freeze:()=>xr});function tt(r,t=new Set){if(t.has(r))throw new Error("cannot clone circular reference");let e;return typeof r=="function"||r!==null&&typeof r=="object"?(t.add(r),Array.isArray(r)?e=r.map(o=>tt(o,new Set(t))):r.constructor===Object?e=Object.fromEntries(Object.entries(r).map(([o,s])=>[o,tt(s,new Set(t))])):r instanceof Map?e=new Map(Array.from(r,([o,s])=>[o,tt(s,new Set(t))])):r instanceof Set?e=new Set(Array.from(r,o=>tt(o,new Set(t)))):r instanceof Date?e=new Date(r.getTime()):e=r,t.delete(r)):e=r,e}function mr(r){return r!=null}function dr(r){return r==null}var et=Object.freeze({happy:mr,sad:dr,boolean:r=>typeof r=="boolean",number:r=>typeof r=="number",string:r=>typeof r=="string",bigint:r=>typeof r=="bigint",object:r=>typeof r=="object"&&r!==null,array:r=>Array.isArray(r),fn:r=>typeof r=="function",symbol:r=>typeof r=="symbol"});var gr=(r,t)=>{function e(o,s,n){if(!et.object(o)||!et.object(s))return o===s;if(n.includes(o))throw new Error("forbidden circularity detected in deep equal comparison");let i=[...n,o];if(o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(let[c,a]of o)if(!s.has(c)||!e(a,s.get(c),i))return!1}else if(o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(let c of o)if(!Array.from(s).some(a=>e(c,a,i)))return!1}else{let c=Object.keys(o),a=Object.keys(s);if(c.length!==a.length)return!1;for(let u of c)if(!a.includes(u)||!e(o[u],s[u],i))return!1}return!0}return e(r,t,[])};function xr(r){function t(e,o){if(!et.object(e)||o.includes(e))return e;let s=[...o,e];if(e instanceof Map)for(let n of e.entries())for(let i of n)t(i,s);else if(e instanceof Set)for(let n of e)t(n,s);else if(Array.isArray(e))for(let n of e)t(n,s);else for(let n of Object.values(e))t(n,s);return Object.freeze(e)}return t(r,[])}function Oe(r){if(r.ok)return r.value;let{error:t}=r;throw t instanceof Error?t:typeof t=="string"?new Error(t):new Error("unknown")}function Pe(r){if(r.ok)throw new Error("didn't get needed error");return r.error}function vt(r,t,e){if(r.has(t))return r.get(t);{let o=e();return r.set(t,o),o}}function St(r){let t,e=!1,o=()=>{e=!0,clearTimeout(t)},s=async()=>{e||(await r(o),!e&&(t=setTimeout(s,0)))};return s(),o}function Te(r,t){let e=Object.entries(t);for(let[o,s]of e)r.addEventListener(o,s);return()=>{for(let[o,s]of e)r.removeEventListener(o,s)}}var Et=(r=0)=>new Promise(t=>setTimeout(t,r));function yr(){let r=new Set;async function t(...a){await Promise.all([...r].map(u=>u(...a)))}function e(a){return r.add(a),()=>{r.delete(a)}}async function o(...a){return t(...a)}function s(a){return e(a)}async function n(a){let{promise:u,resolve:f}=z(),h=s(async(...y)=>{a&&await a(...y),f(y),h()});return u}function i(){r.clear()}let c={pub:o,sub:s,publish:t,subscribe:e,on:e,next:n,clear:i};return Object.assign(s,c),Object.assign(o,c),c}function Re(r){let t=yr();return r&&t.sub(r),t.sub}var Ct=class{#t=new Set;#e=[];#r=new WeakMap;#s=0;#o=new Set;read(t){this.#e.at(-1)?.add(t)}write(t){let e=this.#r.get(t);if(e){for(let o of e)this.#o.add(o);this.#s===0&&this.#n()}}observe(t){let e=new Set;this.#e.push(e);try{let o=t();return{seen:e,value:o}}finally{this.#e.pop()}}subscribe(t,e){let o=vt(this.#r,t,()=>new Set);return o.add(e),()=>{o.delete(e),o.size===0&&this.#r.delete(t)}}batch=t=>{this.#s++;try{return t()}finally{this.#s--,this.#s===0&&this.#n()}};#i(t){if(this.#t.has(t))throw new Error("circularity forbidden");this.#t.add(t);try{t()}finally{this.#t.delete(t)}}#n(){for(;this.#o.size>0;){let t=[...this.#o];this.#o.clear();for(let e of t)this.#i(e)}}};var p=globalThis[Symbol.for("e280.tracker.2")]??=new Ct;function P(r){return function t(){return arguments.length===0?(p.read(t),r):(r=arguments[0],p.write(t),r)}}var kt=class extends Map{get size(){return p.read(this),super.size}[Symbol.iterator](){return p.read(this),super[Symbol.iterator]()}forEach(t){p.read(this);for(let[e,o]of this)t(o,e,this);return this}keys(){return p.read(this),super.keys()}values(){return p.read(this),super.values()}entries(){return p.read(this),super.entries()}has(t){return p.read(this),super.has(t)}get(t){return p.read(this),super.get(t)}set(t,e){return super.set(t,e),p.write(this),this}delete(t){let e=super.delete(t);return p.write(this),e}clear(){return super.clear(),p.write(this),this}};var Mt=class extends Set{get size(){return p.read(this),super.size}[Symbol.iterator](){return p.read(this),super[Symbol.iterator]()}forEach(t){p.read(this);for(let e of this)t(e,e,this);return this}values(){return p.read(this),super.values()}has(t){return p.read(this),super.has(t)}add(t){return super.add(t),p.write(this),this}delete(t){let e=super.delete(t);return p.write(this),e}clear(){return super.clear(),p.write(this),this}};var Hs=p.batch;function Ne(r){return w.freeze(w.clone(r))}var A=Symbol("optic");var rt=class{calculate;#t=!1;#e;constructor(t){this.calculate=t,this.#e=t()}get(){return this.#t&&(this.#t=!1,this.#e=this.calculate()),this.#e}invalidate(){this.#t=!0}};var Ot=class r{[A];#t;#e;#r;constructor(t){this[A]=t,this.#t=w.clone(t.getState()),this.#e=new rt(()=>w.clone(t.getState())),this.#r=new rt(()=>Ne(t.getState()))}update(){let t=this[A].getState();!w.equal(t,this.#t)&&(this.#e.invalidate(),this.#r.invalidate(),this.#t=w.clone(t),p.write(this))}get state(){return p.read(this),this.#e.get()}get frozen(){return p.read(this),this.#r.get()}mutate(t){return this[A].mutate(t)}lens(t){let e=new r({getState:()=>t(this[A].getState()),mutate:o=>this[A].mutate(s=>o(t(s))),registerLens:this[A].registerLens});return this[A].registerLens(e),e}};function He(r){if(!r.done)throw new Error("wait not done");return Oe(r)}function Le(r){if(!r.done)throw new Error("wait not done");return Pe(r)}var De=r=>!r.done;var oe=r=>r.done&&r.ok;function Ue(r,t){let{pending:e=()=>{},ok:o=()=>{},err:s=()=>{}}=t;return De(r)?e():oe(r)?o(He(r)):s(Le(r))}var Pt=E`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),de=/'/g,ge=/"/g,$e=/^(?:script|style|textarea|title)$/i,Xt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),j=Xt(1),Br=Xt(2),Wr=Xt(3),L=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),xe=new WeakMap,N=H.createTreeWalker(H,129);function be(r,t){if(!Yt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return fe!==void 0?fe.createHTML(t):t}var we=(r,t)=>{let e=r.length-1,o=[],s,n=t===2?"<svg>":t===3?"<math>":"",i=Z;for(let c=0;c<e;c++){let a=r[c],u,f,h=-1,y=0;for(;y<a.length&&(i.lastIndex=y,f=i.exec(a),f!==null);)y=i.lastIndex,i===Z?f[1]==="!--"?i=le:f[1]!==void 0?i=me:f[2]!==void 0?($e.test(f[2])&&(s=RegExp("</"+f[2],"g")),i=R):f[3]!==void 0&&(i=R):i===R?f[0]===">"?(i=s??Z,h=-1):f[1]===void 0?h=-2:(h=i.lastIndex-f[2].length,u=f[1],i=f[3]===void 0?R:f[3]==='"'?ge:de):i===ge||i===de?i=R:i===le||i===me?i=Z:(i=R,s=void 0);let O=i===R&&r[c+1].startsWith("/>")?" ":"";n+=i===Z?a+hr:h>=0?(o.push(u),a.slice(0,h)+Zt+a.slice(h)+k+O):a+k+(h===-2?c:O)}return[be(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},X=class r{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[u,f]=we(t,e);if(this.el=r.createElement(u,o),N.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=N.nextNode())!==null&&a.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(Zt)){let y=f[i++],O=s.getAttribute(h).split(k),at=/([.?@])?(.*)/.exec(y);a.push({type:1,index:n,name:at[2],strings:O,ctor:at[1]==="."?mt:at[1]==="?"?dt:at[1]==="@"?gt:U}),s.removeAttribute(h)}else h.startsWith(k)&&(a.push({type:6,index:n}),s.removeAttribute(h));if($e.test(s.tagName)){let h=s.textContent.split(k),y=h.length-1;if(y>0){s.textContent=ft?ft.emptyScript:"";for(let O=0;O<y;O++)s.append(h[O],Q()),N.nextNode(),a.push({type:2,index:++n});s.append(h[y],Q())}}}else if(s.nodeType===8)if(s.data===Qt)a.push({type:2,index:n});else{let h=-1;for(;(h=s.data.indexOf(k,h+1))!==-1;)a.push({type:7,index:n}),h+=k.length-1}n++}}static createElement(t,e){let o=H.createElement("template");return o.innerHTML=t,o}};function D(r,t,e=r,o){if(t===L)return t;let s=o!==void 0?e._$Co?.[o]:e._$Cl,n=Y(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(r),s._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=s:e._$Cl=s),s!==void 0&&(t=D(r,s._$AS(r,t.values),s,o)),t}var lt=class{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){let{el:{content:e},parts:o}=this._$AD,s=(t?.creationScope??H).importNode(e,!0);N.currentNode=s;let n=N.nextNode(),i=0,c=0,a=o[0];for(;a!==void 0;){if(i===a.index){let u;a.type===2?u=new I(n,n.nextSibling,this,t):a.type===1?u=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(u=new xt(n,this,t)),this._$AV.push(u),a=o[++c]}i!==a?.index&&(n=N.nextNode(),i++)}return N.currentNode=H,s}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},I=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,s){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=D(this,t,e),Y(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==L&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ye(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==l&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(H.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,s=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=X.createElement(be(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(e);else{let n=new lt(s,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=xe.get(t.strings);return e===void 0&&xe.set(t.strings,e=new X(t)),e}k(t){Yt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,s=0;for(let n of t)s===e.length?e.push(o=new r(this.O(Q()),this.O(Q()),this,this.options)):o=e[s],o._$AI(n),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=he(t).nextSibling;he(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,n){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=l}_$AI(t,e=this,o,s){let n=this.strings,i=!1;if(n===void 0)t=D(this,t,e,0),i=!Y(t)||t!==this._$AH&&t!==L,i&&(this._$AH=t);else{let c=t,a,u;for(t=n[0],a=0;a<n.length-1;a++)u=D(this,c[o+a],e,a),u===L&&(u=this._$AH[a]),i||=!Y(u)||u!==this._$AH[a],u===l?t=l:t!==l&&(t+=(u??"")+n[a+1]),this._$AH[a]=u}i&&!s&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mt=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},dt=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},gt=class extends U{constructor(t,e,o,s,n){super(t,e,o,s,n),this.type=5}_$AI(t,e=this){if((t=D(this,t,e,0)??l)===L)return;let o=this._$AH,s=t===l&&o!==l||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==l&&(o===l||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},xt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}},Ae={M:Zt,P:k,A:Qt,C:1,L:we,R:lt,D:ye,V:D,I,H:U,N:dt,U:gt,B:mt,F:xt},fr=Kt.litHtmlPolyfillSupport;fr?.(X,I),(Kt.litHtmlVersions??=[]).push("3.3.3");var m=(r,t,e)=>{let o=e?.renderBefore??t,s=o._$litPart$;if(s===void 0){let n=e?.renderBefore??null;o._$litPart$=s=new I(t.insertBefore(Q(),n),n,void 0,e??{})}return s._$AI(r),s};var te=globalThis,G=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=m(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return L}};G._$litElement$=!0,G.finalized=!0,te.litElementHydrateSupport?.({LitElement:G});var lr=te.litElementPolyfillSupport;lr?.({LitElement:G});(te.litElementVersions??=[]).push("4.2.2");var b={string:(r,t)=>r.getAttribute(t)??void 0,number:(r,t)=>{let e=r.getAttribute(t);return e===null||!e?void 0:Number(e)},boolean:(r,t)=>r.getAttribute(t)!==null},d={string:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e),!0),number:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e.toString()),!0),boolean:(r,t,e)=>(e?r.setAttribute(t,""):r.removeAttribute(t),!0),any:(r,t,e)=>{e==null?r.removeAttribute(t):typeof e=="string"?r.setAttribute(t,e):typeof e=="number"?r.setAttribute(t,e.toString()):typeof e=="boolean"?e===!0?r.setAttribute(t,""):r.removeAttribute(t):console.warn(`invalid attribute "${t}" type is "${typeof e}"`)},entries:(r,t)=>{for(let[e,o]of t)d.any(r,e,o)},record:(r,t)=>d.entries(r,Object.entries(t))};function _e(r,t={}){let e=document.createElement(r);return d.record(e,t),e}function ve(r){let t=document.createDocumentFragment();return m(r,t),t.firstElementChild}function yt(r,t){let e=[];for(let[o,s]of Object.entries(t))if(typeof s=="function")r.addEventListener(o,s),e.push(()=>r.removeEventListener(o,s));else{let[n,i]=s;r.addEventListener(o,i,n),e.push(()=>r.removeEventListener(o,i))}return()=>e.forEach(o=>o())}function Se(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var $t=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>b.string(this.element,e),set:(t,e,o)=>d.string(this.element,e,o)});numbers=new Proxy({},{get:(t,e)=>b.number(this.element,e),set:(t,e,o)=>d.number(this.element,e,o)});booleans=new Proxy({},{get:(t,e)=>b.boolean(this.element,e),set:(t,e,o)=>d.boolean(this.element,e,o)})};var Ee=(r,t,e={})=>new Proxy(t,{get:(o,s)=>{switch(t[s]){case String:return b.string(r,s);case Number:return b.number(r,s);case Boolean:return b.boolean(r,s);default:throw new Error(`invalid attribute type for "${s}"`)}},set:(o,s,n)=>{try{switch(e.beforeSet?.(s),t[s]){case String:return d.string(r,s,n);case Number:return d.number(r,s,n);case Boolean:return d.boolean(r,s,n);default:throw new Error(`invalid attribute type for "${s}"`)}}finally{e.afterSet?.(s)}}});function V(r){let t=new $t(r);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>Se(r,e),spec:(e,o={})=>Ee(r,e,o)}}V.get=b;V.set=d;function Ce(r){return new ee(r)}var ee=class{tagName;#t=new Map;#e=[];constructor(t){this.tagName=t}attr(t,e=!0){return this.#t.set(t,e),this}attrs(t){for(let[e,o]of Object.entries(t))this.attr(e,o);return this}children(...t){return this.#e.push(...t),this}done(){let t=document.createElement(this.tagName);return d.entries(t,this.#t),t.append(...this.#e),t}};function F(r,t=document){let e=t.querySelector(r);if(!e)throw new Error(`element not found (${r})`);return e}function bt(r,t=document){return t.querySelector(r)}function wt(r,t=document){return Array.from(t.querySelectorAll(r))}var At=class r{element;#t;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?F(t,this.element):t)}require(t){return F(t,this.element)}maybe(t){return bt(t,this.element)}all(t){return wt(t,this.element)}render(...t){return m(t,this.element)}get attrs(){return this.#t??=V(this.element)}events(t){return yt(this.element,t)}};function ke(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function Me(r,t={}){let{soft:e=!1,upgrade:o=!0}=t;for(let[s,n]of Object.entries(r)){let i=ke(s),c=customElements.get(i);e&&c||(customElements.define(i,n),o&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function g(r,t=document){return F(r,t)}g.in=(r,t=document)=>new At(t).in(r);g.need=F;g.maybe=bt;g.all=wt;g.el=_e;g.elmer=Ce;g.mk=ve;g.events=yt;g.attrs=V;g.register=Me;g.render=(r,...t)=>m(t,r);function z(){let r,t,e=new Promise((s,n)=>{r=s,t=n});function o(s){return s.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:o}}function _t(r){let t=null;return((...e)=>(t?t.params=e:(t={params:e,deferred:z()},queueMicrotask(()=>{let{params:o,deferred:s}=t;t=null,Promise.resolve(r(...o)).then(s.resolve).catch(s.reject)})),t.deferred.promise))}var w={};rr(w,{clone:()=>tt,equal:()=>gr,freeze:()=>xr});function tt(r,t=new Set){if(t.has(r))throw new Error("cannot clone circular reference");let e;return typeof r=="function"||r!==null&&typeof r=="object"?(t.add(r),Array.isArray(r)?e=r.map(o=>tt(o,new Set(t))):r.constructor===Object?e=Object.fromEntries(Object.entries(r).map(([o,s])=>[o,tt(s,new Set(t))])):r instanceof Map?e=new Map(Array.from(r,([o,s])=>[o,tt(s,new Set(t))])):r instanceof Set?e=new Set(Array.from(r,o=>tt(o,new Set(t)))):r instanceof Date?e=new Date(r.getTime()):e=r,t.delete(r)):e=r,e}function mr(r){return r!=null}function dr(r){return r==null}var et=Object.freeze({happy:mr,sad:dr,boolean:r=>typeof r=="boolean",number:r=>typeof r=="number",string:r=>typeof r=="string",bigint:r=>typeof r=="bigint",object:r=>typeof r=="object"&&r!==null,array:r=>Array.isArray(r),fn:r=>typeof r=="function",symbol:r=>typeof r=="symbol"});var gr=(r,t)=>{function e(o,s,n){if(!et.object(o)||!et.object(s))return o===s;if(n.includes(o))throw new Error("forbidden circularity detected in deep equal comparison");let i=[...n,o];if(o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(let[c,a]of o)if(!s.has(c)||!e(a,s.get(c),i))return!1}else if(o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(let c of o)if(!Array.from(s).some(a=>e(c,a,i)))return!1}else{let c=Object.keys(o),a=Object.keys(s);if(c.length!==a.length)return!1;for(let u of c)if(!a.includes(u)||!e(o[u],s[u],i))return!1}return!0}return e(r,t,[])};function xr(r){function t(e,o){if(!et.object(e)||o.includes(e))return e;let s=[...o,e];if(e instanceof Map)for(let n of e.entries())for(let i of n)t(i,s);else if(e instanceof Set)for(let n of e)t(n,s);else if(Array.isArray(e))for(let n of e)t(n,s);else for(let n of Object.values(e))t(n,s);return Object.freeze(e)}return t(r,[])}function Oe(r){if(r.ok)return r.value;let{error:t}=r;throw t instanceof Error?t:typeof t=="string"?new Error(t):new Error("unknown")}function Pe(r){if(r.ok)throw new Error("didn't get needed error");return r.error}function vt(r,t,e){if(r.has(t))return r.get(t);{let o=e();return r.set(t,o),o}}function St(r){let t,e=!1,o=()=>{e=!0,clearTimeout(t)},s=async()=>{e||(await r(o),!e&&(t=setTimeout(s,0)))};return s(),o}function Te(r,t){let e=Object.entries(t);for(let[o,s]of e)r.addEventListener(o,s);return()=>{for(let[o,s]of e)r.removeEventListener(o,s)}}var Et=(r=0)=>new Promise(t=>setTimeout(t,r));function yr(){let r=new Set;async function t(...a){await Promise.all([...r].map(u=>u(...a)))}function e(a){return r.add(a),()=>{r.delete(a)}}async function o(...a){return t(...a)}function s(a){return e(a)}async function n(a){let{promise:u,resolve:f}=z(),h=s(async(...y)=>{a&&await a(...y),f(y),h()});return u}function i(){r.clear()}let c={pub:o,sub:s,publish:t,subscribe:e,on:e,next:n,clear:i};return Object.assign(s,c),Object.assign(o,c),c}function Re(r){let t=yr();return r&&t.sub(r),t.sub}var Ct=class{#t=new Set;#e=[];#r=new WeakMap;#s=0;#o=new Set;read(t){this.#e.at(-1)?.add(t)}write(t){let e=this.#r.get(t);if(e){for(let o of e)this.#o.add(o);this.#s===0&&this.#n()}}observe(t){let e=new Set;this.#e.push(e);try{let o=t();return{seen:e,value:o}}finally{this.#e.pop()}}subscribe(t,e){let o=vt(this.#r,t,()=>new Set);return o.add(e),()=>{o.delete(e),o.size===0&&this.#r.delete(t)}}batch=t=>{this.#s++;try{return t()}finally{this.#s--,this.#s===0&&this.#n()}};#i(t){if(this.#t.has(t))throw new Error("circularity forbidden");this.#t.add(t);try{t()}finally{this.#t.delete(t)}}#n(){for(;this.#o.size>0;){let t=[...this.#o];this.#o.clear();for(let e of t)this.#i(e)}}};var p=globalThis[Symbol.for("e280.tracker.2")]??=new Ct;function P(r){function t(){return arguments.length===0?(p.read(t),r):(r=arguments[0],p.write(t),r)}return t.get=()=>t(),t.set=e=>t(e),t}var kt=class extends Map{get size(){return p.read(this),super.size}[Symbol.iterator](){return p.read(this),super[Symbol.iterator]()}forEach(t){p.read(this);for(let[e,o]of this)t(o,e,this);return this}keys(){return p.read(this),super.keys()}values(){return p.read(this),super.values()}entries(){return p.read(this),super.entries()}has(t){return p.read(this),super.has(t)}get(t){return p.read(this),super.get(t)}set(t,e){return super.set(t,e),p.write(this),this}delete(t){let e=super.delete(t);return p.write(this),e}clear(){return super.clear(),p.write(this),this}};var Mt=class extends Set{get size(){return p.read(this),super.size}[Symbol.iterator](){return p.read(this),super[Symbol.iterator]()}forEach(t){p.read(this);for(let e of this)t(e,e,this);return this}values(){return p.read(this),super.values()}has(t){return p.read(this),super.has(t)}add(t){return super.add(t),p.write(this),this}delete(t){let e=super.delete(t);return p.write(this),e}clear(){return super.clear(),p.write(this),this}};var Hs=p.batch;function Ne(r){return w.freeze(w.clone(r))}var A=Symbol("optic");var rt=class{calculate;#t=!1;#e;constructor(t){this.calculate=t,this.#e=t()}get(){return this.#t&&(this.#t=!1,this.#e=this.calculate()),this.#e}invalidate(){this.#t=!0}};var Ot=class r{[A];#t;#e;#r;constructor(t){this[A]=t,this.#t=w.clone(t.getState()),this.#e=new rt(()=>w.clone(t.getState())),this.#r=new rt(()=>Ne(t.getState()))}update(){let t=this[A].getState();!w.equal(t,this.#t)&&(this.#e.invalidate(),this.#r.invalidate(),this.#t=w.clone(t),p.write(this))}get state(){return p.read(this),this.#e.get()}get frozen(){return p.read(this),this.#r.get()}mutate(t){return this[A].mutate(t)}lens(t){let e=new r({getState:()=>t(this[A].getState()),mutate:o=>this[A].mutate(s=>o(t(s))),registerLens:this[A].registerLens});return this[A].registerLens(e),e}};function He(r){if(!r.done)throw new Error("wait not done");return Oe(r)}function Le(r){if(!r.done)throw new Error("wait not done");return Pe(r)}var De=r=>!r.done;var oe=r=>r.done&&r.ok;function Ue(r,t){let{pending:e=()=>{},ok:o=()=>{},err:s=()=>{}}=t;return De(r)?e():oe(r)?o(He(r)):s(Le(r))}var Pt=E`
4
4
  * {
5
5
  margin: 0;
6
6
  padding: 0;