godown 3.11.2 → 3.13.0

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 (161) hide show
  1. package/build/godown+lit.iife.js +12 -13
  2. package/build/godown+lit.iife.js.map +1 -1
  3. package/build/godown+lit.js +11 -12
  4. package/build/godown+lit.js.map +1 -1
  5. package/build/godown+lit.umd.js +12 -13
  6. package/build/godown+lit.umd.js.map +1 -1
  7. package/build/godown.iife.js +9 -8
  8. package/build/godown.iife.js.map +1 -0
  9. package/build/godown.js +7 -7
  10. package/build/godown.js.map +1 -1
  11. package/build/godown.umd.js +8 -8
  12. package/build/godown.umd.js.map +1 -1
  13. package/custom-elements.json +1 -1
  14. package/index.d.ts +1 -0
  15. package/index.d.ts.map +1 -1
  16. package/index.js +1 -1
  17. package/internal/global-style.d.ts.map +1 -1
  18. package/internal/global-style.js +1 -1
  19. package/internal/global-style.js.map +1 -1
  20. package/internal/popover.d.ts +3 -0
  21. package/internal/popover.d.ts.map +1 -0
  22. package/internal/popover.js +2 -0
  23. package/internal/popover.js.map +1 -0
  24. package/internal/reset-style.d.ts +3 -0
  25. package/internal/reset-style.d.ts.map +1 -0
  26. package/internal/reset-style.js +2 -0
  27. package/internal/reset-style.js.map +1 -0
  28. package/internal/ring.d.ts +1 -0
  29. package/internal/ring.d.ts.map +1 -1
  30. package/internal/ring.js +1 -1
  31. package/internal/ring.js.map +1 -1
  32. package/internal/super-input.d.ts +1 -4
  33. package/internal/super-input.d.ts.map +1 -1
  34. package/internal/super-input.js +1 -1
  35. package/internal/super-input.js.map +1 -1
  36. package/internal/utils.d.ts +2 -0
  37. package/internal/utils.d.ts.map +1 -0
  38. package/internal/utils.js +2 -0
  39. package/internal/utils.js.map +1 -0
  40. package/package.json +3 -4
  41. package/popover.d.ts +2 -0
  42. package/popover.d.ts.map +1 -0
  43. package/popover.js +2 -0
  44. package/popover.js.map +1 -0
  45. package/src/index.ts +1 -0
  46. package/src/internal/global-style.ts +6 -34
  47. package/src/internal/popover.ts +64 -0
  48. package/src/internal/reset-style.ts +63 -0
  49. package/src/internal/ring.ts +3 -2
  50. package/src/internal/super-input.ts +2 -33
  51. package/src/internal/utils.ts +10 -0
  52. package/src/popover.ts +1 -0
  53. package/src/web-components/alert/component.ts +5 -4
  54. package/src/web-components/avatar/component.ts +1 -0
  55. package/src/web-components/button/component.ts +22 -18
  56. package/src/web-components/card/component.ts +3 -2
  57. package/src/web-components/chip/component.ts +1 -3
  58. package/src/web-components/details/component.ts +28 -17
  59. package/src/web-components/dialog/component.ts +51 -67
  60. package/src/web-components/heading/component.ts +0 -1
  61. package/src/web-components/input/component.ts +38 -30
  62. package/src/web-components/layout/component.ts +1 -0
  63. package/src/web-components/link/component.ts +0 -2
  64. package/src/web-components/popover/component.ts +172 -0
  65. package/src/web-components/popover/definition.ts +11 -0
  66. package/src/web-components/range/component.ts +2 -1
  67. package/src/web-components/rotate/component.ts +0 -1
  68. package/src/web-components/select/component.ts +109 -173
  69. package/src/web-components/split/component.ts +2 -2
  70. package/src/web-components/switch/component.ts +2 -1
  71. package/src/web-components/tabs/component.ts +99 -100
  72. package/src/web-components/text/component.ts +47 -52
  73. package/src/web-components/time/component.ts +5 -15
  74. package/src/web-components/tooltip/component.ts +44 -111
  75. package/vscode.css-custom-data.json +1 -1
  76. package/vscode.html-custom-data.json +1 -1
  77. package/web-components/alert/component.d.ts.map +1 -1
  78. package/web-components/alert/component.js +1 -1
  79. package/web-components/alert/component.js.map +1 -1
  80. package/web-components/avatar/component.d.ts.map +1 -1
  81. package/web-components/avatar/component.js +1 -1
  82. package/web-components/avatar/component.js.map +1 -1
  83. package/web-components/button/component.d.ts.map +1 -1
  84. package/web-components/button/component.js +1 -1
  85. package/web-components/button/component.js.map +1 -1
  86. package/web-components/card/component.d.ts.map +1 -1
  87. package/web-components/card/component.js +1 -1
  88. package/web-components/card/component.js.map +1 -1
  89. package/web-components/chip/component.d.ts +1 -3
  90. package/web-components/chip/component.d.ts.map +1 -1
  91. package/web-components/chip/component.js.map +1 -1
  92. package/web-components/details/component.d.ts +9 -13
  93. package/web-components/details/component.d.ts.map +1 -1
  94. package/web-components/details/component.js +1 -1
  95. package/web-components/details/component.js.map +1 -1
  96. package/web-components/dialog/component.d.ts +12 -14
  97. package/web-components/dialog/component.d.ts.map +1 -1
  98. package/web-components/dialog/component.js +1 -1
  99. package/web-components/dialog/component.js.map +1 -1
  100. package/web-components/heading/component.d.ts.map +1 -1
  101. package/web-components/heading/component.js +1 -1
  102. package/web-components/heading/component.js.map +1 -1
  103. package/web-components/input/component.d.ts +3 -1
  104. package/web-components/input/component.d.ts.map +1 -1
  105. package/web-components/input/component.js +1 -1
  106. package/web-components/input/component.js.map +1 -1
  107. package/web-components/layout/component.d.ts.map +1 -1
  108. package/web-components/layout/component.js +1 -1
  109. package/web-components/layout/component.js.map +1 -1
  110. package/web-components/link/component.d.ts.map +1 -1
  111. package/web-components/link/component.js +1 -1
  112. package/web-components/link/component.js.map +1 -1
  113. package/web-components/popover/component.d.ts +35 -0
  114. package/web-components/popover/component.d.ts.map +1 -0
  115. package/web-components/popover/component.js +2 -0
  116. package/web-components/popover/component.js.map +1 -0
  117. package/web-components/popover/definition.d.ts +8 -0
  118. package/web-components/popover/definition.d.ts.map +1 -0
  119. package/web-components/popover/definition.js +2 -0
  120. package/web-components/popover/definition.js.map +1 -0
  121. package/web-components/range/component.d.ts.map +1 -1
  122. package/web-components/range/component.js +1 -1
  123. package/web-components/range/component.js.map +1 -1
  124. package/web-components/rotate/component.d.ts.map +1 -1
  125. package/web-components/rotate/component.js.map +1 -1
  126. package/web-components/select/component.d.ts +11 -27
  127. package/web-components/select/component.d.ts.map +1 -1
  128. package/web-components/select/component.js +1 -1
  129. package/web-components/select/component.js.map +1 -1
  130. package/web-components/split/component.js +1 -1
  131. package/web-components/split/component.js.map +1 -1
  132. package/web-components/switch/component.d.ts.map +1 -1
  133. package/web-components/switch/component.js +1 -1
  134. package/web-components/switch/component.js.map +1 -1
  135. package/web-components/tabs/component.d.ts +18 -25
  136. package/web-components/tabs/component.d.ts.map +1 -1
  137. package/web-components/tabs/component.js +1 -1
  138. package/web-components/tabs/component.js.map +1 -1
  139. package/web-components/text/component.d.ts +4 -7
  140. package/web-components/text/component.d.ts.map +1 -1
  141. package/web-components/text/component.js +1 -1
  142. package/web-components/text/component.js.map +1 -1
  143. package/web-components/time/component.d.ts +2 -2
  144. package/web-components/time/component.d.ts.map +1 -1
  145. package/web-components/time/component.js +1 -1
  146. package/web-components/time/component.js.map +1 -1
  147. package/web-components/tooltip/component.d.ts +15 -39
  148. package/web-components/tooltip/component.d.ts.map +1 -1
  149. package/web-components/tooltip/component.js +1 -1
  150. package/web-components/tooltip/component.js.map +1 -1
  151. package/web-types.json +1 -1
  152. package/internal/direction.d.ts +0 -27
  153. package/internal/direction.d.ts.map +0 -1
  154. package/internal/direction.js +0 -2
  155. package/internal/direction.js.map +0 -1
  156. package/internal/super-openable.d.ts +0 -15
  157. package/internal/super-openable.d.ts.map +0 -1
  158. package/internal/super-openable.js +0 -2
  159. package/internal/super-openable.js.map +0 -1
  160. package/src/internal/direction.ts +0 -65
  161. package/src/internal/super-openable.ts +0 -34
@@ -1,59 +1,58 @@
1
1
  var Godown=function(t){"use strict";
2
2
  /**
3
3
  * @license MIT
4
- * @version 3.11.2
5
- */function e(t,e,o,s){var a,l=arguments.length,h=l<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,o,s);else for(var d=t.length-1;d>=0;d--)(a=t[d])&&(h=(l<3?a(h):l>3?a(e,o,h):a(e,o))||h);return l>3&&h&&Object.defineProperty(e,o,h),h}"function"==typeof SuppressedError&&SuppressedError;const o=t=>null==t,s=t=>"string"==typeof t,a=t=>null!==t&&"object"==typeof t,{isArray:l}=Array,h=(t,...e)=>{const o={};for(const s in t)e.includes(s)||(o[s]=t[s]);return o},d=t=>(t=>{var e;return(null===(e=t.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))||void 0===e?void 0:e.map((t=>t.toLowerCase())))||[]})(t).join("-");
4
+ * @version 3.13.0
5
+ */function e(t,e,o,s){var r,a=arguments.length,l=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,o,s);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(l=(a<3?r(l):a>3?r(e,o,l):r(e,o))||l);return a>3&&l&&Object.defineProperty(e,o,l),l}"function"==typeof SuppressedError&&SuppressedError;const o=t=>null==t,s=t=>"string"==typeof t,r=t=>null!==t&&"object"==typeof t,{isArray:a}=Array,l=(t,...e)=>{const o={};for(const s in t)e.includes(s)||(o[s]=t[s]);return o},h=t=>(t=>{var e;return(null===(e=t.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))||void 0===e?void 0:e.map((t=>t.toLowerCase())))||[]})(t).join("-");
6
6
  /**
7
7
  * @license
8
8
  * Copyright 2019 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
10
  */
11
- const c=globalThis,p=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),f=new WeakMap;let v=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(p&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&f.set(e,t))}return t}toString(){return this.cssText}};const m=t=>new v("string"==typeof t?t:t+"",void 0,u),g=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[s+1]),t[0]);return new v(o,t,u)},y=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return m(e)})(t):t
11
+ const d=globalThis,c=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),u=new WeakMap;let v=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&u.set(e,t))}return t}toString(){return this.cssText}};const f=t=>new v("string"==typeof t?t:t+"",void 0,p),m=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[s+1]),t[0]);return new v(o,t,p)},g=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return f(e)})(t):t
12
12
  /**
13
13
  * @license
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
- */,{is:$,defineProperty:_,getOwnPropertyDescriptor:w,getOwnPropertyNames:x,getOwnPropertySymbols:C,getPrototypeOf:S}=Object,A=globalThis,E=A.trustedTypes,T=E?E.emptyScript:"",P=A.reactiveElementPolyfillSupport,O=(t,e)=>t,B={toAttribute(t,e){switch(e){case Boolean:t=t?T:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},D=(t,e)=>!$(t,e),U={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:D};Symbol.metadata??=Symbol("metadata"),A.litPropertyMetadata??=new WeakMap;let j=class b 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=U){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),s=this.getPropertyDescriptor(t,o,e);void 0!==s&&_(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){const{get:s,set:a}=w(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return s?.call(this)},set(e){const l=s?.call(this);a.call(this,e),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??U}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=S(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const t=this.properties,e=[...x(t),...C(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(y(t))}else void 0!==t&&e.push(y(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?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),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(p)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),s=c.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(void 0!==s&&!0===o.reflect){const a=(void 0!==o.converter?.toAttribute?o.converter:B).toAttribute(e,o.type);this._$Em=t,null==a?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(t,e){const o=this.constructor,s=o._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=o.getPropertyOptions(s),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:B;this._$Em=s,this[s]=a.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??D)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}};j.elementStyles=[],j.shadowRootOptions={mode:"open"},j[O("elementProperties")]=new Map,j[O("finalized")]=new Map,P?.({ReactiveElement:j}),(A.reactiveElementVersions??=[]).push("2.0.4");
16
+ */,{is:$,defineProperty:b,getOwnPropertyDescriptor:_,getOwnPropertyNames:w,getOwnPropertySymbols:x,getPrototypeOf:S}=Object,C=globalThis,A=C.trustedTypes,E=A?A.emptyScript:"",T=C.reactiveElementPolyfillSupport,P=(t,e)=>t,O={toAttribute(t,e){switch(e){case Boolean:t=t?E:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},B=(t,e)=>!$(t,e),D={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:B};Symbol.metadata??=Symbol("metadata"),C.litPropertyMetadata??=new WeakMap;let U=class y 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=D){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){const o=Symbol(),s=this.getPropertyDescriptor(t,o,e);void 0!==s&&b(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){const{get:s,set:r}=_(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const a=s?.call(this);r?.call(this,e),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??D}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;const t=S(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){const t=this.properties,e=[...w(t),...x(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?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),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(c)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),s=d.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){const o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(void 0!==s&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:O).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,s=o._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=o.getPropertyOptions(s),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:O;this._$Em=s,this[s]=r.fromAttribute(e,t.type)??this._$Ej?.get(s)??null,this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){const s=this.constructor,r=this[t];if(o??=s.getPropertyOptions(t),!((o.hasChanged??B)(r,e)||o.useDefault&&o.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,o))))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:s,wrapped:r},a){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t){const{wrapped:t}=o,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,o,s)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.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((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[P("elementProperties")]=new Map,U[P("finalized")]=new Map,T?.({ReactiveElement:U}),(C.reactiveElementVersions??=[]).push("2.1.0");
17
17
  /**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
21
  */
22
- const V=globalThis,G=V.trustedTypes,F=G?G.createPolicy("lit-html",{createHTML:t=>t}):void 0,W="$lit$",q=`lit$${Math.random().toFixed(9).slice(2)}$`,Y="?"+q,X=`<${Y}>`,Z=document,K=()=>Z.createComment(""),Q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,J=Array.isArray,tt="[ \t\n\f\r]",et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,it=/-->/g,ot=/>/g,st=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),rt=/'/g,nt=/"/g,at=/^(?:script|style|textarea|title)$/i,lt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),ht=lt(1),dt=lt(2),ct=Symbol.for("lit-noChange"),pt=Symbol.for("lit-nothing"),ut=new WeakMap,ft=Z.createTreeWalker(Z,129);function vt(t,e){if(!J(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==F?F.createHTML(e):e}class N{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let a=0,l=0;const h=t.length-1,d=this.parts,[c,p]=((t,e)=>{const o=t.length-1,s=[];let a,l=2===e?"<svg>":3===e?"<math>":"",h=et;for(let e=0;e<o;e++){const o=t[e];let d,c,p=-1,u=0;for(;u<o.length&&(h.lastIndex=u,c=h.exec(o),null!==c);)u=h.lastIndex,h===et?"!--"===c[1]?h=it:void 0!==c[1]?h=ot:void 0!==c[2]?(at.test(c[2])&&(a=RegExp("</"+c[2],"g")),h=st):void 0!==c[3]&&(h=st):h===st?">"===c[0]?(h=a??et,p=-1):void 0===c[1]?p=-2:(p=h.lastIndex-c[2].length,d=c[1],h=void 0===c[3]?st:'"'===c[3]?nt:rt):h===nt||h===rt?h=st:h===it||h===ot?h=et:(h=st,a=void 0);const f=h===st&&t[e+1].startsWith("/>")?" ":"";l+=h===et?o+X:p>=0?(s.push(d),o.slice(0,p)+W+o.slice(p)+q+f):o+q+(-2===p?e:f)}return[vt(t,l+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=N.createElement(c,o),ft.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=ft.nextNode())&&d.length<h;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(W)){const e=p[l++],o=s.getAttribute(t).split(q),h=/([.?@])?(.*)/.exec(e);d.push({type:1,index:a,name:h[2],strings:o,ctor:"."===h[1]?H:"?"===h[1]?I:"@"===h[1]?L:gt}),s.removeAttribute(t)}else t.startsWith(q)&&(d.push({type:6,index:a}),s.removeAttribute(t));if(at.test(s.tagName)){const t=s.textContent.split(q),e=t.length-1;if(e>0){s.textContent=G?G.emptyScript:"";for(let o=0;o<e;o++)s.append(t[o],K()),ft.nextNode(),d.push({type:2,index:++a});s.append(t[e],K())}}}else if(8===s.nodeType)if(s.data===Y)d.push({type:2,index:a});else{let t=-1;for(;-1!==(t=s.data.indexOf(q,t+1));)d.push({type:7,index:a}),t+=q.length-1}a++}}static createElement(t,e){const o=Z.createElement("template");return o.innerHTML=t,o}}function mt(t,e,o=t,s){if(e===ct)return e;let a=void 0!==s?o._$Co?.[s]:o._$Cl;const l=Q(e)?void 0:e._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,o,s)),void 0!==s?(o._$Co??=[])[s]=a:o._$Cl=a),void 0!==a&&(e=mt(t,a._$AS(t,e.values),a,s)),e}class M{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){const{el:{content:e},parts:o}=this._$AD,s=(t?.creationScope??Z).importNode(e,!0);ft.currentNode=s;let a=ft.nextNode(),l=0,h=0,d=o[0];for(;void 0!==d;){if(l===d.index){let e;2===d.type?e=new R(a,a.nextSibling,this,t):1===d.type?e=new d.ctor(a,d.name,d.strings,this,t):6===d.type&&(e=new z(a,this,t)),this._$AV.push(e),d=o[++h]}l!==d?.index&&(a=ft.nextNode(),l++)}return ft.currentNode=Z,s}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,s){this.type=2,this._$AH=pt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=mt(this,t,e),Q(t)?t===pt||null==t||""===t?(this._$AH!==pt&&this._$AR(),this._$AH=pt):t!==this._$AH&&t!==ct&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>J(t)||"function"==typeof t?.[Symbol.iterator])(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!==pt&&Q(this._$AH)?this._$AA.nextSibling.data=t:this.T(Z.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(vt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new M(s,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=ut.get(t.strings);return void 0===e&&ut.set(t.strings,e=new N(t)),e}k(t){J(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const a of t)s===e.length?e.push(o=new R(this.O(K()),this.O(K()),this,this.options)):o=e[s],o._$AI(a),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}let gt=class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,a){this.type=1,this._$AH=pt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=a,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=pt}_$AI(t,e=this,o,s){const a=this.strings;let l=!1;if(void 0===a)t=mt(this,t,e,0),l=!Q(t)||t!==this._$AH&&t!==ct,l&&(this._$AH=t);else{const s=t;let h,d;for(t=a[0],h=0;h<a.length-1;h++)d=mt(this,s[o+h],e,h),d===ct&&(d=this._$AH[h]),l||=!Q(d)||d!==this._$AH[h],d===pt?t=pt:t!==pt&&(t+=(d??"")+a[h+1]),this._$AH[h]=d}l&&!s&&this.j(t)}j(t){t===pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class H extends gt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===pt?void 0:t}}class I extends gt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==pt)}}class L extends gt{constructor(t,e,o,s,a){super(t,e,o,s,a),this.type=5}_$AI(t,e=this){if((t=mt(this,t,e,0)??pt)===ct)return;const o=this._$AH,s=t===pt&&o!==pt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==pt&&(o===pt||s);s&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){mt(this,t)}}const yt=V.litHtmlPolyfillSupport;yt?.(N,R),(V.litHtmlVersions??=[]).push("3.2.1");
22
+ const j=globalThis,V=j.trustedTypes,G=V?V.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",W=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+W,Y=`<${q}>`,X=document,Z=()=>X.createComment(""),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Q=Array.isArray,J="[ \t\n\f\r]",tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,it=/>/g,ot=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,rt=/"/g,nt=/^(?:script|style|textarea|title)$/i,at=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),lt=at(1),ht=at(2),dt=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),pt=new WeakMap,ut=X.createTreeWalker(X,129);function vt(t,e){if(!Q(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==G?G.createHTML(e):e}class N{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let r=0,a=0;const l=t.length-1,h=this.parts,[d,c]=((t,e)=>{const o=t.length-1,s=[];let r,a=2===e?"<svg>":3===e?"<math>":"",l=tt;for(let e=0;e<o;e++){const o=t[e];let h,d,c=-1,p=0;for(;p<o.length&&(l.lastIndex=p,d=l.exec(o),null!==d);)p=l.lastIndex,l===tt?"!--"===d[1]?l=et:void 0!==d[1]?l=it:void 0!==d[2]?(nt.test(d[2])&&(r=RegExp("</"+d[2],"g")),l=ot):void 0!==d[3]&&(l=ot):l===ot?">"===d[0]?(l=r??tt,c=-1):void 0===d[1]?c=-2:(c=l.lastIndex-d[2].length,h=d[1],l=void 0===d[3]?ot:'"'===d[3]?rt:st):l===rt||l===st?l=ot:l===et||l===it?l=tt:(l=ot,r=void 0);const u=l===ot&&t[e+1].startsWith("/>")?" ":"";a+=l===tt?o+Y:c>=0?(s.push(h),o.slice(0,c)+F+o.slice(c)+W+u):o+W+(-2===c?e:u)}return[vt(t,a+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=N.createElement(d,o),ut.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=ut.nextNode())&&h.length<l;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(F)){const e=c[a++],o=s.getAttribute(t).split(W),l=/([.?@])?(.*)/.exec(e);h.push({type:1,index:r,name:l[2],strings:o,ctor:"."===l[1]?H:"?"===l[1]?I:"@"===l[1]?L:mt}),s.removeAttribute(t)}else t.startsWith(W)&&(h.push({type:6,index:r}),s.removeAttribute(t));if(nt.test(s.tagName)){const t=s.textContent.split(W),e=t.length-1;if(e>0){s.textContent=V?V.emptyScript:"";for(let o=0;o<e;o++)s.append(t[o],Z()),ut.nextNode(),h.push({type:2,index:++r});s.append(t[e],Z())}}}else if(8===s.nodeType)if(s.data===q)h.push({type:2,index:r});else{let t=-1;for(;-1!==(t=s.data.indexOf(W,t+1));)h.push({type:7,index:r}),t+=W.length-1}r++}}static createElement(t,e){const o=X.createElement("template");return o.innerHTML=t,o}}function ft(t,e,o=t,s){if(e===dt)return e;let r=void 0!==s?o._$Co?.[s]:o._$Cl;const a=K(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,o,s)),void 0!==s?(o._$Co??=[])[s]=r:o._$Cl=r),void 0!==r&&(e=ft(t,r._$AS(t,e.values),r,s)),e}class M{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){const{el:{content:e},parts:o}=this._$AD,s=(t?.creationScope??X).importNode(e,!0);ut.currentNode=s;let r=ut.nextNode(),a=0,l=0,h=o[0];for(;void 0!==h;){if(a===h.index){let e;2===h.type?e=new R(r,r.nextSibling,this,t):1===h.type?e=new h.ctor(r,h.name,h.strings,this,t):6===h.type&&(e=new z(r,this,t)),this._$AV.push(e),h=o[++l]}a!==h?.index&&(r=ut.nextNode(),a++)}return ut.currentNode=X,s}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,s){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ft(this,t,e),K(t)?t===ct||null==t||""===t?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==dt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Q(t)||"function"==typeof t?.[Symbol.iterator])(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!==ct&&K(this._$AH)?this._$AA.nextSibling.data=t:this.T(X.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(vt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new M(s,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=pt.get(t.strings);return void 0===e&&pt.set(t.strings,e=new N(t)),e}k(t){Q(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const r of t)s===e.length?e.push(o=new R(this.O(Z()),this.O(Z()),this,this.options)):o=e[s],o._$AI(r),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}let mt=class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,r){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ct}_$AI(t,e=this,o,s){const r=this.strings;let a=!1;if(void 0===r)t=ft(this,t,e,0),a=!K(t)||t!==this._$AH&&t!==dt,a&&(this._$AH=t);else{const s=t;let l,h;for(t=r[0],l=0;l<r.length-1;l++)h=ft(this,s[o+l],e,l),h===dt&&(h=this._$AH[l]),a||=!K(h)||h!==this._$AH[l],h===ct?t=ct:t!==ct&&(t+=(h??"")+r[l+1]),this._$AH[l]=h}a&&!s&&this.j(t)}j(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class H extends mt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ct?void 0:t}}class I extends mt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}}class L extends mt{constructor(t,e,o,s,r){super(t,e,o,s,r),this.type=5}_$AI(t,e=this){if((t=ft(this,t,e,0)??ct)===dt)return;const o=this._$AH,s=t===ct&&o!==ct||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ct&&(o===ct||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ft(this,t)}}const gt=j.litHtmlPolyfillSupport;gt?.(N,R),(j.litHtmlVersions??=[]).push("3.3.0");const yt=globalThis;
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */
28
- let $t=class r extends j{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const s=o?.renderBefore??e;let a=s._$litPart$;if(void 0===a){const t=o?.renderBefore??null;s._$litPart$=a=new R(e.insertBefore(K(),t),t,void 0,o??{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ct}};$t._$litElement$=!0,$t.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:$t});const bt=globalThis.litElementPolyfillSupport;function*_t(t){for(const e of l(t)?t:Object.entries(t))e&&(yield e)}bt?.({LitElement:$t}),(globalThis.litElementVersions??=[]).push("4.1.1");const wt=t=>a(t)&&"_$cssResult$"in t,xt=t=>!o(t)&&!1!==t,kt=t=>{let e="";for(const[o,s]of _t(t))if(s){const t=a(s)&&!wt(s)?Ct(s):s;xt(t)&&(e+=o?`${o}{${t}}`:t)}return e},Ct=t=>{let e="";for(const[o,s]of _t(t))o&&xt(s)&&(e+=`${o}:${s};`);return e},St=(t,e)=>t?`var(${t})`:"";class StyleController{constructor(t,e){(this.host=t).addController(this),this.computeStyle=e}hostUpdated(){const t=this.host.shadowRoot?.adoptedStyleSheets;if(!t)return;void 0!==this.styleID&&t.splice(this.styleID,1);const e=this.computeStyle();this.styleID=e?t.push((t=>{if(s(t)){const e=new CSSStyleSheet;return e.replaceSync(t),e}return wt(t)?t.styleSheet:t})(e))-1:void 0}}const At=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},Rt=(t,e)=>o=>{t||=d(o.name),o.protoName=t;(({tagName:t,styles:e,autoDefine:o=!1,registry:s=customElements})=>a=>{a.elementTagName=t,e&&At(e)(a),o&&!s.get(t)&&s.define(t,a)})({tagName:o.godownConfig.tag(t),...e})(o)}
27
+ */let $t=class i extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const s=o?.renderBefore??e;let r=s._$litPart$;if(void 0===r){const t=o?.renderBefore??null;s._$litPart$=r=new R(e.insertBefore(Z(),t),t,void 0,o??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return dt}};$t._$litElement$=!0,$t.finalized=!0,yt.litElementHydrateSupport?.({LitElement:$t});const bt=yt.litElementPolyfillSupport;function*_t(t){for(const e of a(t)?t:Object.entries(t))e&&(yield e)}bt?.({LitElement:$t}),(yt.litElementVersions??=[]).push("4.2.0");const wt=t=>r(t)&&"_$cssResult$"in t,xt=t=>!o(t)&&!1!==t,kt=t=>{let e="";for(const[o,s]of _t(t))if(s){const t=r(s)&&!wt(s)?St(s):s;xt(t)&&(e+=o?`${o}{${t}}`:t)}return e},St=t=>{let e="";for(const[o,s]of _t(t))o&&xt(s)&&(e+=`${o}:${s};`);return e},Ct=(t,e)=>t?`var(${t})`:"";class StyleController{constructor(t,e){(this.host=t).addController(this),this.computeStyle=e}hostUpdated(){const t=this.host.shadowRoot?.adoptedStyleSheets;if(!t)return;void 0!==this.styleID&&t.splice(this.styleID,1);const e=this.computeStyle();this.styleID=e?t.push((t=>{if(s(t)){const e=new CSSStyleSheet;return e.replaceSync(t),e}return wt(t)?t.styleSheet:t})(e))-1:void 0}}const At=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},Rt=(t,e)=>o=>{t||=h(o.name),o.protoName=t;(({tagName:t,styles:e,autoDefine:o=!1,registry:s=customElements})=>r=>{r.elementTagName=t,e&&At(e)(r),o&&!s.get(t)&&s.define(t,r)})({tagName:o.godownConfig.tag(t),...e})(o)}
29
28
  /**
30
29
  * @license
31
30
  * Copyright 2017 Google LLC
32
31
  * SPDX-License-Identifier: BSD-3-Clause
33
- */,Et={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:D},Tt=(t=Et,e,o)=>{const{kind:s,metadata:a}=o;let l=globalThis.litPropertyMetadata.get(a);if(void 0===l&&globalThis.litPropertyMetadata.set(a,l=new Map),l.set(o.name,t),"accessor"===s){const{name:s}=o;return{set(o){const a=e.get.call(this);e.set.call(this,o),this.requestUpdate(s,a,t)},init(e){return void 0!==e&&this.P(s,void 0,t),e}}}if("setter"===s){const{name:s}=o;return function(o){const a=this[s];e.call(this,o),this.requestUpdate(s,a,t)}}throw Error("Unsupported decorator location: "+s)};function Mt(t){return(e,o)=>"object"==typeof o?Tt(t,e,o):((t,e,o)=>{const s=e.hasOwnProperty(o);return e.constructor.createProperty(o,s?{...t,wrapped:!0}:t),s?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
32
+ */,Et={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:B},Tt=(t=Et,e,o)=>{const{kind:s,metadata:r}=o;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),a.set(o.name,t),"accessor"===s){const{name:s}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(s,r,t)},init(e){return void 0!==e&&this.C(s,void 0,t,e),e}}}if("setter"===s){const{name:s}=o;return function(o){const r=this[s];e.call(this,o),this.requestUpdate(s,r,t)}}throw Error("Unsupported decorator location: "+s)};function Mt(t){return(e,o)=>"object"==typeof o?Tt(t,e,o):((t,e,o)=>{const s=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),s?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
34
33
  /**
35
34
  * @license
36
35
  * Copyright 2017 Google LLC
37
36
  * SPDX-License-Identifier: BSD-3-Clause
38
- */}function Pt(t){return Mt({...t,state:!0,attribute:!1})}
37
+ */}function Nt(t){return Mt({...t,state:!0,attribute:!1})}
39
38
  /**
40
39
  * @license
41
40
  * Copyright 2017 Google LLC
42
41
  * SPDX-License-Identifier: BSD-3-Clause
43
- */const Nt=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o)
42
+ */const Pt=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o)
44
43
  /**
45
44
  * @license
46
45
  * Copyright 2017 Google LLC
47
46
  * SPDX-License-Identifier: BSD-3-Clause
48
- */;function Ot(t,e){return(o,s,a)=>{const l=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof s?o:a??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Nt(o,s,{get(){let o=t.call(this);return void 0===o&&(o=l(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return Nt(o,s,{get(){return l(this)}})}}
47
+ */;function Ot(t,e){return(o,s,r)=>{const a=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof s?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Pt(o,s,{get(){let o=t.call(this);return void 0===o&&(o=a(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return Pt(o,s,{get(){return a(this)}})}}
49
48
  /**
50
49
  * @license
51
50
  * Copyright 2017 Google LLC
52
51
  * SPDX-License-Identifier: BSD-3-Clause
53
- */let Bt;function It(t){return(e,o)=>Nt(e,o,{get(){return(this.renderRoot??(Bt??=document.createDocumentFragment())).querySelectorAll(t)}})}const zt=(t,e=!0)=>{return Ot((o=t,s?`::part(${o})`:((t,e)=>e?`[${t}~="${e}"]`:`[${t}]`)("part",o)),e);
52
+ */let Bt;function It(t){return(e,o)=>Pt(e,o,{get(){return(this.renderRoot??(Bt??=document.createDocumentFragment())).querySelectorAll(t)}})}const zt=(t,e=!0)=>{return Ot((o=t,s?`::part(${o})`:((t,e)=>e?`[${t}~="${e}"]`:`[${t}]`)("part",o)),e);
54
53
  /**
55
54
  * @license
56
55
  * Copyright 2017 Google LLC
57
56
  * SPDX-License-Identifier: BSD-3-Clause
58
- */var o,s},Dt=6;let Ut=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const Ht=(t,e)=>(t?t+(e?" "+e:""):e)||"",jt=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(l(e))return Ht(t,jt(...e));if(a(e)){for(const o in e)e[o]&&(t=Ht(t,o));return t}return Ht(t,e)}),"");function Lt(t,e){(t=>o(t)||!1===t)(e)?this.removeAttribute(t):!0===e?this.setAttribute(t,""):s(e)||(t=>"number"==typeof t)(e)&&!Number.isNaN(e)?this.setAttribute(t,String(e)):this[t]=e}const Vt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Ut{render(t,e){}update(t,[e,o=Lt]){if(e&&t.type===Dt)for(const s in e)o.call(t.element,s,e[s]);return ct}}),Gt=((t,e)=>o=>t({...e,...o}))(Vt,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Ft=t=>ht`<slot name="${t||pt}"></slot>`,Wt=(t,e)=>{if(!t)return pt;const o=s(t)?t:kt(t);return o?ht`<style media="${pt}">${o}</style>`:pt},qt=t=>(e,...o)=>{const a=dt(e,o),l=s(t)?t:t.join(" "),h=t=>ht`<svg viewBox="${l}" ${Gt(t)}>${a}</svg>`;return h.body=a,h.viewBox=l,h};function*Yt(t,e,o){for(let o=0;o<t;o++)yield e(o)}function Xt(t,e=this){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&Xt(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const s of e.children)Xt(t,s).forEach((t=>o.add(t)));return Array.from(o)}function Zt(t,e=this){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=Zt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const s of e.children)if(o=Zt(t,s),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e)||new Map,l=a.get(t)||new Set;return l.add(o),a.set(t,l),this.inner.set(e,a),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e);if(a){const s=a.get(t);s&&(s.delete(o),s.size||(a.delete(t),a.size||this.inner.delete(e)))}t.removeEventListener(e,o,s)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,s){const[a,l]=((t,e,o)=>{let s,a;switch(t){case MutationObserver:case ResizeObserver:s=new t(e),a=t=>s.observe(t,o);break;case IntersectionObserver:s=new t(e,o),a=t=>s.observe(t);break;case PerformanceObserver:s=new t(e),a=()=>s.observe(o)}return[s,a]})(e,o,s);if(a)return this.inner.set(a,(this.inner.get(a)||new Set).add(t)),l(t),a}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}random(){return this.normalize(Math.random()*this.diff+this.min)}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}const Kt=(t,e,o)=>t.startsWith(e)&&t.endsWith(o);class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const s=e[o];let a=this.findStrict(s);a||(a=new RouteTree,a.part=s,a.matchType=RouteTree.dynamic(s).matchType,this.children.push(a),this.sorted=!1),a.insert(t,e,o+1)}search(t,e=0){if(s(t)&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.MatchTypes.multi)return this.pattern?this:null;const o=t[e],a=this.filterWide(o);for(const o of a){const s=o.search(t,e+1);if(null!==s)return s}return null}findStrict(t){return this.children.find((e=>e.part===t))||null}filterWide(t){return this.children.filter((e=>e.part===t||e.matchType))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const o=RouteTree.split(t),s=RouteTree.split(e),a={};for(let t=0;t<s.length;t++){const e=s[t],{key:l,matchType:h}=RouteTree.dynamic(e);if(h===RouteTree.MatchTypes.single)a[l]=o[t];else if(h===RouteTree.MatchTypes.multi){a[l]=o.slice(t).join("/");break}}return a}static dynamic(t){if(t){if(Kt(t,"{","}")||Kt(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.MatchTypes.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.MatchTypes.multi}}return{key:t,matchType:RouteTree.MatchTypes.strict}}static split(t){return t.split("/").filter((t=>t))}}RouteTree.MatchTypes={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const Qt=(t,{attribute:e})=>!0===e||void 0===e?String(t).toLowerCase():!1!==e&&"symbol"!=typeof t?e:void 0,Jt=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends $t{static define(t=this.elementTagName,e){this.isDefined()||this.godownConfig.define(t,this,e)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(const[t,e]of this.elementProperties.entries()){const o=Qt(t,e);o&&this.elementAttributes.set(o,t)}}get observedRecord(){const t={};for(const[e,o]of this.constructor.elementAttributes.entries())t[e]=this[o];return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),Jt.test(t)||(t=`:host{${t}}`),this.shadowRoot?(this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=t,this.__stylex.index=this.adoptStyles(t)):this.__stylex.lazy=t}constructor(t){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Zt.call(this,t)}deepQuerySelectorAll(t){return Xt.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return d(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,o){this.registry.define(t,e,o),this.components.set(t,e)}get(t){return this.registry.get(t)}getName(t){const{getName:e}=this.registry;return e?e(t):[...this.components.entries()].find((([,e])=>e===t))?.[0]||null}whenDefined(t){return this.registry.whenDefined(t)}upgrade(t){this.registry.upgrade(t)}},e([Mt({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),e([Mt({reflect:!0})],GodownElement.prototype,"stylex",null);class GlobalStyle extends GodownElement{}const te=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let o=0;for(;o<t.length&&e(t.slice(o,o+1));)o+=1;return t.slice(o)})(((t,e)=>{if(!t||!e)return t;let o=t.length;for(;o>0&&e(t.slice(o-1,o));)o-=1;return t.slice(0,o)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function ee(t,e=1){return function(t){return m(`--${t}`)}(te+"-".repeat(e)+t)}const ie={background:ee("background",2),foreground:ee("foreground",2),backgroundClip:ee("background-clip",2),primaryBackground:ee("primary",2),primaryForeground:ee("primary-foreground",2),muted:ee("muted",2),active:ee("active",2),passive:ee("passive",2),input:ee("input",2),radius:ee("radius",2),ringWidth:ee("ring-width",2),ringColor:ee("ring-color",2)};GlobalStyle.styles=[m(((t,e,o)=>{const s=[..._t(e)];return((t,{truecase:e,falsecase:o})=>{const s="@supports";let a="";return e&&(a+=`${s}(${t}){${e}}`),o&&(a+=`${s} not (${t}){${o}}`),a})("color:light-dark(#fff,#000)",{truecase:kt([[t,Ct(s.map((([t,[e,o]])=>[t,`light-dark(${e},${o})`])))]]),falsecase:kt([[t,Ct(s.map((([t,e])=>[t,e[o]])))]])})})(":host",[[ie.background,["hsl(0 0% 96%)","hsl(0 0% 4%)"]],[ie.foreground,["hsl(0 0% 4%)","hsl(0 0% 96%)"]],[ie.muted,["hsl(0 0% 90%)","hsl(0 0% 18%)"]]],1)),m(kt({":host":Ct([[ie.primaryBackground,St(ie.foreground)],[ie.primaryForeground,St(ie.background)],[ie.active,St(ie.primaryBackground)],[ie.passive,St(ie.muted)],[ie.backgroundClip,`linear-gradient(to bottom, ${St(ie.foreground)}, ${St(ie.muted)})`],[ie.ringColor,St(ie.passive)],[ie.ringWidth,".075em"]])})),g`button,dialog,input{border:0;outline:0}*{box-sizing:border-box;font-size:100%;font-style:normal;margin:0;padding:0}:host{border-style:none;box-sizing:border-box;outline-style:none}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}[part=root]{height:100%;width:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,g`:host{${ie.radius}:0.2em;border-radius:var(${ie.radius})}`];const oe=({width:t,color:e,inset:o})=>`outline-style:solid;outline-color:${e};outline-width:${t};${o?`outline-offset:calc(-1 * ${t});`:""}`,se=({width:t,color:e,inset:o})=>`box-shadow:${o?"inset":""} 0 0 0 ${t} ${e};`,re={outline:(t,e)=>oe({width:t,color:e,inset:!1}),"outline-inset":(t,e)=>oe({width:t,color:e,inset:!0}),"box-shadow":(t,e)=>se({width:t,color:e,inset:!1}),shadow:(t,e)=>se({width:t,color:e,inset:!1}),"box-shadow-inset":(t,e)=>se({width:t,color:e,inset:!0}),"shadow-inset":(t,e)=>se({width:t,color:e,inset:!0}),border:(t,e)=>(({width:t,color:e})=>`border-style:solid;border-color:${e};border-width:${t};border-style:solid;`)({width:t,color:e})};class RingBuilder{constructor({selector:t=":host",width:e=St(ie.ringWidth),color:o=St(ie.ringColor),type:s}={}){if(s&&s in re){const a=re[s](e,o);this.css=`${t}{${a}}`}else this.css=""}get styleSheet(){return m(this.css).styleSheet}}let ne=class Alert extends GlobalStyle{constructor(){super(),this.ringType="border",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return ht`<div part="root" ${Vt(this.observedRecord)}> <div>${Ft("prefix")}</div> <div part="content"> <strong part="title">${this.title||Ft("title")}</strong> ${this.content||Ft()} </div> <div>${Ft("suffix")}</div> </div>`}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};e([Mt({attribute:"ring-type"})],ne.prototype,"ringType",void 0),e([Mt()],ne.prototype,"title",void 0),e([Mt()],ne.prototype,"content",void 0),ne=e([Rt("alert"),At(g`:host{background:var(${ie.background})}:host,:where(:host([contents]) [part=root]){display:block}[part=root]{align-items:center;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:.75em}[part=content],[part=root]{display:grid}`)],ne);var ae=ne;ae.define();let le=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return ht`<div part="root" ${Vt(h(this.observedRecord,"src"))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?ht`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?ht`<span part="name">${this.formatName()}</span>`:Ft()}formatName(){return this.name}_handleError(){this.src=void 0}};e([Mt()],le.prototype,"src",void 0),e([Mt()],le.prototype,"name",void 0),e([Mt({type:Boolean})],le.prototype,"round",void 0),le=e([Rt("avatar"),At(g`:host{background:var(${ie.passive});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],le);var he=le;he.define();const de="button",ce=ee(de);let pe=class Button extends GlobalStyle{constructor(){super(...arguments),this.plain=!1,this.disabled=!1,this.active=!1,this.round=!1}render(){return ht`<div part="root" ${Vt(this.observedRecord)}> ${this.content||Ft()} <span part="modal-root"></span> </div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:o,height:s}=this.getBoundingClientRect(),{x:a,y:l}=this._root.getBoundingClientRect(),h=2*Math.sqrt(s**2+o**2)+"px";e.style.height=h,e.style.width=h,e.style.left=t.x-a+"px",e.style.top=t.y-l+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}};e([Mt({type:Boolean,reflect:!0})],pe.prototype,"plain",void 0),e([Mt({type:Boolean,reflect:!0})],pe.prototype,"disabled",void 0),e([Mt({type:Boolean,reflect:!0})],pe.prototype,"active",void 0),e([Mt({type:Boolean,reflect:!0})],pe.prototype,"round",void 0),e([Mt()],pe.prototype,"content",void 0),e([zt("modal-root")],pe.prototype,"_modalRoot",void 0),e([zt("root")],pe.prototype,"_root",void 0),pe=e([Rt(de),At(g`:host(:not([disabled]):active){transform:scale(var(${ce}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([plain]){${ce}--gradients:unset;${ce}--focus-scale:unset}`,g`:host{${ce}--modal-animation-duration:1.5s;${ce}--focus-scale:.97;${ce}--deg:45deg;background:var(${ie.primaryBackground});border-style:none;border-width:var(${ie.ringWidth});color:var(${ie.primaryForeground});cursor:pointer;display:block;overflow:hidden;text-align:center;width:-moz-fit-content;width:fit-content}[part=root]:not([contents]){height:100%;width:100%}[part=root]{padding:.25em .75em;position:relative;-webkit-user-select:none;user-select:none}i{animation-duration:var(${ce}--modal-animation-duration);background:var(${ce}--modal-background,currentColor);border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}@keyframes kf{0%{opacity:var(${ce}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],pe);var ue=pe;let fe=class Badge extends ue{constructor(){super(...arguments),this.plain=!0,this.round=!0}};fe=e([Rt("badge"),At(g`:host{font-size:.75em}[part=root]{padding:0 .5em}`)],fe);var ve=fe;ve.define();const me="breath",ge=ee(me),ye=/[\s,]+/;let $e=class Breath extends GlobalStyle{render(){const t=this.getTexts();return ht`<div part="root" ${Vt(this.observedRecord)}> ${[t.map(this._renderText),Wt(this._computeStyle(t.length))]} </div>`}_renderText(t){return ht`<span class="rel"> <span class="nocolor">${t}</span> <span class="colorful">${t}</span> </span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(ye).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.duration||1e3*(2*t+2);let s="";for(let e=1;e<=t;e++)s+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}ms;background:var(${ge}--${e},var(${ge}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}};e([Mt()],$e.prototype,"content",void 0),e([Mt({type:Number})],$e.prototype,"duration",void 0),$e=e([Rt(me),At(g`:host{${ge}--deg:60deg;${ge}--1-1:#dd3c3c;${ge}--1-2:#f5993d;${ge}--2-1:#26d944;${ge}--2-2:#29a3a3;${ge}--3-1:#8c30e8;${ge}--3-2:#0d80f2;${ge}--1:linear-gradient(var(${ge}--deg),var(${ge}--1-1),var(${ge}--1-2));${ge}--2:linear-gradient(var(${ge}--deg),var(${ge}--2-1),var(${ge}--2-2));${ge}--3:linear-gradient(var(${ge}--deg),var(${ge}--3-1),var(${ge}--3-2))}`,g`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,g`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${ie.backgroundClip});position:absolute;top:0}`)],$e);var be=$e;be.define(),ue.define();const _e="card",we=ee(_e);let xe=class Card extends GlobalStyle{constructor(){super(),this.ringType="border",this.footer=!1,this.header=!1,new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return ht`<div part="root" ${Vt(this.observedRecord)}> ${[this.header?Ft("header"):"",Ft(),this.footer?Ft("footer"):""]} </div>`}};e([Mt({attribute:"ring-type"})],xe.prototype,"ringType",void 0),e([Mt({type:Boolean})],xe.prototype,"footer",void 0),e([Mt({type:Boolean})],xe.prototype,"header",void 0),xe=e([Rt(_e),At(g`:host{${we}--padding:.75em;background:var(${ie.background});display:block;flex-shrink:0}slot{display:block;padding:var(${we}--padding)}[part=root]{border-radius:inherit}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],xe);var ke=xe;ke.define();const Ce=qt("0 0 256 256")`<path fill="currentColor" d="M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z">`,Se=qt("0 0 256 256")`<path fill="currentColor" d="m181.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L164.69 128L90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32">`;function Ae(t){return t.getBoundingClientRect().width}let Re=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return ht`<div part="root" ${Vt(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${Ce()} </i> <div part="move-root">${Ft()}</div> <i part="next" @click="${this.next}"> ${Se()} </i> </div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=Ae(this.children[e]);return t+=(Ae(this)-Ae(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};e([Mt({type:Number})],Re.prototype,"index",void 0),e([Mt({type:Number})],Re.prototype,"autoChange",void 0),e([zt("move-root")],Re.prototype,"_moveRoot",void 0),Re=e([Rt("carousel"),At(g`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],Re);var Ee=Re;Ee.define();const Te="chip",Me=ee(Te);let Pe=class Chip extends GlobalStyle{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return ht`<div part="root" ${Vt(this.observedRecord)}> ${Ft()} ${this.value||this.dot?ht`<div part="chip">${this.dot?"":this.formatValue(this.value)}</div>`:""} </div>`}};e([Mt()],Pe.prototype,"position",void 0),e([Mt({type:Number})],Pe.prototype,"value",void 0),e([Mt({type:Boolean})],Pe.prototype,"dot",void 0),e([Mt({type:Number})],Pe.prototype,"max",void 0),Pe=e([Rt(Te),At(g`:host{${Me}--offset:0%;${Me}--offset-x:var(${Me}--offset);${Me}--offset-y:var(${Me}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=chip]{background:var(${ie.primaryBackground});border-radius:calc(infinity*1px);color:var(${ie.primaryForeground});font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=chip]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=chip]{top:calc(var(${Me}--offset-y))}[position$=right] [part=chip]{left:calc(100% - var(${Me}--offset-x))}[position^=bottom] [part=chip]{top:calc(100% - var(${Me}--offset-y))}[position$=left] [part=chip]{left:calc(var(${Me}--offset-x))}`)],Pe);var Ne=Pe;Ne.define();const Oe=qt("0 0 256 256")`<path fill="currentColor" d="m213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32">`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchCustomEvent("change",this.open)}}e([Mt({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const Be="details",Ie=ee(Be);let ze=class Details extends SuperOpenable{constructor(){super(...arguments),this.float=!1,this.fill=!1,this.summary=""}render(){return ht`<dl part="root" ${Vt(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${this.summary||Ft("summary")}</span> <span part="icon">${Oe()}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${Ft()}</div> </dd> </dl>`}};e([Mt({type:Boolean})],ze.prototype,"float",void 0),e([Mt({type:Boolean})],ze.prototype,"fill",void 0),e([Mt()],ze.prototype,"summary",void 0),ze=e([Rt(Be),At(g`:host{${Ie}--icon-deg-open:0deg;${Ie}--icon-deg-close:90deg;display:block;transition:.3s}[part=root]{padding:.25em;position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${Ie}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${Ie}--icon-deg-open))}`)],ze);var De=ze;De.define();const Ue="dialog",He=ee(Ue),je=/[\s,]+/;let Le=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.key="Escape",this.__modalInvoke=!1}set modal(t){this.contents=t}get modal(){return this.contents}render(){return ht`<dialog part="root" ${Vt(this.observedRecord)}> ${Ft()} </dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"open"===t&&(this.open?this.modal?this._dialog.showModal():this._dialog.show():this._dialog.close())}updated(t){t.has("open")&&(this.open?(this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){const e=this.key.split(je);(e.includes(t.key)||e.includes(t.code))&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}close(){this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this.open=!1}};e([Mt({type:Boolean,reflect:!0})],Le.prototype,"modal",null),e([Mt()],Le.prototype,"key",void 0),e([Ot("dialog")],Le.prototype,"_dialog",void 0),Le=e([Rt(Ue),At(g`:host{${He}--background-modal:#000;${He}--opacity-modal:0.2;background:none;display:block;left:50%;margin:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:-moz-fit-content;width:fit-content}:host(:not([open])){visibility:hidden}:host([contents]) dialog{position:fixed}dialog{background:inherit;position:relative}::backdrop{background:var(${He}--background-modal);opacity:var(${He}--opacity-modal)}`)],Le);var Ve=Le;Ve.define();let Ge=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return ht`<div part="root"></div>`}};e([Mt({type:Boolean,reflect:!0})],Ge.prototype,"vertical",void 0),Ge=e([Rt("divider"),At(g`:host{background:currentColor;color:var(${ie.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}`)],Ge);var Fe=Ge;Fe.define();let We=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return ht`<div part="root" ${Vt(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${Ft()} </div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),o=this.getBoundingClientRect();this.__t=o.top-e.top,this.__l=o.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:o,__l:s,__t:a,style:l}=this,{height:h,width:d}=this._offsetParent.getBoundingClientRect(),{width:c,height:p}=this.getBoundingClientRect(),u=t.x-(e-s),f=t.y-(o-a);l.left=u<0?"0":u<d-c?`${u}px`:d-c+"px",l.top=f<0?"0":f<h-p?`${f}px`:h-p+"px"}reset(){const{x:t,y:e,style:o,offsetWidth:s,offsetHeight:a,offsetLeft:l,offsetTop:h}=this,{height:d,width:c}=this._offsetParent.getBoundingClientRect();o.left=t||"0",o.top=e||"0",l>c-s&&(o.left=c-s+"px"),h>d-a&&(o.top=d-a+"px")}};e([Mt()],We.prototype,"x",void 0),e([Mt()],We.prototype,"y",void 0),We=e([Rt("dragbox"),At(g`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],We);var qe=We;qe.define();let Ye=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return ht`<div part="root" ${Vt(this.observedRecord)}> ${[Ft(),Wt(kt({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]} </div>`}};e([Mt({attribute:"flex-flow"})],Ye.prototype,"flexFlow",void 0),e([Mt()],Ye.prototype,"gap",void 0),e([Mt()],Ye.prototype,"content",void 0),e([Mt()],Ye.prototype,"items",void 0),e([Mt({type:Boolean})],Ye.prototype,"vertical",void 0),Ye=e([Rt("flex"),At(g`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],Ye);var Xe,Ze=Ye;Ze.define();let Ke=Xe=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return Xe.buildValue(this._slot.assignedElements())}render(){return Ft()}reset(){this.deepQuerySelectorAll("*").forEach((t=>{t.tagName!==this.tagName&&t.reset&&t.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(t){const e={};for(const o of t)if("FORM"===o.tagName)Object.assign(e,Object.fromEntries(new FormData(o).entries()));else if(o.namevalue){const[t,s]=o.namevalue();t&&(e[t]=s)}else if(o.name&&void 0!==o.value)e[o.name]=o.value;else if(o.shadowRoot)for(const t of o.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};e([Mt()],Ke.prototype,"name",void 0),Ke=Xe=e([Rt("form"),At(g`:host{display:block}`)],Ke);var Qe=Ke;Qe.define();const Je=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let ti=class Grid extends GlobalStyle{render(){return ht`<div part="root" ${Vt(this.observedRecord)}> ${[Ft(),Wt(kt({":host":{gap:this.gap,"grid-template-columns":Je(this.columns),"grid-template-rows":Je(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};e([Mt()],ti.prototype,"gap",void 0),e([Mt()],ti.prototype,"columns",void 0),e([Mt()],ti.prototype,"rows",void 0),e([Mt()],ti.prototype,"content",void 0),e([Mt()],ti.prototype,"items",void 0),ti=e([Rt("grid"),At(g`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],ti);var ei,ii=ti;ii.define();let oi=ei=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=Ft(),this.type="united",this.cache=!1,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}get params(){return this.path?RouteTree.parseParams(this.pathname,this.path):{}}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let t;if(this.cache&&(t=this.__cacheRecord.get(this.pathname))&&(this.component=t.component,this.path=t.path,this.pathname=t.pathname),!t)switch(this.type){case"field":this.component=this.fieldComponent();break;case"slotted":this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),ei.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),ei.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(t){if(t.has("pathname")||t.has("path")){const t=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,t),this.dispatchCustomEvent("change",t)}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(h(this.useRouter(),"component"))||null:e.component:null}slottedComponent(t){const e=this._slottedNames;return t||=this.__slottedRouteTree.search(this.pathname)?.pattern,this.path=t,t?(this.path=e.find((e=>e===t)),this.path?Ft(this.path):null):null}collectSlottedRoutes(){this.__slottedRouteTree=new RouteTree,this.clear(),this._slottedNames.forEach((t=>{this.__slottedRouteTree.insert(t)}))}collectFieldRoutes(t){this.__fieldRouteTree=new RouteTree,this.clear(),t.forEach((({path:t})=>{this.__fieldRouteTree.insert(t)}))}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}search(t){return this.__fieldRouteTree.search(t)||this.__slottedRouteTree.search(t)}};oi.routerInstances=new Set,e([Pt()],oi.prototype,"component",void 0),e([Pt()],oi.prototype,"path",void 0),e([Mt()],oi.prototype,"pathname",void 0),e([Pt()],oi.prototype,"default",void 0),e([Mt()],oi.prototype,"type",void 0),e([Mt({type:Boolean})],oi.prototype,"cache",void 0),e([Pt()],oi.prototype,"routes",null),oi=ei=e([Rt("router"),At(g`:host{display:contents}`)],oi);var si=oi;const ri="auto";let ni=class Link extends GlobalStyle{constructor(){super(...arguments),this.type=ri,this.suppress=!1,this.replace=!1,this.target="_self",this.state={},this.handleState=()=>{switch(this.type){case ri:case"push":if(!this.replace){history.pushState(this.state,"",this.href);break}case"replace":history.replaceState(this.state,"",this.href)}}}get pathname(){return new URL(this.href,location.href).pathname}_handleClick(t){const{state:e,type:o,href:s,pathname:a,suppress:l}=this;if(!s)return;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:a,state:e}),s.startsWith("#")||"normal"===o)return;this.handleState();const h=[...si.routerInstances];l||o===ri&&!h.some((t=>t.search(location.pathname)))||(t.preventDefault(),si.routerInstances.forEach((t=>{t.handlePopstate()})))}render(){return ht`<a part="root" ${Vt(this.observedRecord)} href="${this.href||pt}" target="${this.target}" @click=${this._handleClick}> ${Ft()} </a>`}};e([Mt()],ni.prototype,"type",void 0),e([Mt({type:Boolean})],ni.prototype,"suppress",void 0),e([Mt({type:Boolean})],ni.prototype,"replace",void 0),e([Mt()],ni.prototype,"href",void 0),e([Mt()],ni.prototype,"target",void 0),ni=e([Rt("link"),At(g`:host{color:currentColor;cursor:default;display:inline-block}:host([href]){cursor:pointer}a{color:currentColor;display:contents}`)],ni);var ai=ni;let li=class Heading extends ai{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){const t=this.href||(this.id?"#"+this.id:void 0);return ht`<a part="root" href="${t||pt}"> ${this.wrapHeading(Ft(),t?ht`<i part="${jt("anchor",this.side)}">${this.anchor}</i>`:"")} </a>`}wrapHeading(...t){switch(this.as){case"h2":return ht`<h2>${t}</h2>`;case"h3":return ht`<h3>${t}</h3>`;case"h4":return ht`<h4>${t}</h4>`;case"h5":return ht`<h5>${t}</h5>`;case"h6":return ht`<h6>${t}</h6>`;default:return ht`<h1>${t}</h1>`}}};e([Mt()],li.prototype,"as",void 0),e([Mt()],li.prototype,"anchor",void 0),e([Mt()],li.prototype,"side",void 0),li=e([Rt("heading"),At(g`:host{display:block;text-align:start}[part~=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[part~=left][part~=anchor]{right:100%}[part~=right][part~=anchor]{left:100%}h1,h2,h3,h4,h5,h6{font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],li);var hi=li;hi.define();const di=qt("0 0 256 256")`<path fill="currentColor" d="M53.92 34.62a8 8 0 1 0-11.84 10.76l19.24 21.17C25 88.84 9.38 123.2 8.69 124.76a8 8 0 0 0 0 6.5c.35.79 8.82 19.57 27.65 38.4C61.43 194.74 93.12 208 128 208a127.1 127.1 0 0 0 52.07-10.83l22 24.21a8 8 0 1 0 11.84-10.76Zm47.33 75.84l41.67 45.85a32 32 0 0 1-41.67-45.85M128 192c-30.78 0-57.67-11.19-79.93-33.25A133.2 133.2 0 0 1 25 128c4.69-8.79 19.66-33.39 47.35-49.38l18 19.75a48 48 0 0 0 63.66 70l14.73 16.2A112 112 0 0 1 128 192m6-95.43a8 8 0 0 1 3-15.72a48.16 48.16 0 0 1 38.77 42.64a8 8 0 0 1-7.22 8.71a6 6 0 0 1-.75 0a8 8 0 0 1-8-7.26A32.09 32.09 0 0 0 134 96.57m113.28 34.69c-.42.94-10.55 23.37-33.36 43.8a8 8 0 1 1-10.67-11.92a132.8 132.8 0 0 0 27.8-35.14a133.2 133.2 0 0 0-23.12-30.77C185.67 75.19 158.78 64 128 64a118.4 118.4 0 0 0-19.36 1.57A8 8 0 1 1 106 49.79A134 134 0 0 1 128 48c34.88 0 66.57 13.26 91.66 38.35c18.83 18.83 27.3 37.62 27.65 38.41a8 8 0 0 1 0 6.5Z">`,ci=g`:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let pi=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.ringType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return h(super.observedRecord,"default","value")}set defaultValue(t){this.default=t}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(t){t.stopPropagation(),this.compositing||(this.value=t.target.value?.trim(),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}_handleChange(t){this.dispatchCustomEvent("change",this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||"",this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,"compositionstart",(()=>this.compositing=!0)),this.events.add(this._input,"compositionend",(t=>{this.compositing=!1,this._handleInput(t)})))}_changeInputType(t){this._input&&(this._input.type=t)}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return ht`<i part="prefix">${Ft("prefix")}</i>`}_renderSuffix(){return ht`<i part="suffix">${Ft("suffix")}</i>`}};e([Mt()],pi.prototype,"autocomplete",void 0),e([Mt({attribute:"ring-type"})],pi.prototype,"ringType",void 0),e([Mt({type:Boolean,reflect:!0})],pi.prototype,"disabled",void 0),e([Mt({reflect:!0})],pi.prototype,"type",void 0),e([Mt({reflect:!0})],pi.prototype,"placeholder",void 0),e([Mt({reflect:!0})],pi.prototype,"name",void 0),e([Mt()],pi.prototype,"value",void 0),e([Mt()],pi.prototype,"default",void 0),e([zt("input")],pi.prototype,"_input",void 0),pi=e([At(ci)],pi);let ui=class Input extends pi{constructor(){super(),this.type="text",this.variant="default",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css+("outline"===this.variant?`:host{${ie.ringColor}:currentColor}`:"")))}render(){return ht`<label part="root" ${Vt(this.observedRecord)}> ${[this._renderPrefix(),ht`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||pt}" autocomplete="${this.autocomplete||pt}" placeholder="${this.placeholder||pt}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </label>`}_renderSuffix(){const t="password";return this.type===t?ht`<i part="suffix icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}"> ${di()} </i>`:super._renderSuffix()}};e([Mt()],ui.prototype,"variant",void 0),e([zt("input")],ui.prototype,"_input",void 0),ui=e([Rt("input"),At(g`:host{display:block;${ie.input}-space:0.2em;${ie.input}-icon-color:grey}:host(:active),:host(:focus-within){${ie.ringColor}:currentColor;${ie.input}-icon-color:currentColor}[part~=root]{align-items:center;border-radius:inherit;display:flex;padding:.4em .5em;position:relative}[part=input]{background:none;color:currentColor;flex-grow:1;height:100%;width:100%}[part~=icon]{align-items:center;color:var(${ie.input}-icon-color);display:flex;justify-content:center}[part~=prefix],[part~=suffix]{display:flex;height:100%}[part~=suffix][part~=icon]{padding-inline-start:var(${ie.input}-space)}[part~=prefix][part~=icon]{padding-inline-end:var(${ie.input}-space)}`)],ui);var fi=ui;fi.define();let vi=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return ht`<div part="root" ${Vt(this.observedRecord)}> <header part="header">${Ft("header")}</header> <main part="main">${Ft()}</main> <footer part="footer">${Ft("footer")}</footer> </div>`}};e([Mt({type:Boolean})],vi.prototype,"sticky",void 0),vi=e([Rt("layout"),At(g`:host{flex-direction:column;grid-template-rows:auto 1fr auto;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],vi);var mi=vi;mi.define(),ai.define();let gi=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,e=20;if(!o(this.value)){const o=new Ranger(this.min,this.max);e=(+this.value-this.min)/o.diff*100,t="static"}return ht`<div part="root" ${Vt(this.observedRecord)} class="${t}"> <i part="value" style="width:${e}%;"></i> </div>`}};e([Mt({type:Number})],gi.prototype,"max",void 0),e([Mt({type:Number})],gi.prototype,"min",void 0),e([Mt({type:Number})],gi.prototype,"value",void 0),gi=e([Rt("progress"),At(g`:host{background:var(${ie.passive});border-radius:.25em;color:var(${ie.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],gi);var yi=gi;yi.define();const $i="range",bi=ee($i);let _i=class Range extends pi{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,s=t-o.length;return s>0?new Array(s).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return h(super.observedRecord,"ring-type")}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this._ranger.diff;return ht`<div part="root" ${Vt(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${Ct([["--from",(e-this.min)/s*100+"%"],["--to",(o-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"> <div part="track"></div> ${Yt(this.rangeValue.length,(t=>this._renderHandle(t)))} </div>`}_renderHandle(t){const{disabled:e,range:o,rangeValue:s}=this,a=!o||o&&t===s.length-1&&1===s.length;return ht`<i tabindex="0" part="${jt("handle",`handle-${t}`)}" @mousedown="${e?null:this.createMouseDown(t)}" style="${Ct({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${a?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const o=this._handles.item(t);o?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t)))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent)}createKeydownEvent(t){return e=>{const{rangeValue:o,step:s}=this;o.length<2&&(t=0);const a=o[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(a-s)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(a+s))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let s=o;this.range&&(s=[...this.value],s[t]=o),this.value=s,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:o,left:s,height:a,width:l}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/a:(t-s)/l)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,s)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?s:t),0):0,s=this.createSetValue(o);s(e),this.createMousedownListener(s)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const s=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",s)};this.events.add(document,"mouseup",s)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,o(this.value)&&(o(this.default)?this.value=Math.round(t/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort(((t,e)=>t-e)):this.value}};e([Mt({type:Number})],_i.prototype,"min",void 0),e([Mt({type:Number})],_i.prototype,"max",void 0),e([Mt({type:Number})],_i.prototype,"step",void 0),e([Mt({type:Boolean,reflect:!0})],_i.prototype,"vertical",void 0),e([Mt({type:Array})],_i.prototype,"value",void 0),e([Mt({type:Array})],_i.prototype,"default",void 0),e([zt("root")],_i.prototype,"_root",void 0),e([It("[part=handle]")],_i.prototype,"_handles",void 0),e([Pt()],_i.prototype,"lastFocus",void 0),_i=e([Rt($i),At(g`:host{${bi}--track-width:.5em;${bi}--handle-scale:1;${bi}--track-background:var(${ie.active});background:var(${ie.passive});display:block;height:var(${bi}--track-width);width:100%}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:100%;width:-moz-fit-content;width:fit-content}[part=root]{position:relative;--from:0%;--to:50%}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${bi}--track-background);height:100%;justify-content:space-between;left:min(var(--from),var(--to));pointer-events:none;width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part=track],[part~=handle]{display:flex;position:absolute}[part~=handle]{align-items:center;background:var(${ie.background});border:.1em solid;border-radius:50%;height:1em;justify-content:center;outline:0;transform:scale(var(${bi}--handle-scale)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,g`[vertical]{height:inherit;width:var(${bi}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));left:0;top:min(var(--from),var(--to));width:100%}`,g`[part~=handle]{left:var(--handle);top:0}[vertical] [part~=handle]{left:0;top:var(--handle)}`)],_i);var wi=_i;wi.define();const xi="rotate",ki=ee(xi);let Ci=class Rotate extends GlobalStyle{render(){return ht`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${Ft()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:o}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${o}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:o,width:s,height:a}=this._root.getBoundingClientRect(),{clientX:l,clientY:h}=t;return{rotateX:-(h-o-a/2)/a/2,rotateY:(l-e-s/2)/s/2}}};e([zt("root")],Ci.prototype,"_root",void 0),Ci=e([Rt(xi),At(g`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${ki}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${ki}--offset)*-1);padding:var(${ki}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],Ci);var Si=Ci;Si.define(),si.define();const Ai=m("[direction-inset-align]");g`[direction^=top] ${Ai}{top:0}[direction^=bottom] ${Ai}{bottom:0}[direction$=right] ${Ai}{right:0}[direction$=left] ${Ai}{left:0}`;const Ri=m("[direction-outset-place]"),Ei=g`[direction^=top] ${Ri}{bottom:100%}[direction^=bottom] ${Ri}{top:100%}[direction$=right] ${Ri}{left:100%}[direction$=left] ${Ri}{right:100%}`;function Ti(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function Mi(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}let Pi=class Select extends fi{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}get observedRecord(){return{...super.observedRecord,direction:this.direction||this.autoDirection}}render(){return ht`<label part="root" ${Vt(this.observedRecord)}> ${[this._renderPrefix(),ht`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||pt}" autocomplete="${this.autocomplete||pt}" placeholder="${this.placeholder||pt}" @focus="${this._handleFocus}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix(),ht`<label part="content" direction-outset-place> ${Ft()} </label>`]} </label>`}_renderSuffix(){return ht`<i part="suffix icon">${Oe()}</i>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||Mi(this.lastChecked,0),Mi(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{Mi(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>Mi(t,0))),this.defaultChecked.forEach((t=>Mi(t,1)))}select(t,e){e||=t,e=e.trim();let o=0;if(this.multiple){const s=this.__store.findIndex((e=>e.value===t));s>-1?this.__store.splice(s,1):(this.__store.push({value:t,text:e}),o=1),this.value=this.__store.map((t=>t.value)),this.text=this.__store.map((t=>t.text)).join(", ")}else this.value===t?(this.value="",this.text=""):(this.value=t,this.text=e,o=1);return this.dispatchCustomEvent("select",this.value),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||Ti(this.optionValue(e),t)||Ti(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,s=e.indexOf(",",t)||e.length;return e.slice(o,s)}(this._input.selectionStart,e):e),this.dispatchCustomEvent("input",this.value,{bubbles:!0})}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};e([Mt()],Pi.prototype,"text",void 0),e([zt("content")],Pi.prototype,"_content",void 0),e([Mt()],Pi.prototype,"direction",void 0),e([Mt({type:Boolean})],Pi.prototype,"multiple",void 0),e([Mt({type:Boolean})],Pi.prototype,"visible",void 0),e([Pt()],Pi.prototype,"autoDirection",void 0),Pi=e([Rt("select"),At(Ei,g`.outline,:host(:focus-within){${ie.input}-outline-color:currentColor}[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[visible] [part=content]{visibility:visible}`)],Pi);var Ni=Pi;Ni.define();const Oi="skeleton",Bi=ee(Oi);let Ii=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.loading=!0}render(){return this.loading?ht`<div part="root">${Ft("loading")}</div>`:Ft()}};e([Pt()],Ii.prototype,"loading",void 0),Ii=e([Rt(Oi),At(g`:host{${Bi}--from:var(${ie.background});${Bi}--to:var(${ie.passive});${Bi}--deg:95deg;${Bi}--duration:2s;animation:_ var(${Bi}--duration) ease-in-out infinite none running;background-color:transparent;background-image:linear-gradient(var(${Bi}--deg),var(${Bi}--from) 36%,var(${Bi}--to) 50%,var(${Bi}--from) 64%);background-size:200% 100%;flex-shrink:0;height:2em;overflow:hidden;width:100%}@keyframes _{0%{background-position:150%}to{background-position:-50%}}[part=root]{display:contents}:host,:host([contents]) [part=root]{display:block}`)],Ii);var zi=Ii;zi.define();const Di="split",Ui=ee(Di);let Hi=class Split extends pi{constructor(){super(),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],new StyleController(this,(()=>new RingBuilder({selector:"[part=input-box]",type:this.ringType}).css))}get observedRecord(){return h(super.observedRecord,"ring-type")}render(){return ht`<div part="root" ${Vt(this.observedRecord)}> ${Yt(this.len,(t=>ht`<span part="input-box" ring-type="${this.ringType}" class="${jt({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}"> ${this.currentValue[t]} </span>`))} <input part="input" @blur=${this.blur} @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len," ")}"/> </div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(t){t.stopPropagation(),this.compositing||(this.fillInput(t.data),this.value=this.currentValue.join(""),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}fillInput(t){if(null===t){if(null!==this.currentValue[this.current])this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;const t=this.currentValue.findLastIndex((t=>null!==t));this.current=this.current-1<0?t<0?0:t:this.current-1}return}const e=t.length>1;if(this.currentValue[this.current]=t[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),-1===this.current&&this.blur()):this.current+=1,e){const e=t.slice(1);e&&this.fillInput(e)}}focus(){this.focusAt(this.current),super.focus()}focusAt(t){this.current=t,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split("").concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};e([Mt({type:Number})],Hi.prototype,"len",void 0),e([Mt({type:Number})],Hi.prototype,"index",void 0),e([Pt()],Hi.prototype,"current",void 0),e([Pt()],Hi.prototype,"currentValue",void 0),Hi=e([Rt(Di),At(g`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${Ui}--size:2em;${Ui}--gap:.25em}[part=root]{display:flex;gap:var(${Ui}--gap);justify-content:space-between;position:relative}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${Ui}--size);justify-content:center;width:var(${Ui}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${ie.ringColor}:var(${ie.active})}`)],Hi);var ji=Hi;ji.define();const Li="switch",Vi=ee(Li);let Gi=class Switch extends pi{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return h(super.observedRecord,"ring-type")}render(){return ht`<div part="root" ${Vt(this.observedRecord)} class="round"> <input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" @change="${this._handleChange}"/> <span part="handle"></span> </div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};e([Mt({type:Boolean})],Gi.prototype,"default",void 0),e([Mt({type:Boolean,attribute:"checked",reflect:!0})],Gi.prototype,"value",void 0),Gi=e([Rt(Li),At(g`:host,:host([contents]) [part=root]{display:inline-block}:host{${Vi}-width:3em;${Vi}-height:calc(var(${Vi}-width)/2);${Vi}-handle-size:1.25em;${Vi}-handle-space:calc(var(${Vi}-width)/4 - var(${Vi}-handle-size)/2);background:var(${ie.passive});border-radius:calc(var(${Vi}-height)/2);height:var(${Vi}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${Vi}-width)}:host([checked]){background:var(${ie.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:var(${ie.background});border-radius:100%;height:var(${Vi}-handle-size);justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%) translateX(var(${Vi}-handle-space));width:var(${Vi}-handle-size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],Gi);var Fi=Gi;Fi.define();const Wi="text",qi=ee(Wi);let Yi=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return ht`<span part="root" ${Vt(this.observedRecord)} class="${jt(this.underline)}"> ${Ft()} </span>`}};e([Mt()],Yi.prototype,"underline",void 0),e([Mt({type:Boolean})],Yi.prototype,"clip",void 0),Yi=e([Rt(Wi),At(g`:host{${qi}--color:currentColor;${qi}--color-hover:currentColor;${qi}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${qi}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap}[part=root]:hover{color:var(${qi}--color-hover,var(${qi}--color))}[part=root]:active{color:var(${qi}--color-active,var(${qi}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${ie.backgroundClip});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],Yi);var Xi=Yi;Xi.define();const Zi="tabs",Ki=ee(Zi),Qi="hover";let Ji=class Tabs extends GlobalStyle{constructor(){super(),this.ringType="border",this.useSlot=!1,this.index=0,new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return ht`<ul part="root" ${Vt(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map(((t,e)=>t||this.useSlot?ht`<li part="${jt("item",{selected:this.index===e})}" @mouseenter=${()=>{this.move(this._lastIndex,e),this._lastIndex=e}} @click=${()=>this.select(e)}> ${this.useSlot?Ft(t):t} <div part="indicator"></div> </li>`:""))} </ul>`}connectedCallback(){super.connectedCallback(),this._lastIndex=this.index}_handleMouseLeave(){const t=this._items[this._lastIndex];t&&t.part.remove(Qi),this._lastIndex=this.index}move(t,e){if(t===e)return;const{_items:o,_indicators:s}=this,a=o[e];if(!a)return;a.part.add(Qi);const l=o[t];if(!l)return;l.part.remove(Qi);const h=s[e],d=s[t];if(!h||!d)return;const c=d.getBoundingClientRect(),p=a.getBoundingClientRect(),u=c.x-p.x,f=c.y-p.y,v=c.width,{style:m}=h;m.transform=`translate3d(${u}px,${f}px,0)`,m.width=v+"px",m.transition=d.style.transition="none",h.getBoundingClientRect(),m.width=m.transform=m.transition=d.style.transition=""}select(t){const{index:e,tabs:o,_lastIndex:s,useSlot:a}=this;o&&e!==t&&t in o&&(this.dispatchCustomEvent("select",t),this.move(s,t),this._lastIndex=t,e in o&&(o[e]||a)&&(this.index=t))}};e([Mt({attribute:"ring-type"})],Ji.prototype,"ringType",void 0),e([Mt({type:Boolean})],Ji.prototype,"useSlot",void 0),e([Mt({type:Array})],Ji.prototype,"tabs",void 0),e([Mt({type:Number})],Ji.prototype,"index",void 0),e([It("[part~=item]")],Ji.prototype,"_items",void 0),e([It("[part=indicator]")],Ji.prototype,"_indicators",void 0),Ji=e([Rt(Zi),At(g`:host{${Ki}--indicator-background:var(${ie.passive});${Ki}--space:0.25em;border-radius:var(${ie.radius});cursor:default;display:flex;transition:.3s ease-in-out;width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;display:flex;flex-direction:inherit;gap:var(${Ki}--space);overflow-x:clip;padding:.2em;position:relative;transition:inherit;transition-property:width,transform,opacity;z-index:1}[useslot] [part~=item]{padding:0}[part~=item]{display:block;padding:0 .25em;position:relative;white-space:nowrap}[part=indicator],[part~=item]{border-radius:inherit;transition:inherit;transition-property:inherit;width:100%}[part=indicator]{background:var(${Ki}--indicator-background);height:100%;inset:0;opacity:0;position:absolute;z-index:-1}[part~=selected]{background:var(${Ki}--indicator-background)}[part~=hover] [part=indicator],[part~=selected] [part=indicator]{opacity:1}`)],Ji);var to=Ji;function eo(t,e=2){return t.toString().padStart(e,"0").split("")}to.define();let io=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return ht`<span part="root" ${Vt(this.observedRecord)}> ${function(t,e=new Date,o="%"){var s;if(!t)return t;if(isNaN(e.getTime()))return;const a=`${o}${o}`,l=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"g"),((t,e)=>(l.push(e),a)));const h=e.getTimezoneOffset()/-60,d={Z:[h>=0?"+"+h.toString():h.toString()],Y:e.getFullYear().toString().split(""),M:eo(e.getMonth()+1),D:eo(e.getDate()),h:eo(e.getHours()),m:eo(e.getMinutes()),s:eo(e.getSeconds()),S:eo(e.getMilliseconds(),3)},c=[];for(const e of t.split("").reverse()){const t=null===(s=d[e])||void 0===s?void 0:s.pop();t?c.push(t):c.push(e)}return c.reverse().join("").replace(new RegExp(a,"g"),(()=>l.shift()))}(this.format,this.time,this.escape)} </span>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchCustomEvent("time",this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};e([Mt()],io.prototype,"escape",void 0),e([Mt()],io.prototype,"format",void 0),e([Mt({type:Object})],io.prototype,"time",void 0),e([Mt({type:Number})],io.prototype,"timeout",void 0),e([Mt({type:Number})],io.prototype,"gap",void 0),io=e([Rt("time"),At(g`:host{text-align:center}`)],io);var oo,so=io;so.define();const ro="tooltip",no=ee(ro);let ao=oo=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=oo.aligns[this.align]||"inherit",e="focus"===this.type;return ht`<div part="root" ${Vt(this.observedRecord)} tabindex="${e?0:-1}" @focus="${e?()=>this.open=!0:null}" @blur="${e?()=>this.open=!1:null}" @mouseenter="${e?null:()=>this.open=!0}" @mouseleave="${e?null:()=>this.open=!1}" style="justify-content:${t};align-items:${t}"> ${Ft()} <div part="tip" direction-outset-place> ${this.tip?ht`<span class="passive">${this.tip}</span>`:Ft("tip")} </div> </div>`}};ao.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},e([Mt()],ao.prototype,"tip",void 0),e([Mt()],ao.prototype,"direction",void 0),e([Mt()],ao.prototype,"align",void 0),e([Mt({type:Boolean})],ao.prototype,"propagation",void 0),e([Mt()],ao.prototype,"type",void 0),ao=oo=e([Rt(ro),At(Ei,g`:host{${no}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{border-radius:inherit;position:relative;transition:inherit}[part=tip]{height:-moz-fit-content;height:fit-content;position:absolute;transition:inherit;-webkit-user-select:none;user-select:none;visibility:hidden;width:-moz-fit-content;width:fit-content}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${no}--tip-background)}[propagation] [part=tip]{pointer-events:none}`)],ao);var lo=ao;lo.define();const ho="typewriter",co=ee(ho);let po=class Typewriter extends GlobalStyle{constructor(){super(...arguments),this.content="",this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=""}get len(){return this.content.length}render(){return ht`<div part="root" ${Vt(this.observedRecord)}> ${Ft()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchCustomEvent(this.index===this.len?"done":"write",this.contentInternal)}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};e([Mt()],po.prototype,"content",void 0),e([Mt({type:Boolean})],po.prototype,"ended",void 0),e([Mt({type:Number})],po.prototype,"max",void 0),e([Mt({type:Number})],po.prototype,"min",void 0),e([Mt({type:Number})],po.prototype,"delay",void 0),e([Mt({type:Number})],po.prototype,"index",void 0),e([Pt()],po.prototype,"contentInternal",void 0),e([Ot("i")],po.prototype,"_i",void 0),po=e([Rt(ho),At(g`:host{${co}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${co}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],po);var uo=po;return uo.define(),t.Alert=ae,t.Avatar=he,t.Badge=ve,t.Breath=be,t.Button=ue,t.Card=ke,t.Carousel=Ee,t.Chip=Ne,t.Details=De,t.Dialog=Ve,t.Divider=Fe,t.Dragbox=qe,t.Flex=Ze,t.Form=Qe,t.Grid=ii,t.Heading=hi,t.Input=fi,t.Layout=mi,t.Link=ai,t.Progress=yi,t.Range=wi,t.Rotate=Si,t.Router=si,t.Select=Ni,t.Skeleton=zi,t.Split=ji,t.Switch=Fi,t.Tabs=to,t.Text=Xi,t.Time=so,t.Tooltip=lo,t.Typewriter=uo,t}({});
57
+ */var o,s},Dt=6;let Ut=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const jt=(t,e)=>(t?t+(e?" "+e:""):e)||"",Vt=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(a(e))return jt(t,Vt(...e));if(r(e)){for(const o in e)e[o]&&(t=jt(t,o));return t}return jt(t,e)}),"");function Ht(t,e){(t=>o(t)||!1===t)(e)?this.removeAttribute(t):!0===e?this.setAttribute(t,""):s(e)||(t=>"number"==typeof t)(e)&&!Number.isNaN(e)?this.setAttribute(t,String(e)):this[t]=e}const Lt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Ut{render(t,e){}update(t,[e,o=Ht]){if(e&&t.type===Dt)for(const s in e)o.call(t.element,s,e[s]);return dt}}),Gt=((t,e)=>o=>t({...e,...o}))(Lt,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Ft=(t,e)=>lt`<slot name="${t||ct}">${e||ct}</slot>`,Wt=(t,e)=>{if(!t)return ct;const o=s(t)?t:kt(t);return o?lt`<style media="${ct}">${o}</style>`:ct},qt=t=>(e,...o)=>{const r=ht(e,o),a=s(t)?t:t.join(" "),l=t=>lt`<svg viewBox="${a}" ${Gt(t)}>${r}</svg>`;return l.body=r,l.viewBox=a,l};function*Yt(t,e,o){for(let o=0;o<t;o++)yield e(o)}function Xt(t,e=this){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&Xt(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const s of e.children)Xt(t,s).forEach((t=>o.add(t)));return Array.from(o)}function Zt(t,e=this){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=Zt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const s of e.children)if(o=Zt(t,s),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,s){if(!t||!o)return;const r=this.inner.get(e)||new Map,a=r.get(t)||new Set;return a.add(o),r.set(t,a),this.inner.set(e,r),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(!t||!o)return;const r=this.inner.get(e);if(r){const s=r.get(t);s&&(s.delete(o),s.size||(r.delete(t),r.size||this.inner.delete(e)))}t.removeEventListener(e,o,s)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,s){const[r,a]=((t,e,o)=>{let s,r;switch(t){case MutationObserver:case ResizeObserver:s=new t(e),r=t=>s.observe(t,o);break;case IntersectionObserver:s=new t(e,o),r=t=>s.observe(t);break;case PerformanceObserver:s=new t(e),r=()=>s.observe(o)}return[s,r]})(e,o,s);if(r)return this.inner.set(r,(this.inner.get(r)||new Set).add(t)),a(t),r}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}random(){return this.normalize(Math.random()*this.diff+this.min)}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}const Kt=(t,e,o)=>t.startsWith(e)&&t.endsWith(o);class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const s=e[o];let r=this.findStrict(s);r||(r=new RouteTree,r.part=s,r.matchType=RouteTree.dynamic(s).matchType,this.children.push(r),this.sorted=!1),r.insert(t,e,o+1)}search(t,e=0){if(s(t)&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.MatchTypes.multi)return this.pattern?this:null;const o=t[e],r=this.filterWide(o);for(const o of r){const s=o.search(t,e+1);if(null!==s)return s}return null}findStrict(t){return this.children.find((e=>e.part===t))||null}filterWide(t){return this.children.filter((e=>e.part===t||e.matchType))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const o=RouteTree.split(t),s=RouteTree.split(e),r={};for(let t=0;t<s.length;t++){const e=s[t],{key:a,matchType:l}=RouteTree.dynamic(e);if(l===RouteTree.MatchTypes.single)r[a]=o[t];else if(l===RouteTree.MatchTypes.multi){r[a]=o.slice(t).join("/");break}}return r}static dynamic(t){if(t){if(Kt(t,"{","}")||Kt(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.MatchTypes.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.MatchTypes.multi}}return{key:t,matchType:RouteTree.MatchTypes.strict}}static split(t){return t.split("/").filter((t=>t))}}RouteTree.MatchTypes={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const Qt=(t,{attribute:e})=>!0===e||void 0===e?String(t).toLowerCase():!1!==e&&"symbol"!=typeof t?e:void 0,Jt=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends $t{static define(t=this.elementTagName,e){this.isDefined()||this.godownConfig.define(t,this,e)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(const[t,e]of this.elementProperties.entries()){const o=Qt(t,e);o&&this.elementAttributes.set(o,t)}}get observedRecord(){const t={};for(const[e,o]of this.constructor.elementAttributes.entries())t[e]=this[o];return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),Jt.test(t)||(t=`:host{${t}}`),this.shadowRoot?(this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=t,this.__stylex.index=this.adoptStyles(t)):this.__stylex.lazy=t}constructor(t){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Zt.call(this,t)}deepQuerySelectorAll(t){return Xt.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return h(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,o){this.registry.define(t,e,o),this.components.set(t,e)}get(t){return this.registry.get(t)}getName(t){const{getName:e}=this.registry;return e?e(t):[...this.components.entries()].find((([,e])=>e===t))?.[0]||null}whenDefined(t){return this.registry.whenDefined(t)}upgrade(t){this.registry.upgrade(t)}},e([Mt({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),e([Mt({reflect:!0})],GodownElement.prototype,"stylex",null);const te=m`*,:host{box-sizing:border-box}i{font-style:normal}a{color:currentColor;text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}input{background:none;border:0;color:currentColor;font-size:100%;outline:0;padding:0}dd,dl{margin:0}dialog,ul{margin:0;padding:0}dialog{border:0;outline:0}[popover]{border:0;margin:0;padding:0}@supports not selector(:popover-open){[popover]{display:none}}`;class GlobalStyle extends GodownElement{}const ee=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let o=0;for(;o<t.length&&e(t.slice(o,o+1));)o+=1;return t.slice(o)})(((t,e)=>{if(!t||!e)return t;let o=t.length;for(;o>0&&e(t.slice(o-1,o));)o-=1;return t.slice(0,o)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function ie(t,e=1){return function(t){return f(`--${t}`)}(ee+"-".repeat(e)+t)}const oe={background:ie("background",2),foreground:ie("foreground",2),backgroundClip:ie("background-clip",2),primaryBackground:ie("primary",2),primaryForeground:ie("primary-foreground",2),muted:ie("muted",2),active:ie("active",2),passive:ie("passive",2),input:ie("input",2),radius:ie("radius",2),ringWidth:ie("ring-width",2),ringColor:ie("ring-color",2)};GlobalStyle.styles=[te,f(((t,e,o)=>{const s=[..._t(e)];return((t,{truecase:e,falsecase:o})=>{const s="@supports";let r="";return e&&(r+=`${s}(${t}){${e}}`),o&&(r+=`${s} not (${t}){${o}}`),r})("color:light-dark(#fff,#000)",{truecase:kt([[t,St(s.map((([t,[e,o]])=>[t,`light-dark(${e},${o})`])))]]),falsecase:kt([[t,St(s.map((([t,e])=>[t,e[o]])))]])})})(":host",[[oe.background,["hsl(0 0% 96%)","hsl(0 0% 4%)"]],[oe.foreground,["hsl(0 0% 4%)","hsl(0 0% 96%)"]],[oe.muted,["hsl(0 0% 88%)","hsl(0 0% 18%)"]]],1)),f(kt({":host":St([[oe.primaryBackground,Ct(oe.foreground)],[oe.primaryForeground,Ct(oe.background)],[oe.active,Ct(oe.primaryBackground)],[oe.passive,Ct(oe.muted)],[oe.backgroundClip,`linear-gradient(to bottom, ${Ct(oe.foreground)}, ${Ct(oe.muted)})`],[oe.ringColor,Ct(oe.passive)],[oe.ringWidth,".075em"]])})),m`:host([contents]){display:contents}[part=root]{height:100%;width:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,m`:host{${oe.radius}:0.2em;border-radius:var(${oe.radius});border-style:none;outline-style:none}`];const se=({width:t,color:e,inset:o})=>`outline-style:solid;outline-color:${e};outline-width:${t};${o?`outline-offset:calc(-1 * ${t});`:""}`,re=({width:t,color:e,inset:o})=>`box-shadow:${o?"inset":""} 0 0 0 ${t} ${e};`,ne={outline:(t,e)=>se({width:t,color:e,inset:!1}),"outline-inset":(t,e)=>se({width:t,color:e,inset:!0}),"box-shadow":(t,e)=>re({width:t,color:e,inset:!1}),shadow:(t,e)=>re({width:t,color:e,inset:!1}),"box-shadow-inset":(t,e)=>re({width:t,color:e,inset:!0}),"shadow-inset":(t,e)=>re({width:t,color:e,inset:!0}),border:(t,e)=>(({width:t,color:e})=>`border-style:solid;border-color:${e};border-width:${t};`)({width:t,color:e})};class RingBuilder{constructor({selector:t=":host",width:e=Ct(oe.ringWidth),color:o=Ct(oe.ringColor),type:s}={}){if(s&&s in ne){const r=ne[s](e,o);this.css=`${t}{${r}}`}else this.css=""}get styleSheet(){return f(this.css).styleSheet}}const ae="ring-type";let le=class Alert extends GlobalStyle{constructor(){super(),this.ringType="border",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> <div>${Ft("prefix")}</div> <div part="content"> <strong part="title">${Ft("title",this.title)}</strong> ${Ft("",this.content)} </div> <div>${Ft("suffix")}</div> </div>`}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};e([Mt({attribute:ae})],le.prototype,"ringType",void 0),e([Mt()],le.prototype,"title",void 0),e([Mt()],le.prototype,"content",void 0),le=e([Rt("alert"),At(m`:host{background:var(${oe.background});color:var(${oe.foreground})}:host,:where(:host([contents]) [part=root]){display:block}[part=root]{align-items:center;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:.75em}[part=content],[part=root]{display:grid}`)],le);var he=le;he.define();let de=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return lt`<div part="root" ${Lt(l(this.observedRecord,"src"))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?lt`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?lt`<span part="name">${this.formatName()}</span>`:Ft()}formatName(){return this.name}_handleError(){this.src=void 0}};e([Mt()],de.prototype,"src",void 0),e([Mt()],de.prototype,"name",void 0),e([Mt({type:Boolean})],de.prototype,"round",void 0),de=e([Rt("avatar"),At(m`:host{background:var(${oe.passive});color:var(${oe.foreground});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],de);var ce=de;ce.define();const pe="button",ue=ie(pe);let ve=class Button extends GlobalStyle{constructor(){super(...arguments),this.plain=!1,this.disabled=!1,this.active=!1,this.round=!1}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${Ft("",this.content)} <span part="modal-root"></span> </div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:o,height:s}=this.getBoundingClientRect(),{x:r,y:a}=this._root.getBoundingClientRect(),l=2*Math.sqrt(s**2+o**2)+"px";e.style.height=l,e.style.width=l,e.style.left=t.x-r+"px",e.style.top=t.y-a+"px",this._modalRoot.appendChild(e),e.animate([{transform:"scale(0) translate(-50%, -50%)",opacity:.1},{transform:"scale(1) translate(-50%, -50%)",offset:.8},{opacity:0}],{duration:800,iterations:1}),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}};e([Mt({type:Boolean,reflect:!0})],ve.prototype,"plain",void 0),e([Mt({type:Boolean,reflect:!0})],ve.prototype,"disabled",void 0),e([Mt({type:Boolean,reflect:!0})],ve.prototype,"active",void 0),e([Mt({type:Boolean,reflect:!0})],ve.prototype,"round",void 0),e([Mt()],ve.prototype,"content",void 0),e([zt("modal-root")],ve.prototype,"_modalRoot",void 0),e([zt("root")],ve.prototype,"_root",void 0),ve=e([Rt(pe),At(m`:host(:not([disabled]):active){transform:scale(var(${ue}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([plain]){${ue}--gradients:unset;${ue}--focus-scale:unset}`,m`:host{${ue}--modal-animation-duration:1.5s;${ue}--focus-scale:.97;${ue}--deg:45deg;background:var(${oe.primaryBackground});border-style:none;border-width:var(${oe.ringWidth});color:var(${oe.primaryForeground});cursor:pointer;display:block;overflow:hidden;text-align:center;width:-moz-fit-content;width:fit-content}[part=root]:not([contents]){height:100%;width:100%}[part=root]{display:grid;padding:.25em .75em;place-content:center;position:relative;-webkit-user-select:none;user-select:none}i{background:currentColor;border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}`)],ve);var fe=ve;let me=class Badge extends fe{constructor(){super(...arguments),this.plain=!0,this.round=!0}};me=e([Rt("badge"),At(m`:host{font-size:.75em}[part=root]{padding:0 .5em}`)],me);var ge=me;ge.define();const ye="breath",$e=ie(ye),be=/[\s,]+/;let _e=class Breath extends GlobalStyle{render(){const t=this.getTexts();return lt`<div part="root" ${Lt(this.observedRecord)}> ${[t.map(this._renderText),Wt(this._computeStyle(t.length))]} </div>`}_renderText(t){return lt`<span class="rel"> <span class="nocolor">${t}</span> <span class="colorful">${t}</span> </span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(be).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.duration||1e3*(2*t+2);let s="";for(let e=1;e<=t;e++)s+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}ms;background:var(${$e}--${e},var(${$e}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}};e([Mt()],_e.prototype,"content",void 0),e([Mt({type:Number})],_e.prototype,"duration",void 0),_e=e([Rt(ye),At(m`:host{${$e}--deg:60deg;${$e}--1-1:#dd3c3c;${$e}--1-2:#f5993d;${$e}--2-1:#26d944;${$e}--2-2:#29a3a3;${$e}--3-1:#8c30e8;${$e}--3-2:#0d80f2;${$e}--1:linear-gradient(var(${$e}--deg),var(${$e}--1-1),var(${$e}--1-2));${$e}--2:linear-gradient(var(${$e}--deg),var(${$e}--2-1),var(${$e}--2-2));${$e}--3:linear-gradient(var(${$e}--deg),var(${$e}--3-1),var(${$e}--3-2))}`,m`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,m`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${oe.backgroundClip});position:absolute;top:0}`)],_e);var we=_e;we.define(),fe.define();const xe="card",ke=ie(xe);let Se=class Card extends GlobalStyle{constructor(){super(),this.ringType="border",this.footer=!1,this.header=!1,new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${[this.header?Ft("header"):"",Ft(),this.footer?Ft("footer"):""]} </div>`}};e([Mt({attribute:ae})],Se.prototype,"ringType",void 0),e([Mt({type:Boolean})],Se.prototype,"footer",void 0),e([Mt({type:Boolean})],Se.prototype,"header",void 0),Se=e([Rt(xe),At(m`:host{${ke}--padding:.75em;background:var(${oe.background});color:var(${oe.foreground});display:block;flex-shrink:0}slot{display:block;padding:var(${ke}--padding)}[part=root]{border-radius:inherit}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],Se);var Ce=Se;Ce.define();const Ae=qt("0 0 256 256")`<path fill="currentColor" d="M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z">`,Re=qt("0 0 256 256")`<path fill="currentColor" d="m181.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L164.69 128L90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32">`;function Ee(t){return t.getBoundingClientRect().width}let Te=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${Ae()} </i> <div part="move-root">${Ft()}</div> <i part="next" @click="${this.next}"> ${Re()} </i> </div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=Ee(this.children[e]);return t+=(Ee(this)-Ee(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};e([Mt({type:Number})],Te.prototype,"index",void 0),e([Mt({type:Number})],Te.prototype,"autoChange",void 0),e([zt("move-root")],Te.prototype,"_moveRoot",void 0),Te=e([Rt("carousel"),At(m`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],Te);var Me=Te;Me.define();const Ne="chip",Pe=ie(Ne);let Oe=class Chip extends GlobalStyle{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${Ft()} ${this.value||this.dot?lt`<div part="chip">${this.dot?"":this.formatValue(this.value)}</div>`:""} </div>`}};e([Mt()],Oe.prototype,"position",void 0),e([Mt({type:Number})],Oe.prototype,"value",void 0),e([Mt({type:Boolean})],Oe.prototype,"dot",void 0),e([Mt({type:Number})],Oe.prototype,"max",void 0),Oe=e([Rt(Ne),At(m`:host{${Pe}--offset:0%;${Pe}--offset-x:var(${Pe}--offset);${Pe}--offset-y:var(${Pe}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=chip]{background:var(${oe.primaryBackground});border-radius:calc(infinity*1px);color:var(${oe.primaryForeground});font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=chip]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=chip]{top:calc(var(${Pe}--offset-y))}[position$=right] [part=chip]{left:calc(100% - var(${Pe}--offset-x))}[position^=bottom] [part=chip]{top:calc(100% - var(${Pe}--offset-y))}[position$=left] [part=chip]{left:calc(var(${Pe}--offset-x))}`)],Oe);var Be=Oe;Be.define();const Ie=qt("0 0 256 256")`<path fill="currentColor" d="m213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32">`,ze="details",De=ie(ze);let Ue=class Details extends GlobalStyle{constructor(){super(...arguments),this.open=!1,this.float=!1,this.fill=!1,this.summary=""}render(){return lt`<dl part="root" ${Lt(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${Ft("summary",this.summary)}</span> <span part="icon">${Ft("icon",Ie())}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${Ft()}</div> </dd> </dl>`}updated(t){const e=t.get("open");void 0!==e&&this.dispatchCustomEvent("change",e)}toggle(t){this.open=t??!this.open}close(){this.open=!1}show(){this.open=!0}};e([Mt({type:Boolean,reflect:!0})],Ue.prototype,"open",void 0),e([Mt({type:Boolean})],Ue.prototype,"float",void 0),e([Mt({type:Boolean})],Ue.prototype,"fill",void 0),e([Mt()],Ue.prototype,"summary",void 0),Ue=e([Rt(ze),At(m`:host{${De}--icon-deg-open:0deg;${De}--icon-deg-close:90deg;display:block;transition:.3s}[part=root]{position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${De}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${De}--icon-deg-open))}`)],Ue);var je=Ue;je.define();const Ve="dialog",He=ie(Ve);let Le=class Dialog extends GlobalStyle{constructor(){super(...arguments),this.open=!1,this.modal=!1,this.__modalInvoke=!1}render(){return lt`<div part="root" @click=${this.show}> ${Ft("trigger")} </div> <dialog part="dialog" role="dialog"> ${Ft("dialog")}${Ft()} </dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}show(){this.open=!0}close(){this.open=!1}toggle(t){this.open=t??!this.open}updated(t){t.has("open")&&(this.open?(this.modal?this._dialog.showModal():this._dialog.show(),this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this))):(this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this._dialog.close(),this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){"Escape"===t.key&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}};e([Mt({type:Boolean,reflect:!0})],Le.prototype,"open",void 0),e([Mt({type:Boolean,reflect:!0})],Le.prototype,"modal",void 0),e([zt("dialog")],Le.prototype,"_dialog",void 0),Le=e([Rt(Ve),At(m`:host{${He}--background-modal:#000;${He}--opacity-modal:0.2;background:none;display:block;width:-moz-fit-content;width:fit-content}dialog{background:none;left:50%;position:relative;position:fixed;top:50%;transform:translate(-50%,-50%);z-index:1}::backdrop{background:var(${He}--background-modal);opacity:var(${He}--opacity-modal)}`)],Le);var Ge=Le;Ge.define();let Fe=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return lt`<div part="root"></div>`}};e([Mt({type:Boolean,reflect:!0})],Fe.prototype,"vertical",void 0),Fe=e([Rt("divider"),At(m`:host{background:currentColor;color:var(${oe.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}`)],Fe);var We=Fe;We.define();let qe=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return lt`<div part="root" ${Lt(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${Ft()} </div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),o=this.getBoundingClientRect();this.__t=o.top-e.top,this.__l=o.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:o,__l:s,__t:r,style:a}=this,{height:l,width:h}=this._offsetParent.getBoundingClientRect(),{width:d,height:c}=this.getBoundingClientRect(),p=t.x-(e-s),u=t.y-(o-r);a.left=p<0?"0":p<h-d?`${p}px`:h-d+"px",a.top=u<0?"0":u<l-c?`${u}px`:l-c+"px"}reset(){const{x:t,y:e,style:o,offsetWidth:s,offsetHeight:r,offsetLeft:a,offsetTop:l}=this,{height:h,width:d}=this._offsetParent.getBoundingClientRect();o.left=t||"0",o.top=e||"0",a>d-s&&(o.left=d-s+"px"),l>h-r&&(o.top=h-r+"px")}};e([Mt()],qe.prototype,"x",void 0),e([Mt()],qe.prototype,"y",void 0),qe=e([Rt("dragbox"),At(m`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],qe);var Ye=qe;Ye.define();let Xe=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${[Ft(),Wt(kt({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]} </div>`}};e([Mt({attribute:"flex-flow"})],Xe.prototype,"flexFlow",void 0),e([Mt()],Xe.prototype,"gap",void 0),e([Mt()],Xe.prototype,"content",void 0),e([Mt()],Xe.prototype,"items",void 0),e([Mt({type:Boolean})],Xe.prototype,"vertical",void 0),Xe=e([Rt("flex"),At(m`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],Xe);var Ze,Ke=Xe;Ke.define();let Qe=Ze=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return Ze.buildValue(this._slot.assignedElements())}render(){return Ft()}reset(){this.deepQuerySelectorAll("*").forEach((t=>{t.tagName!==this.tagName&&t.reset&&t.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(t){const e={};for(const o of t)if("FORM"===o.tagName)Object.assign(e,Object.fromEntries(new FormData(o).entries()));else if(o.namevalue){const[t,s]=o.namevalue();t&&(e[t]=s)}else if(o.name&&void 0!==o.value)e[o.name]=o.value;else if(o.shadowRoot)for(const t of o.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};e([Mt()],Qe.prototype,"name",void 0),Qe=Ze=e([Rt("form"),At(m`:host{display:block}`)],Qe);var Je=Qe;Je.define();const ti=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let ei=class Grid extends GlobalStyle{render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${[Ft(),Wt(kt({":host":{gap:this.gap,"grid-template-columns":ti(this.columns),"grid-template-rows":ti(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};e([Mt()],ei.prototype,"gap",void 0),e([Mt()],ei.prototype,"columns",void 0),e([Mt()],ei.prototype,"rows",void 0),e([Mt()],ei.prototype,"content",void 0),e([Mt()],ei.prototype,"items",void 0),ei=e([Rt("grid"),At(m`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],ei);var ii,oi=ei;oi.define();let si=ii=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=Ft(),this.type="united",this.cache=!1,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}get params(){return this.path?RouteTree.parseParams(this.pathname,this.path):{}}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let t;if(this.cache&&(t=this.__cacheRecord.get(this.pathname))&&(this.component=t.component,this.path=t.path,this.pathname=t.pathname),!t)switch(this.type){case"field":this.component=this.fieldComponent();break;case"slotted":this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),ii.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),ii.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(t){if(t.has("pathname")||t.has("path")){const t=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,t),this.dispatchCustomEvent("change",t)}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(l(this.useRouter(),"component"))||null:e.component:null}slottedComponent(t){const e=this._slottedNames;return t||=this.__slottedRouteTree.search(this.pathname)?.pattern,this.path=t,t?(this.path=e.find((e=>e===t)),this.path?Ft(this.path):null):null}collectSlottedRoutes(){this.__slottedRouteTree=new RouteTree,this.clear(),this._slottedNames.forEach((t=>{this.__slottedRouteTree.insert(t)}))}collectFieldRoutes(t){this.__fieldRouteTree=new RouteTree,this.clear(),t.forEach((({path:t})=>{this.__fieldRouteTree.insert(t)}))}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}search(t){return this.__fieldRouteTree.search(t)||this.__slottedRouteTree.search(t)}};si.routerInstances=new Set,e([Nt()],si.prototype,"component",void 0),e([Nt()],si.prototype,"path",void 0),e([Mt()],si.prototype,"pathname",void 0),e([Nt()],si.prototype,"default",void 0),e([Mt()],si.prototype,"type",void 0),e([Mt({type:Boolean})],si.prototype,"cache",void 0),e([Nt()],si.prototype,"routes",null),si=ii=e([Rt("router"),At(m`:host{display:contents}`)],si);var ri=si;const ni="auto";let ai=class Link extends GlobalStyle{constructor(){super(...arguments),this.type=ni,this.suppress=!1,this.replace=!1,this.target="_self",this.state={},this.handleState=()=>{switch(this.type){case ni:case"push":if(!this.replace){history.pushState(this.state,"",this.href);break}case"replace":history.replaceState(this.state,"",this.href)}}}get pathname(){return new URL(this.href,location.href).pathname}_handleClick(t){const{state:e,type:o,href:s,pathname:r,suppress:a}=this;if(!s)return;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:r,state:e}),s.startsWith("#")||"normal"===o)return;this.handleState();const l=[...ri.routerInstances];a||o===ni&&!l.some((t=>t.search(location.pathname)))||(t.preventDefault(),ri.routerInstances.forEach((t=>{t.handlePopstate()})))}render(){return lt`<a part="root" ${Lt(this.observedRecord)} href="${this.href||ct}" target="${this.target}" @click=${this._handleClick}> ${Ft()} </a>`}};e([Mt()],ai.prototype,"type",void 0),e([Mt({type:Boolean})],ai.prototype,"suppress",void 0),e([Mt({type:Boolean})],ai.prototype,"replace",void 0),e([Mt()],ai.prototype,"href",void 0),e([Mt()],ai.prototype,"target",void 0),ai=e([Rt("link"),At(m`:host{cursor:default;display:inline-block}:host([href]){cursor:pointer}a{display:contents}`)],ai);var li=ai;let hi=class Heading extends li{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){const t=this.href||(this.id?"#"+this.id:void 0);return lt`<a part="root" href="${t||ct}"> ${this.wrapHeading(Ft(),t?lt`<i part="${Vt("anchor",this.side)}">${this.anchor}</i>`:"")} </a>`}wrapHeading(...t){switch(this.as){case"h2":return lt`<h2>${t}</h2>`;case"h3":return lt`<h3>${t}</h3>`;case"h4":return lt`<h4>${t}</h4>`;case"h5":return lt`<h5>${t}</h5>`;case"h6":return lt`<h6>${t}</h6>`;default:return lt`<h1>${t}</h1>`}}};e([Mt()],hi.prototype,"as",void 0),e([Mt()],hi.prototype,"anchor",void 0),e([Mt()],hi.prototype,"side",void 0),hi=e([Rt("heading"),At(m`:host{display:block;text-align:start}[part~=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[part~=left][part~=anchor]{right:100%}[part~=right][part~=anchor]{left:100%}h1,h2,h3,h4,h5,h6{position:relative;width:-moz-fit-content;width:fit-content}`)],hi);var di=hi;di.define();const ci=qt("0 0 256 256")`<path fill="currentColor" d="M53.92 34.62a8 8 0 1 0-11.84 10.76l19.24 21.17C25 88.84 9.38 123.2 8.69 124.76a8 8 0 0 0 0 6.5c.35.79 8.82 19.57 27.65 38.4C61.43 194.74 93.12 208 128 208a127.1 127.1 0 0 0 52.07-10.83l22 24.21a8 8 0 1 0 11.84-10.76Zm47.33 75.84l41.67 45.85a32 32 0 0 1-41.67-45.85M128 192c-30.78 0-57.67-11.19-79.93-33.25A133.2 133.2 0 0 1 25 128c4.69-8.79 19.66-33.39 47.35-49.38l18 19.75a48 48 0 0 0 63.66 70l14.73 16.2A112 112 0 0 1 128 192m6-95.43a8 8 0 0 1 3-15.72a48.16 48.16 0 0 1 38.77 42.64a8 8 0 0 1-7.22 8.71a6 6 0 0 1-.75 0a8 8 0 0 1-8-7.26A32.09 32.09 0 0 0 134 96.57m113.28 34.69c-.42.94-10.55 23.37-33.36 43.8a8 8 0 1 1-10.67-11.92a132.8 132.8 0 0 0 27.8-35.14a133.2 133.2 0 0 0-23.12-30.77C185.67 75.19 158.78 64 128 64a118.4 118.4 0 0 0-19.36 1.57A8 8 0 1 1 106 49.79A134 134 0 0 1 128 48c34.88 0 66.57 13.26 91.66 38.35c18.83 18.83 27.3 37.62 27.65 38.41a8 8 0 0 1 0 6.5Z">`,pi=m`:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let ui=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.ringType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return l(super.observedRecord,"default","value")}set defaultValue(t){this.default=t}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(t){t.stopPropagation(),this.compositing||(this.value=t.target.value?.trim(),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}_handleChange(t){this.dispatchCustomEvent("change",this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||"",this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,"compositionstart",(()=>this.compositing=!0)),this.events.add(this._input,"compositionend",(t=>{this.compositing=!1,this._handleInput(t)})))}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return lt`<i part="prefix">${Ft("prefix")}</i>`}_renderSuffix(){return lt`<i part="suffix">${Ft("suffix")}</i>`}};e([Mt()],ui.prototype,"autocomplete",void 0),e([Mt({attribute:ae})],ui.prototype,"ringType",void 0),e([Mt({type:Boolean,reflect:!0})],ui.prototype,"disabled",void 0),e([Mt({reflect:!0})],ui.prototype,"placeholder",void 0),e([Mt({reflect:!0})],ui.prototype,"name",void 0),e([Mt()],ui.prototype,"value",void 0),e([Mt()],ui.prototype,"default",void 0),e([zt("input")],ui.prototype,"_input",void 0),ui=e([At(pi)],ui);let vi=class Input extends ui{constructor(){super(),this.type="text",this.variant="default",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css+("outline"===this.variant?`:host{${oe.ringColor}:currentColor}`:"")))}render(){return lt`<label part="root" ${Lt(this.observedRecord)}> ${[this._renderPrefix(),lt`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||ct}" autocomplete="${this.autocomplete||ct}" placeholder="${this.placeholder||ct}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </label>`}_renderSuffix(){const t="password";return this.type===t?lt`<i part="suffix" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}"> ${Ft("suffix",ci())} </i>`:super._renderSuffix()}_changeInputType(t){this._input&&(this._input.type=t)}};e([Mt({reflect:!0})],vi.prototype,"type",void 0),e([Mt()],vi.prototype,"variant",void 0),e([zt("input")],vi.prototype,"_input",void 0),vi=e([Rt("input"),At(m`:host{display:block;${oe.input}-space:0.2em;${oe.input}-icon-color:grey}:host(:active),:host(:focus-within){${oe.ringColor}:currentColor;${oe.input}-icon-color:currentColor}[part=root]{align-items:center;border-radius:inherit;display:flex;padding:.4em .5em;position:relative}[part=input]{flex-grow:1;height:100%;width:100%}[part=prefix],[part=suffix]{align-items:center;color:var(${oe.input}-icon-color);display:flex;height:100%;justify-content:center}[part=suffix] slot svg{margin-inline-start:var(${oe.input}-space)}[part=prefix] slot svg{margin-inline-end:var(${oe.input}-space)}`)],vi);var fi=vi;fi.define();let mi=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> <header part="header">${Ft("header")}</header> <main part="main">${Ft()}</main> <footer part="footer">${Ft("footer")}</footer> </div>`}};e([Mt({type:Boolean})],mi.prototype,"sticky",void 0),mi=e([Rt("layout"),At(m`:host{flex-direction:column;grid-template-rows:auto 1fr auto;height:100%;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],mi);var gi=mi;function yi(t){let e,o=function(...s){return e=t.apply(this,s),o=()=>e,e};return o}gi.define(),li.define();const $i="popover",bi=()=>Object.hasOwn(HTMLElement.prototype,$i),_i=t=>t.getAttribute($i),wi=t=>{t.style.display="none"},xi=yi((t=>bi()?(t=>{null!==_i(t)?t.hidePopover():wi(t)})(t):wi(t)));function ki(t){if(t.style.display="block",this&&"manual"!==_i(t)){const e="click",o=s=>{this.contains(s.target)||(t.dispatchEvent(new Event("toggle",{bubbles:!0,composed:!0,newState:"closed"})),xi(t),document.removeEventListener(e,o))};document.addEventListener(e,o)}}function Si(t){null!==_i(t)?t.showPopover():ki.call(this,t)}const Ci=yi((function(t){return bi()?Si.call(this,t):ki.call(this,t)})),Ai="popover",Ri=Ai;let Ei=class Popover extends GlobalStyle{constructor(){super(),this.anchorName=`--${Ai}-${Math.random().toString(36).slice(2)}`,this.open=!1,this.action="show",this.span="span",this.position="bottom",new StyleController(this,(()=>kt({"[part=root],slot:not([name])::slotted(*)":{"anchor-name":this.anchorName},"[part=popover]":{"position-anchor":this.anchorName,"position-area":this.resolveArea()}})))}render(){return lt`<div part="root"> <div part="trigger" @click=${this._handleClick}> ${Ft()} </div> <div part="popover" popover="manual"> ${Ft("popover")} </div> </div>`}_handleClick(){const{action:t}=this;switch(t){case"show":case"hide":case"toggle":this[t]()}}show(){this.toggle(!0)}hide(){this.toggle(!1)}toggle(t){this.open=t??!this.open}updated(t){t.has("open")&&this._openChange()}_openChange(){const{open:t}=this;if(t){Ci.call(this,this._popover);const t=e=>{this.contains(e.target)||(this.events.remove(document,"click",t),this.open=!1)};this.events.add(document,"click",t)}else xi(this._popover);this.dispatchCustomEvent("toggle",t)}resolveArea(){const t=this.position.split("-"),e="spread"===this.span?`span-${t[0]}`:t[0];return t.length<2?`${e} center`:`${e} ${"isolated"===this.span?t[1]:`span-${t[1]}`}`}};e([Mt({type:Boolean,reflect:!0})],Ei.prototype,"open",void 0),e([Mt()],Ei.prototype,"action",void 0),e([Mt()],Ei.prototype,"span",void 0),e([Mt()],Ei.prototype,"position",void 0),e([zt(Ai)],Ei.prototype,"_popover",void 0),Ei=e([Rt(Ri),At(m`:host{display:inline-block}[part=trigger]{display:contents}[part=root]{display:inherit}[part=popover]{inset:unset;overflow:visible;position:absolute;z-index:1;position-try-fallbacks:flip-block}`)],Ei),Ei.define();var Ti=Ei;let Mi=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,e=20;if(!o(this.value)){const o=new Ranger(this.min,this.max);e=(+this.value-this.min)/o.diff*100,t="static"}return lt`<div part="root" ${Lt(this.observedRecord)} class="${t}"> <i part="value" style="width:${e}%;"></i> </div>`}};e([Mt({type:Number})],Mi.prototype,"max",void 0),e([Mt({type:Number})],Mi.prototype,"min",void 0),e([Mt({type:Number})],Mi.prototype,"value",void 0),Mi=e([Rt("progress"),At(m`:host{background:var(${oe.passive});border-radius:.25em;color:var(${oe.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],Mi);var Ni=Mi;Ni.define();const Pi="range",Oi=ie(Pi);let Bi=class Range extends ui{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,s=t-o.length;return s>0?new Array(s).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return l(super.observedRecord,ae)}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this._ranger.diff;return lt`<div part="root" ${Lt(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${St([["--from",(e-this.min)/s*100+"%"],["--to",(o-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"> <div part="track"></div> ${Yt(this.rangeValue.length,(t=>this._renderHandle(t)))} </div>`}_renderHandle(t){const{disabled:e,range:o,rangeValue:s}=this,r=!o||o&&t===s.length-1&&1===s.length;return lt`<i tabindex="0" part="${Vt("handle",`handle-${t}`)}" @mousedown="${e?null:this.createMouseDown(t)}" style="${St({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${r?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const o=this._handles.item(t);o?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t)))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent)}createKeydownEvent(t){return e=>{const{rangeValue:o,step:s}=this;o.length<2&&(t=0);const r=o[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(r-s)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(r+s))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let s=o;this.range&&(s=[...this.value],s[t]=o),this.value=s,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:o,left:s,height:r,width:a}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/r:(t-s)/a)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,s)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?s:t),0):0,s=this.createSetValue(o);s(e),this.createMousedownListener(s)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const s=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",s)};this.events.add(document,"mouseup",s)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,o(this.value)&&(o(this.default)?this.value=Math.round(t/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort(((t,e)=>t-e)):this.value}};e([Mt({type:Number})],Bi.prototype,"min",void 0),e([Mt({type:Number})],Bi.prototype,"max",void 0),e([Mt({type:Number})],Bi.prototype,"step",void 0),e([Mt({type:Boolean,reflect:!0})],Bi.prototype,"vertical",void 0),e([Mt({type:Array})],Bi.prototype,"value",void 0),e([Mt({type:Array})],Bi.prototype,"default",void 0),e([zt("root")],Bi.prototype,"_root",void 0),e([It("[part=handle]")],Bi.prototype,"_handles",void 0),e([Nt()],Bi.prototype,"lastFocus",void 0),Bi=e([Rt(Pi),At(m`:host{${Oi}--track-width:.5em;${Oi}--handle-scale:1;${Oi}--track-background:var(${oe.active});background:var(${oe.passive});display:block;height:var(${Oi}--track-width);width:100%}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:100%;width:-moz-fit-content;width:fit-content}[part=root]{position:relative;--from:0%;--to:50%}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${Oi}--track-background);height:100%;justify-content:space-between;left:min(var(--from),var(--to));pointer-events:none;width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part=track],[part~=handle]{display:flex;position:absolute}[part~=handle]{align-items:center;background:var(${oe.background});border:.1em solid;border-radius:50%;height:1em;justify-content:center;outline:0;transform:scale(var(${Oi}--handle-scale)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,m`[vertical]{height:inherit;width:var(${Oi}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));left:0;top:min(var(--from),var(--to));width:100%}`,m`[part~=handle]{left:var(--handle);top:0}[vertical] [part~=handle]{left:0;top:var(--handle)}`)],Bi);var Ii=Bi;Ii.define();const zi="rotate",Di=ie(zi);let Ui=class Rotate extends GlobalStyle{render(){return lt`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${Ft()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:o}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${o}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:o,width:s,height:r}=this._root.getBoundingClientRect(),{clientX:a,clientY:l}=t;return{rotateX:-(l-o-r/2)/r/2,rotateY:(a-e-s/2)/s/2}}};e([zt("root")],Ui.prototype,"_root",void 0),Ui=e([Rt(zi),At(m`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${Di}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${Di}--offset)*-1);padding:var(${Di}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],Ui);var ji=Ui;ji.define(),ri.define();const Vi=yi((()=>CSS.supports("position-area:top")));function Hi(t,e){if(t){const o="selected";e?t.setAttribute(o,""):t.removeAttribute(o)}}let Li=class Select extends fi{constructor(){super(...arguments),this.multiple=!1,this.noEdit=!1,this.values=[],this.optionsVisible=!1}render(){const t=this.noEdit||this.disabled;return lt`<label part="root" ${Lt(this.observedRecord)}> ${[this._renderPrefix(),this.noEdit?lt`<input style="position: absolute;inset: 0;opacity: 0;"/>`:"",lt`<input part="input" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${t}" autocapitalize="${this.autocapitalize||ct}" autocomplete="${this.autocomplete||ct}" placeholder="${this.placeholder||ct}" @input="${t?null:this._handleInput}" @change="${t?null:this._handleChange}"/>`,this._renderSuffix()]} <div part="popover" popover="${Vi()?"manual":ct}"> ${Ft()} </div> </label>`}_renderSuffix(){return lt`<i part="suffix">${Ft("suffix",Ie())}</i>`}firstUpdated(){this.events.add(this._slot,"click",(t=>{const{target:e}=t;if("OPTION"!==e.tagName)return;const{label:o,value:s}=e,r=this.select(s,o);this.multiple||(Hi(this.lastChecked,0),this.hideOptions()),Hi(e,r),this.lastChecked=e}))}_connectedInit(){this.default=this.value??="",this.defaultText=this.text??="",this.events.add(this,"focus",this.showOptions)}reset(){this.value=this.default,this.text=this.defaultText}select(t,e){e||=t;let o=0;const s=this.values.findIndex((e=>e.value===t));return s>-1?this.values.splice(s,1):(this.values.push({value:t,label:e}),o=1),this.checkValues(),this.value=this.values.map((t=>t.value)).join(","),this.text=this.values.map((t=>t.label)).join(", "),this.dispatchCustomEvent("select",this.value),o}checkValues(){!this.multiple&&this.values.length>1&&(this.values.splice(0,this.values.length-1),this.requestUpdate())}showOptions(){if(this.optionsVisible)return;Ci(this._popover);const t=e=>{this.contains(e.target)||(this.hideOptions(),this.events.remove(document,"click",t))};this.events.add(document,"click",t),this.optionsVisible=!0}hideOptions(){this.optionsVisible&&(xi(this._popover),this.optionsVisible=!1)}focus(t){super.focus(),this._input.focus(t),this.showOptions()}blur(){super.blur(),this._input.blur(),xi(this._popover)}};e([Mt()],Li.prototype,"text",void 0),e([Mt({type:Boolean})],Li.prototype,"multiple",void 0),e([Mt({type:Boolean})],Li.prototype,"noEdit",void 0),e([Mt({type:Array})],Li.prototype,"values",void 0),e([zt("popover")],Li.prototype,"_popover",void 0),Li=e([Rt("select"),At(m`[part=root]{position:relative;anchor-name:--select}label{display:contents}[part=popover]{background:none;border:0;width:100%;position-anchor:--select;position-area:bottom center;position-try-fallbacks:flip-block}[part=input]{text-overflow:ellipsis}@supports not (position-area:top){[part=popover]{display:none;left:0;position:absolute;top:100%}}`)],Li);var Gi=Li;Gi.define();const Fi="skeleton",Wi=ie(Fi);let qi=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.loading=!0}render(){return this.loading?lt`<div part="root">${Ft("loading")}</div>`:Ft()}};e([Nt()],qi.prototype,"loading",void 0),qi=e([Rt(Fi),At(m`:host{${Wi}--from:var(${oe.background});${Wi}--to:var(${oe.passive});${Wi}--deg:95deg;${Wi}--duration:2s;animation:_ var(${Wi}--duration) ease-in-out infinite none running;background-color:transparent;background-image:linear-gradient(var(${Wi}--deg),var(${Wi}--from) 36%,var(${Wi}--to) 50%,var(${Wi}--from) 64%);background-size:200% 100%;flex-shrink:0;height:2em;overflow:hidden;width:100%}@keyframes _{0%{background-position:150%}to{background-position:-50%}}[part=root]{display:contents}:host,:host([contents]) [part=root]{display:block}`)],qi);var Yi=qi;Yi.define();const Xi="split",Zi=ie(Xi);let Ki=class Split extends ui{constructor(){super(),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],new StyleController(this,(()=>new RingBuilder({selector:"[part=input-box]",type:this.ringType}).css))}get observedRecord(){return l(super.observedRecord,ae)}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${Yt(this.len,(t=>lt`<span part="input-box" ring-type="${this.ringType}" class="${Vt({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}"> ${this.currentValue[t]} </span>`))} <input part="input" @blur=${this.blur} @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len," ")}"/> </div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(t){t.stopPropagation(),this.compositing||(this.fillInput(t.data),this.value=this.currentValue.join(""),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}fillInput(t){if(null===t){if(null!==this.currentValue[this.current])this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;const t=this.currentValue.findLastIndex((t=>null!==t));this.current=this.current-1<0?t<0?0:t:this.current-1}return}const e=t.length>1;if(this.currentValue[this.current]=t[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),-1===this.current&&this.blur()):this.current+=1,e){const e=t.slice(1);e&&this.fillInput(e)}}focus(){this.focusAt(this.current),super.focus()}focusAt(t){this.current=t,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split("").concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};e([Mt({type:Number})],Ki.prototype,"len",void 0),e([Mt({type:Number})],Ki.prototype,"index",void 0),e([Nt()],Ki.prototype,"current",void 0),e([Nt()],Ki.prototype,"currentValue",void 0),Ki=e([Rt(Xi),At(m`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${Zi}--size:2em;${Zi}--gap:.25em}[part=root]{display:flex;gap:var(${Zi}--gap);justify-content:space-between;position:relative}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${Zi}--size);justify-content:center;width:var(${Zi}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${oe.ringColor}:var(${oe.active})}`)],Ki);var Qi=Ki;Qi.define();const Ji="switch",to=ie(Ji);let eo=class Switch extends ui{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return l(super.observedRecord,ae)}render(){return lt`<div part="root" ${Lt(this.observedRecord)} class="round"> <input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" @change="${this._handleChange}"/> <span part="handle"></span> </div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};e([Mt({type:Boolean})],eo.prototype,"default",void 0),e([Mt({type:Boolean,attribute:"checked",reflect:!0})],eo.prototype,"value",void 0),eo=e([Rt(Ji),At(m`:host,:host([contents]) [part=root]{display:inline-block}:host{${to}-width:3em;${to}-height:calc(var(${to}-width)/2);${to}-handle-size:1.25em;${to}-handle-space:calc(var(${to}-width)/4 - var(${to}-handle-size)/2);background:var(${oe.passive});border-radius:calc(var(${to}-height)/2);height:var(${to}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${to}-width)}:host([checked]){background:var(${oe.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:var(${oe.background});border-radius:100%;height:var(${to}-handle-size);justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%) translateX(var(${to}-handle-space));width:var(${to}-handle-size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],eo);var io=eo;io.define();let oo=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.nowrap=!1,this.italic=!1,this.truncate=!1,this.clip=!1}render(){return lt`<p part="root">${Ft()}</p>`}};e([Mt({converter:{fromAttribute:t=>""===t||t,toAttribute:t=>!1===t?null:!0===t?"":t},reflect:!0})],oo.prototype,"underline",void 0),e([Mt({type:Boolean,reflect:!0})],oo.prototype,"nowrap",void 0),e([Mt({type:Boolean,reflect:!0})],oo.prototype,"italic",void 0),e([Mt({type:Boolean,reflect:!0})],oo.prototype,"truncate",void 0),e([Mt({type:Boolean,reflect:!0})],oo.prototype,"clip",void 0),oo=e([Rt("text"),At(m`:host([clip]){background:var(${oe.backgroundClip});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}:host([nowrap]){white-space:nowrap}:host([italic]){font-style:italic}:host([truncate]),:host([truncate]) ::slotted(*){max-width:100%;overflow:hidden;text-overflow:ellipsis}:host([strikethrough]){text-decoration:line-through}:host(:active[underline=active]),:host(:focus[underline=focus]),:host(:hover[underline=hover]),:host([underline=""]),:host([underline=always]){text-decoration:underline}`)],oo);var so=oo;so.define();const ro="tabs",no=ie(ro),ao="hover";let lo=class Tabs extends GlobalStyle{constructor(){super(),this.ringType="border",this.beginning="selected",this.indicator="background",this.index=0,new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return lt`<ul part="root" ${Lt(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map(((t,e)=>lt`<li part="${Vt("item",this.index===e&&"selected")}" @mouseenter=${()=>{this.move(this.previousIndex,e),this.previousIndex=e}} @click=${()=>this.select(e)}> ${Ft(t,t)} <div part="indicator"></div> </li>`))} </ul>`}connectedCallback(){super.connectedCallback(),this.previousIndex="selected"===this.beginning?this.index:-1}_handleMouseLeave(){const t=this._items[this.previousIndex];t&&t.part.remove(ao),this.previousIndex="selected"===this.beginning?this.index:-1}move(t,e){if(t===e)return;const{_items:o,_indicators:s}=this,r=o[e];if(!r)return;r.part.add(ao);const a=o[t];if(!a)return;if(a.part.remove(ao),"none"===this.beginning)return;const l=s[e],h=s[t];if(!l||!h)return;const{x:d,y:c,width:p}=h.getBoundingClientRect(),{x:u,y:v}=l.getBoundingClientRect(),f=d-u,m=c-v,{style:g}=l,{style:$}=h;g.transform=`translate3d(${f}px,${m}px,0)`,g.width=`${p}px`,g.transition=$.transition="none",l.getBoundingClientRect(),g.width=g.transform=g.transition=$.transition=""}select(t){const{index:e,previousIndex:o}=this;this.move(o,t),t!==e&&(this.previousIndex=t,this.index=t,this.dispatchCustomEvent("select",t))}};e([Mt({attribute:ae})],lo.prototype,"ringType",void 0),e([Mt()],lo.prototype,"beginning",void 0),e([Mt()],lo.prototype,"indicator",void 0),e([Mt({type:Array})],lo.prototype,"tabs",void 0),e([Mt({type:Number})],lo.prototype,"index",void 0),e([It("[part~=item]")],lo.prototype,"_items",void 0),e([It("[part=indicator]")],lo.prototype,"_indicators",void 0),lo=e([Rt(ro),At(m`:host{${no}--indicator-background:var(${oe.passive});${no}--selected-background:var(${oe.passive});cursor:default;display:flex;transition:.2s ease-in-out}[part=root]{border-radius:inherit;display:flex;flex-direction:inherit;gap:.25em;overflow-x:clip;padding:.25em;position:relative;transition:inherit;transition-property:width,transform,opacity;z-index:1}[part~=item]{display:block;padding:0 .25em;position:relative;white-space:nowrap}[part=indicator],[part~=item],[part~=item]:after{border-radius:inherit;transition:inherit;transition-property:inherit;width:100%}[part=indicator],[part~=item]:after{background:var(${no}--indicator-background);height:100%;inset:0;position:absolute}[part=indicator]{opacity:0;z-index:-1}[part~=item]:after{z-index:-2}[indicator=underline] [part=indicator],[indicator=underline] [part~=item]:after{border-radius:.075em;height:.15em;margin-top:.15em;top:100%}[part~=selected]:after{background:var(${no}--selected-background);content:""}[part~=hover] [part=indicator]{opacity:1}`)],lo);var ho=lo;function co(t,e=2){return t.toString().padStart(e,"0").split("")}ho.define();let po=class Time extends so{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return lt`<p part="root">${function(t,e=new Date,o="%"){var s;if(!t)return t;if(isNaN(e.getTime()))return;const r=`${o}${o}`,a=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"g"),((t,e)=>(a.push(e),r)));const l=e.getTimezoneOffset()/-60,h={Z:[l>=0?"+"+l.toString():l.toString()],Y:e.getFullYear().toString().split(""),M:co(e.getMonth()+1),D:co(e.getDate()),h:co(e.getHours()),m:co(e.getMinutes()),s:co(e.getSeconds()),S:co(e.getMilliseconds(),3)},d=[];for(const e of t.split("").reverse()){const t=null===(s=h[e])||void 0===s?void 0:s.pop();t?d.push(t):d.push(e)}return d.reverse().join("").replace(new RegExp(r,"g"),(()=>a.shift()))}(this.format,this.time,this.escape)}</p>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchCustomEvent("time",this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};e([Mt()],po.prototype,"escape",void 0),e([Mt()],po.prototype,"format",void 0),e([Mt({type:Object})],po.prototype,"time",void 0),e([Mt({type:Number})],po.prototype,"timeout",void 0),e([Mt({type:Number})],po.prototype,"gap",void 0),po=e([Rt("time")],po);var uo=po;uo.define();let vo=class Tooltip extends Ei{constructor(){super(...arguments),this.delay=300}render(){return lt`<div part="root"> <div part="trigger" @click=${this.hide}> ${Ft()} </div> <div part="popover" popover="manual"> ${Ft("tip",this.tip)} </div> </div>`}connectedCallback(){super.connectedCallback(),this.events.add(this,"mouseenter",(()=>{clearTimeout(this._leaveTimeout),this._hoverTimeout=setTimeout((()=>{this.show()}),this.delay)})),this.events.add(this,"mouseleave",(()=>{clearTimeout(this._hoverTimeout),this._leaveTimeout=setTimeout((()=>{this.hide()}),this.delay)}))}};e([Mt()],vo.prototype,"tip",void 0),e([Mt({type:Number})],vo.prototype,"delay",void 0),vo=e([Rt("tooltip")],vo);var fo=vo;fo.define();const mo="typewriter",go=ie(mo);let yo=class Typewriter extends GlobalStyle{constructor(){super(...arguments),this.content="",this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=""}get len(){return this.content.length}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${Ft()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchCustomEvent(this.index===this.len?"done":"write",this.contentInternal)}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};e([Mt()],yo.prototype,"content",void 0),e([Mt({type:Boolean})],yo.prototype,"ended",void 0),e([Mt({type:Number})],yo.prototype,"max",void 0),e([Mt({type:Number})],yo.prototype,"min",void 0),e([Mt({type:Number})],yo.prototype,"delay",void 0),e([Mt({type:Number})],yo.prototype,"index",void 0),e([Nt()],yo.prototype,"contentInternal",void 0),e([Ot("i")],yo.prototype,"_i",void 0),yo=e([Rt(mo),At(m`:host{${go}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${go}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],yo);var $o=yo;return $o.define(),t.Alert=he,t.Avatar=ce,t.Badge=ge,t.Breath=we,t.Button=fe,t.Card=Ce,t.Carousel=Me,t.Chip=Be,t.Details=je,t.Dialog=Ge,t.Divider=We,t.Dragbox=Ye,t.Flex=Ke,t.Form=Je,t.Grid=oi,t.Heading=di,t.Input=fi,t.Layout=gi,t.Link=li,t.Popover=Ti,t.Progress=Ni,t.Range=Ii,t.Rotate=ji,t.Router=ri,t.Select=Gi,t.Skeleton=Yi,t.Split=Qi,t.Switch=io,t.Tabs=ho,t.Text=so,t.Time=uo,t.Tooltip=fo,t.Typewriter=$o,t}({});
59
58
  //# sourceMappingURL=godown+lit.iife.js.map