@e280/shiny 0.1.0-10 → 0.1.0-11

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.
Files changed (52) hide show
  1. package/README.md +10 -7
  2. package/package.json +1 -1
  3. package/s/components/button/component.ts +30 -0
  4. package/s/components/button/style.css.ts +64 -0
  5. package/s/components/raw-components.ts +2 -0
  6. package/s/components/tabs/component.ts +13 -2
  7. package/s/components/tabs/control.ts +3 -3
  8. package/s/components/tabs/style.css.ts +38 -1
  9. package/s/demo/demo.bundle.ts +140 -57
  10. package/s/demo/views/demonstration/style.css.ts +8 -0
  11. package/s/demo/views/demonstration/view.ts +9 -5
  12. package/s/themes/aura.css.ts +48 -10
  13. package/s/themes/infra/css-vars.ts +15 -7
  14. package/s/themes/plain.css.ts +0 -1
  15. package/x/components/button/component.d.ts +5 -0
  16. package/x/components/button/component.js +25 -0
  17. package/x/components/button/component.js.map +1 -0
  18. package/x/components/button/style.css.d.ts +2 -0
  19. package/x/components/button/style.css.js +63 -0
  20. package/x/components/button/style.css.js.map +1 -0
  21. package/x/components/raw-components.d.ts +2 -0
  22. package/x/components/raw-components.js +2 -0
  23. package/x/components/raw-components.js.map +1 -1
  24. package/x/components/tabs/component.js +13 -2
  25. package/x/components/tabs/component.js.map +1 -1
  26. package/x/components/tabs/control.d.ts +1 -1
  27. package/x/components/tabs/control.js +3 -3
  28. package/x/components/tabs/control.js.map +1 -1
  29. package/x/components/tabs/style.css.js +38 -1
  30. package/x/components/tabs/style.css.js.map +1 -1
  31. package/x/demo/aura-views.d.ts +1 -0
  32. package/x/demo/demo.bundle.js +138 -56
  33. package/x/demo/demo.bundle.js.map +1 -1
  34. package/x/demo/demo.bundle.min.js +292 -111
  35. package/x/demo/demo.bundle.min.js.map +4 -4
  36. package/x/demo/views/demonstration/style.css.js +8 -0
  37. package/x/demo/views/demonstration/style.css.js.map +1 -1
  38. package/x/demo/views/demonstration/view.js +7 -5
  39. package/x/demo/views/demonstration/view.js.map +1 -1
  40. package/x/index.html +2 -2
  41. package/x/install/aura.bundle.min.js +184 -42
  42. package/x/install/aura.bundle.min.js.map +4 -4
  43. package/x/install/plain.bundle.min.js +137 -34
  44. package/x/install/plain.bundle.min.js.map +4 -4
  45. package/x/shiny.d.ts +5 -0
  46. package/x/themes/aura.css.js +48 -10
  47. package/x/themes/aura.css.js.map +1 -1
  48. package/x/themes/infra/css-vars.d.ts +6 -3
  49. package/x/themes/infra/css-vars.js +7 -4
  50. package/x/themes/infra/css-vars.js.map +1 -1
  51. package/x/themes/plain.css.js +0 -1
  52. package/x/themes/plain.css.js.map +1 -1
@@ -1,6 +1,6 @@
1
- var wt=globalThis,vt=wt.ShadowRoot&&(wt.ShadyCSS===void 0||wt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ie=Symbol(),xe=new WeakMap,ot=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ie)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(vt&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=xe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&xe.set(e,t))}return t}toString(){return this.cssText}},$t=r=>new ot(typeof r=="string"?r:r+"",void 0,ie),m=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((s,o,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[i+1]),r[0]);return new ot(e,r,ie)},_t=(r,t)=>{if(vt)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=wt.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},B=vt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return $t(e)})(r):r;var{is:gr,defineProperty:br,getOwnPropertyDescriptor:yr,getOwnPropertyNames:xr,getOwnPropertySymbols:wr,getPrototypeOf:vr}=Object,At=globalThis,we=At.trustedTypes,$r=we?we.emptyScript:"",_r=At.reactiveElementPolyfillSupport,it=(r,t)=>r,ne={toAttribute(r,t){switch(t){case Boolean:r=r?$r: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}},$e=(r,t)=>!gr(r,t),ve={attribute:!0,type:String,converter:ne,reflect:!1,useDefault:!1,hasChanged:$e};Symbol.metadata??=Symbol("metadata"),At.litPropertyMetadata??=new WeakMap;var S=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=ve){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 s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&br(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:i}=yr(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){let l=o?.call(this);i?.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ve}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;let t=vr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){let e=this.properties,s=[...xr(e),...wr(e)];for(let o of s)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,o]of e)this.elementProperties.set(s,o)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let o=this._$Eu(e,s);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let o of s)e.unshift(B(o))}else t!==void 0&&e.push(B(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _t(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,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){let i=(s.converter?.toAttribute!==void 0?s.converter:ne).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=s.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:ne;this._$Em=o;let l=n.fromAttribute(e,i.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let o=this.constructor,i=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??$e)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),o===!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[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,i]of s){let{wrapped:n}=i,l=this[o];n!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,i,l)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}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){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[it("elementProperties")]=new Map,S[it("finalized")]=new Map,_r?.({ReactiveElement:S}),(At.reactiveElementVersions??=[]).push("2.1.1");var le=globalThis,kt=le.trustedTypes,_e=kt?kt.createPolicy("lit-html",{createHTML:r=>r}):void 0,ce="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,pe="?"+E,Ar=`<${pe}>`,N=document,at=()=>N.createComment(""),lt=r=>r===null||typeof r!="object"&&typeof r!="function",he=Array.isArray,Te=r=>he(r)||typeof r?.[Symbol.iterator]=="function",ae=`[
2
- \f\r]`,nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ae=/-->/g,ke=/>/g,M=RegExp(`>|${ae}(?:([^\\s"'>=/]+)(${ae}*=${ae}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Se=/'/g,Ee=/"/g,Pe=/^(?:script|style|textarea|title)$/i,ue=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),f=ue(1),_=ue(2),Zr=ue(3),U=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),Ce=new WeakMap,H=N.createTreeWalker(N,129);function Oe(r,t){if(!he(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return _e!==void 0?_e.createHTML(t):t}var Re=(r,t)=>{let e=r.length-1,s=[],o,i=t===2?"<svg>":t===3?"<math>":"",n=nt;for(let l=0;l<e;l++){let a=r[l],u,d,c=-1,y=0;for(;y<a.length&&(n.lastIndex=y,d=n.exec(a),d!==null);)y=n.lastIndex,n===nt?d[1]==="!--"?n=Ae:d[1]!==void 0?n=ke:d[2]!==void 0?(Pe.test(d[2])&&(o=RegExp("</"+d[2],"g")),n=M):d[3]!==void 0&&(n=M):n===M?d[0]===">"?(n=o??nt,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,u=d[1],n=d[3]===void 0?M:d[3]==='"'?Ee:Se):n===Ee||n===Se?n=M:n===Ae||n===ke?n=nt:(n=M,o=void 0);let T=n===M&&r[l+1].startsWith("/>")?" ":"";i+=n===nt?a+Ar:c>=0?(s.push(u),a.slice(0,c)+ce+a.slice(c)+E+T):a+E+(c===-2?l:T)}return[Oe(r,i+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},ct=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let i=0,n=0,l=t.length-1,a=this.parts,[u,d]=Re(t,e);if(this.el=r.createElement(u,s),H.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=H.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(ce)){let y=d[n++],T=o.getAttribute(c).split(E),xt=/([.?@])?(.*)/.exec(y);a.push({type:1,index:i,name:xt[2],strings:T,ctor:xt[1]==="."?Et:xt[1]==="?"?Ct:xt[1]==="@"?Tt:D}),o.removeAttribute(c)}else c.startsWith(E)&&(a.push({type:6,index:i}),o.removeAttribute(c));if(Pe.test(o.tagName)){let c=o.textContent.split(E),y=c.length-1;if(y>0){o.textContent=kt?kt.emptyScript:"";for(let T=0;T<y;T++)o.append(c[T],at()),H.nextNode(),a.push({type:2,index:++i});o.append(c[y],at())}}}else if(o.nodeType===8)if(o.data===pe)a.push({type:2,index:i});else{let c=-1;for(;(c=o.data.indexOf(E,c+1))!==-1;)a.push({type:7,index:i}),c+=E.length-1}i++}}static createElement(t,e){let s=N.createElement("template");return s.innerHTML=t,s}};function j(r,t,e=r,s){if(t===U)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,i=lt(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(r),o._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=j(r,o._$AS(r,t.values),o,s)),t}var St=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:s}=this._$AD,o=(t?.creationScope??N).importNode(e,!0);H.currentNode=o;let i=H.nextNode(),n=0,l=0,a=s[0];for(;a!==void 0;){if(n===a.index){let u;a.type===2?u=new V(i,i.nextSibling,this,t):a.type===1?u=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(u=new Pt(i,this,t)),this._$AV.push(u),a=s[++l]}n!==a?.index&&(i=H.nextNode(),n++)}return H.currentNode=N,o}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},V=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.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=j(this,t,e),lt(t)?t===x||t==null||t===""?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Te(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!==x&&lt(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=ct.createElement(Oe(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new St(o,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Ce.get(t.strings);return e===void 0&&Ce.set(t.strings,e=new ct(t)),e}k(t){he(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let i of t)o===e.length?e.push(s=new r(this.O(at()),this.O(at()),this,this.options)):s=e[o],s._$AI(i),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},D=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,i){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=x}_$AI(t,e=this,s,o){let i=this.strings,n=!1;if(i===void 0)t=j(this,t,e,0),n=!lt(t)||t!==this._$AH&&t!==U,n&&(this._$AH=t);else{let l=t,a,u;for(t=i[0],a=0;a<i.length-1;a++)u=j(this,l[s+a],e,a),u===U&&(u=this._$AH[a]),n||=!lt(u)||u!==this._$AH[a],u===x?t=x:t!==x&&(t+=(u??"")+i[a+1]),this._$AH[a]=u}n&&!o&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Et=class extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}},Ct=class extends D{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==x)}},Tt=class extends D{constructor(t,e,s,o,i){super(t,e,s,o,i),this.type=5}_$AI(t,e=this){if((t=j(this,t,e,0)??x)===U)return;let s=this._$AH,o=t===x&&s!==x||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==x&&(s===x||o);o&&this.element.removeEventListener(this.name,this,s),i&&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)}},Pt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){j(this,t)}},ze={M:ce,P:E,A:pe,C:1,L:Re,R:St,D:Te,V:j,I:V,H:D,N:Ct,U:Tt,B:Et,F:Pt},kr=le.litHtmlPolyfillSupport;kr?.(ct,V),(le.litHtmlVersions??=[]).push("3.3.1");var pt=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let i=e?.renderBefore??null;s._$litPart$=o=new V(t.insertBefore(at(),i),i,void 0,e??{})}return o._$AI(r),o};var de=globalThis,I=class extends S{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=pt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return U}};I._$litElement$=!0,I.finalized=!0,de.litElementHydrateSupport?.({LitElement:I});var Sr=de.litElementPolyfillSupport;Sr?.({LitElement:I});(de.litElementVersions??=[]).push("4.2.1");var W=m`
1
+ var wt=globalThis,$t=wt.ShadowRoot&&(wt.ShadyCSS===void 0||wt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ne=Symbol(),xe=new WeakMap,it=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ne)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($t&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=xe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&xe.set(e,t))}return t}toString(){return this.cssText}},_t=r=>new it(typeof r=="string"?r:r+"",void 0,ne),d=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((s,o,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[i+1]),r[0]);return new it(e,r,ne)},At=(r,t)=>{if($t)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=wt.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},I=$t?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return _t(e)})(r):r;var{is:yr,defineProperty:vr,getOwnPropertyDescriptor:xr,getOwnPropertyNames:wr,getOwnPropertySymbols:$r,getPrototypeOf:_r}=Object,St=globalThis,we=St.trustedTypes,Ar=we?we.emptyScript:"",Sr=St.reactiveElementPolyfillSupport,nt=(r,t)=>r,ae={toAttribute(r,t){switch(t){case Boolean:r=r?Ar: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}},_e=(r,t)=>!yr(r,t),$e={attribute:!0,type:String,converter:ae,reflect:!1,useDefault:!1,hasChanged:_e};Symbol.metadata??=Symbol("metadata"),St.litPropertyMetadata??=new WeakMap;var T=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=$e){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 s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&vr(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:i}=xr(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){let c=o?.call(this);i?.call(this,n),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$e}static _$Ei(){if(this.hasOwnProperty(nt("elementProperties")))return;let t=_r(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(nt("properties"))){let e=this.properties,s=[...wr(e),...$r(e)];for(let o of s)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,o]of e)this.elementProperties.set(s,o)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let o=this._$Eu(e,s);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let o of s)e.unshift(I(o))}else t!==void 0&&e.push(I(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return At(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,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){let i=(s.converter?.toAttribute!==void 0?s.converter:ae).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=s.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:ae;this._$Em=o;let c=n.fromAttribute(e,i.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let o=this.constructor,i=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??_e)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),o===!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[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,i]of s){let{wrapped:n}=i,c=this[o];n!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,i,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}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){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[nt("elementProperties")]=new Map,T[nt("finalized")]=new Map,Sr?.({ReactiveElement:T}),(St.reactiveElementVersions??=[]).push("2.1.1");var ce=globalThis,kt=ce.trustedTypes,Ae=kt?kt.createPolicy("lit-html",{createHTML:r=>r}):void 0,pe="$lit$",z=`lit$${Math.random().toFixed(9).slice(2)}$`,he="?"+z,kr=`<${he}>`,U=document,lt=()=>U.createComment(""),ct=r=>r===null||typeof r!="object"&&typeof r!="function",ue=Array.isArray,ze=r=>ue(r)||typeof r?.[Symbol.iterator]=="function",le=`[
2
+ \f\r]`,at=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Se=/-->/g,ke=/>/g,H=RegExp(`>|${le}(?:([^\\s"'>=/]+)(${le}*=${le}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ce=/'/g,Ee=/"/g,Pe=/^(?:script|style|textarea|title)$/i,de=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),m=de(1),E=de(2),Kr=de(3),j=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Te=new WeakMap,B=U.createTreeWalker(U,129);function Oe(r,t){if(!ue(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ae!==void 0?Ae.createHTML(t):t}var Re=(r,t)=>{let e=r.length-1,s=[],o,i=t===2?"<svg>":t===3?"<math>":"",n=at;for(let c=0;c<e;c++){let a=r[c],u,g,l=-1,f=0;for(;f<a.length&&(n.lastIndex=f,g=n.exec(a),g!==null);)f=n.lastIndex,n===at?g[1]==="!--"?n=Se:g[1]!==void 0?n=ke:g[2]!==void 0?(Pe.test(g[2])&&(o=RegExp("</"+g[2],"g")),n=H):g[3]!==void 0&&(n=H):n===H?g[0]===">"?(n=o??at,l=-1):g[1]===void 0?l=-2:(l=n.lastIndex-g[2].length,u=g[1],n=g[3]===void 0?H:g[3]==='"'?Ee:Ce):n===Ee||n===Ce?n=H:n===Se||n===ke?n=at:(n=H,o=void 0);let w=n===H&&r[c+1].startsWith("/>")?" ":"";i+=n===at?a+kr:l>=0?(s.push(u),a.slice(0,l)+pe+a.slice(l)+z+w):a+z+(l===-2?c:w)}return[Oe(r,i+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},pt=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let i=0,n=0,c=t.length-1,a=this.parts,[u,g]=Re(t,e);if(this.el=r.createElement(u,s),B.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(o=B.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let l of o.getAttributeNames())if(l.endsWith(pe)){let f=g[n++],w=o.getAttribute(l).split(z),C=/([.?@])?(.*)/.exec(f);a.push({type:1,index:i,name:C[2],strings:w,ctor:C[1]==="."?Et:C[1]==="?"?Tt:C[1]==="@"?zt:L}),o.removeAttribute(l)}else l.startsWith(z)&&(a.push({type:6,index:i}),o.removeAttribute(l));if(Pe.test(o.tagName)){let l=o.textContent.split(z),f=l.length-1;if(f>0){o.textContent=kt?kt.emptyScript:"";for(let w=0;w<f;w++)o.append(l[w],lt()),B.nextNode(),a.push({type:2,index:++i});o.append(l[f],lt())}}}else if(o.nodeType===8)if(o.data===he)a.push({type:2,index:i});else{let l=-1;for(;(l=o.data.indexOf(z,l+1))!==-1;)a.push({type:7,index:i}),l+=z.length-1}i++}}static createElement(t,e){let s=U.createElement("template");return s.innerHTML=t,s}};function D(r,t,e=r,s){if(t===j)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,i=ct(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(r),o._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=D(r,o._$AS(r,t.values),o,s)),t}var Ct=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:s}=this._$AD,o=(t?.creationScope??U).importNode(e,!0);B.currentNode=o;let i=B.nextNode(),n=0,c=0,a=s[0];for(;a!==void 0;){if(n===a.index){let u;a.type===2?u=new W(i,i.nextSibling,this,t):a.type===1?u=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(u=new Pt(i,this,t)),this._$AV.push(u),a=s[++c]}n!==a?.index&&(i=B.nextNode(),n++)}return B.currentNode=U,o}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},W=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.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),ct(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==j&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ze(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!==v&&ct(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=pt.createElement(Oe(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new Ct(o,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Te.get(t.strings);return e===void 0&&Te.set(t.strings,e=new pt(t)),e}k(t){ue(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let i of t)o===e.length?e.push(s=new r(this.O(lt()),this.O(lt()),this,this.options)):s=e[o],s._$AI(i),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},L=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,i){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=v}_$AI(t,e=this,s,o){let i=this.strings,n=!1;if(i===void 0)t=D(this,t,e,0),n=!ct(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{let c=t,a,u;for(t=i[0],a=0;a<i.length-1;a++)u=D(this,c[s+a],e,a),u===j&&(u=this._$AH[a]),n||=!ct(u)||u!==this._$AH[a],u===v?t=v:t!==v&&(t+=(u??"")+i[a+1]),this._$AH[a]=u}n&&!o&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Et=class extends L{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Tt=class extends L{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},zt=class extends L{constructor(t,e,s,o,i){super(t,e,s,o,i),this.type=5}_$AI(t,e=this){if((t=D(this,t,e,0)??v)===j)return;let s=this._$AH,o=t===v&&s!==v||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==v&&(s===v||o);o&&this.element.removeEventListener(this.name,this,s),i&&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)}},Pt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}},Me={M:pe,P:z,A:he,C:1,L:Re,R:Ct,D:ze,V:D,I:W,H:L,N:Tt,U:zt,B:Et,F:Pt},Cr=ce.litHtmlPolyfillSupport;Cr?.(pt,W),(ce.litHtmlVersions??=[]).push("3.3.1");var ht=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let i=e?.renderBefore??null;s._$litPart$=o=new W(t.insertBefore(lt(),i),i,void 0,e??{})}return o._$AI(r),o};var me=globalThis,F=class extends T{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=ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return j}};F._$litElement$=!0,F.finalized=!0,me.litElementHydrateSupport?.({LitElement:F});var Er=me.litElementPolyfillSupport;Er?.({LitElement:F});(me.litElementVersions??=[]).push("4.2.1");var X=d`
4
4
  @layer reset {
5
5
  * {
6
6
  margin: 0;
@@ -16,19 +16,96 @@ var wt=globalThis,vt=wt.ShadowRoot&&(wt.ShadyCSS===void 0||wt.ShadyCSS.nativeSha
16
16
  ::-webkit-scrollbar-thumb { background: #333; border-radius: 1em; }
17
17
  ::-webkit-scrollbar-thumb:hover { background: #444; }
18
18
  }
19
- `;function P(r,t){let e,s,o=[];function i(){e=[],s&&clearTimeout(s),s=void 0,o=[]}return i(),((...n)=>{e=n,s&&clearTimeout(s);let l=new Promise((a,u)=>{o.push({resolve:a,reject:u})});return s=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:u}of o)u(a);i()}).catch(a=>{for(let{reject:u}of o)u(a);i()})},r),l})}function Er(r){let t,e=!1,s=()=>{e=!0,clearTimeout(t)},o=async()=>{e||(await r(s),!e&&(t=setTimeout(o,0)))};return o(),s}var Me=Er;function ht(){let r,t,e=new Promise((o,i)=>{r=o,t=i});function s(o){return o.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:s}}var Ot=class{getRefill;#t=[];constructor(t){this.getRefill=t,this.#e()}get currentStock(){return[...this.#t]}#e(){if(this.#t.length===0&&(this.#t=[...this.getRefill()]),this.#t.length===0)throw new Error("dispenser's getRefill returned an empty array")}takeAll(){let t=this.#t;return this.#t=[...this.getRefill()],t}takeRandom(){this.#e();let t=Math.floor(Math.random()*this.#t.length),[e]=this.#t.splice(t,1);return e}takeFirst(){return this.#e(),this.#t.shift()}takeLast(){return this.#e(),this.#t.pop()}shift=this.takeFirst.bind(this);pop=this.takeLast.bind(this)};var F=class r extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,s){if(t.has(e))return t.get(e);{let o=s();return t.set(e,o),o}}array(){return[...this]}require(t){return r.require(this,t)}guarantee(t,e){return r.guarantee(this,t,e)}};var He=(r=0)=>new Promise(t=>setTimeout(t,r));function Rt(r){return{map:t=>Ne(r,t),filter:t=>Ue(r,t)}}Rt.pipe=Object.freeze({map:r=>(t=>Ne(t,r)),filter:r=>(t=>Ue(t,r))});var Ne=(r,t)=>Object.fromEntries(Object.entries(r).map(([e,s])=>[e,t(s,e)])),Ue=(r,t)=>Object.fromEntries(Object.entries(r).filter(([e,s])=>t(s,e)));function je(){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 s(...a){return t(...a)}function o(a){return e(a)}async function i(a){let{promise:u,resolve:d}=ht(),c=o(async(...y)=>{a&&await a(...y),d(y),c()});return u}function n(){r.clear()}let l={pub:s,sub:o,publish:t,subscribe:e,on:e,next:i,clear:n};return Object.assign(o,l),Object.assign(s,l),l}function zt(r){let t=je();return r&&t.sub(r),t.sub}function me(r){let t=je();return r&&t.sub(r),t.pub}function De(r){let t=r.split(/\r|\n/),e;for(let o of t)if(!/^\s+$/.test(o)){let n=o.match(/^(\t+).+/);if(n){let l=n[1].length;if(e=e===void 0||l<e?l:e,e===0)break}}let s=new RegExp(`^\\t{${e}}`);return t.map(o=>/^\s+$/.test(o)?"":o).map(o=>o.replace(s,"")).join(`
20
- `)}function Cr(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}"`)}function Mt(r,t){for(let[e,s]of t)Cr(r,e,s)}function Le(r,t){let e=document.createElement(r);return Mt(e,Object.entries(t)),e}function qe(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var v={get:{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},set:{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)}};var Be=(r,t)=>new Proxy(t,{get:(e,s)=>{switch(t[s]){case String:return v.get.string(r,s);case Number:return v.get.number(r,s);case Boolean:return v.get.boolean(r,s);default:throw new Error(`invalid attribute type for "${s}"`)}},set:(e,s,o)=>{switch(t[s]){case String:return v.set.string(r,s,o);case Number:return v.set.number(r,s,o);case Boolean:return v.set.boolean(r,s,o);default:throw new Error(`invalid attribute type for "${s}"`)}}});var Ht=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>v.get.string(this.element,e),set:(t,e,s)=>v.set.string(this.element,e,s)});numbers=new Proxy({},{get:(t,e)=>v.get.number(this.element,e),set:(t,e,s)=>v.set.number(this.element,e,s)});booleans=new Proxy({},{get:(t,e)=>v.get.boolean(this.element,e),set:(t,e,s)=>v.set.boolean(this.element,e,s)})};function ut(r){let t=new Ht(r);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>qe(r,e),spec:e=>Be(r,e)}}ut.get=v.get;ut.set=v.set;function fe(r,t){let e=[];for(let[s,o]of Object.entries(t))if(typeof o=="function")r.addEventListener(s,o),e.push(()=>r.removeEventListener(s,o));else{let[i,n]=o;r.addEventListener(s,n,i),e.push(()=>r.removeEventListener(s,n))}return()=>e.forEach(s=>s())}function Ve(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function Ie(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,i]of Object.entries(r)){let n=Ve(o),l=customElements.get(n);e&&l||(customElements.define(n,i),s&&document.querySelectorAll(n).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function We(r,t){let e=r.querySelector(t);if(!e)throw new Error(`element not found (${t})`);return e}var Nt=class r{element;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?We(this.element,t):t)}require(t){let e=this.element.querySelector(t);if(!e)throw new Error(`element not found (${t})`);return e}maybe(t){return this.element.querySelector(t)}all(t){return Array.from(this.element.querySelectorAll(t))}render(...t){return pt(t,this.element)}attrs(){return ut(this.element)}events(t){return fe(this.element,t)}};function p(r){return typeof r=="string"?We(document,r):new Nt(r)}var O=new Nt(document);p.in=O.in.bind(O);p.require=O.require.bind(O);p.maybe=O.maybe.bind(O);p.all=O.all.bind(O);p.el=Le;p.events=fe;p.attrs=ut;p.register=Ie;p.render=(r,...t)=>pt(t,r);var ge=class{#t=[];#e=new WeakMap;#r=[];#s=new Set;notifyRead(t){this.#t.at(-1)?.add(t)}async notifyWrite(t){if(this.#s.has(t))throw new Error("circularity forbidden");let e=this.#o(t).pub();return this.#r.at(-1)?.add(e),e}observe(t){this.#t.push(new Set);let e=t();return{seen:this.#t.pop(),result:e}}subscribe(t,e){return this.#o(t)(async()=>{let s=new Set;this.#r.push(s),this.#s.add(t),s.add(e()),this.#s.delete(t),await Promise.all(s),this.#r.pop()})}#o(t){let e=this.#e.get(t);return e||(e=zt(),this.#e.set(t,e)),e}},$=globalThis[Symbol.for("e280.tracker")]??=new ge;var X=class{sneak;constructor(t){this.sneak=t}get(){return $.notifyRead(this),this.sneak}get value(){return this.get()}};var Y=class extends X{on=zt();dispose(){this.on.clear()}};function Ut(r,t=r){let{seen:e,result:s}=$.observe(r),o=P(0,t),i=[],n=()=>i.forEach(l=>l());for(let l of e){let a=$.subscribe(l,o);i.push(a)}return{result:s,dispose:n}}function Z(r,t){return r===t}var jt=class extends Y{#t;constructor(t,e){let s=e?.compare??Z,{result:o,dispose:i}=Ut(t,async()=>{let n=t();!s(this.sneak,n)&&(this.sneak=n,await Promise.all([$.notifyWrite(this),this.on.pub(n)]))});super(o),this.#t=i}toString(){return`(derived "${String(this.get())}")`}dispose(){super.dispose(),this.#t()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var Dt=class extends X{#t;#e;#r=!1;#s;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??Z}toString(){return`($lazy "${String(this.get())}")`}get(){if(!this.#s){let{result:t,dispose:e}=Ut(this.#t,()=>this.#r=!0);this.#s=e,this.sneak=t}if(this.#r){this.#r=!1;let t=this.#t();!this.#e(this.sneak,t)&&(this.sneak=t,$.notifyWrite(this))}return super.get()}dispose(){this.#s&&this.#s()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var Lt=class extends Y{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??Z}toString(){return`($signal "${String(this.get())}")`}async set(t,e=!1){let s=this.sneak;return this.sneak=t,(e||!this.#e(s,t))&&await this.publish(),t}get value(){return this.get()}set value(t){this.set(t)}async publish(){if(this.#t)throw new Error("forbid circularity");let t=this.sneak,e=Promise.resolve();try{this.#t=!0,e=Promise.all([$.notifyWrite(this),this.on.publish(t)])}finally{this.#t=!1}return await e,t}get core(){return this}fn(){let t=this;function e(s){return arguments.length===0?t.get():t.set(arguments[0])}return e.core=t,e.get=t.get.bind(t),e.set=t.set.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.publish=t.publish.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value,set:s=>t.value=s}),Object.defineProperty(e,"sneak",{get:()=>t.sneak,set:s=>t.sneak=s}),e}};function Tr(r,t){return new Dt(r,t).fn()}function Fe(r,t){return new jt(r,t).fn()}function w(r,t){return new Lt(r,t).fn()}w.lazy=Tr;w.derived=Fe;var R=class{#t=new F;effect(t,e){let{seen:s,result:o}=$.observe(t);for(let i of s)this.#t.guarantee(i,()=>$.subscribe(i,e));for(let[i,n]of this.#t)s.has(i)||(n(),this.#t.delete(i));return o}clear(){for(let t of this.#t.values())t();this.#t.clear()}};var J=class{element;response;#t;constructor(t,e){this.element=t,this.response=e}start(){this.#t||(this.#t=p.attrs(this.element).on(this.response))}stop(){this.#t&&this.#t(),this.#t=void 0}};function qt(r,t){_t(r,Or(t))}function Or(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(B(s))}else r!==void 0&&t.push(B(r));return t}var L={status:r=>r[0],value:r=>r[0]==="ready"?r[1]:void 0,error:r=>r[0]==="error"?r[1]:void 0,select:(r,t)=>{switch(r[0]){case"loading":return t.loading();case"error":return t.error(r[1]);case"ready":return t.ready(r[1]);default:throw new Error("unknown op status")}},morph:(r,t)=>L.select(r,{loading:()=>["loading"],error:e=>["error",e],ready:e=>["ready",t(e)]}),all:(...r)=>{let t=[],e=[],s=0;for(let o of r)switch(o[0]){case"loading":s++;break;case"ready":t.push(o[1]);break;case"error":e.push(o[1]);break}return e.length>0?["error",e]:s===0?["ready",t]:["loading"]}};var K=class{static loading(){return new this}static ready(t){return new this(["ready",t])}static error(t){return new this(["error",t])}static promise(t){let e=new this;return e.promise(t),e}static load(t){return this.promise(t())}static all(...t){let e=t.map(s=>s.pod);return L.all(...e)}signal;#t=0;#e=me();#r=me();constructor(t=["loading"]){this.signal=w(t)}get wait(){return new Promise((t,e)=>{this.#e.next().then(([s])=>t(s)),this.#r.next().then(([s])=>e(s))})}get then(){return this.wait.then.bind(this.wait)}get catch(){return this.wait.catch.bind(this.wait)}get finally(){return this.wait.finally.bind(this.wait)}async setLoading(){await this.signal.set(["loading"])}async setReady(t){await this.signal.set(["ready",t]),await this.#e(t)}async setError(t){await this.signal.set(["error",t]),await this.#r(t)}async promise(t){let e=++this.#t;await this.setLoading();try{let s=await t;return e===this.#t&&await this.setReady(s),s}catch(s){console.error(s),e===this.#t&&await this.setError(s)}}async load(t){return this.promise(t())}get pod(){return this.signal.get()}set pod(t){this.signal.set(t)}get status(){return this.signal.get()[0]}get value(){return L.value(this.signal.get())}get error(){return L.error(this.signal.get())}get isLoading(){return this.status==="loading"}get isReady(){return this.status==="ready"}get isError(){return this.status==="error"}require(){let t=this.signal.get();if(t[0]!=="ready")throw new Error("required value not ready");return t[1]}select(t){return L.select(this.signal.get(),t)}morph(t){return L.morph(this.pod,t)}};var Bt=class{#t=[];#e=[];mount(t){this.#t.push(t),this.#e.push(t())}unmountAll(){for(let t of this.#e)t();this.#e=[]}remountAll(){for(let t of this.#t)this.#e.push(t())}};var Vt=class{#t;#e;constructor(t){this.#t=t,this.#e=p.attrs(t.element)}get strings(){return this.#e.strings}get numbers(){return this.#e.numbers}get booleans(){return this.#e.booleans}spec(t){return this.#t.once(()=>this.#e.spec(t))}on(t){return this.#t.mount(()=>this.#e.on(t))}};var dt=Symbol(),mt=Symbol(),ft=Symbol(),Q=class{element;shadow;renderNow;render;attrs;#t=0;#e=0;#r=new F;#s=ht();#o=new Bt;[dt](t){this.#t++,this.#e=0,this.#s=ht();let e=t();return this.#s.resolve(),e}[mt](){this.#o.unmountAll()}[ft](){this.#o.remountAll()}constructor(t,e,s,o){this.element=t,this.shadow=e,this.renderNow=s,this.render=o,this.attrs=new Vt(this)}get renderCount(){return this.#t}get rendered(){return this.#s.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>qt(this.shadow,t))}css(...t){return this.styles(...t)}once(t){return this.#r.guarantee(this.#e++,t)}mount(t){return this.once(()=>this.#o.mount(t))}life(t){let e;return this.mount(()=>{let[s,o]=t();return e=s,o}),e}wake(t){return this.life(()=>[t(),()=>{}])}op=(()=>{let t=this;function e(s){return t.once(()=>K.load(s))}return e.load=e,e.promise=s=>this.once(()=>K.promise(s)),e})();signal=(()=>{let t=this;function e(s,o){return t.once(()=>w(s,o))}return e.derived=function(o,i){return t.once(()=>w.derived(o,i))},e.lazy=function(o,i){return t.once(()=>w.lazy(o,i))},e})();derived(t,e){return this.once(()=>w.derived(t,e))}lazy(t,e){return this.once(()=>w.lazy(t,e))}};var z=class extends HTMLElement{static styles;shadow;#t;#e=0;#r=new R;#s=new J(this,()=>this.update());createShadow(){return this.attachShadow({mode:"open"})}constructor(){super(),this.shadow=this.createShadow(),this.#t=new Q(this,this.shadow,this.updateNow,this.update)}render(t){}updateNow=()=>{this.#t[dt](()=>{p.render(this.shadow,this.#r.effect(()=>this.render(this.#t),this.update))})};update=P(0,this.updateNow);connectedCallback(){if(this.#e===0){let t=this.constructor.styles;t&&qt(this.shadow,t),this.updateNow()}else this.#t[ft]();this.#s.start(),this.#e++}disconnectedCallback(){this.#t[mt](),this.#r.clear(),this.#s.stop()}};var It=class{#t;#e;constructor(t,e){this.#e=t,this.#t=e}attr(t,e){return this.#e.attrs.set(t,e),this}children(...t){return this.#e.children.push(...t),this}render(){return this.#t(this.#e)}};var gt=class{props;attrs=new Map;children=[];constructor(t){this.props=t}};function Xe(r,t,e,s){return class extends t{static view=G(s,r);#t=new R;createShadow(){return this.attachShadow(r)}render(i){return s(i)(...this.#t.effect(()=>e(this),()=>this.update()))}}}var{I:rn}=ze;var Ye=r=>r.strings===void 0;var Ze={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},be=r=>(...t)=>({_$litDirective$:r,values:t}),Wt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var bt=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),bt(s,t);return!0},Ft=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},Je=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),Mr(t)}};function Rr(r){this._$AN!==void 0?(Ft(this),this._$AM=r,Je(this)):this._$AM=r}function zr(r,t=!1,e=0){let s=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(s))for(let i=e;i<s.length;i++)bt(s[i],!1),Ft(s[i]);else s!=null&&(bt(s,!1),Ft(s));else bt(this,r)}var Mr=r=>{r.type==Ze.CHILD&&(r._$AP??=zr,r._$AQ??=Rr)},Xt=class extends Wt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Je(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(bt(this,t),Ft(this))}setValue(t){if(Ye(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Yt=class r extends HTMLElement{static#t=!1;static make(){return this.#t||(p.register({SlyView:r},{soft:!0,upgrade:!0}),this.#t=!0),document.createElement("sly-view")}};var Zt=class{viewFn;settings;#t=Yt.make();#e=new R;#r;#s;#o;#i=new J(this.#t,()=>this.#a());constructor(t,e){this.viewFn=t,this.settings=e,this.#s=this.#t.attachShadow(this.settings),this.#r=new Q(this.#t,this.#s,this.#n,this.#a)}update(t){return this.#o=t,this.#n(),this.#t}#n=()=>{this.#r[dt](()=>{let t=this.#e.effect(()=>this.viewFn(this.#r)(...this.#o.props),()=>this.#a());Mt(this.#t,[...this.#o.attrs]),p.render(this.#s,t),p.render(this.#t,this.#o.children),this.#i.start()})};#a=P(0,this.#n);disconnected(){this.#r[mt](),this.#e.clear(),this.#i.stop()}reconnected(){this.#r[ft](),this.#i.start()}};function Ke(r,t){return be(class extends Xt{#t=new Zt(r,t);render(s){return this.#t.update(s)}disconnected(){this.#t.disconnected()}reconnected(){this.#t.reconnected()}})}function G(r,t){let e=Ke(r,t);function s(...o){return e(new gt(o))}return s.props=(...o)=>new It(new gt(o),e),s.transmute=o=>G(n=>{let l=r(n);return(...a)=>l(...o(...a))},t),s.component=(o=z)=>({props:i=>Xe(t,o,i,r)}),s}function g(r){return G(r,{mode:"open"})}g.settings=r=>({render:t=>G(t,r)});g.render=g;g.component=r=>g(t=>()=>r(t)).component(z).props(()=>[]);function h(r,t){return()=>Hr({hz:r,frames:t})}var Hr=g(r=>({hz:t,frames:e})=>{r.name("loading"),r.styles(W,Nr);let s=r.signal(0);return r.mount(()=>Me(async()=>{await He(1e3/t);let o=s.get()+1;s.set(o>=e.length?0:o)})),e.at(s.get())}),Nr=m`
19
+ `;function P(r,t){let e,s,o=[];function i(){e=[],s&&clearTimeout(s),s=void 0,o=[]}return i(),((...n)=>{e=n,s&&clearTimeout(s);let c=new Promise((a,u)=>{o.push({resolve:a,reject:u})});return s=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:u}of o)u(a);i()}).catch(a=>{for(let{reject:u}of o)u(a);i()})},r),c})}function Tr(r){let t,e=!1,s=()=>{e=!0,clearTimeout(t)},o=async()=>{e||(await r(s),!e&&(t=setTimeout(o,0)))};return o(),s}var Ne=Tr;function ut(){let r,t,e=new Promise((o,i)=>{r=o,t=i});function s(o){return o.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:s}}var Ot=class{getRefill;#t=[];constructor(t){this.getRefill=t,this.#e()}get currentStock(){return[...this.#t]}#e(){if(this.#t.length===0&&(this.#t=[...this.getRefill()]),this.#t.length===0)throw new Error("dispenser's getRefill returned an empty array")}takeAll(){let t=this.#t;return this.#t=[...this.getRefill()],t}takeRandom(){this.#e();let t=Math.floor(Math.random()*this.#t.length),[e]=this.#t.splice(t,1);return e}takeFirst(){return this.#e(),this.#t.shift()}takeLast(){return this.#e(),this.#t.pop()}shift=this.takeFirst.bind(this);pop=this.takeLast.bind(this)};var Y=class r extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,s){if(t.has(e))return t.get(e);{let o=s();return t.set(e,o),o}}array(){return[...this]}require(t){return r.require(this,t)}guarantee(t,e){return r.guarantee(this,t,e)}};var He=(r=0)=>new Promise(t=>setTimeout(t,r));function Rt(r){return{map:t=>Be(r,t),filter:t=>Ue(r,t)}}Rt.pipe=Object.freeze({map:r=>(t=>Be(t,r)),filter:r=>(t=>Ue(t,r))});var Be=(r,t)=>Object.fromEntries(Object.entries(r).map(([e,s])=>[e,t(s,e)])),Ue=(r,t)=>Object.fromEntries(Object.entries(r).filter(([e,s])=>t(s,e)));function je(){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 s(...a){return t(...a)}function o(a){return e(a)}async function i(a){let{promise:u,resolve:g}=ut(),l=o(async(...f)=>{a&&await a(...f),g(f),l()});return u}function n(){r.clear()}let c={pub:s,sub:o,publish:t,subscribe:e,on:e,next:i,clear:n};return Object.assign(o,c),Object.assign(s,c),c}function Mt(r){let t=je();return r&&t.sub(r),t.sub}function fe(r){let t=je();return r&&t.sub(r),t.pub}function De(r){let t=r.split(/\r|\n/),e;for(let o of t)if(!/^\s+$/.test(o)){let n=o.match(/^(\t+).+/);if(n){let c=n[1].length;if(e=e===void 0||c<e?c:e,e===0)break}}let s=new RegExp(`^\\t{${e}}`);return t.map(o=>/^\s+$/.test(o)?"":o).map(o=>o.replace(s,"")).join(`
20
+ `)}function zr(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}"`)}function Nt(r,t){for(let[e,s]of t)zr(r,e,s)}function Le(r,t){let e=document.createElement(r);return Nt(e,Object.entries(t)),e}function qe(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var $={get:{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},set:{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)}};var Ve=(r,t)=>new Proxy(t,{get:(e,s)=>{switch(t[s]){case String:return $.get.string(r,s);case Number:return $.get.number(r,s);case Boolean:return $.get.boolean(r,s);default:throw new Error(`invalid attribute type for "${s}"`)}},set:(e,s,o)=>{switch(t[s]){case String:return $.set.string(r,s,o);case Number:return $.set.number(r,s,o);case Boolean:return $.set.boolean(r,s,o);default:throw new Error(`invalid attribute type for "${s}"`)}}});var Ht=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>$.get.string(this.element,e),set:(t,e,s)=>$.set.string(this.element,e,s)});numbers=new Proxy({},{get:(t,e)=>$.get.number(this.element,e),set:(t,e,s)=>$.set.number(this.element,e,s)});booleans=new Proxy({},{get:(t,e)=>$.get.boolean(this.element,e),set:(t,e,s)=>$.set.boolean(this.element,e,s)})};function dt(r){let t=new Ht(r);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>qe(r,e),spec:e=>Ve(r,e)}}dt.get=$.get;dt.set=$.set;function ge(r,t){let e=[];for(let[s,o]of Object.entries(t))if(typeof o=="function")r.addEventListener(s,o),e.push(()=>r.removeEventListener(s,o));else{let[i,n]=o;r.addEventListener(s,n,i),e.push(()=>r.removeEventListener(s,n))}return()=>e.forEach(s=>s())}function Ie(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function We(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,i]of Object.entries(r)){let n=Ie(o),c=customElements.get(n);e&&c||(customElements.define(n,i),s&&document.querySelectorAll(n).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function Fe(r,t){let e=r.querySelector(t);if(!e)throw new Error(`element not found (${t})`);return e}var Bt=class r{element;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?Fe(this.element,t):t)}require(t){let e=this.element.querySelector(t);if(!e)throw new Error(`element not found (${t})`);return e}maybe(t){return this.element.querySelector(t)}all(t){return Array.from(this.element.querySelectorAll(t))}render(...t){return ht(t,this.element)}attrs(){return dt(this.element)}events(t){return ge(this.element,t)}};function p(r){return typeof r=="string"?Fe(document,r):new Bt(r)}var O=new Bt(document);p.in=O.in.bind(O);p.require=O.require.bind(O);p.maybe=O.maybe.bind(O);p.all=O.all.bind(O);p.el=Le;p.events=ge;p.attrs=dt;p.register=We;p.render=(r,...t)=>ht(t,r);var be=class{#t=[];#e=new WeakMap;#r=[];#s=new Set;notifyRead(t){this.#t.at(-1)?.add(t)}async notifyWrite(t){if(this.#s.has(t))throw new Error("circularity forbidden");let e=this.#o(t).pub();return this.#r.at(-1)?.add(e),e}observe(t){this.#t.push(new Set);let e=t();return{seen:this.#t.pop(),result:e}}subscribe(t,e){return this.#o(t)(async()=>{let s=new Set;this.#r.push(s),this.#s.add(t),s.add(e()),this.#s.delete(t),await Promise.all(s),this.#r.pop()})}#o(t){let e=this.#e.get(t);return e||(e=Mt(),this.#e.set(t,e)),e}},_=globalThis[Symbol.for("e280.tracker")]??=new be;var Z=class{sneak;constructor(t){this.sneak=t}get(){return _.notifyRead(this),this.sneak}get value(){return this.get()}};var J=class extends Z{on=Mt();dispose(){this.on.clear()}};function Ut(r,t=r){let{seen:e,result:s}=_.observe(r),o=P(0,t),i=[],n=()=>i.forEach(c=>c());for(let c of e){let a=_.subscribe(c,o);i.push(a)}return{result:s,dispose:n}}function K(r,t){return r===t}var jt=class extends J{#t;constructor(t,e){let s=e?.compare??K,{result:o,dispose:i}=Ut(t,async()=>{let n=t();!s(this.sneak,n)&&(this.sneak=n,await Promise.all([_.notifyWrite(this),this.on.pub(n)]))});super(o),this.#t=i}toString(){return`(derived "${String(this.get())}")`}dispose(){super.dispose(),this.#t()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var Dt=class extends Z{#t;#e;#r=!1;#s;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??K}toString(){return`($lazy "${String(this.get())}")`}get(){if(!this.#s){let{result:t,dispose:e}=Ut(this.#t,()=>this.#r=!0);this.#s=e,this.sneak=t}if(this.#r){this.#r=!1;let t=this.#t();!this.#e(this.sneak,t)&&(this.sneak=t,_.notifyWrite(this))}return super.get()}dispose(){this.#s&&this.#s()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var Lt=class extends J{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??K}toString(){return`($signal "${String(this.get())}")`}async set(t,e=!1){let s=this.sneak;return this.sneak=t,(e||!this.#e(s,t))&&await this.publish(),t}get value(){return this.get()}set value(t){this.set(t)}async publish(){if(this.#t)throw new Error("forbid circularity");let t=this.sneak,e=Promise.resolve();try{this.#t=!0,e=Promise.all([_.notifyWrite(this),this.on.publish(t)])}finally{this.#t=!1}return await e,t}get core(){return this}fn(){let t=this;function e(s){return arguments.length===0?t.get():t.set(arguments[0])}return e.core=t,e.get=t.get.bind(t),e.set=t.set.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.publish=t.publish.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value,set:s=>t.value=s}),Object.defineProperty(e,"sneak",{get:()=>t.sneak,set:s=>t.sneak=s}),e}};function Pr(r,t){return new Dt(r,t).fn()}function Xe(r,t){return new jt(r,t).fn()}function x(r,t){return new Lt(r,t).fn()}x.lazy=Pr;x.derived=Xe;var R=class{#t=new Y;effect(t,e){let{seen:s,result:o}=_.observe(t);for(let i of s)this.#t.guarantee(i,()=>_.subscribe(i,e));for(let[i,n]of this.#t)s.has(i)||(n(),this.#t.delete(i));return o}clear(){for(let t of this.#t.values())t();this.#t.clear()}};var Q=class{element;response;#t;constructor(t,e){this.element=t,this.response=e}start(){this.#t||(this.#t=p.attrs(this.element).on(this.response))}stop(){this.#t&&this.#t(),this.#t=void 0}};function qt(r,t){At(r,Rr(t))}function Rr(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(I(s))}else r!==void 0&&t.push(I(r));return t}var q={status:r=>r[0],value:r=>r[0]==="ready"?r[1]:void 0,error:r=>r[0]==="error"?r[1]:void 0,select:(r,t)=>{switch(r[0]){case"loading":return t.loading();case"error":return t.error(r[1]);case"ready":return t.ready(r[1]);default:throw new Error("unknown op status")}},morph:(r,t)=>q.select(r,{loading:()=>["loading"],error:e=>["error",e],ready:e=>["ready",t(e)]}),all:(...r)=>{let t=[],e=[],s=0;for(let o of r)switch(o[0]){case"loading":s++;break;case"ready":t.push(o[1]);break;case"error":e.push(o[1]);break}return e.length>0?["error",e]:s===0?["ready",t]:["loading"]}};var G=class{static loading(){return new this}static ready(t){return new this(["ready",t])}static error(t){return new this(["error",t])}static promise(t){let e=new this;return e.promise(t),e}static load(t){return this.promise(t())}static all(...t){let e=t.map(s=>s.pod);return q.all(...e)}signal;#t=0;#e=fe();#r=fe();constructor(t=["loading"]){this.signal=x(t)}get wait(){return new Promise((t,e)=>{this.#e.next().then(([s])=>t(s)),this.#r.next().then(([s])=>e(s))})}get then(){return this.wait.then.bind(this.wait)}get catch(){return this.wait.catch.bind(this.wait)}get finally(){return this.wait.finally.bind(this.wait)}async setLoading(){await this.signal.set(["loading"])}async setReady(t){await this.signal.set(["ready",t]),await this.#e(t)}async setError(t){await this.signal.set(["error",t]),await this.#r(t)}async promise(t){let e=++this.#t;await this.setLoading();try{let s=await t;return e===this.#t&&await this.setReady(s),s}catch(s){console.error(s),e===this.#t&&await this.setError(s)}}async load(t){return this.promise(t())}get pod(){return this.signal.get()}set pod(t){this.signal.set(t)}get status(){return this.signal.get()[0]}get value(){return q.value(this.signal.get())}get error(){return q.error(this.signal.get())}get isLoading(){return this.status==="loading"}get isReady(){return this.status==="ready"}get isError(){return this.status==="error"}require(){let t=this.signal.get();if(t[0]!=="ready")throw new Error("required value not ready");return t[1]}select(t){return q.select(this.signal.get(),t)}morph(t){return q.morph(this.pod,t)}};var Vt=class{#t=[];#e=[];mount(t){this.#t.push(t),this.#e.push(t())}unmountAll(){for(let t of this.#e)t();this.#e=[]}remountAll(){for(let t of this.#t)this.#e.push(t())}};var It=class{#t;#e;constructor(t){this.#t=t,this.#e=p.attrs(t.element)}get strings(){return this.#e.strings}get numbers(){return this.#e.numbers}get booleans(){return this.#e.booleans}spec(t){return this.#t.once(()=>this.#e.spec(t))}on(t){return this.#t.mount(()=>this.#e.on(t))}};var mt=Symbol(),ft=Symbol(),gt=Symbol(),tt=class{element;shadow;renderNow;render;attrs;#t=0;#e=0;#r=new Y;#s=ut();#o=new Vt;[mt](t){this.#t++,this.#e=0,this.#s=ut();let e=t();return this.#s.resolve(),e}[ft](){this.#o.unmountAll()}[gt](){this.#o.remountAll()}constructor(t,e,s,o){this.element=t,this.shadow=e,this.renderNow=s,this.render=o,this.attrs=new It(this)}get renderCount(){return this.#t}get rendered(){return this.#s.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>qt(this.shadow,t))}css(...t){return this.styles(...t)}once(t){return this.#r.guarantee(this.#e++,t)}mount(t){return this.once(()=>this.#o.mount(t))}life(t){let e;return this.mount(()=>{let[s,o]=t();return e=s,o}),e}wake(t){return this.life(()=>[t(),()=>{}])}op=(()=>{let t=this;function e(s){return t.once(()=>G.load(s))}return e.load=e,e.promise=s=>this.once(()=>G.promise(s)),e})();signal=(()=>{let t=this;function e(s,o){return t.once(()=>x(s,o))}return e.derived=function(o,i){return t.once(()=>x.derived(o,i))},e.lazy=function(o,i){return t.once(()=>x.lazy(o,i))},e})();derived(t,e){return this.once(()=>x.derived(t,e))}lazy(t,e){return this.once(()=>x.lazy(t,e))}};var M=class extends HTMLElement{static styles;shadow;#t;#e=0;#r=new R;#s=new Q(this,()=>this.update());createShadow(){return this.attachShadow({mode:"open"})}constructor(){super(),this.shadow=this.createShadow(),this.#t=new tt(this,this.shadow,this.updateNow,this.update)}render(t){}updateNow=()=>{this.#t[mt](()=>{p.render(this.shadow,this.#r.effect(()=>this.render(this.#t),this.update))})};update=P(0,this.updateNow);connectedCallback(){if(this.#e===0){let t=this.constructor.styles;t&&qt(this.shadow,t),this.updateNow()}else this.#t[gt]();this.#s.start(),this.#e++}disconnectedCallback(){this.#t[ft](),this.#r.clear(),this.#s.stop()}};var Wt=class{#t;#e;constructor(t,e){this.#e=t,this.#t=e}attr(t,e){return this.#e.attrs.set(t,e),this}children(...t){return this.#e.children.push(...t),this}render(){return this.#t(this.#e)}};var bt=class{props;attrs=new Map;children=[];constructor(t){this.props=t}};function Ye(r,t,e,s){return class extends t{static view=et(s,r);#t=new R;createShadow(){return this.attachShadow(r)}render(i){return s(i)(...this.#t.effect(()=>e(this),()=>this.update()))}}}var{I:on}=Me;var Ze=r=>r.strings===void 0;var Je={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ye=r=>(...t)=>({_$litDirective$:r,values:t}),Ft=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var yt=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),yt(s,t);return!0},Xt=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},Ke=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),Hr(t)}};function Mr(r){this._$AN!==void 0?(Xt(this),this._$AM=r,Ke(this)):this._$AM=r}function Nr(r,t=!1,e=0){let s=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(s))for(let i=e;i<s.length;i++)yt(s[i],!1),Xt(s[i]);else s!=null&&(yt(s,!1),Xt(s));else yt(this,r)}var Hr=r=>{r.type==Je.CHILD&&(r._$AP??=Nr,r._$AQ??=Mr)},Yt=class extends Ft{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ke(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(yt(this,t),Xt(this))}setValue(t){if(Ze(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Zt=class r extends HTMLElement{static#t=!1;static make(){return this.#t||(p.register({SlyView:r},{soft:!0,upgrade:!0}),this.#t=!0),document.createElement("sly-view")}};var Jt=class{viewFn;settings;#t=Zt.make();#e=new R;#r;#s;#o;#i=new Q(this.#t,()=>this.#a());constructor(t,e){this.viewFn=t,this.settings=e,this.#s=this.#t.attachShadow(this.settings),this.#r=new tt(this.#t,this.#s,this.#n,this.#a)}update(t){return this.#o=t,this.#n(),this.#t}#n=()=>{this.#r[mt](()=>{let t=this.#e.effect(()=>this.viewFn(this.#r)(...this.#o.props),()=>this.#a());Nt(this.#t,[...this.#o.attrs]),p.render(this.#s,t),p.render(this.#t,this.#o.children),this.#i.start()})};#a=P(0,this.#n);disconnected(){this.#r[ft](),this.#e.clear(),this.#i.stop()}reconnected(){this.#r[gt](),this.#i.start()}};function Qe(r,t){return ye(class extends Yt{#t=new Jt(r,t);render(s){return this.#t.update(s)}disconnected(){this.#t.disconnected()}reconnected(){this.#t.reconnected()}})}function et(r,t){let e=Qe(r,t);function s(...o){return e(new bt(o))}return s.props=(...o)=>new Wt(new bt(o),e),s.transmute=o=>et(n=>{let c=r(n);return(...a)=>c(...o(...a))},t),s.component=(o=M)=>({props:i=>Ye(t,o,i,r)}),s}function b(r){return et(r,{mode:"open"})}b.settings=r=>({render:t=>et(t,r)});b.render=b;b.component=r=>b(t=>()=>r(t)).component(M).props(()=>[]);function h(r,t){return()=>Br({hz:r,frames:t})}var Br=b(r=>({hz:t,frames:e})=>{r.name("loading"),r.styles(X,Ur);let s=r.signal(0);return r.mount(()=>Ne(async()=>{await He(1e3/t);let o=s.get()+1;s.set(o>=e.length?0:o)})),e.at(s.get())}),Ur=d`
21
21
  :host {
22
22
  font-family: monospace;
23
23
  white-space: pre;
24
24
  user-select: none;
25
25
  }
26
- `;var b=20,tt=10,et=4,qn=h(b,["|","/","-","\\"]),Bn=h(b,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),Vn=h(b,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),In=h(b,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Wn=h(b,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Fn=h(b,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),Xn=h(b,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),Yn=h(b,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),Zn=h(b,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),Jn=h(et,["\u{1F6B6}","\u{1F3C3}"]),Kn=h(tt,["\u25F7","\u25F6","\u25F5","\u25F4"]),Qn=h(b,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),Gn=h(b,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),ta=h(tt,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),ea=h(tt,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),ra=h(tt,[" "," ",". ",".. ","..."," .."," ."]),sa=h(b,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),oa=h(b,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),ia=h(b,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),na=h(b,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),aa=h(b,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),la=h(b,["000","100","110","111","011","001"]),ca=h(b,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),pa=h(b,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),ha=h(et,["\u{1F539}","\u{1F535}"]),ua=h(tt,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),da=h(b,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),ma=h(b,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),Ur=h(et,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),fa=h(et,["\u{1F513}","\u{1F512}"]),ga=h(et,["\u{1F505}","\u{1F506}"]),ba=h(et,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),ya=h(tt,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var Dr=g(r=>t=>(r.name("error"),r.styles(W,Lr),typeof t=="string"?t:t instanceof Error?f`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),Lr=m`
26
+ `;var y=20,rt=10,st=4,Vn=h(y,["|","/","-","\\"]),In=h(y,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),Wn=h(y,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),Fn=h(y,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Xn=h(y,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Yn=h(y,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),Zn=h(y,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),Jn=h(y,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),Kn=h(y,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),Qn=h(st,["\u{1F6B6}","\u{1F3C3}"]),Gn=h(rt,["\u25F7","\u25F6","\u25F5","\u25F4"]),ta=h(y,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),ea=h(y,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),ra=h(rt,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),sa=h(rt,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),oa=h(rt,[" "," ",". ",".. ","..."," .."," ."]),ia=h(y,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),na=h(y,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),aa=h(y,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),la=h(y,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),ca=h(y,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),pa=h(y,["000","100","110","111","011","001"]),ha=h(y,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),ua=h(y,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),da=h(st,["\u{1F539}","\u{1F535}"]),ma=h(rt,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),fa=h(y,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),ga=h(y,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),jr=h(st,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),ba=h(st,["\u{1F513}","\u{1F512}"]),ya=h(st,["\u{1F505}","\u{1F506}"]),va=h(st,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),xa=h(rt,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var Lr=b(r=>t=>(r.name("error"),r.styles(X,qr),typeof t=="string"?t:t instanceof Error?m`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),qr=d`
27
27
  :host {
28
28
  font-family: monospace;
29
29
  color: red;
30
30
  }
31
- `;function Ir(r,t){return t.transmute((...e)=>[r,...e])}function Ge(r){return Rt(r).map(t=>t.view)}function tr(r,t){return Rt(t).map(e=>class extends e{context=r;static view=Ir(r,super.view)})}var er=m`@layer view {
31
+ `;function Fr(r,t){return t.transmute((...e)=>[r,...e])}function tr(r){return Rt(r).map(t=>t.view)}function er(r,t){return Rt(t).map(e=>class extends e{context=r;static view=Fr(r,super.view)})}var rr=d`@layer view {
32
+
33
+ :host {
34
+ opacity: 0.8;
35
+ display: inline-flex;
36
+ width: max-content;
37
+ height: max-content;
38
+
39
+ --padding: 0.3em;
40
+ border-radius: 0.2em;
41
+ border: 0.1em solid currentColor;
42
+
43
+ cursor: pointer;
44
+ background: transparent;
45
+ user-select: none;
46
+ }
47
+
48
+ :host(:not([disabled]):is(:hover, :focus-visible)) { opacity: 1; }
49
+ :host(:not([disabled]):active) { opacity: 0.6; }
50
+
51
+ :host([disabled]) {
52
+ cursor: default;
53
+ color: var(--lame);
54
+ }
55
+
56
+ :host([hidden]) {
57
+ display: none !important;
58
+ }
59
+
60
+ :host([lame]) { color: var(--lame); }
61
+ :host([angry]) { color: var(--angry); }
62
+ :host([zesty]) { color: var(--zesty); }
63
+ :host([happy]) { color: var(--happy); }
64
+ :host([calm]) { color: var(--calm); }
65
+ :host([sad]) { color: var(--sad); }
66
+ :host([quirky]) { color: var(--quirky); }
67
+
68
+ button {
69
+ background: transparent;
70
+ border: none;
71
+
72
+ font: inherit;
73
+ color: inherit;
74
+ cursor: inherit;
75
+ outline: inherit;
76
+ text-shadow: inherit;
77
+
78
+ display: inline-flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+
82
+ width: 100%;
83
+ height: 100%;
84
+ padding: var(--padding);
85
+ }
86
+
87
+ slot {
88
+ display: contents;
89
+ }
90
+
91
+ }`;var A=d`
92
+
93
+ @layer reset, underlay, view, overlay;
94
+
95
+ ${X}
96
+
97
+ @layer overlay {
98
+ [hidden] { display: none !important; }
99
+ }
100
+
101
+ `;var S=class extends M{context};var Kt=class extends b(t=>e=>{t.name("shiny-button"),t.styles(A,e.theme,rr);let s=t.attrs.spec({disabled:Boolean,hidden:Boolean});return m`
102
+ <button
103
+ part=button
104
+ ?disabled="${s.disabled}"
105
+ ?hidden="${s.hidden}">
106
+ <slot></slot>
107
+ </button>
108
+ `}).component(S).props(t=>[t.context]){};var sr=d`@layer view {
32
109
 
33
110
  button {
34
111
  background: transparent;
@@ -70,21 +147,11 @@ svg {
70
147
  height: 1em;
71
148
  }
72
149
 
73
- }`;var A=m`
74
-
75
- @layer reset, underlay, view, overlay;
76
-
77
- ${W}
78
-
79
- @layer overlay {
80
- [hidden] { display: none !important; }
81
- }
82
-
83
- `;var k=class extends z{context};var ye=_`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-clipboard"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /></svg>`;var rr=_`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon icon-tabler icons-tabler-filled icon-tabler-clipboard-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17.997 4.17a3 3 0 0 1 2.003 2.83v12a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 2.003 -2.83a4 4 0 0 0 3.997 3.83h4a4 4 0 0 0 3.98 -3.597zm-7.29 7.123a1 1 0 0 0 -1.414 0l-.083 .094a1 1 0 0 0 .083 1.32l1.292 1.293l-1.292 1.293a1 1 0 0 0 0 1.414l.094 .083a1 1 0 0 0 1.32 -.083l1.293 -1.293l1.293 1.293a1 1 0 0 0 1.414 0l.083 -.094a1 1 0 0 0 -.083 -1.32l-1.293 -1.293l1.293 -1.293a1 1 0 0 0 0 -1.414l-.094 -.083a1 1 0 0 0 -1.32 .083l-1.293 1.292zm3.293 -9.293a2 2 0 1 1 0 4h-4a2 2 0 1 1 0 -4z" /></svg>`;var sr=_`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon icon-tabler icons-tabler-filled icon-tabler-clipboard-check"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17.997 4.17a3 3 0 0 1 2.003 2.83v12a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 2.003 -2.83a4 4 0 0 0 3.997 3.83h4a4 4 0 0 0 3.98 -3.597zm-3.704 7.123l-3.293 3.292l-1.293 -1.292a1 1 0 1 0 -1.414 1.414l2 2a1 1 0 0 0 1.414 0l4 -4a1 1 0 0 0 -1.414 -1.414m-.293 -9.293a2 2 0 1 1 0 4h-4a2 2 0 1 1 0 -4z" /></svg>`;var Jt=class extends g(t=>(e,s,o=1e3)=>{t.name("shiny-copy"),t.styles(A,e.theme,er);let i=()=>s===void 0?"invalid":"neutral",n=t.signal(i()),l=t.once(()=>P(o,()=>n.set(i()))),a=t.once(()=>async c=>{await n.set(c),await l()});async function u(){if(s!==void 0)try{await navigator.clipboard.writeText(s),await a("good")}catch(c){console.error(c),await a("bad")}}let d=(()=>{switch(n.get()){case"neutral":return ye;case"invalid":return ye;case"good":return sr;case"bad":return rr;default:throw new Error("invalid copy status")}})();return f`
150
+ }`;var ve=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-clipboard"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /></svg>`;var or=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon icon-tabler icons-tabler-filled icon-tabler-clipboard-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17.997 4.17a3 3 0 0 1 2.003 2.83v12a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 2.003 -2.83a4 4 0 0 0 3.997 3.83h4a4 4 0 0 0 3.98 -3.597zm-7.29 7.123a1 1 0 0 0 -1.414 0l-.083 .094a1 1 0 0 0 .083 1.32l1.292 1.293l-1.292 1.293a1 1 0 0 0 0 1.414l.094 .083a1 1 0 0 0 1.32 -.083l1.293 -1.293l1.293 1.293a1 1 0 0 0 1.414 0l.083 -.094a1 1 0 0 0 -.083 -1.32l-1.293 -1.293l1.293 -1.293a1 1 0 0 0 0 -1.414l-.094 -.083a1 1 0 0 0 -1.32 .083l-1.293 1.292zm3.293 -9.293a2 2 0 1 1 0 4h-4a2 2 0 1 1 0 -4z" /></svg>`;var ir=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon icon-tabler icons-tabler-filled icon-tabler-clipboard-check"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17.997 4.17a3 3 0 0 1 2.003 2.83v12a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 2.003 -2.83a4 4 0 0 0 3.997 3.83h4a4 4 0 0 0 3.98 -3.597zm-3.704 7.123l-3.293 3.292l-1.293 -1.292a1 1 0 1 0 -1.414 1.414l2 2a1 1 0 0 0 1.414 0l4 -4a1 1 0 0 0 -1.414 -1.414m-.293 -9.293a2 2 0 1 1 0 4h-4a2 2 0 1 1 0 -4z" /></svg>`;var Qt=class extends b(t=>(e,s,o=1e3)=>{t.name("shiny-copy"),t.styles(A,e.theme,sr);let i=()=>s===void 0?"invalid":"neutral",n=t.signal(i()),c=t.once(()=>P(o,()=>n.set(i()))),a=t.once(()=>async l=>{await n.set(l),await c()});async function u(){if(s!==void 0)try{await navigator.clipboard.writeText(s),await a("good")}catch(l){console.error(l),await a("bad")}}let g=(()=>{switch(n.get()){case"neutral":return ve;case"invalid":return ve;case"good":return ir;case"bad":return or;default:throw new Error("invalid copy status")}})();return m`
84
151
  <button data-status="${n.get()}" @click="${u}">
85
- ${d}
152
+ ${g}
86
153
  </button>
87
- `}).component(class extends k{#t=p.attrs(this).spec({text:String,ms:Number});get text(){return this.#t.text}set text(t){this.#t.text=t}get ms(){return this.#t.ms}set ms(t){this.#t.ms=t}}).props(t=>[t.context,t.text,t.ms]){};var or=m`@layer view {
154
+ `}).component(class extends S{#t=p.attrs(this).spec({text:String,ms:Number});get text(){return this.#t.text}set text(t){this.#t.text=t}get ms(){return this.#t.ms}set ms(t){this.#t.ms=t}}).props(t=>[t.context,t.text,t.ms]){};var nr=d`@layer view {
88
155
 
89
156
  :host {
90
157
  display: block;
@@ -200,7 +267,7 @@ ${W}
200
267
  }
201
268
  }
202
269
 
203
- }`;var yt=class{$open=w(!1);constructor(t=!1){t&&this.$open.set(!0)}get isOpen(){return this.$open.get()}async setOpen(t){return this.$open.set(t)}open=async()=>{await this.setOpen(!0)};close=async()=>{await this.setOpen(!1)};toggle=async()=>this.setOpen(!this.isOpen)};var Kt=class{#t;constructor(t){this.#t=t.attachInternals().states}assign(...t){this.#t.forEach(e=>this.#t.delete(e));for(let e of t)this.#t.add(e);return this}};var ir=_`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>`;var nr=_`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-menu-2"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6l16 0" /><path d="M4 12l16 0" /><path d="M4 18l16 0" /></svg>`;var Qt=class extends g(t=>(e,s)=>{t.name("shiny-drawer"),t.styles(A,e.theme,or);let o=t.once(()=>new Kt(t.element)),i=s.side??"left",n=t.once(()=>s.control??new yt);return o.assign(i),t.mount(()=>p.events(window,{keydown:l=>{l.code==="Escape"&&n.close()}})),p.attrs(t.element).booleans.open=n.isOpen,f`
270
+ }`;var vt=class{$open=x(!1);constructor(t=!1){t&&this.$open.set(!0)}get isOpen(){return this.$open.get()}async setOpen(t){return this.$open.set(t)}open=async()=>{await this.setOpen(!0)};close=async()=>{await this.setOpen(!1)};toggle=async()=>this.setOpen(!this.isOpen)};var Gt=class{#t;constructor(t){this.#t=t.attachInternals().states}assign(...t){this.#t.forEach(e=>this.#t.delete(e));for(let e of t)this.#t.add(e);return this}};var ar=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>`;var lr=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-menu-2"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6l16 0" /><path d="M4 12l16 0" /><path d="M4 18l16 0" /></svg>`;var te=class extends b(t=>(e,s)=>{t.name("shiny-drawer"),t.styles(A,e.theme,nr);let o=t.once(()=>new Gt(t.element)),i=s.side??"left",n=t.once(()=>s.control??new vt);return o.assign(i),t.mount(()=>p.events(window,{keydown:c=>{c.code==="Escape"&&n.close()}})),p.attrs(t.element).booleans.open=n.isOpen,m`
204
271
  <div class=shell ?data-open="${n.isOpen}" data-side="${i}">
205
272
  <slot name=plate ?inert="${n.isOpen}"></slot>
206
273
 
@@ -210,15 +277,15 @@ ${W}
210
277
  <div part=tray>
211
278
  <slot ?inert="${!n.isOpen}"></slot>
212
279
 
213
- ${s.button?f`
280
+ ${s.button?m`
214
281
  <button @click="${n.toggle}">
215
- ${n.isOpen?f`
282
+ ${n.isOpen?m`
216
283
  <slot name=button-x>
217
- ${ir}
284
+ ${ar}
218
285
  </slot>
219
- `:f`
286
+ `:m`
220
287
  <slot name=button>
221
- ${nr}
288
+ ${lr}
222
289
  </slot>
223
290
  `}
224
291
  </button>
@@ -226,29 +293,112 @@ ${W}
226
293
  </div>
227
294
  </div>
228
295
  </div>
229
- `}).component(class extends k{#t=p.attrs(this).spec({open:Boolean,button:Boolean,side:String});get button(){return this.#t.button}set button(t){this.#t.button=t}get side(){return this.#t.side==="right"?"right":"left"}set side(t){this.#t.side=t}control=new yt(this.#t.open);get isOpen(){return this.control.isOpen}get toggle(){return this.control.toggle}get open(){return this.control.open}get close(){return this.control.close}}).props(t=>[t.context,{control:t.control,button:t.button,side:t.side}]){};var ar=m`@layer view {
296
+ `}).component(class extends S{#t=p.attrs(this).spec({open:Boolean,button:Boolean,side:String});get button(){return this.#t.button}set button(t){this.#t.button=t}get side(){return this.#t.side==="right"?"right":"left"}set side(t){this.#t.side=t}control=new vt(this.#t.open);get isOpen(){return this.control.isOpen}get toggle(){return this.control.toggle}get open(){return this.control.open}get close(){return this.control.close}}).props(t=>[t.context,{control:t.control,button:t.button,side:t.side}]){};var cr=d`@layer view {
230
297
 
231
298
  button {
232
299
  padding: 1em;
233
300
  min-width: 4em;
234
301
  }
235
302
 
236
- }`;var Gt=class extends g(t=>(e,s)=>{t.name("shiny-example"),t.styles(A,e.theme,ar);let o=t.signal(s);return f`
303
+ }`;var ee=class extends b(t=>(e,s)=>{t.name("shiny-example"),t.styles(A,e.theme,cr);let o=t.signal(s);return m`
237
304
  <button @click="${()=>{o.value++}}">
238
305
  ${o()}
239
306
  </button>
240
- `}).component(class extends k{attrs=p.attrs(this).spec({start:Number})}).props(t=>[t.context,t.attrs.start??1]){};var lr=m`@layer view {
307
+ `}).component(class extends S{attrs=p.attrs(this).spec({start:Number})}).props(t=>[t.context,t.attrs.start??1]){};var pr=d`@layer view {
308
+
309
+ :host {
310
+ display: inline-flex;
311
+ flex-direction: column;
312
+ }
313
+
314
+ slot[part="tabs"] {
315
+ display: flex;
316
+
317
+ &::slotted(*) {
318
+ border-radius: 0.3em;
319
+ }
241
320
 
242
- }`;var q=class{length=1;$index=w(0);constructor(t=0){this.$index.value=t}#t(t){return t=Math.min(t,this.length-1),t=Math.max(t,0),t}get index(){return this.#t(this.$index.get())}async setIndex(t){return this.$index.set(t)}async shimmy(t){let e=this.#t(this.index+t);return this.setIndex(e)}};var te=class extends g(t=>(e,s)=>{t.name("shiny-tabs"),t.styles(A,e.theme,lr);let o=t.attrs.spec({index:Number}),i=t.once(()=>s??new q(o.index??0)),n=t.signal([]),l=t.signal([]);async function a(d){let c=d.currentTarget;await n.set(c.assignedElements())}async function u(d){let c=d.currentTarget;await l.set(c.assignedElements())}o.index=i.$index(),i.length=n().length;for(let[d,c]of n().entries()){let y=d===i.index;p.attrs(c).booleans.active=y,p.attrs(c).booleans.disabled=y,c.onclick=()=>i.setIndex(d)}for(let[d,c]of l().entries()){let y=d===i.index;p.attrs(c).booleans.active=y,p.attrs(c).booleans.hidden=!y}return f`
321
+ &::slotted([data-active]) {
322
+ opacity: 1;
323
+ color: currentColor;
324
+ text-decoration: underline;
325
+ }
326
+
327
+ &::slotted(:not([data-last], [data-next-is-active])) {
328
+ border-right: none;
329
+ }
330
+
331
+ &::slotted([data-active]:not([data-first])) {
332
+ border-left: none;
333
+ }
334
+
335
+ &::slotted(:not([data-last])) {
336
+ border-top-right-radius: 0;
337
+ border-bottom-right-radius: 0;
338
+ }
339
+
340
+ &::slotted(:not([data-first])) {
341
+ border-top-left-radius: 0;
342
+ border-bottom-left-radius: 0;
343
+ }
344
+ }
345
+
346
+ } `;var V=class{length=1;$index=x(0);constructor(t=0){this.$index.value=t}clamp(t){return t=Math.min(t,this.length-1),t=Math.max(t,0),t}get index(){return this.clamp(this.$index.get())}async setIndex(t){return this.$index.set(t)}async shimmy(t){let e=this.clamp(this.index+t);return this.setIndex(e)}};var re=class extends b(t=>(e,s)=>{t.name("shiny-tabs"),t.styles(A,e.theme,pr);let o=t.attrs.spec({index:Number}),i=t.once(()=>s??new V(o.index??0)),n=t.signal([]),c=t.signal([]);async function a(l){let f=l.currentTarget;await n.set(f.assignedElements())}async function u(l){let f=l.currentTarget;await c.set(f.assignedElements())}o.index=i.$index(),i.length=n().length;function g(l,f){let w=i.clamp(l+f);return w===l?!1:w===i.index}for(let[l,f]of n().entries()){let w=l===i.index,C=p.attrs(f);C.booleans.disabled=w,C.booleans["data-active"]=w,C.booleans["data-first"]=l===0,C.booleans["data-last"]=l===i.length-1,C.booleans["data-next-is-active"]=g(l,1),C.booleans["data-previous-is-active"]=g(l,-1),f.onclick=()=>i.setIndex(l)}for(let[l,f]of c().entries()){let w=l===i.index;p.attrs(f).booleans.active=w,p.attrs(f).booleans.hidden=!w}return m`
243
347
  <slot part=tabs @slotchange="${a}"></slot>
244
348
  <slot part=panels name=panel @slotchange="${u}"></slot>
245
- `}).component(class extends k{control=new q;get index(){return this.control.index}get length(){return this.control.length}setIndex=this.control.setIndex.bind(this.control);shimmy=this.control.shimmy.bind(this.control)}).props(t=>[t.context,t.control]){};var cr={ShinyCopy:Jt,ShinyDrawer:Qt,ShinyExample:Gt,ShinyTabs:te};function ee(r){let t=tr(r,cr),e=Ge(t);return{components:t,views:e}}function re(){return{bg:"#111",alpha:"#afa",happy:"#0fa",sad:"#74f",angry:"#f50",lame:"#8888","inactive-opacity":"0.5"}}function se(r){return $t(Object.entries(r).map(([t,e])=>`--${t}: var(--shiny-${t}, ${e});`).join(`
246
- `))}var pr=m`@layer overlay {
349
+ `}).component(class extends S{control=new V;get index(){return this.control.index}get length(){return this.control.length}setIndex=this.control.setIndex.bind(this.control);shimmy=this.control.shimmy.bind(this.control)}).props(t=>[t.context,t.control]){};var hr={ShinyButton:Kt,ShinyCopy:Qt,ShinyDrawer:te,ShinyExample:ee,ShinyTabs:re};function se(r){let t=er(r,hr),e=tr(t);return{components:t,views:e}}function oe(){return{bg:"#111",alpha:"#def","inactive-opacity":"0.5",lame:"#8888",angry:"#f50",zesty:"#cf0",happy:"#0fa",calm:"#0af",sad:"#74f",quirky:"#f49"}}function ie(r){return _t(Object.entries(r).map(([t,e])=>`--${t}: var(--shiny-${t}, ${e});`).join(`
350
+ `))}var ur=d`@layer overlay {
247
351
 
248
352
  :host {
249
- display: block;
353
+ ${ie({...oe()})}
354
+ }
355
+
356
+ :host([view="shiny-button"]:not([plain])) {
357
+ position: relative;
358
+
359
+ --buttoncolor: var(--calm);
360
+ --padding: 0.3em 0.7em;
361
+
362
+ color: white;
363
+ border-radius: 2em;
364
+ background: var(--buttoncolor);
365
+ border: none;
250
366
 
251
- ${se({...re()})}
367
+ font-weight: medium;
368
+ text-shadow: 0.1em 0.1em 0.1em #0004;
369
+ box-shadow: 0.1em 0.2em 0.3em #0002;
370
+ }
371
+
372
+ :host([view="shiny-button"][lame]) { --buttoncolor: var(--lame); }
373
+ :host([view="shiny-button"][angry]) { --buttoncolor: var(--angry); }
374
+ :host([view="shiny-button"][zesty]) { --buttoncolor: var(--zesty); }
375
+ :host([view="shiny-button"][happy]) { --buttoncolor: var(--happy); }
376
+ :host([view="shiny-button"][calm]) { --buttoncolor: var(--calm); }
377
+ :host([view="shiny-button"][sad]) { --buttoncolor: var(--sad); }
378
+ :host([view="shiny-button"][quirky]) { --buttoncolor: var(--quirky); }
379
+
380
+ :host([view="shiny-button"][gradient]:not([plain])) {
381
+ border: none;
382
+ background: linear-gradient(
383
+ to bottom right,
384
+ color-mix(in oklab, var(--buttoncolor), white 40%),
385
+ color-mix(in oklab, var(--buttoncolor), black 20%)
386
+ );
387
+
388
+ &::before {
389
+ content: "";
390
+ display: block;
391
+ position: absolute;
392
+ z-index: 0;
393
+ inset: 0.15em;
394
+ border-radius: inherit;
395
+ background: color-mix(in oklab, var(--buttoncolor), #0004 50%);
396
+ }
397
+
398
+ > * {
399
+ position: relative;
400
+ z-index: 1;
401
+ }
252
402
  }
253
403
 
254
404
  :host([view="shiny-drawer"]) {
@@ -276,22 +426,13 @@ button {
276
426
  }
277
427
  }
278
428
 
279
- :host([view="shiny-tabs"]) {
280
- display: block;
281
-
282
- &::part(tabs) {
283
- display: flex;
284
- }
285
- }
286
-
287
- }`;var rt=ee({theme:pr}).views;var hr=m`@layer overlay {
429
+ }`;var N=se({theme:ur}).views;var dr=d`@layer overlay {
288
430
 
289
431
  :host {
290
- display: block;
291
- ${se(re())}
432
+ ${ie(oe())}
292
433
  }
293
434
 
294
- }`;var ur=()=>new Ot(()=>["lorem kettlebell dolor sit amet, mountain squats consectetur trail-running. adipiscing deadlift elit, sed do 45lb turkish get-up eiusmod tempor incididunt ut hike magna aliqua. ut enim ad minim clean & press, quis nostrud exercitation lunges ullamco kettlebell snatch trailhead nisi ut aliquip ex dolore summit irure dolor.","lorem protein dolor sit amet, creatine scoop elit shaker bottle tempor. grilled steak magna keto-fasting culpa, carb-loading perspiciatis cheat day. whey isolate dolor sit macros elit, intermittent fasting tempor electrolyte magna; barefoot shoes culpa, liver perspiciatis ancestral squat rack gospel. lorem bulking dolor sit cut elit, tdee tracker tempor calorie deficit magna; chicken breast culpa gatorade perspiciatis meal prep.","lorem caffeine dolor sit amet, double espresso elit cold brew tempor jitter. adderall magna focus culpa, lion\u2019s mane perspiciatis nootropic. nicotine gum dolor sit vape elit, dopamine hit tempor buzz magna; lsd microdosing culpa, productivity perspiciatis agile sprint. lorem latte dolor sit drip elit, french press tempor aeropress magna; insomnia culpa, circadian rhythm perspiciatis blue light filter.","lorem arch dolor sit amet, pacman -Syu elit rolling release tempor breakage. i3-gaps commodo tiling, bspwm magna culpa xinitrc. alias neovim configs in .dotfiles forest, r/unixporn veniam rice showcase perspiciatis.","lorem authlocal dolor sit amet, user-sovereign identity elit, cryptographic tempor signatures. ed25519 magna keypair culpa, elliptic perspiciatis handshake ut zero-knowledge proof. decentralized login elit mnemonic seed tempor recovery phrase. DID magna alias culpa federation, lorem oauth2 perspiciatis antiquated.","lorem webgpu dolor sit amet, fragment shader elit vertex buffer tempor pipeline; bindgroup magna sampler culpa, wgsl perspiciatis alignment bug. compute pass workgroup barrier magna, mipmap cascade culpa drawcall instancing overflow. spir-v dolor sit wasm elit, canvas context lost magna; fallback webgl2 perspiciatis, polyfill slowpath dolore, glsl antique culpa extension hell 144hz tearing. command encoder perspiciatis out-of-memory, chromium nightly.","lorem sedentary dolor sit amet, infinite scroll elit chair-bound tempor. commit marathon magna carpal tunnel culpa, caffeine perspiciatis heartbeat irregular. lorem backlog dolor sit ticket elit, jira sprint tempor sedentary slump magna; gym membership culpa expired, standing desk perspiciatis unused. lorem procrastination dolor sit youtube elit, keyboard crumbs tempor pizza box magna; cardio avoidant culpa, hike someday perspiciatis maybe."]);var dr=m`@layer view {
435
+ }`;var mr=()=>new Ot(()=>["lorem kettlebell dolor sit amet, mountain squats consectetur trail-running. adipiscing deadlift elit, sed do 45lb turkish get-up eiusmod tempor incididunt ut hike magna aliqua. ut enim ad minim clean & press, quis nostrud exercitation lunges ullamco kettlebell snatch trailhead nisi ut aliquip ex dolore summit irure dolor.","lorem protein dolor sit amet, creatine scoop elit shaker bottle tempor. grilled steak magna keto-fasting culpa, carb-loading perspiciatis cheat day. whey isolate dolor sit macros elit, intermittent fasting tempor electrolyte magna; barefoot shoes culpa, liver perspiciatis ancestral squat rack gospel. lorem bulking dolor sit cut elit, tdee tracker tempor calorie deficit magna; chicken breast culpa gatorade perspiciatis meal prep.","lorem caffeine dolor sit amet, double espresso elit cold brew tempor jitter. adderall magna focus culpa, lion\u2019s mane perspiciatis nootropic. nicotine gum dolor sit vape elit, dopamine hit tempor buzz magna; lsd microdosing culpa, productivity perspiciatis agile sprint. lorem latte dolor sit drip elit, french press tempor aeropress magna; insomnia culpa, circadian rhythm perspiciatis blue light filter.","lorem arch dolor sit amet, pacman -Syu elit rolling release tempor breakage. i3-gaps commodo tiling, bspwm magna culpa xinitrc. alias neovim configs in .dotfiles forest, r/unixporn veniam rice showcase perspiciatis.","lorem authlocal dolor sit amet, user-sovereign identity elit, cryptographic tempor signatures. ed25519 magna keypair culpa, elliptic perspiciatis handshake ut zero-knowledge proof. decentralized login elit mnemonic seed tempor recovery phrase. DID magna alias culpa federation, lorem oauth2 perspiciatis antiquated.","lorem webgpu dolor sit amet, fragment shader elit vertex buffer tempor pipeline; bindgroup magna sampler culpa, wgsl perspiciatis alignment bug. compute pass workgroup barrier magna, mipmap cascade culpa drawcall instancing overflow. spir-v dolor sit wasm elit, canvas context lost magna; fallback webgl2 perspiciatis, polyfill slowpath dolore, glsl antique culpa extension hell 144hz tearing. command encoder perspiciatis out-of-memory, chromium nightly.","lorem sedentary dolor sit amet, infinite scroll elit chair-bound tempor. commit marathon magna carpal tunnel culpa, caffeine perspiciatis heartbeat irregular. lorem backlog dolor sit ticket elit, jira sprint tempor sedentary slump magna; gym membership culpa expired, standing desk perspiciatis unused. lorem procrastination dolor sit youtube elit, keyboard crumbs tempor pizza box magna; cardio avoidant culpa, hike someday perspiciatis maybe."]);var fr=d`@layer view {
295
436
 
296
437
  :host {
297
438
  position: relative;
@@ -344,6 +485,14 @@ p.lipsum {
344
485
  color: var(--prime);
345
486
  }
346
487
 
488
+ [view="shiny-tabs"] {
489
+ gap: 0.5em;
490
+ &::part(tabs) {
491
+ font-size: 0.8em;
492
+ opacity: 0.8;
493
+ }
494
+ }
495
+
347
496
  .codes {
348
497
  display: flex;
349
498
  flex-direction: column;
@@ -403,22 +552,20 @@ p.lipsum {
403
552
  border: 1px dashed #fff4;
404
553
  }
405
554
 
406
- }`;var oe=g(r=>t=>{r.name(t.name),r.styles(A,dr,t.style);function e(s,o){let i=De(o).trim();return f`
555
+ }`;var xt=b(r=>t=>{r.name(`demo-${t.name}`),r.styles(A,fr,t.style);function e(s,o){let i=De(o).trim();return m`
407
556
  <div class=codeblock slot=panel>
408
557
  <div class=zone>
409
558
  <h3>${s}</h3>
410
559
  <code>${i}</code>
411
560
  </div>
412
- ${rt.ShinyCopy(i)}
561
+ ${N.ShinyCopy(i)}
413
562
  </div>
414
- `}return f`
563
+ `}return m`
415
564
  <div class=meta>
416
- <h2>✨ ${t.name}</h2>
565
+ <h2>✨ shiny-${t.name}</h2>
417
566
  <div class=explain>${t.explain}</div>
418
- ${rt.ShinyTabs.props().children(f`
419
- ${t.snippets.map(([s])=>f`
420
- <button>${s.button}</button>
421
- `)}
567
+ ${N.ShinyTabs.props().children(m`
568
+ ${t.snippets.map(([s])=>N.ShinyButton.props().attr("plain",!0).children(s.button).render())}
422
569
  ${t.snippets.map(([s,o])=>e(s.text,o))}
423
570
  `).render()}
424
571
  </div>
@@ -426,7 +573,7 @@ p.lipsum {
426
573
  <div class=content part=content>
427
574
  ${t.content}
428
575
  </div>
429
- `});var mr=[{label:"aura",views:rt},{label:"plain",views:ee({theme:hr}).views}],C={html:{button:"html",text:"html web component"},view:{button:"view",text:"sly view"},css:{button:"css",text:"custom css"}},fr=ur(),st=()=>fr.takeFirst();p.register({ShinyDemo:g.component(r=>{r.styles(m`
576
+ `});var gr=[{label:"aura",views:N},{label:"plain",views:se({theme:dr}).views}],k={html:{button:"html",text:"html web component"},view:{button:"view",text:"sly view"},css:{button:"css",text:"custom css"}},br=mr(),ot=()=>br.takeFirst();p.register({ShinyDemo:b.component(r=>{r.styles(d`
430
577
  :host {
431
578
  display: flex;
432
579
  flex-direction: column;
@@ -445,17 +592,89 @@ p.lipsum {
445
592
  font-style: italic;
446
593
  }
447
594
 
448
- [view="shiny-tabs"] {
595
+ [view="demo-tabs"] {
449
596
  display: flex;
450
597
  }
451
598
  }
452
- `);let t=r.once(()=>new q(0)),s=r.derived(()=>mr.at(t.$index()))().views;fr.takeAll();let o=[oe({name:"shiny-copy",explain:f`
599
+ `);let t=r.once(()=>new V(0)),s=r.derived(()=>gr.at(t.$index()))().views;br.takeAll();let o=[xt({name:"button",explain:m`
600
+ <p>clicky-clacky pressy button.</p>
601
+ `,snippets:[[k.html,`
602
+ <shiny-button>hello</shiny-button>
603
+ `],[k.view,`
604
+ ShinyButton
605
+ .props()
606
+ .children("hello")
607
+ .render()
608
+ `],[k.css,`
609
+ shiny-button {
610
+ font-size: 1em;
611
+ --happy: #0fa;
612
+ --angry: #f50;
613
+ --lame: #8888;
614
+ --inactive-opacity: 0.5;
615
+ }
616
+ `]],content:[s.ShinyButton.props().children("button").render(),s.ShinyButton.props().attr("gradient",!0).children("gradient").render(),s.ShinyButton.props().attr("angry",!0).attr("gradient",!0).children("angry").render(),s.ShinyButton.props().attr("happy",!0).attr("gradient",!0).children("happy").render(),s.ShinyButton.props().attr("zesty",!0).attr("gradient",!0).children("zesty").render(),s.ShinyButton.props().attr("sad",!0).attr("gradient",!0).children("sad").render(),s.ShinyButton.props().attr("quirky",!0).attr("gradient",!0).children("quirky").render(),s.ShinyButton.props().attr("plain",!0).children("plain").render()],style:d`
617
+ .content {
618
+ flex-direction: row;
619
+ flex-wrap: wrap;
620
+ align-content: center;
621
+ gap: 0.5em;
622
+
623
+ sly-view {
624
+ font-size: 1.2em;
625
+ }
626
+ }
627
+ `}),xt({name:"tabs",explain:m`
628
+ <p>button bar. panels optional.</p>
629
+ `,snippets:[[k.html,`
630
+ <shiny-tabs>
631
+ <shiny-button>tab1</shiny-button>
632
+ <shiny-button>tab2</shiny-button>
633
+ <shiny-button>tab3</shiny-button>
634
+ <div slot=panel>panel1</div>
635
+ <div slot=panel>panel2</div>
636
+ <div slot=panel>panel3</div>
637
+ </shiny-tabs>
638
+ `],[k.view,`
639
+ ShinyTabs
640
+ .props()
641
+ .children(html\`
642
+ \${ShinyButton.props()
643
+ .children("tab1").render()}
644
+ \${ShinyButton.props()
645
+ .children("tab2").render()}
646
+ \${ShinyButton.props()
647
+ .children("tab3").render()}
648
+ <div slot=panel>panel1</div>
649
+ <div slot=panel>panel2</div>
650
+ <div slot=panel>panel3</div>
651
+ \`)
652
+ .render()
653
+ `],[k.css,`
654
+ shiny-tabs {
655
+ &::part(tabs) {}
656
+ &::part(panels) {}
657
+ > shiny-button {}
658
+ }
659
+ `]],content:s.ShinyTabs.props().children(m`
660
+ ${s.ShinyButton.props().children("tab1").render()}
661
+ ${s.ShinyButton.props().children("tab2").render()}
662
+ ${s.ShinyButton.props().children("tab3").render()}
663
+ <p slot=panel class=lipsum>${ot()}</p>
664
+ <p slot=panel class=lipsum>${ot()}</p>
665
+ <p slot=panel class=lipsum>${ot()}</p>
666
+ `).render(),style:d`
667
+ .content {
668
+ justify-content: start;
669
+ p { margin-top: 0.5em; }
670
+ }
671
+ `}),xt({name:"copy",explain:m`
453
672
  <p>click-to-copy text button.</p>
454
- `,snippets:[[C.html,`
673
+ `,snippets:[[k.html,`
455
674
  <shiny-copy text="hello world"></shiny-copy>
456
- `],[C.view,`
675
+ `],[k.view,`
457
676
  ShinyCopy("hello world")
458
- `],[C.css,`
677
+ `],[k.css,`
459
678
  shiny-copy {
460
679
  font-size: 1em;
461
680
  --happy: #0fa;
@@ -463,20 +682,20 @@ p.lipsum {
463
682
  --lame: #8888;
464
683
  --inactive-opacity: 0.5;
465
684
  }
466
- `]],content:s.ShinyCopy("hello world"),style:m`
685
+ `]],content:s.ShinyCopy("hello world"),style:d`
467
686
  .content sly-view {
468
687
  font-size: 4em;
469
688
  }
470
- `}),oe({name:"shiny-drawer",explain:f`
689
+ `}),xt({name:"drawer",explain:m`
471
690
  <p>slide-out panel. button optional.</p>
472
- `,snippets:[[C.html,`
691
+ `,snippets:[[k.html,`
473
692
  <shiny-drawer button side=left>
474
693
  <header>example</header>
475
694
  <section slot=plate>
476
695
  lorem kettlebell..
477
696
  </section>
478
697
  </shiny-drawer>
479
- `],[C.view,`
698
+ `],[k.view,`
480
699
  ShinyDrawer
481
700
  .props({button: true, side: "left"})
482
701
  .children(html\`
@@ -486,7 +705,7 @@ p.lipsum {
486
705
  </section>
487
706
  \`)
488
707
  .render()
489
- `],[C.css,`
708
+ `],[k.css,`
490
709
  shiny-drawer {
491
710
  --button-size: 2em;
492
711
  --anim-duration: 200ms;
@@ -497,17 +716,17 @@ p.lipsum {
497
716
  var(--bg)
498
717
  );
499
718
  }
500
- `]],content:s.ShinyDrawer.props({button:!0}).children(f`
719
+ `]],content:s.ShinyDrawer.props({button:!0}).children(m`
501
720
  <header>
502
721
  <h2>example drawer</h2>
503
722
  <p>you can put any content in here.</p>
504
- <p class=lipsum>${st()}</p>
723
+ <p class=lipsum>${ot()}</p>
505
724
  </header>
506
725
  <section slot=plate>
507
- <p class=lipsum>${st()}</p>
508
- <p class=lipsum>${st()}</p>
726
+ <p class=lipsum>${ot()}</p>
727
+ <p class=lipsum>${ot()}</p>
509
728
  </section>
510
- `).render(),style:m`
729
+ `).render(),style:d`
511
730
  .content sly-view {
512
731
  border-radius: 0.5em;
513
732
  overflow: hidden;
@@ -527,49 +746,11 @@ p.lipsum {
527
746
  > * + * { margin-top: 0.5em; }
528
747
  }
529
748
  }
530
- `}),oe({name:"shiny-tabs",explain:f`
531
- <p>button bar. panels optional.</p>
532
- `,snippets:[[C.html,`
533
- <shiny-tabs>
534
- <button>tab1</button>
535
- <button>tab2</button>
536
- <button>tab3</button>
537
- <div slot=panel>panel1</div>
538
- <div slot=panel>panel2</div>
539
- <div slot=panel>panel3</div>
540
- </shiny-tabs>
541
- `],[C.view,`
542
- ShinyTabs
543
- .props()
544
- .children(html\`
545
- <button>tab1</button>
546
- <button>tab2</button>
547
- <button>tab3</button>
548
- <div slot=panel>panel1</div>
549
- <div slot=panel>panel2</div>
550
- <div slot=panel>panel3</div>
551
- \`)
552
- .render()
553
- `],[C.css,`
554
- shiny-tabs::part(tabs) {}
555
- shiny-tabs::part(panels) {}
556
- `]],content:s.ShinyTabs.props().children(f`
557
- <button>tab1</button>
558
- <button>tab2</button>
559
- <button>tab3</button>
560
- <p slot=panel class=lipsum>${st()}</p>
561
- <p slot=panel class=lipsum>${st()}</p>
562
- <p slot=panel class=lipsum>${st()}</p>
563
- `).render(),style:m`
564
- .content {
565
- justify-content: start;
566
- p { margin-top: 0.5em; }
567
- }
568
- `})];return f`
749
+ `})];return m`
569
750
  <div class=themes>
570
751
  <span>theme</span>
571
- ${rt.ShinyTabs.props(t).children(mr.map(i=>f`
572
- <button>${i.label}</button>
752
+ ${N.ShinyTabs.props(t).children(gr.map(i=>m`
753
+ ${N.ShinyButton.props().children(i.label).render()}
573
754
  `)).render()}
574
755
  </div>
575
756