@viasat/beam-web-components 2.0.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 (316) hide show
  1. package/Accordion/Accordion.d.ts +56 -0
  2. package/Accordion/Accordion.js +12 -0
  3. package/Accordion/AccordionGroup.context.d.ts +10 -0
  4. package/Accordion/AccordionGroup.context.js +8 -0
  5. package/Accordion/AccordionGroup.d.ts +33 -0
  6. package/Accordion/AccordionGroup.js +79 -0
  7. package/Accordion/index.d.ts +3 -0
  8. package/Accordion/index.js +6 -0
  9. package/Alert/Alert.d.ts +64 -0
  10. package/Alert/Alert.js +300 -0
  11. package/Alert/index.d.ts +2 -0
  12. package/Alert/index.js +4 -0
  13. package/Avatar/Avatar.d.ts +60 -0
  14. package/Avatar/Avatar.js +12 -0
  15. package/Avatar/AvatarGroup.context.d.ts +11 -0
  16. package/Avatar/AvatarGroup.context.js +8 -0
  17. package/Avatar/AvatarGroup.d.ts +43 -0
  18. package/Avatar/AvatarGroup.js +181 -0
  19. package/Avatar/index.d.ts +3 -0
  20. package/Avatar/index.js +6 -0
  21. package/Badge/Badge.d.ts +40 -0
  22. package/Badge/Badge.js +125 -0
  23. package/Badge/index.d.ts +2 -0
  24. package/Badge/index.js +4 -0
  25. package/BadgeDot/BadgeDot.d.ts +38 -0
  26. package/BadgeDot/BadgeDot.js +59 -0
  27. package/BadgeDot/index.d.ts +2 -0
  28. package/BadgeDot/index.js +4 -0
  29. package/Box/Box.d.ts +99 -0
  30. package/Box/Box.js +115 -0
  31. package/Box/index.d.ts +2 -0
  32. package/Box/index.js +4 -0
  33. package/Breadcrumbs/Breadcrumbs.context.d.ts +10 -0
  34. package/Breadcrumbs/Breadcrumbs.context.js +8 -0
  35. package/Breadcrumbs/Breadcrumbs.d.ts +38 -0
  36. package/Breadcrumbs/Breadcrumbs.js +115 -0
  37. package/Breadcrumbs/BreadcrumbsItem.d.ts +39 -0
  38. package/Breadcrumbs/BreadcrumbsItem.js +13 -0
  39. package/Breadcrumbs/index.d.ts +3 -0
  40. package/Breadcrumbs/index.js +6 -0
  41. package/Button/Button.d.ts +73 -0
  42. package/Button/Button.js +125 -0
  43. package/Button/index.d.ts +2 -0
  44. package/Button/index.js +4 -0
  45. package/CloseButton/CloseButton.d.ts +25 -0
  46. package/CloseButton/CloseButton.js +60 -0
  47. package/CloseButton/index.d.ts +2 -0
  48. package/CloseButton/index.js +4 -0
  49. package/Divider/Divider.d.ts +56 -0
  50. package/Divider/Divider.js +111 -0
  51. package/Divider/index.d.ts +2 -0
  52. package/Divider/index.js +4 -0
  53. package/EmptyState/EmptyState.d.ts +36 -0
  54. package/EmptyState/EmptyState.js +56 -0
  55. package/EmptyState/index.d.ts +2 -0
  56. package/EmptyState/index.js +4 -0
  57. package/HelperText/HelperText.d.ts +45 -0
  58. package/HelperText/HelperText.js +11 -0
  59. package/HelperText/index.d.ts +2 -0
  60. package/HelperText/index.js +4 -0
  61. package/Icon/Icon.d.ts +35 -0
  62. package/Icon/Icon.js +62 -0
  63. package/Icon/index.d.ts +2 -0
  64. package/Icon/index.js +4 -0
  65. package/InputChoiceGroup/InputChoiceGroup.context.d.ts +13 -0
  66. package/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
  67. package/InputChoiceGroup/InputChoiceGroup.d.ts +87 -0
  68. package/InputChoiceGroup/InputChoiceGroup.js +205 -0
  69. package/InputChoiceGroup/index.d.ts +2 -0
  70. package/InputChoiceGroup/index.js +4 -0
  71. package/Link/Link.d.ts +48 -0
  72. package/Link/Link.js +77 -0
  73. package/Link/index.d.ts +2 -0
  74. package/Link/index.js +4 -0
  75. package/List/List.context.d.ts +15 -0
  76. package/List/List.context.js +8 -0
  77. package/List/List.d.ts +43 -0
  78. package/List/List.js +101 -0
  79. package/List/ListItem.d.ts +23 -0
  80. package/List/ListItem.js +90 -0
  81. package/List/index.d.ts +3 -0
  82. package/List/index.js +6 -0
  83. package/ProgressBar/ProgressBar.d.ts +52 -0
  84. package/ProgressBar/ProgressBar.js +128 -0
  85. package/ProgressBar/index.d.ts +2 -0
  86. package/ProgressBar/index.js +4 -0
  87. package/README.md +360 -0
  88. package/SegmentedControl/SegmentedControl.context.d.ts +16 -0
  89. package/SegmentedControl/SegmentedControl.context.js +8 -0
  90. package/SegmentedControl/SegmentedControl.d.ts +41 -0
  91. package/SegmentedControl/SegmentedControl.js +103 -0
  92. package/SegmentedControl/SegmentedControlItem.d.ts +54 -0
  93. package/SegmentedControl/SegmentedControlItem.js +284 -0
  94. package/SegmentedControl/SegmentedControlList.d.ts +23 -0
  95. package/SegmentedControl/SegmentedControlList.js +61 -0
  96. package/SegmentedControl/SegmentedControlPanel.d.ts +21 -0
  97. package/SegmentedControl/SegmentedControlPanel.js +43 -0
  98. package/SegmentedControl/index.d.ts +5 -0
  99. package/SegmentedControl/index.js +10 -0
  100. package/Spinner/Spinner.d.ts +50 -0
  101. package/Spinner/Spinner.js +186 -0
  102. package/Spinner/index.d.ts +2 -0
  103. package/Spinner/index.js +4 -0
  104. package/StateLayer/StateLayer.d.ts +17 -0
  105. package/StateLayer/StateLayer.js +6 -0
  106. package/StateLayer/index.d.ts +2 -0
  107. package/StateLayer/index.js +5 -0
  108. package/Text/Text.d.ts +85 -0
  109. package/Text/Text.js +103 -0
  110. package/Text/index.d.ts +2 -0
  111. package/Text/index.js +4 -0
  112. package/Tooltip/Tooltip.d.ts +139 -0
  113. package/Tooltip/Tooltip.js +1827 -0
  114. package/Tooltip/index.d.ts +2 -0
  115. package/Tooltip/index.js +5 -0
  116. package/chunks/Accordion.DYD3XcAx.js +161 -0
  117. package/chunks/Avatar.C2rfzUGP.js +174 -0
  118. package/chunks/BreadcrumbsItem.4ZR6wbMz.js +121 -0
  119. package/chunks/CSSLookup.BdqZ5Li9.js +106 -0
  120. package/chunks/HelperText.CcVVOtA3.js +108 -0
  121. package/chunks/Upload.B9YEyp7b.js +12 -0
  122. package/chunks/WarningOutlined.DPfQnPPj.js +12 -0
  123. package/chunks/classNames.Cq_tbDRp.js +94 -0
  124. package/chunks/constants.jOWREYQE.js +30 -0
  125. package/chunks/delegate.baxDQosr.js +63 -0
  126. package/chunks/dom.C98AFbJh.js +22 -0
  127. package/chunks/fileUpload.module.kN6o64aL.js +4 -0
  128. package/chunks/globals.Bz4SVF2g.js +4 -0
  129. package/chunks/helpers.AwJwaZvv.js +53 -0
  130. package/chunks/list.module.CZRPBLzy.js +4 -0
  131. package/chunks/register-custom-element.DHGKOhmA.js +17 -0
  132. package/chunks/segmentedControl.module.BPXEWodj.js +4 -0
  133. package/chunks/tokens.CTW8Tt94.js +9 -0
  134. package/custom-elements.json +11341 -0
  135. package/local/Accordion/Accordion.js +12 -0
  136. package/local/Accordion/AccordionGroup.context.js +8 -0
  137. package/local/Accordion/AccordionGroup.js +78 -0
  138. package/local/Accordion/index.js +6 -0
  139. package/local/Alert/Alert.js +301 -0
  140. package/local/Alert/index.js +4 -0
  141. package/local/Avatar/Avatar.js +11 -0
  142. package/local/Avatar/AvatarGroup.context.js +8 -0
  143. package/local/Avatar/AvatarGroup.js +180 -0
  144. package/local/Avatar/index.js +6 -0
  145. package/local/Badge/Badge.js +123 -0
  146. package/local/Badge/index.js +4 -0
  147. package/local/BadgeDot/BadgeDot.js +57 -0
  148. package/local/BadgeDot/index.js +4 -0
  149. package/local/Box/Box.js +113 -0
  150. package/local/Box/index.js +4 -0
  151. package/local/Breadcrumbs/Breadcrumbs.context.js +8 -0
  152. package/local/Breadcrumbs/Breadcrumbs.js +113 -0
  153. package/local/Breadcrumbs/BreadcrumbsItem.js +13 -0
  154. package/local/Breadcrumbs/index.js +6 -0
  155. package/local/Button/Button.js +154 -0
  156. package/local/Button/index.js +4 -0
  157. package/local/CloseButton/CloseButton.js +58 -0
  158. package/local/CloseButton/index.js +4 -0
  159. package/local/Divider/Divider.js +111 -0
  160. package/local/Divider/index.js +4 -0
  161. package/local/EmptyState/EmptyState.js +54 -0
  162. package/local/EmptyState/index.js +4 -0
  163. package/local/HelperText/HelperText.js +9 -0
  164. package/local/HelperText/index.js +4 -0
  165. package/local/Icon/Icon.js +60 -0
  166. package/local/Icon/index.js +4 -0
  167. package/local/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
  168. package/local/InputChoiceGroup/InputChoiceGroup.js +205 -0
  169. package/local/InputChoiceGroup/index.js +4 -0
  170. package/local/Link/Link.js +75 -0
  171. package/local/Link/index.js +4 -0
  172. package/local/List/List.context.js +8 -0
  173. package/local/List/List.js +101 -0
  174. package/local/List/ListItem.js +90 -0
  175. package/local/List/index.js +6 -0
  176. package/local/ProgressBar/ProgressBar.js +126 -0
  177. package/local/ProgressBar/index.js +4 -0
  178. package/local/SegmentedControl/SegmentedControl.context.js +8 -0
  179. package/local/SegmentedControl/SegmentedControl.js +103 -0
  180. package/local/SegmentedControl/SegmentedControlItem.js +284 -0
  181. package/local/SegmentedControl/SegmentedControlList.js +59 -0
  182. package/local/SegmentedControl/SegmentedControlPanel.js +41 -0
  183. package/local/SegmentedControl/index.js +10 -0
  184. package/local/Spinner/Spinner.js +185 -0
  185. package/local/Spinner/index.js +4 -0
  186. package/local/StateLayer/StateLayer.js +6 -0
  187. package/local/StateLayer/index.js +5 -0
  188. package/local/Text/Text.js +121 -0
  189. package/local/Text/index.js +4 -0
  190. package/local/Tooltip/Tooltip.js +1826 -0
  191. package/local/Tooltip/index.js +5 -0
  192. package/local/chunks/Accordion.PGU7OILE.js +161 -0
  193. package/local/chunks/Avatar.CvTOzaRT.js +172 -0
  194. package/local/chunks/BreadcrumbsItem.GM6sBp_o.js +121 -0
  195. package/local/chunks/CSSLookup.BdqZ5Li9.js +106 -0
  196. package/local/chunks/Upload.B9YEyp7b.js +12 -0
  197. package/local/chunks/WarningOutlined.DPfQnPPj.js +12 -0
  198. package/local/chunks/base.D76d76ww.js +9 -0
  199. package/local/chunks/classNames.C6fNrXWF.js +106 -0
  200. package/local/chunks/constants.jOWREYQE.js +30 -0
  201. package/local/chunks/consume.Ce9k1-wN.js +47 -0
  202. package/local/chunks/context-request-event.Bl9Vpkzl.js +13 -0
  203. package/local/chunks/create-context.DS1OG3vJ.js +11 -0
  204. package/local/chunks/delegate.baxDQosr.js +63 -0
  205. package/local/chunks/directive.kLG6oqUu.js +27 -0
  206. package/local/chunks/dom.C98AFbJh.js +22 -0
  207. package/local/chunks/fileUpload.module.kN6o64aL.js +4 -0
  208. package/local/chunks/globals.Bz4SVF2g.js +4 -0
  209. package/local/chunks/helpers.BWcXAteC.js +53 -0
  210. package/local/chunks/index.Bz1Jq4c2.js +106 -0
  211. package/local/chunks/list.module.CZRPBLzy.js +4 -0
  212. package/local/chunks/lit-element.CJtt9wj5.js +557 -0
  213. package/local/chunks/provide.i2FlUkOu.js +110 -0
  214. package/local/chunks/query-assigned-elements.Drkgpk9q.js +19 -0
  215. package/local/chunks/query-assigned-nodes.Dgvsf6BR.js +19 -0
  216. package/local/chunks/query.lbpOn5CD.js +20 -0
  217. package/local/chunks/ref.B7e1Hu4F.js +107 -0
  218. package/local/chunks/register-custom-element.vod7zfGv.js +51 -0
  219. package/local/chunks/segmentedControl.module.BPXEWodj.js +4 -0
  220. package/local/chunks/state.CqiuSzAl.js +12 -0
  221. package/local/chunks/tokens.CTW8Tt94.js +9 -0
  222. package/local/chunks/unsafe-html.BzhXEygn.js +27 -0
  223. package/local/chunks/unsafe-svg.HSGf1NCU.js +14 -0
  224. package/local/wip/Checkbox/Checkbox.js +102 -0
  225. package/local/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
  226. package/local/wip/Checkbox/index.js +6 -0
  227. package/local/wip/FileUpload/FileUpload.Button.js +75 -0
  228. package/local/wip/FileUpload/FileUpload.Dropzone.js +149 -0
  229. package/local/wip/FileUpload/FileUpload.List.Item.js +201 -0
  230. package/local/wip/FileUpload/FileUpload.List.js +105 -0
  231. package/local/wip/FileUpload/FileUpload.js +452 -0
  232. package/local/wip/FileUpload/FileUploadContext.js +8 -0
  233. package/local/wip/FileUpload/FileUploadListContext.js +8 -0
  234. package/local/wip/FileUpload/index.js +13 -0
  235. package/local/wip/Form/Form.context.js +20 -0
  236. package/local/wip/Form/Form.decorator.js +145 -0
  237. package/local/wip/Form/Form.js +288 -0
  238. package/local/wip/Form/Form.utils.js +8 -0
  239. package/local/wip/Form/index.js +7 -0
  240. package/local/wip/Label/Label.js +86 -0
  241. package/local/wip/Label/index.js +4 -0
  242. package/local/wip/NativeSelect/NativeSelect.js +162 -0
  243. package/local/wip/NativeSelect/index.js +4 -0
  244. package/local/wip/RadioButton/RadioButton.js +123 -0
  245. package/local/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
  246. package/local/wip/RadioButton/index.js +6 -0
  247. package/local/wip/Switch/Switch.js +153 -0
  248. package/local/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
  249. package/local/wip/Switch/index.js +6 -0
  250. package/local/wip/TextArea/TextArea.js +192 -0
  251. package/local/wip/TextArea/index.js +4 -0
  252. package/local/wip/TextField/TextField.js +169 -0
  253. package/local/wip/TextField/index.js +4 -0
  254. package/package.json +78 -0
  255. package/vscode.css-custom-data.json +6 -0
  256. package/vscode.html-custom-data.json +2704 -0
  257. package/wip/Checkbox/Checkbox.d.ts +55 -0
  258. package/wip/Checkbox/Checkbox.js +104 -0
  259. package/wip/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  260. package/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
  261. package/wip/Checkbox/index.d.ts +3 -0
  262. package/wip/Checkbox/index.js +6 -0
  263. package/wip/FileUpload/FileUpload.Button.d.ts +36 -0
  264. package/wip/FileUpload/FileUpload.Button.js +77 -0
  265. package/wip/FileUpload/FileUpload.Dropzone.d.ts +55 -0
  266. package/wip/FileUpload/FileUpload.Dropzone.js +150 -0
  267. package/wip/FileUpload/FileUpload.List.Item.d.ts +62 -0
  268. package/wip/FileUpload/FileUpload.List.Item.js +203 -0
  269. package/wip/FileUpload/FileUpload.List.d.ts +46 -0
  270. package/wip/FileUpload/FileUpload.List.js +106 -0
  271. package/wip/FileUpload/FileUpload.d.ts +101 -0
  272. package/wip/FileUpload/FileUpload.js +451 -0
  273. package/wip/FileUpload/FileUploadContext.d.ts +5 -0
  274. package/wip/FileUpload/FileUploadContext.js +8 -0
  275. package/wip/FileUpload/FileUploadListContext.d.ts +5 -0
  276. package/wip/FileUpload/FileUploadListContext.js +8 -0
  277. package/wip/FileUpload/index.d.ts +6 -0
  278. package/wip/FileUpload/index.js +13 -0
  279. package/wip/Form/Form.context.d.ts +19 -0
  280. package/wip/Form/Form.context.js +20 -0
  281. package/wip/Form/Form.d.ts +50 -0
  282. package/wip/Form/Form.decorator.d.ts +47 -0
  283. package/wip/Form/Form.decorator.js +144 -0
  284. package/wip/Form/Form.js +288 -0
  285. package/wip/Form/Form.utils.d.ts +2 -0
  286. package/wip/Form/Form.utils.js +8 -0
  287. package/wip/Form/index.d.ts +3 -0
  288. package/wip/Form/index.js +7 -0
  289. package/wip/Label/Label.d.ts +43 -0
  290. package/wip/Label/Label.js +87 -0
  291. package/wip/Label/index.d.ts +2 -0
  292. package/wip/Label/index.js +4 -0
  293. package/wip/NativeSelect/NativeSelect.d.ts +69 -0
  294. package/wip/NativeSelect/NativeSelect.js +163 -0
  295. package/wip/NativeSelect/index.d.ts +2 -0
  296. package/wip/NativeSelect/index.js +4 -0
  297. package/wip/RadioButton/RadioButton.d.ts +56 -0
  298. package/wip/RadioButton/RadioButton.js +125 -0
  299. package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.d.ts +23 -0
  300. package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
  301. package/wip/RadioButton/index.d.ts +3 -0
  302. package/wip/RadioButton/index.js +6 -0
  303. package/wip/Switch/Switch.d.ts +62 -0
  304. package/wip/Switch/Switch.js +155 -0
  305. package/wip/Switch/SwitchGroup/SwitchGroup.d.ts +15 -0
  306. package/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
  307. package/wip/Switch/index.d.ts +3 -0
  308. package/wip/Switch/index.js +6 -0
  309. package/wip/TextArea/TextArea.d.ts +89 -0
  310. package/wip/TextArea/TextArea.js +193 -0
  311. package/wip/TextArea/index.d.ts +2 -0
  312. package/wip/TextArea/index.js +4 -0
  313. package/wip/TextField/TextField.d.ts +70 -0
  314. package/wip/TextField/TextField.js +169 -0
  315. package/wip/TextField/index.d.ts +2 -0
  316. package/wip/TextField/index.js +4 -0
@@ -0,0 +1,557 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const T = globalThis, D = T.ShadowRoot && (T.ShadyCSS === void 0 || T.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, I = Symbol(), V = /* @__PURE__ */ new WeakMap();
7
+ let tt = class {
8
+ constructor(t, e, s) {
9
+ if (this._$cssResult$ = !0, s !== I) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ this.cssText = t, this.t = e;
11
+ }
12
+ get styleSheet() {
13
+ let t = this.o;
14
+ const e = this.t;
15
+ if (D && t === void 0) {
16
+ const s = e !== void 0 && e.length === 1;
17
+ s && (t = V.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && V.set(e, t));
18
+ }
19
+ return t;
20
+ }
21
+ toString() {
22
+ return this.cssText;
23
+ }
24
+ };
25
+ const ot = (r) => new tt(typeof r == "string" ? r : r + "", void 0, I), wt = (r, ...t) => {
26
+ const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((n) => {
27
+ if (n._$cssResult$ === !0) return n.cssText;
28
+ if (typeof n == "number") return n;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
+ })(i) + r[o + 1], r[0]);
31
+ return new tt(e, r, I);
32
+ }, ht = (r, t) => {
33
+ if (D) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
+ else for (const e of t) {
35
+ const s = document.createElement("style"), i = T.litNonce;
36
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
37
+ }
38
+ }, W = D ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
39
+ let e = "";
40
+ for (const s of t.cssRules) e += s.cssText;
41
+ return ot(e);
42
+ })(r) : r;
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */
48
+ const { is: at, defineProperty: lt, getOwnPropertyDescriptor: ct, getOwnPropertyNames: dt, getOwnPropertySymbols: pt, getPrototypeOf: ut } = Object, f = globalThis, q = f.trustedTypes, $t = q ? q.emptyScript : "", M = f.reactiveElementPolyfillSupport, b = (r, t) => r, B = { toAttribute(r, t) {
49
+ switch (t) {
50
+ case Boolean:
51
+ r = r ? $t : null;
52
+ break;
53
+ case Object:
54
+ case Array:
55
+ r = r == null ? r : JSON.stringify(r);
56
+ }
57
+ return r;
58
+ }, fromAttribute(r, t) {
59
+ let e = r;
60
+ switch (t) {
61
+ case Boolean:
62
+ e = r !== null;
63
+ break;
64
+ case Number:
65
+ e = r === null ? null : Number(r);
66
+ break;
67
+ case Object:
68
+ case Array:
69
+ try {
70
+ e = JSON.parse(r);
71
+ } catch {
72
+ e = null;
73
+ }
74
+ }
75
+ return e;
76
+ } }, et = (r, t) => !at(r, t), J = { attribute: !0, type: String, converter: B, reflect: !1, hasChanged: et };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ class y extends HTMLElement {
79
+ static addInitializer(t) {
80
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
+ }
82
+ static get observedAttributes() {
83
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
+ }
85
+ static createProperty(t, e = J) {
86
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
87
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
88
+ i !== void 0 && lt(this.prototype, t, i);
89
+ }
90
+ }
91
+ static getPropertyDescriptor(t, e, s) {
92
+ const { get: i, set: o } = ct(this.prototype, t) ?? { get() {
93
+ return this[e];
94
+ }, set(n) {
95
+ this[e] = n;
96
+ } };
97
+ return { get() {
98
+ return i == null ? void 0 : i.call(this);
99
+ }, set(n) {
100
+ const l = i == null ? void 0 : i.call(this);
101
+ o.call(this, n), this.requestUpdate(t, l, s);
102
+ }, configurable: !0, enumerable: !0 };
103
+ }
104
+ static getPropertyOptions(t) {
105
+ return this.elementProperties.get(t) ?? J;
106
+ }
107
+ static _$Ei() {
108
+ if (this.hasOwnProperty(b("elementProperties"))) return;
109
+ const t = ut(this);
110
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
+ }
112
+ static finalize() {
113
+ if (this.hasOwnProperty(b("finalized"))) return;
114
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(b("properties"))) {
115
+ const e = this.properties, s = [...dt(e), ...pt(e)];
116
+ for (const i of s) this.createProperty(i, e[i]);
117
+ }
118
+ const t = this[Symbol.metadata];
119
+ if (t !== null) {
120
+ const e = litPropertyMetadata.get(t);
121
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
122
+ }
123
+ this._$Eh = /* @__PURE__ */ new Map();
124
+ for (const [e, s] of this.elementProperties) {
125
+ const i = this._$Eu(e, s);
126
+ i !== void 0 && this._$Eh.set(i, e);
127
+ }
128
+ this.elementStyles = this.finalizeStyles(this.styles);
129
+ }
130
+ static finalizeStyles(t) {
131
+ const e = [];
132
+ if (Array.isArray(t)) {
133
+ const s = new Set(t.flat(1 / 0).reverse());
134
+ for (const i of s) e.unshift(W(i));
135
+ } else t !== void 0 && e.push(W(t));
136
+ return e;
137
+ }
138
+ static _$Eu(t, e) {
139
+ const s = e.attribute;
140
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
141
+ }
142
+ constructor() {
143
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
144
+ }
145
+ _$Ev() {
146
+ var t;
147
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
148
+ }
149
+ addController(t) {
150
+ var e;
151
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
152
+ }
153
+ removeController(t) {
154
+ var e;
155
+ (e = this._$EO) == null || e.delete(t);
156
+ }
157
+ _$E_() {
158
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
159
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
160
+ t.size > 0 && (this._$Ep = t);
161
+ }
162
+ createRenderRoot() {
163
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
+ return ht(t, this.constructor.elementStyles), t;
165
+ }
166
+ connectedCallback() {
167
+ var t;
168
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
169
+ var s;
170
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
171
+ });
172
+ }
173
+ enableUpdating(t) {
174
+ }
175
+ disconnectedCallback() {
176
+ var t;
177
+ (t = this._$EO) == null || t.forEach((e) => {
178
+ var s;
179
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
180
+ });
181
+ }
182
+ attributeChangedCallback(t, e, s) {
183
+ this._$AK(t, s);
184
+ }
185
+ _$EC(t, e) {
186
+ var o;
187
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
188
+ if (i !== void 0 && s.reflect === !0) {
189
+ const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : B).toAttribute(e, s.type);
190
+ this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
191
+ }
192
+ }
193
+ _$AK(t, e) {
194
+ var o;
195
+ const s = this.constructor, i = s._$Eh.get(t);
196
+ if (i !== void 0 && this._$Em !== i) {
197
+ const n = s.getPropertyOptions(i), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : B;
198
+ this._$Em = i, this[i] = l.fromAttribute(e, n.type), this._$Em = null;
199
+ }
200
+ }
201
+ requestUpdate(t, e, s) {
202
+ if (t !== void 0) {
203
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? et)(this[t], e)) return;
204
+ this.P(t, e, s);
205
+ }
206
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
207
+ }
208
+ P(t, e, s) {
209
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
210
+ }
211
+ async _$ET() {
212
+ this.isUpdatePending = !0;
213
+ try {
214
+ await this._$ES;
215
+ } catch (e) {
216
+ Promise.reject(e);
217
+ }
218
+ const t = this.scheduleUpdate();
219
+ return t != null && await t, !this.isUpdatePending;
220
+ }
221
+ scheduleUpdate() {
222
+ return this.performUpdate();
223
+ }
224
+ performUpdate() {
225
+ var s;
226
+ if (!this.isUpdatePending) return;
227
+ if (!this.hasUpdated) {
228
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
229
+ for (const [o, n] of this._$Ep) this[o] = n;
230
+ this._$Ep = void 0;
231
+ }
232
+ const i = this.constructor.elementProperties;
233
+ if (i.size > 0) for (const [o, n] of i) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
234
+ }
235
+ let t = !1;
236
+ const e = this._$AL;
237
+ try {
238
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
239
+ var o;
240
+ return (o = i.hostUpdate) == null ? void 0 : o.call(i);
241
+ }), this.update(e)) : this._$EU();
242
+ } catch (i) {
243
+ throw t = !1, this._$EU(), i;
244
+ }
245
+ t && this._$AE(e);
246
+ }
247
+ willUpdate(t) {
248
+ }
249
+ _$AE(t) {
250
+ var e;
251
+ (e = this._$EO) == null || e.forEach((s) => {
252
+ var i;
253
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
254
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
255
+ }
256
+ _$EU() {
257
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
258
+ }
259
+ get updateComplete() {
260
+ return this.getUpdateComplete();
261
+ }
262
+ getUpdateComplete() {
263
+ return this._$ES;
264
+ }
265
+ shouldUpdate(t) {
266
+ return !0;
267
+ }
268
+ update(t) {
269
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
270
+ }
271
+ updated(t) {
272
+ }
273
+ firstUpdated(t) {
274
+ }
275
+ }
276
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[b("elementProperties")] = /* @__PURE__ */ new Map(), y[b("finalized")] = /* @__PURE__ */ new Map(), M == null || M({ ReactiveElement: y }), (f.reactiveElementVersions ?? (f.reactiveElementVersions = [])).push("2.0.4");
277
+ /**
278
+ * @license
279
+ * Copyright 2017 Google LLC
280
+ * SPDX-License-Identifier: BSD-3-Clause
281
+ */
282
+ const C = globalThis, N = C.trustedTypes, K = N ? N.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, st = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, it = "?" + _, _t = `<${it}>`, g = document, w = () => g.createComment(""), P = (r) => r === null || typeof r != "object" && typeof r != "function", j = Array.isArray, ft = (r) => j(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", k = `[
283
+ \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Z = /-->/g, F = />/g, A = RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), G = /'/g, Q = /"/g, rt = /^(?:script|style|textarea|title)$/i, At = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Pt = At(1), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), X = /* @__PURE__ */ new WeakMap(), m = g.createTreeWalker(g, 129);
285
+ function nt(r, t) {
286
+ if (!j(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
+ return K !== void 0 ? K.createHTML(t) : t;
288
+ }
289
+ const mt = (r, t) => {
290
+ const e = r.length - 1, s = [];
291
+ let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = S;
292
+ for (let l = 0; l < e; l++) {
293
+ const h = r[l];
294
+ let c, p, a = -1, u = 0;
295
+ for (; u < h.length && (n.lastIndex = u, p = n.exec(h), p !== null); ) u = n.lastIndex, n === S ? p[1] === "!--" ? n = Z : p[1] !== void 0 ? n = F : p[2] !== void 0 ? (rt.test(p[2]) && (i = RegExp("</" + p[2], "g")), n = A) : p[3] !== void 0 && (n = A) : n === A ? p[0] === ">" ? (n = i ?? S, a = -1) : p[1] === void 0 ? a = -2 : (a = n.lastIndex - p[2].length, c = p[1], n = p[3] === void 0 ? A : p[3] === '"' ? Q : G) : n === Q || n === G ? n = A : n === Z || n === F ? n = S : (n = A, i = void 0);
296
+ const $ = n === A && r[l + 1].startsWith("/>") ? " " : "";
297
+ o += n === S ? h + _t : a >= 0 ? (s.push(c), h.slice(0, a) + st + h.slice(a) + _ + $) : h + _ + (a === -2 ? l : $);
298
+ }
299
+ return [nt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
300
+ };
301
+ class U {
302
+ constructor({ strings: t, _$litType$: e }, s) {
303
+ let i;
304
+ this.parts = [];
305
+ let o = 0, n = 0;
306
+ const l = t.length - 1, h = this.parts, [c, p] = mt(t, e);
307
+ if (this.el = U.createElement(c, s), m.currentNode = this.el.content, e === 2 || e === 3) {
308
+ const a = this.el.content.firstChild;
309
+ a.replaceWith(...a.childNodes);
310
+ }
311
+ for (; (i = m.nextNode()) !== null && h.length < l; ) {
312
+ if (i.nodeType === 1) {
313
+ if (i.hasAttributes()) for (const a of i.getAttributeNames()) if (a.endsWith(st)) {
314
+ const u = p[n++], $ = i.getAttribute(a).split(_), H = /([.?@])?(.*)/.exec(u);
315
+ h.push({ type: 1, index: o, name: H[2], strings: $, ctor: H[1] === "." ? yt : H[1] === "?" ? vt : H[1] === "@" ? Et : R }), i.removeAttribute(a);
316
+ } else a.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(a));
317
+ if (rt.test(i.tagName)) {
318
+ const a = i.textContent.split(_), u = a.length - 1;
319
+ if (u > 0) {
320
+ i.textContent = N ? N.emptyScript : "";
321
+ for (let $ = 0; $ < u; $++) i.append(a[$], w()), m.nextNode(), h.push({ type: 2, index: ++o });
322
+ i.append(a[u], w());
323
+ }
324
+ }
325
+ } else if (i.nodeType === 8) if (i.data === it) h.push({ type: 2, index: o });
326
+ else {
327
+ let a = -1;
328
+ for (; (a = i.data.indexOf(_, a + 1)) !== -1; ) h.push({ type: 7, index: o }), a += _.length - 1;
329
+ }
330
+ o++;
331
+ }
332
+ }
333
+ static createElement(t, e) {
334
+ const s = g.createElement("template");
335
+ return s.innerHTML = t, s;
336
+ }
337
+ }
338
+ function E(r, t, e = r, s) {
339
+ var n, l;
340
+ if (t === v) return t;
341
+ let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
342
+ const o = P(t) ? void 0 : t._$litDirective$;
343
+ return (i == null ? void 0 : i.constructor) !== o && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = E(r, i._$AS(r, t.values), i, s)), t;
344
+ }
345
+ class gt {
346
+ constructor(t, e) {
347
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
348
+ }
349
+ get parentNode() {
350
+ return this._$AM.parentNode;
351
+ }
352
+ get _$AU() {
353
+ return this._$AM._$AU;
354
+ }
355
+ u(t) {
356
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? g).importNode(e, !0);
357
+ m.currentNode = i;
358
+ let o = m.nextNode(), n = 0, l = 0, h = s[0];
359
+ for (; h !== void 0; ) {
360
+ if (n === h.index) {
361
+ let c;
362
+ h.type === 2 ? c = new x(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new St(o, this, t)), this._$AV.push(c), h = s[++l];
363
+ }
364
+ n !== (h == null ? void 0 : h.index) && (o = m.nextNode(), n++);
365
+ }
366
+ return m.currentNode = g, i;
367
+ }
368
+ p(t) {
369
+ let e = 0;
370
+ for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
371
+ }
372
+ }
373
+ class x {
374
+ get _$AU() {
375
+ var t;
376
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
377
+ }
378
+ constructor(t, e, s, i) {
379
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
380
+ }
381
+ get parentNode() {
382
+ let t = this._$AA.parentNode;
383
+ const e = this._$AM;
384
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
385
+ }
386
+ get startNode() {
387
+ return this._$AA;
388
+ }
389
+ get endNode() {
390
+ return this._$AB;
391
+ }
392
+ _$AI(t, e = this) {
393
+ t = E(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ft(t) ? this.k(t) : this._(t);
394
+ }
395
+ O(t) {
396
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
397
+ }
398
+ T(t) {
399
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
400
+ }
401
+ _(t) {
402
+ this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(g.createTextNode(t)), this._$AH = t;
403
+ }
404
+ $(t) {
405
+ var o;
406
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = U.createElement(nt(s.h, s.h[0]), this.options)), s);
407
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e);
408
+ else {
409
+ const n = new gt(i, this), l = n.u(this.options);
410
+ n.p(e), this.T(l), this._$AH = n;
411
+ }
412
+ }
413
+ _$AC(t) {
414
+ let e = X.get(t.strings);
415
+ return e === void 0 && X.set(t.strings, e = new U(t)), e;
416
+ }
417
+ k(t) {
418
+ j(this._$AH) || (this._$AH = [], this._$AR());
419
+ const e = this._$AH;
420
+ let s, i = 0;
421
+ for (const o of t) i === e.length ? e.push(s = new x(this.O(w()), this.O(w()), this, this.options)) : s = e[i], s._$AI(o), i++;
422
+ i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
423
+ }
424
+ _$AR(t = this._$AA.nextSibling, e) {
425
+ var s;
426
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
427
+ const i = t.nextSibling;
428
+ t.remove(), t = i;
429
+ }
430
+ }
431
+ setConnected(t) {
432
+ var e;
433
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
434
+ }
435
+ }
436
+ class R {
437
+ get tagName() {
438
+ return this.element.tagName;
439
+ }
440
+ get _$AU() {
441
+ return this._$AM._$AU;
442
+ }
443
+ constructor(t, e, s, i, o) {
444
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
445
+ }
446
+ _$AI(t, e = this, s, i) {
447
+ const o = this.strings;
448
+ let n = !1;
449
+ if (o === void 0) t = E(this, t, e, 0), n = !P(t) || t !== this._$AH && t !== v, n && (this._$AH = t);
450
+ else {
451
+ const l = t;
452
+ let h, c;
453
+ for (t = o[0], h = 0; h < o.length - 1; h++) c = E(this, l[s + h], e, h), c === v && (c = this._$AH[h]), n || (n = !P(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
454
+ }
455
+ n && !i && this.j(t);
456
+ }
457
+ j(t) {
458
+ t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
459
+ }
460
+ }
461
+ class yt extends R {
462
+ constructor() {
463
+ super(...arguments), this.type = 3;
464
+ }
465
+ j(t) {
466
+ this.element[this.name] = t === d ? void 0 : t;
467
+ }
468
+ }
469
+ class vt extends R {
470
+ constructor() {
471
+ super(...arguments), this.type = 4;
472
+ }
473
+ j(t) {
474
+ this.element.toggleAttribute(this.name, !!t && t !== d);
475
+ }
476
+ }
477
+ class Et extends R {
478
+ constructor(t, e, s, i, o) {
479
+ super(t, e, s, i, o), this.type = 5;
480
+ }
481
+ _$AI(t, e = this) {
482
+ if ((t = E(this, t, e, 0) ?? d) === v) return;
483
+ const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i);
484
+ i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
+ }
486
+ handleEvent(t) {
487
+ var e;
488
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
489
+ }
490
+ }
491
+ class St {
492
+ constructor(t, e, s) {
493
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
494
+ }
495
+ get _$AU() {
496
+ return this._$AM._$AU;
497
+ }
498
+ _$AI(t) {
499
+ E(this, t);
500
+ }
501
+ }
502
+ const L = C.litHtmlPolyfillSupport;
503
+ L == null || L(U, x), (C.litHtmlVersions ?? (C.litHtmlVersions = [])).push("3.2.1");
504
+ const bt = (r, t, e) => {
505
+ const s = (e == null ? void 0 : e.renderBefore) ?? t;
506
+ let i = s._$litPart$;
507
+ if (i === void 0) {
508
+ const o = (e == null ? void 0 : e.renderBefore) ?? null;
509
+ s._$litPart$ = i = new x(t.insertBefore(w(), o), o, void 0, e ?? {});
510
+ }
511
+ return i._$AI(r), i;
512
+ };
513
+ /**
514
+ * @license
515
+ * Copyright 2017 Google LLC
516
+ * SPDX-License-Identifier: BSD-3-Clause
517
+ */
518
+ class O extends y {
519
+ constructor() {
520
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
521
+ }
522
+ createRenderRoot() {
523
+ var e;
524
+ const t = super.createRenderRoot();
525
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
526
+ }
527
+ update(t) {
528
+ const e = this.render();
529
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = bt(e, this.renderRoot, this.renderOptions);
530
+ }
531
+ connectedCallback() {
532
+ var t;
533
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
534
+ }
535
+ disconnectedCallback() {
536
+ var t;
537
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
538
+ }
539
+ render() {
540
+ return v;
541
+ }
542
+ }
543
+ var Y;
544
+ O._$litElement$ = !0, O.finalized = !0, (Y = globalThis.litElementHydrateSupport) == null || Y.call(globalThis, { LitElement: O });
545
+ const z = globalThis.litElementPolyfillSupport;
546
+ z == null || z({ LitElement: O });
547
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
548
+ export {
549
+ d as E,
550
+ v as T,
551
+ O as a,
552
+ et as f,
553
+ wt as i,
554
+ ot as r,
555
+ B as u,
556
+ Pt as x
557
+ };
@@ -0,0 +1,110 @@
1
+ import { s as l } from "./context-request-event.Bl9Vpkzl.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2021 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ class d {
8
+ get value() {
9
+ return this.o;
10
+ }
11
+ set value(t) {
12
+ this.setValue(t);
13
+ }
14
+ setValue(t, s = !1) {
15
+ const i = s || !Object.is(t, this.o);
16
+ this.o = t, i && this.updateObservers();
17
+ }
18
+ constructor(t) {
19
+ this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
20
+ for (const [s, { disposer: i }] of this.subscriptions) s(this.o, i);
21
+ }, t !== void 0 && (this.value = t);
22
+ }
23
+ addCallback(t, s, i) {
24
+ if (!i) return void t(this.value);
25
+ this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
26
+ this.subscriptions.delete(t);
27
+ }, consumerHost: s });
28
+ const { disposer: o } = this.subscriptions.get(t);
29
+ t(this.value, o);
30
+ }
31
+ clearCallbacks() {
32
+ this.subscriptions.clear();
33
+ }
34
+ }
35
+ /**
36
+ * @license
37
+ * Copyright 2021 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */
40
+ let p = class extends Event {
41
+ constructor(t, s) {
42
+ super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = s;
43
+ }
44
+ };
45
+ class u extends d {
46
+ constructor(t, s, i) {
47
+ var o, n;
48
+ super(s.context !== void 0 ? s.initialValue : i), this.onContextRequest = (e) => {
49
+ if (e.context !== this.context) return;
50
+ const r = e.contextTarget ?? e.composedPath()[0];
51
+ r !== this.host && (e.stopPropagation(), this.addCallback(e.callback, r, e.subscribe));
52
+ }, this.onProviderRequest = (e) => {
53
+ if (e.context !== this.context || (e.contextTarget ?? e.composedPath()[0]) === this.host) return;
54
+ const r = /* @__PURE__ */ new Set();
55
+ for (const [h, { consumerHost: a }] of this.subscriptions) r.has(h) || (r.add(h), a.dispatchEvent(new l(this.context, a, h, !0)));
56
+ e.stopPropagation();
57
+ }, this.host = t, s.context !== void 0 ? this.context = s.context : this.context = s, this.attachListeners(), (n = (o = this.host).addController) == null || n.call(o, this);
58
+ }
59
+ attachListeners() {
60
+ this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
61
+ }
62
+ hostConnected() {
63
+ this.host.dispatchEvent(new p(this.context, this.host));
64
+ }
65
+ }
66
+ /**
67
+ * @license
68
+ * Copyright 2017 Google LLC
69
+ * SPDX-License-Identifier: BSD-3-Clause
70
+ */
71
+ function v({ context: c }) {
72
+ return (t, s) => {
73
+ const i = /* @__PURE__ */ new WeakMap();
74
+ if (typeof s == "object") return s.addInitializer(function() {
75
+ i.set(this, new u(this, { context: c }));
76
+ }), { get() {
77
+ return t.get.call(this);
78
+ }, set(o) {
79
+ var n;
80
+ return (n = i.get(this)) == null || n.setValue(o), t.set.call(this, o);
81
+ }, init(o) {
82
+ var n;
83
+ return (n = i.get(this)) == null || n.setValue(o), o;
84
+ } };
85
+ {
86
+ t.constructor.addInitializer((e) => {
87
+ i.set(e, new u(e, { context: c }));
88
+ });
89
+ const o = Object.getOwnPropertyDescriptor(t, s);
90
+ let n;
91
+ if (o === void 0) {
92
+ const e = /* @__PURE__ */ new WeakMap();
93
+ n = { get() {
94
+ return e.get(this);
95
+ }, set(r) {
96
+ i.get(this).setValue(r), e.set(this, r);
97
+ }, configurable: !0, enumerable: !0 };
98
+ } else {
99
+ const e = o.set;
100
+ n = { ...o, set(r) {
101
+ i.get(this).setValue(r), e == null || e.call(this, r);
102
+ } };
103
+ }
104
+ return void Object.defineProperty(t, s, n);
105
+ }
106
+ };
107
+ }
108
+ export {
109
+ v as e
110
+ };
@@ -0,0 +1,19 @@
1
+ import { e as u } from "./base.D76d76ww.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2021 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ function d(t) {
8
+ return (c, i) => {
9
+ const { slot: r, selector: o } = t ?? {}, l = "slot" + (r ? `[name=${r}]` : ":not([name])");
10
+ return u(c, i, { get() {
11
+ var s;
12
+ const e = (s = this.renderRoot) == null ? void 0 : s.querySelector(l), n = (e == null ? void 0 : e.assignedElements(t)) ?? [];
13
+ return o === void 0 ? n : n.filter((m) => m.matches(o));
14
+ } });
15
+ };
16
+ }
17
+ export {
18
+ d as o
19
+ };